Re: [mapguide-users] invalid XML document

2009-01-12 Thread irwan

I have succesfully implement the code into my current mapguide exercise.
Based on the code above, i filtered the layer based on the attribute contain
at sdf file. How about filtering based on the database query? how to pass
value from database to xml file?
-- 
View this message in context: 
http://n2.nabble.com/invalid-XML-document-tp2149327p2149474.html
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] invalid XML document

2009-01-12 Thread irwan

thanks for quick reply. i already fix that but another error comes. All
building are highlighted even i set the filtering FeatId >10..
-- 
View this message in context: 
http://n2.nabble.com/invalid-XML-document-tp2149327p2149373.html
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] invalid XML document

2009-01-12 Thread Zac Spitzer
this looks wrong

concat('http://128.88.31.35:8008/mapguide/UPM/phpscripts/bom/activeWR.php?bl_id=',
"ID")

On Tue, Jan 13, 2009 at 2:16 PM, irwan  wrote:
>
> does anybody here know what is my xml problem?
>
> 
>
> http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd" version="1.1.0">
>  
>
> Library://UPM/Data/BUILD_BUILD_region.FeatureSource
>  Default:BUILD_BUILD_region
>  FeatureClass
>  
>   NAME
>   NAME
>  
>  Geometry
>
> concat('http://128.88.31.35:8008/mapguide/UPM/phpscripts/bom/activeWR.php?bl_id=',
> "ID")
>  
>   6958.1596415586
>   
>
> FeatId > 10
> 
> 
>  Inches
>  DeviceUnits
>  0.3
>  0.118110236220472
>  0.0
>  "NAME"
>  Arial Black
>  H0H0H0H
>  HHH
>  Ghosted
>  'Center'
>  Halfline
>  true
> 
> 
>  
>   Net_45
>   H0H0H0H
>   HHH
>  
>  
>   Solid
>   0.0
>   FF00
>   Centimeters
>   DeviceUnits
>  
> 
>
>   
>  
>  
>   6958.1596415586
>   
>
> 
> 
>  
>   Net_45
>   H0H0H0H
>   HHH
>  
>  
>   Solid
>   0
>   ff66
>   Inches
>   DeviceUnits
>  
> 
>
>   
>  
>  
> 
>
>  i create this xml from mapguide studio. i intend to create a new layer
> programatically using this xml file that calling from
> change_layers_via_dom.php code sample. what i do here is changed
> DOMDocument::Load to load my xml file and also change a node value that
> satisfy my query.
>
>$domDocument = DOMDocument::load('RecentlyBuilt.LayerDefinition.xml');
>if ($domDocument == NULL)
>{
>echo "The layer definition
>  'RecentlyBuilt.LayerDefinition' could not be
>  found.\n";
>return;
>}
>
>// Change the filter
>$xpath = new DOMXPath($domDocument);
>$query = '//AreaRule/Filter';
>// Get a list of all the  elements in the XML.
>$nodes = $xpath->query($query);
>// Find the correct node and change it
>foreach ($nodes as $node )
>{
>if ($node->nodeValue == 'FeatId > 10')
>{
>$node->nodeValue = 'FeatId > 10';
>}
>}
>
>// Change the legend label
>$query = '//LegendLabel';
>// Get a list of all the  elements in the
>// XML.
>$nodes = $xpath->query($query);
>// Find the correct node and change it
>foreach ($nodes as $node )
>{
>if ($node->nodeValue == 'FeatId > 10')
>{
>$node->nodeValue = 'FeatId > 10';
>}
>}
>
>// --//
>  // ...
>
>// Add the layer to the map
>$layerDefinition = $domDocument->saveXML();
>$newLayer = add_layer_definition_to_map($layerDefinition,
> "RecentlyBuilt", "FeatId > 10", $sessionId, $resourceService, $map);
>add_layer_to_group($newLayer, "Analysis", "Analysis", $map);
>
>// --//
>// Turn off the "Square Footage" themed layer (if it
>// exists) so it does not hide this layer.
>$layerCollection = $map->GetLayers();
>if ($layerCollection->Contains("SquareFootage"))
>{
>$squareFootageLayer =
>  $layerCollection->GetItem("SquareFootage");
>$squareFootageLayer->SetVisible(false);
>}
>
>// --//
>// Turn on the visibility of this layer.
>// (If the layer does not already exist in the map, it will be visible
> by default when it is added.
>// But if the user has already run this script, he or she may have set
> the layer to be invisible.)
>$layerCollection = $map->GetLayers();
>if ($layerCollection->Contains("RecentlyBuilt"))
>{
>$recentlyBuiltLayer = $layerCollection->GetItem("RecentlyBuilt");
>$recentlyBuiltLayer->SetVisible(true);
>}
>
>
>  Once i ran the code, there is nothing happened. then i copy the link to new
> browser, but it show this error message
>
> ERROR: The new XML document is invalid.
>
> Can you tell me what is my problem?
> --
> View this message in context: 
> http://n2.nabble.com/invalid-XML-document-tp2149327p2149327.html
> 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
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] invalid XML document

2009-01-12 Thread irwan

does anybody here know what is my xml problem?



http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd" version="1.1.0">
 
 
Library://UPM/Data/BUILD_BUILD_region.FeatureSource
  Default:BUILD_BUILD_region
  FeatureClass
  
   NAME
   NAME
  
  Geometry
 
concat('http://128.88.31.35:8008/mapguide/UPM/phpscripts/bom/activeWR.php?bl_id=',
"ID")
  
   6958.1596415586
   

 FeatId > 10
 
 
  Inches
  DeviceUnits
  0.3
  0.118110236220472
  0.0
  "NAME"
  Arial Black
  H0H0H0H
  HHH
  Ghosted
  'Center'
  Halfline
  true
 
 
  
   Net_45
   H0H0H0H
   HHH
  
  
   Solid
   0.0
   FF00
   Centimeters
   DeviceUnits
  
 

   
  
  
   6958.1596415586
   

 
 
  
   Net_45
   H0H0H0H
   HHH
  
  
   Solid
   0
   ff66
   Inches
   DeviceUnits
  
 

   
  
 


 i create this xml from mapguide studio. i intend to create a new layer
programatically using this xml file that calling from
change_layers_via_dom.php code sample. what i do here is changed
DOMDocument::Load to load my xml file and also change a node value that
satisfy my query.

$domDocument = DOMDocument::load('RecentlyBuilt.LayerDefinition.xml');
if ($domDocument == NULL)
{
echo "The layer definition
  'RecentlyBuilt.LayerDefinition' could not be
  found.\n";
return;
}

// Change the filter
$xpath = new DOMXPath($domDocument);
$query = '//AreaRule/Filter';
// Get a list of all the  elements in the XML.   
$nodes = $xpath->query($query);
// Find the correct node and change it
foreach ($nodes as $node )
{
if ($node->nodeValue == 'FeatId > 10')
{
$node->nodeValue = 'FeatId > 10';
}
}

// Change the legend label
$query = '//LegendLabel';
// Get a list of all the  elements in the
// XML.
$nodes = $xpath->query($query);
// Find the correct node and change it
foreach ($nodes as $node )
{
if ($node->nodeValue == 'FeatId > 10')
{
$node->nodeValue = 'FeatId > 10';
}
}

// --//
  // ...
  
// Add the layer to the map
$layerDefinition = $domDocument->saveXML();
$newLayer = add_layer_definition_to_map($layerDefinition,
"RecentlyBuilt", "FeatId > 10", $sessionId, $resourceService, $map);
add_layer_to_group($newLayer, "Analysis", "Analysis", $map);

// --//
// Turn off the "Square Footage" themed layer (if it
// exists) so it does not hide this layer.
$layerCollection = $map->GetLayers();
if ($layerCollection->Contains("SquareFootage"))
{
$squareFootageLayer =
  $layerCollection->GetItem("SquareFootage");
$squareFootageLayer->SetVisible(false);
}

// --//
// Turn on the visibility of this layer.
// (If the layer does not already exist in the map, it will be visible
by default when it is added.
// But if the user has already run this script, he or she may have set
the layer to be invisible.)
$layerCollection = $map->GetLayers();
if ($layerCollection->Contains("RecentlyBuilt"))
{
$recentlyBuiltLayer = $layerCollection->GetItem("RecentlyBuilt");
$recentlyBuiltLayer->SetVisible(true);
}


 Once i ran the code, there is nothing happened. then i copy the link to new
browser, but it show this error message 

