[Geomoose-users] Feature Editor: Delete Geomatery, Polygon, Line, Point

sana butt sanaatifbutt85 at gmail.com
Mon Jan 30 06:46:22 EST 2012


Hi Brent



Could you please guide me in making delete service too.



What I did sofar:



Step 1)





<service name="modify_point">
        <url>php/editor.php</url>
        <step type='spatial' name='feature:wkb_geometry' line='false'
polygon='false' point='true' default='point' edit-point='true'>

                <input type="hidden" name="op" value="update"/>
                <input type="hidden" name="table" value="test_points"/>

                <input type="hidden" name="feature:feature_id"/>

                <input type="user" name="feature:attribute1"
title="attribute1:"/>
                <input type="user" name="feature:attribute2"
title="attribute2:"/>
        </step>
</service>




<service name="delete_point">
        <url>php/editor.php</url>
        <step type='input'>
                <input type="hidden" name="op" value="delete"/>
                <input type="hidden" name="table" value="test_points"/>

                <input type="hidden" name="feature:feature_id"/>

        </step>
</service>


Step 2)



    <tool name="delete_point" title="Delete Point" type="service"
service="delete_point"/> (gives me message of "No Feature ID specified to
delete." when I click tool button)



Step 3) identify.html



<tr bgcolor="#AA55AA">
    <td>Feature:</td><td>[feature_id]</td>
</tr>
<tr>
    <td>Attribute1:</td><td>[attribute1]</td>
</tr>
<tr>
<td>
     <a href="javascript:GeoMOOSE.startService('modify_point',
{'feature:id' : '[feature_id]','feature:wkb_geometry' : '[wkt_geometry]',
'feature:attribute1' : '[attribute1]', 'feature:attribute2' :
'[attribute2]'})">Edit</a>
</td>
<td>
     <a href="javascript:if(confirm('Are you sure you want to delete
this?')) { GeoMOOSE.startService('delete_point', {'feature:id' :
'[feature_id]'}); }">Delete</a>
</td>
</tr>



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. My
identify.html files are stored at the path : geomoose2\maps\development\
(these directories also contain map files e.g., test_polygons.map file etc.)



Kindly check the URL and files path from here:



http://216.58.43.167/geomoose2/



http://216.58.43.167/geomoose2/geomoose.html



Regards

Sana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120130/c4fcb29a/attachment.html


More information about the Geomoose-users mailing list