OGR - Access to Mapinfo

Bart van den Eijnden bartvde at XS4ALL.NL
Fri Aug 27 01:40:42 PDT 2004


Hi,

is your Mapserver compiled with OGR support (INPUT=OGR)?

Check with mapserv -v

c:\ms4w\cgi-bin>mapserv -v
MapServer version 4.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7
INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Mapserver can natively (without OGR) display shapefiles, but for Mapinfo
files the OGR support needs to be compiled in.

Best regards,
Bart

> Hi,
> When i want to view a vector layer in format Mapinfo (.tab") i have the
> message
> "msOGRLayerOpen(): General error message. OGR support is not available"
> and
>
> In format ESRI(.shp) it works
>
> In the mapefile i write:
> LAYER
>   NAME "lakes"
>    TYPE POLYGON
>    CONNECTIONTYPE OGR
>    DATA "couche_shp/lakes.tab"
>    STATUS OFF
>    CLASS
>       OUTLINECOLOR   0
>       COLOR 255 255 255
>    END
> END
>
> If i change the "lakes.tab" by "lakes.shp" i have the same problem.
>
> thank for your help,
>
> Bests regards
>
>



More information about the MapServer-users mailing list