Using Pro to Import Microsoft Nationwide Building Footprint Data (JSON)

745
1
Jump to solution
07-31-2019 01:58 PM
GregConiglio
New Contributor III

Hello!  I am not sure how many of you are aware of Microsoft's program to use machine learning to map building footprints nationwide

https://github.com/Microsoft/USBuildingFootprints

ESRI has an ArcGIS Online site to view this data (https://www.arcgis.com/home/item.html?id=f40326b0dea54330ae39584012807126) but I'd like to convert this JSON data to a shapefile for our own purposes.

I used Python in ArcGIS Pro 2.3, because documentation stated that you need to provide feature type if this is GeoJSON (as opposed to just JSON)

arcpy.JSONToFeatures_conversion(r"H:\GIS\NewYork.geoJSON", r"H:\GIS\NewYork2.shp", 'POLYGON')

it runs almost to the end and then I get this:

"arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
Unexpected end of file while looking for closing single or double quote; state : inPropertyName; buffer : ,"geome
Failed to execute (JSONToFeatures)."

Wondering if anyone has come across this before... seems like this should be a popular dataset.  The file is a bear to try and open in a TextEditor to edit! (NY State is over 1GB!)

Thanks!

0 Kudos
1 Solution

Accepted Solutions
GregConiglio
New Contributor III

I figure it out....   The first download got cut off and it was not the complete JSON file.  When I ran the JSON To Features Tool in ArcGIS Pro 2.3 (from the command line so I could specify the feature type), it worked! Only took 22 minutes for all of New York State!

View solution in original post

1 Reply
GregConiglio
New Contributor III

I figure it out....   The first download got cut off and it was not the complete JSON file.  When I ran the JSON To Features Tool in ArcGIS Pro 2.3 (from the command line so I could specify the feature type), it worked! Only took 22 minutes for all of New York State!