<div>Hi Brent</div><div> </div><div>This docs has only explained the delete  and modify polygon servies as follow:</div><div> </div><div>&lt;service name=&quot;delete_polygon&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_polygons&quot;/&gt;<br>
                &lt;input type=&quot;hidden&quot; name=&quot;feature:polygon_id&quot;/&gt;<br>        &lt;/step&gt;<br>&lt;/service&gt;</div><div> </div><div>similarly, modify_polygon service as</div><div> </div><div>&lt;service name=&quot;modify_polygon&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;true&#39; point=&#39;false&#39; default=&#39;point&#39; edit-polygon=&#39;true&#39;&gt; &lt;!-- It&#39;s necessary to specify that the polygon editor be turned on, the rest of the options are CREATION functions --&gt;<br>
                &lt;input type=&quot;hidden&quot; name=&quot;op&quot; value=&quot;update&quot;/&gt;<br>                &lt;!-- This just changes the option to &#39;update&#39; instead of &#39;create&#39; --&gt;<br>                &lt;input type=&quot;hidden&quot; name=&quot;table&quot; value=&quot;test_polygons&quot;/&gt;<br>
                &lt;input type=&quot;hidden&quot; name=&quot;feature:polygon_id&quot;/&gt;<br>                &lt;input type=&quot;user&quot; name=&quot;feature:title&quot; title=&quot;Title:&quot;/&gt;<br>                &lt;input type=&quot;user&quot; name=&quot;feature:owner&quot; title=&quot;Owner:&quot;/&gt;<br>
        &lt;/step&gt;<br>&lt;/service&gt;</div><div> </div><div> </div><div>If you talking about these steps, then I have already done with them. I dont know, maybe something else conflicting or left to be perfromed.</div>
<div> </div><div>The URL for checking the results so far (use firefox to open): <a href="http://141.117.248.26/geomoose2/geomoose.html">http://141.117.248.26/geomoose2/geomoose.html</a></div><div> </div><div>You can check my mapbook.xml or anyother documents related to the feature_editor_configuration from this URL, I put all configuration files together in one folder; acessable at:   <a href="http://141.117.248.26/geomoose2/Development_Docs/">http://141.117.248.26/geomoose2/Development_Docs/</a></div>
<div> </div><div> e.g., mapbook.xml can be accessed at URL= <a href="http://141.117.248.26/geomoose2/Development_Docs/conf/mapbook.xml">http://141.117.248.26/geomoose2/Development_Docs/conf/mapbook.xml</a></div><div> </div>
<div> </div><div>Best Regards and Thanks for quick response</div><div> </div><div>Atif</div><div> </div><div> </div><div> </div><div> </div><div> </div><div> </div><div> </div><div> </div><div> </div><div><br><br> </div><div class="gmail_quote">
On Sun, Dec 11, 2011 at 3:37 PM, Brent Fraser <span dir="ltr">&lt;<a href="mailto:bfraser@geoanalytic.com">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">

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Have a look at<br>
    <br>
    <a href="http://www.geomoose.org/docs/feature_editor.html" target="_blank">http://www.geomoose.org/docs/feature_editor.html</a><br>
    <pre cols="72">Best Regards,
