[mapguide-users] Re: Still raster ...

f fmail.it at gmail.com
Fri May 13 05:51:15 EDT 2011


Thanks Jackie, another step is done ...

I run gdalinfo on my GeoTiff file getting this result:

Driver: GTiff/GeoTIFF
Files: myfirstimg.tif
Size is 450, 532
Coordinate System is `'
Origin = (497564.606297405260000,5061891.429550633800000)
Pixel Size = (0.338666666667020,-0.338666666667020)
Metadata:
  TIFFTAG_XRESOLUTION=75
  TIFFTAG_YRESOLUTION=75
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  497564.606, 5061891.430)
Lower Left  (  497564.606, 5061711.259)
Upper Right (  497717.006, 5061891.430)
Lower Right (  497717.006, 5061711.259)
Center      (  497640.806, 5061801.344)
Band 1 Block=450x6 Type=Byte, ColorInterp=Red
Band 2 Block=450x6 Type=Byte, ColorInterp=Green
Band 3 Block=450x6 Type=Byte, ColorInterp=Blue

In the Feature Source XML editor I have:

<?xml version="1.0" encoding="utf-8"?>
<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.Gdal</Provider>
  <Parameter>
    <Name>DefaultRasterFileLocation</Name>
    <Value>C:\Documents and
Settings\User\Desktop\GeoTIFF\myfirstimg.tif</Value>
  </Parameter>
  <SupplementalSpatialContextInfo>
    <Name>Default</Name>

<CoordinateSystem>LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter",
1],AXIS["X",EAST],AXIS["Y",NORTH]]</CoordinateSystem>
  </SupplementalSpatialContextInfo>
</FeatureSource>


Should I modify this? And how (with the info from gdalinfo)?

thanks

[f]


2011/5/13 Jackie Ng <jumpinjackie at gmail.com>

> There are generally two parts to the raster feature source problem:
>
> 1. Getting the Coordinate System right.
> 2. Getting the extents right.
>
> You should run gdalinfo.exe on your rasters to see that the reported CS and
> extents are.
>
> If gdalinfo.exe reports no Coordinate System, the FDO provider will default
> to Arbitrary XY, which you can override in the Feature Source editor.
>
> If gdalinfo.exe reports extents but no Coordinate system, the FDO provider
> will default to +/- 1,000,000 for the extents. This is a bug in the
> provider
> (it should return the reported extents regardless of whether a CS was found
> or not). This can be fixed with the correct configuration document for the
> Feature Source.
>
> - Jackie
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Still-raster-tp6344861p6358283.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110513/3a3ea482/attachment.html


More information about the mapguide-users mailing list