[mapserver-users] ShapeObj delete
Steve Lime
steve.lime at dnr.state.mn.us
Tue Oct 22 13:15:02 PDT 2002
I think that's what you have to do. Shapefiles are not designed for
editing/deleting, but for fast retrieval. You could cache your edits
somehow so you only have to process the file once but I think you have
to produce a second (perhaps temporary) file...
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Guillaume SUEUR <guillaume.sueur at khi2.fr> 10/22/02 07:28AM >>>
Yes, it's an idea, but I was just hoping something more "clean" was
existing...
Thx
Lowell Filak wrote:
> One way to do it is to open the existing shapefile and create a
holder for the particular type of shape. Then loop through each shape
and copy them to a new shapefile. To delete a shape just skip writing
the deleted shape to the new shapefile. Then replace the old file with
the new.
> HTH
> Lowell F.
>
> The following message was sent by Guillaume SUEUR
<guillaume.sueur at khi2.fr> on Tue, 22 Oct 2002 10:57:21 +0200.
>
>
>>Hi folks,
>>I'm wondering about the possibility of deleting a ShapeObj from a
>>shapeFileObj with Mapscript. It is possible to add one, but if one
wants
>>to delete it afterwards, it doesn't seem to be any method for it. At
>>least I didn't find any.
>>Is it possible ?
>>
>>Thanks
>>---------------------------
>>Guillaume SUEUR
>>Ingénieur développement SIG
>>GEOSIGNAL
>>25bis Avenue Marcel Dassault
>>31505 TOULOUSE CEDEX 5
>>----------------------------
>
>
>
--
---------------------------
Guillaume SUEUR
Ingénieur développement SIG
GEOSIGNAL
25bis Avenue Marcel Dassault
31505 TOULOUSE CEDEX 5
----------------------------
More information about the MapServer-users
mailing list