Brent Fraser</pre><div><div></div><div class="h5">
    <br>
    On 12/11/2011 1:24 PM, Atif Butt wrote:
    <blockquote type="cite">
      <div>I got your point now, I was thinking it may be setup already.</div>
      <div> </div>
      <div>Any how from where you want me to start (any document
        reference or URL talking about delete and modify service  ), Or
        you suggest me to see the builtin service of geomoose (in
        relation to modify /delete polygon).</div>
      <div> </div>
      <div>Give me your suggestions</div>
      <div> </div>
      <div>Thanks and regards</div>
      <div>Atif<br>
        <br>
      </div>
      <div class="gmail_quote">On Sun, Dec 11, 2011 at 3:18 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">
          <div text="#000000" bgcolor="#FFFFFF"> Atif,<br>
            <br>
              The Feature Editor doc on the Geomoose site uses the
            results of the Identify operation to render a link to delete
            the selected feature.  Your mapbook creates a
            &quot;delete_polygon&quot; button on the tool bar referencing the a
            delete_polygon service:<br>
            <br>
            <tt>&lt;service name=&quot;delete_polygon&quot;&gt;<br>
                &lt;url&gt;php/editor.php&lt;/url&gt;<br>
                &lt;step type=&quot;input&quot;&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_polygons&quot;/&gt;<br>
                  &lt;input type=&quot;hidden&quot; name=&quot;feature:polygon_id&quot;/&gt;<br>
                &lt;/step&gt;<br>
              &lt;/service&gt;</tt><br>
            <br>
            Since your service has no spatial step (only a form input
            step), there is no way for the user to select the polygon to
            delete.  <br>
            <br>
              You need to look at the Feature Editor doc and get your
            editing functions working as documented first, then you
            would be in a better position to expand it by adding tool
            bar buttons to do delete and modify.<br>
            <pre cols="72">Best Regards,