ERROR: The new XML document is invalid.

Can you tell me what is my problem?
-- 
View this message in context: 
http://n2.nabble.com/invalid-XML-document-tp2149327p2149327.html
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] Simple Query. How to.

2009-01-12 Thread irwan

this is what i'm looking for..but what if i used data from sql query? for
example

$result = 'select * from building where size > 120 ';

from you code sample below , $_GET['afznr'] contain only 1 value. but
$result may contain more than 1 values. So what should i do?can i do like
this-

$node->nodeValue = '"afz_nr" = '$result'';

thanks


Willem Schwarte wrote:
> 
> You can create a layer in studio as how it should look, and save this as
> a XML file (menu File).
> 
> Then you can load this XML as a new layer in your code and set the
> FILTER (id=1 or whatever) add the layer to your map and refresh (or
> not). 
> 
> This is how I do this. There is an example on the example site on
> osgeo.org.
> 
> Something like this: 
> 
>// Change the filter
> $xpath = new DOMXPath($domDocument);
> 
> $query = '//Filter';
> // Get a list of all the  elements in
> // the XML.   
> $nodes = $xpath->query($query);
> 
> // Find the correct node and change it , this is the filter
> foreach ($nodes as $node )
> {
> $node->nodeValue = '"afz_nr" = '.$_GET['afznr'].'';
> }
>   
> 
> // Add the layer to the map
> $layerDefinition = $domDocument->saveXML();
> 
>  $newLayer = add_layer_definition_to_map($layerDefinition,
> "newlayer", "Route", $sessionId, $resourceService, $map,0);
> 
> 
> Willem
> 
> 
> 
> -Oorspronkelijk bericht-
> Van: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] Namens MaciekS
> Verzonden: maandag 12 februari 2007 15:33
> Aan: mapguide-users@lists.osgeo.org
> Onderwerp: [mapguide-users] Simple Query. How to.
> 
> 
> Hi MapGuide developers.
> 
> Does somebody know how to filter data on specified, existing layer?
> 
> I added a layer from a SHP file to my repository using MapGuide Studio.
> Now I'd like to filter this layer from my code with a simple query, for
> example (where ID=1).
> How should I built my code to execute the query that finally will
> display in
> the browser only polygons specified in the query?
> 
> Regards, Maciek
> 
> -- 
> View this message in context:
> http://www.nabble.com/Simple-Query.-How-to.-tf3214017s16610.html#a892519
> 4
> 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
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Simple-Query.-How-to.-tp1808729p2149157.html
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


[mapguide-users] Apache crashing out

2009-01-12 Thread Zac Spitzer
I have been seeing apache crash out with the error message below,
anyone else seeing this problem?

http://trac.osgeo.org/mapguide/ticket/815

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information. ting
[Tue Dec 30 23:40:10 2008] [crit] Parent: child process exited with
status 3 -- Aborting.

-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MapGuide and SOA

2009-01-12 Thread Zac Spitzer
MapGuide has an web api and supports lots of OGC standards

anything in the SOA direction will need some custom dev using the API

you can find lots of useful links here

http://ennoble.dreamhosters.com/mapguide-central/

z



On Tue, Jan 13, 2009 at 10:50 AM, Shomali Sengupta  wrote:
> All,
>
> I am new to MapGuide and I'm not sure if this is the correct listserv for
> this question, so I'm going to give it a shot.
>
> I have a high level question about MapGuides compatibility with Service
> Oriented Architecture.  Does MapGuide have the functionality to publish web
> services that can be consumed by a web application or other applications?
> Also, can KML files be produced in this environment?  And finally, can Map
> Guide consume web services produced by other application?  Where can I find
> documentation that provides additional information regarding these topics?
>
> Thanks in advance for any assistance!
>
> 
> Windows Live™: Keep your life in sync. See how it works.
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] MapGuide and SOA

2009-01-12 Thread Shomali Sengupta









All, 

I am new to MapGuide and I'm not sure if this is the correct listserv for this
question, so I'm going to give it a shot.



I have a high level question about MapGuides compatibility with Service
Oriented Architecture.  Does MapGuide have the functionality to publish
web services that can be consumed by a web application or other applications? 
Also, can KML files be produced in this environment?  And finally, can Map
Guide consume web services produced by other application?  Where can I find 
documentation that provides
additional information regarding these topics?



Thanks in advance for any assistance!


_
Windows Live™: Keep your life in sync. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_012009___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Problems with selection

2009-01-12 Thread Mark Pendergraft
What about zooming to the feature using the maps Zoom to selection
method:

ExecuteMapAction(10);

Does the map zoom to the correct feature?  Is it highlighted afterwards?

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of clarkie342
Sent: Monday, January 12, 2009 11:33 AM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Problems with selection


Is there a solution to the initial issue here? I came across the same
thing
but I do not have any joins in the feature source.
Here is the javascript that I have to update the selection. 

var selectionXml =
document.getElementById("ctl00_ContentPlaceHolder1_hfSelectXml").getAttr
ibute("value");
var mapFrame =
document.getElementById("viewerFrame").contentWindow.GetMapFrame();

mapFrame.SetSelectionXML(selectionXml);
mapFrame.Refresh(); 

the status bar shows 1 feature selected but no feature is highlighted. I
also tried manual refresh of the map(from context menu) that did not
highlight the selected features either. Appreciate any help.
Thanks.


Andy Morsell wrote:
> 
> Yes, it does say that a feature is selected.  Technically, it still is
> since
> the selection object exists on the server and is not disposed of when
you
> turn the layer off.  This is most likely by design and I find it would
> probably be more desirable than not to have that selection object
reappear
> when the layer is turned back on if it was the last thing I had
selected.
> If you want to clear the selection, even when the layer is turned off,
you
> can use the Clear Selection through the interface or programmatically.
>  
> 
> Andy 
> 
> 
>   _  
> 
> From: Butler, Juan P [mailto:jpbut...@co.pinellas.fl.us] 
> Sent: Thursday, April 20, 2006 11:05 AM
> To: us...@mapguide.osgeo.org
> Subject: RE: [mapguide-users] Problems with selection
> 
> 
> Thanks Andy.
>  
> Check to see on the status bar if it states that an object is selected
> when
> the layer is turned off.  My highlight goes away, but the map still
has an
> object selected.
>  
> - Juan
> 
>   _  
> 
> From: Andy Morsell [mailto:amors...@spatialgis.com]
> Sent: Thu 4/20/2006 1:16 PM
> To: us...@mapguide.osgeo.org
> Subject: RE: [mapguide-users] Problems with selection
> 
> 
> I am seeing the same thing in regards to the joined feature (polygons
> joined
> to Access) not highlighting when selected but the attributes do show
up in
> the Properties pane.  I am also seeing some general weirdness with
this
> layer.  If I turn it off in the legend, it does not turn off on the
map (a
> request to the server does not occur) until I select an object.
Panning
> and
> zooming aren't forcing the refresh.  I suspect these are related
issues
> and
> the refresh flag is getting stuck when interacting with these types of
> layers.
>  
> I don't see the same thing as you in the second case.  If I select an
> object
> and it highlights and then turn off that layer, the highlight turns
off as
> well.  When that layer is turned back on, the highlight also
reappears.
>  
> 
> Andy Morsell, P.E. 
> Spatial Integrators, Inc. 
> http://www.SpatialGIS.com  
> 
>  
> 
> 
>   _  
> 
> From: Butler, Juan P [mailto:jpbut...@co.pinellas.fl.us] 
> Sent: Thursday, April 20, 2006 9:36 AM
> To: us...@mapguide.osgeo.org
> Subject: RE: [mapguide-users] Problems with selection
> 
> 
> 
> Some more observations...
>  
> It seems that when I select my parcel layer that is tied to my Access
> database, the highlight feature doesn't work.  When I switch over to
use
> just the layer that is based strictly on the sdf file, the
highlighting
> works.  So I guess it has something to do with layers that are tied to
an
> Access database.  Can someone else please try this and let me know if
they
> are seeing this?
>  
> Also, when I select a feature and then turn of the layer of the
selected
> feature, the feature seems to still be selected.  Odd.   
>  
> FYI: I'm using the AJAXViewer
>  
> - Juan
> 
>   _  
> 
> From: Butler, Juan P
> Sent: Thu 4/20/2006 12:05 PM
> To: us...@mapguide.osgeo.org
> Subject: [mapguide-users] Problems with selection
> 
> 
> Has anyone experienced problems with features not highlighting after
> selection?  The data appears in the Properties frame, but the feature
> isn't
> highlighted.  Plus, the bottom of the map states 1 feature selected.
It's
> only on my parcel polygon layer.   My other polygon layers select and
> highlight fine.  Weird.
>  
> Another thing I noticed was when I had a feature selected from this
layer,
> if I go to zoom out or pan, the map locks up and does nothing unless I
> unselect the feature.  
>  
> - Juan
> 
> 

