From 0e0bc9638b6c567bf32f7dec16d2504a89a69f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Henriot?= <142150521+shenriotpro@users.noreply.github.com> Date: Sun, 29 Dec 2024 20:21:53 +0100 Subject: [PATCH] manual: use consistent dict style (#1475) --- docs/manual.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/manual.rst b/docs/manual.rst index 36e55fa7..f9d3f519 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -862,12 +862,12 @@ Tower using a point geometry with UTM coordinates in zone 31N. ... 'type': 'Point', ... 'coordinates': (448252, 5411935) ... }, - ... 'properties': dict([ - ... ('name', 'Eiffel Tower'), - ... ('height', 300.01), - ... ('view', 'scenic'), - ... ('year', 1889) - ... ]) + ... 'properties': { + ... 'name': 'Eiffel Tower', + ... 'height': 300.01, + ... 'view': 'scenic', + ... 'year': 1889 + ... } ... } A corresponding scheme could be: @@ -876,12 +876,12 @@ A corresponding scheme could be: >>> landmarks_schema = { ... 'geometry': 'Point', - ... 'properties': dict([ - ... ('name', 'str'), - ... ('height', 'float'), - ... ('view', 'str'), - ... ('year', 'int') - ... ]) + ... 'properties': { + ... 'name': 'str', + ... 'height': 'float', + ... 'view': 'str', + ... 'year': 'int' + ... } ... } The coordinate reference system of these landmark coordinates is ETRS89 / UTM