@crossbind/port-proj-wasm 2.0.0-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/LICENSE +34 -0
  2. package/README.md +12 -0
  3. package/crossbind.build.js +1 -0
  4. package/crossbind.config.js +8 -0
  5. package/dist/prebuilt/CMakeLists.txt +57 -0
  6. package/dist/prebuilt/wasm-wasm32-mt-release/crossbind-emccflags.fingerprint +1 -0
  7. package/dist/prebuilt/wasm-wasm32-mt-release/include/geodesic.h +837 -0
  8. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/common.hpp +489 -0
  9. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/coordinateoperation.hpp +2163 -0
  10. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/coordinates.hpp +115 -0
  11. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/coordinatesystem.hpp +892 -0
  12. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/crs.hpp +1597 -0
  13. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/datum.hpp +863 -0
  14. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/io.hpp +1420 -0
  15. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/metadata.hpp +474 -0
  16. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/nn.hpp +385 -0
  17. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj/util.hpp +781 -0
  18. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj.h +2299 -0
  19. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj_constants.h +987 -0
  20. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj_experimental.h +52 -0
  21. package/dist/prebuilt/wasm-wasm32-mt-release/include/proj_symbol_rename.h +317 -0
  22. package/dist/prebuilt/wasm-wasm32-mt-release/include/projapps_lib.h +68 -0
  23. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj/proj-config-version.cmake +52 -0
  24. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj/proj-config.cmake +79 -0
  25. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj/proj-targets-release.cmake +19 -0
  26. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj/proj-targets.cmake +108 -0
  27. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj/proj4-targets-release.cmake +19 -0
  28. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj/proj4-targets.cmake +108 -0
  29. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj4/proj-targets-release.cmake +19 -0
  30. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj4/proj-targets.cmake +108 -0
  31. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj4/proj4-config-version.cmake +52 -0
  32. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj4/proj4-config.cmake +79 -0
  33. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj4/proj4-targets-release.cmake +19 -0
  34. package/dist/prebuilt/wasm-wasm32-mt-release/lib/cmake/proj4/proj4-targets.cmake +108 -0
  35. package/dist/prebuilt/wasm-wasm32-mt-release/lib/libproj.a +0 -0
  36. package/dist/prebuilt/wasm-wasm32-mt-release/lib/pkgconfig/proj.pc +14 -0
  37. package/dist/prebuilt/wasm-wasm32-mt-release/share/bash-completion/completions/projinfo +51 -0
  38. package/dist/prebuilt/wasm-wasm32-mt-release/share/doc/proj/AUTHORS.md +33 -0
  39. package/dist/prebuilt/wasm-wasm32-mt-release/share/doc/proj/COPYING +34 -0
  40. package/dist/prebuilt/wasm-wasm32-mt-release/share/doc/proj/NEWS.md +3404 -0
  41. package/dist/prebuilt/wasm-wasm32-mt-release/share/man/man1/cct.1 +350 -0
  42. package/dist/prebuilt/wasm-wasm32-mt-release/share/man/man1/cs2cs.1 +516 -0
  43. package/dist/prebuilt/wasm-wasm32-mt-release/share/man/man1/geod.1 +255 -0
  44. package/dist/prebuilt/wasm-wasm32-mt-release/share/man/man1/gie.1 +494 -0
  45. package/dist/prebuilt/wasm-wasm32-mt-release/share/man/man1/proj.1 +318 -0
  46. package/dist/prebuilt/wasm-wasm32-mt-release/share/man/man1/projinfo.1 +832 -0
  47. package/dist/prebuilt/wasm-wasm32-mt-release/share/man/man1/projsync.1 +223 -0
  48. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/CH +22 -0
  49. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/GL27 +23 -0
  50. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/ITRF2000 +24 -0
  51. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/ITRF2008 +94 -0
  52. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/ITRF2014 +55 -0
  53. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/ITRF2020 +91 -0
  54. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/deformation_model.schema.json +582 -0
  55. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/nad.lst +142 -0
  56. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/nad27 +810 -0
  57. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/nad83 +745 -0
  58. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/other.extra +53 -0
  59. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/proj.db +0 -0
  60. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/proj.ini +59 -0
  61. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/projjson.schema.json +1174 -0
  62. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/triangulation.schema.json +214 -0
  63. package/dist/prebuilt/wasm-wasm32-mt-release/share/proj/world +214 -0
  64. package/dist/prebuilt/wasm-wasm32-st-release/crossbind-emccflags.fingerprint +1 -0
  65. package/dist/prebuilt/wasm-wasm32-st-release/include/geodesic.h +837 -0
  66. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/common.hpp +489 -0
  67. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/coordinateoperation.hpp +2163 -0
  68. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/coordinates.hpp +115 -0
  69. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/coordinatesystem.hpp +892 -0
  70. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/crs.hpp +1597 -0
  71. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/datum.hpp +863 -0
  72. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/io.hpp +1420 -0
  73. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/metadata.hpp +474 -0
  74. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/nn.hpp +385 -0
  75. package/dist/prebuilt/wasm-wasm32-st-release/include/proj/util.hpp +781 -0
  76. package/dist/prebuilt/wasm-wasm32-st-release/include/proj.h +2299 -0
  77. package/dist/prebuilt/wasm-wasm32-st-release/include/proj_constants.h +987 -0
  78. package/dist/prebuilt/wasm-wasm32-st-release/include/proj_experimental.h +52 -0
  79. package/dist/prebuilt/wasm-wasm32-st-release/include/proj_symbol_rename.h +317 -0
  80. package/dist/prebuilt/wasm-wasm32-st-release/include/projapps_lib.h +68 -0
  81. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj/proj-config-version.cmake +52 -0
  82. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj/proj-config.cmake +79 -0
  83. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj/proj-targets-release.cmake +19 -0
  84. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj/proj-targets.cmake +108 -0
  85. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj/proj4-targets-release.cmake +19 -0
  86. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj/proj4-targets.cmake +108 -0
  87. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj4/proj-targets-release.cmake +19 -0
  88. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj4/proj-targets.cmake +108 -0
  89. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj4/proj4-config-version.cmake +52 -0
  90. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj4/proj4-config.cmake +79 -0
  91. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj4/proj4-targets-release.cmake +19 -0
  92. package/dist/prebuilt/wasm-wasm32-st-release/lib/cmake/proj4/proj4-targets.cmake +108 -0
  93. package/dist/prebuilt/wasm-wasm32-st-release/lib/libproj.a +0 -0
  94. package/dist/prebuilt/wasm-wasm32-st-release/lib/pkgconfig/proj.pc +14 -0
  95. package/dist/prebuilt/wasm-wasm32-st-release/share/bash-completion/completions/projinfo +51 -0
  96. package/dist/prebuilt/wasm-wasm32-st-release/share/doc/proj/AUTHORS.md +33 -0
  97. package/dist/prebuilt/wasm-wasm32-st-release/share/doc/proj/COPYING +34 -0
  98. package/dist/prebuilt/wasm-wasm32-st-release/share/doc/proj/NEWS.md +3404 -0
  99. package/dist/prebuilt/wasm-wasm32-st-release/share/man/man1/cct.1 +350 -0
  100. package/dist/prebuilt/wasm-wasm32-st-release/share/man/man1/cs2cs.1 +516 -0
  101. package/dist/prebuilt/wasm-wasm32-st-release/share/man/man1/geod.1 +255 -0
  102. package/dist/prebuilt/wasm-wasm32-st-release/share/man/man1/gie.1 +494 -0
  103. package/dist/prebuilt/wasm-wasm32-st-release/share/man/man1/proj.1 +318 -0
  104. package/dist/prebuilt/wasm-wasm32-st-release/share/man/man1/projinfo.1 +832 -0
  105. package/dist/prebuilt/wasm-wasm32-st-release/share/man/man1/projsync.1 +223 -0
  106. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/CH +22 -0
  107. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/GL27 +23 -0
  108. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/ITRF2000 +24 -0
  109. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/ITRF2008 +94 -0
  110. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/ITRF2014 +55 -0
  111. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/ITRF2020 +91 -0
  112. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/deformation_model.schema.json +582 -0
  113. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/nad.lst +142 -0
  114. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/nad27 +810 -0
  115. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/nad83 +745 -0
  116. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/other.extra +53 -0
  117. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/proj.db +0 -0
  118. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/proj.ini +59 -0
  119. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/projjson.schema.json +1174 -0
  120. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/triangulation.schema.json +214 -0
  121. package/dist/prebuilt/wasm-wasm32-st-release/share/proj/world +214 -0
  122. package/package.json +35 -0
