[postgis-users] "Resampling" polyline shapefiles.

Hemant Bist hemantbist at gmail.com
Fri Dec 25 12:13:20 PST 2009


Thanks everyone,
Brians's suggestion of using ST_Simplify is working for me. My shapefiles
had units of degrees so I had to use tolerance of 0.00001 to get maximum
deviation of roughly 1 meter.

I haven't tried ogr2ogr -segmetnize yet. I will try it and see it this works
as well.

Happy Holidays,
HB


On Fri, Dec 25, 2009 at 1:27 PM, Howard Butler <hobu.inc at gmail.com> wrote:

> ogr2ogr -segmentize
>
> will do what you want.
>
> Otherwise  http://yukongis.wik.is/How_To/Densify_Line has more info.
>
>
> On Dec 24, 2009, at 11:41 PM, Hemant Bist <hemantbist at gmail.com> wrote:
>
>  I have a polyline shapefile with each polyline having 200 segements with
>> each segments length roughly 1 meter. I want to "resample" the polylines to
>> have roughly 10 meter segment size and each polyline having roughly 20
>> segments. I understand this may result in some loss of information.
>>
>>
>> Can postgis help me with some  conversion like this. I need this done
>> somewhat quickly. I have looked at the documentation but did not find
>> anything relevant.
>> I have installed postgis on ubuntu and ran some queries. That's my level
>> of familiarity with postgis.
>> Would appreciate any pointers.
>>
>> Best,
>> HB
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20091225/6e6de8aa/attachment.html>


More information about the postgis-users mailing list