Re: [mapguide-users] Fusion Map Problem

2007-08-31 Thread Paul Spencer

Hi Scott,

was the problem purely a browser caching problem?  I have tried to  
set up the ajax requests to be not cached by the browser regardless  
of the client configuration so I am interested to know if it works or  
not (I typically run my browsers with caching turned off so it is  
hard for me to tell sometimes if this type of thing has stopped  
working or not)


Cheers

Paul

On 31-Aug-07, at 6:11 PM, Scott Wilson wrote:


Hi Paul,

Thank you for your insight and suggestion.
Turned out to be a browser caching issue and FDO problem.
Firebug is a great plug-in, thanks for the heads up!

On 8/30/07, Paul Spencer <[EMAIL PROTECTED]> wrote: Hi Scott,

It sounds like it might be caching the XmlHttpRequest to load the web
layout.  Have you tried it in FireFox?  Do you have FireBug
installed?  If yes, you can look at the actual requests as the load
the web layout from the server and perhaps get a clue as to what is
going on.  If you have a public url that I can access, I might be
able to debug further.  Feel free to email me directly if you don't
want the URL on the list.

Cheers

Paul

On 30-Aug-07, at 8:24 AM, Scott Wilson wrote:

> All,
>
> I have the fusion Sheboygan demo working fine. The problem is when
> I try to display a different a map.
>
> I have successfully uploaded a new map and tested it in web studio.
>
> I then edit the WebLayout.xml file within the simple fusion sample
> to reflect the new map:
> 
> 
> Map
> MGMap
> Library://test/test.MapDefinition
> 
> I save the WebLayout.xml and have tried restarting the mapguide
> service or rebooting. When I reload the simple fusion demo the map
> still shows Sheboygan.
>
> I am using Release 1.2.0 RC2 and the Fusion Preview 1.0
>
> Am I missing anything?
>
> Thanks
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users

+-+
|Paul Spencer  [EMAIL PROTECTED]|
+-+
|Chief Technology Officer |
|DM Solutions Group Inchttp://www.dmsolutions.ca/ |
+-+





___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


+-+
|Paul Spencer  [EMAIL PROTECTED]|
+-+
|Chief Technology Officer |
|DM Solutions Group Inchttp://www.dmsolutions.ca/ |
+-+





___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Fusion Map Problem

2007-08-31 Thread Scott Wilson
Hi Paul,

Thank you for your insight and suggestion.
Turned out to be a browser caching issue and FDO problem.
Firebug is a great plug-in, thanks for the heads up!

On 8/30/07, Paul Spencer <[EMAIL PROTECTED]> wrote:
>
> Hi Scott,
>
> It sounds like it might be caching the XmlHttpRequest to load the web
> layout.  Have you tried it in FireFox?  Do you have FireBug
> installed?  If yes, you can look at the actual requests as the load
> the web layout from the server and perhaps get a clue as to what is
> going on.  If you have a public url that I can access, I might be
> able to debug further.  Feel free to email me directly if you don't
> want the URL on the list.
>
> Cheers
>
> Paul
>
> On 30-Aug-07, at 8:24 AM, Scott Wilson wrote:
>
> > All,
> >
> > I have the fusion Sheboygan demo working fine. The problem is when
> > I try to display a different a map.
> >
> > I have successfully uploaded a new map and tested it in web studio.
> >
> > I then edit the WebLayout.xml file within the simple fusion sample
> > to reflect the new map:
> > 
> > 
> > Map
> > MGMap
> > Library://test/test.MapDefinition
> > 
> > I save the WebLayout.xml and have tried restarting the mapguide
> > service or rebooting. When I reload the simple fusion demo the map
> > still shows Sheboygan.
> >
> > I am using Release 1.2.0 RC2 and the Fusion Preview 1.0
> >
> > Am I missing anything?
> >
> > Thanks
> > ___
> > mapguide-users mailing list
> > mapguide-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
> +-+
> |Paul Spencer  [EMAIL PROTECTED]|
> +-+
> |Chief Technology Officer |
> |DM Solutions Group Inchttp://www.dmsolutions.ca/ |
> +-+
>
>
>
>
>
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Fill Patterns

