The original shapefile specification https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf informs about filenames: "All letters in a file name are in lower case on operating systems with case sensitive file names."
I think that it makes sense that GDAL converts the non-standard names of shapefiles into lower case layer names. You can override that by running ogr2ogr with the -nln (new layer name) option. You can write a script that reads the filename and inserts it literally as a value of -nln. Ogr2ogr cannot do that automatically for you. You probably know that an identifier having mixed case letters in its name is so called "demited identifier" and you must use double quotes around the name in the SQL queries but if you have a reason for that it is your choise. -Jukka Rahkonen- paul.malm wrote > When I import a shape layer to a postgis db with ogr2ogr, the table-name > only gets lower characters (railroads) even though the shapefile is named > like RailRoads.shp. Is there a way to force the parser to use the same > characters as the filename -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
