<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2>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.</FONT></DIV>
<DIV><FONT size=2>but I cant say more than that without being able to test/debug
the application directly</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=karolitab@gmail.com href="mailto:karolitab@gmail.com">Karol
Briones</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, February 07, 2009 2:46
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Edit Plugin:
Invalid OGC WKT (too short)</DIV>
<DIV><BR></DIV>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-RIGHT: 0pt; BORDER-TOP: 0pt; BORDER-LEFT: 0pt; BORDER-BOTTOM: 0pt">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>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>