2007-08-31 Thread gom

Is there a method for creating new and/or modifying existing fill patterns
for polygons?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Fill-Patterns-tf4361378s16610.html#a12430507
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] ByteReader Problem

2007-08-31 Thread Kenneth, GEOGRAF A/S

The only way around it, that I have found, is to copy/paste code like this:

System.IO.MemoryStream ms = new System.IO.MemoryStream();
byte[] buf = new byte[8*1024];
int read = 1;
while(read != 0)
{
   read = mapByteRdr.Read(buf, buf.length);
 ms.Write(buf, 0, read);
}

//ms now contains the stream

Regards, Kenneth, GEOGRAF A/S



Campbell, Keith A skrev:

Thanks Dennis.
 
I've tried this, but I'm only getting 8192 bytes read into the byte 
buffer. This seems to be the problem mentioned by Kenneth. The Read 
method doesn't seem to allow the start location for the read to be 
set, so looping until the entire content of the Resource is read into 
the buffer doesn't seem to be an option.
 
Presumably somebody must have found a way around this.
 
Keith



*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] *On Behalf Of *Jonio, 
Dennis (Aviation)

*Sent:* 31 August 2007 14:05
*To:* MapGuide Users Mail List
*Subject:* RE: [mapguide-users] ByteReader Problem

... this sequence tends to work 

 


 // For some reason the MgByteReader "disappears"

 // This seems to work 

long long_length = rs.GetResourceContent(resId).GetLength();

byte[] byteBuffer = new byte[long_length];

int numBytes = 
rs.GetResourceContent(resId).Read(byteBuffer, (int)long_length);


 


-Original Message-
*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] *On Behalf Of 
*Campbell, Keith A

*Sent:* Friday, August 31, 2007 7:10 AM
*To:* MapGuide Users Mail List
*Subject:* [mapguide-users] ByteReader Problem

 

I am trying to alter a map definition through the API and cannot get 
the contents of the MgByteReader in string format. Here's the code:-


String mapDefinition = "Library://My Folder/Maps/My 
Map.MapDefinition";
MgResourceIdentifier MapResID = new 
MgResourceIdentifier(mapDefinition);


MgByteReader mapByteRdr = 
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument();
   
doc.LoadXml(mapByteRdr.ToString());


LoadXML fails with an error ' Root element is missing'. I can copy the 
contents of mapByteRdr from Visual Studio at runtime and it contains 
properly formatted XML for the map definition. If I use the ToFile() 
method, the resultant file is empty. I cannot see why these two 
methods do not return the xml string in the reader. Any help is welcome.


Cheers,

Keith

 

*This email and any attached files are confidential and copyright 
protected. If you are not the addressee, any dissemination of this 
communication is strictly prohibited. Unless otherwise expressly 
agreed in writing, nothing stated in this communication shall be 
legally binding.*


The ultimate parent company of the Atkins Group is WS Atkins plc. 
Registered in England No. 1885586. Registered Office Woodcote Grove, 
Ashley Road, Epsom, Surrey KT18 5BW.


P *Consider the environment. Please don't print this e-mail unless you 
really need to.*




E-mails are automatically scanned for viruses using McAfee.



This message has been scanned for viruses by MailControl 





*This email and any attached files are confidential and copyright 
protected. If you are not the addressee, any dissemination of this 
communication is strictly prohibited. Unless otherwise expressly 
agreed in writing, nothing stated in this communication shall be 
legally binding.*


The ultimate parent company of the Atkins Group is WS Atkins plc. 
Registered in England No. 1885586. Registered Office Woodcote Grove, 
Ashley Road, Epsom, Surrey KT18 5BW.


P *Consider the environment. Please don't print this e-mail unless you 
really need to.*




___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
  
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
This is what I use in real life ... I did not understand.  I was
illustrating the 8K thingee. It caught me to.  

   

 string lib_layer_definition =
resourceService.GetResourceContent(resId).ToString();

 byte[] layerDefinition = new byte[lib_layer_definition.Length];

 int byteCount = Encoding.UTF8.GetBytes(lib_layer_definition, 0,
lib_layer_definition.Length, layerDefinition, 0);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 11:32 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem

 

Thanks Dennis.

 

I've tried this, but I'm only getting 8192 bytes read into the byte
buffer. This seems to be the problem mentioned by Kenneth. The Read
method doesn't seem to allow the start location for the read to be set,
so looping until the entire content of the Resource is read into the
buffer doesn't seem to be an option.

 

Presumably somebody must have found a way around this.

 

Keith

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: 31 August 2007 14:05
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem

... this sequence tends to work 

 

 // For some reason the MgByteReader "disappears"

 // This seems to work 

long long_length = rs.GetResourceContent(resId).GetLength();

byte[] byteBuffer = new byte[long_length];

int numBytes = rs.GetResourceContent(resId).Read(byteBuffer,
(int)long_length);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 7:10 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] ByteReader Problem

 

I am trying to alter a map definition through the API and cannot get the
contents of the MgByteReader in string format. Here's the code:-

String mapDefinition = "Library://My Folder/Maps/My
Map.MapDefinition"; 
MgResourceIdentifier MapResID = new
MgResourceIdentifier(mapDefinition); 

MgByteReader mapByteRdr =
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument(); 

doc.LoadXml(mapByteRdr.ToString()); 

LoadXML fails with an error ' Root element is missing'. I can copy the
contents of mapByteRdr from Visual Studio at runtime and it contains
properly formatted XML for the map definition. If I use the ToFile()
method, the resultant file is empty. I cannot see why these two methods
do not return the xml string in the reader. Any help is welcome.

Cheers, 

Keith 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 

 

This message has been scanned for viruses by MailControl
 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] GT-Theming

2007-08-31 Thread Andy Morsell
I had posted a fix to this problem some time ago but it must not have made
it back into the source code.  Here is the pertinent thread so you can
update the code on your end.
 
http://www.nabble.com/-Mapguide_users--General-Tasks-Sample-Code---Some-bug-
fixes-tf2932000s16610.html#a8197275
 

Andy Morsell, P.E. 
Spatial Integrators, Inc. 
http://www.SpatialGIS.com 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rahul
Sent: Friday, August 31, 2007 1:45 AM
To: MapGuide Users Mail List
Subject: SPAM-LOW: [mapguide-users] GT-Theming


Hi All,
  
I worked with GT-Dynamic Theming of Layers with only feature source in my
Map,it works great  but when i use the map with raster and feature sources
and try to use the GT-Theming Task it use to throw exception about Raster
source,can anybody tell me how to solve this problem..
 
Thks
Max


  _  

Looking for a deal? Find
 great
prices on flights and hotels with Yahoo! FareChase.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
Thanks Dennis.
 
I've tried this, but I'm only getting 8192 bytes read into the byte
buffer. This seems to be the problem mentioned by Kenneth. The Read
method doesn't seem to allow the start location for the read to be set,
so looping until the entire content of the Resource is read into the
buffer doesn't seem to be an option.
 
Presumably somebody must have found a way around this.
 
Keith



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonio,
Dennis (Aviation)
Sent: 31 August 2007 14:05
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] ByteReader Problem



... this sequence tends to work 

 

 // For some reason the MgByteReader "disappears"

 // This seems to work 

long long_length = rs.GetResourceContent(resId).GetLength();

byte[] byteBuffer = new byte[long_length];

int numBytes = rs.GetResourceContent(resId).Read(byteBuffer,
(int)long_length);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 7:10 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] ByteReader Problem

 

I am trying to alter a map definition through the API and cannot get the
contents of the MgByteReader in string format. Here's the code:-

String mapDefinition = "Library://My Folder/Maps/My
Map.MapDefinition"; 
MgResourceIdentifier MapResID = new
MgResourceIdentifier(mapDefinition); 

MgByteReader mapByteRdr =
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument(); 

doc.LoadXml(mapByteRdr.ToString()); 

LoadXML fails with an error ' Root element is missing'. I can copy the
contents of mapByteRdr from Visual Studio at runtime and it contains
properly formatted XML for the map definition. If I use the ToFile()
method, the resultant file is empty. I cannot see why these two methods
do not return the xml string in the reader. Any help is welcome.

