Comments (5)
FWIW I have a local branch with this working. Not sure if I need special permissions to push my branch for considerations.
from jts2geojson.
This would be awesome. Being able to set precision is pretty important.
from jts2geojson.
Hi, I'd like to work on this as I need the possibility to set the GeometryFactory#SRID
. Is see two possible ways to achieve this:
- change the API of
GeoJSONReader
, make the factory a settable property and callread(...)
like this:
GeoJSONReader.instance().read(...)
, whereGeoJSONReader.instance()
returns a static instance of aGeoJSONReader
that would be in the same state as the current version.
Or:
GeoJSONReader reader = new GeoJSONReader(); reader.read(...);
- change
read(...)
toread(..., GeometryFactory aFactory)
and use the existingGeoJSONReader.factory
when the argumentaFactory
isnull
. Additional I would addread(...)
as a shorthand forread(..., null)
What would you prefer @bjornharrtell ? Second would be of course with lot less changes to current users. I could then provide a pull request. A similar approach could also be used for #22
from jts2geojson.
Second option looks pragmatic to me. I found the initial description of this issue hard to understand which is the reason for the lack of response.
from jts2geojson.
OK, then I will make a pull request for this with the second option.
from jts2geojson.
Related Issues (20)
- Problems when trying to Maven-pull (Eclipse) HOT 4
- Documentation request: Maven pull HOT 3
- JsonMappingException when deserializing a GeometryCollection HOT 2
- Reading/writing 3D coordinates HOT 2
- Put properties to JSON HOT 1
- GeoJSONFactory cannot parse features with null geometries
- Provide a way to register custom modules with the Geojson ObjectMapper. HOT 2
- Polygon with Holes does not support the right-hand rule HOT 7
- Support JTS version 1.15.0 HOT 1
- Downgrade jdk version to 1.7 HOT 7
- Null properties Jackson serializer - change null collection to empty one HOT 4
- Release with 1.8 compatibility HOT 2
- GeoJSONFactory readFeature fails with NPE when GeoJson do not contain properties HOT 2
- Typo in readme
- Hibernate Spatial Compatibility HOT 1
- GeoJSONWriter compiled for Java 11 (class file version 55.0) HOT 3
- Support JTS 1.17 HOT 4
- Error: cannot access Feature/Bad class file error HOT 10
- Allow empty geometry to be parsed by jts2geojson HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jts2geojson.