Thanks for the reply, It's not even WKT - it's "something else"
I got it working by using GDAL/OGR to parse it, which does actually read these non-wkt PRJ files. If you're interested in it, you can see my kludge - https://gis.stackexchange.com/questions/355184/prj-files-from-esri-arent-wkt. It would have been nicer to link to an osr function directly, but that didn't seem to be exported in the SWIG templates for Java? If you look at the gdal test suite you can see the explicit support for all these - https://trac.osgeo.org/gdal/browser/trunk/autotest/osr/osr_esri.py#L234 I started thinking about a parser for it for Geotools, but tbh it was a bit beyond me and seemed quite a big undertaking - I have a very "high-level" (read: hardly any at all) understanding of all of the concepts wrapped up in a CRS. On 7/04/20 2:25 pm, Jody Garnett wrote: > Our WKT parser has lots of alias support to read non-standard "well known" > text ... > > For example see EsriNamedIdentifierAliasestest.java > <https://github.com/geotools/geotools/blob/master/modules/library/referencing/src/test/java/org/geotools/referencing/operation/projection/EsriNamedIdentifierAliasesTest.java> > -- > Jody Garnett > > > On Wed, 25 Mar 2020 at 13:19, <nickg+geoto...@catalyst.net.nz> wrote: > >> Hi list, >> >> First of all, a big virtual hug to you all suffering through this crazy >> time. I wish you all the very best as we struggle through the months >> ahead. >> >> And now the mundane... >> >> We've been seeing a lot of .prj sidecar files from users from Arc >> Desktop that isn't WKT [1]. I've found a reference to it at - >> >> https://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/esri-grid-format.htm >> - It seems to be referred to as an 'ASCII PRJ' file. But there's not >> much else on the web to go on. >> >> Anyway, the ArcGridFormat reader doesn't understand it or seem to cope >> with it, and I think it logs an error and reads the .asc without setting >> the CRS. But before I investigated a patch or a workaround , I was >> wondering if there was some prior art I could use for decoding these >> files, or some wisdom about how I could go about it. >> >> >> Cheers, >> Nick >> >> -- >> >> >> 1 - An example .prj file... >> >> Projection TRANSVERSE >> Datum AI_NZGD00 >> Spheroid GRS80 >> Units METERS >> Zunits NO >> Xshift 0.0 >> Yshift 0.0 >> Parameters >> 0.9996 /* scale factor at central meridian >> 173 0 0.0 /* longitude of central meridian >> 0 0 0.0 /* latitude of origin >> 1600000.0 /* false easting (meters) >> 10000000.0 /* false northing (meters) >> >> -- >> Nick Griffiths >> >> Catalyst IT - Open Source Technologists >> +64 22 411 0587 | ni...@catalyst.net.nz | www.catalyst.net.nz >> >> >> _______________________________________________ >> GeoTools-GT2-Users mailing list >> GeoTools-GT2-Users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > -- Nick Griffiths Catalyst IT - Open Source Technologists +64 22 411 0587 | ni...@catalyst.net.nz | www.catalyst.net.nz _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users