Comments (16)
Started mapping as well...
from equalstreetnames.
You're right! Macos ships a very old version of php! I'll try again with a new version 'brew install php'
from equalstreetnames.
My guess concerning the DivisionByZeroError
was indeed that there was no data to process.
I'll add an error and stop the process if it happens so we don't get the DivisionByZeroError
.
from equalstreetnames.
awesome! Yes I was going to open an issue for that, but it works just as well in this one!
from equalstreetnames.
I'll make the process updates later today (or tomorrow):
- Add submodule
- Enable automated data process
- Enable automated website deployment
- Add city to README
- Add city to global website (https://equalstreetnames.be/)
from equalstreetnames.
from equalstreetnames.
Hello @RMHogervorst ,
First things first: welcome on board!
You're indeed right, I used Typed Properties that appears in PHP 7.4 but still accept PHP 7.2 and PHP 7.3 in composer.json
.
I'll update the composer.json
file.
You're probably using a version of PHP prior to PHP 7.4.
Please upgrade to PHP 7.4 or PHP 8.0 !
from equalstreetnames.
oh god, you have to force macos to use a newer version.
If anyone has the same issue: use brew to install a new version of php brew install php
This will tell you where that version is installed.
Add that path to the PATH. So in your .bash_profile (or zsh config)
Add a line like this: export PATH=/usr/local/Cellar/php/8.0.5/bin:$PATH
this will put the php version of homebrew before the standard macos version. Check if you have new version by first restarting the shell, or running the export PATH
line I just mentioned. and call which php
in your terminal to see if you have recent version. In my case it should read /usr/local/Cellar/php/8.0.5/bin/php
from equalstreetnames.
unfortunately this is not enough, I have a new error! I think I'm not getting the correct data.
I get a Uncaught DivisionByZeroError: Division by zero in PATHTOTHERIGHTFOLDER/equalstreetnames/process/Command/StatisticsCommand.php:123
So I guess it isn't downloading the right values?
The gender.csv and the other files are all without data (do contain headers). the boundary.geojson is filled though.
$output->writeln([
sprintf('Person: %d', $total),
sprintf(' Female (cis): %d (%.2f %%)', $genders['F'], $genders['F'] / $total * 100),
sprintf(' Male (cis): %d (%.2f %%)', $genders['M'], $genders['M'] / $total * 100),
sprintf(' Female (trans): %d (%.2f %%)', $genders['FX'], $genders['FX'] / $total * 100),
sprintf(' Male (trans): %d (%.2f %%)', $genders['MX'], $genders['MX'] / $total * 100),
sprintf(' Intersex: %d (%.2f %%)', $genders['X'], $genders['X'] / $total * 100),
sprintf(' Non-Binary: %d (%.2f %%)', $genders['NB'], $genders['NB'] / $total * 100),
sprintf(' Multiple: %d (%.2f %%)', $genders['+'], $genders['+'] / $total * 100),
sprintf(' Unknown: %d (%.2f %%)', $genders['?'], $genders['?'] / $total * 100),
sprintf('Not a person: %d', $genders['-']),
]);
from equalstreetnames.
hmm it doesn't download the right roads
> php process.php geojson '--city=netherlands/leiden'
Generate GeoJSON files.
City: netherlands/leiden
Relations: 0 node(s), 0 way(s), 0 relation(s)
0 [->--------------------------]
Ways: 0 node(s), 0 way(s), 0 relation(s)
0 [->--------------------------]
from equalstreetnames.
I first used the wrong OSM relation, (there are 2 for leiden) and so the boundary and adminlevel did not match. It took several tries but now I have a better relation with corresponding adminlevel and it downloads streets!
from equalstreetnames.
Thanks for all the help! it seems to work really well now!
from equalstreetnames.
My pleasure.
I've created a @EqualStreetNames/leiden team. in case you want to merge Leiden with the rest of the cities by transferring your repository under @EqualStreetNames organization. You'll of course stay admin of the repository if you decide to transfer it (see https://github.com/EqualStreetNames/equalstreetnames-template#integrate-your-city-to-the-project)
from equalstreetnames.
@RMHogervorst Could you already create a MAPBOX_TOKEN secret variable with your (valid) Mapbox token in your repository : https://github.com/EqualStreetNames/equalstreetnames-leiden/settings/secrets/actions/new ?
from equalstreetnames.
Website is live: https://leiden.equalstreetnames.eu/en/index.html
Domain name leiden.equalstreetnames.eu
is "offered" and managed by @RobinLinde.
Let us know if you want to setup your own domain name.
from equalstreetnames.
I think everything is up and running so I'll close this issue.
from equalstreetnames.
Related Issues (20)
- Streets in a OSM-Relation are not displayed HOT 6
- How to tag streets named after multiple people? HOT 2
- Kaiserslautern (Germany) is ready HOT 7
- Add Bilbao HOT 4
- Add Tallinn, Estonia HOT 29
- documentation: slight confusion Brussels vs Bruges HOT 1
- Make relation processing compatible with `type=route` relations
- Ready to add a new city to the project - Rixensart HOT 7
- Add Basel, Switzerland HOT 6
- Streets with national hero status HOT 4
- Please add estonia-tartu project HOT 9
- Centralized statistics page HOT 1
- Create other kind of aggregation HOT 1
- Last Update failed HOT 3
- Add Tivat, Montenegro HOT 6
- Use line-width to signal wikidata availability HOT 1
- Rename `overpass/*` to `overpass/*.overpassql` HOT 5
- Wish to start EqualStreetNames.CapeTown HOT 2
- MapLibre upgrade to version 2 and drop of Mapbox baselayer HOT 2
- Frankfurt am Main (Germany) is ready HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from equalstreetnames.