Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Orthogonalize algorithm #6

Open
stefanocudini opened this issue Mar 31, 2015 · 4 comments
Open

add Orthogonalize algorithm #6

stefanocudini opened this issue Mar 31, 2015 · 4 comments

Comments

@stefanocudini
Copy link
Owner

Orthogonalize feature cloud be more useful in any cases.. like as JOSM and iD Openstreetmap editors.
In Github doesn't exists nothing simlar to this, one proposal library I am 'starting here:
https://github.com/stefanocudini/orthogonalize-js

based on:
https://github.com/openstreetmap/iD/blob/master/js/id/actions/orthogonalize.js

but it require few times for conversion from iD structure to generic javascript module

@Wilkins
Copy link
Collaborator

Wilkins commented Mar 31, 2015

I'm not sure what you want to achieve.

Is this what you want to do ? :

The original path :
trace1

The simplified path :
trace2

The simplified and orthogonalized path :
trace3

I thought orthogonalize was for polygons to make nice rectangles. Do you think this is useful for paths ?

@stefanocudini
Copy link
Owner Author

I think that this can be more useful for stylized maps.. when the style is more importart instead of accuracy..
For example using a map like as entry point of an selection

View this plugin and imagine you have many paths instead of shapes, for select any things:
https://github.com/stefanocudini/leaflet-geojson-selector

In addition this behavior improves the visibility of a map when includes many many paths along

In some cases.. is more useful!

@stefanocudini
Copy link
Owner Author

@Wilkins I'm added you into contributors

@Wilkins
Copy link
Collaborator

Wilkins commented Apr 7, 2015

@stefanocudini Wow, thank you very much, I really appreciate it ! I'll try to keep going :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants