<commit_before>#!/usr/bin/env bash

# the WFS has a faulty coordinate transformation
# hence we download it in native coord. sys. 
# and transform locally
echo 'Downloading GeoJSON in EPSG:28992...'
ogr2ogr -f GeoJSON temp.geojson WFS:"http://services.inspire-provincies.nl/AgriculturalAndAquacultureFacilities/services/download_AF"

echo 'Transforming to GeoJSON in WGS84 (lat/lng)...'
ogr2ogr -f GeoJSON ../data/bestand-veehouderijbedrijven.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 -f GeoJSON temp.geojson
rm temp.geojson

echo 'Done!'<commit_msg>switch to curl and explicit GetFeature call<commit_after>#!/usr/bin/env bash

echo 'Downloading GeoJSON in EPSG:28992...'
curl "http://services.inspire-provincies.nl/AgriculturalAndAquacultureFacilities/services/download_AF?request=getfeature&service=wfs&version=2.0.0&typename=app:Stalgroep&srsname=EPSG:28992" > temp.gml

echo 'Transforming to GeoJSON in WGS84 (lat/lng)...'
ogr2ogr -f GeoJSON ../data/bestand-veehouderijbedrijven.geojson -s_srs EPSG:28992 -t_srs EPSG:4326 -f GeoJSON temp.gml

echo 'Cleaning up'
rm temp.gml

echo 'Done!'
{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.039377289377289376, 'mean_word_length': 5.391812865497076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6197292', 'n_tokens_mistral': 451, 'n_tokens_neox': 396, 'n_words': 92}