[mapserver-users] Mapserver + KML-File Problem

Bryan Hempen bryanhempen at gmx.de
Thu Jun 24 10:36:48 EDT 2010


hi there!

i have trouble displaying point of interests from a KML file.
i followed the description on http://mapserver.org/input/vector/kml.html

http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i 
want to display the data, the template is located at 
http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html

this is the content of the mapfile:

MAP
NAME           'Gastronomapkarte'
STATUS ON
#EXTENT 3427065.200000 5788323.530000 3443999.370000 5800691.660000
#EXTENT 7.9189 52.2102 8.1716 52.3467
EXTENT 880000 6840000 915000 6860000
IMAGECOLOR 255 255 255
SIZE      700 700
  SYMBOLSET        'symbols/symbols.sym'
  FONTSET       'fonts/fonts.list'


  WEB
     TEMPLATE  'template.html'
IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/'
IMAGEURL   '/~bhempen/routingtest/tmp/'




     METADATA
       'WMS_TITLE'   'Firmen'
      'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
     'WMS_ONLINERESOURCE'   
'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map' 

         'WMS_SRS'       "EPSG:900913"

       END
END



   PROJECTION
     'init=epsg:900913'
     END


LAYER
    NAME Firmen
    TYPE POINT
    STATUS DEFAULT
    CONNECTIONTYPE OGR
    CONNECTION "Firmen.kml"
    DATA "Firmen"
    LABELITEM "NAME"
    CLASS
      NAME "My Places"
      STYLE
        COLOR 0 255 0
        OUTLINECOLOR 255 255 255
        SYMBOL 'star'
        SIZE 10
      END
    LABEL
      SIZE TINY
      COLOR 0 0 0
      OUTLINECOLOR 255 255 255
      POSITION AUTO
    END
   END
END

END


idea anyone?



More information about the mapserver-users mailing list