[mapguide-users] Layer not showing Coordinate system override from feature source
evegaba
ernesvega at gmail.com
Fri Jun 27 13:23:19 PDT 2014
Thanks Steve. Here is my layer definition:
<?xml version="1.0"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.4.0"
xsi:noNamespaceSchemaLocation="LayerDefinition-2.4.0.xsd">
<VectorLayerDefinition>
<ResourceId>Library://Chile/Data/calles_ciudades_y_provincia.FeatureSource</ResourceId>
<Watermarks />
<FeatureName>Default:calles_ciudades_y_provincia</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<PropertyMapping>
<Name>FeatId</Name>
<Value>FeatId</Value>
</PropertyMapping>
<PropertyMapping>
<Name>NAME</Name>
<Value>NAME</Value>
</PropertyMapping>
<Geometry>Geometry</Geometry>
<VectorScaleRange>
<LineTypeStyle>
<LineRule>
<LegendLabel />
<LineSymbolization2D>
<LineStyle>Solid</LineStyle>
<Thickness>1</Thickness>
<Color>ff000000</Color>
<Unit>Points</Unit>
<SizeContext>MappingUnits</SizeContext>
</LineSymbolization2D>
</LineRule>
</LineTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
I see no reference to the Coordinate System. Perhaps it is inherited from
the feature source. Which is below:
<?xml version="1.0"?>
<FeatureSource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd">
<Provider>OSGeo.SHP</Provider>
<Parameter>
<Name>DefaultFileLocation</Name>
<Value>%MG_DATA_FILE_PATH%calles_ciudades_y_provincia.shp</Value>
</Parameter>
<SupplementalSpatialContextInfo>
<Name>Non-Earth (Meter)</Name>
<CoordinateSystem>LOCAL_CS["Non-Earth (Kilometer)",LOCAL_DATUM["Local
Datum",0],UNIT["Kilometer",
1000],AXIS["X",EAST],AXIS["Y",NORTH]]</CoordinateSystem>
</SupplementalSpatialContextInfo>
</FeatureSource>
I appreciate your help on this.
Ernesto
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Layer-not-showing-Coordinate-system-override-from-feature-source-tp5148417p5148479.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list