Simple wrappers around docker and OGR commands to expose ogr2ogr and ogrinfo using the latest builds. You need to be careful to always put absolute paths to your local data so the docker image can access it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| # In[ ]: | |
| get_ipython().system('pip3 install -U InstagramApi') | |
| # In[37]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Minimal Docker Compose cluster for ElasticSearch and Kibana 7.4 | |
| # Put this file any folder creating "logs" and "esdata" folders | |
| # to persist the cluster indices and kibana state | |
| version: "3" | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0 | |
| container_name: elasticsearch | |
| ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Small script to fix geometries of the first file argument | |
| using the native QGIS processing algorithm. You may need | |
| to adjust the path to you installation. | |
| """ | |
| import sys | |
| sys.path.append('/usr/share/qgis/python/plugins') | |
| from processing.core.Processing import Processing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- change 18 to whatever the max zoom level you want in your MBTiles | |
| DELETE FROM images WHERE | |
| tile_id IN (SELECT tile_id FROM map WHERE zoom_level > 18) AND | |
| tile_id NOT IN (SELECT tile_id FROM map WHERE zoom_level <= 18); | |
| DELETE FROM map WHERE zoom_level > 18; | |
| UPDATE metadata SET value = '18' WHERE name = 'maxzoom'; |
This simple scripts scraps the FOSS4G Community Review pages to convert the abstracts into a JSON file that will contain for each abstract:
- Page number
- Title
- Abstract in HTML
- Your score if it exists
Requirements: Python 3, [BeautifulSoup][bs], and [Requests][req]
It expects a FOSS4G_ID environment variable that is the variable part of the URL that you get when you sign in for the community review: https://talks.osgeo.org/foss4g-2022/p/voting/talks/{FOSS4G_ID}?.
This is a CSV with country official websites from all the world, and a simple script that randomly access to five of them every five seconds. The objective of this is to hit as many different country IP's as possible.
The CSV is obtained from this SPARQL query to Wikidata:
SELECT
?idLabel
(SAMPLE(?website) as ?web)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| workshop | |
| .env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data | |
| .env |
- Workshop materials.
- Reused the
postgisDocker Compose template from previous workshop - Reused also the
osgeo/gdalcontainer to useogr2ogron the downloaded shapefiles. - Added
pg_featureservandpg_tileservDocker images passing the.tomlconfigurations as part of thecommandsetting. - Added an
nginxservice to the compose file for the HTML files. - Played with different HTML pages that load tiles from
pg_tileservand displays them using OpenLayers. - Created a view that returns random points.