Skip to content

Commit

Permalink
Merge pull request #194 from AgenceBio/feature/export-asp-removal
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot committed Jun 24, 2024
2 parents dc81c87 + b08750f commit 586569e
Show file tree
Hide file tree
Showing 4 changed files with 529 additions and 1,207 deletions.
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,25 +156,6 @@ ogr2ogr rpg.geojson rpg.gpkg
tippecanoe -Z10 -z14 --extend-zooms-if-still-dropping --no-tile-compression --simplify-only-low-zooms --drop-densest-as-needed --output-to-directory rpg-202x --projection EPSG:3857 --name "RPG 202x" --layer "rpg202x" --exclude NUM_ILOT --exclude NUM_PARCEL --exclude PACAGE --force rpg.geojson
```

## Exporter pour l'ASP

La commande produit un fichier GeoJSON. Elle accepte deux arguments, optionnels :

- `--only-c1` : filtre les parcelles à celles en C1, certifiées jusqu'au 19/09 de l'année en cours, et auditées avant le 15/05 de l'année en cours ;
- `--numerobio-path` : chemin du fichier CSV où consigner la liste des numéro bio des parcelles exportées.

### La couche au 15 mai (tout)

```bash
docker exec cartobio-api-production node bin/export-asp.js --numerobio-path cartobio-asp.csv | ogr2ogr cartobio-asp.gpkg /vsistdin/
```

### La couche au 12 octobre (C1 uniquement)

```bash
docker exec cartobio-api-production node bin/export-asp.js --only-c1 --numerobio-path cartobio-asp-c1.csv | ogr2ogr cartobio-asp-c1.gpkg /vsistdin/
```

[cartobio-front]: https://github.com/agencebio/cartobio-front
[jwt]: https://jwt.io/

Expand Down
109 changes: 0 additions & 109 deletions bin/export-asp.js

This file was deleted.

Loading

0 comments on commit 586569e

Please sign in to comment.