Comments (3)
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.
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.
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
andGPSBounds
(probablyRect
),LonLat
andPt2D
,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)
- placement position names (right_of:1) should ignore sidewalks HOT 1
- Make StreetNetwork implement Send
- Degenerate geometry breaks at sharp angles
- Loop road gets trimmed into oblivion HOT 1
- Cutover the GeoJSON output to the markings/paint implementation
- Build a cross-platform JAR from the Java bindings HOT 1
- Java API: Ability to input OSM data via primitive types instead of an XML string
- Collapsing a road breaks HOT 1
- Very tiny dog-leg road breaks HOT 2
- Collapsing degenerate roads breaks HOT 5
- Feeding a/b streets decomposition/disaggregation of centrelines into other analytical tools HOT 7
- Get OSM auth working in lane editor
- Improve the Svelte web app
- RuntimeError: unreachable executed when the underlying Rust crate panicked HOT 2
- Use lane width tags from OSM HOT 3
- Use region-specific configurable lane widths
- Publish osm2lanes NPM package HOT 2
- Handle pbf input too HOT 5
- Turn lane shows arrows where there should be none HOT 7
- Lanes for bus and bicycles not shown up HOT 2
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 osm2streets.