-- 
View this message in context:
http://n2.nabble.com/Problems-with-selection-tp1804059p2147489.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___

Re: [mapguide-users] GT Markup sample problems

2009-01-12 Thread Kenneth Skovhede, GEOGRAF A/S

You can get a sort of corruption, if you manage to save xml with
a byte encoding header into the repositories.

The error below usually appears when you are using incompatible binaries, ea
using MapGuide 2.0 binaries to communicate with a 2.0.2 server.

Is it possible to render the map at all?
If not, one of the layers are likely broken for some reason.
Try removing layers from the map until it displays.

Regards, Kenneth Skovhede, GEOGRAF A/S



Warren Medernach skrev:


This is extremely frustrating...

 

I setup the GT sample app and was testing the markup functionality.  
(WinXP, IIS, MGE 2009)


Everything was working great with creating lines and points.

Then MG 'hiccups' and freezes up...   so I have to reset IIS, restart 
the MG service to get MG back up and running.


Now when I run the GT Markup sample I get the following error when 
attempting to markup:


 


Invalid stream header exception.

Invalid stream header exception. Exception occurred in method 
MgCommand.GetResponse at line 152 in file 
d:\buildforgeprojects\carrera_nightly\build_26.9\ent\os\common\mapguidecommon\Services/Command.cpp  



 

What the?!?   There were no code changes, nothing, just simple reset 
after MG froze up and now this is the result?


I thought maybe the Markup SDF got corrupted, so I deleted it, and had 
the app re-create it, still doesn't work.


Is it possible that the repositories got corrupted?

 


Any ideas on how to resolve this would be greatly appreciated.

Thanks!

 


Warren M

 




___
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] Adding a temporary Layer in MapGuide

2009-01-12 Thread Kenneth Skovhede, GEOGRAF A/S

I wrote: "You should instead get a reference to the runtime map, and
then call layers.add() with an MgLayer object."

Which of the mentioned actions are you unsure about?

Regards, Kenneth Skovhede, GEOGRAF A/S



Carmelo Saffioti skrev:

Hi Kenneth,
how would you fix that code? Please let me know how.
But is it everything I need for the steps you talked me about?
 
 
Thank you very much in advance

Cheers
Carmelo
 

 


- Original Message -
*From:* Kenneth Skovhede, GEOGRAF A/S 
*To:* MapGuide Users Mail List

*Sent:* Friday, January 09, 2009 9:52 AM
*Subject:* Re: [mapguide-users] Adding a temporary Layer in MapGuide

Please be aware that the code below attempts to create the layer
before the viewer
starts up. As I read the question, the map is already loaded, but
should have the layer added.
Most of the steps are the same, until this line and down:
$md = "Library://Test/X.MapDefinition";

You should instead get a reference to the runtime map, and
then call layers.add() with an MgLayer object.

Regards, Kenneth Skovhede, GEOGRAF A/S





___
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] Theme layer - error

2009-01-12 Thread Kenneth Skovhede, GEOGRAF A/S

The error message states:
Error: XML Indexer:  Parse error in document at line, 72, char 12.
message: Not enough elements to match content model :
'((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'

The message is that the tag closing on line 72 should have the above 
tags (LineStyle, , SizeContext),

but it does not.

However, the layer xml you sent, only contains 44 lines, so the layer 
that fails to save is clearly another one.


Regards, Kenneth Skovhede, GEOGRAF A/S



Arnaud De Groof skrev:

The same error is always present.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: lundi 12 janvier 2009 15:31
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Theme layer - error

quick guessFF808080

On Tue, Jan 13, 2009 at 1:16 AM, Arnaud De Groof
 wrote:
  

Here the LayerDefinition:


http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd"
version="1.1.0">
 
   Library://Test/testpoly.FeatureSource
   Default:New_Shapefile
   FeatureClass
   
   
 T2
 T2
   
   
 T1
 T1
   
   Geometry
   
   
   
 
   
 
 
   
 Solid
 ff808080
 ff808080
   
   
 Solid
 0
 808080
 Millimeters
 MappingUnits
   
 
   
 
   
 




-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac


Spitzer
  

Sent: lundi 12 janvier 2009 15:11
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Theme layer - error

can you post your layer xml?

On Tue, Jan 13, 2009 at 1:02 AM, Arnaud De Groof
 wrote:


Hi,



I have a problem with the function "Theme layer". With the Sheboygan
  

example


(district layer), the function is successful used but when I try to
  

use this


function with my different polygon layers, the following error is
encountered during the process:



Error: An exception occurred in DB XML component.

Error: XML Indexer:  Parse error in document at line, 72,
  

char
  

12.


Parser message: Not enough elements to match content model :
'((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'

 StackTrace:

  - MgResourceServiceHandler.ProcessOperation line 80 file

  

d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
  

\resource\ResourceServiceHandler.cpp


  - MgOpSetResource.Execute line 103 file

  

d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
  

\resource\OpSetResource.cpp


  - MgServerResourceService.SetResource line 713 file

  

d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
  

\resource\ServerResourceService.cpp


  - MgRepositoryManager.SetResource line 867 file

  

d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
  

\resource\RepositoryManager.cpp


  - MgRepositoryManager.AddResource line 840 file

  

d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
  

\resource\RepositoryManager.cpp


  - MgResourceContentManager.AddResource line 183 file

  

d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
  

\resource\ResourceContentManager.cpp


  - MgResourceContentManager.PutDocument line 624 file

  

d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
  

\resource\ResourceContentManager.cpp


  - MgResourceDefinitionManager.PutDocument line 554 file

  

d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
  

\resource\ResourceDefinitionManager.cpp


An exception occurred in DB XML component.

Error: XML Indexer:  Parse error in document at line, 72, char 12.
  

Parser


message: Not enough elements to match content model :
'((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'



Moreover, is it possible to configure this function aiming to apply a
graduated color depending to the attribute value?



Thanks.



Regards,



Arnaud De Groof




E-MAIL DISCLAIMER

The present message may contain confidential and/or legally
  

privileged
  

information. If you are not the intended addressee and in case of a
transmission error, please notify the sender immediately and destroy
  

this


E-mail. Disclosure, reproduction or distribution of this document and
  

its


possible attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate,
intercepted, (partly) destroyed, lost and/or belated transmission of
  

the


current information given that unencrypted electronic transmission
  

cannot


curre

RE: [mapguide-users] Problems with selection

2009-01-12 Thread clarkie342

Is there a solution to the initial issue here? I came across the same thing
but I do not have any joins in the feature source.
Here is the javascript that I have to update the selection. 

var selectionXml =
document.getElementById("ctl00_ContentPlaceHolder1_hfSelectXml").getAttribute("value");
var mapFrame =
document.getElementById("viewerFrame").contentWindow.GetMapFrame();
mapFrame.SetSelectionXML(selectionXml);
mapFrame.Refresh(); 

the status bar shows 1 feature selected but no feature is highlighted. I
also tried manual refresh of the map(from context menu) that did not
highlight the selected features either. Appreciate any help.
Thanks.


