TransWikia.com

Combine multiple shapefiles python

Geographic Information Systems Asked on February 21, 2021

I’m pretty new to working with shapesfiles. I’m trying to create a spatial index of addresses in NYC. I completed it using an rtree but have only done it for Manhattan. To complete the other counties in NYC I’d like to combine the shapefiles for each county. The source I’m using for the shapefiles in the NYC Pluto file (http://www.nyc.gov/html/dcp/html/bytes/dwn_pluto_mappluto.shtml#mappluto). It looks like there’s isn’t a single shapefile for the whole city. Rather there are five shapefiles, one for each county.

Can anyone please point me in the right direction to combine the shapefiles so I can run the rtree code on a singe shapefile, rather than 5.

I’m using Python.

One Answer

You may use QGIS and somebody had a question about that before.

How to merge shape files with attributes from a python script in QGIS?

There are also fiona and shapely python modules

http://www.macwright.org/2012/10/31/gis-with-python-shapely-fiona.html

Using GDAL/OGR modulues is another option http://gis-programming.com/?p=194

Answered by ncelik on February 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP