Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.67.0
-
None
-
None
Description
Using in SetEPSG.java [1] following runtime name in the addField method
in.addField("epsg-key", epsg);
I get an exceptions:
Exception in thread "Thread-5" java.lang.IllegalArgumentException: Key not found
in the next PE if I want to extract the EPSG Code from the required stream.
You can reproduce the error with the ISS Adapter, using the EPSG PE and adding 4326. Then use the LatLngToGeo and try to create a JTS Point.
The exception will be thrown in the LatLngToGeo.java [2]:
Integer epsg = in.getFieldBySelector(epsg_code).getAsPrimitive().getAsInt();
Everything is working fine if I change the runtime name as followed
in.addField("epsg", epsg);