Comments (11)
@sirws Im guessing that since its a Table it doesnt have any geometries show adding it to the map in AGO wont render anything, since it has nothing...
http://50.18.49.187/socrata/wa/3uf4-3kn2/FeatureServer/0/query -> see no geoms to map...
from koop-socrata.
Yes, but the table is in the Table of Contents of the map (like I would expect)... and when I go to show the table, it gives me the above screenshot that doesn't show the grid of data, just the count of records...
from koop-socrata.
Here is an example of a table coming from an ArcGIS Server feature service:
See how it renders data in the grid below? Even if it is a table and not a layer:
from koop-socrata.
Here is some more information. It appears that the socrata provider is returning data that isn't expected in ArcGIS clients.
Attributes should only contain simple data types, and we are returning objects:
The "phone" field has an object in it.
Also, this is a table (non-spatial) and it is returning this info in the object:
hasZ: false,
hasM: false,
geometryType: "esriGeometryPoint",
spatialReference: {
wkid: 4326
},
All of that can be dropped from a table object. ArcGIS Feature Services do not return that information for table objects.
from koop-socrata.
@sirws Awesome, Yes I think the correct course of action would be to flatten these properties into something like:
{ phone_phone_number: "123456789", ... }
We just need to be sure that those get turned into "fields" in the feature service out put as well. Probably a pretty straightforward to do in koop-socrata's model, in the toGeoJSON
method...
from koop-socrata.
Cool! Also, I am seeing records that have fields / attributes that are not in the fields array:
Note the object above has a "mobile_phone" attribute and fields collection does not contain a mobile_phone attribute:
from koop-socrata.
Right, that is an issue, if not THE issue :)
from koop-socrata.
I've got an idea of what this is going to take:
- While processing features in
toGeoJson
build a list of all attributes a feature should have (all flattened objects become fields) - A second pass on the features is then required to ensure that each feature has each field.
I'm not stoked on the 2nd pass but since each incoming may only have a subset of the feilds AND since while we process features we will actually be creating new fields (as flattened objects) we need to take a final pass and add any missing fields.
from koop-socrata.
@chelm Have you made any progress on this flattening effort? Is there a different issues for it, or is this it? Let me know if you want me to create a new issue...
from koop-socrata.
@sirws Yes flattening is in master - fd5a555#diff-8f1da6e78158e3e881a0eeceaef15258R197
from koop-socrata.
This appears to be fixed. Closing.
from koop-socrata.
Related Issues (20)
- Allow non-point geometry in Koop-Socrata (Feature Request)
- Koop-Socrata handles 1mm row datasets HOT 7
- Can't do Walk Time Analysis on simple point layer HOT 6
- NYC Socrata JSON invalid HOT 1
- Feature service count requests need to respect callbacks in querystrings
- Transfer more metadata from Socrata
- Multiple Location Column Designator not Working HOT 1
- Koop-Socrata Cache Timer Not Expiring HOT 1
- Some large datasets seem to get stuck HOT 4
- tests leave leftover logging/error messages HOT 4
- Failing to register hosts HOT 2
- Missing fields in Socrata datasets HOT 3
- Numbers being interpreted as date fields HOT 10
- enhancement: make sure the provider can create its own table in db HOT 1
- Unable to install on Windows HOT 4
- Error in the log file HOT 1
- Adding Socrata token
- Certain datasets from Socrata have incorrect spatial reference
- An in-range update of request is breaking the build 🚨 HOT 5
- Version 10 of node.js has been released
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koop-socrata.