[Tile-serving] [osm2pgsql] Fix multi tags redeclaration (#337)

Paul Norman notifications at github.com
Mon Apr 20 22:16:41 UTC 2015


> +  run_osm2pgsql(options);
> +
> +  // start a new connection to run tests on
> +  pg::conn_ptr test_conn = pg::conn::connect(conninfo);
> +
> +  // expect that the table exists
> +  check_count(test_conn, 1, "select count(*) from pg_catalog.pg_class where relname = 'test_poly'");
> +
> +  // expect 2 polygons if not in multi(geometry) mode, or 1 if multi(geometry)
> +  // mode is enabled.
> +  if (enable_multi) {
> +    check_count(test_conn, 1, "select count(*) from test_poly");
> +    check_count(test_conn, 1, "select count(*) from test_poly where foo='bar'");
> +    check_count(test_conn, 1, "select count(*) from test_poly where bar='baz'");
> +
> +    // this should be a 2-pointed multipolygon

2-polygoned multipolygon, not 2-pointed?

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/337/files#r28735096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150420/54d468bc/attachment-0001.html>


More information about the Tile-serving mailing list