[mapserver-users] add point to a Layer

Fuchs Juan Carlos jfuch at indec.mecon.gov.ar
Wed Apr 16 08:12:06 EDT 2008


Just an outline fron the MapServer Home page
...
10. Inline MapServer Features
Inline features refer to coordinates entered directly into the map file.
They are not a file or database format and do not require any DATA or
CONNECTION parameters. Instead they use a FEATURE section to define the
coordinates.

Inline features can be used to define points, lines and polygons as if taken
from an external file. This requires direct entry of coordinate pairs in the
map file using a particular syntax.

Data Access / Connection Method
This is a native MapServer option that doesn't use any external libraries to
support it.

Map File Example
Points
Each FEATURE..END section defines a feature. 
Multiple points can be defined in a FEATURE section. If multiple points are
defined in the same layer, they will have the same CLASS settings, e.g. for
colours and styles. 
Coordinates are entered in the units set in the layer's projection. In this
case it is assuming the map file projection is using decimal degrees. 
LAYER
NAME inline_stops
TYPE POINT
STATUS DEFAULT
FEATURE
        POINTS
                72.36 33.82
        END
        TEXT "My House"
END
FEATURE
        POINTS
                69.43 35.15
                71.21 37.95
                72.02 38.60
        END
        TEXT "My Stores"
END
CLASS
        COLOR 0 0 250
        SYMBOL 'circle'
        SIZE 6
END
END

Hope it helps
JC
-----Mensaje original-----
De: Juan Luis Cardoso [mailto:jl.cardoso at sgsmap.com]
Enviado el: Miércoles, 16 de Abril de 2008 04:12 a.m.
Para: mapserver-users at lists.osgeo.org
Asunto: [mapserver-users] add point to a Layer




Hi 

I am using the Mapserver 4.6.2 version?
I have a layer (SHP) of points, and I would like to insert points on it.
Is it possible and how can i do it?

Thanks in advance.

Juan Luis Cardoso

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list