Comments (19)
Done! https://github.com/germrothdaniel/MicrosoftBuildingsToFeatureclass
from usbuildingfootprints.
I used the R package simple features (sf) to write a shape file and load into Scan/US (proprietary mapping, but it can read Arc shapefiles) to look at, it was just 3 lines:
json_in <- setfilepath("DistrictofColumbia.json", fromdir) sf.buildings <- read_sf(json_in) write_sf(sf.buildings,"DistrictofColumbia.shp")
from usbuildingfootprints.
With the new 1.1 release today, the files now convert successfully with JSON to Features
in ArcGIS Pro
from usbuildingfootprints.
I've had success using this python toolbox from within ArcGIS Pro. (My fork of the project has been updated for Python 3 compatibility, as the original has been archived.) I was unable to use it in ArcGIS Desktop because of memory limitations.
from usbuildingfootprints.
We don't use Arc that often. Ian Dees split up the files into census tract bite size chunks here: https://twitter.com/iandees/status/1013791681945198594
Also there is a discussion ongoing over at reddit here.
from usbuildingfootprints.
Built off of @germrothdaniel 's repository. Made a standalone python script, no ESRI Toolbox tool. Was built using ESRI ArcPro Python 3.6 version. Edit parameters, as indicated by comments in code, and run it from an IDE. Ran it successfully on Maryland dataset of approximately 1.6 million polygons without issue.
https://github.com/CJuice/MicrosoftBuildingsToFeatureclass
from usbuildingfootprints.
Hi there, I am having a similar problem. I tried converting the JSON to a geojson file yet both online converters I tried never returned an output. Additionally, I ran the JSON to Features geoprocessing tool to no avail (same error as OP) both within an mxd and in ArcCatalog. I can't bring the JSON into ArcGIS as-is. I downloaded Maine.json
If you have any solutions to downloading, converting, or accessing this data, please help!
Thanks!
from usbuildingfootprints.
^ FWIW, I've been told by 2 friends (who are more knowledgable of the file structure) that it already appears to be a geojson file, even though the extension is only .json.
from usbuildingfootprints.
It does have a geometry type (polygon), which I think is one of the prerequisites for it to be a geojson file. So at least that makes sense! Thanks!
But about the not-being-able-to-access-it....
from usbuildingfootprints.
When using the JSON to Features tool in ArcGIS Pro, I received the following error:
001558: Error parsing .json file .
Description
The JSON structure does not conform to ESRI-JSON standard for feature sets.
Solution
Review the JSON structure in the input file. The JSON must have at least the geometryType, spatialReference, fields, and features (with geometry and attributes) property.
Unfortunately, I could not open the json file to edit it as it is too large.
--gary
from usbuildingfootprints.
I've written a python (2.7) script that converts the JSON values to polygon features. I'll get it packaged up and posted tomorrow. I have no idea how to use github so can anyone give me any advice? Do I add it to this project or make my own repo and post the link to that here?
from usbuildingfootprints.
I suggest you make your own repo and post a link to it here so others can find it. Thanks!
from usbuildingfootprints.
You can load these files in QGIS just fine. It simply takes "a while" and due to the lack of spatial indexing, even when zoomed in, it is not fun. But you can convert them to a different format like GeoPackage or a Shapefile to get the benefits of those.
If your QGIS runs out of memory, it might be due to an older version of GDAL. Use GDAL 2.3.x for extreme memory savings when dealing with JSON data.
I made a single GeoPackage (25G) you can grab at https://www.datenatlas.de/geodata/public/sources/usbuildingdata.blob.core.windows.net/usbuildings/California.zip and I am also running conversions of each single file to GPKG and Shapefiles now. No guarantees that these will stay up for long, mostly meant as PoC. ;)
from usbuildingfootprints.
I figured QGIS might just take a while to load the statewide file, so I let it try for 2 hours while I was doing something else on a different machine, and still nothing. But now I got the tract-size geojson files from Ian Dees which were linked above, so I'm good to go!
from usbuildingfootprints.
Thanks all! I will check out some of the options and the Reddit thread, hopefully it works out for me! (I have a feeling it will.)
from usbuildingfootprints.
@nmpeterson THANK YOU for the python toolbox you recommended. I was able to use it in 10.5, as we don't use Pro yet at work. The only issue I had was trying to run the Import GeoJSON File tool with the existing folder name "geojson-madness-master". It gave me an error "ExecuteError: ERROR 000354: The name contains invalid characters". So, I changed the hyphens to underscores (geojson_madness_master) and re-ran the tool. Worked like a charm and I now have the data accessible as a polygon feature class on my machine!
Thanks again! Y'all are awesome.
from usbuildingfootprints.
Using QGIS worked to export to shape worked for me to get the file into a shapefile format to use in ArcGIS. After comparing to our jurisdiction's footprint layer and photo collection, I am assuming that the photos for our state (Oregon) was from around 2012. Is there documentation showing the date the were derived from?
from usbuildingfootprints.
For splitting a jile into manageable arbitrary-sized chunks, use GSplit3, http://www.gdgsoft.com/gsplit/
Worked like a charm. Just copy the first three lines from the first part into the subsequent parts,
from usbuildingfootprints.
With the new 1.1 release today, the files now convert successfully with
JSON to Features
in ArcGIS Pro
very cool! my guess is that the initial error was caused by #15
from usbuildingfootprints.
Related Issues (20)
- 2018 buildings disappearing from 2021 edition
- Question: What % of all US buildings are estimated to be covered? HOT 1
- More details about polygonization algorithm? HOT 2
- Footprints for Ukraine HOT 1
- Extract polygons for a specific city from State GeoJson HOT 1
- which version of EfficientNet?
- Alternative to GeoJSON? HOT 5
- FootPrint of Nepal
- Satellite Image of Kathmandu in 2015 (Pre and Post Earthquake)
- Alaska missing a lot of areas/buildings?
- Unable To Download Data HOT 3
- Update has fewer buildings for US
- Footprints less accurate than they were before. HOT 2
- Wrong shape files showing up for Aberdeen Proving Grounds, Harford County, Maryland, US
- Tall buildings not showing up correctly in Chicago HOT 1
- This repo is missing a LICENSE file
- This repo is missing important files HOT 1
- Delta in QGIS
- I need to get my Microsoft points back. Help me please. HOT 1
- Building Heights HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usbuildingfootprints.