add explicit cast, else postgresql 9.5 will break (9.3 works fine)
[osmrrze.git] / scripts / osmbuildings-json-generator.pl
index a9b28f42efcde8bc13c3f976b1b802cd80c12b37..3a39357550c2fe6aadb9e8acbf1ae7b01af0cd65 100755 (executable)
@@ -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') {
This page took 0.06791 seconds and 4 git commands to generate.