diff options
Diffstat (limited to 'docs/ref/contrib/gis/tutorial.txt')
| -rw-r--r-- | docs/ref/contrib/gis/tutorial.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt index 1f360362eb..c8a6dfb5b6 100644 --- a/docs/ref/contrib/gis/tutorial.txt +++ b/docs/ref/contrib/gis/tutorial.txt @@ -452,12 +452,15 @@ with the following code:: 'mpoly' : 'MULTIPOLYGON', } - world_shp = os.path.abspath(os.path.join(os.path.dirname(__file__), 'data', 'TM_WORLD_BORDERS-0.3.shp')) + world_shp = os.path.abspath( + os.path.join(os.path.dirname(__file__), 'data', 'TM_WORLD_BORDERS-0.3.shp'), + ) def run(verbose=True): - lm = LayerMapping(WorldBorder, world_shp, world_mapping, - transform=False, encoding='iso-8859-1') - + lm = LayerMapping( + WorldBorder, world_shp, world_mapping, + transform=False, encoding='iso-8859-1', + ) lm.save(strict=True, verbose=verbose) A few notes about what's going on: |
