Skip to main content
# 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 geoformat
```

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

Download files

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

Source Distribution

geoformat-20190511.tar.gz (21.8 kB view details)

Uploaded Source

File details

Details for the file geoformat-20190511.tar.gz.

File metadata

  • Download URL: geoformat-20190511.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.8.1 pkginfo/1.2.1 requests/2.18.1 setuptools/36.2.7 requests-toolbelt/0.8.0 clint/0.5.1 CPython/3.6.3 Linux/4.13.0-46-generic

File hashes

Hashes for geoformat-20190511.tar.gz
Algorithm Hash digest
SHA256 bdfe459ece0702fadb5de4a65115b611e8c2b2845ebbef87e1fd074c8e042cd7
MD5 8fc17c6edadaa0682b27a69ce3f1fc30
BLAKE2b-256 1ea46a6e6f0f7c4a272330b476d046c2739d7225284d0f18d1796da70f3a4b27

See more details on using hashes here.

Release history Release notifications | RSS feed

20260910

2 files

20260828

2 files

20260827

2 files

20260315

2 files

20250922

2 files

20250910

2 files

20250825

2 files

20250823

2 files

20250103.1

2 files

20241115

2 files

20240907

1 file

20240906

1 file

20240718

1 file

20240519

1 file

20240407

1 file

20240225

1 file

20240215

1 file

20240211

1 file

20240113

1 file

20231226

1 file

20231225

1 file

20231224

1 file

20231223

1 file

20231222

1 file

20230620

1 file

20230421

1 file

20230116

1 file

20230103

1 file

20221125

1 file

20221123

1 file

20221012

1 file

20220715

1 file

20220625

1 file

20220614

1 file

20220510

1 file

20220205

1 file

20211104

1 file

20210913

1 file

20210725

1 file

20210720

1 file

20210507

1 file

20210423

1 file

20210315

1 file

20210314

1 file

20210308.3

1 file

20210308.2

1 file

20210308

1 file

20210307

1 file

20210212

1 file

20210122

1 file

20210121

1 file

20210116

1 file

20201210

1 file

20201020

1 file

20201012

1 file

20201009

1 file

20201006

1 file

20200906

1 file

20200726

1 file

20200617

1 file

20200424

1 file

20200317

1 file

20200311

1 file

20200309

1 file

20200225

1 file

20200220

1 file

20200202

1 file

20200130.post1

1 file

20200130

1 file

20200118

1 file

20200113

1 file

20200110

1 file

20191224

1 file

20191215

1 file

20191212

1 file

20191209.post1

1 file

20191208

1 file

20191127

1 file

20191126

1 file

20190918

1 file

20190904

1 file

20190809

1 file

20190523

1 file

20190522

1 file

20190512.post1

1 file

20190512

1 file

This release

20190511 This release

1 file

20190510.post7

1 file

20190510.post6

1 file

20190510.post5

1 file

20190510.post4

1 file

20190510.post3

1 file

20190510.post2

1 file

20190510.post1

1 file

20190509.post9

1 file

20190509.post7

1 file

20190509.post6

1 file

20190509.post5

1 file

20190509.post4

1 file

20190509.post2

1 file

20190509

1 file

20190508.post2

1 file

2020.726

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page