No labels with tileindex layer

Hunter, David - St. Louis Park, MN David.Hunter at FNF.COM
Wed Jul 6 13:26:36 PDT 2005


I am putting together a demo app using DHTML, MapServer 4.4.1 CGI,
Tomcat 5 and Win2000.  I am using MapInfo .tab files for vector data,
accessing via OGR.  

 

I would like my app to enable users to turn layers and labels on/off.  I
have the layers working, and started on the labels when I ran into a
problem.  I made two separate layers per layer type, one for the
features and one for the labels, so that they could be turned on/off
independently.  This worked as expected for a point layer.  However, I
have a few layers in tileindexes that I created using the ogrtindex
utility.  These features draw fine, but trying to label them causes
MapServer to go into some kind of unresponsive state.  Here is a snippet
from my .map file to show how I tried to do this:

 

  # major roads

 LAYER 

    NAME         "Roads_Labels"

    CONNECTIONTYPE OGR

    TILEINDEX "roadbase/roads.tab"

    STATUS       OFF

    TYPE         ANNOTATION

 

    PROJECTION

      "init=epsg:4267"

    END

 

    LABELITEM "hwyname"

    CLASS

            LABEL

                        TYPE TRUETYPE

                        FONT arial

                        SIZE 6

                        COLOR 255 0 0

                        OUTLINECOLOR 255 255 255

                        ANTIALIAS TRUE

                        ANGLE auto

                        FORCE true

                        POSITION auto

                        OFFSET 0 0

            END

     END

  END 

  

LAYER 

    NAME         "Roads"

    CONNECTIONTYPE OGR

    TILEINDEX "roadbase/roads.tab"

    STATUS       OFF

    TYPE         LINE

 

    PROJECTION

      "init=epsg:4267"

    END

    CLASS

      COLOR 255 0 0 

      SIZE 2

    END

  END

 

 

Is this not possible to do, or is there a workaround or alternative
method?  TIA!

 

David S. Hunter
Sr. Software Engineer
Fidelity National Geographic Solutions
division of Fidelity National Financial
5353 Gamble Drive, Suite 201
St. Louis Park, MN 55416
* Email: david.hunter at fnf.com
' Phone: 952.542.1440 ext. 256
* Fax: 952.542.3859

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050706/8c1d749d/attachment.htm>


More information about the MapServer-users mailing list