@@ -0,0 +1,516 @@
1
+ .\" Man page generated from reStructuredText
2
+ .\" by the Docutils 0.22.4 manpage writer.
3
+ .
4
+ .
5
+ .nr rst2man-indent-level 0
6
+ .
7
+ .de1 rstReportMargin
8
+ \\$1 \\n[an-margin]
9
+ level \\n[rst2man-indent-level]
10
+ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11
+ -
12
+ \\n[rst2man-indent0]
13
+ \\n[rst2man-indent1]
14
+ \\n[rst2man-indent2]
15
+ ..
16
+ .de1 INDENT
17
+ .\" .rstReportMargin pre:
18
+ . RS \\$1
19
+ . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
+ . nr rst2man-indent-level +1
21
+ .\" .rstReportMargin post:
22
+ ..
23
+ .de UNINDENT
24
+ . RE
25
+ .\" indent \\n[an-margin]
26
+ .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
+ .nr rst2man-indent-level -1
28
+ .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
+ .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30
+ ..
31
+ .TH "CS2CS" "1" "10 avril 2026" "9.8" "PROJ"
32
+ .SH NAME
33
+ cs2cs \- Cartographic coordinate system filter
34
+ .SH SYNOPSIS
35
+ .INDENT 0.0
36
+ .INDENT 3.5
37
+ .nf
38
+ \fBcs2cs\fP [\fB\-eEfIlrstvwW\fP [args]]
39
+ .in +2
40
+ [[\-\-area <name_or_code>] | [\-\-bbox <west_long,south_lat,east_long,north_lat>]]
41
+ [\-\-authority <name>] [\-\-3d]
42
+ [\-\-accuracy <accuracy>] [\-\-only\-best[=yes|=no]] [\-\-no\-ballpark]
43
+ [\-\-s_epoch {epoch}] [\-\-t_epoch {epoch}]
44
+ ([\fI+opt[=arg]\fP ...] [+to \fI+opt[=arg]\fP ...] | {source_crs} {target_crs})
45
+ file ...
46
+ .in -2
47
+ .fi
48
+ .sp
49
+ .sp
50
+ where {source_crs} or {target_crs} is one of the possibilities accepted
51
+ by \fBproj_create()\fP \%<#\:c\:.proj_create>, provided it expresses a CRS
52
+ .INDENT 0.0
53
+ .IP \(bu 2
54
+ a proj\-string,
55
+ .IP \(bu 2
56
+ a WKT string,
57
+ .IP \(bu 2
58
+ an object code (like \(dqEPSG:4326\(dq, \(dqurn:ogc:def:crs:EPSG::4326\(dq,
59
+ \(dqurn:ogc:def:coordinateOperation:EPSG::1671\(dq),
60
+ .IP \(bu 2
61
+ an Object name. e.g \(dqWGS 84\(dq, \(dqWGS 84 / UTM zone 31N\(dq. In that case as
62
+ uniqueness is not guaranteed, heuristics are applied to determine the appropriate best match.
63
+ .IP \(bu 2
64
+ a CRS name and a coordinate epoch, separated with \(aq@\(aq. For example \(dq\%<ITRF2014@\:2025.0>\(dq. (\fIadded in 9.2\fP)
65
+ .IP \(bu 2
66
+ a OGC URN combining references for compound coordinate reference systems
67
+ (e.g \(dq\%<urn:ogc:def:crs,crs:EPSG::2393,crs:EPSG::5717>\(dq or custom abbreviated
68
+ syntax \(dqEPSG:2393+5717\(dq),
69
+ .IP \(bu 2
70
+ a OGC URN combining references for references for projected or derived CRSs
71
+ e.g. for Projected 3D CRS \(dqUTM zone 31N / WGS 84 (3D)\(dq:
72
+ \(dq\%<urn:ogc:def:crs,crs:EPSG::4979,cs:PROJ::ENh,coordinateOperation:EPSG::16031>\(dq
73
+ (\fIadded in 6.2\fP)
74
+ .IP \(bu 2
75
+ a OGC URN combining references for concatenated operations
76
+ (e.g. \(dq\%<urn:ogc:def:coordinateOperation,coordinateOperation:EPSG::3895,coordinateOperation:EPSG::1618>\(dq)
77
+ .IP \(bu 2
78
+ a PROJJSON string. The jsonschema is at \%<https://\:proj\:.org/\:schemas/\:v0\:.4/\:projjson\:.schema\:.json> (\fIadded in 6.2\fP)
79
+ .IP \(bu 2
80
+ a compound CRS made from two object names separated with \(dq + \(dq. e.g. \(dqWGS 84 + EGM96 height\(dq (\fIadded in 7.1\fP)
81
+ .UNINDENT
82
+ .sp
83
+ Added in version 6.0.0.
84
+
85
+ .sp
86
+ \fBNote:\fP
87
+ .INDENT 0.0
88
+ .INDENT 3.5
89
+ before 7.0.1, it was needed to add +to between {source_crs} and {target_crs}
90
+ when adding a filename
91
+ .UNINDENT
92
+ .UNINDENT
93
+ .UNINDENT
94
+ .UNINDENT
95
+ .SH DESCRIPTION
96
+ .sp
97
+ cs2cs performs transformation between the source and destination
98
+ cartographic coordinate reference system on a set of input points. The coordinate
99
+ reference system transformation can include translation between projected and
100
+ geographic coordinates as well as the application of datum shifts.
101
+ .sp
102
+ The following control parameters can appear in any order:
103
+ .INDENT 0.0
104
+ .TP
105
+ .B \-I
106
+ Perform the inverse transformation, that is from target CRS to source CRS.
107
+ .UNINDENT
108
+ .INDENT 0.0
109
+ .TP
110
+ .B \-t<a>
111
+ Where \fIa\fP specifies a character employed as the first character to denote a control
112
+ line to be passed through without processing. This option applicable to
113
+ ASCII input only. (# is the default value).
114
+ .UNINDENT
115
+ .INDENT 0.0
116
+ .TP
117
+ .B \-d <n>
118
+ Added in version 5.2.0.
119
+
120
+ .sp
121
+ Specify the number of decimals to round to in the output.
122
+ .UNINDENT
123
+ .INDENT 0.0
124
+ .TP
125
+ .B \-e <string>
126
+ Where \fIstring\fP is an arbitrary string to be output if an error is detected during
127
+ data transformations. The default value is a three character string: \fB*\et*\fP\&.
128
+ .UNINDENT
129
+ .INDENT 0.0
130
+ .TP
131
+ .B \-E
132
+ Causes the input coordinates to be copied to the output line prior to
133
+ printing the converted values.
134
+ .UNINDENT
135
+ .INDENT 0.0
136
+ .TP
137
+ .B \-l<[=id]>
138
+ List projection identifiers that can be selected with \fI+proj\fP\&. \fBcs2cs \-l=id\fP
139
+ gives expanded description of projection \fIid\fP, e.g. \fBcs2cs \-l=merc\fP\&.
140
+ .UNINDENT
141
+ .INDENT 0.0
142
+ .TP
143
+ .B \-lp
144
+ List of all projection id that can be used with the \fI+proj\fP parameter.
145
+ Equivalent to \fBcs2cs \-l\fP\&.
146
+ .UNINDENT
147
+ .INDENT 0.0
148
+ .TP
149
+ .B \-lP
150
+ Expanded description of all projections that can be used with the \fI+proj\fP
151
+ parameter.
152
+ .UNINDENT
153
+ .INDENT 0.0
154
+ .TP
155
+ .B \-le
156
+ List of all ellipsoids that can be selected with the \fI+ellps\fP parameters.
157
+ .UNINDENT
158
+ .INDENT 0.0
159
+ .TP
160
+ .B \-lm
161
+ List of hard\-coded prime meridians that can be selected with the \fI+pm\fP
162
+ parameter. Note that this list is no longer updated,
163
+ and some values may conflict with other sources.
164
+ .UNINDENT
165
+ .INDENT 0.0
166
+ .TP
167
+ .B \-lu
168
+ List of all distance units that can be selected with the \fI+units\fP parameter.
169
+ .UNINDENT
170
+ .INDENT 0.0
171
+ .TP
172
+ .B \-r
173
+ This options reverses the order of the first two expected
174
+ inputs from that specified by the CRS to the opposite
175
+ order. The third coordinate, typically height, remains
176
+ third.
177
+ .UNINDENT
178
+ .INDENT 0.0
179
+ .TP
180
+ .B \-s
181
+ This options reverses the order of the first two expected
182
+ outputs from that specified by the CRS to the opposite
183
+ order. The third coordinate, typically height, remains
184
+ third.
185
+ .UNINDENT
186
+ .INDENT 0.0
187
+ .TP
188
+ .B \-f <format>
189
+ Where \fIformat\fP is a printf format string to control the form of the output values.
190
+ For inverse projections, the output will be in degrees when this option is
191
+ employed. If a format is specified for inverse projection the output data
192
+ will be in decimal degrees. The default format is \fB\(dq%.2f\(dq\fP for forward
193
+ projection and DMS for inverse.
194
+ .UNINDENT
195
+ .INDENT 0.0
196
+ .TP
197
+ .B \-w<n>
198
+ Where \fIn\fP is the number of significant fractional digits to employ for seconds
199
+ output (when the option is not specified, \fB\-w3\fP is assumed).
200
+ .UNINDENT
201
+ .INDENT 0.0
202
+ .TP
203
+ .B \-W<n>
204
+ Where \fIn\fP is the number of significant fractional digits to employ for seconds
205
+ output. When \fB\-W\fP is employed the fields will be constant width
206
+ with leading zeroes. Valid range: \-W0 through \-W8.
207
+ .UNINDENT
208
+ .INDENT 0.0
209
+ .TP
210
+ .B \-v
211
+ Causes a listing of cartographic control parameters tested for and used by
212
+ the program to be printed prior to input data.
213
+ .UNINDENT
214
+ .INDENT 0.0
215
+ .TP
216
+ .B \-\-area <name_or_code>
217
+ Added in version 8.0.0.
218
+
219
+ .sp
220
+ Specify an area of interest to restrict the results when researching
221
+ coordinate operations between 2 CRS. The area of interest can be specified either
222
+ as a name (e.g \(dqDenmark \- onshore\(dq) or a AUTHORITY:CODE (EPSG:3237)
223
+ .sp
224
+ This option is mutually exclusive with \fB\-\-bbox\fP\&.
225
+ .UNINDENT
226
+ .INDENT 0.0
227
+ .TP
228
+ .B \-\-bbox <west_long,south_lat,east_long,north_lat>
229
+ Added in version 8.0.0.
230
+
231
+ .sp
232
+ Specify an area of interest to restrict the results when researching
233
+ coordinate operations between 2 CRS. The area of interest is specified as a
234
+ bounding box with geographic coordinates, expressed in degrees in a
235
+ unspecified geographic CRS.
236
+ \fIwest_long\fP and \fIeast_long\fP should be in the [\-180,180] range, and
237
+ \fIsouth_lat\fP and \fInorth_lat\fP in the [\-90,90]. \fIwest_long\fP is generally lower than
238
+ \fIeast_long\fP, except in the case where the area of interest crosses the antimeridian.
239
+ .UNINDENT
240
+ .INDENT 0.0
241
+ .TP
242
+ .B \-\-only\-best[=yes|=no]
243
+ Added in version 9.2.0.
244
+
245
+ .sp
246
+ Force \fIcs2cs\fP to only use the best transformation known by PROJ.
247
+ \fIcs2cs\fP will return an error if a grid needed for the best transformation is missing.
248
+ .sp
249
+ Best transformation should be understood as the most accurate transformation
250
+ available among all relevant for the point to transform, and if all known
251
+ grids required to perform such transformation were accessible (either locally
252
+ or through network).
253
+ .sp
254
+ Note that the default value for this option can be also set with the
255
+ \fBPROJ_ONLY_BEST_DEFAULT\fP environment variable, or with the
256
+ \fBonly_best_default\fP setting of proj.ini \%<#\:proj-ini> (\fB\-\-only\-best\fP
257
+ when specified overrides such default value).
258
+ .UNINDENT
259
+ .INDENT 0.0
260
+ .TP
261
+ .B \-\-no\-ballpark
262
+ Added in version 8.0.0.
263
+
264
+ .sp
265
+ Disallow any coordinate operation that is, or contains, a
266
+ Ballpark transformation \%<#\:term-Ballpark-transformation>
267
+ .UNINDENT
268
+ .INDENT 0.0
269
+ .TP
270
+ .B \-\-accuracy <accuracy>
271
+ Added in version 8.0.0.
272
+
273
+ .sp
274
+ Sets the minimum desired accuracy for candidate coordinate operations.
275
+ .UNINDENT
276
+ .INDENT 0.0
277
+ .TP
278
+ .B \-\-authority <name>
279
+ Added in version 8.0.0.
280
+
281
+ .sp
282
+ This option can be used to restrict the authority of coordinate operations
283
+ looked up in the database. When not specified, coordinate
284
+ operations from any authority will be searched, with the restrictions set
285
+ in the \fBauthority_to_authority_preference\fP database table related to the authority
286
+ of the source/target CRS themselves.
287
+ If authority is set to \fBany\fP, then coordinate operations from any authority will be searched
288
+ If authority is a non\-empty string different of \fBany\fP, then coordinate operations
289
+ will be searched only in that authority namespace (e.g \fBEPSG\fP).
290
+ .sp
291
+ This option is mutually exclusive with \fB\-\-bbox\fP\&.
292
+ .UNINDENT
293
+ .INDENT 0.0
294
+ .TP
295
+ .B \-\-3d
296
+ Added in version 9.1.
297
+
298
+ .sp
299
+ \(dqPromote\(dq 2D CRS(s) to their 3D version, where the vertical axis is the
300
+ ellipsoidal height in metres, using the ellipsoid of the base geodetic CRS.
301
+ Depending on PROJ versions and the exact nature of the CRS involved,
302
+ especially before PROJ 9.1, a mix of 2D and 3D CRS could lead to 2D or 3D
303
+ transformations. Starting with PROJ 9.1, both CRS need to be 3D for vertical
304
+ transformation to possibly happen.
305
+ .UNINDENT
306
+ .INDENT 0.0
307
+ .TP
308
+ .B \-\-s_epoch
309
+ Added in version 9.4.
310
+
311
+ .sp
312
+ Epoch of coordinates in the source CRS, as decimal year.
313
+ Only applies to a dynamic CRS.
314
+ .UNINDENT
315
+ .INDENT 0.0
316
+ .TP
317
+ .B \-\-t_epoch
318
+ Added in version 9.4.
319
+
320
+ .sp
321
+ Epoch of coordinates in the target CRS, as decimal year.
322
+ Only applies to a dynamic CRS.
323
+ .UNINDENT
324
+ .sp
325
+ The \fI+opt\fP run\-line arguments are associated with cartographic
326
+ parameters.
327
+ .sp
328
+ The cs2cs program takes two coordinate reference system (CRS) definitions.
329
+ These can be given in a variety of formats such as EPSG\-codes, WKT\-strings or legacy PROJ.4
330
+ CRS descriptions.
331
+ .sp
332
+ If there is no second CRS defined, a geographic CRS based on the
333
+ datum and ellipsoid of the source CRS is assumed. Note that the
334
+ source and destination CRS can both of same or different nature (geographic,
335
+ projected, compound CRS), or one of each and may have the same or different datums.
336
+ .sp
337
+ When using a WKT definition or a AUTHORITY:CODE, the axis order of the CRS will
338
+ be enforced. So for example if using EPSG:4326, the first value expected (or
339
+ returned) will be a latitude.
340
+ .sp
341
+ Internally, cs2cs uses the \fBproj_create_crs_to_crs()\fP \%<#\:c\:.proj_create_crs_to_crs> function
342
+ to compute the appropriate coordinate operation, so implementation details of
343
+ this function directly impact the results returned by the program.
344
+ .sp
345
+ The environment parameter \fBPROJ_DATA\fP \%<#\:envvar-PROJ_DATA> establishes the
346
+ directory for resource files (database, datum shift grids, etc.)
347
+ .sp
348
+ One or more files (processed in left to right order) specify the source of
349
+ data to be transformed. A \fB\-\fP will specify the location of processing standard
350
+ input. If no files are specified, the input is assumed to be from stdin.
351
+ For input data the two data values must be in the first two white space
352
+ separated fields and when both input and output are ASCII all trailing portions
353
+ of the input line are appended to the output line.
354
+ .sp
355
+ Input geographic data (longitude and latitude) must be in DMS or decimal
356
+ degrees format and input cartesian data must be in units consistent with the
357
+ ellipsoid major axis or sphere radius units. Output geographic coordinates will
358
+ normally be in DMS format (use \fB\-f %.12f\fP for decimal degrees with 12 decimal
359
+ places), while projected (cartesian) coordinates will be in linear
360
+ (meter, feet) units.
361
+ .SS Use of remote grids
362
+ .sp
363
+ Added in version 7.0.0.
364
+
365
+ .sp
366
+ If the \fBPROJ_NETWORK\fP \%<#\:envvar-PROJ_NETWORK> environment variable is set to \fBON\fP,
367
+ cs2cs will attempt to use remote grids stored on CDN (Content
368
+ Delivery Network) storage, when they are not available locally.
369
+ .sp
370
+ More details are available in the Network capabilities \%<#\:network> section.
371
+ .SH EXAMPLES
372
+ .SS Using EPSG CRS codes
373
+ .sp
374
+ Transforming from WGS 84 latitude/longitude (in that order) to UTM Zone 31N/WGS 84
375
+ .INDENT 0.0
376
+ .INDENT 3.5
377
+ .sp
378
+ .EX
379
+ cs2cs EPSG:4326 EPSG:32631 <<EOF
380
+ 45N 2E
381
+ EOF
382
+ .EE
383
+ .UNINDENT
384
+ .UNINDENT
385
+ .sp
386
+ outputs
387
+ .INDENT 0.0
388
+ .INDENT 3.5
389
+ .sp
390
+ .EX
391
+ 421184.70 4983436.77 0.00
392
+ .EE
393
+ .UNINDENT
394
+ .UNINDENT
395
+ .SS Using EPSG CRS names
396
+ .sp
397
+ Transforming from WGS 84 latitude/longitude (in that order) with EGM96 height to
398
+ UTM Zone 31N/WGS 84 with WGS84 ellipsoidal height
399
+ .INDENT 0.0
400
+ .INDENT 3.5
401
+ .sp
402
+ .EX
403
+ echo 45 2 0 | cs2cs \(dqWGS 84 + EGM96 height\(dq \(dqWGS 84 / UTM zone 31N\(dq \-\-3d
404
+ .EE
405
+ .UNINDENT
406
+ .UNINDENT
407
+ .sp
408
+ outputs
409
+ .INDENT 0.0
410
+ .INDENT 3.5
411
+ .sp
412
+ .EX
413
+ 421184.70 4983436.77 50.69
414
+ .EE
415
+ .UNINDENT
416
+ .UNINDENT
417
+ .sp
418
+ \fBNote:\fP
419
+ .INDENT 0.0
420
+ .INDENT 3.5
421
+ To get those exact values, you have need to have the EGM96 grid installed
422
+ locally or use networking capabilities mentioned above.
423
+ .UNINDENT
424
+ .UNINDENT
425
+ .SS Using PROJ strings
426
+ .sp
427
+ The following script
428
+ .INDENT 0.0
429
+ .INDENT 3.5
430
+ .sp
431
+ .EX
432
+ cs2cs +proj=latlong +datum=NAD83 +to +proj=utm +zone=10 +datum=NAD27 \-r <<EOF
433
+ 45°15\(aq33.1\(dq 111.5W
434
+ 45d15.551666667N \-111d30
435
+ +45.25919444444 111d30\(aq000w
436
+ EOF
437
+ .EE
438
+ .UNINDENT
439
+ .UNINDENT
440
+ .sp
441
+ will transform the input NAD83 geographic coordinates into NAD27 coordinates in
442
+ the UTM projection with zone 10 selected. The geographic values of this
443
+ example are equivalent and meant as examples of various forms of DMS input.
444
+ The x\-y output data will appear as three lines of:
445
+ .INDENT 0.0
446
+ .INDENT 3.5
447
+ .sp
448
+ .EX
449
+ 1402285.93 5076292.58 0.00
450
+ .EE
451
+ .UNINDENT
452
+ .UNINDENT
453
+ .sp
454
+ To get those exact values, you have need to have all current grids installed
455
+ (in that instance the NADCON5 \fBus_noaa_nadcon5_nad27_nad83_1986_conus.tif\fP grid)
456
+ locally or use networking capabilities mentioned above.
457
+ .sp
458
+ To make sure you will get the optimal result, you may add \fB\-\-only\-best\fP\&.
459
+ Assuming the above mentioned grid is \fInot\fP available,
460
+ .INDENT 0.0
461
+ .INDENT 3.5
462
+ .sp
463
+ .EX
464
+ echo \-111.5 45.25919444444 | cs2cs \-\-only\-best +proj=latlong +datum=NAD83 +to +proj=utm +zone=10 +datum=NAD27
465
+ .EE
466
+ .UNINDENT
467
+ .UNINDENT
468
+ .sp
469
+ would return:
470
+ .INDENT 0.0
471
+ .INDENT 3.5
472
+ .sp
473
+ .EX
474
+ Attempt to use coordinate operation axis order change (2D) + Inverse of NAD27 to NAD83 (7) + axis order change (2D) + UTM zone 10N failed. Grid us_noaa_nadcon5_nad27_nad83_1986_conus.tif is not available. Consult https://proj.org/resource_files.html for guidance.
475
+ * * inf
476
+ .EE
477
+ .UNINDENT
478
+ .UNINDENT
479
+ .sp
480
+ Otherwise, if you don\(aqt have the grid available and you don\(aqt specify \fB\-\-only\-best\fP:
481
+ .INDENT 0.0
482
+ .INDENT 3.5
483
+ .sp
484
+ .EX
485
+ echo \-111.5 45.25919444444 | cs2cs \-\-only\-best +proj=latlong +datum=NAD83 +to +proj=utm +zone=10 +datum=NAD27
486
+ .EE
487
+ .UNINDENT
488
+ .UNINDENT
489
+ .sp
490
+ would return:
491
+ .INDENT 0.0
492
+ .INDENT 3.5
493
+ .sp
494
+ .EX
495
+ 1402224.57 5076275.42 0.00
496
+ .EE
497
+ .UNINDENT
498
+ .UNINDENT
499
+ .sp
500
+ which is the result when the NAD27 and NAD83 datums are dealt as identical,
501
+ which is an approximation at a level of several tens of metres.
502
+ .SH SEE ALSO
503
+ .sp
504
+ \fBproj(1)\fP, \fBcct(1)\fP, \fBgeod(1)\fP, \fBgie(1)\fP, \fBprojinfo(1)\fP, \fBprojsync(1)\fP
505
+ .SH BUGS
506
+ .sp
507
+ A list of known bugs can be found at \%<https://\:github\:.com/\:OSGeo/\:PROJ/\:issues>
508
+ where new bug reports can be submitted to.
509
+ .SH HOME PAGE
510
+ .sp
511
+ \%<https://\:proj\:.org/>
512
+ .SH Author
513
+ Frank Warmerdam
514
+ .SH Copyright
515
+ 1983-2026, PROJ contributors
516
+ .\" End of generated man page.