[gdal-dev] weeding out x,y,z points

Mateusz Loskot mateusz at loskot.net
Wed Feb 25 20:02:12 EST 2009


nicholas.g.lawrence at mainroads.qld.gov.au wrote:
> A client has a very large (millions of records) ascii file consisting
>  solely of x,y,z co-ordinates.
> 
> They would like to reduce the number of records by weeking out points
> that are too close to each other.
> 
> Can GDAL or OGR weed out 3D points based on proximity to each other?

Perhaps libLAS (http://liblas.org/) and its utils will help, try txt2las
with -scale or -xyz_scale option:

http://liblas.org/browser/trunk/doc/txt2las.txt

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the gdal-dev mailing list