Last active
February 25, 2020 13:19
-
-
Save owexroasia/39809474093538b867871793540217d9 to your computer and use it in GitHub Desktop.
post gis
This file contains hidden or 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
sql ="select st_isvalid(ar.geom::geometry) from assessment_ranges ar where ar.assessment_id=871762" | |
rcd = ActiveRecord::Base.connection.exec_query(sql) | |
rcd.rows | |
ST_AsGeoJson | |
st_isvalid | |
https://postgis.net/docs/ST_IsValidDetail.html | |
https://postgis.net/docs/ST_IsValidReason.html |
44
0-> 225450
1->220330
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
select st_isvalid(ar.geom::geometry) from assessment_ranges ar where ar.assessment_id=44581940