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
I have created a .pbf file, but when I decode it, all the properties are removed from each feature.
I used the Getools geobuf libraries to do this, encoded and decoded successfully, I am gzipping the outputsream,
File file = new File("/Projects/geobufs/test.pbf");
GeobufFeatureCollection geobufFeatureCollection = new GeobufFeatureCollection();
InputStream inputStream = new FileInputStream(file);
SimpleFeatureCollection decodedFeatureCollection = geobufFeatureCollection.decode(inputStream);
inputStream.close();
FeatureJSON fjson = new FeatureJSON(new GeometryJSON(DECIMALS));
StringWriter writer = new StringWriter();
fjson.writeFeatureCollection(decodedFeatureCollection, writer);
String geoJSON = writer.toString();
logger.info(geoJSON);
I have created a .pbf file, but when I decode it, all the properties are removed from each feature.
I used the Getools geobuf libraries to do this, encoded and decoded successfully, I am gzipping the outputsream,
File file = new File("/Projects/geobufs/test.pbf");
GeobufFeatureCollection geobufFeatureCollection = new GeobufFeatureCollection();
I download the file
var geobuffURL = "http://localhost:8080/geobuffer/test.pbf";
and it strips the properties from the geoJSON.
I am attaching both the geojson, and the pbf I encoded.
test.files.zip
The text was updated successfully, but these errors were encountered: