Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

Reply
Contributor
SethStark
Posts: 12
Registered: ‎11-13-2008
Message 1 of 2 (580 Views)
Accepted Solution

MrSid loading crashes MGE 2011 Linux

580 Views, 1 Replies
01-14-2011 11:33 AM

Hi all,

 

I am running MapGuide Enterprise 2011 on CentOS 5 linux. Using the Autodesk Raster FDO, i loaded a mrsid file (through the "Load file-based data" method). Whenever i try to view the layer with the mrsid file, the server crashes. most of the time it says "Segmentation Fault", but sometimes it just dies without saying anything.

 

Here's what the error log says when i try to view the layer:

 

 

<2011-01-14T10:39:25>   53263248        Autodesk MapGuide Studio v2.2.0.5305    198.245.206.237 Administrator
 Error: An exception occurred in FDO component.
        Only MOSAIC(), CLIP() and RESAMPLE() are supported.
 StackTrace:
  - MgFeatureServiceHandler.ProcessOperation() line 83 file FeatureServiceHandler.cpp
  - MgOpSelectFeaturesSpatial.Execute() line 110 file OpSelectFeaturesSpatial.cpp
  - MgServerSelectFeatures.SelectFeatures() line 266 file ServerSelectFeatures.cpp

I've tried a few other mrsid files with the same problem. TIFF files load fine.

 

Anyone has any insight on this?

Thank you!

 

Contributor
SethStark
Posts: 12
Registered: ‎11-13-2008
Message 2 of 2 (559 Views)

Re: MrSid loading crashes MGE 2011 Linux

01-18-2011 10:07 AM in reply to: SethStark

I was able to solve this issue by compiling the latest Gdal and the Gdal FDO instead of the included Autodesk Raster FDO. I had some obstacles figuring out how to compile additional open source FDO in with the included binary Autodesk FDOs. There seems to be no documentation on this, so I would like to share it here, i hope it will help someone else too:

 

It is possible to compile OS FDO to be used with the Enterprise versions, in the case where you need additional libraries to link to that the enterprise fdo does not provide (eg MrSID for GDAL).

  1. make sure the enterprise binary fdos are installed, you will need those fdo lib and includes.
  2. download the opensource fdo core api SAME VERSION as the enterprise
  3. download the all the fdos, even the ones you dont need (there may be some dependencies between fdos)
  4. untargz them all, should all be in the same directory: OpenSource_FDO
  5. edit the setenvironment.sh file as necessary, for example, set FDOGDAL to /usr/local if you want to use a precompiled GDAL library
  6. if you read the instructions on how to build fdo, skip the build_thirdparty step because we already have the thirdparties (unless you need the gdal library, which doesn’t come with enterprise), but:
    • you will need to link the current thirdparty libs to the source folder (assuming you're in the OpenSource_FDO dir):
      $ ln -s /usr/local/fdo-3.5.0/lib Thirdparty/apache/xml-xalan/c/lib
      $ ln -s /usr/local/fdo-3.5.0/lib Thirdparty/apache/xml-xerces/c/lib
    • and you will need to build cppunit for UnitTest to compile right:
      $ cd Thirdparty/linux/cppunit
      $ ./build
    • if you do the step below with the utilities and get some sort of error with “boost” library, ignore it, and continue on to the next step.
  7. then do the following in order (of course make sure all succeed, except the boost thing mentioned above):
    $ ./build_linux --a build --w fdo
    $ ./build_linux --a build --w utilities
    $ ./build_linux --a build --w <your fdo>
    $ ./build_linux --a install --w <your fdo> --m noconfigure
  8. make sure that your fdo library has all the linked library it needs (see if the following returns “not found”, if so, find and put the library in path), if not, then put the library it needs in a library path (/usr/lib is usually ok), you should have the missing library, because you comipiled with it, it's just not in the right path:
    $ ldd /usr/local/fdo-3.5.0/lib/yourlib-3.5.0.so
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.