[mapguide-users] Re: ECW for mapguide 2.2 beta version
ehsan
ehsan85 at yahoo.com
Mon Feb 14 00:09:10 EST 2011
My data for ecw raster image contain satellite image, it actually to use with
tab for mapinfo, now i'm trying to view ecw raster image using mapguide with
other layer from mapinfo tab file.
This is the xml code for this resource
<?xml version="1.0" encoding="utf-8"?>
<fdo:DataStore xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:gml="http://www.opengis.net/gml"
xmlns:fdo="http://fdo.osgeo.org/schemas"
xmlns:fds="http://fdo.osgeo.org/schemas/fds">
<gml:DerivedCRS gml:id="Default">
<gml:metaDataProperty>
<gml:GenericMetaData>
<fdo:SCExtentType>dynamic</fdo:SCExtentType>
<fdo:XYTolerance>0.001000</fdo:XYTolerance>
<fdo:ZTolerance>0.001000</fdo:ZTolerance>
</gml:GenericMetaData>
</gml:metaDataProperty>
<gml:remarks>System generated default FDO Spatial Context</gml:remarks>
<gml:srsName>Default</gml:srsName>
<gml:validArea>
<gml:boundingBox>
<gml:pos>-10000000 -10000000</gml:pos>
<gml:pos>10000000 10000000</gml:pos>
</gml:boundingBox>
</gml:validArea>
<gml:baseCRS>
<fdo:WKTCRS gml:id="Default">
<gml:srsName>Default</gml:srsName>
<fdo:WKT>LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter",
1],AXIS["X",EAST],AXIS["Y",NORTH]]</fdo:WKT>
</fdo:WKTCRS>
</gml:baseCRS>
<gml:definedByConversion
xlink:href="http://fdo.osgeo.org/coord_conversions#identity" />
<gml:derivedCRSType
codeSpace="http://fdo.osgeo.org/crs_types">geographic</gml:derivedCRSType>
<gml:usesCS xlink:href="http://fdo.osgeo.org/cs#default_cartesian" />
</gml:DerivedCRS>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fdo="http://fdo.osgeo.org/schemas"
xmlns:gml="http://www.opengis.net/gml"
xmlns:default="http://fdo.osgeo.org/schemas/feature/default"
targetNamespace="http://fdo.osgeo.org/schemas/feature/default"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:annotation>
<xs:appinfo source="http://fdo.osgeo.org/schemas" />
</xs:annotation>
<xs:element name="default" type="default:defaultType" abstract="false"
substitutionGroup="gml:_Feature">
<xs:key name="defaultKey">
<xs:selector xpath=".//default" />
<xs:field xpath="FeatId" />
</xs:key>
</xs:element>
<xs:complexType name="defaultType" abstract="false"
fdo:hasGeometry="false">
<xs:annotation>
<xs:appinfo source="http://fdo.osgeo.org/schemas" />
</xs:annotation>
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element name="FeatId">
<xs:annotation>
<xs:appinfo source="http://fdo.osgeo.org/schemas" />
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Image" type="fdo:RasterPropertyType"
fdo:defaultImageXSize="1024" fdo:defaultImageYSize="1024"
fdo:srsName="Default">
<xs:annotation>
<xs:appinfo source="http://fdo.osgeo.org/schemas">
<fdo:DefaultDataModel dataModelType="Bitonal"
dataType="Unknown" organization="Pixel" bitsPerPixel="1" tileSizeX="256"
tileSizeY="256" />
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
<SchemaMapping provider="OSGeo.Gdal.3.2" name="default"
xmlns="http://fdogrfp.osgeo.org/schemas">
<complexType name="defaultType">
<complexType name="RasterTypeType">
<RasterDefinition name="images">
<Location name="C:\IMAGE_SATELIT\">
<Feature name="Kuala Terengganu">
<Band name="RGB" number="1">
<Image frame="1" name="Kuala Terengganu.ecw">
<Bounds>
<MinX>-10000000</MinX>
<MinY>-10000000</MinY>
<MaxX>10000000</MaxX>
<MaxY>10000000</MaxY>
</Bounds>
</Image>
</Band>
</Feature>
</Location>
</RasterDefinition>
</complexType>
</complexType>
</SchemaMapping>
</fdo:DataStore>
the projection that mapguide assume that i can see it show only Default,
with
LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter",
1],AXIS["X",EAST],AXIS["Y",NORTH]]
in mapinfo i use
CoordSys Earth Projection 30, 47, "m", 102.8952083, 4.946141667, 0, 0
Units "m"
for the ecw file
because the image does not appear in mapguide i try to override it in
Mapguide Maestro by using:
Coordinate Category : Malaysia
Coordinate System : State of Terengganu, Paninsula Malaysia, Sears Chain
(MAL-CTER)
Thank you..
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/ECW-for-mapguide-2-2-beta-version-tp6022062p6022541.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list