Re: [gdal-dev] Creating new column with filename, scripting shapefiles

2012-11-29 Thread Joe Larson
Even- your guidance and correction was the solution that worked for me. Thank you! _ joe On Nov 29, 2012, at 11:00:47AM, Even Rouault wrote: > Le jeudi 29 novembre 2012 16:28:33, Joe Larson a écrit : >> I have tried these three methods to add a filename column while scripting a >> folder of sh

Re: [gdal-dev] Creating new column with filename, scripting shapefiles

2012-11-29 Thread Etienne Tourigny
On Thu, Nov 29, 2012 at 3:54 PM, Chaitanya kumar CH wrote: > Joe, > > What was the full warning message about the normalized/laundered field name? > Field name is modified when the name is longer than 10 characters or when a > field with same name exists. > Check the name of the newly created fiel

Re: [gdal-dev] Creating new column with filename, scripting shapefiles

2012-11-29 Thread Even Rouault
Le jeudi 29 novembre 2012 16:28:33, Joe Larson a écrit : > I have tried these three methods to add a filename column while scripting a > folder of shapefiles, with a Bash script - which results in `Warning 6: > Normalized/laundered field name` & `ERROR 1: SQL Expression Parsing Error: > syntax erro

Re: [gdal-dev] Creating new column with filename, scripting shapefiles

2012-11-29 Thread Joe Larson
Chaitanya - I believe the normalized/laundered message is a non-issue at this point. I only get that message when I repeatedly run my Bash script against the folder of shapefiles - so it's changing the 'filename' column to 'filename_1' when creating a new column. I really like your idea of sqli

Re: [gdal-dev] Creating new column with filename, scripting shapefiles

2012-11-29 Thread Chaitanya kumar CH
Joe, What was the full warning message about the normalized/laundered field name? Field name is modified when the name is longer than 10 characters or when a field with same name exists. Check the name of the newly created field. As per the update command, I don't think the update command is impl

[gdal-dev] Creating new column with filename, scripting shapefiles

2012-11-29 Thread Joe Larson
I have tried these three methods to add a filename column while scripting a folder of shapefiles, with a Bash script - which results in `Warning 6: Normalized/laundered field name` & `ERROR 1: SQL Expression Parsing Error: syntax error` messages and NULL values in the created column : #1 for f