[mapserver-users] Problem with loading map file using C# map script
Murty Maganti
MMaganti at oriongis.com
Wed Feb 18 09:49:15 PST 2009
Hi Tamas
I have created a test application and the issue is easily replicable. It
is VS 2008 project. If you are using VS 2005, then please grab the code
from Form1.cs into a new project ( I have removed the bin\debug folder
to reduce the attachment size. Please make sure to copy the map server
binaries)
Issue is easily replicable. I have a layer called 'Layer' in two data
folders 'data1' and 'data2'. Data1\Layer has field named 'ABCD' and
data2\Layer has field named 'PQRS'. Watch for the values of field1 and
field2 variables in the code. You will find the name is same.
Please let me know if you need more details.
Thanks
Murty
From: Tamas Szekeres [mailto:szekerest at gmail.com]
Sent: Tuesday, February 17, 2009 6:33 PM
To: Murty Maganti
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Problem with loading map file using C#
map script
Hmmm. I haven't found such an issue before.
If you could post an example that would be helpful to reproduce this.
Best regards,
Tamas
2009/2/18 Murty Maganti <MMaganti at oriongis.com>
Hi
I have a issue loading a map file through map script and need help.
I have two map info (tab) files with same name but in two different
folders. I have two map files each containing each layer. I am loading
these map files using C# map script (each map file is loaded in to a
separate mapObj on a separate thread). At run time, when I debug the
second mapObj, the layer has items (layerObj.getItem()) from the first
layer loaded by the first map file. I verified 'shapepath' on mapObj and
it is pointing to correct path. There is nothing wrong there. I am
surprised how is it caching the item info, just by the file name (file
name is same but they are completely from different folders).
When I load the map file one more time (again a different .Net thread,
it shows up correct fields).
Within my app (Asp.Net), I can consistently replicate this.
Thanks
Murty
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090218/b228a34a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MapInfoIssue.zip
Type: application/x-zip-compressed
Size: 80854 bytes
Desc: MapInfoIssue.zip
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090218/b228a34a/attachment.bin>
More information about the MapServer-users
mailing list