[mapguide-users] re; projection in mapguide
girish kumar bv
girish778 at rediffmail.com
Tue Jun 14 07:11:18 EDT 2011
Hi all,
i am using mapguide 2.1 (java api) for development
I am creating a xml marker layer to be overlayed on the existing map layer on search, initially before search map coordinates are X: 301620.238896, Y: 2343288.901354 (DEGREE) however the coordinates change to X: NaN, Y: NaN (DEGREE) and does not display on existing map after search. Can anyone suggest a solution for the above problem.
marker.xml code is as follows
<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="LayerDefinition-1.0.0.xsd">
<VectorLayerDefinition>
<ResourceId></ResourceId>
<FeatureName>PropertyMarker</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<PropertyMapping>
<Name>PARCEL_ID</Name>
<Value>Property Id</Value>
</PropertyMapping>
<Geometry>Location</Geometry>
<Url>concat(&apos;http://www.&apos;, concat(&quot;CITY_NAME&quot;, concat(&apos;.gov.in/ptisnn/public/GISViewPropertyDetails.jsp?id=&apos;, concat(&quot;PROPERTY_ID&quot;, &apos;&amp;disp=0&apos;))))</Url>
<ToolTip>concat('Property Details:\nOwner Name:', concat("OWNER_NAME", concat('\nProperty Id:', concat("PROPERTY_ID", concat('\n', "IMAGE")))))</ToolTip>
<VectorScaleRange>
<MaxScale>700</MaxScale>
<AreaTypeStyle>
<AreaRule>
<LegendLabel></LegendLabel>
<Label>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
<SizeX>0.4</SizeX>
<SizeY>8.5</SizeY>
<Rotation>0</Rotation>
<Text>OWNER_NAME</Text>
<FontName>Arial Unicode MS</FontName>
<ForegroundColor>FFFF0000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<BackgroundStyle>Ghosted</BackgroundStyle>
<HorizontalAlignment>&apos;Center&apos;</HorizontalAlignment>
<VerticalAlignment>Halfline</VerticalAlignment>
<Bold>true</Bold>
</Label>
<AreaSymbolization2D>
<Fill>
<FillPattern>Line_45</FillPattern>
<ForegroundColor>FF800000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.05</Thickness>
<Color>FFE60000</Color>
<Unit>Centimeters</Unit>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
<VectorScaleRange>
<MinScale>700</MinScale>
<MaxScale>1000</MaxScale>
<AreaTypeStyle>
<AreaRule>
<LegendLabel></LegendLabel>
<Label>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
<SizeX>0.4</SizeX>
<SizeY>7.5</SizeY>
<Rotation>0</Rotation>
<Text>OWNER_NAME</Text>
<FontName>Arial Unicode MS</FontName>
<ForegroundColor>FFFF0000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<BackgroundStyle>Ghosted</BackgroundStyle>
<HorizontalAlignment>&apos;Center&apos;</HorizontalAlignment>
<VerticalAlignment>Halfline</VerticalAlignment>
<Bold>true</Bold>
</Label>
<AreaSymbolization2D>
<Fill>
<FillPattern>Line_45</FillPattern>
<ForegroundColor>FF800000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.05</Thickness>
<Color>FFE60000</Color>
<Unit>Centimeters</Unit>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
<VectorScaleRange>
<MinScale>1000</MinScale>
<MaxScale>1600</MaxScale>
<AreaTypeStyle>
<AreaRule>
<LegendLabel></LegendLabel>
<Label>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
<SizeX>0.3</SizeX>
<SizeY>6</SizeY>
<Rotation>0</Rotation>
<Text>OWNER_NAME</Text>
<FontName>Arial Unicode MS</FontName>
<ForegroundColor>FFFF0000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<BackgroundStyle>Ghosted</BackgroundStyle>
<HorizontalAlignment>&apos;Center&apos;</HorizontalAlignment>
<VerticalAlignment>Halfline</VerticalAlignment>
<Bold>true</Bold>
</Label>
<AreaSymbolization2D>
<Fill>
<FillPattern>Line_45</FillPattern>
<ForegroundColor>FF800000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.05</Thickness>
<Color>FFE60000</Color>
<Unit>Centimeters</Unit>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
<VectorScaleRange>
<MinScale>1600</MinScale>
<MaxScale>2400</MaxScale>
<AreaTypeStyle>
<AreaRule>
<LegendLabel></LegendLabel>
<Label>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
<SizeX>0.3</SizeX>
<SizeY>5.2</SizeY>
<Rotation>0</Rotation>
<Text>OWNER_NAME</Text>
<FontName>Arial Unicode MS</FontName>
<ForegroundColor>FFFF0000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<BackgroundStyle>Ghosted</BackgroundStyle>
<HorizontalAlignment>&apos;Center&apos;</HorizontalAlignment>
<VerticalAlignment>Halfline</VerticalAlignment>
<Bold>true</Bold>
</Label>
<AreaSymbolization2D>
<Fill>
<FillPattern>Line_45</FillPattern>
<ForegroundColor>FF800000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.05</Thickness>
<Color>FFE60000</Color>
<Unit>Centimeters</Unit>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
<VectorScaleRange>
<MinScale>2400</MinScale>
<MaxScale>4072265.625</MaxScale>
<AreaTypeStyle>
<AreaRule>
<LegendLabel></LegendLabel>
<Label>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
<SizeX>0.3</SizeX>
<SizeY>4.5</SizeY>
<Rotation>0</Rotation>
<Text>OWNER_NAME</Text>
<FontName>Arial Unicode MS</FontName>
<ForegroundColor>FFFF0000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<BackgroundStyle>Ghosted</BackgroundStyle>
<HorizontalAlignment>&apos;Center&apos;</HorizontalAlignment>
<VerticalAlignment>Halfline</VerticalAlignment>
<Bold>true</Bold>
</Label>
<AreaSymbolization2D>
<Fill>
<FillPattern>Line_45</FillPattern>
<ForegroundColor>FF800000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.05</Thickness>
<Color>FFE60000</Color>
<Unit>Centimeters</Unit>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
<VectorScaleRange>
<MinScale>4072265.625</MinScale>
<MaxScale>4170000000</MaxScale>
<AreaTypeStyle>
<AreaRule>
<LegendLabel></LegendLabel>
<Label>
<Unit>Points</Unit>
<SizeContext>DeviceUnits</SizeContext>
<SizeX>0.3</SizeX>
<SizeY>4.0</SizeY>
<Rotation>0</Rotation>
<Text>OWNER_NAME</Text>
<FontName>Arial Unicode MS</FontName>
<ForegroundColor>FFFF0000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<BackgroundStyle>Ghosted</BackgroundStyle>
<HorizontalAlignment>&apos;Center&apos;</HorizontalAlignment>
<VerticalAlignment>Halfline</VerticalAlignment>
<Bold>true</Bold>
</Label>
<AreaSymbolization2D>
<Fill>
<FillPattern>Line_45</FillPattern>
<ForegroundColor>FF800000</ForegroundColor>
<BackgroundColor>FFFFFFFF</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>0.05</Thickness>
<Color>FFE60000</Color>
<Unit>Centimeters</Unit>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
regards,
girish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110614/c45b6ff4/attachment.html
More information about the mapguide-users
mailing list