Giter Site home page Giter Site logo

Comments (5)

fbl100 avatar fbl100 commented on June 27, 2024

FWIW I have a local branch with this working. Not sure if I need special permissions to push my branch for considerations.

from jts2geojson.

woodsyb-zz avatar woodsyb-zz commented on June 27, 2024

This would be awesome. Being able to set precision is pretty important.

from jts2geojson.

patzi avatar patzi commented on June 27, 2024

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 call read(...) like this:
    GeoJSONReader.instance().read(...), where GeoJSONReader.instance() returns a static instance of a GeoJSONReader that would be in the same state as the current version.
    Or:
    GeoJSONReader reader = new GeoJSONReader(); reader.read(...);
  • change read(...) to read(..., GeometryFactory aFactory) and use the existing GeoJSONReader.factory when the argument aFactory is null. Additional I would add read(...) as a shorthand for read(..., 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.

bjornharrtell avatar bjornharrtell commented on June 27, 2024

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.

patzi avatar patzi commented on June 27, 2024

OK, then I will make a pull request for this with the second option.

from jts2geojson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.