Cheers, 

Keith 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 



This message has been scanned for viruses by MailControl
 

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
Thanks Kenneth.
 
This does explain what I'm seeing.
 
I have tried MgByteSink, but am having the same problem with it.
 
Keith



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth,
GEOGRAF A/S
Sent: 31 August 2007 12:44
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] ByteReader Problem


The "ToString()" is not implemented, and thus returns "MgByteReader",
which you cannot use as an XML document.

The MgByteReader is very volatile and fragile, when you try to debug it
with VS.
Any attempt to pass the byte reader to a function (as a parameter) will
clear the stream.
You cannot read more than 8kb out of the stream in a single Read()
operation, making it a royal pain to use the MgByteReader.

I have seen others using an MgByteSink, but I have yet to try that.


Regards, Kenneth, GEOGRAF A/S


Campbell, Keith A skrev: 

I am trying to alter a map definition through the API and cannot
get the contents of the MgByteReader in string format. Here's the code:-

String mapDefinition = "Library://My Folder/Maps/My
Map.MapDefinition"; 
MgResourceIdentifier MapResID = new
MgResourceIdentifier(mapDefinition); 

MgByteReader mapByteRdr =
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument(); 

doc.LoadXml(mapByteRdr.ToString()); 

LoadXML fails with an error ' Root element is missing'. I can
copy the contents of mapByteRdr from Visual Studio at runtime and it
contains properly formatted XML for the map definition. If I use the
ToFile() method, the resultant file is empty. I cannot see why these two
methods do not return the xml string in the reader. Any help is welcome.

Cheers, 

Keith 



This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins
plc. Registered in England No. 1885586. Registered Office Woodcote
Grove, Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail
unless you really need to. 





___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
  



This message has been scanned for viruses by MailControl
 

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
... this sequence tends to work 

 

 // For some reason the MgByteReader "disappears"

 // This seems to work 

long long_length = rs.GetResourceContent(resId).GetLength();

byte[] byteBuffer = new byte[long_length];

int numBytes = rs.GetResourceContent(resId).Read(byteBuffer,
(int)long_length);

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell,
Keith A
Sent: Friday, August 31, 2007 7:10 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] ByteReader Problem

 

I am trying to alter a map definition through the API and cannot get the
contents of the MgByteReader in string format. Here's the code:-

String mapDefinition = "Library://My Folder/Maps/My
Map.MapDefinition"; 
MgResourceIdentifier MapResID = new
MgResourceIdentifier(mapDefinition); 

MgByteReader mapByteRdr =
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument(); 

doc.LoadXml(mapByteRdr.ToString()); 

LoadXML fails with an error ' Root element is missing'. I can copy the
contents of mapByteRdr from Visual Studio at runtime and it contains
properly formatted XML for the map definition. If I use the ToFile()
method, the resultant file is empty. I cannot see why these two methods
do not return the xml string in the reader. Any help is welcome.

Cheers, 

Keith 

 

This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding. 

The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. 

P Consider the environment. Please don't print this e-mail unless you
really need to. 



E-mails are automatically scanned for viruses using McAfee. 

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Missing Coordinate Systems

2007-08-31 Thread Kenneth, GEOGRAF A/S
On multiple installations of MapGuide OS 1.2 RC2, there are no 
coordinate systems installed.


If I access the http:///mapguide/mapagent/index.htm, choose 
Coordinate System and EnumerateCategories i get:


Arbitrary X-Y Coordinate 
Systems


Trying the same on the "Live Application Gallery servers gives:"

Arbitrary X-Y Coordinate 
SystemsEPSGWorld/Continental

The latter is the desired result.
For any server, the "GetBaseLibrary" call returns: "PROJ4 Coordinate 
System Library"


I can see no errors in any of the log files.
It might be related to  ticket 209, 
http://trac.osgeo.org/mapguide/ticket/209.


Tracking it, reveals that a registry entry 
"HKLM\SOFTWARE\MapGuideOpenSource\CoordinateSystem" specifies:

