[mapguide-users] GDAL provider for raster...again problem whitloaddata...

Andy Morsell amorsell at spatialgis.com
Thu Mar 1 11:22:53 EST 2007


The fact that layer previews don't work and you have to setup a map with the
correct spatial extents in order to view your image is noted here:

http://wiki.osgeo.org/index.php/MapGuide_Open_User_Technical_FAQ%27s 


Andy 

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Chris Tallman
Sent: Thursday, March 01, 2007 5:25 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] GDAL provider for raster...again problem
whitloaddata...

I think you guys having problems with the GDAL provider may have missed an
important post that I can't seem to find either.  But, I think it was stated
at one point that rasters connected using the GDAL would not preview in
studio.  I believe you have to make a map and web layout and view it with a
browser to see the aerial images.

Maybe someone else has this post I couldn't seem to find it on Nabble.
I'm sure it's buried in the posts when 1.1.0 was first released. 

I maybe wrong and if so someone correct me but its worth a try.  I'm using
Windows Server 2003 and have no problems with aerials.

Chris



-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Maciej
Skorczewski
Sent: Thursday, March 01, 2007 8:07 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] GDAL provider for raster...again problem whit
loaddata...

hello!

i fight (do the end:) whit raster and GDAL provider...what may problem is.


I download and install MGOS 1.1.0
http://mapguide.osgeo.org/downloads.html

after that i add
MapGuide1.1.0_GDAL_Patch.zip
-----
To verify whether the patch is installed: check the properties of the three
DLLs (GRFPProvider.dll, GRFPOverrides.dll and GRFPMessage.dll), they will
have a Comment property that ends with the string "(3.2.0.26 Patch)".
-----

yes i have it!


provider.xml file have correctry code:

   <FeatureProvider>
     <Name>OSGeo.Gdal.3.2</Name>
     <DisplayName>OSGeo FDO Provider for Raster</DisplayName>
     <Description>Read access to various raster-based file formats. 
Supports georeferenced file-based raster images.</Description>
     <IsManaged>False</IsManaged>
     <Version>3.2.0.0</Version>
     <FeatureDataObjectsVersion>3.2.0.0</FeatureDataObjectsVersion>
     <LibraryPath>GRFPProvider.dll</LibraryPath>
   </FeatureProvider>


i use following steps to add new raster files.


    1.  Start Studio and connect to your MapGuide Open Source 1.1.0 server.
    2. Then do File > New > Data Connection...
    3. In the Connect To Data dialog that comes up, select OSGeo FDO
Provider for Raster, then press OK. An editor that says "Configure a Feature
Resource using the Generic Editor" will display.
    4. In the Connection Properties grid, there is a
DefaultRasterFileLocation property. Click in the value column and enter the
directory where your image files are. On Linux it has the form
/home/thf/myimages and on Windows it has the form C:\myimages.
    5. The configuration of the raster source is now complete, save the
resource and start using it.


then create layer, add to map and use preview in studio...

NOW:

I observe that whit some tif and jpg it does't work ...raster are loaded but
i can't see it.

look on screen
http://img214.imageshack.us/img214/3269/81495036jp2.jpg

i have this truble whit 7 raster files (3 are displayed correcty :/

for example try load this raster (i can't see it in MGOS)
http://easy3249.easyisp.pl/mapa2.tif
or this
http://easy3249.easyisp.pl/pistas-ortofoto.jpg

Somebody on group said that it can be raster error....so what sould have
raster file that i can show it in MGOS? any header for example?

I think that many off people have this same problem...it looks like GDAL
provider work but whit raster files who have something...so what it is. 
Do you have this same truble whit that?

In another machine i use MGOS 1.0.2 whit Autodesk.raster.provider....it
works great!  I try add this provider do 1.1.0 but whitout any results...

maciek
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users





More information about the mapguide-users mailing list