Skip to content

Commit

Permalink
Cast OSM ID as INT as workaround for #48
Browse files Browse the repository at this point in the history
  • Loading branch information
mvl22 committed Mar 20, 2018
1 parent 6ee4f4d commit 52f842d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/cyiptModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function existingModel (&$error = false)
if ($layers[$layer]['fields']) {
$fields = array_merge ($fields, $layers[$layer]['fields']);
}
$fields[] = 'osmid';
$fields[] = 'CAST (osmid AS INT)';
$constraints = array (
"{$this->tablePrefix}roads.geotext && ST_MakeEnvelope(:w, :s, :e, :n, 4326)",
);
Expand Down

0 comments on commit 52f842d

Please sign in to comment.