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_SHAPE",
"--debug", "ON"
,"-t_srs", "EPSG:4269"
,"-s_srs", "EPSG:26912"
};
ogr2ogr.main(cmd);


Mike


From: gdal-dev [mailto:[email protected]] On Behalf Of Bo Victor 
Thomsen
Sent: Saturday, April 16, 2016 2:29 AM
To: [email protected]
Subject: Re: [gdal-dev] Shapefile to SQL Server

I know, what the abbreviation "EPSG" stands for !

And I can't count the number of times I made this particular spelling mistake !!

And four times in a row in one mail !!!

At least it's weekend...


Regards Bo Victor

Den 15/04/16 kl. 20:16 skrev Jukka Rahkonen:

Bo Victor Thomsen <bo.victor.thomsen <at> gmail.com> writes:







    The shape file in the zip is not in projection espg:4269. It's in

    utm zone 12N. Replace the "-a_srs", "ESPG:4269" with "-t_srs",

    "ESPG:4269" and "-s_srs", "ESPG: code_for_UTM_12N"

    This causes ogr2ogr to reproject you data to the correct projection



And it is written "EPSG" as in European Petroleum Survey Group.



-Jukka Rahkonen-





_______________________________________________

gdal-dev mailing list

[email protected]<mailto:[email protected]>

http://lists.osgeo.org/mailman/listinfo/gdal-dev

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to