C:\Program Files\MapGuideOpenSource\WebServerExtensions\www\nad
Where the PROJ_LIB specifies:
PROJ_LIB=C:\Program Files\MapGuideOpenSource\Server\nad

I have no idea where each entry comes from, as both machines have had 
1.1 installed.

However, the "categories.txt" is NOT located in
C:\Program Files\MapGuideOpenSource\Server\nad
but can be copied from:
C:\Program Files\MapGuideOpenSource\Server\bin

Copying the file makes the coordinate categories appear.


--
Regards, Kenneth, GEOGRAF A/S


___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] ByteReader Problem

2007-08-31 Thread Kenneth, GEOGRAF A/S
The "ToString()" is not implemented, and thus returns "MgByteReader", 
which you cannot use as an XML document.


The MgByteReader is very volatile and fragile, when you try to debug it 
with VS.
Any attempt to pass the byte reader to a function (as a parameter) will 
clear the stream.
You cannot read more than 8kb out of the stream in a single Read() 
operation, making it a royal pain to use the MgByteReader.


I have seen others using an MgByteSink, but I have yet to try that.

Regards, Kenneth, GEOGRAF A/S



Campbell, Keith A skrev:


I am trying to alter a map definition through the API and cannot get 
the contents of the MgByteReader in string format. Here's the code:-


String mapDefinition = "Library://My Folder/Maps/My 
Map.MapDefinition";
MgResourceIdentifier MapResID = new 
MgResourceIdentifier(mapDefinition);


MgByteReader mapByteRdr = 
res.GetResourceContent(MapResID);//res is instantiated Resource Service.


XmlDocument doc = new XmlDocument();
   
doc.LoadXml(mapByteRdr.ToString());


LoadXML fails with an error ' Root element is missing'. I can copy the 
contents of mapByteRdr from Visual Studio at runtime and it contains 
properly formatted XML for the map definition. If I use the ToFile() 
method, the resultant file is empty. I cannot see why these two 
methods do not return the xml string in the reader. Any help is welcome.


Cheers,

Keith



*This email and any attached files are confidential and copyright 
protected. If you are not the addressee, any dissemination of this 
communication is strictly prohibited. Unless otherwise expressly 
agreed in writing, nothing stated in this communication shall be 
legally binding.*


The ultimate parent company of the Atkins Group is WS Atkins plc. 
Registered in England No. 1885586. Registered Office Woodcote Grove, 
Ashley Road, Epsom, Surrey KT18 5BW.


P *Consider the environment. Please don't print this e-mail unless you 
really need to.*




___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
  
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
I am trying to alter a map definition through the API and cannot get the
contents of the MgByteReader in string format. Here's the code:-

String mapDefinition = "Library://My Folder/Maps/My
Map.MapDefinition";
MgResourceIdentifier MapResID = new
MgResourceIdentifier(mapDefinition);

MgByteReader mapByteRdr =
res.GetResourceContent(MapResID);//res is instantiated Resource Service.

XmlDocument doc = new XmlDocument();

doc.LoadXml(mapByteRdr.ToString());

LoadXML fails with an error ' Root element is missing'. I can copy the
contents of mapByteRdr from Visual Studio at runtime and it contains
properly formatted XML for the map definition. If I use the ToFile()
method, the resultant file is empty. I cannot see why these two methods
do not return the xml string in the reader. Any help is welcome.

Cheers,

Keith


This email and any attached files are confidential and copyright protected. If 
you are not the addressee, any dissemination of this communication is strictly 
prohibited. Unless otherwise expressly agreed in writing, nothing stated in 
this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered 
in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, 
Surrey KT18 5BW.

Consider the environment. Please don't print this e-mail unless you really need 
to. 
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] GT-Theming

2007-08-31 Thread Rahul
Hi All,

I worked with GT-Dynamic Theming of Layers with only feature source in my 
Map,it works great  but when i use the map with raster and feature sources and 
try to use the GT-Theming Task it use to throw exception about Raster 
source,can anybody tell me how to solve this problem..
   
  Thks
  Max

   
-
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users