Commit Graph

368 Commits

Author SHA1 Message Date
ezwelty
bcf6d595b4 Add Swiss cantonal invasive plant maps 2025-05-13 15:29:01 +02:00
ezwelty
b7d800d111 Update metadata for Denver, Colorado 2025-05-05 14:15:40 +02:00
ezwelty
178817de21 Merge branch 'main' of https://github.com/ezwelty/opentrees-harvester 2025-05-05 06:40:48 +02:00
ezwelty
48ba25726d Define the codes source property 2025-05-05 06:40:17 +02:00
ezwelty
d5e8066d99 Add support for object code definitions
These get expanded into new fields.
2025-05-05 06:40:09 +02:00
ezwelty
fa9d1eb82a Define species codes used in London, Ontario 2025-05-05 06:39:29 +02:00
Ethan Welty
65b958a1e1
Update Oakville, Ontario license 2025-02-25 21:28:23 +01:00
ezwelty
57110ccd51 Add missing (and remove unused) imports 2024-12-02 12:06:38 +01:00
ezwelty
e3302a0ff9 Update development instructions 2024-09-25 08:26:13 +02:00
ezwelty
92f36dba9e Add basic module docstrings 2024-09-25 08:25:19 +02:00
ezwelty
c6480f0714 Fix opening of Winterthur XML file 2024-09-24 23:11:41 +02:00
ezwelty
0234726c85 Update readme and cli 2024-09-24 23:11:41 +02:00
ezwelty
dc728e28a0 Refine and define scope attribute 2024-09-24 23:11:41 +02:00
ezwelty
1a0d1c1b00 Rewrite schema matching module 2024-09-24 23:11:41 +02:00
ezwelty
b1d77d0ff2 Update API documentation 2024-09-24 23:11:41 +02:00
ezwelty
547a8a48b8 Update Syracuse, NY inventory 2024-09-24 23:11:41 +02:00
ezwelty
5a87cbe966 Swap axes of Porto notable tree inventory 2024-09-24 23:11:41 +02:00
ezwelty
4e6dfb7820 Fix return type of West Hollywood coordsFunc 2024-09-24 23:11:41 +02:00
ezwelty
958f0ebabe Throw entire geocoding error
Cannot assume that it is an error from the geocoding service
(e.g. axios timeout error)
2024-09-24 23:11:41 +02:00
ezwelty
c1d1ab0a2f Fix writing of 0 and false to CSV
Falsy values were written as ''. Fixed by testing for null/undefined/nan only.
2024-09-24 23:11:41 +02:00
ezwelty
e475cf469a Fix spelling of 'Aiken' 2024-09-24 23:11:41 +02:00
ezwelty
13a3948fad Fix return type of Providence coordsFunc 2024-09-24 23:11:41 +02:00
ezwelty
ddfc0fda29 Fix source spatial reference systems
Some were wrongly assumed to be geocentric.
Some had correct coordinates but were labeled with wrong state or city.
Most were EPSG:4326, but with wrong axis order.
2024-09-24 23:11:41 +02:00
ezwelty
38fd925f33 Refactor and simplify Source.process
* Drop allowEmptyGeometry option
* Lump invalidParsedCoordinates and emptyGeometry into invalidGeometries
* Move feature geometry construction to getFeatureGeometry
* Override layer SRS with source.props.srs
* Ensure output geometry is 2D
2024-09-24 23:11:41 +02:00
ezwelty
15de596893 Add function to detect swapped spatial axes 2024-09-24 23:11:41 +02:00
ezwelty
68f9f29039 Fix axis order of Villa Maria, Argentina 2024-09-24 23:11:41 +02:00
ezwelty
ca991da231 Update Melbourne to snake_case column names 2024-09-24 23:11:41 +02:00
ezwelty
7628e7ba90 Fix source geometries 2024-09-24 23:11:41 +02:00
ezwelty
2db58ad0bc Replace / with | in city name to use in paths 2024-09-24 23:11:41 +02:00
ezwelty
f8a73143a3 Update Berlin data URLs 2024-09-24 23:11:41 +02:00
ezwelty
b310e4bc09 Map coded fields to their logical values
Implements the use of Source.props.codes.
2024-09-24 23:11:41 +02:00
ezwelty
3b53b4a26a Remove Source.process option deleteFunc 2024-09-24 23:11:41 +02:00
ezwelty
a1fe5059c1 Convert array fields to string 2024-09-24 23:11:41 +02:00
ezwelty
788d6b2386 Work around GDAL requiring unique field names (ignoring case)
Field names are deduplicated as {field.name}__{index}.
2024-09-24 23:11:41 +02:00
ezwelty
ce38a52c03 Fix bug reading field containing WKT geometry 2024-09-24 23:11:41 +02:00
ezwelty
8dc59d8e52 Remove Source.getSrsString method 2024-09-24 23:11:41 +02:00
ezwelty
b3ecda96dd Remove use of VRT in Source 2024-09-24 23:11:41 +02:00
ezwelty
602720fa3c Update Source.process
* Change default SRS to EPSG:4326
* Improve handling of axis order
* Update GDAL link to gdal-async
* Remove use of VRT and load x and y coordinates from fields
2024-09-24 23:11:41 +02:00
ezwelty
e3729cebf2 Update getSrs methods to use getLayer 2024-09-24 23:11:41 +02:00
ezwelty
8baa5ebb94 Improve detection of SRS axis order 2024-09-24 23:11:41 +02:00
ezwelty
f48057249c Update coordinate functions 2024-09-24 23:11:41 +02:00
ezwelty
2230a87b48 Fix dbh and add origin to Buenos Aires 2024-09-24 23:11:41 +02:00
ezwelty
4f594e4270 Use +init=epsg:4326 for (longitude, latitude) order 2024-09-24 23:11:41 +02:00
ezwelty
6888aadb06 Consider axis order when comparing SRS 2024-09-24 23:11:41 +02:00
ezwelty
c3cab068ec Add Falling Fruit ID to Porto, Portugal 2024-09-24 23:11:41 +02:00
ezwelty
2d441399e4 Add Porto, Portugal inventories 2024-09-24 23:11:41 +02:00
ezwelty
49bdbba649 Add mm unit 2024-09-24 23:11:41 +02:00
ezwelty
8c7c02833d Fix bugs in source properties 2024-09-24 23:11:41 +02:00
ezwelty
18b47ab7b1 Move type definitions to separate module 2024-09-24 23:11:41 +02:00
ezwelty
d571657b26 Remove unused import 2024-09-24 23:11:41 +02:00