Andy Morsell wrote:
> 
> Yes, it does say that a feature is selected.  Technically, it still is
> since
> the selection object exists on the server and is not disposed of when you
> turn the layer off.  This is most likely by design and I find it would
> probably be more desirable than not to have that selection object reappear
> when the layer is turned back on if it was the last thing I had selected.
> If you want to clear the selection, even when the layer is turned off, you
> can use the Clear Selection through the interface or programmatically.
>  
> 
> Andy 
> 
> 
>   _  
> 
> From: Butler, Juan P [mailto:jpbut...@co.pinellas.fl.us] 
> Sent: Thursday, April 20, 2006 11:05 AM
> To: us...@mapguide.osgeo.org
> Subject: RE: [mapguide-users] Problems with selection
> 
> 
> Thanks Andy.
>  
> Check to see on the status bar if it states that an object is selected
> when
> the layer is turned off.  My highlight goes away, but the map still has an
> object selected.
>  
> - Juan
> 
>   _  
> 
> From: Andy Morsell [mailto:amors...@spatialgis.com]
> Sent: Thu 4/20/2006 1:16 PM
> To: us...@mapguide.osgeo.org
> Subject: RE: [mapguide-users] Problems with selection
> 
> 
> I am seeing the same thing in regards to the joined feature (polygons
> joined
> to Access) not highlighting when selected but the attributes do show up in
> the Properties pane.  I am also seeing some general weirdness with this
> layer.  If I turn it off in the legend, it does not turn off on the map (a
> request to the server does not occur) until I select an object.  Panning
> and
> zooming aren't forcing the refresh.  I suspect these are related issues
> and
> the refresh flag is getting stuck when interacting with these types of
> layers.
>  
> I don't see the same thing as you in the second case.  If I select an
> object
> and it highlights and then turn off that layer, the highlight turns off as
> well.  When that layer is turned back on, the highlight also reappears.
>  
> 
> Andy Morsell, P.E. 
> Spatial Integrators, Inc. 
> http://www.SpatialGIS.com  
> 
>  
> 
> 
>   _  
> 
> From: Butler, Juan P [mailto:jpbut...@co.pinellas.fl.us] 
> Sent: Thursday, April 20, 2006 9:36 AM
> To: us...@mapguide.osgeo.org
> Subject: RE: [mapguide-users] Problems with selection
> 
> 
> 
> Some more observations...
>  
> It seems that when I select my parcel layer that is tied to my Access
> database, the highlight feature doesn't work.  When I switch over to use
> just the layer that is based strictly on the sdf file, the highlighting
> works.  So I guess it has something to do with layers that are tied to an
> Access database.  Can someone else please try this and let me know if they
> are seeing this?
>  
> Also, when I select a feature and then turn of the layer of the selected
> feature, the feature seems to still be selected.  Odd.   
>  
> FYI: I'm using the AJAXViewer
>  
> - Juan
> 
>   _  
> 
> From: Butler, Juan P
> Sent: Thu 4/20/2006 12:05 PM
> To: us...@mapguide.osgeo.org
> Subject: [mapguide-users] Problems with selection
> 
> 
> Has anyone experienced problems with features not highlighting after
> selection?  The data appears in the Properties frame, but the feature
> isn't
> highlighted.  Plus, the bottom of the map states 1 feature selected.  It's
> only on my parcel polygon layer.   My other polygon layers select and
> highlight fine.  Weird.
>  
> Another thing I noticed was when I had a feature selected from this layer,
> if I go to zoom out or pan, the map locks up and does nothing unless I
> unselect the feature.  
>  
> - Juan
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Problems-with-selection-tp1804059p2147489.html
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] mapguide.osgeo.org

2009-01-12 Thread Moog

Frank,

everything's fine now.

thanks


Frank Warmerdam wrote:
> 
> Moog wrote:
>> Hi,
>> i just noticed that mapguide.osgeo.org page is temporaly? used for FOSS4G
>> 2008. I wanted to download netviewersamples, i wonder if someone has a
>> link
>> to download it.
>> 
>> thanks a lot
>> 
>> pd: sorry for this, this might be an untopic issue
> 
> Moog,
> 
> Sorry for this.  Tyler Mitchell has corrected the problem on the server
> and
> things should be working fine now.   Let us know if problems persist.
> 
> Best regards,
> -- 
> ---+--
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmer...@pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush| Geospatial Programmer for Rent
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/mapguide.osgeo.org-tp2146769p2146946.html
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] mapguide.osgeo.org

2009-01-12 Thread ed57gmc-bus
That link works for me.
 
Ed Jobe





From: Moog 
To: mapguide-users@lists.osgeo.org
Sent: Monday, January 12, 2009 9:20:57 AM
Subject: [mapguide-users] mapguide.osgeo.org


Hi,
i just noticed that mapguide.osgeo.org page is temporaly? used for FOSS4G
2008. I wanted to download netviewersamples, i wonder if someone has a link
to download it.

thanks a lot

pd: sorry for this, this might be an untopic issue
-- 
View this message in context: 
http://n2.nabble.com/mapguide.osgeo.org-tp2146769p2146769.html
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
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] mapguide.osgeo.org

2009-01-12 Thread Frank Warmerdam

Moog wrote:

Hi,
i just noticed that mapguide.osgeo.org page is temporaly? used for FOSS4G
2008. I wanted to download netviewersamples, i wonder if someone has a link
to download it.

thanks a lot

pd: sorry for this, this might be an untopic issue


Moog,

Sorry for this.  Tyler Mitchell has corrected the problem on the server and
things should be working fine now.   Let us know if problems persist.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


[mapguide-users] mapguide.osgeo.org

2009-01-12 Thread Moog

Hi,
i just noticed that mapguide.osgeo.org page is temporaly? used for FOSS4G
2008. I wanted to download netviewersamples, i wonder if someone has a link
to download it.

thanks a lot

pd: sorry for this, this might be an untopic issue
-- 
View this message in context: 
http://n2.nabble.com/mapguide.osgeo.org-tp2146769p2146769.html
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] Precision problem viewing map

2009-01-12 Thread Chris Claydon
I tried digitizing a rectangle, and the result was that it was offset only in 
the y axis. I believe this corresponds to the small space that you have between 
the top of the map frame and the top of the map itself. I've seen bugs reported 
about this gap before, but I'm not sure if they've been resolved.

Chris.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Stefan Dalakov
Sent: Monday, January 12, 2009 4:12 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Precision problem viewing map

Hi all,
I am facing a strange and unexpected problem regarding precision of map
and coordinates display. I see that my data is not displayed on the
exact place - there is a shift in Y coordinate. I have a raster layer
with bounding rectangle
Xmin=..., Ymin=7070400, Xmax= Ymax=7071600. But when I move the
mouse pointer at the lower left corner I see Y=7070320 (at scale 1:2000
let say) or similar value, and the difference depends on the scale. If I
zoom down, the difference changes, and at scales close to 1:50 it is ok.
The situation is similar at the upper right corner. I observe exactly
the same effect with all other layers.
I wouldn't care too much about this - even if there is a shift, all
layers are shifted equally, but when I digitize a polygon it is also
shifted. Imagine I digitize a polygon to follow a feature on the raster
image, coordinates are recorded , the feature is added to data source,
but when it is added, due to this shift it appears not where it has been
digitized, but shifted.
I guess you did not understand anything of this, but you can visit

http://www.bgmapguide.com:8008/mapguide/rakvag/main.php

click on "draw a new suggestion" and try to digitize 2 adjacent polygons
- you will see them overlap
Please be gentle to the server - it is an old tired horse.
And to save some time - all layers and the map are in the same
coordinate system.
This effect is not depending on the browser (tested with FFox 2 & 3,
Safari and IE) and is not depending on the screen resolution


Best regards : Stefan Dalakov
___
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] RE: Theme layer application - point feature layers

2009-01-12 Thread Chris Claydon
I suspect that the cause of the problem is that the Sheboygan sample layer uses 
a 1.0.0 layer definition and your own layer uses a 1.1.0 layer definition. The 
SizeContext element was added to the StrokeType element in the later version of 
the schema, thus if you want to use the Theme code with a newer layer, you'll 
need to update the style template (arearuletemplate.xml) to include the extra 
setting.

BTW - SizeContext can be set to either DeviceUnits or MappingUnits. If set to 
DeviceUnits, the line width is interpreted in the units of your screen, and 
remains constant regardless of the map scale. If set to MappingUnits, it is 
interpreted as a real-world size, and thus will increase in width on the screen 
as you zoom in.

Chris.

From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Arnaud De Groof
Sent: Monday, January 12, 2009 7:30 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] RE: Theme layer application - point feature layers

Thanks for this information; I have modified the file 
(../phpviewersample/theme/classes/theme.php) according your remarks. Now, I 
have the possibility to select the point layers. I changed also the different 
reference to the  by . I do not know if these changes are 
correct because I have a problem with this function (polygon layers), see 
http://lists.osgeo.org/pipermail/mapguide-users/2009-January/016202.html

Regards,

Arnaud De Groof

From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Chris Claydon
Sent: vendredi 9 janvier 2009 19:53
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Theme layer application - point feature layers

The sample code generates  elements in a layer definition, and 
therefore applies only to polygon styles. It should be relatively easy to 
modify it to handle point layers and styles instead.

From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Arnaud De Groof
Sent: Friday, January 09, 2009 2:49 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Theme layer application - point feature layers

Hello,

