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
GeoJSONReader is still in draft state and I will try to improve it. Also any code contribution is wellcome. It's appreciated if you could provide an example data file for testing.
`
public static VectorLayer read(FeatureCollection features) {
Shape shape = GeoJSONUtil.toShape(features.getFeature(0).getGeometry());
VectorLayer layer = new VectorLayer(shape.getShapeType());
String fieldName = "title";
layer.editAddField(fieldName, DataType.STRING);
LegendScheme ls = new LegendScheme(shape.getShapeType());
ls.setLegendType(LegendType.UNIQUE_VALUE);
ls.setFieldName(fieldName);
`
The text was updated successfully, but these errors were encountered: