Menu

#18 New map source: Sigpac (Spain)

Enhancement
closed
r_x
Map sources (9)
5
2012-09-18
2010-09-20
Suso
No

This patch adds support for the collection of maps from the Sigpac (maintained by the Spanish Ministry of Agriculture).

There was already some code in NotWorking.java, but it was based on the tiles from tilesserver.mapa.es, which are not suitable because their projection is UTM, not Mercator.

So, I removed that code and added a new class in RegionalMapSources.java. It gets the tiles from a kmlserver on sigpac.mapa.es, which allows requests in EPSG 3785 (Google Mercator).

Unfortunately, these tiles are just the original images in UTM projection, processed and adapted to Mercator, so the quality is not very good. That's why I called the map source as "SIGPAC Mercator (Spain only)", to let people know it's not the original projection. But if you think it should be just "SIGPAC (Spain only)", there's no problem with it.

Discussion

  • Suso

    Suso - 2010-09-20

    Patch for SIGPAC map source

     
  • r_x

    r_x - 2010-09-26

    But if the projection does not match the coordinates will be totally wrong and the created atlas will be unusable. What do you want to achieve therefore with this patch?

     
  • Suso

    Suso - 2010-09-26

    Sorry, perhaps I didn't explain correctly. The original tiles used by SIGPAC, served by tilesserver.mapa.es as in NotWorking.java are in UTM projection, so they are not suitable.

    But they have a kml server offering tiles converted to Mercator projection. What I meant is that those tiles were not originally created in Mercator, but converted through digital image processing from UTM to Mercator (you can even see curved lines in zoom 5 corresponding to straight lines in the original tiles)

    My patch uses the tiles from the kml server, so they are not the best image quality (that's why I called it "SIGPAC Mercator", to make notice that it's not the standard UTM SIGPAC source imagery), but they are definitely Mercator, so they are perfectly compatible with Mobac.

    I hope it's clearer now.

     
  • r_x

    r_x - 2010-09-27

    May it be that you forgot to include the "Sigpack Mercator" implementation? Because the attached patch only contains the "NotWorking" sigpac.mapa.es implementation.

     
  • Suso

    Suso - 2010-09-27

    Mmmm, are you sure? I can see it in the patch added to RegionalMapSources.java, I made it with a plain diff -ur, perhaps it's a format incompatible with Eclipse... If you prefer, I can send you the modified RegionalMapSources.java.
    Thank you!

     
  • r_x

    r_x - 2010-09-30

    Looks like there was a download problem of the patch and the last part containing the implementation was truncated.
    I have applied this patch.

     
  • r_x

    r_x - 2010-11-05

    The SIGPAC map source does not work anymore.

    Please check if this map source is still available.

     
  • Suso

    Suso - 2010-11-06

    It works perfectly for me right now. Please take into account that the server of the Ministry is quite unreliable, and has long downtime periods, but otherwise it's still working. Thank you!

     
  • r_x

    r_x - 2010-11-07

    OK, I understand.

     

Log in to post a comment.

MongoDB Logo MongoDB