[gdal-dev] Querying Field Names
Chaitanya kumar CH
chaitanya.ch at gmail.com
Thu Feb 25 22:26:32 EST 2010
Stacy,
This should help:
http://trac.osgeo.org/gdal/browser/trunk/autotest/ogr/ogr_shape.py#L1384
On Fri, Feb 26, 2010 at 8:25 AM, Livingstone <stakk_man at hotmail.com> wrote:
>
> Hi,
>
> I'm using Python to do some work with shape files, with GDAL/OGR, although
> I
> am not particularly experienced in GIS programming (so I apologise for any
> incorrect terminology, etc.). What I need to do is retrieve the list of
> field names in the shape file; fields can be queried by name or row number,
> surely the field names can be listed? (Then I can query the field given
> that
> I know the field name)...
>
> I have searched the documentation quite thoroughly with no luck.. Perhaps
> my
> terminology is incorrect? Using QGIS to bring up the attribute table shows
> (for example):
> ID Street_Add Road_Locat Title
> 1 143 1 Lake Place Ilam Smith, C. J.
> 2 144 3 Tower Road Riccarton Townshend, P.
> 3 145 7 Lake Place Ilam Morrison, J.
> 4 146 9 Harper Court Ilam Doe, J.
> 5 147 11 Tower Road South Ricc Black, F.
>
> I need to find what field names are available; e.g. ID, Street_Add,
> Road_Locat, Title...
>
> Thanks in advance,
> Stacy
> --
> View this message in context:
> http://n2.nabble.com/Querying-Field-Names-tp4636867p4636867.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9848167848
17.241582N 80.142635E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100226/c5a38bbd/attachment.html
More information about the gdal-dev
mailing list