Hi, I have tested your code and worked for me. Would you compile the latest mapserver + mapscript and test with those binaries? This is not my bug tracking day :-((
Regards, Tamas -----Original Message----- From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Hong Sent: Thursday, June 22, 2006 11:54 PM To: [email protected] Subject: Re: [UMN_MAPSERVER-USERS] C# MapScript - Extent of mapObj not set after object creation On Thu, Jun 22, 2006 at 09:47:57PM +0200, Tamas Szekeres wrote: > Hi, > > Are the other parameters correct like p_map.name? As far as I can tell, other parameters seem to be correct. The parameter p_map.name is correct. > Could you post a bug report attaching the sample code and the map file? Done. Bug# 1807. Thank you. > -----Original Message----- > From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On > Behalf Of Hong > Sent: Thursday, June 22, 2006 8:42 PM > To: [email protected] > 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. > -- 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.
