Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Rodj
Luminary Alumni
Luminary Alumni

Trouble loading geojson polygons

Hi Everyone,

I'm trying to load a GeoJSON file (http://www.rfs.nsw.gov.au/feeds/majorIncidents.json) that contains both point and polygon data. I can't seem to work out a way to load the polygons using the GeoAnalytics connector. Regardless of what option I use for the expected geometry type only the points are loaded. I don't know how the connector differentiates between the geometry types in the json file so I can't work out how to configure this correctly. Does anyone have any ideas that might point me in the right direction?

Thanks,

Rod

Labels (1)
1 Solution

Accepted Solutions
Patric_Nordstrom
Employee
Employee

Usually works to first load areas and then points in a second call. But nested geometry collection can be tricky. 

An option is to make a rest connection and stitch together the points and the multi polygons, see the load script.

Thanks,

Patric

View solution in original post

3 Replies
Patric_Nordstrom
Employee
Employee

Usually works to first load areas and then points in a second call. But nested geometry collection can be tricky. 

An option is to make a rest connection and stitch together the points and the multi polygons, see the load script.

Thanks,

Patric

Rodj
Luminary Alumni
Luminary Alumni
Author

Thanks Patric, I'll give it a go when I'm back with access to my server tomorrow (Australian time). I've tried loading either points or polygons first, but specifying either just gives me an error. Auto returns only the points, but when you are mapping bushfire areas I really need those shapes.

Cheers,

Rod

Rodj
Luminary Alumni
Luminary Alumni
Author

A big thank you @Patric_Nordstrom , I didn't realise you had provided that example with the file I was working with, I assumed you were just providing me an example. I really appreciate that.

Cheers,

Rod