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

Map Filter - Intersect relation with Extent not with center point #104

Closed
vladymir30 opened this issue Oct 25, 2017 · 2 comments
Closed

Comments

@vladymir30
Copy link

Hello team!,

I'm just trying to figure out how to find metadata using the map filter, but when I try to use the option "Intersects" just appear metadata that the centroid is touched by the map extent, and I have a lot of metadata that should appear if the map filter with intersects works with the metadata extent... theres something that i'm not doing well or some configuration???

image

Best regards,

Vladymir

@umacgillivray
Copy link
Collaborator

It's querying based on the center point of the metadata rather than the extent of the metadata. We had some performance issues with large datasets, that's why we made this change. We are going to make this configurable, and allow the user to change in a coming release. For now you could modify:

https://github.com/Esri/geoportal-server-catalog/blob/master/geoportal/src/main/webapp/app/search/SpatialFilter.js

Comment out these lines:

    qry = {"geo_bounding_box": {
      "envelope_cen_pt" : {
        "top_left" : {
          "lat" : env.ymax,
          "lon" : env.xmin
        },
        "bottom_right" : {
          "lat" : env.ymin,
          "lon" : env.xmax
        }
      }
    }};

@vladymir30
Copy link
Author

Thank's I made the changes, and work fine!

smrgeoinfo pushed a commit to iedadata/geoportal-server-catalog that referenced this issue Dec 5, 2017
@zguo zguo closed this as completed May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants