Giter VIP home page Giter VIP logo

Comments (6)

stempler avatar stempler commented on May 25, 2024

Any background on this? Do you have concrete use cases in mind where this would be needed?

from hale.

thorsten-reitz avatar thorsten-reitz commented on May 25, 2024

I got a request via the INSPIRE thematic clusters forum with the following rationale:

I am asking this because if storing counterclockwise spatial data in a PostGIS database and if records will be added or edited with qGIS for example, (or if a shapefile is imported in PostGIS) then only the added/edited records will be stored clockwise, so in the same table will have both types> clockwise and counter clockwise. Even if PostGIS and qGIS have no problem with this, still a mapping problem exist.

It's also a pretty common transformation function in other spatial ETL software, so I am not surprised people expect such functionality.

from hale.

stempler avatar stempler commented on May 25, 2024

Makes sense in that case. At least if PostGIS by default does not assume a specific winding order that we are unaware of.

It's also a pretty common transformation function in other spatial ETL software, so I am not surprised people expect such functionality.

Well in hale right now using this transformation function will prevent the user from doing anything else with the geometry.

from hale.

thorsten-reitz avatar thorsten-reitz commented on May 25, 2024

PostGIS allows - via a constraint - to control which winding order is used, but doesn't do automated conversion AFAIR.

I am aware of the limitation you mention, which is part of the reason why we implemented it first as a Writer Option. We could also go a third way: Provide the functionality as a helper function for Groovy Functions/Custom Functions.

from hale.

stempler avatar stempler commented on May 25, 2024

PostGIS allows - via a constraint - to control which winding order is used

If we can determine this for a geometry or geometry column we could also apply that in the PostGIS geometry handling on hale side (like the CRS conversion).

from hale.

thorsten-reitz avatar thorsten-reitz commented on May 25, 2024

Here's some info on the PostGIS functions:

http://postgis.net/docs/ST_ForceRHR.html
http://postgis.net/docs/ST_ForceLHR.html

Not sure how we could extract their usage. Also, they seem to fail for some large and/or complex polys.

from hale.

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.