Last active
August 29, 2015 14:18
-
-
Save cindygis/45d04f91816c546afe34 to your computer and use it in GitHub Desktop.
Spatially enables a table in SQL that contains valid coordinates, to create a spatial view for use in ArcMap.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT GIS_ID, GEOMETRY::STPointFromText('POINT(' + CONVERT(varchar(50), Longitude) + ' ' + CONVERT(varchar(50), Latitude) + ' )', 4326) AS Location | |
FROM tbl_random | |
WHERE Longitude > 0 # Checks if there are valid coordinates for Eastern Hemisphere |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment