dominikriemer opened a new issue, #277:
URL: https://github.com/apache/streampipes/issues/277
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);
```
[1]
[https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/setEPSG/SetEPSG.java](https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/setEPSG/SetEPSG.java)
[2]
[https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeo.java](https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeo.java)
Imported from Jira
[STREAMPIPES-123](https://issues.apache.org/jira/browse/STREAMPIPES-123).
Original Jira may contain additional context.
Reported by: micklich.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]