[Mapserver-users] Re: Question about MapInfo.

Denis Louvegnies denis at louvegnies.com
Mon Dec 15 07:57:07 PST 2003


Thank you Very much Daniel.

According to phpInfo  the input=OGR is included. So I guest I should be able
to open a Tab file.

However even if I can open the demo file europe.map I got the following
error when opening a tab file :

Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'test'.
in c:\program files\easyphp1-7\www\mapserver\tutorial\example_mi.php on line
10

Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection
`C:\tmp\ms_tmp\mapinfo\test.TAB'. File not found or unsupported format. in
c:\program files\easyphp1-7\www\mapserver\tutorial\example_mi.php on line 10



The TAB file is very basic, just one layer. If I run the ogrinfo tool :

C:\tmp\ms_tmp\mapinfo>ogrinfo test.tab
Had to open data source read-only.
INFO: Open of `test.tab'
using driver `MapInfo File' successful.
1: test (Polygon)


And the map file is :

NAME FIRSTMAP
SIZE 400 400
STATUS ON

SYMBOLSET "C:\tmp\ms_tmp\font\symbols_mapinfo.sym"
EXTENT -5696501 1923039 5696501 11022882
UNITS METERS


WEB
  IMAGEPATH "/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
END

LAYER
    NAME "test"
    TYPE POLYGON
    CONNECTIONTYPE OGR
    CONNECTION "C:\tmp\ms_tmp\mapinfo\test.TAB"
    STATUS ON

    CLASS
       END
END
END

Any clue?

Thank you very much for your help,

Denis Louvegnies.


----- Original Message ----- 
From: "Daniel Morissette" <morissette at dmsolutions.ca>
To: "mapserver-users" <mapserver-users at lists.gis.umn.edu>
Sent: Monday, December 15, 2003 4:29 PM
Subject: [Mapserver-users] Re: Question about MapInfo.


> Denis Louvegnies wrote:
> > Hello Daniel,
> >
> > Do you know if I should be able to open MapInfo document if I use the
> > pre-compile version of php_mapscript4.1.dll ?
> >
> > Thank very much,
> >
>
> It depends whether the build you got includes OGR or not, you can find
> out by running the following PHP script:
>
> <?php
>    dl("php_mapscript_41.dll");
>    phpinfo();
> ?>
>
> Look for the PHP MapScript version information in the phpinfo output. If
> it contains INPUT=OGR then the answer is yes you should be able to open
> MapInfo files.
>
> Daniel
>
> P.S. Use the mapserver-users list for your questions. I have CC'd this
> reply to the list.
> -- 
> ------------------------------------------------------------
>   Daniel Morissette               morissette at dmsolutions.ca
>   DM Solutions Group              http://www.dmsolutions.ca/
> ------------------------------------------------------------
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>




More information about the MapServer-users mailing list