1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "PROJSYNC" "1" "Sep 1, 2021" "8.1.1" "PROJ"
.SH NAME
projsync \- Downloading tool of resource files
.SH SYNOPSIS
.INDENT 0.0
.INDENT 3.5
.nf
\fBprojsync\fP
.in +2
[\-\-endpoint URL]
[\-\-local\-geojson\-file FILENAME]
([\-\-user\-writable\-directory] | [\-\-system\-directory] | [\-\-target\-dir DIRNAME])
[\-\-bbox west_long,south_lat,east_long,north_lat]
[\-\-spatial\-test contains|intersects]
[\-\-source\-id ID] [\-\-area\-of\-use NAME]
[\-\-file NAME]
[\-\-all] [\-\-exclude\-world\-coverage]
[\-\-quiet | \-\-verbose] [\-\-dry\-run] [\-\-list\-files]
[\-\-no\-version\-filtering]
.in -2
.fi
.sp
.UNINDENT
.UNINDENT
.SH DESCRIPTION
.sp
\fBprojsync\fP is a program that downloads remote resource files
into a local directory. This is an alternative to downloading a proj\-data\-X.Y.Z
archive file, or using the on\-demand networking capabilities of PROJ.
.sp
The following control parameters can appear in any order:
.INDENT 0.0
.TP
.B \-\-endpoint URL
Defines the URL where to download the master \fBfiles.geojson\fP file and then
the resource files. Defaults to the value set in proj\-ini
.UNINDENT
.INDENT 0.0
.TP
.B \-\-local\-geojson\-file FILENAME
Defines the filename for the master GeoJSON files that references resources.
Defaults to \fB${endpoint}/files.geojson\fP
.UNINDENT
.INDENT 0.0
.TP
.B \-\-user\-writable\-directory
Specifies that resource files must be downloaded in the
user writable directory\&. This is the default.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-system\-directory
Specifies that resource files must be downloaded in the
${installation_prefix}/share/proj directory. The user launching projsync
should make sure it has writing rights in that directory.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-target\-dir DIRNAME
Directory into which resource files must be downloaded.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-bbox west_long,south_lat,east_long,north_lat
Specify an area of interest to restrict the resources to download.
The area of interest is specified as a
bounding box with geographic coordinates, expressed in degrees in a
unspecified geographic CRS.
\fIwest_long\fP and \fIeast_long\fP should be in the [\-180,180] range, and
\fIsouth_lat\fP and \fInorth_lat\fP in the [\-90,90]. \fIwest_long\fP is generally lower than
\fIeast_long\fP, except in the case where the area of interest crosses the antimeridian.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-spatial\-test contains|intersects
Specify how the extent of the resource files
are compared to the area of use specified explicitly with \fI\%\-\-bbox\fP\&.
By default, any resource files whose extent intersects the value specified
by \fI\%\-\-bbox\fP will be selected.
If using the \fBcontains\fP strategy, only resource files whose extent is
contained in the value specified by \fI\%\-\-bbox\fP will be selected.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-source\-id ID
Restrict resource files to be downloaded to those whose source_id property
contains the ID value. Specifying \fB?\fP as ID will list all possible values.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-area\-of\-use NAME
Restrict resource files to be downloaded to those whose area_of_use property
contains the NAME value. Specifying \fB?\fP as NAME will list all possible values.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-file NAME
Restrict resource files to be downloaded to those whose name property
contains the NAME value. Specifying \fB?\fP as NAME will list all possible values.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-all
Ask to download all files.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-exclude\-world\-coverage
Exclude files which have world coverage.
.UNINDENT
.INDENT 0.0
.TP
.B \-q / \-\-quiet
Quiet mode
.UNINDENT
.INDENT 0.0
.TP
.B \-\-verbose
New in version 8.1.
.sp
Verbose mode (more than default)
.UNINDENT
.INDENT 0.0
.TP
.B \-\-dry\-run
Simulate the behavior of the tool without downloading resource files.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-list\-files
List file names, with the source_id and area_of_use properties.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-no\-version\-filtering
New in version 8.1.
.sp
By default, projsync only downloads files that are compatible of
the PROJ_DATA.VERSION metadata of \fBproj.db\fP, taking into account the
\fBversion_added\fP and \fBversion_removed\fP properties of entries in \fBfiles.geojson\fP\&.
When specifying this switch, all files referenced in \fBfiles.geojson\fP
will be candidate (combined with other filters).
.UNINDENT
.sp
At least one of \fI\%\-\-list\-files\fP, \fI\%\-\-file\fP, \fI\%\-\-source\-id\fP,
\fI\%\-\-area\-of\-use\fP, \fI\%\-\-bbox\fP or \fI\%\-\-all\fP must be specified.
.sp
Options \fI\%\-\-file\fP, \fI\%\-\-source\-id\fP, \fI\%\-\-area\-of\-use\fP and
\fI\%\-\-bbox\fP are combined with a AND logic.
.SH EXAMPLES
.INDENT 0.0
.IP 1. 3
Download all resource files
.UNINDENT
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
projsync \-\-all
.ft P
.fi
.UNINDENT
.UNINDENT
.INDENT 0.0
.IP 2. 3
Download resource files covering specified point and attributing to an agency
.UNINDENT
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
projsync \-\-source\-id fr_ign \-\-bbox 2,49,2,49
.ft P
.fi
.UNINDENT
.UNINDENT
.SH SEE ALSO
.sp
\fBcs2cs(1)\fP, \fBcct(1)\fP, \fBgeod(1)\fP, \fBgie(1)\fP, \fBproj(1)\fP, \fBprojinfo(1)\fP
.SH BUGS
.sp
A list of known bugs can be found at \fI\%https://github.com/OSGeo/PROJ/issues\fP
where new bug reports can be submitted to.
Bugs specific to resource files should be submitted to
\fI\%https://github.com/OSGeo/PROJ\-data/issues\fP
.SH HOME PAGE
.sp
\fI\%https://proj.org/\fP
.SH AUTHOR
Even Rouault
.SH COPYRIGHT
1983-2021
.\" Generated by docutils manpage writer.
.
|