[gdal-dev] New user query about OGR library NTF import

Frank Warmerdam warmerdam at pobox.com
Sat Nov 14 13:27:36 EST 2009


Can you provide access to an example file?  If
distribution is an issue, you can make it available just
to me.

Best regards,

On Sat, Nov 14, 2009 at 1:10 PM, A.J. Carter <ajc200 at maths.leeds.ac.uk> wrote:
> Hello,
> I was hoping someone might be able to help me with a query about using the
> OGR library to read an Ordnance Survey Landform Profile file in NTf format:
> http://www.ordnancesurvey.co.uk/oswebsite/products/landformprofile/techinfo.html
> The file contains a 501 X 501 grid with height values at each point. From
> the technical reference on the OS web page it lists this as being stored
> within a field called Z_COORD. Manually inspecting the NTF file (which is
> plain text) I can see values like 00159 meaning 15.9m AOD. If I run the NTF
> through OGRINFO -al on the file produces a feature for this point:
> OGRFeature)DTM_SD19SW):1
>  HEIGHT (Integer) = 15
>  POINT (310000.0 490000.0 15.899999618530273)
> At the moment I can't understand why it's writing out the height as an
> integer, and also where the many decimal places in the z coordinate of the
> point have come from.
> Any help would be much appreciated.
> I'm relatively new to GIS software; sorry if this is a silly question!
> Many thanks,
> Alex
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list