mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-22 12:06:27 +03:00
bdd: add new API test data
Make all data necessary for API tests directly available in the repository.
This commit is contained in:
parent
5d656891ba
commit
0495dbe756
22
test/testdb/additional_api_test.data.osm
Normal file
22
test/testdb/additional_api_test.data.osm
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<osm version="0.6" upload="false" generator="osmium/1.10.0">
|
||||
<node id="1" lat="47.11855" lon="9.5697463">
|
||||
<tag k="addr:housenumber" v="1001"/>
|
||||
</node>
|
||||
<node id="2" lat="47.1185372" lon="9.5719698">
|
||||
<tag k="addr:housenumber" v="1051"/>
|
||||
</node>
|
||||
<node id="3" lat="47.13288" lon="9.55267">
|
||||
<tag k="addr:housenumber" v="6"/>
|
||||
<tag k="addr:place" v="Silum" />
|
||||
</node>
|
||||
<node id="4" lat="47.122487032" lon="9.554483093">
|
||||
<tag k="addr:housenumber" v="0"/>
|
||||
<tag k="addr:street" v="Gnalpstrasse" />
|
||||
</node>
|
||||
<way id="1">
|
||||
<nd ref="1"/>
|
||||
<nd ref="2"/>
|
||||
<tag k="addr:interpolation" v="odd"/>
|
||||
</way>
|
||||
</osm>
|
BIN
test/testdb/apidb-test-data.pbf
Normal file
BIN
test/testdb/apidb-test-data.pbf
Normal file
Binary file not shown.
178
test/testdb/specialphrases_testdb.sql
Normal file
178
test/testdb/specialphrases_testdb.sql
Normal file
@ -0,0 +1,178 @@
|
||||
SELECT getorcreate_amenity(make_standard_name('Aerodrome'), 'aerodrome', 'aeroway', 'aerodrome');
|
||||
SELECT getorcreate_amenity(make_standard_name('Aerodromes'), 'aerodromes', 'aeroway', 'aerodrome');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Aerodrome in'), 'aerodrome in', 'aeroway', 'aerodrome', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Aerodromes in'), 'aerodromes in', 'aeroway', 'aerodrome', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Aerodrome near'), 'aerodrome near', 'aeroway', 'aerodrome', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Aerodromes near'), 'aerodromes near', 'aeroway', 'aerodrome', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Airport'), 'airport', 'aeroway', 'aerodrome');
|
||||
SELECT getorcreate_amenity(make_standard_name('Airports'), 'airports', 'aeroway', 'aerodrome');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Airport in'), 'airport in', 'aeroway', 'aerodrome', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Airports in'), 'airports in', 'aeroway', 'aerodrome', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Airport near'), 'airport near', 'aeroway', 'aerodrome', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Airports near'), 'airports near', 'aeroway', 'aerodrome', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Bar'), 'bar', 'amenity', 'bar');
|
||||
SELECT getorcreate_amenity(make_standard_name('Bars'), 'bars', 'amenity', 'bar');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Bar in'), 'bar in', 'amenity', 'bar', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Bars in'), 'bars in', 'amenity', 'bar', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Bar near'), 'bar near', 'amenity', 'bar', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Bars near'), 'bars near', 'amenity', 'bar', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Bar'), 'bar', 'amenity', 'pub');
|
||||
SELECT getorcreate_amenity(make_standard_name('Bars'), 'bars', 'amenity', 'pub');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Bar in'), 'bar in', 'amenity', 'pub', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Bars in'), 'bars in', 'amenity', 'pub', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Bar near'), 'bar near', 'amenity', 'pub', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Bars near'), 'bars near', 'amenity', 'pub', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Food'), 'food', 'amenity', 'restaurant');
|
||||
SELECT getorcreate_amenity(make_standard_name('Food'), 'food', 'amenity', 'restaurant');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Food in'), 'food in', 'amenity', 'restaurant', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Food in'), 'food in', 'amenity', 'restaurant', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Food near'), 'food near', 'amenity', 'restaurant', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Food near'), 'food near', 'amenity', 'restaurant', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Pub'), 'pub', 'amenity', 'bar');
|
||||
SELECT getorcreate_amenity(make_standard_name('Pubs'), 'pubs', 'amenity', 'bar');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Pub in'), 'pub in', 'amenity', 'bar', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Pubs in'), 'pubs in', 'amenity', 'bar', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Pub near'), 'pub near', 'amenity', 'bar', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Pubs near'), 'pubs near', 'amenity', 'bar', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Pub'), 'pub', 'amenity', 'pub');
|
||||
SELECT getorcreate_amenity(make_standard_name('Pubs'), 'pubs', 'amenity', 'pub');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Pub in'), 'pub in', 'amenity', 'pub', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Pubs in'), 'pubs in', 'amenity', 'pub', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Pub near'), 'pub near', 'amenity', 'pub', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Pubs near'), 'pubs near', 'amenity', 'pub', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Restaurant'), 'restaurant', 'amenity', 'restaurant');
|
||||
SELECT getorcreate_amenity(make_standard_name('Restaurants'), 'restaurants', 'amenity', 'restaurant');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Restaurant in'), 'restaurant in', 'amenity', 'restaurant', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Restaurants in'), 'restaurants in', 'amenity', 'restaurant', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Restaurant near'), 'restaurant near', 'amenity', 'restaurant', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Restaurants near'), 'restaurants near', 'amenity', 'restaurant', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Mural'), 'mural', 'artwork_type', 'mural');
|
||||
SELECT getorcreate_amenity(make_standard_name('Murals'), 'murals', 'artwork_type', 'mural');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Mural in'), 'mural in', 'artwork_type', 'mural', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Murals in'), 'murals in', 'artwork_type', 'mural', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Mural near'), 'mural near', 'artwork_type', 'mural', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Murals near'), 'murals near', 'artwork_type', 'mural', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Sculpture'), 'sculpture', 'artwork_type', 'sculpture');
|
||||
SELECT getorcreate_amenity(make_standard_name('Sculptures'), 'sculptures', 'artwork_type', 'sculpture');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Sculpture in'), 'sculpture in', 'artwork_type', 'sculpture', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Sculptures in'), 'sculptures in', 'artwork_type', 'sculpture', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Sculpture near'), 'sculpture near', 'artwork_type', 'sculpture', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Sculptures near'), 'sculptures near', 'artwork_type', 'sculpture', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Statue'), 'statue', 'artwork_type', 'statue');
|
||||
SELECT getorcreate_amenity(make_standard_name('Statues'), 'statues', 'artwork_type', 'statue');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Statue in'), 'statue in', 'artwork_type', 'statue', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Statues in'), 'statues in', 'artwork_type', 'statue', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Statue near'), 'statue near', 'artwork_type', 'statue', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Statues near'), 'statues near', 'artwork_type', 'statue', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('ATM'), 'atm', 'atm', 'yes');
|
||||
SELECT getorcreate_amenity(make_standard_name('ATMs'), 'atms', 'atm', 'yes');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('ATM in'), 'atm in', 'atm', 'yes', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('ATMs in'), 'atms in', 'atm', 'yes', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('ATM near'), 'atm near', 'atm', 'yes', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('ATMs near'), 'atms near', 'atm', 'yes', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('National Park'), 'national park', 'boundary', 'national_park');
|
||||
SELECT getorcreate_amenity(make_standard_name('National Parks'), 'national parks', 'boundary', 'national_park');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('National Park in'), 'national park in', 'boundary', 'national_park', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('National Parks in'), 'national parks in', 'boundary', 'national_park', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('National Park near'), 'national park near', 'boundary', 'national_park', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('National Parks near'), 'national parks near', 'boundary', 'national_park', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Changing table'), 'changing table', 'changing_table', 'yes');
|
||||
SELECT getorcreate_amenity(make_standard_name('Changing tables'), 'changing tables', 'changing_table', 'yes');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Changing table in'), 'changing table in', 'changing_table', 'yes', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Changing tables in'), 'changing tables in', 'changing_table', 'yes', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Changing table near'), 'changing table near', 'changing_table', 'yes', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Changing tables near'), 'changing tables near', 'changing_table', 'yes', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Roundabout'), 'roundabout', 'junction', 'roundabout');
|
||||
SELECT getorcreate_amenity(make_standard_name('Roundabouts'), 'roundabouts', 'junction', 'roundabout');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Roundabout in'), 'roundabout in', 'junction', 'roundabout', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Roundabouts in'), 'roundabouts in', 'junction', 'roundabout', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Roundabout near'), 'roundabout near', 'junction', 'roundabout', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Roundabouts near'), 'roundabouts near', 'junction', 'roundabout', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Plaque'), 'plaque', 'memorial', 'plaque');
|
||||
SELECT getorcreate_amenity(make_standard_name('Plaques'), 'plaques', 'memorial', 'plaque');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Plaque in'), 'plaque in', 'memorial', 'plaque', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Plaques in'), 'plaques in', 'memorial', 'plaque', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Plaque near'), 'plaque near', 'memorial', 'plaque', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Plaques near'), 'plaques near', 'memorial', 'plaque', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Statue'), 'statue', 'memorial', 'statue');
|
||||
SELECT getorcreate_amenity(make_standard_name('Statues'), 'statues', 'memorial', 'statue');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Statue in'), 'statue in', 'memorial', 'statue', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Statues in'), 'statues in', 'memorial', 'statue', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Statue near'), 'statue near', 'memorial', 'statue', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Statues near'), 'statues near', 'memorial', 'statue', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('Stolperstein'), 'stolperstein', 'memorial', 'stolperstein');
|
||||
SELECT getorcreate_amenity(make_standard_name('Stolpersteins'), 'stolpersteins', 'memorial', 'stolperstein');
|
||||
SELECT getorcreate_amenity(make_standard_name('Stolpersteine'), 'stolpersteine', 'memorial', 'stolperstein');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Stolperstein in'), 'stolperstein in', 'memorial', 'stolperstein', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Stolpersteins in'), 'stolpersteins in', 'memorial', 'stolperstein', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Stolpersteine in'), 'stolpersteine in', 'memorial', 'stolperstein', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Stolperstein near'), 'stolperstein near', 'memorial', 'stolperstein', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Stolpersteins near'), 'stolpersteins near', 'memorial', 'stolperstein', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('Stolpersteine near'), 'stolpersteine near', 'memorial', 'stolperstein', 'near');
|
||||
SELECT getorcreate_amenity(make_standard_name('War Memorial'), 'war memorial', 'memorial', 'war_memorial');
|
||||
SELECT getorcreate_amenity(make_standard_name('War Memorials'), 'war memorials', 'memorial', 'war_memorial');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('War Memorial in'), 'war memorial in', 'memorial', 'war_memorial', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('War Memorials in'), 'war memorials in', 'memorial', 'war_memorial', 'in');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('War Memorial near'), 'war memorial near', 'memorial', 'war_memorial', 'near');
|
||||
SELECT getorcreate_amenityoperator(make_standard_name('War Memorials near'), 'war memorials near', 'memorial', 'war_memorial', 'near');
|
||||
CREATE INDEX idx_placex_classtype ON placex (class, type);CREATE TABLE place_classtype_aeroway_aerodrome AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'aeroway' AND type = 'aerodrome';
|
||||
CREATE INDEX idx_place_classtype_aeroway_aerodrome_centroid ON place_classtype_aeroway_aerodrome USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_aeroway_aerodrome_place_id ON place_classtype_aeroway_aerodrome USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_aeroway_aerodrome TO "www-data";
|
||||
CREATE TABLE place_classtype_amenity_bar AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'amenity' AND type = 'bar';
|
||||
CREATE INDEX idx_place_classtype_amenity_bar_centroid ON place_classtype_amenity_bar USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_amenity_bar_place_id ON place_classtype_amenity_bar USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_amenity_bar TO "www-data";
|
||||
CREATE TABLE place_classtype_amenity_pub AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'amenity' AND type = 'pub';
|
||||
CREATE INDEX idx_place_classtype_amenity_pub_centroid ON place_classtype_amenity_pub USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_amenity_pub_place_id ON place_classtype_amenity_pub USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_amenity_pub TO "www-data";
|
||||
CREATE TABLE place_classtype_amenity_restaurant AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'amenity' AND type = 'restaurant';
|
||||
CREATE INDEX idx_place_classtype_amenity_restaurant_centroid ON place_classtype_amenity_restaurant USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_amenity_restaurant_place_id ON place_classtype_amenity_restaurant USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_amenity_restaurant TO "www-data";
|
||||
CREATE TABLE place_classtype_artwork_type_mural AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'artwork_type' AND type = 'mural';
|
||||
CREATE INDEX idx_place_classtype_artwork_type_mural_centroid ON place_classtype_artwork_type_mural USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_artwork_type_mural_place_id ON place_classtype_artwork_type_mural USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_artwork_type_mural TO "www-data";
|
||||
CREATE TABLE place_classtype_artwork_type_sculpture AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'artwork_type' AND type = 'sculpture';
|
||||
CREATE INDEX idx_place_classtype_artwork_type_sculpture_centroid ON place_classtype_artwork_type_sculpture USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_artwork_type_sculpture_place_id ON place_classtype_artwork_type_sculpture USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_artwork_type_sculpture TO "www-data";
|
||||
CREATE TABLE place_classtype_artwork_type_statue AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'artwork_type' AND type = 'statue';
|
||||
CREATE INDEX idx_place_classtype_artwork_type_statue_centroid ON place_classtype_artwork_type_statue USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_artwork_type_statue_place_id ON place_classtype_artwork_type_statue USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_artwork_type_statue TO "www-data";
|
||||
CREATE TABLE place_classtype_atm_yes AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'atm' AND type = 'yes';
|
||||
CREATE INDEX idx_place_classtype_atm_yes_centroid ON place_classtype_atm_yes USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_atm_yes_place_id ON place_classtype_atm_yes USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_atm_yes TO "www-data";
|
||||
CREATE TABLE place_classtype_boundary_national_park AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'boundary' AND type = 'national_park';
|
||||
CREATE INDEX idx_place_classtype_boundary_national_park_centroid ON place_classtype_boundary_national_park USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_boundary_national_park_place_id ON place_classtype_boundary_national_park USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_boundary_national_park TO "www-data";
|
||||
CREATE TABLE place_classtype_changing_table_yes AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'changing_table' AND type = 'yes';
|
||||
CREATE INDEX idx_place_classtype_changing_table_yes_centroid ON place_classtype_changing_table_yes USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_changing_table_yes_place_id ON place_classtype_changing_table_yes USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_changing_table_yes TO "www-data";
|
||||
CREATE TABLE place_classtype_junction_roundabout AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'junction' AND type = 'roundabout';
|
||||
CREATE INDEX idx_place_classtype_junction_roundabout_centroid ON place_classtype_junction_roundabout USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_junction_roundabout_place_id ON place_classtype_junction_roundabout USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_junction_roundabout TO "www-data";
|
||||
CREATE TABLE place_classtype_memorial_plaque AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'memorial' AND type = 'plaque';
|
||||
CREATE INDEX idx_place_classtype_memorial_plaque_centroid ON place_classtype_memorial_plaque USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_memorial_plaque_place_id ON place_classtype_memorial_plaque USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_memorial_plaque TO "www-data";
|
||||
CREATE TABLE place_classtype_memorial_statue AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'memorial' AND type = 'statue';
|
||||
CREATE INDEX idx_place_classtype_memorial_statue_centroid ON place_classtype_memorial_statue USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_memorial_statue_place_id ON place_classtype_memorial_statue USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_memorial_statue TO "www-data";
|
||||
CREATE TABLE place_classtype_memorial_stolperstein AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'memorial' AND type = 'stolperstein';
|
||||
CREATE INDEX idx_place_classtype_memorial_stolperstein_centroid ON place_classtype_memorial_stolperstein USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_memorial_stolperstein_place_id ON place_classtype_memorial_stolperstein USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_memorial_stolperstein TO "www-data";
|
||||
CREATE TABLE place_classtype_memorial_war_memorial AS SELECT place_id AS place_id,st_centroid(geometry) AS centroid FROM placex WHERE class = 'memorial' AND type = 'war_memorial';
|
||||
CREATE INDEX idx_place_classtype_memorial_war_memorial_centroid ON place_classtype_memorial_war_memorial USING GIST (centroid);
|
||||
CREATE INDEX idx_place_classtype_memorial_war_memorial_place_id ON place_classtype_memorial_war_memorial USING btree(place_id);
|
||||
GRANT SELECT ON place_classtype_memorial_war_memorial TO "www-data";
|
||||
DROP INDEX idx_placex_classtype;
|
@ -1,188 +0,0 @@
|
||||
hamburg
|
||||
1
|
||||
9.5842804224817 53.5792118965693
|
||||
10.2155260812517 53.8246176085747
|
||||
10.475796519837 53.4477065812749
|
||||
9.86815657040402 53.3278566584492
|
||||
9.5842804224817 53.5792118965693
|
||||
END
|
||||
END
|
||||
liechtenstein
|
||||
1
|
||||
9.20853378041844 47.0559465458986
|
||||
9.29384606832709 47.3507444175206
|
||||
9.49848868129809 47.4492015884201
|
||||
9.89867967626406 47.130228397937
|
||||
9.58252408463202 46.8691824262863
|
||||
9.20853378041844 47.0559465458986
|
||||
END
|
||||
END
|
||||
mauretania
|
||||
1
|
||||
-17.1644809253606 20.8842205115601
|
||||
-16.9724694177095 21.4269590060279
|
||||
-13.1021317602129 21.4296172232924
|
||||
-13.1921945122782 22.933479308252
|
||||
-12.6268357994672 23.3657053906301
|
||||
-12.097953263953 23.5240373343518
|
||||
-12.0829087151283 26.0504750040867
|
||||
-8.76667736314239 26.0902806494621
|
||||
-8.70696146546581 27.398150020094
|
||||
-4.74082309576697 25.0335832288387
|
||||
-4.81791817472112 24.9110447612753
|
||||
-6.46188681458007 24.9097418021523
|
||||
-5.52019664485951 16.5528424294381
|
||||
-5.23944558032214 16.3345963721271
|
||||
-5.46430959536222 15.4167603246987
|
||||
-10.5098309475637 15.3543804758815
|
||||
-10.8990110578091 15.0165664449548
|
||||
-11.4524241105327 15.5284484048548
|
||||
-11.6506044402694 15.4177129737211
|
||||
-11.7217380574693 14.8443740855381
|
||||
-12.0680385872662 14.631162290351
|
||||
-12.9159650211166 15.1353675285383
|
||||
-13.4682080737434 15.990978880421
|
||||
-13.9034306609561 16.0335336430301
|
||||
-14.4204259536969 16.5367120778098
|
||||
-16.2084993845136 16.4236729998869
|
||||
-16.4302891135388 15.983629954068
|
||||
-16.7862990158802 16.0015581695182
|
||||
-16.3398604501701 18.2277294784962
|
||||
-16.8886326298423 19.403294102207
|
||||
-16.585950103956 20.1812628878206
|
||||
-17.0813413461875 20.5018960498623
|
||||
-17.1644809253606 20.8842205115601
|
||||
END
|
||||
END
|
||||
southdakota
|
||||
1
|
||||
-104.297439187793 45.5046231666747
|
||||
-104.299553299189 45.9775616107873
|
||||
-104.096382287788 46.1214554410027
|
||||
-96.4569073278818 46.0989703969216
|
||||
-96.3044767039811 45.9115675974812
|
||||
-96.5247176872565 45.5862877816162
|
||||
-96.1968327207445 45.3001425265336
|
||||
-96.1895592635092 43.1140553398185
|
||||
-96.3329810429579 42.753709571028
|
||||
-96.2088431240585 42.4315154785281
|
||||
-96.5131423452368 42.3018249286814
|
||||
-97.3698668669773 42.6757095208851
|
||||
-98.0672608450503 42.5864899816312
|
||||
-98.6364176029847 42.8190548434256
|
||||
-104.146030684593 42.8349704964079
|
||||
-104.298744415682 43.0007971343175
|
||||
-104.297439187793 45.5046231666747
|
||||
END
|
||||
END
|
||||
uruguay
|
||||
1
|
||||
-58.7094503498495 -33.5893528935793
|
||||
-58.5930297220504 -33.0935229194446
|
||||
-58.329380679061 -32.9223715673938
|
||||
-58.4160616358367 -31.8529190894557
|
||||
-58.2162152055053 -31.6271374679322
|
||||
-58.2872417410783 -31.4234579824293
|
||||
-58.0141967102111 -30.7805399817192
|
||||
-58.0801823804181 -30.438369563871
|
||||
-57.7465673402929 -30.0366166581386
|
||||
-57.3919054971047 -30.0920714480735
|
||||
-57.0841245854315 -29.904689506793
|
||||
-56.5203007925187 -30.0577138349604
|
||||
-55.8148965965951 -30.7486942236281
|
||||
-55.4992686810269 -30.6637735134172
|
||||
-55.0823825399047 -31.0951827436534
|
||||
-54.4609533378373 -31.3096231186724
|
||||
-52.8647106347639 -32.7122837473293
|
||||
-53.3056885052038 -33.2040687582016
|
||||
-53.3095867684494 -33.547639206286
|
||||
-52.9652990494926 -33.8719452856167
|
||||
-53.3564833683333 -34.6077542513996
|
||||
-55.6741509399751 -35.9609110600942
|
||||
-58.0955146798429 -34.8078487405856
|
||||
-58.1517292851949 -34.5120322638008
|
||||
-58.490557396808 -34.2574246976253
|
||||
-58.7094503498495 -33.5893528935793
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
vietnam
|
||||
1
|
||||
111.737359200422 8.65966389848196
|
||||
112.121385535871 9.03974154821598
|
||||
112.431435613709 8.95854407291052
|
||||
112.38091038991 8.72869141993135
|
||||
112.09887919106 8.68752900955559
|
||||
111.97764097397 8.47027379584868
|
||||
111.737359200422 8.65966389848196))
|
||||
((101.952539778161 22.3744843276505
|
||||
102.42115782215 22.9512287654112
|
||||
103.011765362757 22.7267436381062
|
||||
103.309708309047 22.9942421815192
|
||||
103.88404879754 22.8346923138744
|
||||
104.62599830253 23.0355978361405
|
||||
104.77147320329 23.3199292571035
|
||||
105.357960240763 23.571602116825
|
||||
105.914016228782 23.1523756402279
|
||||
106.944000642084 22.9589139939517
|
||||
106.898848084023 22.1610135134167
|
||||
107.607567716302 21.7959107906373
|
||||
107.974793702983 21.8006347108588
|
||||
108.387669146529 21.2765369215022
|
||||
108.350851164743 20.968001228975
|
||||
107.807714207219 20.5205405897832
|
||||
108.126799006308 20.25069143158
|
||||
108.024397106408 19.8655870027683
|
||||
107.557799016272 19.7778131848293
|
||||
107.347203511678 19.9746481898397
|
||||
107.334187929597 20.2503746970115
|
||||
107.017188364275 20.2484351047036
|
||||
106.88168214676 19.9452753668929
|
||||
106.293211714996 19.5544614034104
|
||||
106.229050701227 19.084494263666
|
||||
106.339912028886 18.6544696395528
|
||||
107.02787120458 18.0908270105482
|
||||
106.992048357062 17.6610336194013
|
||||
107.61356106657 17.4455208732243
|
||||
109.497501740771 15.5635441996556
|
||||
109.851305717105 12.5942782065681
|
||||
109.388462041025 9.73419261849773
|
||||
106.766311197844 8.27477170182912
|
||||
104.780565299066 8.00956568214471
|
||||
103.236641212428 8.93273491992321
|
||||
102.869224286517 9.37238182036115
|
||||
102.909736286172 9.54505245725422
|
||||
103.717955146996 10.1271353150665
|
||||
103.686354089781 10.5210100495922
|
||||
104.015476398095 10.662190116791
|
||||
104.247688572369 10.5092223585766
|
||||
104.775438554966 10.7014491439673
|
||||
104.980441972174 11.1056591699101
|
||||
105.7024629092 11.2045497780933
|
||||
105.626753980109 11.6300119740348
|
||||
105.748149258633 11.8111016132902
|
||||
107.378741221451 12.5115515071093
|
||||
107.300732476862 12.958173736809
|
||||
107.435951728865 13.4799057185978
|
||||
107.150187488306 14.1107044150892
|
||||
107.411164618718 15.2667546971578
|
||||
107.034817435829 15.6854570535274
|
||||
107.112895173759 15.9819504632758
|
||||
106.538255811019 16.3296204491326
|
||||
106.173473133351 17.0787384431658
|
||||
105.048356842632 18.1992017641427
|
||||
104.927464569104 18.5590394564598
|
||||
103.69790542148 19.2392576346486
|
||||
103.937765477152 19.8144348780526
|
||||
104.649272403028 19.9254452865302
|
||||
104.202109979964 20.3691301778448
|
||||
104.304114148338 20.6519242141597
|
||||
103.979630359435 20.7152945884418
|
||||
103.65735416319 20.4809125958884
|
||||
103.000528825335 20.7510959123255
|
||||
102.627912181829 21.1973495084135
|
||||
102.683177661723 21.4733395191357
|
||||
101.952539778161 22.3744843276505
|
||||
END
|
||||
END
|
6215
test/testdb/tiger/01001.sql
Normal file
6215
test/testdb/tiger/01001.sql
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user