MapServer 5.0.0 released!

23 messages Options
Embed this post
Permalink
1 2
Nolte, Tim

Re: MapServer 5.0.0 released!

Reply Threaded More More options
Print post
Permalink
Thomas,

If I don't use the "aliased" symbol the legend key images show up fine,
even with MIN/MAXSCALE, as I have this on other layers without issue.
The example I gave you is for a few layers that I wanted to use the
"aliased" symbol and for those the legend key images don't show up.

----
Timothy J Nolte - [hidden email]
Associate Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: thomas bonfort [mailto:[hidden email]]
Sent: Thursday, September 27, 2007 1:50 PM
To: Nolte, Tim
Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released!

Tim,

is the legend icon not appearing happening *only* when using the
"aliased" symbol ?
the mentionned bug would kick in also if you've defined a
minscale/maxscale on the layer level, but from your snippet this
doesn't seem to be the case.

thanks for helping out on this...

tb

On 9/27/07, Nolte, Tim <[hidden email]> wrote:

> Thomas,
>
> Actually, I did take your initial suggestion and removing the
> MIN/MAXSCALE didn't fix the issue with the keyimage not showing up.
> Thanks anyways.
>
> ----
> Timothy J Nolte - [hidden email]
> Associate Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
>
> -----Original Message-----
> From: thomas bonfort [mailto:[hidden email]]
> Sent: Wednesday, September 26, 2007 9:39 AM
> To: Nolte, Tim
> Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released!
>
> tim, if you want to fix this it's quite easy:
> http://trac.osgeo.org/mapserver/changeset/6907
>
> just change each second instance of maxscaledenom to minscaledenom in
> maplegend.c
>
> cheers, tb
>
>
> On 9/26/07, Nolte, Tim <[hidden email]> wrote:
> > Thomas,
> >
> > Thanks for getting back to me on this. I sort of suspected this
could
> be
> > the issue as I've seen the posts come across the group. I was sort
of
> > impatient so I found a workaround using KEYIMAGE and just specifying
> an
> > image to use for my legend. I can't actually run in production
without

> > the MIN/MAXSCALE options, but when I get a chance I'll run through
> this
> > on my test environment. Thanks again!
> >
> > - Tim
> >
> > ----
> > Timothy J Nolte - [hidden email]
> > Associate Network Planning Engineer
> >
> > iPCS Wireless, Inc.
> > 4717 Broadmoor Ave, Suite G
> > Kentwood, MI 49512
> >
> > Office: 616-656-5163
> > PCS:    616-706-2438
> > Fax:    616-554-6484
> > Web: www.ipcswirelessinc.com
> >
> >
> > -----Original Message-----
> > From: thomas bonfort [mailto:[hidden email]]
> > Sent: Wednesday, September 26, 2007 9:03 AM
> > To: Nolte, Tim
> > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released!
> >
> > there's a bug in the 5.0 code concerning maxscale and minscale.
could
> > you try without these keywords and report if your legends are
drawing?

> > if that's the case the fix will be in 5.0.1
> >
> > tb
> >
> > On 9/21/07, Nolte, Tim <[hidden email]> wrote:
> > > Ok, here is my symbol and layer definitions.
> > >
> > > SYMBOL
> > > NAME 'aliased'
> > > TYPE SIMPLE
> > > ANTIALIAS FALSE
> > > END
> > >
> > >   LAYER
> > >     GROUP "Propagations"
> > >     NAME "-98dBm to -104dBm (Outdoor Rural)"
> > >     STATUS ON
> > >     TILEINDEX "propagations/104/tileindex"
> > >     TILEITEM "location"
> > >     TYPE POLYGON
> > >     # --------------------------------------------------
> > >     # Class: -98dBm to -104dBm (Outdoor Rural)
> > >     # --------------------------------------------------
> > >     CLASS
> > >       NAME "-98dBm to -104dBm (Outdoor Rural)"
> > >       MINSCALE 0
> > >       MAXSCALE 1200000
> > >       STYLE
> > >         SYMBOL "aliased"
> > >         COLOR 255 128 0
> > >         OUTLINECOLOR 255 128 0
> > >       END
> > >     END
> > >   END
> > >
> > > Does anyone see something that isn't right? My default application
> > > interface is Chameleon, however just using the basic cgi
index.html
> &
> > > viewer-template.html ways of rendering are outputting the same
thing
> > (no
> > > legend images for layers using SYMBOL "aliased"). Prior to this
> patch
> > > those legend images showed up fine. I'm pretty sure it has
something

