[UMN_MAPSERVER-USERS] Group / Scale

Dave Fuhry dfuhry at GMAIL.COM
Sat Jan 14 13:41:42 PST 2006


James,

   If you close & reopen your browser and go to the 'geauga' service,
it will let you go to geauga's control panel, and from there see the
mapfile.  It is an administrative example but you just can't be logged
into that and bluemarble at the same time.  You'll see there that the
LABELITEM and LABEL ... END section control labeling.  Post your
mapfile fragment if you continue to have problems.

   If you want an individualized example and your data is not
confidential, you can make a .zip file of your shapefiles and submit
them to the site using the "Create a Service" page.  You can turn on
labels and such in your own control panel then, and look at the
generated mapfile.  You would still have to do a little work on your
end to change the data source to shapefiles (instead of postgis) and
maybe repoint some fonts.

Thanks,

Dave Fuhry

On 1/14/06, James Net <james_marsnett at hotmail.com> wrote:
>
> Thanks, that helped. And now mine works. Thanks heaps!!!
>
> Now, what I am more interested in is the map file from the "geauge" example.
> I just can't seem to get my labels displaying - and I am using *.shp and
> *.dbf files so I know there are labels. Plus I have got them working via
> geoserver, but I would mush rather serve them with mapserver! Any help,
> ideas, examples???
>
> I seem to learn best from examples.
>
> Thanks in advance,
>
> James
>
> >From: Dave Fuhry <dfuhry at GMAIL.COM>
> >Reply-To: Dave Fuhry <dfuhry at GMAIL.COM>
> >To: MAPSERVER-USERS at LISTS.UMN.EDU
> >Subject: Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Group / Scale
> >Date: Fri, 13 Jan 2006 20:19:14 -0500
> >
> >James,
> >
> >    I happen to have an example of this very thing set up here:
> >http://ksumap.geog.kent.edu/bluemarble/
> >
> >    If this what you see there is the behavior you want, type
> >'marbles3' in the "Administer Site" login in the upper-right of the
> >screen.  Click on the red "control panel" link that appears, and click
> >the "Show Map File" tab.
> >
> >    If you want to change the behavior (min/max scale, opacity, etc.)
> >of the layers, change the values on the "Modify Layer" tab, update the
> >layer, then head back to the "Show Map File" tab.
> >
> >    Let me know if you find that useful; I am looking for ideas on how
> >to improve the app.
> >
> >Thanks,
> >
> >Dave Fuhry
> >
> >
> >On 1/12/06, James Net <james_marsnett at hotmail.com> wrote:
> > > Hi Again,
> > >
> > > So I tried the following without luck: Any Ideas? Help?
> > >
> > >    LAYER
> > >       NAME     "earth"
> > >       TYPE     RASTER
> > >       STATUS   ON
> > >       METADATA
> > >          wms_title   "earth"
> > >          wms_srs     "EPSG:4326"
> > >       END
> > >    END
> > >
> > >    LAYER
> > >       NAME     "marble"
> > >       TYPE     RASTER
> > >       STATUS   ON
> > >       GROUP    "earth"
> > >       MINSCALE 4000000.0
> > >       CONNECTION     "http://wms.jpl.nasa.gov/wms.cgi?"
> > >       CONNECTIONTYPE WMS
> > >       METADATA
> > >          wms_title             "marble" # DO I NEED THIS HERE?
> > >          "wms_srs"             "EPSG:4326"
> > >          "wms_name"            "BMNG"
> > >          "wms_server_version"  "1.1.1"
> > >          "wms_format"          "image/jpeg"
> > >       END
> > >    END
> > >
> > >
> > >         LAYER
> > >                 NAME    "my_map"
> > >                 DATA    "data/my_map.tif"
> > >                 TYPE    RASTER
> > >                 STATUS  ON
> > >                 GROUP   "earth"
> > >                 TRANSPARENCY    ALPHA
> > >                 OFFSITE 0 0 0
> > >                 MAXSCALE        4000000.0
> > >         #       MINSCALE        100000000.0
> > >                 METADATA
> > >                         wms_title       "my_map"
> > >                         wms_srs         "EPSG:4326"
> > >                         wms_abstract    "The map"
> > >                 END
> > >         END
> > >
> > > Thanks,
> > >
> > > James
> > >
> > >
> > >
> > > >From: "Fortin,Nicolas [SteFoy]" <nicolas.fortin at ec.gc.ca>
> > > >To: "James Net"
> > > ><james_marsnett at HOTMAIL.COM>,<MAPSERVER-USERS at LISTS.UMN.EDU>
> > > >Subject: RE : [UMN_MAPSERVER-USERS] Group / Scale
> > > >Date: Thu, 12 Jan 2006 09:00:11 -0500
> > > >
> > > >Hi
> > > >
> > > >I have many layers that act like this, you only have to modify your
> > > >MINSCALE and MAXSCALE within the group:
> > > >
> > > >For the high res, something like for example
> > > >MAXSCALE 500000
> > > >
> > > >For the marble
> > > >MINSCALE 500000
> > > >MAXSCALE 5000000 # if any
> > > >
> > > >Hope this help
> > > >Nicolas
> > > >
> > > >-----Message d'origine-----
> > > >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De
> >la
> > > >part de James Net
> > > >Envoyé : 11 janvier 2006 23:55
> > > >À : MAPSERVER-USERS at LISTS.UMN.EDU
> > > >Objet : [UMN_MAPSERVER-USERS] Group / Scale
> > > >
> > > >
> > > >Hello all,
> > > >
> > > >I have a high res raster map of a fixed extent. I want to do the
> >following,
> > > >but don't know how: I want to group my high res raster with JPL bue
> >marble
> > > >so that when I zoom out I see the JPL blue marbe map, but when I zoom
> >into
> > > >my extent I render my high res raster map.
> > > >
> > > >With my mapserver map file, I'm stuck here:
> > > >
> > > >    LAYER
> > > >       NAME     "marble"
> > > >       TYPE     RASTER
> > > >       STATUS   ON
> > > >       GROUP    "earth"
> > > >       MAXSCALE ???
> > > >       MINSCALE ???
> > > >       CONNECTION     "http://wms.jpl.nasa.gov/wms.cgi?"
> > > >       CONNECTIONTYPE WMS
> > > >       METADATA
> > > >          "wms_srs"             "EPSG:4326"
> > > >          "wms_name"            "BMNG"
> > > >          "wms_server_version"  "1.1.1"
> > > >          "wms_format"          "image/jpeg"
> > > >       END
> > > >    END
> > > >
> > > >         LAYER
> > > >                 NAME    "my_high_res_map"
> > > >                 DATA    "data/my_mosaic.tif"
> > > >                 TYPE    RASTER
> > > >                 STATUS  ON
> > > >                 GROUP   "earth"
> > > >                 TRANSPARENCY    ALPHA
> > > >                 OFFSITE 0 0 0
> > > >                 MAXSCALE        4000000.0
> > > >                MINSCALE        ??? #0.0
> > > >                 METADATA
> > > >                         wms_title       "base_map"
> > > >                         wms_srs         "EPSG:4326"
> > > >                 END
> > > >         END
> > > >
> > > >Any help would be great, I've been at it all day without luck!
> > > >
> > > >
> > > >Many thanks,
> > > >
> > > >James
> > > >
> > > >_________________________________________________________________
> > > >ASUS M5 Ultra-slim lightweight is Now $1999 (was $2,999)
> > >
> > >http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Easus%2Ecom%2Eau%2F&_t=752129232&_r=Hotmail_tagline_23Nov05&_m=EXT
> > >
> > > _________________________________________________________________
> > > Make your dream car a reality
> > >
> >http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcarpoint%2Eninemsn%2Ecom%2Eau&_t=12345&_r=emailtagline&_m=EXT
> > >
>
> _________________________________________________________________
> ASUS M5 Ultra-slim lightweight is Now $1999 (was $2,999)
> http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Easus%2Ecom%2Eau%2F&_t=752129232&_r=Hotmail_tagline_23Nov05&_m=EXT
>
>



More information about the MapServer-users mailing list