Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

104
Visualizações
TURF booleanwithin is not working as expected

im currently trying to validate that a polygon is completely within another polygon. But there is a use case for more complicated polygons where it should return false but turf understand it as a valid one.

Here is the sandbox.

https://codesandbox.io/embed/adoring-lamarr-6mi8wv?fontsize=14&hidenavigation=1&theme=dark

And here are the polygons. https://gist.github.com/tomascenteno42/107c19531ebbcf8f8106c27282bf3891

Thanks (:

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The problem is that, currently, booleanWithin only handles a very limited case of testing convex polygons. That's because it only checks if the vertices of the 1st polygon are within the 2nd polygon.

This might not be get fixed before v7.

For now you might consider to use de9im library.

It's from turf's issue page.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda