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

Integrate vector querying for vector layers #1104

Closed
4 tasks done
simboss opened this issue Oct 10, 2016 · 9 comments
Closed
4 tasks done

Integrate vector querying for vector layers #1104

simboss opened this issue Oct 10, 2016 · 9 comments

Comments

@simboss
Copy link
Member

simboss commented Oct 10, 2016

Currently there is no support for querying vector layers in the MapStore product although we have widgets for doing all the bits.

Likewise MapStore 1 we need to be able to to query vector layers via WFS when available.

TASKS:

  • Remove useless code from existing codebase
  • Enable drawing on map for spatial filter
  • Enable tool only for WMS vector layers (get the info from the map configuration, either saved from catalog or not)
  • Complete results panel: see related issue Complete the results panel #1320
@offtherailz
Copy link
Member

offtherailz commented Oct 11, 2016

Maybe I created this story that seems to be duplicated. #1121

Should I close it and port the discussion and proposal here?

@mbarto
Copy link
Contributor

mbarto commented Oct 11, 2016

I would say yes.

Il 11/ott/2016 12:40, "Lorenzo Natali" notifications@github.com ha
scritto:

Maybe I created this story that seems to be duplicated. #1121
#1121

Should I close it and port the discussion here?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1104 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACpGYJakNviAfU2Mum_Fp23v8eQhOA1Sks5qy2eLgaJpZM4KSUW7
.

@offtherailz
Copy link
Member

offtherailz commented Oct 17, 2016

Porting the duplicated US details here :

We should so integrate the current query panel and the feature grid to create an advanced search tool for the layers that covers the functinalities available in the old QueryPanel + FeatureManager + FeatureGrid available in MapStore (1).

Estimated tasks and decisions:

  • Provide a way to select the layer to query (e.g. a button in the TOC, context-menu). This should open the panel. This should be a panel like the toc (maybe from the opposite side) or inside it.
  • Add support to retrieve attributes and types from DescribeLayer ( current tool is configured statically).
  • Support numeric attribute validation
  • The search action should switch the same panel to the table of results, and provide a button to back to search.

Advanced features:

  • retrieve existing values from WPS, with pagination (requires changes in the widget library used, see react-select and react-select-virtualized

@simboss simboss added this to the 0.4 milestone Oct 17, 2016
@simboss simboss added the ready label Oct 17, 2016
@Gnafu Gnafu self-assigned this Oct 24, 2016
@Gnafu Gnafu added in progress and removed ready labels Oct 26, 2016
@Gnafu
Copy link
Contributor

Gnafu commented Nov 2, 2016

Here is a mockup of how it will look like:

qp1
qp2
qp3

@mbarto
Copy link
Contributor

mbarto commented Nov 2, 2016

Let's put pagination into account...

@simboss
Copy link
Member Author

simboss commented Nov 2, 2016

We are missing the export of features as well as the ability to zoom to a single row on the map.
We need to have the same functionalities that we had on MapStore 1, the layour can be completely different though.

@Gnafu
Copy link
Contributor

Gnafu commented Nov 2, 2016

The following is designed for desktop users (mobile will have a separate user story), it has:

  • Button to zoom to single feature
  • Column sorting
  • Pagination (should we also consider the infinite loading?)
  • Highlight results on map
  • Export (the server should be queried for supported formats)
    • "Current page export" and "All pages export" options should also be available/configurable

results

@simboss
Copy link
Member Author

simboss commented Nov 3, 2016

+1 on infinite loading, although I would expect something that allows me to jump to end and when I reach the end to jump to front.

Not sure this is feasible according to all WFS versions and paging. The same applies for the # of pages you are showing there.

@Gnafu
Copy link
Contributor

Gnafu commented Nov 17, 2016

Real pagination can be done only if the server supports it:

  • it responds with the "totalFeatures"
  • it supports "startIndex" and "count" parameters

It the server doesn't, the pagination will be "fake", loading a reasonable amount of results and browsing them without server interaction. ("reasonable" to be defined)

@simboss simboss modified the milestones: R52016, R42016 Nov 23, 2016
@offtherailz offtherailz self-assigned this Nov 29, 2016
offtherailz added a commit to offtherailz/MapStore2 that referenced this issue Dec 13, 2016
 - Improves the style of the contained components (spatial filter details)
 - Allows drawing for query form.
offtherailz added a commit that referenced this issue Dec 13, 2016
- Improves the style of the contained components (spatial filter details)
 - Allows drawing for query form.
mbarto added a commit to mbarto/MapStore2 that referenced this issue Dec 21, 2016
Gnafu added a commit that referenced this issue Dec 21, 2016
Partial work for #1104, enabled search tool if layer has search property
offtherailz added a commit that referenced this issue Jan 16, 2017
* Add search options from the catalog

When adding a WMS layer from the catalog, MapStore will try to get a describeLayer for it, to find out if the layer can be searched via WFS.
If possible, the search object is added to the layer.

 * DescribeLayers is implemented to avoid ogc-schemas lib (old functionality has been mantained for backward compatibility, as describeLayer with require-ensure pattern.
 * Add tests for the JavaScript WMS API.
offtherailz added a commit to offtherailz/MapStore2 that referenced this issue Jan 20, 2017
 - Removed useless properties and code
 - Add the option to display icon for zoom to feature
offtherailz added a commit that referenced this issue Jan 20, 2017
- Removed useless properties and code
 - Add the option to display icon for zoom to feature
@Gnafu Gnafu closed this as completed Jan 27, 2017
@ghost ghost removed the in progress label Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants