ogr personal geodatabase issue

Frank Warmerdam warmerdam at POBOX.COM
Tue Jan 24 14:46:40 PST 2006


On 1/24/06, Jim Donaghy <jim at jimdonaghy.com> wrote:
> I am connecting to an esri .mdb file using ogr, but unable to display
> the shapes in it. Running the ogrinfo utility displays the data in the
> mdb tables correctly, but when I use the connection in a map file it
> displays a blank image. No error is displayed. Below is the relevant
> layer from my map file.
> LAYER
>     NAME "area"
>     CONNECTIONTYPE OGR
>     CONNECTION "d:/geodata/test.mdb"
>     DATA "Areas"
>     TYPE POLYGON
>     STATUS DEFAULT
>
>     CLASS
>      STYLE
>         COLOR 199 215 158
>       END
>     END
>   END
>
> I'm using the latest distribution of MS4W. Is defining a class for this
> kind of layer different from using a shape file as the data source?

Jim,

The above looks fine assuming your .mdb file contains a
geospatial layer called "Areas" with polygons in it.   Also,
keep in mind that different permissions issues could apply
in a web context.   I don't know much about this aspect.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the MapServer-users mailing list