I am using a WFS service that serves Polygon and Multipolygon geometries. But I do not know ehich ones. So I am converting the wfs response to feature.

this.http.get(url, { responseType: "text" })
  .subscribe((response) => {
    const feature = new GML2().readFeature(response);
    /// get vertices ???

How can I get vertices (corner coordinates) of feature geoemtry? We do not know if that is Polygon or Multipolygon.

  • 5
    call feature.getGeometry().getType() – Mike Jun 22 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.