Hi Michael
I had this warning caming out on using Layer Properties plugin:

ava.lang.IllegalArgumentException: No enum constant
org.openjump.core.ccordsys.utils.SRSInfo.Registry.LOCAL_CoordinateReferenceSystem
    at java.lang.Enum.valueOf(Unknown Source)
    at
org.openjump.core.ccordsys.utils.SRSInfo$Registry.valueOf(SRSInfo.java:21)
    at org.openjump.core.ccordsys.utils.SRSInfo.setRegistry(SRSInfo.java:61)
    at
org.openjump.core.ccordsys.utils.ProjUtils.getSRSInfoFromAuxiliaryFile(ProjUtils.java:127)
    at
org.openjump.core.ccordsys.utils.ProjUtils.getSRSInfoFromLayerSource(ProjUtils.java:380)
    at
org.openjump.core.ccordsys.utils.ProjUtils.getSRSInfoFromLayerStyleOrSource(ProjUtils.java:275)
    at
org.openjump.core.ui.plugin.layer.NewLayerPropertiesPlugIn$InfoPanel.setInfoProjection(NewLayerPropertiesPlugIn.java:705)
    at
org.openjump.core.ui.plugin.layer.NewLayerPropertiesPlugIn$InfoPanel.<init>(NewLayerPropertiesPlugIn.java:446)
    at
org.openjump.core.ui.plugin.layer.NewLayerPropertiesPlugIn$InfoPanel.<init>(NewLayerPropertiesPlugIn.java:343)
    at
org.openjump.core.ui.plugin.layer.NewLayerPropertiesPlugIn.execute(NewLayerPropertiesPlugIn.java:205)

I tried with several .prj file using OJ 5639 and OJ 5655.
It seems to me that something is broken on SRSInfo class, maybe. I don't
have OJ source code to check here in Chile.


I just resume as projection detection was working since early ProjUtils
class. Maybe it can be useful to find the problem

1) projection WKT string is searched on a .prj file (or .aux file)  on
reading data
2) WKT string detected is "cleaned" to take only the PROJ definition.
3) PROJ definition is  decoded proj  according to main varieties (OGC and
ESRI) plus few extra codes to have unique readable definition
4) the definition is finally compared on a registry file to have back its
EPSG srid code and unit
5) if WKT string doesn't match any definition find on the registry. Layer
Property plugin outputs the entire WKT string. In this way the user can
find other way to find t the srid

Greetings from Santiago and Happy new year

Peppe
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to