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

224
Views
Why openlayers WKT reader returns Feature<Geometry> and WKB reader returns FeatureLike

Ok so I am trying to transition from WKT to WKB being stored in the database. First step was to rewrite OL's reader from WKT to WKB.

What I noticed however is that WKB returns FeatureLike instead of Feature<Geometry> and I can't perform actions like feature.setId() or feature.setStyle().

const feature = new WKT().readFeature(props.wktGeometry);

feature.setId() // works
feature.setStyle() // works

into

const feature = new WKB().readFeature(props.wkbGeometry);

feature.setId() // doesn't work as it's 'FeatureLike'
feature.setStyle() // as above

Why is that happening and how to prevent it or how to properly convert FeatureLike to 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!