Brent Fraser</pre>
            <div>
              <div> <br>
                On 12/11/2011 12:54 PM, Atif Butt wrote:
                <blockquote type="cite"><span lang="EN">
                    <div>Hi Brent</div>
                    <div> </div>
                    <div>I used the following code, for the
                      identify.html file.</div>
                    <div> </div>
                    <div>Kindly have a look. <a href="http://141.117.248.26/geomoose2/geomoose.html" target="_blank">http://141.117.248.26/geomoose2/geomoose.html</a></div>
                    <div> </div>
                    <div> </div>
                    <div> </div>
                    <div>&lt;!-- MapServer Template --&gt;</div>
                    <p>&lt;tr bgcolor=&quot;#AA55AA&quot;&gt;</p>
                    <p> &lt;td colspan=&quot;2&quot;&gt;&lt;b&gt;[title]
                      ([polygon_id])&lt;/b&gt;&lt;/td&gt;</p>
                    <p>&lt;/tr&gt;</p>
                    <p>&lt;tr&gt; </p>
                    <p>
                      &lt;td&gt;Owner:&lt;/td&gt;&lt;td&gt;[owner]&lt;/td&gt;</p>
                    <p>&lt;/tr&gt;</p>
                    <p>&lt;tr&gt;</p>
                    <p>&lt;td&gt;</p>
                    <p> &lt;a href=<a>&quot;javascript:GeoMOOSE.startService(&#39;modify_polygon&#39;,

                        {&#39;feature:polygon_id&#39; :
                        &#39;[polygon_id]&#39;,&#39;feature:wkb_geometry&#39; :
                        &#39;[wkt_geometry]&#39;, &#39;feature:title&#39; : &#39;[title]&#39;,
                        &#39;feature:owner&#39; : &#39;[owner]&#39;})&quot;</a>&gt;Edit&lt;/a&gt;</p>
                    <p>&lt;/td&gt;</p>
                    <p>&lt;td&gt;</p>
                    <p> &lt;a href=<a>&quot;javascript:if(confirm(&#39;Are
                        you sure you want to delete this?&#39;)) {
                        GeoMOOSE.startService(&#39;delete_polygon&#39;,
                        {&#39;feature:polygon_id&#39; : &#39;[polygon_id]&#39;}); }&quot;</a>&gt;Delete&lt;/a&gt;</p>
                    <p>&lt;/td&gt;</p>
                    <p>&lt;/tr&gt;</p>
                  </span>
                  <div> </div>
                  <div>Secondly, why the above geomoose link can only be
                    working inside firefox, why not IE, and chrome, etc.
                    Do you have any idea ?</div>
                  <div><br>
                    Best regards</div>
                  <div> </div>
                  <div>Atif<br>
                  </div>
                  <div> </div>
                  <div> </div>
                  <div> </div>
                  <div class="gmail_quote">On Wed, Dec 7, 2011 at 10:20
                    AM, 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">
                      <div text="#000000" bgcolor="#FFFFFF"> Well the
                        PHP is pretty simple for the delete:<br>
                        <br>
                            } else if($operation == &#39;delete&#39;) {<br>
                                    if($feature_info[$primaryKeyColumn]
                        &lt; 1) {<br>
                                            print &#39;No Feature ID
                        specified to delete.&lt;br/&gt;&#39;;<br>
                                            die;<br>
                                    }<br>
                        <br>
                        So what that tells me is that the value passed
                        from the browser is &lt;1.  Possibly your
                        identity.html has a syntax problem?  And what is
                        the content of the &quot;Delete&quot; link when you do an
                        identify on the polygon?<br>
                        <br>
                        <pre cols="72">Best Regards,
Brent Fraser</pre>
                        <div>
                          <div> <br>
                            On 12/6/2011 11:03 PM, Atif Butt wrote:
                            <blockquote type="cite">
                              <p>Yes</p>
                              <p> </p>
                              <p>this is my test_polygon.ini file
                                settings</p>
                              <p> </p>
                              <p>; Basic Connection Information<br>
                                       host=localhost<br>
                                       dbname=postgis<br>
                                       username=postgres<br>
                                       password=xxxxxxx</p>
                              <p>; Table Information<br>
                                       tablename=test_polygons<br>
                                       geometry_column=wkb_geometry<br>
                                       primary_key_column=polygon_id<br>
                                      
                                primary_key_sequence=test_polygons_seq<br>
                                       srid=26915</p>
                              <p>; Required Columns<br>
                                ; This is a comma separated list of
                                columns required<br>
                                ; for creating or updating features in
                                this layer<br>
                                     
                                required_for_create=wkb_geometry,title<br>
                                      required_for_update=title</p>
                              <p> </p>
                              <p>; GeoMOOSE Information<br>
                                       layerpath=poly_editor/polygons</p>
                              <p><br>
                                 </p>
                              <div>Regards</div>
                              <div> </div>
                              <div>Atif</div>
                              <div> </div>
                              <div> </div>
                              <div> </div>
                              <div><br>
                                <br>
                                 </div>
                              <div class="gmail_quote">On Tue, Dec 6,
                                2011 at 11:24 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">
                                  <div text="#000000" bgcolor="#FFFFFF">
                                    Do you have the primary_key_column
                                    defined in the ini file?<br>
                                    <pre cols="72">Best Regards,
Brent Fraser</pre>
                                    <div>
                                      <div> <br>
                                        On 12/6/2011 7:24 PM, Atif Butt
                                        wrote: </div>
                                    </div>
                                    <blockquote type="cite">
                                      <div>
                                        <div>
                                          <p>Hi</p>
                                          <p> </p>
                                          <p>Is there any other steps
                                            needs to do (except written
                                            inside the feature editor
                                            document) for
                                            &quot;polygon_update and
                                            ploygon_delete&quot;. Because
                                            after doing these steps,
                                            when I use update polygon
                                            feature I am getting this
                                            message (1No Feature ID
                                            available for update.) and
                                            when I use delete_polygon
                                            tool, it says &quot;No Feature ID
                                            specified to delete.&quot; </p>
                                          <p> </p>
                                          <p>I think something is
                                            missing.</p>
                                          <p> </p>
                                          <p>kindly check (<a href="http://99.243.192.221/geomoose2/geomoose.html" target="_blank">http://99.243.192.221/geomoose2/geomoose.html</a>)
                                            and give me your
                                            suggestions.</p>
                                          <p> </p>
                                          <p>Best Regards</p>
                                          <p>Atif</p>
                                          <br>
                                          <fieldset></fieldset>
                                          <br>
                                        </div>
                                      </div>
                                      <pre>_______________________________________________
Geomoose-users mailing list
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
</pre>
                                    </blockquote>
                                  </div>
                                </blockquote>
                              </div>
                              <br>
                            </blockquote>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </div></div></div>

</blockquote></div><br>