[gdal-dev] densify line?
Howard Butler
hobu.inc at gmail.com
Thu Jul 10 20:02:18 EDT 2008
Here's a script that I wrote to do it also. It only works on
LINESTRINGs at the moment and isn't as cool as Even's solution :)
http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/python/samples/densify.py
It does have a few fancier options about what to do with the slop if
you want *exactly* regular intervals though...
Howard
On Jul 10, 2008, at 4:06 PM, Matt Wilkie wrote:
> wow, talk about speed.
> thanks Even!
>
> matt wilkie
> --------------------------------------------
> Geographic Information,
> Information Management and Technology,
> Yukon Department of Environment
> 10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
> 867-667-8133 Tel * 867-393-7003 Fax
> http://environmentyukon.gov.yk.ca/geomatics/
> --------------------------------------------
>
>
> Even Rouault wrote:
>> For your information, I've just added in GDAL trunk a segmentize()
>> method to OGRGeometry and a "-segmentize" option to ogr2ogr.
>> Le Thursday 10 July 2008 18:58:46 Matt Wilkie, vous avez écrit :
>>> Hello All,
>>>
>>> Does ogr have a densify line option or utility?
>>>
>>> The goal is to densify (add vertices at regular intervals) to a 1
>>> dergree by 1 degree fishnet grid before projecting from WGS84 to
>>> UTM (or
>>> whatever) so the result follows earth curvature rather then jumping
>>> straight from corner point to corner point.
>>>
>>> I could use Arcinfo DENSIFYARC, but would like to avoid having to
>>> convert to a coverage if I can.
>>>
>>> thanks,
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list