[gdal-dev] How to check are there any OGRGeometry (polygons) within an OGRGeometry (polygon) ?

2013-06-02 Thread taibc
Hi everyone, Please see my image: I used the below statements to get Geometry: OGRGeometry *poGeometry; poGeometry = poFeature->GetGeometryRef(); Do you know how to check whether the Polygon 1 (geometry) is empty (or inclu

Re: [gdal-dev] Asking about Convert Dgn to Shp and OGRLayer::SetSpatialFilter

2013-06-02 Thread taibc
Thanks Jukka, I uploaded the dgn file and shp files (after converting) at the link: http://www.mediafire.com/?aw830x9629j3x9q Could you please download and check it ? Thanks and regards, -- View this message in context: http://osgeo-org.1560.x6

Re: [gdal-dev] ogr_dispatch.py: dispatch features into layers according to the value of some fields or the geometry type

2013-06-02 Thread Even Rouault
Le dimanche 02 juin 2013 15:21:40, Jukka Rahkonen a écrit : > > -prefix_with_out_lyr_name: prefix the target layer name with the source > > layer > > This parameter name feels like it contains "without" written in a wrong > way. How bout renaming it to -prexix_with_output_layer_name? It does pa

Re: [gdal-dev] ogr_dispatch.py: dispatch features into layers according to the value of some fields or the geometry type

2013-06-02 Thread Jukka Rahkonen
Even Rouault mines-paris.org> writes: > > Hi, > > http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ogr_dispatch.py is a > new utility that can be used typically to dispatch features of datasource that > mix in a single layer features of several geometry types into separate target > l

[gdal-dev] ogr_dispatch.py: dispatch features into layers according to the value of some fields or the geometry type

2013-06-02 Thread Even Rouault
Hi, http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ogr_dispatch.py is a new utility that can be used typically to dispatch features of datasource that mix in a single layer features of several geometry types into separate target layers, to match a typical constraint enforced in most G

Re: [gdal-dev] Asking about Convert Dgn to Shp and OGRLayer::SetSpatialFilter

2013-06-02 Thread Jukka Rahkonen
taibc yahoo.com> writes: > > Hi, > > I used the this function: > http://osgeo-org.1560.x6.nabble.com/file/n4989766/Source1.cpp > > > to convert my dgn file to shp file. But, after converting, I can't select > the small polygon