[Mapbender-users] onBeforeSave in Digitizer
Gal Zsolt
zsolt.gal at satelitnt.com
Mon Feb 20 21:27:00 PST 2023
Hello List!
I use in digitizer (Mapbender 3.0.8.5) this code:
onBeforeSave: |
…………..
$stmnt = $this->getConnection()->prepare($strQuery);
$stmnt->execute();
$result = $stmnt→fetchAll();
…………
and works.
Now I try this in Mapbender 3.3.0 and $result is empty(?) I searchthedocumentation where I found the sample that I useas starting pointfor my code:
events:
onBeforeInsert: |
$sql = "SELECT
ST_Line_Interpolate_Point('".$item['geomline']."'::geometry, 1) as geom";
$stmnt = $this->getConnection()->prepare($sql);
$stmnt->execute();
$result = $stmnt->fetchAll();
$item['geompoi'] = $result[0]['geom'];
Something has changed in Mapbender 3.3.0 and it’s Digitizer version?
I will appreciate any help!
Thanks.
Zsolt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20230221/aa2ff38c/attachment.htm>
More information about the Mapbender_users
mailing list