Code Monkey home page Code Monkey logo

Comments (2)

daradib avatar daradib commented on July 17, 2024

Example SQL command:

SELECT a.parcel_id AS parcel_id_a,
       b.parcel_id AS parcel_id_b,
       (ST_CollectionExtract(ST_Intersection(a.geom, b.geom), 3)) AS geom
FROM   sample.heather_farms AS a,
       sample.heather_farms AS b
WHERE  a.gid < b.gid
       AND ST_Overlaps(a.geom, b.geom);

This will return pairwise overlaps between parcels by selecting the two parcel IDs and their overlapping geometry, which can be inspected in QGIS.

Unfortunately, there are many small, sliver overlaps in typical data which need to be dealt with. I tried preprocessing with ST_SnapToGrid (to deliberately lose negligible precision), but that sometimes invalidates the geometries with self intersections (can be fixed with ST_MakeValid) and causes "jumps" in diagonal boundaries.

from spandex.

daradib avatar daradib commented on July 17, 2024

Done in #42. Doesn't ignore small sliver overlaps, but I'm leaving out that functionality for now and closing.

from spandex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.