I am trying to import a Shapefile with polygon features into MSSQL database with this command:
ogr2ogr -f "MSSQLSpatial" "MSSQL:server=***;uid=***;pwd=***;database=***" "D:\GeoData\processed\usage_land.shp" -a_srs "EPSG:4326" -nlt "POLYGON" -nln "import_usage" -progress -skipfailures
Import does work so far but the geometry column ogr_geometry stays NULL. Any ideas how to get this feature working? Which command am I missing?
ogrinfo
say about the shapefile - most likely issue is multipolygon to polygon columnthe_geom
?ogr_geometry
initially, but I added-lco "GEOMETRY_NAME=geometry"
for my purpose--skipfailures
and see if there is an error