Is it possible to use the application "Theme Layer" with point feature layers? 
The code sample (phpviewersample/theme) allows only selecting the polygon 
feature layers.

Thanks,

Arnaud De Groof


E-MAIL DISCLAIMER

The present message may contain confidential and/or legally privileged 
information. If you are not the intended addressee and in case of a 
transmission error, please notify the sender immediately and destroy this 
E-mail. Disclosure, reproduction or distribution of this document and its 
possible attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate, 
intercepted, (partly) destroyed, lost and/or belated transmission of the 
current information given that unencrypted electronic transmission cannot 
currently be guaranteed to be secure or error free.
Upon request or in conformity with formal, contractual agreements, an 
originally signed hard copy will be sent to you to confirm the information 
contained in this E-mail.

SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might corrupt 
this message and/or your computer system.



E-MAIL DISCLAIMER

The present message may contain confidential and/or legally privileged 
information. If you are not the intended addressee and in case of a 
transmission error, please notify the sender immediately and destroy this 
E-mail. Disclosure, reproduction or distribution of this document and its 
possible attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate, 
intercepted, (partly) destroyed, lost and/or belated transmission of the 
current information given that unencrypted electronic transmission cannot 
currently be guaranteed to be secure or error free.
Upon request or in conformity with formal, contractual agreements, an 
originally signed hard copy will be sent to you to confirm the information 
contained in this E-mail.

SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might corrupt 
this message and/or your computer system.


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


[mapguide-users] GT Markup sample problems

2009-01-12 Thread Warren Medernach
This is extremely frustrating...

 

I setup the GT sample app and was testing the markup functionality.
(WinXP, IIS, MGE 2009)

Everything was working great with creating lines and points.

Then MG 'hiccups' and freezes up...   so I have to reset IIS, restart
the MG service to get MG back up and running.

Now when I run the GT Markup sample I get the following error when
attempting to markup:

 

Invalid stream header exception. 

Invalid stream header exception. Exception occurred in method
MgCommand.GetResponse at line 152 in file
d:\buildforgeprojects\carrera_nightly\build_26.9\ent\os\common\mapguidec
ommon\Services/Command.cpp  

 

What the?!?   There were no code changes, nothing, just simple reset
after MG froze up and now this is the result?

I thought maybe the Markup SDF got corrupted, so I deleted it, and had
the app re-create it, still doesn't work.

Is it possible that the repositories got corrupted?

 

Any ideas on how to resolve this would be greatly appreciated.

Thanks!

 

Warren M

 

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


RE: [mapguide-users] Microsoft Access DB in Mapguide 1.2 on Linux

2009-01-12 Thread ray
Thanks Ken and Frank.  After some more research, I found this A2M tool from Bullzip and used it to move access to mysql.  We will be moving forward with that,  and using Access as a front end to use Forms and other reports for the data on mysql that mapguide can also attach to.Now to get Mapguide to use the mysql DB!Thats the next step.Thanks you two!


 Original Message 
Subject: Re: [mapguide-users] Microsoft Access DB in Mapguide 1.2 on
Linux
From: Frank Warmerdam 
Date: Sun, January 11, 2009 6:17 pm
To: MapGuide Users Mail List 

Kenneth Skovhede, GEOGRAF A/S wrote:
> AFAIK, there is no really great method for using Access on Linux.
> 
> Conversion to MySQL should be fairly easy:
> http://www.bullzip.com/products/a2m/info.php
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> r...@rayholtz.com skrev:
>> Has anyone gotten an MSAccess database to work with Mapguide 1.2 on 
>> Linux and How?
>> or second question:
>> Has anyone converted an Access database to a mysql database to use 
>> with Mapguide, and how?

Ray,

Mateusz Loskot got OGR's PGeo driver working on linux using mdbtools, and
documented his steps at:

   http://trac.osgeo.org/gdal/wiki/mdbtools

But my opinion is that this is a pretty difficult to setup situation and
fragile at the best of times.

Best regards,
-- 
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
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] Adding a temporary Layer in MapGuide

2009-01-12 Thread Arnaud De Groof
The first code :
Open($userInfo);

$resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService);

 

// Read the MapDefinition into an XML DOM document object.

$md = " Library://XXX/$mapName.MapDefinition "; // TODO Constant!

$mdResourceId = new MgResourceIdentifier($md);

$mdReader = $resourceService->GetResourceContent($mdResourceId);

$mdXml = $mdReader->ToString();

$mdDomDoc = DOMDocument::loadXML($mdXml); 

 

// Add a new MapLayer

$targetNode = $mdDomDoc->getElementsByTagName("MapLayer")->item(0);

$newNode = $targetNode->parentNode->insertBefore(new
DOMElement("MapLayer"), $targetNode); 

$newNode->appendChild($mdDomDoc->createElement("Name", $layerName1));

$newNode->appendChild($mdDomDoc->createElement("ResourceId",
$rlLayerResourceId));

$newNode->appendChild($mdDomDoc->createElement("Selectable", "false"));

$newNode->appendChild($mdDomDoc->createElement("ShowInLegend",
"false"));

$newNode->appendChild($mdDomDoc->createElement("LegendLabel"));

$newNode->appendChild($mdDomDoc->createElement("ExpandInLegend",
"false"));

$newNode->appendChild($mdDomDoc->createElement("Visible", "true"));

$newNode->appendChild($mdDomDoc->createElement("Group"));

 

// Save the updated MapDefinition

$updatedXml = $mdDomDoc->saveXML();

$byteSource = new MgByteSource($updatedXml, strlen($updatedXml));

 

// Create the temporary MapDefinition

$sessionMapName = $mdResourceId->GetName();

$sessionMapDefinition =
"Session:$sessionId//$sessionMapName.MapDefinition";

$sessionResourceId = new MgResourceIdentifier($sessionMapDefinition);

 

// Write the updated MapDefinition

$resourceService->SetResource($sessionResourceId,
$byteSource->GetReader(), null);

 

//Test the updated MapDefinition

$md1 = "Session:$sessionId//X.MapDefinition";

$mdResourceId2 = new MgResourceIdentifier($md1);

$mdReader2 = $resourceService->GetResourceContent($mdResourceId2);

$mdXml2 = $mdReader2->ToString();

$mdDomDoc2 = DOMDocument::loadXML($mdXml2);

 

 

// Read the WebLayout into an XML DOM document object.

$wl = "Library://XXX/XXX.WebLayout"; // TODO Constant!

$wlResourceId = new MgResourceIdentifier($wl);

$wlReader = $resourceService->GetResourceContent($wlResourceId);

$wlXml = $wlReader->ToString();

$wlDomDoc = DOMDocument::loadXML($wlXml); 

 

// Now, update the MapDefinition.

$mapdef = $wlDomDoc->getElementsByTagName("ResourceId")->item(0);

$mapdef->nodeValue = "$md1";

 

// Prepare the updated XML to be written out to the session.

$wlupdatedXml = $wlDomDoc->saveXML();

$wlbyteSource = new MgByteSource($wlupdatedXml, strlen($wlupdatedXml));

 

// Create a temporary WebLayout

$wlsessionMapName = $wlResourceId->GetName();

$wlsessionWebLayout = "Session:$sessionId//$wlsessionMapName.WebLayout";

$wlsessionResourceId = new MgResourceIdentifier($wlsessionWebLayout);

 

// Write the updated WebLayout to the session.

$resourceService->SetResource($wlsessionResourceId,
$wlbyteSource->GetReader(), null);

 

// Redirect to the Ajax viewer.

$redirectTo =
"mapguide/mapviewerajax/?SESSION=$sessionId&WEBLAYOUT=$wlsessionWebLayou
t";

$host = $_SERVER["HTTP_HOST"];

$url = "http://$host/$redirectTo";;

 

//Test

$f = 'test.txt';

$handle = fopen($f,"w");

fwrite($handle, "test1:<".$mdXml.">\r\ntest 2 :<".$updatedXml.">\r\ntest
3 :<".$wlXml.">\r\ntest 4 :<".$wlupdatedXml.">\r\ntest 5 :<".$url.">");

fclose($handle);

 

// Redirect!

header("Location: $url");

exit;

 

?>

___
E-MAIL DISCLAIMER

The present message may contain confidential and/or legally privileged 
information.
If you are not the intended addressee and in case of a transmission error,
please notify the sender immediately and destroy this E-mail. 
Disclosure, reproduction or distribution of this document and its possible 
attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate, 
intercepted, 
(partly) destroyed, lost and/or belated transmission of the current information 
given that unencrypted electronic transmission cannot currently be guaranteed 
to be secure or error free. Upon request or in conformity with formal, 
contractual 
agreements, an originally signed hard copy will be sent to you to confirm 
the information contained in this E-mail.

SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might corrupt 
this 
message and/or your computer system.




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


RE: [mapguide-users] Theme layer - error

2009-01-12 Thread Arnaud De Groof
The same error is always present.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: lundi 12 janvier 2009 15:31
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Theme layer - error

quick guessFF808080

On Tue, Jan 13, 2009 at 1:16 AM, Arnaud De Groof
 wrote:
> Here the LayerDefinition:
>
> 
> http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd"
> version="1.1.0">
>  
>Library://Test/testpoly.FeatureSource
>Default:New_Shapefile
>FeatureClass
>
>
>  T2
>  T2
>
>
>  T1
>  T1
>
>Geometry
>
>
>
>  
>
>  
>  
>
>  Solid
>  ff808080
>  ff808080
>
>
>  Solid
>  0
>  808080
>  Millimeters
>  MappingUnits
>
>  
>
>  
>
>  
> 
>
>
>
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac
Spitzer
> Sent: lundi 12 janvier 2009 15:11
> To: MapGuide Users Mail List
> Subject: Re: [mapguide-users] Theme layer - error
>
> can you post your layer xml?
>
> On Tue, Jan 13, 2009 at 1:02 AM, Arnaud De Groof
>  wrote:
>> Hi,
>>
>>
>>
>> I have a problem with the function "Theme layer". With the Sheboygan
> example
>> (district layer), the function is successful used but when I try to
> use this
>> function with my different polygon layers, the following error is
>> encountered during the process:
>>
>>
>>
>> Error: An exception occurred in DB XML component.
>>
>> Error: XML Indexer:  Parse error in document at line, 72,
char
> 12.
>> Parser message: Not enough elements to match content model :
>> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>>
>>  StackTrace:
>>
>>   - MgResourceServiceHandler.ProcessOperation line 80 file
>>
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ResourceServiceHandler.cpp
>>
>>   - MgOpSetResource.Execute line 103 file
>>
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\OpSetResource.cpp
>>
>>   - MgServerResourceService.SetResource line 713 file
>>
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ServerResourceService.cpp
>>
>>   - MgRepositoryManager.SetResource line 867 file
>>
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\RepositoryManager.cpp
>>
>>   - MgRepositoryManager.AddResource line 840 file
>>
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\RepositoryManager.cpp
>>
>>   - MgResourceContentManager.AddResource line 183 file
>>
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ResourceContentManager.cpp
>>
>>   - MgResourceContentManager.PutDocument line 624 file
>>
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ResourceContentManager.cpp
>>
>>   - MgResourceDefinitionManager.PutDocument line 554 file
>>
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ResourceDefinitionManager.cpp
>> An exception occurred in DB XML component.
>>
>> Error: XML Indexer:  Parse error in document at line, 72, char 12.
> Parser
>> message: Not enough elements to match content model :
>> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>>
>>
>>
>> Moreover, is it possible to configure this function aiming to apply a
>> graduated color depending to the attribute value?
>>
>>
>>
>> Thanks.
>>
>>
>>
>> Regards,
>>
>>
>>
>> Arnaud De Groof
>>
>>
>>
>> 
>> E-MAIL DISCLAIMER
>>
>> The present message may contain confidential and/or legally
privileged
>> information. If you are not the intended addressee and in case of a
>> transmission error, please notify the sender immediately and destroy
> this
>> E-mail. Disclosure, reproduction or distribution of this document and
> its
>> possible attachments is strictly forbidden.
>>
>> SPACEBEL denies all liability for incomplete, improper, inaccurate,
>> intercepted, (partly) destroyed, lost and/or belated transmission of
> the
>> current information given that unencrypted electronic transmission
> cannot
>> currently be guaranteed to be secure or error free.
>> Upon request or in conformity with formal, contractual agreements, an
>> originally signed hard copy will be sent to you to confirm the
> information
>> contained in this E-mail.
>>
>> SPACEBEL denies all liability where E-mail is used for private use.
>>
>> SPACEBEL cannot be held responsible for possible viruses that might
> corrupt
>> this message and/or your computer system.
>>
>> ___

[mapguide-users] FLoat data with King.Oracle

2009-01-12 Thread euskalmap

Hi, 
why the column data FLOAT do not appear in my ressource layer in Mapguide
Studio ?
Thanks
NB:King.oracle 0.7.4 with Oracle 10.2g
-- 
View this message in context: 
http://n2.nabble.com/FLoat-data-with-King.Oracle-tp2145901p2145901.html
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] Theme layer - error

2009-01-12 Thread Zac Spitzer
quick guessFF808080

On Tue, Jan 13, 2009 at 1:16 AM, Arnaud De Groof
 wrote:
> Here the LayerDefinition:
>
> 
> http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd"
> version="1.1.0">
>  
>Library://Test/testpoly.FeatureSource
>Default:New_Shapefile
>FeatureClass
>
>
>  T2
>  T2
>
>
>  T1
>  T1
>
>Geometry
>
>
>
>  
>
>  
>  
>
>  Solid
>  ff808080
>  ff808080
>
>
>  Solid
>  0
>  808080
>  Millimeters
>  MappingUnits
>
>  
>
>  
>
>  
> 
>
>
>
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer
> Sent: lundi 12 janvier 2009 15:11
> To: MapGuide Users Mail List
> Subject: Re: [mapguide-users] Theme layer - error
>
> can you post your layer xml?
>
> On Tue, Jan 13, 2009 at 1:02 AM, Arnaud De Groof
>  wrote:
>> Hi,
>>
>>
>>
>> I have a problem with the function "Theme layer". With the Sheboygan
> example
>> (district layer), the function is successful used but when I try to
> use this
>> function with my different polygon layers, the following error is
>> encountered during the process:
>>
>>
>>
>> Error: An exception occurred in DB XML component.
>>
>> Error: XML Indexer:  Parse error in document at line, 72, char
> 12.
>> Parser message: Not enough elements to match content model :
>> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>>
>>  StackTrace:
>>
>>   - MgResourceServiceHandler.ProcessOperation line 80 file
>>
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ResourceServiceHandler.cpp
>>
>>   - MgOpSetResource.Execute line 103 file
>>
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\OpSetResource.cpp
>>
>>   - MgServerResourceService.SetResource line 713 file
>>
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ServerResourceService.cpp
>>
>>   - MgRepositoryManager.SetResource line 867 file
>>
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\RepositoryManager.cpp
>>
>>   - MgRepositoryManager.AddResource line 840 file
>>
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\RepositoryManager.cpp
>>
>>   - MgResourceContentManager.AddResource line 183 file
>>
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ResourceContentManager.cpp
>>
>>   - MgResourceContentManager.PutDocument line 624 file
>>
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ResourceContentManager.cpp
>>
>>   - MgResourceDefinitionManager.PutDocument line 554 file
>>
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
> \resource\ResourceDefinitionManager.cpp
>> An exception occurred in DB XML component.
>>
>> Error: XML Indexer:  Parse error in document at line, 72, char 12.
> Parser
>> message: Not enough elements to match content model :
>> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>>
>>
>>
>> Moreover, is it possible to configure this function aiming to apply a
>> graduated color depending to the attribute value?
>>
>>
>>
>> Thanks.
>>
>>
>>
>> Regards,
>>
>>
>>
>> Arnaud De Groof
>>
>>
>>
>> 
>> E-MAIL DISCLAIMER
>>
>> The present message may contain confidential and/or legally privileged
>> information. If you are not the intended addressee and in case of a
>> transmission error, please notify the sender immediately and destroy
> this
>> E-mail. Disclosure, reproduction or distribution of this document and
> its
>> possible attachments is strictly forbidden.
>>
>> SPACEBEL denies all liability for incomplete, improper, inaccurate,
>> intercepted, (partly) destroyed, lost and/or belated transmission of
> the
>> current information given that unencrypted electronic transmission
> cannot
>> currently be guaranteed to be secure or error free.
>> Upon request or in conformity with formal, contractual agreements, an
>> originally signed hard copy will be sent to you to confirm the
> information
>> contained in this E-mail.
>>
>> SPACEBEL denies all liability where E-mail is used for private use.
>>
>> SPACEBEL cannot be held responsible for possible viruses that might
> corrupt
>> this message and/or your computer system.
>>
>> 
>>
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>
>
>
> --
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
> 

