Hi List,<br><br>I have a problem with the edit plugin, I insert two points on the map of my project but send this error:<br><br><pre style="border: 0pt none ;">Class : SoapFaultWrapper<br>Message : Unable to insert feature in edit database Message: DB Error: unknown error Userinfo: INSERT INTO public.edit_point (the_geom , name, surname, place, age) VALUES (GeometryFromText('POINT()', 4326) , 'e', 'e', 'e', '1') [nativecode=ERROR: Invalid OGC WKT (too short)]<br>
Backtrace:<br><br>file: 281 - C:\ms4w\apps\cartoweb3\plugins\edit\server\ServerEdit.php<br>call: Utils::checkDbError(Object(DB_Error), "Unable to insert feature in edit database")<br><br>file: 601 - C:\ms4w\apps\cartoweb3\plugins\edit\server\ServerEdit.php<br>
call: ServerEdit->insertFeature(Object(Feature))<br><br>file: 74 - C:\ms4w\apps\cartoweb3\server\ServerPluginHelper.php<br>call: ServerEdit->handlePreDrawing(Object(EditRequest))<br><br>file: 132 - C:\ms4w\apps\cartoweb3\server\ServerPluginHelper.php<br>
call: ServerPluginHelper->callHandleFunction(Object(ServerEdit), "handlePreDrawing")<br><br>file: UNKNOWN - UNKNOWN<br>call: ClientResponderHelper->handlePreDrawingHelper(Object(ServerEdit))<br><br>file: 267 - C:\ms4w\apps\cartoweb3\common\PluginManager.php<br>
call: call_user_func_array(Array(2), Array(1))<br><br>file: 285 - C:\ms4w\apps\cartoweb3\common\PluginManager.php<br>call: PluginManager->callPluginImplementing(Object(ServerEdit), "ClientResponder", "handlePreDrawing", Array(0))<br>
<br>file: 301 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php<br>call: PluginManager->callPluginsImplementing("ClientResponder", "handlePreDrawing")<br><br>file: 349 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php<br>
call: Cartoserver->doGetMap(Object(MapRequest))<br><br>file: 370 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php<br>call: Cartoserver->callWithExceptionCheck("doGetMap", Object(MapRequest))<br><br>file: 76 - C:\ms4w\apps\cartoweb3\server\MapResultCache.php<br>
call: Cartoserver->cacheGetMap(Object(MapRequest))<br><br>file: 107 - C:\ms4w\apps\cartoweb3\server\MapResultCache.php<br>call: MapResultCache->getMapResultFromServer(Object(MapRequest))<br><br>file: 190 - C:\ms4w\apps\cartoweb3\server\MapResultCache.php<br>
call: MapResultCache->cacheMapResult(Object(MapRequest))<br><br>file: 380 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php<br>call: MapResultCache->getMap(Object(MapRequest))<br><br>file: 104 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php<br>
call: Cartoserver->getMap(Object(MapRequest))<br><br>file: 165 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php<br>call: CartoserverService->callDirect("getMap", Object(MapRequest))<br><br>file: 233 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php<br>
call: CartoserverService->callFunction("getMap", Object(MapRequest))<br><br>file: 948 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php<br>call: CartoserverService->getMap(Object(MapRequest))<br><br>file: 1086 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php<br>
call: Cartoclient->getMapResultFromRequest(Object(MapRequest))<br><br>file: 1261 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php<br>call: Cartoclient->doMain()<br><br>file: 38 - C:\ms4w\apps\cartoweb3\htdocs\client.php<br>
call: Cartoclient->main()<br><br><br></pre>I print the request with print_r($_REQUEST); in the handleHttpPostRequest function and show this:<br><br>Array ( [map] => C:/ms4w/apps/cartoweb3/projects/SIGGuayaquil/server_conf/SIGGuayaquil/SIGGuayaquil.map [program] => /cgi-bin/mapserv.exe [posted] => 1 [js_folder_idx] => 9 [selection_type] => [selection_coords] => [features] => [project] => SIGGuayaquil [collapse_keymap] => 0 [fake_reset] => [fake_query] => [outline_label_text] => your label [tool] => edit_move [recenter_doit] => 0 [recenter_scale] => 0 [mapsize] => 1 <br>
<br><b>[edit_feature_1233969518932972] => Array ( [name] => e [surname] => e [place] => e [age] => 1 [WKTString] => POINT() [operation] => insert ) <br><br>[edit_selected] => 1233969518932972 <br><br>
[edit_feature_1233969519340913] => Array ( [name] => t [surname] => t [place] => t [age] => 2 [WKTString] => POINT(151691.3757677 610088.2238095239) [operation] => insert ) <br></b><br><br>[openNodes] => [layers] => Array ( [0] => manzanas [1] => metrovia [2] => ruta [3] => edit_point ) [outline_mask] => no [outline_point_symbol] => circle [outline_point_size] => 10 [outline_point_color] => #0000cd [outline_point_transparency] => 100 [outline_line_size] => 3 [outline_line_color] => #ff0000 [outline_line_transparency] => 100 [outline_polygon_outline_color] => #000000 [outline_polygon_background_color] => #ff9900 [outline_polygon_transparency] => 60 [routing_from] => 24 [routing_to] => 24 [id_recenter_layer] => metrovia [id_recenter_ids] => [pdfMarginX] => 20 [pdfMarginY] => 20 [pdfA4x] => 210 [pdfA4y] => 297 [pdfA3x] => 297 [pdfA3y] => 420 [pdfFormat] => A4 [pdfResolution] => 96 [pdfScale] => 100000 [pdfOrientation] => portrait [pdfMapAngle] => [pdfMapCenterX] => [pdfMapCenterY] => [pdfTitle] => SIG Guayaquil [pdfNote] => [pdfLegend] => 0 [query_alllayers] => 1 [query_layerid] => Array ( [0] => metrovia [1] => ruta ) [query_hilight] => Array ( [0] => metrovia [1] => ruta ) [query_attributes] => Array ( [0] => metrovia [1] => ruta ) [query_table] => Array ( [0] => metrovia [1] => ruta ) [query_policy_0] => POLICY_XOR [query_maskmode] => Array ( [0] => metrovia [1] => ruta ) [query_policy_1] => POLICY_XOR [edit_layer] => edit_point [edit_validate_all] => 1 [LangCookie] => es [TestCookie] => OK [authchallenge] => fd71df2f4ec71f1315e68a4fe1871fef [PHPSESSID] => c46f9533cf682a7bb3117ce04255f8fb ) <br>
<br>Why in the second point appears <b>[WKTString] => POINT(151691.3757677 610088.2238095239) </b>and in the first point appear<b> </b><b>[WKTString] => POINT()</b>?, because in the demoEdit works fine but in my project don't work =(, thanks for your help =).<br>
<br clear="all">Thaks and regards,<br>Karol<br>