diff --git a/geocoder/admin0/test/data/test.sh b/geocoder/admin0/test/data/test.sh index 599b515..4861d50 100644 --- a/geocoder/admin0/test/data/test.sh +++ b/geocoder/admin0/test/data/test.sh @@ -1,729 +1,292 @@ #!/bin/sh -# -# It is expected that you run this script -# as a PostgreSQL superuser, for example: -# -# PGUSER=postgres bash ./test.sh -# - -DATABASE=test_geocoding -CMD='echo psql' -CMD=psql - -OK=0 -PARTIALOK=0 - -function set_failed() { - OK=1 - PARTIALOK=1 -} - - -function clear_partial_result() { - PARTIALOK=0 -} - - -function sql() { - local ROLE - local QUERY - if [[ $# -ge 2 ]] - then - ROLE="$1" - QUERY="$2" - else - QUERY="$1" - fi - - if [ -n "${ROLE}" ]; then - log_debug "Executing query '${QUERY}' as ${ROLE}" - RESULT=`${CMD} -U "${ROLE}" ${DATABASE} -c "${QUERY}" -A -t` - else - log_debug "Executing query '${QUERY}'" - RESULT=`${CMD} ${DATABASE} -c "${QUERY}" -A -t` - fi - CODERESULT=$? - - echo ${RESULT} - echo - - if [[ ${CODERESULT} -ne 0 ]] - then - echo -n "FAILED TO EXECUTE QUERY: " - log_warning "${QUERY}" - if [[ "$3" != "fails" ]] - then - log_error "${QUERY}" - set_failed - fi - else - if [[ "$3" == "fails" ]] - then - log_error "QUERY: '${QUERY}' was expected to fail and it did not fail" - set_failed - fi - fi - - if [[ "$3" == "should" ]] - then - if [[ "${RESULT}" != "$4" ]] - then - log_error "QUERY '${QUERY}' expected result '${4}' but got '${RESULT}'" - set_failed - fi - fi -} - - -function log_info() -{ - echo - echo - echo - _log "1;34m" "$1" -} - -function log_error() { - _log "1;31m" "$1" -} - -function log_debug() { - _log "1;32m" "> $1" -} - -function log_warning() { - _log "0;33m" "$1" -} - -function _log() { - echo -e "\033[$1$2\033[0m" -} - -# '############################ HELPERS #############################' -function setup() { - -} - -function tear_down() { - -} - -function run_tests() { - local FAILED_TESTS=() - - local TESTS - if [[ $# -ge 1 ]] - then - TESTS="$@" - else - TESTS=`cat $0 | perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` - fi - for t in ${TESTS} - do - echo "####################################################################" - echo "#" - echo "# Running: ${t}" - echo "#" - echo "####################################################################" - clear_partial_result - #setup - eval ${t} - if [[ ${PARTIALOK} -ne 0 ]] - then - FAILED_TESTS+=(${t}) - fi - #tear_down - done - if [[ ${OK} -ne 0 ]] - then - echo - log_error "The following tests are failing:" - printf -- '\t%s\n' "${FAILED_TESTS[@]}" - fi -} - - #################################################### TESTS GO HERE #################################################### function test_geocoding_quality_admin0() { # checks that the number of geometries is the expected - includes islands and regions splitted in the setup # scripts, and some geometries for disputed territories - sql postgres 'SELECT count(*) FROM ne_admin0_v3' should 267 + sql 'SELECT count(*) FROM ne_admin0_v3' should 267 # checks the type of the geometries - sql postgres "SELECT ST_GeometryType(the_geom) FROM ne_admin0_v3 WHERE adm0_a3 NOT IN ('CXR', 'BVT', 'GUF')" should ST_MultiPolygon + sql "SELECT ST_GeometryType(the_geom) FROM ne_admin0_v3" should ST_MultiPolygon + + # checks that the synonym table includes at least two rows per region: ISO2 code and name + sql "WITH q AS (SELECT adm0_a3 FROM admin0_synonyms group by adm0_a3 having count(*) < 2) SELECT count(*) FROM q" should 0 + # checks that the centroid of a countrie intersects with its desirable bounding box - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-70.0624080069999 12.417669989,-70.0624080069999 12.6321475280001,-69.8768204419999 12.6321475280001,-69.8768204419999 12.417669989,-70.0624080069999 12.417669989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ABW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.4867777910001 29.3866053260001,60.4867777910001 38.4736734020001,74.8923067630001 38.4736734020001,74.8923067630001 29.3866053260001,60.4867777910001 29.3866053260001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AFG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.6693941430001 -18.0314047239998,11.6693941430001 -4.39120371499996,24.0617143150001 -4.39120371499996,24.0617143150001 -18.0314047239998,11.6693941430001 -18.0314047239998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AGO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.4288223949999 18.1690941430001,-63.4288223949999 18.6012637390001,-62.9726456369999 18.6012637390001,-62.9726456369999 18.1690941430001,-63.4288223949999 18.1690941430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AIA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.2720325110001 39.637013245,19.2720325110001 42.6548135380001,21.0366793210001 42.6548135380001,21.0366793210001 39.637013245,19.2720325110001 39.637013245))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.5131942070001 59.9044863950001,19.5131942070001 60.4807803410001,21.0966903000001 60.4807803410001,21.0966903000001 59.9044863950001,19.5131942070001 59.9044863950001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.4064563390001 42.4286774700001,1.4064563390001 42.649361674,1.76509078000015 42.649361674,1.76509078000015 42.4286774700001,1.4064563390001 42.4286774700001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.5693465500001 22.6209459430001,51.5693465500001 26.0747919720001,56.3836369150001 26.0747919720001,56.3836369150001 22.6209459430001,51.5693465500001 22.6209459430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.5880358489999 -55.0520158829998,-73.5880358489999 -21.7869377639999,-53.6615518799999 -21.7869377639999,-53.6615518799999 -55.0520158829998,-73.5880358489999 -55.0520158829998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.4362939860001 38.8637012740001,43.4362939860001 41.2904523730001,46.6026123460001 41.2904523730001,46.6026123460001 38.8637012740001,43.4362939860001 38.8637012740001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-170.831247525 -14.5328915339999,-170.831247525 -14.1688778629998,-168.160471158 -14.1688778629998,-168.160471158 -14.5328915339999,-170.831247525 -14.5328915339999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ASM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -90,-180 -60.516208592,180 -60.516208592,180 -90,-180 -90))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((123.575043165 -12.4385718729998,123.575043165 -12.4266089819999,123.597748243 -12.4266089819999,123.597748243 -12.4385718729998,123.575043165 -12.4385718729998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.7282820970001 -49.7216122379999,39.7282820970001 -11.5506324199998,77.5852156910001 -11.5506324199998,77.5852156910001 -49.7216122379999,39.7282820970001 -49.7216122379999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.8941544259999 16.9892438820001,-61.8941544259999 17.7276878930001,-61.6675919259999 17.7276878930001,-61.6675919259999 16.9892438820001,-61.8941544259999 16.9892438820001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((112.919444207 -54.750420831,112.919444207 -9.24016692499987,159.106455925 -9.24016692499987,159.106455925 -54.750420831,112.919444207 -54.750420831))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.52115482500011 46.3786430870001,9.52115482500011 49.0097744750001,17.1483378500001 49.0097744750001,17.1483378500001 46.3786430870001,9.52115482500011 46.3786430870001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.7745585530002 38.392644755,44.7745585530002 41.8904415900002,50.6257430350001 41.8904415900002,50.6257430350001 38.392644755,44.7745585530002 38.392644755))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AZE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.9868917230001 -4.46334401499993,28.9868917230001 -2.30306243899987,30.8339624430001 -2.30306243899987,30.8339624430001 -4.46334401499993,28.9868917230001 -4.46334401499993))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BDI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.52179992769047 49.495222881,2.52179992769047 51.4962376910001,6.37452518700007 51.4962376910001,6.37452518700007 49.495222881,2.52179992769047 49.495222881))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.759880818000113 6.21389923179639,0.759880818000113 12.3992442830001,3.83741906700001 12.3992442830001,3.83741906700001 6.21389923179639,0.759880818000113 6.21389923179639))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-68.4173884759999 12.0220401060001,-68.4173884759999 12.3102074240002,-68.1900121739999 12.3102074240002,-68.1900121739999 12.0220401060001,-68.4173884759999 12.0220401060001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BES'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.52257808499988 9.39188262900012,-5.52257808499988 15.0799075320001,2.39016890400009 15.0799075320001,2.39016890400009 9.39188262900012,-5.52257808499988 9.39188262900012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BFA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.0217895920001 20.738714911,88.0217895920001 26.6235440070001,92.6428511970002 26.6235440070001,92.6428511970002 20.738714911,88.0217895920001 20.738714911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.3450232340001 41.2381041470001,22.3450232340001 44.228434539,28.6035262380001 44.228434539,28.6035262380001 41.2381041470001,22.3450232340001 41.2381041470001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.448903842 25.7895368510001,50.448903842 26.242580471,50.6456598131816 26.242580471,50.6456598131816 25.7895368510001,50.448903842 25.7895368510001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.5943497389999 20.9123989090001,-79.5943497389999 26.9284121770001,-72.7461645169999 26.9284121770001,-72.7461645169999 20.9123989090001,-79.5943497389999 20.9123989090001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((15.7160738520001 42.5592121380002,15.7160738520001 45.2845238250002,19.618884725 45.2845238250002,19.618884725 42.5592121380002,15.7160738520001 42.5592121380002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BIH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.9892878899999 15.7941755230001,-79.9892878899999 15.7962100280001,-79.9863988919999 15.7962100280001,-79.9863988919999 15.7941755230001,-79.9892878899999 15.7941755230001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BJN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8673396479999 17.8819847680001,-62.8673396479999 17.9291445980001,-62.7916560539999 17.9291445980001,-62.7916560539999 17.8819847680001,-62.8673396479999 17.8819847680001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((23.165644979 51.2351683560001,23.165644979 56.1568059290001,32.7195321040001 56.1568059290001,32.7195321040001 51.2351683560001,23.165644979 51.2351683560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.2365122079999 15.8796519990001,-89.2365122079999 18.4907587690001,-87.7830704419999 18.4907587690001,-87.7830704419999 15.8796519990001,-89.2365122079999 15.8796519990001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.8859939889704 32.2480773815958,-64.8859939889704 32.3886579450001,-64.6476307056406 32.3886579450001,-64.6476307056406 32.2480773815958,-64.8859939889704 32.2480773815958))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BMU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.6664922699999 -22.8972575879999,-69.6664922699999 -9.67982147199997,-57.4656607669999 -9.67982147199997,-57.4656607669999 -22.8972575879999,-69.6664922699999 -22.8972575879999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BOL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.018474691 -33.742280375,-74.018474691 5.26722483300009,-28.8770645819999 5.26722483300009,-28.8770645819999 -33.742280375,-74.018474691 -33.742280375))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-59.6542048819999 13.051174221,-59.6542048819999 13.344549872,-59.4269099599999 13.344549872,-59.4269099599999 13.051174221,-59.6542048819999 13.051174221))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.99878991 4.01668101000011,113.99878991 5.05719635600018,115.360741008 5.05719635600018,115.360741008 4.01668101000011,113.99878991 4.01668101000011))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.7300667720001 26.6961493940002,88.7300667720001 28.3583989307863,92.0887764890001 28.3583989307863,92.0887764890001 26.6961493940002,88.7300667720001 26.6961493940002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BTN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.34555097700007 -54.4624976539999,3.34555097700007 -54.3801408829999,3.48666425900012 -54.3801408829999,3.48666425900012 -54.4624976539999,3.34555097700007 -54.4624976539999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BVT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.9783459880001 -26.891794128,19.9783459880001 -17.7818075559999,29.3500736890001 -17.7818075559999,29.3500736890001 -26.891794128,19.9783459880001 -26.891794128))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BWA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.3872660720001 2.23645375600006,14.3872660720001 11.0008283490001,27.4413013100001 11.0008283490001,27.4413013100001 2.23645375600006,14.3872660720001 2.23645375600006))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-141.005548637109 41.6690855920001,-141.005548637109 83.1165225280001,-52.616607226 83.1165225280001,-52.616607226 41.6690855920001,-141.005548637109 41.6690855920001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.821543816 -12.1999651019998,96.821543816 -12.1265601539999,96.9210718110001 -12.1265601539999,96.9210718110001 -12.1999651019998,96.821543816 -12.1999651019998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CCK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.95480920400013 45.820718486,5.95480920400013 47.8011660770001,10.466626831 47.8011660770001,10.466626831 45.820718486,5.95480920400013 45.820718486))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.453724739 -55.9185042229998,-109.453724739 -17.506588198,-66.4208064439999 -17.506588198,-66.4208064439999 -55.9185042229998,-109.453724739 -55.9185042229998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.6022563070002 15.775376695,73.6022563070002 53.569444479,134.772579387 53.569444479,134.772579387 15.775376695,73.6022563070002 15.775376695))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.61871984899992 4.34406159100013,-8.61871984899992 10.7264781700001,-2.50632808399993 10.7264781700001,-2.50632808399993 4.34406159100013,-8.61871984899992 4.34406159100013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CIV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.234242317 10.2815615910001,-109.234242317 10.3110212260001,-109.210357226 10.3110212260001,-109.210357226 10.2815615910001,-109.234242317 10.2815615910001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CLP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.50505618600005 1.65455129000014,8.50505618600005 13.081140646,16.2077234290001 13.081140646,16.2077234290001 1.65455129000014,8.50505618600005 1.65455129000014))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.5848087900001 34.9777627570001,32.5848087900001 35.1994029740002,34.0219607300423 35.1994029740002,34.0219607300423 34.9777627570001,32.5848087900001 34.9777627570001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CNM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.2105548693531 -13.4583505239999,12.2105548693531 5.37528025300014,31.2804468180001 5.37528025300014,31.2804468180001 -13.4583505239999,12.2105548693531 -13.4583505239999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1140163040629 -5.01963083599986,11.1140163040629 3.70827606200005,18.64240686 3.70827606200005,18.64240686 -5.01963083599986,11.1140163040629 -5.01963083599986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-165.824533658 -21.9388973939999,-165.824533658 -8.94670989399988,-157.312814908 -8.94670989399988,-157.312814908 -21.9388973939999,-165.824533658 -21.9388973939999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.72370358 -4.23648447699985,-81.72370358 13.5783552100001,-66.8750605879999 13.5783552100001,-66.8750605879999 -4.23648447699985,-81.72370358 -4.23648447699985))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2132267590001 -12.3803036439999,43.2132267590001 -11.3612606749999,44.5290633470001 -11.3612606749999,44.5290633470001 -12.3803036439999,43.2132267590001 -12.3803036439999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-25.3604223299999 14.8039411480001,-25.3604223299999 17.196600653,-22.6665746739999 17.196600653,-22.6665746739999 14.8039411480001,-25.3604223299999 14.8039411480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CPV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.1176651679999 5.51508209800012,-87.1176651679999 11.2099370320002,-82.5628368739999 11.2099370320002,-82.5628368739999 5.51508209800012,-87.1176651679999 5.51508209800012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CRI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((154.388519727 -21.0300432269999,154.388519727 -21.028741144,154.391286655 -21.028741144,154.391286655 -21.0300432269999,154.388519727 -21.0300432269999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CSI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.9496150379999 19.827826239,-84.9496150379999 23.2655703800001,-74.1328832669999 23.2655703800001,-74.1328832669999 19.827826239,-84.9496150379999 19.827826239))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.1717423169999 12.041327216,-69.1717423169999 12.3915062520001,-68.7397354809999 12.3915062520001,-68.7397354809999 12.041327216,-69.1717423169999 12.041327216))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((105.581797722 -10.5660132789999,105.581797722 -10.4308407529998,105.714691602 -10.4308407529998,105.714691602 -10.5660132789999,105.581797722 -10.5660132789999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CXR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.4165420209999 19.2638636150001,-81.4165420209999 19.7576308370001,-79.7266426919999 19.7576308370001,-79.7266426919999 19.2638636150001,-81.4165420209999 19.2638636150001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6019153500579 35.002722473,32.6019153500579 35.6919619810002,34.5925399100002 35.6919619810002,34.5925399100002 35.002722473,32.6019153500579 35.002722473))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.2717391290002 34.6250194300001,32.2717391290002 35.1870821302553,34.0991317070001 35.1870821302553,34.0991317070001 34.6250194300001,32.2717391290002 34.6250194300001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.076140991 48.557915752,12.076140991 51.0400123090001,18.8374337160001 51.0400123090001,18.8374337160001 48.557915752,12.076140991 48.557915752))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CZE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.85248986800011 47.271120911,5.85248986800011 55.065334377,15.0220593670001 55.065334377,15.0220593670001 47.271120911,5.85248986800011 47.271120911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DEU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((41.7491101480001 10.9298249310001,41.7491101480001 12.7079125020001,43.4187117850001 12.7079125020001,43.4187117850001 10.9298249310001,41.7491101480001 10.9298249310001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DJI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4889216789999 15.201808986,-61.4889216789999 15.6338565120001,-61.249256965 15.6338565120001,-61.249256965 15.201808986,-61.4889216789999 15.201808986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DMA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.09400475400008 54.5685895850001,8.09400475400008 57.7511660830001,15.1513778000001 57.7511660830001,15.1513778000001 54.5685895850001,8.09400475400008 54.5685895850001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DNK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.0098376059999 17.5455589860001,-72.0098376059999 19.9376895200001,-68.3286026679999 19.9376895200001,-68.3286026679999 17.5455589860001,-72.0098376059999 17.5455589860001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DOM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.68238521299992 18.9755612180001,-8.68238521299992 37.0939395200001,11.9688607170001 37.0939395200001,11.9688607170001 18.9755612180001,-8.68238521299992 18.9755612180001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DZA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.0115860669999 -5.01137257899988,-92.0115860669999 1.66437409100016,-75.2272639579999 1.66437409100016,-75.2272639579999 -5.01137257899988,-92.0115860669999 -5.01137257899988))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ECU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.6883427320001 21.9943692020002,24.6883427320001 31.6564802100001,36.8991805350002 31.6564802100001,36.8991805350002 21.9943692020002,24.6883427320001 21.9943692020002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'EGY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((36.4236470950001 12.3600218710001,36.4236470950001 18.004828192,43.1238712900001 18.004828192,43.1238712900001 12.3600218710001,36.4236470950001 12.3600218710001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ERI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.6740991620001 34.937892971,33.6740991620001 35.1189944460001,33.9214742440001 35.1189944460001,33.9214742440001 34.937892971,33.6740991620001 34.937892971))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-18.1672257149999 27.6422386740001,-18.1672257149999 43.793443101,4.3370874360001 43.793443101,4.3370874360001 27.6422386740001,-18.1672257149999 27.6422386740001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8323673840001 57.5158185830001,21.8323673840001 59.6708845070001,28.1864754640001 59.6708845070001,28.1864754640001 57.5158185830001,21.8323673840001 57.5158185830001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'EST'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.9897998450001 3.40333343500009,32.9897998450001 14.8795321660001,47.9791691490001 14.8795321660001,47.9791691490001 3.40333343500009,32.9897998450001 3.40333343500009))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ETH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.62316451 59.811224677,20.62316451 70.0753103640001,31.5695247800001 70.0753103640001,31.5695247800001 59.811224677,20.62316451 59.811224677))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FIN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -21.7111141909999,-180 -12.4752743469999,180 -12.4752743469999,180 -21.7111141909999,-180 -21.7111141909999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FJI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3181860019999 -52.4065227259999,-61.3181860019999 -51.0277645809999,-57.7342830069999 -51.0277645809999,-57.7342830069999 -52.4065227259999,-61.3181860019999 -52.4065227259999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FLK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 51.0875408834804,8.20030521600006 51.0875408834804,8.20030521600006 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.54525800900012 41.365912177,8.54525800900012 43.0174014340001,9.55958092500009 43.0174014340001,9.55958092500009 41.365912177,8.54525800900012 41.365912177))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.64415442599994 61.3941104190001,-7.64415442599994 62.3989118510001,-6.2757869129999 62.3989118510001,-6.2757869129999 61.3941104190001,-7.64415442599994 61.3941104190001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((138.063812696 0.918158270000148,138.063812696 9.77558014500013,163.046560092 9.77558014500013,163.046560092 0.918158270000148,138.063812696 0.918158270000148))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FSM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.69556725400014 -3.93685618990304,8.69556725400014 2.32249501600009,14.4989905190001 2.32249501600009,14.4989905190001 -3.93685618990304,8.69556725400014 -3.93685618990304))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GAB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.6913142569999 49.9096133480001,-13.6913142569999 60.84788646,1.77116946700002 60.84788646,1.77116946700002 49.9096133480001,-13.6913142569999 49.9096133480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GBR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.9859763554231 41.0441108200001,39.9859763554231 43.5758425900001,46.6948031010001 43.5758425900001,46.6948031010001 41.0441108200001,39.9859763554231 41.0441108200001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GEO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.67345130099989 49.4115664730001,-2.67345130099989 49.731390692,-2.17031816299993 49.731390692,-2.17031816299993 49.4115664730001,-2.67345130099989 49.4115664730001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GGY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.26250931799999 4.7371279970001,-3.26250931799999 11.162937317,1.18796838400004 11.162937317,1.18796838400004 4.7371279970001,-3.26250931799999 4.7371279970001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GHA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.35838675876349 36.1105003930001,-5.35838675876349 36.1411196720123,-5.33877348311998 36.1411196720123,-5.33877348311998 36.1105003930001,-5.35838675876349 36.1105003930001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-15.0811254549999 7.19020823200012,-15.0811254549999 12.673387757,-7.66244746999996 12.673387757,-7.66244746999996 7.19020823200012,-15.0811254549999 7.19020823200012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7978409499999 15.8469912780002,-61.7978409499999 16.513088283,-60.9892471999999 16.513088283,-60.9892471999999 15.8469912780002,-61.7978409499999 15.8469912780002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GLP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.8297013009999 13.0650088560001,-16.8297013009999 13.8199844360001,-13.8187125249999 13.8199844360001,-13.8187125249999 13.0650088560001,-16.8297013009999 13.0650088560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GMB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.7284367771401 10.9276390650001,-16.7284367771401 12.6794339000001,-13.6607118329999 12.6794339000001,-13.6607118329999 10.9276390650001,-16.7284367771401 10.9276390650001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.61198978000007 -1.47568124799986,5.61198978000007 3.77240631700012,11.3363411870001 3.77240631700012,11.3363411870001 -1.47568124799986,5.61198978000007 -1.47568124799986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.6264754570001 34.8150088560001,19.6264754570001 41.7504759730001,28.2397567070001 41.7504759730001,28.2397567070001 34.8150088560001,19.6264754570001 34.8150088560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7905167309999 12.0028343770001,-61.7905167309999 12.5297305360001,-61.4216202459999 12.5297305360001,-61.4216202459999 12.0028343770001,-61.7905167309999 12.0028343770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.0572403639999 59.792629299,-73.0572403639999 83.6341006530001,-11.3768204419999 83.6341006530001,-11.3768204419999 59.792629299,-73.0572403639999 59.792629299))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.2462338320825 13.7289030478944,-92.2462338320825 17.8160195930001,-88.2209221351212 17.8160195930001,-88.2209221351212 13.7289030478944,-92.2462338320825 13.7289030478944))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GTM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 5.74476537500011,-51.649037239 5.74476537500011,-51.649037239 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.624196811 13.2410342470001,144.624196811 13.6541201840001,144.95215905 13.6541201840001,144.95215905 13.2410342470001,144.624196811 13.2410342470001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3967128089999 1.18582021100013,-61.3967128089999 8.55801015800012,-56.4818190109999 8.55801015800012,-56.4818190109999 1.18582021100013,-61.3967128089999 1.18582021100013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.837331576 22.177069403,113.837331576 22.5639460320001,114.40129642 22.5639460320001,114.40129642 22.177069403,113.837331576 22.177069403))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HKG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.236013217 -53.1925595029999,73.236013217 -52.9616024719999,73.8121850920001 -52.9616024719999,73.8121850920001 -53.1925595029999,73.236013217 -53.1925595029999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HMD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.3637912599999 12.9797773240001,-89.3637912599999 17.4186465520001,-83.1304418609999 17.4186465520001,-83.1304418609999 12.9797773240001,-89.3637912599999 12.9797773240001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.5014754570001 42.4163272160001,13.5014754570001 46.5469790650001,19.4078381750001 46.5469790650001,19.4078381750001 42.4163272160001,13.5014754570001 42.4163272160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HRV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.4891658189999 18.0259463560001,-74.4891658189999 20.08978913,-71.6391108809999 20.08978913,-71.6391108809999 18.0259463560001,-74.4891658189999 18.0259463560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HTI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.0940352780001 45.741343486,16.0940352780001 48.5692328900001,22.8776005460001 48.5692328900001,22.8776005460001 45.741343486,16.0940352780001 45.741343486))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HUN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((95.0127059250001 -10.9226213519998,95.0127059250001 5.9101016300001,140.977626994 5.9101016300001,140.977626994 -10.9226213519998,95.0127059250001 -10.9226213519998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IDN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.79015051999994 54.0569522160001,-4.79015051999994 54.4190127620001,-4.3119197259999 54.4190127620001,-4.3119197259999 54.0569522160001,-4.79015051999994 54.0569522160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IMN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((68.1434025400001 6.74555084800015,68.1434025400001 35.4954055790001,97.3622530520001 35.4954055790001,97.3622530520001 6.74555084800015,68.1434025400001 6.74555084800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.82154382 -12.1999651,96.82154382 -10.43084075,105.7146916 -10.43084075,105.7146916 -12.1999651,96.82154382 -12.1999651))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((71.260996941 -7.43222421699987,71.260996941 -5.22698333099991,72.4946395190001 -5.22698333099991,72.4946395190001 -7.43222421699987,71.260996941 -7.43222421699987))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-10.4781794909999 51.4457054710001,-10.4781794909999 55.386379299,-5.99351966099994 55.386379299,-5.99351966099994 51.4457054710001,-10.4781794909999 51.4457054710001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.0148633220001 25.0594081650001,44.0148633220001 39.7715269980001,63.3196281330001 39.7715269980001,63.3196281330001 25.0594081650001,44.0148633220001 25.0594081650001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((38.7745113520001 29.063136699,38.7745113520001 37.3754975380001,48.5592554050001 37.3754975380001,48.5592554050001 29.063136699,38.7745113520001 29.063136699))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-24.539906379 63.3967145850001,-24.539906379 66.564154364,-13.5029190749999 66.564154364,-13.5029190749999 63.3967145850001,-24.539906379 63.3967145850001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2483508570001 29.4896914730001,34.2483508570001 33.4067217000001,35.8880725500002 33.4067217000001,35.8880725500002 29.4896914730001,34.2483508570001 29.4896914730001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.60272831200007 35.489243882,6.60272831200007 47.085214945,18.5174259770001 47.085214945,18.5174259770001 35.489243882,6.60272831200007 35.489243882))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ITA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.3746638659999 17.70319245,-78.3746638659999 18.525091864,-76.1879776679999 18.525091864,-76.1879776679999 17.70319245,-78.3746638659999 17.70319245))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JAM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.24201412699992 49.1713320980001,-2.24201412699992 49.267035223,-2.00829016799992 49.267035223,-2.00829016799992 49.1713320980001,-2.24201412699992 49.1713320980001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JEY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.949385116681 29.189950664,34.949385116681 33.3716850790001,39.2919991450001 33.3716850790001,39.2919991450001 29.189950664,34.949385116681 29.189950664))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((122.938161655 24.212103583,122.938161655 45.5204125020001,153.985606316 45.5204125020001,153.985606316 24.212103583,122.938161655 24.212103583))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JPN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((62.8006417230001 45.5658244830001,62.8006417230001 46.390838725,63.9671338300001 46.390838725,63.9671338300001 45.5658244830001,62.8006417230001 45.5658244830001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((76.7773507410001 35.110441997,76.7773507410001 35.6477993780001,77.8003463140001 35.6477993780001,77.8003463140001 35.110441997,76.7773507410001 35.110441997))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.478278849 40.5846556600001,46.478278849 55.4345502730001,87.3237960210001 55.4345502730001,87.3237960210001 40.5846556600001,46.478278849 40.5846556600001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.8904683840002 -4.67750416499996,33.8904683840002 5.03037582260775,41.8850191650001 5.03037582260775,41.8850191650001 -4.67750416499996,33.8904683840002 -4.67750416499996))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((69.2262960200001 39.1892369590001,69.2262960200001 43.2617015580001,80.2575606690001 43.2617015580001,80.2575606690001 39.1892369590001,69.2262960200001 39.1892369590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KGZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.313423706 10.4157736200001,102.313423706 14.7045816050001,107.610516399 14.7045816050001,107.610516399 10.4157736200001,102.313423706 10.4157736200001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KHM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-174.543405728 -11.4611141909999,-174.543405728 4.7230899110001,176.850922071 4.7230899110001,176.850922071 -11.4611141909999,-174.543405728 -11.4611141909999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KIR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8610733709999 17.1005313170001,-62.8610733709999 17.4158389340001,-62.5367732409999 17.4158389340001,-62.5367732409999 17.1005313170001,-62.8610733709999 17.1005313170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KNA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.613617384 33.197577216,124.613617384 38.6243307589749,131.862521886 38.6243307589749,131.862521886 33.197577216,124.613617384 33.197577216))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.024751424 41.8440103160001,20.024751424 43.2630709840001,21.7727584220001 43.2630709840001,21.7727584220001 41.8440103160001,20.024751424 41.8440103160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.5324357500001 28.5335049440001,46.5324357500001 30.0982156370001,48.4327812271219 30.0982156370001,48.4327812271219 28.5335049440001,46.5324357500001 28.5335049440001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KWT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((100.097073202 13.9154566450001,100.097073202 22.4960440070001,107.66436324 22.4960440070001,107.66436324 13.9154566450001,100.097073202 13.9154566450001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LAO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.0996199880001 33.055580342,35.0996199880001 34.687547913,36.604101196 34.687547913,36.604101196 33.055580342,35.0996199880001 33.055580342))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-11.4761856759999 4.34723541900004,-11.4761856759999 8.56539560900008,-7.38411820499996 8.56539560900008,-7.38411820499996 4.34723541900004,-11.4761856759999 4.34723541900004))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.28654382300007 19.496123759,9.28654382300007 33.1812253147281,25.1562606130001 33.1812253147281,25.1562606130001 19.496123759,9.28654382300007 19.496123759))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.078521288 13.7146670590001,-61.078521288 14.1118838560001,-60.8829646479999 14.1118838560001,-60.8829646479999 13.7146670590001,-61.078521288 13.7146670590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LCA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.47588627100012 47.0524004120001,9.47588627100012 47.2628010050001,9.61572269700011 47.2628010050001,9.61572269700011 47.0524004120001,9.47588627100012 47.0524004120001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LIE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((79.6557723320001 5.92373281500015,79.6557723320001 9.82957591400015,81.8903100920001 9.82957591400015,81.8903100920001 5.92373281500015,79.6557723320001 5.92373281500015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LKA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((27.0021549890001 -30.6587993359999,27.0021549890001 -28.570761414,29.4359082440001 -28.570761414,29.4359082440001 -30.6587993359999,27.0021549890001 -30.6587993359999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LSO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9245687005624 53.8868411260001,20.9245687005624 56.4426024370001,26.8007202560001 56.4426024370001,26.8007202560001 53.8868411260001,20.9245687005624 53.8868411260001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LTU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.71492720500004 49.441324362,5.71492720500004 50.1749746710001,6.50257938700014 50.1749746710001,6.50257938700014 49.441324362,5.71492720500004 49.441324362))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LUX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9685978520001 55.6669908660001,20.9685978520001 58.0751384490001,28.2172746170001 58.0751384490001,28.2172746170001 55.6669908660001,20.9685978520001 55.6669908660001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LVA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.519867384 22.1053734400001,113.519867384 22.220770575,113.587494337 22.220770575,113.587494337 22.1053734400001,113.519867384 22.1053734400001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1468399729999 18.0333914721357,-63.1468399729999 18.1221377620001,-63.0107315749999 18.1221377620001,-63.0107315749999 18.0333914721357,-63.1468399729999 18.0333914721357))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0137433253452 21.4199710975817,-17.0137433253452 35.926519149,-1.03199947099995 35.926519149,-1.03199947099995 21.4199710975817,-17.0137433253452 21.4199710975817))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.36575020700008 43.7179690770001,7.36575020700008 43.763505554,7.4374540320631 43.763505554,7.4374540320631 43.7179690770001,7.36575020700008 43.7179690770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MCO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((26.617889038 45.461773987,26.617889038 48.486033834,30.1315763750001 48.486033834,30.1315763750001 45.461773987,26.617889038 45.461773987))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2229110040001 -25.5985653629998,43.2229110040001 -11.9436174459998,50.5039168630001 -11.9436174459998,50.5039168630001 -25.5985653629998,43.2229110040001 -25.5985653629998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((72.684825066 -0.688571872999901,72.684825066 7.10724518400015,73.7531844410002 7.10724518400015,73.7531844410002 -0.688571872999901,72.684825066 -0.688571872999901))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-118.368804229 14.5462829243643,-118.368804229 32.7128364050001,-86.7005916009999 32.7128364050001,-86.7005916009999 14.5462829243643,-118.368804229 14.5462829243643))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MEX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((165.282237175 4.57379791900016,165.282237175 14.6105003930001,172.029795769 14.6105003930001,172.029795769 4.57379791900016,165.282237175 4.57379791900016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.4441573490001 40.8493940230001,20.4441573490001 42.3703347790001,23.0095821530001 42.3703347790001,23.0095821530001 40.8493940230001,20.4441573490001 40.8493940230001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MKD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-12.2641304119999 10.1400540170001,-12.2641304119999 24.9950645960001,4.23563765500012 24.9950645960001,4.23563765500012 10.1400540170001,-12.2641304119999 10.1400540170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.1836043630001 35.801214911,14.1836043630001 36.0755882830001,14.5671492850001 36.0755882830001,14.5671492850001 35.801214911,14.1836043630001 35.801214911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((92.174972779 9.79071686400013,92.174972779 28.538465881,101.173855021 28.538465881,101.173855021 9.79071686400013,92.174972779 9.79071686400013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.4335307210001 41.852362372,18.4335307210001 43.5478856410001,20.3551705320001 43.5478856410001,20.3551705320001 41.852362372,18.4335307210001 41.852362372))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((87.7357088630001 41.586144918,87.7357088630001 52.1295840460001,119.907026815 52.1295840460001,119.907026815 41.586144918,87.7357088630001 41.586144918))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.902110222 14.1106631530001,144.902110222 20.5554059920001,145.868907097 20.5554059920001,145.868907097 14.1106631530001,144.902110222 14.1106631530001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.2138452550002 -26.8602715039999,30.2138452550002 -10.4690080709999,40.8479923840001 -10.4690080709999,40.8479923840001 -26.8602715039999,30.2138452550002 -26.8602715039999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MOZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0811748859999 14.7343989060002,-17.0811748859999 27.2854157510001,-4.8216131179999 27.2854157510001,-4.8216131179999 14.7343989060002,-17.0811748859999 14.7343989060002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MRT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.2301326159999 16.6753604190001,-62.2301326159999 16.8193220070001,-62.1405330069999 16.8193220070001,-62.1405330069999 16.6753604190001,-62.2301326159999 16.6753604190001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MSR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.228830533 14.4081078150001,-61.228830533 14.8768985050001,-60.8104141919999 14.8768985050001,-60.8104141919999 14.4081078150001,-61.228830533 14.4081078150001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MTQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((56.5241805350002 -20.5173479149999,56.5241805350002 -10.3239071589999,63.493907097 -10.3239071589999,63.493907097 -20.5173479149999,56.5241805350002 -20.5173479149999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6633081470002 -17.1353353879999,32.6633081470002 -9.38123504699981,35.9042989500001 -9.38123504699981,35.9042989500001 -17.1353353879999,32.6633081470002 -17.1353353879999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MWI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((99.6452280600001 0.851370341000077,99.6452280600001 7.35578034100014,119.278086785 7.35578034100014,119.278086785 0.851370341000077,99.6452280600001 0.851370341000077))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((45.0424910820001 -12.9891903629999,45.0424910820001 -12.6472307269999,45.2908634770001 -12.6472307269999,45.2908634770001 -12.9891903629999,45.0424910820001 -12.9891903629999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.7176212900001 -28.9593681839999,11.7176212900001 -16.9510572309999,25.2597807210001 -16.9510572309999,25.2597807210001 -28.9593681839999,11.7176212900001 -28.9593681839999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NAM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((163.615733269 -22.6706682269998,163.615733269 -19.623711847,171.343765287 -19.623711847,171.343765287 -22.6706682269998,163.615733269 -22.6706682269998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NCL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.152941121000111 11.69577301,0.152941121000111 23.5173511760001,15.9703218990001 23.5173511760001,15.9703218990001 11.69577301,0.152941121000111 11.69577301))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((167.912119988 -29.0800106749999,167.912119988 -28.9974911439999,167.996348504 -28.9974911439999,167.996348504 -29.0800106749999,167.912119988 -29.0800106749999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NFK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.67108199000012 4.27216217700007,2.67108199000012 13.8802908320001,14.6699361570001 13.8802908320001,14.6699361570001 4.27216217700007,2.67108199000012 4.27216217700007))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.6858210929999 10.7134815470002,-87.6858210929999 15.0309699500002,-82.7256973949999 15.0309699500002,-82.7256973949999 10.7134815470002,-87.6858210929999 10.7134815470002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-169.95042884 -19.1427548159999,-169.95042884 -18.9640438779999,-169.782907681 -18.9640438779999,-169.782907681 -19.1427548159999,-169.95042884 -19.1427548159999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.2513321609999 17.4645711740002,-63.2513321609999 53.5580915390001,7.19850590000004 53.5580915390001,7.19850590000004 17.4645711740002,-63.2513321609999 17.4645711740002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NLD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-9.11742102799991 57.993150132,-9.11742102799991 80.2481143250001,33.6403914720001 80.2481143250001,33.6403914720001 57.993150132,-9.11742102799991 57.993150132))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((80.03028772 26.3437678020001,80.03028772 30.4169041950001,88.1690674240001 30.4169041950001,88.1690674240001 26.3437678020001,80.03028772 26.3437678020001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NPL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.906993035 -0.551853122999901,166.906993035 -0.490411065999922,166.958262566 -0.490411065999922,166.958262566 -0.551853122999901,166.906993035 -0.551853122999901))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NRU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.9579972 -52.600313271,-177.9579972 -8.54322682099986,178.843923373 -8.54322682099986,178.843923373 -52.600313271,-177.9579972 -52.600313271))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NZL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.9786149500002 16.6424060302812,51.9786149500002 26.385972398,59.8445744150001 26.385972398,59.8445744150001 16.6424060302812,51.9786149500002 16.6424060302812))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'OMN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.8443787030001 23.6945254580001,60.8443787030001 37.0544835410001,77.0489709880002 37.0544835410001,77.0489709880002 23.6945254580001,60.8443787030001 23.6945254580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.053246217 7.20571523600016,-83.053246217 9.62929248000016,-77.1632698159999 9.62929248000016,-77.1632698159999 7.20571523600016,-83.053246217 7.20571523600016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-130.753081835 -25.0770809879998,-130.753081835 -23.9244117169999,-124.778065559 -23.9244117169999,-124.778065559 -25.0770809879998,-130.753081835 -25.0770809879998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PCN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.3375575289999 -18.3377462069379,-81.3375575289999 -0.0290927119998656,-68.6842524829999 -0.0290927119998656,-68.6842524829999 -18.3377462069379,-81.3375575289999 -18.3377462069379))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((114.027679884 9.67951080900016,114.027679884 11.1179873720002,115.848806186 11.1179873720002,115.848806186 9.67951080900016,114.027679884 9.67951080900016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((116.954925977 4.65570709800011,116.954925977 21.122381903,126.617686394 21.122381903,126.617686394 4.65570709800011,116.954925977 4.65570709800011))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((131.131114129 2.94904205900015,131.131114129 8.09661782863144,134.727342990799 8.09661782863144,134.727342990799 2.94904205900015,131.131114129 2.94904205900015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PLW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((140.84921106 -11.6363257789998,140.84921106 -1.34636809699988,155.96753991 -1.34636809699988,155.96753991 -11.6363257789998,140.84921106 -11.6363257789998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PNG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.123922973 48.9940131640001,14.123922973 54.8383242860001,24.1431563720001 54.8383242860001,24.1431563720001 48.9940131640001,14.123922973 48.9940131640001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'POL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-67.9378149079999 17.9229190120002,-67.9378149079999 18.522772528,-65.2446182929999 18.522772528,-65.2446182929999 17.9229190120002,-67.9378149079999 17.9229190120002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.211315989 37.6756045590001,124.211315989 43.010269878,130.699961785 43.010269878,130.699961785 37.6756045590001,124.211315989 37.6756045590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-31.2849014959999 30.0292422550001,-31.2849014959999 42.15362966,-6.20594722499993 42.15362966,-6.20594722499993 30.0292422550001,-31.2849014959999 30.0292422550001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.650357219 -27.5868421429999,-62.650357219 -19.2867286169999,-54.2452888589999 -19.2867286169999,-54.2452888589999 -27.5868421429999,-62.650357219 -27.5868421429999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2002694411415 31.2114489580001,34.2002694411415 32.542640076,35.5725362550001 32.542640076,35.5725362550001 31.2114489580001,34.2002694411415 31.2114489580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PSX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-154.536976692 -27.6412085919999,-154.536976692 -7.95012786299982,-134.942982551 -7.95012786299982,-134.942982551 -27.6412085919999,-154.536976692 -27.6412085919999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PYF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.750987175 24.5598715210001,50.750987175 26.16010163,51.6165470710001 26.16010163,51.6165470710001 24.5598715210001,50.750987175 24.5598715210001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'QAT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.2254337900002 -21.3707821589999,55.2254337900002 -20.861423435,55.8545028000001 -20.861423435,55.8545028000001 -21.3707821589999,55.2254337900002 -21.3707821589999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'REU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.2428259690001 43.6500499480001,20.2428259690001 48.2748322560001,29.6995548840001 48.2748322560001,29.6995548840001 43.6500499480001,20.2428259690001 43.6500499480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ROU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 41.1926805620002,-180 81.8587100280001,180 81.8587100280001,180 41.1926805620002,-180 41.1926805620002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'RUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.8572355550001 -2.82685475699989,28.8572355550001 -1.05869394899987,30.8878092850001 -1.05869394899987,30.8878092850001 -2.82685475699989,28.8572355550001 -2.82685475699989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'RWA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.1046443349999 20.7669131530001,-17.1046443349999 27.6614653400001,-8.68080908199988 27.6614653400001,-8.68080908199988 20.7669131530001,-17.1046443349999 20.7669131530001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.5727645190002 16.3709446840655,34.5727645190002 32.1213479620001,55.6375647380002 32.1213479620001,55.6375647380002 16.3709446840655,34.5727645190002 16.3709446840655))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((117.751856381 15.1500820250001,117.751856381 15.1543692630001,117.755692331 15.1543692630001,117.755692331 15.1500820250001,117.751856381 15.1500820250001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SCR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8094486900001 8.6816417440001,21.8094486900001 22.2269648230001,38.6038517590002 22.2269648230001,38.6038517590002 8.6816417440001,21.8094486900001 8.6816417440001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.1215556230001 3.49020151800015,24.1215556230001 12.2161546840002,35.9208354090002 12.2161546840002,35.9208354090002 3.49020151800015,24.1215556230001 3.49020151800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.5360408189999 12.3056065880001,-17.5360408189999 16.6913853970001,-11.3777762449999 16.6913853970001,-11.3777762449999 12.3056065880001,-17.5360408189999 12.3056065880001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.6404109369999 15.8620873070001,-78.6404109369999 15.8672956400001,-78.6368708979999 15.8672956400001,-78.6368708979999 15.8620873070001,-78.6404109369999 15.8620873070001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((103.640391472 1.26430898600009,103.640391472 1.44863515800004,104.003428582 1.44863515800004,104.003428582 1.26430898600009,103.640391472 1.26430898600009))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-38.0870255199999 -59.4727515599998,-38.0870255199999 -53.9724260399999,-26.2393285799999 -53.9724260399999,-26.2393285799999 -59.4727515599998,-38.0870255199999 -59.4727515599998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-14.4177139959999 -40.3978817689998,-14.4177139959999 -7.87786223799983,-5.65038001199986 -7.87786223799983,-5.65038001199986 -40.3978817689998,-14.4177139959999 -40.3978817689998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SHN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.4843856130001 76.4364688170001,10.4843856130001 80.7700869810001,29.7070418630001 80.7700869810001,29.7070418630001 76.4364688170001,10.4843856130001 76.4364688170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SJM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((155.507985873 -12.2906226539999,155.507985873 -6.59986744599981,168.825856967 -6.59986744599981,168.825856967 -12.2906226539999,155.507985873 -12.2906226539999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.3010961579999 6.91941966400012,-13.3010961579999 9.99600596100012,-10.2822358799999 9.99600596100012,-10.2822358799999 6.91941966400012,-13.3010961579999 6.91941966400012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.1147790119999 13.1586367860001,-90.1147790119999 14.4453726200001,-87.6931935119999 14.4453726200001,-87.6931935119999 13.1586367860001,-90.1147790119999 13.1586367860001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.3856287450001 43.892055515,12.3856287450001 43.9825667860001,12.4923922540001 43.9825667860001,12.4923922540001 43.892055515,12.3856287450001 43.892055515))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.6472465410002 7.9965156050001,42.6472465410002 11.4989281270001,48.9391119999082 11.4989281270001,48.9391119999082 7.9965156050001,42.6472465410002 7.9965156050001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((40.9653853760002 -1.69628316497764,40.9653853760002 11.9891186460002,51.4170378110001 11.9891186460002,51.4170378110001 -1.69628316497764,40.9653853760002 -1.69628316497764))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-56.396595832 46.7527529970001,-56.396595832 47.1412621110001,-56.1447647779999 47.1412621110001,-56.1447647779999 46.7527529970001,-56.396595832 46.7527529970001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SPM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.8449784750001 42.2349425250001,18.8449784750001 46.1738752240001,22.9845707600001 46.1738752240001,22.9845707600001 42.2349425250001,18.8449784750001 42.2349425250001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SRB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.46168053500011 0.0241153020000695,6.46168053500011 1.69977448100016,7.46273847700007 1.69977448100016,7.46273847700007 0.0241153020000695,6.46168053500011 0.0241153020000695))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'STP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.0676912029999 1.83350677500007,-58.0676912029999 6.01157376600012,-53.9863574539999 6.01157376600012,-53.9863574539999 1.83350677500007,-58.0676912029999 1.83350677500007))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SUR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.8444804280001 47.7500064090001,16.8444804280001 49.601779684,22.5396366780001 49.601779684,22.5396366780001 47.7500064090001,16.8444804280001 47.7500064090001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.3652612710001 45.42363678,13.3652612710001 46.863962301,16.5153015540001 46.863962301,16.5153015540001 45.42363678,13.3652612710001 45.42363678))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1081649100001 55.3426781270001,11.1081649100001 69.0363556930001,24.1634135340001 69.0363556930001,24.1634135340001 55.3426781270001,11.1081649100001 55.3426781270001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.7829061280001 -27.3162643429999,30.7829061280001 -25.7359990439999,32.1173983160001 -25.7359990439999,32.1173983160001 -27.3162643429999,30.7829061280001 -27.3162643429999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1188858709999 18.019110419,-63.1188858709999 18.0621092720001,-63.0175685850526 18.0621092720001,-63.0175685850526 18.019110419,-63.1188858709999 18.019110419))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SXM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.2073673840002 -9.75554778399989,46.2073673840002 -3.79111093499991,56.2874455090001 -3.79111093499991,56.2874455090001 -9.75554778399989,46.2073673840002 -9.75554778399989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.7233992850002 32.313041687,35.7233992850002 37.3249063110001,42.377185506 37.3249063110001,42.377185506 32.313041687,35.7233992850002 32.313041687))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.481312629 21.2901065120001,-72.481312629 21.9592145850001,-71.1288956369999 21.9592145850001,-71.1288956369999 21.2901065120001,-72.481312629 21.2901065120001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.4491837970001 7.45556671100012,13.4491837970001 23.4447199510001,23.9844063720001 23.4447199510001,23.9844063720001 7.45556671100012,13.4491837970001 7.45556671100012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.16610917099996 6.100490848287,-0.16610917099996 11.1349803670001,1.78235070800014 11.1349803670001,1.78235070800014 6.100490848287,-0.16610917099996 6.100490848287))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TGO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((97.3514010010001 5.62989003500013,97.3514010010001 20.4450064090001,105.650997762 20.4450064090001,105.650997762 5.62989003500013,97.3514010010001 5.62989003500013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'THA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((67.3426900630002 36.6786408490002,67.3426900630002 41.0399767050001,75.1641247970001 41.0399767050001,75.1641247970001 36.6786408490002,67.3426900630002 36.6786408490002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TJK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-171.086537239 -11.0660946589999,-171.086537239 -11.0513648419999,-171.072824674 -11.0513648419999,-171.072824674 -11.0660946589999,-171.086537239 -11.0660946589999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((52.4376706173443 35.140646871,52.4376706173443 42.791187643,66.6457816980001 42.791187643,66.6457816980001 35.140646871,52.4376706173443 35.140646871))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.03003991 -9.5012277219999,124.03003991 -8.13502369599983,127.313243035 -8.13502369599983,127.313243035 -9.5012277219999,124.03003991 -9.5012277219999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TLS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-176.219309049 -22.3387997379999,-176.219309049 -15.5595028629999,-173.914255338 -15.5595028629999,-173.914255338 -22.3387997379999,-176.219309049 -22.3387997379999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TON'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.9287003249999 10.0420596370002,-61.9287003249999 11.3510602890001,-60.5220841139999 11.3510602890001,-60.5220841139999 10.0420596370002,-61.9287003249999 10.0420596370002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TTO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.4798323980001 30.2289053350001,7.4798323980001 37.3452009140002,11.5641309000001 37.3452009140002,11.5641309000001 30.2289053350001,7.4798323980001 30.2289053350001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.663259311 35.819778545,25.663259311 42.0987816430001,44.8069928290001 42.0987816430001,44.8069928290001 35.819778545,25.663259311 35.819778545))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((176.125254754 -9.42066822699981,176.125254754 -5.67750416499986,179.906748894 -5.67750416499986,179.906748894 -9.42066822699981,176.125254754 -9.42066822699981))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((118.279551629 21.9046084660001,118.279551629 25.287420966,122.005381707 25.287420966,122.005381707 21.9046084660001,118.279551629 21.9046084660001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TWN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.3210315350001 -11.7312724819999,29.3210315350001 -0.985830179999823,40.4493921230001 -0.985830179999823,40.4493921230001 -11.7312724819999,29.3210315350001 -11.7312724819999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TZA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.5484595130001 -1.47520599399984,29.5484595130001 4.21969187500011,35.0064726150001 4.21969187500011,35.0064726150001 -1.47520599399984,29.5484595130001 -1.47520599399984))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.1328398030001 44.381048895,22.1328398030001 52.3689492800001,40.1595430910002 52.3689492800001,40.1595430910002 44.381048895,22.1328398030001 44.381048895))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UKR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.389597134 -0.388767184999892,-177.389597134 28.2153181010001,166.652354363 28.2153181010001,166.652354363 -0.388767184999892,-177.389597134 -0.388767184999892))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UMI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.4393611319999 -34.9734026019999,-58.4393611319999 -30.0968698119999,-53.1108361419999 -30.0968698119999,-53.1108361419999 -34.9734026019999,-58.4393611319999 -34.9734026019999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'URY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-179.143503384 18.9061171430001,-179.143503384 71.4125023460001,179.780935092 71.4125023460001,179.780935092 18.9061171430001,-179.143503384 18.9061171430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'USA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.2328569552957 19.8911422360002,-75.2328569552957 19.9715836900001,-75.0949502909999 19.9715836900001,-75.0949502909999 19.8911422360002,-75.2328569552957 19.8911422360002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'USG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.9758386630001 37.1851474,55.9758386630001 45.5587189740001,73.1486405840002 45.5587189740001,73.1486405840002 37.1851474,55.9758386630001 37.1851474))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UZB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.4527140820001 41.9027519410001,12.4527140820001 41.9039147380001,12.4540354420001 41.9039147380001,12.4540354420001 41.9027519410001,12.4527140820001 41.9027519410001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VAT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4598282539999 12.5851504580001,-61.4598282539999 13.3807640650001,-61.1239314439999 13.3807640650001,-61.1239314439999 12.5851504580001,-61.4598282539999 12.5851504580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VCT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.3911486409999 0.649315491000067,-73.3911486409999 15.7029483090001,-59.815594849 15.7029483090001,-59.815594849 0.649315491000067,-73.3911486409999 0.649315491000067))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.7739965489999 18.3346621770001,-64.7739965489999 18.74624258,-64.2707413399999 18.74624258,-64.2707413399999 18.3346621770001,-64.7739965489999 18.3346621770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VGB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-65.0414934419999 17.6827660180001,-65.0414934419999 18.3865986140001,-64.5593969389999 18.3865986140001,-64.5593969389999 17.6827660180001,-65.0414934419999 17.6827660180001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VIR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.118655233 8.56557851800015,102.118655233 23.3662751270001,109.472422722 23.3662751270001,109.472422722 8.56557851800015,102.118655233 8.56557851800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VNM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.520518425 -20.2531063779999,166.520518425 -13.0648739559998,169.898936394 -13.0648739559998,169.898936394 -20.2531063779999,166.520518425 -20.2531063779999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VUT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-178.185739713 -14.3194312479999,-178.185739713 -13.208916925,-176.125599739 -13.208916925,-176.125599739 -14.3194312479999,-178.185739713 -14.3194312479999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WLF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.7601022650002 34.5685488950001,32.7601022650002 34.7009482940001,33.03028405 34.7009482940001,33.03028405 34.5685488950001,32.7601022650002 34.5685488950001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-172.782582161 -14.052829685,-172.782582161 -13.4628231749999,-171.437692838 -13.4628231749999,-171.437692838 -14.052829685,-172.782582161 -14.052829685))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.5457462900001 12.1114436720001,42.5457462900001 18.9956375130001,54.5402938160002 18.9956375130001,54.5402938160002 12.1114436720001,42.5457462900001 12.1114436720001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'YEM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.4699813160001 -46.965752863,16.4699813160001 -22.1264519249999,37.9777938160001 -22.1264519249999,37.9777938160001 -46.965752863,16.4699813160001 -46.965752863))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.9798775630001 -18.0692318719999,21.9798775630001 -8.1941240429999,33.674202515 -8.1941240429999,33.674202515 -18.0692318719999,21.9798775630001 -18.0692318719999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZMB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.219369751 -22.3973397829999,25.219369751 -15.6148080449999,33.0427681890002 -15.6148080449999,33.0427681890002 -22.3973397829999,25.219369751 -22.3973397829999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZWE'" should true - - # checks that the synonym table includes at least two rows per region: ISO3 code and name -} - -function test_geocoding_functions_admin0() { - # checks that an invalid input returns a false result and an empty geometry - sql postgres "SELECT (geocode_admin0_polygons(Array['Null Island'])).success" should false - sql postgres "SELECT (geocode_admin0_polygons(Array['Null Island'])).geom is null" should true - - # checks that the synonym function is working - - - # checks that the centroid of the result obtained intersects with the desirable bounding box - #TO-DO: fix, shouldn't contain a FROM statement - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-70.0624080069999 12.417669989,-70.0624080069999 12.6321475280001,-69.8768204419999 12.6321475280001,-69.8768204419999 12.417669989,-70.0624080069999 12.417669989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ABW'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ABW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.4867777910001 29.3866053260001,60.4867777910001 38.4736734020001,74.8923067630001 38.4736734020001,74.8923067630001 29.3866053260001,60.4867777910001 29.3866053260001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AFG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AFG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.6693941430001 -18.0314047239998,11.6693941430001 -4.39120371499996,24.0617143150001 -4.39120371499996,24.0617143150001 -18.0314047239998,11.6693941430001 -18.0314047239998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AGO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AGO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.4288223949999 18.1690941430001,-63.4288223949999 18.6012637390001,-62.9726456369999 18.6012637390001,-62.9726456369999 18.1690941430001,-63.4288223949999 18.1690941430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AIA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AIA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.2720325110001 39.637013245,19.2720325110001 42.6548135380001,21.0366793210001 42.6548135380001,21.0366793210001 39.637013245,19.2720325110001 39.637013245))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ALB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.5131942070001 59.9044863950001,19.5131942070001 60.4807803410001,21.0966903000001 60.4807803410001,21.0966903000001 59.9044863950001,19.5131942070001 59.9044863950001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ALD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.4064563390001 42.4286774700001,1.4064563390001 42.649361674,1.76509078000015 42.649361674,1.76509078000015 42.4286774700001,1.4064563390001 42.4286774700001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AND'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.5693465500001 22.6209459430001,51.5693465500001 26.0747919720001,56.3836369150001 26.0747919720001,56.3836369150001 22.6209459430001,51.5693465500001 22.6209459430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.5880358489999 -55.0520158829998,-73.5880358489999 -21.7869377639999,-53.6615518799999 -21.7869377639999,-53.6615518799999 -55.0520158829998,-73.5880358489999 -55.0520158829998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.4362939860001 38.8637012740001,43.4362939860001 41.2904523730001,46.6026123460001 41.2904523730001,46.6026123460001 38.8637012740001,43.4362939860001 38.8637012740001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-170.831247525 -14.5328915339999,-170.831247525 -14.1688778629998,-168.160471158 -14.1688778629998,-168.160471158 -14.5328915339999,-170.831247525 -14.5328915339999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ASM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ASM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -90,-180 -60.516208592,180 -60.516208592,180 -90,-180 -90))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((123.575043165 -12.4385718729998,123.575043165 -12.4266089819999,123.597748243 -12.4266089819999,123.597748243 -12.4385718729998,123.575043165 -12.4385718729998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.7282820970001 -49.7216122379999,39.7282820970001 -11.5506324199998,77.5852156910001 -11.5506324199998,77.5852156910001 -49.7216122379999,39.7282820970001 -49.7216122379999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.8941544259999 16.9892438820001,-61.8941544259999 17.7276878930001,-61.6675919259999 17.7276878930001,-61.6675919259999 16.9892438820001,-61.8941544259999 16.9892438820001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((112.919444207 -54.750420831,112.919444207 -9.24016692499987,159.106455925 -9.24016692499987,159.106455925 -54.750420831,112.919444207 -54.750420831))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AUS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.52115482500011 46.3786430870001,9.52115482500011 49.0097744750001,17.1483378500001 49.0097744750001,17.1483378500001 46.3786430870001,9.52115482500011 46.3786430870001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AUT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.7745585530002 38.392644755,44.7745585530002 41.8904415900002,50.6257430350001 41.8904415900002,50.6257430350001 38.392644755,44.7745585530002 38.392644755))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AZE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AZE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.9868917230001 -4.46334401499993,28.9868917230001 -2.30306243899987,30.8339624430001 -2.30306243899987,30.8339624430001 -4.46334401499993,28.9868917230001 -4.46334401499993))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BDI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BDI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.52179992769047 49.495222881,2.52179992769047 51.4962376910001,6.37452518700007 51.4962376910001,6.37452518700007 49.495222881,2.52179992769047 49.495222881))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BEL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.759880818000113 6.21389923179639,0.759880818000113 12.3992442830001,3.83741906700001 12.3992442830001,3.83741906700001 6.21389923179639,0.759880818000113 6.21389923179639))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BEN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-68.4173884759999 12.0220401060001,-68.4173884759999 12.3102074240002,-68.1900121739999 12.3102074240002,-68.1900121739999 12.0220401060001,-68.4173884759999 12.0220401060001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BES'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BES'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.52257808499988 9.39188262900012,-5.52257808499988 15.0799075320001,2.39016890400009 15.0799075320001,2.39016890400009 9.39188262900012,-5.52257808499988 9.39188262900012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BFA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BFA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.0217895920001 20.738714911,88.0217895920001 26.6235440070001,92.6428511970002 26.6235440070001,92.6428511970002 20.738714911,88.0217895920001 20.738714911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BGD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.3450232340001 41.2381041470001,22.3450232340001 44.228434539,28.6035262380001 44.228434539,28.6035262380001 41.2381041470001,22.3450232340001 41.2381041470001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BGR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.448903842 25.7895368510001,50.448903842 26.242580471,50.6456598131816 26.242580471,50.6456598131816 25.7895368510001,50.448903842 25.7895368510001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BHR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.5943497389999 20.9123989090001,-79.5943497389999 26.9284121770001,-72.7461645169999 26.9284121770001,-72.7461645169999 20.9123989090001,-79.5943497389999 20.9123989090001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BHS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((15.7160738520001 42.5592121380002,15.7160738520001 45.2845238250002,19.618884725 45.2845238250002,19.618884725 42.5592121380002,15.7160738520001 42.5592121380002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BIH'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BIH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.9892878899999 15.7941755230001,-79.9892878899999 15.7962100280001,-79.9863988919999 15.7962100280001,-79.9863988919999 15.7941755230001,-79.9892878899999 15.7941755230001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BJN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BJN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8673396479999 17.8819847680001,-62.8673396479999 17.9291445980001,-62.7916560539999 17.9291445980001,-62.7916560539999 17.8819847680001,-62.8673396479999 17.8819847680001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((23.165644979 51.2351683560001,23.165644979 56.1568059290001,32.7195321040001 56.1568059290001,32.7195321040001 51.2351683560001,23.165644979 51.2351683560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.2365122079999 15.8796519990001,-89.2365122079999 18.4907587690001,-87.7830704419999 18.4907587690001,-87.7830704419999 15.8796519990001,-89.2365122079999 15.8796519990001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.8859939889704 32.2480773815958,-64.8859939889704 32.3886579450001,-64.6476307056406 32.3886579450001,-64.6476307056406 32.2480773815958,-64.8859939889704 32.2480773815958))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BMU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BMU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.6664922699999 -22.8972575879999,-69.6664922699999 -9.67982147199997,-57.4656607669999 -9.67982147199997,-57.4656607669999 -22.8972575879999,-69.6664922699999 -22.8972575879999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BOL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BOL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.018474691 -33.742280375,-74.018474691 5.26722483300009,-28.8770645819999 5.26722483300009,-28.8770645819999 -33.742280375,-74.018474691 -33.742280375))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-59.6542048819999 13.051174221,-59.6542048819999 13.344549872,-59.4269099599999 13.344549872,-59.4269099599999 13.051174221,-59.6542048819999 13.051174221))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.99878991 4.01668101000011,113.99878991 5.05719635600018,115.360741008 5.05719635600018,115.360741008 4.01668101000011,113.99878991 4.01668101000011))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.7300667720001 26.6961493940002,88.7300667720001 28.3583989307863,92.0887764890001 28.3583989307863,92.0887764890001 26.6961493940002,88.7300667720001 26.6961493940002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BTN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BTN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.34555097700007 -54.4624976539999,3.34555097700007 -54.3801408829999,3.48666425900012 -54.3801408829999,3.48666425900012 -54.4624976539999,3.34555097700007 -54.4624976539999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BVT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BVT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.9783459880001 -26.891794128,19.9783459880001 -17.7818075559999,29.3500736890001 -17.7818075559999,29.3500736890001 -26.891794128,19.9783459880001 -26.891794128))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BWA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BWA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.3872660720001 2.23645375600006,14.3872660720001 11.0008283490001,27.4413013100001 11.0008283490001,27.4413013100001 2.23645375600006,14.3872660720001 2.23645375600006))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CAF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-141.005548637109 41.6690855920001,-141.005548637109 83.1165225280001,-52.616607226 83.1165225280001,-52.616607226 41.6690855920001,-141.005548637109 41.6690855920001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CAN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.821543816 -12.1999651019998,96.821543816 -12.1265601539999,96.9210718110001 -12.1265601539999,96.9210718110001 -12.1999651019998,96.821543816 -12.1999651019998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CCK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CCK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.95480920400013 45.820718486,5.95480920400013 47.8011660770001,10.466626831 47.8011660770001,10.466626831 45.820718486,5.95480920400013 45.820718486))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.453724739 -55.9185042229998,-109.453724739 -17.506588198,-66.4208064439999 -17.506588198,-66.4208064439999 -55.9185042229998,-109.453724739 -55.9185042229998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.6022563070002 15.775376695,73.6022563070002 53.569444479,134.772579387 53.569444479,134.772579387 15.775376695,73.6022563070002 15.775376695))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.61871984899992 4.34406159100013,-8.61871984899992 10.7264781700001,-2.50632808399993 10.7264781700001,-2.50632808399993 4.34406159100013,-8.61871984899992 4.34406159100013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CIV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CIV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.234242317 10.2815615910001,-109.234242317 10.3110212260001,-109.210357226 10.3110212260001,-109.210357226 10.2815615910001,-109.234242317 10.2815615910001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CLP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CLP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.50505618600005 1.65455129000014,8.50505618600005 13.081140646,16.2077234290001 13.081140646,16.2077234290001 1.65455129000014,8.50505618600005 1.65455129000014))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CMR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.5848087900001 34.9777627570001,32.5848087900001 35.1994029740002,34.0219607300423 35.1994029740002,34.0219607300423 34.9777627570001,32.5848087900001 34.9777627570001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CNM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CNM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.2105548693531 -13.4583505239999,12.2105548693531 5.37528025300014,31.2804468180001 5.37528025300014,31.2804468180001 -13.4583505239999,12.2105548693531 -13.4583505239999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1140163040629 -5.01963083599986,11.1140163040629 3.70827606200005,18.64240686 3.70827606200005,18.64240686 -5.01963083599986,11.1140163040629 -5.01963083599986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-165.824533658 -21.9388973939999,-165.824533658 -8.94670989399988,-157.312814908 -8.94670989399988,-157.312814908 -21.9388973939999,-165.824533658 -21.9388973939999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.72370358 -4.23648447699985,-81.72370358 13.5783552100001,-66.8750605879999 13.5783552100001,-66.8750605879999 -4.23648447699985,-81.72370358 -4.23648447699985))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2132267590001 -12.3803036439999,43.2132267590001 -11.3612606749999,44.5290633470001 -11.3612606749999,44.5290633470001 -12.3803036439999,43.2132267590001 -12.3803036439999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-25.3604223299999 14.8039411480001,-25.3604223299999 17.196600653,-22.6665746739999 17.196600653,-22.6665746739999 14.8039411480001,-25.3604223299999 14.8039411480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CPV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CPV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.1176651679999 5.51508209800012,-87.1176651679999 11.2099370320002,-82.5628368739999 11.2099370320002,-82.5628368739999 5.51508209800012,-87.1176651679999 5.51508209800012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CRI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CRI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((154.388519727 -21.0300432269999,154.388519727 -21.028741144,154.391286655 -21.028741144,154.391286655 -21.0300432269999,154.388519727 -21.0300432269999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CSI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CSI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.9496150379999 19.827826239,-84.9496150379999 23.2655703800001,-74.1328832669999 23.2655703800001,-74.1328832669999 19.827826239,-84.9496150379999 19.827826239))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CUB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.1717423169999 12.041327216,-69.1717423169999 12.3915062520001,-68.7397354809999 12.3915062520001,-68.7397354809999 12.041327216,-69.1717423169999 12.041327216))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CUW'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((105.581797722 -10.5660132789999,105.581797722 -10.4308407529998,105.714691602 -10.4308407529998,105.714691602 -10.5660132789999,105.581797722 -10.5660132789999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CXR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CXR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.4165420209999 19.2638636150001,-81.4165420209999 19.7576308370001,-79.7266426919999 19.7576308370001,-79.7266426919999 19.2638636150001,-81.4165420209999 19.2638636150001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6019153500579 35.002722473,32.6019153500579 35.6919619810002,34.5925399100002 35.6919619810002,34.5925399100002 35.002722473,32.6019153500579 35.002722473))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.2717391290002 34.6250194300001,32.2717391290002 35.1870821302553,34.0991317070001 35.1870821302553,34.0991317070001 34.6250194300001,32.2717391290002 34.6250194300001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.076140991 48.557915752,12.076140991 51.0400123090001,18.8374337160001 51.0400123090001,18.8374337160001 48.557915752,12.076140991 48.557915752))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CZE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CZE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.85248986800011 47.271120911,5.85248986800011 55.065334377,15.0220593670001 55.065334377,15.0220593670001 47.271120911,5.85248986800011 47.271120911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DEU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DEU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((41.7491101480001 10.9298249310001,41.7491101480001 12.7079125020001,43.4187117850001 12.7079125020001,43.4187117850001 10.9298249310001,41.7491101480001 10.9298249310001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DJI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DJI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4889216789999 15.201808986,-61.4889216789999 15.6338565120001,-61.249256965 15.6338565120001,-61.249256965 15.201808986,-61.4889216789999 15.201808986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DMA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DMA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.09400475400008 54.5685895850001,8.09400475400008 57.7511660830001,15.1513778000001 57.7511660830001,15.1513778000001 54.5685895850001,8.09400475400008 54.5685895850001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DNK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DNK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.0098376059999 17.5455589860001,-72.0098376059999 19.9376895200001,-68.3286026679999 19.9376895200001,-68.3286026679999 17.5455589860001,-72.0098376059999 17.5455589860001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DOM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DOM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.68238521299992 18.9755612180001,-8.68238521299992 37.0939395200001,11.9688607170001 37.0939395200001,11.9688607170001 18.9755612180001,-8.68238521299992 18.9755612180001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DZA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DZA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.0115860669999 -5.01137257899988,-92.0115860669999 1.66437409100016,-75.2272639579999 1.66437409100016,-75.2272639579999 -5.01137257899988,-92.0115860669999 -5.01137257899988))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ECU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ECU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.6883427320001 21.9943692020002,24.6883427320001 31.6564802100001,36.8991805350002 31.6564802100001,36.8991805350002 21.9943692020002,24.6883427320001 21.9943692020002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['EGY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'EGY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((36.4236470950001 12.3600218710001,36.4236470950001 18.004828192,43.1238712900001 18.004828192,43.1238712900001 12.3600218710001,36.4236470950001 12.3600218710001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ERI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ERI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.6740991620001 34.937892971,33.6740991620001 35.1189944460001,33.9214742440001 35.1189944460001,33.9214742440001 34.937892971,33.6740991620001 34.937892971))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ESB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-18.1672257149999 27.6422386740001,-18.1672257149999 43.793443101,4.3370874360001 43.793443101,4.3370874360001 27.6422386740001,-18.1672257149999 27.6422386740001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ESP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8323673840001 57.5158185830001,21.8323673840001 59.6708845070001,28.1864754640001 59.6708845070001,28.1864754640001 57.5158185830001,21.8323673840001 57.5158185830001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['EST'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'EST'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.9897998450001 3.40333343500009,32.9897998450001 14.8795321660001,47.9791691490001 14.8795321660001,47.9791691490001 3.40333343500009,32.9897998450001 3.40333343500009))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ETH'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ETH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.62316451 59.811224677,20.62316451 70.0753103640001,31.5695247800001 70.0753103640001,31.5695247800001 59.811224677,20.62316451 59.811224677))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FIN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FIN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -21.7111141909999,-180 -12.4752743469999,180 -12.4752743469999,180 -21.7111141909999,-180 -21.7111141909999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FJI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FJI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3181860019999 -52.4065227259999,-61.3181860019999 -51.0277645809999,-57.7342830069999 -51.0277645809999,-57.7342830069999 -52.4065227259999,-61.3181860019999 -52.4065227259999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FLK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FLK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 51.0875408834804,8.20030521600006 51.0875408834804,8.20030521600006 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.54525800900012 41.365912177,8.54525800900012 43.0174014340001,9.55958092500009 43.0174014340001,9.55958092500009 41.365912177,8.54525800900012 41.365912177))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRH'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.64415442599994 61.3941104190001,-7.64415442599994 62.3989118510001,-6.2757869129999 62.3989118510001,-6.2757869129999 61.3941104190001,-7.64415442599994 61.3941104190001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((138.063812696 0.918158270000148,138.063812696 9.77558014500013,163.046560092 9.77558014500013,163.046560092 0.918158270000148,138.063812696 0.918158270000148))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FSM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FSM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.69556725400014 -3.93685618990304,8.69556725400014 2.32249501600009,14.4989905190001 2.32249501600009,14.4989905190001 -3.93685618990304,8.69556725400014 -3.93685618990304))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GAB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GAB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.6913142569999 49.9096133480001,-13.6913142569999 60.84788646,1.77116946700002 60.84788646,1.77116946700002 49.9096133480001,-13.6913142569999 49.9096133480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GBR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GBR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.9859763554231 41.0441108200001,39.9859763554231 43.5758425900001,46.6948031010001 43.5758425900001,46.6948031010001 41.0441108200001,39.9859763554231 41.0441108200001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GEO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GEO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.67345130099989 49.4115664730001,-2.67345130099989 49.731390692,-2.17031816299993 49.731390692,-2.17031816299993 49.4115664730001,-2.67345130099989 49.4115664730001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GGY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GGY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.26250931799999 4.7371279970001,-3.26250931799999 11.162937317,1.18796838400004 11.162937317,1.18796838400004 4.7371279970001,-3.26250931799999 4.7371279970001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GHA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GHA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.35838675876349 36.1105003930001,-5.35838675876349 36.1411196720123,-5.33877348311998 36.1411196720123,-5.33877348311998 36.1105003930001,-5.35838675876349 36.1105003930001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GIB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-15.0811254549999 7.19020823200012,-15.0811254549999 12.673387757,-7.66244746999996 12.673387757,-7.66244746999996 7.19020823200012,-15.0811254549999 7.19020823200012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GIN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7978409499999 15.8469912780002,-61.7978409499999 16.513088283,-60.9892471999999 16.513088283,-60.9892471999999 15.8469912780002,-61.7978409499999 15.8469912780002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GLP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GLP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.8297013009999 13.0650088560001,-16.8297013009999 13.8199844360001,-13.8187125249999 13.8199844360001,-13.8187125249999 13.0650088560001,-16.8297013009999 13.0650088560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GMB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GMB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.7284367771401 10.9276390650001,-16.7284367771401 12.6794339000001,-13.6607118329999 12.6794339000001,-13.6607118329999 10.9276390650001,-16.7284367771401 10.9276390650001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GNB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.61198978000007 -1.47568124799986,5.61198978000007 3.77240631700012,11.3363411870001 3.77240631700012,11.3363411870001 -1.47568124799986,5.61198978000007 -1.47568124799986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GNQ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.6264754570001 34.8150088560001,19.6264754570001 41.7504759730001,28.2397567070001 41.7504759730001,28.2397567070001 34.8150088560001,19.6264754570001 34.8150088560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7905167309999 12.0028343770001,-61.7905167309999 12.5297305360001,-61.4216202459999 12.5297305360001,-61.4216202459999 12.0028343770001,-61.7905167309999 12.0028343770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.0572403639999 59.792629299,-73.0572403639999 83.6341006530001,-11.3768204419999 83.6341006530001,-11.3768204419999 59.792629299,-73.0572403639999 59.792629299))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.2462338320825 13.7289030478944,-92.2462338320825 17.8160195930001,-88.2209221351212 17.8160195930001,-88.2209221351212 13.7289030478944,-92.2462338320825 13.7289030478944))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GTM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GTM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 5.74476537500011,-51.649037239 5.74476537500011,-51.649037239 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.624196811 13.2410342470001,144.624196811 13.6541201840001,144.95215905 13.6541201840001,144.95215905 13.2410342470001,144.624196811 13.2410342470001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3967128089999 1.18582021100013,-61.3967128089999 8.55801015800012,-56.4818190109999 8.55801015800012,-56.4818190109999 1.18582021100013,-61.3967128089999 1.18582021100013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.837331576 22.177069403,113.837331576 22.5639460320001,114.40129642 22.5639460320001,114.40129642 22.177069403,113.837331576 22.177069403))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HKG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HKG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.236013217 -53.1925595029999,73.236013217 -52.9616024719999,73.8121850920001 -52.9616024719999,73.8121850920001 -53.1925595029999,73.236013217 -53.1925595029999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HMD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HMD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.3637912599999 12.9797773240001,-89.3637912599999 17.4186465520001,-83.1304418609999 17.4186465520001,-83.1304418609999 12.9797773240001,-89.3637912599999 12.9797773240001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HND'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.5014754570001 42.4163272160001,13.5014754570001 46.5469790650001,19.4078381750001 46.5469790650001,19.4078381750001 42.4163272160001,13.5014754570001 42.4163272160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HRV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HRV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.4891658189999 18.0259463560001,-74.4891658189999 20.08978913,-71.6391108809999 20.08978913,-71.6391108809999 18.0259463560001,-74.4891658189999 18.0259463560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HTI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HTI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.0940352780001 45.741343486,16.0940352780001 48.5692328900001,22.8776005460001 48.5692328900001,22.8776005460001 45.741343486,16.0940352780001 45.741343486))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HUN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HUN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((95.0127059250001 -10.9226213519998,95.0127059250001 5.9101016300001,140.977626994 5.9101016300001,140.977626994 -10.9226213519998,95.0127059250001 -10.9226213519998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IDN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IDN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.79015051999994 54.0569522160001,-4.79015051999994 54.4190127620001,-4.3119197259999 54.4190127620001,-4.3119197259999 54.0569522160001,-4.79015051999994 54.0569522160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IMN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IMN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((68.1434025400001 6.74555084800015,68.1434025400001 35.4954055790001,97.3622530520001 35.4954055790001,97.3622530520001 6.74555084800015,68.1434025400001 6.74555084800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IND'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.82154382 -12.1999651,96.82154382 -10.43084075,105.7146916 -10.43084075,105.7146916 -12.1999651,96.82154382 -12.1999651))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IOA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((71.260996941 -7.43222421699987,71.260996941 -5.22698333099991,72.4946395190001 -5.22698333099991,72.4946395190001 -7.43222421699987,71.260996941 -7.43222421699987))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IOT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-10.4781794909999 51.4457054710001,-10.4781794909999 55.386379299,-5.99351966099994 55.386379299,-5.99351966099994 51.4457054710001,-10.4781794909999 51.4457054710001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.0148633220001 25.0594081650001,44.0148633220001 39.7715269980001,63.3196281330001 39.7715269980001,63.3196281330001 25.0594081650001,44.0148633220001 25.0594081650001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((38.7745113520001 29.063136699,38.7745113520001 37.3754975380001,48.5592554050001 37.3754975380001,48.5592554050001 29.063136699,38.7745113520001 29.063136699))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRQ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-24.539906379 63.3967145850001,-24.539906379 66.564154364,-13.5029190749999 66.564154364,-13.5029190749999 63.3967145850001,-24.539906379 63.3967145850001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ISL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2483508570001 29.4896914730001,34.2483508570001 33.4067217000001,35.8880725500002 33.4067217000001,35.8880725500002 29.4896914730001,34.2483508570001 29.4896914730001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ISR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.60272831200007 35.489243882,6.60272831200007 47.085214945,18.5174259770001 47.085214945,18.5174259770001 35.489243882,6.60272831200007 35.489243882))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ITA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ITA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.3746638659999 17.70319245,-78.3746638659999 18.525091864,-76.1879776679999 18.525091864,-76.1879776679999 17.70319245,-78.3746638659999 17.70319245))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JAM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'JAM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.24201412699992 49.1713320980001,-2.24201412699992 49.267035223,-2.00829016799992 49.267035223,-2.00829016799992 49.1713320980001,-2.24201412699992 49.1713320980001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JEY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'JEY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.949385116681 29.189950664,34.949385116681 33.3716850790001,39.2919991450001 33.3716850790001,39.2919991450001 29.189950664,34.949385116681 29.189950664))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JOR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'JOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((122.938161655 24.212103583,122.938161655 45.5204125020001,153.985606316 45.5204125020001,153.985606316 24.212103583,122.938161655 24.212103583))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JPN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'JPN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((62.8006417230001 45.5658244830001,62.8006417230001 46.390838725,63.9671338300001 46.390838725,63.9671338300001 45.5658244830001,62.8006417230001 45.5658244830001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((76.7773507410001 35.110441997,76.7773507410001 35.6477993780001,77.8003463140001 35.6477993780001,77.8003463140001 35.110441997,76.7773507410001 35.110441997))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.478278849 40.5846556600001,46.478278849 55.4345502730001,87.3237960210001 55.4345502730001,87.3237960210001 40.5846556600001,46.478278849 40.5846556600001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.8904683840002 -4.67750416499996,33.8904683840002 5.03037582260775,41.8850191650001 5.03037582260775,41.8850191650001 -4.67750416499996,33.8904683840002 -4.67750416499996))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KEN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((69.2262960200001 39.1892369590001,69.2262960200001 43.2617015580001,80.2575606690001 43.2617015580001,80.2575606690001 39.1892369590001,69.2262960200001 39.1892369590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KGZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KGZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.313423706 10.4157736200001,102.313423706 14.7045816050001,107.610516399 14.7045816050001,107.610516399 10.4157736200001,102.313423706 10.4157736200001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KHM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KHM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-174.543405728 -11.4611141909999,-174.543405728 4.7230899110001,176.850922071 4.7230899110001,176.850922071 -11.4611141909999,-174.543405728 -11.4611141909999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KIR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KIR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8610733709999 17.1005313170001,-62.8610733709999 17.4158389340001,-62.5367732409999 17.4158389340001,-62.5367732409999 17.1005313170001,-62.8610733709999 17.1005313170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KNA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KNA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.613617384 33.197577216,124.613617384 38.6243307589749,131.862521886 38.6243307589749,131.862521886 33.197577216,124.613617384 33.197577216))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KOR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.024751424 41.8440103160001,20.024751424 43.2630709840001,21.7727584220001 43.2630709840001,21.7727584220001 41.8440103160001,20.024751424 41.8440103160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KOS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.5324357500001 28.5335049440001,46.5324357500001 30.0982156370001,48.4327812271219 30.0982156370001,48.4327812271219 28.5335049440001,46.5324357500001 28.5335049440001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KWT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KWT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((100.097073202 13.9154566450001,100.097073202 22.4960440070001,107.66436324 22.4960440070001,107.66436324 13.9154566450001,100.097073202 13.9154566450001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LAO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LAO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.0996199880001 33.055580342,35.0996199880001 34.687547913,36.604101196 34.687547913,36.604101196 33.055580342,35.0996199880001 33.055580342))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-11.4761856759999 4.34723541900004,-11.4761856759999 8.56539560900008,-7.38411820499996 8.56539560900008,-7.38411820499996 4.34723541900004,-11.4761856759999 4.34723541900004))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.28654382300007 19.496123759,9.28654382300007 33.1812253147281,25.1562606130001 33.1812253147281,25.1562606130001 19.496123759,9.28654382300007 19.496123759))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.078521288 13.7146670590001,-61.078521288 14.1118838560001,-60.8829646479999 14.1118838560001,-60.8829646479999 13.7146670590001,-61.078521288 13.7146670590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LCA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LCA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.47588627100012 47.0524004120001,9.47588627100012 47.2628010050001,9.61572269700011 47.2628010050001,9.61572269700011 47.0524004120001,9.47588627100012 47.0524004120001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LIE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LIE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((79.6557723320001 5.92373281500015,79.6557723320001 9.82957591400015,81.8903100920001 9.82957591400015,81.8903100920001 5.92373281500015,79.6557723320001 5.92373281500015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LKA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LKA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((27.0021549890001 -30.6587993359999,27.0021549890001 -28.570761414,29.4359082440001 -28.570761414,29.4359082440001 -30.6587993359999,27.0021549890001 -30.6587993359999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LSO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LSO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9245687005624 53.8868411260001,20.9245687005624 56.4426024370001,26.8007202560001 56.4426024370001,26.8007202560001 53.8868411260001,20.9245687005624 53.8868411260001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LTU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LTU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.71492720500004 49.441324362,5.71492720500004 50.1749746710001,6.50257938700014 50.1749746710001,6.50257938700014 49.441324362,5.71492720500004 49.441324362))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LUX'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LUX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9685978520001 55.6669908660001,20.9685978520001 58.0751384490001,28.2172746170001 58.0751384490001,28.2172746170001 55.6669908660001,20.9685978520001 55.6669908660001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LVA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LVA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.519867384 22.1053734400001,113.519867384 22.220770575,113.587494337 22.220770575,113.587494337 22.1053734400001,113.519867384 22.1053734400001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1468399729999 18.0333914721357,-63.1468399729999 18.1221377620001,-63.0107315749999 18.1221377620001,-63.0107315749999 18.0333914721357,-63.1468399729999 18.0333914721357))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0137433253452 21.4199710975817,-17.0137433253452 35.926519149,-1.03199947099995 35.926519149,-1.03199947099995 21.4199710975817,-17.0137433253452 21.4199710975817))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.36575020700008 43.7179690770001,7.36575020700008 43.763505554,7.4374540320631 43.763505554,7.4374540320631 43.7179690770001,7.36575020700008 43.7179690770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MCO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MCO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((26.617889038 45.461773987,26.617889038 48.486033834,30.1315763750001 48.486033834,30.1315763750001 45.461773987,26.617889038 45.461773987))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2229110040001 -25.5985653629998,43.2229110040001 -11.9436174459998,50.5039168630001 -11.9436174459998,50.5039168630001 -25.5985653629998,43.2229110040001 -25.5985653629998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((72.684825066 -0.688571872999901,72.684825066 7.10724518400015,73.7531844410002 7.10724518400015,73.7531844410002 -0.688571872999901,72.684825066 -0.688571872999901))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-118.368804229 14.5462829243643,-118.368804229 32.7128364050001,-86.7005916009999 32.7128364050001,-86.7005916009999 14.5462829243643,-118.368804229 14.5462829243643))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MEX'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MEX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((165.282237175 4.57379791900016,165.282237175 14.6105003930001,172.029795769 14.6105003930001,172.029795769 4.57379791900016,165.282237175 4.57379791900016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MHL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.4441573490001 40.8493940230001,20.4441573490001 42.3703347790001,23.0095821530001 42.3703347790001,23.0095821530001 40.8493940230001,20.4441573490001 40.8493940230001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MKD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MKD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-12.2641304119999 10.1400540170001,-12.2641304119999 24.9950645960001,4.23563765500012 24.9950645960001,4.23563765500012 10.1400540170001,-12.2641304119999 10.1400540170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MLI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.1836043630001 35.801214911,14.1836043630001 36.0755882830001,14.5671492850001 36.0755882830001,14.5671492850001 35.801214911,14.1836043630001 35.801214911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MLT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((92.174972779 9.79071686400013,92.174972779 28.538465881,101.173855021 28.538465881,101.173855021 9.79071686400013,92.174972779 9.79071686400013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MMR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.4335307210001 41.852362372,18.4335307210001 43.5478856410001,20.3551705320001 43.5478856410001,20.3551705320001 41.852362372,18.4335307210001 41.852362372))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((87.7357088630001 41.586144918,87.7357088630001 52.1295840460001,119.907026815 52.1295840460001,119.907026815 41.586144918,87.7357088630001 41.586144918))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.902110222 14.1106631530001,144.902110222 20.5554059920001,145.868907097 20.5554059920001,145.868907097 14.1106631530001,144.902110222 14.1106631530001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.2138452550002 -26.8602715039999,30.2138452550002 -10.4690080709999,40.8479923840001 -10.4690080709999,40.8479923840001 -26.8602715039999,30.2138452550002 -26.8602715039999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MOZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MOZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0811748859999 14.7343989060002,-17.0811748859999 27.2854157510001,-4.8216131179999 27.2854157510001,-4.8216131179999 14.7343989060002,-17.0811748859999 14.7343989060002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MRT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MRT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.2301326159999 16.6753604190001,-62.2301326159999 16.8193220070001,-62.1405330069999 16.8193220070001,-62.1405330069999 16.6753604190001,-62.2301326159999 16.6753604190001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MSR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MSR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.228830533 14.4081078150001,-61.228830533 14.8768985050001,-60.8104141919999 14.8768985050001,-60.8104141919999 14.4081078150001,-61.228830533 14.4081078150001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MTQ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MTQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((56.5241805350002 -20.5173479149999,56.5241805350002 -10.3239071589999,63.493907097 -10.3239071589999,63.493907097 -20.5173479149999,56.5241805350002 -20.5173479149999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MUS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6633081470002 -17.1353353879999,32.6633081470002 -9.38123504699981,35.9042989500001 -9.38123504699981,35.9042989500001 -17.1353353879999,32.6633081470002 -17.1353353879999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MWI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MWI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((99.6452280600001 0.851370341000077,99.6452280600001 7.35578034100014,119.278086785 7.35578034100014,119.278086785 0.851370341000077,99.6452280600001 0.851370341000077))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MYS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((45.0424910820001 -12.9891903629999,45.0424910820001 -12.6472307269999,45.2908634770001 -12.6472307269999,45.2908634770001 -12.9891903629999,45.0424910820001 -12.9891903629999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MYT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.7176212900001 -28.9593681839999,11.7176212900001 -16.9510572309999,25.2597807210001 -16.9510572309999,25.2597807210001 -28.9593681839999,11.7176212900001 -28.9593681839999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NAM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NAM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((163.615733269 -22.6706682269998,163.615733269 -19.623711847,171.343765287 -19.623711847,171.343765287 -22.6706682269998,163.615733269 -22.6706682269998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NCL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NCL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.152941121000111 11.69577301,0.152941121000111 23.5173511760001,15.9703218990001 23.5173511760001,15.9703218990001 11.69577301,0.152941121000111 11.69577301))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NER'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((167.912119988 -29.0800106749999,167.912119988 -28.9974911439999,167.996348504 -28.9974911439999,167.996348504 -29.0800106749999,167.912119988 -29.0800106749999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NFK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NFK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.67108199000012 4.27216217700007,2.67108199000012 13.8802908320001,14.6699361570001 13.8802908320001,14.6699361570001 4.27216217700007,2.67108199000012 4.27216217700007))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NGA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.6858210929999 10.7134815470002,-87.6858210929999 15.0309699500002,-82.7256973949999 15.0309699500002,-82.7256973949999 10.7134815470002,-87.6858210929999 10.7134815470002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NIC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-169.95042884 -19.1427548159999,-169.95042884 -18.9640438779999,-169.782907681 -18.9640438779999,-169.782907681 -19.1427548159999,-169.95042884 -19.1427548159999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NIU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.2513321609999 17.4645711740002,-63.2513321609999 53.5580915390001,7.19850590000004 53.5580915390001,7.19850590000004 17.4645711740002,-63.2513321609999 17.4645711740002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NLD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NLD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-9.11742102799991 57.993150132,-9.11742102799991 80.2481143250001,33.6403914720001 80.2481143250001,33.6403914720001 57.993150132,-9.11742102799991 57.993150132))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NOR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((80.03028772 26.3437678020001,80.03028772 30.4169041950001,88.1690674240001 30.4169041950001,88.1690674240001 26.3437678020001,80.03028772 26.3437678020001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NPL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NPL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.906993035 -0.551853122999901,166.906993035 -0.490411065999922,166.958262566 -0.490411065999922,166.958262566 -0.551853122999901,166.906993035 -0.551853122999901))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NRU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NRU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.9579972 -52.600313271,-177.9579972 -8.54322682099986,178.843923373 -8.54322682099986,178.843923373 -52.600313271,-177.9579972 -52.600313271))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NZL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NZL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.9786149500002 16.6424060302812,51.9786149500002 26.385972398,59.8445744150001 26.385972398,59.8445744150001 16.6424060302812,51.9786149500002 16.6424060302812))', 4326), ST_Centroid((geocode_admin0_polygons(Array['OMN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'OMN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.8443787030001 23.6945254580001,60.8443787030001 37.0544835410001,77.0489709880002 37.0544835410001,77.0489709880002 23.6945254580001,60.8443787030001 23.6945254580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PAK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.053246217 7.20571523600016,-83.053246217 9.62929248000016,-77.1632698159999 9.62929248000016,-77.1632698159999 7.20571523600016,-83.053246217 7.20571523600016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PAN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-130.753081835 -25.0770809879998,-130.753081835 -23.9244117169999,-124.778065559 -23.9244117169999,-124.778065559 -25.0770809879998,-130.753081835 -25.0770809879998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PCN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PCN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.3375575289999 -18.3377462069379,-81.3375575289999 -0.0290927119998656,-68.6842524829999 -0.0290927119998656,-68.6842524829999 -18.3377462069379,-81.3375575289999 -18.3377462069379))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PER'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((114.027679884 9.67951080900016,114.027679884 11.1179873720002,115.848806186 11.1179873720002,115.848806186 9.67951080900016,114.027679884 9.67951080900016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PGA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((116.954925977 4.65570709800011,116.954925977 21.122381903,126.617686394 21.122381903,126.617686394 4.65570709800011,116.954925977 4.65570709800011))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PHL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((131.131114129 2.94904205900015,131.131114129 8.09661782863144,134.727342990799 8.09661782863144,134.727342990799 2.94904205900015,131.131114129 2.94904205900015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PLW'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PLW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((140.84921106 -11.6363257789998,140.84921106 -1.34636809699988,155.96753991 -1.34636809699988,155.96753991 -11.6363257789998,140.84921106 -11.6363257789998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PNG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PNG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.123922973 48.9940131640001,14.123922973 54.8383242860001,24.1431563720001 54.8383242860001,24.1431563720001 48.9940131640001,14.123922973 48.9940131640001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['POL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'POL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-67.9378149079999 17.9229190120002,-67.9378149079999 18.522772528,-65.2446182929999 18.522772528,-65.2446182929999 17.9229190120002,-67.9378149079999 17.9229190120002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.211315989 37.6756045590001,124.211315989 43.010269878,130.699961785 43.010269878,130.699961785 37.6756045590001,124.211315989 37.6756045590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-31.2849014959999 30.0292422550001,-31.2849014959999 42.15362966,-6.20594722499993 42.15362966,-6.20594722499993 30.0292422550001,-31.2849014959999 30.0292422550001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.650357219 -27.5868421429999,-62.650357219 -19.2867286169999,-54.2452888589999 -19.2867286169999,-54.2452888589999 -27.5868421429999,-62.650357219 -27.5868421429999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2002694411415 31.2114489580001,34.2002694411415 32.542640076,35.5725362550001 32.542640076,35.5725362550001 31.2114489580001,34.2002694411415 31.2114489580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PSX'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PSX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-154.536976692 -27.6412085919999,-154.536976692 -7.95012786299982,-134.942982551 -7.95012786299982,-134.942982551 -27.6412085919999,-154.536976692 -27.6412085919999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PYF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PYF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.750987175 24.5598715210001,50.750987175 26.16010163,51.6165470710001 26.16010163,51.6165470710001 24.5598715210001,50.750987175 24.5598715210001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['QAT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'QAT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.2254337900002 -21.3707821589999,55.2254337900002 -20.861423435,55.8545028000001 -20.861423435,55.8545028000001 -21.3707821589999,55.2254337900002 -21.3707821589999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['REU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'REU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.2428259690001 43.6500499480001,20.2428259690001 48.2748322560001,29.6995548840001 48.2748322560001,29.6995548840001 43.6500499480001,20.2428259690001 43.6500499480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ROU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ROU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 41.1926805620002,-180 81.8587100280001,180 81.8587100280001,180 41.1926805620002,-180 41.1926805620002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['RUS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'RUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.8572355550001 -2.82685475699989,28.8572355550001 -1.05869394899987,30.8878092850001 -1.05869394899987,30.8878092850001 -2.82685475699989,28.8572355550001 -2.82685475699989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['RWA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'RWA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.1046443349999 20.7669131530001,-17.1046443349999 27.6614653400001,-8.68080908199988 27.6614653400001,-8.68080908199988 20.7669131530001,-17.1046443349999 20.7669131530001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SAH'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.5727645190002 16.3709446840655,34.5727645190002 32.1213479620001,55.6375647380002 32.1213479620001,55.6375647380002 16.3709446840655,34.5727645190002 16.3709446840655))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SAU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((117.751856381 15.1500820250001,117.751856381 15.1543692630001,117.755692331 15.1543692630001,117.755692331 15.1500820250001,117.751856381 15.1500820250001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SCR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SCR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8094486900001 8.6816417440001,21.8094486900001 22.2269648230001,38.6038517590002 22.2269648230001,38.6038517590002 8.6816417440001,21.8094486900001 8.6816417440001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SDN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.1215556230001 3.49020151800015,24.1215556230001 12.2161546840002,35.9208354090002 12.2161546840002,35.9208354090002 3.49020151800015,24.1215556230001 3.49020151800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SDS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.5360408189999 12.3056065880001,-17.5360408189999 16.6913853970001,-11.3777762449999 16.6913853970001,-11.3777762449999 12.3056065880001,-17.5360408189999 12.3056065880001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SEN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.6404109369999 15.8620873070001,-78.6404109369999 15.8672956400001,-78.6368708979999 15.8672956400001,-78.6368708979999 15.8620873070001,-78.6404109369999 15.8620873070001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SER'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((103.640391472 1.26430898600009,103.640391472 1.44863515800004,104.003428582 1.44863515800004,104.003428582 1.26430898600009,103.640391472 1.26430898600009))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SGP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-38.0870255199999 -59.4727515599998,-38.0870255199999 -53.9724260399999,-26.2393285799999 -53.9724260399999,-26.2393285799999 -59.4727515599998,-38.0870255199999 -59.4727515599998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SGS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-14.4177139959999 -40.3978817689998,-14.4177139959999 -7.87786223799983,-5.65038001199986 -7.87786223799983,-5.65038001199986 -40.3978817689998,-14.4177139959999 -40.3978817689998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SHN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SHN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.4843856130001 76.4364688170001,10.4843856130001 80.7700869810001,29.7070418630001 80.7700869810001,29.7070418630001 76.4364688170001,10.4843856130001 76.4364688170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SJM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SJM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((155.507985873 -12.2906226539999,155.507985873 -6.59986744599981,168.825856967 -6.59986744599981,168.825856967 -12.2906226539999,155.507985873 -12.2906226539999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.3010961579999 6.91941966400012,-13.3010961579999 9.99600596100012,-10.2822358799999 9.99600596100012,-10.2822358799999 6.91941966400012,-13.3010961579999 6.91941966400012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.1147790119999 13.1586367860001,-90.1147790119999 14.4453726200001,-87.6931935119999 14.4453726200001,-87.6931935119999 13.1586367860001,-90.1147790119999 13.1586367860001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.3856287450001 43.892055515,12.3856287450001 43.9825667860001,12.4923922540001 43.9825667860001,12.4923922540001 43.892055515,12.3856287450001 43.892055515))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SMR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.6472465410002 7.9965156050001,42.6472465410002 11.4989281270001,48.9391119999082 11.4989281270001,48.9391119999082 7.9965156050001,42.6472465410002 7.9965156050001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SOL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((40.9653853760002 -1.69628316497764,40.9653853760002 11.9891186460002,51.4170378110001 11.9891186460002,51.4170378110001 -1.69628316497764,40.9653853760002 -1.69628316497764))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SOM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-56.396595832 46.7527529970001,-56.396595832 47.1412621110001,-56.1447647779999 47.1412621110001,-56.1447647779999 46.7527529970001,-56.396595832 46.7527529970001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SPM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SPM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.8449784750001 42.2349425250001,18.8449784750001 46.1738752240001,22.9845707600001 46.1738752240001,22.9845707600001 42.2349425250001,18.8449784750001 42.2349425250001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SRB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SRB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.46168053500011 0.0241153020000695,6.46168053500011 1.69977448100016,7.46273847700007 1.69977448100016,7.46273847700007 0.0241153020000695,6.46168053500011 0.0241153020000695))', 4326), ST_Centroid((geocode_admin0_polygons(Array['STP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'STP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.0676912029999 1.83350677500007,-58.0676912029999 6.01157376600012,-53.9863574539999 6.01157376600012,-53.9863574539999 1.83350677500007,-58.0676912029999 1.83350677500007))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SUR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SUR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.8444804280001 47.7500064090001,16.8444804280001 49.601779684,22.5396366780001 49.601779684,22.5396366780001 47.7500064090001,16.8444804280001 47.7500064090001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SVK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.3652612710001 45.42363678,13.3652612710001 46.863962301,16.5153015540001 46.863962301,16.5153015540001 45.42363678,13.3652612710001 45.42363678))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SVN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1081649100001 55.3426781270001,11.1081649100001 69.0363556930001,24.1634135340001 69.0363556930001,24.1634135340001 55.3426781270001,11.1081649100001 55.3426781270001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SWE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.7829061280001 -27.3162643429999,30.7829061280001 -25.7359990439999,32.1173983160001 -25.7359990439999,32.1173983160001 -27.3162643429999,30.7829061280001 -27.3162643429999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SWZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1188858709999 18.019110419,-63.1188858709999 18.0621092720001,-63.0175685850526 18.0621092720001,-63.0175685850526 18.019110419,-63.1188858709999 18.019110419))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SXM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SXM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.2073673840002 -9.75554778399989,46.2073673840002 -3.79111093499991,56.2874455090001 -3.79111093499991,56.2874455090001 -9.75554778399989,46.2073673840002 -9.75554778399989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SYC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.7233992850002 32.313041687,35.7233992850002 37.3249063110001,42.377185506 37.3249063110001,42.377185506 32.313041687,35.7233992850002 32.313041687))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SYR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.481312629 21.2901065120001,-72.481312629 21.9592145850001,-71.1288956369999 21.9592145850001,-71.1288956369999 21.2901065120001,-72.481312629 21.2901065120001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TCA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.4491837970001 7.45556671100012,13.4491837970001 23.4447199510001,23.9844063720001 23.4447199510001,23.9844063720001 7.45556671100012,13.4491837970001 7.45556671100012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TCD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.16610917099996 6.100490848287,-0.16610917099996 11.1349803670001,1.78235070800014 11.1349803670001,1.78235070800014 6.100490848287,-0.16610917099996 6.100490848287))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TGO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TGO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((97.3514010010001 5.62989003500013,97.3514010010001 20.4450064090001,105.650997762 20.4450064090001,105.650997762 5.62989003500013,97.3514010010001 5.62989003500013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['THA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'THA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((67.3426900630002 36.6786408490002,67.3426900630002 41.0399767050001,75.1641247970001 41.0399767050001,75.1641247970001 36.6786408490002,67.3426900630002 36.6786408490002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TJK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TJK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-171.086537239 -11.0660946589999,-171.086537239 -11.0513648419999,-171.072824674 -11.0513648419999,-171.072824674 -11.0660946589999,-171.086537239 -11.0660946589999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TKL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((52.4376706173443 35.140646871,52.4376706173443 42.791187643,66.6457816980001 42.791187643,66.6457816980001 35.140646871,52.4376706173443 35.140646871))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TKM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.03003991 -9.5012277219999,124.03003991 -8.13502369599983,127.313243035 -8.13502369599983,127.313243035 -9.5012277219999,124.03003991 -9.5012277219999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TLS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TLS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-176.219309049 -22.3387997379999,-176.219309049 -15.5595028629999,-173.914255338 -15.5595028629999,-173.914255338 -22.3387997379999,-176.219309049 -22.3387997379999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TON'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TON'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.9287003249999 10.0420596370002,-61.9287003249999 11.3510602890001,-60.5220841139999 11.3510602890001,-60.5220841139999 10.0420596370002,-61.9287003249999 10.0420596370002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TTO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TTO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.4798323980001 30.2289053350001,7.4798323980001 37.3452009140002,11.5641309000001 37.3452009140002,11.5641309000001 30.2289053350001,7.4798323980001 30.2289053350001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.663259311 35.819778545,25.663259311 42.0987816430001,44.8069928290001 42.0987816430001,44.8069928290001 35.819778545,25.663259311 35.819778545))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((176.125254754 -9.42066822699981,176.125254754 -5.67750416499986,179.906748894 -5.67750416499986,179.906748894 -9.42066822699981,176.125254754 -9.42066822699981))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((118.279551629 21.9046084660001,118.279551629 25.287420966,122.005381707 25.287420966,122.005381707 21.9046084660001,118.279551629 21.9046084660001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TWN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TWN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.3210315350001 -11.7312724819999,29.3210315350001 -0.985830179999823,40.4493921230001 -0.985830179999823,40.4493921230001 -11.7312724819999,29.3210315350001 -11.7312724819999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TZA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TZA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.5484595130001 -1.47520599399984,29.5484595130001 4.21969187500011,35.0064726150001 4.21969187500011,35.0064726150001 -1.47520599399984,29.5484595130001 -1.47520599399984))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UGA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'UGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.1328398030001 44.381048895,22.1328398030001 52.3689492800001,40.1595430910002 52.3689492800001,40.1595430910002 44.381048895,22.1328398030001 44.381048895))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UKR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'UKR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.389597134 -0.388767184999892,-177.389597134 28.2153181010001,166.652354363 28.2153181010001,166.652354363 -0.388767184999892,-177.389597134 -0.388767184999892))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UMI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'UMI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.4393611319999 -34.9734026019999,-58.4393611319999 -30.0968698119999,-53.1108361419999 -30.0968698119999,-53.1108361419999 -34.9734026019999,-58.4393611319999 -34.9734026019999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['URY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'URY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-179.143503384 18.9061171430001,-179.143503384 71.4125023460001,179.780935092 71.4125023460001,179.780935092 18.9061171430001,-179.143503384 18.9061171430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['USA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'USA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.2328569552957 19.8911422360002,-75.2328569552957 19.9715836900001,-75.0949502909999 19.9715836900001,-75.0949502909999 19.8911422360002,-75.2328569552957 19.8911422360002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['USG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'USG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.9758386630001 37.1851474,55.9758386630001 45.5587189740001,73.1486405840002 45.5587189740001,73.1486405840002 37.1851474,55.9758386630001 37.1851474))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UZB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'UZB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.4527140820001 41.9027519410001,12.4527140820001 41.9039147380001,12.4540354420001 41.9039147380001,12.4540354420001 41.9027519410001,12.4527140820001 41.9027519410001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VAT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VAT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4598282539999 12.5851504580001,-61.4598282539999 13.3807640650001,-61.1239314439999 13.3807640650001,-61.1239314439999 12.5851504580001,-61.4598282539999 12.5851504580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VCT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VCT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.3911486409999 0.649315491000067,-73.3911486409999 15.7029483090001,-59.815594849 15.7029483090001,-59.815594849 0.649315491000067,-73.3911486409999 0.649315491000067))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VEN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.7739965489999 18.3346621770001,-64.7739965489999 18.74624258,-64.2707413399999 18.74624258,-64.2707413399999 18.3346621770001,-64.7739965489999 18.3346621770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VGB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VGB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-65.0414934419999 17.6827660180001,-65.0414934419999 18.3865986140001,-64.5593969389999 18.3865986140001,-64.5593969389999 17.6827660180001,-65.0414934419999 17.6827660180001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VIR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VIR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.118655233 8.56557851800015,102.118655233 23.3662751270001,109.472422722 23.3662751270001,109.472422722 8.56557851800015,102.118655233 8.56557851800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VNM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VNM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.520518425 -20.2531063779999,166.520518425 -13.0648739559998,169.898936394 -13.0648739559998,169.898936394 -20.2531063779999,166.520518425 -20.2531063779999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VUT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VUT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-178.185739713 -14.3194312479999,-178.185739713 -13.208916925,-176.125599739 -13.208916925,-176.125599739 -14.3194312479999,-178.185739713 -14.3194312479999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WLF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'WLF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.7601022650002 34.5685488950001,32.7601022650002 34.7009482940001,33.03028405 34.7009482940001,33.03028405 34.5685488950001,32.7601022650002 34.5685488950001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WSB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-172.782582161 -14.052829685,-172.782582161 -13.4628231749999,-171.437692838 -13.4628231749999,-171.437692838 -14.052829685,-172.782582161 -14.052829685))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WSM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.5457462900001 12.1114436720001,42.5457462900001 18.9956375130001,54.5402938160002 18.9956375130001,54.5402938160002 12.1114436720001,42.5457462900001 12.1114436720001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['YEM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'YEM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.4699813160001 -46.965752863,16.4699813160001 -22.1264519249999,37.9777938160001 -22.1264519249999,37.9777938160001 -46.965752863,16.4699813160001 -46.965752863))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZAF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.9798775630001 -18.0692318719999,21.9798775630001 -8.1941240429999,33.674202515 -8.1941240429999,33.674202515 -18.0692318719999,21.9798775630001 -18.0692318719999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZMB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZMB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.219369751 -22.3973397829999,25.219369751 -15.6148080449999,33.0427681890002 -15.6148080449999,33.0427681890002 -22.3973397829999,25.219369751 -22.3973397829999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZWE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZWE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-70.0624080069999 12.417669989,-70.0624080069999 12.6321475280001,-69.8768204419999 12.6321475280001,-69.8768204419999 12.417669989,-70.0624080069999 12.417669989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ABW'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.4867777910001 29.3866053260001,60.4867777910001 38.4736734020001,74.8923067630001 38.4736734020001,74.8923067630001 29.3866053260001,60.4867777910001 29.3866053260001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AFG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.6693941430001 -18.0314047239998,11.6693941430001 -4.39120371499996,24.0617143150001 -4.39120371499996,24.0617143150001 -18.0314047239998,11.6693941430001 -18.0314047239998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AGO'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.4288223949999 18.1690941430001,-63.4288223949999 18.6012637390001,-62.9726456369999 18.6012637390001,-62.9726456369999 18.1690941430001,-63.4288223949999 18.1690941430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AIA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.2720325110001 39.637013245,19.2720325110001 42.6548135380001,21.0366793210001 42.6548135380001,21.0366793210001 39.637013245,19.2720325110001 39.637013245))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.5131942070001 59.9044863950001,19.5131942070001 60.4807803410001,21.0966903000001 60.4807803410001,21.0966903000001 59.9044863950001,19.5131942070001 59.9044863950001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALD'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.4064563390001 42.4286774700001,1.4064563390001 42.649361674,1.76509078000015 42.649361674,1.76509078000015 42.4286774700001,1.4064563390001 42.4286774700001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AND'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.5693465500001 22.6209459430001,51.5693465500001 26.0747919720001,56.3836369150001 26.0747919720001,56.3836369150001 22.6209459430001,51.5693465500001 22.6209459430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.5880358489999 -55.0520158829998,-73.5880358489999 -21.7869377639999,-53.6615518799999 -21.7869377639999,-53.6615518799999 -55.0520158829998,-73.5880358489999 -55.0520158829998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.4362939860001 38.8637012740001,43.4362939860001 41.2904523730001,46.6026123460001 41.2904523730001,46.6026123460001 38.8637012740001,43.4362939860001 38.8637012740001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-170.831247525 -14.5328915339999,-170.831247525 -14.1688778629998,-168.160471158 -14.1688778629998,-168.160471158 -14.5328915339999,-170.831247525 -14.5328915339999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ASM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -90,-180 -60.516208592,180 -60.516208592,180 -90,-180 -90))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((123.575043165 -12.4385718729998,123.575043165 -12.4266089819999,123.597748243 -12.4266089819999,123.597748243 -12.4385718729998,123.575043165 -12.4385718729998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATC'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.7282820970001 -49.7216122379999,39.7282820970001 -11.5506324199998,77.5852156910001 -11.5506324199998,77.5852156910001 -49.7216122379999,39.7282820970001 -49.7216122379999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATF'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.8941544259999 16.9892438820001,-61.8941544259999 17.7276878930001,-61.6675919259999 17.7276878930001,-61.6675919259999 16.9892438820001,-61.8941544259999 16.9892438820001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((112.919444207 -54.750420831,112.919444207 -9.24016692499987,159.106455925 -9.24016692499987,159.106455925 -54.750420831,112.919444207 -54.750420831))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.52115482500011 46.3786430870001,9.52115482500011 49.0097744750001,17.1483378500001 49.0097744750001,17.1483378500001 46.3786430870001,9.52115482500011 46.3786430870001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.7745585530002 38.392644755,44.7745585530002 41.8904415900002,50.6257430350001 41.8904415900002,50.6257430350001 38.392644755,44.7745585530002 38.392644755))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AZE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.9868917230001 -4.46334401499993,28.9868917230001 -2.30306243899987,30.8339624430001 -2.30306243899987,30.8339624430001 -4.46334401499993,28.9868917230001 -4.46334401499993))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BDI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.52179992769047 49.495222881,2.52179992769047 51.4962376910001,6.37452518700007 51.4962376910001,6.37452518700007 49.495222881,2.52179992769047 49.495222881))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.759880818000113 6.21389923179639,0.759880818000113 12.3992442830001,3.83741906700001 12.3992442830001,3.83741906700001 6.21389923179639,0.759880818000113 6.21389923179639))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-68.4173884759999 12.0220401060001,-68.4173884759999 12.3102074240002,-68.1900121739999 12.3102074240002,-68.1900121739999 12.0220401060001,-68.4173884759999 12.0220401060001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BES'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.52257808499988 9.39188262900012,-5.52257808499988 15.0799075320001,2.39016890400009 15.0799075320001,2.39016890400009 9.39188262900012,-5.52257808499988 9.39188262900012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BFA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.0217895920001 20.738714911,88.0217895920001 26.6235440070001,92.6428511970002 26.6235440070001,92.6428511970002 20.738714911,88.0217895920001 20.738714911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGD'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.3450232340001 41.2381041470001,22.3450232340001 44.228434539,28.6035262380001 44.228434539,28.6035262380001 41.2381041470001,22.3450232340001 41.2381041470001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.448903842 25.7895368510001,50.448903842 26.242580471,50.6456598131816 26.242580471,50.6456598131816 25.7895368510001,50.448903842 25.7895368510001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.5943497389999 20.9123989090001,-79.5943497389999 26.9284121770001,-72.7461645169999 26.9284121770001,-72.7461645169999 20.9123989090001,-79.5943497389999 20.9123989090001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((15.7160738520001 42.5592121380002,15.7160738520001 45.2845238250002,19.618884725 45.2845238250002,19.618884725 42.5592121380002,15.7160738520001 42.5592121380002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BIH'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.9892878899999 15.7941755230001,-79.9892878899999 15.7962100280001,-79.9863988919999 15.7962100280001,-79.9863988919999 15.7941755230001,-79.9892878899999 15.7941755230001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BJN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8673396479999 17.8819847680001,-62.8673396479999 17.9291445980001,-62.7916560539999 17.9291445980001,-62.7916560539999 17.8819847680001,-62.8673396479999 17.8819847680001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((23.165644979 51.2351683560001,23.165644979 56.1568059290001,32.7195321040001 56.1568059290001,32.7195321040001 51.2351683560001,23.165644979 51.2351683560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.2365122079999 15.8796519990001,-89.2365122079999 18.4907587690001,-87.7830704419999 18.4907587690001,-87.7830704419999 15.8796519990001,-89.2365122079999 15.8796519990001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLZ'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.8859939889704 32.2480773815958,-64.8859939889704 32.3886579450001,-64.6476307056406 32.3886579450001,-64.6476307056406 32.2480773815958,-64.8859939889704 32.2480773815958))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BMU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.6664922699999 -22.8972575879999,-69.6664922699999 -9.67982147199997,-57.4656607669999 -9.67982147199997,-57.4656607669999 -22.8972575879999,-69.6664922699999 -22.8972575879999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BOL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.018474691 -33.742280375,-74.018474691 5.26722483300009,-28.8770645819999 5.26722483300009,-28.8770645819999 -33.742280375,-74.018474691 -33.742280375))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-59.6542048819999 13.051174221,-59.6542048819999 13.344549872,-59.4269099599999 13.344549872,-59.4269099599999 13.051174221,-59.6542048819999 13.051174221))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.99878991 4.01668101000011,113.99878991 5.05719635600018,115.360741008 5.05719635600018,115.360741008 4.01668101000011,113.99878991 4.01668101000011))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.7300667720001 26.6961493940002,88.7300667720001 28.3583989307863,92.0887764890001 28.3583989307863,92.0887764890001 26.6961493940002,88.7300667720001 26.6961493940002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BTN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.34555097700007 -54.4624976539999,3.34555097700007 -54.3801408829999,3.48666425900012 -54.3801408829999,3.48666425900012 -54.4624976539999,3.34555097700007 -54.4624976539999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BVT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.9783459880001 -26.891794128,19.9783459880001 -17.7818075559999,29.3500736890001 -17.7818075559999,29.3500736890001 -26.891794128,19.9783459880001 -26.891794128))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BWA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.3872660720001 2.23645375600006,14.3872660720001 11.0008283490001,27.4413013100001 11.0008283490001,27.4413013100001 2.23645375600006,14.3872660720001 2.23645375600006))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAF'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-141.005548637109 41.6690855920001,-141.005548637109 83.1165225280001,-52.616607226 83.1165225280001,-52.616607226 41.6690855920001,-141.005548637109 41.6690855920001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.821543816 -12.1999651019998,96.821543816 -12.1265601539999,96.9210718110001 -12.1265601539999,96.9210718110001 -12.1999651019998,96.821543816 -12.1999651019998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CCK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.95480920400013 45.820718486,5.95480920400013 47.8011660770001,10.466626831 47.8011660770001,10.466626831 45.820718486,5.95480920400013 45.820718486))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.453724739 -55.9185042229998,-109.453724739 -17.506588198,-66.4208064439999 -17.506588198,-66.4208064439999 -55.9185042229998,-109.453724739 -55.9185042229998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.6022563070002 15.775376695,73.6022563070002 53.569444479,134.772579387 53.569444479,134.772579387 15.775376695,73.6022563070002 15.775376695))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.61871984899992 4.34406159100013,-8.61871984899992 10.7264781700001,-2.50632808399993 10.7264781700001,-2.50632808399993 4.34406159100013,-8.61871984899992 4.34406159100013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CIV'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.234242317 10.2815615910001,-109.234242317 10.3110212260001,-109.210357226 10.3110212260001,-109.210357226 10.2815615910001,-109.234242317 10.2815615910001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CLP'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.50505618600005 1.65455129000014,8.50505618600005 13.081140646,16.2077234290001 13.081140646,16.2077234290001 1.65455129000014,8.50505618600005 1.65455129000014))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CMR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.5848087900001 34.9777627570001,32.5848087900001 35.1994029740002,34.0219607300423 35.1994029740002,34.0219607300423 34.9777627570001,32.5848087900001 34.9777627570001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CNM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.2105548693531 -13.4583505239999,12.2105548693531 5.37528025300014,31.2804468180001 5.37528025300014,31.2804468180001 -13.4583505239999,12.2105548693531 -13.4583505239999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COD'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1140163040629 -5.01963083599986,11.1140163040629 3.70827606200005,18.64240686 3.70827606200005,18.64240686 -5.01963083599986,11.1140163040629 -5.01963083599986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-165.824533658 -21.9388973939999,-165.824533658 -8.94670989399988,-157.312814908 -8.94670989399988,-157.312814908 -21.9388973939999,-165.824533658 -21.9388973939999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.72370358 -4.23648447699985,-81.72370358 13.5783552100001,-66.8750605879999 13.5783552100001,-66.8750605879999 -4.23648447699985,-81.72370358 -4.23648447699985))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2132267590001 -12.3803036439999,43.2132267590001 -11.3612606749999,44.5290633470001 -11.3612606749999,44.5290633470001 -12.3803036439999,43.2132267590001 -12.3803036439999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-25.3604223299999 14.8039411480001,-25.3604223299999 17.196600653,-22.6665746739999 17.196600653,-22.6665746739999 14.8039411480001,-25.3604223299999 14.8039411480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CPV'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.1176651679999 5.51508209800012,-87.1176651679999 11.2099370320002,-82.5628368739999 11.2099370320002,-82.5628368739999 5.51508209800012,-87.1176651679999 5.51508209800012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CRI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((154.388519727 -21.0300432269999,154.388519727 -21.028741144,154.391286655 -21.028741144,154.391286655 -21.0300432269999,154.388519727 -21.0300432269999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CSI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.9496150379999 19.827826239,-84.9496150379999 23.2655703800001,-74.1328832669999 23.2655703800001,-74.1328832669999 19.827826239,-84.9496150379999 19.827826239))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.1717423169999 12.041327216,-69.1717423169999 12.3915062520001,-68.7397354809999 12.3915062520001,-68.7397354809999 12.041327216,-69.1717423169999 12.041327216))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUW'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((105.581797722 -10.5660132789999,105.581797722 -10.4308407529998,105.714691602 -10.4308407529998,105.714691602 -10.5660132789999,105.581797722 -10.5660132789999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CXR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.4165420209999 19.2638636150001,-81.4165420209999 19.7576308370001,-79.7266426919999 19.7576308370001,-79.7266426919999 19.2638636150001,-81.4165420209999 19.2638636150001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6019153500579 35.002722473,32.6019153500579 35.6919619810002,34.5925399100002 35.6919619810002,34.5925399100002 35.002722473,32.6019153500579 35.002722473))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.2717391290002 34.6250194300001,32.2717391290002 35.1870821302553,34.0991317070001 35.1870821302553,34.0991317070001 34.6250194300001,32.2717391290002 34.6250194300001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYP'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.076140991 48.557915752,12.076140991 51.0400123090001,18.8374337160001 51.0400123090001,18.8374337160001 48.557915752,12.076140991 48.557915752))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CZE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.85248986800011 47.271120911,5.85248986800011 55.065334377,15.0220593670001 55.065334377,15.0220593670001 47.271120911,5.85248986800011 47.271120911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DEU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((41.7491101480001 10.9298249310001,41.7491101480001 12.7079125020001,43.4187117850001 12.7079125020001,43.4187117850001 10.9298249310001,41.7491101480001 10.9298249310001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DJI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4889216789999 15.201808986,-61.4889216789999 15.6338565120001,-61.249256965 15.6338565120001,-61.249256965 15.201808986,-61.4889216789999 15.201808986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DMA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.09400475400008 54.5685895850001,8.09400475400008 57.7511660830001,15.1513778000001 57.7511660830001,15.1513778000001 54.5685895850001,8.09400475400008 54.5685895850001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DNK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.0098376059999 17.5455589860001,-72.0098376059999 19.9376895200001,-68.3286026679999 19.9376895200001,-68.3286026679999 17.5455589860001,-72.0098376059999 17.5455589860001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DOM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.68238521299992 18.9755612180001,-8.68238521299992 37.0939395200001,11.9688607170001 37.0939395200001,11.9688607170001 18.9755612180001,-8.68238521299992 18.9755612180001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DZA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.0115860669999 -5.01137257899988,-92.0115860669999 1.66437409100016,-75.2272639579999 1.66437409100016,-75.2272639579999 -5.01137257899988,-92.0115860669999 -5.01137257899988))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ECU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.6883427320001 21.9943692020002,24.6883427320001 31.6564802100001,36.8991805350002 31.6564802100001,36.8991805350002 21.9943692020002,24.6883427320001 21.9943692020002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'EGY'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((36.4236470950001 12.3600218710001,36.4236470950001 18.004828192,43.1238712900001 18.004828192,43.1238712900001 12.3600218710001,36.4236470950001 12.3600218710001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ERI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.6740991620001 34.937892971,33.6740991620001 35.1189944460001,33.9214742440001 35.1189944460001,33.9214742440001 34.937892971,33.6740991620001 34.937892971))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-18.1672257149999 27.6422386740001,-18.1672257149999 43.793443101,4.3370874360001 43.793443101,4.3370874360001 27.6422386740001,-18.1672257149999 27.6422386740001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESP'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8323673840001 57.5158185830001,21.8323673840001 59.6708845070001,28.1864754640001 59.6708845070001,28.1864754640001 57.5158185830001,21.8323673840001 57.5158185830001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'EST'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.9897998450001 3.40333343500009,32.9897998450001 14.8795321660001,47.9791691490001 14.8795321660001,47.9791691490001 3.40333343500009,32.9897998450001 3.40333343500009))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ETH'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.62316451 59.811224677,20.62316451 70.0753103640001,31.5695247800001 70.0753103640001,31.5695247800001 59.811224677,20.62316451 59.811224677))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FIN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -21.7111141909999,-180 -12.4752743469999,180 -12.4752743469999,180 -21.7111141909999,-180 -21.7111141909999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FJI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3181860019999 -52.4065227259999,-61.3181860019999 -51.0277645809999,-57.7342830069999 -51.0277645809999,-57.7342830069999 -52.4065227259999,-61.3181860019999 -52.4065227259999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FLK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 51.0875408834804,8.20030521600006 51.0875408834804,8.20030521600006 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.54525800900012 41.365912177,8.54525800900012 43.0174014340001,9.55958092500009 43.0174014340001,9.55958092500009 41.365912177,8.54525800900012 41.365912177))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRH'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.64415442599994 61.3941104190001,-7.64415442599994 62.3989118510001,-6.2757869129999 62.3989118510001,-6.2757869129999 61.3941104190001,-7.64415442599994 61.3941104190001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRO'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((138.063812696 0.918158270000148,138.063812696 9.77558014500013,163.046560092 9.77558014500013,163.046560092 0.918158270000148,138.063812696 0.918158270000148))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FSM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.69556725400014 -3.93685618990304,8.69556725400014 2.32249501600009,14.4989905190001 2.32249501600009,14.4989905190001 -3.93685618990304,8.69556725400014 -3.93685618990304))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GAB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.6913142569999 49.9096133480001,-13.6913142569999 60.84788646,1.77116946700002 60.84788646,1.77116946700002 49.9096133480001,-13.6913142569999 49.9096133480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GBR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.9859763554231 41.0441108200001,39.9859763554231 43.5758425900001,46.6948031010001 43.5758425900001,46.6948031010001 41.0441108200001,39.9859763554231 41.0441108200001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GEO'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.67345130099989 49.4115664730001,-2.67345130099989 49.731390692,-2.17031816299993 49.731390692,-2.17031816299993 49.4115664730001,-2.67345130099989 49.4115664730001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GGY'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.26250931799999 4.7371279970001,-3.26250931799999 11.162937317,1.18796838400004 11.162937317,1.18796838400004 4.7371279970001,-3.26250931799999 4.7371279970001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GHA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.35838675876349 36.1105003930001,-5.35838675876349 36.1411196720123,-5.33877348311998 36.1411196720123,-5.33877348311998 36.1105003930001,-5.35838675876349 36.1105003930001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-15.0811254549999 7.19020823200012,-15.0811254549999 12.673387757,-7.66244746999996 12.673387757,-7.66244746999996 7.19020823200012,-15.0811254549999 7.19020823200012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7978409499999 15.8469912780002,-61.7978409499999 16.513088283,-60.9892471999999 16.513088283,-60.9892471999999 15.8469912780002,-61.7978409499999 15.8469912780002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GLP'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.8297013009999 13.0650088560001,-16.8297013009999 13.8199844360001,-13.8187125249999 13.8199844360001,-13.8187125249999 13.0650088560001,-16.8297013009999 13.0650088560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GMB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.7284367771401 10.9276390650001,-16.7284367771401 12.6794339000001,-13.6607118329999 12.6794339000001,-13.6607118329999 10.9276390650001,-16.7284367771401 10.9276390650001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.61198978000007 -1.47568124799986,5.61198978000007 3.77240631700012,11.3363411870001 3.77240631700012,11.3363411870001 -1.47568124799986,5.61198978000007 -1.47568124799986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNQ'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.6264754570001 34.8150088560001,19.6264754570001 41.7504759730001,28.2397567070001 41.7504759730001,28.2397567070001 34.8150088560001,19.6264754570001 34.8150088560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRC'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7905167309999 12.0028343770001,-61.7905167309999 12.5297305360001,-61.4216202459999 12.5297305360001,-61.4216202459999 12.0028343770001,-61.7905167309999 12.0028343770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRD'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.0572403639999 59.792629299,-73.0572403639999 83.6341006530001,-11.3768204419999 83.6341006530001,-11.3768204419999 59.792629299,-73.0572403639999 59.792629299))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.2462338320825 13.7289030478944,-92.2462338320825 17.8160195930001,-88.2209221351212 17.8160195930001,-88.2209221351212 13.7289030478944,-92.2462338320825 13.7289030478944))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GTM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 5.74476537500011,-51.649037239 5.74476537500011,-51.649037239 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUF'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.624196811 13.2410342470001,144.624196811 13.6541201840001,144.95215905 13.6541201840001,144.95215905 13.2410342470001,144.624196811 13.2410342470001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3967128089999 1.18582021100013,-61.3967128089999 8.55801015800012,-56.4818190109999 8.55801015800012,-56.4818190109999 1.18582021100013,-61.3967128089999 1.18582021100013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUY'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.837331576 22.177069403,113.837331576 22.5639460320001,114.40129642 22.5639460320001,114.40129642 22.177069403,113.837331576 22.177069403))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HKG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.236013217 -53.1925595029999,73.236013217 -52.9616024719999,73.8121850920001 -52.9616024719999,73.8121850920001 -53.1925595029999,73.236013217 -53.1925595029999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HMD'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.3637912599999 12.9797773240001,-89.3637912599999 17.4186465520001,-83.1304418609999 17.4186465520001,-83.1304418609999 12.9797773240001,-89.3637912599999 12.9797773240001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HND'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.5014754570001 42.4163272160001,13.5014754570001 46.5469790650001,19.4078381750001 46.5469790650001,19.4078381750001 42.4163272160001,13.5014754570001 42.4163272160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HRV'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.4891658189999 18.0259463560001,-74.4891658189999 20.08978913,-71.6391108809999 20.08978913,-71.6391108809999 18.0259463560001,-74.4891658189999 18.0259463560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HTI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.0940352780001 45.741343486,16.0940352780001 48.5692328900001,22.8776005460001 48.5692328900001,22.8776005460001 45.741343486,16.0940352780001 45.741343486))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HUN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((95.0127059250001 -10.9226213519998,95.0127059250001 5.9101016300001,140.977626994 5.9101016300001,140.977626994 -10.9226213519998,95.0127059250001 -10.9226213519998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IDN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.79015051999994 54.0569522160001,-4.79015051999994 54.4190127620001,-4.3119197259999 54.4190127620001,-4.3119197259999 54.0569522160001,-4.79015051999994 54.0569522160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IMN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((68.1434025400001 6.74555084800015,68.1434025400001 35.4954055790001,97.3622530520001 35.4954055790001,97.3622530520001 6.74555084800015,68.1434025400001 6.74555084800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IND'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.82154382 -12.1999651,96.82154382 -10.43084075,105.7146916 -10.43084075,105.7146916 -12.1999651,96.82154382 -12.1999651))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((71.260996941 -7.43222421699987,71.260996941 -5.22698333099991,72.4946395190001 -5.22698333099991,72.4946395190001 -7.43222421699987,71.260996941 -7.43222421699987))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-10.4781794909999 51.4457054710001,-10.4781794909999 55.386379299,-5.99351966099994 55.386379299,-5.99351966099994 51.4457054710001,-10.4781794909999 51.4457054710001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.0148633220001 25.0594081650001,44.0148633220001 39.7715269980001,63.3196281330001 39.7715269980001,63.3196281330001 25.0594081650001,44.0148633220001 25.0594081650001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((38.7745113520001 29.063136699,38.7745113520001 37.3754975380001,48.5592554050001 37.3754975380001,48.5592554050001 29.063136699,38.7745113520001 29.063136699))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRQ'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-24.539906379 63.3967145850001,-24.539906379 66.564154364,-13.5029190749999 66.564154364,-13.5029190749999 63.3967145850001,-24.539906379 63.3967145850001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2483508570001 29.4896914730001,34.2483508570001 33.4067217000001,35.8880725500002 33.4067217000001,35.8880725500002 29.4896914730001,34.2483508570001 29.4896914730001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.60272831200007 35.489243882,6.60272831200007 47.085214945,18.5174259770001 47.085214945,18.5174259770001 35.489243882,6.60272831200007 35.489243882))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ITA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.3746638659999 17.70319245,-78.3746638659999 18.525091864,-76.1879776679999 18.525091864,-76.1879776679999 17.70319245,-78.3746638659999 17.70319245))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JAM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.24201412699992 49.1713320980001,-2.24201412699992 49.267035223,-2.00829016799992 49.267035223,-2.00829016799992 49.1713320980001,-2.24201412699992 49.1713320980001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JEY'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.949385116681 29.189950664,34.949385116681 33.3716850790001,39.2919991450001 33.3716850790001,39.2919991450001 29.189950664,34.949385116681 29.189950664))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JOR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((122.938161655 24.212103583,122.938161655 45.5204125020001,153.985606316 45.5204125020001,153.985606316 24.212103583,122.938161655 24.212103583))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JPN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((62.8006417230001 45.5658244830001,62.8006417230001 46.390838725,63.9671338300001 46.390838725,63.9671338300001 45.5658244830001,62.8006417230001 45.5658244830001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((76.7773507410001 35.110441997,76.7773507410001 35.6477993780001,77.8003463140001 35.6477993780001,77.8003463140001 35.110441997,76.7773507410001 35.110441997))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.478278849 40.5846556600001,46.478278849 55.4345502730001,87.3237960210001 55.4345502730001,87.3237960210001 40.5846556600001,46.478278849 40.5846556600001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAZ'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.8904683840002 -4.67750416499996,33.8904683840002 5.03037582260775,41.8850191650001 5.03037582260775,41.8850191650001 -4.67750416499996,33.8904683840002 -4.67750416499996))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KEN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((69.2262960200001 39.1892369590001,69.2262960200001 43.2617015580001,80.2575606690001 43.2617015580001,80.2575606690001 39.1892369590001,69.2262960200001 39.1892369590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KGZ'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.313423706 10.4157736200001,102.313423706 14.7045816050001,107.610516399 14.7045816050001,107.610516399 10.4157736200001,102.313423706 10.4157736200001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KHM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-174.543405728 -11.4611141909999,-174.543405728 4.7230899110001,176.850922071 4.7230899110001,176.850922071 -11.4611141909999,-174.543405728 -11.4611141909999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KIR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8610733709999 17.1005313170001,-62.8610733709999 17.4158389340001,-62.5367732409999 17.4158389340001,-62.5367732409999 17.1005313170001,-62.8610733709999 17.1005313170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KNA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.613617384 33.197577216,124.613617384 38.6243307589749,131.862521886 38.6243307589749,131.862521886 33.197577216,124.613617384 33.197577216))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.024751424 41.8440103160001,20.024751424 43.2630709840001,21.7727584220001 43.2630709840001,21.7727584220001 41.8440103160001,20.024751424 41.8440103160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.5324357500001 28.5335049440001,46.5324357500001 30.0982156370001,48.4327812271219 30.0982156370001,48.4327812271219 28.5335049440001,46.5324357500001 28.5335049440001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KWT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((100.097073202 13.9154566450001,100.097073202 22.4960440070001,107.66436324 22.4960440070001,107.66436324 13.9154566450001,100.097073202 13.9154566450001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LAO'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.0996199880001 33.055580342,35.0996199880001 34.687547913,36.604101196 34.687547913,36.604101196 33.055580342,35.0996199880001 33.055580342))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-11.4761856759999 4.34723541900004,-11.4761856759999 8.56539560900008,-7.38411820499996 8.56539560900008,-7.38411820499996 4.34723541900004,-11.4761856759999 4.34723541900004))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.28654382300007 19.496123759,9.28654382300007 33.1812253147281,25.1562606130001 33.1812253147281,25.1562606130001 19.496123759,9.28654382300007 19.496123759))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBY'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.078521288 13.7146670590001,-61.078521288 14.1118838560001,-60.8829646479999 14.1118838560001,-60.8829646479999 13.7146670590001,-61.078521288 13.7146670590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LCA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.47588627100012 47.0524004120001,9.47588627100012 47.2628010050001,9.61572269700011 47.2628010050001,9.61572269700011 47.0524004120001,9.47588627100012 47.0524004120001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LIE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((79.6557723320001 5.92373281500015,79.6557723320001 9.82957591400015,81.8903100920001 9.82957591400015,81.8903100920001 5.92373281500015,79.6557723320001 5.92373281500015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LKA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((27.0021549890001 -30.6587993359999,27.0021549890001 -28.570761414,29.4359082440001 -28.570761414,29.4359082440001 -30.6587993359999,27.0021549890001 -30.6587993359999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LSO'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9245687005624 53.8868411260001,20.9245687005624 56.4426024370001,26.8007202560001 56.4426024370001,26.8007202560001 53.8868411260001,20.9245687005624 53.8868411260001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LTU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.71492720500004 49.441324362,5.71492720500004 50.1749746710001,6.50257938700014 50.1749746710001,6.50257938700014 49.441324362,5.71492720500004 49.441324362))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LUX'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9685978520001 55.6669908660001,20.9685978520001 58.0751384490001,28.2172746170001 58.0751384490001,28.2172746170001 55.6669908660001,20.9685978520001 55.6669908660001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LVA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.519867384 22.1053734400001,113.519867384 22.220770575,113.587494337 22.220770575,113.587494337 22.1053734400001,113.519867384 22.1053734400001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAC'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1468399729999 18.0333914721357,-63.1468399729999 18.1221377620001,-63.0107315749999 18.1221377620001,-63.0107315749999 18.0333914721357,-63.1468399729999 18.0333914721357))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAF'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0137433253452 21.4199710975817,-17.0137433253452 35.926519149,-1.03199947099995 35.926519149,-1.03199947099995 21.4199710975817,-17.0137433253452 21.4199710975817))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.36575020700008 43.7179690770001,7.36575020700008 43.763505554,7.4374540320631 43.763505554,7.4374540320631 43.7179690770001,7.36575020700008 43.7179690770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MCO'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((26.617889038 45.461773987,26.617889038 48.486033834,30.1315763750001 48.486033834,30.1315763750001 45.461773987,26.617889038 45.461773987))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2229110040001 -25.5985653629998,43.2229110040001 -11.9436174459998,50.5039168630001 -11.9436174459998,50.5039168630001 -25.5985653629998,43.2229110040001 -25.5985653629998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((72.684825066 -0.688571872999901,72.684825066 7.10724518400015,73.7531844410002 7.10724518400015,73.7531844410002 -0.688571872999901,72.684825066 -0.688571872999901))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDV'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-118.368804229 14.5462829243643,-118.368804229 32.7128364050001,-86.7005916009999 32.7128364050001,-86.7005916009999 14.5462829243643,-118.368804229 14.5462829243643))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MEX'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((165.282237175 4.57379791900016,165.282237175 14.6105003930001,172.029795769 14.6105003930001,172.029795769 4.57379791900016,165.282237175 4.57379791900016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MHL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.4441573490001 40.8493940230001,20.4441573490001 42.3703347790001,23.0095821530001 42.3703347790001,23.0095821530001 40.8493940230001,20.4441573490001 40.8493940230001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MKD'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-12.2641304119999 10.1400540170001,-12.2641304119999 24.9950645960001,4.23563765500012 24.9950645960001,4.23563765500012 10.1400540170001,-12.2641304119999 10.1400540170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.1836043630001 35.801214911,14.1836043630001 36.0755882830001,14.5671492850001 36.0755882830001,14.5671492850001 35.801214911,14.1836043630001 35.801214911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((92.174972779 9.79071686400013,92.174972779 28.538465881,101.173855021 28.538465881,101.173855021 9.79071686400013,92.174972779 9.79071686400013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MMR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.4335307210001 41.852362372,18.4335307210001 43.5478856410001,20.3551705320001 43.5478856410001,20.3551705320001 41.852362372,18.4335307210001 41.852362372))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((87.7357088630001 41.586144918,87.7357088630001 52.1295840460001,119.907026815 52.1295840460001,119.907026815 41.586144918,87.7357088630001 41.586144918))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.902110222 14.1106631530001,144.902110222 20.5554059920001,145.868907097 20.5554059920001,145.868907097 14.1106631530001,144.902110222 14.1106631530001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNP'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.2138452550002 -26.8602715039999,30.2138452550002 -10.4690080709999,40.8479923840001 -10.4690080709999,40.8479923840001 -26.8602715039999,30.2138452550002 -26.8602715039999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MOZ'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0811748859999 14.7343989060002,-17.0811748859999 27.2854157510001,-4.8216131179999 27.2854157510001,-4.8216131179999 14.7343989060002,-17.0811748859999 14.7343989060002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MRT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.2301326159999 16.6753604190001,-62.2301326159999 16.8193220070001,-62.1405330069999 16.8193220070001,-62.1405330069999 16.6753604190001,-62.2301326159999 16.6753604190001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MSR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.228830533 14.4081078150001,-61.228830533 14.8768985050001,-60.8104141919999 14.8768985050001,-60.8104141919999 14.4081078150001,-61.228830533 14.4081078150001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MTQ'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((56.5241805350002 -20.5173479149999,56.5241805350002 -10.3239071589999,63.493907097 -10.3239071589999,63.493907097 -20.5173479149999,56.5241805350002 -20.5173479149999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MUS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6633081470002 -17.1353353879999,32.6633081470002 -9.38123504699981,35.9042989500001 -9.38123504699981,35.9042989500001 -17.1353353879999,32.6633081470002 -17.1353353879999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MWI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((99.6452280600001 0.851370341000077,99.6452280600001 7.35578034100014,119.278086785 7.35578034100014,119.278086785 0.851370341000077,99.6452280600001 0.851370341000077))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((45.0424910820001 -12.9891903629999,45.0424910820001 -12.6472307269999,45.2908634770001 -12.6472307269999,45.2908634770001 -12.9891903629999,45.0424910820001 -12.9891903629999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.7176212900001 -28.9593681839999,11.7176212900001 -16.9510572309999,25.2597807210001 -16.9510572309999,25.2597807210001 -28.9593681839999,11.7176212900001 -28.9593681839999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NAM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((163.615733269 -22.6706682269998,163.615733269 -19.623711847,171.343765287 -19.623711847,171.343765287 -22.6706682269998,163.615733269 -22.6706682269998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NCL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.152941121000111 11.69577301,0.152941121000111 23.5173511760001,15.9703218990001 23.5173511760001,15.9703218990001 11.69577301,0.152941121000111 11.69577301))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NER'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((167.912119988 -29.0800106749999,167.912119988 -28.9974911439999,167.996348504 -28.9974911439999,167.996348504 -29.0800106749999,167.912119988 -29.0800106749999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NFK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.67108199000012 4.27216217700007,2.67108199000012 13.8802908320001,14.6699361570001 13.8802908320001,14.6699361570001 4.27216217700007,2.67108199000012 4.27216217700007))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NGA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.6858210929999 10.7134815470002,-87.6858210929999 15.0309699500002,-82.7256973949999 15.0309699500002,-82.7256973949999 10.7134815470002,-87.6858210929999 10.7134815470002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIC'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-169.95042884 -19.1427548159999,-169.95042884 -18.9640438779999,-169.782907681 -18.9640438779999,-169.782907681 -19.1427548159999,-169.95042884 -19.1427548159999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.2513321609999 17.4645711740002,-63.2513321609999 53.5580915390001,7.19850590000004 53.5580915390001,7.19850590000004 17.4645711740002,-63.2513321609999 17.4645711740002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NLD'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-9.11742102799991 57.993150132,-9.11742102799991 80.2481143250001,33.6403914720001 80.2481143250001,33.6403914720001 57.993150132,-9.11742102799991 57.993150132))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NOR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((80.03028772 26.3437678020001,80.03028772 30.4169041950001,88.1690674240001 30.4169041950001,88.1690674240001 26.3437678020001,80.03028772 26.3437678020001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NPL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.906993035 -0.551853122999901,166.906993035 -0.490411065999922,166.958262566 -0.490411065999922,166.958262566 -0.551853122999901,166.906993035 -0.551853122999901))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NRU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.9579972 -52.600313271,-177.9579972 -8.54322682099986,178.843923373 -8.54322682099986,178.843923373 -52.600313271,-177.9579972 -52.600313271))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NZL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.9786149500002 16.6424060302812,51.9786149500002 26.385972398,59.8445744150001 26.385972398,59.8445744150001 16.6424060302812,51.9786149500002 16.6424060302812))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'OMN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.8443787030001 23.6945254580001,60.8443787030001 37.0544835410001,77.0489709880002 37.0544835410001,77.0489709880002 23.6945254580001,60.8443787030001 23.6945254580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.053246217 7.20571523600016,-83.053246217 9.62929248000016,-77.1632698159999 9.62929248000016,-77.1632698159999 7.20571523600016,-83.053246217 7.20571523600016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-130.753081835 -25.0770809879998,-130.753081835 -23.9244117169999,-124.778065559 -23.9244117169999,-124.778065559 -25.0770809879998,-130.753081835 -25.0770809879998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PCN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.3375575289999 -18.3377462069379,-81.3375575289999 -0.0290927119998656,-68.6842524829999 -0.0290927119998656,-68.6842524829999 -18.3377462069379,-81.3375575289999 -18.3377462069379))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PER'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((114.027679884 9.67951080900016,114.027679884 11.1179873720002,115.848806186 11.1179873720002,115.848806186 9.67951080900016,114.027679884 9.67951080900016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PGA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((116.954925977 4.65570709800011,116.954925977 21.122381903,126.617686394 21.122381903,126.617686394 4.65570709800011,116.954925977 4.65570709800011))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PHL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((131.131114129 2.94904205900015,131.131114129 8.09661782863144,134.727342990799 8.09661782863144,134.727342990799 2.94904205900015,131.131114129 2.94904205900015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PLW'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((140.84921106 -11.6363257789998,140.84921106 -1.34636809699988,155.96753991 -1.34636809699988,155.96753991 -11.6363257789998,140.84921106 -11.6363257789998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PNG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.123922973 48.9940131640001,14.123922973 54.8383242860001,24.1431563720001 54.8383242860001,24.1431563720001 48.9940131640001,14.123922973 48.9940131640001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'POL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-67.9378149079999 17.9229190120002,-67.9378149079999 18.522772528,-65.2446182929999 18.522772528,-65.2446182929999 17.9229190120002,-67.9378149079999 17.9229190120002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.211315989 37.6756045590001,124.211315989 43.010269878,130.699961785 43.010269878,130.699961785 37.6756045590001,124.211315989 37.6756045590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-31.2849014959999 30.0292422550001,-31.2849014959999 42.15362966,-6.20594722499993 42.15362966,-6.20594722499993 30.0292422550001,-31.2849014959999 30.0292422550001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.650357219 -27.5868421429999,-62.650357219 -19.2867286169999,-54.2452888589999 -19.2867286169999,-54.2452888589999 -27.5868421429999,-62.650357219 -27.5868421429999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRY'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2002694411415 31.2114489580001,34.2002694411415 32.542640076,35.5725362550001 32.542640076,35.5725362550001 31.2114489580001,34.2002694411415 31.2114489580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PSX'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-154.536976692 -27.6412085919999,-154.536976692 -7.95012786299982,-134.942982551 -7.95012786299982,-134.942982551 -27.6412085919999,-154.536976692 -27.6412085919999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PYF'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.750987175 24.5598715210001,50.750987175 26.16010163,51.6165470710001 26.16010163,51.6165470710001 24.5598715210001,50.750987175 24.5598715210001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'QAT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.2254337900002 -21.3707821589999,55.2254337900002 -20.861423435,55.8545028000001 -20.861423435,55.8545028000001 -21.3707821589999,55.2254337900002 -21.3707821589999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'REU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.2428259690001 43.6500499480001,20.2428259690001 48.2748322560001,29.6995548840001 48.2748322560001,29.6995548840001 43.6500499480001,20.2428259690001 43.6500499480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ROU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 41.1926805620002,-180 81.8587100280001,180 81.8587100280001,180 41.1926805620002,-180 41.1926805620002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'RUS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.8572355550001 -2.82685475699989,28.8572355550001 -1.05869394899987,30.8878092850001 -1.05869394899987,30.8878092850001 -2.82685475699989,28.8572355550001 -2.82685475699989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'RWA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.1046443349999 20.7669131530001,-17.1046443349999 27.6614653400001,-8.68080908199988 27.6614653400001,-8.68080908199988 20.7669131530001,-17.1046443349999 20.7669131530001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAH'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.5727645190002 16.3709446840655,34.5727645190002 32.1213479620001,55.6375647380002 32.1213479620001,55.6375647380002 16.3709446840655,34.5727645190002 16.3709446840655))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAU'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((117.751856381 15.1500820250001,117.751856381 15.1543692630001,117.755692331 15.1543692630001,117.755692331 15.1500820250001,117.751856381 15.1500820250001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SCR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8094486900001 8.6816417440001,21.8094486900001 22.2269648230001,38.6038517590002 22.2269648230001,38.6038517590002 8.6816417440001,21.8094486900001 8.6816417440001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.1215556230001 3.49020151800015,24.1215556230001 12.2161546840002,35.9208354090002 12.2161546840002,35.9208354090002 3.49020151800015,24.1215556230001 3.49020151800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.5360408189999 12.3056065880001,-17.5360408189999 16.6913853970001,-11.3777762449999 16.6913853970001,-11.3777762449999 12.3056065880001,-17.5360408189999 12.3056065880001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SEN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.6404109369999 15.8620873070001,-78.6404109369999 15.8672956400001,-78.6368708979999 15.8672956400001,-78.6368708979999 15.8620873070001,-78.6404109369999 15.8620873070001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SER'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((103.640391472 1.26430898600009,103.640391472 1.44863515800004,104.003428582 1.44863515800004,104.003428582 1.26430898600009,103.640391472 1.26430898600009))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGP'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-38.0870255199999 -59.4727515599998,-38.0870255199999 -53.9724260399999,-26.2393285799999 -53.9724260399999,-26.2393285799999 -59.4727515599998,-38.0870255199999 -59.4727515599998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-14.4177139959999 -40.3978817689998,-14.4177139959999 -7.87786223799983,-5.65038001199986 -7.87786223799983,-5.65038001199986 -40.3978817689998,-14.4177139959999 -40.3978817689998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SHN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.4843856130001 76.4364688170001,10.4843856130001 80.7700869810001,29.7070418630001 80.7700869810001,29.7070418630001 76.4364688170001,10.4843856130001 76.4364688170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SJM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((155.507985873 -12.2906226539999,155.507985873 -6.59986744599981,168.825856967 -6.59986744599981,168.825856967 -12.2906226539999,155.507985873 -12.2906226539999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.3010961579999 6.91941966400012,-13.3010961579999 9.99600596100012,-10.2822358799999 9.99600596100012,-10.2822358799999 6.91941966400012,-13.3010961579999 6.91941966400012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.1147790119999 13.1586367860001,-90.1147790119999 14.4453726200001,-87.6931935119999 14.4453726200001,-87.6931935119999 13.1586367860001,-90.1147790119999 13.1586367860001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLV'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.3856287450001 43.892055515,12.3856287450001 43.9825667860001,12.4923922540001 43.9825667860001,12.4923922540001 43.892055515,12.3856287450001 43.892055515))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SMR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.6472465410002 7.9965156050001,42.6472465410002 11.4989281270001,48.9391119999082 11.4989281270001,48.9391119999082 7.9965156050001,42.6472465410002 7.9965156050001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((40.9653853760002 -1.69628316497764,40.9653853760002 11.9891186460002,51.4170378110001 11.9891186460002,51.4170378110001 -1.69628316497764,40.9653853760002 -1.69628316497764))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-56.396595832 46.7527529970001,-56.396595832 47.1412621110001,-56.1447647779999 47.1412621110001,-56.1447647779999 46.7527529970001,-56.396595832 46.7527529970001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SPM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.8449784750001 42.2349425250001,18.8449784750001 46.1738752240001,22.9845707600001 46.1738752240001,22.9845707600001 42.2349425250001,18.8449784750001 42.2349425250001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SRB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.46168053500011 0.0241153020000695,6.46168053500011 1.69977448100016,7.46273847700007 1.69977448100016,7.46273847700007 0.0241153020000695,6.46168053500011 0.0241153020000695))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'STP'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.0676912029999 1.83350677500007,-58.0676912029999 6.01157376600012,-53.9863574539999 6.01157376600012,-53.9863574539999 1.83350677500007,-58.0676912029999 1.83350677500007))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SUR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.8444804280001 47.7500064090001,16.8444804280001 49.601779684,22.5396366780001 49.601779684,22.5396366780001 47.7500064090001,16.8444804280001 47.7500064090001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.3652612710001 45.42363678,13.3652612710001 46.863962301,16.5153015540001 46.863962301,16.5153015540001 45.42363678,13.3652612710001 45.42363678))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1081649100001 55.3426781270001,11.1081649100001 69.0363556930001,24.1634135340001 69.0363556930001,24.1634135340001 55.3426781270001,11.1081649100001 55.3426781270001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.7829061280001 -27.3162643429999,30.7829061280001 -25.7359990439999,32.1173983160001 -25.7359990439999,32.1173983160001 -27.3162643429999,30.7829061280001 -27.3162643429999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWZ'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1188858709999 18.019110419,-63.1188858709999 18.0621092720001,-63.0175685850526 18.0621092720001,-63.0175685850526 18.019110419,-63.1188858709999 18.019110419))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SXM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.2073673840002 -9.75554778399989,46.2073673840002 -3.79111093499991,56.2874455090001 -3.79111093499991,56.2874455090001 -9.75554778399989,46.2073673840002 -9.75554778399989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYC'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.7233992850002 32.313041687,35.7233992850002 37.3249063110001,42.377185506 37.3249063110001,42.377185506 32.313041687,35.7233992850002 32.313041687))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.481312629 21.2901065120001,-72.481312629 21.9592145850001,-71.1288956369999 21.9592145850001,-71.1288956369999 21.2901065120001,-72.481312629 21.2901065120001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.4491837970001 7.45556671100012,13.4491837970001 23.4447199510001,23.9844063720001 23.4447199510001,23.9844063720001 7.45556671100012,13.4491837970001 7.45556671100012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCD'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.16610917099996 6.100490848287,-0.16610917099996 11.1349803670001,1.78235070800014 11.1349803670001,1.78235070800014 6.100490848287,-0.16610917099996 6.100490848287))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TGO'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((97.3514010010001 5.62989003500013,97.3514010010001 20.4450064090001,105.650997762 20.4450064090001,105.650997762 5.62989003500013,97.3514010010001 5.62989003500013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'THA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((67.3426900630002 36.6786408490002,67.3426900630002 41.0399767050001,75.1641247970001 41.0399767050001,75.1641247970001 36.6786408490002,67.3426900630002 36.6786408490002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TJK'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-171.086537239 -11.0660946589999,-171.086537239 -11.0513648419999,-171.072824674 -11.0513648419999,-171.072824674 -11.0660946589999,-171.086537239 -11.0660946589999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKL'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((52.4376706173443 35.140646871,52.4376706173443 42.791187643,66.6457816980001 42.791187643,66.6457816980001 35.140646871,52.4376706173443 35.140646871))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.03003991 -9.5012277219999,124.03003991 -8.13502369599983,127.313243035 -8.13502369599983,127.313243035 -9.5012277219999,124.03003991 -9.5012277219999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TLS'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-176.219309049 -22.3387997379999,-176.219309049 -15.5595028629999,-173.914255338 -15.5595028629999,-173.914255338 -22.3387997379999,-176.219309049 -22.3387997379999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TON'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.9287003249999 10.0420596370002,-61.9287003249999 11.3510602890001,-60.5220841139999 11.3510602890001,-60.5220841139999 10.0420596370002,-61.9287003249999 10.0420596370002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TTO'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.4798323980001 30.2289053350001,7.4798323980001 37.3452009140002,11.5641309000001 37.3452009140002,11.5641309000001 30.2289053350001,7.4798323980001 30.2289053350001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.663259311 35.819778545,25.663259311 42.0987816430001,44.8069928290001 42.0987816430001,44.8069928290001 35.819778545,25.663259311 35.819778545))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((176.125254754 -9.42066822699981,176.125254754 -5.67750416499986,179.906748894 -5.67750416499986,179.906748894 -9.42066822699981,176.125254754 -9.42066822699981))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUV'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((118.279551629 21.9046084660001,118.279551629 25.287420966,122.005381707 25.287420966,122.005381707 21.9046084660001,118.279551629 21.9046084660001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TWN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.3210315350001 -11.7312724819999,29.3210315350001 -0.985830179999823,40.4493921230001 -0.985830179999823,40.4493921230001 -11.7312724819999,29.3210315350001 -11.7312724819999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TZA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.5484595130001 -1.47520599399984,29.5484595130001 4.21969187500011,35.0064726150001 4.21969187500011,35.0064726150001 -1.47520599399984,29.5484595130001 -1.47520599399984))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UGA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.1328398030001 44.381048895,22.1328398030001 52.3689492800001,40.1595430910002 52.3689492800001,40.1595430910002 44.381048895,22.1328398030001 44.381048895))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UKR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.389597134 -0.388767184999892,-177.389597134 28.2153181010001,166.652354363 28.2153181010001,166.652354363 -0.388767184999892,-177.389597134 -0.388767184999892))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UMI'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.4393611319999 -34.9734026019999,-58.4393611319999 -30.0968698119999,-53.1108361419999 -30.0968698119999,-53.1108361419999 -34.9734026019999,-58.4393611319999 -34.9734026019999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'URY'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-179.143503384 18.9061171430001,-179.143503384 71.4125023460001,179.780935092 71.4125023460001,179.780935092 18.9061171430001,-179.143503384 18.9061171430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'USA'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.2328569552957 19.8911422360002,-75.2328569552957 19.9715836900001,-75.0949502909999 19.9715836900001,-75.0949502909999 19.8911422360002,-75.2328569552957 19.8911422360002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'USG'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.9758386630001 37.1851474,55.9758386630001 45.5587189740001,73.1486405840002 45.5587189740001,73.1486405840002 37.1851474,55.9758386630001 37.1851474))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UZB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.4527140820001 41.9027519410001,12.4527140820001 41.9039147380001,12.4540354420001 41.9039147380001,12.4540354420001 41.9027519410001,12.4527140820001 41.9027519410001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VAT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4598282539999 12.5851504580001,-61.4598282539999 13.3807640650001,-61.1239314439999 13.3807640650001,-61.1239314439999 12.5851504580001,-61.4598282539999 12.5851504580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VCT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.3911486409999 0.649315491000067,-73.3911486409999 15.7029483090001,-59.815594849 15.7029483090001,-59.815594849 0.649315491000067,-73.3911486409999 0.649315491000067))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VEN'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.7739965489999 18.3346621770001,-64.7739965489999 18.74624258,-64.2707413399999 18.74624258,-64.2707413399999 18.3346621770001,-64.7739965489999 18.3346621770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VGB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-65.0414934419999 17.6827660180001,-65.0414934419999 18.3865986140001,-64.5593969389999 18.3865986140001,-64.5593969389999 17.6827660180001,-65.0414934419999 17.6827660180001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VIR'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.118655233 8.56557851800015,102.118655233 23.3662751270001,109.472422722 23.3662751270001,109.472422722 8.56557851800015,102.118655233 8.56557851800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VNM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.520518425 -20.2531063779999,166.520518425 -13.0648739559998,169.898936394 -13.0648739559998,169.898936394 -20.2531063779999,166.520518425 -20.2531063779999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VUT'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-178.185739713 -14.3194312479999,-178.185739713 -13.208916925,-176.125599739 -13.208916925,-176.125599739 -14.3194312479999,-178.185739713 -14.3194312479999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WLF'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.7601022650002 34.5685488950001,32.7601022650002 34.7009482940001,33.03028405 34.7009482940001,33.03028405 34.5685488950001,32.7601022650002 34.5685488950001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-172.782582161 -14.052829685,-172.782582161 -13.4628231749999,-171.437692838 -13.4628231749999,-171.437692838 -14.052829685,-172.782582161 -14.052829685))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.5457462900001 12.1114436720001,42.5457462900001 18.9956375130001,54.5402938160002 18.9956375130001,54.5402938160002 12.1114436720001,42.5457462900001 12.1114436720001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'YEM'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.4699813160001 -46.965752863,16.4699813160001 -22.1264519249999,37.9777938160001 -22.1264519249999,37.9777938160001 -46.965752863,16.4699813160001 -46.965752863))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZAF'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.9798775630001 -18.0692318719999,21.9798775630001 -8.1941240429999,33.674202515 -8.1941240429999,33.674202515 -18.0692318719999,21.9798775630001 -18.0692318719999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZMB'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.219369751 -22.3973397829999,25.219369751 -15.6148080449999,33.0427681890002 -15.6148080449999,33.0427681890002 -22.3973397829999,25.219369751 -22.3973397829999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZWE'" should true } -function test_geocoding_quality_ip_addr() { - -} - -function test_geocoding_functions_ip_addr() { - -} - - - # sql postgres 'SELECT * FROM cdb_testmember_1.foo;' fails - - #################################################### TESTS END HERE #################################################### - -run_tests $@ - -exit ${OK} \ No newline at end of file diff --git a/geocoder/admin0/test/functions/test.sh b/geocoder/admin0/test/functions/test.sh index 599b515..c2c89cd 100644 --- a/geocoder/admin0/test/functions/test.sh +++ b/geocoder/admin0/test/functions/test.sh @@ -1,729 +1,544 @@ #!/bin/sh -# -# It is expected that you run this script -# as a PostgreSQL superuser, for example: -# -# PGUSER=postgres bash ./test.sh -# - -DATABASE=test_geocoding -CMD='echo psql' -CMD=psql - -OK=0 -PARTIALOK=0 - -function set_failed() { - OK=1 - PARTIALOK=1 -} - - -function clear_partial_result() { - PARTIALOK=0 -} - - -function sql() { - local ROLE - local QUERY - if [[ $# -ge 2 ]] - then - ROLE="$1" - QUERY="$2" - else - QUERY="$1" - fi - - if [ -n "${ROLE}" ]; then - log_debug "Executing query '${QUERY}' as ${ROLE}" - RESULT=`${CMD} -U "${ROLE}" ${DATABASE} -c "${QUERY}" -A -t` - else - log_debug "Executing query '${QUERY}'" - RESULT=`${CMD} ${DATABASE} -c "${QUERY}" -A -t` - fi - CODERESULT=$? - - echo ${RESULT} - echo - - if [[ ${CODERESULT} -ne 0 ]] - then - echo -n "FAILED TO EXECUTE QUERY: " - log_warning "${QUERY}" - if [[ "$3" != "fails" ]] - then - log_error "${QUERY}" - set_failed - fi - else - if [[ "$3" == "fails" ]] - then - log_error "QUERY: '${QUERY}' was expected to fail and it did not fail" - set_failed - fi - fi - - if [[ "$3" == "should" ]] - then - if [[ "${RESULT}" != "$4" ]] - then - log_error "QUERY '${QUERY}' expected result '${4}' but got '${RESULT}'" - set_failed - fi - fi -} - - -function log_info() -{ - echo - echo - echo - _log "1;34m" "$1" -} - -function log_error() { - _log "1;31m" "$1" -} - -function log_debug() { - _log "1;32m" "> $1" -} - -function log_warning() { - _log "0;33m" "$1" -} - -function _log() { - echo -e "\033[$1$2\033[0m" -} - -# '############################ HELPERS #############################' -function setup() { - -} - -function tear_down() { - -} - -function run_tests() { - local FAILED_TESTS=() - - local TESTS - if [[ $# -ge 1 ]] - then - TESTS="$@" - else - TESTS=`cat $0 | perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` - fi - for t in ${TESTS} - do - echo "####################################################################" - echo "#" - echo "# Running: ${t}" - echo "#" - echo "####################################################################" - clear_partial_result - #setup - eval ${t} - if [[ ${PARTIALOK} -ne 0 ]] - then - FAILED_TESTS+=(${t}) - fi - #tear_down - done - if [[ ${OK} -ne 0 ]] - then - echo - log_error "The following tests are failing:" - printf -- '\t%s\n' "${FAILED_TESTS[@]}" - fi -} - - #################################################### TESTS GO HERE #################################################### -function test_geocoding_quality_admin0() { - # checks that the number of geometries is the expected - includes islands and regions splitted in the setup - # scripts, and some geometries for disputed territories - sql postgres 'SELECT count(*) FROM ne_admin0_v3' should 267 - - # checks the type of the geometries - sql postgres "SELECT ST_GeometryType(the_geom) FROM ne_admin0_v3 WHERE adm0_a3 NOT IN ('CXR', 'BVT', 'GUF')" should ST_MultiPolygon - - # checks that the centroid of a countrie intersects with its desirable bounding box - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-70.0624080069999 12.417669989,-70.0624080069999 12.6321475280001,-69.8768204419999 12.6321475280001,-69.8768204419999 12.417669989,-70.0624080069999 12.417669989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ABW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.4867777910001 29.3866053260001,60.4867777910001 38.4736734020001,74.8923067630001 38.4736734020001,74.8923067630001 29.3866053260001,60.4867777910001 29.3866053260001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AFG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.6693941430001 -18.0314047239998,11.6693941430001 -4.39120371499996,24.0617143150001 -4.39120371499996,24.0617143150001 -18.0314047239998,11.6693941430001 -18.0314047239998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AGO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.4288223949999 18.1690941430001,-63.4288223949999 18.6012637390001,-62.9726456369999 18.6012637390001,-62.9726456369999 18.1690941430001,-63.4288223949999 18.1690941430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AIA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.2720325110001 39.637013245,19.2720325110001 42.6548135380001,21.0366793210001 42.6548135380001,21.0366793210001 39.637013245,19.2720325110001 39.637013245))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.5131942070001 59.9044863950001,19.5131942070001 60.4807803410001,21.0966903000001 60.4807803410001,21.0966903000001 59.9044863950001,19.5131942070001 59.9044863950001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.4064563390001 42.4286774700001,1.4064563390001 42.649361674,1.76509078000015 42.649361674,1.76509078000015 42.4286774700001,1.4064563390001 42.4286774700001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.5693465500001 22.6209459430001,51.5693465500001 26.0747919720001,56.3836369150001 26.0747919720001,56.3836369150001 22.6209459430001,51.5693465500001 22.6209459430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.5880358489999 -55.0520158829998,-73.5880358489999 -21.7869377639999,-53.6615518799999 -21.7869377639999,-53.6615518799999 -55.0520158829998,-73.5880358489999 -55.0520158829998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.4362939860001 38.8637012740001,43.4362939860001 41.2904523730001,46.6026123460001 41.2904523730001,46.6026123460001 38.8637012740001,43.4362939860001 38.8637012740001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-170.831247525 -14.5328915339999,-170.831247525 -14.1688778629998,-168.160471158 -14.1688778629998,-168.160471158 -14.5328915339999,-170.831247525 -14.5328915339999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ASM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -90,-180 -60.516208592,180 -60.516208592,180 -90,-180 -90))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((123.575043165 -12.4385718729998,123.575043165 -12.4266089819999,123.597748243 -12.4266089819999,123.597748243 -12.4385718729998,123.575043165 -12.4385718729998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.7282820970001 -49.7216122379999,39.7282820970001 -11.5506324199998,77.5852156910001 -11.5506324199998,77.5852156910001 -49.7216122379999,39.7282820970001 -49.7216122379999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.8941544259999 16.9892438820001,-61.8941544259999 17.7276878930001,-61.6675919259999 17.7276878930001,-61.6675919259999 16.9892438820001,-61.8941544259999 16.9892438820001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((112.919444207 -54.750420831,112.919444207 -9.24016692499987,159.106455925 -9.24016692499987,159.106455925 -54.750420831,112.919444207 -54.750420831))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.52115482500011 46.3786430870001,9.52115482500011 49.0097744750001,17.1483378500001 49.0097744750001,17.1483378500001 46.3786430870001,9.52115482500011 46.3786430870001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.7745585530002 38.392644755,44.7745585530002 41.8904415900002,50.6257430350001 41.8904415900002,50.6257430350001 38.392644755,44.7745585530002 38.392644755))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'AZE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.9868917230001 -4.46334401499993,28.9868917230001 -2.30306243899987,30.8339624430001 -2.30306243899987,30.8339624430001 -4.46334401499993,28.9868917230001 -4.46334401499993))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BDI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.52179992769047 49.495222881,2.52179992769047 51.4962376910001,6.37452518700007 51.4962376910001,6.37452518700007 49.495222881,2.52179992769047 49.495222881))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.759880818000113 6.21389923179639,0.759880818000113 12.3992442830001,3.83741906700001 12.3992442830001,3.83741906700001 6.21389923179639,0.759880818000113 6.21389923179639))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-68.4173884759999 12.0220401060001,-68.4173884759999 12.3102074240002,-68.1900121739999 12.3102074240002,-68.1900121739999 12.0220401060001,-68.4173884759999 12.0220401060001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BES'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.52257808499988 9.39188262900012,-5.52257808499988 15.0799075320001,2.39016890400009 15.0799075320001,2.39016890400009 9.39188262900012,-5.52257808499988 9.39188262900012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BFA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.0217895920001 20.738714911,88.0217895920001 26.6235440070001,92.6428511970002 26.6235440070001,92.6428511970002 20.738714911,88.0217895920001 20.738714911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.3450232340001 41.2381041470001,22.3450232340001 44.228434539,28.6035262380001 44.228434539,28.6035262380001 41.2381041470001,22.3450232340001 41.2381041470001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.448903842 25.7895368510001,50.448903842 26.242580471,50.6456598131816 26.242580471,50.6456598131816 25.7895368510001,50.448903842 25.7895368510001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.5943497389999 20.9123989090001,-79.5943497389999 26.9284121770001,-72.7461645169999 26.9284121770001,-72.7461645169999 20.9123989090001,-79.5943497389999 20.9123989090001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((15.7160738520001 42.5592121380002,15.7160738520001 45.2845238250002,19.618884725 45.2845238250002,19.618884725 42.5592121380002,15.7160738520001 42.5592121380002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BIH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.9892878899999 15.7941755230001,-79.9892878899999 15.7962100280001,-79.9863988919999 15.7962100280001,-79.9863988919999 15.7941755230001,-79.9892878899999 15.7941755230001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BJN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8673396479999 17.8819847680001,-62.8673396479999 17.9291445980001,-62.7916560539999 17.9291445980001,-62.7916560539999 17.8819847680001,-62.8673396479999 17.8819847680001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((23.165644979 51.2351683560001,23.165644979 56.1568059290001,32.7195321040001 56.1568059290001,32.7195321040001 51.2351683560001,23.165644979 51.2351683560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.2365122079999 15.8796519990001,-89.2365122079999 18.4907587690001,-87.7830704419999 18.4907587690001,-87.7830704419999 15.8796519990001,-89.2365122079999 15.8796519990001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.8859939889704 32.2480773815958,-64.8859939889704 32.3886579450001,-64.6476307056406 32.3886579450001,-64.6476307056406 32.2480773815958,-64.8859939889704 32.2480773815958))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BMU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.6664922699999 -22.8972575879999,-69.6664922699999 -9.67982147199997,-57.4656607669999 -9.67982147199997,-57.4656607669999 -22.8972575879999,-69.6664922699999 -22.8972575879999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BOL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.018474691 -33.742280375,-74.018474691 5.26722483300009,-28.8770645819999 5.26722483300009,-28.8770645819999 -33.742280375,-74.018474691 -33.742280375))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-59.6542048819999 13.051174221,-59.6542048819999 13.344549872,-59.4269099599999 13.344549872,-59.4269099599999 13.051174221,-59.6542048819999 13.051174221))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.99878991 4.01668101000011,113.99878991 5.05719635600018,115.360741008 5.05719635600018,115.360741008 4.01668101000011,113.99878991 4.01668101000011))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.7300667720001 26.6961493940002,88.7300667720001 28.3583989307863,92.0887764890001 28.3583989307863,92.0887764890001 26.6961493940002,88.7300667720001 26.6961493940002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BTN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.34555097700007 -54.4624976539999,3.34555097700007 -54.3801408829999,3.48666425900012 -54.3801408829999,3.48666425900012 -54.4624976539999,3.34555097700007 -54.4624976539999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BVT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.9783459880001 -26.891794128,19.9783459880001 -17.7818075559999,29.3500736890001 -17.7818075559999,29.3500736890001 -26.891794128,19.9783459880001 -26.891794128))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'BWA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.3872660720001 2.23645375600006,14.3872660720001 11.0008283490001,27.4413013100001 11.0008283490001,27.4413013100001 2.23645375600006,14.3872660720001 2.23645375600006))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-141.005548637109 41.6690855920001,-141.005548637109 83.1165225280001,-52.616607226 83.1165225280001,-52.616607226 41.6690855920001,-141.005548637109 41.6690855920001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.821543816 -12.1999651019998,96.821543816 -12.1265601539999,96.9210718110001 -12.1265601539999,96.9210718110001 -12.1999651019998,96.821543816 -12.1999651019998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CCK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.95480920400013 45.820718486,5.95480920400013 47.8011660770001,10.466626831 47.8011660770001,10.466626831 45.820718486,5.95480920400013 45.820718486))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.453724739 -55.9185042229998,-109.453724739 -17.506588198,-66.4208064439999 -17.506588198,-66.4208064439999 -55.9185042229998,-109.453724739 -55.9185042229998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.6022563070002 15.775376695,73.6022563070002 53.569444479,134.772579387 53.569444479,134.772579387 15.775376695,73.6022563070002 15.775376695))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.61871984899992 4.34406159100013,-8.61871984899992 10.7264781700001,-2.50632808399993 10.7264781700001,-2.50632808399993 4.34406159100013,-8.61871984899992 4.34406159100013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CIV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.234242317 10.2815615910001,-109.234242317 10.3110212260001,-109.210357226 10.3110212260001,-109.210357226 10.2815615910001,-109.234242317 10.2815615910001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CLP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.50505618600005 1.65455129000014,8.50505618600005 13.081140646,16.2077234290001 13.081140646,16.2077234290001 1.65455129000014,8.50505618600005 1.65455129000014))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.5848087900001 34.9777627570001,32.5848087900001 35.1994029740002,34.0219607300423 35.1994029740002,34.0219607300423 34.9777627570001,32.5848087900001 34.9777627570001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CNM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.2105548693531 -13.4583505239999,12.2105548693531 5.37528025300014,31.2804468180001 5.37528025300014,31.2804468180001 -13.4583505239999,12.2105548693531 -13.4583505239999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1140163040629 -5.01963083599986,11.1140163040629 3.70827606200005,18.64240686 3.70827606200005,18.64240686 -5.01963083599986,11.1140163040629 -5.01963083599986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-165.824533658 -21.9388973939999,-165.824533658 -8.94670989399988,-157.312814908 -8.94670989399988,-157.312814908 -21.9388973939999,-165.824533658 -21.9388973939999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.72370358 -4.23648447699985,-81.72370358 13.5783552100001,-66.8750605879999 13.5783552100001,-66.8750605879999 -4.23648447699985,-81.72370358 -4.23648447699985))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2132267590001 -12.3803036439999,43.2132267590001 -11.3612606749999,44.5290633470001 -11.3612606749999,44.5290633470001 -12.3803036439999,43.2132267590001 -12.3803036439999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'COM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-25.3604223299999 14.8039411480001,-25.3604223299999 17.196600653,-22.6665746739999 17.196600653,-22.6665746739999 14.8039411480001,-25.3604223299999 14.8039411480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CPV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.1176651679999 5.51508209800012,-87.1176651679999 11.2099370320002,-82.5628368739999 11.2099370320002,-82.5628368739999 5.51508209800012,-87.1176651679999 5.51508209800012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CRI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((154.388519727 -21.0300432269999,154.388519727 -21.028741144,154.391286655 -21.028741144,154.391286655 -21.0300432269999,154.388519727 -21.0300432269999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CSI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.9496150379999 19.827826239,-84.9496150379999 23.2655703800001,-74.1328832669999 23.2655703800001,-74.1328832669999 19.827826239,-84.9496150379999 19.827826239))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.1717423169999 12.041327216,-69.1717423169999 12.3915062520001,-68.7397354809999 12.3915062520001,-68.7397354809999 12.041327216,-69.1717423169999 12.041327216))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((105.581797722 -10.5660132789999,105.581797722 -10.4308407529998,105.714691602 -10.4308407529998,105.714691602 -10.5660132789999,105.581797722 -10.5660132789999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CXR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.4165420209999 19.2638636150001,-81.4165420209999 19.7576308370001,-79.7266426919999 19.7576308370001,-79.7266426919999 19.2638636150001,-81.4165420209999 19.2638636150001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6019153500579 35.002722473,32.6019153500579 35.6919619810002,34.5925399100002 35.6919619810002,34.5925399100002 35.002722473,32.6019153500579 35.002722473))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.2717391290002 34.6250194300001,32.2717391290002 35.1870821302553,34.0991317070001 35.1870821302553,34.0991317070001 34.6250194300001,32.2717391290002 34.6250194300001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.076140991 48.557915752,12.076140991 51.0400123090001,18.8374337160001 51.0400123090001,18.8374337160001 48.557915752,12.076140991 48.557915752))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'CZE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.85248986800011 47.271120911,5.85248986800011 55.065334377,15.0220593670001 55.065334377,15.0220593670001 47.271120911,5.85248986800011 47.271120911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DEU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((41.7491101480001 10.9298249310001,41.7491101480001 12.7079125020001,43.4187117850001 12.7079125020001,43.4187117850001 10.9298249310001,41.7491101480001 10.9298249310001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DJI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4889216789999 15.201808986,-61.4889216789999 15.6338565120001,-61.249256965 15.6338565120001,-61.249256965 15.201808986,-61.4889216789999 15.201808986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DMA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.09400475400008 54.5685895850001,8.09400475400008 57.7511660830001,15.1513778000001 57.7511660830001,15.1513778000001 54.5685895850001,8.09400475400008 54.5685895850001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DNK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.0098376059999 17.5455589860001,-72.0098376059999 19.9376895200001,-68.3286026679999 19.9376895200001,-68.3286026679999 17.5455589860001,-72.0098376059999 17.5455589860001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DOM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.68238521299992 18.9755612180001,-8.68238521299992 37.0939395200001,11.9688607170001 37.0939395200001,11.9688607170001 18.9755612180001,-8.68238521299992 18.9755612180001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'DZA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.0115860669999 -5.01137257899988,-92.0115860669999 1.66437409100016,-75.2272639579999 1.66437409100016,-75.2272639579999 -5.01137257899988,-92.0115860669999 -5.01137257899988))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ECU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.6883427320001 21.9943692020002,24.6883427320001 31.6564802100001,36.8991805350002 31.6564802100001,36.8991805350002 21.9943692020002,24.6883427320001 21.9943692020002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'EGY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((36.4236470950001 12.3600218710001,36.4236470950001 18.004828192,43.1238712900001 18.004828192,43.1238712900001 12.3600218710001,36.4236470950001 12.3600218710001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ERI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.6740991620001 34.937892971,33.6740991620001 35.1189944460001,33.9214742440001 35.1189944460001,33.9214742440001 34.937892971,33.6740991620001 34.937892971))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-18.1672257149999 27.6422386740001,-18.1672257149999 43.793443101,4.3370874360001 43.793443101,4.3370874360001 27.6422386740001,-18.1672257149999 27.6422386740001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8323673840001 57.5158185830001,21.8323673840001 59.6708845070001,28.1864754640001 59.6708845070001,28.1864754640001 57.5158185830001,21.8323673840001 57.5158185830001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'EST'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.9897998450001 3.40333343500009,32.9897998450001 14.8795321660001,47.9791691490001 14.8795321660001,47.9791691490001 3.40333343500009,32.9897998450001 3.40333343500009))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ETH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.62316451 59.811224677,20.62316451 70.0753103640001,31.5695247800001 70.0753103640001,31.5695247800001 59.811224677,20.62316451 59.811224677))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FIN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -21.7111141909999,-180 -12.4752743469999,180 -12.4752743469999,180 -21.7111141909999,-180 -21.7111141909999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FJI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3181860019999 -52.4065227259999,-61.3181860019999 -51.0277645809999,-57.7342830069999 -51.0277645809999,-57.7342830069999 -52.4065227259999,-61.3181860019999 -52.4065227259999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FLK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 51.0875408834804,8.20030521600006 51.0875408834804,8.20030521600006 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.54525800900012 41.365912177,8.54525800900012 43.0174014340001,9.55958092500009 43.0174014340001,9.55958092500009 41.365912177,8.54525800900012 41.365912177))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.64415442599994 61.3941104190001,-7.64415442599994 62.3989118510001,-6.2757869129999 62.3989118510001,-6.2757869129999 61.3941104190001,-7.64415442599994 61.3941104190001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((138.063812696 0.918158270000148,138.063812696 9.77558014500013,163.046560092 9.77558014500013,163.046560092 0.918158270000148,138.063812696 0.918158270000148))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'FSM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.69556725400014 -3.93685618990304,8.69556725400014 2.32249501600009,14.4989905190001 2.32249501600009,14.4989905190001 -3.93685618990304,8.69556725400014 -3.93685618990304))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GAB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.6913142569999 49.9096133480001,-13.6913142569999 60.84788646,1.77116946700002 60.84788646,1.77116946700002 49.9096133480001,-13.6913142569999 49.9096133480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GBR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.9859763554231 41.0441108200001,39.9859763554231 43.5758425900001,46.6948031010001 43.5758425900001,46.6948031010001 41.0441108200001,39.9859763554231 41.0441108200001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GEO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.67345130099989 49.4115664730001,-2.67345130099989 49.731390692,-2.17031816299993 49.731390692,-2.17031816299993 49.4115664730001,-2.67345130099989 49.4115664730001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GGY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.26250931799999 4.7371279970001,-3.26250931799999 11.162937317,1.18796838400004 11.162937317,1.18796838400004 4.7371279970001,-3.26250931799999 4.7371279970001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GHA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.35838675876349 36.1105003930001,-5.35838675876349 36.1411196720123,-5.33877348311998 36.1411196720123,-5.33877348311998 36.1105003930001,-5.35838675876349 36.1105003930001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-15.0811254549999 7.19020823200012,-15.0811254549999 12.673387757,-7.66244746999996 12.673387757,-7.66244746999996 7.19020823200012,-15.0811254549999 7.19020823200012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7978409499999 15.8469912780002,-61.7978409499999 16.513088283,-60.9892471999999 16.513088283,-60.9892471999999 15.8469912780002,-61.7978409499999 15.8469912780002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GLP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.8297013009999 13.0650088560001,-16.8297013009999 13.8199844360001,-13.8187125249999 13.8199844360001,-13.8187125249999 13.0650088560001,-16.8297013009999 13.0650088560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GMB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.7284367771401 10.9276390650001,-16.7284367771401 12.6794339000001,-13.6607118329999 12.6794339000001,-13.6607118329999 10.9276390650001,-16.7284367771401 10.9276390650001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.61198978000007 -1.47568124799986,5.61198978000007 3.77240631700012,11.3363411870001 3.77240631700012,11.3363411870001 -1.47568124799986,5.61198978000007 -1.47568124799986))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.6264754570001 34.8150088560001,19.6264754570001 41.7504759730001,28.2397567070001 41.7504759730001,28.2397567070001 34.8150088560001,19.6264754570001 34.8150088560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7905167309999 12.0028343770001,-61.7905167309999 12.5297305360001,-61.4216202459999 12.5297305360001,-61.4216202459999 12.0028343770001,-61.7905167309999 12.0028343770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.0572403639999 59.792629299,-73.0572403639999 83.6341006530001,-11.3768204419999 83.6341006530001,-11.3768204419999 59.792629299,-73.0572403639999 59.792629299))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.2462338320825 13.7289030478944,-92.2462338320825 17.8160195930001,-88.2209221351212 17.8160195930001,-88.2209221351212 13.7289030478944,-92.2462338320825 13.7289030478944))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GTM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 5.74476537500011,-51.649037239 5.74476537500011,-51.649037239 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.624196811 13.2410342470001,144.624196811 13.6541201840001,144.95215905 13.6541201840001,144.95215905 13.2410342470001,144.624196811 13.2410342470001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3967128089999 1.18582021100013,-61.3967128089999 8.55801015800012,-56.4818190109999 8.55801015800012,-56.4818190109999 1.18582021100013,-61.3967128089999 1.18582021100013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.837331576 22.177069403,113.837331576 22.5639460320001,114.40129642 22.5639460320001,114.40129642 22.177069403,113.837331576 22.177069403))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HKG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.236013217 -53.1925595029999,73.236013217 -52.9616024719999,73.8121850920001 -52.9616024719999,73.8121850920001 -53.1925595029999,73.236013217 -53.1925595029999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HMD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.3637912599999 12.9797773240001,-89.3637912599999 17.4186465520001,-83.1304418609999 17.4186465520001,-83.1304418609999 12.9797773240001,-89.3637912599999 12.9797773240001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.5014754570001 42.4163272160001,13.5014754570001 46.5469790650001,19.4078381750001 46.5469790650001,19.4078381750001 42.4163272160001,13.5014754570001 42.4163272160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HRV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.4891658189999 18.0259463560001,-74.4891658189999 20.08978913,-71.6391108809999 20.08978913,-71.6391108809999 18.0259463560001,-74.4891658189999 18.0259463560001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HTI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.0940352780001 45.741343486,16.0940352780001 48.5692328900001,22.8776005460001 48.5692328900001,22.8776005460001 45.741343486,16.0940352780001 45.741343486))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'HUN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((95.0127059250001 -10.9226213519998,95.0127059250001 5.9101016300001,140.977626994 5.9101016300001,140.977626994 -10.9226213519998,95.0127059250001 -10.9226213519998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IDN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.79015051999994 54.0569522160001,-4.79015051999994 54.4190127620001,-4.3119197259999 54.4190127620001,-4.3119197259999 54.0569522160001,-4.79015051999994 54.0569522160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IMN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((68.1434025400001 6.74555084800015,68.1434025400001 35.4954055790001,97.3622530520001 35.4954055790001,97.3622530520001 6.74555084800015,68.1434025400001 6.74555084800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.82154382 -12.1999651,96.82154382 -10.43084075,105.7146916 -10.43084075,105.7146916 -12.1999651,96.82154382 -12.1999651))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((71.260996941 -7.43222421699987,71.260996941 -5.22698333099991,72.4946395190001 -5.22698333099991,72.4946395190001 -7.43222421699987,71.260996941 -7.43222421699987))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-10.4781794909999 51.4457054710001,-10.4781794909999 55.386379299,-5.99351966099994 55.386379299,-5.99351966099994 51.4457054710001,-10.4781794909999 51.4457054710001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.0148633220001 25.0594081650001,44.0148633220001 39.7715269980001,63.3196281330001 39.7715269980001,63.3196281330001 25.0594081650001,44.0148633220001 25.0594081650001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((38.7745113520001 29.063136699,38.7745113520001 37.3754975380001,48.5592554050001 37.3754975380001,48.5592554050001 29.063136699,38.7745113520001 29.063136699))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-24.539906379 63.3967145850001,-24.539906379 66.564154364,-13.5029190749999 66.564154364,-13.5029190749999 63.3967145850001,-24.539906379 63.3967145850001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2483508570001 29.4896914730001,34.2483508570001 33.4067217000001,35.8880725500002 33.4067217000001,35.8880725500002 29.4896914730001,34.2483508570001 29.4896914730001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.60272831200007 35.489243882,6.60272831200007 47.085214945,18.5174259770001 47.085214945,18.5174259770001 35.489243882,6.60272831200007 35.489243882))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ITA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.3746638659999 17.70319245,-78.3746638659999 18.525091864,-76.1879776679999 18.525091864,-76.1879776679999 17.70319245,-78.3746638659999 17.70319245))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JAM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.24201412699992 49.1713320980001,-2.24201412699992 49.267035223,-2.00829016799992 49.267035223,-2.00829016799992 49.1713320980001,-2.24201412699992 49.1713320980001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JEY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.949385116681 29.189950664,34.949385116681 33.3716850790001,39.2919991450001 33.3716850790001,39.2919991450001 29.189950664,34.949385116681 29.189950664))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((122.938161655 24.212103583,122.938161655 45.5204125020001,153.985606316 45.5204125020001,153.985606316 24.212103583,122.938161655 24.212103583))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'JPN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((62.8006417230001 45.5658244830001,62.8006417230001 46.390838725,63.9671338300001 46.390838725,63.9671338300001 45.5658244830001,62.8006417230001 45.5658244830001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((76.7773507410001 35.110441997,76.7773507410001 35.6477993780001,77.8003463140001 35.6477993780001,77.8003463140001 35.110441997,76.7773507410001 35.110441997))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.478278849 40.5846556600001,46.478278849 55.4345502730001,87.3237960210001 55.4345502730001,87.3237960210001 40.5846556600001,46.478278849 40.5846556600001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.8904683840002 -4.67750416499996,33.8904683840002 5.03037582260775,41.8850191650001 5.03037582260775,41.8850191650001 -4.67750416499996,33.8904683840002 -4.67750416499996))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((69.2262960200001 39.1892369590001,69.2262960200001 43.2617015580001,80.2575606690001 43.2617015580001,80.2575606690001 39.1892369590001,69.2262960200001 39.1892369590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KGZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.313423706 10.4157736200001,102.313423706 14.7045816050001,107.610516399 14.7045816050001,107.610516399 10.4157736200001,102.313423706 10.4157736200001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KHM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-174.543405728 -11.4611141909999,-174.543405728 4.7230899110001,176.850922071 4.7230899110001,176.850922071 -11.4611141909999,-174.543405728 -11.4611141909999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KIR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8610733709999 17.1005313170001,-62.8610733709999 17.4158389340001,-62.5367732409999 17.4158389340001,-62.5367732409999 17.1005313170001,-62.8610733709999 17.1005313170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KNA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.613617384 33.197577216,124.613617384 38.6243307589749,131.862521886 38.6243307589749,131.862521886 33.197577216,124.613617384 33.197577216))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.024751424 41.8440103160001,20.024751424 43.2630709840001,21.7727584220001 43.2630709840001,21.7727584220001 41.8440103160001,20.024751424 41.8440103160001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.5324357500001 28.5335049440001,46.5324357500001 30.0982156370001,48.4327812271219 30.0982156370001,48.4327812271219 28.5335049440001,46.5324357500001 28.5335049440001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'KWT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((100.097073202 13.9154566450001,100.097073202 22.4960440070001,107.66436324 22.4960440070001,107.66436324 13.9154566450001,100.097073202 13.9154566450001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LAO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.0996199880001 33.055580342,35.0996199880001 34.687547913,36.604101196 34.687547913,36.604101196 33.055580342,35.0996199880001 33.055580342))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-11.4761856759999 4.34723541900004,-11.4761856759999 8.56539560900008,-7.38411820499996 8.56539560900008,-7.38411820499996 4.34723541900004,-11.4761856759999 4.34723541900004))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.28654382300007 19.496123759,9.28654382300007 33.1812253147281,25.1562606130001 33.1812253147281,25.1562606130001 19.496123759,9.28654382300007 19.496123759))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.078521288 13.7146670590001,-61.078521288 14.1118838560001,-60.8829646479999 14.1118838560001,-60.8829646479999 13.7146670590001,-61.078521288 13.7146670590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LCA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.47588627100012 47.0524004120001,9.47588627100012 47.2628010050001,9.61572269700011 47.2628010050001,9.61572269700011 47.0524004120001,9.47588627100012 47.0524004120001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LIE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((79.6557723320001 5.92373281500015,79.6557723320001 9.82957591400015,81.8903100920001 9.82957591400015,81.8903100920001 5.92373281500015,79.6557723320001 5.92373281500015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LKA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((27.0021549890001 -30.6587993359999,27.0021549890001 -28.570761414,29.4359082440001 -28.570761414,29.4359082440001 -30.6587993359999,27.0021549890001 -30.6587993359999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LSO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9245687005624 53.8868411260001,20.9245687005624 56.4426024370001,26.8007202560001 56.4426024370001,26.8007202560001 53.8868411260001,20.9245687005624 53.8868411260001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LTU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.71492720500004 49.441324362,5.71492720500004 50.1749746710001,6.50257938700014 50.1749746710001,6.50257938700014 49.441324362,5.71492720500004 49.441324362))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LUX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9685978520001 55.6669908660001,20.9685978520001 58.0751384490001,28.2172746170001 58.0751384490001,28.2172746170001 55.6669908660001,20.9685978520001 55.6669908660001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'LVA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.519867384 22.1053734400001,113.519867384 22.220770575,113.587494337 22.220770575,113.587494337 22.1053734400001,113.519867384 22.1053734400001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1468399729999 18.0333914721357,-63.1468399729999 18.1221377620001,-63.0107315749999 18.1221377620001,-63.0107315749999 18.0333914721357,-63.1468399729999 18.0333914721357))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0137433253452 21.4199710975817,-17.0137433253452 35.926519149,-1.03199947099995 35.926519149,-1.03199947099995 21.4199710975817,-17.0137433253452 21.4199710975817))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.36575020700008 43.7179690770001,7.36575020700008 43.763505554,7.4374540320631 43.763505554,7.4374540320631 43.7179690770001,7.36575020700008 43.7179690770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MCO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((26.617889038 45.461773987,26.617889038 48.486033834,30.1315763750001 48.486033834,30.1315763750001 45.461773987,26.617889038 45.461773987))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2229110040001 -25.5985653629998,43.2229110040001 -11.9436174459998,50.5039168630001 -11.9436174459998,50.5039168630001 -25.5985653629998,43.2229110040001 -25.5985653629998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((72.684825066 -0.688571872999901,72.684825066 7.10724518400015,73.7531844410002 7.10724518400015,73.7531844410002 -0.688571872999901,72.684825066 -0.688571872999901))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-118.368804229 14.5462829243643,-118.368804229 32.7128364050001,-86.7005916009999 32.7128364050001,-86.7005916009999 14.5462829243643,-118.368804229 14.5462829243643))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MEX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((165.282237175 4.57379791900016,165.282237175 14.6105003930001,172.029795769 14.6105003930001,172.029795769 4.57379791900016,165.282237175 4.57379791900016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.4441573490001 40.8493940230001,20.4441573490001 42.3703347790001,23.0095821530001 42.3703347790001,23.0095821530001 40.8493940230001,20.4441573490001 40.8493940230001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MKD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-12.2641304119999 10.1400540170001,-12.2641304119999 24.9950645960001,4.23563765500012 24.9950645960001,4.23563765500012 10.1400540170001,-12.2641304119999 10.1400540170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.1836043630001 35.801214911,14.1836043630001 36.0755882830001,14.5671492850001 36.0755882830001,14.5671492850001 35.801214911,14.1836043630001 35.801214911))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((92.174972779 9.79071686400013,92.174972779 28.538465881,101.173855021 28.538465881,101.173855021 9.79071686400013,92.174972779 9.79071686400013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.4335307210001 41.852362372,18.4335307210001 43.5478856410001,20.3551705320001 43.5478856410001,20.3551705320001 41.852362372,18.4335307210001 41.852362372))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((87.7357088630001 41.586144918,87.7357088630001 52.1295840460001,119.907026815 52.1295840460001,119.907026815 41.586144918,87.7357088630001 41.586144918))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.902110222 14.1106631530001,144.902110222 20.5554059920001,145.868907097 20.5554059920001,145.868907097 14.1106631530001,144.902110222 14.1106631530001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.2138452550002 -26.8602715039999,30.2138452550002 -10.4690080709999,40.8479923840001 -10.4690080709999,40.8479923840001 -26.8602715039999,30.2138452550002 -26.8602715039999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MOZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0811748859999 14.7343989060002,-17.0811748859999 27.2854157510001,-4.8216131179999 27.2854157510001,-4.8216131179999 14.7343989060002,-17.0811748859999 14.7343989060002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MRT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.2301326159999 16.6753604190001,-62.2301326159999 16.8193220070001,-62.1405330069999 16.8193220070001,-62.1405330069999 16.6753604190001,-62.2301326159999 16.6753604190001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MSR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.228830533 14.4081078150001,-61.228830533 14.8768985050001,-60.8104141919999 14.8768985050001,-60.8104141919999 14.4081078150001,-61.228830533 14.4081078150001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MTQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((56.5241805350002 -20.5173479149999,56.5241805350002 -10.3239071589999,63.493907097 -10.3239071589999,63.493907097 -20.5173479149999,56.5241805350002 -20.5173479149999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6633081470002 -17.1353353879999,32.6633081470002 -9.38123504699981,35.9042989500001 -9.38123504699981,35.9042989500001 -17.1353353879999,32.6633081470002 -17.1353353879999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MWI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((99.6452280600001 0.851370341000077,99.6452280600001 7.35578034100014,119.278086785 7.35578034100014,119.278086785 0.851370341000077,99.6452280600001 0.851370341000077))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((45.0424910820001 -12.9891903629999,45.0424910820001 -12.6472307269999,45.2908634770001 -12.6472307269999,45.2908634770001 -12.9891903629999,45.0424910820001 -12.9891903629999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.7176212900001 -28.9593681839999,11.7176212900001 -16.9510572309999,25.2597807210001 -16.9510572309999,25.2597807210001 -28.9593681839999,11.7176212900001 -28.9593681839999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NAM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((163.615733269 -22.6706682269998,163.615733269 -19.623711847,171.343765287 -19.623711847,171.343765287 -22.6706682269998,163.615733269 -22.6706682269998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NCL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.152941121000111 11.69577301,0.152941121000111 23.5173511760001,15.9703218990001 23.5173511760001,15.9703218990001 11.69577301,0.152941121000111 11.69577301))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((167.912119988 -29.0800106749999,167.912119988 -28.9974911439999,167.996348504 -28.9974911439999,167.996348504 -29.0800106749999,167.912119988 -29.0800106749999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NFK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.67108199000012 4.27216217700007,2.67108199000012 13.8802908320001,14.6699361570001 13.8802908320001,14.6699361570001 4.27216217700007,2.67108199000012 4.27216217700007))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.6858210929999 10.7134815470002,-87.6858210929999 15.0309699500002,-82.7256973949999 15.0309699500002,-82.7256973949999 10.7134815470002,-87.6858210929999 10.7134815470002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-169.95042884 -19.1427548159999,-169.95042884 -18.9640438779999,-169.782907681 -18.9640438779999,-169.782907681 -19.1427548159999,-169.95042884 -19.1427548159999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.2513321609999 17.4645711740002,-63.2513321609999 53.5580915390001,7.19850590000004 53.5580915390001,7.19850590000004 17.4645711740002,-63.2513321609999 17.4645711740002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NLD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-9.11742102799991 57.993150132,-9.11742102799991 80.2481143250001,33.6403914720001 80.2481143250001,33.6403914720001 57.993150132,-9.11742102799991 57.993150132))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((80.03028772 26.3437678020001,80.03028772 30.4169041950001,88.1690674240001 30.4169041950001,88.1690674240001 26.3437678020001,80.03028772 26.3437678020001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NPL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.906993035 -0.551853122999901,166.906993035 -0.490411065999922,166.958262566 -0.490411065999922,166.958262566 -0.551853122999901,166.906993035 -0.551853122999901))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NRU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.9579972 -52.600313271,-177.9579972 -8.54322682099986,178.843923373 -8.54322682099986,178.843923373 -52.600313271,-177.9579972 -52.600313271))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'NZL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.9786149500002 16.6424060302812,51.9786149500002 26.385972398,59.8445744150001 26.385972398,59.8445744150001 16.6424060302812,51.9786149500002 16.6424060302812))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'OMN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.8443787030001 23.6945254580001,60.8443787030001 37.0544835410001,77.0489709880002 37.0544835410001,77.0489709880002 23.6945254580001,60.8443787030001 23.6945254580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.053246217 7.20571523600016,-83.053246217 9.62929248000016,-77.1632698159999 9.62929248000016,-77.1632698159999 7.20571523600016,-83.053246217 7.20571523600016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-130.753081835 -25.0770809879998,-130.753081835 -23.9244117169999,-124.778065559 -23.9244117169999,-124.778065559 -25.0770809879998,-130.753081835 -25.0770809879998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PCN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.3375575289999 -18.3377462069379,-81.3375575289999 -0.0290927119998656,-68.6842524829999 -0.0290927119998656,-68.6842524829999 -18.3377462069379,-81.3375575289999 -18.3377462069379))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((114.027679884 9.67951080900016,114.027679884 11.1179873720002,115.848806186 11.1179873720002,115.848806186 9.67951080900016,114.027679884 9.67951080900016))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((116.954925977 4.65570709800011,116.954925977 21.122381903,126.617686394 21.122381903,126.617686394 4.65570709800011,116.954925977 4.65570709800011))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((131.131114129 2.94904205900015,131.131114129 8.09661782863144,134.727342990799 8.09661782863144,134.727342990799 2.94904205900015,131.131114129 2.94904205900015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PLW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((140.84921106 -11.6363257789998,140.84921106 -1.34636809699988,155.96753991 -1.34636809699988,155.96753991 -11.6363257789998,140.84921106 -11.6363257789998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PNG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.123922973 48.9940131640001,14.123922973 54.8383242860001,24.1431563720001 54.8383242860001,24.1431563720001 48.9940131640001,14.123922973 48.9940131640001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'POL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-67.9378149079999 17.9229190120002,-67.9378149079999 18.522772528,-65.2446182929999 18.522772528,-65.2446182929999 17.9229190120002,-67.9378149079999 17.9229190120002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.211315989 37.6756045590001,124.211315989 43.010269878,130.699961785 43.010269878,130.699961785 37.6756045590001,124.211315989 37.6756045590001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-31.2849014959999 30.0292422550001,-31.2849014959999 42.15362966,-6.20594722499993 42.15362966,-6.20594722499993 30.0292422550001,-31.2849014959999 30.0292422550001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.650357219 -27.5868421429999,-62.650357219 -19.2867286169999,-54.2452888589999 -19.2867286169999,-54.2452888589999 -27.5868421429999,-62.650357219 -27.5868421429999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2002694411415 31.2114489580001,34.2002694411415 32.542640076,35.5725362550001 32.542640076,35.5725362550001 31.2114489580001,34.2002694411415 31.2114489580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PSX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-154.536976692 -27.6412085919999,-154.536976692 -7.95012786299982,-134.942982551 -7.95012786299982,-134.942982551 -27.6412085919999,-154.536976692 -27.6412085919999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'PYF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.750987175 24.5598715210001,50.750987175 26.16010163,51.6165470710001 26.16010163,51.6165470710001 24.5598715210001,50.750987175 24.5598715210001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'QAT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.2254337900002 -21.3707821589999,55.2254337900002 -20.861423435,55.8545028000001 -20.861423435,55.8545028000001 -21.3707821589999,55.2254337900002 -21.3707821589999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'REU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.2428259690001 43.6500499480001,20.2428259690001 48.2748322560001,29.6995548840001 48.2748322560001,29.6995548840001 43.6500499480001,20.2428259690001 43.6500499480001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ROU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 41.1926805620002,-180 81.8587100280001,180 81.8587100280001,180 41.1926805620002,-180 41.1926805620002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'RUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.8572355550001 -2.82685475699989,28.8572355550001 -1.05869394899987,30.8878092850001 -1.05869394899987,30.8878092850001 -2.82685475699989,28.8572355550001 -2.82685475699989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'RWA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.1046443349999 20.7669131530001,-17.1046443349999 27.6614653400001,-8.68080908199988 27.6614653400001,-8.68080908199988 20.7669131530001,-17.1046443349999 20.7669131530001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.5727645190002 16.3709446840655,34.5727645190002 32.1213479620001,55.6375647380002 32.1213479620001,55.6375647380002 16.3709446840655,34.5727645190002 16.3709446840655))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((117.751856381 15.1500820250001,117.751856381 15.1543692630001,117.755692331 15.1543692630001,117.755692331 15.1500820250001,117.751856381 15.1500820250001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SCR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8094486900001 8.6816417440001,21.8094486900001 22.2269648230001,38.6038517590002 22.2269648230001,38.6038517590002 8.6816417440001,21.8094486900001 8.6816417440001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.1215556230001 3.49020151800015,24.1215556230001 12.2161546840002,35.9208354090002 12.2161546840002,35.9208354090002 3.49020151800015,24.1215556230001 3.49020151800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.5360408189999 12.3056065880001,-17.5360408189999 16.6913853970001,-11.3777762449999 16.6913853970001,-11.3777762449999 12.3056065880001,-17.5360408189999 12.3056065880001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.6404109369999 15.8620873070001,-78.6404109369999 15.8672956400001,-78.6368708979999 15.8672956400001,-78.6368708979999 15.8620873070001,-78.6404109369999 15.8620873070001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((103.640391472 1.26430898600009,103.640391472 1.44863515800004,104.003428582 1.44863515800004,104.003428582 1.26430898600009,103.640391472 1.26430898600009))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-38.0870255199999 -59.4727515599998,-38.0870255199999 -53.9724260399999,-26.2393285799999 -53.9724260399999,-26.2393285799999 -59.4727515599998,-38.0870255199999 -59.4727515599998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-14.4177139959999 -40.3978817689998,-14.4177139959999 -7.87786223799983,-5.65038001199986 -7.87786223799983,-5.65038001199986 -40.3978817689998,-14.4177139959999 -40.3978817689998))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SHN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.4843856130001 76.4364688170001,10.4843856130001 80.7700869810001,29.7070418630001 80.7700869810001,29.7070418630001 76.4364688170001,10.4843856130001 76.4364688170001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SJM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((155.507985873 -12.2906226539999,155.507985873 -6.59986744599981,168.825856967 -6.59986744599981,168.825856967 -12.2906226539999,155.507985873 -12.2906226539999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.3010961579999 6.91941966400012,-13.3010961579999 9.99600596100012,-10.2822358799999 9.99600596100012,-10.2822358799999 6.91941966400012,-13.3010961579999 6.91941966400012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.1147790119999 13.1586367860001,-90.1147790119999 14.4453726200001,-87.6931935119999 14.4453726200001,-87.6931935119999 13.1586367860001,-90.1147790119999 13.1586367860001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.3856287450001 43.892055515,12.3856287450001 43.9825667860001,12.4923922540001 43.9825667860001,12.4923922540001 43.892055515,12.3856287450001 43.892055515))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.6472465410002 7.9965156050001,42.6472465410002 11.4989281270001,48.9391119999082 11.4989281270001,48.9391119999082 7.9965156050001,42.6472465410002 7.9965156050001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((40.9653853760002 -1.69628316497764,40.9653853760002 11.9891186460002,51.4170378110001 11.9891186460002,51.4170378110001 -1.69628316497764,40.9653853760002 -1.69628316497764))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-56.396595832 46.7527529970001,-56.396595832 47.1412621110001,-56.1447647779999 47.1412621110001,-56.1447647779999 46.7527529970001,-56.396595832 46.7527529970001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SPM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.8449784750001 42.2349425250001,18.8449784750001 46.1738752240001,22.9845707600001 46.1738752240001,22.9845707600001 42.2349425250001,18.8449784750001 42.2349425250001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SRB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.46168053500011 0.0241153020000695,6.46168053500011 1.69977448100016,7.46273847700007 1.69977448100016,7.46273847700007 0.0241153020000695,6.46168053500011 0.0241153020000695))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'STP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.0676912029999 1.83350677500007,-58.0676912029999 6.01157376600012,-53.9863574539999 6.01157376600012,-53.9863574539999 1.83350677500007,-58.0676912029999 1.83350677500007))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SUR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.8444804280001 47.7500064090001,16.8444804280001 49.601779684,22.5396366780001 49.601779684,22.5396366780001 47.7500064090001,16.8444804280001 47.7500064090001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.3652612710001 45.42363678,13.3652612710001 46.863962301,16.5153015540001 46.863962301,16.5153015540001 45.42363678,13.3652612710001 45.42363678))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1081649100001 55.3426781270001,11.1081649100001 69.0363556930001,24.1634135340001 69.0363556930001,24.1634135340001 55.3426781270001,11.1081649100001 55.3426781270001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.7829061280001 -27.3162643429999,30.7829061280001 -25.7359990439999,32.1173983160001 -25.7359990439999,32.1173983160001 -27.3162643429999,30.7829061280001 -27.3162643429999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1188858709999 18.019110419,-63.1188858709999 18.0621092720001,-63.0175685850526 18.0621092720001,-63.0175685850526 18.019110419,-63.1188858709999 18.019110419))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SXM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.2073673840002 -9.75554778399989,46.2073673840002 -3.79111093499991,56.2874455090001 -3.79111093499991,56.2874455090001 -9.75554778399989,46.2073673840002 -9.75554778399989))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.7233992850002 32.313041687,35.7233992850002 37.3249063110001,42.377185506 37.3249063110001,42.377185506 32.313041687,35.7233992850002 32.313041687))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.481312629 21.2901065120001,-72.481312629 21.9592145850001,-71.1288956369999 21.9592145850001,-71.1288956369999 21.2901065120001,-72.481312629 21.2901065120001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.4491837970001 7.45556671100012,13.4491837970001 23.4447199510001,23.9844063720001 23.4447199510001,23.9844063720001 7.45556671100012,13.4491837970001 7.45556671100012))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.16610917099996 6.100490848287,-0.16610917099996 11.1349803670001,1.78235070800014 11.1349803670001,1.78235070800014 6.100490848287,-0.16610917099996 6.100490848287))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TGO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((97.3514010010001 5.62989003500013,97.3514010010001 20.4450064090001,105.650997762 20.4450064090001,105.650997762 5.62989003500013,97.3514010010001 5.62989003500013))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'THA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((67.3426900630002 36.6786408490002,67.3426900630002 41.0399767050001,75.1641247970001 41.0399767050001,75.1641247970001 36.6786408490002,67.3426900630002 36.6786408490002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TJK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-171.086537239 -11.0660946589999,-171.086537239 -11.0513648419999,-171.072824674 -11.0513648419999,-171.072824674 -11.0660946589999,-171.086537239 -11.0660946589999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((52.4376706173443 35.140646871,52.4376706173443 42.791187643,66.6457816980001 42.791187643,66.6457816980001 35.140646871,52.4376706173443 35.140646871))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.03003991 -9.5012277219999,124.03003991 -8.13502369599983,127.313243035 -8.13502369599983,127.313243035 -9.5012277219999,124.03003991 -9.5012277219999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TLS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-176.219309049 -22.3387997379999,-176.219309049 -15.5595028629999,-173.914255338 -15.5595028629999,-173.914255338 -22.3387997379999,-176.219309049 -22.3387997379999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TON'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.9287003249999 10.0420596370002,-61.9287003249999 11.3510602890001,-60.5220841139999 11.3510602890001,-60.5220841139999 10.0420596370002,-61.9287003249999 10.0420596370002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TTO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.4798323980001 30.2289053350001,7.4798323980001 37.3452009140002,11.5641309000001 37.3452009140002,11.5641309000001 30.2289053350001,7.4798323980001 30.2289053350001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.663259311 35.819778545,25.663259311 42.0987816430001,44.8069928290001 42.0987816430001,44.8069928290001 35.819778545,25.663259311 35.819778545))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((176.125254754 -9.42066822699981,176.125254754 -5.67750416499986,179.906748894 -5.67750416499986,179.906748894 -9.42066822699981,176.125254754 -9.42066822699981))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((118.279551629 21.9046084660001,118.279551629 25.287420966,122.005381707 25.287420966,122.005381707 21.9046084660001,118.279551629 21.9046084660001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TWN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.3210315350001 -11.7312724819999,29.3210315350001 -0.985830179999823,40.4493921230001 -0.985830179999823,40.4493921230001 -11.7312724819999,29.3210315350001 -11.7312724819999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'TZA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.5484595130001 -1.47520599399984,29.5484595130001 4.21969187500011,35.0064726150001 4.21969187500011,35.0064726150001 -1.47520599399984,29.5484595130001 -1.47520599399984))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.1328398030001 44.381048895,22.1328398030001 52.3689492800001,40.1595430910002 52.3689492800001,40.1595430910002 44.381048895,22.1328398030001 44.381048895))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UKR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.389597134 -0.388767184999892,-177.389597134 28.2153181010001,166.652354363 28.2153181010001,166.652354363 -0.388767184999892,-177.389597134 -0.388767184999892))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UMI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.4393611319999 -34.9734026019999,-58.4393611319999 -30.0968698119999,-53.1108361419999 -30.0968698119999,-53.1108361419999 -34.9734026019999,-58.4393611319999 -34.9734026019999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'URY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-179.143503384 18.9061171430001,-179.143503384 71.4125023460001,179.780935092 71.4125023460001,179.780935092 18.9061171430001,-179.143503384 18.9061171430001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'USA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.2328569552957 19.8911422360002,-75.2328569552957 19.9715836900001,-75.0949502909999 19.9715836900001,-75.0949502909999 19.8911422360002,-75.2328569552957 19.8911422360002))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'USG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.9758386630001 37.1851474,55.9758386630001 45.5587189740001,73.1486405840002 45.5587189740001,73.1486405840002 37.1851474,55.9758386630001 37.1851474))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'UZB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.4527140820001 41.9027519410001,12.4527140820001 41.9039147380001,12.4540354420001 41.9039147380001,12.4540354420001 41.9027519410001,12.4527140820001 41.9027519410001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VAT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4598282539999 12.5851504580001,-61.4598282539999 13.3807640650001,-61.1239314439999 13.3807640650001,-61.1239314439999 12.5851504580001,-61.4598282539999 12.5851504580001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VCT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.3911486409999 0.649315491000067,-73.3911486409999 15.7029483090001,-59.815594849 15.7029483090001,-59.815594849 0.649315491000067,-73.3911486409999 0.649315491000067))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.7739965489999 18.3346621770001,-64.7739965489999 18.74624258,-64.2707413399999 18.74624258,-64.2707413399999 18.3346621770001,-64.7739965489999 18.3346621770001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VGB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-65.0414934419999 17.6827660180001,-65.0414934419999 18.3865986140001,-64.5593969389999 18.3865986140001,-64.5593969389999 17.6827660180001,-65.0414934419999 17.6827660180001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VIR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.118655233 8.56557851800015,102.118655233 23.3662751270001,109.472422722 23.3662751270001,109.472422722 8.56557851800015,102.118655233 8.56557851800015))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VNM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.520518425 -20.2531063779999,166.520518425 -13.0648739559998,169.898936394 -13.0648739559998,169.898936394 -20.2531063779999,166.520518425 -20.2531063779999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'VUT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-178.185739713 -14.3194312479999,-178.185739713 -13.208916925,-176.125599739 -13.208916925,-176.125599739 -14.3194312479999,-178.185739713 -14.3194312479999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WLF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.7601022650002 34.5685488950001,32.7601022650002 34.7009482940001,33.03028405 34.7009482940001,33.03028405 34.5685488950001,32.7601022650002 34.5685488950001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-172.782582161 -14.052829685,-172.782582161 -13.4628231749999,-171.437692838 -13.4628231749999,-171.437692838 -14.052829685,-172.782582161 -14.052829685))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.5457462900001 12.1114436720001,42.5457462900001 18.9956375130001,54.5402938160002 18.9956375130001,54.5402938160002 12.1114436720001,42.5457462900001 12.1114436720001))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'YEM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.4699813160001 -46.965752863,16.4699813160001 -22.1264519249999,37.9777938160001 -22.1264519249999,37.9777938160001 -46.965752863,16.4699813160001 -46.965752863))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.9798775630001 -18.0692318719999,21.9798775630001 -8.1941240429999,33.674202515 -8.1941240429999,33.674202515 -18.0692318719999,21.9798775630001 -18.0692318719999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZMB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.219369751 -22.3973397829999,25.219369751 -15.6148080449999,33.0427681890002 -15.6148080449999,33.0427681890002 -22.3973397829999,25.219369751 -22.3973397829999))', 4326), ST_Centroid(the_geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZWE'" should true - - # checks that the synonym table includes at least two rows per region: ISO3 code and name -} - function test_geocoding_functions_admin0() { # checks that an invalid input returns a false result and an empty geometry - sql postgres "SELECT (geocode_admin0_polygons(Array['Null Island'])).success" should false - sql postgres "SELECT (geocode_admin0_polygons(Array['Null Island'])).geom is null" should true - - # checks that the synonym function is working + sql "SELECT (geocode_admin0_polygons(Array['Null Island'])).success" should false + sql "SELECT (geocode_admin0_polygons(Array['Null Island'])).geom is null" should true + sql "SELECT (admin0_synonym_lookup(Array['Null Island'])).adm0_a3 is null" should true + # checks that all the geometries have the expected type: ST_MultiPolygon + sql "select distinct(st_geometrytype((geocode_admin0_polygons(Array['AGO', 'FRH', 'REU', 'BHR', 'BHS', 'BLR', 'CHN', 'CSI', 'COL', 'KOR', 'AFG', 'ATC', 'ATG', 'AUT', 'VUT', 'SXM', 'USA', 'UZB', 'LAO', 'MAF', 'MAR', 'MOZ', 'ROU', 'SDN', 'SDS', 'SOM', 'SYR', 'URY', 'ABW', 'AUS', 'AIA', 'ALB', 'BEN', 'ARG', 'ATA', 'AZE', 'BIH', 'BJN', 'ARE', 'ALD', 'AND', 'ARM', 'ATF', 'BGR', 'PAK', 'BLM', 'BLZ', 'CUW', 'BMU', 'BOL', 'BDI', 'BEL', 'BFA', 'BGD', 'BRA', 'BRB', 'CHE', 'CHL', 'CIV', 'IDN', 'OMN', 'COG', 'HUN', 'IRQ', 'NOR', 'BRN', 'CLP', 'CMR', 'COD', 'COK', 'GIB', 'GIN', 'NPL', 'FRA', 'CNM', 'BTN', 'BWA', 'CAF', 'CAN', 'COM', 'CYM', 'CPV', 'CRI', 'CUB', 'ECU', 'ISL', 'CYN', 'EGY', 'CYP', 'CZE', 'DEU', 'ERI', 'DJI', 'TGO', 'DMA', 'DNK', 'DOM', 'DZA', 'GUM', 'GUY', 'ESB', 'ESP', 'EST', 'ETH', 'FIN', 'FJI', 'FLK', 'FRO', 'KGZ', 'GRC', 'NRU', 'FSM', 'GAB', 'GBR', 'GEO', 'KHM', 'KIR', 'NCL', 'GGY', 'GHA', 'GNQ', 'GMB', 'GNB', 'GRD', 'GRL', 'HKG', 'GTM', 'HMD', 'HND', 'HRV', 'HTI', 'IMN', 'IND', 'IOT', 'IRL', 'IRN', 'KAB', 'KAS', 'KEN', 'NIU', 'NER', 'KAZ', 'JAM', 'JEY', 'MDV', 'ISR', 'ITA', 'JOR', 'JPN', 'MEX', 'KNA', 'KOS', 'MMR', 'LCA', 'LIE', 'MAC', 'NLD', 'KWT', 'LKA', 'MLT', 'LBN', 'LBR', 'LBY', 'MCO', 'LSO', 'LTU', 'MDA', 'MDG', 'LUX', 'LVA', 'MHL', 'RUS', 'MNP', 'NZL', 'MKD', 'MLI', 'MRT', 'MNE', 'MNG', 'THA', 'MSR', 'MUS', 'MWI', 'MYS', 'NAM', 'NFK', 'NGA', 'NIC', 'PAN', 'PCN', 'PER', 'TJK', 'PGA', 'PHL', 'SLE', 'PRK', 'WSB', 'SHN', 'SLB', 'SPM', 'PLW', 'PNG', 'POL', 'PRI', 'PRT', 'PRY', 'SEN', 'PSX', 'PYF', 'QAT', 'SCR', 'STP', 'SUR', 'SVK', 'SVN', 'SWE', 'SRB', 'UKR', 'RWA', 'SER', 'VAT', 'SGP', 'SAH', 'SAU', 'SGS', 'UGA', 'SOL', 'TUR', 'WLF', 'SWZ', 'SLV', 'SMR', 'TCA', 'TCD', 'SYC', 'TKM', 'YEM', 'TLS', 'TUV', 'ZAF', 'VCT', 'VEN', 'TON', 'TTO', 'TUN', 'TWN', 'TZA', 'UMI', 'USG', 'VGB', 'VIR', 'VNM', 'WSM', 'ZMB', 'ZWE', 'CXR', 'MTQ', 'MYT', 'GLP', 'SJM', 'CCK', 'BES', 'TKL', 'ASM', 'IOA', 'BVT', 'GUF'])).geom))" should ST_MultiPolygon + + # checks that the synonym service includes the official english name of the regions + sql "SELECT (admin0_synonym_lookup(Array['Azerbaijan'])).adm0_a3" should AZE + sql "SELECT (admin0_synonym_lookup(Array['Georgia'])).adm0_a3" should GEO + sql "SELECT (admin0_synonym_lookup(Array['Bahrain'])).adm0_a3" should BHR + sql "SELECT (admin0_synonym_lookup(Array['Guinea Bissau'])).adm0_a3" should GNB + sql "SELECT (admin0_synonym_lookup(Array['Kazakhstan'])).adm0_a3" should KAZ + sql "SELECT (admin0_synonym_lookup(Array['Heard Island and McDonald Islands'])).adm0_a3" should HMD + sql "SELECT (admin0_synonym_lookup(Array['Honduras'])).adm0_a3" should HND + sql "SELECT (admin0_synonym_lookup(Array['Norway'])).adm0_a3" should NOR + sql "SELECT (admin0_synonym_lookup(Array['Suriname'])).adm0_a3" should SUR + sql "SELECT (admin0_synonym_lookup(Array['Chad'])).adm0_a3" should TCD + sql "SELECT (admin0_synonym_lookup(Array['Spain'])).adm0_a3" should ESP + sql "SELECT (admin0_synonym_lookup(Array['Brazil'])).adm0_a3" should BRA + sql "SELECT (admin0_synonym_lookup(Array['Anguilla'])).adm0_a3" should AIA + sql "SELECT (admin0_synonym_lookup(Array['Albania'])).adm0_a3" should ALB + sql "SELECT (admin0_synonym_lookup(Array['Argentina'])).adm0_a3" should ARG + sql "SELECT (admin0_synonym_lookup(Array['Aruba'])).adm0_a3" should ABW + sql "SELECT (admin0_synonym_lookup(Array['Afghanistan'])).adm0_a3" should AFG + sql "SELECT (admin0_synonym_lookup(Array['Angola'])).adm0_a3" should AGO + sql "SELECT (admin0_synonym_lookup(Array['Cameroon'])).adm0_a3" should CMR + sql "SELECT (admin0_synonym_lookup(Array['Somalia'])).adm0_a3" should SOM + sql "SELECT (admin0_synonym_lookup(Array['Democratic Republic of the Congo'])).adm0_a3" should COD + sql "SELECT (admin0_synonym_lookup(Array['Republic of Congo'])).adm0_a3" should COG + sql "SELECT (admin0_synonym_lookup(Array['United Arab Emirates'])).adm0_a3" should ARE + sql "SELECT (admin0_synonym_lookup(Array['Estonia'])).adm0_a3" should EST + sql "SELECT (admin0_synonym_lookup(Array['American Samoa'])).adm0_a3" should ASM + sql "SELECT (admin0_synonym_lookup(Array['Antarctica'])).adm0_a3" should ATA + sql "SELECT (admin0_synonym_lookup(Array['Ashmore and Cartier Islands'])).adm0_a3" should ATC + sql "SELECT (admin0_synonym_lookup(Array['Saint Barthelemy'])).adm0_a3" should BLM + sql "SELECT (admin0_synonym_lookup(Array['Bajo Nuevo Bank (Petrel Is.)'])).adm0_a3" should BJN + sql "SELECT (admin0_synonym_lookup(Array['Belarus'])).adm0_a3" should BLR + sql "SELECT (admin0_synonym_lookup(Array['Belize'])).adm0_a3" should BLZ + sql "SELECT (admin0_synonym_lookup(Array['Antigua and Barbuda'])).adm0_a3" should ATG + sql "SELECT (admin0_synonym_lookup(Array['Australia'])).adm0_a3" should AUS + sql "SELECT (admin0_synonym_lookup(Array['Austria'])).adm0_a3" should AUT + sql "SELECT (admin0_synonym_lookup(Array['The Bahamas'])).adm0_a3" should BHS + sql "SELECT (admin0_synonym_lookup(Array['Bosnia and Herzegovina'])).adm0_a3" should BIH + sql "SELECT (admin0_synonym_lookup(Array['Ivory Coast'])).adm0_a3" should CIV + sql "SELECT (admin0_synonym_lookup(Array['Aland'])).adm0_a3" should ALD + sql "SELECT (admin0_synonym_lookup(Array['Andorra'])).adm0_a3" should AND + sql "SELECT (admin0_synonym_lookup(Array['Armenia'])).adm0_a3" should ARM + sql "SELECT (admin0_synonym_lookup(Array['French Southern and Antarctic Lands'])).adm0_a3" should ATF + sql "SELECT (admin0_synonym_lookup(Array['Bulgaria'])).adm0_a3" should BGR + sql "SELECT (admin0_synonym_lookup(Array['Ecuador'])).adm0_a3" should ECU + sql "SELECT (admin0_synonym_lookup(Array['Bermuda'])).adm0_a3" should BMU + sql "SELECT (admin0_synonym_lookup(Array['Bolivia'])).adm0_a3" should BOL + sql "SELECT (admin0_synonym_lookup(Array['Barbados'])).adm0_a3" should BRB + sql "SELECT (admin0_synonym_lookup(Array['Switzerland'])).adm0_a3" should CHE + sql "SELECT (admin0_synonym_lookup(Array['Chile'])).adm0_a3" should CHL + sql "SELECT (admin0_synonym_lookup(Array['China'])).adm0_a3" should CHN + sql "SELECT (admin0_synonym_lookup(Array['Burundi'])).adm0_a3" should BDI + sql "SELECT (admin0_synonym_lookup(Array['Belgium'])).adm0_a3" should BEL + sql "SELECT (admin0_synonym_lookup(Array['Benin'])).adm0_a3" should BEN + sql "SELECT (admin0_synonym_lookup(Array['Burkina Faso'])).adm0_a3" should BFA + sql "SELECT (admin0_synonym_lookup(Array['Bangladesh'])).adm0_a3" should BGD + sql "SELECT (admin0_synonym_lookup(Array['Brunei'])).adm0_a3" should BRN + sql "SELECT (admin0_synonym_lookup(Array['Clipperton Island'])).adm0_a3" should CLP + sql "SELECT (admin0_synonym_lookup(Array['Ethiopia'])).adm0_a3" should ETH + sql "SELECT (admin0_synonym_lookup(Array['Finland'])).adm0_a3" should FIN + sql "SELECT (admin0_synonym_lookup(Array['Cook Islands'])).adm0_a3" should COK + sql "SELECT (admin0_synonym_lookup(Array['Colombia'])).adm0_a3" should COL + sql "SELECT (admin0_synonym_lookup(Array['Curaçao'])).adm0_a3" should CUW + sql "SELECT (admin0_synonym_lookup(Array['Cyprus No Mans Area'])).adm0_a3" should CNM + sql "SELECT (admin0_synonym_lookup(Array['Comoros'])).adm0_a3" should COM + sql "SELECT (admin0_synonym_lookup(Array['Croatia'])).adm0_a3" should HRV + sql "SELECT (admin0_synonym_lookup(Array['Falkland Islands'])).adm0_a3" should FLK + sql "SELECT (admin0_synonym_lookup(Array['France'])).adm0_a3" should FRA + sql "SELECT (admin0_synonym_lookup(Array['Gibraltar'])).adm0_a3" should GIB + sql "SELECT (admin0_synonym_lookup(Array['Fiji'])).adm0_a3" should FJI + sql "SELECT (admin0_synonym_lookup(Array['Bhutan'])).adm0_a3" should BTN + sql "SELECT (admin0_synonym_lookup(Array['Botswana'])).adm0_a3" should BWA + sql "SELECT (admin0_synonym_lookup(Array['Central African Republic'])).adm0_a3" should CAF + sql "SELECT (admin0_synonym_lookup(Array['Canada'])).adm0_a3" should CAN + sql "SELECT (admin0_synonym_lookup(Array['Cape Verde'])).adm0_a3" should CPV + sql "SELECT (admin0_synonym_lookup(Array['Costa Rica'])).adm0_a3" should CRI + sql "SELECT (admin0_synonym_lookup(Array['Coral Sea Islands'])).adm0_a3" should CSI + sql "SELECT (admin0_synonym_lookup(Array['Cuba'])).adm0_a3" should CUB + sql "SELECT (admin0_synonym_lookup(Array['Cayman Islands'])).adm0_a3" should CYM + sql "SELECT (admin0_synonym_lookup(Array['Dhekelia Sovereign Base Area'])).adm0_a3" should ESB + sql "SELECT (admin0_synonym_lookup(Array['Northern Cyprus'])).adm0_a3" should CYN + sql "SELECT (admin0_synonym_lookup(Array['Egypt'])).adm0_a3" should EGY + sql "SELECT (admin0_synonym_lookup(Array['Guinea'])).adm0_a3" should GIN + sql "SELECT (admin0_synonym_lookup(Array['Haiti'])).adm0_a3" should HTI + sql "SELECT (admin0_synonym_lookup(Array['Cyprus'])).adm0_a3" should CYP + sql "SELECT (admin0_synonym_lookup(Array['Czech Republic'])).adm0_a3" should CZE + sql "SELECT (admin0_synonym_lookup(Array['Niger'])).adm0_a3" should NER + sql "SELECT (admin0_synonym_lookup(Array['Germany'])).adm0_a3" should DEU + sql "SELECT (admin0_synonym_lookup(Array['Eritrea'])).adm0_a3" should ERI + sql "SELECT (admin0_synonym_lookup(Array['Hungary'])).adm0_a3" should HUN + sql "SELECT (admin0_synonym_lookup(Array['Dominica'])).adm0_a3" should DMA + sql "SELECT (admin0_synonym_lookup(Array['Denmark'])).adm0_a3" should DNK + sql "SELECT (admin0_synonym_lookup(Array['Dominican Republic'])).adm0_a3" should DOM + sql "SELECT (admin0_synonym_lookup(Array['Algeria'])).adm0_a3" should DZA + sql "SELECT (admin0_synonym_lookup(Array['Indonesia'])).adm0_a3" should IDN + sql "SELECT (admin0_synonym_lookup(Array['Djibouti'])).adm0_a3" should DJI + sql "SELECT (admin0_synonym_lookup(Array['Ghana'])).adm0_a3" should GHA + sql "SELECT (admin0_synonym_lookup(Array['Federated States of Micronesia'])).adm0_a3" should FSM + sql "SELECT (admin0_synonym_lookup(Array['Gabon'])).adm0_a3" should GAB + sql "SELECT (admin0_synonym_lookup(Array['United Kingdom'])).adm0_a3" should GBR + sql "SELECT (admin0_synonym_lookup(Array['Guernsey'])).adm0_a3" should GGY + sql "SELECT (admin0_synonym_lookup(Array['Faroe Islands'])).adm0_a3" should FRO + sql "SELECT (admin0_synonym_lookup(Array['Guam'])).adm0_a3" should GUM + sql "SELECT (admin0_synonym_lookup(Array['Guyana'])).adm0_a3" should GUY + sql "SELECT (admin0_synonym_lookup(Array['Equatorial Guinea'])).adm0_a3" should GNQ + sql "SELECT (admin0_synonym_lookup(Array['Greece'])).adm0_a3" should GRC + sql "SELECT (admin0_synonym_lookup(Array['Siachen Glacier'])).adm0_a3" should KAS + sql "SELECT (admin0_synonym_lookup(Array['Grenada'])).adm0_a3" should GRD + sql "SELECT (admin0_synonym_lookup(Array['Greenland'])).adm0_a3" should GRL + sql "SELECT (admin0_synonym_lookup(Array['Hong Kong S.A.R.'])).adm0_a3" should HKG + sql "SELECT (admin0_synonym_lookup(Array['Gambia'])).adm0_a3" should GMB + sql "SELECT (admin0_synonym_lookup(Array['Kenya'])).adm0_a3" should KEN + sql "SELECT (admin0_synonym_lookup(Array['Guatemala'])).adm0_a3" should GTM + sql "SELECT (admin0_synonym_lookup(Array['Isle of Man'])).adm0_a3" should IMN + sql "SELECT (admin0_synonym_lookup(Array['India'])).adm0_a3" should IND + sql "SELECT (admin0_synonym_lookup(Array['Kyrgyzstan'])).adm0_a3" should KGZ + sql "SELECT (admin0_synonym_lookup(Array['Cambodia'])).adm0_a3" should KHM + sql "SELECT (admin0_synonym_lookup(Array['Indian Ocean Territories'])).adm0_a3" should IOA + sql "SELECT (admin0_synonym_lookup(Array['Nigeria'])).adm0_a3" should NGA + sql "SELECT (admin0_synonym_lookup(Array['British Indian Ocean Territory'])).adm0_a3" should IOT + sql "SELECT (admin0_synonym_lookup(Array['Ireland'])).adm0_a3" should IRL + sql "SELECT (admin0_synonym_lookup(Array['Iran'])).adm0_a3" should IRN + sql "SELECT (admin0_synonym_lookup(Array['Iraq'])).adm0_a3" should IRQ + sql "SELECT (admin0_synonym_lookup(Array['Iceland'])).adm0_a3" should ISL + sql "SELECT (admin0_synonym_lookup(Array['Liechtenstein'])).adm0_a3" should LIE + sql "SELECT (admin0_synonym_lookup(Array['Baykonur Cosmodrome'])).adm0_a3" should KAB + sql "SELECT (admin0_synonym_lookup(Array['Kiribati'])).adm0_a3" should KIR + sql "SELECT (admin0_synonym_lookup(Array['Saint Kitts and Nevis'])).adm0_a3" should KNA + sql "SELECT (admin0_synonym_lookup(Array['South Korea'])).adm0_a3" should KOR + sql "SELECT (admin0_synonym_lookup(Array['Morocco'])).adm0_a3" should MAR + sql "SELECT (admin0_synonym_lookup(Array['Niue'])).adm0_a3" should NIU + sql "SELECT (admin0_synonym_lookup(Array['Jamaica'])).adm0_a3" should JAM + sql "SELECT (admin0_synonym_lookup(Array['Jersey'])).adm0_a3" should JEY + sql "SELECT (admin0_synonym_lookup(Array['Maldives'])).adm0_a3" should MDV + sql "SELECT (admin0_synonym_lookup(Array['Israel'])).adm0_a3" should ISR + sql "SELECT (admin0_synonym_lookup(Array['Italy'])).adm0_a3" should ITA + sql "SELECT (admin0_synonym_lookup(Array['Jordan'])).adm0_a3" should JOR + sql "SELECT (admin0_synonym_lookup(Array['Japan'])).adm0_a3" should JPN + sql "SELECT (admin0_synonym_lookup(Array['Mexico'])).adm0_a3" should MEX + sql "SELECT (admin0_synonym_lookup(Array['Kosovo'])).adm0_a3" should KOS + sql "SELECT (admin0_synonym_lookup(Array['Saint Lucia'])).adm0_a3" should LCA + sql "SELECT (admin0_synonym_lookup(Array['Namibia'])).adm0_a3" should NAM + sql "SELECT (admin0_synonym_lookup(Array['Kuwait'])).adm0_a3" should KWT + sql "SELECT (admin0_synonym_lookup(Array['Laos'])).adm0_a3" should LAO + sql "SELECT (admin0_synonym_lookup(Array['Sri Lanka'])).adm0_a3" should LKA + sql "SELECT (admin0_synonym_lookup(Array['Norfolk Island'])).adm0_a3" should NFK + sql "SELECT (admin0_synonym_lookup(Array['Malta'])).adm0_a3" should MLT + sql "SELECT (admin0_synonym_lookup(Array['Myanmar'])).adm0_a3" should MMR + sql "SELECT (admin0_synonym_lookup(Array['Macao S.A.R'])).adm0_a3" should MAC + sql "SELECT (admin0_synonym_lookup(Array['Saint Martin'])).adm0_a3" should MAF + sql "SELECT (admin0_synonym_lookup(Array['Luxembourg'])).adm0_a3" should LUX + sql "SELECT (admin0_synonym_lookup(Array['Latvia'])).adm0_a3" should LVA + sql "SELECT (admin0_synonym_lookup(Array['Lebanon'])).adm0_a3" should LBN + sql "SELECT (admin0_synonym_lookup(Array['Liberia'])).adm0_a3" should LBR + sql "SELECT (admin0_synonym_lookup(Array['Libya'])).adm0_a3" should LBY + sql "SELECT (admin0_synonym_lookup(Array['Monaco'])).adm0_a3" should MCO + sql "SELECT (admin0_synonym_lookup(Array['Lesotho'])).adm0_a3" should LSO + sql "SELECT (admin0_synonym_lookup(Array['Lithuania'])).adm0_a3" should LTU + sql "SELECT (admin0_synonym_lookup(Array['Moldova'])).adm0_a3" should MDA + sql "SELECT (admin0_synonym_lookup(Array['Madagascar'])).adm0_a3" should MDG + sql "SELECT (admin0_synonym_lookup(Array['Marshall Islands'])).adm0_a3" should MHL + sql "SELECT (admin0_synonym_lookup(Array['New Caledonia'])).adm0_a3" should NCL + sql "SELECT (admin0_synonym_lookup(Array['Nicaragua'])).adm0_a3" should NIC + sql "SELECT (admin0_synonym_lookup(Array['Netherlands'])).adm0_a3" should NLD + sql "SELECT (admin0_synonym_lookup(Array['Mauritius'])).adm0_a3" should MUS + sql "SELECT (admin0_synonym_lookup(Array['Malawi'])).adm0_a3" should MWI + sql "SELECT (admin0_synonym_lookup(Array['Malaysia'])).adm0_a3" should MYS + sql "SELECT (admin0_synonym_lookup(Array['Ukraine'])).adm0_a3" should UKR + sql "SELECT (admin0_synonym_lookup(Array['Northern Mariana Islands'])).adm0_a3" should MNP + sql "SELECT (admin0_synonym_lookup(Array['Mozambique'])).adm0_a3" should MOZ + sql "SELECT (admin0_synonym_lookup(Array['Macedonia'])).adm0_a3" should MKD + sql "SELECT (admin0_synonym_lookup(Array['Mali'])).adm0_a3" should MLI + sql "SELECT (admin0_synonym_lookup(Array['Mauritania'])).adm0_a3" should MRT + sql "SELECT (admin0_synonym_lookup(Array['Montenegro'])).adm0_a3" should MNE + sql "SELECT (admin0_synonym_lookup(Array['Mongolia'])).adm0_a3" should MNG + sql "SELECT (admin0_synonym_lookup(Array['Peru'])).adm0_a3" should PER + sql "SELECT (admin0_synonym_lookup(Array['Montserrat'])).adm0_a3" should MSR + sql "SELECT (admin0_synonym_lookup(Array['Nepal'])).adm0_a3" should NPL + sql "SELECT (admin0_synonym_lookup(Array['Nauru'])).adm0_a3" should NRU + sql "SELECT (admin0_synonym_lookup(Array['New Zealand'])).adm0_a3" should NZL + sql "SELECT (admin0_synonym_lookup(Array['Oman'])).adm0_a3" should OMN + sql "SELECT (admin0_synonym_lookup(Array['Pakistan'])).adm0_a3" should PAK + sql "SELECT (admin0_synonym_lookup(Array['Panama'])).adm0_a3" should PAN + sql "SELECT (admin0_synonym_lookup(Array['Pitcairn Islands'])).adm0_a3" should PCN + sql "SELECT (admin0_synonym_lookup(Array['Spratly Islands'])).adm0_a3" should PGA + sql "SELECT (admin0_synonym_lookup(Array['Philippines'])).adm0_a3" should PHL + sql "SELECT (admin0_synonym_lookup(Array['Romania'])).adm0_a3" should ROU + sql "SELECT (admin0_synonym_lookup(Array['Sierra Leone'])).adm0_a3" should SLE + sql "SELECT (admin0_synonym_lookup(Array['Slovenia'])).adm0_a3" should SVN + sql "SELECT (admin0_synonym_lookup(Array['Sweden'])).adm0_a3" should SWE + sql "SELECT (admin0_synonym_lookup(Array['Russia'])).adm0_a3" should RUS + sql "SELECT (admin0_synonym_lookup(Array['Saint Pierre and Miquelon'])).adm0_a3" should SPM + sql "SELECT (admin0_synonym_lookup(Array['Republic of Serbia'])).adm0_a3" should SRB + sql "SELECT (admin0_synonym_lookup(Array['Saint Helena'])).adm0_a3" should SHN + sql "SELECT (admin0_synonym_lookup(Array['Palau'])).adm0_a3" should PLW + sql "SELECT (admin0_synonym_lookup(Array['Papua New Guinea'])).adm0_a3" should PNG + sql "SELECT (admin0_synonym_lookup(Array['Poland'])).adm0_a3" should POL + sql "SELECT (admin0_synonym_lookup(Array['Solomon Islands'])).adm0_a3" should SLB + sql "SELECT (admin0_synonym_lookup(Array['Puerto Rico'])).adm0_a3" should PRI + sql "SELECT (admin0_synonym_lookup(Array['North Korea'])).adm0_a3" should PRK + sql "SELECT (admin0_synonym_lookup(Array['Portugal'])).adm0_a3" should PRT + sql "SELECT (admin0_synonym_lookup(Array['Paraguay'])).adm0_a3" should PRY + sql "SELECT (admin0_synonym_lookup(Array['Senegal'])).adm0_a3" should SEN + sql "SELECT (admin0_synonym_lookup(Array['Palestine'])).adm0_a3" should PSX + sql "SELECT (admin0_synonym_lookup(Array['French Polynesia'])).adm0_a3" should PYF + sql "SELECT (admin0_synonym_lookup(Array['Qatar'])).adm0_a3" should QAT + sql "SELECT (admin0_synonym_lookup(Array['Rwanda'])).adm0_a3" should RWA + sql "SELECT (admin0_synonym_lookup(Array['Serranilla Bank'])).adm0_a3" should SER + sql "SELECT (admin0_synonym_lookup(Array['Scarborough Reef'])).adm0_a3" should SCR + sql "SELECT (admin0_synonym_lookup(Array['Singapore'])).adm0_a3" should SGP + sql "SELECT (admin0_synonym_lookup(Array['Western Sahara'])).adm0_a3" should SAH + sql "SELECT (admin0_synonym_lookup(Array['Saudi Arabia'])).adm0_a3" should SAU + sql "SELECT (admin0_synonym_lookup(Array['Sudan'])).adm0_a3" should SDN + sql "SELECT (admin0_synonym_lookup(Array['South Sudan'])).adm0_a3" should SDS + sql "SELECT (admin0_synonym_lookup(Array['Akrotiri Sovereign Base Area'])).adm0_a3" should WSB + sql "SELECT (admin0_synonym_lookup(Array['Sao Tome and Principe'])).adm0_a3" should STP + sql "SELECT (admin0_synonym_lookup(Array['South Georgia and South Sandwich Islands'])).adm0_a3" should SGS + sql "SELECT (admin0_synonym_lookup(Array['Uganda'])).adm0_a3" should UGA + sql "SELECT (admin0_synonym_lookup(Array['Swaziland'])).adm0_a3" should SWZ + sql "SELECT (admin0_synonym_lookup(Array['Sint Maarten'])).adm0_a3" should SXM + sql "SELECT (admin0_synonym_lookup(Array['Thailand'])).adm0_a3" should THA + sql "SELECT (admin0_synonym_lookup(Array['Turkmenistan'])).adm0_a3" should TKM + sql "SELECT (admin0_synonym_lookup(Array['Wallis and Futuna'])).adm0_a3" should WLF + sql "SELECT (admin0_synonym_lookup(Array['El Salvador'])).adm0_a3" should SLV + sql "SELECT (admin0_synonym_lookup(Array['San Marino'])).adm0_a3" should SMR + sql "SELECT (admin0_synonym_lookup(Array['Somaliland'])).adm0_a3" should SOL + sql "SELECT (admin0_synonym_lookup(Array['Turkey'])).adm0_a3" should TUR + sql "SELECT (admin0_synonym_lookup(Array['Vanuatu'])).adm0_a3" should VUT + sql "SELECT (admin0_synonym_lookup(Array['Slovakia'])).adm0_a3" should SVK + sql "SELECT (admin0_synonym_lookup(Array['Turks and Caicos Islands'])).adm0_a3" should TCA + sql "SELECT (admin0_synonym_lookup(Array['Togo'])).adm0_a3" should TGO + sql "SELECT (admin0_synonym_lookup(Array['Seychelles'])).adm0_a3" should SYC + sql "SELECT (admin0_synonym_lookup(Array['Syria'])).adm0_a3" should SYR + sql "SELECT (admin0_synonym_lookup(Array['Tajikistan'])).adm0_a3" should TJK + sql "SELECT (admin0_synonym_lookup(Array['East Timor'])).adm0_a3" should TLS + sql "SELECT (admin0_synonym_lookup(Array['Vatican'])).adm0_a3" should VAT + sql "SELECT (admin0_synonym_lookup(Array['Uruguay'])).adm0_a3" should URY + sql "SELECT (admin0_synonym_lookup(Array['United States of America'])).adm0_a3" should USA + sql "SELECT (admin0_synonym_lookup(Array['Tuvalu'])).adm0_a3" should TUV + sql "SELECT (admin0_synonym_lookup(Array['US Naval Base Guantanamo Bay'])).adm0_a3" should USG + sql "SELECT (admin0_synonym_lookup(Array['Uzbekistan'])).adm0_a3" should UZB + sql "SELECT (admin0_synonym_lookup(Array['Tonga'])).adm0_a3" should TON + sql "SELECT (admin0_synonym_lookup(Array['United States Minor Outlying Islands'])).adm0_a3" should UMI + sql "SELECT (admin0_synonym_lookup(Array['Trinidad and Tobago'])).adm0_a3" should TTO + sql "SELECT (admin0_synonym_lookup(Array['Tunisia'])).adm0_a3" should TUN + sql "SELECT (admin0_synonym_lookup(Array['Taiwan'])).adm0_a3" should TWN + sql "SELECT (admin0_synonym_lookup(Array['United Republic of Tanzania'])).adm0_a3" should TZA + sql "SELECT (admin0_synonym_lookup(Array['Saint Vincent and the Grenadines'])).adm0_a3" should VCT + sql "SELECT (admin0_synonym_lookup(Array['Venezuela'])).adm0_a3" should VEN + sql "SELECT (admin0_synonym_lookup(Array['British Virgin Islands'])).adm0_a3" should VGB + sql "SELECT (admin0_synonym_lookup(Array['United States Virgin Islands'])).adm0_a3" should VIR + sql "SELECT (admin0_synonym_lookup(Array['Vietnam'])).adm0_a3" should VNM + sql "SELECT (admin0_synonym_lookup(Array['Samoa'])).adm0_a3" should WSM + sql "SELECT (admin0_synonym_lookup(Array['Yemen'])).adm0_a3" should YEM + sql "SELECT (admin0_synonym_lookup(Array['South Africa'])).adm0_a3" should ZAF + sql "SELECT (admin0_synonym_lookup(Array['Zambia'])).adm0_a3" should ZMB + sql "SELECT (admin0_synonym_lookup(Array['Zimbabwe'])).adm0_a3" should ZWE # checks that the centroid of the result obtained intersects with the desirable bounding box - #TO-DO: fix, shouldn't contain a FROM statement - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-70.0624080069999 12.417669989,-70.0624080069999 12.6321475280001,-69.8768204419999 12.6321475280001,-69.8768204419999 12.417669989,-70.0624080069999 12.417669989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ABW'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ABW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.4867777910001 29.3866053260001,60.4867777910001 38.4736734020001,74.8923067630001 38.4736734020001,74.8923067630001 29.3866053260001,60.4867777910001 29.3866053260001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AFG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AFG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.6693941430001 -18.0314047239998,11.6693941430001 -4.39120371499996,24.0617143150001 -4.39120371499996,24.0617143150001 -18.0314047239998,11.6693941430001 -18.0314047239998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AGO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AGO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.4288223949999 18.1690941430001,-63.4288223949999 18.6012637390001,-62.9726456369999 18.6012637390001,-62.9726456369999 18.1690941430001,-63.4288223949999 18.1690941430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AIA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AIA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.2720325110001 39.637013245,19.2720325110001 42.6548135380001,21.0366793210001 42.6548135380001,21.0366793210001 39.637013245,19.2720325110001 39.637013245))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ALB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.5131942070001 59.9044863950001,19.5131942070001 60.4807803410001,21.0966903000001 60.4807803410001,21.0966903000001 59.9044863950001,19.5131942070001 59.9044863950001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ALD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ALD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.4064563390001 42.4286774700001,1.4064563390001 42.649361674,1.76509078000015 42.649361674,1.76509078000015 42.4286774700001,1.4064563390001 42.4286774700001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AND'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.5693465500001 22.6209459430001,51.5693465500001 26.0747919720001,56.3836369150001 26.0747919720001,56.3836369150001 22.6209459430001,51.5693465500001 22.6209459430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.5880358489999 -55.0520158829998,-73.5880358489999 -21.7869377639999,-53.6615518799999 -21.7869377639999,-53.6615518799999 -55.0520158829998,-73.5880358489999 -55.0520158829998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.4362939860001 38.8637012740001,43.4362939860001 41.2904523730001,46.6026123460001 41.2904523730001,46.6026123460001 38.8637012740001,43.4362939860001 38.8637012740001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ARM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-170.831247525 -14.5328915339999,-170.831247525 -14.1688778629998,-168.160471158 -14.1688778629998,-168.160471158 -14.5328915339999,-170.831247525 -14.5328915339999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ASM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ASM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -90,-180 -60.516208592,180 -60.516208592,180 -90,-180 -90))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((123.575043165 -12.4385718729998,123.575043165 -12.4266089819999,123.597748243 -12.4266089819999,123.597748243 -12.4385718729998,123.575043165 -12.4385718729998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.7282820970001 -49.7216122379999,39.7282820970001 -11.5506324199998,77.5852156910001 -11.5506324199998,77.5852156910001 -49.7216122379999,39.7282820970001 -49.7216122379999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.8941544259999 16.9892438820001,-61.8941544259999 17.7276878930001,-61.6675919259999 17.7276878930001,-61.6675919259999 16.9892438820001,-61.8941544259999 16.9892438820001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ATG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((112.919444207 -54.750420831,112.919444207 -9.24016692499987,159.106455925 -9.24016692499987,159.106455925 -54.750420831,112.919444207 -54.750420831))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AUS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.52115482500011 46.3786430870001,9.52115482500011 49.0097744750001,17.1483378500001 49.0097744750001,17.1483378500001 46.3786430870001,9.52115482500011 46.3786430870001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AUT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AUT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.7745585530002 38.392644755,44.7745585530002 41.8904415900002,50.6257430350001 41.8904415900002,50.6257430350001 38.392644755,44.7745585530002 38.392644755))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AZE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'AZE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.9868917230001 -4.46334401499993,28.9868917230001 -2.30306243899987,30.8339624430001 -2.30306243899987,30.8339624430001 -4.46334401499993,28.9868917230001 -4.46334401499993))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BDI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BDI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.52179992769047 49.495222881,2.52179992769047 51.4962376910001,6.37452518700007 51.4962376910001,6.37452518700007 49.495222881,2.52179992769047 49.495222881))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BEL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.759880818000113 6.21389923179639,0.759880818000113 12.3992442830001,3.83741906700001 12.3992442830001,3.83741906700001 6.21389923179639,0.759880818000113 6.21389923179639))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BEN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-68.4173884759999 12.0220401060001,-68.4173884759999 12.3102074240002,-68.1900121739999 12.3102074240002,-68.1900121739999 12.0220401060001,-68.4173884759999 12.0220401060001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BES'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BES'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.52257808499988 9.39188262900012,-5.52257808499988 15.0799075320001,2.39016890400009 15.0799075320001,2.39016890400009 9.39188262900012,-5.52257808499988 9.39188262900012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BFA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BFA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.0217895920001 20.738714911,88.0217895920001 26.6235440070001,92.6428511970002 26.6235440070001,92.6428511970002 20.738714911,88.0217895920001 20.738714911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BGD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.3450232340001 41.2381041470001,22.3450232340001 44.228434539,28.6035262380001 44.228434539,28.6035262380001 41.2381041470001,22.3450232340001 41.2381041470001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BGR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BGR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.448903842 25.7895368510001,50.448903842 26.242580471,50.6456598131816 26.242580471,50.6456598131816 25.7895368510001,50.448903842 25.7895368510001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BHR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.5943497389999 20.9123989090001,-79.5943497389999 26.9284121770001,-72.7461645169999 26.9284121770001,-72.7461645169999 20.9123989090001,-79.5943497389999 20.9123989090001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BHS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BHS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((15.7160738520001 42.5592121380002,15.7160738520001 45.2845238250002,19.618884725 45.2845238250002,19.618884725 42.5592121380002,15.7160738520001 42.5592121380002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BIH'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BIH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.9892878899999 15.7941755230001,-79.9892878899999 15.7962100280001,-79.9863988919999 15.7962100280001,-79.9863988919999 15.7941755230001,-79.9892878899999 15.7941755230001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BJN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BJN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8673396479999 17.8819847680001,-62.8673396479999 17.9291445980001,-62.7916560539999 17.9291445980001,-62.7916560539999 17.8819847680001,-62.8673396479999 17.8819847680001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((23.165644979 51.2351683560001,23.165644979 56.1568059290001,32.7195321040001 56.1568059290001,32.7195321040001 51.2351683560001,23.165644979 51.2351683560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.2365122079999 15.8796519990001,-89.2365122079999 18.4907587690001,-87.7830704419999 18.4907587690001,-87.7830704419999 15.8796519990001,-89.2365122079999 15.8796519990001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BLZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.8859939889704 32.2480773815958,-64.8859939889704 32.3886579450001,-64.6476307056406 32.3886579450001,-64.6476307056406 32.2480773815958,-64.8859939889704 32.2480773815958))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BMU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BMU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.6664922699999 -22.8972575879999,-69.6664922699999 -9.67982147199997,-57.4656607669999 -9.67982147199997,-57.4656607669999 -22.8972575879999,-69.6664922699999 -22.8972575879999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BOL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BOL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.018474691 -33.742280375,-74.018474691 5.26722483300009,-28.8770645819999 5.26722483300009,-28.8770645819999 -33.742280375,-74.018474691 -33.742280375))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-59.6542048819999 13.051174221,-59.6542048819999 13.344549872,-59.4269099599999 13.344549872,-59.4269099599999 13.051174221,-59.6542048819999 13.051174221))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.99878991 4.01668101000011,113.99878991 5.05719635600018,115.360741008 5.05719635600018,115.360741008 4.01668101000011,113.99878991 4.01668101000011))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BRN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.7300667720001 26.6961493940002,88.7300667720001 28.3583989307863,92.0887764890001 28.3583989307863,92.0887764890001 26.6961493940002,88.7300667720001 26.6961493940002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BTN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BTN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.34555097700007 -54.4624976539999,3.34555097700007 -54.3801408829999,3.48666425900012 -54.3801408829999,3.48666425900012 -54.4624976539999,3.34555097700007 -54.4624976539999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BVT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BVT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.9783459880001 -26.891794128,19.9783459880001 -17.7818075559999,29.3500736890001 -17.7818075559999,29.3500736890001 -26.891794128,19.9783459880001 -26.891794128))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BWA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'BWA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.3872660720001 2.23645375600006,14.3872660720001 11.0008283490001,27.4413013100001 11.0008283490001,27.4413013100001 2.23645375600006,14.3872660720001 2.23645375600006))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CAF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-141.005548637109 41.6690855920001,-141.005548637109 83.1165225280001,-52.616607226 83.1165225280001,-52.616607226 41.6690855920001,-141.005548637109 41.6690855920001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CAN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CAN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.821543816 -12.1999651019998,96.821543816 -12.1265601539999,96.9210718110001 -12.1265601539999,96.9210718110001 -12.1999651019998,96.821543816 -12.1999651019998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CCK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CCK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.95480920400013 45.820718486,5.95480920400013 47.8011660770001,10.466626831 47.8011660770001,10.466626831 45.820718486,5.95480920400013 45.820718486))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.453724739 -55.9185042229998,-109.453724739 -17.506588198,-66.4208064439999 -17.506588198,-66.4208064439999 -55.9185042229998,-109.453724739 -55.9185042229998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.6022563070002 15.775376695,73.6022563070002 53.569444479,134.772579387 53.569444479,134.772579387 15.775376695,73.6022563070002 15.775376695))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CHN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.61871984899992 4.34406159100013,-8.61871984899992 10.7264781700001,-2.50632808399993 10.7264781700001,-2.50632808399993 4.34406159100013,-8.61871984899992 4.34406159100013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CIV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CIV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.234242317 10.2815615910001,-109.234242317 10.3110212260001,-109.210357226 10.3110212260001,-109.210357226 10.2815615910001,-109.234242317 10.2815615910001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CLP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CLP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.50505618600005 1.65455129000014,8.50505618600005 13.081140646,16.2077234290001 13.081140646,16.2077234290001 1.65455129000014,8.50505618600005 1.65455129000014))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CMR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.5848087900001 34.9777627570001,32.5848087900001 35.1994029740002,34.0219607300423 35.1994029740002,34.0219607300423 34.9777627570001,32.5848087900001 34.9777627570001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CNM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CNM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.2105548693531 -13.4583505239999,12.2105548693531 5.37528025300014,31.2804468180001 5.37528025300014,31.2804468180001 -13.4583505239999,12.2105548693531 -13.4583505239999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1140163040629 -5.01963083599986,11.1140163040629 3.70827606200005,18.64240686 3.70827606200005,18.64240686 -5.01963083599986,11.1140163040629 -5.01963083599986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-165.824533658 -21.9388973939999,-165.824533658 -8.94670989399988,-157.312814908 -8.94670989399988,-157.312814908 -21.9388973939999,-165.824533658 -21.9388973939999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.72370358 -4.23648447699985,-81.72370358 13.5783552100001,-66.8750605879999 13.5783552100001,-66.8750605879999 -4.23648447699985,-81.72370358 -4.23648447699985))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2132267590001 -12.3803036439999,43.2132267590001 -11.3612606749999,44.5290633470001 -11.3612606749999,44.5290633470001 -12.3803036439999,43.2132267590001 -12.3803036439999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'COM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-25.3604223299999 14.8039411480001,-25.3604223299999 17.196600653,-22.6665746739999 17.196600653,-22.6665746739999 14.8039411480001,-25.3604223299999 14.8039411480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CPV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CPV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.1176651679999 5.51508209800012,-87.1176651679999 11.2099370320002,-82.5628368739999 11.2099370320002,-82.5628368739999 5.51508209800012,-87.1176651679999 5.51508209800012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CRI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CRI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((154.388519727 -21.0300432269999,154.388519727 -21.028741144,154.391286655 -21.028741144,154.391286655 -21.0300432269999,154.388519727 -21.0300432269999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CSI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CSI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.9496150379999 19.827826239,-84.9496150379999 23.2655703800001,-74.1328832669999 23.2655703800001,-74.1328832669999 19.827826239,-84.9496150379999 19.827826239))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CUB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.1717423169999 12.041327216,-69.1717423169999 12.3915062520001,-68.7397354809999 12.3915062520001,-68.7397354809999 12.041327216,-69.1717423169999 12.041327216))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CUW'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CUW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((105.581797722 -10.5660132789999,105.581797722 -10.4308407529998,105.714691602 -10.4308407529998,105.714691602 -10.5660132789999,105.581797722 -10.5660132789999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CXR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CXR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.4165420209999 19.2638636150001,-81.4165420209999 19.7576308370001,-79.7266426919999 19.7576308370001,-79.7266426919999 19.2638636150001,-81.4165420209999 19.2638636150001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6019153500579 35.002722473,32.6019153500579 35.6919619810002,34.5925399100002 35.6919619810002,34.5925399100002 35.002722473,32.6019153500579 35.002722473))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.2717391290002 34.6250194300001,32.2717391290002 35.1870821302553,34.0991317070001 35.1870821302553,34.0991317070001 34.6250194300001,32.2717391290002 34.6250194300001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CYP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.076140991 48.557915752,12.076140991 51.0400123090001,18.8374337160001 51.0400123090001,18.8374337160001 48.557915752,12.076140991 48.557915752))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CZE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'CZE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.85248986800011 47.271120911,5.85248986800011 55.065334377,15.0220593670001 55.065334377,15.0220593670001 47.271120911,5.85248986800011 47.271120911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DEU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DEU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((41.7491101480001 10.9298249310001,41.7491101480001 12.7079125020001,43.4187117850001 12.7079125020001,43.4187117850001 10.9298249310001,41.7491101480001 10.9298249310001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DJI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DJI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4889216789999 15.201808986,-61.4889216789999 15.6338565120001,-61.249256965 15.6338565120001,-61.249256965 15.201808986,-61.4889216789999 15.201808986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DMA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DMA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.09400475400008 54.5685895850001,8.09400475400008 57.7511660830001,15.1513778000001 57.7511660830001,15.1513778000001 54.5685895850001,8.09400475400008 54.5685895850001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DNK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DNK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.0098376059999 17.5455589860001,-72.0098376059999 19.9376895200001,-68.3286026679999 19.9376895200001,-68.3286026679999 17.5455589860001,-72.0098376059999 17.5455589860001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DOM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DOM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.68238521299992 18.9755612180001,-8.68238521299992 37.0939395200001,11.9688607170001 37.0939395200001,11.9688607170001 18.9755612180001,-8.68238521299992 18.9755612180001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DZA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'DZA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.0115860669999 -5.01137257899988,-92.0115860669999 1.66437409100016,-75.2272639579999 1.66437409100016,-75.2272639579999 -5.01137257899988,-92.0115860669999 -5.01137257899988))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ECU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ECU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.6883427320001 21.9943692020002,24.6883427320001 31.6564802100001,36.8991805350002 31.6564802100001,36.8991805350002 21.9943692020002,24.6883427320001 21.9943692020002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['EGY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'EGY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((36.4236470950001 12.3600218710001,36.4236470950001 18.004828192,43.1238712900001 18.004828192,43.1238712900001 12.3600218710001,36.4236470950001 12.3600218710001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ERI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ERI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.6740991620001 34.937892971,33.6740991620001 35.1189944460001,33.9214742440001 35.1189944460001,33.9214742440001 34.937892971,33.6740991620001 34.937892971))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ESB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-18.1672257149999 27.6422386740001,-18.1672257149999 43.793443101,4.3370874360001 43.793443101,4.3370874360001 27.6422386740001,-18.1672257149999 27.6422386740001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ESP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ESP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8323673840001 57.5158185830001,21.8323673840001 59.6708845070001,28.1864754640001 59.6708845070001,28.1864754640001 57.5158185830001,21.8323673840001 57.5158185830001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['EST'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'EST'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.9897998450001 3.40333343500009,32.9897998450001 14.8795321660001,47.9791691490001 14.8795321660001,47.9791691490001 3.40333343500009,32.9897998450001 3.40333343500009))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ETH'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ETH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.62316451 59.811224677,20.62316451 70.0753103640001,31.5695247800001 70.0753103640001,31.5695247800001 59.811224677,20.62316451 59.811224677))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FIN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FIN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -21.7111141909999,-180 -12.4752743469999,180 -12.4752743469999,180 -21.7111141909999,-180 -21.7111141909999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FJI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FJI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3181860019999 -52.4065227259999,-61.3181860019999 -51.0277645809999,-57.7342830069999 -51.0277645809999,-57.7342830069999 -52.4065227259999,-61.3181860019999 -52.4065227259999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FLK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FLK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 51.0875408834804,8.20030521600006 51.0875408834804,8.20030521600006 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.54525800900012 41.365912177,8.54525800900012 43.0174014340001,9.55958092500009 43.0174014340001,9.55958092500009 41.365912177,8.54525800900012 41.365912177))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRH'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.64415442599994 61.3941104190001,-7.64415442599994 62.3989118510001,-6.2757869129999 62.3989118510001,-6.2757869129999 61.3941104190001,-7.64415442599994 61.3941104190001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FRO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((138.063812696 0.918158270000148,138.063812696 9.77558014500013,163.046560092 9.77558014500013,163.046560092 0.918158270000148,138.063812696 0.918158270000148))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FSM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'FSM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.69556725400014 -3.93685618990304,8.69556725400014 2.32249501600009,14.4989905190001 2.32249501600009,14.4989905190001 -3.93685618990304,8.69556725400014 -3.93685618990304))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GAB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GAB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.6913142569999 49.9096133480001,-13.6913142569999 60.84788646,1.77116946700002 60.84788646,1.77116946700002 49.9096133480001,-13.6913142569999 49.9096133480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GBR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GBR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.9859763554231 41.0441108200001,39.9859763554231 43.5758425900001,46.6948031010001 43.5758425900001,46.6948031010001 41.0441108200001,39.9859763554231 41.0441108200001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GEO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GEO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.67345130099989 49.4115664730001,-2.67345130099989 49.731390692,-2.17031816299993 49.731390692,-2.17031816299993 49.4115664730001,-2.67345130099989 49.4115664730001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GGY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GGY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.26250931799999 4.7371279970001,-3.26250931799999 11.162937317,1.18796838400004 11.162937317,1.18796838400004 4.7371279970001,-3.26250931799999 4.7371279970001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GHA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GHA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.35838675876349 36.1105003930001,-5.35838675876349 36.1411196720123,-5.33877348311998 36.1411196720123,-5.33877348311998 36.1105003930001,-5.35838675876349 36.1105003930001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GIB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-15.0811254549999 7.19020823200012,-15.0811254549999 12.673387757,-7.66244746999996 12.673387757,-7.66244746999996 7.19020823200012,-15.0811254549999 7.19020823200012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GIN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GIN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7978409499999 15.8469912780002,-61.7978409499999 16.513088283,-60.9892471999999 16.513088283,-60.9892471999999 15.8469912780002,-61.7978409499999 15.8469912780002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GLP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GLP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.8297013009999 13.0650088560001,-16.8297013009999 13.8199844360001,-13.8187125249999 13.8199844360001,-13.8187125249999 13.0650088560001,-16.8297013009999 13.0650088560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GMB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GMB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.7284367771401 10.9276390650001,-16.7284367771401 12.6794339000001,-13.6607118329999 12.6794339000001,-13.6607118329999 10.9276390650001,-16.7284367771401 10.9276390650001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GNB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.61198978000007 -1.47568124799986,5.61198978000007 3.77240631700012,11.3363411870001 3.77240631700012,11.3363411870001 -1.47568124799986,5.61198978000007 -1.47568124799986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GNQ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GNQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.6264754570001 34.8150088560001,19.6264754570001 41.7504759730001,28.2397567070001 41.7504759730001,28.2397567070001 34.8150088560001,19.6264754570001 34.8150088560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7905167309999 12.0028343770001,-61.7905167309999 12.5297305360001,-61.4216202459999 12.5297305360001,-61.4216202459999 12.0028343770001,-61.7905167309999 12.0028343770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.0572403639999 59.792629299,-73.0572403639999 83.6341006530001,-11.3768204419999 83.6341006530001,-11.3768204419999 59.792629299,-73.0572403639999 59.792629299))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GRL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.2462338320825 13.7289030478944,-92.2462338320825 17.8160195930001,-88.2209221351212 17.8160195930001,-88.2209221351212 13.7289030478944,-92.2462338320825 13.7289030478944))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GTM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GTM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 5.74476537500011,-51.649037239 5.74476537500011,-51.649037239 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.624196811 13.2410342470001,144.624196811 13.6541201840001,144.95215905 13.6541201840001,144.95215905 13.2410342470001,144.624196811 13.2410342470001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3967128089999 1.18582021100013,-61.3967128089999 8.55801015800012,-56.4818190109999 8.55801015800012,-56.4818190109999 1.18582021100013,-61.3967128089999 1.18582021100013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'GUY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.837331576 22.177069403,113.837331576 22.5639460320001,114.40129642 22.5639460320001,114.40129642 22.177069403,113.837331576 22.177069403))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HKG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HKG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.236013217 -53.1925595029999,73.236013217 -52.9616024719999,73.8121850920001 -52.9616024719999,73.8121850920001 -53.1925595029999,73.236013217 -53.1925595029999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HMD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HMD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.3637912599999 12.9797773240001,-89.3637912599999 17.4186465520001,-83.1304418609999 17.4186465520001,-83.1304418609999 12.9797773240001,-89.3637912599999 12.9797773240001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HND'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.5014754570001 42.4163272160001,13.5014754570001 46.5469790650001,19.4078381750001 46.5469790650001,19.4078381750001 42.4163272160001,13.5014754570001 42.4163272160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HRV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HRV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.4891658189999 18.0259463560001,-74.4891658189999 20.08978913,-71.6391108809999 20.08978913,-71.6391108809999 18.0259463560001,-74.4891658189999 18.0259463560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HTI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HTI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.0940352780001 45.741343486,16.0940352780001 48.5692328900001,22.8776005460001 48.5692328900001,22.8776005460001 45.741343486,16.0940352780001 45.741343486))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HUN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'HUN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((95.0127059250001 -10.9226213519998,95.0127059250001 5.9101016300001,140.977626994 5.9101016300001,140.977626994 -10.9226213519998,95.0127059250001 -10.9226213519998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IDN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IDN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.79015051999994 54.0569522160001,-4.79015051999994 54.4190127620001,-4.3119197259999 54.4190127620001,-4.3119197259999 54.0569522160001,-4.79015051999994 54.0569522160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IMN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IMN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((68.1434025400001 6.74555084800015,68.1434025400001 35.4954055790001,97.3622530520001 35.4954055790001,97.3622530520001 6.74555084800015,68.1434025400001 6.74555084800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IND'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IND'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.82154382 -12.1999651,96.82154382 -10.43084075,105.7146916 -10.43084075,105.7146916 -12.1999651,96.82154382 -12.1999651))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IOA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((71.260996941 -7.43222421699987,71.260996941 -5.22698333099991,72.4946395190001 -5.22698333099991,72.4946395190001 -7.43222421699987,71.260996941 -7.43222421699987))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IOT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IOT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-10.4781794909999 51.4457054710001,-10.4781794909999 55.386379299,-5.99351966099994 55.386379299,-5.99351966099994 51.4457054710001,-10.4781794909999 51.4457054710001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.0148633220001 25.0594081650001,44.0148633220001 39.7715269980001,63.3196281330001 39.7715269980001,63.3196281330001 25.0594081650001,44.0148633220001 25.0594081650001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((38.7745113520001 29.063136699,38.7745113520001 37.3754975380001,48.5592554050001 37.3754975380001,48.5592554050001 29.063136699,38.7745113520001 29.063136699))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRQ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'IRQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-24.539906379 63.3967145850001,-24.539906379 66.564154364,-13.5029190749999 66.564154364,-13.5029190749999 63.3967145850001,-24.539906379 63.3967145850001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ISL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2483508570001 29.4896914730001,34.2483508570001 33.4067217000001,35.8880725500002 33.4067217000001,35.8880725500002 29.4896914730001,34.2483508570001 29.4896914730001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ISR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ISR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.60272831200007 35.489243882,6.60272831200007 47.085214945,18.5174259770001 47.085214945,18.5174259770001 35.489243882,6.60272831200007 35.489243882))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ITA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ITA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.3746638659999 17.70319245,-78.3746638659999 18.525091864,-76.1879776679999 18.525091864,-76.1879776679999 17.70319245,-78.3746638659999 17.70319245))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JAM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'JAM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.24201412699992 49.1713320980001,-2.24201412699992 49.267035223,-2.00829016799992 49.267035223,-2.00829016799992 49.1713320980001,-2.24201412699992 49.1713320980001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JEY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'JEY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.949385116681 29.189950664,34.949385116681 33.3716850790001,39.2919991450001 33.3716850790001,39.2919991450001 29.189950664,34.949385116681 29.189950664))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JOR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'JOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((122.938161655 24.212103583,122.938161655 45.5204125020001,153.985606316 45.5204125020001,153.985606316 24.212103583,122.938161655 24.212103583))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JPN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'JPN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((62.8006417230001 45.5658244830001,62.8006417230001 46.390838725,63.9671338300001 46.390838725,63.9671338300001 45.5658244830001,62.8006417230001 45.5658244830001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((76.7773507410001 35.110441997,76.7773507410001 35.6477993780001,77.8003463140001 35.6477993780001,77.8003463140001 35.110441997,76.7773507410001 35.110441997))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.478278849 40.5846556600001,46.478278849 55.4345502730001,87.3237960210001 55.4345502730001,87.3237960210001 40.5846556600001,46.478278849 40.5846556600001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KAZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.8904683840002 -4.67750416499996,33.8904683840002 5.03037582260775,41.8850191650001 5.03037582260775,41.8850191650001 -4.67750416499996,33.8904683840002 -4.67750416499996))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KEN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((69.2262960200001 39.1892369590001,69.2262960200001 43.2617015580001,80.2575606690001 43.2617015580001,80.2575606690001 39.1892369590001,69.2262960200001 39.1892369590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KGZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KGZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.313423706 10.4157736200001,102.313423706 14.7045816050001,107.610516399 14.7045816050001,107.610516399 10.4157736200001,102.313423706 10.4157736200001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KHM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KHM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-174.543405728 -11.4611141909999,-174.543405728 4.7230899110001,176.850922071 4.7230899110001,176.850922071 -11.4611141909999,-174.543405728 -11.4611141909999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KIR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KIR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8610733709999 17.1005313170001,-62.8610733709999 17.4158389340001,-62.5367732409999 17.4158389340001,-62.5367732409999 17.1005313170001,-62.8610733709999 17.1005313170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KNA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KNA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.613617384 33.197577216,124.613617384 38.6243307589749,131.862521886 38.6243307589749,131.862521886 33.197577216,124.613617384 33.197577216))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KOR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.024751424 41.8440103160001,20.024751424 43.2630709840001,21.7727584220001 43.2630709840001,21.7727584220001 41.8440103160001,20.024751424 41.8440103160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KOS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KOS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.5324357500001 28.5335049440001,46.5324357500001 30.0982156370001,48.4327812271219 30.0982156370001,48.4327812271219 28.5335049440001,46.5324357500001 28.5335049440001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KWT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'KWT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((100.097073202 13.9154566450001,100.097073202 22.4960440070001,107.66436324 22.4960440070001,107.66436324 13.9154566450001,100.097073202 13.9154566450001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LAO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LAO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.0996199880001 33.055580342,35.0996199880001 34.687547913,36.604101196 34.687547913,36.604101196 33.055580342,35.0996199880001 33.055580342))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-11.4761856759999 4.34723541900004,-11.4761856759999 8.56539560900008,-7.38411820499996 8.56539560900008,-7.38411820499996 4.34723541900004,-11.4761856759999 4.34723541900004))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.28654382300007 19.496123759,9.28654382300007 33.1812253147281,25.1562606130001 33.1812253147281,25.1562606130001 19.496123759,9.28654382300007 19.496123759))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LBY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.078521288 13.7146670590001,-61.078521288 14.1118838560001,-60.8829646479999 14.1118838560001,-60.8829646479999 13.7146670590001,-61.078521288 13.7146670590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LCA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LCA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.47588627100012 47.0524004120001,9.47588627100012 47.2628010050001,9.61572269700011 47.2628010050001,9.61572269700011 47.0524004120001,9.47588627100012 47.0524004120001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LIE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LIE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((79.6557723320001 5.92373281500015,79.6557723320001 9.82957591400015,81.8903100920001 9.82957591400015,81.8903100920001 5.92373281500015,79.6557723320001 5.92373281500015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LKA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LKA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((27.0021549890001 -30.6587993359999,27.0021549890001 -28.570761414,29.4359082440001 -28.570761414,29.4359082440001 -30.6587993359999,27.0021549890001 -30.6587993359999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LSO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LSO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9245687005624 53.8868411260001,20.9245687005624 56.4426024370001,26.8007202560001 56.4426024370001,26.8007202560001 53.8868411260001,20.9245687005624 53.8868411260001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LTU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LTU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.71492720500004 49.441324362,5.71492720500004 50.1749746710001,6.50257938700014 50.1749746710001,6.50257938700014 49.441324362,5.71492720500004 49.441324362))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LUX'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LUX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9685978520001 55.6669908660001,20.9685978520001 58.0751384490001,28.2172746170001 58.0751384490001,28.2172746170001 55.6669908660001,20.9685978520001 55.6669908660001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LVA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'LVA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.519867384 22.1053734400001,113.519867384 22.220770575,113.587494337 22.220770575,113.587494337 22.1053734400001,113.519867384 22.1053734400001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1468399729999 18.0333914721357,-63.1468399729999 18.1221377620001,-63.0107315749999 18.1221377620001,-63.0107315749999 18.0333914721357,-63.1468399729999 18.0333914721357))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0137433253452 21.4199710975817,-17.0137433253452 35.926519149,-1.03199947099995 35.926519149,-1.03199947099995 21.4199710975817,-17.0137433253452 21.4199710975817))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MAR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.36575020700008 43.7179690770001,7.36575020700008 43.763505554,7.4374540320631 43.763505554,7.4374540320631 43.7179690770001,7.36575020700008 43.7179690770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MCO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MCO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((26.617889038 45.461773987,26.617889038 48.486033834,30.1315763750001 48.486033834,30.1315763750001 45.461773987,26.617889038 45.461773987))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2229110040001 -25.5985653629998,43.2229110040001 -11.9436174459998,50.5039168630001 -11.9436174459998,50.5039168630001 -25.5985653629998,43.2229110040001 -25.5985653629998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((72.684825066 -0.688571872999901,72.684825066 7.10724518400015,73.7531844410002 7.10724518400015,73.7531844410002 -0.688571872999901,72.684825066 -0.688571872999901))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MDV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-118.368804229 14.5462829243643,-118.368804229 32.7128364050001,-86.7005916009999 32.7128364050001,-86.7005916009999 14.5462829243643,-118.368804229 14.5462829243643))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MEX'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MEX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((165.282237175 4.57379791900016,165.282237175 14.6105003930001,172.029795769 14.6105003930001,172.029795769 4.57379791900016,165.282237175 4.57379791900016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MHL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.4441573490001 40.8493940230001,20.4441573490001 42.3703347790001,23.0095821530001 42.3703347790001,23.0095821530001 40.8493940230001,20.4441573490001 40.8493940230001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MKD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MKD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-12.2641304119999 10.1400540170001,-12.2641304119999 24.9950645960001,4.23563765500012 24.9950645960001,4.23563765500012 10.1400540170001,-12.2641304119999 10.1400540170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MLI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.1836043630001 35.801214911,14.1836043630001 36.0755882830001,14.5671492850001 36.0755882830001,14.5671492850001 35.801214911,14.1836043630001 35.801214911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MLT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MLT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((92.174972779 9.79071686400013,92.174972779 28.538465881,101.173855021 28.538465881,101.173855021 9.79071686400013,92.174972779 9.79071686400013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MMR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.4335307210001 41.852362372,18.4335307210001 43.5478856410001,20.3551705320001 43.5478856410001,20.3551705320001 41.852362372,18.4335307210001 41.852362372))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((87.7357088630001 41.586144918,87.7357088630001 52.1295840460001,119.907026815 52.1295840460001,119.907026815 41.586144918,87.7357088630001 41.586144918))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.902110222 14.1106631530001,144.902110222 20.5554059920001,145.868907097 20.5554059920001,145.868907097 14.1106631530001,144.902110222 14.1106631530001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MNP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.2138452550002 -26.8602715039999,30.2138452550002 -10.4690080709999,40.8479923840001 -10.4690080709999,40.8479923840001 -26.8602715039999,30.2138452550002 -26.8602715039999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MOZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MOZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0811748859999 14.7343989060002,-17.0811748859999 27.2854157510001,-4.8216131179999 27.2854157510001,-4.8216131179999 14.7343989060002,-17.0811748859999 14.7343989060002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MRT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MRT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.2301326159999 16.6753604190001,-62.2301326159999 16.8193220070001,-62.1405330069999 16.8193220070001,-62.1405330069999 16.6753604190001,-62.2301326159999 16.6753604190001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MSR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MSR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.228830533 14.4081078150001,-61.228830533 14.8768985050001,-60.8104141919999 14.8768985050001,-60.8104141919999 14.4081078150001,-61.228830533 14.4081078150001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MTQ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MTQ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((56.5241805350002 -20.5173479149999,56.5241805350002 -10.3239071589999,63.493907097 -10.3239071589999,63.493907097 -20.5173479149999,56.5241805350002 -20.5173479149999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MUS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6633081470002 -17.1353353879999,32.6633081470002 -9.38123504699981,35.9042989500001 -9.38123504699981,35.9042989500001 -17.1353353879999,32.6633081470002 -17.1353353879999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MWI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MWI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((99.6452280600001 0.851370341000077,99.6452280600001 7.35578034100014,119.278086785 7.35578034100014,119.278086785 0.851370341000077,99.6452280600001 0.851370341000077))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MYS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((45.0424910820001 -12.9891903629999,45.0424910820001 -12.6472307269999,45.2908634770001 -12.6472307269999,45.2908634770001 -12.9891903629999,45.0424910820001 -12.9891903629999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MYT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'MYT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.7176212900001 -28.9593681839999,11.7176212900001 -16.9510572309999,25.2597807210001 -16.9510572309999,25.2597807210001 -28.9593681839999,11.7176212900001 -28.9593681839999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NAM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NAM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((163.615733269 -22.6706682269998,163.615733269 -19.623711847,171.343765287 -19.623711847,171.343765287 -22.6706682269998,163.615733269 -22.6706682269998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NCL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NCL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.152941121000111 11.69577301,0.152941121000111 23.5173511760001,15.9703218990001 23.5173511760001,15.9703218990001 11.69577301,0.152941121000111 11.69577301))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NER'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((167.912119988 -29.0800106749999,167.912119988 -28.9974911439999,167.996348504 -28.9974911439999,167.996348504 -29.0800106749999,167.912119988 -29.0800106749999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NFK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NFK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.67108199000012 4.27216217700007,2.67108199000012 13.8802908320001,14.6699361570001 13.8802908320001,14.6699361570001 4.27216217700007,2.67108199000012 4.27216217700007))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NGA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.6858210929999 10.7134815470002,-87.6858210929999 15.0309699500002,-82.7256973949999 15.0309699500002,-82.7256973949999 10.7134815470002,-87.6858210929999 10.7134815470002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NIC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-169.95042884 -19.1427548159999,-169.95042884 -18.9640438779999,-169.782907681 -18.9640438779999,-169.782907681 -19.1427548159999,-169.95042884 -19.1427548159999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NIU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NIU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.2513321609999 17.4645711740002,-63.2513321609999 53.5580915390001,7.19850590000004 53.5580915390001,7.19850590000004 17.4645711740002,-63.2513321609999 17.4645711740002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NLD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NLD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-9.11742102799991 57.993150132,-9.11742102799991 80.2481143250001,33.6403914720001 80.2481143250001,33.6403914720001 57.993150132,-9.11742102799991 57.993150132))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NOR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NOR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((80.03028772 26.3437678020001,80.03028772 30.4169041950001,88.1690674240001 30.4169041950001,88.1690674240001 26.3437678020001,80.03028772 26.3437678020001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NPL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NPL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.906993035 -0.551853122999901,166.906993035 -0.490411065999922,166.958262566 -0.490411065999922,166.958262566 -0.551853122999901,166.906993035 -0.551853122999901))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NRU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NRU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.9579972 -52.600313271,-177.9579972 -8.54322682099986,178.843923373 -8.54322682099986,178.843923373 -52.600313271,-177.9579972 -52.600313271))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NZL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'NZL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.9786149500002 16.6424060302812,51.9786149500002 26.385972398,59.8445744150001 26.385972398,59.8445744150001 16.6424060302812,51.9786149500002 16.6424060302812))', 4326), ST_Centroid((geocode_admin0_polygons(Array['OMN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'OMN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.8443787030001 23.6945254580001,60.8443787030001 37.0544835410001,77.0489709880002 37.0544835410001,77.0489709880002 23.6945254580001,60.8443787030001 23.6945254580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PAK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.053246217 7.20571523600016,-83.053246217 9.62929248000016,-77.1632698159999 9.62929248000016,-77.1632698159999 7.20571523600016,-83.053246217 7.20571523600016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PAN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PAN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-130.753081835 -25.0770809879998,-130.753081835 -23.9244117169999,-124.778065559 -23.9244117169999,-124.778065559 -25.0770809879998,-130.753081835 -25.0770809879998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PCN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PCN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.3375575289999 -18.3377462069379,-81.3375575289999 -0.0290927119998656,-68.6842524829999 -0.0290927119998656,-68.6842524829999 -18.3377462069379,-81.3375575289999 -18.3377462069379))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PER'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((114.027679884 9.67951080900016,114.027679884 11.1179873720002,115.848806186 11.1179873720002,115.848806186 9.67951080900016,114.027679884 9.67951080900016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PGA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((116.954925977 4.65570709800011,116.954925977 21.122381903,126.617686394 21.122381903,126.617686394 4.65570709800011,116.954925977 4.65570709800011))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PHL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PHL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((131.131114129 2.94904205900015,131.131114129 8.09661782863144,134.727342990799 8.09661782863144,134.727342990799 2.94904205900015,131.131114129 2.94904205900015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PLW'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PLW'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((140.84921106 -11.6363257789998,140.84921106 -1.34636809699988,155.96753991 -1.34636809699988,155.96753991 -11.6363257789998,140.84921106 -11.6363257789998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PNG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PNG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.123922973 48.9940131640001,14.123922973 54.8383242860001,24.1431563720001 54.8383242860001,24.1431563720001 48.9940131640001,14.123922973 48.9940131640001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['POL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'POL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-67.9378149079999 17.9229190120002,-67.9378149079999 18.522772528,-65.2446182929999 18.522772528,-65.2446182929999 17.9229190120002,-67.9378149079999 17.9229190120002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.211315989 37.6756045590001,124.211315989 43.010269878,130.699961785 43.010269878,130.699961785 37.6756045590001,124.211315989 37.6756045590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-31.2849014959999 30.0292422550001,-31.2849014959999 42.15362966,-6.20594722499993 42.15362966,-6.20594722499993 30.0292422550001,-31.2849014959999 30.0292422550001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.650357219 -27.5868421429999,-62.650357219 -19.2867286169999,-54.2452888589999 -19.2867286169999,-54.2452888589999 -27.5868421429999,-62.650357219 -27.5868421429999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PRY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2002694411415 31.2114489580001,34.2002694411415 32.542640076,35.5725362550001 32.542640076,35.5725362550001 31.2114489580001,34.2002694411415 31.2114489580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PSX'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PSX'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-154.536976692 -27.6412085919999,-154.536976692 -7.95012786299982,-134.942982551 -7.95012786299982,-134.942982551 -27.6412085919999,-154.536976692 -27.6412085919999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PYF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'PYF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.750987175 24.5598715210001,50.750987175 26.16010163,51.6165470710001 26.16010163,51.6165470710001 24.5598715210001,50.750987175 24.5598715210001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['QAT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'QAT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.2254337900002 -21.3707821589999,55.2254337900002 -20.861423435,55.8545028000001 -20.861423435,55.8545028000001 -21.3707821589999,55.2254337900002 -21.3707821589999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['REU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'REU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.2428259690001 43.6500499480001,20.2428259690001 48.2748322560001,29.6995548840001 48.2748322560001,29.6995548840001 43.6500499480001,20.2428259690001 43.6500499480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ROU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ROU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 41.1926805620002,-180 81.8587100280001,180 81.8587100280001,180 41.1926805620002,-180 41.1926805620002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['RUS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'RUS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.8572355550001 -2.82685475699989,28.8572355550001 -1.05869394899987,30.8878092850001 -1.05869394899987,30.8878092850001 -2.82685475699989,28.8572355550001 -2.82685475699989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['RWA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'RWA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.1046443349999 20.7669131530001,-17.1046443349999 27.6614653400001,-8.68080908199988 27.6614653400001,-8.68080908199988 20.7669131530001,-17.1046443349999 20.7669131530001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SAH'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAH'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.5727645190002 16.3709446840655,34.5727645190002 32.1213479620001,55.6375647380002 32.1213479620001,55.6375647380002 16.3709446840655,34.5727645190002 16.3709446840655))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SAU'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SAU'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((117.751856381 15.1500820250001,117.751856381 15.1543692630001,117.755692331 15.1543692630001,117.755692331 15.1500820250001,117.751856381 15.1500820250001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SCR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SCR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8094486900001 8.6816417440001,21.8094486900001 22.2269648230001,38.6038517590002 22.2269648230001,38.6038517590002 8.6816417440001,21.8094486900001 8.6816417440001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SDN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.1215556230001 3.49020151800015,24.1215556230001 12.2161546840002,35.9208354090002 12.2161546840002,35.9208354090002 3.49020151800015,24.1215556230001 3.49020151800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SDS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SDS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.5360408189999 12.3056065880001,-17.5360408189999 16.6913853970001,-11.3777762449999 16.6913853970001,-11.3777762449999 12.3056065880001,-17.5360408189999 12.3056065880001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SEN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.6404109369999 15.8620873070001,-78.6404109369999 15.8672956400001,-78.6368708979999 15.8672956400001,-78.6368708979999 15.8620873070001,-78.6404109369999 15.8620873070001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SER'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SER'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((103.640391472 1.26430898600009,103.640391472 1.44863515800004,104.003428582 1.44863515800004,104.003428582 1.26430898600009,103.640391472 1.26430898600009))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SGP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-38.0870255199999 -59.4727515599998,-38.0870255199999 -53.9724260399999,-26.2393285799999 -53.9724260399999,-26.2393285799999 -59.4727515599998,-38.0870255199999 -59.4727515599998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SGS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SGS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-14.4177139959999 -40.3978817689998,-14.4177139959999 -7.87786223799983,-5.65038001199986 -7.87786223799983,-5.65038001199986 -40.3978817689998,-14.4177139959999 -40.3978817689998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SHN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SHN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.4843856130001 76.4364688170001,10.4843856130001 80.7700869810001,29.7070418630001 80.7700869810001,29.7070418630001 76.4364688170001,10.4843856130001 76.4364688170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SJM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SJM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((155.507985873 -12.2906226539999,155.507985873 -6.59986744599981,168.825856967 -6.59986744599981,168.825856967 -12.2906226539999,155.507985873 -12.2906226539999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.3010961579999 6.91941966400012,-13.3010961579999 9.99600596100012,-10.2822358799999 9.99600596100012,-10.2822358799999 6.91941966400012,-13.3010961579999 6.91941966400012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.1147790119999 13.1586367860001,-90.1147790119999 14.4453726200001,-87.6931935119999 14.4453726200001,-87.6931935119999 13.1586367860001,-90.1147790119999 13.1586367860001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SLV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.3856287450001 43.892055515,12.3856287450001 43.9825667860001,12.4923922540001 43.9825667860001,12.4923922540001 43.892055515,12.3856287450001 43.892055515))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SMR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SMR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.6472465410002 7.9965156050001,42.6472465410002 11.4989281270001,48.9391119999082 11.4989281270001,48.9391119999082 7.9965156050001,42.6472465410002 7.9965156050001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SOL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((40.9653853760002 -1.69628316497764,40.9653853760002 11.9891186460002,51.4170378110001 11.9891186460002,51.4170378110001 -1.69628316497764,40.9653853760002 -1.69628316497764))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SOM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SOM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-56.396595832 46.7527529970001,-56.396595832 47.1412621110001,-56.1447647779999 47.1412621110001,-56.1447647779999 46.7527529970001,-56.396595832 46.7527529970001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SPM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SPM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.8449784750001 42.2349425250001,18.8449784750001 46.1738752240001,22.9845707600001 46.1738752240001,22.9845707600001 42.2349425250001,18.8449784750001 42.2349425250001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SRB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SRB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.46168053500011 0.0241153020000695,6.46168053500011 1.69977448100016,7.46273847700007 1.69977448100016,7.46273847700007 0.0241153020000695,6.46168053500011 0.0241153020000695))', 4326), ST_Centroid((geocode_admin0_polygons(Array['STP'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'STP'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.0676912029999 1.83350677500007,-58.0676912029999 6.01157376600012,-53.9863574539999 6.01157376600012,-53.9863574539999 1.83350677500007,-58.0676912029999 1.83350677500007))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SUR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SUR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.8444804280001 47.7500064090001,16.8444804280001 49.601779684,22.5396366780001 49.601779684,22.5396366780001 47.7500064090001,16.8444804280001 47.7500064090001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SVK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.3652612710001 45.42363678,13.3652612710001 46.863962301,16.5153015540001 46.863962301,16.5153015540001 45.42363678,13.3652612710001 45.42363678))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SVN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SVN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1081649100001 55.3426781270001,11.1081649100001 69.0363556930001,24.1634135340001 69.0363556930001,24.1634135340001 55.3426781270001,11.1081649100001 55.3426781270001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SWE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWE'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.7829061280001 -27.3162643429999,30.7829061280001 -25.7359990439999,32.1173983160001 -25.7359990439999,32.1173983160001 -27.3162643429999,30.7829061280001 -27.3162643429999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SWZ'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SWZ'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1188858709999 18.019110419,-63.1188858709999 18.0621092720001,-63.0175685850526 18.0621092720001,-63.0175685850526 18.019110419,-63.1188858709999 18.019110419))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SXM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SXM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.2073673840002 -9.75554778399989,46.2073673840002 -3.79111093499991,56.2874455090001 -3.79111093499991,56.2874455090001 -9.75554778399989,46.2073673840002 -9.75554778399989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SYC'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYC'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.7233992850002 32.313041687,35.7233992850002 37.3249063110001,42.377185506 37.3249063110001,42.377185506 32.313041687,35.7233992850002 32.313041687))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SYR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'SYR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.481312629 21.2901065120001,-72.481312629 21.9592145850001,-71.1288956369999 21.9592145850001,-71.1288956369999 21.2901065120001,-72.481312629 21.2901065120001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TCA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.4491837970001 7.45556671100012,13.4491837970001 23.4447199510001,23.9844063720001 23.4447199510001,23.9844063720001 7.45556671100012,13.4491837970001 7.45556671100012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TCD'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TCD'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.16610917099996 6.100490848287,-0.16610917099996 11.1349803670001,1.78235070800014 11.1349803670001,1.78235070800014 6.100490848287,-0.16610917099996 6.100490848287))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TGO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TGO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((97.3514010010001 5.62989003500013,97.3514010010001 20.4450064090001,105.650997762 20.4450064090001,105.650997762 5.62989003500013,97.3514010010001 5.62989003500013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['THA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'THA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((67.3426900630002 36.6786408490002,67.3426900630002 41.0399767050001,75.1641247970001 41.0399767050001,75.1641247970001 36.6786408490002,67.3426900630002 36.6786408490002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TJK'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TJK'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-171.086537239 -11.0660946589999,-171.086537239 -11.0513648419999,-171.072824674 -11.0513648419999,-171.072824674 -11.0660946589999,-171.086537239 -11.0660946589999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TKL'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKL'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((52.4376706173443 35.140646871,52.4376706173443 42.791187643,66.6457816980001 42.791187643,66.6457816980001 35.140646871,52.4376706173443 35.140646871))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TKM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TKM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.03003991 -9.5012277219999,124.03003991 -8.13502369599983,127.313243035 -8.13502369599983,127.313243035 -9.5012277219999,124.03003991 -9.5012277219999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TLS'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TLS'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-176.219309049 -22.3387997379999,-176.219309049 -15.5595028629999,-173.914255338 -15.5595028629999,-173.914255338 -22.3387997379999,-176.219309049 -22.3387997379999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TON'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TON'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.9287003249999 10.0420596370002,-61.9287003249999 11.3510602890001,-60.5220841139999 11.3510602890001,-60.5220841139999 10.0420596370002,-61.9287003249999 10.0420596370002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TTO'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TTO'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.4798323980001 30.2289053350001,7.4798323980001 37.3452009140002,11.5641309000001 37.3452009140002,11.5641309000001 30.2289053350001,7.4798323980001 30.2289053350001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.663259311 35.819778545,25.663259311 42.0987816430001,44.8069928290001 42.0987816430001,44.8069928290001 35.819778545,25.663259311 35.819778545))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((176.125254754 -9.42066822699981,176.125254754 -5.67750416499986,179.906748894 -5.67750416499986,179.906748894 -9.42066822699981,176.125254754 -9.42066822699981))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUV'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TUV'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((118.279551629 21.9046084660001,118.279551629 25.287420966,122.005381707 25.287420966,122.005381707 21.9046084660001,118.279551629 21.9046084660001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TWN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TWN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.3210315350001 -11.7312724819999,29.3210315350001 -0.985830179999823,40.4493921230001 -0.985830179999823,40.4493921230001 -11.7312724819999,29.3210315350001 -11.7312724819999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TZA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'TZA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.5484595130001 -1.47520599399984,29.5484595130001 4.21969187500011,35.0064726150001 4.21969187500011,35.0064726150001 -1.47520599399984,29.5484595130001 -1.47520599399984))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UGA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'UGA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.1328398030001 44.381048895,22.1328398030001 52.3689492800001,40.1595430910002 52.3689492800001,40.1595430910002 44.381048895,22.1328398030001 44.381048895))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UKR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'UKR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.389597134 -0.388767184999892,-177.389597134 28.2153181010001,166.652354363 28.2153181010001,166.652354363 -0.388767184999892,-177.389597134 -0.388767184999892))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UMI'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'UMI'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.4393611319999 -34.9734026019999,-58.4393611319999 -30.0968698119999,-53.1108361419999 -30.0968698119999,-53.1108361419999 -34.9734026019999,-58.4393611319999 -34.9734026019999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['URY'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'URY'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-179.143503384 18.9061171430001,-179.143503384 71.4125023460001,179.780935092 71.4125023460001,179.780935092 18.9061171430001,-179.143503384 18.9061171430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['USA'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'USA'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.2328569552957 19.8911422360002,-75.2328569552957 19.9715836900001,-75.0949502909999 19.9715836900001,-75.0949502909999 19.8911422360002,-75.2328569552957 19.8911422360002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['USG'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'USG'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.9758386630001 37.1851474,55.9758386630001 45.5587189740001,73.1486405840002 45.5587189740001,73.1486405840002 37.1851474,55.9758386630001 37.1851474))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UZB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'UZB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.4527140820001 41.9027519410001,12.4527140820001 41.9039147380001,12.4540354420001 41.9039147380001,12.4540354420001 41.9027519410001,12.4527140820001 41.9027519410001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VAT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VAT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4598282539999 12.5851504580001,-61.4598282539999 13.3807640650001,-61.1239314439999 13.3807640650001,-61.1239314439999 12.5851504580001,-61.4598282539999 12.5851504580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VCT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VCT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.3911486409999 0.649315491000067,-73.3911486409999 15.7029483090001,-59.815594849 15.7029483090001,-59.815594849 0.649315491000067,-73.3911486409999 0.649315491000067))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VEN'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VEN'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.7739965489999 18.3346621770001,-64.7739965489999 18.74624258,-64.2707413399999 18.74624258,-64.2707413399999 18.3346621770001,-64.7739965489999 18.3346621770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VGB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VGB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-65.0414934419999 17.6827660180001,-65.0414934419999 18.3865986140001,-64.5593969389999 18.3865986140001,-64.5593969389999 17.6827660180001,-65.0414934419999 17.6827660180001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VIR'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VIR'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.118655233 8.56557851800015,102.118655233 23.3662751270001,109.472422722 23.3662751270001,109.472422722 8.56557851800015,102.118655233 8.56557851800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VNM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VNM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.520518425 -20.2531063779999,166.520518425 -13.0648739559998,169.898936394 -13.0648739559998,169.898936394 -20.2531063779999,166.520518425 -20.2531063779999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VUT'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'VUT'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-178.185739713 -14.3194312479999,-178.185739713 -13.208916925,-176.125599739 -13.208916925,-176.125599739 -14.3194312479999,-178.185739713 -14.3194312479999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WLF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'WLF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.7601022650002 34.5685488950001,32.7601022650002 34.7009482940001,33.03028405 34.7009482940001,33.03028405 34.5685488950001,32.7601022650002 34.5685488950001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WSB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-172.782582161 -14.052829685,-172.782582161 -13.4628231749999,-171.437692838 -13.4628231749999,-171.437692838 -14.052829685,-172.782582161 -14.052829685))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WSM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'WSM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.5457462900001 12.1114436720001,42.5457462900001 18.9956375130001,54.5402938160002 18.9956375130001,54.5402938160002 12.1114436720001,42.5457462900001 12.1114436720001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['YEM'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'YEM'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.4699813160001 -46.965752863,16.4699813160001 -22.1264519249999,37.9777938160001 -22.1264519249999,37.9777938160001 -46.965752863,16.4699813160001 -46.965752863))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZAF'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZAF'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.9798775630001 -18.0692318719999,21.9798775630001 -8.1941240429999,33.674202515 -8.1941240429999,33.674202515 -18.0692318719999,21.9798775630001 -18.0692318719999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZMB'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZMB'" should true - sql postgres "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.219369751 -22.3973397829999,25.219369751 -15.6148080449999,33.0427681890002 -15.6148080449999,33.0427681890002 -22.3973397829999,25.219369751 -22.3973397829999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZWE'])).geom)) FROM ne_admin0_v3 where adm0_a3 = 'ZWE'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-70.0624080069999 12.417669989,-70.0624080069999 12.6321475280001,-69.8768204419999 12.6321475280001,-69.8768204419999 12.417669989,-70.0624080069999 12.417669989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ABW'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.4867777910001 29.3866053260001,60.4867777910001 38.4736734020001,74.8923067630001 38.4736734020001,74.8923067630001 29.3866053260001,60.4867777910001 29.3866053260001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AFG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.6693941430001 -18.0314047239998,11.6693941430001 -4.39120371499996,24.0617143150001 -4.39120371499996,24.0617143150001 -18.0314047239998,11.6693941430001 -18.0314047239998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AGO'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.4288223949999 18.1690941430001,-63.4288223949999 18.6012637390001,-62.9726456369999 18.6012637390001,-62.9726456369999 18.1690941430001,-63.4288223949999 18.1690941430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AIA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.2720325110001 39.637013245,19.2720325110001 42.6548135380001,21.0366793210001 42.6548135380001,21.0366793210001 39.637013245,19.2720325110001 39.637013245))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ALB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.5131942070001 59.9044863950001,19.5131942070001 60.4807803410001,21.0966903000001 60.4807803410001,21.0966903000001 59.9044863950001,19.5131942070001 59.9044863950001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ALD'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.4064563390001 42.4286774700001,1.4064563390001 42.649361674,1.76509078000015 42.649361674,1.76509078000015 42.4286774700001,1.4064563390001 42.4286774700001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AND'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.5693465500001 22.6209459430001,51.5693465500001 26.0747919720001,56.3836369150001 26.0747919720001,56.3836369150001 22.6209459430001,51.5693465500001 22.6209459430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARE'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.5880358489999 -55.0520158829998,-73.5880358489999 -21.7869377639999,-53.6615518799999 -21.7869377639999,-53.6615518799999 -55.0520158829998,-73.5880358489999 -55.0520158829998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.4362939860001 38.8637012740001,43.4362939860001 41.2904523730001,46.6026123460001 41.2904523730001,46.6026123460001 38.8637012740001,43.4362939860001 38.8637012740001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ARM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-170.831247525 -14.5328915339999,-170.831247525 -14.1688778629998,-168.160471158 -14.1688778629998,-168.160471158 -14.5328915339999,-170.831247525 -14.5328915339999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ASM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -90,-180 -60.516208592,180 -60.516208592,180 -90,-180 -90))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((123.575043165 -12.4385718729998,123.575043165 -12.4266089819999,123.597748243 -12.4266089819999,123.597748243 -12.4385718729998,123.575043165 -12.4385718729998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATC'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.7282820970001 -49.7216122379999,39.7282820970001 -11.5506324199998,77.5852156910001 -11.5506324199998,77.5852156910001 -49.7216122379999,39.7282820970001 -49.7216122379999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATF'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.8941544259999 16.9892438820001,-61.8941544259999 17.7276878930001,-61.6675919259999 17.7276878930001,-61.6675919259999 16.9892438820001,-61.8941544259999 16.9892438820001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ATG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((112.919444207 -54.750420831,112.919444207 -9.24016692499987,159.106455925 -9.24016692499987,159.106455925 -54.750420831,112.919444207 -54.750420831))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AUS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.52115482500011 46.3786430870001,9.52115482500011 49.0097744750001,17.1483378500001 49.0097744750001,17.1483378500001 46.3786430870001,9.52115482500011 46.3786430870001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AUT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.7745585530002 38.392644755,44.7745585530002 41.8904415900002,50.6257430350001 41.8904415900002,50.6257430350001 38.392644755,44.7745585530002 38.392644755))', 4326), ST_Centroid((geocode_admin0_polygons(Array['AZE'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.9868917230001 -4.46334401499993,28.9868917230001 -2.30306243899987,30.8339624430001 -2.30306243899987,30.8339624430001 -4.46334401499993,28.9868917230001 -4.46334401499993))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BDI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.52179992769047 49.495222881,2.52179992769047 51.4962376910001,6.37452518700007 51.4962376910001,6.37452518700007 49.495222881,2.52179992769047 49.495222881))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BEL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.759880818000113 6.21389923179639,0.759880818000113 12.3992442830001,3.83741906700001 12.3992442830001,3.83741906700001 6.21389923179639,0.759880818000113 6.21389923179639))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BEN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-68.4173884759999 12.0220401060001,-68.4173884759999 12.3102074240002,-68.1900121739999 12.3102074240002,-68.1900121739999 12.0220401060001,-68.4173884759999 12.0220401060001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BES'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.52257808499988 9.39188262900012,-5.52257808499988 15.0799075320001,2.39016890400009 15.0799075320001,2.39016890400009 9.39188262900012,-5.52257808499988 9.39188262900012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BFA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.0217895920001 20.738714911,88.0217895920001 26.6235440070001,92.6428511970002 26.6235440070001,92.6428511970002 20.738714911,88.0217895920001 20.738714911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BGD'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.3450232340001 41.2381041470001,22.3450232340001 44.228434539,28.6035262380001 44.228434539,28.6035262380001 41.2381041470001,22.3450232340001 41.2381041470001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BGR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.448903842 25.7895368510001,50.448903842 26.242580471,50.6456598131816 26.242580471,50.6456598131816 25.7895368510001,50.448903842 25.7895368510001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BHR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.5943497389999 20.9123989090001,-79.5943497389999 26.9284121770001,-72.7461645169999 26.9284121770001,-72.7461645169999 20.9123989090001,-79.5943497389999 20.9123989090001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BHS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((15.7160738520001 42.5592121380002,15.7160738520001 45.2845238250002,19.618884725 45.2845238250002,19.618884725 42.5592121380002,15.7160738520001 42.5592121380002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BIH'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.9892878899999 15.7941755230001,-79.9892878899999 15.7962100280001,-79.9863988919999 15.7962100280001,-79.9863988919999 15.7941755230001,-79.9892878899999 15.7941755230001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BJN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8673396479999 17.8819847680001,-62.8673396479999 17.9291445980001,-62.7916560539999 17.9291445980001,-62.7916560539999 17.8819847680001,-62.8673396479999 17.8819847680001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((23.165644979 51.2351683560001,23.165644979 56.1568059290001,32.7195321040001 56.1568059290001,32.7195321040001 51.2351683560001,23.165644979 51.2351683560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.2365122079999 15.8796519990001,-89.2365122079999 18.4907587690001,-87.7830704419999 18.4907587690001,-87.7830704419999 15.8796519990001,-89.2365122079999 15.8796519990001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BLZ'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.8859939889704 32.2480773815958,-64.8859939889704 32.3886579450001,-64.6476307056406 32.3886579450001,-64.6476307056406 32.2480773815958,-64.8859939889704 32.2480773815958))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BMU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.6664922699999 -22.8972575879999,-69.6664922699999 -9.67982147199997,-57.4656607669999 -9.67982147199997,-57.4656607669999 -22.8972575879999,-69.6664922699999 -22.8972575879999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BOL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.018474691 -33.742280375,-74.018474691 5.26722483300009,-28.8770645819999 5.26722483300009,-28.8770645819999 -33.742280375,-74.018474691 -33.742280375))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-59.6542048819999 13.051174221,-59.6542048819999 13.344549872,-59.4269099599999 13.344549872,-59.4269099599999 13.051174221,-59.6542048819999 13.051174221))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.99878991 4.01668101000011,113.99878991 5.05719635600018,115.360741008 5.05719635600018,115.360741008 4.01668101000011,113.99878991 4.01668101000011))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BRN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((88.7300667720001 26.6961493940002,88.7300667720001 28.3583989307863,92.0887764890001 28.3583989307863,92.0887764890001 26.6961493940002,88.7300667720001 26.6961493940002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BTN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.34555097700007 -54.4624976539999,3.34555097700007 -54.3801408829999,3.48666425900012 -54.3801408829999,3.48666425900012 -54.4624976539999,3.34555097700007 -54.4624976539999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BVT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.9783459880001 -26.891794128,19.9783459880001 -17.7818075559999,29.3500736890001 -17.7818075559999,29.3500736890001 -26.891794128,19.9783459880001 -26.891794128))', 4326), ST_Centroid((geocode_admin0_polygons(Array['BWA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.3872660720001 2.23645375600006,14.3872660720001 11.0008283490001,27.4413013100001 11.0008283490001,27.4413013100001 2.23645375600006,14.3872660720001 2.23645375600006))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CAF'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-141.005548637109 41.6690855920001,-141.005548637109 83.1165225280001,-52.616607226 83.1165225280001,-52.616607226 41.6690855920001,-141.005548637109 41.6690855920001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CAN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.821543816 -12.1999651019998,96.821543816 -12.1265601539999,96.9210718110001 -12.1265601539999,96.9210718110001 -12.1999651019998,96.821543816 -12.1999651019998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CCK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.95480920400013 45.820718486,5.95480920400013 47.8011660770001,10.466626831 47.8011660770001,10.466626831 45.820718486,5.95480920400013 45.820718486))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHE'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.453724739 -55.9185042229998,-109.453724739 -17.506588198,-66.4208064439999 -17.506588198,-66.4208064439999 -55.9185042229998,-109.453724739 -55.9185042229998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.6022563070002 15.775376695,73.6022563070002 53.569444479,134.772579387 53.569444479,134.772579387 15.775376695,73.6022563070002 15.775376695))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CHN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.61871984899992 4.34406159100013,-8.61871984899992 10.7264781700001,-2.50632808399993 10.7264781700001,-2.50632808399993 4.34406159100013,-8.61871984899992 4.34406159100013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CIV'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.234242317 10.2815615910001,-109.234242317 10.3110212260001,-109.210357226 10.3110212260001,-109.210357226 10.2815615910001,-109.234242317 10.2815615910001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CLP'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.50505618600005 1.65455129000014,8.50505618600005 13.081140646,16.2077234290001 13.081140646,16.2077234290001 1.65455129000014,8.50505618600005 1.65455129000014))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CMR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.5848087900001 34.9777627570001,32.5848087900001 35.1994029740002,34.0219607300423 35.1994029740002,34.0219607300423 34.9777627570001,32.5848087900001 34.9777627570001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CNM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.2105548693531 -13.4583505239999,12.2105548693531 5.37528025300014,31.2804468180001 5.37528025300014,31.2804468180001 -13.4583505239999,12.2105548693531 -13.4583505239999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COD'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1140163040629 -5.01963083599986,11.1140163040629 3.70827606200005,18.64240686 3.70827606200005,18.64240686 -5.01963083599986,11.1140163040629 -5.01963083599986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-165.824533658 -21.9388973939999,-165.824533658 -8.94670989399988,-157.312814908 -8.94670989399988,-157.312814908 -21.9388973939999,-165.824533658 -21.9388973939999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.72370358 -4.23648447699985,-81.72370358 13.5783552100001,-66.8750605879999 13.5783552100001,-66.8750605879999 -4.23648447699985,-81.72370358 -4.23648447699985))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2132267590001 -12.3803036439999,43.2132267590001 -11.3612606749999,44.5290633470001 -11.3612606749999,44.5290633470001 -12.3803036439999,43.2132267590001 -12.3803036439999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['COM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-25.3604223299999 14.8039411480001,-25.3604223299999 17.196600653,-22.6665746739999 17.196600653,-22.6665746739999 14.8039411480001,-25.3604223299999 14.8039411480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CPV'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.1176651679999 5.51508209800012,-87.1176651679999 11.2099370320002,-82.5628368739999 11.2099370320002,-82.5628368739999 5.51508209800012,-87.1176651679999 5.51508209800012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CRI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((154.388519727 -21.0300432269999,154.388519727 -21.028741144,154.391286655 -21.028741144,154.391286655 -21.0300432269999,154.388519727 -21.0300432269999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CSI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.9496150379999 19.827826239,-84.9496150379999 23.2655703800001,-74.1328832669999 23.2655703800001,-74.1328832669999 19.827826239,-84.9496150379999 19.827826239))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CUB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-69.1717423169999 12.041327216,-69.1717423169999 12.3915062520001,-68.7397354809999 12.3915062520001,-68.7397354809999 12.041327216,-69.1717423169999 12.041327216))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CUW'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((105.581797722 -10.5660132789999,105.581797722 -10.4308407529998,105.714691602 -10.4308407529998,105.714691602 -10.5660132789999,105.581797722 -10.5660132789999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CXR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.4165420209999 19.2638636150001,-81.4165420209999 19.7576308370001,-79.7266426919999 19.7576308370001,-79.7266426919999 19.2638636150001,-81.4165420209999 19.2638636150001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6019153500579 35.002722473,32.6019153500579 35.6919619810002,34.5925399100002 35.6919619810002,34.5925399100002 35.002722473,32.6019153500579 35.002722473))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.2717391290002 34.6250194300001,32.2717391290002 35.1870821302553,34.0991317070001 35.1870821302553,34.0991317070001 34.6250194300001,32.2717391290002 34.6250194300001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CYP'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.076140991 48.557915752,12.076140991 51.0400123090001,18.8374337160001 51.0400123090001,18.8374337160001 48.557915752,12.076140991 48.557915752))', 4326), ST_Centroid((geocode_admin0_polygons(Array['CZE'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.85248986800011 47.271120911,5.85248986800011 55.065334377,15.0220593670001 55.065334377,15.0220593670001 47.271120911,5.85248986800011 47.271120911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DEU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((41.7491101480001 10.9298249310001,41.7491101480001 12.7079125020001,43.4187117850001 12.7079125020001,43.4187117850001 10.9298249310001,41.7491101480001 10.9298249310001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DJI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4889216789999 15.201808986,-61.4889216789999 15.6338565120001,-61.249256965 15.6338565120001,-61.249256965 15.201808986,-61.4889216789999 15.201808986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DMA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.09400475400008 54.5685895850001,8.09400475400008 57.7511660830001,15.1513778000001 57.7511660830001,15.1513778000001 54.5685895850001,8.09400475400008 54.5685895850001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DNK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.0098376059999 17.5455589860001,-72.0098376059999 19.9376895200001,-68.3286026679999 19.9376895200001,-68.3286026679999 17.5455589860001,-72.0098376059999 17.5455589860001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DOM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.68238521299992 18.9755612180001,-8.68238521299992 37.0939395200001,11.9688607170001 37.0939395200001,11.9688607170001 18.9755612180001,-8.68238521299992 18.9755612180001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['DZA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.0115860669999 -5.01137257899988,-92.0115860669999 1.66437409100016,-75.2272639579999 1.66437409100016,-75.2272639579999 -5.01137257899988,-92.0115860669999 -5.01137257899988))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ECU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.6883427320001 21.9943692020002,24.6883427320001 31.6564802100001,36.8991805350002 31.6564802100001,36.8991805350002 21.9943692020002,24.6883427320001 21.9943692020002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['EGY'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((36.4236470950001 12.3600218710001,36.4236470950001 18.004828192,43.1238712900001 18.004828192,43.1238712900001 12.3600218710001,36.4236470950001 12.3600218710001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ERI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.6740991620001 34.937892971,33.6740991620001 35.1189944460001,33.9214742440001 35.1189944460001,33.9214742440001 34.937892971,33.6740991620001 34.937892971))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ESB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-18.1672257149999 27.6422386740001,-18.1672257149999 43.793443101,4.3370874360001 43.793443101,4.3370874360001 27.6422386740001,-18.1672257149999 27.6422386740001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ESP'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8323673840001 57.5158185830001,21.8323673840001 59.6708845070001,28.1864754640001 59.6708845070001,28.1864754640001 57.5158185830001,21.8323673840001 57.5158185830001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['EST'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.9897998450001 3.40333343500009,32.9897998450001 14.8795321660001,47.9791691490001 14.8795321660001,47.9791691490001 3.40333343500009,32.9897998450001 3.40333343500009))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ETH'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.62316451 59.811224677,20.62316451 70.0753103640001,31.5695247800001 70.0753103640001,31.5695247800001 59.811224677,20.62316451 59.811224677))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FIN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 -21.7111141909999,-180 -12.4752743469999,180 -12.4752743469999,180 -21.7111141909999,-180 -21.7111141909999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FJI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3181860019999 -52.4065227259999,-61.3181860019999 -51.0277645809999,-57.7342830069999 -51.0277645809999,-57.7342830069999 -52.4065227259999,-61.3181860019999 -52.4065227259999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FLK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 51.0875408834804,8.20030521600006 51.0875408834804,8.20030521600006 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.54525800900012 41.365912177,8.54525800900012 43.0174014340001,9.55958092500009 43.0174014340001,9.55958092500009 41.365912177,8.54525800900012 41.365912177))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRH'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.64415442599994 61.3941104190001,-7.64415442599994 62.3989118510001,-6.2757869129999 62.3989118510001,-6.2757869129999 61.3941104190001,-7.64415442599994 61.3941104190001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FRO'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((138.063812696 0.918158270000148,138.063812696 9.77558014500013,163.046560092 9.77558014500013,163.046560092 0.918158270000148,138.063812696 0.918158270000148))', 4326), ST_Centroid((geocode_admin0_polygons(Array['FSM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.69556725400014 -3.93685618990304,8.69556725400014 2.32249501600009,14.4989905190001 2.32249501600009,14.4989905190001 -3.93685618990304,8.69556725400014 -3.93685618990304))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GAB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.6913142569999 49.9096133480001,-13.6913142569999 60.84788646,1.77116946700002 60.84788646,1.77116946700002 49.9096133480001,-13.6913142569999 49.9096133480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GBR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((39.9859763554231 41.0441108200001,39.9859763554231 43.5758425900001,46.6948031010001 43.5758425900001,46.6948031010001 41.0441108200001,39.9859763554231 41.0441108200001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GEO'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.67345130099989 49.4115664730001,-2.67345130099989 49.731390692,-2.17031816299993 49.731390692,-2.17031816299993 49.4115664730001,-2.67345130099989 49.4115664730001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GGY'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.26250931799999 4.7371279970001,-3.26250931799999 11.162937317,1.18796838400004 11.162937317,1.18796838400004 4.7371279970001,-3.26250931799999 4.7371279970001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GHA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.35838675876349 36.1105003930001,-5.35838675876349 36.1411196720123,-5.33877348311998 36.1411196720123,-5.33877348311998 36.1105003930001,-5.35838675876349 36.1105003930001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GIB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-15.0811254549999 7.19020823200012,-15.0811254549999 12.673387757,-7.66244746999996 12.673387757,-7.66244746999996 7.19020823200012,-15.0811254549999 7.19020823200012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GIN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7978409499999 15.8469912780002,-61.7978409499999 16.513088283,-60.9892471999999 16.513088283,-60.9892471999999 15.8469912780002,-61.7978409499999 15.8469912780002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GLP'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.8297013009999 13.0650088560001,-16.8297013009999 13.8199844360001,-13.8187125249999 13.8199844360001,-13.8187125249999 13.0650088560001,-16.8297013009999 13.0650088560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GMB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-16.7284367771401 10.9276390650001,-16.7284367771401 12.6794339000001,-13.6607118329999 12.6794339000001,-13.6607118329999 10.9276390650001,-16.7284367771401 10.9276390650001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GNB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.61198978000007 -1.47568124799986,5.61198978000007 3.77240631700012,11.3363411870001 3.77240631700012,11.3363411870001 -1.47568124799986,5.61198978000007 -1.47568124799986))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GNQ'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((19.6264754570001 34.8150088560001,19.6264754570001 41.7504759730001,28.2397567070001 41.7504759730001,28.2397567070001 34.8150088560001,19.6264754570001 34.8150088560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRC'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7905167309999 12.0028343770001,-61.7905167309999 12.5297305360001,-61.4216202459999 12.5297305360001,-61.4216202459999 12.0028343770001,-61.7905167309999 12.0028343770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRD'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.0572403639999 59.792629299,-73.0572403639999 83.6341006530001,-11.3768204419999 83.6341006530001,-11.3768204419999 59.792629299,-73.0572403639999 59.792629299))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GRL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.2462338320825 13.7289030478944,-92.2462338320825 17.8160195930001,-88.2209221351212 17.8160195930001,-88.2209221351212 13.7289030478944,-92.2462338320825 13.7289030478944))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GTM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000013,-54.6152921149999 5.74476537500011,-51.649037239 5.74476537500011,-51.649037239 2.11067332000013,-54.6152921149999 2.11067332000013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUF'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.624196811 13.2410342470001,144.624196811 13.6541201840001,144.95215905 13.6541201840001,144.95215905 13.2410342470001,144.624196811 13.2410342470001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.3967128089999 1.18582021100013,-61.3967128089999 8.55801015800012,-56.4818190109999 8.55801015800012,-56.4818190109999 1.18582021100013,-61.3967128089999 1.18582021100013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['GUY'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.837331576 22.177069403,113.837331576 22.5639460320001,114.40129642 22.5639460320001,114.40129642 22.177069403,113.837331576 22.177069403))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HKG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((73.236013217 -53.1925595029999,73.236013217 -52.9616024719999,73.8121850920001 -52.9616024719999,73.8121850920001 -53.1925595029999,73.236013217 -53.1925595029999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HMD'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.3637912599999 12.9797773240001,-89.3637912599999 17.4186465520001,-83.1304418609999 17.4186465520001,-83.1304418609999 12.9797773240001,-89.3637912599999 12.9797773240001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HND'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.5014754570001 42.4163272160001,13.5014754570001 46.5469790650001,19.4078381750001 46.5469790650001,19.4078381750001 42.4163272160001,13.5014754570001 42.4163272160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HRV'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-74.4891658189999 18.0259463560001,-74.4891658189999 20.08978913,-71.6391108809999 20.08978913,-71.6391108809999 18.0259463560001,-74.4891658189999 18.0259463560001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HTI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.0940352780001 45.741343486,16.0940352780001 48.5692328900001,22.8776005460001 48.5692328900001,22.8776005460001 45.741343486,16.0940352780001 45.741343486))', 4326), ST_Centroid((geocode_admin0_polygons(Array['HUN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((95.0127059250001 -10.9226213519998,95.0127059250001 5.9101016300001,140.977626994 5.9101016300001,140.977626994 -10.9226213519998,95.0127059250001 -10.9226213519998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IDN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.79015051999994 54.0569522160001,-4.79015051999994 54.4190127620001,-4.3119197259999 54.4190127620001,-4.3119197259999 54.0569522160001,-4.79015051999994 54.0569522160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IMN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((68.1434025400001 6.74555084800015,68.1434025400001 35.4954055790001,97.3622530520001 35.4954055790001,97.3622530520001 6.74555084800015,68.1434025400001 6.74555084800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IND'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((96.82154382 -12.1999651,96.82154382 -10.43084075,105.7146916 -10.43084075,105.7146916 -12.1999651,96.82154382 -12.1999651))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IOA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((71.260996941 -7.43222421699987,71.260996941 -5.22698333099991,72.4946395190001 -5.22698333099991,72.4946395190001 -7.43222421699987,71.260996941 -7.43222421699987))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IOT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-10.4781794909999 51.4457054710001,-10.4781794909999 55.386379299,-5.99351966099994 55.386379299,-5.99351966099994 51.4457054710001,-10.4781794909999 51.4457054710001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((44.0148633220001 25.0594081650001,44.0148633220001 39.7715269980001,63.3196281330001 39.7715269980001,63.3196281330001 25.0594081650001,44.0148633220001 25.0594081650001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((38.7745113520001 29.063136699,38.7745113520001 37.3754975380001,48.5592554050001 37.3754975380001,48.5592554050001 29.063136699,38.7745113520001 29.063136699))', 4326), ST_Centroid((geocode_admin0_polygons(Array['IRQ'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-24.539906379 63.3967145850001,-24.539906379 66.564154364,-13.5029190749999 66.564154364,-13.5029190749999 63.3967145850001,-24.539906379 63.3967145850001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ISL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2483508570001 29.4896914730001,34.2483508570001 33.4067217000001,35.8880725500002 33.4067217000001,35.8880725500002 29.4896914730001,34.2483508570001 29.4896914730001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ISR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.60272831200007 35.489243882,6.60272831200007 47.085214945,18.5174259770001 47.085214945,18.5174259770001 35.489243882,6.60272831200007 35.489243882))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ITA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.3746638659999 17.70319245,-78.3746638659999 18.525091864,-76.1879776679999 18.525091864,-76.1879776679999 17.70319245,-78.3746638659999 17.70319245))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JAM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.24201412699992 49.1713320980001,-2.24201412699992 49.267035223,-2.00829016799992 49.267035223,-2.00829016799992 49.1713320980001,-2.24201412699992 49.1713320980001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JEY'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.949385116681 29.189950664,34.949385116681 33.3716850790001,39.2919991450001 33.3716850790001,39.2919991450001 29.189950664,34.949385116681 29.189950664))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JOR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((122.938161655 24.212103583,122.938161655 45.5204125020001,153.985606316 45.5204125020001,153.985606316 24.212103583,122.938161655 24.212103583))', 4326), ST_Centroid((geocode_admin0_polygons(Array['JPN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((62.8006417230001 45.5658244830001,62.8006417230001 46.390838725,63.9671338300001 46.390838725,63.9671338300001 45.5658244830001,62.8006417230001 45.5658244830001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((76.7773507410001 35.110441997,76.7773507410001 35.6477993780001,77.8003463140001 35.6477993780001,77.8003463140001 35.110441997,76.7773507410001 35.110441997))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.478278849 40.5846556600001,46.478278849 55.4345502730001,87.3237960210001 55.4345502730001,87.3237960210001 40.5846556600001,46.478278849 40.5846556600001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KAZ'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((33.8904683840002 -4.67750416499996,33.8904683840002 5.03037582260775,41.8850191650001 5.03037582260775,41.8850191650001 -4.67750416499996,33.8904683840002 -4.67750416499996))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KEN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((69.2262960200001 39.1892369590001,69.2262960200001 43.2617015580001,80.2575606690001 43.2617015580001,80.2575606690001 39.1892369590001,69.2262960200001 39.1892369590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KGZ'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.313423706 10.4157736200001,102.313423706 14.7045816050001,107.610516399 14.7045816050001,107.610516399 10.4157736200001,102.313423706 10.4157736200001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KHM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-174.543405728 -11.4611141909999,-174.543405728 4.7230899110001,176.850922071 4.7230899110001,176.850922071 -11.4611141909999,-174.543405728 -11.4611141909999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KIR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.8610733709999 17.1005313170001,-62.8610733709999 17.4158389340001,-62.5367732409999 17.4158389340001,-62.5367732409999 17.1005313170001,-62.8610733709999 17.1005313170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KNA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.613617384 33.197577216,124.613617384 38.6243307589749,131.862521886 38.6243307589749,131.862521886 33.197577216,124.613617384 33.197577216))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KOR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.024751424 41.8440103160001,20.024751424 43.2630709840001,21.7727584220001 43.2630709840001,21.7727584220001 41.8440103160001,20.024751424 41.8440103160001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KOS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.5324357500001 28.5335049440001,46.5324357500001 30.0982156370001,48.4327812271219 30.0982156370001,48.4327812271219 28.5335049440001,46.5324357500001 28.5335049440001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['KWT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((100.097073202 13.9154566450001,100.097073202 22.4960440070001,107.66436324 22.4960440070001,107.66436324 13.9154566450001,100.097073202 13.9154566450001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LAO'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.0996199880001 33.055580342,35.0996199880001 34.687547913,36.604101196 34.687547913,36.604101196 33.055580342,35.0996199880001 33.055580342))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-11.4761856759999 4.34723541900004,-11.4761856759999 8.56539560900008,-7.38411820499996 8.56539560900008,-7.38411820499996 4.34723541900004,-11.4761856759999 4.34723541900004))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.28654382300007 19.496123759,9.28654382300007 33.1812253147281,25.1562606130001 33.1812253147281,25.1562606130001 19.496123759,9.28654382300007 19.496123759))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LBY'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.078521288 13.7146670590001,-61.078521288 14.1118838560001,-60.8829646479999 14.1118838560001,-60.8829646479999 13.7146670590001,-61.078521288 13.7146670590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LCA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.47588627100012 47.0524004120001,9.47588627100012 47.2628010050001,9.61572269700011 47.2628010050001,9.61572269700011 47.0524004120001,9.47588627100012 47.0524004120001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LIE'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((79.6557723320001 5.92373281500015,79.6557723320001 9.82957591400015,81.8903100920001 9.82957591400015,81.8903100920001 5.92373281500015,79.6557723320001 5.92373281500015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LKA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((27.0021549890001 -30.6587993359999,27.0021549890001 -28.570761414,29.4359082440001 -28.570761414,29.4359082440001 -30.6587993359999,27.0021549890001 -30.6587993359999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LSO'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9245687005624 53.8868411260001,20.9245687005624 56.4426024370001,26.8007202560001 56.4426024370001,26.8007202560001 53.8868411260001,20.9245687005624 53.8868411260001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LTU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.71492720500004 49.441324362,5.71492720500004 50.1749746710001,6.50257938700014 50.1749746710001,6.50257938700014 49.441324362,5.71492720500004 49.441324362))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LUX'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.9685978520001 55.6669908660001,20.9685978520001 58.0751384490001,28.2172746170001 58.0751384490001,28.2172746170001 55.6669908660001,20.9685978520001 55.6669908660001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['LVA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((113.519867384 22.1053734400001,113.519867384 22.220770575,113.587494337 22.220770575,113.587494337 22.1053734400001,113.519867384 22.1053734400001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAC'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1468399729999 18.0333914721357,-63.1468399729999 18.1221377620001,-63.0107315749999 18.1221377620001,-63.0107315749999 18.0333914721357,-63.1468399729999 18.0333914721357))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAF'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0137433253452 21.4199710975817,-17.0137433253452 35.926519149,-1.03199947099995 35.926519149,-1.03199947099995 21.4199710975817,-17.0137433253452 21.4199710975817))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MAR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.36575020700008 43.7179690770001,7.36575020700008 43.763505554,7.4374540320631 43.763505554,7.4374540320631 43.7179690770001,7.36575020700008 43.7179690770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MCO'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((26.617889038 45.461773987,26.617889038 48.486033834,30.1315763750001 48.486033834,30.1315763750001 45.461773987,26.617889038 45.461773987))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((43.2229110040001 -25.5985653629998,43.2229110040001 -11.9436174459998,50.5039168630001 -11.9436174459998,50.5039168630001 -25.5985653629998,43.2229110040001 -25.5985653629998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((72.684825066 -0.688571872999901,72.684825066 7.10724518400015,73.7531844410002 7.10724518400015,73.7531844410002 -0.688571872999901,72.684825066 -0.688571872999901))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MDV'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-118.368804229 14.5462829243643,-118.368804229 32.7128364050001,-86.7005916009999 32.7128364050001,-86.7005916009999 14.5462829243643,-118.368804229 14.5462829243643))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MEX'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((165.282237175 4.57379791900016,165.282237175 14.6105003930001,172.029795769 14.6105003930001,172.029795769 4.57379791900016,165.282237175 4.57379791900016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MHL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.4441573490001 40.8493940230001,20.4441573490001 42.3703347790001,23.0095821530001 42.3703347790001,23.0095821530001 40.8493940230001,20.4441573490001 40.8493940230001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MKD'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-12.2641304119999 10.1400540170001,-12.2641304119999 24.9950645960001,4.23563765500012 24.9950645960001,4.23563765500012 10.1400540170001,-12.2641304119999 10.1400540170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MLI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.1836043630001 35.801214911,14.1836043630001 36.0755882830001,14.5671492850001 36.0755882830001,14.5671492850001 35.801214911,14.1836043630001 35.801214911))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MLT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((92.174972779 9.79071686400013,92.174972779 28.538465881,101.173855021 28.538465881,101.173855021 9.79071686400013,92.174972779 9.79071686400013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MMR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.4335307210001 41.852362372,18.4335307210001 43.5478856410001,20.3551705320001 43.5478856410001,20.3551705320001 41.852362372,18.4335307210001 41.852362372))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNE'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((87.7357088630001 41.586144918,87.7357088630001 52.1295840460001,119.907026815 52.1295840460001,119.907026815 41.586144918,87.7357088630001 41.586144918))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((144.902110222 14.1106631530001,144.902110222 20.5554059920001,145.868907097 20.5554059920001,145.868907097 14.1106631530001,144.902110222 14.1106631530001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MNP'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.2138452550002 -26.8602715039999,30.2138452550002 -10.4690080709999,40.8479923840001 -10.4690080709999,40.8479923840001 -26.8602715039999,30.2138452550002 -26.8602715039999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MOZ'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.0811748859999 14.7343989060002,-17.0811748859999 27.2854157510001,-4.8216131179999 27.2854157510001,-4.8216131179999 14.7343989060002,-17.0811748859999 14.7343989060002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MRT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.2301326159999 16.6753604190001,-62.2301326159999 16.8193220070001,-62.1405330069999 16.8193220070001,-62.1405330069999 16.6753604190001,-62.2301326159999 16.6753604190001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MSR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.228830533 14.4081078150001,-61.228830533 14.8768985050001,-60.8104141919999 14.8768985050001,-60.8104141919999 14.4081078150001,-61.228830533 14.4081078150001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MTQ'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((56.5241805350002 -20.5173479149999,56.5241805350002 -10.3239071589999,63.493907097 -10.3239071589999,63.493907097 -20.5173479149999,56.5241805350002 -20.5173479149999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MUS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.6633081470002 -17.1353353879999,32.6633081470002 -9.38123504699981,35.9042989500001 -9.38123504699981,35.9042989500001 -17.1353353879999,32.6633081470002 -17.1353353879999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MWI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((99.6452280600001 0.851370341000077,99.6452280600001 7.35578034100014,119.278086785 7.35578034100014,119.278086785 0.851370341000077,99.6452280600001 0.851370341000077))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MYS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((45.0424910820001 -12.9891903629999,45.0424910820001 -12.6472307269999,45.2908634770001 -12.6472307269999,45.2908634770001 -12.9891903629999,45.0424910820001 -12.9891903629999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['MYT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.7176212900001 -28.9593681839999,11.7176212900001 -16.9510572309999,25.2597807210001 -16.9510572309999,25.2597807210001 -28.9593681839999,11.7176212900001 -28.9593681839999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NAM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((163.615733269 -22.6706682269998,163.615733269 -19.623711847,171.343765287 -19.623711847,171.343765287 -22.6706682269998,163.615733269 -22.6706682269998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NCL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.152941121000111 11.69577301,0.152941121000111 23.5173511760001,15.9703218990001 23.5173511760001,15.9703218990001 11.69577301,0.152941121000111 11.69577301))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NER'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((167.912119988 -29.0800106749999,167.912119988 -28.9974911439999,167.996348504 -28.9974911439999,167.996348504 -29.0800106749999,167.912119988 -29.0800106749999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NFK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.67108199000012 4.27216217700007,2.67108199000012 13.8802908320001,14.6699361570001 13.8802908320001,14.6699361570001 4.27216217700007,2.67108199000012 4.27216217700007))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NGA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.6858210929999 10.7134815470002,-87.6858210929999 15.0309699500002,-82.7256973949999 15.0309699500002,-82.7256973949999 10.7134815470002,-87.6858210929999 10.7134815470002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NIC'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-169.95042884 -19.1427548159999,-169.95042884 -18.9640438779999,-169.782907681 -18.9640438779999,-169.782907681 -19.1427548159999,-169.95042884 -19.1427548159999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NIU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.2513321609999 17.4645711740002,-63.2513321609999 53.5580915390001,7.19850590000004 53.5580915390001,7.19850590000004 17.4645711740002,-63.2513321609999 17.4645711740002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NLD'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-9.11742102799991 57.993150132,-9.11742102799991 80.2481143250001,33.6403914720001 80.2481143250001,33.6403914720001 57.993150132,-9.11742102799991 57.993150132))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NOR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((80.03028772 26.3437678020001,80.03028772 30.4169041950001,88.1690674240001 30.4169041950001,88.1690674240001 26.3437678020001,80.03028772 26.3437678020001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NPL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.906993035 -0.551853122999901,166.906993035 -0.490411065999922,166.958262566 -0.490411065999922,166.958262566 -0.551853122999901,166.906993035 -0.551853122999901))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NRU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.9579972 -52.600313271,-177.9579972 -8.54322682099986,178.843923373 -8.54322682099986,178.843923373 -52.600313271,-177.9579972 -52.600313271))', 4326), ST_Centroid((geocode_admin0_polygons(Array['NZL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((51.9786149500002 16.6424060302812,51.9786149500002 26.385972398,59.8445744150001 26.385972398,59.8445744150001 16.6424060302812,51.9786149500002 16.6424060302812))', 4326), ST_Centroid((geocode_admin0_polygons(Array['OMN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((60.8443787030001 23.6945254580001,60.8443787030001 37.0544835410001,77.0489709880002 37.0544835410001,77.0489709880002 23.6945254580001,60.8443787030001 23.6945254580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PAK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.053246217 7.20571523600016,-83.053246217 9.62929248000016,-77.1632698159999 9.62929248000016,-77.1632698159999 7.20571523600016,-83.053246217 7.20571523600016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PAN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-130.753081835 -25.0770809879998,-130.753081835 -23.9244117169999,-124.778065559 -23.9244117169999,-124.778065559 -25.0770809879998,-130.753081835 -25.0770809879998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PCN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-81.3375575289999 -18.3377462069379,-81.3375575289999 -0.0290927119998656,-68.6842524829999 -0.0290927119998656,-68.6842524829999 -18.3377462069379,-81.3375575289999 -18.3377462069379))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PER'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((114.027679884 9.67951080900016,114.027679884 11.1179873720002,115.848806186 11.1179873720002,115.848806186 9.67951080900016,114.027679884 9.67951080900016))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PGA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((116.954925977 4.65570709800011,116.954925977 21.122381903,126.617686394 21.122381903,126.617686394 4.65570709800011,116.954925977 4.65570709800011))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PHL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((131.131114129 2.94904205900015,131.131114129 8.09661782863144,134.727342990799 8.09661782863144,134.727342990799 2.94904205900015,131.131114129 2.94904205900015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PLW'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((140.84921106 -11.6363257789998,140.84921106 -1.34636809699988,155.96753991 -1.34636809699988,155.96753991 -11.6363257789998,140.84921106 -11.6363257789998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PNG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((14.123922973 48.9940131640001,14.123922973 54.8383242860001,24.1431563720001 54.8383242860001,24.1431563720001 48.9940131640001,14.123922973 48.9940131640001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['POL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-67.9378149079999 17.9229190120002,-67.9378149079999 18.522772528,-65.2446182929999 18.522772528,-65.2446182929999 17.9229190120002,-67.9378149079999 17.9229190120002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.211315989 37.6756045590001,124.211315989 43.010269878,130.699961785 43.010269878,130.699961785 37.6756045590001,124.211315989 37.6756045590001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-31.2849014959999 30.0292422550001,-31.2849014959999 42.15362966,-6.20594722499993 42.15362966,-6.20594722499993 30.0292422550001,-31.2849014959999 30.0292422550001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-62.650357219 -27.5868421429999,-62.650357219 -19.2867286169999,-54.2452888589999 -19.2867286169999,-54.2452888589999 -27.5868421429999,-62.650357219 -27.5868421429999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PRY'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.2002694411415 31.2114489580001,34.2002694411415 32.542640076,35.5725362550001 32.542640076,35.5725362550001 31.2114489580001,34.2002694411415 31.2114489580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PSX'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-154.536976692 -27.6412085919999,-154.536976692 -7.95012786299982,-134.942982551 -7.95012786299982,-134.942982551 -27.6412085919999,-154.536976692 -27.6412085919999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['PYF'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((50.750987175 24.5598715210001,50.750987175 26.16010163,51.6165470710001 26.16010163,51.6165470710001 24.5598715210001,50.750987175 24.5598715210001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['QAT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.2254337900002 -21.3707821589999,55.2254337900002 -20.861423435,55.8545028000001 -20.861423435,55.8545028000001 -21.3707821589999,55.2254337900002 -21.3707821589999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['REU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((20.2428259690001 43.6500499480001,20.2428259690001 48.2748322560001,29.6995548840001 48.2748322560001,29.6995548840001 43.6500499480001,20.2428259690001 43.6500499480001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ROU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-180 41.1926805620002,-180 81.8587100280001,180 81.8587100280001,180 41.1926805620002,-180 41.1926805620002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['RUS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((28.8572355550001 -2.82685475699989,28.8572355550001 -1.05869394899987,30.8878092850001 -1.05869394899987,30.8878092850001 -2.82685475699989,28.8572355550001 -2.82685475699989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['RWA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.1046443349999 20.7669131530001,-17.1046443349999 27.6614653400001,-8.68080908199988 27.6614653400001,-8.68080908199988 20.7669131530001,-17.1046443349999 20.7669131530001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SAH'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((34.5727645190002 16.3709446840655,34.5727645190002 32.1213479620001,55.6375647380002 32.1213479620001,55.6375647380002 16.3709446840655,34.5727645190002 16.3709446840655))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SAU'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((117.751856381 15.1500820250001,117.751856381 15.1543692630001,117.755692331 15.1543692630001,117.755692331 15.1500820250001,117.751856381 15.1500820250001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SCR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.8094486900001 8.6816417440001,21.8094486900001 22.2269648230001,38.6038517590002 22.2269648230001,38.6038517590002 8.6816417440001,21.8094486900001 8.6816417440001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SDN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((24.1215556230001 3.49020151800015,24.1215556230001 12.2161546840002,35.9208354090002 12.2161546840002,35.9208354090002 3.49020151800015,24.1215556230001 3.49020151800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SDS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-17.5360408189999 12.3056065880001,-17.5360408189999 16.6913853970001,-11.3777762449999 16.6913853970001,-11.3777762449999 12.3056065880001,-17.5360408189999 12.3056065880001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SEN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-78.6404109369999 15.8620873070001,-78.6404109369999 15.8672956400001,-78.6368708979999 15.8672956400001,-78.6368708979999 15.8620873070001,-78.6404109369999 15.8620873070001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SER'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((103.640391472 1.26430898600009,103.640391472 1.44863515800004,104.003428582 1.44863515800004,104.003428582 1.26430898600009,103.640391472 1.26430898600009))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SGP'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-38.0870255199999 -59.4727515599998,-38.0870255199999 -53.9724260399999,-26.2393285799999 -53.9724260399999,-26.2393285799999 -59.4727515599998,-38.0870255199999 -59.4727515599998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SGS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-14.4177139959999 -40.3978817689998,-14.4177139959999 -7.87786223799983,-5.65038001199986 -7.87786223799983,-5.65038001199986 -40.3978817689998,-14.4177139959999 -40.3978817689998))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SHN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.4843856130001 76.4364688170001,10.4843856130001 80.7700869810001,29.7070418630001 80.7700869810001,29.7070418630001 76.4364688170001,10.4843856130001 76.4364688170001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SJM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((155.507985873 -12.2906226539999,155.507985873 -6.59986744599981,168.825856967 -6.59986744599981,168.825856967 -12.2906226539999,155.507985873 -12.2906226539999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-13.3010961579999 6.91941966400012,-13.3010961579999 9.99600596100012,-10.2822358799999 9.99600596100012,-10.2822358799999 6.91941966400012,-13.3010961579999 6.91941966400012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLE'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.1147790119999 13.1586367860001,-90.1147790119999 14.4453726200001,-87.6931935119999 14.4453726200001,-87.6931935119999 13.1586367860001,-90.1147790119999 13.1586367860001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SLV'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.3856287450001 43.892055515,12.3856287450001 43.9825667860001,12.4923922540001 43.9825667860001,12.4923922540001 43.892055515,12.3856287450001 43.892055515))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SMR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.6472465410002 7.9965156050001,42.6472465410002 11.4989281270001,48.9391119999082 11.4989281270001,48.9391119999082 7.9965156050001,42.6472465410002 7.9965156050001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SOL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((40.9653853760002 -1.69628316497764,40.9653853760002 11.9891186460002,51.4170378110001 11.9891186460002,51.4170378110001 -1.69628316497764,40.9653853760002 -1.69628316497764))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SOM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-56.396595832 46.7527529970001,-56.396595832 47.1412621110001,-56.1447647779999 47.1412621110001,-56.1447647779999 46.7527529970001,-56.396595832 46.7527529970001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SPM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((18.8449784750001 42.2349425250001,18.8449784750001 46.1738752240001,22.9845707600001 46.1738752240001,22.9845707600001 42.2349425250001,18.8449784750001 42.2349425250001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SRB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.46168053500011 0.0241153020000695,6.46168053500011 1.69977448100016,7.46273847700007 1.69977448100016,7.46273847700007 0.0241153020000695,6.46168053500011 0.0241153020000695))', 4326), ST_Centroid((geocode_admin0_polygons(Array['STP'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.0676912029999 1.83350677500007,-58.0676912029999 6.01157376600012,-53.9863574539999 6.01157376600012,-53.9863574539999 1.83350677500007,-58.0676912029999 1.83350677500007))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SUR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.8444804280001 47.7500064090001,16.8444804280001 49.601779684,22.5396366780001 49.601779684,22.5396366780001 47.7500064090001,16.8444804280001 47.7500064090001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SVK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.3652612710001 45.42363678,13.3652612710001 46.863962301,16.5153015540001 46.863962301,16.5153015540001 45.42363678,13.3652612710001 45.42363678))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SVN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.1081649100001 55.3426781270001,11.1081649100001 69.0363556930001,24.1634135340001 69.0363556930001,24.1634135340001 55.3426781270001,11.1081649100001 55.3426781270001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SWE'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((30.7829061280001 -27.3162643429999,30.7829061280001 -25.7359990439999,32.1173983160001 -25.7359990439999,32.1173983160001 -27.3162643429999,30.7829061280001 -27.3162643429999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SWZ'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-63.1188858709999 18.019110419,-63.1188858709999 18.0621092720001,-63.0175685850526 18.0621092720001,-63.0175685850526 18.019110419,-63.1188858709999 18.019110419))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SXM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((46.2073673840002 -9.75554778399989,46.2073673840002 -3.79111093499991,56.2874455090001 -3.79111093499991,56.2874455090001 -9.75554778399989,46.2073673840002 -9.75554778399989))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SYC'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((35.7233992850002 32.313041687,35.7233992850002 37.3249063110001,42.377185506 37.3249063110001,42.377185506 32.313041687,35.7233992850002 32.313041687))', 4326), ST_Centroid((geocode_admin0_polygons(Array['SYR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.481312629 21.2901065120001,-72.481312629 21.9592145850001,-71.1288956369999 21.9592145850001,-71.1288956369999 21.2901065120001,-72.481312629 21.2901065120001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TCA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.4491837970001 7.45556671100012,13.4491837970001 23.4447199510001,23.9844063720001 23.4447199510001,23.9844063720001 7.45556671100012,13.4491837970001 7.45556671100012))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TCD'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.16610917099996 6.100490848287,-0.16610917099996 11.1349803670001,1.78235070800014 11.1349803670001,1.78235070800014 6.100490848287,-0.16610917099996 6.100490848287))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TGO'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((97.3514010010001 5.62989003500013,97.3514010010001 20.4450064090001,105.650997762 20.4450064090001,105.650997762 5.62989003500013,97.3514010010001 5.62989003500013))', 4326), ST_Centroid((geocode_admin0_polygons(Array['THA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((67.3426900630002 36.6786408490002,67.3426900630002 41.0399767050001,75.1641247970001 41.0399767050001,75.1641247970001 36.6786408490002,67.3426900630002 36.6786408490002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TJK'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-171.086537239 -11.0660946589999,-171.086537239 -11.0513648419999,-171.072824674 -11.0513648419999,-171.072824674 -11.0660946589999,-171.086537239 -11.0660946589999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TKL'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((52.4376706173443 35.140646871,52.4376706173443 42.791187643,66.6457816980001 42.791187643,66.6457816980001 35.140646871,52.4376706173443 35.140646871))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TKM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((124.03003991 -9.5012277219999,124.03003991 -8.13502369599983,127.313243035 -8.13502369599983,127.313243035 -9.5012277219999,124.03003991 -9.5012277219999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TLS'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-176.219309049 -22.3387997379999,-176.219309049 -15.5595028629999,-173.914255338 -15.5595028629999,-173.914255338 -22.3387997379999,-176.219309049 -22.3387997379999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TON'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.9287003249999 10.0420596370002,-61.9287003249999 11.3510602890001,-60.5220841139999 11.3510602890001,-60.5220841139999 10.0420596370002,-61.9287003249999 10.0420596370002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TTO'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.4798323980001 30.2289053350001,7.4798323980001 37.3452009140002,11.5641309000001 37.3452009140002,11.5641309000001 30.2289053350001,7.4798323980001 30.2289053350001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.663259311 35.819778545,25.663259311 42.0987816430001,44.8069928290001 42.0987816430001,44.8069928290001 35.819778545,25.663259311 35.819778545))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((176.125254754 -9.42066822699981,176.125254754 -5.67750416499986,179.906748894 -5.67750416499986,179.906748894 -9.42066822699981,176.125254754 -9.42066822699981))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TUV'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((118.279551629 21.9046084660001,118.279551629 25.287420966,122.005381707 25.287420966,122.005381707 21.9046084660001,118.279551629 21.9046084660001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TWN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.3210315350001 -11.7312724819999,29.3210315350001 -0.985830179999823,40.4493921230001 -0.985830179999823,40.4493921230001 -11.7312724819999,29.3210315350001 -11.7312724819999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['TZA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((29.5484595130001 -1.47520599399984,29.5484595130001 4.21969187500011,35.0064726150001 4.21969187500011,35.0064726150001 -1.47520599399984,29.5484595130001 -1.47520599399984))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UGA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((22.1328398030001 44.381048895,22.1328398030001 52.3689492800001,40.1595430910002 52.3689492800001,40.1595430910002 44.381048895,22.1328398030001 44.381048895))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UKR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-177.389597134 -0.388767184999892,-177.389597134 28.2153181010001,166.652354363 28.2153181010001,166.652354363 -0.388767184999892,-177.389597134 -0.388767184999892))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UMI'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-58.4393611319999 -34.9734026019999,-58.4393611319999 -30.0968698119999,-53.1108361419999 -30.0968698119999,-53.1108361419999 -34.9734026019999,-58.4393611319999 -34.9734026019999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['URY'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-179.143503384 18.9061171430001,-179.143503384 71.4125023460001,179.780935092 71.4125023460001,179.780935092 18.9061171430001,-179.143503384 18.9061171430001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['USA'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.2328569552957 19.8911422360002,-75.2328569552957 19.9715836900001,-75.0949502909999 19.9715836900001,-75.0949502909999 19.8911422360002,-75.2328569552957 19.8911422360002))', 4326), ST_Centroid((geocode_admin0_polygons(Array['USG'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.9758386630001 37.1851474,55.9758386630001 45.5587189740001,73.1486405840002 45.5587189740001,73.1486405840002 37.1851474,55.9758386630001 37.1851474))', 4326), ST_Centroid((geocode_admin0_polygons(Array['UZB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((12.4527140820001 41.9027519410001,12.4527140820001 41.9039147380001,12.4540354420001 41.9039147380001,12.4540354420001 41.9027519410001,12.4527140820001 41.9027519410001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VAT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.4598282539999 12.5851504580001,-61.4598282539999 13.3807640650001,-61.1239314439999 13.3807640650001,-61.1239314439999 12.5851504580001,-61.4598282539999 12.5851504580001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VCT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.3911486409999 0.649315491000067,-73.3911486409999 15.7029483090001,-59.815594849 15.7029483090001,-59.815594849 0.649315491000067,-73.3911486409999 0.649315491000067))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VEN'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-64.7739965489999 18.3346621770001,-64.7739965489999 18.74624258,-64.2707413399999 18.74624258,-64.2707413399999 18.3346621770001,-64.7739965489999 18.3346621770001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VGB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-65.0414934419999 17.6827660180001,-65.0414934419999 18.3865986140001,-64.5593969389999 18.3865986140001,-64.5593969389999 17.6827660180001,-65.0414934419999 17.6827660180001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VIR'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((102.118655233 8.56557851800015,102.118655233 23.3662751270001,109.472422722 23.3662751270001,109.472422722 8.56557851800015,102.118655233 8.56557851800015))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VNM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((166.520518425 -20.2531063779999,166.520518425 -13.0648739559998,169.898936394 -13.0648739559998,169.898936394 -20.2531063779999,166.520518425 -20.2531063779999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['VUT'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-178.185739713 -14.3194312479999,-178.185739713 -13.208916925,-176.125599739 -13.208916925,-176.125599739 -14.3194312479999,-178.185739713 -14.3194312479999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WLF'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((32.7601022650002 34.5685488950001,32.7601022650002 34.7009482940001,33.03028405 34.7009482940001,33.03028405 34.5685488950001,32.7601022650002 34.5685488950001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WSB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-172.782582161 -14.052829685,-172.782582161 -13.4628231749999,-171.437692838 -13.4628231749999,-171.437692838 -14.052829685,-172.782582161 -14.052829685))', 4326), ST_Centroid((geocode_admin0_polygons(Array['WSM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((42.5457462900001 12.1114436720001,42.5457462900001 18.9956375130001,54.5402938160002 18.9956375130001,54.5402938160002 12.1114436720001,42.5457462900001 12.1114436720001))', 4326), ST_Centroid((geocode_admin0_polygons(Array['YEM'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((16.4699813160001 -46.965752863,16.4699813160001 -22.1264519249999,37.9777938160001 -22.1264519249999,37.9777938160001 -46.965752863,16.4699813160001 -46.965752863))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZAF'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((21.9798775630001 -18.0692318719999,21.9798775630001 -8.1941240429999,33.674202515 -8.1941240429999,33.674202515 -18.0692318719999,21.9798775630001 -18.0692318719999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZMB'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((25.219369751 -22.3973397829999,25.219369751 -15.6148080449999,33.0427681890002 -15.6148080449999,33.0427681890002 -22.3973397829999,25.219369751 -22.3973397829999))', 4326), ST_Centroid((geocode_admin0_polygons(Array['ZWE'])).geom))" should true } -function test_geocoding_quality_ip_addr() { - -} - -function test_geocoding_functions_ip_addr() { - -} - - - # sql postgres 'SELECT * FROM cdb_testmember_1.foo;' fails - - #################################################### TESTS END HERE #################################################### - - - -run_tests $@ - -exit ${OK} \ No newline at end of file diff --git a/geocoder/admin0/test/run.sh b/geocoder/admin0/test/run.sh new file mode 100644 index 0000000..2fff134 --- /dev/null +++ b/geocoder/admin0/test/run.sh @@ -0,0 +1,192 @@ +#!/bin/sh +source data/test.sh +source functions/test.sh + +# +# The following script has two use modes: +# +# API +# ==================================== +# SQL_API_ROUTE and API_KEY need to be +# conveniently filled for the requests +# to work. +# Example: bash run.sh api sql_api_route api_key test_type +# +# SQL +# ==================================== +# It is expected that you run this script +# as a PostgreSQL superuser, for example: +# +# bash run.sh db database role test_type +# +# test_type defines the kind of tests to run: data or functions + +MODE='' +TEST_TYPE='' + +# DB settings +DATABASE='' +ROLE='' +CMD='echo psql' +CMD=psql + +# SQL API settings +SQL_API_ROUTE='' +API_KEY='' + +OK=0 +PARTIALOK=0 + +function set_failed() { + OK=1 + PARTIALOK=1 +} + +function clear_partial_result() { + PARTIALOK=0 +} + +function sql() { + local QUERY="$1" + if [[ $MODE = "api" ]] + then + # SQL API mode + echo $QUERY + RESULT=$(curl -s -X POST "https://$SQL_API_ROUTE/sql?api_key=$API_KEY&format=csv" --data-urlencode "q=$QUERY" |tail -n1 | tr -d '\r') + if [[ "$2" == "should" ]] + then + if [[ "${RESULT}" != "$3" ]] + then + log_error "QUERY '${QUERY}' expected result '${3}' but got '${RESULT}'" + set_failed + fi + fi + # Database mode + elif [[ $MODE = "db" ]] + then + if [ -n "${ROLE}" ]; then + log_debug "Executing query '${QUERY}' as ${ROLE}" + RESULT=`${CMD} -U "${ROLE}" ${DATABASE} -c "${QUERY}" -A -t` + else + log_debug "Executing query '${QUERY}'" + RESULT=`${CMD} ${DATABASE} -c "${QUERY}" -A -t` + fi + CODERESULT=$? + + echo ${RESULT} + echo + + if [[ ${CODERESULT} -ne 0 ]] + then + echo -n "FAILED TO EXECUTE QUERY: " + log_warning "${QUERY}" + if [[ "$2" != "fails" ]] + then + log_error "${QUERY}" + set_failed + fi + else + if [[ "$2" == "fails" ]] + then + log_error "QUERY: '${QUERY}' was expected to fail and it did not fail" + set_failed + fi + fi + + if [[ "$2" == "should" ]] + then + if [[ "${RESULT}" != "$3" ]] + then + log_error "QUERY '${QUERY}' expected result '${3}' but got '${RESULT}'" + set_failed + fi + fi + fi +} + +function log_info() +{ + echo + echo + echo + _log "1;34m" "$1" +} + +function log_error() { + _log "1;31m" "$1" +} + +function log_debug() { + _log "1;32m" "> $1" +} + +function log_warning() { + _log "0;33m" "$1" +} + +function _log() { + echo -e "\033[$1$2\033[0m" +} + +# '############################ HELPERS #############################' + + +function run_tests() { + local FAILED_TESTS=() + local TESTS + + MODE="$1" + if [[ $MODE = "api" ]] + then + SQL_API_ROUTE="$2" + API_KEY="$3" + TEST_TYPE="$4" + fi + if [[ $MODE = "db" ]] + then + DATABASE="$2" + ROLE="$3" + TEST_TYPE="$4" + fi + + if [[ $# -ge 4 ]] + then + if [[ $TEST_TYPE = "data" ]] + then + TESTS=`cat data/test.sh| perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` + elif [[ $TEST_TYPE = "functions" ]] + then + TESTS=`cat functions/test.sh| perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` + fi + else + TESTS="$@" + fi + for t in ${TESTS} + do + echo "####################################################################" + echo "#" + echo "# Running: ${t}" + echo "#" + echo "####################################################################" + clear_partial_result + eval ${t} + if [[ ${PARTIALOK} -ne 0 ]] + then + FAILED_TESTS+=(${t}) + fi + done + if [[ ${OK} -ne 0 ]] + then + echo + log_error "The following tests are failing:" + printf -- '\t%s\n' "${FAILED_TESTS[@]}" + else + echo + log_info "Test finished" + fi +} + + +run_tests $@ + +exit ${OK} diff --git a/geocoder/admin1/test/data/test.sh b/geocoder/admin1/test/data/test.sh new file mode 100644 index 0000000..36f17b6 --- /dev/null +++ b/geocoder/admin1/test/data/test.sh @@ -0,0 +1,262 @@ +#!/bin/sh + + +#################################################### TESTS GO HERE #################################################### + +function test_geocoding_quality_admin1_usa() { + #Checks count of american states + sql "SELECT count(*) from global_province_polygons where gu_a3 = 'USA'" should 51 + sql "SELECT count(*) FROM admin1_decoder where iso2 = 'US'" should 51 + + #Checks american states + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-117.215350385412 41.9995402214041,-117.215350385412 48.9925145470544,-111.050238080323 48.9925145470544,-111.050238080323 41.9995402214041,-117.215350385412 41.9995402214041))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Idaho' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.7630066354479 40.4994345620001,-79.7630066354479 45.0101219690002,-71.8574112619999 45.0101219690002,-71.8574112619999 40.4994345620001,-79.7630066354479 40.4994345620001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'New York' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-178.304366163 18.9061171430002,-178.304366163 28.4016785750001,-154.814063566 28.4016785750001,-154.814063566 18.9061171430002,-178.304366163 18.9061171430002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Hawaii' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-124.566761848 41.9995402213723,-124.566761848 46.255943786,-116.454998822338 46.255943786,-116.454998822338 41.9995402213723,-124.566761848 41.9995402213723))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Oregon' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-95.7730408143821 35.9861857281888,-95.7730408143821 40.6188029164215,-89.1188904240538 40.6188029164215,-89.1188904240538 35.9861857281888,-95.7730408143821 35.9861857281888))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Missouri' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.4879333916127 37.9135152560001,-79.4879333916127 39.7217570184716,-75.0439753897762 39.7217570184716,-75.0439753897762 37.9135152560001,-79.4879333916127 37.9135152560001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Maryland' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.577948041369 36.4986369002728,-89.577948041369 39.1462199085219,-81.9652283144351 39.1462199085219,-81.9652283144351 36.4986369002728,-89.577948041369 36.4986369002728))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Kentucky' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-124.734607238 45.5663126819848,-124.734607238 48.9925148929891,-116.878826947306 48.9925148929891,-116.878826947306 45.5663126819848,-124.734607238 45.5663126819848))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Washington' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.5072449164197 41.2392566140001,-73.5072449164197 42.8867960797754,-69.9246720039999 42.8867960797754,-69.9246720039999 41.2392566140001,-73.5072449164197 41.2392566140001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Massachusetts' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.6674744083173 36.539774595821,-83.6674744083173 39.4508341665635,-75.2433354678788 39.4508341665635,-75.2433354678788 36.539774595821,-83.6674744083173 36.539774595821))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Virginia' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-85.6056824164103 30.3626994000573,-85.6056824164103 35.0004435414363,-80.8356827459999 35.0004435414363,-80.8356827459999 30.3626994000573,-85.6056824164103 30.3626994000573))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Georgia' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.9017273381461 42.4917999218514,-92.9017273381461 47.0815953638927,-86.8528676086401 47.0815953638927,-86.8528676086401 42.4917999218514,-92.9017273381461 42.4917999218514))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Wisconsin' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-77.1197809971952 38.8027675303789,-77.1197809971952 38.9961355802929,-76.9093145419325 38.9961355802929,-76.9093145419325 38.8027675303789,-77.1197809971952 38.8027675303789))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'District of Columbia' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-71.0849519608322 42.9784524830002,-71.0849519608322 47.4596882130001,-66.8919164699999 47.4596882130001,-66.8919164699999 42.9784524830002,-71.0849519608322 42.9784524830002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Maine' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.412542767235 41.6968055068686,-90.412542767235 48.1907593949248,-82.414603028 48.1907593949248,-82.414603028 41.6968055068686,-90.412542767235 41.6968055068686))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Michigan' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-91.6573425717023 30.1815453150001,-91.6573425717023 35.0000773303045,-88.088153119271 35.0000773303045,-88.088153119271 30.1815453150001,-91.6573425717023 30.1815453150001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Mississippi' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.355487103447 32.0324747915785,-83.355487103447 35.2183146349126,-78.5731452474061 35.2183146349126,-78.5731452474061 32.0324747915785,-83.355487103447 32.0324747915785))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'South Carolina' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-91.5189392524445 36.9783244005507,-91.5189392524445 42.5117716657298,-87.5112244082798 42.5117716657298,-87.5112244082798 36.9783244005507,-91.5189392524445 36.9783244005507))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Illinois' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.3246277278873 33.8479678410001,-84.3246277278873 36.6095499860431,-75.4518123039999 36.6095499860431,-75.4518123039999 33.8479678410001,-84.3246277278873 33.8479678410001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'North Carolina' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-96.6379578063076 40.3795206890285,-96.6379578063076 43.5009562360414,-90.1402771420764 43.5009562360414,-90.1402771420764 40.3795206890285,-96.6379578063076 40.3795206890285))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Iowa' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-124.409201971 32.5316694900037,-124.409201971 41.9995402214042,-114.119061321723 41.9995402214042,-114.119061321723 32.5316694900037,-124.409201971 32.5316694900037))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'California' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-97.2292175720333 43.5001261581956,-97.2292175720333 49.3694941211523,-89.5817526389605 49.3694941211523,-89.5817526389605 43.5001261581956,-97.2292175720333 43.5001261581956))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Minnesota' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-116.048944134764 44.3766154157689,-116.048944134764 48.9926179000001,-104.03859257169 48.9926179000001,-104.03859257169 44.3766154157689,-116.048944134764 44.3766154157689))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Montana' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.046624798995 36.9998087752547,-109.046624798995 40.9998331892503,-102.039569135107 40.9998331892503,-102.039569135107 36.9998087752547,-109.046624798995 36.9998087752547))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Colorado' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-104.047574447101 45.9417521349531,-104.047574447101 48.9926695770001,-96.556341595788 48.9926695770001,-96.556341595788 45.9417521349531,-104.047574447101 45.9417521349531))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'North Dakota' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-114.042547649554 36.9998087752547,-114.042547649554 42.000077329805,-109.04633182955 42.000077329805,-109.04633182955 36.9998087752547,-114.042547649554 36.9998087752547))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Utah' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-111.05138554061 40.9998331892503,-111.05138554061 45.0001017440003,-104.052362103228 45.0001017440003,-104.052362103228 40.9998331892503,-111.05138554061 40.9998331892503))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Wyoming' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-120.000750774928 35.0035685407555,-120.000750774928 42.000077329805,-114.04020390029 42.000077329805,-114.04020390029 35.0035685407555,-120.000750774928 35.0035685407555))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Nevada' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-114.822108115 31.3271845500002,-114.822108115 37.0031290884367,-109.046624798995 37.0031290884367,-109.046624798995 31.3271845500002,-114.822108115 31.3271845500002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Arizona' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-102.051263471132 36.9998087752547,-102.051263471132 40.0001017441002,-94.6104675723206 40.0001017441002,-94.6104675723206 36.9998087752547,-102.051263471132 36.9998087752547))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Kansas' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.722967571796 41.001066763079,-73.722967571796 42.0545451031741,-71.795745892259 42.0545451031741,-71.795745892259 41.001066763079,-73.722967571796 41.001066763079))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Connecticut' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-82.6373718693163 37.2047648298331,-82.6373718693163 40.6467814323172,-77.7346863218163 40.6467814323172,-77.7346863218163 37.2047648298331,-82.6373718693163 37.2047648298331))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'West Virginia' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.047430462973 31.3273912560001,-109.047430462973 36.9998087752547,-103.000238080223 36.9998087752547,-103.000238080223 31.3273912560001,-109.047430462973 31.3273912560001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'New Mexico' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-94.6183288997589 33.010941587984,-94.6183288997589 36.4998331892503,-89.6673035098491 36.4998331892503,-89.6673035098491 33.010941587984,-94.6183288997589 33.010941587984))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Arkansas' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-104.053729291274 40.0001017441002,-104.053729291274 43.0003702990501,-95.3172546806589 43.0003702990501,-95.3172546806589 40.0001017441002,-104.053729291274 40.0001017441002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Nebraska' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-103.000799603419 33.6474161968,-103.000799603419 36.9998087752547,-94.4390808525992 36.9998087752547,-94.4390808525992 33.6474161968,-103.000799603419 33.6474161968))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Oklahoma' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-104.05665897763 42.5183390495075,-104.05665897763 45.9420206887038,-96.4535583921061 45.9420206887038,-96.4535583921061 42.5183390495075,-104.05665897763 42.5183390495075))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'South Dakota' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-94.0432312444264 28.9283714860002,-94.0432312444264 33.0143351428526,-88.8109431629999 33.0143351428526,-88.8109431629999 28.9283714860002,-94.0432312444264 28.9283714860002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Louisiana' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-106.662176556003 25.8439016730001,-106.662176556003 36.5001994003821,-93.5147644471216 36.5001994003821,-93.5147644471216 25.8439016730001,-106.662176556003 25.8439016730001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Texas' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.312664837812 34.9836466661608,-90.312664837812 36.6897013529352,-81.6588562442202 36.6897013529352,-81.6588562442202 34.9836466661608,-90.312664837812 34.9836466661608))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Tennessee' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.7886437150354 38.4532755725098,-75.7886437150354 39.8386271352341,-75.0439753897762 39.8386271352341,-75.0439753897762 38.4532755725098,-75.7886437150354 38.4532755725098))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Delaware' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.55617069702 42.7008585802593,-72.55617069702 45.3042925779203,-70.7042130199999 45.3042925779203,-70.7042130199999 42.7008585802593,-72.55617069702 42.7008585802593))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'New Hampshire' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-71.8471675782502 41.1457789730002,-71.8471675782502 42.0164103383665,-71.1219656377723 42.0164103383665,-71.1219656377723 41.1457789730002,-71.8471675782502 41.1457789730002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Rhode Island' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.4385437438987 42.7292765489735,-73.4385437438987 45.0137310749146,-71.5057068297064 45.0137310749146,-71.5057068297064 42.7292765489735,-73.4385437438987 42.7292765489735))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Vermont' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-88.4861511664431 30.2236188820001,-88.4861511664431 35.009745299506,-84.8979431580503 35.009745299506,-84.8979431580503 30.2236188820001,-88.4861511664431 30.2236188820001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Alabama' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.6269226499603 24.5425479190002,-87.6269226499603 31.0001017441002,-80.0323787099999 31.0001017441002,-80.0323787099999 24.5425479190002,-87.6269226499603 24.5425479190002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Florida' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-88.1118591737619 37.7819376824781,-88.1118591737619 41.7595592705749,-84.7839538998525 41.7595592705749,-84.7839538998525 37.7819376824781,-88.1118591737619 37.7819376824781))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Indiana' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.8235290961908 38.4055216662919,-84.8235290961908 41.9844627777393,-80.5202331974041 41.9844627777393,-80.5202331974041 38.4055216662919,-84.8235290961908 38.4055216662919))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ohio' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.5582169259999 38.9243838560002,-75.5582169259999 41.3562540880558,-73.9071338861501 41.3562540880558,-73.9071338861501 38.9243838560002,-75.5582169259999 38.9243838560002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'New Jersey' and admin = 'United States of America'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-80.5202331974041 39.7210490101037,-80.5202331974041 42.2685127634337,-74.6985535096368 42.2685127634337,-74.6985535096368 39.7210490101037,-80.5202331974041 39.7210490101037))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Pennsylvania' and admin = 'United States of America'" should true + +} +function test_geocoding_quality_admin1_france() { + #Checks count of France departments + sql "SELECT count(*) from global_province_polygons where admin = 'France'" should 101 + + #Checks France departments + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.228830533 14.4081078150001,-61.228830533 14.876898505,-60.8104141919999 14.876898505,-60.8104141919999 14.4081078150001,-61.228830533 14.4081078150001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Martinique' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((45.0424910820001 -12.9891903629999,45.0424910820001 -12.6472307269999,45.2908634770001 -12.6472307269999,45.2908634770001 -12.9891903629999,45.0424910820001 -12.9891903629999))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Mayotte' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.67469206488684 45.2364963328395,3.67469206488684 46.2761990465488,4.76982600106911 46.2761990465488,4.76982600106911 45.2364963328395,3.67469206488684 45.2364963328395))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Loire' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.61987509236161 48.8828812748509,1.61987509236161 49.2306644911733,2.58333216065074 49.2306644911733,2.58333216065074 48.8828812748509,1.61987509236161 48.8828812748509))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Val-d''Oise' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.31651818526609 48.6895218917219,2.31651818526609 48.8592006729727,2.59897669232052 48.8592006729727,2.59897669232052 48.6895218917219,2.31651818526609 48.6895218917219))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Val-de-Marne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000007,-54.6152921149999 5.74476537500006,-51.649037239 5.74476537500006,-51.649037239 2.11067332000007,-54.6152921149999 2.11067332000007))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Guyane française' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.2254337900001 -21.3707821589999,55.2254337900001 -20.861423435,55.8545028 -20.861423435,55.8545028 -21.3707821589999,55.2254337900001 -21.3707821589999))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'La Réunion' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.54525800900012 41.331529039,8.54525800900012 42.38670482,9.40300540500004 42.38670482,9.40300540500004 41.331529039,8.54525800900012 41.331529039))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Corse-du-Sud' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.75537325906868 44.7089773067573,4.75537325906868 45.8799551342221,6.36972634759289 45.8799551342221,6.36972634759289 44.7089773067573,4.75537325906868 44.7089773067573))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Isère' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7978409499999 15.8364932310001,-61.7978409499999 16.513088283,-60.9892471999999 16.513088283,-60.9892471999999 15.8364932310001,-61.7978409499999 15.8364932310001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Guadeloupe' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.86846892769887 44.2817189894398,3.86846892769887 45.3657069988789,4.8925705299061 45.3657069988789,4.8925705299061 44.2817189894398,3.86846892769887 44.2817189894398))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ardèche' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.74673800475512 45.6437490711627,4.74673800475512 46.5112185863686,6.13640018700008 46.5112185863686,6.13640018700008 45.6437490711627,4.74673800475512 45.6437490711627))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ain' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.96425014322949 48.8469449936166,2.96425014322949 50.0600993370147,4.25022187234154 50.0600993370147,4.25022187234154 48.8469449936166,2.96425014322949 48.8469449936166))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Aisne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.25389611231572 45.9570352156026,2.25389611231572 46.793215667469,4.0014474491405 46.793215667469,4.0014474491405 45.9570352156026,2.25389611231572 45.9570352156026))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Allier' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.50257543610749 43.6715822480223,5.50257543610749 44.6609231052171,6.94560144100012 44.6609231052171,6.94560144100012 43.6715822480223,5.50257543610749 43.6715822480223))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Alpes-de-Haute-Provence' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.63638651372662 43.4803458413672,6.63638651372662 44.3546228071715,7.69191247500009 44.3546228071715,7.69191247500009 43.4803458413672,6.63638651372662 43.4803458413672))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Alpes-Maritimes' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.03387909034774 49.2350150766844,4.03387909034774 50.1613320920001,5.39117393116942 50.1613320920001,5.39117393116942 49.2350150766844,4.03387909034774 49.2350150766844))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ardennes' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.832484925438962 42.5676424404556,0.832484925438962 43.3084401435978,2.16875206645474 43.3084401435978,2.16875206645474 42.5676424404556,0.832484925438962 42.5676424404556))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ariège' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.38948697614305 47.9222916382486,3.38948697614305 48.7107364922953,4.86244601667033 48.7107364922953,4.86244601667033 47.9222916382486,3.38948697614305 47.9222916382486))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Aube' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.69651572002442 42.6521608220643,1.69651572002442 43.4422536253045,3.24431399779652 43.4422536253045,3.24431399779652 42.6521608220643,1.69651572002442 42.6521608220643))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Aude' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.83399863532875 43.6904347873356,1.83399863532875 44.9353506061455,3.44751676358774 44.9353506061455,3.44751676358774 43.6904347873356,1.83399863532875 43.6904347873356))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Aveyron' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.9770725619492 48.1213530594377,6.9770725619492 49.0656827952248,8.20030521600003 49.0656827952248,8.20030521600003 48.1213530594377,6.9770725619492 48.1213530594377))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Bas-Rhin' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.22484218851019 43.1604286590001,4.22484218851019 43.9328261545034,5.81322486183791 43.9328261545034,5.81322486183791 43.1604286590001,4.22484218851019 43.1604286590001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Bouches-du-Rhône' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.91934043581247 48.2767435559703,1.91934043581247 48.7760721885806,2.57599329255646 48.7760721885806,2.57599329255646 48.2767435559703,1.91934043581247 48.2767435559703))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Essonne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.14691090191658 48.7522977730237,-1.14691090191658 49.4347150002775,0.431418015529005 49.4347150002775,0.431418015529005 48.7522977730237,-1.14691090191658 48.7522977730237))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Calvados' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.0587129994054 44.6223391200544,2.0587129994054 45.4800417891971,3.36973355715799 45.4800417891971,3.36973355715799 44.6223391200544,2.0587129994054 44.6223391200544))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Cantal' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.459265612418108 45.1920242002567,-0.459265612418108 46.1384634451319,0.924110905993587 46.1384634451319,0.924110905993587 45.1920242002567,-0.459265612418108 45.1920242002567))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Charente' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.55581620999993 45.1011452901231,-1.55581620999993 46.3624417249057,0.000336456262516549 46.3624417249057,0.000336456262516549 45.1011452901231,-1.55581620999993 45.1011452901231))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Charente-Maritime' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.77438681719784 46.4198013465549,1.77438681719784 47.6243533948932,3.07556362426189 47.6243533948932,3.07556362426189 46.4198013465549,1.77438681719784 46.4198013465549))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Cher' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.38511922387309 45.6738955566346,1.38511922387309 46.4520022756845,2.59774622370927 46.4520022756845,2.59774622370927 45.6738955566346,1.38511922387309 45.6738955566346))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Creuse' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.23891316351171 44.9328676957875,1.23891316351171 45.7608743192944,2.5254561815575 45.7608743192944,2.5254561815575 44.9328676957875,1.23891316351171 44.9328676957875))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Corrèze' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.69883520927752 46.5575877774801,5.69883520927752 47.5628629136925,7.04430342600006 47.5628629136925,7.04430342600006 46.5575877774801,5.69883520927752 46.5575877774801))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Doubs' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.06492645549153 46.902661472449,4.06492645549153 48.0220255286552,5.52171361988763 48.0220255286552,5.52171361988763 46.902661472449,4.06492645549153 46.902661472449))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Côte-d''Or' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.63853919181511 48.0344510665635,-3.63853919181511 48.8766543640001,-1.90887870408892 48.8766543640001,-1.90887870408892 48.0344510665635,-3.63853919181511 48.0344510665635))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Côtes-d''Armor' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.946003911751063 45.9697134387242,-0.946003911751063 47.1006351124205,0.204704140183964 47.1006351124205,0.204704140183964 45.9697134387242,-0.946003911751063 45.9697134387242))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Deux-Sèvres' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.267905741456758 43.3109340400739,-0.267905741456758 44.0728139524019,1.1923311305772 44.0728139524019,1.1923311305772 43.3109340400739,-0.267905741456758 43.3109340400739))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Gers' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.033556367432368 44.5745334344704,-0.033556367432368 45.7103372082956,1.45863973463611 45.7103372082956,1.45863973463611 44.5745334344704,-0.033556367432368 44.5745334344704))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Dordogne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.65752901695055 44.1217800188328,4.65752901695055 45.3439321647376,5.83062720568103 45.3439321647376,5.83062720568103 44.1217800188328,4.65752901695055 44.1217800188328))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Drôme' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.294264260219052 48.665088297387,0.294264260219052 49.4936002922197,1.78343955209368 49.4936002922197,1.78343955209368 48.665088297387,0.294264260219052 48.665088297387))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Eure' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.57048587291243 41.8340528807359,8.57048587291243 43.0174014340001,9.55958092500009 43.0174014340001,9.55958092500009 41.8340528807359,8.57048587291243 41.8340528807359))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Haute-Corse' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.775114317671694 47.9509329967604,0.775114317671694 48.9395487575691,1.99973838781634 48.9395487575691,1.99973838781634 47.9509329967604,0.775114317671694 47.9509329967604))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Eure-et-Loir' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.14064011115218 43.9673211957165,-0.14064011115218 44.762337904071,1.07721082382048 44.762337904071,1.07721082382048 43.9673211957165,-0.14064011115218 43.9673211957165))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Lot-et-Garonne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.13280188699994 47.7737491073122,-5.13280188699994 48.7332217470001,-3.38584775506988 48.7332217470001,-3.38584775506988 47.7737491073122,-5.13280188699994 47.7737491073122))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Finistère' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.28614956974687 43.4587742179557,3.28614956974687 44.4578518084142,4.84981173892066 44.4578518084142,4.84981173892066 43.4587742179557,3.28614956974687 43.4587742179557))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Gard' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.26036536399991 44.1979592205416,-1.26036536399991 45.5733096370001,0.322169964272433 45.5733096370001,0.322169964272433 44.1979592205416,-1.26036536399991 44.1979592205416))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Gironde' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.441635301428022 42.6844758100001,0.441635301428022 43.9183242007012,2.05313194438369 43.9183242007012,2.05313194438369 42.6844758100001,0.441635301428022 42.6844758100001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Haute-Garonne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.86892314408783 47.4167967730001,6.86892314408783 48.30340737545,7.62111576300006 48.30340737545,7.62111576300006 47.4167967730001,6.86892314408783 47.4167967730001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Haute-Rhin' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.98011440175821 44.1134413951043,2.98011440175821 44.9567959196959,3.99399871806642 44.9567959196959,3.99399871806642 44.1134413951043,2.98011440175821 44.1134413951043))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Lozère' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.10353481697823 44.7509121226963,3.10353481697823 45.4218911526546,4.47816621719721 45.4218911526546,4.47816621719721 44.7509121226963,3.10353481697823 44.7509121226963))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Haute-Loire' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.37489232522063 47.2604422478114,5.37489232522063 48.0086991119745,6.83601167409952 48.0086991119745,6.83601167409952 47.2604422478114,5.37489232522063 47.2604422478114))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Haute-Saône' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.63727022663971 47.588307250679,4.63727022663971 48.6932792160629,5.89781959100137 48.6932792160629,5.89781959100137 47.588307250679,4.63727022663971 47.588307250679))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Haute-Marne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.82421119039415 45.6835635258361,5.82421119039415 46.4573721320001,7.02208256000011 46.4573721320001,7.02208256000011 45.6835635258361,5.82421119039415 45.6835635258361))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Haute-Savoie' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.635895562430306 45.4464734175142,0.635895562430306 46.3970596467853,1.90938682214414 46.3970596467853,1.90938682214414 45.4464734175142,0.635895562430306 45.4464734175142))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Haute-Vienne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.55516321421098 43.219427801776,2.55516321421098 43.9706520831271,4.18070038501475 43.9706520831271,4.18070038501475 43.219427801776,2.55516321421098 43.219427801776))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Hérault' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.4267258233381 44.1886757735681,5.4267258233381 45.1247878695645,7.0551554760001 45.1247878695645,7.0551554760001 44.1886757735681,5.4267258233381 44.1886757735681))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Hautes-Alpes' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.317058575492865 42.6686886600001,-0.317058575492865 43.6117507021333,0.644904351954295 43.6117507021333,0.644904351954295 42.6686886600001,-0.317058575492865 42.6686886600001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Hautes-Pyrénées' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.28734673646272 47.6326261001145,-2.28734673646272 48.712144273,-1.03933277298907 48.712144273,-1.03933277298907 47.6326261001145,-2.28734673646272 47.6326261001145))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ille-et-Vilaine' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.880750843576578 46.3509390389055,0.880750843576578 47.2892154424387,2.19467980163154 47.2892154424387,2.19467980163154 46.3509390389055,0.880750843576578 46.3509390389055))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Indre' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.0667597989255739 46.7432278722684,0.0667597989255739 47.7061466108774,1.36235555096795 47.7061466108774,1.36235555096795 46.7432278722684,0.0667597989255739 46.7432278722684))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Indre-et-Loire' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.25015355154522 46.2606863500949,5.25015355154522 47.2922147102406,6.20664528695045 47.2922147102406,6.20664528695045 46.2606863500949,5.25015355154522 46.2606863500949))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Jura' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.51396964117239 43.4899892231241,-1.51396964117239 44.5297683153554,0.135490270459684 44.5297683153554,0.135490270459684 43.4899892231241,-1.51396964117239 43.4899892231241))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Landes' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.601969780381069 47.1862735434892,0.601969780381069 48.1307132770961,2.25864220617285 48.1307132770961,2.25864220617285 47.1862735434892,0.601969780381069 47.1862735434892))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Loir-et-Cher' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.51590047852423 47.4849918165191,1.51590047852423 48.3390689983356,3.11792690690126 48.3390689983356,3.11792690690126 47.4849918165191,1.51590047852423 47.4849918165191))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Loiret' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.55638587099989 46.8599466268353,-2.55638587099989 47.8251944665513,-0.923778569425394 47.8251944665513,-0.923778569425394 46.8599466268353,-2.55638587099989 46.8599466268353))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Loire-Atlantique' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.998268623298344 44.2204811943516,0.998268623298344 45.045049097238,2.20531456811284 45.045049097238,2.20531456811284 44.2204811943516,0.998268623298344 44.2204811943516))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Lot' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.33925954239396 46.988091162777,-1.33925954239396 47.8095389487635,0.241772012268569 47.8095389487635,0.241772012268569 46.988091162777,-1.33925954239396 46.988091162777))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Maine-et-Loire' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.94562740799992 48.4629288663742,-1.94562740799992 49.7263858090001,-0.73681323024644 49.7263858090001,-0.73681323024644 48.4629288663742,-1.94562740799992 48.4629288663742))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Manche' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.39491422281316 48.5258036245376,3.39491422281316 49.4072916953554,5.03414035939002 49.4072916953554,5.03414035939002 48.5258036245376,3.39491422281316 48.5258036245376))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Marne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.24296437260767 47.7350516407206,-1.24296437260767 48.5612784789187,-0.0527275104662408 48.5612784789187,-0.0527275104662408 47.7350516407206,-1.24296437260767 47.7350516407206))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Mayenne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.46412328616077 48.3574930709485,5.46412328616077 49.5494314580001,7.08864971521223 49.5494314580001,7.08864971521223 48.3574930709485,5.46412328616077 48.3574930709485))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Meurhe-et-Moselle' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.90691867445724 48.4118644109138,4.90691867445724 49.6088122332565,5.84956763663718 49.6088122332565,5.84956763663718 48.4118644109138,4.90691867445724 48.4118644109138))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Meuse' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.39823449662472 45.2886160006279,2.39823449662472 46.2626638891272,3.969191588521 46.2626638891272,3.969191588521 45.2886160006279,2.39823449662472 45.2886160006279))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Puy-de-Dôme' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.73247740650703 47.296616929,-3.73247740650703 48.207463768638,-2.05166801606606 48.207463768638,-2.05166801606606 47.296616929,-3.73247740650703 47.296616929))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Morbihan' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.92409888915245 48.5234415632775,5.92409888915245 49.4994086720001,7.64493234860686 49.4994086720001,7.64493234860686 48.5234415632775,5.92409888915245 48.5234415632775))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Moselle' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.85596888925286 46.6499649295378,2.85596888925286 47.5787601314749,4.22405243806961 47.5787601314749,4.22405243806961 46.6499649295378,2.85596888925286 46.6499649295378))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Nièvre' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.70700647000007 42.3256605030001,1.70700647000007 42.9138002359921,3.18156985800002 42.9138002359921,3.18156985800002 42.3256605030001,1.70700647000007 42.3256605030001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Pyrénées-Orientales' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.06332401329041 49.9690446462933,2.06332401329041 51.0875408834804,4.21031620300005 51.0875408834804,4.21031620300005 49.9690446462933,2.06332401329041 49.9690446462933))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Nord' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.25263886419222 45.4444570709371,4.25263886419222 46.2991934315316,5.15690159403334 46.2991934315316,5.15690159403334 45.4444570709371,4.25263886419222 45.4444570709371))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Rhône' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.67915732155316 49.0678031564904,1.67915732155316 49.7656217865162,3.16938686980825 49.7656217865162,3.16938686980825 49.0678031564904,1.67915732155316 49.0678031564904))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Oise' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.741737851420709 43.7737770756515,0.741737851420709 44.3927468260052,1.97744250986392 44.3927468260052,1.97744250986392 43.7737770756515,0.741737851420709 43.7737770756515))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Tarn-et-Garonne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.862705568806973 48.1808329075126,-0.862705568806973 48.9705961218136,0.979811591431741 48.9705961218136,0.979811591431741 48.1808329075126,-0.862705568806973 48.1808329075126))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Orne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.55518639400009 50.0180326849605,1.55518639400009 51.0143195135616,3.16929897996394 51.0143195135616,3.16929897996394 50.0180326849605,1.55518639400009 50.0180326849605))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Pas-de-Calais' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.79717240399995 42.7726358040001,-1.79717240399995 43.5920632016554,0.023231965282946 43.5920632016554,0.023231965282946 42.7726358040001,-1.79717240399995 42.7726358040001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Pyrénées-Atlantiques' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.62488005117342 46.1717520206392,3.62488005117342 47.1553250561064,5.45882787560592 47.1553250561064,5.45882787560592 46.1717520206392,3.62488005117342 46.1717520206392))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Saône-et-Loire' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.444313218780024 47.5802213130631,-0.444313218780024 48.4740909755181,0.912882877442854 48.4740909755181,0.912882877442854 47.5802213130631,-0.444313218780024 47.5802213130631))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Sarthe' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.60048559583362 45.0535854737906,5.60048559583362 45.9387661024736,7.16067875200008 45.9387661024736,7.16067875200008 45.0535854737906,5.60048559583362 45.0535854737906))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Savoie' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.39066074359846 48.1216605422002,2.39066074359846 49.1062003749473,3.53780241165202 49.1062003749473,3.53780241165202 48.1216605422002,2.39066074359846 48.1216605422002))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Seien-et-Marne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.0753686860000755 49.2563065818833,0.0753686860000755 50.0657196742449,1.76948691408978 50.0657196742449,1.76948691408978 49.2563065818833,0.0753686860000755 49.2563065818833))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Seine-Maritime' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.26659630857279 48.8074711157993,2.26659630857279 49.0097843551639,2.59238489464721 49.0097843551639,2.59238489464721 48.8074711157993,2.26659630857279 48.8074711157993))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Seine-Saint-Denis' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.3730687422138 49.5750089868753,1.3730687422138 50.3756778020001,3.19307339462151 50.3756778020001,3.19307339462151 49.5750089868753,1.3730687422138 49.5750089868753))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Somme' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.54844198451002 43.383191122972,1.54844198451002 44.194509513803,2.93447719296813 44.194509513803,2.93447719296813 43.383191122972,1.54844198451002 43.383191122972))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Tarn' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.67218878615307 42.9871279970001,5.67218878615307 43.8065383075969,6.93318453905428 43.8065383075969,6.93318453905428 42.9871279970001,5.67218878615307 42.9871279970001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Var' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.65752901695055 43.666034151355,4.65752901695055 44.4288698739455,5.75377509254642 44.4288698739455,5.75377509254642 43.666034151355,4.65752901695055 43.666034151355))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Vaucluse' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.38292395699992 46.2791201840001,-2.38292395699992 47.0763223680829,-0.555286123855467 47.0763223680829,-0.555286123855467 46.2791201840001,-2.38292395699992 46.2791201840001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Vendée' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.10904283575826 46.0535171529941,-0.10904283575826 47.1605875074075,1.19468220481997 47.1605875074075,1.19468220481997 46.0535171529941,-0.10904283575826 46.0535171529941))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Vienne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.42239721006317 47.8189981772241,5.42239721006317 48.5234415632775,7.20903790337658 48.5234415632775,7.20903790337658 47.8189981772241,5.42239721006317 47.8189981772241))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Vosges' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.83087611524053 47.3123306774189,2.83087611524053 48.4117435609166,4.34114472694759 48.4117435609166,4.34114472694759 47.3123306774189,2.83087611524053 47.3123306774189))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Yonne' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.4434566289203 48.4441202715333,1.4434566289203 49.0825907547595,2.2265401548043 49.0825907547595,2.2265401548043 48.4441202715333,1.4434566289203 48.4441202715333))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Yvelines' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.22680382613567 48.8158317117641,2.22680382613567 48.9012174567202,2.47342041601945 48.9012174567202,2.47342041601945 48.8158317117641,2.22680382613567 48.8158317117641))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Paris' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.75908183166121 47.4268442610132,6.75908183166121 47.8241654757561,7.15149151412214 47.8241654757561,7.15149151412214 47.4268442610132,6.75908183166121 47.4268442610132))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Territoire de Belfort' and admin = 'France'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.15161339394297 48.7301053899517,2.15161339394297 48.9581266385335,2.3319649632125 48.9581266385335,2.3319649632125 48.7301053899517,2.15161339394297 48.7301053899517))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Hauts-de-Seine' and admin = 'France'" should true + +} +function test_geocoding_quality_admin1_germany() { + #Checks count of Germany states + sql "SELECT count(*) from global_province_polygons where admin = 'Germany'" should 16 + + #Checks Germany states + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.87989342500012 53.3638748237641,7.87989342500012 55.065334377,11.3142195970001 55.065334377,11.3142195970001 53.3638748237641,7.87989342500012 53.3638748237641))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Schleswig-Holstein' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.97658938998842 47.2711209110001,8.97658938998842 50.5628571637271,13.8168616120001 50.5628571637271,13.8168616120001 47.2711209110001,8.97658938998842 47.2711209110001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Bayern' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.85248986800011 50.3230800349579,5.85248986800011 52.5241844753332,9.46214114809555 52.5241844753332,9.46214114809555 50.3230800349579,5.85248986800011 50.3230800349579))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Nordrhein-Westfalen' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.2740899293068 51.3479771998879,11.2740899293068 53.5438112668764,14.7614034430001 53.5438112668764,14.7614034430001 51.3479771998879,11.2740899293068 51.3479771998879))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Brandenburg' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.601244744949 53.1082409268773,10.601244744949 54.6884219420001,14.3912605108821 54.6884219420001,14.3912605108821 53.1082409268773,10.601244744949 53.1082409268773))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Mecklenburg-Vorpommern' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.65951582100013 51.2904613309256,6.65951582100013 53.8924828150001,11.5813399590718 53.8924828150001,11.5813399590718 51.2904613309256,6.65951582100013 51.2904613309256))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Niedersachsen' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.87767134006029 50.2072716334791,9.87767134006029 51.6373652207284,12.6473730812027 51.6373652207284,12.6473730812027 50.2072716334791,9.87767134006029 50.2072716334791))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Thüringen' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.0964026290001 48.9582503311439,6.0964026290001 50.9327053903415,8.50457685693641 50.9327053903415,8.50457685693641 48.9582503311439,6.0964026290001 48.9582503311439))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Rheinland-Pfalz' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.5118717850001 47.532743111053,7.5118717850001 49.7955913357715,10.4951013530451 49.7955913357715,10.4951013530451 47.532743111053,7.5118717850001 47.532743111053))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Baden-Württemberg' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.49605024612202 53.0246190465318,8.49605024612202 53.6170967182623,8.98992190856922 53.6170967182623,8.98992190856922 53.0246190465318,8.49605024612202 53.0246190465318))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Bremen' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.8973930188728 50.1608153280001,11.8973930188728 51.6700764018045,15.0220593670001 51.6700764018045,15.0220593670001 50.1608153280001,11.8973930188728 50.1608153280001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Sachsen' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.74081038148518 53.4043891470415,9.74081038148518 53.7277802601508,10.3279797706499 53.7277802601508,10.3279797706499 53.4043891470415,9.74081038148518 53.4043891470415))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Hamburg' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.34227909400011 49.1050141400001,6.34227909400011 49.629477443729,7.39058800633148 49.629477443729,7.39058800633148 49.1050141400001,6.34227909400011 49.1050141400001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Saarland' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.0916353696766 52.3420250511152,13.0916353696766 52.6635558131503,13.7509232930755 52.6635558131503,13.7509232930755 52.3420250511152,13.0916353696766 52.3420250511152))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Berlin' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.569618767692 50.927899482575,10.569618767692 53.0503022317625,13.2368461440344 53.0503022317625,13.2368461440344 50.927899482575,10.569618767692 50.927899482575))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Sachsen-Anhalt' and admin = 'Germany'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.77139163561549 49.3962875431356,7.77139163561549 51.6550127224591,10.2328951351024 51.6550127224591,10.2328951351024 49.3962875431356,7.77139163561549 49.3962875431356))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Hessen' and admin = 'Germany'" should true +} +function test_geocoding_quality_admin1_spain() { + #Checks count of Spanish provinces + sql "SELECT count(*) from global_province_polygons where admin = 'Spain' and gn_level = 2" should 52 + + #Checks Spanish provinces + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.44502967028305 43.0206203083805,-3.44502967028305 43.452500718,-2.40678374228841 43.452500718,-2.40678374228841 43.0206203083805,-3.44502967028305 43.0206203083805))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Bizkaia' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.34228593234988 41.8059506230001,-8.34228593234988 42.5784535436961,-6.73570736330419 42.5784535436961,-6.73570736330419 41.8059506230001,-8.34228593234988 41.8059506230001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Orense' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.17162390811683 42.8928343780041,-7.17162390811683 43.662949937,-4.51325904027243 43.662949937,-4.51325904027243 42.8928343780041,-7.17162390811683 42.8928343780041))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Asturias' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.33853390081885 37.3810364472372,-2.33853390081885 38.7540947544694,-0.701242641999897 38.7540947544694,-0.701242641999897 37.3810364472372,-2.33853390081885 37.3810364472372))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Murcia' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.21216881600009 38.6386463070001,1.21216881600009 40.0794131530001,4.3370874360001 40.0794131530001,4.3370874360001 38.6386463070001,1.21216881600009 38.6386463070001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Baleares' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.12096676270596 41.9184494092129,-3.12096676270596 42.6441157091727,-1.68578304685008 42.6441157091727,-1.68578304685008 41.9184494092129,-3.12096676270596 41.9184494092129))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'La Rioja' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.71217411297255 41.6455822609064,1.71217411297255 42.4937122600564,3.3177189460001 42.4937122600564,3.3177189460001 41.6455822609064,1.71217411297255 41.6455822609064))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Gerona' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-9.29198157499991 42.5307070980001,-9.29198157499991 43.793443101,-7.66832434799994 43.793443101,-7.66832434799994 42.5307070980001,-9.29198157499991 42.5307070980001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'La Coruña' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-15.8217667309999 27.73436107,-15.8217667309999 29.2894554710001,-13.4177953769999 29.2894554710001,-13.4177953769999 27.73436107,-15.8217667309999 27.73436107))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Las Palmas' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.324197625220194 41.2328323427384,0.324197625220194 42.8465847790001,1.84254599889874 42.8465847790001,1.84254599889874 41.2328323427384,0.324197625220194 41.2328323427384))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Lérida' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.28007849822407 42.4966828485346,-3.28007849822407 43.2049818881037,-2.23913428392001 43.2049818881037,-2.23913428392001 42.4966828485346,-3.28007849822407 42.4966828485346))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Álava' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.08445024288437 37.84291006155,-1.08445024288437 38.8827578799861,0.234548373000024 38.8827578799861,0.234548373000024 37.84291006155,-1.08445024288437 37.84291006155))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Alicante' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.839090541894961 39.7154401712134,-0.839090541894961 40.779914252241,0.523759592032405 40.779914252241,0.523759592032405 39.7154401712134,-0.839090541894961 39.7154401712134))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Castellón' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.51827389172669 38.6938305933073,-1.51827389172669 40.2032052681087,-0.0309952458669613 40.2032052681087,-0.0309952458669613 38.6938305933073,-1.51827389172669 38.6938305933073))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Valencia' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.60784368943473 36.2971052102187,-5.60784368943473 37.2775500216163,-3.76820494700067 37.2775500216163,-3.76820494700067 36.2971052102187,-5.60784368943473 36.2971052102187))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Málaga' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.33075990074883 41.4576502781378,-4.33075990074883 43.2011876492906,-2.51294185967905 43.2011876492906,-2.51294185967905 41.4576502781378,-4.33075990074883 41.4576502781378))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Burgos' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.88212459157663 38.0236225449445,-2.88212459157663 39.4220384789926,-0.903479377071619 39.4220384789926,-0.903479377071619 38.0236225449445,-2.88212459157663 38.0236225449445))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Albacete' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.1402264080223 36.6803653020001,-3.1402264080223 37.9156680803177,-1.64161771279365 37.9156680803177,-1.64161771279365 36.6803653020001,-3.1402264080223 36.6803653020001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Almería' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.727732713394 40.088819485331,-5.727732713394 41.1607886950422,-4.16129085938564 41.1607886950422,-4.16129085938564 40.088819485331,-5.727732713394 40.088819485331))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ávila' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.39885867893531 35.8473656790339,-5.39885867893531 35.926174221,-5.28307044199997 35.926174221,-5.28307044199997 35.8473656790339,-5.39885867893531 35.8473656790339))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ceuta' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.36998006352917 41.1921654321945,1.36998006352917 42.3183741882181,2.77849657777759 42.3183741882181,2.77849657777759 41.1921654321945,1.36998006352917 41.1921654321945))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Barcelona' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-6.43789628799991 36.006455796,-6.43789628799991 37.0458813116732,-5.08466373754143 37.0458813116732,-5.08466373754143 36.006455796,-6.43789628799991 36.006455796))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Cádiz' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.55728592999992 39.031473428356,-7.55728592999992 40.4803201357656,-4.94436967641946 40.4803201357656,-4.94436967641946 39.031473428356,-7.55728592999992 39.031473428356))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Cáceres' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.83603003575755 42.7625064149391,-4.83603003575755 43.518255927,-3.14954382958408 43.518255927,-3.14954382958408 42.7625064149391,-4.83603003575755 42.7625064149391))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Cantabria' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.60281916067569 42.9000690785251,-2.60281916067569 43.3950869810001,-1.74972998587506 43.3950869810001,-1.74972998587506 42.9000690785251,-2.60281916067569 42.9000690785251))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Gipuzkoa' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.03658626964057 38.3488740100276,-5.03658626964057 39.5767688586959,-2.6438421117241 39.5767688586959,-2.6438421117241 38.3488740100276,-5.03658626964057 38.3488740100276))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Ciudad Real' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.58182806351428 37.1865722346209,-5.58182806351428 38.7284115674399,-4.00087341347725 38.7284115674399,-4.00087341347725 37.1865722346209,-5.58182806351428 37.1865722346209))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Córdoba' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.17006527589177 39.2267334449925,-3.17006527589177 40.6597901401029,-1.14548010931955 40.6597901401029,-1.14548010931955 39.2267334449925,-3.17006527589177 39.2267334449925))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Cuenca' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-18.1672257149999 27.6422386740001,-18.1672257149999 28.855619032,-16.1177465489999 28.855619032,-16.1177465489999 27.6422386740001,-18.1672257149999 27.6422386740001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Santa Cruz de Tenerife' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.32030091575464 36.6955162870001,-4.32030091575464 38.0806474883909,-2.20964815713677 38.0806474883909,-2.20964815713677 36.6955162870001,-4.32030091575464 36.6955162870001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Granada' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.54577287431866 40.1553418793243,-3.54577287431866 41.3221292176893,-1.53705827501935 41.3221292176893,-1.53705827501935 40.1553418793243,-3.54577287431866 40.1553418793243))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Guadalajara' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.5296907149999 36.8081729190001,-7.5296907149999 38.2092959657362,-6.12440987141844 38.2092959657362,-6.12440987141844 36.8081729190001,-7.5296907149999 36.8081729190001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Huelva' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.28432068914844 37.3784374760087,-4.28432068914844 38.5331263293167,-2.43025956942355 38.5331263293167,-2.43025956942355 37.3784374760087,-4.28432068914844 37.3784374760087))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Jaén' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.924690434316119 41.3509290826111,-0.924690434316119 42.9187272272897,0.769545119311772 42.9187272272897,0.769545119311772 41.3509290826111,-0.924690434316119 41.3509290826111))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Huesca' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.0710357319135 42.0307521067243,-7.0710357319135 43.2385497103009,-4.72686357279562 43.2385497103009,-4.72686357279562 42.0307521067243,-7.0710357319135 42.0307521067243))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'León' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.9998091127004 42.3255262878079,-7.9998091127004 43.7526716170001,-6.82828569173128 43.7526716170001,-6.82828569173128 42.3255262878079,-7.9998091127004 42.3255262878079))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Lugo' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.71385317698247 40.6333680206177,-4.71385317698247 41.5832459861134,-3.19879147015018 41.5832459861134,-3.19879147015018 40.6333680206177,-4.71385317698247 40.6333680206177))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Segovia' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.57188595237477 39.8935342472078,-4.57188595237477 41.1617514102993,-3.06223649691677 41.1617514102993,-3.06223649691677 39.8935342472078,-4.57188595237477 39.8935342472078))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Madrid' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.49454505001398 41.908863430303,-2.49454505001398 43.3049288940001,-0.745031962827426 43.3049288940001,-0.745031962827426 41.908863430303,-2.49454505001398 41.908863430303))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Navarra' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.02695255381727 41.7632569794261,-5.02695255381727 43.0509384222704,-3.89246032338525 43.0509384222704,-3.89246032338525 41.7632569794261,-5.02695255381727 41.7632569794261))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Palencia' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.94261633999986 41.888902085,-8.94261633999986 42.8530128807398,-7.86814895151289 42.8530128807398,-7.86814895151289 41.888902085,-8.94261633999986 41.888902085))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Pontevedra' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.167463005613229 40.5261630293999,0.167463005613229 41.5761158587599,1.62782919386217 41.5761158587599,1.62782919386217 40.5261630293999,0.167463005613229 40.5261630293999))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Tarragona' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-6.94249141499995 40.2443655465327,-6.94249141499995 41.3029916103501,-5.09575992907745 41.3029916103501,-5.09575992907745 40.2443655465327,-6.94249141499995 40.2443655465327))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Salamanca' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-6.53137643917128 36.8420739305675,-6.53137643917128 38.1902015240811,-4.65323061530066 38.1902015240811,-4.65323061530066 36.8420739305675,-6.53137643917128 36.8420739305675))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Sevilla' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.52075506289583 41.0975074424145,-5.52075506289583 42.3093983579479,-3.98061462316633 42.3093983579479,-3.98061462316633 41.0975074424145,-5.52075506289583 41.0975074424145))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Valladolid' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.54296323936197 41.0637987333249,-3.54296323936197 42.1422083605273,-1.78554439895487 42.1422083605273,-1.78554439895487 41.0637987333249,-3.54296323936197 41.0637987333249))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Soria' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.80825619087048 39.8522447784737,-1.80825619087048 41.3543458309952,0.28972944495797 41.3543458309952,0.28972944495797 39.8522447784737,-1.80825619087048 39.8522447784737))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Teruel' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.39100907990507 39.2596704584249,-5.39100907990507 40.3094778512219,-2.90823909435872 40.3094778512219,-2.90823909435872 39.2596704584249,-5.39100907990507 39.2596704584249))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Toledo' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.02814429362425 41.1161512418863,-7.02814429362425 42.2528760285059,-5.22872746350166 42.2528760285059,-5.22872746350166 41.1161512418863,-7.02814429362425 41.1161512418863))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Zamora' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.96692012599988 35.2678742480001,-2.96692012599988 35.3297681250436,-2.91290659779662 35.3297681250436,-2.91290659779662 35.2678742480001,-2.96692012599988 35.2678742480001))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Melilla' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.17335018566254 40.943786733371,-2.17335018566254 42.7425593134615,0.377269320722576 42.7425593134615,0.377269320722576 40.943786733371,-2.17335018566254 40.943786733371))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Zaragoza' and admin = 'Spain'" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.3592101639999 37.9389765490285,-7.3592101639999 39.4498145619925,-4.65839230026438 39.4498145619925,-4.65839230026438 37.9389765490285,-7.3592101639999 37.9389765490285))', 4326), ST_Centroid(the_geom)) FROM global_province_polygons where name = 'Badajoz' and admin = 'Spain'" should true +} + +function test_geocoding_quality_admin1_italy() { + + #Checks count of Italy provinces (2014 data) + sql "SELECT count(*) from global_province_polygons where admin = 'Italy'" should 110 + + +} + + +#################################################### TESTS END HERE #################################################### diff --git a/geocoder/admin1/test/functions/test.sh b/geocoder/admin1/test/functions/test.sh new file mode 100644 index 0000000..763c6d1 --- /dev/null +++ b/geocoder/admin1/test/functions/test.sh @@ -0,0 +1,256 @@ +#!/bin/sh + + +#################################################### TESTS GO HERE #################################################### + + +function test_geocoding_functions_admin1() { + + # checks that an invalid input returns a false result and an empty geometry + sql "SELECT (geocode_admin1_polygons(Array['Null Island'])).success" should false + sql "SELECT (geocode_admin1_polygons(Array['Null Island'])).geom is null" should true + + # check that the returned geometry is a polygon + sql "SELECT ST_GeometryType((geocode_admin1_polygons(Array['Barcelona'])).geom)" should ST_MultiPolygon + + +} + +function test_geocoding_functions_admin1_usa() { + #Checks american states + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-117.215350385412 41.9995402214041,-117.215350385412 48.9925145470544,-111.050238080323 48.9925145470544,-111.050238080323 41.9995402214041,-117.215350385412 41.9995402214041))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Idaho'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.7630066354479 40.4994345620001,-79.7630066354479 45.0101219690002,-71.8574112619999 45.0101219690002,-71.8574112619999 40.4994345620001,-79.7630066354479 40.4994345620001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['New York'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-178.304366163 18.9061171430002,-178.304366163 28.4016785750001,-154.814063566 28.4016785750001,-154.814063566 18.9061171430002,-178.304366163 18.9061171430002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Hawaii'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-124.566761848 41.9995402213723,-124.566761848 46.255943786,-116.454998822338 46.255943786,-116.454998822338 41.9995402213723,-124.566761848 41.9995402213723))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Oregon'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-95.7730408143821 35.9861857281888,-95.7730408143821 40.6188029164215,-89.1188904240538 40.6188029164215,-89.1188904240538 35.9861857281888,-95.7730408143821 35.9861857281888))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Missouri'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-79.4879333916127 37.9135152560001,-79.4879333916127 39.7217570184716,-75.0439753897762 39.7217570184716,-75.0439753897762 37.9135152560001,-79.4879333916127 37.9135152560001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Maryland'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-89.577948041369 36.4986369002728,-89.577948041369 39.1462199085219,-81.9652283144351 39.1462199085219,-81.9652283144351 36.4986369002728,-89.577948041369 36.4986369002728))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Kentucky'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-124.734607238 45.5663126819848,-124.734607238 48.9925148929891,-116.878826947306 48.9925148929891,-116.878826947306 45.5663126819848,-124.734607238 45.5663126819848))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Washington'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.5072449164197 41.2392566140001,-73.5072449164197 42.8867960797754,-69.9246720039999 42.8867960797754,-69.9246720039999 41.2392566140001,-73.5072449164197 41.2392566140001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Massachusetts'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.6674744083173 36.539774595821,-83.6674744083173 39.4508341665635,-75.2433354678788 39.4508341665635,-75.2433354678788 36.539774595821,-83.6674744083173 36.539774595821))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Virginia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-85.6056824164103 30.3626994000573,-85.6056824164103 35.0004435414363,-80.8356827459999 35.0004435414363,-80.8356827459999 30.3626994000573,-85.6056824164103 30.3626994000573))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Georgia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-92.9017273381461 42.4917999218514,-92.9017273381461 47.0815953638927,-86.8528676086401 47.0815953638927,-86.8528676086401 42.4917999218514,-92.9017273381461 42.4917999218514))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Wisconsin'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-77.1197809971952 38.8027675303789,-77.1197809971952 38.9961355802929,-76.9093145419325 38.9961355802929,-76.9093145419325 38.8027675303789,-77.1197809971952 38.8027675303789))', 4326), ST_Centroid((geocode_admin1_polygons(Array['District of Columbia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-71.0849519608322 42.9784524830002,-71.0849519608322 47.4596882130001,-66.8919164699999 47.4596882130001,-66.8919164699999 42.9784524830002,-71.0849519608322 42.9784524830002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Maine'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.412542767235 41.6968055068686,-90.412542767235 48.1907593949248,-82.414603028 48.1907593949248,-82.414603028 41.6968055068686,-90.412542767235 41.6968055068686))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Michigan'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-91.6573425717023 30.1815453150001,-91.6573425717023 35.0000773303045,-88.088153119271 35.0000773303045,-88.088153119271 30.1815453150001,-91.6573425717023 30.1815453150001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Mississippi'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-83.355487103447 32.0324747915785,-83.355487103447 35.2183146349126,-78.5731452474061 35.2183146349126,-78.5731452474061 32.0324747915785,-83.355487103447 32.0324747915785))', 4326), ST_Centroid((geocode_admin1_polygons(Array['South Carolina'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-91.5189392524445 36.9783244005507,-91.5189392524445 42.5117716657298,-87.5112244082798 42.5117716657298,-87.5112244082798 36.9783244005507,-91.5189392524445 36.9783244005507))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Illinois'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.3246277278873 33.8479678410001,-84.3246277278873 36.6095499860431,-75.4518123039999 36.6095499860431,-75.4518123039999 33.8479678410001,-84.3246277278873 33.8479678410001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['North Carolina'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-96.6379578063076 40.3795206890285,-96.6379578063076 43.5009562360414,-90.1402771420764 43.5009562360414,-90.1402771420764 40.3795206890285,-96.6379578063076 40.3795206890285))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Iowa'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-124.409201971 32.5316694900037,-124.409201971 41.9995402214042,-114.119061321723 41.9995402214042,-114.119061321723 32.5316694900037,-124.409201971 32.5316694900037))', 4326), ST_Centroid((geocode_admin1_polygons(Array['California'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-97.2292175720333 43.5001261581956,-97.2292175720333 49.3694941211523,-89.5817526389605 49.3694941211523,-89.5817526389605 43.5001261581956,-97.2292175720333 43.5001261581956))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Minnesota'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-116.048944134764 44.3766154157689,-116.048944134764 48.9926179000001,-104.03859257169 48.9926179000001,-104.03859257169 44.3766154157689,-116.048944134764 44.3766154157689))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Montana'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.046624798995 36.9998087752547,-109.046624798995 40.9998331892503,-102.039569135107 40.9998331892503,-102.039569135107 36.9998087752547,-109.046624798995 36.9998087752547))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Colorado'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-104.047574447101 45.9417521349531,-104.047574447101 48.9926695770001,-96.556341595788 48.9926695770001,-96.556341595788 45.9417521349531,-104.047574447101 45.9417521349531))', 4326), ST_Centroid((geocode_admin1_polygons(Array['North Dakota'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-114.042547649554 36.9998087752547,-114.042547649554 42.000077329805,-109.04633182955 42.000077329805,-109.04633182955 36.9998087752547,-114.042547649554 36.9998087752547))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Utah'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-111.05138554061 40.9998331892503,-111.05138554061 45.0001017440003,-104.052362103228 45.0001017440003,-104.052362103228 40.9998331892503,-111.05138554061 40.9998331892503))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Wyoming'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-120.000750774928 35.0035685407555,-120.000750774928 42.000077329805,-114.04020390029 42.000077329805,-114.04020390029 35.0035685407555,-120.000750774928 35.0035685407555))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Nevada'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-114.822108115 31.3271845500002,-114.822108115 37.0031290884367,-109.046624798995 37.0031290884367,-109.046624798995 31.3271845500002,-114.822108115 31.3271845500002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Arizona'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-102.051263471132 36.9998087752547,-102.051263471132 40.0001017441002,-94.6104675723206 40.0001017441002,-94.6104675723206 36.9998087752547,-102.051263471132 36.9998087752547))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Kansas'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.722967571796 41.001066763079,-73.722967571796 42.0545451031741,-71.795745892259 42.0545451031741,-71.795745892259 41.001066763079,-73.722967571796 41.001066763079))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Connecticut'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-82.6373718693163 37.2047648298331,-82.6373718693163 40.6467814323172,-77.7346863218163 40.6467814323172,-77.7346863218163 37.2047648298331,-82.6373718693163 37.2047648298331))', 4326), ST_Centroid((geocode_admin1_polygons(Array['West Virginia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-109.047430462973 31.3273912560001,-109.047430462973 36.9998087752547,-103.000238080223 36.9998087752547,-103.000238080223 31.3273912560001,-109.047430462973 31.3273912560001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['New Mexico'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-94.6183288997589 33.010941587984,-94.6183288997589 36.4998331892503,-89.6673035098491 36.4998331892503,-89.6673035098491 33.010941587984,-94.6183288997589 33.010941587984))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Arkansas'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-104.053729291274 40.0001017441002,-104.053729291274 43.0003702990501,-95.3172546806589 43.0003702990501,-95.3172546806589 40.0001017441002,-104.053729291274 40.0001017441002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Nebraska'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-103.000799603419 33.6474161968,-103.000799603419 36.9998087752547,-94.4390808525992 36.9998087752547,-94.4390808525992 33.6474161968,-103.000799603419 33.6474161968))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Oklahoma'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-104.05665897763 42.5183390495075,-104.05665897763 45.9420206887038,-96.4535583921061 45.9420206887038,-96.4535583921061 42.5183390495075,-104.05665897763 42.5183390495075))', 4326), ST_Centroid((geocode_admin1_polygons(Array['South Dakota'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-94.0432312444264 28.9283714860002,-94.0432312444264 33.0143351428526,-88.8109431629999 33.0143351428526,-88.8109431629999 28.9283714860002,-94.0432312444264 28.9283714860002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Louisiana'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-106.662176556003 25.8439016730001,-106.662176556003 36.5001994003821,-93.5147644471216 36.5001994003821,-93.5147644471216 25.8439016730001,-106.662176556003 25.8439016730001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Texas'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-90.312664837812 34.9836466661608,-90.312664837812 36.6897013529352,-81.6588562442202 36.6897013529352,-81.6588562442202 34.9836466661608,-90.312664837812 34.9836466661608))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Tennessee'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.7886437150354 38.4532755725098,-75.7886437150354 39.8386271352341,-75.0439753897762 39.8386271352341,-75.0439753897762 38.4532755725098,-75.7886437150354 38.4532755725098))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Delaware'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-72.55617069702 42.7008585802593,-72.55617069702 45.3042925779203,-70.7042130199999 45.3042925779203,-70.7042130199999 42.7008585802593,-72.55617069702 42.7008585802593))', 4326), ST_Centroid((geocode_admin1_polygons(Array['New Hampshire'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-71.8471675782502 41.1457789730002,-71.8471675782502 42.0164103383665,-71.1219656377723 42.0164103383665,-71.1219656377723 41.1457789730002,-71.8471675782502 41.1457789730002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Rhode Island'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-73.4385437438987 42.7292765489735,-73.4385437438987 45.0137310749146,-71.5057068297064 45.0137310749146,-71.5057068297064 42.7292765489735,-73.4385437438987 42.7292765489735))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Vermont'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-88.4861511664431 30.2236188820001,-88.4861511664431 35.009745299506,-84.8979431580503 35.009745299506,-84.8979431580503 30.2236188820001,-88.4861511664431 30.2236188820001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Alabama'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-87.6269226499603 24.5425479190002,-87.6269226499603 31.0001017441002,-80.0323787099999 31.0001017441002,-80.0323787099999 24.5425479190002,-87.6269226499603 24.5425479190002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Florida'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-88.1118591737619 37.7819376824781,-88.1118591737619 41.7595592705749,-84.7839538998525 41.7595592705749,-84.7839538998525 37.7819376824781,-88.1118591737619 37.7819376824781))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Indiana'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-84.8235290961908 38.4055216662919,-84.8235290961908 41.9844627777393,-80.5202331974041 41.9844627777393,-80.5202331974041 38.4055216662919,-84.8235290961908 38.4055216662919))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ohio'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-75.5582169259999 38.9243838560002,-75.5582169259999 41.3562540880558,-73.9071338861501 41.3562540880558,-73.9071338861501 38.9243838560002,-75.5582169259999 38.9243838560002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['New Jersey'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-80.5202331974041 39.7210490101037,-80.5202331974041 42.2685127634337,-74.6985535096368 42.2685127634337,-74.6985535096368 39.7210490101037,-80.5202331974041 39.7210490101037))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Pennsylvania'])).geom))" should true +} +function test_geocoding_functions_admin1_france() { + #Checks France departments + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.228830533 14.4081078150001,-61.228830533 14.876898505,-60.8104141919999 14.876898505,-60.8104141919999 14.4081078150001,-61.228830533 14.4081078150001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Martinique'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((45.0424910820001 -12.9891903629999,45.0424910820001 -12.6472307269999,45.2908634770001 -12.6472307269999,45.2908634770001 -12.9891903629999,45.0424910820001 -12.9891903629999))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Mayotte'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.67469206488684 45.2364963328395,3.67469206488684 46.2761990465488,4.76982600106911 46.2761990465488,4.76982600106911 45.2364963328395,3.67469206488684 45.2364963328395))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Loire'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.61987509236161 48.8828812748509,1.61987509236161 49.2306644911733,2.58333216065074 49.2306644911733,2.58333216065074 48.8828812748509,1.61987509236161 48.8828812748509))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Val-d''Oise'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.31651818526609 48.6895218917219,2.31651818526609 48.8592006729727,2.59897669232052 48.8592006729727,2.59897669232052 48.6895218917219,2.31651818526609 48.6895218917219))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Val-de-Marne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-54.6152921149999 2.11067332000007,-54.6152921149999 5.74476537500006,-51.649037239 5.74476537500006,-51.649037239 2.11067332000007,-54.6152921149999 2.11067332000007))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Guyane française'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((55.2254337900001 -21.3707821589999,55.2254337900001 -20.861423435,55.8545028 -20.861423435,55.8545028 -21.3707821589999,55.2254337900001 -21.3707821589999))', 4326), ST_Centroid((geocode_admin1_polygons(Array['La Réunion'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.54525800900012 41.331529039,8.54525800900012 42.38670482,9.40300540500004 42.38670482,9.40300540500004 41.331529039,8.54525800900012 41.331529039))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Corse-du-Sud'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.75537325906868 44.7089773067573,4.75537325906868 45.8799551342221,6.36972634759289 45.8799551342221,6.36972634759289 44.7089773067573,4.75537325906868 44.7089773067573))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Isère'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-61.7978409499999 15.8364932310001,-61.7978409499999 16.513088283,-60.9892471999999 16.513088283,-60.9892471999999 15.8364932310001,-61.7978409499999 15.8364932310001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Guadeloupe'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.86846892769887 44.2817189894398,3.86846892769887 45.3657069988789,4.8925705299061 45.3657069988789,4.8925705299061 44.2817189894398,3.86846892769887 44.2817189894398))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ardèche'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.74673800475512 45.6437490711627,4.74673800475512 46.5112185863686,6.13640018700008 46.5112185863686,6.13640018700008 45.6437490711627,4.74673800475512 45.6437490711627))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ain'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.96425014322949 48.8469449936166,2.96425014322949 50.0600993370147,4.25022187234154 50.0600993370147,4.25022187234154 48.8469449936166,2.96425014322949 48.8469449936166))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Aisne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.25389611231572 45.9570352156026,2.25389611231572 46.793215667469,4.0014474491405 46.793215667469,4.0014474491405 45.9570352156026,2.25389611231572 45.9570352156026))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Allier'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.50257543610749 43.6715822480223,5.50257543610749 44.6609231052171,6.94560144100012 44.6609231052171,6.94560144100012 43.6715822480223,5.50257543610749 43.6715822480223))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Alpes-de-Haute-Provence'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.63638651372662 43.4803458413672,6.63638651372662 44.3546228071715,7.69191247500009 44.3546228071715,7.69191247500009 43.4803458413672,6.63638651372662 43.4803458413672))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Alpes-Maritimes'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.03387909034774 49.2350150766844,4.03387909034774 50.1613320920001,5.39117393116942 50.1613320920001,5.39117393116942 49.2350150766844,4.03387909034774 49.2350150766844))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ardennes'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.832484925438962 42.5676424404556,0.832484925438962 43.3084401435978,2.16875206645474 43.3084401435978,2.16875206645474 42.5676424404556,0.832484925438962 42.5676424404556))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ariège'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.38948697614305 47.9222916382486,3.38948697614305 48.7107364922953,4.86244601667033 48.7107364922953,4.86244601667033 47.9222916382486,3.38948697614305 47.9222916382486))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Aube'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.69651572002442 42.6521608220643,1.69651572002442 43.4422536253045,3.24431399779652 43.4422536253045,3.24431399779652 42.6521608220643,1.69651572002442 42.6521608220643))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Aude'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.83399863532875 43.6904347873356,1.83399863532875 44.9353506061455,3.44751676358774 44.9353506061455,3.44751676358774 43.6904347873356,1.83399863532875 43.6904347873356))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Aveyron'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.9770725619492 48.1213530594377,6.9770725619492 49.0656827952248,8.20030521600003 49.0656827952248,8.20030521600003 48.1213530594377,6.9770725619492 48.1213530594377))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Bas-Rhin'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.22484218851019 43.1604286590001,4.22484218851019 43.9328261545034,5.81322486183791 43.9328261545034,5.81322486183791 43.1604286590001,4.22484218851019 43.1604286590001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Bouches-du-Rhône'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.91934043581247 48.2767435559703,1.91934043581247 48.7760721885806,2.57599329255646 48.7760721885806,2.57599329255646 48.2767435559703,1.91934043581247 48.2767435559703))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Essonne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.14691090191658 48.7522977730237,-1.14691090191658 49.4347150002775,0.431418015529005 49.4347150002775,0.431418015529005 48.7522977730237,-1.14691090191658 48.7522977730237))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Calvados'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.0587129994054 44.6223391200544,2.0587129994054 45.4800417891971,3.36973355715799 45.4800417891971,3.36973355715799 44.6223391200544,2.0587129994054 44.6223391200544))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Cantal'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.459265612418108 45.1920242002567,-0.459265612418108 46.1384634451319,0.924110905993587 46.1384634451319,0.924110905993587 45.1920242002567,-0.459265612418108 45.1920242002567))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Charente'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.55581620999993 45.1011452901231,-1.55581620999993 46.3624417249057,0.000336456262516549 46.3624417249057,0.000336456262516549 45.1011452901231,-1.55581620999993 45.1011452901231))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Charente-Maritime'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.77438681719784 46.4198013465549,1.77438681719784 47.6243533948932,3.07556362426189 47.6243533948932,3.07556362426189 46.4198013465549,1.77438681719784 46.4198013465549))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Cher'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.38511922387309 45.6738955566346,1.38511922387309 46.4520022756845,2.59774622370927 46.4520022756845,2.59774622370927 45.6738955566346,1.38511922387309 45.6738955566346))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Creuse'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.23891316351171 44.9328676957875,1.23891316351171 45.7608743192944,2.5254561815575 45.7608743192944,2.5254561815575 44.9328676957875,1.23891316351171 44.9328676957875))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Corrèze'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.69883520927752 46.5575877774801,5.69883520927752 47.5628629136925,7.04430342600006 47.5628629136925,7.04430342600006 46.5575877774801,5.69883520927752 46.5575877774801))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Doubs'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.06492645549153 46.902661472449,4.06492645549153 48.0220255286552,5.52171361988763 48.0220255286552,5.52171361988763 46.902661472449,4.06492645549153 46.902661472449))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Côte-d''Or'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.63853919181511 48.0344510665635,-3.63853919181511 48.8766543640001,-1.90887870408892 48.8766543640001,-1.90887870408892 48.0344510665635,-3.63853919181511 48.0344510665635))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Côtes-d''Armor'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.946003911751063 45.9697134387242,-0.946003911751063 47.1006351124205,0.204704140183964 47.1006351124205,0.204704140183964 45.9697134387242,-0.946003911751063 45.9697134387242))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Deux-Sèvres'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.267905741456758 43.3109340400739,-0.267905741456758 44.0728139524019,1.1923311305772 44.0728139524019,1.1923311305772 43.3109340400739,-0.267905741456758 43.3109340400739))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Gers'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.033556367432368 44.5745334344704,-0.033556367432368 45.7103372082956,1.45863973463611 45.7103372082956,1.45863973463611 44.5745334344704,-0.033556367432368 44.5745334344704))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Dordogne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.65752901695055 44.1217800188328,4.65752901695055 45.3439321647376,5.83062720568103 45.3439321647376,5.83062720568103 44.1217800188328,4.65752901695055 44.1217800188328))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Drôme'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.294264260219052 48.665088297387,0.294264260219052 49.4936002922197,1.78343955209368 49.4936002922197,1.78343955209368 48.665088297387,0.294264260219052 48.665088297387))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Eure'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.57048587291243 41.8340528807359,8.57048587291243 43.0174014340001,9.55958092500009 43.0174014340001,9.55958092500009 41.8340528807359,8.57048587291243 41.8340528807359))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Haute-Corse'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.775114317671694 47.9509329967604,0.775114317671694 48.9395487575691,1.99973838781634 48.9395487575691,1.99973838781634 47.9509329967604,0.775114317671694 47.9509329967604))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Eure-et-Loir'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.14064011115218 43.9673211957165,-0.14064011115218 44.762337904071,1.07721082382048 44.762337904071,1.07721082382048 43.9673211957165,-0.14064011115218 43.9673211957165))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Lot-et-Garonne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.13280188699994 47.7737491073122,-5.13280188699994 48.7332217470001,-3.38584775506988 48.7332217470001,-3.38584775506988 47.7737491073122,-5.13280188699994 47.7737491073122))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Finistère'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.28614956974687 43.4587742179557,3.28614956974687 44.4578518084142,4.84981173892066 44.4578518084142,4.84981173892066 43.4587742179557,3.28614956974687 43.4587742179557))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Gard'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.26036536399991 44.1979592205416,-1.26036536399991 45.5733096370001,0.322169964272433 45.5733096370001,0.322169964272433 44.1979592205416,-1.26036536399991 44.1979592205416))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Gironde'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.441635301428022 42.6844758100001,0.441635301428022 43.9183242007012,2.05313194438369 43.9183242007012,2.05313194438369 42.6844758100001,0.441635301428022 42.6844758100001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Haute-Garonne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.86892314408783 47.4167967730001,6.86892314408783 48.30340737545,7.62111576300006 48.30340737545,7.62111576300006 47.4167967730001,6.86892314408783 47.4167967730001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Haute-Rhin'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.98011440175821 44.1134413951043,2.98011440175821 44.9567959196959,3.99399871806642 44.9567959196959,3.99399871806642 44.1134413951043,2.98011440175821 44.1134413951043))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Lozère'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.10353481697823 44.7509121226963,3.10353481697823 45.4218911526546,4.47816621719721 45.4218911526546,4.47816621719721 44.7509121226963,3.10353481697823 44.7509121226963))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Haute-Loire'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.37489232522063 47.2604422478114,5.37489232522063 48.0086991119745,6.83601167409952 48.0086991119745,6.83601167409952 47.2604422478114,5.37489232522063 47.2604422478114))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Haute-Saône'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.63727022663971 47.588307250679,4.63727022663971 48.6932792160629,5.89781959100137 48.6932792160629,5.89781959100137 47.588307250679,4.63727022663971 47.588307250679))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Haute-Marne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.82421119039415 45.6835635258361,5.82421119039415 46.4573721320001,7.02208256000011 46.4573721320001,7.02208256000011 45.6835635258361,5.82421119039415 45.6835635258361))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Haute-Savoie'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.635895562430306 45.4464734175142,0.635895562430306 46.3970596467853,1.90938682214414 46.3970596467853,1.90938682214414 45.4464734175142,0.635895562430306 45.4464734175142))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Haute-Vienne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.55516321421098 43.219427801776,2.55516321421098 43.9706520831271,4.18070038501475 43.9706520831271,4.18070038501475 43.219427801776,2.55516321421098 43.219427801776))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Hérault'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.4267258233381 44.1886757735681,5.4267258233381 45.1247878695645,7.0551554760001 45.1247878695645,7.0551554760001 44.1886757735681,5.4267258233381 44.1886757735681))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Hautes-Alpes'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.317058575492865 42.6686886600001,-0.317058575492865 43.6117507021333,0.644904351954295 43.6117507021333,0.644904351954295 42.6686886600001,-0.317058575492865 42.6686886600001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Hautes-Pyrénées'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.28734673646272 47.6326261001145,-2.28734673646272 48.712144273,-1.03933277298907 48.712144273,-1.03933277298907 47.6326261001145,-2.28734673646272 47.6326261001145))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ille-et-Vilaine'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.880750843576578 46.3509390389055,0.880750843576578 47.2892154424387,2.19467980163154 47.2892154424387,2.19467980163154 46.3509390389055,0.880750843576578 46.3509390389055))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Indre'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.0667597989255739 46.7432278722684,0.0667597989255739 47.7061466108774,1.36235555096795 47.7061466108774,1.36235555096795 46.7432278722684,0.0667597989255739 46.7432278722684))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Indre-et-Loire'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.25015355154522 46.2606863500949,5.25015355154522 47.2922147102406,6.20664528695045 47.2922147102406,6.20664528695045 46.2606863500949,5.25015355154522 46.2606863500949))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Jura'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.51396964117239 43.4899892231241,-1.51396964117239 44.5297683153554,0.135490270459684 44.5297683153554,0.135490270459684 43.4899892231241,-1.51396964117239 43.4899892231241))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Landes'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.601969780381069 47.1862735434892,0.601969780381069 48.1307132770961,2.25864220617285 48.1307132770961,2.25864220617285 47.1862735434892,0.601969780381069 47.1862735434892))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Loir-et-Cher'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.51590047852423 47.4849918165191,1.51590047852423 48.3390689983356,3.11792690690126 48.3390689983356,3.11792690690126 47.4849918165191,1.51590047852423 47.4849918165191))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Loiret'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.55638587099989 46.8599466268353,-2.55638587099989 47.8251944665513,-0.923778569425394 47.8251944665513,-0.923778569425394 46.8599466268353,-2.55638587099989 46.8599466268353))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Loire-Atlantique'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.998268623298344 44.2204811943516,0.998268623298344 45.045049097238,2.20531456811284 45.045049097238,2.20531456811284 44.2204811943516,0.998268623298344 44.2204811943516))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Lot'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.33925954239396 46.988091162777,-1.33925954239396 47.8095389487635,0.241772012268569 47.8095389487635,0.241772012268569 46.988091162777,-1.33925954239396 46.988091162777))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Maine-et-Loire'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.94562740799992 48.4629288663742,-1.94562740799992 49.7263858090001,-0.73681323024644 49.7263858090001,-0.73681323024644 48.4629288663742,-1.94562740799992 48.4629288663742))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Manche'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.39491422281316 48.5258036245376,3.39491422281316 49.4072916953554,5.03414035939002 49.4072916953554,5.03414035939002 48.5258036245376,3.39491422281316 48.5258036245376))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Marne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.24296437260767 47.7350516407206,-1.24296437260767 48.5612784789187,-0.0527275104662408 48.5612784789187,-0.0527275104662408 47.7350516407206,-1.24296437260767 47.7350516407206))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Mayenne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.46412328616077 48.3574930709485,5.46412328616077 49.5494314580001,7.08864971521223 49.5494314580001,7.08864971521223 48.3574930709485,5.46412328616077 48.3574930709485))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Meurhe-et-Moselle'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.90691867445724 48.4118644109138,4.90691867445724 49.6088122332565,5.84956763663718 49.6088122332565,5.84956763663718 48.4118644109138,4.90691867445724 48.4118644109138))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Meuse'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.39823449662472 45.2886160006279,2.39823449662472 46.2626638891272,3.969191588521 46.2626638891272,3.969191588521 45.2886160006279,2.39823449662472 45.2886160006279))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Puy-de-Dôme'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.73247740650703 47.296616929,-3.73247740650703 48.207463768638,-2.05166801606606 48.207463768638,-2.05166801606606 47.296616929,-3.73247740650703 47.296616929))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Morbihan'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.92409888915245 48.5234415632775,5.92409888915245 49.4994086720001,7.64493234860686 49.4994086720001,7.64493234860686 48.5234415632775,5.92409888915245 48.5234415632775))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Moselle'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.85596888925286 46.6499649295378,2.85596888925286 47.5787601314749,4.22405243806961 47.5787601314749,4.22405243806961 46.6499649295378,2.85596888925286 46.6499649295378))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Nièvre'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.70700647000007 42.3256605030001,1.70700647000007 42.9138002359921,3.18156985800002 42.9138002359921,3.18156985800002 42.3256605030001,1.70700647000007 42.3256605030001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Pyrénées-Orientales'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.06332401329041 49.9690446462933,2.06332401329041 51.0875408834804,4.21031620300005 51.0875408834804,4.21031620300005 49.9690446462933,2.06332401329041 49.9690446462933))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Nord'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.25263886419222 45.4444570709371,4.25263886419222 46.2991934315316,5.15690159403334 46.2991934315316,5.15690159403334 45.4444570709371,4.25263886419222 45.4444570709371))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Rhône'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.67915732155316 49.0678031564904,1.67915732155316 49.7656217865162,3.16938686980825 49.7656217865162,3.16938686980825 49.0678031564904,1.67915732155316 49.0678031564904))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Oise'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.741737851420709 43.7737770756515,0.741737851420709 44.3927468260052,1.97744250986392 44.3927468260052,1.97744250986392 43.7737770756515,0.741737851420709 43.7737770756515))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Tarn-et-Garonne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.862705568806973 48.1808329075126,-0.862705568806973 48.9705961218136,0.979811591431741 48.9705961218136,0.979811591431741 48.1808329075126,-0.862705568806973 48.1808329075126))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Orne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.55518639400009 50.0180326849605,1.55518639400009 51.0143195135616,3.16929897996394 51.0143195135616,3.16929897996394 50.0180326849605,1.55518639400009 50.0180326849605))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Pas-de-Calais'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.79717240399995 42.7726358040001,-1.79717240399995 43.5920632016554,0.023231965282946 43.5920632016554,0.023231965282946 42.7726358040001,-1.79717240399995 42.7726358040001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Pyrénées-Atlantiques'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((3.62488005117342 46.1717520206392,3.62488005117342 47.1553250561064,5.45882787560592 47.1553250561064,5.45882787560592 46.1717520206392,3.62488005117342 46.1717520206392))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Saône-et-Loire'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.444313218780024 47.5802213130631,-0.444313218780024 48.4740909755181,0.912882877442854 48.4740909755181,0.912882877442854 47.5802213130631,-0.444313218780024 47.5802213130631))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Sarthe'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.60048559583362 45.0535854737906,5.60048559583362 45.9387661024736,7.16067875200008 45.9387661024736,7.16067875200008 45.0535854737906,5.60048559583362 45.0535854737906))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Savoie'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.39066074359846 48.1216605422002,2.39066074359846 49.1062003749473,3.53780241165202 49.1062003749473,3.53780241165202 48.1216605422002,2.39066074359846 48.1216605422002))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Seien-et-Marne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.0753686860000755 49.2563065818833,0.0753686860000755 50.0657196742449,1.76948691408978 50.0657196742449,1.76948691408978 49.2563065818833,0.0753686860000755 49.2563065818833))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Seine-Maritime'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.26659630857279 48.8074711157993,2.26659630857279 49.0097843551639,2.59238489464721 49.0097843551639,2.59238489464721 48.8074711157993,2.26659630857279 48.8074711157993))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Seine-Saint-Denis'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.3730687422138 49.5750089868753,1.3730687422138 50.3756778020001,3.19307339462151 50.3756778020001,3.19307339462151 49.5750089868753,1.3730687422138 49.5750089868753))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Somme'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.54844198451002 43.383191122972,1.54844198451002 44.194509513803,2.93447719296813 44.194509513803,2.93447719296813 43.383191122972,1.54844198451002 43.383191122972))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Tarn'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.67218878615307 42.9871279970001,5.67218878615307 43.8065383075969,6.93318453905428 43.8065383075969,6.93318453905428 42.9871279970001,5.67218878615307 42.9871279970001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Var'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((4.65752901695055 43.666034151355,4.65752901695055 44.4288698739455,5.75377509254642 44.4288698739455,5.75377509254642 43.666034151355,4.65752901695055 43.666034151355))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Vaucluse'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.38292395699992 46.2791201840001,-2.38292395699992 47.0763223680829,-0.555286123855467 47.0763223680829,-0.555286123855467 46.2791201840001,-2.38292395699992 46.2791201840001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Vendée'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.10904283575826 46.0535171529941,-0.10904283575826 47.1605875074075,1.19468220481997 47.1605875074075,1.19468220481997 46.0535171529941,-0.10904283575826 46.0535171529941))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Vienne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.42239721006317 47.8189981772241,5.42239721006317 48.5234415632775,7.20903790337658 48.5234415632775,7.20903790337658 47.8189981772241,5.42239721006317 47.8189981772241))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Vosges'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.83087611524053 47.3123306774189,2.83087611524053 48.4117435609166,4.34114472694759 48.4117435609166,4.34114472694759 47.3123306774189,2.83087611524053 47.3123306774189))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Yonne'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.4434566289203 48.4441202715333,1.4434566289203 49.0825907547595,2.2265401548043 49.0825907547595,2.2265401548043 48.4441202715333,1.4434566289203 48.4441202715333))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Yvelines'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.22680382613567 48.8158317117641,2.22680382613567 48.9012174567202,2.47342041601945 48.9012174567202,2.47342041601945 48.8158317117641,2.22680382613567 48.8158317117641))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Paris'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.75908183166121 47.4268442610132,6.75908183166121 47.8241654757561,7.15149151412214 47.8241654757561,7.15149151412214 47.4268442610132,6.75908183166121 47.4268442610132))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Territoire de Belfort'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((2.15161339394297 48.7301053899517,2.15161339394297 48.9581266385335,2.3319649632125 48.9581266385335,2.3319649632125 48.7301053899517,2.15161339394297 48.7301053899517))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Hauts-de-Seine'])).geom))" should true + +} +function test_geocoding_functions_admin1_germany() { + #Checks count of Germany states + sql "SELECT count(*) from global_province_polygons where admin = 'Germany'" should 16 + + #Checks Germany states + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.87989342500012 53.3638748237641,7.87989342500012 55.065334377,11.3142195970001 55.065334377,11.3142195970001 53.3638748237641,7.87989342500012 53.3638748237641))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Schleswig-Holstein'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.97658938998842 47.2711209110001,8.97658938998842 50.5628571637271,13.8168616120001 50.5628571637271,13.8168616120001 47.2711209110001,8.97658938998842 47.2711209110001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Bayern'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((5.85248986800011 50.3230800349579,5.85248986800011 52.5241844753332,9.46214114809555 52.5241844753332,9.46214114809555 50.3230800349579,5.85248986800011 50.3230800349579))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Nordrhein-Westfalen'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.2740899293068 51.3479771998879,11.2740899293068 53.5438112668764,14.7614034430001 53.5438112668764,14.7614034430001 51.3479771998879,11.2740899293068 51.3479771998879))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Brandenburg'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.601244744949 53.1082409268773,10.601244744949 54.6884219420001,14.3912605108821 54.6884219420001,14.3912605108821 53.1082409268773,10.601244744949 53.1082409268773))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Mecklenburg-Vorpommern'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.65951582100013 51.2904613309256,6.65951582100013 53.8924828150001,11.5813399590718 53.8924828150001,11.5813399590718 51.2904613309256,6.65951582100013 51.2904613309256))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Niedersachsen'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.87767134006029 50.2072716334791,9.87767134006029 51.6373652207284,12.6473730812027 51.6373652207284,12.6473730812027 50.2072716334791,9.87767134006029 50.2072716334791))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Thüringen'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.0964026290001 48.9582503311439,6.0964026290001 50.9327053903415,8.50457685693641 50.9327053903415,8.50457685693641 48.9582503311439,6.0964026290001 48.9582503311439))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Rheinland-Pfalz'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.5118717850001 47.532743111053,7.5118717850001 49.7955913357715,10.4951013530451 49.7955913357715,10.4951013530451 47.532743111053,7.5118717850001 47.532743111053))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Baden-Württemberg'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((8.49605024612202 53.0246190465318,8.49605024612202 53.6170967182623,8.98992190856922 53.6170967182623,8.98992190856922 53.0246190465318,8.49605024612202 53.0246190465318))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Bremen'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((11.8973930188728 50.1608153280001,11.8973930188728 51.6700764018045,15.0220593670001 51.6700764018045,15.0220593670001 50.1608153280001,11.8973930188728 50.1608153280001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Sachsen'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((9.74081038148518 53.4043891470415,9.74081038148518 53.7277802601508,10.3279797706499 53.7277802601508,10.3279797706499 53.4043891470415,9.74081038148518 53.4043891470415))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Hamburg'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((6.34227909400011 49.1050141400001,6.34227909400011 49.629477443729,7.39058800633148 49.629477443729,7.39058800633148 49.1050141400001,6.34227909400011 49.1050141400001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Saarland'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((13.0916353696766 52.3420250511152,13.0916353696766 52.6635558131503,13.7509232930755 52.6635558131503,13.7509232930755 52.3420250511152,13.0916353696766 52.3420250511152))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Berlin'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((10.569618767692 50.927899482575,10.569618767692 53.0503022317625,13.2368461440344 53.0503022317625,13.2368461440344 50.927899482575,10.569618767692 50.927899482575))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Sachsen-Anhalt'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((7.77139163561549 49.3962875431356,7.77139163561549 51.6550127224591,10.2328951351024 51.6550127224591,10.2328951351024 49.3962875431356,7.77139163561549 49.3962875431356))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Hessen'])).geom))" should true + +} +function test_geocoding_functions_admin1_spain() { + #Checks Spanish provinces + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.44502967028305 43.0206203083805,-3.44502967028305 43.452500718,-2.40678374228841 43.452500718,-2.40678374228841 43.0206203083805,-3.44502967028305 43.0206203083805))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Bizkaia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.34228593234988 41.8059506230001,-8.34228593234988 42.5784535436961,-6.73570736330419 42.5784535436961,-6.73570736330419 41.8059506230001,-8.34228593234988 41.8059506230001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Orense'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.17162390811683 42.8928343780041,-7.17162390811683 43.662949937,-4.51325904027243 43.662949937,-4.51325904027243 42.8928343780041,-7.17162390811683 42.8928343780041))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Asturias'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.33853390081885 37.3810364472372,-2.33853390081885 38.7540947544694,-0.701242641999897 38.7540947544694,-0.701242641999897 37.3810364472372,-2.33853390081885 37.3810364472372))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Murcia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.21216881600009 38.6386463070001,1.21216881600009 40.0794131530001,4.3370874360001 40.0794131530001,4.3370874360001 38.6386463070001,1.21216881600009 38.6386463070001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Baleares'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.12096676270596 41.9184494092129,-3.12096676270596 42.6441157091727,-1.68578304685008 42.6441157091727,-1.68578304685008 41.9184494092129,-3.12096676270596 41.9184494092129))', 4326), ST_Centroid((geocode_admin1_polygons(Array['La Rioja'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.71217411297255 41.6455822609064,1.71217411297255 42.4937122600564,3.3177189460001 42.4937122600564,3.3177189460001 41.6455822609064,1.71217411297255 41.6455822609064))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Gerona'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-9.29198157499991 42.5307070980001,-9.29198157499991 43.793443101,-7.66832434799994 43.793443101,-7.66832434799994 42.5307070980001,-9.29198157499991 42.5307070980001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['La Coruña'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-15.8217667309999 27.73436107,-15.8217667309999 29.2894554710001,-13.4177953769999 29.2894554710001,-13.4177953769999 27.73436107,-15.8217667309999 27.73436107))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Las Palmas'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.324197625220194 41.2328323427384,0.324197625220194 42.8465847790001,1.84254599889874 42.8465847790001,1.84254599889874 41.2328323427384,0.324197625220194 41.2328323427384))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Lérida'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.28007849822407 42.4966828485346,-3.28007849822407 43.2049818881037,-2.23913428392001 43.2049818881037,-2.23913428392001 42.4966828485346,-3.28007849822407 42.4966828485346))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Álava'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.08445024288437 37.84291006155,-1.08445024288437 38.8827578799861,0.234548373000024 38.8827578799861,0.234548373000024 37.84291006155,-1.08445024288437 37.84291006155))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Alicante'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.839090541894961 39.7154401712134,-0.839090541894961 40.779914252241,0.523759592032405 40.779914252241,0.523759592032405 39.7154401712134,-0.839090541894961 39.7154401712134))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Castellón'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.51827389172669 38.6938305933073,-1.51827389172669 40.2032052681087,-0.0309952458669613 40.2032052681087,-0.0309952458669613 38.6938305933073,-1.51827389172669 38.6938305933073))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Valencia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.60784368943473 36.2971052102187,-5.60784368943473 37.2775500216163,-3.76820494700067 37.2775500216163,-3.76820494700067 36.2971052102187,-5.60784368943473 36.2971052102187))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Málaga'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.33075990074883 41.4576502781378,-4.33075990074883 43.2011876492906,-2.51294185967905 43.2011876492906,-2.51294185967905 41.4576502781378,-4.33075990074883 41.4576502781378))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Burgos'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.88212459157663 38.0236225449445,-2.88212459157663 39.4220384789926,-0.903479377071619 39.4220384789926,-0.903479377071619 38.0236225449445,-2.88212459157663 38.0236225449445))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Albacete'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.1402264080223 36.6803653020001,-3.1402264080223 37.9156680803177,-1.64161771279365 37.9156680803177,-1.64161771279365 36.6803653020001,-3.1402264080223 36.6803653020001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Almería'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.727732713394 40.088819485331,-5.727732713394 41.1607886950422,-4.16129085938564 41.1607886950422,-4.16129085938564 40.088819485331,-5.727732713394 40.088819485331))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ávila'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.39885867893531 35.8473656790339,-5.39885867893531 35.926174221,-5.28307044199997 35.926174221,-5.28307044199997 35.8473656790339,-5.39885867893531 35.8473656790339))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ceuta'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((1.36998006352917 41.1921654321945,1.36998006352917 42.3183741882181,2.77849657777759 42.3183741882181,2.77849657777759 41.1921654321945,1.36998006352917 41.1921654321945))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Barcelona'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-6.43789628799991 36.006455796,-6.43789628799991 37.0458813116732,-5.08466373754143 37.0458813116732,-5.08466373754143 36.006455796,-6.43789628799991 36.006455796))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Cádiz'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.55728592999992 39.031473428356,-7.55728592999992 40.4803201357656,-4.94436967641946 40.4803201357656,-4.94436967641946 39.031473428356,-7.55728592999992 39.031473428356))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Cáceres'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.83603003575755 42.7625064149391,-4.83603003575755 43.518255927,-3.14954382958408 43.518255927,-3.14954382958408 42.7625064149391,-4.83603003575755 42.7625064149391))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Cantabria'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.60281916067569 42.9000690785251,-2.60281916067569 43.3950869810001,-1.74972998587506 43.3950869810001,-1.74972998587506 42.9000690785251,-2.60281916067569 42.9000690785251))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Gipuzkoa'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.03658626964057 38.3488740100276,-5.03658626964057 39.5767688586959,-2.6438421117241 39.5767688586959,-2.6438421117241 38.3488740100276,-5.03658626964057 38.3488740100276))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Ciudad Real'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.58182806351428 37.1865722346209,-5.58182806351428 38.7284115674399,-4.00087341347725 38.7284115674399,-4.00087341347725 37.1865722346209,-5.58182806351428 37.1865722346209))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Córdoba'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.17006527589177 39.2267334449925,-3.17006527589177 40.6597901401029,-1.14548010931955 40.6597901401029,-1.14548010931955 39.2267334449925,-3.17006527589177 39.2267334449925))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Cuenca'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-18.1672257149999 27.6422386740001,-18.1672257149999 28.855619032,-16.1177465489999 28.855619032,-16.1177465489999 27.6422386740001,-18.1672257149999 27.6422386740001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Santa Cruz de Tenerife'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.32030091575464 36.6955162870001,-4.32030091575464 38.0806474883909,-2.20964815713677 38.0806474883909,-2.20964815713677 36.6955162870001,-4.32030091575464 36.6955162870001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Granada'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.54577287431866 40.1553418793243,-3.54577287431866 41.3221292176893,-1.53705827501935 41.3221292176893,-1.53705827501935 40.1553418793243,-3.54577287431866 40.1553418793243))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Guadalajara'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.5296907149999 36.8081729190001,-7.5296907149999 38.2092959657362,-6.12440987141844 38.2092959657362,-6.12440987141844 36.8081729190001,-7.5296907149999 36.8081729190001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Huelva'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.28432068914844 37.3784374760087,-4.28432068914844 38.5331263293167,-2.43025956942355 38.5331263293167,-2.43025956942355 37.3784374760087,-4.28432068914844 37.3784374760087))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Jaén'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-0.924690434316119 41.3509290826111,-0.924690434316119 42.9187272272897,0.769545119311772 42.9187272272897,0.769545119311772 41.3509290826111,-0.924690434316119 41.3509290826111))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Huesca'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.0710357319135 42.0307521067243,-7.0710357319135 43.2385497103009,-4.72686357279562 43.2385497103009,-4.72686357279562 42.0307521067243,-7.0710357319135 42.0307521067243))', 4326), ST_Centroid((geocode_admin1_polygons(Array['León'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.9998091127004 42.3255262878079,-7.9998091127004 43.7526716170001,-6.82828569173128 43.7526716170001,-6.82828569173128 42.3255262878079,-7.9998091127004 42.3255262878079))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Lugo'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.71385317698247 40.6333680206177,-4.71385317698247 41.5832459861134,-3.19879147015018 41.5832459861134,-3.19879147015018 40.6333680206177,-4.71385317698247 40.6333680206177))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Segovia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-4.57188595237477 39.8935342472078,-4.57188595237477 41.1617514102993,-3.06223649691677 41.1617514102993,-3.06223649691677 39.8935342472078,-4.57188595237477 39.8935342472078))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Madrid'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.49454505001398 41.908863430303,-2.49454505001398 43.3049288940001,-0.745031962827426 43.3049288940001,-0.745031962827426 41.908863430303,-2.49454505001398 41.908863430303))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Navarra'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.02695255381727 41.7632569794261,-5.02695255381727 43.0509384222704,-3.89246032338525 43.0509384222704,-3.89246032338525 41.7632569794261,-5.02695255381727 41.7632569794261))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Palencia'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-8.94261633999986 41.888902085,-8.94261633999986 42.8530128807398,-7.86814895151289 42.8530128807398,-7.86814895151289 41.888902085,-8.94261633999986 41.888902085))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Pontevedra'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((0.167463005613229 40.5261630293999,0.167463005613229 41.5761158587599,1.62782919386217 41.5761158587599,1.62782919386217 40.5261630293999,0.167463005613229 40.5261630293999))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Tarragona'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-6.94249141499995 40.2443655465327,-6.94249141499995 41.3029916103501,-5.09575992907745 41.3029916103501,-5.09575992907745 40.2443655465327,-6.94249141499995 40.2443655465327))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Salamanca'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-6.53137643917128 36.8420739305675,-6.53137643917128 38.1902015240811,-4.65323061530066 38.1902015240811,-4.65323061530066 36.8420739305675,-6.53137643917128 36.8420739305675))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Sevilla'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.52075506289583 41.0975074424145,-5.52075506289583 42.3093983579479,-3.98061462316633 42.3093983579479,-3.98061462316633 41.0975074424145,-5.52075506289583 41.0975074424145))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Valladolid'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-3.54296323936197 41.0637987333249,-3.54296323936197 42.1422083605273,-1.78554439895487 42.1422083605273,-1.78554439895487 41.0637987333249,-3.54296323936197 41.0637987333249))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Soria'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-1.80825619087048 39.8522447784737,-1.80825619087048 41.3543458309952,0.28972944495797 41.3543458309952,0.28972944495797 39.8522447784737,-1.80825619087048 39.8522447784737))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Teruel'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-5.39100907990507 39.2596704584249,-5.39100907990507 40.3094778512219,-2.90823909435872 40.3094778512219,-2.90823909435872 39.2596704584249,-5.39100907990507 39.2596704584249))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Toledo'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.02814429362425 41.1161512418863,-7.02814429362425 42.2528760285059,-5.22872746350166 42.2528760285059,-5.22872746350166 41.1161512418863,-7.02814429362425 41.1161512418863))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Zamora'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.96692012599988 35.2678742480001,-2.96692012599988 35.3297681250436,-2.91290659779662 35.3297681250436,-2.91290659779662 35.2678742480001,-2.96692012599988 35.2678742480001))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Melilla'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-2.17335018566254 40.943786733371,-2.17335018566254 42.7425593134615,0.377269320722576 42.7425593134615,0.377269320722576 40.943786733371,-2.17335018566254 40.943786733371))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Zaragoza'])).geom))" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POLYGON((-7.3592101639999 37.9389765490285,-7.3592101639999 39.4498145619925,-4.65839230026438 39.4498145619925,-4.65839230026438 37.9389765490285,-7.3592101639999 37.9389765490285))', 4326), ST_Centroid((geocode_admin1_polygons(Array['Badajoz'])).geom))" should true +} + +#################################################### TESTS END HERE #################################################### diff --git a/geocoder/admin1/test/run.sh b/geocoder/admin1/test/run.sh new file mode 100644 index 0000000..2fff134 --- /dev/null +++ b/geocoder/admin1/test/run.sh @@ -0,0 +1,192 @@ +#!/bin/sh +source data/test.sh +source functions/test.sh + +# +# The following script has two use modes: +# +# API +# ==================================== +# SQL_API_ROUTE and API_KEY need to be +# conveniently filled for the requests +# to work. +# Example: bash run.sh api sql_api_route api_key test_type +# +# SQL +# ==================================== +# It is expected that you run this script +# as a PostgreSQL superuser, for example: +# +# bash run.sh db database role test_type +# +# test_type defines the kind of tests to run: data or functions + +MODE='' +TEST_TYPE='' + +# DB settings +DATABASE='' +ROLE='' +CMD='echo psql' +CMD=psql + +# SQL API settings +SQL_API_ROUTE='' +API_KEY='' + +OK=0 +PARTIALOK=0 + +function set_failed() { + OK=1 + PARTIALOK=1 +} + +function clear_partial_result() { + PARTIALOK=0 +} + +function sql() { + local QUERY="$1" + if [[ $MODE = "api" ]] + then + # SQL API mode + echo $QUERY + RESULT=$(curl -s -X POST "https://$SQL_API_ROUTE/sql?api_key=$API_KEY&format=csv" --data-urlencode "q=$QUERY" |tail -n1 | tr -d '\r') + if [[ "$2" == "should" ]] + then + if [[ "${RESULT}" != "$3" ]] + then + log_error "QUERY '${QUERY}' expected result '${3}' but got '${RESULT}'" + set_failed + fi + fi + # Database mode + elif [[ $MODE = "db" ]] + then + if [ -n "${ROLE}" ]; then + log_debug "Executing query '${QUERY}' as ${ROLE}" + RESULT=`${CMD} -U "${ROLE}" ${DATABASE} -c "${QUERY}" -A -t` + else + log_debug "Executing query '${QUERY}'" + RESULT=`${CMD} ${DATABASE} -c "${QUERY}" -A -t` + fi + CODERESULT=$? + + echo ${RESULT} + echo + + if [[ ${CODERESULT} -ne 0 ]] + then + echo -n "FAILED TO EXECUTE QUERY: " + log_warning "${QUERY}" + if [[ "$2" != "fails" ]] + then + log_error "${QUERY}" + set_failed + fi + else + if [[ "$2" == "fails" ]] + then + log_error "QUERY: '${QUERY}' was expected to fail and it did not fail" + set_failed + fi + fi + + if [[ "$2" == "should" ]] + then + if [[ "${RESULT}" != "$3" ]] + then + log_error "QUERY '${QUERY}' expected result '${3}' but got '${RESULT}'" + set_failed + fi + fi + fi +} + +function log_info() +{ + echo + echo + echo + _log "1;34m" "$1" +} + +function log_error() { + _log "1;31m" "$1" +} + +function log_debug() { + _log "1;32m" "> $1" +} + +function log_warning() { + _log "0;33m" "$1" +} + +function _log() { + echo -e "\033[$1$2\033[0m" +} + +# '############################ HELPERS #############################' + + +function run_tests() { + local FAILED_TESTS=() + local TESTS + + MODE="$1" + if [[ $MODE = "api" ]] + then + SQL_API_ROUTE="$2" + API_KEY="$3" + TEST_TYPE="$4" + fi + if [[ $MODE = "db" ]] + then + DATABASE="$2" + ROLE="$3" + TEST_TYPE="$4" + fi + + if [[ $# -ge 4 ]] + then + if [[ $TEST_TYPE = "data" ]] + then + TESTS=`cat data/test.sh| perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` + elif [[ $TEST_TYPE = "functions" ]] + then + TESTS=`cat functions/test.sh| perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` + fi + else + TESTS="$@" + fi + for t in ${TESTS} + do + echo "####################################################################" + echo "#" + echo "# Running: ${t}" + echo "#" + echo "####################################################################" + clear_partial_result + eval ${t} + if [[ ${PARTIALOK} -ne 0 ]] + then + FAILED_TESTS+=(${t}) + fi + done + if [[ ${OK} -ne 0 ]] + then + echo + log_error "The following tests are failing:" + printf -- '\t%s\n' "${FAILED_TESTS[@]}" + else + echo + log_info "Test finished" + fi +} + + +run_tests $@ + +exit ${OK} diff --git a/geocoder/ip-addresses/test/data/test.sh b/geocoder/ip-addresses/test/data/test.sh new file mode 100644 index 0000000..1f667db --- /dev/null +++ b/geocoder/ip-addresses/test/data/test.sh @@ -0,0 +1,13 @@ +#!/bin/sh + + +#################################################### TESTS GO HERE #################################################### + +function test_geocoding_data_ip_addr() { + # checks the type of the IP addresses column - inet in postgres + sql "SELECT count(*) FROM ip_address_locations where network_start_ip::inet is null" should 0 + +} + + +#################################################### TESTS END HERE #################################################### diff --git a/geocoder/ip-addresses/test/functions/test.sh b/geocoder/ip-addresses/test/functions/test.sh new file mode 100644 index 0000000..aa5663f --- /dev/null +++ b/geocoder/ip-addresses/test/functions/test.sh @@ -0,0 +1,21 @@ +#!/bin/sh + + +#################################################### TESTS GO HERE #################################################### + +function test_geocoding_functions_ip_addr() { + # checks that the result is false and no geometry is returned for an invalid formatted/out of range IPv4 + sql "SELECT (geocode_ip(Array['1.0.16.280.1'])).success" should false + sql "SELECT (geocode_ip(Array['1.0.16.280.1'])).geom is null" should true + + # checks that a valid IPv4 address returns a value and a success status + sql "SELECT (geocode_ip(Array['8.2.16.0'])).success" should true + sql "SELECT (geocode_ip(Array['8.2.16.0'])).geom is null" should false + + # check that the returned geometry is a point + sql "SELECT ST_GeometryType((geocode_ip(Array['8.2.16.0'])).geom)" should ST_Point + +} + + +#################################################### TESTS END HERE #################################################### diff --git a/geocoder/ip-addresses/test/run.sh b/geocoder/ip-addresses/test/run.sh new file mode 100644 index 0000000..2fff134 --- /dev/null +++ b/geocoder/ip-addresses/test/run.sh @@ -0,0 +1,192 @@ +#!/bin/sh +source data/test.sh +source functions/test.sh + +# +# The following script has two use modes: +# +# API +# ==================================== +# SQL_API_ROUTE and API_KEY need to be +# conveniently filled for the requests +# to work. +# Example: bash run.sh api sql_api_route api_key test_type +# +# SQL +# ==================================== +# It is expected that you run this script +# as a PostgreSQL superuser, for example: +# +# bash run.sh db database role test_type +# +# test_type defines the kind of tests to run: data or functions + +MODE='' +TEST_TYPE='' + +# DB settings +DATABASE='' +ROLE='' +CMD='echo psql' +CMD=psql + +# SQL API settings +SQL_API_ROUTE='' +API_KEY='' + +OK=0 +PARTIALOK=0 + +function set_failed() { + OK=1 + PARTIALOK=1 +} + +function clear_partial_result() { + PARTIALOK=0 +} + +function sql() { + local QUERY="$1" + if [[ $MODE = "api" ]] + then + # SQL API mode + echo $QUERY + RESULT=$(curl -s -X POST "https://$SQL_API_ROUTE/sql?api_key=$API_KEY&format=csv" --data-urlencode "q=$QUERY" |tail -n1 | tr -d '\r') + if [[ "$2" == "should" ]] + then + if [[ "${RESULT}" != "$3" ]] + then + log_error "QUERY '${QUERY}' expected result '${3}' but got '${RESULT}'" + set_failed + fi + fi + # Database mode + elif [[ $MODE = "db" ]] + then + if [ -n "${ROLE}" ]; then + log_debug "Executing query '${QUERY}' as ${ROLE}" + RESULT=`${CMD} -U "${ROLE}" ${DATABASE} -c "${QUERY}" -A -t` + else + log_debug "Executing query '${QUERY}'" + RESULT=`${CMD} ${DATABASE} -c "${QUERY}" -A -t` + fi + CODERESULT=$? + + echo ${RESULT} + echo + + if [[ ${CODERESULT} -ne 0 ]] + then + echo -n "FAILED TO EXECUTE QUERY: " + log_warning "${QUERY}" + if [[ "$2" != "fails" ]] + then + log_error "${QUERY}" + set_failed + fi + else + if [[ "$2" == "fails" ]] + then + log_error "QUERY: '${QUERY}' was expected to fail and it did not fail" + set_failed + fi + fi + + if [[ "$2" == "should" ]] + then + if [[ "${RESULT}" != "$3" ]] + then + log_error "QUERY '${QUERY}' expected result '${3}' but got '${RESULT}'" + set_failed + fi + fi + fi +} + +function log_info() +{ + echo + echo + echo + _log "1;34m" "$1" +} + +function log_error() { + _log "1;31m" "$1" +} + +function log_debug() { + _log "1;32m" "> $1" +} + +function log_warning() { + _log "0;33m" "$1" +} + +function _log() { + echo -e "\033[$1$2\033[0m" +} + +# '############################ HELPERS #############################' + + +function run_tests() { + local FAILED_TESTS=() + local TESTS + + MODE="$1" + if [[ $MODE = "api" ]] + then + SQL_API_ROUTE="$2" + API_KEY="$3" + TEST_TYPE="$4" + fi + if [[ $MODE = "db" ]] + then + DATABASE="$2" + ROLE="$3" + TEST_TYPE="$4" + fi + + if [[ $# -ge 4 ]] + then + if [[ $TEST_TYPE = "data" ]] + then + TESTS=`cat data/test.sh| perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` + elif [[ $TEST_TYPE = "functions" ]] + then + TESTS=`cat functions/test.sh| perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` + fi + else + TESTS="$@" + fi + for t in ${TESTS} + do + echo "####################################################################" + echo "#" + echo "# Running: ${t}" + echo "#" + echo "####################################################################" + clear_partial_result + eval ${t} + if [[ ${PARTIALOK} -ne 0 ]] + then + FAILED_TESTS+=(${t}) + fi + done + if [[ ${OK} -ne 0 ]] + then + echo + log_error "The following tests are failing:" + printf -- '\t%s\n' "${FAILED_TESTS[@]}" + else + echo + log_info "Test finished" + fi +} + + +run_tests $@ + +exit ${OK} diff --git a/geocoder/namedplace/test/data/test.sh b/geocoder/namedplace/test/data/test.sh new file mode 100644 index 0000000..99baf1d --- /dev/null +++ b/geocoder/namedplace/test/data/test.sh @@ -0,0 +1,512 @@ +#!/bin/sh + +#################################################### TESTS GO HERE #################################################### + +function test_geocoding_data_namedplace() { + # 500 cities with biggest population + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.45806 31.22222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shanghai' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-58.37723 -34.61315)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Buenos Aires' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.88261 19.07283)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mumbai' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.12766 19.42847)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mexico City' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.39723 39.9075)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Beijing' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(67.0822 24.9056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Karachi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.94966 41.01384)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'İstanbul' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.17667 39.14222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tianjin' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.25 23.11667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guangzhou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.23149 28.65195)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Delhi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.9822 14.6042)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manila' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.61556 55.75222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Moscow' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.0683 22.54554)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shenzhen' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(90.40744 23.7104)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dhaka' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.9784 37.566)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Seoul' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-46.63611 -23.5475)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'São Paulo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.26667 30.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Wuhan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.39467 6.45407)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lagos' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.84513 -6.21462)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jakarta' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.69171 35.6895)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tokyo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-74.00597 40.71427)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'New York' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.74472 23.04889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dongguan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.53185 25.04776)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Taipei' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(15.31357 -4.32758)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kinshasa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-77.02824 -12.04318)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lima' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.24967 30.06263)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cairo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-74.08175 4.60971)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bogotá' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.12574 51.50853)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'London' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.09184 51.51279)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'City of London' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.55278 29.56278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chongqing' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.06667 30.66667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chengdu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.77778 32.06167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanjing' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(51.42151 35.69439)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tehrān' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.08473 30.79508)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanchong' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.15769 22.28552)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hong Kong' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.92861 34.25833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xi’an' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.34361 31.54972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lahore' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.43278 41.79222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shenyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.16142 30.29365)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hangzhou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.2075 -22.90278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rio de Janeiro' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.65 45.75)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Harbin' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.40088 33.34058)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baghdad' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.12 36.18528)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tai’an' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.59538 31.30408)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Suzhou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.71479 23.36814)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shantou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(100.50144 13.75398)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bangkok' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.59369 12.97194)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bangalore' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.31413 59.93863)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Saint Petersburg' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-70.64827 -33.45694)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santiago' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(88.36304 22.56263)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kolkata' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(151.20732 -33.86785)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sydney' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(96.15611 16.80528)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yangon' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.99722 36.66833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jinan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.27847 13.08784)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chennai' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.64861 34.75778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zhengzhou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(144.96332 -37.814)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Melbourne' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(46.72185 24.68773)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Riyadh' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(125.32278 43.88)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changchun' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.60222 38.91222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dalian' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(91.83168 22.3384)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chittagong' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(102.71833 25.03889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kunming' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(29.95527 31.21564)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Alexandria' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-118.24368 34.05223)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Los Angeles' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.58727 23.02579)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ahmedabad' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.36939 36.06605)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qingdao' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(129.04028 35.10278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Busan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-4.01266 5.30966)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Abidjan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(8.51672 12.00012)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kano' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.13148 23.02677)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Foshan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.45636 17.38405)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hyderabad' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.88872 29.45679)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Puyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.6425 35.44778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yokohama' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.90591 7.37756)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ibadan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(103.85007 1.28967)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Singapore' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.28857 31.56887)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Wuxi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.08187 24.47979)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xiamen' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.85427 39.91987)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ankara' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(105.74238 34.57952)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tianshui' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.54945 29.87819)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ningbo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.62965 10.82302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ho Chi Minh City' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(110.77806 32.6475)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shiyan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(18.42322 -33.92584)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cape Town' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.56028 37.86944)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Taiyuan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.41053 52.52437)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Berlin' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.18333 39.63333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tangshan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.28083 31.86389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hefei' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.58781 45.50884)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Montréal' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-3.70256 40.4165)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Madrid' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(125.75432 39.03385)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pyongyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-7.61138 33.58831)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Casablanca' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(118.06333 36.79056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zibo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(110.5723 21.31992)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zhongshan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.0292 -29.8579)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Durban' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.97087 28.19874)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changsha' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(69.17233 34.52813)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kabul' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(87.60046 43.80096)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ürümqi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-66.87919 10.48801)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Caracas' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.85535 18.51957)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pune' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.83023 21.19594)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sūrat' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.19797 21.54238)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jeddah' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.47861 38.04139)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shijiazhuang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.34627 26.4478)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kānpur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.5238 50.45466)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kiev' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.23432 -8.83682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Luanda' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(121.0509 14.6488)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Quezon City' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(38.74689 9.02497)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Addis Ababa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.81667 -1.28333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nairobi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-38.51083 -12.97111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Salvador' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.78781 26.91962)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jaipur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.26951 -6.82349)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dar es Salaam' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-87.65005 41.85003)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chicago' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(103.83987 36.05701)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lanzhou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.70515 37.45646)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Incheon' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.03954 22.92833)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yunfu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.79747 30.53302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Başrah' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.01582 19.03681)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Navi Mumbai' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-79.4163 43.70011)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Toronto' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.50218 34.69374)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ōsaka-shi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(45.34375 2.03711)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mogadishu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(128.59111 35.87028)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Daegu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.08333 31.41667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Faisalābād' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.13838 38.41273)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'İzmir' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.44406 14.6937)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dakar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.92313 26.83928)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lucknow' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.21093 30.00808)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Jīzah' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-38.54306 -3.71722)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fortaleza' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-76.5225 3.43722)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cali' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.75083 -7.24917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Surabaya' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.93778 -19.92083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Belo Horizonte' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(115.85306 28.68396)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanchang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.45472 14.71331)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Grand Dakar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(12.51133 41.89193)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rome' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(59.56796 36.31559)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mashhad' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.94958 40.6501)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brooklyn' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.83652 40.68149)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Borough of Queens' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(79.08491 21.14631)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nagpur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-71.64056 10.63167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maracaibo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-47.92972 -15.77972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brasília' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-69.98857 18.50012)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santo Domingo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(136.90641 35.18147)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nagoya-shi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(153.02809 -27.46794)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brisbane' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-82.38304 23.13302)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Havana' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(2.3488 48.85341)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Paris' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-95.36327 29.76328)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Houston' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(43.1049 36.33306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Mawşil al Jadīdah' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.04363 -26.20227)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Johannesburg' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.18333 22.31667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kowloon' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.81507 30.50316)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Al Başrah al Qadīmah' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.92848 43.25654)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Almaty' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.56359 6.25184)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Medellín' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(69.21627 41.26465)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tashkent' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.04197 36.7525)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Algiers' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.53241 15.55177)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Khartoum' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.1969 5.55602)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Accra' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-79.90795 -2.20584)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guayaquil' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(109.78157 39.6086)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ordos' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.20667 15.35472)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sanaa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.49442 33.88894)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Beirut' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(115.8614 -31.95224)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Perth' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(141.34695 43.06417)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sapporo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.56028 43.85083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jilin' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(26.10626 44.43225)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bucharest' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-13.68778 9.535)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Camayenne' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-123.11934 49.24966)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vancouver' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.8333 22.71792)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Indore' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.0671 19.35738)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Iztapalapa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.06601 19.61725)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ecatepec' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-13.67729 9.53795)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Conakry' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-67.59583 10.24694)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maracay' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(98.66667 3.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Medan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.0679 33.6007)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rawalpindi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.56667 53.9)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Minsk' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(19.03991 47.49801)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Budapest' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(43.11889 36.335)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mosul' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(10.01534 53.57532)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hamburg' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-49.27306 -25.42778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Curitiba' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(21.01178 52.22977)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Warsaw' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(107.61861 -6.90389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bandung' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.85849 -26.26781)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Soweto' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(16.37208 48.20849)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vienna' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-6.83255 34.01325)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rabat' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-103.39182 20.66682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guadalajara' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(2.15899 41.38879)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Barcelona' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.18783 -25.74486)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pretoria' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.16117 36.20124)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Aleppo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.11936 25.60222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Patna' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.40289 23.25469)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bhopal' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-60.025 -3.10194)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manaus' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.06556 32.12278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xinyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-98.20193 19.04334)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Puebla' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.43879 10.52641)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kaduna' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.91601 11.56245)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Phnom Penh' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.29128 33.5102)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Damascus' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(51.67462 32.65246)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Isfahan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.85379 30.91204)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ludhiāna' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(31.05337 -17.82772)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Harare' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.183 34.6913)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kobe' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.16379 39.95233)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Philadelphia' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.9896 -6.2349)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bekasi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.31333 22.61626)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kaohsiung' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-106.48333 31.73333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ciudad Juárez' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.96625 40.78343)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Manhattan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-57.63591 -25.30066)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Asunción' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-34.88111 -8.05389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Recife' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(127.41972 36.32139)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Daejeon' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-1.62443 6.68848)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kumasi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(102.2386 6.13328)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kota Bharu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.75385 35.02107)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kyoto' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.68653 3.1412)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kuala Lumpur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.99155 35.83266)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Karaj' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-112.07404 33.44838)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Phoenix' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.3206 27.70169)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kathmandu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.7458 -2.91673)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Palembang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(71.47528 30.19556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Multān' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(105.84117 21.0245)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hanoi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.25272 49.98081)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kharkiv' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.01667 27.18333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Āgra' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-64.18105 -31.4135)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Córdoba' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(46.2919 38.08)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tabrīz' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(82.9346 55.0415)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Novosibirsk' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.91556 35.15472)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gwangju' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(29.08403 40.19266)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bursa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.20812 22.29941)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vadodara' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-48.50444 -1.45583)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Belém' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.92333 41.85583)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fushun' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-78.52495 -0.22985)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Quito' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(130.41806 33.60639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fukuoka-shi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.53613 -18.91368)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Antananarivo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.45361 34.68361)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Luoyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(68.37366 25.39242)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hyderabad' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-73.86641 40.84985)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'The Bronx' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-68.00765 10.16202)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Valencia' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.18831 32.16167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gujrānwāla' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-74.78132 10.96854)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Barranquilla' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.62709 28.15861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guankou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-117.00371 32.5027)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tijuana' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(27.47938 -11.66089)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lubumbashi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-51.23 -30.03306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Porto Alegre' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.63 -6.17806)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tangerang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-63.18117 -17.78629)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santa Cruz de la Sierra' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.46778 36.60056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Handan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.58219 0.31628)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kampala' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(60.6122 56.8519)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yekaterinburg' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(89.56439 22.80979)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Khulna' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(9.70428 4.04827)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Douala' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-98.49363 29.42412)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Antonio' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.67206 29.44768)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gorakhpur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.82563 21.42664)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mecca' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.4221 -5.14)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Makassar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-117.15726 32.71533)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Diego' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.71722 35.52056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kawasaki' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.71789 -6.28862)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'South Tangerang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(109.82222 40.65222)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baotou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.61417 24.46861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Medina' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(11.51667 3.86667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yaoundé' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-8 12.65)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bamako' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.79096 19.99727)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nashik' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(110.4203 -6.9932)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Semarang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(15.28318 -4.26613)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brazzaville' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.80696 18.62292)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pimpri' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.00205 56.32867)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nizhniy Novgorod' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.94503 31.95522)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Amman' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(124.43972 7.20417)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Budta' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(20.46513 44.80401)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Belgrade' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-56.18816 -34.90328)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Montevideo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(28.28713 -15.40669)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lusaka' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.13554 19.2437)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kalyān' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(72.96355 19.19704)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Thāne' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(11.57549 48.13743)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Munich' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(18.0649 59.33258)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Stockholm' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.48333 33.9)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ra’s Bayrūt' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(52.53113 29.61031)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shiraz' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.32889 37.00167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Adana' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(127.00889 37.29111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Suwon-si' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(9.18951 45.46427)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Milano' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-72.335 18.53917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Port-au-Prince' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.01483 19.40061)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ciudad Nezahualcoyotl' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(138.59863 -34.92866)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Adelaide' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.70636 28.98002)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Meerut' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(82.54826 19.23114)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nowrangapur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.31316 28.41124)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Farīdābād' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(71.57849 34.008)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Peshawar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(125.61278 7.07306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Davao' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(96.08359 21.97473)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mandalay' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.47773 15.64453)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Omdurman' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-70.69703 19.4517)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Santiago de los Caballeros' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.09481 29.37455)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yueyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(122.99 41.12361)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Anshan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(117.15707 34.18045)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tongshan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.43915 28.66535)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ghāziābād' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.81861 -6.4)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Depok' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-96.80667 32.78306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dallas' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.65657 35.90807)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Saitama' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.10978 19.49016)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gustavo A. Madero' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.08333 19.21667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dombivli' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.58322 -25.96553)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maputo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-98.75886 22.8694)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gustavo A. Madero' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.30611 26.06139)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fuzhou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(70.79322 22.29161)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rājkot' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-60.63932 -32.94682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rosario' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.71667 26.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guiyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-49.25389 -16.67861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Goiânia' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-46.53333 -23.46278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guarulhos' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(14.42076 50.08804)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Prague' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(83.01041 25.31668)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Varanasi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(12.56553 55.67594)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Copenhagen' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(23.32415 42.69751)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sofia' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.18746 32.87519)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tripoli' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.0134 4.77742)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Port Harcourt' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(132.45937 34.39627)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hiroshima-shi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(100.22072 26.86879)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lijiang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(55.17128 25.0657)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dubai' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.15 53.100007)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Samara' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.36859 54.99244)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Omsk' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(5.62575 6.33815)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Benin City' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-100.31847 25.67507)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Monterrey' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(124.475 7.16083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Malingao' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(49.89201 40.37767)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baku' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-101.671 21.13052)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'León' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(13.15712 11.84692)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maiduguri' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(49.12214 55.78874)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kazan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.51361 40.18111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yerevan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.87476 31.63661)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Amritsar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-1.53388 12.36566)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ouagadougou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(139.63333 35.88333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Yono' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.72328 47.23135)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Rostov-na-Donu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(81.83329 25.44894)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Allahābād' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.835 37.65639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Goyang-si' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.3825 37.05944)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gaziantep' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(83.20161 17.68009)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Visakhapatnam' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(140.8667 38.25759)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sendai' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(140.87195 38.26889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sendai-shi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(61.42915 55.15402)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chelyabinsk' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.29139 40.09361)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Datong' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.83368 41.69411)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tbilisi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.74221 31.64615)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changshu City' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.6839 24.1469)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Taichung' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(77.482 10.01531)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Teni' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.70261 34.33778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xianyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(55.96779 54.74306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ufa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(34.98333 48.45)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dnipropetrovsk' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(127.13778 37.43861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Seongnam-si' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-47.06083 -22.90556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Campinas' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(79.95006 23.16697)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jabalpur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(88.31857 22.57688)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hāora' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.99694 32.62639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Huainan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(37.80224 48.023)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Donetsk' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-6.24889 53.33306)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dublin' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-114.08529 51.05011)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Calgary' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(4.34878 50.85045)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Brussels' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.34226 19.87757)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Aurangabad' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.50183 48.71939)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Volgograd' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.45111 -22.75917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nova Iguaçu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.36581 23.5418)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jieyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.73262 46.47747)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Odessa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.40259 35.99502)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zhu Cheng City' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.85263 18.53017)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shivaji Nagar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(130.83333 33.83333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kitakyūshū' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.91044 17.67152)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Solāpur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(115.49028 38.85111)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Baoding' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-90.51327 14.64072)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guatemala City' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.765 41.28861)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Benxi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-103.38479 20.72356)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zapopan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-1.89983 52.48142)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Birmingham' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(56.25017 58.01046)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Perm' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.80298 34.08842)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Srinagar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.7227 11.11128)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zaria' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-86.2504 12.13282)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Managua' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(25.57007 -33.91799)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Port Elizabeth' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-4.9998 34.03715)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fès' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(6.95 50.93333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Köln' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(129.31667 35.53722)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ulsan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.7884 30.73629)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chandigarh' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.96612 11.00555)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Coimbatore' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(14.24641 40.85631)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Napoli' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-35.73528 -9.66583)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Maceió' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.51444 10.39972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cartagena' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.95401 31.77359)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Changzhou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.58572 24.49258)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sulţānah' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-121.89496 37.33939)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Jose' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-10.7969 6.30054)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Monrovia' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-76.79358 17.99702)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kingston' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.01062 36.19257)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Erbil' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(92.86717 56.01839)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Krasnoyarsk' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(96.12972 19.745)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nay Pyi Taw' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.00594 26.26841)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jodhpur' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(140.12333 35.60472)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chiba' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-44.30278 -2.52972)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'São Luís' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.11962 9.91735)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Madurai' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-6.79846 34.0531)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sale' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(116.79167 33.97444)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Huaibei' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-66.1568 -17.3895)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cochabamba' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-4.0159 5.41613)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Abobo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(74.59 42.87)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bishkek' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(44.18477 33.30563)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Abū Ghurayb' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.30742 34.7986)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kaifeng' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.8764 34.6401)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qom' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(91.7458 26.1844)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Guwahati' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.36667 5.10658)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Aba' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.30119 33.73847)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pingdingshan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.17337 26.22983)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Gwalior' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.96045 47.34088)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qiqihar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.45 3.03333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Klang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-68.82717 -32.89084)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mendoza' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.48464 37.87135)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Konya' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(23.58979 -6.13603)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mbuji-Mayi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(80.63049 16.51928)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Vijayawāda' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-17.39071 14.76457)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pikine' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(7.68682 45.07049)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Turin' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.63925 12.29791)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mysore' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.66682 27.99942)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Wenzhou' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(46.00861 51.54056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Saratov' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-87.20681 14.0818)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tegucigalpa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(126.78306 37.49889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bucheon-si' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.1843 51.67204)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Voronezh' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.33856 23.34777)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ranchi' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.23963 19.47851)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Naucalpan de Juárez' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.88324 47.90771)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ulaanbaatar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(104.78498 10.99081)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Takeo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(48.6842 31.31901)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ahvaz' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-71.535 -16.39889)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Arequipa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(100.35427 -0.94924)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Padang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.13378 15.34776)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hubli' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-7.99994 31.63416)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Marrakesh' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.53333 3.15)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kampung Baru Subang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-86.15804 39.76838)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Indianapolis' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-81.65565 30.33218)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jacksonville' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-43.31167 -22.78556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Duque de Caxias' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(8.89212 9.92849)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jos' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-0.37739 39.46975)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Valencia' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(4.54214 8.49664)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ilorin' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-77.11814 -12.05659)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Callao' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-68.15 -16.5)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'La Paz' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-75.69812 45.41117)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ottawa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-69.32278 10.07389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Barquisimeto' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-106.08889 28.63528)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Chihuahua' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-122.41942 37.77493)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Francisco' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.31667 22.81667)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nanning' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-13.22994 8.484)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Freetown' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(103.7578 1.4655)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Johor Bahru' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.21633 31.76904)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jerusalem' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(105.25803 -5.42544)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bandarlampung' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(106.78917 -6.59444)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bogor' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(15.97753 45.81313)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zagreb - Centar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(39.66359 -4.05466)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Mombasa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(123.89071 10.31672)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Cebu City' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(58.5922 23.61387)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Muscat' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(35.19031 47.82289)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zaporizhzhya' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(5.38107 43.29695)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Marseille' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.08796 32.07275)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Zarqa' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(32.86268 39.9179)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Çankaya' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-97.74306 30.26715)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Austin' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-82.99879 39.96118)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Columbus' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.47717 36.76639)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Boumerdas' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.57917 31.32556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Jalandhar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(76.94924 8.4855)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Thiruvananthapuram' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(135.46667 34.58333)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Sakai' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(114.10659 36.1386)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dengtalu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-65.2226 -26.82414)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'San Miguel de Tucumán' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.15867 11.65117)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Salem' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.69651 10.8155)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tiruchirappalli' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(36.72339 34.72682)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Homs' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(111.65222 40.81056)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hohhot' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(2.1098 13.51366)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Niamey' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.21333 22.99083)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Tainan' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(120.87111 30.01556)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Shangyu' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(19.46667 51.75)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Łódź' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(50.10326 26.43442)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Dammam' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(101.75739 36.62554)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Xining' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(47.0553 34.3838)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kahrīz' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(75.83907 25.18254)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kota' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-35.20944 -5.795)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Natal' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(85.83385 20.27241)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bhubaneshwar' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(119.58833 39.93167)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Qinhuangdao' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.61888 26.88946)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hengyang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.69556 36.90812)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Antalya' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(19.93658 50.06143)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kraków' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(78.07475 27.88334)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Alīgarh' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(108.22083 16.06778)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Da Nang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.39278 -29.61679)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Pietermaritzburg' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(1.21227 6.13748)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Lomé' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-79.02998 -8.11599)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Trujillo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(112.6304 -7.9797)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Malang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-62.64102 8.35122)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ciudad Guayana' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(79.42193 28.34702)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Bareilly' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(30.05885 -1.94995)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Kigali' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-42.80194 -5.08917)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Teresina' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(113.80151 35.19033)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Nangandao' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-46.565 -23.69389)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'São Bernardo do Campo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(130.30012 47.35118)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Hegang' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(24.10589 56.946)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Riga' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(4.88969 52.37403)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Amsterdam' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-97.32085 32.72541)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Fort Worth' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(3.93125 7.85257)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Oyo' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(67.00971 30.199)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Quetta' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-80.84313 35.22709)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Charlotte' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-54.64639 -20.44278)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Campo Grande' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(58.38333 37.95)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Ashgabat' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(-99.20329 19.35867)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Álvaro Obregón' order by population desc limit 1" should true + sql "SELECT ST_Intersects(ST_GeomFromText('POINT(73.47082 34.37002)' , 4326), ST_Buffer(the_geom::geography, 1000)) FROM global_cities_points_limited where name = 'Muzaffarābād' order by population desc limit 1" should true + + +} + + +#################################################### TESTS END HERE #################################################### diff --git a/geocoder/namedplace/test/functions/test.sh b/geocoder/namedplace/test/functions/test.sh new file mode 100644 index 0000000..bdfacd7 --- /dev/null +++ b/geocoder/namedplace/test/functions/test.sh @@ -0,0 +1,1959 @@ +#!/bin/sh + +#################################################### TESTS GO HERE #################################################### +function test_geocoding_functions_namedplace() { + # checks that the result is false and no geometry is returned for a non-recognised named place + sql "SELECT (geocode_namedplace(Array['Null island is not an island'])).success" should false + sql "SELECT (geocode_namedplace(Array['Null island is not an island'])).geom is null" should true + + # check that the returned geometry is a point + sql "SELECT ST_GeometryType((geocode_namedplace(Array['Elx'])).geom)" should ST_Point + + # big cities: more than 1 million inhabitants from populated places (some coordinates have been adjusted) + sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], 'NY', 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], null, 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true + + sql "SELECT ST_Intersects((geocode_namedplace(Array['Patna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(85.1280927552218, 25.6269049843829, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Karaj'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(50.9680589822987, 35.8023045612465, 4326)::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Minsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(27.5646812966582, 53.9019232950431, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toronto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.4219666529884, 43.7019257364084, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Recife'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-34.9175513696073, -8.07369946724924, 4326)::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Vegas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.221952004694, 36.2119436400243, 4326)::geography,10000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bursa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(29.0680520648935, 40.2019326537123, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montréal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.5852428167021, 45.501945064215, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dhaka'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(90.4066336081075, 23.7250055703128, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hangzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.168072817211, 30.2519198362895, 4326)::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sheffield'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.49999658345183, 53.3666766551778, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Córdoba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-64.1842404159484, -31.3980122114831, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Istanbul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.94966, 41.01384, 4326)::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Birmingham'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.92194264551705, 52.4769198363784, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rawalpindi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(73.0380813619443, 33.6019220742585, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Harbin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.648039044451, 45.7519298054271, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Suzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.618071189609, 31.302424190135, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Houston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-95.34327, 29.76328, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Shiraz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(52.53113, 29.61031, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Glasgow'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.25265309474497, 55.8763505818347, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Shantou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.71479, 23.36814, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Karachi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(67.0822, 24.9056, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Philadelphia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.1719418320079, 39.95233, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Buenos Aires'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-58.3994772323314, -34.6005557499074, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xiantao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.438096010543, 30.3723517617456, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanaa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(44.2046475239384, 15.3566791542636, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ufa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(56.0380854308868, 54.7919206501896, 4326) ::geography,10000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Maputo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(32.5872171039701, -25.953331628779, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baotou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(109.820073956493, 40.6541531126984, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guangzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.25, 23.11667, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sapporo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(141.338098452061, 43.0769251260542, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cape Town'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.433042299226, -33.9180651086287, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kiev'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(30.5146821104722, 50.4353131876072, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chongqing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.55278, 29.56278, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Monrovia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-10.7996604367759, 6.31458164716014, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ouagadougou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.52666961491644, 12.3722618365434, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Frankfurt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.53333, 49.68333, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rio de Janeiro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-43.2075, -22.90278, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Khulna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(89.5580549134426, 22.8419328570932, 4326) ::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jerusalem'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(35.2066259345986, 31.7784078155733, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montevideo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-56.18816, -34.90328, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ottawa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.7019611598095, 45.4186426553604, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Goiania'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-49.25389, -16.67861, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Haiphong'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.68345, 20.86481, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Raleigh'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-78.63861, 35.7721, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guiyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.718092755308, 26.5819888060014, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Providence'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.4169255559512, 41.8230481729243, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tashkent'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(69.21627, 41.26465, 4326) ::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Diego'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.15726, 32.71533, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pyongyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(125.752744854994, 39.0213845580043, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chifeng'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.948043927232, 42.271961340244, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dubai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(55.17128, 25.0657, 4326) ::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Maoming'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.9, 21.65, 4326) ::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barcelona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.18142446061915, 41.3852454385475, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Jose'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.89496, 37.33939, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gujranwala'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.21138, 30.49972, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Conakry'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.6821808861239, 9.53346870502179, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Long Beach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.18923, 33.76696, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanchang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.878050437637, 28.6819381468301, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lima'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-77.0520079534347, -12.0460668175256, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Incheon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.70515, 37.45646, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xiangtan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.900023151706, 27.8504305206357, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Budapest'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(19.0813748187597, 47.5019521849913, 4326) ::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xiangfan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.128098451944, 32.0219409951506, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Izmir'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(27.1498481518493, 38.4380955409497, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Amsterdam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.91469431740097, 52.3519145466644, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Bernardino'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.301980080874, 34.1223295856538, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Irvine'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.829950197198, 33.6804105825079, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Meerut'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.6980553202963, 29.0023578652559, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jamshedpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(86.1955728170751, 22.7894812783169, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yokohama'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(139.6425, 35.44778, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kyoto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(135.74805206532, 35.0319381468556, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Paz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-68.1519310491022, -16.4960277550434, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Natal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-35.2419501733195, -5.7780773155473, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Qingdao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.328063051587, 36.0919251260264, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gwangju'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.908488263201, 35.1729114541478, 4326) ::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Damascus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(36.2980500304171, 33.5019798542061, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Banghazi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(20.0647773252741, 32.1186792764011, 4326) ::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.99805328552031, 53.5519704955624, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Port Harcourt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.0134, 4.77742, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Semarang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.4203, -6.9932, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhangjiakou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.928030906383, 40.8319458779985, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manaus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-60.0019633977025, -3.09808586045858, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kaduna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.43805450621312, 10.5219613401167, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chittagong'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(91.7980215475663, 22.3319381468046, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mumbai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(72.88261, 19.07283, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kansas City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-94.6060400775458, 39.1090343683975, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gaziantep'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(37.3830484028173, 37.0769296019417, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibadan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.92803619565222, 7.38197212298183, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zürich'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.54806427184257, 47.3819336709934, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brussels'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.33137074969045, 50.8352629353303, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lusaka'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.2813817361143, -15.4146984093359, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dublin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.25085154039107, 53.3350069945849, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Phoenix'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-112.07404, 33.44838, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciudad Juárez'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.48333, 31.73333, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xuzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.62227, 25.2692, 4326) ::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Düsseldorf'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.7799889715942, 51.2203735545832, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brisbane'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(153.033146873332, -27.4530850467537, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Miami'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.22605193945, 25.7895565550215, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.298100079577, 26.081941808929, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pune'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(73.8480577616872, 18.531963374654, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kharkiv'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(36.248078920391, 50.0019287881913, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Davao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(125.61278, 7.07306, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Florianopolis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-48.54917, -27.59667, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Port-au-Prince'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-72.3379804469055, 18.5429704547324, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ikare'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.7599995510173, 7.53043052055426, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kampala'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(32.581377667121, 0.318604813383331, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manila'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.980271303542, 14.6061048134405, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jiamusi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(130.31633, 46.79927, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-70.64827, -33.45694, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chicago'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.65005, 41.85003, 4326) ::geography,5000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Varanasi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(82.9980935690154, 25.3319359088608, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ho Chi Minh City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.62965, 10.82302, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lagos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.38958521259843, 6.44520751209319, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palembang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(104.7458, -2.91673, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dakar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-17.44406, 14.6937, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Seattle'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.33207, 47.60621, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhengzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.663146873175, 34.7569420124143, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Edmonton'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.501927794075, 53.5519704955624, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hanoi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(105.848068341242, 21.035273107737, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huainan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.978034975401, 32.631929601924, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jinan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.993072817198, 36.6769281777864, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanning'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.318098451929, 22.8219340777961, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benoni'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.32078, -26.18848, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guayaquil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.9219878118445, -2.21808789496015, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sevilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.98000736634742, 37.4050152781609, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bekasi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.97232295637, -6.21725746778185, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Can Tho'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(105.770019082667, 10.0499924915931, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cincinnati'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-84.4588685084773, 39.1638306436168, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nagpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(79.0880479960831, 21.1719055947166, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Buffalo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-78.8819479355382, 42.8819241088008, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hefei'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.278068341288, 31.8519772093429, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Porto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.62194712145526, 41.151952184966, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Srinagar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(74.8130634583055, 34.1019173948987, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marseille'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.37306427182989, 43.2919249226045, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Medan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(98.6480943828801, 3.58191983618275, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Casablanca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.61831329169871, 33.6019220742585, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Urumqi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(87.5730597962472, 43.8069580850418, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Essen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.01661535505889, 51.4499977814723, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.00597, 40.71427, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dongguan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.742776341387, 23.050834758613, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almaty'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(76.92848, 43.25654, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhangzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.670016234408, 24.5203753855312, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jaipur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.8080414856534, 26.9230790973437, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bridgeport'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.2019070419611, 41.1819245156953, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paris'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.33138946713035, 48.8686387898146, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xian'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.92861, 34.25833, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Havana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.3661280299533, 23.1339046995422, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Salvador'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-89.18718, 13.68935, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kinshasa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.3130260231717, -4.32777824327598, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tunis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.179678099212, 36.8027781362314, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Porto Alegre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-51.23, -30.03306, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kolkata'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(88.36304, 22.56263, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Austin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.7447242214211, 30.2688955442974, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Shanghai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.43455881982, 31.2183983112283, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Shangqiu'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.648090313938, 34.4523611204859, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moscow'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(37.6135769672714, 55.7541099812481, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Shangrao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.969997923862, 28.4703926788413, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Perth'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.838052879043, -31.9530687707302, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Douala'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.70804514749829, 4.06235562720019, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lahore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(74.3480789205434, 31.5619173948884, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Taian'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.29778, 36.75639, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Haora'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(88.329946654212, 22.5803904408619, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ahmedabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(72.5780577616821, 23.0319987750627, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Novosibirsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(82.9580960104215, 55.0319060017533, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bhilai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(81.4313874413872, 21.218612558613, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Taichung'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.681667032, 24.1520774526, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuxi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.298039044425, 31.5819420124014, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Asansol'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(87.27475, 24.22966, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vijayawada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(80.6280573548131, 16.521905187797, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barranquilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.8019127385819, 10.9619344846499, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leshan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(103.76386, 29.56227, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Atlanta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-84.38798, 33.749, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['West Palm Beach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.05337, 26.71534, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Delhi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.2280581686018, 28.6719387571815, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanjing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.778028464992, 32.0519650023123, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yaounde'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5147048968544, 3.86864652075411, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Belgrade'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(20.4660448220205, 44.8205913044467, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ningbo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.548091941565, 29.8819165810796, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lyon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.82808461687983, 45.7719544229401, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['São Luís'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-44.30278, -2.52972, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Belo Horizonte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-43.9169503768048, -19.9130801639112, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Antananarivo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(47.5146780415298, -18.9146914920321, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Johannesburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.04363, -26.20227, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Da Nang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.22083, 16.06778, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baghdad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(44.3919229145641, 33.3405943561586, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mianyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(104.768030906342, 31.4719228880521, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dalian'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.627884979006, 38.9247842518157, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sofia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(23.3147081521101, 42.6852952839305, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dnipropetrovsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(34.98333, 48.45, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexico City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.1329340602938, 19.4443883014155, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-70.6689867131748, -33.4480679569341, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fortaleza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-38.54306, -3.71722, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Auckland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(174.763034975632, -36.8480671431456, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kumasi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.63196034571121, 6.69193672258848, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Monterrey'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.33193064233, 25.6719409951253, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xinyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.068031720182, 32.1323218545261, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yulin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.148064272249, 22.631919836259, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rabat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.83640815612614, 34.0253073110728, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kanpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(80.30899, 28.7404, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rangoon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(96.1647317526618, 16.7852999631888, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xianyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.712776341387, 34.347501458613, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Changde'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(111.678100079547, 29.0319426227428, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Indianapolis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.1719939153852, 39.7519342813145, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Detroit'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.0820016464926, 42.3319060017023, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bucharest'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(26.0980007953504, 44.4353176634946, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mandalay'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(96.0830829896408, 21.9719342812433, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Minneapolis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-93.2537321966635, 44.9819251260619, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coimbatore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(76.9480752584443, 11.0019062050276, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aurangabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.34226, 19.87757, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Warsaw'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(20.9980536924653, 52.2519464883955, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Adana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(35.3180581684341, 36.9969344847541, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tel Aviv'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(34.78057, 32.08088, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Angeles'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.24368, 34.05223, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yantai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.44081, 37.47649, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pretoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(28.18783, -25.74486, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jinhua'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.649998737671, 29.1200429473984, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ranchi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(85.3280805481915, 23.3719521848948, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valencia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-68.00765, 10.16202, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Maracaibo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.64056, 10.63167, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Adelaide'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(138.598058982649, -34.9330419152734, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calgary'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-114.08529, 51.05011, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rome'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.481312562874, 41.8979014850989, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yiyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.328086244914, 28.6023564411006, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Taiyuan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.54311187968, 37.8769582884684, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Handan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.478032533985, 36.5819210570179, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cagayan de Oro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(124.64722, 8.48222, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tainan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.200042683, 23.0000030711, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dallas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.80667, 32.78306, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Asunción'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-57.63591, -25.30066, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Allahabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(81.8380610169274, 25.4569411985749, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mosul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(43.1430585753664, 36.3469483193867, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Algiers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.04860667090924, 36.7650106566281, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yerevan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(44.5116055317521, 40.1830965941419, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Medellín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.56359, 6.25184, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bucaramanga'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.1278288762705, 7.13203905820228, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Phnom Penh'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(104.914688621186, 11.5519759885584, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jakarta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(106.84513, -6.21462, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.2019831325557, 19.0519057981587, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kobe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(135.169981647889, 34.6799878123297, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Quito'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-78.52495, -0.22985, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tabriz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(46.2993000304572, 38.0882373818939, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Beirut'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(35.5077623513777, 33.8739209756269, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Quanzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.578040672022, 24.9019621539765, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Doha'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(51.5329678942993, 25.2865560089066, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Amman'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(35.9313540668741, 31.9519711058274, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jabalpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(79.9531114726491, 23.1770028440736, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tampa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.4605667099667, 27.9489337929859, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Berlin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.3996027647005, 52.5237645222511, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Weifang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.09816396304, 36.722351761771, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.51809194111325, 12.0019226845236, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Panamá'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.51973, 8.9936, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuhan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.268071189583, 30.5819772093378, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Milwaukee'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.9219129420849, 43.0546009073042, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Changchun'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(125.338041485851, 43.8669544229325, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Haifa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(34.9780789203857, 32.8223572549196, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sydney'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(151.20732, -33.86785, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jeddah'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(39.19797, 21.54238, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nizhny Novgorod'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(43.9981485005, 56.334953080209, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jilin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.548096824398, 43.8519165811354, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Abidjan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.01266, 5.30966, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stuttgart'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.19999629582275, 48.7799798778156, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Prague'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.42076, 50.08804, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Taipei'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.53185, 25.04776, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['København'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.5615398887033, 55.6805100490259, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Daegu'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(128.605025535344, 35.8687346149577, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baoding'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.478074851697, 38.8723755654906, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sholapur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.8980618307057, 17.6723517616949, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bangalore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.59369, 12.97194, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cilacap'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(109.015402383462, -7.7188195608868, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manchester'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.24993296127349, 53.5023611205623, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mashhad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(59.56796, 36.31559, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.49363, 29.42412, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Daqing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(124.998062237803, 46.5819049844668, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aden'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(45.0094901110702, 12.7797225127629, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['The Hague'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.26996130231345, 52.0800368439749, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhuhai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.565831941387, 22.2788902586129, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sendai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(140.8667, 38.25759, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.05977, 42.35843, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Helsinki'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(24.9321804828456, 60.177509232568, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aleppo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(37.16117, 36.20124, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhuzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.148087872522, 27.8319383502771, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Busan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(129.04028, 35.10278, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Makkah'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(39.8180935688427, 21.4319672402254, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bhopal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.4080471822743, 23.2519336708967, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Orlando'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.3819762151707, 28.5119226845899, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Memphis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.04898, 35.14953, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xiamen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.08187, 24.47979, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Washington, D.C.'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-77.0113644394371, 38.901495235087, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Quezon City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(121.029966185593, 14.6504351999447, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bangkok'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(100.514698793695, 13.751945064088, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Singapore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(103.853874819099, 1.29497932510594, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baltimore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.6219308456855, 39.3019359089167, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oakland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.2708, 37.80437, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vishakhapatnam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(83.20161, 17.68009, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Worth'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.32085, 32.72541, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-46.3348885150959, -23.9517780748547, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Changsha'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.968047182416, 28.2019157672708, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Datong'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(113.298052879032, 40.0819658161465, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tehran'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(56.29395, 35.31737, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bamako'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.00198496324969, 12.6519605263232, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Luoyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.468129376425, 34.6819336709425, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Seoul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(126.997785138202, 37.5682949583889, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cleveland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.69541, 41.4995, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.681935932133, 45.521969681728, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dar es Salaam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(39.2663959776946, -6.79806673612438, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Warangal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(79.5799897856874, 18.0099975778879, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Munich'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5730475889121, 48.1318878946292, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zibo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.048047182437, 36.8019334675005, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tangshan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.19243113426, 39.6262830361969, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lanzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(103.83987, 36.05701, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tianshui'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(105.74238, 34.57952, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ludhiana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(75.8703115865651, 30.9297079222298, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tijuana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.00371, 32.5027, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Luanda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.2324811826685, -8.83634025501265, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Accra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.218661598960693, 5.55198046444593, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hechi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(108.04985, 24.69834, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chennai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(80.2780528789003, 13.0919336708563, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Faridabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(77.3147208413872, 28.4352791586129, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Florence'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.2500003648413, 43.7800008331993, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Surabaya'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.748887433067, -7.24728996203748, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ankang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(109.020001585936, 32.6799806915534, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santo Domingo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-69.98857, 18.50012, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caracas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-66.87919, 10.48801, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Maracay'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-67.5977529892041, 10.248825557238, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zhanjiang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.34271, 21.28145, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.39182, 20.66682, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zaozhuang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.56807647931, 34.8819473021284, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tianjin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(117.1980732241, 39.1319721231089, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stockholm'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.0953888741809, 59.3527058128658, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bandung'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(107.61861, -6.90389, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Suzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.59538, 31.30408, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Denver'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-104.985961810968, 39.7411339069655, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pittsburgh'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.0019312526002, 40.4319444538431, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hohhot'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(111.658049623818, 40.8219206501338, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kabul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(69.181314190705, 34.5186361449003, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Norfolk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.2800057390244, 36.8499587189139, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['London'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.118667702475932, 51.5019405883275, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lisbon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-9.14681216410213, 38.7246687364878, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kuwait'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(47.9763552876253, 29.3716634886296, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kawasaki'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(139.705001992959, 35.5299876088826, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baku'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(49.89201, 40.37767, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Lauderdale'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.141785524196, 26.1360648793528, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wenzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.66682, 27.99942, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Madurai'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(78.1180813619646, 9.92197212299208, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Linyi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(118.328030092594, 35.0819350950979, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Melbourne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(144.973070375904, -37.8180854536963, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Heze'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(115.448102520968, 35.2319259398251, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tripoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.1800117580782, 32.8925000193537, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['George Town'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(100.32936786728, 5.41361315558424, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Francisco'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.417168773552, 37.7691956296874, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Qinhuangdao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.618080548329, 39.9323108682291, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ulsan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(129.315008038602, 35.548676631558, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Xining'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(101.768058982502, 36.621944453828, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Osaka'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(137.26667, 35.95, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nairobi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(36.8147110004714, -1.28140088323778, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Beijing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.386339825659, 39.930838089909, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vancouver'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-123.123590076394, 49.2753624427117, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cologne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.9418, 45.57862, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tokyo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(139.69171, 35.6895, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kazan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(49.12214, 55.78874, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['São Paulo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-46.63611, -23.5475, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sacramento'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.471983946451, 38.5769672402941, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Columbus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.991955463224, 39.9819202432293, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bogotá'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.08175, 4.60971, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chengdu'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(104.068073630949, 30.6719458779578, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cali'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.5225, 3.43722, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Amritsar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(74.8680471822641, 31.6419383502926, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lubumbashi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(27.4780715961371, -11.6780789431752, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dhanbad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(86.4180398580916, 23.8023393512376, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hims'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(36.7180760720856, 34.7319047809689, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ankara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(32.8624457823566, 39.9291844440755, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Madrid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.68529754461252, 40.4019721231138, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Katowice'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(19.0200170478151, 50.2603804718972, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cairo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(31.2480223611261, 30.0519062051037, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yekaterinburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(60.5980138163217, 56.8519757852891, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chelyabinsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(61.4367223124188, 55.1569371296833, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rotterdam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.47802846453459, 51.9219149535637, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanyang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(112.528074037884, 33.0023462685923, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Qiqihar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(123.988046368658, 47.3469228881156, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Multan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(71.453061830688, 30.2019228880472, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint Petersburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(30.31413, 59.93863, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cochabamba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-66.16997684901, -17.4100109671756, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Athens'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(23.7313752256794, 37.9852720905522, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Haikou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(110.320025593102, 20.0500022572581, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Samara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(50.1493492654986, 53.1969534057173, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brazzaville'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.2827436338487, -4.25723991319751, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Virginia Beach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.9802645859174, 36.8551601927613, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kuala Lumpur'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(101.68653, 3.1412, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Medina'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(39.61417, 24.46861, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alexandria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(29.9480500303917, 31.2019652057594, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Faisalabad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(73.1080512512675, 31.4119265501612, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mbuji-Mayi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(23.5980500303664, -6.1480805707572, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Newcastle'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(29.9318, -27.75796, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.098051251456, 30.8723212441696, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lille'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.07806223731552, 50.6519149535585, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dushanbe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(68.7738793527017, 38.5600352163166, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Daejeon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(127.423082175964, 36.3374915322773, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leeds'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.54785, 53.79648, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vienna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.3646930967437, 48.2019611368168, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Harare'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(31.0427635720628, -17.8158438357778, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Duisburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.75001664086505, 51.4299731639591, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucknow'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(80.9130528789029, 26.8569849404424, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mannheim'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47001501326769, 49.5003751821806, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitória'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-40.33778, -20.31944, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Changzhou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(119.968033347809, 31.7819298053712, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San José'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-84.08333, 9.93333, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Omsk'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(73.3980077128572, 54.9919342813753, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benin City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.61806223732571, 6.34242317278233, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jining'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(116.58139, 35.405, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rosario'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-60.6682534774577, -32.9491836795884, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Curitiba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-49.27306, -25.42778, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Neijiang'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(105.048065492932, 29.5823224648676, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Turin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.66801462991208, 45.0723330443565, 4326) ::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hong Kong'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(114.15769, 22.28552, 4326) ::geography,3000)::geometry, 4326))" should true + + +} + +function test_geocoding_functions_namedplace_germany() { + # Germany tests - 2km of tolerance for the city point without country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kassel'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.5, 51.31667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bielefeld'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.53333, 52.03333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Erfurt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.03283, 50.9787, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Frankfurt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.53333, 49.68333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Berlin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.41053, 52.52437, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Osnabrück'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.0498, 52.27264, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Freiburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.85222, 47.9959, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Munich'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.57549, 48.13743, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bochum'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.21648, 51.48165, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Regensburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11923, 49.03451, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salzgitter'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.33144, 52.15256, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saarbrücken'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98165, 49.2354, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dortmund'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.466, 51.51494, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Heilbronn'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22054, 49.13995, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Remscheid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.1925, 51.17983, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Düsseldorf'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.77616, 51.22172, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gelsenkirchen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.12283, 51.5075, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ulm'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.99155, 48.39841, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leipzig'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.37129, 51.33962, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trier'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.63935, 49.75565, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamm'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.82089, 51.68033, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Heidelberg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69079, 49.40768, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Magdeburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.62916, 52.12773, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Herne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.22572, 51.5388, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergisch Gladbach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.13298, 50.9856, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lübeck'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.68729, 53.86893, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Recklinghausen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.19738, 51.61379, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Koblenz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57883, 50.35357, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wolfsburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.7815, 52.42452, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingolstadt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.42372, 48.76508, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kiel'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.13489, 54.32133, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Braunschweig'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.52673, 52.26594, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stuttgart'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.17702, 48.78232, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Karlsruhe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.40444, 49.00937, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Darmstadt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.65027, 49.87167, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Essen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.01228, 51.45657, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mönchengladbach'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.44172, 51.18539, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Augsburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.89851, 48.37154, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bottrop'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.9285, 51.52392, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fürth'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98856, 49.47593, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.6326, 51.45342, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hagen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.47168, 51.36081, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremerhaven'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.57673, 53.55021, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aachen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.08342, 50.77664, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wiesbaden'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.24932, 50.08258, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oberhausen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88074, 51.47311, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.80777, 53.07516, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mannheim'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47955, 49.49671, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paderborn'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.75439, 51.71905, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Duisburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.76516, 51.43247, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Krefeld'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.58615, 51.33921, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Siegen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.02431, 50.87481, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chemnitz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.92922, 50.8357, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Münster'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.62571, 51.96236, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dresden'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.73832, 51.05089, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.01534, 53.57532, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mainz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.2791, 49.98419, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Neuss'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.68504, 51.19807, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reutlingen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.20427, 48.49144, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Würzburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95121, 49.79391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leverkusen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98432, 51.0303, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rostock'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.14049, 54.0887, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Solingen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.0845, 51.17343, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pforzheim'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69892, 48.88436, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bonn'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.09549, 50.73438, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oldenburg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.21467, 53.14118, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuppertal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.16755, 51.27027, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Potsdam'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.06566, 52.39886, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nürnberg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.07752, 49.45421, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Köln'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.95, 50.93333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mülheim an der Ruhr'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88333, 51.43333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hannover'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.73322, 52.37052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ludwigshafen am Rhein'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.44641, 49.48121, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cottbus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.32888, 51.75769, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Erlangen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.00783, 49.59099, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hildesheim'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95112, 52.15077, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5899, 50.92878, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Göttingen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.93228, 51.53443, 4326)::geography,3000)::geometry, 4326))" should true + + # Germany tests - 2km of tolerance for the city point with country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kassel'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.5, 51.31667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bielefeld'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.53333, 52.03333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Erfurt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.03283, 50.9787, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Frankfurt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.53333, 49.68333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Berlin'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.41053, 52.52437, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Osnabrück'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.0498, 52.27264, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Freiburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.85222, 47.9959, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Munich'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.57549, 48.13743, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bochum'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.21648, 51.48165, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Regensburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11923, 49.03451, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salzgitter'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.33144, 52.15256, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saarbrücken'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98165, 49.2354, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dortmund'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.466, 51.51494, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Heilbronn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22054, 49.13995, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Remscheid'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.1925, 51.17983, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Düsseldorf'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.77616, 51.22172, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gelsenkirchen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.12283, 51.5075, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Halle'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.36083, 52.06007, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ulm'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.99155, 48.39841, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leipzig'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.37129, 51.33962, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trier'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.63935, 49.75565, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamm'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.82089, 51.68033, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Heidelberg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69079, 49.40768, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Magdeburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.62916, 52.12773, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Herne'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.22572, 51.5388, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergisch Gladbach'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.13298, 50.9856, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lübeck'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.68729, 53.86893, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Recklinghausen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.19738, 51.61379, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Koblenz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57883, 50.35357, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wolfsburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.7815, 52.42452, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingolstadt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.42372, 48.76508, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kiel'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.13489, 54.32133, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Braunschweig'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.52673, 52.26594, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stuttgart'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.17702, 48.78232, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Karlsruhe'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.40444, 49.00937, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Darmstadt'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.65027, 49.87167, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Essen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.01228, 51.45657, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mönchengladbach'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.44172, 51.18539, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Augsburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.89851, 48.37154, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bottrop'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.9285, 51.52392, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fürth'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98856, 49.47593, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moers'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.6326, 51.45342, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hagen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.47168, 51.36081, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremerhaven'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.57673, 53.55021, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aachen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.08342, 50.77664, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wiesbaden'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.24932, 50.08258, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oberhausen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88074, 51.47311, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bremen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.80777, 53.07516, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mannheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47955, 49.49671, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paderborn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.75439, 51.71905, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Duisburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.76516, 51.43247, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Krefeld'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.58615, 51.33921, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Siegen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.02431, 50.87481, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chemnitz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.92922, 50.8357, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Münster'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.62571, 51.96236, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dresden'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.73832, 51.05089, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hamburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.01534, 53.57532, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mainz'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.2791, 49.98419, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Neuss'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.68504, 51.19807, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reutlingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.20427, 48.49144, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Würzburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95121, 49.79391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leverkusen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.98432, 51.0303, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rostock'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.14049, 54.0887, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Solingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.0845, 51.17343, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pforzheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.69892, 48.88436, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bonn'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.09549, 50.73438, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oldenburg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.21467, 53.14118, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wuppertal'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.16755, 51.27027, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Potsdam'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.06566, 52.39886, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nuremberg'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.07752, 49.45421, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cologne'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.95, 50.93333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mülheim an der Ruhr'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.88333, 51.43333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hanover'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.73322, 52.37052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ludwigshafen am Rhein'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.44641, 49.48121, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cottbus'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.32888, 51.75769, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Erlangen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.00783, 49.59099, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hildesheim'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.95112, 52.15077, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jena'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5899, 50.92878, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Göttingen'], 'DEU')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.93228, 51.53443, 4326)::geography,3000)::geometry, 4326))" should true +} + +function test_geocoding_functions_namedplace_italy() { + + # Italy tests - 2km of tolerance for the city point without country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pescara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20283, 42.4584, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acerra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.37261, 40.94744, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acireale'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.16325, 37.62606, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Afragola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.31323, 40.9242, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Agrigento'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.59351, 37.32744, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alessandria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.61007, 44.90924, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Altamura'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.54952, 40.82664, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ancona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.50337, 43.5942, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Andria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.29797, 41.23117, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Anzio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.61883, 41.48493, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aprilia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.65729, 41.58808, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arezzo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.86867, 43.44708, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ascoli Piceno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.60658, 42.85185, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Asti'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.20751, 44.90162, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Avellino'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79652, 40.92033, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aversa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20745, 40.97259, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bagheria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.51237, 38.07892, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bari'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.8554, 41.11148, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barletta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.28165, 41.31429, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Battipaglia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.9876, 40.6045, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Siena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.3259, 43.32215, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benevento'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.78101, 41.1256, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergamo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.66721, 45.69601, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bisceglie'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.49492, 41.24106, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bitonto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.69086, 41.11006, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bologna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33875, 44.49381, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bolzano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33982, 46.49067, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brescia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.21472, 45.53558, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brindisi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.93607, 40.63215, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Busto Arsizio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.84914, 45.61128, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caltanissetta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.05163, 37.48997, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Campobasso'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.66737, 41.55947, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carpi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.39472, 45.1356, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carrara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.06049, 44.05405, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Casalnuovo di Napoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34993, 40.90834, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caserta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34002, 41.07619, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cava de'' Tirreni'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70564, 40.70091, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['L’Aquila'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.39954, 42.35055, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Casoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.29363, 40.90906, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellammare di Stabia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.48685, 40.70211, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catania'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.07041, 37.49223, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catanzaro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.60086, 38.88247, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cerignola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.8998, 41.26383, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cesena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.24315, 44.1391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chieti'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.16163, 42.35296, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chioggia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.27774, 45.21857, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cinisello Balsamo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22104, 45.55646, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Civitavecchia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79674, 42.09325, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Collegno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57832, 45.07919, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Como'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.08065, 45.80079, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cosenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.25201, 39.30422, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cremona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.02297, 45.14047, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Crotone'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.10997, 39.0823, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuneo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.54828, 44.39071, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ercolano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.36382, 40.8138, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Faenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.88334, 44.2857, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.01665, 43.84052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.60868, 44.84346, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fiumicino'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.68488, 45.89938, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Florence'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.24626, 43.77925, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Foggia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55188, 41.45845, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Foligno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.70664, 42.95324, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Forlì'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.05245, 44.22054, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gallarate'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.79164, 45.66019, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.23704, 37.0757, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Genoa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91519, 44.4264, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Giugliano in Campania'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.19557, 40.93188, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Grosseto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.10955, 42.76871, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guidonia Montecelio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.72238, 41.99362, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Imola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.7132, 44.35916, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lamezia Terme'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.3092, 38.96589, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Spezia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.83632, 44.11096, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lecce'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.17244, 40.35481, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Legnano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91355, 45.5947, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Livorno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32615, 43.54427, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.47234, 43.8497, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manfredonia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.91038, 41.62746, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marano di Napoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.17476, 40.89601, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marsala'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.4983, 37.86736, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Massa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.11869, 44.02079, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Matera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59723, 40.66983, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazara del Vallo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.59304, 37.65418, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Messina'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55256, 38.19394, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Modena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92539, 44.64783, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Modica'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.76976, 36.8499, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Molfetta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59503, 41.19695, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncalieri'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.69202, 45.0031, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Monza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.27246, 45.58005, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Novara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.62328, 45.44834, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Olbia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.50395, 40.92334, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palermo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.33561, 38.13205, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Parma'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32618, 44.79935, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pavia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.15917, 45.19205, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Perugia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.38878, 43.1122, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pesaro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.895, 43.90121, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Piacenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.70462, 45.04202, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pisa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.4036, 43.70853, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pistoia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92365, 43.93064, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pomezia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.50015, 41.66369, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pordenone'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.66051, 45.95689, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portici'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.33716, 40.81563, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Potenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.80794, 40.64175, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozzuoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.15321, 40.82767, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Prato'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.08278, 43.87309, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Quartu Sant''Elena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.25004, 39.22935, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ragusa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70689, 36.89639, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ravenna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.20121, 44.41344, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Calabria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.66129, 38.11047, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rho'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.05182, 45.52812, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rimini'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.56528, 44.05755, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rome'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.51133, 41.89193, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rovigo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79109, 45.07387, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salerno'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79328, 40.67545, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Severo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.38148, 41.68564, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sassari'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.55037, 40.72787, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Savona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47715, 44.30905, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Scafati'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52919, 40.75766, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Scandicci'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.18794, 43.75423, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sesto San Giovanni'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.23401, 45.53449, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Taranto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.25478, 40.41639, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teramo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.69901, 42.66123, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Terni'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.63667, 42.56184, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tivoli'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.80317, 41.95781, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torre del Greco'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.39782, 40.77939, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trani'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.41011, 41.27733, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trapani'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.54127, 38.01391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trento'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.12108, 46.06787, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Treviso'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.23614, 45.66908, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trieste'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.7903, 45.64325, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Turin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.68682, 45.07049, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Udine'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.24458, 46.0637, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Varese'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.82223, 45.81934, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Velletri'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.78103, 41.66784, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Venice'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.33265, 45.43713, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Verona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98444, 45.4299, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viareggio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.25581, 43.87145, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vicenza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5475, 45.54672, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigevano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.85437, 45.31407, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viterbo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11141, 42.42322, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vittoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52788, 36.95151, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Emilia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.63125, 44.69825, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanremo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.7772, 43.81725, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cagliari'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.11917, 39.23054, 4326)::geography,3000)::geometry, 4326))" should true + + # Italy tests - 2km of tolerance for the city point with country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pescara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20283, 42.4584, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acerra'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.37261, 40.94744, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acireale'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.16325, 37.62606, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Afragola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.31323, 40.9242, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Agrigento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.59351, 37.32744, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alessandria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.61007, 44.90924, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Altamura'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.54952, 40.82664, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ancona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.50337, 43.5942, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Andria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.29797, 41.23117, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Anzio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.61883, 41.48493, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aprilia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.65729, 41.58808, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arezzo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.86867, 43.44708, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ascoli Piceno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.60658, 42.85185, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Asti'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.20751, 44.90162, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Avellino'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79652, 40.92033, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aversa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.20745, 40.97259, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bagheria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.51237, 38.07892, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.8554, 41.11148, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barletta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.28165, 41.31429, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Battipaglia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.9876, 40.6045, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Siena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.3259, 43.32215, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benevento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.78101, 41.1256, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bergamo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.66721, 45.69601, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bisceglie'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.49492, 41.24106, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bitonto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.69086, 41.11006, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bologna'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33875, 44.49381, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bolzano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.33982, 46.49067, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brescia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.21472, 45.53558, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brindisi'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.93607, 40.63215, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Busto Arsizio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.84914, 45.61128, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caltanissetta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.05163, 37.48997, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Campobasso'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.66737, 41.55947, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carpi'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.39472, 45.1356, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carrara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.06049, 44.05405, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Casalnuovo di Napoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34993, 40.90834, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caserta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.34002, 41.07619, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cava de'' Tirreni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70564, 40.70091, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['L’Aquila'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.39954, 42.35055, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Casoria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.29363, 40.90906, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellammare di Stabia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.48685, 40.70211, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catania'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.07041, 37.49223, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catanzaro'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.60086, 38.88247, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cerignola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.8998, 41.26383, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cesena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.24315, 44.1391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chieti'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.16163, 42.35296, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chioggia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.27774, 45.21857, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cinisello Balsamo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.22104, 45.55646, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Civitavecchia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79674, 42.09325, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Collegno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.57832, 45.07919, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Como'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.08065, 45.80079, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cosenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.25201, 39.30422, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cremona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.02297, 45.14047, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Crotone'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.10997, 39.0823, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuneo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.54828, 44.39071, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ercolano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.36382, 40.8138, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Faenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.88334, 44.2857, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.01665, 43.84052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.60868, 44.84346, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fiumicino'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.68488, 45.89938, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Florence'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.24626, 43.77925, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Foggia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55188, 41.45845, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Foligno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.70664, 42.95324, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Forlì'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.05245, 44.22054, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gallarate'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.79164, 45.66019, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gela'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.23704, 37.0757, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Genoa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91519, 44.4264, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Giugliano in Campania'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.19557, 40.93188, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Grosseto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.10955, 42.76871, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guidonia Montecelio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.72238, 41.99362, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Imola'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.7132, 44.35916, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lamezia Terme'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.3092, 38.96589, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Spezia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.83632, 44.11096, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Latina'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.9043, 41.46614, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lecce'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(18.17244, 40.35481, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Legnano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.91355, 45.5947, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Livorno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32615, 43.54427, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucca'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.47234, 43.8497, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manfredonia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.91038, 41.62746, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marano di Napoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.17476, 40.89601, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marsala'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.4983, 37.86736, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Massa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.11869, 44.02079, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Matera'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59723, 40.66983, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazara del Vallo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.59304, 37.65418, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Messina'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.55256, 38.19394, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Milan'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.17278, 45.59282, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Modena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92539, 44.64783, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Modica'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.76976, 36.8499, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Molfetta'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.59503, 41.19695, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncalieri'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.69202, 45.0031, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Monza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.27246, 45.58005, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Novara'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.62328, 45.44834, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Olbia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.50395, 40.92334, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palermo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.33561, 38.13205, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Parma'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.32618, 44.79935, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pavia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.15917, 45.19205, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Perugia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.38878, 43.1122, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pesaro'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.895, 43.90121, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Piacenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.70462, 45.04202, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pisa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.4036, 43.70853, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pistoia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.92365, 43.93064, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pomezia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.50015, 41.66369, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pordenone'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.66051, 45.95689, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portici'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.33716, 40.81563, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Potenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.80794, 40.64175, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozzuoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.15321, 40.82767, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Prato'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.08278, 43.87309, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Quartu Sant''Elena'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.25004, 39.22935, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ragusa'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.70689, 36.89639, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ravenna'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.20121, 44.41344, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Calabria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.66129, 38.11047, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rho'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.05182, 45.52812, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rimini'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.56528, 44.05755, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rome'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.51133, 41.89193, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rovigo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.79109, 45.07387, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salerno'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.79328, 40.67545, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Severo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.38148, 41.68564, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sassari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.55037, 40.72787, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Savona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.47715, 44.30905, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Scafati'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52919, 40.75766, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Scandicci'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.18794, 43.75423, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sesto San Giovanni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.23401, 45.53449, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Taranto'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(17.25478, 40.41639, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teramo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.69901, 42.66123, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Terni'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.63667, 42.56184, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tivoli'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.80317, 41.95781, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torre del Greco'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.39782, 40.77939, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trani'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(16.41011, 41.27733, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trapani'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.54127, 38.01391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trento'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.12108, 46.06787, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Treviso'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.23614, 45.66908, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Trieste'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.7903, 45.64325, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Turin'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.68682, 45.07049, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Udine'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(13.24458, 46.0637, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Varese'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.82223, 45.81934, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Velletri'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.78103, 41.66784, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Venice'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.33265, 45.43713, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Verona'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.98444, 45.4299, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viareggio'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.25581, 43.87145, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vicenza'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.5475, 45.54672, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigevano'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(8.85437, 45.31407, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viterbo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.11141, 42.42322, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vittoria'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.52788, 36.95151, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Naples'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(14.24641, 40.85631, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Padua'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(11.88586, 45.40797, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reggio Emilia'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(10.63125, 44.69825, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanremo'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.7772, 43.81725, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Syracuse'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(15.27628, 37.08415, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cagliari'], 'ITA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(9.11917, 39.23054, 4326)::geography,3000)::geometry, 4326))" should true +} + +function test_geocoding_functions_namedplace_spain() { + + # Spain tests - 2km of tolerance for the city point with no country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Palmas de Gran Canaria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.41343, 28.09973, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Riveira'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.33333, 42.85, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Feliú de Llobregat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.05, 41.38333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro de Ribas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.76667, 41.26667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Eulalia del Río'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.53409, 38.98457, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Lucía de Tirajana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.54071, 27.91174, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Perpetua de Moguda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.18333, 41.53333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Vicente del Raspeig'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5255, 38.3964, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vendrell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.53333, 41.21667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villafranca del Panadés'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.7, 41.35, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vinaroz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.47559, 40.47033, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zarauz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.16992, 43.28444, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá la Real'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92301, 37.4614, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcantarilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.21714, 37.96939, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcázar de San Juan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.20827, 39.39011, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcobendas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.64197, 40.54746, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcorcón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.82487, 40.34582, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcoy'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.47432, 38.70545, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alfafar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.38333, 39.41667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Algeciras'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.45051, 36.13326, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Algemesí'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43572, 39.19042, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Algete'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.49743, 40.59711, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhama de Murcia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.42507, 37.85103, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhaurín de la Torre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56139, 36.66401, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhaurín el Grande'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.68728, 36.643, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alicante'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.48149, 38.34517, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almansa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.09713, 38.86917, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almendralejo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.40747, 38.68316, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almería'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.45974, 36.83814, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almonte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.51667, 37.2647, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almuñécar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.69072, 36.73393, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Altea'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.05139, 38.59885, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Amposta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.58103, 40.71308, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Andújar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.05077, 38.03922, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Antequera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56123, 37.01938, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aranda de Duero'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.6892, 41.67041, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aranjuez'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.60246, 40.03108, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arcos de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.81056, 36.75075, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Armilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.61854, 37.14102, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.68102, 28.09962, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arrecife'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.54769, 28.96302, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arucas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.52325, 28.11983, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aspe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.76721, 38.34511, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ávila'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.69951, 40.65724, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Avilés'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92483, 43.55473, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ayamonte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.40266, 37.20994, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Azuqueca de Henares'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.25992, 40.56688, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Badajoz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.97061, 38.87789, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Badalona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.24741, 41.45004, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.32245, 37.6167, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barañáin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.67731, 42.80567, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barcelona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.15899, 41.38879, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Basauri'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.8858, 43.2397, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.77259, 37.49073, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benalmádena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56937, 36.59548, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benicarló'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.42709, 40.4165, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benidorm'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.13098, 38.53816, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bétera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45, 39.58333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bilbao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.92528, 43.26271, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Blanes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.79036, 41.67419, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boadilla del Monte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87835, 40.405, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Burgos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.67527, 42.35022, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Burriana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08499, 39.88901, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cabra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.44206, 37.47249, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cáceres'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.37224, 39.47649, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calafell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.5683, 41.19997, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calahorra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.96521, 42.30506, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calatayud'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.64318, 41.35353, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Camargo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.88498, 43.40744, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Camas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.03314, 37.40202, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.34736, 43.29438, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambrils'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.05244, 41.07479, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carballo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.69104, 43.213, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carcaixent'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.44812, 39.1218, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cártama'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63297, 36.71068, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castrillón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.79217, 43.39788, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castro-Urdiales'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.22043, 43.38285, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catarroja'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.4, 39.4, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ceuta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.31979, 35.88933, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chiclana de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.14941, 36.41915, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciempozuelos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.62103, 40.15913, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cieza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.41987, 38.23998, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciudad Real'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92907, 38.98626, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.75639, 36.65947, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Colmenar Viejo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.76762, 40.65909, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Conil de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.0885, 36.27719, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coria del Río'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.0541, 37.28766, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coslada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.56129, 40.42378, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Crevillente'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.80975, 38.24994, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cullera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.25, 39.16667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Culleredo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.38858, 43.28788, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Denia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.10574, 38.84078, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Don Benito'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.86162, 38.95627, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dos Hermanas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92088, 37.28287, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Durango'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.6338, 43.17124, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Écija'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.0826, 37.5422, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Elche'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.70107, 38.26218, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Elda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79157, 38.47783, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Ejido'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.81456, 36.77629, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Masnou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3188, 41.47978, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Prat de Llobregat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.09472, 41.32784, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Puerto de Santa María'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.23298, 36.59389, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Erandio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.94502, 43.30788, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Estepona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.14589, 36.42764, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrol'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.23689, 43.48321, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Figueras'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.02559, 43.53943, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuengirola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.62473, 36.53998, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuenlabrada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.79415, 40.28419, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Galapagar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.00426, 40.5783, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gáldar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.6502, 28.14701, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Getafe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.73295, 40.30571, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gijón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.66152, 43.53573, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Granada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.60667, 37.18817, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Granadilla de Abona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.57599, 28.11882, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Granollers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28773, 41.60797, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadix'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.13922, 37.29932, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guía de Isora'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.77947, 28.21154, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hellín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.70096, 38.5106, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huelva'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.94004, 37.26638, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huesca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.4087, 42.13615, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.57225, 38.62533, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibiza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.43296, 38.90883, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Icod de los Vinos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.71188, 28.37241, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Igualada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.6172, 41.58098, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Illescas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.84704, 40.12213, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Inca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.91093, 39.7211, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingenio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.4406, 27.92086, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Isla Cristina'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.31667, 37.2, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jaén'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.79028, 37.76922, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jerez de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.13606, 36.68645, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jumilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.325, 38.47917, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Laguna de Duero'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.72332, 41.58151, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lalín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.11285, 42.66085, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Línea de la Concepción'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.34777, 36.16809, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Oliva'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.92912, 28.61052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Orotava'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.52309, 28.39076, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Rinconada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.98091, 37.48613, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Rozas de Madrid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87371, 40.49292, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Torres de Cotillas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.24188, 38.02822, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lebrija'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.07529, 36.92077, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leganés'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.7635, 40.32718, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lepe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.20433, 37.25482, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lloret de Mar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.84565, 41.69993, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Logroño'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.45, 42.46667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lorca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.7017, 37.67119, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Barrios'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.49213, 36.18482, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Llanos de Aridane'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-17.91821, 28.65851, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Palacios y Villafranca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92433, 37.16181, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Realejos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.58335, 28.36739, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lugo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.55602, 43.00992, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Madrid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.70256, 40.4165, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mairena del Alcor'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.74951, 37.37301, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mairena del Aljarafe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.06391, 37.34461, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Majadahonda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87182, 40.47353, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Málaga'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.42034, 36.72016, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manacor'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.20955, 39.56964, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manises'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46349, 39.49139, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manlleu'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28476, 42.00228, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manresa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.82656, 41.72498, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Maracena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.63493, 37.20764, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marbella'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.88583, 36.51543, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marín'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.7, 42.38333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Martorell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.93062, 41.47402, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Martos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.97264, 37.72107, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mataró'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.4445, 41.54211, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazarrón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.31493, 37.5992, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Medina del Campo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.91413, 41.31239, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mejorada del Campo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.48194, 40.39283, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Melilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.93833, 35.29369, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mieres'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.76667, 43.25, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mijas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63728, 36.59575, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Miranda de Ebro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.94695, 42.6865, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mislata'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41825, 39.47523, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mogán'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.72538, 27.88385, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moguer'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.83851, 37.27559, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Molina de Segura'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.20763, 38.05456, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.39551, 39.54555, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63805, 37.58627, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Morón de la Frontera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.45403, 37.12084, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Móstoles'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.86496, 40.32234, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Motril'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.5179, 36.75066, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Muchamiel'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.44529, 38.4158, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Murcia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.13004, 37.98704, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Narón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.19082, 43.50175, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Navalcarnero'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.01197, 40.28908, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nerja'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.8744, 36.75278, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Níjar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.20595, 36.96655, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Novelda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.76773, 38.38479, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oleiros'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.31667, 43.33333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Olesa de Montserrat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.89407, 41.54372, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oliva'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11935, 38.91971, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Olot'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.49012, 42.18096, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Onda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.25, 39.96667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Orihuela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.94401, 38.08483, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oviedo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.84476, 43.36029, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paiporta'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41667, 39.43333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pájara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-14.1076, 28.35039, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palafrugell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.1631, 41.91738, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palencia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.52406, 42.00955, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palma del Río'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.28121, 37.70024, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pamplona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.64323, 42.81687, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paracuellos de Jarama'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.52775, 40.50353, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Parla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.76752, 40.23604, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paterna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43333, 39.5, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pilar de la Horadada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79256, 37.86591, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pineda de Mar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.6889, 41.62763, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pinto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.69999, 40.24147, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Plasencia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.08845, 40.03116, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ponferrada'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.59619, 42.54664, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pontevedra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.64435, 42.431, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portugalete'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02064, 43.32099, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozuelo de Alarcón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.81338, 40.43293, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Priego de Córdoba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.19523, 37.43807, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto de la Cruz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.54867, 28.41397, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto del Rosario'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.86272, 28.50038, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puertollano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.10734, 38.68712, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto Real'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.19011, 36.52819, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Redondela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.6096, 42.28337, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Requena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.10044, 39.48834, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.10687, 41.15612, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rincón de la Victoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.27583, 36.71715, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ripollet'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.15739, 41.49686, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rojales'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.72544, 38.08799, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ronda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.16709, 36.74231, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Roquetas de Mar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.61475, 36.76419, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rota'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.3622, 36.62545, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rubí'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.03305, 41.49226, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sabadell'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.10942, 41.54329, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sagunto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.26667, 39.68333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salamanca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.66388, 40.96882, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salou'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.14163, 41.07663, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.79281, 41.97489, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Andrés del Rabanedo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.61671, 42.61174, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio Abad'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.08, 16.89111, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Cristóbal de la Laguna'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.85896, 19.31629, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Fernando'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(120.6898, 15.0286, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Fernando de Henares'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.53261, 40.42386, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Javier'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.83736, 37.80626, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San José'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-84.08333, 9.93333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Juan de Alicante'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43623, 38.40148, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Juan de Aznalfarache'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.03731, 37.35813, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanlúcar de Barrameda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.3515, 36.77808, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro del Pinatar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79102, 37.83568, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Roque'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.38415, 36.21067, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Sebastián'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.65, 14.56667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Sebastián de los Reyes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.61588, 40.54433, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Cruz de Tenerife'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.25462, 28.46824, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santander'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.80444, 43.46472, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Pola'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5658, 38.19165, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago de Compostela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.54569, 42.88052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santurce'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-61.18135, -30.18985, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Segovia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.11839, 40.94808, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sestao'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.00716, 43.30975, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sevilla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.97317, 37.38283, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Siero'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.4775, 43.08347, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sitges'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.81193, 41.23506, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Soria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.46883, 41.76401, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sueca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.31114, 39.2026, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tacoronte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.41016, 28.47688, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Talavera de la Reina'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.83076, 39.96348, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tarragona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.25, 41.11667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teguise'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.56397, 29.06049, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Telde'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.41915, 27.99243, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teruel'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.10646, 40.3456, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tías'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.64502, 28.96108, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toledo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.55521, 41.66394, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tomares'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.04589, 37.37281, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tomelloso'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02156, 39.15759, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrejón de Ardoz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.46973, 40.45535, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrelavega'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.04785, 43.34943, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrelodones'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92658, 40.57654, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torremolinos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.49976, 36.62035, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrente'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.65593, 9.3762, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrevieja'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.68222, 37.97872, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tortosa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.5216, 40.81249, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Totana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.50229, 37.7688, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tres Cantos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.70806, 40.60092, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tudela'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.60452, 42.06166, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Úbeda'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.3705, 38.01328, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Utrera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.78093, 37.18516, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valdemoro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.67887, 40.19081, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valdepeñas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.38483, 38.76211, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valencia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-68.00765, 10.16202, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valladolid'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.72372, 41.65518, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valls'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.24993, 41.28612, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vélez-Málaga'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.10045, 36.77262, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vícar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.64273, 36.83155, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vich'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(12.31001, 46.15354, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.72264, 42.23282, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viladecans'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.01427, 41.31405, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vilaseca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25528, 42.06174, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villajoyosa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.23346, 38.50754, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villanueva de la Serena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.7974, 38.97655, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villarreal'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-93.22361, 16.26361, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villarrobledo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.60119, 39.26992, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villaviciosa de Odón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.90011, 40.35692, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villena'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.86568, 38.6373, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitoria'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-36.3825, -5.24389, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yecla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.11468, 38.61365, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zamora'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-102.28387, 19.9855, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zaragoza'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.87734, 41.65606, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alacuás'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.461, 39.45568, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá de Guadaíra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.83951, 37.33791, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aldaya'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46005, 39.46569, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alfaz del Pi'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.10321, 38.58055, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almazora'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.06313, 39.94729, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barbate'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92186, 36.19237, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calviá'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.50621, 39.5657, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellón de la Plana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.03333, 39.98333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Collado Villalba'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.00486, 40.63506, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuart de Poblet'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43937, 39.48139, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Éibar'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.47158, 43.18493, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Esparraguera'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.87025, 41.53809, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Galdácano'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.83333, 43.23333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gandía'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.18333, 38.96667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guecho'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.01146, 43.35689, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hospitalet de Llobregat'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.10028, 41.35967, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Irún'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78938, 43.33904, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Játiva'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.51852, 38.99042, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jávea'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.16667, 38.78333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Coruña'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.396, 43.37135, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Langreo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.68416, 43.29568, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lejona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.98333, 43.33333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mahón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.26583, 39.88853, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mollet del Vallés'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.21306, 41.54026, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Onteniente'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.60603, 38.82191, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Picasent'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45949, 39.3635, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla de Vallbona'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.55468, 39.59747, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puente Genil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.76686, 37.38943, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Andrés de la Barca'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.97187, 41.44659, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Adeje'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.726, 28.12271, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Adra'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02055, 36.74961, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Águilas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.58289, 37.4063, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Agüimes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.44609, 27.90539, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Albacete'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.85643, 38.99424, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alboraya'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.35, 39.5, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá de Henares'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.35996, 40.48205, 4326)::geography,3000)::geometry, 4326))" should true + + # Spain tests - 2km of tolerance for the city point with country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Palmas de Gran Canaria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.41343, 28.09973, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Riveira'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.33333, 42.85, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Feliú de Llobregat'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.05, 41.38333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro de Ribas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.76667, 41.26667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Eulalia del Río'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.53409, 38.98457, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Lucía de Tirajana'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.54071, 27.91174, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Perpetua de Moguda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.18333, 41.53333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Vicente del Raspeig'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5255, 38.3964, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vendrell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.53333, 41.21667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villafranca del Panadés'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.7, 41.35, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vinaroz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.47559, 40.47033, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zarauz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.16992, 43.28444, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá la Real'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92301, 37.4614, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcantarilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.21714, 37.96939, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcázar de San Juan'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.20827, 39.39011, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcira'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43333, 39.15, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcobendas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.64197, 40.54746, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcorcón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.82487, 40.34582, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcoy'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.47432, 38.70545, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alfafar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.38333, 39.41667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Algeciras'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.45051, 36.13326, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Algemesí'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43572, 39.19042, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Algete'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.49743, 40.59711, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhama de Murcia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.42507, 37.85103, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhaurín de la Torre'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56139, 36.66401, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alhaurín el Grande'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.68728, 36.643, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alicante'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.48149, 38.34517, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almansa'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.09713, 38.86917, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almendralejo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.40747, 38.68316, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almería'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.45974, 36.83814, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almonte'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.51667, 37.2647, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almuñécar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.69072, 36.73393, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Altea'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.05139, 38.59885, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Amposta'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.58103, 40.71308, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Andújar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.05077, 38.03922, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Antequera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56123, 37.01938, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aranda de Duero'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.6892, 41.67041, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aranjuez'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.60246, 40.03108, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arcos de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.81056, 36.75075, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Armilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.61854, 37.14102, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.68102, 28.09962, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arrecife'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.54769, 28.96302, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Arucas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.52325, 28.11983, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aspe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.76721, 38.34511, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ávila'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.69951, 40.65724, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Avilés'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92483, 43.55473, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ayamonte'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.40266, 37.20994, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Azuqueca de Henares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.25992, 40.56688, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Badajoz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.97061, 38.87789, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Badalona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.24741, 41.45004, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.32245, 37.6167, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baracaldo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.99729, 43.29564, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barañáin'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.67731, 42.80567, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barcelona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.15899, 41.38879, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Basauri'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.8858, 43.2397, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baza'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.77259, 37.49073, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benalmádena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.56937, 36.59548, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benicarló'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.42709, 40.4165, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Benidorm'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.13098, 38.53816, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bétera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45, 39.58333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bilbao'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.92528, 43.26271, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Blanes'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.79036, 41.67419, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boadilla del Monte'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87835, 40.405, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Burgos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.67527, 42.35022, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Burriana'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08499, 39.88901, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cabra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.44206, 37.47249, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cáceres'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.37224, 39.47649, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cádiz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.29465, 36.52978, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calafell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.5683, 41.19997, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calahorra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.96521, 42.30506, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calatayud'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.64318, 41.35353, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calpe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.0445, 38.6447, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Camargo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.88498, 43.40744, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Camas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.03314, 37.40202, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambre'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.34736, 43.29438, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambrils'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.05244, 41.07479, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Campello'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.09855, 40.51519, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Candelaria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.37268, 28.3548, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carballo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.69104, 43.213, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carcaixent'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.44812, 39.1218, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Carmona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.64608, 37.47125, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cartagena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.98623, 37.60512, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cártama'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63297, 36.71068, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castrillón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.79217, 43.39788, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castro-Urdiales'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.22043, 43.38285, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Catarroja'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.4, 39.4, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ceuta'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.31979, 35.88933, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chiclana de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.14941, 36.41915, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciempozuelos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.62103, 40.15913, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cieza'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.41987, 38.23998, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciudadela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.84144, 40.00112, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ciudad Real'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92907, 38.98626, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coín'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.75639, 36.65947, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Colmenar Viejo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.76762, 40.65909, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Conil de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.0885, 36.27719, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Córdoba'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.77275, 37.89155, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coria del Río'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.0541, 37.28766, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coslada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.56129, 40.42378, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Crevillente'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.80975, 38.24994, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuenca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.13333, 40.06667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cullera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.25, 39.16667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Culleredo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.38858, 43.28788, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Denia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.10574, 38.84078, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Don Benito'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.86162, 38.95627, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dos Hermanas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92088, 37.28287, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Durango'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.6338, 43.17124, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Écija'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.0826, 37.5422, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Elche'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.70107, 38.26218, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Elda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79157, 38.47783, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Ejido'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.81456, 36.77629, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Masnou'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3188, 41.47978, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Prat de Llobregat'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.09472, 41.32784, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Puerto de Santa María'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.23298, 36.59389, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Erandio'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.94502, 43.30788, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Estepona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.14589, 36.42764, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ferrol'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.23689, 43.48321, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Figueras'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.02559, 43.53943, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuengirola'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.62473, 36.53998, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fuenlabrada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.79415, 40.28419, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Galapagar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.00426, 40.5783, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gáldar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.6502, 28.14701, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gerona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.82493, 41.98311, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Getafe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.73295, 40.30571, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gijón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.66152, 43.53573, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Granada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.60667, 37.18817, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Granadilla de Abona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.57599, 28.11882, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Granollers'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28773, 41.60797, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.16185, 40.62862, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadix'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.13922, 37.29932, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guía de Isora'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.77947, 28.21154, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hellín'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.70096, 38.5106, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huelva'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.94004, 37.26638, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huesca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.4087, 42.13615, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibi'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.57225, 38.62533, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ibiza'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.43296, 38.90883, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Icod de los Vinos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.71188, 28.37241, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Igualada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.6172, 41.58098, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Illescas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.84704, 40.12213, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Inca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.91093, 39.7211, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ingenio'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.4406, 27.92086, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Isla Cristina'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.31667, 37.2, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jaén'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.79028, 37.76922, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jerez de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.13606, 36.68645, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jumilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.325, 38.47917, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Estrada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.48842, 42.68911, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Laguna de Duero'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.72332, 41.58151, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lalín'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.11285, 42.66085, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Línea de la Concepción'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.34777, 36.16809, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Oliva'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.92912, 28.61052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Orotava'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.52309, 28.39076, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Rinconada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.98091, 37.48613, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Rozas de Madrid'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87371, 40.49292, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Torres de Cotillas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.24188, 38.02822, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lebrija'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.07529, 36.92077, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leganés'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.7635, 40.32718, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['León'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.57032, 42.60003, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lepe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.20433, 37.25482, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lérida'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.62556, 41.61389, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Linares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.63602, 38.09519, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Liria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.59783, 39.62894, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lloret de Mar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.84565, 41.69993, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Logroño'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.45, 42.46667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Loja'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.15129, 37.16887, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lorca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.7017, 37.67119, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Barrios'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.49213, 36.18482, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Llanos de Aridane'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-17.91821, 28.65851, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Palacios y Villafranca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92433, 37.16181, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Realejos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.58335, 28.36739, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lucena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.48522, 37.40881, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lugo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.55602, 43.00992, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Madrid'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.70256, 40.4165, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mairena del Alcor'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.74951, 37.37301, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mairena del Aljarafe'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.06391, 37.34461, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Majadahonda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.87182, 40.47353, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Málaga'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.42034, 36.72016, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manacor'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.20955, 39.56964, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manises'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46349, 39.49139, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manlleu'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28476, 42.00228, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manresa'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.82656, 41.72498, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Maracena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.63493, 37.20764, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marbella'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.88583, 36.51543, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marín'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.7, 42.38333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Martorell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.93062, 41.47402, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Martos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.97264, 37.72107, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mataró'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.4445, 41.54211, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mazarrón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.31493, 37.5992, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Medina del Campo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.91413, 41.31239, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mejorada del Campo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.48194, 40.39283, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Melilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.93833, 35.29369, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mérida'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.34366, 38.91611, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mieres'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.76667, 43.25, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mijas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63728, 36.59575, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Miranda de Ebro'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.94695, 42.6865, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mislata'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41825, 39.47523, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mogán'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.72538, 27.88385, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moguer'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.83851, 37.27559, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Molina de Segura'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.20763, 38.05456, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Moncada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.39551, 39.54555, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mondragón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.48977, 43.06441, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.63805, 37.58627, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Morón de la Frontera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.45403, 37.12084, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Móstoles'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.86496, 40.32234, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Motril'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.5179, 36.75066, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Muchamiel'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.44529, 38.4158, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Murcia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.13004, 37.98704, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Narón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.19082, 43.50175, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Navalcarnero'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.01197, 40.28908, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nerja'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.8744, 36.75278, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Níjar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.20595, 36.96655, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Novelda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.76773, 38.38479, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oleiros'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.31667, 43.33333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Olesa de Montserrat'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.89407, 41.54372, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oliva'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11935, 38.91971, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Olot'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.49012, 42.18096, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Onda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.25, 39.96667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Orense'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.86407, 42.33669, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Orihuela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.94401, 38.08483, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oviedo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.84476, 43.36029, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paiporta'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41667, 39.43333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pájara'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-14.1076, 28.35039, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palafrugell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.1631, 41.91738, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palencia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.52406, 42.00955, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palma del Río'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.28121, 37.70024, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Palma de Mallorca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.65024, 39.56939, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pamplona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.64323, 42.81687, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paracuellos de Jarama'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.52775, 40.50353, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Parla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.76752, 40.23604, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paterna'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43333, 39.5, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Petrel'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.77549, 38.48289, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pilar de la Horadada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79256, 37.86591, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pineda de Mar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.6889, 41.62763, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pinto'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.69999, 40.24147, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Plasencia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.08845, 40.03116, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ponferrada'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.59619, 42.54664, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pontevedra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.64435, 42.431, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portugalete'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02064, 43.32099, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pozuelo de Alarcón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.81338, 40.43293, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Priego de Córdoba'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.19523, 37.43807, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto de la Cruz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.54867, 28.41397, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto del Rosario'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.86272, 28.50038, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puertollano'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.10734, 38.68712, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puerto Real'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.19011, 36.52819, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Redondela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.6096, 42.28337, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rentería'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.43333, 43.31667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Requena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.10044, 39.48834, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reus'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.10687, 41.15612, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rincón de la Victoria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.27583, 36.71715, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ripollet'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.15739, 41.49686, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rojales'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.72544, 38.08799, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ronda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.16709, 36.74231, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Roquetas de Mar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.61475, 36.76419, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rota'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.3622, 36.62545, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rubí'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.03305, 41.49226, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sabadell'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.10942, 41.54329, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sagunto'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.26667, 39.68333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salamanca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.66388, 40.96882, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salou'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.14163, 41.07663, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Salt'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.79281, 41.97489, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Andrés del Rabanedo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.61671, 42.61174, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio Abad'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.99665, 37.61767, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Cristóbal de la Laguna'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.32014, 28.4853, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Fernando'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.19817, 36.4759, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Fernando de Henares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.53261, 40.42386, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Javier'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.83736, 37.80626, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San José'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.10912, 36.76048, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Juan de Alicante'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43623, 38.40148, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Juan de Aznalfarache'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.03731, 37.35813, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sanlúcar de Barrameda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.3515, 36.77808, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro del Pinatar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.79102, 37.83568, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Roque'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.38415, 36.21067, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Sebastián'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.9, 43.56667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Sebastián de los Reyes'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.61588, 40.54433, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Cruz de Tenerife'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.25462, 28.46824, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santander'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.80444, 43.46472, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santa Pola'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5658, 38.19165, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago de Compostela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.54569, 42.88052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santurce'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.03248, 43.32842, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Segovia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.11839, 40.94808, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sestao'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.00716, 43.30975, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sevilla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.97317, 37.38283, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Siero'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.4775, 43.08347, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sitges'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.81193, 41.23506, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Soria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.46883, 41.76401, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sueca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.31114, 39.2026, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tacoronte'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.41016, 28.47688, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Talavera de la Reina'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.83076, 39.96348, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tarragona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.25, 41.11667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teguise'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.56397, 29.06049, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Telde'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.41915, 27.99243, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Teruel'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.10646, 40.3456, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tías'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-13.64502, 28.96108, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toledo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.02263, 39.8581, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tomares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-6.04589, 37.37281, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tomelloso'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02156, 39.15759, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrejón de Ardoz'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.46973, 40.45535, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrelavega'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.04785, 43.34943, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrelodones'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.92658, 40.57654, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torremolinos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.49976, 36.62035, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrente'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46546, 39.43705, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torrevieja'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.68222, 37.97872, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tortosa'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.5216, 40.81249, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Totana'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.50229, 37.7688, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tres Cantos'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.70806, 40.60092, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tudela'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.60452, 42.06166, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Úbeda'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.3705, 38.01328, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Utrera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.78093, 37.18516, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valdemoro'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.67887, 40.19081, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valdepeñas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.38483, 38.76211, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valencia'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.37739, 39.46975, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valladolid'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.72372, 41.65518, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Valls'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.24993, 41.28612, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vélez-Málaga'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.10045, 36.77262, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vícar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.64273, 36.83155, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vic'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25486, 41.93012, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vigo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.72264, 42.23282, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Viladecans'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.01427, 41.31405, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vilaseca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25528, 42.06174, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villajoyosa'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.23346, 38.50754, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villanueva de la Serena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.7974, 38.97655, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villarreal'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-7.21533, 38.72572, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villarrobledo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.60119, 39.26992, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villaviciosa de Odón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.90011, 40.35692, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villena'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.86568, 38.6373, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitoria'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.67268, 42.84998, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Yecla'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.11468, 38.61365, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zamora'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.74456, 41.50633, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zaragoza'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.87734, 41.65606, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alacuás'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.461, 39.45568, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá de Guadaíra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.83951, 37.33791, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aldaya'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.46005, 39.46569, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alfaz del Pi'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.10321, 38.58055, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Almazora'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.06313, 39.94729, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barbate'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.92186, 36.19237, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calviá'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.50621, 39.5657, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Castellón de la Plana'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.03333, 39.98333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Collado Villalba'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.00486, 40.63506, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cuart de Poblet'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.43937, 39.48139, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Éibar'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.47158, 43.18493, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Esparraguera'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.87025, 41.53809, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Galdácano'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.83333, 43.23333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gandía'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.18333, 38.96667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guecho'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.01146, 43.35689, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hospitalet de Llobregat'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.10028, 41.35967, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Irún'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78938, 43.33904, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Játiva'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.51852, 38.99042, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jávea'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.16667, 38.78333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Coruña'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-8.396, 43.37135, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Langreo'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-5.68416, 43.29568, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lejona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.98333, 43.33333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mahón'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.26583, 39.88853, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mollet del Vallés'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.21306, 41.54026, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Onteniente'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.60603, 38.82191, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Picasent'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45949, 39.3635, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla de Vallbona'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.55468, 39.59747, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puente Genil'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.76686, 37.38943, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Andrés de la Barca'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.97187, 41.44659, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Adeje'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-16.726, 28.12271, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Adra'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.02055, 36.74961, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Águilas'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.58289, 37.4063, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Agüimes'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-15.44609, 27.90539, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Albacete'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.85643, 38.99424, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alboraya'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.35, 39.5, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Alcalá de Henares'], 'ESP')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.35996, 40.48205, 4326)::geography,3000)::geometry, 4326))" should true +} + +function test_geocoding_functions_namedplace_france() { + + # France tests - 2km of tolerance for the city point without country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aix-en-Provence'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.44973, 43.5283, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Amiens'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3, 49.9, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Angers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.55, 47.46667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Besançon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.01815, 47.24878, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bordeaux'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5805, 44.84044, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boulogne-Billancourt'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25, 48.83333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.35912, 49.18585, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Argenteuil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25, 48.95, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Asnières-sur-Seine'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28333, 48.91667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aulnay-sous-Bois'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.49402, 48.93814, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Avignon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.80892, 43.94834, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calais'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.85635, 50.95194, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Clermont-Ferrand'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.08628, 45.77966, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Colombes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25404, 48.91882, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Créteil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.46667, 48.78333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dijon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.01667, 47.31667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort-de-France'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-61.07334, 14.60892, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Grenoble'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.71667, 45.16667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Rochelle'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.15, 46.16667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Le Havre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.10767, 49.4938, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Le Mans'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.2, 48, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lille'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.05858, 50.63297, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Limoges'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.25781, 45.83153, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lyon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.84671, 45.74846, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marseille'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.38107, 43.29695, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Metz'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.17269, 49.11911, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montpellier'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.87723, 43.61092, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montreuil'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.44322, 48.86415, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mulhouse'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.33333, 47.75, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nancy'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.18496, 48.68439, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanterre'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.20675, 48.89198, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nantes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.55336, 47.21725, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nice'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.26608, 43.70313, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nîmes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.35, 43.83333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Orléans'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.90389, 47.90289, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paris'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3488, 48.85341, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pau'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.36667, 43.3, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Perpignan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.89541, 42.69764, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Poitiers'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.33333, 46.58333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reims'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.03333, 49.25, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rennes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.67429, 48.11198, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Roubaix'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.17456, 50.69421, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rouen'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.09932, 49.44313, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint-Denis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(55.4504, -20.88231, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint-Étienne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.39, 45.43389, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint-Paul'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(55.27071, -21.00963, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Strasbourg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.74553, 48.58392, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toulon'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.93333, 43.11667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toulouse'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.44367, 43.60426, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tourcoing'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.16117, 50.72391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tours'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.68333, 47.38333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Versailles'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.13333, 48.8, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villeurbanne'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.88333, 45.76667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitry-sur-Seine'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.40332, 48.78716, 4326)::geography,3000)::geometry, 4326))" should true + + # France tests - 2km of tolerance for the city point with country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aix-en-Provence'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.44973, 43.5283, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Amiens'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3, 49.9, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Angers'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.55, 47.46667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Besançon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.01815, 47.24878, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bordeaux'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.5805, 44.84044, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boulogne-Billancourt'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25, 48.83333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brest'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.48333, 48.4, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Caen'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.35912, 49.18585, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Argenteuil'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25, 48.95, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Asnières-sur-Seine'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.28333, 48.91667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aulnay-sous-Bois'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.49402, 48.93814, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Avignon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.80892, 43.94834, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calais'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.85635, 50.95194, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Clermont-Ferrand'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.08628, 45.77966, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Colombes'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.25404, 48.91882, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Créteil'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.46667, 48.78333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dijon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.01667, 47.31667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Grenoble'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.71667, 45.16667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['La Rochelle'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.15, 46.16667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Le Havre'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.10767, 49.4938, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Le Mans'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.2, 48, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lille'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.05858, 50.63297, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Limoges'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.25781, 45.83153, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lyon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.84671, 45.74846, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Marseille'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.38107, 43.29695, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Metz'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.17269, 49.11911, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montpellier'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.87723, 43.61092, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montreuil'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.44322, 48.86415, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mulhouse'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.33333, 47.75, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nancy'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(6.18496, 48.68439, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nanterre'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.20675, 48.89198, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nantes'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.55336, 47.21725, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nice'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.26608, 43.70313, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nîmes'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.35, 43.83333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Orléans'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.90389, 47.90289, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Paris'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.3488, 48.85341, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Pau'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.36667, 43.3, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Perpignan'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.89541, 42.69764, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Poitiers'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.33333, 46.58333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reims'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.03333, 49.25, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rennes'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.67429, 48.11198, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Roubaix'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.17456, 50.69421, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rouen'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.09932, 49.44313, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saint-Étienne'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.39, 45.43389, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Strasbourg'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(7.74553, 48.58392, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toulon'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(5.93333, 43.11667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toulouse'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.44367, 43.60426, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tourcoing'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(3.16117, 50.72391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tours'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.68333, 47.38333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Versailles'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.13333, 48.8, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Villeurbanne'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(4.88333, 45.76667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vitry-sur-Seine'], 'FRA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(2.40332, 48.78716, 4326)::geography,3000)::geometry, 4326))" should true +} + +function test_geocoding_functions_namedplace_northamerica() { + + # North America tests - 2km of tolerance for the city point without country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Philadelphia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.16379, 39.95233, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chihuahua'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.08889, 28.63528, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baltimore'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.61219, 39.29038, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Columbus'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.99879, 39.96118, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro Sula'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-88.025, 15.50417, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Culiacán'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-107.38782, 24.79032, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalupe'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.25646, 25.67678, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aguascalientes'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-102.28259, 21.88234, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Francisco'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.41942, 37.77493, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mississauga'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.6583, 43.5789, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reynosa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.28835, 26.08061, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saltillo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.0053, 25.42321, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Port-au-Prince'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-72.335, 18.53917, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Monterrey'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.31847, 25.67507, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nezahualcóyotl'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.45559, 17.25375, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Austin'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.74306, 30.26715, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago de Querétaro'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.38806, 20.58806, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Louisville'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-85.75941, 38.25424, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.49363, 29.42412, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Seattle'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.33207, 47.60621, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chicago'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.65005, 41.85003, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Memphis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.04898, 35.14953, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dallas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.80667, 32.78306, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Havana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.38304, 23.13302, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calgary'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-114.08529, 51.05011, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oklahoma City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.51643, 35.46756, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.20193, 19.04334, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guatemala City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.51327, 14.64072, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Vegas'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.13722, 36.17497, 4326)::geography,10000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Detroit'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.04575, 42.33143, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portland'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.67621, 45.52345, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hermosillo'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-110.97732, 29.1026, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Managua'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.2504, 12.13282, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mérida'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-89.61696, 20.97537, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Juárez'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.09582, 25.64724, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Edmonton'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.46871, 53.55014, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Morelia'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.18443, 19.70078, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Luis Potosí'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.97916, 22.14982, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Houston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-95.36327, 29.76328, 4326)::geography,4000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Jose'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.89496, 37.33939, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['León'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.671, 21.13052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexicali'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.45446, 32.62781, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Charlotte'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.84313, 35.22709, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Diego'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.15726, 32.71533, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Phoenix'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-112.07404, 33.44838, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Paso'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.48693, 31.75872, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tegucigalpa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.20681, 14.0818, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.39182, 20.66682, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Denver'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-104.9847, 39.73915, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acapulco'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.51028, 16.11417, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ottawa'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.69812, 45.41117, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Worth'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.32085, 32.72541, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.05977, 42.35843, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexico City'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.12766, 19.42847, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tijuana'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.00371, 32.5027, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nashville'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.78444, 36.16589, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jacksonville'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.65565, 30.33218, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cancún'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.84656, 21.17429, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Angeles'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.24368, 34.05223, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Indianapolis'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.15804, 39.76838, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.79358, 17.99702, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torreón'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.38611, 18.41194, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zapopan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.38479, 20.72356, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vancouver'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-123.11934, 49.24966, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toronto'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.4163, 43.70011, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Winnipeg'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.14704, 49.8844, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlaquepaque'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.29327, 20.64091, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlalnepantla'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.19538, 19.54005, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ecatepec de Morelos'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.06601, 19.61725, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chimalhuacán'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.95038, 19.42155, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Naucalpan'])).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.23963, 19.47851, 4326)::geography,3000)::geometry, 4326))" should true + + # North America tests - 2km of tolerance for the city point with country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Philadelphia'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.16379, 39.95233, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chihuahua'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.08889, 28.63528, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Baltimore'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.61219, 39.29038, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Columbus'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.99879, 39.96118, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Pedro Sula'], 'Honduras')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-88.025, 15.50417, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Culiacán'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-107.38782, 24.79032, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalupe'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.25646, 25.67678, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['New York'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-74.0060, 40.7143, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Aguascalientes'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-102.28259, 21.88234, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Francisco'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.41942, 37.77493, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mississauga'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.6583, 43.5789, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reynosa'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.28835, 26.08061, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Saltillo'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.0053, 25.42321, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Port-au-Prince'], 'Haiti')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-72.335, 18.53917, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Monterrey'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.31847, 25.67507, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nezahualcóyotl'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.45559, 17.25375, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Austin'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.74306, 30.26715, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Santiago de Querétaro'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.38806, 20.58806, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Louisville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-85.75941, 38.25424, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Antonio'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.49363, 29.42412, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Seattle'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.33207, 47.60621, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chicago'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.65005, 41.85003, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Memphis'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.04898, 35.14953, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dallas'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.80667, 32.78306, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Havana'], 'Cuba')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-82.38304, 23.13302, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Calgary'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-114.08529, 51.05011, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oklahoma City'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.51643, 35.46756, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Puebla'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.20193, 19.04334, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guatemala City'], 'Guatemala')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-90.51327, 14.64072, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Las Vegas'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.13722, 36.17497, 4326)::geography,10000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Detroit'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-83.04575, 42.33143, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portland'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-122.67621, 45.52345, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hermosillo'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-110.97732, 29.1026, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Managua'], 'Nicaragua')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.2504, 12.13282, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mérida'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-89.61696, 20.97537, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Juárez'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.09582, 25.64724, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Edmonton'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.46871, 53.55014, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Morelia'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.18443, 19.70078, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Luis Potosí'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-100.97916, 22.14982, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Houston'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-95.36327, 29.76328, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Jose'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-121.89496, 37.33939, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['León'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-101.671, 21.13052, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexicali'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-115.45446, 32.62781, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Charlotte'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-80.84313, 35.22709, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['San Diego'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.15726, 32.71533, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Phoenix'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-112.07404, 33.44838, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['El Paso'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-106.48693, 31.75872, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tegucigalpa'], 'Honduras')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-87.20681, 14.0818, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Guadalajara'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.39182, 20.66682, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Denver'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-104.9847, 39.73915, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Acapulco'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-91.51028, 16.11417, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ottawa'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-75.69812, 45.41117, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Fort Worth'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.32085, 32.72541, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Boston'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-71.05977, 42.35843, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Mexico City'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.12766, 19.42847, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tijuana'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-117.00371, 32.5027, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nashville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.78444, 36.16589, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Jacksonville'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-81.65565, 30.33218, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cancún'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.84656, 21.17429, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Los Angeles'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-118.24368, 34.05223, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Indianapolis'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-86.15804, 39.76838, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Montreal'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-73.58781, 45.50884, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston'], 'Jamaica')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-76.79358, 17.99702, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Torreón'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-96.38611, 18.41194, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Zapopan'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.38479, 20.72356, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Vancouver'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-123.11934, 49.24966, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Washington'], 'USA')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-113.50829, 37.13054, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Toronto'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-79.4163, 43.70011, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Winnipeg'], 'Canada')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-97.14704, 49.8844, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlaquepaque'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-103.29327, 20.64091, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Tlalnepantla'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.19538, 19.54005, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ecatepec de Morelos'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.06601, 19.61725, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chimalhuacán'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-98.95038, 19.42155, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Naucalpan'], 'Mexico')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-99.23963, 19.47851, 4326)::geography,3000)::geometry, 4326))" should true +} + +function test_geocoding_functions_namedplace_england() { + + # England tests - 2km of tolerance for the city point without country + sql "SELECT ST_Intersects((geocode_namedplace(Array['Barnet'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2, 51.65, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bexley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.14866, 51.44162, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Birmingham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.89983, 52.48142, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Blackburn'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.48333, 53.75, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Blackpool'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.05, 53.81667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bolton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.43333, 53.58333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bournemouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.8795, 50.72048, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bradford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.75206, 53.79391, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brent'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.3023, 51.55306, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Brighton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.13947, 50.82838, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bristol'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.59665, 51.45523, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Bromley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.01519, 51.40606, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Cambridge'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.11667, 52.2, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Chesterfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.41667, 53.25, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Colchester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.90421, 51.88921, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Coventry'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.51217, 52.40656, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Crawley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.18312, 51.11303, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Croydon'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.1, 51.38333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Derby'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.47663, 52.92277, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Dudley'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.08333, 52.5, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ealing'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.30204, 51.51216, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Eastbourne'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.28453, 50.76871, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Enfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08497, 51.65147, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Exeter'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-3.52751, 50.7236, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Gloucester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.2431, 51.86568, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Greenwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.01176, 51.47785, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hackney'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.05, 51.55, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Haringey'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08333, 51.58333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Harrow'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.33208, 51.57835, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hillingdon'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.45293, 51.53291, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Hounslow'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.36092, 51.46839, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Huddersfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78416, 53.64904, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Ipswich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.15545, 52.05917, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Islington'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.10304, 51.53622, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston upon Thames'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2974, 51.41259, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lambeth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11152, 51.49635, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Richmond upon Thames'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.30212, 51.45689, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leeds'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.54785, 53.79648, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Leicester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.13169, 52.6386, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Lewisham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.01193, 51.46431, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Liverpool'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.97794, 53.41058, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Luton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.41748, 51.87967, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Manchester'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.23743, 53.48095, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Merton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.1, 50.88333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Middlesbrough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.23483, 54.57623, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Newcastle upon Tyne'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.61396, 54.97328, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Newham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.71667, 55.53333, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Northampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.88333, 52.25, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Norwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(1.29834, 52.62783, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Nottingham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.15047, 52.9536, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oldham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.1183, 53.54051, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Oxford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.25596, 51.75222, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Peterborough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.24777, 52.57364, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Plymouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-4.14305, 50.37153, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Poole'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2, 50.71667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Portsmouth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.09125, 50.79899, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Preston'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.71667, 53.76667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Reading'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.97113, 51.45625, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Redbridge'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.46667, 50.91667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Rotherham'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.35678, 53.43012, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sheffield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.4659, 53.38297, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Slough'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.59541, 51.50949, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Southampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.40428, 50.90395, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Southend-on-Sea'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.71433, 51.53782, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Southwark'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.08333, 51.5, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['St Helens'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.73333, 53.45, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stockport'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.15761, 53.40979, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Stoke-on-Trent'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.18538, 53.00415, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sunderland'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.38222, 54.90465, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sutton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.2, 51.35, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Sutton Coldfield'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.81667, 52.56667, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Swindon'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.78116, 51.55797, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Walsall'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.98396, 52.58528, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wandsworth'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.20784, 51.4577, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Watford'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.39602, 51.65531, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['West Bromwich'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.9945, 52.51868, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Wolverhampton'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-2.12296, 52.58547, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['York'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-1.08271, 53.95763, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Havering'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(0.18608, 51.61557, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Kingston upon Hull'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.33525, 53.7446, 4326)::geography,3000)::geometry, 4326))" should true + sql "SELECT ST_Intersects((geocode_namedplace(Array['Westminster'], 'GBR')).geom, ST_SetSRID(ST_Buffer(ST_MakePoint(-0.11667, 51.5, 4326)::geography,3000)::geometry, 4326))" should true + +} + + +#################################################### TESTS END HERE #################################################### diff --git a/geocoder/namedplace/test/run.sh b/geocoder/namedplace/test/run.sh new file mode 100644 index 0000000..2fff134 --- /dev/null +++ b/geocoder/namedplace/test/run.sh @@ -0,0 +1,192 @@ +#!/bin/sh +source data/test.sh +source functions/test.sh + +# +# The following script has two use modes: +# +# API +# ==================================== +# SQL_API_ROUTE and API_KEY need to be +# conveniently filled for the requests +# to work. +# Example: bash run.sh api sql_api_route api_key test_type +# +# SQL +# ==================================== +# It is expected that you run this script +# as a PostgreSQL superuser, for example: +# +# bash run.sh db database role test_type +# +# test_type defines the kind of tests to run: data or functions + +MODE='' +TEST_TYPE='' + +# DB settings +DATABASE='' +ROLE='' +CMD='echo psql' +CMD=psql + +# SQL API settings +SQL_API_ROUTE='' +API_KEY='' + +OK=0 +PARTIALOK=0 + +function set_failed() { + OK=1 + PARTIALOK=1 +} + +function clear_partial_result() { + PARTIALOK=0 +} + +function sql() { + local QUERY="$1" + if [[ $MODE = "api" ]] + then + # SQL API mode + echo $QUERY + RESULT=$(curl -s -X POST "https://$SQL_API_ROUTE/sql?api_key=$API_KEY&format=csv" --data-urlencode "q=$QUERY" |tail -n1 | tr -d '\r') + if [[ "$2" == "should" ]] + then + if [[ "${RESULT}" != "$3" ]] + then + log_error "QUERY '${QUERY}' expected result '${3}' but got '${RESULT}'" + set_failed + fi + fi + # Database mode + elif [[ $MODE = "db" ]] + then + if [ -n "${ROLE}" ]; then + log_debug "Executing query '${QUERY}' as ${ROLE}" + RESULT=`${CMD} -U "${ROLE}" ${DATABASE} -c "${QUERY}" -A -t` + else + log_debug "Executing query '${QUERY}'" + RESULT=`${CMD} ${DATABASE} -c "${QUERY}" -A -t` + fi + CODERESULT=$? + + echo ${RESULT} + echo + + if [[ ${CODERESULT} -ne 0 ]] + then + echo -n "FAILED TO EXECUTE QUERY: " + log_warning "${QUERY}" + if [[ "$2" != "fails" ]] + then + log_error "${QUERY}" + set_failed + fi + else + if [[ "$2" == "fails" ]] + then + log_error "QUERY: '${QUERY}' was expected to fail and it did not fail" + set_failed + fi + fi + + if [[ "$2" == "should" ]] + then + if [[ "${RESULT}" != "$3" ]] + then + log_error "QUERY '${QUERY}' expected result '${3}' but got '${RESULT}'" + set_failed + fi + fi + fi +} + +function log_info() +{ + echo + echo + echo + _log "1;34m" "$1" +} + +function log_error() { + _log "1;31m" "$1" +} + +function log_debug() { + _log "1;32m" "> $1" +} + +function log_warning() { + _log "0;33m" "$1" +} + +function _log() { + echo -e "\033[$1$2\033[0m" +} + +# '############################ HELPERS #############################' + + +function run_tests() { + local FAILED_TESTS=() + local TESTS + + MODE="$1" + if [[ $MODE = "api" ]] + then + SQL_API_ROUTE="$2" + API_KEY="$3" + TEST_TYPE="$4" + fi + if [[ $MODE = "db" ]] + then + DATABASE="$2" + ROLE="$3" + TEST_TYPE="$4" + fi + + if [[ $# -ge 4 ]] + then + if [[ $TEST_TYPE = "data" ]] + then + TESTS=`cat data/test.sh| perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` + elif [[ $TEST_TYPE = "functions" ]] + then + TESTS=`cat functions/test.sh| perl -n -e'/function (test.*)\(\)/ && print "$1\n"'` + fi + else + TESTS="$@" + fi + for t in ${TESTS} + do + echo "####################################################################" + echo "#" + echo "# Running: ${t}" + echo "#" + echo "####################################################################" + clear_partial_result + eval ${t} + if [[ ${PARTIALOK} -ne 0 ]] + then + FAILED_TESTS+=(${t}) + fi + done + if [[ ${OK} -ne 0 ]] + then + echo + log_error "The following tests are failing:" + printf -- '\t%s\n' "${FAILED_TESTS[@]}" + else + echo + log_info "Test finished" + fi +} + + +run_tests $@ + +exit ${OK}