[Cartoweb-users] Edit Plugin: Invalid OGC WKT (too short)

Oliver Christen oliver.christen at camptocamp.com
Thu Feb 12 09:06:33 EST 2009


Hi
my answer will be the same as last time. Somehow the point geometry is not handled correcte at the javascript level before being sent to the server.
but I cant say more than that without being able to test/debug the application directly

regards
Oliver
  ----- Original Message ----- 
  From: Karol Briones 
  To: cartoweb-users at lists.maptools.org 
  Sent: Saturday, February 07, 2009 2:46 AM
  Subject: [Cartoweb-users] Edit Plugin: Invalid OGC WKT (too short)


  Hi List,

  I have a problem with the edit plugin, I insert two points on the map of my project but send this error:


Class : SoapFaultWrapperMessage : 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)]
Backtrace:file: 281 - C:\ms4w\apps\cartoweb3\plugins\edit\server\ServerEdit.phpcall: Utils::checkDbError(Object(DB_Error), "Unable to insert feature in edit database")file: 601 - C:\ms4w\apps\cartoweb3\plugins\edit\server\ServerEdit.php
call: ServerEdit->insertFeature(Object(Feature))file: 74 - C:\ms4w\apps\cartoweb3\server\ServerPluginHelper.phpcall: ServerEdit->handlePreDrawing(Object(EditRequest))file: 132 - C:\ms4w\apps\cartoweb3\server\ServerPluginHelper.php
call: ServerPluginHelper->callHandleFunction(Object(ServerEdit), "handlePreDrawing")file: UNKNOWN - UNKNOWNcall: ClientResponderHelper->handlePreDrawingHelper(Object(ServerEdit))file: 267 - C:\ms4w\apps\cartoweb3\common\PluginManager.php
call: call_user_func_array(Array(2), Array(1))file: 285 - C:\ms4w\apps\cartoweb3\common\PluginManager.phpcall: PluginManager->callPluginImplementing(Object(ServerEdit), "ClientResponder", "handlePreDrawing", Array(0))
file: 301 - C:\ms4w\apps\cartoweb3\server\Cartoserver.phpcall: PluginManager->callPluginsImplementing("ClientResponder", "handlePreDrawing")file: 349 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php
call: Cartoserver->doGetMap(Object(MapRequest))file: 370 - C:\ms4w\apps\cartoweb3\server\Cartoserver.phpcall: Cartoserver->callWithExceptionCheck("doGetMap", Object(MapRequest))file: 76 - C:\ms4w\apps\cartoweb3\server\MapResultCache.php
call: Cartoserver->cacheGetMap(Object(MapRequest))file: 107 - C:\ms4w\apps\cartoweb3\server\MapResultCache.phpcall: MapResultCache->getMapResultFromServer(Object(MapRequest))file: 190 - C:\ms4w\apps\cartoweb3\server\MapResultCache.php
call: MapResultCache->cacheMapResult(Object(MapRequest))file: 380 - C:\ms4w\apps\cartoweb3\server\Cartoserver.phpcall: MapResultCache->getMap(Object(MapRequest))file: 104 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php
call: Cartoserver->getMap(Object(MapRequest))file: 165 - C:\ms4w\apps\cartoweb3\client\CartoserverService.phpcall: CartoserverService->callDirect("getMap", Object(MapRequest))file: 233 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php
call: CartoserverService->callFunction("getMap", Object(MapRequest))file: 948 - C:\ms4w\apps\cartoweb3\client\Cartoclient.phpcall: CartoserverService->getMap(Object(MapRequest))file: 1086 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php
call: Cartoclient->getMapResultFromRequest(Object(MapRequest))file: 1261 - C:\ms4w\apps\cartoweb3\client\Cartoclient.phpcall: Cartoclient->doMain()file: 38 - C:\ms4w\apps\cartoweb3\htdocs\client.php
call: Cartoclient->main()I print the request with print_r($_REQUEST); in the handleHttpPostRequest function and show this:

  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 

  [edit_feature_1233969518932972] => Array ( [name] => e [surname] => e [place] => e [age] => 1 [WKTString] => POINT() [operation] => insert ) 

  [edit_selected] => 1233969518932972 

  [edit_feature_1233969519340913] => Array ( [name] => t [surname] => t [place] => t [age] => 2 [WKTString] => POINT(151691.3757677 610088.2238095239) [operation] => insert ) 


  [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 ) 

  Why in the second point appears [WKTString] => POINT(151691.3757677 610088.2238095239) and in the first point appear [WKTString] => POINT()?, because in the demoEdit works fine but in my project don't work =(, thanks for your help =).

  Thaks and regards,
  Karol



------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20090212/f2df3ea2/attachment.htm 


More information about the Cartoweb-users mailing list