[mapserver-users] GeoRaster via gdal on Ubuntu

Sebastian E. Ovide sebastian.ovide at gmail.com
Wed Aug 11 08:06:10 PDT 2010


Hi Cristiano,


I've tried the "dirty trick"..

sebas at SeansPC:/usr/lib$ ls -la libgdal1*
-rw-r--r-- 1 root root  7476096 2010-03-13 08:59 libgdal1.6.0.so.1.13.3
lrwxrwxrwx 1 root root       22 2010-04-30 14:19 libgdal1.6.0.so.1.seb ->
libgdal1.6.0.so.1.13.3
-rw-r--r-- 1 root root 17994558 2010-05-19 14:05 libgdal1.7.0.a
-rw-r--r-- 1 root root  8302832 2010-05-19 14:05 libgdal1.7.0.so.1.14.2
lrwxrwxrwx 1 root root       22 2010-05-20 07:57 libgdal1.7.0.so.1.seb ->
libgdal1.7.0.so.1.14.2
lrwxrwxrwx 1 root root       22 2010-05-20 07:57 libgdal1.7.0.so.seb ->
libgdal1.7.0.so.1.14.2


and yes... I'm getting an error in the log file:


[Wed Aug 11 15:56:10 2010] [error] [client 10.0.1.50]
/usr/lib/cgi-bin/mapserv: error while loading shared libraries:
libgdal1.7.0.so.1: cannot open shared object file: No such file or directory

so obviously MapServer is reading the wrong libgdal....




On Wed, Aug 11, 2010 at 2:01 PM, Cristiano Sumariva <sumariva at gmail.com>wrote:

> Well one dirty test you can do is rename the shared library gdal from .so
> to another name or remove it from your shared lib path.
> Then exec mapserver again.
> I think that if it is using shared lib then an error will be launched.
> I remember that one mapserver installation mine failed in a server update
> due to wrong symlink on shared libs.
>
> Try also ldconfig -l to see where your library loader is looking for
> libraries.
>
> 2010/8/11 Sebastian E. Ovide <sebastian.ovide at gmail.com>
>
> Thanks Ivan, actually that was one of my starting points. Still no luck.
>>
>> as Gdal is working correctly (and all the variables has be re defined
>> within <Location "/cgi-bin/"> as explained in that page)...the main question
>> would be how to make MapServ bind correctly to gdal ?
>>
>> Is it possible that I am missing something in the map file ?
>>
>>   LAYER
>>     NAME sebas
>>     TYPE RASTER
>>     STATUS ON
>>     DATA
>> "georaster:geoserver,geoserver,MFPRODUK_11G,LSLIDE_V5_RASTER,georaster,id=1"
>>   END
>>
>> is there any keyword to use gdal ?
>>
>>
>> On Wed, Aug 11, 2010 at 12:23 PM, Lucena, Ivan <ivan.lucena at pmldnet.com>wrote:
>>
>>> Sebastian,
>>>
>>> Have you take a look on that page:
>>>
>>> http://mapserver.org/installation/oracle.html
>>>
>>> It is about GDAL/OGR/OCI but all the system settings experiments are
>>> applicable to GDAL/GeoRaster too.
>>>
>>> Regards,
>>>
>>> Ivan
>>>
>>> Sebastian E. Ovide wrote:
>>>
>>>> Hi All,
>>>>
>>>> I've installed MapServer via ubuntugis repo and build gdal by hand in
>>>> order to support oracle
>>>>
>>>> sebas at SeansPC:~/mapserver$ /usr/lib/cgi-bin/mapserv -v
>>>> MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>>>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
>>>> SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>>>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
>>>> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
>>>> SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
>>>> INPUT=SHAPEFILE
>>>>
>>>>
>>>> sebas at SeansPC:~/mapserver$ gdalinfo --version
>>>> GDAL 1.7.2, released 2010/04/23
>>>> sebas at SeansPC:~/mapserver$ gdalinfo --formats | grep GeoRaster
>>>>  GeoRaster (rw+): Oracle Spatial GeoRaster
>>>> sebas at SeansPC:~/mapserver$ which gdalinfo
>>>> /home/sebas/gdal/bin/gdalinfo
>>>>
>>>>
>>>> now I'm trying to use MapServer with gdal to read GeoRasters but I'm
>>>> getting this error:
>>>>
>>>>
>>>> georaster:geoserver,geoserver,MFPRODUK_11G,LSLIDE_V5_RASTER,georaster,id=1
>>>>
>>>> and from command line:
>>>>
>>>> sebas at SeansPC:~/mapserver$ gdalinfo
>>>> georaster:geoserver,geoserver,MFPRODUK_11G,LSLIDE_V5_RASTER,georaster,id=1
>>>> Driver: GeoRaster/Oracle Spatial GeoRaster
>>>> Files: none associated
>>>> Size is 24402, 49770
>>>> Coordinate System is:
>>>> PROJCS["British National Grid",
>>>>    GEOGCS["Ordnance Survey Great Brit",
>>>>        DATUM["Ordnance Survey Great Brit",
>>>>            SPHEROID["Airy
>>>> 1830",6377563.396,299.3249646],375,-111,431,0,0,0,1],
>>>>        PRIMEM["Greenwich",0.000000],
>>>>        UNIT["Decimal Degree",0.01745329251994330]],
>>>>    PROJECTION["Transverse_Mercator"],
>>>>    PARAMETER["Scale_Factor",0.9996012717],
>>>>    PARAMETER["Central_Meridian",-2.000000],
>>>>    PARAMETER["Latitude_Of_Origin",49.000000],
>>>>    PARAMETER["False_Easting",400000.000000],
>>>>    PARAMETER["False_Northing",-100000.000000],
>>>>    UNIT["Meter",1.000000000000]]
>>>> Origin = (49950.000000000000000,1250050.000000000000000)
>>>> Pixel Size = (25.000000000000000,-25.000000000000000)
>>>> Image Structure Metadata:
>>>>  INTERLEAVE=PIXEL
>>>>  COMPRESSION=DEFLATE
>>>> Corner Coordinates:
>>>> Upper Left  (   49950.000, 1250050.000) (  8d28'31.89"W, 60d58'39.59"N)
>>>> Lower Left  (   49950.000,    5800.000) (  6d52'14.32"W, 49d50'57.59"N)
>>>> Upper Right (  660000.000, 1250050.000) (  2d49'4.15"E, 61d 2'50.13"N)
>>>> Lower Right (  660000.000,    5800.000) (  1d37'14.80"E, 49d53'42.66"N)
>>>> Center      (  354975.000,  627925.000) (  2d42'48.98"W, 55d32'34.62"N)
>>>> Band 1 Block=256x256 Type=Byte, ColorInterp=Gray
>>>>  NoData Value=255
>>>>  Overviews: 12201x24885, 6100x12442, 3050x6221, 1525x3110, 762x1555,
>>>> 381x777, 190x388, 95x194
>>>>
>>>>
>>>> So I suspects that MapServer is using the wrong gdal...
>>>>
>>>> is gdal binding hardcoded into MapServer ? or MapServer would use gdal
>>>> from the path ?
>>>>
>>>> Thanks
>>>> --
>>>> Sebastian E. Ovide
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>
>>>
>>
>>
>> --
>> Sebastian E. Ovide
>>
>>
>>
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>


-- 
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100811/801d9367/attachment.htm>


More information about the MapServer-users mailing list