[mapguide-users] RE: Problem with Studio 2010 +Flexible layouts Error

Mark Pendergraft markp at Meadgilman.com
Tue Feb 23 23:52:23 EST 2010


I realize that the terminology here is confusing.

There are two MapDefinition terms here.  One is the actual resource,
which is what you have posted below.  The resource is the file referred
to in Library://state/layer.MapDefinition.  There is also a
MapDefinition node in the ApplicationDefinition.xml file found in the
template directory.

 

What you need to do is browse to the ApplicationDefinition.xml in the
slate template folder.  Probably C:\Program
Files\OsGeo\MapGuide\Web\www\fusion\templates\mapguide\slate\Application
Definition.xml.

 

Find the <MapSet> node and make it look like this:

 

  <MapSet xsi:type="MapSetType">

    <MapGroup id="layer" xsi:type="MapType">

      <Map xsi:type="MapGuideLayerType">

        <Type>MapGuide</Type>

        <SingleTile>true</SingleTile>

        <Extension>

           <ProjectionCode>EPSG:26911</ProjectionCode> 
           <ProjectionDef>+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83
+units=m +no_defs</ProjectionDef> 
           <ResourceId>Library://state/layer.MapDefinition</ResourceId> 

          <ImageFormat>PNG8</ImageFormat>

          <SelectionAsOverlay>true</SelectionAsOverlay>

          <SelectionFormat>PNG</SelectionFormat>

          <SelectionColor>0xFF0000FF</SelectionColor>

        </Extension>

      </Map>

    </MapGroup>

  

  </MapSet>

 

 

Hopefully that helps.

 

-Mark P.

 

 

From: padmini godavarthi [via OSGeo.org]
[mailto:ml-node+4623694-476912507-74987 at n2.nabble.com] 
Sent: Tuesday, February 23, 2010 8:34 PM
To: Mark Pendergraft
Subject: Re: Problem with Studio 2010 +Flexible layouts Error

 

Hi Mark, 
First of all thank you very much for your patience and help. 

But in my mapdefinition the projection system is
handled...................... 

<?xml version="1.0" encoding="UTF-8"?> 

<MapDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="MapDefinition-1.0.0.xsd"> 
 <Name>New Map</Name> 
 
<CoordinateSystem>PROJCS["NAD_1983_UTM_Zone_11N",GEOGCS["GCS_North_Ameri
can_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,29
8.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
,PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],P
ARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARA
METER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["M
eter",1.0]]</CoordinateSystem> 
 <Extents> 
  <MinX>271673.8130436262</MinX> 
  <MaxX>512056.71341944818</MaxX> 
  <MinY>3750970.4455238734</MinY> 
  <MaxY>3858924.9056628617</MaxY> 
 </Extents> 
 <BackgroundColor>ffffffff</BackgroundColor> 
 <MapLayer> 
  <Name>layer1</Name> 
  <ResourceId>Library://flexsample1/layer1.LayerDefinition</ResourceId> 
  <Selectable>true</Selectable> 
  <ShowInLegend>true</ShowInLegend> 
  <LegendLabel>layer1</LegendLabel> 
  <ExpandInLegend>true</ExpandInLegend> 
  <Visible>true</Visible> 
  <Group></Group> 
 </MapLayer> 
</MapDefinition> 

where the application definition.xml(iam using slate temple .is it in
slate templete folder??) is exactly located  to modify the projection
system .. 

Regards, 
Padmini G. 



________________________________

View message @
http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4
596619p4623694.html 
To unsubscribe from Re: Problem with Studio 2010 +Flexible layouts
Error, click here
< (link removed) 
pbG1hbi5jb218NDYxOTkzMXw0NzQwNDE0Njk=> . 

 


-- 
View this message in context: http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4596619p4623747.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100223/4c5c9769/attachment.html


More information about the mapguide-users mailing list