Mapserver & Mapinfo files --HELP {Scanned}

Siki Zoltan siki at AGT.BME.HU
Thu Sep 30 15:05:20 PDT 2004


Hi,

I was not able to display MApInfo TABs with STYLEITEM AUTO.
I've read in the map file documentation "This is *very* experimental".
Try to remove STYLEITEM and add some style to your class e.g.
CLASS
        OUTLINECOLOR 0 0 0
END

Bye
Zoltan

On Thu, 30 Sep 2004, Matthew crowley wrote:

> I'm sure there is something very simple that I am not understanding.  Before
> trying to get all this working on my linux server, I thought I would try the
> MS4W package from DM solutions to get the hang of things.
>
> I have spent two days trying to get a MAPINFO .tab file to display using the
> tutorial in MapLab.
>
> Basically, I just wanted to add another layer using my own source file.  OGR
> works, and I don't get any errors when I use the Preview function.  My layer
> appears in the menu, but I can't see anything displayed on the screen
>
> The extra lines from my MAP file are :
> -----------------------------------------------------------------------------
>  LAYER
>     NAME "MBBDY"
>     STATUS ON
>     TYPE POLYGON
>     CONNECTIONTYPE OGR
>     CONNECTION "c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab"
>     STYLEITEM "AUTO"
>     CLASS
>     END
>   END
> -----------------------------------------------------------------------------
> and the output from OGRINFO follows:
> -----------------------------------------------------------------------------
> C:\ms4w\tools\ogr-utils>ogrinfo -ro -al
> c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab
> INFO: Open of `c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab'
> using driver `MapInfo File' successful.
>
> Layer name: MBBDY
> Geometry: Polygon
> Feature Count: 1
> Extent: (-102.001400, 48.996530) - (-88.989300, 60.000970)
> Layer SRS WKT:
> GEOGCS["unnamed",
>     DATUM["MIF 0",
>         SPHEROID["WGS 84 (MAPINFO Datum 0)",6378137.01,298.257223563],
>         TOWGS84[0,0,0,0,0,0,0]],
>     PRIMEM["Greenwich",0],
>     UNIT["degree",0.0174532925199433]]
> Filename: String (10.0)
> OGRFeature(MBBDY):1
>   Filename (String) = MANITOBA
>   Style =
> BRUSH(fc:#60ff60,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1px  . .
> ------------------------------------------------------------------------------
>
> Is there a parameter missing from my MAP file?
>



More information about the MapServer-users mailing list