Re: [Geotools-gt2-users] FeatureJSON reader

2021-11-22 Thread Lorenzo Di Giacomo
All set, i was using an old version (23.1), with the 26.1 works everything even the pretty print, thanks! Il giorno lun 22 nov 2021 alle ore 18:29 Lorenzo Di Giacomo < loridi...@gmail.com> ha scritto: > Besides i just found out that the boolean value in the file are read like > null values, do yo

Re: [Geotools-gt2-users] FeatureJSON reader

2021-11-22 Thread Lorenzo Di Giacomo
Besides i just found out that the boolean value in the file are read like null values, do you know why? Il giorno lun 22 nov 2021 alle ore 17:10 Lorenzo Di Giacomo < loridi...@gmail.com> ha scritto: > Another thing, using the geojsonstore is it possible to write the Json > "prettified" ? I'm look

Re: [Geotools-gt2-users] FeatureJSON reader

2021-11-22 Thread Lorenzo Di Giacomo
Another thing, using the geojsonstore is it possible to write the Json "prettified" ? I'm looking to the code but i can't find how could be set to write to file a pretty json, thanks again! Il giorno lun 22 nov 2021 alle ore 16:50 Lorenzo Di Giacomo < loridi...@gmail.com> ha scritto: > Thank you

Re: [Geotools-gt2-users] FeatureJSON reader

2021-11-22 Thread Lorenzo Di Giacomo
Thank you guys, i guess i'll go with the gt-geojsonstore Il giorno sab 20 nov 2021 alle ore 08:13 Andrea Aime < andrea.a...@geosolutionsgroup.com> ha scritto: > The module is considered for eventual removal, will be replaced by > https://github.com/geotools/geotools/tree/main/modules/unsupported/

Re: [Geotools-gt2-users] FeatureJSON reader

2021-11-19 Thread Andrea Aime
The module is considered for eventual removal, will be replaced by https://github.com/geotools/geotools/tree/main/modules/unsupported/geojsonstore Despite the name, the module contains support for reading GeoJSON files without going through the DataStore interface. GeoServer is being gradually migr

Re: [Geotools-gt2-users] FeatureJSON reader

2021-11-19 Thread Jody Garnett
There is certainly room for improvement Lrenzo, you could probably downgrade that exception to a warning for example. Looking at String toJSONString(SimpleFeature feature)

[Geotools-gt2-users] FeatureJSON reader

2021-11-16 Thread Lorenzo Di Giacomo
Hi all, i have 2 question: 1) what does setEncodeNullValues do? Since i can read a json with null values if the field is true or false, so i don't understand what actually do. 2) given a FeatureType, created manually, is there a way to read a JSON but taking only the properties declared in the Fea