Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

103
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda