Monday, 15 August 2016

postgresql - Postgis reproject data


I have an infrastructure layer that is lat/long values and has an SRID of 4269.


I have brought this shapefile into PostGIS to try and reproject the data to 3424 (state plane of NJ) this is my query to reproject


ALTER TABLE infrastructure
ALTER COLUMN geom
TYPE Geometry(Point, 3424)

USING ST_Transform(geom, 3424);

but it still shows up as lat long values when I do the below query


enter image description here


I then brought the infrastructure shapefile into qgis and all the hundreds out points showed up in one area outside of NJ...I am not sure what i am doing wrong here



Answer



You are altering the column not the column values I think, try updating the geometry.


Update infrastructure set geom= st_transform(geom,3424)

No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...