Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #2210 #2327 fixed synch tool and cql_filter creation #2410

Closed
wants to merge 8 commits into from

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Nov 17, 2017

Description

Cql Filter was wrongly created if a spatial filter was present. the crs was not the native one of the layer
Also for 0 value in numeric editors creates problem and the use of ID and other attributes.

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

What is the current behavior? (You can also link to an open issue here)

  • if sync was active and it was drawn a spatial filter then the layer were hidden. (cql messed up)
  • Also if in a numeric editor tha value 0 was used an empty cql filter was created ()
  • if ID and another attribute was used to filter the feature grid, the cql_filter was not correctly parsed and the layer was hidden as consequence.
    What is the new behavior?
    Actually the layer is correctly filtered in the three cases and for all their combinations.

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Maybe

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
I'm not sure 100% that this PR introduces a breaking change in the projects that uses this. There could be some problem related to the fix made in drawsupport when a polygon is drawn because in ol it was missing the last vertix

Other information:
For testing this try to draw a spatial filter and then activate the sync. the features should be filtered based on the drawn spatial filter.
NOTE: ID and all reserved keyword must be wrapped by "" in order to parse correctly the cql_filter parameter

@MV88 MV88 self-assigned this Nov 17, 2017
@MV88 MV88 requested a review from offtherailz November 17, 2017 14:02
@ghost ghost added In Test labels Nov 17, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 80.846% when pulling 8d385a8 on MV88:2210_synch_featuregrid into ddeaa57 on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 80.846% when pulling 8d385a8 on MV88:2210_synch_featuregrid into ddeaa57 on geosolutions-it:master.

@offtherailz
Copy link
Member

Try to use reqtypeWhitelist.generic to proxy spatialreference.org

@MV88
Copy link
Contributor Author

MV88 commented Nov 22, 2017

closing and opening a new one with conflicts solved

@MV88 MV88 closed this Nov 22, 2017
@MV88 MV88 removed the request for review from offtherailz November 22, 2017 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MapSync + Spatial filter doesn't work with OL Sync map with Filter sometimes disables the layer
4 participants