On Mon, Oct 29, 2012 at 5:35 AM, Tom Kunicki <[email protected]> wrote: > A little bit of Occam's razor here... Spent hours digging through source but > it appears to simply be a mismatch between the name listed in the > DomainAliasesTable.txt used to drive DomainAlias DatumFactory and the name of > the datum in the EPSG database. It appears that with EPSG ChangeRequest > EPSG::2010.061 the name for the datum EPSG:6152 was modified from "NAD83 > (High Accuracy Regional Network)" to "NAD83 (High Accuracy Reference > Network)", With EPSG ChangeRequest EPSG::2011.009 the former name of "NAD83 > (High Accuracy Regional Network)" was added an alias for EPSG:6152.
Nice investigation. > I am going to guess that the regression from 2.6 to 2.7 and beyond was the > inclusion of a new EPSG database in the GeoTools HSQL factory we are using > (tied to the GeoTools version) without an update to the DomainAliasTable.txt > > Resolution options for discussion... > > 1) Update the DomainAliasTable.txt with the new datum name for EPSG:6152 Yep, good one. > 2) Consider using keys in DatumAlias factory appropriate to authorities (i.e. > "6152" instead or maybe in addition to EPSG datum name) Humm.. this one would be complicated and not useful 100% of the time, we might be comparing two prj files for example. > 2.1) what about other authorities?. > 3) Add unit test to check that keys exist for given authority, > 3.1) Would catch mismatches with GeoTools bundled authority DBs > 3.2) Would not catch user provided authority DBs (add runtime check with > logged warning?) Making this a unit test that has to run every build seems rather overkill, but having a utility that one has to run when doing the DB update would be useful. Cheers Andrea -- == Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- ------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
