Closed (fixed)
Project:
Views GeoJSON
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 May 2012 at 00:46 UTC
Updated:
12 Nov 2014 at 06:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jeffschulerHmm. I just tried and had no issues adding a layer of views_geojson-exported data to Tilemill.
Where is your data coming from (what's the source you're using in the view's Format settings? GeoField?) Is it a float before it gets to Views GeoJSON? I'm seeing my lat/lon exported in the geojson file as floats.
Comment #1.0
andrew_mallis commentedcorrect, public URL of json
Comment #2
andrew_mallis commentedIt seems as though Tilemill is very specific about escaped characters and encoded entities.
Removing a rendered link and using the absolute URL value instead cleared up this issue for me.
We should document in some manner what does and does not work, though.
Comment #3
jeffschulerTilemill, (or more specifically, OGR,) does not seem to like escaped Unicode characters in GeoJSON layers. I've opened an issue in Tilemill's queue for that.
Let's see where that goes, but as far as I can see, we're producing standard-compliant JSON and don't need to change anything. Folks importing GeoJSON into Tilemill will need to strip HTML from their fields until that gets fixed. I think this issue serves as sufficient documentation.
Comment #4
jeffschulerAs pointed out in the Github Tilemill issue, the problem is only with escaped Unicode chars with uppercase hex digits in them.
Here's a patch to temporarily hack D7 core to encode escaped Unicode chars using lowercase hex -- until this is fixed in GDAL and TileMill.
Again, this is a patch to Drupal 7.14 core, not to Views_GeoJSON.
Comment #5
jeffschulerPatch core, strip HTML, or wait for GDAL + TileMill fix.
Comment #6
jeffschulerThere's a new proposed approach for Tilemill GeoJSON parsing, since json-c in GDAL is going to take some time, and Mapnik has a new parser that Tilemill can leverage...
Comment #6.0
jeffschulerissue isn't related to floats.
Comment #7
polI guess I can close this now.