[Mapserver-users] Appending a shapefile
Palle Due Larsen
palle@mail-online.dk
Mon, 07 Apr 2003 16:21:32 +0200
It is implemented in Perl Mapscript. I use for adding shapes. It is also
possible to implement a simple type of locking, so that only one user
can update at a time.
Best regards
Palle Due Larsen
Carl Bro as
-----Original Message-----
From: "Stepan Kafka" <stepan.kafka@centrum.cz>
To: <dylan@visit27.com>, <mapserver-users@lists.gis.umn.edu>
Date: Thu, 3 Apr 2003 21:21:02 +0200
Subject: RE: [Mapserver-users] Appending a shapefile
> You can use ms_newShapefileObj function with type = -2 (see
> documentation).
> I use it frequently to add new shapes (point, line, poly) to
> shapefile.
> Remember, you have to add new record to dbase by your own! It work
> well in
> PHP-mapscript, I don't know, if it is implemented in other languages.
>
> Stepan Kafka
> Help Service Remote Sensing
> tel: +420-327514118
> mailto:kafka@email.cz
> http://www.bnhelp.cz
>
> > -----Původní zpráva-----
> > Od: mapserver-users-admin@lists.gis.umn.edu
> > [mailto:mapserver-users-admin@lists.gis.umn.edu]za uživatele Dylan
> > Rawlins
> > Odesláno: 3. dubna 2003 12:55
> > Komu: mapserver-users@lists.gis.umn.edu
> > Předmět: [Mapserver-users] Appending a shapefile
> >
> >
> > I need to find a way of creating a shapefile that allows users to
> > add points
> > to the file as well as attribute information that is collected
> > from a form.
> > I have managed to set it all up and it works fine except that it
> > only allows
> > one point (the latest one) to be stored. What I need to be able to
> do is
> > append to the theme rather than re-create it every time.
> >
> > What I am doing at the moment is storing each x and y coord in
> > the dbf file
> > as it is added - along with other attribute info. Then when the
> > user clicks
> > a point on the map I run a loop through the dbf file. The loop
> reads each
> > record and re-creates each point. Once the loop is finished I
> > create the new
> > point that has just been clicked and at the same time I update
> > the dbf file
> > with the new point's x and y etc. This is a bit messy but it works.
> >
> > Is there any better way of doing this?
> >
> > Many thanks
> > Dylan
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users@lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> >
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
Fĺ en gratis emailkonto her: www.mail-online.dk
-----------------------------------------------
Deltag i en lille brugerundersřgelse pĺ
nettet, og vind et gavekort pĺ 50.000 kroner..!
www.directoffice.dk/konkurrence
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users