Opened 5 years ago

Closed 5 years ago

#4597 closed defect (fixed)

[doc] ST_SetSRID should explain difference with ST_Transform

Reported by: komzpa Owned by: komzpa
Priority: medium Milestone: PostGIS 3.0.1
Component: documentation Version: master
Keywords: Cc:

Description

A person claims they transformed their dataset into 3857 from 4326 and ST_DWithin "does not work". Upon investigation they used ST_SetSRID instead of ST_Transform. Our manual does not mention ST_Transform vs. ST_SetSRID on ST_SetSRID function manual.

Change History (1)

comment:1 by robe, 5 years ago

Resolution: fixed
Status: assignedclosed

This looks like it's already addressed.

http://postgis.net/docs/manual-3.0/ST_SetSRID.html

I see it in the note:

[Note]	

This function does not transform the geometry coordinates in any way - it simply sets the meta data defining the spatial reference system the geometry is assumed to be in. Use ST_Transform if you want to transform the geometry into a new projection.
Note: See TracTickets for help on using tickets.