[Mapserver-users] Empty screen with .tab file?

Daniel Morissette morissette at dmsolutions.ca
Tue Dec 16 15:10:28 EST 2003


Hugo Nathaniel Rodrigues wrote:
> i see the END, then i tried that one you sended to me, and i get this
> errors:
> Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'test'.
> in c:\arquivos de programas\apache group\apache\htdocs\testes
> basicos\mapabasico.phtml on line 8
> 
> Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection
> `./distrito.tab'. File not found or unsupported format. in c:\arquivos de
> programas\apache group\apache\htdocs\testes basicos\mapabasico.phtml on line
> 8
> 

Have you tried setting an absolute path for the connection string?

e.g.


LAYER
    NAME test
    TYPE POLYGON
    STATUS DEFAULT
    CONNECTIONTYPE OGR
    CONNECTION "/path/to/data/distrito.tab"

    CLASS
    END
END

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               morissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-users mailing list