X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?p=osmrrze.git;a=blobdiff_plain;f=scripts%2Fosmbuildings-json-generator.pl;h=3a39357550c2fe6aadb9e8acbf1ae7b01af0cd65;hp=a9b28f42efcde8bc13c3f976b1b802cd80c12b37;hb=b52504e9beda2aff5d328f3ad54cd975067f10bb;hpb=002b918b0df1e88b3b703d9d504e84fe3515d50c diff --git a/scripts/osmbuildings-json-generator.pl b/scripts/osmbuildings-json-generator.pl index a9b28f4..3a39357 100755 --- a/scripts/osmbuildings-json-generator.pl +++ b/scripts/osmbuildings-json-generator.pl @@ -177,7 +177,7 @@ foreach $xtable ('planet_osm_polygon1', 'planet_osm_polygon2', 'planet_osm_line' exit(1); } my $sth2 = $dbh->prepare("select ST_X(points) as x, ST_Y(points) as y" - . " from (select ST_astext((ST_dumppoints(ST_transform(?, 4326))).geom) as points) as points"); + . " from (select ST_astext((ST_dumppoints(ST_transform(geometry(?), 4326))).geom) as points) as points"); my $sth4 = $dbh->prepare("select (ST_dumprings(?)).geom as rings"); while ($row = $sth->fetchrow_hashref()) { if ($xtable eq 'planet_osm_polygon1') {