Skip to content

Instantly share code, notes, and snippets.

@owexroasia
Last active February 25, 2020 13:19
Show Gist options
  • Save owexroasia/39809474093538b867871793540217d9 to your computer and use it in GitHub Desktop.
Save owexroasia/39809474093538b867871793540217d9 to your computer and use it in GitHub Desktop.
post gis
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
@owexroasia
Copy link
Author

select st_isvalid(ar.geom::geometry) from assessment_ranges ar where ar.assessment_id=44581940

@owexroasia
Copy link
Author

44
0-> 225450
1->220330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment