Canadian-Geospatial-Platform / geoview

Canadian Geospatial Platform Viewer / Visualiseur de la Plateforme Géospatiale Canadienne
Other
20 stars 31 forks source link

[BUG] ESRI Feature Layer only loads 1 out of 3327 features #2218

Open jaredkinger opened 3 weeks ago

jaredkinger commented 3 weeks ago

Is there an existing issue for this?

Current Behavior

This ESRI Feature layer: https://proxyinternet.nrcan.gc.ca/arcgis/rest/services/CLSS-SATC/CLSS_Administrative_Boundaries/MapServer/0 does not render all features. When you view the data table there is only a single feature listed even though there are 3327 features for this layer. No errors appear to be produced in the console or notifications panel

Expected Behavior

All features for the layer should be rendered on the map and available in the data table.

Steps To Reproduce

  1. Go here: https://wordpress.dev.geo.ca/wp-content/geoview/examples/legal3.html
  2. The map should load without error but nothing is rendered
  3. Go to the Data Table tab and view the entries for the layer. There should only be 1 featured listed

Anything else?

Example Config: legal3.json

RAMP Version: https://geo.ca/wp-content/Viewer/config-int-LEGAL-iframe-map-en.html

I noticed in the data table there is data that includes characters from indigenous languages. That's the only thing that jumped out at me as being different from other layers but I am not sure if that would even affect the rendering.

jolevesq commented 3 weeks ago

@jaredkinger Projection is not supported Spatial Reference: 3979 (3979)

Is it really 3979?

jaredkinger commented 3 weeks ago

As far as I know that projection is correct. This layer was previously rendering for me. I can't recall exactly when it stopped rendering. What's odd is that the other layer from that map server renders just fine.

DamonU2 commented 1 week ago

This seems to be an issue with the service. It has a maxRecordCount of 1000, but fails when asked to return more than around 750. https://proxyinternet.nrcan.gc.ca/arcgis/rest/services/CLSS-SATC/CLSS_Administrative_Boundaries/MapServer/0/query?f=json&outfields=OBJECTID&where=OBJECTID+%3C+800 The above link returns: { "error": { "code": 500, "message": "Error performing query operation", "details": [] } } while: https://proxyinternet.nrcan.gc.ca/arcgis/rest/services/CLSS-SATC/CLSS_Administrative_Boundaries/MapServer/0/query?f=json&outfields=OBJECTID&where=OBJECTID+%3C+750 returns the expected features.