<div>Hello List!<br></div><div><br></div><p style="line-height: 100%; margin-bottom: 0mm;">I use in digitizer (Mapbender 3.0.8.5) this code:<br></p><p style="line-height: 100%; margin-bottom: 0mm;"><br></p><p style="line-height: 100%; margin-bottom: 0mm;">onBeforeSave: |<br></p><p style="line-height: 100%; margin-bottom: 0mm;">…………..<br></p><p style="line-height: 100%; margin-bottom: 0mm;"><br></p><p style="line-height: 100%; margin-bottom: 0mm;">$stmnt =
$this->getConnection()->prepare($strQuery);<br></p><p style="line-height: 100%; margin-bottom: 0mm;">$stmnt->execute();<br></p><p style="line-height: 100%; margin-bottom: 0mm;">$result =
$stmnt→fetchAll();<br></p><p style="line-height: 100%; margin-bottom: 0mm;">…………<br></p><p style="line-height: 100%; margin-bottom: 0mm;">and works.<br></p><p style="line-height: 100%; margin-bottom: 0mm;">Now I try this in
Mapbender 3.3.0 and $result is empty(?) I search<span lang="hu-HU"> the </span>documentation where I found the sample that I use<span lang="hu-HU"> as starting point </span>for my code:<br></p><p style="line-height: 100%; margin-bottom: 0mm;"><br></p><p style="line-height: 100%; margin-bottom: 0mm;">events:<br></p><p style="line-height: 100%; margin-bottom: 0mm;">onBeforeInsert: |<br></p><p style="line-height: 100%; margin-bottom: 0mm;">$sql = "SELECT<br></p><p style="line-height: 100%; margin-bottom: 0mm;">ST_Line_Interpolate_Point('".$item['geomline']."'::geometry,
1) as geom";<br></p><p style="line-height: 100%; margin-bottom: 0mm;">$stmnt =
$this->getConnection()->prepare($sql);<br></p><p style="line-height: 100%; margin-bottom: 0mm;">$stmnt->execute();<br></p><p style="line-height: 100%; margin-bottom: 0mm;">$result =
$stmnt->fetchAll();<br></p><p style="line-height: 100%; margin-bottom: 0mm;">$item['geompoi']
= $result[0]['geom'];<br></p><p style="line-height: 100%; margin-bottom: 0mm;"><br></p><p style="line-height: 100%; margin-bottom: 0mm;"><span lang="hu-HU">S</span>omething
has changed in Mapbender 3.3.0 and it’s Digitizer version?<br></p><p style="line-height: 100%; margin-bottom: 0mm;"><br></p><div>I will appreciate any help!<br></div><div>Thanks.</div><div><br></div><div> Zsolt<br></div><div><br></div><div><br></div>