[maplab-users] Re: [ms4w-users] Help,How to publish vector maps

Christopher R. Thorne cthorne at dmsolutions.ca
Wed Jul 28 10:41:23 EDT 2004


Isaac,

Your best bet as Jeff mentioned to you is to uses the mapserver mailing 
list, there are more people to tap into that knows mapserver. This 
mailing list is best for specific questions with MapLab. 

To try and answer your question I am not familiar with what you are 
doing with OGR, but if you are just simply trying to display your shape 
file data simple do this:



LAYER
  NAME States In Germany
  TYPE POLYGON
  STATUS DEFAULT
  DATA "data/germany/deustate.shp"
  STYLEITEM "AUTO"
  PROJECTION
    "AUTO"
  END
  CLASS
    NAME "States In Germany"
    STYLE
      SYMBOL 0
      COLOR 255 0 0
      SIZE 1
      MINSIZE 1
      MAXSIZE 100
    END
  END
END

Chris

ISAAC KWADWO NTI wrote:

> I have tried editing it and came up with this.But I need to down and 
> connect OGR.Please do u have an idea of how to down load it?
>
> #
> # Start of map file
> #
> NAME Germany
> STATUS ON
> SIZE 500 500
> SYMBOLSET etc/symbols_arcview.sym
> EXTENT -565918.875607 55035.833974 506926.040335 1264723.213684
> UNITS METERS
> SHAPEPATH "./data/"
> IMAGECOLOR 255 255 255
> FONTSET ./etc/fonts.txt
>
> #
> # Start of web interface definition
> #
> WEB
> #
> # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
> # of the drive where the .MAP file resides.
> #
>   IMAGEPATH "/tmp/ms_tmp/"
>   IMAGEURL "/ms_tmp/"
> #  LOG "/tmp/gmap.log"
>
>   TEMPLATE demo.html
>   METADATA
>     "TITLE"   "MapServer OGR/TAB Test Demo"
>   END
> END
>
> #
> # Main map and default projection definition
> #
> PROJECTION
>   "proj=lcc"
>   "ellps=GRS80"
>   "lat_0=59"
>   "lon_0=-132"
>   "lat_1=61.666666700"
>   "lat_2=68.333333300"
>   "datum=NAD83"
>   "units=m"
> END
>
>
> #
> # Start of legend
> #
> LEGEND
>   KEYSIZE 18 12
>   LABEL
>     TYPE BITMAP
>     SIZE MEDIUM
>     COLOR 0 0 89
>   END
>   STATUS ON
> END
>
> #
> # Start of scalebar
> #
> SCALEBAR
>   IMAGECOLOR 255 255 255
>   LABEL
>     COLOR 0 0 0
>     SIZE SMALL
>   END
>   SIZE 150 4
>   COLOR 255 255 255
>   BACKGROUNDCOLOR 0 0 0
>   OUTLINECOLOR 0 0 0
>   UNITS kilometers
>   INTERVALS 5
>   STATUS ON
> END
>
> #
> # Querymap settings
> #
> # Style is one of NORMAL, HILITE, or SELECTED
> #
>
> QUERYMAP
>   STYLE HILITE
>   COLOR 255 0 0
> END
>
> #
> # Start of layer definitions
> #
>
> #states of Germany   ; polygons
>
> LAYER
>   NAME States In Germany
>   TYPE POLYGON
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION "data/germany/deustate.shp"
>   STYLEITEM "AUTO"
>   CLASS
>     NAME "States In Germany"
>   END
>   PROJECTION
>     "AUTO"
>   END
> END # Layer
>
> #germany/deu_regn   ; Regions in Germany, polygon
>
> LAYER
>   NAME Regions in Germany
>   TYPE POLYGON
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION "data/germany/deu_regn.shp"
>   STYLEITEM "AUTO"
>   CLASS
>     NAME "Regions in Germany"
>   END
>   PROJECTION
>     "AUTO"
>   END
> END # Layer
>
> #germany/deu_dist  ; Districts In Germany;polygon
>
> LAYER
>   NAME Districts In Germany
>   TYPE POLYGON
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION "data/germany/deu_dist.shp"
>   STYLEITEM "AUTO"
>   CLASS
>     NAME "Districts In Germany"
>   END
>   PROJECTION
>     "AUTO"
>   END
> END # Layer
>
> #germany/deu_lake  ; Lakes In Germany ; polygon
>
> LAYER
>   NAME Lakes In Germany
>   TYPE POLYGON
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION "data/germany/deu_lake.shp"
>   STYLEITEM "AUTO"
>   CLASS
>     NAME "Lakes In Germany"
>   END
>   PROJECTION
>     "AUTO"
>   END
> END # Layer
>
> #germany/deuriver  ; Rivers In Germany
>
> LAYER
>   NAME Rivers In Germany
>   TYPE LINE
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION "data/germany/deuriver.shp"
>   STYLEITEM "AUTO"
>   CLASS
>     NAME "Rivers In Germany"
>   END
>   PROJECTION
>     "AUTO"
>   END
> END # Layer
>
> #germany/deu_city  ; German Cities
>
> LAYER
>   NAME German Cities
>   TYPE POINT
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION "data/germany/deu_city"
>   STYLEITEM "AUTO"
>   CLASS
>     NAME "German Cities"
>   END
>   PROJECTION
>     "AUTO"
>   END
> END # Layer
>
> END #map
>

-- 
---------------------
Christopher R. Thorne
GIS Product Specialist,
DM Solutions Group Inc.

http://www.dmsolutions.ca
Email: cthorne at dmsolutions.ca
Phone: (613) 565-5056 ext.22
Fax :  (613) 565-0925 




More information about the Maplab-users mailing list