![]() |
2007-04-02
, 02:54
|
Posts: 197 |
Thanked: 4 times |
Joined on Jan 2007
|
#202
|
![]() |
2007-04-02
, 05:56
|
Posts: 18 |
Thanked: 0 times |
Joined on May 2006
|
#203
|
If your WMS server allows you to specify a (safer) mechanism by which it can return errors, then I'd recommend using that feature. Otherwise, you'll have to try and limit yourself to areas of the world that don't produce an error.
![]() |
2007-04-02
, 10:03
|
Posts: 18 |
Thanked: 0 times |
Joined on May 2006
|
#204
|
![]() |
2007-04-02
, 16:07
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#205
|
My wife's car has GPS built-in. It shows the name of the street you are currently on at the bottom of the map on the screen. It also displays the name of the street that is to be your next turn. Is it possible to make MM do that?
![]() |
2007-04-02
, 16:30
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#206
|
Ok, I can try to use EXCEPTIONS=INIMAGE parameters, WMS server returns then error message as an image. Does it matter if I use for exampe png, png24 or jpeg image format? The Server I use is MapServer, and it is working very well with PC-clients like OpenLayers and ka-Map.
Should I use BBOX=%.6f,%.6f,%.6f,%.6f or BBOX=%.2f,%.2f,%.2f,%.2f with epsg:3067?
![]() |
2007-04-02
, 18:13
|
Posts: 18 |
Thanked: 0 times |
Joined on May 2006
|
#207
|
If you're familiar with C and/or printf, you'd understand the differences between the two. Both should work, but %.2f will be less accurate, so I'd use %.6f.
![]() |
2007-04-02
, 19:35
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#208
|
"Tiles don't seem to fit exactly, what can I do?
Not much, sorry. In this case the projection is sufficiently different from the mercator projection and one would need real warping for a fix. Lower zoom levels usually decrease the errors. (For warping look at gdal)"
If this is true, which epsg code correspods mercator projection that Maemo Mapper uses? I can use gdal and proj on server side and hopefully create MM compatible WMS-service.
![]() |
2007-04-02
, 20:24
|
Posts: 18 |
Thanked: 0 times |
Joined on May 2006
|
#209
|
I don't know anything about EPSG codes... Maemo Mapper uses the same mercator projection that Google Maps and Virtual Earth use, so it's not an uncommon projection - just one that WMS services generally don't use, I guess...
![]() |
2007-04-04
, 09:26
|
Posts: 18 |
Thanked: 0 times |
Joined on May 2006
|
#210
|
Normally (e.g. with OpenStreetMap, Google Maps, or other non-WMS repositories), errors are returned to Maemo Mapper via an HTTP error code (like 404 if the map doesn't exist). This is fine, because Maemo Mapper can detect this is draw a blank tile instead (although it will retry a few times, too). But WMS servers generally return an HTML page instead. If libpng tries to open that HTML page, sometimes it crashes.
If your WMS server allows you to specify a (safer) mechanism by which it can return errors, then I'd recommend using that feature. Otherwise, you'll have to try and limit yourself to areas of the world that don't produce an error.
And if everywhere is producing an error, check the HTML files themselves (there may be many zero-sized files, but there should be at least one non-zero-length file, too), and see if it provides any insight for why you're getting the error.
If you need to reset Maemo Mapper so that you can tweak the settings (because it crashes every time you start), then run the following command from the command line:
gconftool-2 -u /apps/maemo/maemo-mapper/repositories
This will clear your repositories list and reset it to the default (OpenStreetMap).