[mapguide-users] Problem loading raster (TIF) files

psciga scigalla at battefeld.com
Mon Apr 20 12:04:46 EDT 2009


Hello

after a lot of hours searching in Nabble an trying different procedures, I
hope of some ideas. The problem:

Using OSGeo FDO Provider for GDAL in MG Studio 2009 I create a feature
source from a tif file.

Following the example on
http://trac.osgeo.org/fdo/browser/trunk/Providers/GDAL/Docs/XmlSchema/GrfpConfigExample.xml 
I load a config file:

  <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:\loeschen1">
            <Feature name="251811.tif">
              <Band name="RGB" number="1">
                <Image frame="1" name="251811.tif">
                   <Georeference>
                       <InsertionPointX>2525500.0</InsertionPointX>
                       <InsertionPointY>5718500.0</InsertionPointY>
		       <ResolutionX>0.084667</ResolutionX>
		       <ResolutionY>0.084667</ResolutionY>
		       <RotationX>0</RotationX>
		       <RotationY>0</RotationY>
		  </Georeference>                  
                </Image>
              </Band>
            </Feature>
          </Location>
        </RasterDefinition>
      </complexType>
    </complexType>
  </SchemaMapping>

It runs fine.

The same procedure with  an other file fails. No picture is shown.

....
  <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:\loeschen1">
			<Feature name="261801">
				<Band name="RGB" number="1">
					<Image frame="1" name="261801.TIF">
						<Georeference>
						<InsertionPointX>2526500.000</InsertionPointX>
						<InsertionPointX>5718000.000</InsertionPointX>
						<ResolutionX>0.084666440907558</ResolutionX>
						<ResolutionX>0.084668021680356</ResolutionX>
						<RotationX>0</RotationX>
						<RotationY>0</RotationY>
					</Georeference>
				</Image>
			</Band>
		</Feature>			
          </Location>
        </RasterDefinition>
      </complexType>
    </complexType>
  </SchemaMapping>
....

I can't see a difference. I have attached both files and hope for a lttle
help.

My local environment:

MGOS 2.0.1 (Apache & PHP)
MG Studio 2009
Win XP pro (SP2)

Thanks in advance!

Regards
Peter
http://n2.nabble.com/file/n2664565/251811.TIF 251811.TIF  ... is running
http://n2.nabble.com/file/n2664565/261801.TIF 261801.TIF  ... NOT running
-- 
View this message in context: http://n2.nabble.com/Problem-loading-raster-%28TIF%29-files-tp2664565p2664565.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list