RE: [mapguide-users] RE: Theme layer application - point feature layers

2009-01-12 Thread Arnaud De Groof
Thanks for this information; I have modified the file
(../phpviewersample/theme/classes/theme.php) according your remarks.
Now, I have the possibility to select the point layers. I changed also
the different reference to the  by . I do not know
if these changes are correct because I have a problem with this function
(polygon layers), see
http://lists.osgeo.org/pipermail/mapguide-users/2009-January/016202.html




Regards,



Arnaud De Groof



From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Chris
Claydon
Sent: vendredi 9 janvier 2009 19:53
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Theme layer application - point feature
layers



The sample code generates  elements in a layer definition, and
therefore applies only to polygon styles. It should be relatively easy
to modify it to handle point layers and styles instead.



From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Arnaud De
Groof
Sent: Friday, January 09, 2009 2:49 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Theme layer application - point feature layers



Hello,



Is it possible to use the application "Theme Layer" with point feature
layers? The code sample (phpviewersample/theme) allows only selecting
the polygon feature layers.



Thanks,



Arnaud De Groof





E-MAIL DISCLAIMER

The present message may contain confidential and/or legally privileged
information. If you are not the intended addressee and in case of a
transmission error, please notify the sender immediately and destroy
this E-mail. Disclosure, reproduction or distribution of this document
and its possible attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate,
intercepted, (partly) destroyed, lost and/or belated transmission of the
current information given that unencrypted electronic transmission
cannot currently be guaranteed to be secure or error free.
Upon request or in conformity with formal, contractual agreements, an
originally signed hard copy will be sent to you to confirm the
information contained in this E-mail.

SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might
corrupt this message and/or your computer system.



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


Re: [mapguide-users] Adding a temporary Layer in MapGuide

2009-01-12 Thread Carmelo Saffioti
Hi Kenneth,
how would you fix that code? Please let me know how.
But is it everything I need for the steps you talked me about?


Thank you very much in advance
Cheers
Carmelo
  


  - Original Message - 
  From: Kenneth Skovhede, GEOGRAF A/S 
  To: MapGuide Users Mail List 
  Sent: Friday, January 09, 2009 9:52 AM
  Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide


  Please be aware that the code below attempts to create the layer before the 
viewer 
  starts up. As I read the question, the map is already loaded, but should have 
the layer added.
  Most of the steps are the same, until this line and down:
  $md = "Library://Test/X.MapDefinition";

  You should instead get a reference to the runtime map, and 
  then call layers.add() with an MgLayer object.


Regards, Kenneth Skovhede, GEOGRAF A/S
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Theme layer - error

2009-01-12 Thread Arnaud De Groof
Here the LayerDefinition: 


http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd"
version="1.1.0">
  
Library://Test/testpoly.FeatureSource
Default:New_Shapefile
FeatureClass


  T2
  T2


  T1
  T1

Geometry



  

  
  

  Solid
  ff808080
  ff808080


  Solid
  0
  808080
  Millimeters
  MappingUnits

  

  

  




-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: lundi 12 janvier 2009 15:11
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Theme layer - error

can you post your layer xml?

On Tue, Jan 13, 2009 at 1:02 AM, Arnaud De Groof
 wrote:
> Hi,
>
>
>
> I have a problem with the function "Theme layer". With the Sheboygan
example
> (district layer), the function is successful used but when I try to
use this
> function with my different polygon layers, the following error is
> encountered during the process:
>
>
>
> Error: An exception occurred in DB XML component.
>
> Error: XML Indexer:  Parse error in document at line, 72, char
12.
> Parser message: Not enough elements to match content model :
> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>
>  StackTrace:
>
>   - MgResourceServiceHandler.ProcessOperation line 80 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceServiceHandler.cpp
>
>   - MgOpSetResource.Execute line 103 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\OpSetResource.cpp
>
>   - MgServerResourceService.SetResource line 713 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ServerResourceService.cpp
>
>   - MgRepositoryManager.SetResource line 867 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\RepositoryManager.cpp
>
>   - MgRepositoryManager.AddResource line 840 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\RepositoryManager.cpp
>
>   - MgResourceContentManager.AddResource line 183 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceContentManager.cpp
>
>   - MgResourceContentManager.PutDocument line 624 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceContentManager.cpp
>
>   - MgResourceDefinitionManager.PutDocument line 554 file
>
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceDefinitionManager.cpp
> An exception occurred in DB XML component.
>
> Error: XML Indexer:  Parse error in document at line, 72, char 12.
Parser
> message: Not enough elements to match content model :
> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>
>
>
> Moreover, is it possible to configure this function aiming to apply a
> graduated color depending to the attribute value?
>
>
>
> Thanks.
>
>
>
> Regards,
>
>
>
> Arnaud De Groof
>
>
>
> 
> E-MAIL DISCLAIMER
>
> The present message may contain confidential and/or legally privileged
> information. If you are not the intended addressee and in case of a
> transmission error, please notify the sender immediately and destroy
this
> E-mail. Disclosure, reproduction or distribution of this document and
its
> possible attachments is strictly forbidden.
>
> SPACEBEL denies all liability for incomplete, improper, inaccurate,
> intercepted, (partly) destroyed, lost and/or belated transmission of
the
> current information given that unencrypted electronic transmission
cannot
> currently be guaranteed to be secure or error free.
> Upon request or in conformity with formal, contractual agreements, an
> originally signed hard copy will be sent to you to confirm the
information
> contained in this E-mail.
>
> SPACEBEL denies all liability where E-mail is used for private use.
>
> SPACEBEL cannot be held responsible for possible viruses that might
corrupt
> this message and/or your computer system.
>
> 
>
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
___
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] Theme layer - error

2009-01-12 Thread Zac Spitzer
can you post your layer xml?

On Tue, Jan 13, 2009 at 1:02 AM, Arnaud De Groof
 wrote:
> Hi,
>
>
>
> I have a problem with the function "Theme layer". With the Sheboygan example
> (district layer), the function is successful used but when I try to use this
> function with my different polygon layers, the following error is
> encountered during the process:
>
>
>
> Error: An exception occurred in DB XML component.
>
> Error: XML Indexer:  Parse error in document at line, 72, char 12.
> Parser message: Not enough elements to match content model :
> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>
>  StackTrace:
>
>   - MgResourceServiceHandler.ProcessOperation line 80 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\ResourceServiceHandler.cpp
>
>   - MgOpSetResource.Execute line 103 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\OpSetResource.cpp
>
>   - MgServerResourceService.SetResource line 713 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\ServerResourceService.cpp
>
>   - MgRepositoryManager.SetResource line 867 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\RepositoryManager.cpp
>
>   - MgRepositoryManager.AddResource line 840 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\RepositoryManager.cpp
>
>   - MgResourceContentManager.AddResource line 183 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\ResourceContentManager.cpp
>
>   - MgResourceContentManager.PutDocument line 624 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\ResourceContentManager.cpp
>
>   - MgResourceDefinitionManager.PutDocument line 554 file
> d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\ResourceDefinitionManager.cpp
> An exception occurred in DB XML component.
>
> Error: XML Indexer:  Parse error in document at line, 72, char 12. Parser
> message: Not enough elements to match content model :
> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>
>
>
> Moreover, is it possible to configure this function aiming to apply a
> graduated color depending to the attribute value?
>
>
>
> Thanks.
>
>
>
> Regards,
>
>
>
> Arnaud De Groof
>
>
>
> 
> E-MAIL DISCLAIMER
>
> The present message may contain confidential and/or legally privileged
> information. If you are not the intended addressee and in case of a
> transmission error, please notify the sender immediately and destroy this
> E-mail. Disclosure, reproduction or distribution of this document and its
> possible attachments is strictly forbidden.
>
> SPACEBEL denies all liability for incomplete, improper, inaccurate,
> intercepted, (partly) destroyed, lost and/or belated transmission of the
> current information given that unencrypted electronic transmission cannot
> currently be guaranteed to be secure or error free.
> Upon request or in conformity with formal, contractual agreements, an
> originally signed hard copy will be sent to you to confirm the information
> contained in this E-mail.
>
> SPACEBEL denies all liability where E-mail is used for private use.
>
> SPACEBEL cannot be held responsible for possible viruses that might corrupt
> this message and/or your computer system.
>
> 
>
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Theme layer - error

