Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Adding Features Manually Using Mapserver ====== If you already have a map file working, and you would like to add points, lines, or polygons, you can use the FEATURE object directly in a map file to quickly add an item. //(description from the Mapserver web site)//\\ Defines inline features. You can use inline features when it's not possible (or too much trouble) to create a shapefile. Inline features can also be built via urls or forms. Starts with the keyword FEATURE and terminates with the keyword END. <code> FEATURE <options, such as POINTS, TEXT, and WKT> END </code> ===== POINTS ===== A set of xy pairs terminated with an END, for example:<code> POINTS 1 1 50 50 1 50 1 1 END </code> * Note that with POLYGON/POLYLINE layers POINTS must start and end with the same point (i.e. close the feature). ===== TEXT ===== String to use for labeling this feature. ===== WKT ===== A geometry expressed in OpenGIS Well Known Text geometry format. This feature is only supported if MapServer is built with OGR or GEOS support. <code> WKT "POLYGON((500 500, 3500 500, 3500 2500, 500 2500, 500 500))" WKT "POINT(2000 2500)" </code> ===== example from Mapserver web site ===== <code> 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 </code> docs/gis/mapserver/adding_features_manually.txt Last modified: 2008/08/03 00:25by 127.0.0.1