[gdal-dev] ASCII file to AAIG format

Zoltan Szecsei zoltans at geograph.co.za
Mon Jul 18 16:34:49 EDT 2011


Hi Even/Frank,
An hour or two back I did take a look at Frank's idea, and noted the "no 
skipped cells" and other limitations :-(
I'll go through the xyz driver docs on Wednesday because I'm out all day 
tomorrow - right now I'm trying to tie up some loose ends before going 
home ... (it's 10:30 pm here).

Thanks for the interest and help.

Kind regards,
Zoltan




On 2011/07/18 22:26, Even Rouault wrote:
> Le lundi 18 juillet 2011 18:01:08, Frank Warmerdam a écrit :
>> Zoltan,
>>
>> I haven't used it myself, but it looks like the XYZ driver might be
>> ready made for your need:
>>
>> http://www.gdal.org/frmt_xyz.html
>>
>> It looks like it is new in 1.8.
> The XYZ driver doesn't fit Zoltan's requirements because it relies on the fact
> that coordinates are sorted and regularly spaced.
>
> So gdal_grid is the only option. With the help of a spread-sheet application
> or by any other adequate means, you should be able to transform your file into
> a CSV file and create a OGR VRT file that will be recognized as a valid OGR
> point datasource usable by gdal_grid. See the doc of the 2 drivers :
>
> http://gdal.org/ogr/drv_csv.html
> http://gdal.org/ogr/drv_vrt.html
>
>> Best regards,
>>
>> On Mon, Jul 18, 2011 at 7:04 AM, Zoltan Szecsei<zoltans at geograph.co.za>
> wrote:
>>> Hi,
>>> I have an ASCII file of DEM points that need to be converted into AAIG
>>> format, so I'm hoping gdal (_translate?) will do the trick
>>> I do not want to rely on the fact that my DEM is column/row ordered, nor
>>> that it is "exactly" 2m spaced.
>>>
>>> Is there some free-format ASCII that gdal can read, or does anyone know
>>> which of the formats read by GDAL won't need to be "ordered" or "exact".
>>> I'm hoping GDAL will take the pain out of ordering my DEM, and creating
>>> NODATA for missing cell values.
>>>
>>> My file looks like this: (Easting, Northing, height, type)
>>>
>>>>               570433.84    201262.28        73.65 MPoint
>>>>               570433.84    201260.28        73.72 MPoint
>>>>               570433.84    201258.28        73.79 MPoint
>>>>               570433.84    201256.28        73.86 MPoint
>>>>               570433.84    201254.28        73.89 MPoint
>>>>               570433.84    201252.28        74.02 MPoint
>>>>               570433.84    201250.28        74.16 MPoint
>>> Thanks in advance,
>>> Zoltan
>>>
>>> --
>>>
>>> ===========================================
>>> Zoltan Szecsei PrGISc [PGP0031]
>>> Geograph (Pty) Ltd.
>>> P.O. Box 7, Muizenberg 7950, South Africa.
>>>
>>> 65 Main Road, Muizenberg 7945
>>> Western Cape, South Africa.
>>>
>>> 34° 6'16.35"S 18°28'5.62"E
>>>
>>> Tel: +27-21-7884897  Mobile: +27-83-6004028
>>> Fax: +27-86-6115323     www.geograph.co.za
>>> ===========================================
>>>
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev


-- 

===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.

65 Main Road, Muizenberg 7945
Western Cape, South Africa.

34° 6'16.35"S 18°28'5.62"E

Tel: +27-21-7884897  Mobile: +27-83-6004028
Fax: +27-86-6115323     www.geograph.co.za
===========================================



More information about the gdal-dev mailing list