2009-01-12 Thread Arnaud De Groof
Hi,

 

I have a problem with the function "Theme layer". With the Sheboygan
example (district layer), the function is successful used but when I try
to use this function with my different polygon layers, the following
error is encountered during the process:

 

Error: An exception occurred in DB XML component.

Error: XML Indexer:  Parse error in document at line, 72, char
12. Parser message: Not enough elements to match content model :
'((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'

 StackTrace:

  - MgResourceServiceHandler.ProcessOperation line 80 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceServiceHandler.cpp

  - MgOpSetResource.Execute line 103 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\OpSetResource.cpp

  - MgServerResourceService.SetResource line 713 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ServerResourceService.cpp

  - MgRepositoryManager.SetResource line 867 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\RepositoryManager.cpp

  - MgRepositoryManager.AddResource line 840 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\RepositoryManager.cpp

  - MgResourceContentManager.AddResource line 183 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceContentManager.cpp

  - MgResourceContentManager.PutDocument line 624 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceContentManager.cpp

  - MgResourceDefinitionManager.PutDocument line 554 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services
\resource\ResourceDefinitionManager.cpp   An exception occurred
in DB XML component.

Error: XML Indexer:  Parse error in document at line, 72, char 12.
Parser message: Not enough elements to match content model :
'((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'

 

Moreover, is it possible to configure this function aiming to apply a
graduated color depending to the attribute value? 

 

Thanks.

 

Regards,

 

Arnaud De Groof

 


___
E-MAIL DISCLAIMER

The present message may contain confidential and/or legally privileged 
information.
If you are not the intended addressee and in case of a transmission error,
please notify the sender immediately and destroy this E-mail. 
Disclosure, reproduction or distribution of this document and its possible 
attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate, 
intercepted, 
(partly) destroyed, lost and/or belated transmission of the current information 
given that unencrypted electronic transmission cannot currently be guaranteed 
to be secure or error free. Upon request or in conformity with formal, 
contractual 
agreements, an originally signed hard copy will be sent to you to confirm 
the information contained in this E-mail.

SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might corrupt 
this 
message and/or your computer system.




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


Re: [mapguide-users] Precision problem viewing map

2009-01-12 Thread Stefan Dalakov

Thank you!
And also, if it is interesting for someone, when I "iframe" this page, 
there is no problem


Stefan

Gunter Becker wrote:

Hi Stefan,

it is a bug in AjaxViewer. You have a weblayout with properties pane
disabled. Enable it and the map is
at the right position. There is also a ticket on track: 
http://trac.osgeo.org/mapguide/ticket/593
http://trac.osgeo.org/mapguide/ticket/593 


Gunter
  


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


Re: [mapguide-users] Precision problem viewing map

2009-01-12 Thread Gunter Becker

Hi Stefan,

it is a bug in AjaxViewer. You have a weblayout with properties pane
disabled. Enable it and the map is
at the right position. There is also a ticket on track: 
http://trac.osgeo.org/mapguide/ticket/593
http://trac.osgeo.org/mapguide/ticket/593 

Gunter
-- 
View this message in context: 
http://n2.nabble.com/Precision-problem-viewing-map-tp2145184p2145450.html
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] Fusion Selection value interpretation of url

2009-01-12 Thread Jason Birch
I believe that this was solved for Fusion 1.1:

 

http://trac.osgeo.org/mapguide/ticket/658

 

If you are still using Fusion 1.0.x (that ships with MGOS 2.0.2) then
you'll want to look into upgrading:

 

http://trac.osgeo.org/fusion/wiki/GetIt

 

I posted some instructions on how to upgrade MapGuide with this version
somewhere in this list...

 

Jason

 

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Arnaud De
Groof
Sent: January-09-09 7:29 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Fusion Selection value interpretation of url

 

I have a problem with the interpretation of the value (here an url) of
an attribute. With the basic WebLayout, the url is successfully
interpreted (the value in the viewer is "click here") but with the
fusion FlexibleLayout the value is not correctly translated (the value
in the viewer is Click here).

 

Please would you like to help me to resolve the following issue?

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


Re: [mapguide-users] RE: MapGuide API Intellisense in Visual Studio

2009-01-12 Thread Kenneth Skovhede, GEOGRAF A/S
AFAIK, the only difference between using codebehind and the "old-style" 
asp tags,
is that the codebehind is precompiled, whereas the "old-style" tags are 
compiled on the first access.


AFAIK, Microsoft recommends using codebehind, but the ASPX example was 
meant to
be easy to look at and experiment with, which is possible in the current 
setup, but would be more difficult
if the developers had used codebehind (eg. requires Visual Studio or a 
command line compiler).


Regards, Kenneth Skovhede, GEOGRAF A/S



Praveen Rajendra Babu skrev:


The code-behind behaves fine in VS 2008, can't see the Intellisense in 
ASPX markup only.


Also, please confirm whether MG API code can reside in code-behind 
too. All examples(atleast the ones I have seen)


seems to be in the ASPX markup only.

 


Regards,

Praveen

 

 


*From:* Praveen Rajendra Babu
*Sent:* Monday, 12 January 2009 4:22 PM
*To:* 'mapguide-users@lists.osgeo.org'
*Subject:* MapGuide API Intellisense in Visual Studio

 


Hello,

 Is anyone there who has implemented/implementing/plan to for 
intellisense support in Visual Studio?!


Any suggestions/directions would be highly appreciated.

 


Thanks and regards,

Praveen



___
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] Precision problem viewing map

2009-01-12 Thread Stefan Dalakov

Hi all,
I am facing a strange and unexpected problem regarding precision of map 
and coordinates display. I see that my data is not displayed on the 
exact place - there is a shift in Y coordinate. I have a raster layer 
with bounding rectangle
Xmin=..., Ymin=7070400, Xmax= Ymax=7071600. But when I move the 
mouse pointer at the lower left corner I see Y=7070320 (at scale 1:2000 
let say) or similar value, and the difference depends on the scale. If I 
zoom down, the difference changes, and at scales close to 1:50 it is ok. 
The situation is similar at the upper right corner. I observe exactly 
the same effect with all other layers.
I wouldn't care too much about this - even if there is a shift, all 
layers are shifted equally, but when I digitize a polygon it is also 
shifted. Imagine I digitize a polygon to follow a feature on the raster 
image, coordinates are recorded , the feature is added to data source, 
but when it is added, due to this shift it appears not where it has been 
digitized, but shifted.

I guess you did not understand anything of this, but you can visit

http://www.bgmapguide.com:8008/mapguide/rakvag/main.php

click on "draw a new suggestion" and try to digitize 2 adjacent polygons 
- you will see them overlap

Please be gentle to the server - it is an old tired horse.
And to save some time - all layers and the map are in the same 
coordinate system.
This effect is not depending on the browser (tested with FFox 2 & 3, 
Safari and IE) and is not depending on the screen resolution



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


RE: [mapguide-users] RE: Fusion Selection value interpretation of url

2009-01-12 Thread Arnaud De Groof
I have only inserted the value "Click here" in the
attribute table of the layers.



Example:

FeatId   Id  URL

1  0  Click
here



Regards,



Arnaud







From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Chris
Claydon
Sent: vendredi 9 janvier 2009 18:09
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Fusion Selection value interpretation of
url



Can you provide more details about how and where you are configuring
this URL link?



From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Arnaud De
Groof
Sent: Friday, January 09, 2009 8:29 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Fusion Selection value interpretation of url



Hi,



I have a problem with the interpretation of the value (here an url) of
an attribute. With the basic WebLayout, the url is successfully
interpreted (the value in the viewer is "click here") but with the
fusion FlexibleLayout the value is not correctly translated (the value
in the viewer is Click here).



Please would you like to help me to resolve the following issue?



Thanks,



Arnaud De Groof







E-MAIL DISCLAIMER

The present message may contain confidential and/or legally privileged
information. If you are not the intended addressee and in case of a
transmission error, please notify the sender immediately and destroy
this E-mail. Disclosure, reproduction or distribution of this document
and its possible attachments is strictly forbidden.

SPACEBEL denies all liability for incomplete, improper, inaccurate,
intercepted, (partly) destroyed, lost and/or belated transmission of the
current information given that unencrypted electronic transmission
cannot currently be guaranteed to be secure or error free.
Upon request or in conformity with formal, contractual agreements, an
originally signed hard copy will be sent to you to confirm the
information contained in this E-mail.

SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might
corrupt this message and/or your computer system.



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