I am trying to put the values from gdalinfo:<br><br>Upper Left ( 497564.606, 5061891.430) <br>Lower Left ( 497564.606, 5061711.259) <br>Upper Right ( 497717.006, 5061891.430) <br>Lower Right ( 497717.006, 5061711.259) <br>
<br>In the coordinate system in the Feature Source XML.<br><br>Without succeeding ...<br><br><div class="gmail_quote">2011/5/13 [f] <span dir="ltr"><<a href="http://fmail.it">fmail.it</a>@<a href="http://gmail.com">gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks Jackie, another step is done ...<br><br>I run gdalinfo on my GeoTiff file getting this result:<br><br>Driver: GTiff/GeoTIFF<br>
Files: myfirstimg.tif<br>Size is 450, 532<br>Coordinate System is `'<br>Origin = (497564.606297405260000,5061891.429550633800000)<br>
Pixel Size = (0.338666666667020,-0.338666666667020)<br>Metadata:<br> TIFFTAG_XRESOLUTION=75<br> TIFFTAG_YRESOLUTION=75<br> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>Image Structure Metadata:<br> INTERLEAVE=PIXEL<br>Corner Coordinates:<br>
Upper Left ( 497564.606, 5061891.430) <br>Lower Left ( 497564.606, 5061711.259) <br>Upper Right ( 497717.006, 5061891.430) <br>Lower Right ( 497717.006, 5061711.259) <br>Center ( 497640.806, 5061801.344) <br>
Band 1 Block=450x6 Type=Byte, ColorInterp=Red<br>
Band 2 Block=450x6 Type=Byte, ColorInterp=Green<br>Band 3 Block=450x6 Type=Byte, ColorInterp=Blue<br><br>In the Feature Source XML editor I have:<br><br><?xml version="1.0" encoding="utf-8"?><br>
<FeatureSource xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>" xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd"><br>
<Provider>OSGeo.Gdal</Provider><br> <Parameter><br> <Name>DefaultRasterFileLocation</Name><br> <Value>C:\Documents and Settings\User\Desktop\GeoTIFF\myfirstimg.tif</Value><br>
</Parameter><br> <SupplementalSpatialContextInfo><br> <Name>Default</Name><br> <CoordinateSystem>LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter", 1],AXIS["X",EAST],AXIS["Y",NORTH]]</CoordinateSystem><br>
</SupplementalSpatialContextInfo><br></FeatureSource><br><br><br>Should I modify this? And how (with the info from gdalinfo)?<br><br>thanks<br><font color="#888888"><br>[f]</font><div><div></div><div class="h5">
<br><br><br><div class="gmail_quote">2011/5/13 Jackie Ng <span dir="ltr"><<a href="mailto:jumpinjackie@gmail.com" target="_blank">jumpinjackie@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There are generally two parts to the raster feature source problem:<br>
<br>
1. Getting the Coordinate System right.<br>
2. Getting the extents right.<br>
<br>
You should run gdalinfo.exe on your rasters to see that the reported CS and<br>
extents are.<br>
<br>
If gdalinfo.exe reports no Coordinate System, the FDO provider will default<br>
to Arbitrary XY, which you can override in the Feature Source editor.<br>
<br>
If gdalinfo.exe reports extents but no Coordinate system, the FDO provider<br>
will default to +/- 1,000,000 for the extents. This is a bug in the provider<br>
(it should return the reported extents regardless of whether a CS was found<br>
or not). This can be fixed with the correct configuration document for the<br>
Feature Source.<br>
<br>
- Jackie<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Still-raster-tp6344861p6358283.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Still-raster-tp6344861p6358283.html</a><br>
</font><div><div></div><div>Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>