Import JSON into ArcGIS Online

18190
4
Jump to solution
10-23-2015 09:26 AM
ChrisHolmes
Occasional Contributor III

Good day,

The following link to me seems to indicate that I can directly import JSON data into a feature service in AGOL. But for the life of me I cannot figure out how. Can anybody show me what I'm missing. Or am I reading it wrong and it isn't possible. What I'd ultimately like to be able to do is the have the feature service link to the url where the JSON data is served from so that the feature service can always be up to date.

https://community.esri.com/groups/geodev/blog/2014/12/11/new-geojson-and-interop-capabilities-for-ar...

Here's a sample showing what my JSON data is formatted like:

Thanks everyone!

{

   "Data" : {

      "crs" : {

         "properties" : {

            "name" : "urn:ogc:def:crs:EPSG::4326"

         },

         "type" : "name"

      },

      "features" : [

         {

            "geometry" : {

               "coordinates" : [

                  -113.971122645723,

                  51.0556601452916

               ],

               "type" : "Point"

            },

            "id" : 0,

            "properties" : {

               "Address" : "1836 3 ST SE",

               "Community" : "FOREST",

               "CompletionDate" : "2010/12/22",

               "ExternalFilenum" : "BP2010-11111",

               "StickerNumber" : "10",

               "URL" : "#",

               "Ward" : "10"

            },

            "type" : "Feature"

         },

         {

            "geometry" : {

               "coordinates" : [

                  -114.041387596826,

                  51.0365724925218

               ],

               "type" : "Point"

            },

            "id" : 1,

            "properties" : {

               "Address" : "4 8 ST NE",

               "Community" : "BRIDGESIDE",

               "CompletionDate" : "2006/12/09",

               "ExternalFilenum" : "BP2006-22222",

               "StickerNumber" : "5",

               "URL" : "#",

               "Ward" : "09"

            },

            "type" : "Feature"

         },

         {

            "geometry" : {

               "coordinates" : [

                  -114.00531425851,

                  51.0513769479828

               ],

               "type" : "Point"

            },

            "id" : 2,

            "properties" : {

               "Address" : "1 LEN DR SE",

               "Community" : "END",

               "CompletionDate" : "2002/10/11",

               "ExternalFilenum" : "BP2002-33333",

               "StickerNumber" : "1",

               "URL" : "#",

               "Ward" : "09"

            },

            "type" : "Feature"

         },

         {

            "geometry" : {

               "coordinates" : [

                  -114.138878544584,

                  50.9761875223377

               ],

               "type" : "Point"

            },

            "type" : "Feature"

         }

      ],

      "type" : "FeatureCollection"

   }

}

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

You can import GeoJSON like any other file. That "Data" property in your JSON is not valid GeoJSON though, so maybe that is causing an issue.

GeoJSON Specification

I have a video here where I upload GeoJSON into AGO.

View solution in original post

4 Replies
ChrisHolmes
Occasional Contributor III

Nobody?? Did I post this in the wrong place? Can anyone recommend a more appropriate space/place for me to post this question?

Thanks,

Chris

0 Kudos
ReneRubalcava
Frequent Contributor

You can import GeoJSON like any other file. That "Data" property in your JSON is not valid GeoJSON though, so maybe that is causing an issue.

GeoJSON Specification

I have a video here where I upload GeoJSON into AGO.

ChrisHolmes
Occasional Contributor III

Thanks Rene!

0 Kudos
BrendanDuffy
New Contributor II

So how do I plug in GeoJSON dynamically and not from a static file?