Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

225
Views
Por qué el lector WKT de openlayers devuelve Feature<Geometry> y el lector WKB devuelve FeatureLike

Ok, estoy tratando de hacer la transición de WKT a WKB almacenado en la base de datos. El primer paso fue reescribir el lector de OL's de WKT a WKB .

Sin embargo, lo que noté es que WKB devuelve FeatureLike en lugar de Feature<Geometry> y no puedo realizar acciones como feature.setId() o feature.setStyle() .

 const feature = new WKT().readFeature(props.wktGeometry); feature.setId() // works feature.setStyle() // works

dentro

 const feature = new WKB().readFeature(props.wkbGeometry); feature.setId() // doesn't work as it's 'FeatureLike' feature.setStyle() // as above

¿Por qué sucede eso y cómo evitarlo o cómo convertir correctamente FeatureLike a Feature<Geometry> ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!