C# MapScript - Extent of mapObj not set after object creation

Tamas Szekeres szekerest at GMAIL.COM
Thu Jun 22 15:47:57 EDT 2006


Hi,

Are the other parameters correct like p_map.name?

Could you post a bug report attaching the sample code and the map file?

Best Regards,

Tamas 

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Hong
Sent: Thursday, June 22, 2006 8:42 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] C# MapScript - Extent of mapObj not set after
object creation

Hello,

I have experienced problem using C# MapScript where I tried to create a
mapObj
using the mapObj constructor from a map file, after the object creation, the
extent are not set properly.

The mapfile "odessa.map" is as follows.

NAME ODESSA
STATUS on 
SIZE 684 592
EXTENT -104.10235082418987 29.77884364609445 -101.64625194665918
32.52517088808842
...

I used VB.NET to create the object:

Dim p_map as mapObj = new mapObj("odessa.map")

Tracking p_map through a debugger after object creation revealed that:
p_map.extent.minx, p_map.extent.miny, p_map.extent.maxx, p_map.extent.maxy
still have values of 0.0.

My development environment:
- MS Visual Studio 2003 (VB.NET)
- DLLs (mapscript_csharp.dll, mapscript.dll, etc) from MS4W PHP4 Base
  Installer v1.5.4
- MS Windows XP Pro with IIS 5
- .NET Framework 1.1

This did not happen with older version of DLLs for MapServer 4.6.

Has anyone else also used C# MapScript but with VB.NET as the programming
language?

Any help/suggestion appreciated. 

Hong

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22.
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 2006.06.22.
 



More information about the mapserver-users mailing list