Re: [mapserver-users] MapServer 5.2.2 and 4.10.4 released with security fixes

2009-03-26 Thread William Kyngesburye

I have my OSX Mapserver 5.2.2 binaries online.

I noticed that the mapserver site hasn't been updated yet.  Then I  
noticed that the HTML title for the whole site (mapserver.org pages)  
is "MapServer 5.2.1 Documentation".  Odd (the 'documentation' part,  
not the version).


Also, your downloads page link below should be:

http://mapserver.org/download.html

On Mar 26, 2009, at 9:40 PM, Steve Lime wrote:

MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will  
contain all of these
fixes at the start and a beta 4 release will be available in a day  
or so.)





The source packages are available in the MapServer downloads page:

 http://mapserver.org/download/



-
William Kyngesburye 
http://www.kyngchaos.com/

"The beast is actively interested only in now, and, as it is always  
now and always shall be, there is an eternity of time for the  
accomplishment of objects."


- the wisdom of Tarzan





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer 5.2.2 and 4.10.4 released with security fixes

2009-03-26 Thread Steve Lime
MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will contain all of 
these
fixes at the start and a beta 4 release will be available in a day or so.)

The releases contain fixes for issues discovered in an audit of the CGI by a 
3rd party 
(tickets #2939, #2941, #2942, #2943 and #2944). The issues are detailed at:

  http://trac.osgeo.org/mapserver/ticket/2939
  http://trac.osgeo.org/mapserver/ticket/2941
  http://trac.osgeo.org/mapserver/ticket/2942
  http://trac.osgeo.org/mapserver/ticket/2943
  http://trac.osgeo.org/mapserver/ticket/2944

Also provided is support for RFC-56 that addresses tightening up the control of 
access to mapfiles and templates:

  http://mapserver.org/development/rfc/ms-rfc-56.html

Most of these defects have been present for a number of releases and the 
potential
impact depends on your individual setup. Users of the mapserv CGI are strongly 
advised
to upgrade to the latest release. The  changes do not directly affect MapScript 
however
as a result of the changes all users may have to modify their applications to 
upgrade.

To upgrade you must:

1 - make sure map files are well-formed, that is, the first token is MAP. 
Comments
can come before the MAP token.

2 - make sure symbol files are well-formed, that is, the first token is 
SYMBOLSET. Like
mapfiles, comments can come before the SYMBOLSET token.

3 - MapServer templates, browse and query, now must include the magic string -
"MapServer Template". The string is not case sensitive but must be present in 
the first
line of the template or MapServer will reject it. The first line is not output 
with the template.

Finally, please consider using the new environment variables detailed in the 
RFC to further 
secure your installation.  

Upgrade tips:

In many cases items 1-3 above can be completed prior to updating your software. 
For templates,
you can enclose the magic string in comments appropriate to the template type 
(see the RFC
above for examples). The magic string will be output until you complete the 
upgrade but the
browser will ignore them as comments.

The source packages are available in the MapServer downloads page:

  http://mapserver.org/download/

and can be downloaded directly at:

  http://download.osgeo.org/mapserver/mapserver-5.2.2.tar.gz 
  http://download.osgeo.org/mapserver/mapserver-4.10.4.tar.gz

Precompiled binaries should be available shortly at the usual locations (also 
linked from the 
download page above).  Existing MS4W users can go to the MS4W downloads page 
and use 
the "MapServer version 5.2.2 Upgrade" package.

If you have questions, comments or concerns please contact me directly or send 
a message 
to the -dev list. Thanks to the folks at Positron Security for their assistance.

Steve


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Changing class EXPRESSION by URL

2009-03-26 Thread Steve Lime
Replacing the entire expression is going to be possible in 5.4 but is not
recommended for what you're trying to do. It's just too hard to secure
depending on what type of data source you're dealing with. A better
option if you know the basic structure of your expression is fixed is to
just pass portions of it. E.g.:

  (('[field1]' eq '%something1%' or '[field2]' eq '%something2%'))

This way you can apply validation patterns against each variable (in this
case something1 and something2. In the layer metadata you'd do something
like this:

  something1_validation_pattern '^[0-9]{1,3}$'
  something2_validation_pattern '^[a-z]{5}$'

This would restrict the value domain for something1 to 3-digit numbers and
the value domain for something2 to a 5 character string, all lower case. Any
deviation would throw an error.

Steve

>>> Rui Gomes  03/26/09 7:50 PM >>>
Hi...

I'm trying to do this:

Using checkbox i build a expression like:

(('[field1]' eq 'something1' or '[field2]' eq 'something2'))

and then use only the records that match using the class EXPRESSION

I read in the web that is not possible in mapserver 5. Is that true?
Or exist another way to do this?

Thanks
-- 
  Rui Gomes
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Changing class EXPRESSION by URL

2009-03-26 Thread Rui Gomes
Hi...

I'm trying to do this:

Using checkbox i build a expression like:

(('[field1]' eq 'something1' or '[field2]' eq 'something2'))

and then use only the records that match using the class EXPRESSION

I read in the web that is not possible in mapserver 5. Is that true?
Or exist another way to do this?

Thanks
-- 
  Rui Gomes
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Jay Kapalczynski
r, via email, send a message with subject or body 'help' to

>

>   mapserver-users-requ...@lists.osgeo.org

>

>

>

> You can reach the person managing the list at

>

>   mapserver-users-ow...@lists.osgeo.org

>

>

>

> When replying, please edit your Subject line so it is more specific

>

> than "Re: Contents of mapserver-users digest..."

>

>

>

>

>

> Today's Topics:

>

>

>

>1. RE: Labeling (Jay Kapalczynski)

>

>

>

>

>

> --

>

>

>

> Message: 1

>

> Date: Thu, 26 Mar 2009 10:57:39 -0500

>

> From: Jay Kapalczynski 

>

> Subject: RE: [mapserver-users] Labeling

>

> To: "'Fawcett, David'" ,

>

>   "mapserver-users@lists.osgeo.org" 

>

> Message-ID:

>

>

>

> 

>

>

>

> Content-Type: text/plain; charset="us-ascii"

>

>

>

> Yea I can do that but then I have to build processes to do all the

>

> converting...

>

> I want to read this data live.

>

>

>

> Anyone else have any ideas?

>

>

>

> Thanks

>

>

>

> One Last thought, don't know if I should enter a new topic...

>

>

>

> I have three labels I want to label.  Right now I am using an Offset to push

>

> one above, and one below (UC, CC, LC) with offsets.

>

> And as such these are three separate layers in my app

>

> I tried to combine all three into one map file but it only labels the first

>

> one (I copied the original code in the original email and simply changed the

>

> label field)(no matter what I do it just labels the first one it reads)

>

>

>

> Can I combine these into one and still have them label on three different

>

> rows

>

>

>

> Value 1

>

> Value 2

>

> Value 3

>

>

>

> Can I concatenate like this?

>

>

>

> LABELITEM  'Value 1' & 'VALUE 2' & 'VALUE 3'

>

>

>

> But how would I specify they are supposed to create 3 lines???

>

>

>

> THANKS

>

>

>

>

>

> From: Fawcett, David [mailto:david.fawc...@state.mn.us]

>

> Sent: Thursday, March 26, 2009 9:38 AM

>

> To: Jay Kapalczynski; mapserver-users@lists.osgeo.org

>

> Subject: RE: [mapserver-users] Labeling

>

>

>

> It is always an option to create a string column and then populate it with

>

> your numbers formatted the way that you want them to appear.  I am sure that

>

> you realize this, but it is something that I have done in the past.

>

>

>

> David.

>

> -Original Message-

>

> From: mapserver-users-boun...@lists.osgeo.org

>

> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay

>

> Kapalczynski

>

> Sent: Thursday, March 26, 2009 9:14 AM

>

> To: 'mapserver-users@lists.osgeo.org'

>

> Subject: [mapserver-users] Labeling

>

>

>

> Is there any way to eliminate the decimal places here...I looked online but

>

> was unable to find anything.

>

>

>

> Thanks

>

>

>

> The fields I am labeling are numeric...so I get this

>

>

>

> 3434.

>

> 123.

>

>

>

> I am looking to drop all the extra decimal places...

>

>

>

> Or maybe set it to keep two

>

>

>

> 3434.00

>

>

>

> THANKS

>

>

>

>

>

>

>

> LAYER # Maple Grove Parcels

>

> NAME Parcel_Labels

>

> DATA './parcels.shp'

>

> STATUS DEFAULT

>

> TYPE annotation

>

> MAXSCALE 2000

>

> MINSCALE 100

>

> LABELITEM 'EMV_LAND'

>

>

>

>

>

> LABELCACHE ON

>

>  CLASS

>

>COLOR -1 -1 -1

>

>LABEL

>

> POSITION UC

>

> TYPE TRUETYPE

>

> FONT vera_sans

>

> MAXSIZE 7

>

> SIZE 7

>

> OFFSET 0 10

>

> MINSIZE 4

>

> #ANTIALIAS TRUE

>

> COLOR 0 0 0

>

> OUTLINECOLOR 255 255 128

>

> BUFFER 2

>

>END

>

>  END

>

>   END # Maple Grove Parcels

>

> -- next part --

>

> An HTML attachment was scrubbed...

>

> URL:

>

> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92

>

> b/attachment-0001.html

>

>

>

> --

>

>

>

> ___

>

> mapserver-users mailing list

>

> mapserver-users@lists.osgeo.org

>

> http://lists.osgeo.org/mailman/listinfo/mapserver-users

>

>

>

>

>

> End of mapserver-users Digest, Vol 14, Issue 80

>

> ***

>

> ___

>

> mapserver-users mailing list

>

> mapserver-users@lists.osgeo.org

>

> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Steve Lime
 & 'VALUE 2' & 'VALUE 3'
> 
>>
> 
>>
> 
>>
> 
>> But how would I specify they are supposed to create 3 lines???
> 
>>
> 
>>
> 
>>
> 
>> THANKS
> 
>>
> 
>>
> 
>>
> 
>>
> 
>>
> 
>> From: Fawcett, David [mailto:david.fawc...@state.mn.us] 
> 
>>
> 
>> Sent: Thursday, March 26, 2009 9:38 AM
> 
>>
> 
>> To: Jay Kapalczynski; mapserver-users@lists.osgeo.org 
> 
>>
> 
>> Subject: RE: [mapserver-users] Labeling
> 
>>
> 
>>
> 
>>
> 
>> It is always an option to create a string column and then populate it with
> 
>>
> 
>> your numbers formatted the way that you want them to appear.  I am sure that
> 
>>
> 
>> you realize this, but it is something that I have done in the past.
> 
>>
> 
>>
> 
>>
> 
>> David.
> 
>>
> 
>> -Original Message-
> 
>>
> 
>> From: mapserver-users-boun...@lists.osgeo.org 
> 
>>
> 
>> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay
> 
>>
> 
>> Kapalczynski
> 
>>
> 
>> Sent: Thursday, March 26, 2009 9:14 AM
> 
>>
> 
>> To: 'mapserver-users@lists.osgeo.org'
> 
>>
> 
>> Subject: [mapserver-users] Labeling
> 
>>
> 
>>
> 
>>
> 
>> Is there any way to eliminate the decimal places here...I looked online but
> 
>>
> 
>> was unable to find anything.
> 
>>
> 
>>
> 
>>
> 
>> Thanks
> 
>>
> 
>>
> 
>>
> 
>> The fields I am labeling are numeric...so I get this
> 
>>
> 
>>
> 
>>
> 
>> 3434.
> 
>>
> 
>> 123.
> 
>>
> 
>>
> 
>>
> 
>> I am looking to drop all the extra decimal places...
> 
>>
> 
>>
> 
>>
> 
>> Or maybe set it to keep two
> 
>>
> 
>>
> 
>>
> 
>> 3434.00
> 
>>
> 
>>
> 
>>
> 
>> THANKS
> 
>>
> 
>>
> 
>>
> 
>>
> 
>>
> 
>>
> 
>>
> 
>> LAYER # Maple Grove Parcels
> 
>>
> 
>> NAME Parcel_Labels
> 
>>
> 
>> DATA './parcels.shp'
> 
>>
> 
>> STATUS DEFAULT
> 
>>
> 
>> TYPE annotation
> 
>>
> 
>> MAXSCALE 2000
> 
>>
> 
>> MINSCALE 100
> 
>>
> 
>> LABELITEM 'EMV_LAND'
> 
>>
> 
>>
> 
>>
> 
>>
> 
>>
> 
>> LABELCACHE ON
> 
>>
> 
>>  CLASS
> 
>>
> 
>>COLOR -1 -1 -1
> 
>>
> 
>>LABEL
> 
>>
> 
>> POSITION UC
> 
>>
> 
>> TYPE TRUETYPE
> 
>>
> 
>> FONT vera_sans
> 
>>
> 
>> MAXSIZE 7
> 
>>
> 
>> SIZE 7
> 
>>
> 
>> OFFSET 0 10
> 
>>
> 
>> MINSIZE 4
> 
>>
> 
>> #ANTIALIAS TRUE
> 
>>
> 
>> COLOR 0 0 0
> 
>>
> 
>> OUTLINECOLOR 255 255 128
> 
>>
> 
>> BUFFER 2
> 
>>
> 
>>END
> 
>>
> 
>>  END
> 
>>
> 
>>   END # Maple Grove Parcels
> 
>>
> 
>> -- next part --
> 
>>
> 
>> An HTML attachment was scrubbed...
> 
>>
> 
>> URL:
> 
>>
> 
>> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92
>>  
> 
>>
> 
>> b/attachment-0001.html
> 
>>
> 
>>
> 
>>
> 
>> --
> 
>>
> 
>>
> 
>>
> 
>> ___
> 
>>
> 
>> mapserver-users mailing list
> 
>>
> 
>> mapserver-users@lists.osgeo.org 
> 
>>
> 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users 
> 
>>
> 
>>
> 
>>
> 
>>
> 
>>
> 
>> End of mapserver-users Digest, Vol 14, Issue 80
> 
>>
> 
>> ***
> 
>>
> 
>> ___
> 
>>
> 
>> mapserver-users mailing list
> 
>>
> 
>> mapserver-users@lists.osgeo.org 
> 
>>
> 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Jay Kapalczynski
e: Contents of mapserver-users digest..."

>

>

>

>

>

> Today's Topics:

>

>

>

>1. RE: Labeling (Jay Kapalczynski)

>

>

>

>

>

> --

>

>

>

> Message: 1

>

> Date: Thu, 26 Mar 2009 10:57:39 -0500

>

> From: Jay Kapalczynski 

>

> Subject: RE: [mapserver-users] Labeling

>

> To: "'Fawcett, David'" ,

>

>   "mapserver-users@lists.osgeo.org" 

>

> Message-ID:

>

>

>

> 

>

>

>

> Content-Type: text/plain; charset="us-ascii"

>

>

>

> Yea I can do that but then I have to build processes to do all the

>

> converting...

>

> I want to read this data live.

>

>

>

> Anyone else have any ideas?

>

>

>

> Thanks

>

>

>

> One Last thought, don't know if I should enter a new topic...

>

>

>

> I have three labels I want to label.  Right now I am using an Offset to push

>

> one above, and one below (UC, CC, LC) with offsets.

>

> And as such these are three separate layers in my app

>

> I tried to combine all three into one map file but it only labels the first

>

> one (I copied the original code in the original email and simply changed the

>

> label field)(no matter what I do it just labels the first one it reads)

>

>

>

> Can I combine these into one and still have them label on three different

>

> rows

>

>

>

> Value 1

>

> Value 2

>

> Value 3

>

>

>

> Can I concatenate like this?

>

>

>

> LABELITEM  'Value 1' & 'VALUE 2' & 'VALUE 3'

>

>

>

> But how would I specify they are supposed to create 3 lines???

>

>

>

> THANKS

>

>

>

>

>

> From: Fawcett, David [mailto:david.fawc...@state.mn.us]

>

> Sent: Thursday, March 26, 2009 9:38 AM

>

> To: Jay Kapalczynski; mapserver-users@lists.osgeo.org

>

> Subject: RE: [mapserver-users] Labeling

>

>

>

> It is always an option to create a string column and then populate it with

>

> your numbers formatted the way that you want them to appear.  I am sure that

>

> you realize this, but it is something that I have done in the past.

>

>

>

> David.

>

> -Original Message-

>

> From: mapserver-users-boun...@lists.osgeo.org

>

> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay

>

> Kapalczynski

>

> Sent: Thursday, March 26, 2009 9:14 AM

>

> To: 'mapserver-users@lists.osgeo.org'

>

> Subject: [mapserver-users] Labeling

>

>

>

> Is there any way to eliminate the decimal places here...I looked online but

>

> was unable to find anything.

>

>

>

> Thanks

>

>

>

> The fields I am labeling are numeric...so I get this

>

>

>

> 3434.

>

> 123.

>

>

>

> I am looking to drop all the extra decimal places...

>

>

>

> Or maybe set it to keep two

>

>

>

> 3434.00

>

>

>

> THANKS

>

>

>

>

>

>

>

> LAYER # Maple Grove Parcels

>

> NAME Parcel_Labels

>

> DATA './parcels.shp'

>

> STATUS DEFAULT

>

> TYPE annotation

>

> MAXSCALE 2000

>

> MINSCALE 100

>

> LABELITEM 'EMV_LAND'

>

>

>

>

>

> LABELCACHE ON

>

>  CLASS

>

>COLOR -1 -1 -1

>

>LABEL

>

> POSITION UC

>

> TYPE TRUETYPE

>

> FONT vera_sans

>

> MAXSIZE 7

>

> SIZE 7

>

> OFFSET 0 10

>

> MINSIZE 4

>

> #ANTIALIAS TRUE

>

> COLOR 0 0 0

>

> OUTLINECOLOR 255 255 128

>

> BUFFER 2

>

>END

>

>  END

>

>   END # Maple Grove Parcels

>

> -- next part --

>

> An HTML attachment was scrubbed...

>

> URL:

>

> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92

>

> b/attachment-0001.html

>

>

>

> --

>

>

>

> ___

>

> mapserver-users mailing list

>

> mapserver-users@lists.osgeo.org

>

> http://lists.osgeo.org/mailman/listinfo/mapserver-users

>

>

>

>

>

> End of mapserver-users Digest, Vol 14, Issue 80

>

> ***

>

> ___

>

> mapserver-users mailing list

>

> mapserver-users@lists.osgeo.org

>

> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Steve Lime
> 
> 
> 
> Yea I can do that but then I have to build processes to do all the
> 
> converting...
> 
> I want to read this data live.
> 
> 
> 
> Anyone else have any ideas?
> 
> 
> 
> Thanks
> 
> 
> 
> One Last thought, don't know if I should enter a new topic...
> 
> 
> 
> I have three labels I want to label.  Right now I am using an Offset to push
> 
> one above, and one below (UC, CC, LC) with offsets.
> 
> And as such these are three separate layers in my app
> 
> I tried to combine all three into one map file but it only labels the first
> 
> one (I copied the original code in the original email and simply changed the
> 
> label field)(no matter what I do it just labels the first one it reads)
> 
> 
> 
> Can I combine these into one and still have them label on three different
> 
> rows
> 
> 
> 
> Value 1
> 
> Value 2
> 
> Value 3
> 
> 
> 
> Can I concatenate like this?
> 
> 
> 
> LABELITEM  'Value 1' & 'VALUE 2' & 'VALUE 3'
> 
> 
> 
> But how would I specify they are supposed to create 3 lines???
> 
> 
> 
> THANKS
> 
> 
> 
> 
> 
> From: Fawcett, David [mailto:david.fawc...@state.mn.us] 
> 
> Sent: Thursday, March 26, 2009 9:38 AM
> 
> To: Jay Kapalczynski; mapserver-users@lists.osgeo.org 
> 
> Subject: RE: [mapserver-users] Labeling
> 
> 
> 
> It is always an option to create a string column and then populate it with
> 
> your numbers formatted the way that you want them to appear.  I am sure that
> 
> you realize this, but it is something that I have done in the past.
> 
> 
> 
> David.
> 
> -Original Message-
> 
> From: mapserver-users-boun...@lists.osgeo.org 
> 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay
> 
> Kapalczynski
> 
> Sent: Thursday, March 26, 2009 9:14 AM
> 
> To: 'mapserver-users@lists.osgeo.org'
> 
> Subject: [mapserver-users] Labeling
> 
> 
> 
> Is there any way to eliminate the decimal places here...I looked online but
> 
> was unable to find anything.
> 
> 
> 
> Thanks
> 
> 
> 
> The fields I am labeling are numeric...so I get this
> 
> 
> 
> 3434.
> 
> 123.
> 
> 
> 
> I am looking to drop all the extra decimal places...
> 
> 
> 
> Or maybe set it to keep two
> 
> 
> 
> 3434.00
> 
> 
> 
> THANKS
> 
> 
> 
> 
> 
> 
> 
> LAYER # Maple Grove Parcels
> 
> NAME Parcel_Labels
> 
> DATA './parcels.shp'
> 
> STATUS DEFAULT
> 
> TYPE annotation
> 
> MAXSCALE 2000
> 
> MINSCALE 100
> 
> LABELITEM 'EMV_LAND'
> 
> 
> 
> 
> 
> LABELCACHE ON
> 
>  CLASS
> 
>COLOR -1 -1 -1
> 
>LABEL
> 
> POSITION UC
> 
> TYPE TRUETYPE
> 
> FONT vera_sans
> 
> MAXSIZE 7
> 
> SIZE 7
> 
> OFFSET 0 10
> 
> MINSIZE 4
> 
> #ANTIALIAS TRUE
> 
> COLOR 0 0 0
> 
> OUTLINECOLOR 255 255 128
> 
> BUFFER 2
> 
>END
> 
>  END
> 
>   END # Maple Grove Parcels
> 
> -- next part --
> 
> An HTML attachment was scrubbed...
> 
> URL:
> 
> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92 
> 
> b/attachment-0001.html
> 
> 
> 
> --
> 
> 
> 
> ___
> 
> mapserver-users mailing list
> 
> mapserver-users@lists.osgeo.org 
> 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users 
> 
> 
> 
> 
> 
> End of mapserver-users Digest, Vol 14, Issue 80
> 
> ***
> 
> ___
> 
> mapserver-users mailing list
> 
> mapserver-users@lists.osgeo.org 
> 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Labeling

2009-03-26 Thread Jay Kapalczynski
Thank you all for your help...

No worries on the decimal truncationwill patiently wait for the 6.0 
releasein the mean time I have just updated the test data to a string (text)

As for the multi-lineThank you Steve and Mark Volz for your thoughts...

They are working although it seems to indent the 2nd and 3rd line...I posted 
this on the other email sent by Mark Volz

Any thoughts



-Original Message-
From: Steve Lime [mailto:steve.l...@dnr.state.mn.us] 
Sent: Thursday, March 26, 2009 11:46 AM
To: Jay Kapalczynski; mapserver-users@lists.osgeo.org; David' 'Fawcett
Subject: RE: [mapserver-users] Labeling

The decimal truncation simply can't be done with a shapefile at the moment. 
There's a ticket in place
to add this functionality but it will be a 6.0 improvement. Wish I have better 
news.

One the other question you can use the class TEXT property along with a wrap 
character to achieve
the multiline labels. E.g.:

CLASS
  ...
  TEXT "[col1]|[col2]|[col3]"
  LABEL
...
WRAP "|"
  END
END

and that should get you a multi-line label based on 3 attributes.

Steve

>>> On 3/26/2009 at 10:57 AM, in message
, Jay
Kapalczynski  wrote:
> Yea I can do that but then I have to build processes to do all the 
> converting...
> I want to read this data live.
> 
> Anyone else have any ideas?
> 
> Thanks
> 
> One Last thought, don't know if I should enter a new topic...
> 
> I have three labels I want to label.  Right now I am using an Offset to push 
> one above, and one below (UC, CC, LC) with offsets.
> And as such these are three separate layers in my app
> I tried to combine all three into one map file but it only labels the first 
> one (I copied the original code in the original email and simply changed the 
> label field)(no matter what I do it just labels the first one it reads)
> 
> Can I combine these into one and still have them label on three different 
> rows
> 
> Value 1
> Value 2
> Value 3
> 
> Can I concatenate like this?
> 
> LABELITEM  'Value 1' & 'VALUE 2' & 'VALUE 3'
> 
> But how would I specify they are supposed to create 3 lines???
> 
> THANKS
> 
> 
> From: Fawcett, David [mailto:david.fawc...@state.mn.us] 
> Sent: Thursday, March 26, 2009 9:38 AM
> To: Jay Kapalczynski; mapserver-users@lists.osgeo.org 
> Subject: RE: [mapserver-users] Labeling
> 
> It is always an option to create a string column and then populate it with 
> your numbers formatted the way that you want them to appear.  I am sure that 
> you realize this, but it is something that I have done in the past.
> 
> David.
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay 
> Kapalczynski
> Sent: Thursday, March 26, 2009 9:14 AM
> To: 'mapserver-users@lists.osgeo.org'
> Subject: [mapserver-users] Labeling
> 
> Is there any way to eliminate the decimal places here...I looked online but 
> was unable to find anything.
> 
> Thanks
> 
> The fields I am labeling are numeric...so I get this
> 
> 3434.
> 123.
> 
> I am looking to drop all the extra decimal places...
> 
> Or maybe set it to keep two
> 
> 3434.00
> 
> THANKS
> 
> 
> 
> LAYER # Maple Grove Parcels
> NAME Parcel_Labels
> DATA './parcels.shp'
> STATUS DEFAULT
> TYPE annotation
> MAXSCALE 2000
> MINSCALE 100
> LABELITEM 'EMV_LAND'
> 
> 
> LABELCACHE ON
>  CLASS
>COLOR -1 -1 -1
>LABEL
> POSITION UC
> TYPE TRUETYPE
> FONT vera_sans
> MAXSIZE 7
> SIZE 7
> OFFSET 0 10
> MINSIZE 4
> #ANTIALIAS TRUE
> COLOR 0 0 0
> OUTLINECOLOR 255 255 128
> BUFFER 2
>END
>  END
>   END # Maple Grove Parcels

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Jay Kapalczynski
iginal Message-

From: mapserver-users-boun...@lists.osgeo.org

[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay

Kapalczynski

Sent: Thursday, March 26, 2009 9:14 AM

To: 'mapserver-users@lists.osgeo.org'

Subject: [mapserver-users] Labeling



Is there any way to eliminate the decimal places here...I looked online but

was unable to find anything.



Thanks



The fields I am labeling are numeric...so I get this



3434.

123.



I am looking to drop all the extra decimal places...



Or maybe set it to keep two



3434.00



THANKS







LAYER # Maple Grove Parcels

NAME Parcel_Labels

DATA './parcels.shp'

STATUS DEFAULT

TYPE annotation

MAXSCALE 2000

MINSCALE 100

LABELITEM 'EMV_LAND'





LABELCACHE ON

 CLASS

   COLOR -1 -1 -1

   LABEL

POSITION UC

TYPE TRUETYPE

FONT vera_sans

MAXSIZE 7

SIZE 7

OFFSET 0 10

MINSIZE 4

#ANTIALIAS TRUE

COLOR 0 0 0

OUTLINECOLOR 255 255 128

BUFFER 2

   END

     END

  END # Maple Grove Parcels

-- next part --

An HTML attachment was scrubbed...

URL:

http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92

b/attachment-0001.html



--



___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users





End of mapserver-users Digest, Vol 14, Issue 80

***

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Mark Volz
In response to Jay's Labeling question:


I have multi line / field labels working:

In this example I am stringing together both the name and the parcel id as a
label, then splitting the label into two lines

CLASS
NAME 'Parcels'
TEXT ([TXLname] * [PARCEL_ID])  #label
LABEL
WRAP "*" #select character to wrap on
END #label
END #class

I tried using precision in the query results, I have not tried it as part of
a label

[item name="NORTHING" precision=2]








Mark Volz
GIS Specialist
Lyon County, MN
(507) 532-8218
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of
mapserver-users-requ...@lists.osgeo.org
Sent: Thursday, March 26, 2009 11:02 AM
To: mapserver-users@lists.osgeo.org
Subject: mapserver-users Digest, Vol 14, Issue 80

Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. RE: Labeling (Jay Kapalczynski)


--

Message: 1
Date: Thu, 26 Mar 2009 10:57:39 -0500
From: Jay Kapalczynski 
Subject: RE: [mapserver-users] Labeling
To: "'Fawcett, David'" ,
"mapserver-users@lists.osgeo.org" 
Message-ID:



Content-Type: text/plain; charset="us-ascii"

Yea I can do that but then I have to build processes to do all the
converting...
I want to read this data live.

Anyone else have any ideas?

Thanks

One Last thought, don't know if I should enter a new topic...

I have three labels I want to label.  Right now I am using an Offset to push
one above, and one below (UC, CC, LC) with offsets.
And as such these are three separate layers in my app
I tried to combine all three into one map file but it only labels the first
one (I copied the original code in the original email and simply changed the
label field)(no matter what I do it just labels the first one it reads)

Can I combine these into one and still have them label on three different
rows

Value 1
Value 2
Value 3

Can I concatenate like this?

LABELITEM  'Value 1' & 'VALUE 2' & 'VALUE 3'

But how would I specify they are supposed to create 3 lines???

THANKS


From: Fawcett, David [mailto:david.fawc...@state.mn.us]
Sent: Thursday, March 26, 2009 9:38 AM
To: Jay Kapalczynski; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Labeling

It is always an option to create a string column and then populate it with
your numbers formatted the way that you want them to appear.  I am sure that
you realize this, but it is something that I have done in the past.

David.
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay
Kapalczynski
Sent: Thursday, March 26, 2009 9:14 AM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Labeling

Is there any way to eliminate the decimal places here...I looked online but
was unable to find anything.

Thanks

The fields I am labeling are numeric...so I get this

3434.
123.

I am looking to drop all the extra decimal places...

Or maybe set it to keep two

3434.00

THANKS



LAYER # Maple Grove Parcels
NAME Parcel_Labels
DATA './parcels.shp'
STATUS DEFAULT
TYPE annotation
MAXSCALE 2000
MINSCALE 100
LABELITEM 'EMV_LAND'


LABELCACHE ON
 CLASS
   COLOR -1 -1 -1
   LABEL
POSITION UC
TYPE TRUETYPE
FONT vera_sans
MAXSIZE 7
SIZE 7
OFFSET 0 10
MINSIZE 4
#ANTIALIAS TRUE
COLOR 0 0 0
OUTLINECOLOR 255 255 128
BUFFER 2
   END
 END
  END # Maple Grove Parcels
-- next part --
An HTML attachment was scrubbed...
URL:
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199

Re: [mapserver-users] ogr connection to postgis problems

2009-03-26 Thread Travis Kirstine
Even
I'm using GDAL 1.5.1, released 2008/03/14

This is strange, I can get the -sql to return result but as soon as I
attempt to convert the result to a shp I get a failure

[r...@server34 support]# ogrinfo PG:'dbname=fbs user=webserver
password=topsecre  t' -sql "select * from
canadian_municipalities WHERE name = 'OTTAWA'" | more
INFO: Open of `PG:dbname=fbs user=webserver password=topsecret'
  using driver `PostgreSQL' successful.

Layer name: sql_statement
Geometry: Unknown (any)
Feature Count: 1
Extent: (-75.818115, 45.319733) - (-75.590118, 45.468719)
Layer SRS WKT:
(unknown)
Geometry Column = the_geom
gid: Integer (0.0)
prov: String (0.0)
name: String (0.0)
name_1: String (0.0)
OGRFeature(sql_statement):0
  gid (Integer) = 390
  prov (String) = ON
  name (String) = OTTAWA
  name_1 (String) = OTTAWA-CARLETON REGIONAL MUNICIPALITY
  MULTIPOLYGON (((-75.747100987514116 45.357929043660768,-75.747139025748226 45.
357913967904082,-75.748404955984952 45.357349002525353,-75.749320978319517 45.35
6940963375777,-75.750800938009831 45.356312037549...

#


ogr2ogr ottawa.shp PG:'dbname=fbs user=webserver password=topsecret'
-sql "select * from canadian_municipalities WHERE name = 'OTTAWA'"
FAILURE:
Unable to open datasource `PG:dbname=fbs user=webserver
password=topsecret' with the following drivers.










2009/3/25 Even Rouault :
> Travis,
>
> this is really weird. I've reviewed a bit the source of the PG driver and the
> influence of the read-only mode vs update mode is very thin. The only
> behavioural differences are :
> 1) the result of TestCapabilities() method depend on it, but ogrinfo doesn't
> request layer TestCapabilities().
> 2) if the PG database has no valid tables (for OGR), its opening will fail in
> read-only mode, whereas it would succeed in update mode.
>
> So in your use case, provided that there's at least one table reported by
> ogrinfo in update mode, I don't understand why it fails. What's the version
> of GDAL/OGR you're using ?
>
> Le Wednesday 25 March 2009 19:51:39 Travis Kirstine, vous avez écrit :
>> 2009/3/25 Stephen Woodbridge :
>> > Jeff McKenna wrote:
>> >> Travis Kirstine wrote:
>> >>> I am trying to test a connection to a postgis db  using ogrinfo and am
>> >>> having difficulties.  I am running the command on the same server that
>> >>> hosts the postgis db.  I checked the pg_hba.config file to see if it
>> >>> allows local connections and everything looks OK but I still get
>> >>> "Failure" when connecting with ogr.
>> >>>
>> >>> Am I missing something?
>> >>>
>> >>>
>> >>> command
>> >>> ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle'
>> >>
>> >> My thoughts:
>> >>
>> >> - since you are on the same server, use host=127.0.0.1
>> >> - include the port parameter (usually port=5432)
>> >
>> > Have you try from the command line:
>> >
>> > psql -h server34 -U bob earth
>> > psql -h localhost -U bob earth
>> > psql -U bob earth
>> >
>> > Should prompt you for the password.
>> >
>> > Only the last on will use the local socket or named pipe. If the last one
>> > works the try:
>> >
>> > ogrinfo -ro PG:'host= dbname=earth user=bob password=suruncle'
>> > ogrinfo -ro PG:'dbname=earth user=bob password=suruncle'
>> >
>> > and see if either of these work.
>>
>> I got the query / connection to work, it seems that the -ro flag was
>> causing the problem
>> which is strange.
>>
>> this works
>> ogrinfo -sql 'SELECT * FROM counties' PG:'host= dbname=earth user=bob
>> password=suruncle'
>>
>> this dosen't
>> ogrinfo -ro -sql 'SELECT * FROM counties' PG:'host= dbname=earth
>> user=bob password=suruncle'
>>
>> I'm not sure what the problem is as the user bob has su privileges
>>
>>
>>                                List of roles
>>  Role name | Superuser | Create role | Create DB | Connections | Member of
>> ---+---+-+---+-+---
>>  postgres  | yes       | yes         | yes       | no limit    |
>>  bob          | yes       | no          | yes       | no limit    |
>
>
>



-- 
Travis K.

Toronto, Canada

"She knows there's no success like failure
and that failure's no success at all."
-Bob Dylan-

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ogr connection to postgis problems

2009-03-26 Thread Travis Kirstine
Even
I'm using GDAL 1.5.1, released 2008/03/14

This is strange, I can get the -sql to return result but as soon as I
attempt to convert the result to a shp I get a failure

[r...@server34 support]# ogrinfo PG:'dbname=fbs user=webserver
password=topsecre  t' -sql "select * from
canadian_municipalities WHERE name = 'OTTAWA'" | more
INFO: Open of `PG:dbname=fbs user=webserver password=topsecret'
  using driver `PostgreSQL' successful.

Layer name: sql_statement
Geometry: Unknown (any)
Feature Count: 1
Extent: (-75.818115, 45.319733) - (-75.590118, 45.468719)
Layer SRS WKT:
(unknown)
Geometry Column = the_geom
gid: Integer (0.0)
prov: String (0.0)
name: String (0.0)
name_1: String (0.0)
OGRFeature(sql_statement):0
  gid (Integer) = 390
  prov (String) = ON
  name (String) = OTTAWA
  name_1 (String) = OTTAWA-CARLETON REGIONAL MUNICIPALITY
  MULTIPOLYGON (((-75.747100987514116 45.357929043660768,-75.747139025748226 45.
357913967904082,-75.748404955984952 45.357349002525353,-75.749320978319517 45.35
6940963375777,-75.750800938009831 45.356312037549...

#


ogr2ogr ottawa.shp PG:'dbname=fbs user=webserver password=topsecret'
-sql "select * from canadian_municipalities WHERE name = 'OTTAWA'"
FAILURE:
Unable to open datasource `PG:dbname=fbs user=webserver
password=topsecret' with the following drivers.










2009/3/25 Even Rouault :
> Travis,
>
> this is really weird. I've reviewed a bit the source of the PG driver and the
> influence of the read-only mode vs update mode is very thin. The only
> behavioural differences are :
> 1) the result of TestCapabilities() method depend on it, but ogrinfo doesn't
> request layer TestCapabilities().
> 2) if the PG database has no valid tables (for OGR), its opening will fail in
> read-only mode, whereas it would succeed in update mode.
>
> So in your use case, provided that there's at least one table reported by
> ogrinfo in update mode, I don't understand why it fails. What's the version
> of GDAL/OGR you're using ?
>
> Le Wednesday 25 March 2009 19:51:39 Travis Kirstine, vous avez écrit :
>> 2009/3/25 Stephen Woodbridge :
>> > Jeff McKenna wrote:
>> >> Travis Kirstine wrote:
>> >>> I am trying to test a connection to a postgis db  using ogrinfo and am
>> >>> having difficulties.  I am running the command on the same server that
>> >>> hosts the postgis db.  I checked the pg_hba.config file to see if it
>> >>> allows local connections and everything looks OK but I still get
>> >>> "Failure" when connecting with ogr.
>> >>>
>> >>> Am I missing something?
>> >>>
>> >>>
>> >>> command
>> >>> ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle'
>> >>
>> >> My thoughts:
>> >>
>> >> - since you are on the same server, use host=127.0.0.1
>> >> - include the port parameter (usually port=5432)
>> >
>> > Have you try from the command line:
>> >
>> > psql -h server34 -U bob earth
>> > psql -h localhost -U bob earth
>> > psql -U bob earth
>> >
>> > Should prompt you for the password.
>> >
>> > Only the last on will use the local socket or named pipe. If the last one
>> > works the try:
>> >
>> > ogrinfo -ro PG:'host= dbname=earth user=bob password=suruncle'
>> > ogrinfo -ro PG:'dbname=earth user=bob password=suruncle'
>> >
>> > and see if either of these work.
>>
>> I got the query / connection to work, it seems that the -ro flag was
>> causing the problem
>> which is strange.
>>
>> this works
>> ogrinfo -sql 'SELECT * FROM counties' PG:'host= dbname=earth user=bob
>> password=suruncle'
>>
>> this dosen't
>> ogrinfo -ro -sql 'SELECT * FROM counties' PG:'host= dbname=earth
>> user=bob password=suruncle'
>>
>> I'm not sure what the problem is as the user bob has su privileges
>>
>>
>>                                List of roles
>>  Role name | Superuser | Create role | Create DB | Connections | Member of
>> ---+---+-+---+-+---
>>  postgres  | yes       | yes         | yes       | no limit    |
>>  bob          | yes       | no          | yes       | no limit    |
>
>
>



-- 
Travis K.

Toronto, Canada

"She knows there's no success like failure
and that failure's no success at all."
-Bob Dylan-

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Truncating access.log file

2009-03-26 Thread Steve Lime
That's a general webserver question more than something specific to MapServer. 
If you Google
"rotate apache logs" you'll find tons of information.

Steve

>>> On 3/24/2009 at 10:32 AM, in message
, Robert Hicks
 wrote:
> Hello all, is there a way to truncate the access.log for Mapserver once it
> gets to a certain size? My log file get extremely large and I know webapps
> that use log4j have a properties file you can just set the limit in there.
> Is there anything similar for Mapserver?
> Thanks!

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Labeling

2009-03-26 Thread Steve Lime
The decimal truncation simply can't be done with a shapefile at the moment. 
There's a ticket in place
to add this functionality but it will be a 6.0 improvement. Wish I have better 
news.

One the other question you can use the class TEXT property along with a wrap 
character to achieve
the multiline labels. E.g.:

CLASS
  ...
  TEXT "[col1]|[col2]|[col3]"
  LABEL
...
WRAP "|"
  END
END

and that should get you a multi-line label based on 3 attributes.

Steve

>>> On 3/26/2009 at 10:57 AM, in message
, Jay
Kapalczynski  wrote:
> Yea I can do that but then I have to build processes to do all the 
> converting...
> I want to read this data live.
> 
> Anyone else have any ideas?
> 
> Thanks
> 
> One Last thought, don't know if I should enter a new topic...
> 
> I have three labels I want to label.  Right now I am using an Offset to push 
> one above, and one below (UC, CC, LC) with offsets.
> And as such these are three separate layers in my app
> I tried to combine all three into one map file but it only labels the first 
> one (I copied the original code in the original email and simply changed the 
> label field)(no matter what I do it just labels the first one it reads)
> 
> Can I combine these into one and still have them label on three different 
> rows
> 
> Value 1
> Value 2
> Value 3
> 
> Can I concatenate like this?
> 
> LABELITEM  'Value 1' & 'VALUE 2' & 'VALUE 3'
> 
> But how would I specify they are supposed to create 3 lines???
> 
> THANKS
> 
> 
> From: Fawcett, David [mailto:david.fawc...@state.mn.us] 
> Sent: Thursday, March 26, 2009 9:38 AM
> To: Jay Kapalczynski; mapserver-users@lists.osgeo.org 
> Subject: RE: [mapserver-users] Labeling
> 
> It is always an option to create a string column and then populate it with 
> your numbers formatted the way that you want them to appear.  I am sure that 
> you realize this, but it is something that I have done in the past.
> 
> David.
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay 
> Kapalczynski
> Sent: Thursday, March 26, 2009 9:14 AM
> To: 'mapserver-users@lists.osgeo.org'
> Subject: [mapserver-users] Labeling
> 
> Is there any way to eliminate the decimal places here...I looked online but 
> was unable to find anything.
> 
> Thanks
> 
> The fields I am labeling are numeric...so I get this
> 
> 3434.
> 123.
> 
> I am looking to drop all the extra decimal places...
> 
> Or maybe set it to keep two
> 
> 3434.00
> 
> THANKS
> 
> 
> 
> LAYER # Maple Grove Parcels
> NAME Parcel_Labels
> DATA './parcels.shp'
> STATUS DEFAULT
> TYPE annotation
> MAXSCALE 2000
> MINSCALE 100
> LABELITEM 'EMV_LAND'
> 
> 
> LABELCACHE ON
>  CLASS
>COLOR -1 -1 -1
>LABEL
> POSITION UC
> TYPE TRUETYPE
> FONT vera_sans
> MAXSIZE 7
> SIZE 7
> OFFSET 0 10
> MINSIZE 4
> #ANTIALIAS TRUE
> COLOR 0 0 0
> OUTLINECOLOR 255 255 128
> BUFFER 2
>END
>  END
>   END # Maple Grove Parcels

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Labeling

2009-03-26 Thread Jay Kapalczynski
Yea I can do that but then I have to build processes to do all the converting...
I want to read this data live.

Anyone else have any ideas?

Thanks

One Last thought, don't know if I should enter a new topic...

I have three labels I want to label.  Right now I am using an Offset to push 
one above, and one below (UC, CC, LC) with offsets.
And as such these are three separate layers in my app
I tried to combine all three into one map file but it only labels the first one 
(I copied the original code in the original email and simply changed the label 
field)(no matter what I do it just labels the first one it reads)

Can I combine these into one and still have them label on three different rows

Value 1
Value 2
Value 3

Can I concatenate like this?

LABELITEM  'Value 1' & 'VALUE 2' & 'VALUE 3'

But how would I specify they are supposed to create 3 lines???

THANKS


From: Fawcett, David [mailto:david.fawc...@state.mn.us]
Sent: Thursday, March 26, 2009 9:38 AM
To: Jay Kapalczynski; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Labeling

It is always an option to create a string column and then populate it with your 
numbers formatted the way that you want them to appear.  I am sure that you 
realize this, but it is something that I have done in the past.

David.
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Thursday, March 26, 2009 9:14 AM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Labeling

Is there any way to eliminate the decimal places here...I looked online but was 
unable to find anything.

Thanks

The fields I am labeling are numeric...so I get this

3434.
123.

I am looking to drop all the extra decimal places...

Or maybe set it to keep two

3434.00

THANKS



LAYER # Maple Grove Parcels
NAME Parcel_Labels
DATA './parcels.shp'
STATUS DEFAULT
TYPE annotation
MAXSCALE 2000
MINSCALE 100
LABELITEM 'EMV_LAND'


LABELCACHE ON
 CLASS
   COLOR -1 -1 -1
   LABEL
POSITION UC
TYPE TRUETYPE
FONT vera_sans
MAXSIZE 7
SIZE 7
OFFSET 0 10
MINSIZE 4
#ANTIALIAS TRUE
COLOR 0 0 0
OUTLINECOLOR 255 255 128
BUFFER 2
   END
 END
  END # Maple Grove Parcels
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Include directive and mapscript

2009-03-26 Thread Paul Moen
One was copied and pasted and one was incorrectly typed by me in the  
email.  The fedlands.map Name should have been typed "All Public Land  
Management Agencies".  The only difference is the mysterious  
disappearance of the GROUP directive.  I will post more when I have a  
chance to dig into this deeper.  For now, I just put the layer  
directly in the main map file, instead of using the INCLUDE.


Thanks,

Paul

On 3/24/09 11:08 AM, "Yewondwossen Assefa"   
wrote:



Not sure why would that happen.
Just as a note, the 2 layers you sent in this e-mail have a different
values for the NAME parameter. Is it possible that you do not include
the correct layer?

Paul Moen wrote:
> Here is the fedlands.map that I am including.
>
> LAYER
>   PROJECTION
> "init=epsg:4326"
>   END
>   GROUP "Political Boundaries"
I typed wrong, the following line should be: NAME "All Public Land  
Management Agencies"

>   NAME "Public Land Management Agencies"



>   TYPE RASTER
>   STATUS ON
>   CONNECTION
> "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false 
"

>
>   CONNECTIONTYPE WMS
>   METADATA
>   "wms_srs" "EPSG:4326"
>   "wms_name" "SMA_ALL"
>   "wms_server_version" "1.1.1"
>   "wms_format" "image/gif"
>   END
> END
>
> This is the section of the mapfile that the include is located.
>
>
> INCLUDE 'fedlands.map'
>
>
> The output of the map->save function gives the layer below, which no
> longer has the GROUP.  Somewhere along the line the GROUP  
directive is

> disappearing from my layer when it is included.
>
> LAYER
> CONNECTION
> "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false 
"

>
> CONNECTIONTYPE WMS
> METADATA
>   "wms_srs""EPSG:4326"
>   "wms_name""SMA_ALL"
>   "wms_format""image/gif"
>   "wms_server_version""1.1.1"
> END
> NAME "All Public Land Management Agencies"
> PROJECTION
>   "init=epsg:4326"
> END
> STATUS ON
> TYPE RASTER
> UNITS METERS
>   END
>
>
> Any Ideas?
>
> Paul
>
>
>


--

Assefa Yewondwossen
Software Analyst

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Labeling

2009-03-26 Thread Fawcett, David
It is always an option to create a string column and then populate it
with your numbers formatted the way that you want them to appear.  I am
sure that you realize this, but it is something that I have done in the
past.
 
David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay
Kapalczynski
Sent: Thursday, March 26, 2009 9:14 AM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Labeling



 

Is there any way to eliminate the decimal places here...I looked
online but was unable to find anything.


Thanks

 

The fields I am labeling are numeric...so I get this

 

3434.

123.

 

I am looking to drop all the extra decimal places...

 

Or maybe set it to keep two

 

3434.00

 

THANKS

 

 

 

LAYER # Maple Grove Parcels

NAME Parcel_Labels

DATA './parcels.shp'

STATUS DEFAULT

TYPE annotation

MAXSCALE 2000

MINSCALE 100

LABELITEM 'EMV_LAND'





LABELCACHE ON

 CLASS

   COLOR -1 -1 -1

   LABEL

POSITION UC

TYPE TRUETYPE

FONT vera_sans

MAXSIZE 7

SIZE 7

OFFSET 0 10

MINSIZE 4

#ANTIALIAS TRUE

COLOR 0 0 0

OUTLINECOLOR 255 255 128

BUFFER 2

   END

 END

  END # Maple Grove Parcels

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] search and zoom

2009-03-26 Thread Fawcett, David
I would start with a look at the examples at OpenLayers
http://www.openlayers.org/
 
or Mapfish  http://trac.mapfish.org/trac/mapfish/wiki
 
David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of McCown,
George
Sent: Thursday, March 26, 2009 8:44 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] search and zoom



Hello Everyone!

 

I have my mapserver application working fine.  Now I'd like to
implement a search

and zoom-to tool.  Can someone point me some documentation that
shows you how to do this?

 

Thanks!

 

George McCown
GIS Analyst 1

george.mccown&jjg.com

678.333.0228 (Direct)
678-333-0826 (Fax)
Jordan, Jones & Goulding 
6801 Governors Lake Parkway, Building 200
Norcross, Ga 30071 

www.jjg.com  

 

This email and any files transmitted with it are intended solely
for the use of the individual and/or entity to whom it is addressed.
Unless noted otherwise above, any distribution or copying of this email
is strictly prohibited. This email IS NOT a binding agreement on behalf
of JJG. If you have received this message in error, please immediately
notify the sender and delete this message from your computer. 
Jordan, Jones and Goulding, Inc., 6801 Governors Lake Pkwy,
Norcross, Ga. 30071 www.jjg.com 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Labeling

2009-03-26 Thread Jay Kapalczynski

Is there any way to eliminate the decimal places here...I looked online but was 
unable to find anything.

Thanks

The fields I am labeling are numeric...so I get this

3434.
123.

I am looking to drop all the extra decimal places...

Or maybe set it to keep two

3434.00

THANKS



LAYER # Maple Grove Parcels
NAME Parcel_Labels
DATA './parcels.shp'
STATUS DEFAULT
TYPE annotation
MAXSCALE 2000
MINSCALE 100
LABELITEM 'EMV_LAND'


LABELCACHE ON
 CLASS
   COLOR -1 -1 -1
   LABEL
POSITION UC
TYPE TRUETYPE
FONT vera_sans
MAXSIZE 7
SIZE 7
OFFSET 0 10
MINSIZE 4
#ANTIALIAS TRUE
COLOR 0 0 0
OUTLINECOLOR 255 255 128
BUFFER 2
   END
 END
  END # Maple Grove Parcels
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] search and zoom

2009-03-26 Thread McCown, George
Hello Everyone!

 

I have my mapserver application working fine.  Now I'd like to implement
a search

and zoom-to tool.  Can someone point me some documentation that shows
you how to do this?

 

Thanks!

 

George McCown
GIS Analyst 1

george.mccown&jjg.com

678.333.0228 (Direct)
678-333-0826 (Fax)
Jordan, Jones & Goulding 
6801 Governors Lake Parkway, Building 200
Norcross, Ga 30071 

www.jjg.com  

 


This email and any files transmitted with it are intended solely for the use of 
the individual and/or entity to whom it is addressed. Unless noted otherwise 
above, any distribution or copying of this email is strictly prohibited. This 
email IS NOT a binding agreement on behalf of JJG.  If you have received this 
message in error, please immediately notify the sender and delete this message 
from your computer.
Jordan, Jones and Goulding, Inc., 6801 Governors Lake Pkwy, Norcross, Ga. 30071 
  www.jjg.com

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WMS/WFS layer in GMap

2009-03-26 Thread Jeff McKenna

rohan phatak wrote:

Hello friends,
I am using GMap application of map server .I have map file and i want to 
publish on the web so that i can access using pda/mobile  so my question 
is how to add wms /wfs client in mapfile and how to publish map file on web?

thanks in advance : )



