diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-04-09 22:34:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-09 22:34:43 +0200 |
| commit | b6bacc64045cd1c01e8405e35d11a98c014945f5 (patch) | |
| tree | 933c7233d3afc42e41ce1228911849feeb09f922 /docs/source | |
| parent | ee46eee200d0df6a01fb410d466af37652eb149b (diff) | |
| parent | 9e590916a2664af180d404844d380f666892933f (diff) | |
| download | PROJ-b6bacc64045cd1c01e8405e35d11a98c014945f5.tar.gz PROJ-b6bacc64045cd1c01e8405e35d11a98c014945f5.zip | |
Merge pull request #1418 from OSGeo/backport-1417-to-6.0
[Backport 6.0] DOC: update line numbers in dev quickstart example
Diffstat (limited to 'docs/source')
| -rw-r--r-- | docs/source/development/quickstart.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/source/development/quickstart.rst b/docs/source/development/quickstart.rst index 960cddbf..267270fb 100644 --- a/docs/source/development/quickstart.rst +++ b/docs/source/development/quickstart.rst @@ -35,7 +35,7 @@ this in detail. .. literalinclude:: ../../../examples/pj_obs_api_mini_demo.c :language: c - :lines: 48 + :lines: 49 :dedent: 4 Next we create the ``PJ`` transformation object ``P`` with the function @@ -51,7 +51,7 @@ details. .. literalinclude:: ../../../examples/pj_obs_api_mini_demo.c :language: c - :lines: 50-52 + :lines: 51-53 :dedent: 4 PROJ uses it's own data structures for handling coordinates. Here we use a @@ -62,17 +62,17 @@ for further details. .. literalinclude:: ../../../examples/pj_obs_api_mini_demo.c :language: c - :lines: 56 + :lines: 57 :dedent: 4 -The coordinate defined above is transformed with ``proj_trans_coord``. For this +The coordinate defined above is transformed with ``proj_trans``. For this a ``PJ`` object, a transformation direction (either forward or inverse) and the coordinate is needed. The transformed coordinate is returned in ``b``. Here the forward (``PJ_FWD``) transformation from geodetic to UTM is made. .. literalinclude:: ../../../examples/pj_obs_api_mini_demo.c :language: c - :lines: 59-60 + :lines: 60-61 :dedent: 4 The inverse transformation (UTM to geodetic) is done similar to above, @@ -80,14 +80,14 @@ this time using ``PJ_INV`` as the direction. .. literalinclude:: ../../../examples/pj_obs_api_mini_demo.c :language: c - :lines: 61-62 + :lines: 62-63 :dedent: 4 Before ending the program the allocated memory needs to be released again: .. literalinclude:: ../../../examples/pj_obs_api_mini_demo.c :language: c - :lines: 65-66 + :lines: 66-67 :dedent: 4 |
