exshape v0.2.3 Exshape
This module just contains a helper function for working wtih zip archives. If you have a stream of bytes that you want to parse directly, use the Shp or Dbf modules to parse.
Summary
Functions
Given a zip file path, unzip it and open streams for the underlying shape data
Types
Functions
Given a zip file path, unzip it and open streams for the underlying shape data.
Returns a list of all the layers, where each layer is a tuple of layer name, projection, and the stream of features
By default this unzips to /tmp/exshape_some_uuid
. Make sure
to clean up when you’re done consuming the stream. Pass the :working_dir
option to change this destination.
By default this reads in 1024 * 512 byte chunks. Pass the :read_size
option to change this.
[{layer_name, projection, feature_stream}] = Exshape.from_zip("single_layer.zip")