Giter Site home page Giter Site logo

Comments (10)

TDesjardins avatar TDesjardins commented on May 22, 2024

@gmvtrmaga Could you clarify your problem? Maybe in a kind of current result vs. exprected result. I suppose you mean that the XML-output of the geometry isn't correct.

from gwt-ol.

gmvtrmaga avatar gmvtrmaga commented on May 22, 2024

@TDesjardins is that you have said.

Im expecting the query to have the same coordinates as the filter, but they are inverted. The result in the map is that, if I want to find water areas in canada I must set the area filter below Africa. Check the attached image:
screenshot_4

from gwt-ol.

TDesjardins avatar TDesjardins commented on May 22, 2024

At first sight it looks like a axis order problem. The axis order depends on the reference system. Have look at http://www.ogcnetwork.net/axisorder

Could you provide the code of the input geometry?

From my point of view the Javadoc of Coordinate isn't correct. Because 'x' isn't lon in every case.

from gwt-ol.

gmvtrmaga avatar gmvtrmaga commented on May 22, 2024

The geometry is generated by a Draw control: When I finish drawing, it sets the filter and send the request to the map server.

Indeed, it is an axis problem, but I can't understand the reason.

screenshot_1

from gwt-ol.

TDesjardins avatar TDesjardins commented on May 22, 2024

@gmvtrmaga There is a method createSpatialFilter(Geometry geometry) in your code. Have you set the srsName parameter for the spatial filter? Could you share it?

from gwt-ol.

gmvtrmaga avatar gmvtrmaga commented on May 22, 2024

screenshot_3

from gwt-ol.

TDesjardins avatar TDesjardins commented on May 22, 2024

Hm, looks ok 😄 . I think you have to figure out the point, when the coordinate order is changing. The last point is the creation of the spatial filter. Could you check if the coordinates in geometry have the order "lon lat" in method createSpatialFilter(Geometry geometry)?

from gwt-ol.

gmvtrmaga avatar gmvtrmaga commented on May 22, 2024

As I have shown in the third screenshot of the first post, the coordinates are inverted when creating a wfs Node from wfsWriteFeatureOptions. Spatial Filter is set with correct coordinates.

from gwt-ol.

TDesjardins avatar TDesjardins commented on May 22, 2024

Then you should create an issue at OpenLayers project.

from gwt-ol.

gmvtrmaga avatar gmvtrmaga commented on May 22, 2024

Ok, I will send them this issue.

Thanks.

from gwt-ol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.