getKnownZoneIds() {
134 | return index.getKnownZoneIds();
135 | }
136 |
137 | /**
138 | * Creates a new instance of {@link TimeZoneEngine} and initializes it.
139 | * This is a blocking long running operation.
140 | *
141 | * @return an initialized instance of {@link TimeZoneEngine}
142 | */
143 | public static TimeZoneEngine initialize(boolean accelerateGeometry) {
144 | return initialize(MIN_LAT, MIN_LON, MAX_LAT, MAX_LON, accelerateGeometry);
145 | }
146 |
147 | /**
148 | * Creates a new instance of {@link TimeZoneEngine} and initializes it.
149 | * This is a blocking long running operation.
150 | *
151 | * @return an initialized instance of {@link TimeZoneEngine}
152 | */
153 | public static TimeZoneEngine initialize() {
154 | return initialize(MIN_LAT, MIN_LON, MAX_LAT, MAX_LON, false);
155 | }
156 |
157 | /**
158 | * Creates a new instance of {@link TimeZoneEngine} and initializes it.
159 | * This is a blocking long running operation.
160 | *
161 | * Example invocation:
162 | *
163 | * {{{
164 | * try (InputStream resourceAsStream = new FileInputStream("./core/target/resource_managed/main/data.tar.zstd");
165 | * TarArchiveInputStream f = new TarArchiveInputStream(new ZstdCompressorInputStream(resourceAsStream))) {
166 | * return TimeZoneEngine.initialize(f);
167 | * } catch (NullPointerException | IOException e) {
168 | * throw new RuntimeException(e);
169 | * }
170 | * }}}
171 | *
172 | * @return an initialized instance of {@link TimeZoneEngine}
173 | */
174 | public static TimeZoneEngine initialize(TarArchiveInputStream f) {
175 | return initialize(MIN_LAT, MIN_LON, MAX_LAT, MAX_LON, false, f);
176 | }
177 |
178 | /**
179 | * Creates a new instance of {@link TimeZoneEngine} and initializes it from a given TarArchiveInputStream.
180 | * This is a blocking long running operation. The InputStream resource must be managed by the caller.
181 | *
182 | * Example invocation:
183 | * {{{
184 | * try (InputStream resourceAsStream = new FileInputStream("./core/target/resource_managed/main/data.tar.zstd");
185 | * TarArchiveInputStream f = new TarArchiveInputStream(new ZstdCompressorInputStream(resourceAsStream))) {
186 | * return TimeZoneEngine.initialize(47.0599, 4.8237, 55.3300, 15.2486, true, f);
187 | * } catch (NullPointerException | IOException e) {
188 | * throw new RuntimeException(e);
189 | * }
190 | * }}}
191 | *
192 | * @return an initialized instance of {@link TimeZoneEngine}
193 | */
194 | public static TimeZoneEngine initialize(double minLat,
195 | double minLon,
196 | double maxLat,
197 | double maxLon,
198 | boolean accelerateGeometry,
199 | TarArchiveInputStream f) {
200 | log.info("Initializing with bounding box: {}, {}, {}, {}", minLat, minLon, maxLat, maxLon);
201 | validateCoordinates(minLat, minLon, maxLat, maxLon);
202 | Spliterator tarArchiveEntrySpliterator = makeSpliterator(f);
203 | Stream featureStream = StreamSupport.stream(tarArchiveEntrySpliterator, false).map(n -> {
204 | try {
205 | if (n != null) {
206 | log.debug("Processing archive entry {}", n.getName());
207 | byte[] e = new byte[(int) n.getSize()];
208 | f.read(e);
209 | return Geojson.Feature.parseFrom(e);
210 | } else {
211 | throw new RuntimeException("Data entry is not found in file");
212 | }
213 | } catch (NullPointerException | IOException ex) {
214 | throw new RuntimeException(ex);
215 | }
216 | });
217 | int numberOfTimezones = 449; // can't get number of entries from tar, need to set manually
218 | Envelope boundaries = new Envelope(minLon, minLat, maxLon, maxLat);
219 | return new TimeZoneEngine(
220 | Index.build(
221 | featureStream,
222 | numberOfTimezones,
223 | boundaries,
224 | accelerateGeometry));
225 | }
226 |
227 |
228 | /**
229 | * Creates a new instance of {@link TimeZoneEngine} and initializes it.
230 | * This is a blocking long running operation.
231 | *
232 | * @return an initialized instance of {@link TimeZoneEngine}
233 | */
234 | public static TimeZoneEngine initialize(double minLat, double minLon, double maxLat, double maxLon, boolean accelerateGeometry) {
235 | try (InputStream resourceAsStream = TimeZoneEngine.class.getResourceAsStream("/data.tar.zstd")) {
236 | try (ZstdInputStream unzipStream = new ZstdInputStream(resourceAsStream)) {
237 | try (BufferedInputStream bufferedStream = new BufferedInputStream(unzipStream)) {
238 | try (TarArchiveInputStream shapeInputStream = new TarArchiveInputStream(bufferedStream)) {
239 | return initialize(minLat, minLon, maxLat, maxLon, accelerateGeometry, shapeInputStream);
240 | }
241 | }
242 | }
243 | } catch (NullPointerException | IOException e) {
244 | log.error("Unable to read resource file", e);
245 | throw new RuntimeException(e);
246 | }
247 | }
248 | }
249 |
--------------------------------------------------------------------------------
/DATA_LICENSE:
--------------------------------------------------------------------------------
1 | Open Database License (ODbL) v1.0
2 | Disclaimer
3 | Open Data Commons is not a law firm and does not provide legal services of any kind.
4 |
5 | Open Data Commons has no formal relationship with you. Your receipt of this document does not create any kind of agent-client relationship. Please seek the advice of a suitably qualified legal professional licensed to practice in your jurisdiction before using this document.
6 |
7 | No warranties and disclaimer of any damages. This information is provided ‘as is‘, and this site makes no warranties on the information provided. Any damages resulting from its use are disclaimed.
8 |
9 | Plain language summary
10 | A plain language summary of the Open Database License is available.
11 |
12 | Alternative formats:
13 | Plain Text
14 |
15 | ODC Open Database License (ODbL)
16 | Preamble
17 | The Open Database License (ODbL) is a license agreement intended to
18 | allow users to freely share, modify, and use this Database while
19 | maintaining this same freedom for others. Many databases are covered by
20 | copyright, and therefore this document licenses these rights. Some
21 | jurisdictions, mainly in the European Union, have specific rights that
22 | cover databases, and so the ODbL addresses these rights, too. Finally,
23 | the ODbL is also an agreement in contract for users of this Database to
24 | act in certain ways in return for accessing this Database.
25 |
26 | Databases can contain a wide variety of types of content (images,
27 | audiovisual material, and sounds all in the same database, for example),
28 | and so the ODbL only governs the rights over the Database, and not the
29 | contents of the Database individually. Licensors should use the ODbL
30 | together with another license for the contents, if the contents have a
31 | single set of rights that uniformly covers all of the contents. If the
32 | contents have multiple sets of different rights, Licensors should
33 | describe what rights govern what contents together in the individual
34 | record or in some other way that clarifies what rights apply.
35 |
36 | Sometimes the contents of a database, or the database itself, can be
37 | covered by other rights not addressed here (such as private contracts,
38 | trade mark over the name, or privacy rights / data protection rights
39 | over information in the contents), and so you are advised that you may
40 | have to consult other documents or clear other rights before doing
41 | activities not covered by this License.
42 |
43 | The Licensor (as defined below)
44 |
45 | and
46 |
47 | You (as defined below)
48 |
49 | agree as follows:
50 |
51 | 1.0 Definitions of Capitalised Words
52 | “Collective Database” – Means this Database in unmodified form as part
53 | of a collection of independent databases in themselves that together are
54 | assembled into a collective whole. A work that constitutes a Collective
55 | Database will not be considered a Derivative Database.
56 |
57 | “Convey” – As a verb, means Using the Database, a Derivative Database,
58 | or the Database as part of a Collective Database in any way that enables
59 | a Person to make or receive copies of the Database or a Derivative
60 | Database. Conveying does not include interaction with a user through a
61 | computer network, or creating and Using a Produced Work, where no
62 | transfer of a copy of the Database or a Derivative Database occurs.
63 | “Contents” – The contents of this Database, which includes the
64 | information, independent works, or other material collected into the
65 | Database. For example, the contents of the Database could be factual
66 | data or works such as images, audiovisual material, text, or sounds.
67 |
68 | “Database” – A collection of material (the Contents) arranged in a
69 | systematic or methodical way and individually accessible by electronic
70 | or other means offered under the terms of this License.
71 |
72 | “Database Directive” – Means Directive 96/9/EC of the European
73 | Parliament and of the Council of 11 March 1996 on the legal protection
74 | of databases, as amended or succeeded.
75 |
76 | “Database Right” – Means rights resulting from the Chapter III (“sui
77 | generis”) rights in the Database Directive (as amended and as transposed
78 | by member states), which includes the Extraction and Re-utilisation of
79 | the whole or a Substantial part of the Contents, as well as any similar
80 | rights available in the relevant jurisdiction under Section 10.4.
81 |
82 | “Derivative Database” – Means a database based upon the Database, and
83 | includes any translation, adaptation, arrangement, modification, or any
84 | other alteration of the Database or of a Substantial part of the
85 | Contents. This includes, but is not limited to, Extracting or
86 | Re-utilising the whole or a Substantial part of the Contents in a new
87 | Database.
88 |
89 | “Extraction” – Means the permanent or temporary transfer of all or a
90 | Substantial part of the Contents to another medium by any means or in
91 | any form.
92 |
93 | “License” – Means this license agreement and is both a license of rights
94 | such as copyright and Database Rights and an agreement in contract.
95 |
96 | “Licensor” – Means the Person that offers the Database under the terms
97 | of this License.
98 |
99 | “Person” – Means a natural or legal person or a body of persons
100 | corporate or incorporate.
101 |
102 | “Produced Work” – a work (such as an image, audiovisual material, text,
103 | or sounds) resulting from using the whole or a Substantial part of the
104 | Contents (via a search or other query) from this Database, a Derivative
105 | Database, or this Database as part of a Collective Database.
106 |
107 | “Publicly” – means to Persons other than You or under Your control by
108 | either more than 50% ownership or by the power to direct their
109 | activities (such as contracting with an independent consultant).
110 |
111 | “Re-utilisation” – means any form of making available to the public all
112 | or a Substantial part of the Contents by the distribution of copies, by
113 | renting, by online or other forms of transmission.
114 |
115 | “Substantial” – Means substantial in terms of quantity or quality or a
116 | combination of both. The repeated and systematic Extraction or
117 | Re-utilisation of insubstantial parts of the Contents may amount to the
118 | Extraction or Re-utilisation of a Substantial part of the Contents.
119 |
120 | “Use” – As a verb, means doing any act that is restricted by copyright
121 | or Database Rights whether in the original medium or any other; and
122 | includes without limitation distributing, copying, publicly performing,
123 | publicly displaying, and preparing derivative works of the Database, as
124 | well as modifying the Database as may be technically necessary to use it
125 | in a different mode or format.
126 |
127 | “You” – Means a Person exercising rights under this License who has not
128 | previously violated the terms of this License with respect to the
129 | Database, or who has received express permission from the Licensor to
130 | exercise rights under this License despite a previous violation.
131 |
132 | Words in the singular include the plural and vice versa.
133 |
134 | 2.0 What this License covers
135 | 2.1. Legal effect of this document. This License is:
136 |
137 | a. A license of applicable copyright and neighbouring rights;
138 |
139 | b. A license of the Database Right; and
140 |
141 | c. An agreement in contract between You and the Licensor.
142 |
143 | 2.2 Legal rights covered. This License covers the legal rights in the
144 | Database, including:
145 |
146 | a. Copyright. Any copyright or neighbouring rights in the Database.
147 | The copyright licensed includes any individual elements of the
148 | Database, but does not cover the copyright over the Contents
149 | independent of this Database. See Section 2.4 for details. Copyright
150 | law varies between jurisdictions, but is likely to cover: the Database
151 | model or schema, which is the structure, arrangement, and organisation
152 | of the Database, and can also include the Database tables and table
153 | indexes; the data entry and output sheets; and the Field names of
154 | Contents stored in the Database;
155 |
156 | b. Database Rights. Database Rights only extend to the Extraction and
157 | Re-utilisation of the whole or a Substantial part of the Contents.
158 | Database Rights can apply even when there is no copyright over the
159 | Database. Database Rights can also apply when the Contents are removed
160 | from the Database and are selected and arranged in a way that would
161 | not infringe any applicable copyright; and
162 |
163 | c. Contract. This is an agreement between You and the Licensor for
164 | access to the Database. In return you agree to certain conditions of
165 | use on this access as outlined in this License.
166 |
167 | 2.3 Rights not covered.
168 |
169 | a. This License does not apply to computer programs used in the making
170 | or operation of the Database;
171 |
172 | b. This License does not cover any patents over the Contents or the
173 | Database; and
174 |
175 | c. This License does not cover any trademarks associated with the
176 | Database.
177 |
178 | 2.4 Relationship to Contents in the Database. The individual items of
179 | the Contents contained in this Database may be covered by other rights,
180 | including copyright, patent, data protection, privacy, or personality
181 | rights, and this License does not cover any rights (other than Database
182 | Rights or in contract) in individual Contents contained in the Database.
183 | For example, if used on a Database of images (the Contents), this
184 | License would not apply to copyright over individual images, which could
185 | have their own separate licenses, or one single license covering all of
186 | the rights over the images.
187 |
188 | 3.0 Rights granted
189 | 3.1 Subject to the terms and conditions of this License, the Licensor
190 | grants to You a worldwide, royalty-free, non-exclusive, terminable (but
191 | only under Section 9) license to Use the Database for the duration of
192 | any applicable copyright and Database Rights. These rights explicitly
193 | include commercial use, and do not exclude any field of endeavour. To
194 | the extent possible in the relevant jurisdiction, these rights may be
195 | exercised in all media and formats whether now known or created in the
196 | future.
197 |
198 | The rights granted cover, for example:
199 |
200 | a. Extraction and Re-utilisation of the whole or a Substantial part of
201 | the Contents;
202 |
203 | b. Creation of Derivative Databases;
204 |
205 | c. Creation of Collective Databases;
206 |
207 | d. Creation of temporary or permanent reproductions by any means and
208 | in any form, in whole or in part, including of any Derivative
209 | Databases or as a part of Collective Databases; and
210 |
211 | e. Distribution, communication, display, lending, making available, or
212 | performance to the public by any means and in any form, in whole or in
213 | part, including of any Derivative Database or as a part of Collective
214 | Databases.
215 |
216 | 3.2 Compulsory license schemes. For the avoidance of doubt:
217 |
218 | a. Non-waivable compulsory license schemes. In those jurisdictions in
219 | which the right to collect royalties through any statutory or
220 | compulsory licensing scheme cannot be waived, the Licensor reserves
221 | the exclusive right to collect such royalties for any exercise by You
222 | of the rights granted under this License;
223 |
224 | b. Waivable compulsory license schemes. In those jurisdictions in
225 | which the right to collect royalties through any statutory or
226 | compulsory licensing scheme can be waived, the Licensor waives the
227 | exclusive right to collect such royalties for any exercise by You of
228 | the rights granted under this License; and,
229 |
230 | c. Voluntary license schemes. The Licensor waives the right to collect
231 | royalties, whether individually or, in the event that the Licensor is
232 | a member of a collecting society that administers voluntary licensing
233 | schemes, via that society, from any exercise by You of the rights
234 | granted under this License.
235 |
236 | 3.3 The right to release the Database under different terms, or to stop
237 | distributing or making available the Database, is reserved. Note that
238 | this Database may be multiple-licensed, and so You may have the choice
239 | of using alternative licenses for this Database. Subject to Section
240 | 10.4, all other rights not expressly granted by Licensor are reserved.
241 |
242 | 4.0 Conditions of Use
243 | 4.1 The rights granted in Section 3 above are expressly made subject to
244 | Your complying with the following conditions of use. These are important
245 | conditions of this License, and if You fail to follow them, You will be
246 | in material breach of its terms.
247 |
248 | 4.2 Notices. If You Publicly Convey this Database, any Derivative
249 | Database, or the Database as part of a Collective Database, then You
250 | must:
251 |
252 | a. Do so only under the terms of this License or another license
253 | permitted under Section 4.4;
254 |
255 | b. Include a copy of this License (or, as applicable, a license
256 | permitted under Section 4.4) or its Uniform Resource Identifier (URI)
257 | with the Database or Derivative Database, including both in the
258 | Database or Derivative Database and in any relevant documentation; and
259 |
260 | c. Keep intact any copyright or Database Right notices and notices
261 | that refer to this License.
262 |
263 | d. If it is not possible to put the required notices in a particular
264 | file due to its structure, then You must include the notices in a
265 | location (such as a relevant directory) where users would be likely to
266 | look for it.
267 |
268 | 4.3 Notice for using output (Contents). Creating and Using a Produced
269 | Work does not require the notice in Section 4.2. However, if you
270 | Publicly Use a Produced Work, You must include a notice associated with
271 | the Produced Work reasonably calculated to make any Person that uses,
272 | views, accesses, interacts with, or is otherwise exposed to the Produced
273 | Work aware that Content was obtained from the Database, Derivative
274 | Database, or the Database as part of a Collective Database, and that it
275 | is available under this License.
276 |
277 | a. Example notice. The following text will satisfy notice under
278 | Section 4.3:
279 |
280 | Contains information from DATABASE NAME, which is made available
281 | here under the Open Database License (ODbL).
282 | DATABASE NAME should be replaced with the name of the Database and a
283 | hyperlink to the URI of the Database. “Open Database License” should
284 | contain a hyperlink to the URI of the text of this License. If
285 | hyperlinks are not possible, You should include the plain text of the
286 | required URI’s with the above notice.
287 |
288 | 4.4 Share alike.
289 |
290 | a. Any Derivative Database that You Publicly Use must be only under
291 | the terms of:
292 |
293 | i. This License;
294 |
295 | ii. A later version of this License similar in spirit to this
296 | License; or
297 |
298 | iii. A compatible license.
299 |
300 | If You license the Derivative Database under one of the licenses
301 | mentioned in (iii), You must comply with the terms of that license.
302 |
303 | b. For the avoidance of doubt, Extraction or Re-utilisation of the
304 | whole or a Substantial part of the Contents into a new database is a
305 | Derivative Database and must comply with Section 4.4.
306 |
307 | c. Derivative Databases and Produced Works. A Derivative Database is
308 | Publicly Used and so must comply with Section 4.4. if a Produced Work
309 | created from the Derivative Database is Publicly Used.
310 |
311 | d. Share Alike and additional Contents. For the avoidance of doubt,
312 | You must not add Contents to Derivative Databases under Section 4.4 a
313 | that are incompatible with the rights granted under this License.
314 |
315 | e. Compatible licenses. Licensors may authorise a proxy to determine
316 | compatible licenses under Section 4.4 a iii. If they do so, the
317 | authorised proxy’s public statement of acceptance of a compatible
318 | license grants You permission to use the compatible license.
319 |
320 | 4.5 Limits of Share Alike. The requirements of Section 4.4 do not apply
321 | in the following:
322 |
323 | a. For the avoidance of doubt, You are not required to license
324 | Collective Databases under this License if You incorporate this
325 | Database or a Derivative Database in the collection, but this License
326 | still applies to this Database or a Derivative Database as a part of
327 | the Collective Database;
328 |
329 | b. Using this Database, a Derivative Database, or this Database as
330 | part of a Collective Database to create a Produced Work does not
331 | create a Derivative Database for purposes of Section 4.4; and
332 |
333 | c. Use of a Derivative Database internally within an organisation is
334 | not to the public and therefore does not fall under the requirements
335 | of Section 4.4.
336 |
337 | 4.6 Access to Derivative Databases. If You Publicly Use a Derivative
338 | Database or a Produced Work from a Derivative Database, You must also
339 | offer to recipients of the Derivative Database or Produced Work a copy
340 | in a machine readable form of:
341 |
342 | a. The entire Derivative Database; or
343 |
344 | b. A file containing all of the alterations made to the Database or
345 | the method of making the alterations to the Database (such as an
346 | algorithm), including any additional Contents, that make up all the
347 | differences between the Database and the Derivative Database.
348 |
349 | The Derivative Database (under a.) or alteration file (under b.) must be
350 | available at no more than a reasonable production cost for physical
351 | distributions and free of charge if distributed over the internet.
352 |
353 | 4.7 Technological measures and additional terms
354 |
355 | a. This License does not allow You to impose (except subject to
356 | Section 4.7 b.) any terms or any technological measures on the
357 | Database, a Derivative Database, or the whole or a Substantial part of
358 | the Contents that alter or restrict the terms of this License, or any
359 | rights granted under it, or have the effect or intent of restricting
360 | the ability of any person to exercise those rights.
361 |
362 | b. Parallel distribution. You may impose terms or technological
363 | measures on the Database, a Derivative Database, or the whole or a
364 | Substantial part of the Contents (a “Restricted Database”) in
365 | contravention of Section 4.74 a. only if You also make a copy of the
366 | Database or a Derivative Database available to the recipient of the
367 | Restricted Database:
368 |
369 | i. That is available without additional fee;
370 |
371 | ii. That is available in a medium that does not alter or restrict
372 | the terms of this License, or any rights granted under it, or have
373 | the effect or intent of restricting the ability of any person to
374 | exercise those rights (an “Unrestricted Database”); and
375 |
376 | iii. The Unrestricted Database is at least as accessible to the
377 | recipient as a practical matter as the Restricted Database.
378 |
379 | c. For the avoidance of doubt, You may place this Database or a
380 | Derivative Database in an authenticated environment, behind a
381 | password, or within a similar access control scheme provided that You
382 | do not alter or restrict the terms of this License or any rights
383 | granted under it or have the effect or intent of restricting the
384 | ability of any person to exercise those rights.
385 |
386 | 4.8 Licensing of others. You may not sublicense the Database. Each time
387 | You communicate the Database, the whole or Substantial part of the
388 | Contents, or any Derivative Database to anyone else in any way, the
389 | Licensor offers to the recipient a license to the Database on the same
390 | terms and conditions as this License. You are not responsible for
391 | enforcing compliance by third parties with this License, but You may
392 | enforce any rights that You have over a Derivative Database. You are
393 | solely responsible for any modifications of a Derivative Database made
394 | by You or another Person at Your direction. You may not impose any
395 | further restrictions on the exercise of the rights granted or affirmed
396 | under this License.
397 |
398 | 5.0 Moral rights
399 | 5.1 Moral rights. This section covers moral rights, including any rights
400 | to be identified as the author of the Database or to object to treatment
401 | that would otherwise prejudice the author’s honour and reputation, or
402 | any other derogatory treatment:
403 |
404 | a. For jurisdictions allowing waiver of moral rights, Licensor waives
405 | all moral rights that Licensor may have in the Database to the fullest
406 | extent possible by the law of the relevant jurisdiction under Section
407 | 10.4;
408 |
409 | b. If waiver of moral rights under Section 5.1 a in the relevant
410 | jurisdiction is not possible, Licensor agrees not to assert any moral
411 | rights over the Database and waives all claims in moral rights to the
412 | fullest extent possible by the law of the relevant jurisdiction under
413 | Section 10.4; and
414 |
415 | c. For jurisdictions not allowing waiver or an agreement not to assert
416 | moral rights under Section 5.1 a and b, the author may retain their
417 | moral rights over certain aspects of the Database.
418 |
419 | Please note that some jurisdictions do not allow for the waiver of moral
420 | rights, and so moral rights may still subsist over the Database in some
421 | jurisdictions.
422 |
423 | 6.0 Fair dealing, Database exceptions, and other rights not affected
424 | 6.1 This License does not affect any rights that You or anyone else may
425 | independently have under any applicable law to make any use of this
426 | Database, including without limitation:
427 |
428 | a. Exceptions to the Database Right including: Extraction of Contents
429 | from non-electronic Databases for private purposes, Extraction for
430 | purposes of illustration for teaching or scientific research, and
431 | Extraction or Re-utilisation for public security or an administrative
432 | or judicial procedure.
433 |
434 | b. Fair dealing, fair use, or any other legally recognised limitation
435 | or exception to infringement of copyright or other applicable laws.
436 |
437 | 6.2 This License does not affect any rights of lawful users to Extract
438 | and Re-utilise insubstantial parts of the Contents, evaluated
439 | quantitatively or qualitatively, for any purposes whatsoever, including
440 | creating a Derivative Database (subject to other rights over the
441 | Contents, see Section 2.4). The repeated and systematic Extraction or
442 | Re-utilisation of insubstantial parts of the Contents may however amount
443 | to the Extraction or Re-utilisation of a Substantial part of the
444 | Contents.
445 |
446 | 7.0 Warranties and Disclaimer
447 | 7.1 The Database is licensed by the Licensor “as is” and without any
448 | warranty of any kind, either express, implied, or arising by statute,
449 | custom, course of dealing, or trade usage. Licensor specifically
450 | disclaims any and all implied warranties or conditions of title,
451 | non-infringement, accuracy or completeness, the presence or absence of
452 | errors, fitness for a particular purpose, merchantability, or otherwise.
453 | Some jurisdictions do not allow the exclusion of implied warranties, so
454 | this exclusion may not apply to You.
455 |
456 | 8.0 Limitation of liability
457 | 8.1 Subject to any liability that may not be excluded or limited by law,
458 | the Licensor is not liable for, and expressly excludes, all liability
459 | for loss or damage however and whenever caused to anyone by any use
460 | under this License, whether by You or by anyone else, and whether caused
461 | by any fault on the part of the Licensor or not. This exclusion of
462 | liability includes, but is not limited to, any special, incidental,
463 | consequential, punitive, or exemplary damages such as loss of revenue,
464 | data, anticipated profits, and lost business. This exclusion applies
465 | even if the Licensor has been advised of the possibility of such
466 | damages.
467 |
468 | 8.2 If liability may not be excluded by law, it is limited to actual and
469 | direct financial loss to the extent it is caused by proved negligence on
470 | the part of the Licensor.
471 |
472 | 9.0 Termination of Your rights under this License
473 | 9.1 Any breach by You of the terms and conditions of this License
474 | automatically terminates this License with immediate effect and without
475 | notice to You. For the avoidance of doubt, Persons who have received the
476 | Database, the whole or a Substantial part of the Contents, Derivative
477 | Databases, or the Database as part of a Collective Database from You
478 | under this License will not have their licenses terminated provided
479 | their use is in full compliance with this License or a license granted
480 | under Section 4.8 of this License. Sections 1, 2, 7, 8, 9 and 10 will
481 | survive any termination of this License.
482 |
483 | 9.2 If You are not in breach of the terms of this License, the Licensor
484 | will not terminate Your rights under it.
485 |
486 | 9.3 Unless terminated under Section 9.1, this License is granted to You
487 | for the duration of applicable rights in the Database.
488 |
489 | 9.4 Reinstatement of rights. If you cease any breach of the terms and
490 | conditions of this License, then your full rights under this License
491 | will be reinstated:
492 |
493 | a. Provisionally and subject to permanent termination until the 60th
494 | day after cessation of breach;
495 |
496 | b. Permanently on the 60th day after cessation of breach unless
497 | otherwise reasonably notified by the Licensor; or
498 |
499 | c. Permanently if reasonably notified by the Licensor of the
500 | violation, this is the first time You have received notice of
501 | violation of this License from the Licensor, and You cure the
502 | violation prior to 30 days after your receipt of the notice.
503 |
504 | Persons subject to permanent termination of rights are not eligible to
505 | be a recipient and receive a license under Section 4.8.
506 |
507 | 9.5 Notwithstanding the above, Licensor reserves the right to release
508 | the Database under different license terms or to stop distributing or
509 | making available the Database. Releasing the Database under different
510 | license terms or stopping the distribution of the Database will not
511 | withdraw this License (or any other license that has been, or is
512 | required to be, granted under the terms of this License), and this
513 | License will continue in full force and effect unless terminated as
514 | stated above.
515 |
516 | 10.0 General
517 | 10.1 If any provision of this License is held to be invalid or
518 | unenforceable, that must not affect the validity or enforceability of
519 | the remainder of the terms and conditions of this License and each
520 | remaining provision of this License shall be valid and enforced to the
521 | fullest extent permitted by law.
522 |
523 | 10.2 This License is the entire agreement between the parties with
524 | respect to the rights granted here over the Database. It replaces any
525 | earlier understandings, agreements or representations with respect to
526 | the Database.
527 |
528 | 10.3 If You are in breach of the terms of this License, You will not be
529 | entitled to rely on the terms of this License or to complain of any
530 | breach by the Licensor.
531 |
532 | 10.4 Choice of law. This License takes effect in and will be governed by
533 | the laws of the relevant jurisdiction in which the License terms are
534 | sought to be enforced. If the standard suite of rights granted under
535 | applicable copyright law and Database Rights in the relevant
536 | jurisdiction includes additional rights not granted under this License,
537 | these additional rights are granted in this License in order to meet the
538 | terms of this License.
539 |
--------------------------------------------------------------------------------