Skip to main content

Geoformat is a GDAL/OGR library overlayer

Project description

# Welcome to Geoformat

## Introduction

Geoformat is GDAL / OGR overlayer wiht MIT licence.
The library aim is to simplify loading and OGR 'DataSource' and 'Layer' manipulations.
Until now this library is in Alpha mode. This means that for the moment the structure of this library is not
full oriented object compatible.

## Installation

```sh
$ pip install osm2geojson
```

## Basic manipulations



### Geoformat structure

![Strucutre of Geoformat](https://framagit.org/Guilhain/Geoformat/raw/master/images/geoformat.png)

### Open a geocontainer

A container is an equivalent to folder or a database containing one or several geolayer.

```py
import geoformat

commune_path = 'data/FRANCE_IGN/COMMUNE_2016_MPO_L93.shp'
gare_path = 'data/FRANCE_IGN/GARES_PT_L93.shp'

layer_list = [commune_path, gare_path]

geocontainer = geoformat.ogr_layers_to_geocontainer(layer_list)

print(geocontainer['layers'].keys())

# >>dict_keys(['COMMUNE_2016_MPO_L93', 'GARES_PT_L93'])
```

### Open a geolayer

A geolayer is an equivalent to a file or a table in database containing one or several features with attibutes and/or
geometry.

### Print data geolayer

Sometime it can be uselful to print in terminal geolayer's attributes.

### Write geolayer in a OGR compatible GIS file

You can obviously convert a geolayer in a compatible OGR file format.

### Write a container in OGR compatible dataSource

Like geolayer you can write a geoformat container in a folder or a GRG compatible datasource.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geoformat-20190509.post17.tar.gz (23.0 kB view details)

Uploaded Source

File details

Details for the file geoformat-20190509.post17.tar.gz.

File metadata

  • Download URL: geoformat-20190509.post17.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7

File hashes

Hashes for geoformat-20190509.post17.tar.gz
Algorithm Hash digest
SHA256 9ae66a53386772a5b64680129b33b207c990f7c22d212bf35b370295dde05533
MD5 304699b2c0a0481ed6ab0ea3f136c93f
BLAKE2b-256 68bc9385850d6e96db1f0387dc5f9b90434f8d25dc3d252ba661f547f5c4b239

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page