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
| /* | |
| --------------------------------- | |
| ballparks2.geojson from James Fee | |
| --------------------------------- | |
| Note that there's attribute "Teams", which has a value of a JSON array of JSON objects. | |
| QGIS 3 interprets this as string. | |
| Turning this string into an array still is an array of JSON Objects. | |
| So, this has to be treated first as a JSON object. |
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
| -- | |
| -- FUNCTION split_text_to_array(...) | |
| -- Accepts a delimited text (string). Returns a sorted array of text. | |
| -- | |
| --drop function if exists split_text_to_array(text, char(1)); | |
| create or replace function split_text_to_array(text_delimited text, delimiter text default ';') | |
| returns text[] | |
| as $$ | |
| select array(select regexp_split_to_table(lower(regexp_replace(text_delimited, '( )|'||delimiter||'$', '', 'g')), delimiter) order by 1); | |
| $$ language sql immutable strict parallel safe; |
Original site and copyrights: http://artsafiental.ch/
Base URLs for
- image filename: https://user-images.githubusercontent.com/43340/
- subpage details: http://artsafiental.ch/en/as2020/hiddenpage/
Beschreibung (umap):
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
| /*================================================== | |
| * Stored Function link_pg_server(...) | |
| * ================================================== | |
| * | |
| * Linking to a remote PostgreSQL db read-only. | |
| * Uses postgres_fdw the SQL/MED implementation | |
| * (Foreign Data Wrapper). | |
| * Goal is to achieve aka "SQL Endpoints" for linked data | |
| * similar to SPARQL. | |
| * |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| SELECT | |
| CASE WHEN GROUPING(movie.genre) = 1 then 'All Genres' else movie.genre end as Genre, | |
| CASE WHEN GROUPING(customer.gender) = 1 then 'All Genders' else customer.gender end as Gender, | |
| sum(sales.quantity) AS Quantity | |
| FROM factsales sales, dimmovie movie, dimcustomer customer | |
| WHERE sales.movieId = movie.movieId | |
| AND sales.custID = customer.custID | |
| GROUP BY CUBE(movie.genre, customer.gender); | |
| /* |
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
| SELECT ST_AsText(way) geom, | |
| COALESCE(name, '')||' '||osm_id AS label | |
| FROM osm_polygon | |
| WHERE tags->'building' > '' | |
| AND ST_Intersects(way, | |
| (SELECT way | |
| FROM osm_polygon | |
| WHERE osm_id=-1684362)) |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Embedded uMap Example</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="script.js"></script> | |
| </head> | |
| <body> | |
| <!-- page content --> |