[gdal-dev] WAsP map output for ogr

Even Rouault even.rouault at mines-paris.org
Wed Mar 12 02:57:41 PDT 2014


Le mercredi 12 mars 2014 08:53:44, Vincent Mora a écrit :
> I've question concerning SRS: what should OGRWAsPLayer::GetSpatialRef()
> for unknown SRS.

NULL would be OK.

> 
> 
> 
> Context:
> 
> WAsP Map Editor has a couple of SRS that will be written in the first
> line of the .map file. The first line looks like
> 
>      +description | srs_name | map_editor version
> 
> Since there are very few SRS available, I use the 'description' field to
> write the proj4 of the source SRS when I create a .map file (e.g. with
> ogr2ogr -f WAsP dest.wasp source.shp).
> 
> I want to open .map files that where created by other means (e.g. WAsP
> Map Editor). In this case the SRS will be unknown and it's fine since it
> can be defined by other means e.g. with option -s_srs. But I don't wan't
> the driver to do stupid things in this case.

Well, you could probably put in your driver the code that will recognize the 
most used srs_name written by the WasP Map Editor and turn them into a valid 
OGRSpatialReference ? and for unknown values, return NULL.


-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list