I have a geopandas dataframe in Python. Is there a way to check geometry validity under the ESRI scheme as opposed to the OGC spec using shapely/geopandas/some hacky way, or am I constrained to using arcpy?

  • Just guessing, but I suspect that it's unlikely anyone other than ESRI have implemented the ESRI way in a widely available standard library. Of course, you can always implement the ESRI way yourself, but that would be a lot of work. So technincally, the answer is "yes" (implement it yourself), but practically, I'm guessing that answer is "no". Commented Oct 19, 2023 at 1:30
  • The main difference is in the way inversions are handled. If something is OGC clean, ArcPy can "fix" it as necessary.
    – Vince
    Commented Oct 19, 2023 at 2:25
  • What about GDAL/OGR? Maybe this post will help? gis.stackexchange.com/questions/204141/…
    – GBG
    Commented Oct 19, 2023 at 15:04
  • @GBG ideally in python but I'll consider ogr and take a look at the question.
    – jesnes
    Commented Oct 19, 2023 at 16:52
  • @jesnes there is a GDAL/OGR Python library at PyPI so no need to do a GDAL installation and run command line GDAL statements. See here: pypi.org/project/GDAL
    – GBG
    Commented Oct 19, 2023 at 17:43


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.