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

Generate addresses ranges parallels #6

Open
vgeorge opened this issue Nov 26, 2014 · 4 comments
Open

Generate addresses ranges parallels #6

vgeorge opened this issue Nov 26, 2014 · 4 comments

Comments

@vgeorge
Copy link
Member

vgeorge commented Nov 26, 2014

After importing into PostGIS, I was able to generate parallels for segments using this query:

select ST_OffsetCurve((ST_LineMerge(geom)),0.00004, 'quad_segs=4 join=round') as geom into paralela from geolog limit 1;

It is posible to trim the ways by using ST_LineSubstring. We need to know how to translate 5 meters to fractions of segment length.

It's a start, but I think we can use PostGIS to generate all parallels we need.

@vgeorge vgeorge changed the title Generate addresses ranges parallel Generate addresses ranges parallels Nov 26, 2014
@alexandre-mbm
Copy link
Collaborator

What are parallels?

@vgeorge
Copy link
Member Author

vgeorge commented Nov 26, 2014

We are going to use address interpolation to import the data:

http://wiki.openstreetmap.org/wiki/Addresses#Using_interpolation

We will have the interpolation ways by generating parrallels of street segments provided at the shapefile.

@willemarcel
Copy link

I changed the projection parameters in the wiki https://wiki.openstreetmap.org/wiki/Geolog_PMSP_Import#The_data

In some areas the geolog data is a bit similar to OSM, in others there is some meters of difference. We will have a lot of work to fix the data, but I think that our work will be easier with the parallels.

@willemarcel
Copy link

In the postgis SQL query I think the arguments 'quad_segs=4 join=round' are not needed.

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

No branches or pull requests

3 participants