<div>Thanks Brent</div><div> </div><div>Actually the problem was in my layer.ini and .map file.</div><div> </div><div>Could you please guide me in making delete service too.</div><div> </div><div>What I did sofar:</div><div>

 </div><div>Step 1)</div><div> </div><div> </div><div>&lt;service name=&quot;modify_point&quot;&gt;<br>        &lt;url&gt;php/editor.php&lt;/url&gt;<br>        &lt;step type=&#39;spatial&#39; name=&#39;feature:wkb_geometry&#39; line=&#39;false&#39; polygon=&#39;false&#39; point=&#39;true&#39; default=&#39;point&#39; edit-point=&#39;true&#39;&gt; </div>

<div>                &lt;input type=&quot;hidden&quot; name=&quot;op&quot; value=&quot;update&quot;/&gt;<br>                &lt;input type=&quot;hidden&quot; name=&quot;table&quot; value=&quot;test_points&quot;/&gt;<br>                &lt;input type=&quot;hidden&quot; name=&quot;feature:feature_id&quot;/&gt;<br>

                &lt;input type=&quot;user&quot; name=&quot;feature:attribute1&quot; title=&quot;attribute1:&quot;/&gt;<br>                &lt;input type=&quot;user&quot; name=&quot;feature:attribute2&quot; title=&quot;attribute2:&quot;/&gt;<br>

        &lt;/step&gt;<br>&lt;/service&gt;</div><div> </div><div> </div><div>&lt;service name=&quot;delete_point&quot;&gt;<br>        &lt;url&gt;php/editor.php&lt;/url&gt;<br>        &lt;step type=&#39;input&#39;&gt;<br>                &lt;input type=&quot;hidden&quot; name=&quot;op&quot; value=&quot;delete&quot;/&gt;<br>

                &lt;input type=&quot;hidden&quot; name=&quot;table&quot; value=&quot;test_points&quot;/&gt;<br>                &lt;input type=&quot;hidden&quot; name=&quot;feature:feature_id&quot;/&gt; </div><div>        &lt;/step&gt;<br>

&lt;/service&gt;</div><div><br>Step 2) </div><div> </div><div>    &lt;tool name=&quot;delete_point&quot; title=&quot;Delete Point&quot; type=&quot;service&quot; service=&quot;delete_point&quot;/&gt; (gives me message of &quot;No Feature ID specified to delete.&quot;)</div>
<div> </div><div>
Step 3) identify.html</div><div> </div><div>&lt;tr bgcolor=&quot;#AA55AA&quot;&gt;<br>    &lt;td&gt;Feature:&lt;/td&gt;&lt;td&gt;[feature_id]&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt; <br>    &lt;td&gt;Attribute1:&lt;/td&gt;&lt;td&gt;[attribute1]&lt;/td&gt;<br>

