tangopapa

InsertCursor into an SDE Feature Class (Point) in WebMercator Projection help

Discussion created by tangopapa on Feb 27, 2014
Latest reply on Feb 27, 2014 by tangopapa
Hi,

Setup:

I have a SDE with a feature class created (in web Mercator projection).  I'm trying to add new rows using arcpy and use the following (assume everything preceding this works fine)

                currentCursor = arcpy.da.InsertCursor(self.currentFeatureClass,("time_dt_utc","SHAPE@XY"))
                currentCursor.insertRow((datetime.datetime.utcnow(),(-50,-50)))

The row gets added with no issues but the point does not appear anywhere near -50 & -50 (lat/long) coords.  They appear close to the 0,0.

If I do the exact same thing on a FeatureClass that has the standard Plate Caree WGS84 system the points appear in the correct place...  What's going on and how can I fix it for the Web Mercartor Feature Class?  Thanks!

T

Outcomes