[gdal-dev] GML without geometry export forward shapefile with
null geometry
aperi2007
aperi2007 at gmail.com
Sat Jul 9 15:04:25 EDT 2011
Frank,
thx for response.
But unfortunately I have not well explained.
My GML has not one only class but instead it has many classes.
Some classes has geometry and some other classes has not geometry.
So I cannot set it manually to wkbnone because only some classes need to
be translated to dbf only.
If you confirm that also this situation is compliant with the gdal/ogr
rules and the driver could be able to generate a dbf-only file when meet
a class without geometry and instead generate a shapefile when meet a
class with geometry, I open a ticket and add some examples.
thx,
Andrea.
Il 09/07/2011 20:48, Frank Warmerdam ha scritto:
> On Sat, Jul 9, 2011 at 11:12 AM, aperi2007<aperi2007 at gmail.com> wrote:
>> Hi,
>>
>> is compliant with the gdal/ogr rules to have a GML driver to export forward
>> a dbf when in the GML there is a class without geometry ?
>>
>> Actually the GML drivers when meet a class without geometry export it as a
>> shapefile having null geometry.
>
> Andrea,
>
> The shapefile driver should create only the .dbf (no .shp or .shx) if the
> layer type is wkbNone. However, I am not at all sure that the GML
> driver will return wkbNone for feature classes with no geometries.
> You could certainly manually set the geometry type to wkbNone
> when converting to dbf using the ogr2ogr -nlt switch with a value
> of NONE.
>
> If you think that the GML driver does not recognise features classes as
> having no geometry when it ought to then please file a ticket with an
> example file. Note that ogrinfo should report the geometry types for
> any layer with a value other than wkbUnknown.
>
> Best regards,
>
More information about the gdal-dev
mailing list