shapefile - A cross-platform streaming parser for the ESRI Shapefile spatial data format.

  •        21

For a live example, see bl.ocks.org/2dd741099154a4da55a7db31fd96a892. See also ndjson-cli for examples of manipulating GeoJSON using newline-delimited JSON streams. See Command-Line Cartography for a longer introduction. In-browser parsing of dBASE table files requires TextDecoder, part of the Encoding living standard, which is not supported in IE or Safari as of September, 2016. See text-encoding for a browser polyfill.

https://github.com/mbostock/shapefile

Dependencies:

array-source : 0.0
commander : 2
path-source : 0.1
slice-source : 0.4
stream-source : 0.3
text-encoding : ^0.6.4

Tags
Implementation
License
Platform

   




Related Projects

MapShaper - Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files

  •    MPL

Mapshaper is software for editing Shapefile, GeoJSON, TopoJSON, CSV and several other data formats, written in JavaScript. The mapshaper command line program supports essential map making tasks like simplifying shapes, editing attribute data, clipping, erasing, dissolving, filtering and more.

esri2open - this repo is an ESRI toolbox and tool(s) that export ESRI Feature Classes to open data formats, CSV, JSON, and GeoJSON

  •    Python

This repo is an ESRI toolbox and tool(s) that exports ESRI Feature Classes to open data formats, CSV, JSON, SQLite, and GeoJSON. Much of the data in government coffers is contained in spatial databases. A large percentage of government spatial data is created and managed using ESRI software. While the common interchange format, the ESRI Shapefile, is easily exported and imported by many other softwares, this data file format (the Shapefile) is not intrinsically part of the www ecology. Moreover, ESRI software does not provide an export of its generic 'feature class' (shapefile, file geodatabase, and personal geodatabase) to the most common open data file formats, CSV, JSON, and/or GeoJSON. Finally while open source tools easily transform ESRI shapefiles to open data, most government geospatial infrastructures only have ESRI tools. Lacking this basic export feature presented here, means the lion's share of government spatial data users cannot export their data to the most common open data formats.

shapefile-js - Convert a Shapefile to GeoJSON. Not many caveats.

  •    Javascript

A binary shapefile loader, for javascript. Not many caveats

geobuf - A compact binary encoding for geographic data.

  •    Javascript

Geobuf is a compact binary encoding for geographic data.Think of this as an attempt to design a simple, modern Shapefile successor that works seamlessly with GeoJSON. Unlike Mapbox Vector Tiles, it aims for lossless compression of datasets — without tiling, projecting coordinates, flattening geometries or stripping properties.

shapefile-js - A binary shapefile loader and canvas-based renderer, for javascript. Many caveats.

  •    Javascript

A binary shapefile loader and canvas-based renderer, for javascript. Many caveats.


ESRI Shapefile Reader

  •    DotNet

Shapefile is a .NET library that supports read only enumeration of ESRI shapefiles, including any metadata. All 2D shapes are supported: Point, MultiPoint, PolyLine and Polygon.

PostGIS - Spatial and Geographic objects for PostgreSQL

  •    C

PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects allowing location queries to be run in SQL. PostGIS adds extra types (geometry, geography, raster and others) to the PostgreSQL database. It also adds functions, operators, and index enhancements that apply to these spatial types.

magellan - Geo Spatial Data Analytics on Spark

  •    Scala

Magellan is a distributed execution engine for geospatial analytics on big data. It is implemented on top of Apache Spark and deeply leverages modern database techniques like efficient data layout, code generation and query optimization in order to optimize geospatial queries. The application developer writes standard sql or data frame queries to evaluate geometric expressions while the execution engine takes care of efficiently laying data out in memory during query processing, picking the right query plan, optimizing the query execution with cheap and efficient spatial indices while presenting a declarative abstraction to the developer.

us-atlas - Pre-built TopoJSON from the U.S. Census Bureau.

  •    Shell

This repository provides a convenient mechanism for generating TopoJSON files from the Census Bureau’s cartographic boundary shapefiles, 2015 edition. A TopoJSON topology containing three geometry collections: counties, states, and nation. The geometry is quantized, projected using d3.geoAlbersUsa to fit a 960×600 viewport, and simplified. This topology is derived from the Census Bureau’s cartographic county boundaries, 2015 edition. The state boundaries are computed by merging counties, and the nation boundary is computed by merging states, ensuring a consistent topology.

world-atlas - Pre-built TopoJSON from Natural Earth.

  •    Shell

This repository provides a convenient mechanism for generating TopoJSON files from Natural Earth’s vector data, version 2.0.0. A TopoJSON topology containing two geometry collections: countries and land. The geometry is quantized, but not projected; it is in spherical coordinates, decimal degrees. This topology is derived from the Natural Earth’s Admin 0 country boundaries, 1:110m small scale, version 2.0.0. The land boundary is computed by merging countries, ensuring a consistent topology.

BytesFall ShapeFiles

  •    PHP

BytesFall ShapeFiles is a PHP library that allows reading and editing of an ESRI ShapeFile and all the associated information.

SSIS ShapeFileSource

  •    

SSIS ShapeFileSource imports ESRI Shapefiles, and the associated attribute file (.dbf). The component based on the free Shapefile C Library.

GeoVision

  •    

Add-In for Microsoft Visio. User can easily draw geographical data to Visio drawing page via this add-In.

Geo-Spatial Library

  •    

The purpose of this project is to build a .NET library of tools that simplifies GeoCoding addresses, Polygon hit-testing and conversion of custom GeoSpatial data to popular formats (e.g. GeoRSS, ESRI Shapefile, KML, etc.) using a standard interfaces.

Shp2KML

  •    Java

The project will produce a small standalone Java application which will allow a user to convert ESRI Shapefiles (.shp) to the Google Earth KML format. This will allow ESRI Shapefile points, lines, and polygons to be viewed in Google Earth.

Little Shape Convertion

  •    C

This is a very simple tool to convert from ARC\INFO EXPORT (.E00) to ESRI ShapeFile.

osmnx - OSMnx: Python for street networks

  •    Python

Retrieve, construct, analyze, and visualize street networks from OpenStreetMap: full overview. You can just as easily download and work with building footprints, elevation data, street bearings/orientations, and network routing.

geojson-google-maps - A simple utility to convert GeoJSON objects to Google Maps vector objects (Marker, Polyline, Polygon)

  •    Javascript

Google Maps now has proper support for GeoJSON, so you should probably use that instead. GeoJSON is used to create Google Maps API v3 vectors (Marker, Polyline, Polygon) from GeoJSON objects (Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, Feature, GeometryCollection, FeatureCollection). Specifically, I'm translating some GeoJSON types to arrays of Google Maps vectors as there aren't really Google Maps equivalents of MultiPoint, MultiLineString, etc.

python-geojson - Python bindings and utilities for GeoJSON

  •    Python

This library implements all the GeoJSON Objects described in The GeoJSON Format Specification. All object keys can also be used as attributes.

geojson-vt - Slice GeoJSON into vector tiles on the fly in the browser

  •    Javascript

A highly efficient JavaScript library for slicing GeoJSON data into vector tiles on the fly, primarily designed to enable rendering and interacting with large geospatial datasets on the browser side (without a server).Created to power GeoJSON in Mapbox GL JS, but can be useful in other visualization platforms like Leaflet and d3, as well as Node.js server applications.