B. Thoen a �crit :

> On Sun, 8 Feb 2004, S�ren Lindqvist wrote:
>
>
>>I am planning to move my tab files to a catalogue on a server. There will be
>>3 to 4 users working with the map and I wonder if there is a simple easy way
>>to set this up. I want all the users to have ability to work with the map.
>>Any step by step to do this?
>
>
> There's no simple solution. MapInfo locks tab files as soon as someone
> makes a change and others cannot make edits on them until the first user
> commits the changes. You'll need to build some MapBasic tool that manages
> multi-user edits; probably something along the lines of copying records to
> a local table, allow edits, and then post them back to the master table.
> Good luck!

We are currently developping a solution based on locks at object level
and the use of temporary layers to modify objets :
1- open the tab file exclusively (no one can access it)
2- flag the objects you want to modify
3- close the tab file, so it becomes readable by everybody
4- reopen it "readonly"
5- copy the flagged objects in a temporary layer
6- made what you want with them
7- close tab file and open it for writing (no exclusive use)
8- update modified objects and clear flags
9- close tab file and erase temporary layer

the tab file is only locked during the steps 2 and 8, which are
very short (some tens of seconds in the worst case : you are not
doing this on more than a hundred objects

We developed this mainly as a library based on MapX, in order to
put Maps in some multiuser applications. We are going to do it for
MapInfo (with MapBasic + probably a C++ dll for the speed), but are
asking ourselves if we should wait for MapInfo 8.0 and a consistent
d�velopment sheme inside and outside MapInfo instead of dealing with
MapX on one side and MapBasic on the other side...

--
Michel Wurtz
MAAPAR/DGA/SDSI/CERIT/DIG


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10323

Reply via email to