Re: [postgis-users] Evenly distributing a point set

2015-01-27 Thread Brent Wood
Replied at  http://gis.stackexchange.com/questions/131854/spacing-a-set-of-pointswith some Postgis options... Brent Wood From: toni hernández t...@sigte.udg.edu To: postgis-users@lists.osgeo.org Sent: Wednesday, January 28, 2015 12:05 AM Subject: Re: [postgis-users] Evenly distributing

Re: [postgis-users] Evenly distributing a point set

2015-01-27 Thread Dave Barter
Maybe you can also try to simplify the geometry using X as the tolerance. http://postgis.net/docs/manual-1.4/ST_Simplify.html On 25/01/2015 12:54, Dave Barter wrote: KNN distance Will that work on a point layer? I have added a diagram and more detail here 

Re: [postgis-users] Evenly distributing a point set

2015-01-27 Thread toni hernández
Maybe not on a point. I was thinking with linestring On 27/01/2015 11:46, Dave Barter wrote: Maybe you can also try to simplify the geometry using X as the tolerance. http://postgis.net/docs/manual-1.4/ST_Simplify.html On 25/01/2015 12:54, Dave Barter wrote: KNN distance Will that work

Re: [postgis-users] Evenly distributing a point set

2015-01-27 Thread toni hernández
Maybe you can also try to simplify the geometry using X as the tolerance. http://postgis.net/docs/manual-1.4/ST_Simplify.html On 25/01/2015 12:54, Dave Barter wrote: KNN distance ___ postgis-users mailing list postgis-users@lists.osgeo.org

Re: [postgis-users] Evenly distributing a point set

2015-01-26 Thread Rémi Cura
Hey, I used Nicolas's strategy and it works. You could slightly improving it by some preprocessing on the linestring itself (smoothing or simplifying, depending on your data) Cheers, Rémi-C 2015-01-25 22:32 GMT+01:00 Nicolas Ribot nicolas.ri...@gmail.com: Hello, You could build the linestring

Re: [postgis-users] Evenly distributing a point set

2015-01-26 Thread Rémi Cura
Hey, it is unclear what you want and how your data looks like. For better answer it would be good to have better info. Maybe a screen of your data, some facts, for what usage (admissible error, expected quality ..) etc etc. What you are trying to do (reconstruct a network from sampled pieces) is

Re: [postgis-users] Evenly distributing a point set

2015-01-26 Thread Dave Barter
These points were created from a GPX file along a road journey so they crudely map to a line string Map matching is the term often used to describe the process of assigning noisy Gpx points to underlying road network. My problem is a bit more involved. The GPX points represent the

[postgis-users] Evenly distributing a point set

2015-01-25 Thread Mark Wynter
These points were created from a GPX file along a road journey so they crudely map to a line string Map matching is the term often used to describe the process of assigning noisy Gpx points to underlying road network. I was thinking compute the KNN distance for each point and remove

[postgis-users] Evenly distributing a point set

2015-01-25 Thread Dave Barter
If I had a table of points which are irregularly distributed and wanted to evenly distribute them what would be the best strategy and query? These points were created from a GPX file along a road journey so they crudely map to a line string. I was thinking compute the KNN distance for each

Re: [postgis-users] Evenly distributing a point set

2015-01-25 Thread Nicolas Ribot
Hello, You could build the linestring from points (makeLine(geom order by time)) then , with linear referencing (st_lineInterpolatePoint, st_linelocatePoint), you can divide your linestring by the distance you want, creating new points. Then, if you need to keep time information, you could