You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2020/07/20 01:53:55 - GIS File input.0 - ERROR (version 8.3.0.0-371, build 8.3.0.0-371 from 2019-06-11 11.09.08 by buildguy) : Unexpected error
2020/07/20 01:53:55 - GIS File input.0 - ERROR (version 8.3.0.0-371, build 8.3.0.0-371 from 2019-06-11 11.09.08 by buildguy) : org.pentaho.di.core.exception.KettleValueException:
2020/07/20 01:53:55 - GIS File input.0 - Unexpected conversion error while converting value [property Number] to a Number
2020/07/20 01:53:55 - GIS File input.0 - java.lang.Integer cannot be cast to java.lang.Double
2020/07/20 01:53:55 - GIS File input.0 -
2020/07/20 01:53:55 - GIS File input.0 - at org.pentaho.di.core.row.value.ValueMetaBase.getNumber(ValueMetaBase.java:2035)
2020/07/20 01:53:55 - GIS File input.0 - at com.atolcd.pentaho.di.gis.io.features.FeatureConverter.getRow(FeatureConverter.java:217)
2020/07/20 01:53:55 - GIS File input.0 - at com.atolcd.pentaho.di.trans.steps.gisfileinput.GisFileInput.processRow(GisFileInput.java:106)
2020/07/20 01:53:55 - GIS File input.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2020/07/20 01:53:55 - GIS File input.0 - at java.lang.Thread.run(Thread.java:748)
I believe the cause of this error is the assumption in the GeoJSONReader constructor (line 68): org.wololo.geojson.Feature geoJsonfeature = ((FeatureCollection) json).getFeatures()[0];
which determines the structure of GeoJSON properties by looking at only the first feature. This will also cause any property that does not appear in the first record (or has a null value ) to be ignored. (see #22 for an issue handling null property values)
Using Kettle 8.3.0.0-371 and GIS Plugin V1.3.0
The text was updated successfully, but these errors were encountered:
dlutz2
changed the title
Type conversion error if properties instances have different numeric types
Type conversion error if properties instances have different numeric types in GeoJSON file
Jul 20, 2020
If different instance of a property have different numeric types (integer, decimal) then a type conversion error results:
For instance:
causes
I believe the cause of this error is the assumption in the GeoJSONReader constructor (line 68):
org.wololo.geojson.Feature geoJsonfeature = ((FeatureCollection) json).getFeatures()[0];
which determines the structure of GeoJSON properties by looking at only the first feature. This will also cause any property that does not appear in the first record (or has a null value ) to be ignored. (see #22 for an issue handling null property values)
Using Kettle 8.3.0.0-371 and GIS Plugin V1.3.0
The text was updated successfully, but these errors were encountered: