When I use ogr2ogr to convert a shapefile to KML there are no "Name" or
"Description" fields in the output and all attributes are lined up.

 

When I try to create a KML file from my code and populate the data both
"Name" and "Description" fields are included in the output.

 

I have tried not a variety of things in the call to KML's
CreateDataSource

            Not setting any options (i.e. passing a NULL)

            Setting both to empty strings

CSLSetNameValue( ogrOptions, "NameField", "");

CSLSetNameValue( ogrOptions, "DescriptionField", "");

 

      Setting both to "None"

CSLSetNameValue( ogrOptions, "NameField", "None");

CSLSetNameValue( ogrOptions, "DescriptionField", "None");

 

 

None of the above will remove the 2 fields from the output KML as a
result all real attribute values are sifted up 2 places.  

 

I looked in the ogr2ogr.cpp and I do not see any parameters getting
passed into the call.

 

Does anyone have any idea what might be causing this?

 

Bruce

 

 

 




This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this 
 
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to