[gdal-dev] WKT recognition problem with some Polish prj files

Markus Neteler neteler at osgeo.org
Sat Jun 21 09:04:02 EDT 2008


Hi,

attached PUWG_1965_Strefa_I.prj isn't properly recognized in GRASS
(which uses OGR for that). The file was given to me as official WKT file
during the cascadoss.eu workshop. The problem seems to be
  PROJECTION["Double_Stereographic"]
which should be probably
  PROJECTION["Stereographic"]
only?
(related discussion I found in
 http://article.gmane.org/gmane.comp.gis.grass.user/17053
)

In a presentation from FrankW I found:

Warmerdam:
 Stereographic
Aka Oblique Stereographic
 +proj=stere +lat_0=<origin lat>
 +lon_0=<origin long> +k=<scale factor>
 +x_0=<false easting> +y_0=<false northing>

Example (Poland Zone 1):
 +proj=stere +lat_0=50d37.5 +lon_0=21d5
 +k=0.9998 +x_0=4637000 +y_0=5647000
 +ellps=krass +units=m
 +towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84

replacing
PROJECTION["Double_Stereographic"]
-> PROJECTION["Stereographic"]
seems to solve it.

Another one I found is:

PROJCS["UWPP_1992",
GEOGCS["GCS_ETRF_1989",
DATUM["D_ETRF_1989",
SPHEROID["WGS_1984",6378137.0,298.257223563]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433],
AXIS["Longitude",EAST],
AXIS["Latitude",NORTH]],
PROJECTION["Gauss-Kruger"],
PARAMETER["False_Easting",500000.0],
PARAMETER["False_Northing",-5300000.0],
PARAMETER["Central_Meridian",19.0],
PARAMETER["Scale_Factor",0.9993],
PARAMETER["Latitude_Of_Origin",0.0],
UNIT["Metre",1.0],
AXIS["x",EAST],
AXIS["y",NORTH]]

where
  PROJECTION["Gauss-Kruger"]
should be
  PROJECTION["Transverse_Mercator"]

Can we auto-mangle that in OGR?

In GRASS we have support to fix broken datum names but
no way to do the same for PROJECTION since OGR does the
parsing for us.

thanks
Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PUWG_1965_Strefa_I.prj
Type: application/octet-stream
Size: 424 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080621/d8a10ded/PUWG_1965_Strefa_I.obj


More information about the gdal-dev mailing list