Hi Ramkumar<br><br>If you are new to Cartoweb, it may be a good idea to do the tutorial available there <a href="http://www.cartoweb.org/cwiki/Foss4g06Workshops">http://www.cartoweb.org/cwiki/Foss4g06Workshops</a> (if you havent already do it).<br>
<br>be sure you have read in details the chapter 2, 3 and 4 of the documentations:<br><a href="http://www.cartoweb.org/doc_head/docbook/xhtml/user.structure.html">http://www.cartoweb.org/doc_head/docbook/xhtml/user.structure.html</a><br>
<a href="http://www.cartoweb.org/doc_head/docbook/xhtml/user.project.html">http://www.cartoweb.org/doc_head/docbook/xhtml/user.project.html</a><br><a href="http://www.cartoweb.org/doc_head/docbook/xhtml/user.config.html">http://www.cartoweb.org/doc_head/docbook/xhtml/user.config.html</a><br>
<br>the edit plugin only works with postgis layers.<br>If the data you want to edit is now in shapefile, you need to import
those shapefiles into postgis using shp2pgsql
(<a href="http://www.google.ch/search?q=shp2pgsql">http://www.google.ch/search?q=shp2pgsql</a>)<br><br>when you want to edit a layers attributes, you need to add in the mapfile for the related layer the metadata specified in the documentation (<a href="http://www.cartoweb.org/doc_head/docbook/xhtml/user.edit.html">http://www.cartoweb.org/doc_head/docbook/xhtml/user.edit.html</a>).<br>
the plugin will look at these metadatas and automatically generate an html form so people can edit the values.<br><br>several parameters are needed to configure the edit plugin, this is also explained in the documentation <a href="http://www.cartoweb.org/doc_head/docbook/xhtml/user.edit.html">http://www.cartoweb.org/doc_head/docbook/xhtml/user.edit.html</a> .<br>
<br>you can hide some parameter if you dont want people to see/edit them, or you can change the way they are displayed (at the moment, only normal input or textarea are supported natively, if you want to implement dropdown menu, have a look at the wiki page <a href="http://www.cartoweb.org/cwiki/HowToAddDropdownInEditPlugin">http://www.cartoweb.org/cwiki/HowToAddDropdownInEditPlugin</a> ).<br>
<br>also, if your data is in lat/lon, then the postgis layer will also be in lat/lon. You may possibly have to specify the "USING SRID" additional parameter in your mapfile.<br><br>to enable query on the editable layers, all you have to do is to add the following parameter to the layer in the mapfile:<br>
TEMPLATE "ttt"<br><br>it is explained in the documentation <br><a href="http://www.cartoweb.org/doc_head/docbook/xhtml/user.query.html#user.query.mapfile">http://www.cartoweb.org/doc_head/docbook/xhtml/user.query.html#user.query.mapfile</a><br>
<br>regards<br>Oliver<br><br><div class="gmail_quote">2010/4/28 Ramkumar Acharyulu <span dir="ltr"><<a href="mailto:ramkumaracharyulu@gmail.com">ramkumaracharyulu@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Christen,<br><br>That was really great. It just went through successfully. thanks a lot<br>But, still i have some queries - <br>1) How do i fill in attributes for the features i add?<br>2) My project requirement is to handle data that is in Geography Lat/Longs. Also, the related files i have are<br>
different shapefiles (layers) and a raster file (map). How do i go about this. Please educate me on this as i am new to Cartoweb and Map server. I am going through all the help available. I found that creating a proper MAP file should suffice my requirement. But, what about from cartoweb's side?<br>
3) If i want to enable queries in the same demoEdit project is it just adding the plugin name in the server_conf and client_conf files or any thing else?<br><br>Thank you once again.<br>Regards.<br><br>Ramkumar.<div><div>
</div><div class="h5"><br><br><div class="gmail_quote">
On Tue, Apr 27, 2010 at 12:48 PM, Oliver Christen <span dir="ltr"><<a href="mailto:oliver.christen@camptocamp.com" target="_blank">oliver.christen@camptocamp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">Hi</font></div>
<div><font size="2"></font> </div>
<div><font size="2">please check if you have an "oid" column in your table in
postgres.</font></div>
<div><font size="2">otherwise, you may try to you add a "using unique" in
your data string specifing the column id to use for unique
identifiant.</font></div>
<div><font size="2">edit the mapfile and look for the layers EDITPOLY, EDITLINE
and EDITPOINT and add the corresponding strings:</font></div>
<div><font size="2"></font> </div>
<div><font size="2">"using unique parc_id" for EDITPOLY</font></div>
<div><font size="2"></font> </div>
<div><font size="2">"using unique id" for EDITLINE and EDITPOINT</font></div>
<div><font size="2"></font> </div>
<div><font size="2">like this:</font></div>
<div><font size="2">DATA 'the_geom from (select the_geom, oid, parc_id, name,
culture, surf, parc_type from edit_poly) as foo using unique
parc_id'</font></div>
<div><font size="2">DATA 'the_geom from (select the_geom, oid, id, name, length
from edit_line) as foo using unique id'</font></div>
<div><font size="2">DATA 'the_geom from (select the_geom, oid, id, name, surname,
place, age from edit_point) as foo using unique id'</font></div>
<div><font size="2"></font> </div>
<div><font size="2">you may also have to add "using SRID=the_data_projection" if
the data projection is different from your mapfile projection</font></div>
<div><font size="2"></font> </div>
<div><font size="2">regards</font></div>
<div><font size="2">Oliver</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; padding-right: 0px; margin-left: 5px; margin-right: 0px;"><div><div></div><div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="ramkumaracharyulu@gmail.com" href="mailto:ramkumaracharyulu@gmail.com" target="_blank">Ramkumar Acharyulu</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="cartoweb-users@lists.maptools.org" href="mailto:cartoweb-users@lists.maptools.org" target="_blank">cartoweb-users@lists.maptools.org</a>
</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Tuesday, April 27, 2010 7:57
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> [Cartoweb-users] error
configuring demoEdit plugin</div>
<div><br></div>Dear Bruno,<br><br>I had a similar problem as reported by jefe,
as i used CW3.5 with PostGRE8.4/PostGIS 1.5.1.<br><br>Noting from your reply i
downgraded to PostGRE8.3 and PostGIS1.3.5. But the problem still
remains.<br>Could you please immediately help me as i need to complete a
project in time.<br><br>Let me repeat the error content:<br><br clear="all"><pre>FailureCartoWeb version: 3.5.0 [$Revision: 1.9 $]<br>> class: SoapFaultWrapper<br>> message: MapServer error: Error in msPOSTGISLayerRetrievePGVersion(): Error <br>
> executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select <br>> substring(version() from 12 for (position('on' in version()) - 13))<br>> <br>> Error in msPOSTGISLayerRetrievePGVersion(): Error executing POSTGIS statement <br>
> (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for <br>> (position('on' in version()) - 13))<br>> <br>> Error in msPOSTGISLayerRetrievePGVersion(): Error executing POSTGIS statement <br>
> (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for <br>> (position('on' in version()) - 13))<br>> <br>> <br>> Backtrace:<br>> <br>> file: 230 - C:\ms4w\apps\cartoweb3\coreplugins\images\server\ServerImages.php<br>
> call: ServerContext->checkMsErrors()<br>> <br>> file: 311 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php<br>> call: ServerImages->drawMainmap(Object(Images))<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</pre><br>--
<br>N. Ram kumar Acharyulu<br>
</div></div><p>
</p><hr>
<p></p>_______________________________________________<br>Cartoweb-users
mailing
list<br><a href="mailto:Cartoweb-users@lists.maptools.org" target="_blank">Cartoweb-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/cartoweb-users" target="_blank">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a><br>
</blockquote></div>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>N. Ram kumar Acharyulu<br>
</font></blockquote></div><br>