> > to
> > > do with adding a symbol to the class.
> > >
> > > ----
> > > Timothy J Nolte - [hidden email]
> > > Associate Network Planning Engineer
> > >
> > > iPCS Wireless, Inc.
> > > 4717 Broadmoor Ave, Suite G
> > > Kentwood, MI 49512
> > >
> > > Office: 616-656-5163
> > > PCS:    616-706-2438
> > > Fax:    616-554-6484
> > > Web: www.ipcswirelessinc.com
> > > -----Original Message-----
> > > From: thomas bonfort [mailto:[hidden email]]
> > > Sent: Thursday, September 20, 2007 10:28 AM
> > > To: Nolte, Tim
> > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released!
> > >
> > > I can't reproduce this here... the legend icon shows up correctly
> > (i.e.
> > > aliased)
> > > how are you drawing the legend icons?
> > >
> > > tb
> > >
> > > On 9/20/07, Nolte, Tim <[hidden email]> wrote:
> > > > I guess I'm not totally out of the dark yet. I didn't notice it
> but
> > > when
> > > > using the patch the legend images for the layers I've added the
> > SYMBOL
> > > > 'aliased' to don't show up now. Any tip? I'm assuming that this
> > patch
> > > is
> > > > looking specifically for the "SYMBOL 'aliased'" so I can't
simply
> > add
> > > > more symbols that have the correct color. I think this might be
> the
> > > > problem because it's trying to use that symbol to make the
legend

> > > image.
> > > >
> > > > ----
> > > > Timothy J Nolte - [hidden email]
> > > > Associate Network Planning Engineer
> > > >
> > > > iPCS Wireless, Inc.
> > > > 4717 Broadmoor Ave, Suite G
> > > > Kentwood, MI 49512
> > > >
> > > > Office: 616-656-5163
> > > > PCS:    616-706-2438
> > > > Fax:    616-554-6484
> > > > Web: www.ipcswirelessinc.com
> > > >
> > > > > -----Original Message-----
> > > > > From: thomas bonfort [mailto:[hidden email]]
> > > > > Sent: Tuesday, September 18, 2007 1:46 PM
> > > > > To: Nolte, Tim
> > > > > Cc: [hidden email]
> > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 5.0.0 released!
> > > > >
> > > > > On 9/18/07, Nolte, Tim <[hidden email]> wrote:
> > > > > > Thomas,
> > > > > >
> > > > > > I'll give this a try, and see what I get. Thanks. I'll let
you
> > how
> > > > it
> > > > >   > works. Just so I get this straight I add "ANTIALIAS FALSE"
> to
> > my
> > > > > layer
> > > > > > after the patch and that layer won't be antialiased,
correct?
> > > > >
> > > > > nope, that's not it..
> > > > > you create the symbol definition in your symbol file or
inlined
> in
> > > > > your mapfile. and then you set the layers you want rendered
fast

> > to
> > > > > LAYER
> > > > > NAME blablba
> > > > > DATA ...
> > > > >  CLASS
> > > > >   STYLE
> > > > >    COLOR r g b
> > > > >    SYMBOL 'aliased'
> > > > >   END
> > > > >  END
> > > > > END
> > > > >
> > > > > it's slower than gd but did speed up dense line drawings by a
> > factor
> > > > > of 3 when i tried it, less with polygons.
> > > > >
> > > > > tb
> > > >
> > >
> > >
> >
> >
>
>
Chip Taylor

How to

Reply Threaded More More options
Print post
Permalink
In reply to this post by Nolte, Tim
I know that this is not specifically a mapserver question (or maybe it is)
but here goes:

Is there a way to:

1. Take one large shapefile (such as uscounties.shp) and split it into
individual shapefiles based on information in the .dbf file (such as
individual counties - one per shapefile)?

2. How would I send a query to Mapserver to only return a map for a specific
entity in a shapefile (such as a county from a shapefile that contained all
US counties - based on the state FIP and County FIP in the dbf)?

It has been a while since I have done any Mapserver development and now I
have to get back to it.  Your help is greatly appreciated!

Chip Taylor
Stephen Woodbridge

Re: How to

Reply Threaded More More options
Print post
Permalink
Chip Taylor wrote:
> I know that this is not specifically a mapserver question (or maybe it is)
> but here goes:
>
> Is there a way to:
>
> 1. Take one large shapefile (such as uscounties.shp) and split it into
> individual shapefiles based on information in the .dbf file (such as
> individual counties - one per shapefile)?

I think the easiest way to do this might be to use something like
Geo::Shapelib perl module to read the input shapefile and to generate
the respective output shapefiles. There are approximately 3300 counties
in the US.

> 2. How would I send a query to Mapserver to only return a map for a specific
> entity in a shapefile (such as a county from a shapefile that contained all
> US counties - based on the state FIP and County FIP in the dbf)?

QueryByAttribute should be able to do that. It depends if you are trying
to do this in CGI, mapscript (which flavor?), or a filter on a WFS
server, or substitution in the mapfile via the CGI to dynamically change
a FILTER on a layer, etc. Or you could load it into a postGIS database
and deal with it there. GDAL/OGR might have some additional tools to do
this that I'm not familiar with.

> It has been a while since I have done any Mapserver development and now I
> have to get back to it.  Your help is greatly appreciated!
>
> Chip Taylor

Best regards,
  -Steve W
1 2