Giter Club home page Giter Club logo

Comments (3)

michaelkirk avatar michaelkirk commented on June 5, 2024 1

If you can comfortably use georust::geo and get rid of geom, more power to you, but because georust is intended to be a sort of "lowest common denominator", I would be surprised if it meets your needs. I'd guess you'd end up with some kind of application specific geometry library to wrap it.

That said, I expect there'd be dividends in eventually making the types in geom a "New Type" wrapper for geo, that way all the geo algorithms are "at hand" and you don't need to worry about round tripping everything all the time, but you can still add your own trait impls.

So.. pragmatically speaking, I'd guess the most productive way forward would be to start with Option 1, but that doesn't preclude working toward Option 2A in the longer term.

regard cavalier_contours et. al - I haven't worked with it, but it seems plausible!

from osm2streets.

BudgieInWA avatar BudgieInWA commented on June 5, 2024

I have tweaked the title of this issue, because we have started towards the extraction (in all its complexities) and testing elsewhere, while there are valuable ideas about the geom libraries, that I think we should keep working on here.

from osm2streets.

dabreegster avatar dabreegster commented on June 5, 2024

That said, I expect there'd be dividends in eventually making the types in geom a "New Type" wrapper for geo, that way all the geo algorithms are "at hand" and you don't need to worry about round tripping everything all the time, but you can still add your own trait impls.

I'm leaning more towards this now. If I had to categorize the parts of geom currently:

  • could just wrap a geo object: Bounds and GPSBounds (probably Rect), LonLat and Pt2D, Line, Polygon, PolyLine, Ring
  • other geometric with no equivalent: Angle, Circle, Distance
  • unrelated to geometry: Duration, Percent, Speed, Statistic, Time

I'm still not sure what the end-game looks like, but it could be very incremental work to go through that first list, make each type wrap a geo equivalent, and rethink the current API exposed. For example, abst Polygon immediately does ear-cutting to triangulate and stores the result. That was a very legacy decision I'd love to revisit.

from osm2streets.

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.