Postgresql spatial queries [on hold]
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
Could someone check my Postgresql queries? I wrote the explanation first and then the query. The purpose of these queries is to write a test which calculates how many seconds it takes Postgresql to answer these queries.
1 list all sushi bars within borders of Cracow city
select name from planet_osm_point where amenity='restaurant' and name ilike '%sushi%' and ST_Within(way, (select multipolygon from krakow limit 1));
2 calculate the total length of aphalt roads in Cracow
select sum(st_length(way)) from planet_osm_roads where surface='asphalt' and ST_Within(way, (select multipolygon from krakow limit 1));
3 count all carpet beaters in Cracow
select count(*) from planet_osm_point where amenity='beater' and ST_Within(way, (select multipolygon from krakow limit 1));
4 find distance between Wydziaà  Matematyki i Informatyki UJ and the restaurant Miód i Malina
select ST_distance((select way from planet_osm_point where amenity = 'university' and name ilike '%WydziaÃ
 Matematyki i Informatyki%'), (select way from planet_osm_point where amenity = 'restaurant' and name ilike '%malina%'));
find how many amenities are in the radius of 10 km from the restaurant "miód i malina"
select amenity, count(*) from planet_osm_point where ST_distance((select way from planet_osm_point where name ilike '%malina%' and amenity = 'restaurant'), way) <= 10000 group by amenity order by 2 desc;
find longest primary roads in Kraków
select name, sum(ST_length(way)) from planet_osm_roads where highway = 'primary' and name is not null and name not ilike '%powiat%' and name not ilike '%województwo%' and name not ilike '%subregion%' and name not ilike '%Kraków%' and ST_within(way, (select multipolygon from krakow limit 1)) group by name order by 2 desc limit 10;
find longest only pedestrian road in Kraków
select name, sum(ST_length(way)) from planet_osm_roads where highway = 'pedestrian' and name is not null and name not ilike '%powiat%' and name not ilike '%województwo%' and name not ilike '%subregion%' and name not ilike '%Kraków%' and ST_within(way, (select multipolygon from krakow limit 1)) group by name order by 2 desc limit 1;
select amenities which are at most 10 km from restaurant Miód i Malina and at most 5 km from "Szara Ges", group them by their type and count them
select amenity, count(*) from planet_osm_point where (ST_distance((select way from planet_osm_point where name ilike '%malina%' and amenity = 'restaurant'), way) <= 10000 and st_distance((select way from planet_osm_point where name ilike '%szara ges%' and amenity = 'restaurant'), way) <= 5000) group by amenity order by 2 desc;
select theatres which are not further than 50 km from Sukiennice (Rynek Gà Âówny) but they lie outside Krakow and give distance
select name, ST_distance(way, (select way from planet_osm_point where name ilike '%muzeum sukiennice%')) from planet_osm_point where amenity = 'theatre' and st_distance(way, (select way from planet_osm_point where name ilike '%muzeum sukiennice%')) <500000 and not ST_Within(way, (select multipolygon from krakow limit 1));
find all the castles from the map and their distance from the Krakow city center
select a.name, ST_distance(ST_setSRID(a.way, 4326), ST_GeomFromText('POINT(19.938333 50.061389)', 4326)) from planet_osm_polygon as a where historic ilike '%castle%'order by 1;
calculate areas of different lakes that can be found in the map
select name, sum(st_area(way)) from planet_osm_polygon where water = 'lake'and name is not null group by name order by 1;
calculate the area of different lakes within Cracow boundaries.
select name, sum(st_area(way)) from planet_osm_polygon where water = 'lake'and name is not null and ST_Within(way, (select multipolygon from krakow limit 1)) group by name order by 1;
calculate total area of forests within Cracow boundaries
select sum(st_area(way)) from planet_osm_polygon where (wood ilike '%coniferous%') or (wood ilike 'mixed') or (wood ilike '%evergreen%') or (wood ilike '%deciduous%') and ST_Within(way, (select multipolygon from krakow limit 1));
Number of intersections between asphalt roads which are shorter than 100m.
select count(*) from planet_osm_roads as a, planet_osm_roads as b where a.surface = 'asphalt' and b.surface='asphalt' and a.osm_id != b.osm_id and st_length(b.way) < 100 and st_length(a.way) < 100 and st_crosses(a.way,b.way);
Here is the contents of the tables in the osm file imported into Postgresql
sql postgresql geospatial
put on hold as off-topic by Mast, yuri, Stephen Rauch, Ludisposed, t3chb0t Aug 3 at 8:08
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Lacks concrete context: Code Review requires concrete code from a project, with sufficient context for reviewers to understand how that code is used. Pseudocode, stub code, hypothetical code, obfuscated code, and generic best practices are outside the scope of this site." â Mast, yuri, Ludisposed, t3chb0t
add a comment |Â
up vote
0
down vote
favorite
Could someone check my Postgresql queries? I wrote the explanation first and then the query. The purpose of these queries is to write a test which calculates how many seconds it takes Postgresql to answer these queries.
1 list all sushi bars within borders of Cracow city
select name from planet_osm_point where amenity='restaurant' and name ilike '%sushi%' and ST_Within(way, (select multipolygon from krakow limit 1));
2 calculate the total length of aphalt roads in Cracow
select sum(st_length(way)) from planet_osm_roads where surface='asphalt' and ST_Within(way, (select multipolygon from krakow limit 1));
3 count all carpet beaters in Cracow
select count(*) from planet_osm_point where amenity='beater' and ST_Within(way, (select multipolygon from krakow limit 1));
4 find distance between Wydziaà  Matematyki i Informatyki UJ and the restaurant Miód i Malina
select ST_distance((select way from planet_osm_point where amenity = 'university' and name ilike '%WydziaÃ
 Matematyki i Informatyki%'), (select way from planet_osm_point where amenity = 'restaurant' and name ilike '%malina%'));
find how many amenities are in the radius of 10 km from the restaurant "miód i malina"
select amenity, count(*) from planet_osm_point where ST_distance((select way from planet_osm_point where name ilike '%malina%' and amenity = 'restaurant'), way) <= 10000 group by amenity order by 2 desc;
find longest primary roads in Kraków
select name, sum(ST_length(way)) from planet_osm_roads where highway = 'primary' and name is not null and name not ilike '%powiat%' and name not ilike '%województwo%' and name not ilike '%subregion%' and name not ilike '%Kraków%' and ST_within(way, (select multipolygon from krakow limit 1)) group by name order by 2 desc limit 10;
find longest only pedestrian road in Kraków
select name, sum(ST_length(way)) from planet_osm_roads where highway = 'pedestrian' and name is not null and name not ilike '%powiat%' and name not ilike '%województwo%' and name not ilike '%subregion%' and name not ilike '%Kraków%' and ST_within(way, (select multipolygon from krakow limit 1)) group by name order by 2 desc limit 1;
select amenities which are at most 10 km from restaurant Miód i Malina and at most 5 km from "Szara Ges", group them by their type and count them
select amenity, count(*) from planet_osm_point where (ST_distance((select way from planet_osm_point where name ilike '%malina%' and amenity = 'restaurant'), way) <= 10000 and st_distance((select way from planet_osm_point where name ilike '%szara ges%' and amenity = 'restaurant'), way) <= 5000) group by amenity order by 2 desc;
select theatres which are not further than 50 km from Sukiennice (Rynek Gà Âówny) but they lie outside Krakow and give distance
select name, ST_distance(way, (select way from planet_osm_point where name ilike '%muzeum sukiennice%')) from planet_osm_point where amenity = 'theatre' and st_distance(way, (select way from planet_osm_point where name ilike '%muzeum sukiennice%')) <500000 and not ST_Within(way, (select multipolygon from krakow limit 1));
find all the castles from the map and their distance from the Krakow city center
select a.name, ST_distance(ST_setSRID(a.way, 4326), ST_GeomFromText('POINT(19.938333 50.061389)', 4326)) from planet_osm_polygon as a where historic ilike '%castle%'order by 1;
calculate areas of different lakes that can be found in the map
select name, sum(st_area(way)) from planet_osm_polygon where water = 'lake'and name is not null group by name order by 1;
calculate the area of different lakes within Cracow boundaries.
select name, sum(st_area(way)) from planet_osm_polygon where water = 'lake'and name is not null and ST_Within(way, (select multipolygon from krakow limit 1)) group by name order by 1;
calculate total area of forests within Cracow boundaries
select sum(st_area(way)) from planet_osm_polygon where (wood ilike '%coniferous%') or (wood ilike 'mixed') or (wood ilike '%evergreen%') or (wood ilike '%deciduous%') and ST_Within(way, (select multipolygon from krakow limit 1));
Number of intersections between asphalt roads which are shorter than 100m.
select count(*) from planet_osm_roads as a, planet_osm_roads as b where a.surface = 'asphalt' and b.surface='asphalt' and a.osm_id != b.osm_id and st_length(b.way) < 100 and st_length(a.way) < 100 and st_crosses(a.way,b.way);
Here is the contents of the tables in the osm file imported into Postgresql
sql postgresql geospatial
put on hold as off-topic by Mast, yuri, Stephen Rauch, Ludisposed, t3chb0t Aug 3 at 8:08
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Lacks concrete context: Code Review requires concrete code from a project, with sufficient context for reviewers to understand how that code is used. Pseudocode, stub code, hypothetical code, obfuscated code, and generic best practices are outside the scope of this site." â Mast, yuri, Ludisposed, t3chb0t
2
SQL review: Provide context about what query is trying to accomplish. Does it run offline or on primary database where user expects immediate response? One-shot or in loop? Is amount of rows a concern? Include schema. If performance is concern, ensure that indexes are in place, and mention them when describing the schema. Include output of EXPLAIN SELECT. See SQL tag wiki: here
â Mast
Aug 2 at 15:03
I imported the osm file. Is there any simple way to produce the schema of such a database? Queries run online on the localhost:7474/browser.
â Joanna
Aug 2 at 16:00
Please include the relevant data in the question itself, in plain text.
â Mast
2 days ago
Tables are too long, when I try to place them in the message as plain text I get the warning that I exceeded the maximal length of the message. So I made images from the table structure and placed it inside the message. I hope this solution is acceptable.
â Joanna
2 days ago
Concerns have been raised that the question would still be too broad if it would've fit. Have you considered splitting up the question to make it fit? The character limit of a question is 65.535 characters. That's quite a lot already.
â Mast
yesterday
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Could someone check my Postgresql queries? I wrote the explanation first and then the query. The purpose of these queries is to write a test which calculates how many seconds it takes Postgresql to answer these queries.
1 list all sushi bars within borders of Cracow city
select name from planet_osm_point where amenity='restaurant' and name ilike '%sushi%' and ST_Within(way, (select multipolygon from krakow limit 1));
2 calculate the total length of aphalt roads in Cracow
select sum(st_length(way)) from planet_osm_roads where surface='asphalt' and ST_Within(way, (select multipolygon from krakow limit 1));
3 count all carpet beaters in Cracow
select count(*) from planet_osm_point where amenity='beater' and ST_Within(way, (select multipolygon from krakow limit 1));
4 find distance between Wydziaà  Matematyki i Informatyki UJ and the restaurant Miód i Malina
select ST_distance((select way from planet_osm_point where amenity = 'university' and name ilike '%WydziaÃ
 Matematyki i Informatyki%'), (select way from planet_osm_point where amenity = 'restaurant' and name ilike '%malina%'));
find how many amenities are in the radius of 10 km from the restaurant "miód i malina"
select amenity, count(*) from planet_osm_point where ST_distance((select way from planet_osm_point where name ilike '%malina%' and amenity = 'restaurant'), way) <= 10000 group by amenity order by 2 desc;
find longest primary roads in Kraków
select name, sum(ST_length(way)) from planet_osm_roads where highway = 'primary' and name is not null and name not ilike '%powiat%' and name not ilike '%województwo%' and name not ilike '%subregion%' and name not ilike '%Kraków%' and ST_within(way, (select multipolygon from krakow limit 1)) group by name order by 2 desc limit 10;
find longest only pedestrian road in Kraków
select name, sum(ST_length(way)) from planet_osm_roads where highway = 'pedestrian' and name is not null and name not ilike '%powiat%' and name not ilike '%województwo%' and name not ilike '%subregion%' and name not ilike '%Kraków%' and ST_within(way, (select multipolygon from krakow limit 1)) group by name order by 2 desc limit 1;
select amenities which are at most 10 km from restaurant Miód i Malina and at most 5 km from "Szara Ges", group them by their type and count them
select amenity, count(*) from planet_osm_point where (ST_distance((select way from planet_osm_point where name ilike '%malina%' and amenity = 'restaurant'), way) <= 10000 and st_distance((select way from planet_osm_point where name ilike '%szara ges%' and amenity = 'restaurant'), way) <= 5000) group by amenity order by 2 desc;
select theatres which are not further than 50 km from Sukiennice (Rynek Gà Âówny) but they lie outside Krakow and give distance
select name, ST_distance(way, (select way from planet_osm_point where name ilike '%muzeum sukiennice%')) from planet_osm_point where amenity = 'theatre' and st_distance(way, (select way from planet_osm_point where name ilike '%muzeum sukiennice%')) <500000 and not ST_Within(way, (select multipolygon from krakow limit 1));
find all the castles from the map and their distance from the Krakow city center
select a.name, ST_distance(ST_setSRID(a.way, 4326), ST_GeomFromText('POINT(19.938333 50.061389)', 4326)) from planet_osm_polygon as a where historic ilike '%castle%'order by 1;
calculate areas of different lakes that can be found in the map
select name, sum(st_area(way)) from planet_osm_polygon where water = 'lake'and name is not null group by name order by 1;
calculate the area of different lakes within Cracow boundaries.
select name, sum(st_area(way)) from planet_osm_polygon where water = 'lake'and name is not null and ST_Within(way, (select multipolygon from krakow limit 1)) group by name order by 1;
calculate total area of forests within Cracow boundaries
select sum(st_area(way)) from planet_osm_polygon where (wood ilike '%coniferous%') or (wood ilike 'mixed') or (wood ilike '%evergreen%') or (wood ilike '%deciduous%') and ST_Within(way, (select multipolygon from krakow limit 1));
Number of intersections between asphalt roads which are shorter than 100m.
select count(*) from planet_osm_roads as a, planet_osm_roads as b where a.surface = 'asphalt' and b.surface='asphalt' and a.osm_id != b.osm_id and st_length(b.way) < 100 and st_length(a.way) < 100 and st_crosses(a.way,b.way);
Here is the contents of the tables in the osm file imported into Postgresql
sql postgresql geospatial
Could someone check my Postgresql queries? I wrote the explanation first and then the query. The purpose of these queries is to write a test which calculates how many seconds it takes Postgresql to answer these queries.
1 list all sushi bars within borders of Cracow city
select name from planet_osm_point where amenity='restaurant' and name ilike '%sushi%' and ST_Within(way, (select multipolygon from krakow limit 1));
2 calculate the total length of aphalt roads in Cracow
select sum(st_length(way)) from planet_osm_roads where surface='asphalt' and ST_Within(way, (select multipolygon from krakow limit 1));
3 count all carpet beaters in Cracow
select count(*) from planet_osm_point where amenity='beater' and ST_Within(way, (select multipolygon from krakow limit 1));
4 find distance between Wydziaà  Matematyki i Informatyki UJ and the restaurant Miód i Malina
select ST_distance((select way from planet_osm_point where amenity = 'university' and name ilike '%WydziaÃ
 Matematyki i Informatyki%'), (select way from planet_osm_point where amenity = 'restaurant' and name ilike '%malina%'));
find how many amenities are in the radius of 10 km from the restaurant "miód i malina"
select amenity, count(*) from planet_osm_point where ST_distance((select way from planet_osm_point where name ilike '%malina%' and amenity = 'restaurant'), way) <= 10000 group by amenity order by 2 desc;
find longest primary roads in Kraków
select name, sum(ST_length(way)) from planet_osm_roads where highway = 'primary' and name is not null and name not ilike '%powiat%' and name not ilike '%województwo%' and name not ilike '%subregion%' and name not ilike '%Kraków%' and ST_within(way, (select multipolygon from krakow limit 1)) group by name order by 2 desc limit 10;
find longest only pedestrian road in Kraków
select name, sum(ST_length(way)) from planet_osm_roads where highway = 'pedestrian' and name is not null and name not ilike '%powiat%' and name not ilike '%województwo%' and name not ilike '%subregion%' and name not ilike '%Kraków%' and ST_within(way, (select multipolygon from krakow limit 1)) group by name order by 2 desc limit 1;
select amenities which are at most 10 km from restaurant Miód i Malina and at most 5 km from "Szara Ges", group them by their type and count them
select amenity, count(*) from planet_osm_point where (ST_distance((select way from planet_osm_point where name ilike '%malina%' and amenity = 'restaurant'), way) <= 10000 and st_distance((select way from planet_osm_point where name ilike '%szara ges%' and amenity = 'restaurant'), way) <= 5000) group by amenity order by 2 desc;
select theatres which are not further than 50 km from Sukiennice (Rynek Gà Âówny) but they lie outside Krakow and give distance
select name, ST_distance(way, (select way from planet_osm_point where name ilike '%muzeum sukiennice%')) from planet_osm_point where amenity = 'theatre' and st_distance(way, (select way from planet_osm_point where name ilike '%muzeum sukiennice%')) <500000 and not ST_Within(way, (select multipolygon from krakow limit 1));
find all the castles from the map and their distance from the Krakow city center
select a.name, ST_distance(ST_setSRID(a.way, 4326), ST_GeomFromText('POINT(19.938333 50.061389)', 4326)) from planet_osm_polygon as a where historic ilike '%castle%'order by 1;
calculate areas of different lakes that can be found in the map
select name, sum(st_area(way)) from planet_osm_polygon where water = 'lake'and name is not null group by name order by 1;
calculate the area of different lakes within Cracow boundaries.
select name, sum(st_area(way)) from planet_osm_polygon where water = 'lake'and name is not null and ST_Within(way, (select multipolygon from krakow limit 1)) group by name order by 1;
calculate total area of forests within Cracow boundaries
select sum(st_area(way)) from planet_osm_polygon where (wood ilike '%coniferous%') or (wood ilike 'mixed') or (wood ilike '%evergreen%') or (wood ilike '%deciduous%') and ST_Within(way, (select multipolygon from krakow limit 1));
Number of intersections between asphalt roads which are shorter than 100m.
select count(*) from planet_osm_roads as a, planet_osm_roads as b where a.surface = 'asphalt' and b.surface='asphalt' and a.osm_id != b.osm_id and st_length(b.way) < 100 and st_length(a.way) < 100 and st_crosses(a.way,b.way);
Here is the contents of the tables in the osm file imported into Postgresql
sql postgresql geospatial
edited 2 days ago
asked Aug 2 at 14:37
Joanna
12
12
put on hold as off-topic by Mast, yuri, Stephen Rauch, Ludisposed, t3chb0t Aug 3 at 8:08
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Lacks concrete context: Code Review requires concrete code from a project, with sufficient context for reviewers to understand how that code is used. Pseudocode, stub code, hypothetical code, obfuscated code, and generic best practices are outside the scope of this site." â Mast, yuri, Ludisposed, t3chb0t
put on hold as off-topic by Mast, yuri, Stephen Rauch, Ludisposed, t3chb0t Aug 3 at 8:08
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Lacks concrete context: Code Review requires concrete code from a project, with sufficient context for reviewers to understand how that code is used. Pseudocode, stub code, hypothetical code, obfuscated code, and generic best practices are outside the scope of this site." â Mast, yuri, Ludisposed, t3chb0t
2
SQL review: Provide context about what query is trying to accomplish. Does it run offline or on primary database where user expects immediate response? One-shot or in loop? Is amount of rows a concern? Include schema. If performance is concern, ensure that indexes are in place, and mention them when describing the schema. Include output of EXPLAIN SELECT. See SQL tag wiki: here
â Mast
Aug 2 at 15:03
I imported the osm file. Is there any simple way to produce the schema of such a database? Queries run online on the localhost:7474/browser.
â Joanna
Aug 2 at 16:00
Please include the relevant data in the question itself, in plain text.
â Mast
2 days ago
Tables are too long, when I try to place them in the message as plain text I get the warning that I exceeded the maximal length of the message. So I made images from the table structure and placed it inside the message. I hope this solution is acceptable.
â Joanna
2 days ago
Concerns have been raised that the question would still be too broad if it would've fit. Have you considered splitting up the question to make it fit? The character limit of a question is 65.535 characters. That's quite a lot already.
â Mast
yesterday
add a comment |Â
2
SQL review: Provide context about what query is trying to accomplish. Does it run offline or on primary database where user expects immediate response? One-shot or in loop? Is amount of rows a concern? Include schema. If performance is concern, ensure that indexes are in place, and mention them when describing the schema. Include output of EXPLAIN SELECT. See SQL tag wiki: here
â Mast
Aug 2 at 15:03
I imported the osm file. Is there any simple way to produce the schema of such a database? Queries run online on the localhost:7474/browser.
â Joanna
Aug 2 at 16:00
Please include the relevant data in the question itself, in plain text.
â Mast
2 days ago
Tables are too long, when I try to place them in the message as plain text I get the warning that I exceeded the maximal length of the message. So I made images from the table structure and placed it inside the message. I hope this solution is acceptable.
â Joanna
2 days ago
Concerns have been raised that the question would still be too broad if it would've fit. Have you considered splitting up the question to make it fit? The character limit of a question is 65.535 characters. That's quite a lot already.
â Mast
yesterday
2
2
SQL review: Provide context about what query is trying to accomplish. Does it run offline or on primary database where user expects immediate response? One-shot or in loop? Is amount of rows a concern? Include schema. If performance is concern, ensure that indexes are in place, and mention them when describing the schema. Include output of EXPLAIN SELECT. See SQL tag wiki: here
â Mast
Aug 2 at 15:03
SQL review: Provide context about what query is trying to accomplish. Does it run offline or on primary database where user expects immediate response? One-shot or in loop? Is amount of rows a concern? Include schema. If performance is concern, ensure that indexes are in place, and mention them when describing the schema. Include output of EXPLAIN SELECT. See SQL tag wiki: here
â Mast
Aug 2 at 15:03
I imported the osm file. Is there any simple way to produce the schema of such a database? Queries run online on the localhost:7474/browser.
â Joanna
Aug 2 at 16:00
I imported the osm file. Is there any simple way to produce the schema of such a database? Queries run online on the localhost:7474/browser.
â Joanna
Aug 2 at 16:00
Please include the relevant data in the question itself, in plain text.
â Mast
2 days ago
Please include the relevant data in the question itself, in plain text.
â Mast
2 days ago
Tables are too long, when I try to place them in the message as plain text I get the warning that I exceeded the maximal length of the message. So I made images from the table structure and placed it inside the message. I hope this solution is acceptable.
â Joanna
2 days ago
Tables are too long, when I try to place them in the message as plain text I get the warning that I exceeded the maximal length of the message. So I made images from the table structure and placed it inside the message. I hope this solution is acceptable.
â Joanna
2 days ago
Concerns have been raised that the question would still be too broad if it would've fit. Have you considered splitting up the question to make it fit? The character limit of a question is 65.535 characters. That's quite a lot already.
â Mast
yesterday
Concerns have been raised that the question would still be too broad if it would've fit. Have you considered splitting up the question to make it fit? The character limit of a question is 65.535 characters. That's quite a lot already.
â Mast
yesterday
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
2
SQL review: Provide context about what query is trying to accomplish. Does it run offline or on primary database where user expects immediate response? One-shot or in loop? Is amount of rows a concern? Include schema. If performance is concern, ensure that indexes are in place, and mention them when describing the schema. Include output of EXPLAIN SELECT. See SQL tag wiki: here
â Mast
Aug 2 at 15:03
I imported the osm file. Is there any simple way to produce the schema of such a database? Queries run online on the localhost:7474/browser.
â Joanna
Aug 2 at 16:00
Please include the relevant data in the question itself, in plain text.
â Mast
2 days ago
Tables are too long, when I try to place them in the message as plain text I get the warning that I exceeded the maximal length of the message. So I made images from the table structure and placed it inside the message. I hope this solution is acceptable.
â Joanna
2 days ago
Concerns have been raised that the question would still be too broad if it would've fit. Have you considered splitting up the question to make it fit? The character limit of a question is 65.535 characters. That's quite a lot already.
â Mast
yesterday