[postgis-users] PostGis introduction doc code block seems wrong....

Regina Obe lr at pcorp.us
Wed Apr 20 07:59:11 PDT 2022


Thanks for the errata.  Corrected now.

 

From: postgis-users [mailto:postgis-users-bounces at lists.osgeo.org] On Behalf Of Jian He
Sent: Wednesday, April 20, 2022 5:12 AM
To: PostGIS Users Discussion <postgis-users at lists.osgeo.org>
Subject: [postgis-users] PostGis introduction doc code block seems wrong....

 

 

23. Validity — Introduction to PostGIS <https://postgis.net/workshops/postgis-intro/validity.html> 

last code block, 

-- Fix invalid and save the original
UPDATE nyc_neighborhoods
  SET geom = ST_MakeValid(geom),
      invalid_geom = geom
  WHERE NOT ST_IsValid(geom);

 

I think it should be:

-- Fix invalid and save the original
UPDATE nyc_neighborhoods
  SET geom = ST_MakeValid(geom),
      geom_invalid = geom
  WHERE NOT ST_IsValid(geom);

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20220420/e4353beb/attachment.html>


More information about the postgis-users mailing list