[gdal-dev] ogr2ogr and reserved words

2012-07-13 Thread Ivan Lucena
Hi there, Is there any trick to avoid creating field names with reserved words? For example, a DBF from a shapefile can have field names like "long" and other formats may not like it. Regards, Ivan ___ gdal-dev mailing list gdal-dev@lists.osgeo.org h

Re: [gdal-dev] ogr2ogr and reserved words

2012-07-13 Thread Even Rouault
Hi Ivan, > > Is there any trick to avoid creating field names with reserved words? For > example, a DBF from a shapefile can have field names like "long" and other > formats may not like it. It is up to the output driver to do whatever sanitizing it requires. This is already done in a lot of driv

Re: [gdal-dev] ogr2ogr and reserved words

2012-07-13 Thread Ivan Lucena
Thanks Even. Very good answer as always. > ---Original Message--- > From: Even Rouault > To: Ivan Lucena > Cc: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] ogr2ogr and reserved words > Sent: Jul 13 '12 08:41 > > Hi Ivan, > > > >

Re: [gdal-dev] ogr2ogr and reserved words

2012-07-14 Thread Jukka Rahkonen
Ivan Lucena princeton-ma.us> writes: > > Hi there, > > Is there any trick to avoid creating field names with reserved words? For example, a DBF from a shapefile can > have field names like "long" and other formats may not like it. Just remembered another example: having an attribute named "ROW

Re: [gdal-dev] ogr2ogr and reserved words

2012-07-15 Thread Even Rouault
Selon Jukka Rahkonen : > Ivan Lucena princeton-ma.us> writes: > > > > > Hi there, > > > > Is there any trick to avoid creating field names with reserved words? For > example, a DBF from a shapefile can > > have field names like "long" and other formats may not like it. > > Just remembered another

Re: [gdal-dev] ogr2ogr and reserved words

2012-07-15 Thread Rahkonen Jukka
Even Rouault wrote: Selon Jukka Rahkonen : >> Ivan Lucena princeton-ma.us> writes: >> >> > >> > Hi there, >> > >> > Is there any trick to avoid creating field names with reserved words? For >> example, a DBF from a shapefile can >> > have field names like "long" and other formats may not like it.