Tag Info

Hot answers tagged

3

In Python the os module provides a quick and dirty way to run a command line argument such as the one you posted as part of a larger script as outlined in the Python documentation import os command = "ogr2ogr -f \"ESRI Shapefile\" E:\\CABWorking\\MapINFO2SHP\\SHP\\LincsBoundary.shp E:\\CABWorking\\MapINFO2SHP\\MapINFOData\\Lincolnshire.tab" ...


1

reference: Location GEOMETRY NOT NULL, spatial indexes should be created on GEOMETRY types. CREATE TABLE `test_poly` ( `Id` int(11) NOT NULL, `Name` varchar(255) NOT NULL, `Location` GEOMETRY NOT NULL, PRIMARY KEY (`Id`), SPATIAL KEY (`Location`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; source: ...


1

I know that this response is 6 months late, but you could use the development build found here - http://www.gisinternals.com/sdk/ or you could build your own. In order to accomplish what you are wanting to do without obtaining a third party encoding sdk, you will need the OpenJPEG library (v2) library - http://www.gdal.org/frmt_jp2openjpeg.html


1

Could you check if the records that weren't imported all have valid data? This sounds similar to the behavior exhibited by QGIS at this thread. In that thread, QGIS stops importing once it encounters a record with invalid data. As QGIS uses GDAL/OGR too, I'm guessing it's exhibiting similar behavior here. Granted, this is a file geodatabase while the one in ...



Only top voted, non community-wiki answers of a minimum length are eligible