GithubHelp home page GithubHelp logo

Comments (19)

germrothdaniel avatar germrothdaniel commented on May 18, 2024 5

Done! https://github.com/germrothdaniel/MicrosoftBuildingsToFeatureclass

from usbuildingfootprints.

ggirton avatar ggirton commented on May 18, 2024 3

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.

slibby avatar slibby commented on May 18, 2024 3

With the new 1.1 release today, the files now convert successfully with JSON to Features in ArcGIS Pro

from usbuildingfootprints.

nmpeterson avatar nmpeterson commented on May 18, 2024 2

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.

jharpster avatar jharpster commented on May 18, 2024 1

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.

CJuice avatar CJuice commented on May 18, 2024 1

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.

avf-1992 avatar avf-1992 commented on May 18, 2024

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.

MattWLeonard avatar MattWLeonard commented on May 18, 2024

^ 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.

avf-1992 avatar avf-1992 commented on May 18, 2024

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.

bowlesgsrcx avatar bowlesgsrcx commented on May 18, 2024

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.

germrothdaniel avatar germrothdaniel commented on May 18, 2024

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.

jharpster avatar jharpster commented on May 18, 2024

I suggest you make your own repo and post a link to it here so others can find it. Thanks!

from usbuildingfootprints.

kannes avatar kannes commented on May 18, 2024

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.

MattWLeonard avatar MattWLeonard commented on May 18, 2024

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.

avf-1992 avatar avf-1992 commented on May 18, 2024

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.

avf-1992 avatar avf-1992 commented on May 18, 2024

@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.

bradysmith66 avatar bradysmith66 commented on May 18, 2024

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.

vvascanus avatar vvascanus commented on May 18, 2024

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.

jgravois avatar jgravois commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.