1

ArcGIS Server 10.1.1 SQL Server Standard 2012 Current workflow is user submits a table (text file) containing lat-long data (same spatial reference each time); SQL Server Integration services pushes this data into an SQL table. Data is viewed as an XY Event Layer in ArcGIS Desktop and published to AGS.

The ideal workflow is to to utilize a Query Layer instead of a XY Event Layer (according to ESRI).

How do I get these XY (Lat-Long) fields into the spatial column?

At this point in the workflow, I think we would be limited to SQL commands (or something within SSIS); the table is a text file going into SSIS so I doubt we'd be able to add an appropriately formatted column/field which would could then be mapped/loaded into the spatial column of the target SQL table.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked May 3, 2013 at 15:40
0

1 Answer 1

2

Create a computed column using the Geometry type in SQL. The computed text in this case was:

([geometry]::STGeomFromText(((('POINT('+CONVERT([varchar](20),[Long]))+' ')+CONVERT([varchar](20),[Lat]))+')',(4326)))

Now the table can be added as a query layer within ArcMap.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
answered Jul 26, 2013 at 12:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.