[gdal-dev] Error with using GML with Python

2014-11-09 Thread Pekka Sarkola
Hi, I might have newbie problem with OGR’s GML driver in Python. I try to read GML files with Python script, but won’t get access to features. I tried this on Window (ogr version 1.11.1), unfortunately I couldn’t check this in other enviroments, yet. So my sample testing script result is ---

Re: [gdal-dev] Error with using GML with Python

2014-11-09 Thread Even Rouault
Le dimanche 09 novembre 2014 18:28:13, Pekka Sarkola a écrit : Hi, I might have newbie problem with OGR’s GML driver in Python. I try to read GML files with Python script, but won’t get access to features. I tried this on Window (ogr version 1.11.1), unfortunately I couldn’t check this in

Re: [gdal-dev] Error with using GML with Python

2014-11-09 Thread Pekka Sarkola
Hi Even, Thanks about help! Yes, it seems that my python script use older version of GDAL (1.10.1). I didn't check that: I thought that even FeatureCount won't work in older version. So I need check how to be sure that right version of ogr is loaded. PATH settings etc. boring ;-) Rgs, Pekka

Re: [gdal-dev] Error with using GML with Python

2014-11-09 Thread Even Rouault
Le dimanche 09 novembre 2014 20:55:09, Pekka Sarkola a écrit : Hi Even, Thanks about help! Yes, it seems that my python script use older version of GDAL (1.10.1). I didn't check that: I thought that even FeatureCount won't work in older version. MTK files are quite close to standard GML

[gdal-dev] How to get value of Spatial Attributes Ogr Provider

2014-11-09 Thread Dao Thang
Hi All, I used sharpmap with ogr provider to read S57 file. But i don't see the spatial attributes example: QUAPOS attribute in the DEPCNT layer. Does anyone help me get it. Thanks [image: Inline image 1] — *Đào Trọng Thắng* *Mobile:* 0919 262 988

Re: [gdal-dev] How to get value of Spatial Attributes Ogr Provider

2014-11-09 Thread Chaitanya kumar CH
Đào, Refer to http://www.s-57.com/ Depth contour features don't have a Quality of position attribute. On Mon, Nov 10, 2014 at 7:29 AM, Dao Thang thang...@gmail.com wrote: Hi All, I used sharpmap with ogr provider to read S57 file. But i don't see the spatial attributes example: QUAPOS

Re: [gdal-dev] How to get value of Spatial Attributes Ogr Provider

2014-11-09 Thread Dao Thang
Hi Chaitanya, QUAPOS is not attribute of feature object of Depth contour. I know that. But QUAPOS that i searching is spatial attribute of Spatial object. You can read S57 specification to know Spatial Attribute. Thanks — *Đào Trọng Thắng*

Re: [gdal-dev] How to get value of Spatial Attributes Ogr Provider

2014-11-09 Thread Chaitanya kumar CH
Đào, You can look for the M_SREL feature in the required area and read it's attributes. You can apply a spatial filter on the M_SREL layer with the particular DEPCNT feature. Also, note that the DEPCNT features are often not very accurate. On Mon, Nov 10, 2014 at 10:03 AM, Dao Thang