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 #2423

Closed
wants to merge 14 commits into from

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Nov 22, 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)

  • No

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 22, 2017
@MV88 MV88 requested a review from offtherailz November 22, 2017 15:31
@ghost ghost added In Test labels Nov 22, 2017
@MV88 MV88 removed In Test labels Nov 22, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 81.168% when pulling a2dbf3a on MV88:MV88-2210-2327_synch_tool into 7264b6a on geosolutions-it:master.

@@ -514,6 +514,13 @@ class DrawSupport extends React.Component {
geometry.setCoordinates(coordinates);
}

if (this.props.drawMethod === "Polygon") {
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should remove this and add close polygon function to the WKT filter creation

@@ -907,6 +907,8 @@
},
"noFeaturesAvailable": "Nessun risultato disponibile",
"errorSaving": "C'è stato un errore durante il salvataggio",
"errorProj": "Errore durante la riproiezione al sistema nativo del layer. Non è presente la definizione del crs nativo.",
"errorProjFetch": "Errore durante il recupero della definizione della stringa proj dal sito spatialreference.org. Lo strumento di sincronizzazione non può applicare il filtro spaziale.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the localized string

@geosolutions-it geosolutions-it deleted a comment Nov 22, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 81.127% when pulling 94e9206 on MV88:MV88-2210-2327_synch_tool into 7264b6a on geosolutions-it:master.

@geosolutions-it geosolutions-it deleted a comment Nov 23, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 81.127% when pulling 18f87d1 on MV88:MV88-2210-2327_synch_tool into 7264b6a on geosolutions-it:master.

@MV88
Copy link
Contributor Author

MV88 commented Nov 23, 2017

closing and reopening due to coflicts

@MV88 MV88 closed this Nov 23, 2017
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