&lt;/tr&gt;<br>&lt;tr&gt;<br>&lt;td&gt;<br>     &lt;a href=&quot;javascript:GeoMOOSE.startService(&#39;modify_point&#39;, {&#39;feature:id&#39; : &#39;[feature_id]&#39;,&#39;feature:wkb_geometry&#39; : &#39;[wkt_geometry]&#39;, &#39;feature:attribute1&#39; : &#39;[attribute1]&#39;, &#39;feature:attribute2&#39; : &#39;[attribute2]&#39;})&quot;&gt;Edit&lt;/a&gt;<br>

&lt;/td&gt;<br>&lt;td&gt;<br>     &lt;a href=&quot;javascript:if(confirm(&#39;Are you sure you want to delete this?&#39;)) { GeoMOOSE.startService(&#39;delete_point&#39;, {&#39;feature:id&#39; : &#39;[feature_id]&#39;}); }&quot;&gt;Delete&lt;/a&gt;<br>

&lt;/td&gt;<br>&lt;/tr&gt;<br><br></div><div>Now what step I need to perform, e.g.,  my identify.html is not recognizing (i guess so) to start the service of modify_point or delete_point etc.</div><div> </div><div>Kindly check the URL and files path from here:</div>
<div> </div><div><a href="http://216.58.43.167/geomoose2/">http://216.58.43.167/<u></u>geomoose2/</a></div><div> </div><div><a href="http://216.58.43.167/geomoose2/geomoose.html" target="_blank">http://216.58.43.167/<u></u>geomoose2/geomoose.html</a><br>
</div><div> </div><div>Regards</div><div>Sana</div><div> </div><div> </div><div><br> </div><div class="gmail_quote">On Sun, Jan 29, 2012 at 2:37 PM, Brent Fraser <span dir="ltr">&lt;<a href="mailto:bfraser@geoanalytic.com" target="_blank">bfraser@geoanalytic.com</a>&gt;</span> wrote:<br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Since the error message says it can&#39;t find a column named &quot;id&quot; (and your table uses &quot;feature_id&quot; as the key column), I expect the problem is a configuration problem in your mapbook.xml file.  Check your column names in your service definitions (modify, delete, and especially add) in your mapbook.xml and confirm it has<br>



<br>
&lt;input type=&quot;hidden&quot; name=&quot;feature:feature_id&quot;/&gt;<br>
<br>
Best Regards,<br>
Brent Fraser<div><br>
<br>
<br>
On 1/29/2012 3:11 AM, sana butt wrote:<br>
</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div>
Hi Brent<br>
I have added polygon feature and its working, Now I have added point using the same criteria available at feature editor guide, but its not working.<br>
Could you please test the URL:<br>
<a href="http://216.58.43.167/geomoose2/geomoose.html" target="_blank">http://216.58.43.167/<u></u>geomoose2/geomoose.html</a><br>
and add point.<br>
What I have done so far:<br>
CREATE TABLE test_points<br>
(<br>
  feature_id integer NOT NULL,<br>
  attribute1 character varying(100),<br>
  attribute2 character varying(100),<br>
  wkb_geometry geometry,<br>
  CONSTRAINT pk_test_points PRIMARY KEY (feature_id)<br>
)<br>
CREATE SEQUENCE test_points_seq;<br>
insert into geometry_columns values (&#39;&#39;, &#39;public&#39;, &#39;test_points&#39;, &#39;wkb_geometry&#39;, 2, 24, &#39;GEOMETRY&#39;);<br>
and follow the instructions available in feature editor guide.<br>
I got this error in firefox.<br>
URL:<br>
</div><a href="http://216.58.43.167/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fgeomoose2%2Fmaps%2F%2Fdevelopment%2Ftest_points%2Ftest_points.map&amp;layers=points&amp;mode=map&amp;mapext=457196.607656+4917749.476731+517604.607656+4948205.476731&amp;imgext=457196.607656+4917749.476731+517604.607656+4948205.476731&amp;map_size=2517+1269&amp;imgx=1258.5&amp;imgy=634.5&amp;imgxy=2517+1269" target="_blank">http://216.58.43.167/cgi-bin/<u></u>mapserv.exe?map=%2Fms4w%<u></u>2Fapps%2Fgeomoose2%2Fmaps%2F%<u></u>2Fdevelopment%2Ftest_points%<u></u>2Ftest_points.map&amp;layers=<u></u>points&amp;mode=map&amp;mapext=457196.<u></u>607656+4917749.476731+517604.<u></u>607656+4948205.476731&amp;imgext=<u></u>457196.607656+4917749.476731+<u></u>517604.607656+4948205.476731&amp;<u></u>map_size=2517+1269&amp;imgx=1258.<u></u>5&amp;imgy=634.5&amp;imgxy=2517+1269</a> &lt;<a href="http://216.58.43.167/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fgeomoose2%2Fmaps%2F%2Fdevelopment%2Ftest_points%2Ftest_points.map&amp;layers=points&amp;mode=map&amp;mapext=457196.607656+4917749.476731+517604.607656+4948205.476731&amp;imgext=457196.607656+4917749.476731+517604.607656+4948205.476731&amp;map_size=2517+1269&amp;imgx=1258.5&amp;imgy=634.5&amp;imgxy=2517+1269" target="_blank">http://216.58.43.167/cgi-bin/<u></u>mapserv.exe?map=%2Fms4w%<u></u>2Fapps%2Fgeomoose2%2Fmaps%2F%<u></u>2Fdevelopment%2Ftest_points%<u></u>2Ftest_points.map&amp;layers=<u></u>points&amp;mode=map&amp;mapext=457196.<u></u>607656+4917749.476731+517604.<u></u>607656+4948205.476731&amp;imgext=<u></u>457196.607656+4917749.476731+<u></u>517604.607656+4948205.476731&amp;<u></u>map_size=2517+1269&amp;imgx=1258.<u></u>5&amp;imgy=634.5&amp;imgxy=2517+1269</a>&gt;<div>


<br>
Error:<br>
msDrawMap(): Image handling error. Failed to draw layer named &#39;points&#39;. prepare_database(): Query error. Error declaring cursor: ERROR: column &quot;id&quot; does not exist LINE 1: ...b_geometry)),&#39;NDR&#39;),<u></u>feature_id::text from (select id as feat... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(<u></u>force_2d(wkb_geometry)),&#39;NDR&#39;)<u></u>,feature_id::text from (select id as feature_id, attribute1, attribute2, astext(wkb_geometry) as wkt_geometry, wkb_geometry from test_points) as mytable WHERE wkb_geometry &amp;&amp; setSRID(&#39;BOX3D(457184.<u></u>796930448 4917749.476731,517616.<u></u>418381552 4948205.476731)&#39;::BOX3D, 24 )<br>



I dont know, where I made mistake in creating table, etc.<br>
Could you please help me solving this issue<br>
Regards<br>
Sana<br>
</div></blockquote>
<br>
</blockquote></div><br>