dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30706
Re: Debugging some JSON in the GIS module
The GML importer inserts "Polygon" into the "featuretype" field though, so
it is not obvious. Should ideally be changed. The GIS app accepts both
"Polygon" and "MultiPolygon".
On Tue, Jun 10, 2014 at 5:39 PM, Jason Pickering <
jason.p.pickering@xxxxxxxxx> wrote:
> Thanks Jan. That worked perfectly. I should have remembered this from
> before, as I think you have answered the same question before. :)
>
> Regards,
> Jason
>
>
>
> On Tue, Jun 10, 2014 at 5:20 PM, Jan Henrik Øverland <
> janhenrik.overland@xxxxxxxxx> wrote:
>
>> These are polygons. Just add another "[" and "]" to the coordinates to
>> make them multi-polygons and it will work.
>>
>>
>> On Tue, Jun 10, 2014 at 5:11 PM, Jason Pickering <
>> jason.p.pickering@xxxxxxxxx> wrote:
>>
>>> We have for various reasons, needed to import coordinate data directly
>>> into the database, but are having some issues displaying it in the GIS
>>> client.
>>>
>>> Here is the response, which is giving issues. See below.
>>>
>>> Here is the response.
>>>
>>> http://pastebin.com/03qxrTEs
>>>
>>> Any help would be appreciated.
>>>
>>> Best regards,
>>> Jason
>>>
>>>
>>>
>>> 1. Uncaught TypeError: Cannot read property 'length' of null
>>> core.js:2271
>>> 1. util.map.getTransformedFeatureArraycore.js:2271
>>> 2. Ext.data.JsonP.request.successcore.js:1458
>>> 3. Ext.apply.callbackext-all.js:15
>>> 4. Ext.define.handleResponseext-all.js:15
>>> 5. (anonymous function)ext-all.js:15
>>> 6. (anonymous function)
>>> getGeoJson.action?ids=LEVEL-4&ids=AWn3s2RqgAN&callback=Ext.data.JsonP.callback3:1
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
Follow ups
References