Skip to content

Instantly share code, notes, and snippets.

@ebrelsford
Last active December 21, 2015 05:39
Show Gist options
  • Save ebrelsford/6258702 to your computer and use it in GitHub Desktop.
Save ebrelsford/6258702 to your computer and use it in GitHub Desktop.
Convert a table with coordinates in NAD_1983_StatePlane_New_York_Long_Island_FIPS_3104_Feet (common for NYC data) to lat and lon in 4326. We first convert the coordinates from feet to meters.
UPDATE graffiti_locations
SET the_geom = ST_Transform(
ST_SetSRID(
ST_MakePoint(x * 0.3048006096012192, y * 0.3048006096012192),
32118),
4326
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment