-
Notifications
You must be signed in to change notification settings - Fork 14
Refactor geojson creation in Minerva #269
Comments
We have few issues related to GeoJSON and Minerva. GeoJSON is a very important format for Minerva. So I would like to fix the following issues for now:
|
any geojson --> (minerva --> adapter) --> geojs-friendly-geojson --> geojs |
|
I created OpenGeoscience/geojs#556 to address this issue. It should take care of the worst of the performance problems by no longer generating multiple feature objects. After doing some more thinking (and experimenting), I don't think there is much use for creating a "reduced" geojson specification as I proposed last week. What I was trying to get at was avoiding copying the data when assembling the features internally. This would be possible using the d3 renderer, but for GL, we need to assemble the VGL buffers and do other processing on the data (such as triangulation), so copying the data is unavoidable at the moment. If want to avoid the overhead of copying data arrays in the future, we will have to talk about a lower level interface to our feature classes that accept raw buffers (typed arrays) rather than JSON derived objects. I think the big unknown at the moment is how we handle styling features from GeoJSON. I baked in the ability to provide styles statically in the Finally, we should look into simplifying the geometries at some point in the pipeline. People will always attempt to load an unrealistically large files... we don't want to crash their browser. For point features, we can do sampling and clustering. For polylines, there is simplifyjs. |
I agree.
+1. |
@aashish24 @jbeezley @manthey Is this still a valid issue? |
No description provided.
The text was updated successfully, but these errors were encountered: