Coder Social home page Coder Social logo

Comments (5)

davidraleigh avatar davidraleigh commented on June 12, 2024

What is the vertex count on that geometry?

At Planet I think we forced customers to submit about 400 vertex geometries to prevent to complex of computational geometry demand on intersection tests. Or maybe it was a bandwidth thing? Either way, is there a reason it has to have all the vertices? Maybe some of that work can be pushed onto the client?

from pgstac.

zstatmanweil avatar zstatmanweil commented on June 12, 2024

Good question! It is a very complex polygon so ~10K vertices. I think the benefit of allowing for somewhat detailed polygons for larger areas is then you can be very specific on what you capture with the intersects search if your items happen to have relatively small geometries. 10K vertices is more than needed, but the earlier versions of pgstac didn't have this limitation so I thought maybe it wasn't on purpose.

from pgstac.

davidraleigh avatar davidraleigh commented on June 12, 2024

@zstatmanweil the maintainers probably did it on purpose. probably thinking of high availability for services and not letting computational geometry bog things down.

But I agree with you, that the vertex limit should be someplace else in the service definition, so STAC maintainers who care less about availability and more about detail can have that option.

Say hello to Chips and Caitlin for me!

from pgstac.

zstatmanweil avatar zstatmanweil commented on June 12, 2024

@davidraleigh , haha will do! Its such a small geospatial world :)

Well I am happy to close it if the maintainers say it is as desired.

from pgstac.

bitner avatar bitner commented on June 12, 2024

It looks like if we change the primary key on the search_wheres table to use a hash that we can get rid of this issue. While this is definitely a bug, I would expect that performance with use geometries that large isn't going to be that great in any case!

from pgstac.

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.