Closed hhkaos closed 5 years ago
Or maybe... @jgravois @slibby @ajturner can help me here ^_^
Ah, and I forgot to mention that at first I tried to load the boundaries directly into the cell and it was working with a couple of them, but then, I had a problem with the maximum number of characters I could add to a single cell (50000), that's why I started using a local file with the boundaries.
thanks Daniel :)
@hhkaos the first thing I would do to debug is open up Chrome Dev Tools or Fiddler and inspect the requests/responses issued by the web-map-viewer to koop that return responses that fail to render. That or those requests will likely have querystring parameters that are modifying the request and have an effect on the response. Feel free to paste that request URL here and I can also take a look at the response; it's possible that something is missing from the response that the map-viewer needs; if we find what's missing we can try to track down the source of the omission.
@hhkaos - also, upgrade your instance with yarn so that you are using FeatureServer 2.12.0 and winnow 1.15.2. That will put us at the same starting point.
Thanks Rich!, I have been out of the office but next week I'll follow your advices. Thank you very much for your help!!
Hi @rgwozdz sorry for taking so long to answer. I've updated my instance with Yarn and I have notice a warning message is showing up in the console: WARNING: requested provider has no "idField" assignment. This can cause errors in ArcGIS clients
.
So I have added the idField
to the metadata but I think it is still taking the OBJECTID from somewhere else.
If have also uploaded the source code to this repo and tried to deploy again the NOW service. Not sure if it worked properly, is there any way to check by URL which versions of the FeatureServer and Winnow server are been used by the service?
I have also checked the console and I can not see any error message related to this service:
The one you see is because of a Diigo extension I have installed in Chrome (but it is always there ;P).
The viewer is requesting this URLs:
But none seem to fail... and the service is still been identified as a table when it should be identified as a feature service 😞.
Thanks again!, Raul
@hhkaos is the repo https://github.com/equipoimcre/09mapaeries/ private? I get a 404.
Sorry Rich, you're right, my colleagues asked me to make it private temporarily (because some dependencies need to be fixed).
@hhkaos are you able to share your config/production.json
file with me? I can help debug if you send that my way.
I have share it by email with you (because of the private key), thank you very much ! :smile:
Looks like you need to define the geometryType
in the metadata
object of your provider (https://github.com/equipoimcre/09mapaeries/blob/master/sheets.js#L22-L26):
geometryType: 'MultiPolygon'
When I add that in, I get the data returned as type Feature Layer
.
Awesome Rich! It looks like it is partially working but for some reason not all the geometries are been displayed. I'll check again asap. Thanks!!!
mmmm I have notice the geometries are there but they are not displayed by default, for some strange reason when I span&zoom the map different geometries become visible as you can see here:
Do you know why? :worried:
That's odd. I'll take a look.
@hhkaos - The data in your idField
column are not being cast as integers in your provider; rather, they arrive from google-sheets as a character string. As a result your OBJECTIDs are also character-strings, but they need to be integers in the range of 0 to 2147483647; you should actually see a warning in the console stating this problem with your OBJECTIDs. I've seen issues like this cause rendering problems before. Try explicitly casting your idField
data to an integer in the formatFeature
function.
Awesome @rgwozdz it works now!! Thank you very very much!
Do you think we can improve the documentation about Koop providers to add this issues?:
idField
and the geometryType
to the metadata propertyidField
is an integer?Thank you very very much Rich, I owe you a beer/coke in the next DevSummit ;D
Is the any way to clear the cache? (I'm updating the spreadsheet but I can't see the changes in the service yet) ^_^
@hhkaos - very happy I was able to assist. Improvement of the docs is something I'm hoping to undertake very soon. The idField
and geometryType
metadata are noted in the Metadata section of this page but perhaps it's not quite visible enough. Any suggestion on better placement or organization of this page so that things are more clear?
As far as clearing the cache, I think you may just have to stop and restart the koop server.
You are completely right Rich.
Maybe I would add to Koop:
idField
in an Integer
I would assume many people won't carefully read many things.
I'm glad to start contributing if you point me to the right file where this enhancements should be done (I'm still not very familiar with the whole project :sweat_smile:).
Thanks!
We have you're first two suggestions covered here: https://github.com/koopjs/winnow/blob/master/src/executeQuery.js#L84-L86. That was the warning that gave me the clue about your issue. It is just a warning though, and lets Koop continue to run.
Thanks for the feedback.
Hi @dmfenton,
I'm playing a little bit with this provider but I'm having some issues:
callback(null, geojson)
though the "Content" tab to generate a new item with the hosted feature serviceSo, I have no idea on what's happening, is there any way I can test/debug the output from Koop? Something like a "FeatureService linter", or do you have any clue on what's going on?
By the way, I also tried to use "the Exporter" but it doesn't work here, right?
These are the modifications I have done:
Thanks in advance!