Possibly a silly question ?

Steven Monai stevem at SPATIALMAPPING.COM
Thu Mar 23 19:04:52 EST 2006


On Thu, 23 Mar 2006 06:28:08 +0000, Steve Pashby
<s.pashby at POSTGRAD.CURTIN.EDU.AU> wrote:

>Frank Warmerdam <warmerdam <at> POBOX.COM> writes:
>
>>
>> Steve Pashby wrote:
>> > Hello,
>> >
>> > Just a quick question ... can MapServer read data from ESRI's
>geodatabase.
>> > I've just tried accessing some data (and failed), but am not sure if its
>> > because MapServer cannot read data in a geodatabase, or if its my Mapfile !
>>
>> Steve,
>>
>> MapServer can utilize ESRI Personal Geodatabase (.mdb) files on Win32
>> platforms *if* you have a sufficiently recent version of OGR in your
>> MapServer build (at least GDAL 1.3.1).
>>
>> Of course there are lots of things that could be going wrong.
>>
>> I would encourage you to first verify that access to your personal
>> geodatabase is working properly with ogrifo.
>>
>> Of course, if you mean another one of the ESRI geodatabase options
>> (geodatabase in SDE, etc) then different issues apply.
>>
>> Best regards,
>
>
>Hi,
>
>I have GDAL 1.3.1.0 and have eventually managed to open the geodatabase
>(via 'PGeo' driver?!) But how then do you put this into a Mapfile (CONNECTION
>TYPE PGeo ... and then the name of the file and continue as per a shapefile?)
>


The following has worked for me (within a LAYER block, of course):

CONNECTIONTYPE ogr
CONNECTION "C:\full\path\to\your\geodatabase.mdb,feature_class_name"


The CONNECTION string consists of two parts, separated by a comma: (1) the
full path to your Personal Geodatabase file, and (2) the name of the feature
class (ESRI terminology) within the Geodatabase.

Hope this helps,
-SM
--



More information about the mapserver-users mailing list