Re: [gdal-dev] Shapefile to SQL Server

2016-04-18 Thread Mike Colbert
Thank you, this fixed it. Here is the working command: String[] cmd = { "-overwrite", "-f", "MSSQLSpatial", "MSSQL:Server=xxx;Database=xxx;Uid=xxx;Pwd=xxx", "C:\\Users\\mcolbert\\Downloads\\UGRB_Ozone_NAA\\UGRB_Ozone_NAA.shp", "-lco", "GEOM_TYPE=geography", "-lco", "GEOM_NAME=geog", "-nln", "CM_S

[gdal-dev] Shapefile to SQL Server

2016-04-15 Thread Mike Colbert
Hi, I have a Java web app with a SQL Server database and I would like to add support for importing shapefiles. The shapes will then be used to determine if geographic locations we have defined in our system are within the areas defined by the shapes. I've gone down the path of using ogr2ogr f