Also, besides using the documents that Alexandre referred to, the GMap 
package available for download for MS4W comes with mapfiles that are 
already configured for WMS and WFS...so even if you are using Unix you 
can download that package and take a look at the mapfiles.


-jeff

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WMS/WFS layer in GMap

2009-03-26 Thread Alexandre Dube

Hi,

For client :
http://mapserver.org/ogc/wms_client.html
http://mapserver.org/ogc/wfs_client.html

For server :
http://mapserver.org/ogc/wms_server.html
http://mapserver.org/ogc/wfs_server.html

Regards,

Alexandre

rohan phatak wrote:

Hello friends,
I am using GMap application of map server .I have map file and i want 
to publish on the web so that i can access using pda/mobile  so my 
question is how to add wms /wfs client in mapfile and how to publish 
map file on web?

thanks in advance : )


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
  



--
Alexandre Dubé
Mapgears
www.mapgears.com

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] problem using php header() in fgs

2009-03-26 Thread syed mohseen
hi all,
   i am using fgs mapserver5.0.2 i just want to load postdata when i hit the
back button of my browser.
when i add header(location="http://localhost:8080/search.php) i shows the
warning, the uotput has already been sent.




any suggestions regarding this will be appreciated
thanks in advance



syedmohseen
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WMS/WFS layer in GMap

2009-03-26 Thread rohan phatak
Hello friends,
I am using GMap application of map server .I have map file and i want to
publish on the web so that i can access using pda/mobile  so my question is
how to add wms /wfs client in mapfile and how to publish map file on web?
thanks in advance : )
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users