[MapServer-users] PHP mapscript-ng problem using map->setLayersDrawingOrder()

2024-09-21 Thread Worth Lutz via MapServer-users
se of this note in the documentation: Note Unless the proper typemap is implemented for the module’s language users will not be able to pass arrays or lists to this method and it will be unusable. Is there anything I can do to use setLayersDrawingOrder in my code? Than

Re: [MapServer-users] creating a layer with PHP MapScript - shapes do not use classindex

2023-10-16 Thread Worth Lutz via MapServer-users
will happen when we build the next server with an OS version jump. Thanks for your suggestions. *Worth Lutz* On 10/16/23 10:29, Seth G wrote: Hi, You could probably achieve this with the new SWIG MapScript. Alternatively how about creating an individual LAYER for each set of features w

Re: [MapServer-users] creating a layer with PHP MapScript - shapes do not use classindex

2023-10-16 Thread Worth Lutz via MapServer-users
assed down from an OpenLayers client app. I had thought of setting a single class and putting the different colors, etc, in as attribute values in the shapeObj but cannot find a way to write them to the object. I'll try any suggestions given. Thanks, *Worth Lutz* On 10/16/23 03:59, Se

[MapServer-users] creating a layer with PHP MapScript - shapes do not use classindex

2023-10-15 Thread Worth Lutz via MapServer-users
exist in the layerObj and that the classindex in the shapeObj points to the proper class. Does anyone have any ideas why the drawing code is not using the classindex to draw these shapes in different colors? What am I doing wrong? -- *Worth Lutz* ___ Map

Re: [mapserver-users] cgi-bin/mapserv double free error on RHEL 8.2

2021-04-20 Thread Worth Lutz
mapscript and  new swig php mapscript mutually exclusive?  In other words, do we build MapServer with one or the other?  That is my guess. Thanks, *Worth Lutz* On 4/16/2021 6:37 PM, Even Rouault wrote: Not sure.  I would also take a look inside your /cgi-bin/ dir and execute: ldd mapserv

[mapserver-users] cgi-bin/mapserv double free error on RHEL 8.2

2021-04-16 Thread Worth Lutz
on how to track this problem down? -- *Worth Lutz* ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Release date of Mapserver 7.2

2018-03-09 Thread Worth Lutz
Any movement on this? Thanks, *Worth Lutz* On 2/13/2018 12:38 PM, Lime, Steve D (MNIT) wrote: I’d like to shoot for an alpha by March 1st. I think we're pretty much waiting on my merge of the vector tiles code. My pull request is in good shape, just trying to track down a few regre

Re: [mapserver-users] define a layers size display in mapfile (mapscript) how???

2016-05-20 Thread Worth Lutz
Hi Jeff, That is a good idea. I'll try to add it in there. *Worth Lutz* On 5/20/2016 9:51 AM, Jeff McKenna wrote: Hi Worth, how about adding your code onto a new wiki page, so it isn't lost and forgotten? Maybe add a page in the "Tricks, Tips, and HowTos" section at

Re: [mapserver-users] define a layers size display in mapfile (mapscript) how???

2016-05-20 Thread Worth Lutz
$success = $map->setCenter($center_mapunits); if ($success == MS_FAILURE) echo "\n FAILURE OF setCenter"; // ** turn on desired layers here ** $img = $map->draw(); $outfile = $img->saveWebimage(); * * *Worth Lutz* On 5/20/2016 3:05 AM, ankur chitrans

Re: [mapserver-users] mapserver(ms4w) map script mode

2016-05-19 Thread Worth Lutz
units); if ($success == MS_FAILURE) echo "\n FAILURE OF setCenter"; // ** turn on desired layers here ** $img = $map->draw(); $outfile = $img->saveWebimage(); *Worth Lutz* On 05/18/2016 07:10 AM, ankur chitranshi wrote: hello all, can any body

Re: [mapserver-users] PHP MapScript - Remove Layer labelitem/classitem

2015-09-01 Thread Worth Lutz
Have you tried unset($layer->labelitem); *Worth Lutz* On 9/1/2015 6:08 AM, Geo-6 wrote: Hi everyone, Probably a stupid question but I can't figure it out : I open a Layer through " $map->getLayer() " and I want to remove " labelitem " and " cla

Re: [mapserver-users] postgres layer not visible

2015-01-19 Thread Worth Lutz
Your PRIMARY KEY is "gid" not ID. try: /DATA 'the_geom FROM "public"."Fiumi_riproiettato" USING UNIQUE gid USING SRID=5223'/ *Worth Lutz* -- On 01/19/2015 04:26 AM, Maiorano Pasquale wrote: Dear Brent Fraser and everybody, The “

Re: [mapserver-users] postgres layer not visible

2015-01-16 Thread Worth Lutz
M "public"."Fiumi_riproiettato" USING UNIQUE ID USING SRID=5223' // I've marked the changes in red. Again just guesses to try. Let us know what works. Good Luck! *Worth Lutz* -- On 01/16/2015 06:30 AM, Maiorano Pasquale wrote: /DATA &

Re: [mapserver-users] An interesting SQL linestring building problem from postgres.

2014-12-02 Thread Worth Lutz
articles/308281/How-to-Use-ROW-NUMBER-to-Enumerate-and-Partition-R Note the final SQL statement which shows multiple items inside the "OVER" clause. I hope this helps point you in the right direction. If I can find a second, I'll look at your problem a little harder. *Worth Lutz* -

Re: [mapserver-users] Calculation of scale in mapserver

2014-10-27 Thread Worth Lutz
,2517439.111,835847.7778&WIDTH=1517&HEIGHT=827 *Worth Lutz* -- On 10/27/2014 06:23 AM, Malm Paul wrote: Hi, I wounder how MapServer can know the current scale I’m using in my client, it must be calculated from the URL BBOX. But how does WMS know the physica

Re: [mapserver-users] Can't find mapserv.exe

2014-10-14 Thread Worth Lutz
ubuntu is linux ... no ".exe" mapserv should already be in /usr/lib/cgi-bin/ and /usr/bin/ No need to move it. try locate mapserv to find it. *Worth Lutz* -- On 10/14/2014 03:31 PM, Bill Hudspeth wrote: Hello, I installed mapserver 6.4.1 in Ubuntu 14.0.1 usin

Re: [mapserver-users] WMS Client changes slightly BBOX

2014-07-24 Thread Worth Lutz
then scale to get good results. I hope this helps. *Worth Lutz* -- On 07/24/2014 06:49 AM, Peter Hopfgartner wrote: I'm generating dynamically Map Object, with with a certain extent, in the concrete example 629396.05065523,4984079.9894638,655192.92565523,5019084.3644638 In

Re: [mapserver-users] mapserver wrong scale computation

2014-07-09 Thread Worth Lutz
map->extent); I get good pdf maps which print accurately to scale using this method. *Worth Lutz* -- On 07/09/2014 10:55 AM, Mario Jurcevic wrote: Hi, I am trying to create an image with same size as the map extent, only by a scale factor of 500. The mapserver scale compu

Re: [mapserver-users] Combine Layers

2014-05-23 Thread Worth Lutz
Yes a mapfile can have multiple layers. They are drawn in the order given in the mapfile. The first would then be the base layer. I hope this points you in the right direction. Worth Lutz _ From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun

Re: [mapserver-users] FW: problem with legend images

2013-11-20 Thread Worth Lutz
a small number. I'll play with this also. Worth -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Wednesday, November 20, 2013 5:16 AM To: Worth Lutz Cc: MapserverList OSGEO Subject: Re: [mapserver-users] FW: problem with legend images Worth, this is happe

[mapserver-users] FW: problem with legend images

2013-11-18 Thread Worth Lutz
Hi all, I am having a problem generating my legend. I have roads which look gook on my map but the legend images generated are not what I expected. Attached is a picture of a portion of my map and the legend. Each piece of the legend is retrieved with a "getLegendGraphic" call. Has any one else

Re: [mapserver-users] preparing orthos for Mapserver?

2013-10-13 Thread Worth Lutz
is more nice-to-know stuff from the stone age. What to remember is that tiles and overviews are essential for GDAL and Mapserver. -Jukka Rahkonen- Stephen Woodbridge wrote: > On 10/4/2013 3:45 PM, Worth Lutz wrote: >> I have a question on preparing a

Re: [mapserver-users] preparing orthos for Mapserver?

2013-10-06 Thread Worth Lutz
er. -Jukka Rahkonen- Stephen Woodbridge wrote: > On 10/4/2013 3:45 PM, Worth Lutz wrote: >> I have a question on preparing a set of orthophoto tiff files for use >> with MapServer. >> >> The orthophotos are 10,000 x 10,000 pixels with 6 in. resolution. >&g

[mapserver-users] preparing orthos for Mapserver?

2013-10-04 Thread Worth Lutz
tiles with gdal to internally tile each one and add internal overlays. I'm thinking that the overlays would be more useful that the internal tiling based upon the size of the current tiles. Any suggestions would be appreciated.

Re: [mapserver-users] Mapserver 6.2.1 upgrade breaks Mapcache

2013-04-26 Thread Worth Lutz
Message- From: aboudrea...@mapgears.com [mailto:aboudrea...@mapgears.com] Sent: Friday, April 26, 2013 8:59 AM To: Worth Lutz Cc: 'thomas bonfort'; 'MapserverList OSGEO' Subject: Re: [mapserver-users] Mapserver 6.2.1 upgrade breaks Mapcache Hi, I pushed the proper update in Ubun

Re: [mapserver-users] Mapserver 6.2.1 upgrade breaks Mapcache

2013-04-26 Thread Worth Lutz
From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Friday, April 26, 2013 8:20 AM To: Worth Lutz Cc: MapserverList OSGEO Subject: Re: [mapserver-users] Mapserver 6.2.1 upgrade breaks Mapcache Native MapServer support in mapcache is considered experimental and shouldn't really be

[mapserver-users] Mapserver 6.2.1 upgrade breaks Mapcache

2013-04-26 Thread Worth Lutz
I upgraded my Ubuntu (12.04) system today and MapServer upgraded to 6.2.1. sudo apt-get upgrade upgraded packages: cgi-mapserver mapserver-bin php5-mapscript I tried to restart apache2 to update my MapCache config and it failed with: Cannot load /usr/lib/apache2/modules/mod_mapcache.so into ser

Re: [mapserver-users] Mapcache GetLegendGraphic request...

2013-04-24 Thread Worth Lutz
Did you figure this out? I need to know how to do this also. Worth _ From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Paul james Sent: Monday, March 18, 2013 3:32 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-u

Re: [mapserver-users] MapCache - Best Practice for tag

2013-04-08 Thread Worth Lutz
Hi, I never got an answer on this. Any knowledgeable users out there who have looked into this? Worth _ From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Worth Lutz Sent: Sunday, March 24, 2013 4:34 PM To: mapserver

Re: [mapserver-users] adding gifs to index.html file?

2013-04-04 Thread Worth Lutz
See changes marked below in red: I think that should do it. Worth _ From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Thursday, April 04, 2013 8:18 PM To: Worth Lutz; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file

Re: [mapserver-users] adding gifs to index.html file?

2013-04-04 Thread Worth Lutz
Post the whole index.html here and give me what you are putting into your browser to show the index.html Worth _ From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Thursday, April 04, 2013 8:02 PM To: Worth Lutz; mapserver-users@lists.osgeo.org Subject: RE: [mapserver

Re: [mapserver-users] adding gifs to index.html file?

2013-04-04 Thread Worth Lutz
Try: Or if "wwwroot" really is the web root: Worth Lutz _ From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Thursday, April 04, 2013 7:17 PM To: Rahkonen Jukka; mapserver-users@lists

[mapserver-users] MapCache - Best Practice for tag

2013-03-24 Thread Worth Lutz
n the late afternoon or evening to be refreshed after an overnight update if the value is set to 12 hrs or so. I'd like to here how others are setting up their caches and the reasons behind the settings. Thanks, Worth Lutz ___ mapserver-use

Re: [mapserver-users] query creation issues

2013-03-20 Thread Worth Lutz
Did you see this in Steve's email: > layer=mjrroads&shapeindex=[shpidx]&shpext=[shpext_esc]&mapext=shape&ma > p=[map]">--> > > [shpidx] > [name] > [type] > Attribute binding is case sensitive. For shapefiles it should be UPPERCASE and for postgis it should be lowercase.

Re: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW?

2013-03-20 Thread Worth Lutz
use a "gutter/buffer" around the metatile and that eliminates the clipping on the edges of the metatile? I think I'm putting the pieces together now! Worth -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Wednesday, March 20, 2013 12:59

Re: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW?

2013-03-20 Thread Worth Lutz
g tiles and multiple overlay layers? I'm still experimenting but still confused. Any help would be appreciated. Thanks, Worth _ From: Worth Lutz [mailto:w...@mindspring.com] Sent: Tuesday, March 19, 2013 3:39 PM To: 'Donald Kerr'; 'mapserver-users@lists.

Re: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW?

2013-03-19 Thread Worth Lutz
onald.k...@dkerr.co.uk] Sent: Tuesday, March 19, 2013 3:29 PM To: 'Worth Lutz'; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? Worth, I have replaced "TYPE ANNOTATION" with "TYPE POINT"

[mapserver-users] LABELS - changing from single map to tiles and overlays - HOW?

2013-03-19 Thread Worth Lutz
Hi all, I'm changing my usage of mapserver from a single map image to using OpenLayers and having MapServer work as a WMS server. My problem is labels. There seem to be too many variables (in MapServer and OpenLayers) and I cannot figure out which to set to keep from having partial labels,

Re: [mapserver-users] label issues...

2013-03-19 Thread Worth Lutz
You seem to be missing: LABELITEM This tells what data to use for the label. See below for location. Also see other responses about color. Worth _ From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Monday, March 18, 2013 5:31 PM To: w...@mindspring.co

Re: [mapserver-users] label issues...

2013-03-18 Thread Worth Lutz
No the label block goes into your original class block. LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 100 TRANSPARENCY 100 PROJECTION 'proj=longlat

Re: [mapserver-users] postgis layers don't show up

2013-03-14 Thread Worth Lutz
Here is Paul Ramsey's solution for that type of problem: http://blog.cleverelephant.ca/2010/09/postgis-back-up-restore.html Worth Lutz -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Pedro Costa

Re: [mapserver-users] Problem with Transparency and IMAGECOLOR

2012-12-17 Thread Worth Lutz
For me it works using: IMAGETYPE png With no “OUTPUTFORMAT” in my mapfile. I’m using the predefined OUTPUTFORMAT of “png”. There are several predefined OUTPUTFORMATs described at: http://mapserver.org/mapfile/outputformat.html . I hope this helps. Worth Lutz

Re: [mapserver-users] [mapserver-dev] MapServer 6.2 released

2012-11-14 Thread Worth Lutz
http://www.gisday.com/ And tomorrow will be PostGIS day. :-) Worth _ From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Wednesday, November 14, 2012 10:44 AM To: Lime, Steve D (DNR) Cc: MapserverList

Re: [mapserver-users] mapserver and php

2012-11-04 Thread Worth Lutz
Hi Vince, If you keep the messages on the list it can help others. I don't mind you sending it to me directly if you are replying to a post of mine as I may see it sooner. I generally use the unstable repository as it gets updated faster (thus unstable). I run on the bleeding edge :-).

Re: [mapserver-users] mapserver and php

2012-10-29 Thread Worth Lutz
tober 28, 2012 11:44 AM To: Worth Lutz Subject: RE: [mapserver-users] mapserver and php Thank you for your advice. My resistance to using the ubuntugis ppa stems from my desire to install on my server ONLY mapserver and postgis, and other things that these two require, and nothing else that is

Re: [mapserver-users] mapcache: labels and symbols getting clippedat tile edges

2012-10-14 Thread Worth Lutz
After more searching and experimenting, I think I have this working. This is my first time working with wms and tiles. I have added more to my mapfile and something fixed my problem. I'm guessing PARTIALS FALSE; Thanks, Worth -Original Message- From: Worth Lutz [mai

Re: [mapserver-users] mapcache: labels and symbols getting clippedat tile edges

2012-10-12 Thread Worth Lutz
u can give me, Worth Lutz -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, May 02, 2012 1:15 PM To: thomas bonfort Cc: mapserver-users Subject: Re: [mapserver-users] mapcache:

RE: [mapserver-users] Invalid pdf file from WMS

2011-08-18 Thread Worth Lutz
a large set of PDF maps dynamically with PHP and and am finally figuring it out. Worth Lutz -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas bonfort Sent: Thursday, August 18, 2011 3:11 AM To: Rahkonen

RE: [mapserver-users] query results lost

2011-06-12 Thread Worth Lutz
This is probably related to the different ways results are accessed in PHP MapScript. This changed between version 5.4 and 5.6 and again between 5.6 and 6.0. See the two functions below. The first shows the differences between the versions. The second function is trying to get an object with nu

RE: [mapserver-users] Please help

2011-05-16 Thread Worth Lutz
Try changing: WEB TEMPLATE "template.html" IMAGEPATH "/var/www/judemaps/output/" IMAGEURL "/output/" END To: WEB TEMPLATE "template.html" IMAGEPATH "/var/www/judemaps/output/" IMAGEURL "/judemaps/output/" END _ From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-

RE: [mapserver-users] Reference Map must be a GIF????

2011-05-06 Thread Worth Lutz
I just looked again and I'm using .jpg and .png images but no .gif. :-( _ From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Worth Lutz Sent: Friday, May 06, 2011 2:19 PM To: mapserver-users@lists.osgeo.org Subject: [maps

[mapserver-users] Reference Map must be a GIF????

2011-05-06 Thread Worth Lutz
When did the restriction, "the Reference Map base image must be a .gif", start being enforced? I now see it in my old printed copy (version 5.2) of the documentation. I checked there to see if this was new to MapServer version 6 as I found it first in the online documentation. Obviously I had

RE: [Ubuntu] Re: [mapserver-users] MapServer 6.0.0-beta1 release -Please test!

2011-03-11 Thread Worth Lutz
Alan, Thanks for the ubuntugis repository. It took me a good bit of trying today but I got Mapserver 6.0 installed today by building from source. I'm not sure I've got it all right but I've got a working version for testing. I'd prefer to just load from the repository. Could you add

[mapserver-users] MapServer 6.0.0-beta1 release - TEST PROBLEMS!

2011-03-10 Thread Worth Lutz
I have loaded MapServer 6.0 from ubuntugis-testing. I finally stripped down a mapfile and got it working. I have upgraded and downgraded several times trying to find the errors in my mapfile. The repository works GREAT. Thanks for creating it!. I want to test the new Cairo/pdf output. I ha

[mapserver-users] vector pdf output

2010-08-03 Thread Worth Lutz
Does MapServer support vector PDF output?? Also I am experimenting on ver. 5.6.3 with pdf output and am getting some output but it does not look like the png output. I also have not yet figured out why I sometimes get nothing for some layers. Still experimenting. Can anyone point me to so

RE: [mapserver-users] How do I get a Legend with a variable COLOR in the CLASS

2010-07-27 Thread Worth Lutz
e.l...@state.mn.us] Sent: Monday, July 26, 2010 5:05 PM To: Worth Lutz; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] How do I get a Legend with a variable COLOR in the CLASS Hi Worth: At the moment, you can't get a legend in this case. The legend code isn't smart Enou

[mapserver-users] How do I get a Legend with a variable COLOR in the CLASS

2010-07-26 Thread Worth Lutz
I'm trying to set my colors from a postgres table instead of having many classes in my mapfile. Here is an example of what I think I should use to get a legend for this layer. CLASS NAME [name] STYLE COLOR [color] OUTLINECOLOR 0 0 0 WIDTH 1 END END Only the NAME line dies with

RE: [mapserver-users] How to use moveLayerUp

2010-07-13 Thread Worth Lutz
One thing that I have done is clone or copy a layer and add it to the map object. This puts the new layer at the end of the layer list thus it is the last one drawn. What I've been doing is using the new layer to show the selected items from that layer with a new class. For example, the original

RE: [mapserver-users] problem installing mapscript

2010-07-04 Thread Worth Lutz
plication will crash at some point. Thanks again, Worth -Original Message- From: daryl herzmann [mailto:akrh...@iastate.edu] Sent: Sunday, July 04, 2010 12:39 PM To: Worth Lutz Cc: 'MAPSERVER-USERS' Subject: Re: [mapserver-users] problem installing mapscript Hello Worth, Welcom

RE: [mapserver-users] problem installing mapscript

2010-07-04 Thread Worth Lutz
g my application and see if it crashes due to something missing. Thanks again for you help. Worth _ From: Cristiano Sumariva [mailto:sumar...@gmail.com] Sent: Saturday, July 03, 2010 12:55 PM To: Worth Lutz Subject: Re: [mapserver-users] problem installing mapscript If

[mapserver-users] problem installing mapscript

2010-07-03 Thread Worth Lutz
This is my first time trying to install mapserver without using a package. I have not found a RPM for mapserver 5.6.3 for RHEL5 I downloaded mapserver and did the configure and make. After installing all the missing libs I thought I had it done. After copying moving php_mapscript.so to the prope

RE: [mapserver-users] Compiling on CentOS 5

2010-06-07 Thread Worth Lutz
Thanks Peter, This information is helpful. Google got me close but not close enough. Worth -Original Message- From: Peter Hopfgartner [mailto:peter.hopfgart...@r3-gis.com] Sent: Monday, June 07, 2010 3:23 AM To: Worth Lutz Cc: 'Gerry Creager'; 'MAPSERVER-USERS' Sub

RE: [mapserver-users] Compiling on CentOS 5

2010-06-06 Thread Worth Lutz
Gerry, I would be interested in your findings. I am trying to install mapserver/mapscript on RHEL 5 but have not found current rpms for MapServer. I'm not much on linux but did get the FGS version working. I was wondering what your experience was and where you found the packages to get your s

RE: [mapserver-users] MapScript resultsGetShape confusion [solved!]

2010-06-03 Thread Worth Lutz
...@lists.osgeo.org] On Behalf Of Worth Lutz Sent: Wednesday, June 02, 2010 8:12 PM To: 'Christian Jauvin'; 'Daniel Morissette' Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] MapScript resultsGetShape confusion [solved!] This may be the problem I had when I tried to update

RE: [mapserver-users] MapScript resultsGetShape confusion [solved!]

2010-06-02 Thread Worth Lutz
This may be the problem I had when I tried to update to 5.6.3. from 5.6.1. I'm in the middle of a project and did not have time to figure out what was causing the problem. The only change was the change to the MapServer version so I quickly reverted back. I'm using PHP Mapscript. I'll see if I

RE: [mapserver-users] red hat packages?

2010-05-17 Thread Worth Lutz
Hopfgartner wrote: > On Fri, 2010-05-14 at 20:54 -0400, Worth Lutz wrote: >> Hi all, >> >> >> > Hi Worth > >> () >> >> I have found out the following about the system: >> >> >> >> RedHat release >> >

[mapserver-users] red hat packages?

2010-05-14 Thread Worth Lutz
t the following about the system: RedHat release cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.4 (Tikanga) RedHat kernel version and type uname -a Linux 2.6.18-164.9.1.el5 #1 SMP Wed Dec 9 03:27:37 EST 2009 x86_64 x86_64 x86_64 GNU/Linux Worth

RE: [mapserver-users] having trouble with label size

2010-04-21 Thread Worth Lutz
I believe that what you are looking for is DEFRESOLUTION in the mapfile at the MAP level. From what I remember seeing on this list is that you set RESOLUTION 300 DEFRESOLUTION 72 And then increase the size of your map to get the large size at 300 dpi. I'm not sure when this was added but it is

RE: [mapserver-users] Rendering Problem with Polygons as TYPE LINE

2010-04-08 Thread Worth Lutz
Do you have the outline defined as a variable width? Post the layer and outputformat definitions. Worth Lutz -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Flavio Hendry Sent: Thursday, April 08, 2010 4:24 AM

RE: [mapserver-users] GetFeatures - get the ID value of clicked shape

2010-04-04 Thread Worth Lutz
Off the top of my head: $id = $shape->values['ID']; _ From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Medve Zsolt Sent: Thursday, April 01, 2010 10:44 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users]

RE: [mapserver-users] php mapscript

2010-03-29 Thread Worth Lutz
I'm just a MapServer user. I've copied this reply to the list so your comments will be seen. Worth _ From: Cristiano Sumariva [mailto:sumar...@gmail.com] Sent: Monday, March 29, 2010 7:28 AM To: Worth Lutz Subject: Re: [mapserver-users] php mapscript To me would be

RE: [mapserver-users] php mapscript

2010-03-29 Thread Worth Lutz
o get results. Worth -Original Message- From: Sven Schroeter [mailto:schroe...@netgis.de] Sent: Monday, March 29, 2010 4:18 AM To: Worth Lutz Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] php mapscript Hi, thank you very much, shapeObj resultsGetShape is the sol

RE: [mapserver-users] php mapscript

2010-03-26 Thread Worth Lutz
This problem is due to the new single pass query in 5.6. I have marked your code with what I am using. Try these mods marked with "*": @$datQuery = $query_layer->queryByRect($qRect); //number of objects $resnum = $query_layer->getNumResults(); echo "nu

RE: [mapserver-users] PHP mapscript and getResult()

2010-03-11 Thread Worth Lutz
ions.ca] Sent: Tuesday, June 09, 2009 7:31 AM To: Worth Lutz Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] PHP mapscript and getResult() Worth Lutz wrote: > Did this get added into PHP mapscript in the 5.4.1 release? If so, is it a > layer object method? > It missed

RE: [mapserver-users] queryByAttributes syntax

2010-01-23 Thread Worth Lutz
I use the layer.connectiontype to adjust my query calls. Connection Types MS_INLINE, MS_SHAPEFILE, MS_TILED_SHAPEFILE, MS_SDE, MS_OGR, MS_TILED_OGR, MS_POSTGIS, MS_WMS, MS_ORACLESPATIAL, MS_WFS, MS_GRATICULE, MS_MYGIS, MS_RASTER, MS_PLUGIN For example: If layer.connectiontype == MS_

RE: [mapserver-users] How to set Labels dynamically?

2009-12-03 Thread Worth Lutz
I think that you need to add a class with a label definition to your layer. Here is how I add a set of virtual layers to my map object before drawing it. I'm sorry I do not have time this afternoon to distill it down to just the information you are looking for. Things to notice that I am usin

RE: [mapserver-users] Can not draw single point

2009-11-27 Thread Worth Lutz
Here is how I do it: $point = ms_newPointObj(); $point->setXY(2119500,757263); $line = ms_newLineObj(); $line->add($point); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); $shape->set('text', 'new point'); $newL

RE: [mapserver-users] PHP mapscript $shape->buffer() takes alongtime

2009-11-18 Thread Worth Lutz
be a good option. Steve >>> "Worth Lutz" 11/18/09 8:23 AM >>> I'm learning a lot here. I now understand how to get the buffered geometry quickly. I am using the buffered geometry to use PHP mapscript to select parcel intersecting the buffered geometry. $layer->

RE: [mapserver-users] PHP mapscript $shape->buffer() takes a longtime

2009-11-18 Thread Worth Lutz
I'm learning a lot here. I now understand how to get the buffered geometry quickly. I am using the buffered geometry to use PHP mapscript to select parcel intersecting the buffered geometry. $layer->queryByShape($bufferedShape); Are you telling me that there is a better/faster way to do this?

RE: [mapserver-users] PHP mapscript $shape->buffer() takes a long time

2009-11-17 Thread Worth Lutz
About 740, I think. -Original Message- From: Pavel Iacovlev [mailto:iacovlev.pa...@gmail.com] Sent: Tuesday, November 17, 2009 1:35 PM To: Worth Lutz Subject: Re: [mapserver-users] PHP mapscript $shape->buffer() takes a long time If the geometry has a lot of vertices's it can t

[mapserver-users] PHP mapscript $shape->buffer() takes a long time

2009-11-17 Thread Worth Lutz
I'm trying to buffer a shape returned from a point query on a polygon layer of parcels. When I try to use: $bufferedShape = $shape->buffer(200); I get back a fatal error: Maximum execution time of 30 seconds exceeded. I know that this is a php error message and that I could increase th

[mapserver-users] php Mapscript - update from string problem

2009-11-12 Thread Worth Lutz
Has anyone else tried to add a class to a layer with either: $layer->updateFromString('LABEL CLASS NAME "Selected School" STYLE SYMBOL school COLOR 255 125 0 SIZE 20 END LABEL TYPE truetype MINFEATURESIZE 50 MINDISTANCE 0 POSITION UC FONT vera SIZE 7 COLOR 255 125 0 END END END'); -or-

[mapserver-users] only one SYMBOLSET ?????

2009-11-12 Thread Worth Lutz
I tried to start a set symbol libraries. If I use two SYMBOLSET statements in my mapfile, the symbols in the first one are not there. Symbols defined in the mapfile after the SYMBOLSET statement do not erase a previous symbolset. Can there only be one SYMBOLSET in a mapfile? Do I need to put

RE: [mapserver-users] long expression statement doesn't workanymore

2009-11-12 Thread Worth Lutz
54')". Once I exceed a certain limit, parcels are not being highlighted. I think I could peel out a test case if you have not seen it yet. -Original Message- From: Steve Lime [mailto:steve.l...@dnr.state.mn.us] Sent: Friday, October 23, 2009 3:34 PM To: 'Mapserve

RE: [mapserver-users] long expression statement doesn't work anymore

2009-10-23 Thread Worth Lutz
I'm seeing the same (or similar) problem. First I query a MSsql database and get a result set. The parcel ids from the result set are inserted into an expression in a class which is inserted into a layer of the map which has its geometry data in a postgres database. (Don't ask why two databases!

[mapserver-users] PHP mapscript question

2009-09-08 Thread Worth Lutz
Hi, Given a list of x,y points, can I do one query to find the shape for each point or do I have to loop through the list of points doing a point query for each one? I've not found the answer in the documentation. Thanks, Worth ___ mapserver-use

RE: [mapserver-users] point layer symbols

2009-07-06 Thread Worth Lutz
riginal Message- From: Steve Lime [mailto:steve.l...@dnr.state.mn.us] Sent: Monday, July 06, 2009 11:48 AM To: mapserver-users@lists.osgeo.org; Worth Lutz Subject: Re: [mapserver-users] point layer symbols Hi Worth: When you define a vector symbol you're essentially defining a default siz

[mapserver-users] point layer symbols

2009-07-05 Thread Worth Lutz
Can anyone help describe how point symbols defined as type vector are placed upon the point on the map. My symbol and layer are listed below. I get a good looking symbols. My problem occurs when clicking on this symbol (and others like a triangle) to query it. If I click at the bottom of

RE: [mapserver-users] PHP mapscript and getResult()

2009-06-08 Thread Worth Lutz
Did this get added into PHP mapscript in the 5.4.1 release? If so, is it a layer object method? -Original Message- From: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Sent: Monday, April 06, 2009 1:54 PM To: Worth Lutz Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver

[mapserver-users] PHP Mapscript - layer->queryByAttribute problem

2009-06-04 Thread Worth Lutz
Using MapServer 5.4.0: I have two shapefile layers in NC State Plane system, one in ft and one in meters. The PROJECTION in the layers allows the map to be drawn correctly. My problem occurs when trying to use PHP mapscript to queryByAttribute. I am locating NC counties from two different shape

[mapserver-users] Scaledenom in Map object

2009-05-05 Thread Worth Lutz
I'm using PHP mapscript. Is $oMap->scaledenom only set by $oMap->draw()? Or is it updated when $oMap->setSize($width, $height); or $oMap->setExtent($minX,$minY,$maxX,$maxY); or one of the zoom methods are called? The manual (in the members list) states that scaledenom is

RE: [mapserver-users] PHP mapscript - QuerymapObj class

2009-04-28 Thread Worth Lutz
...@dmsolutions.ca] Sent: Tuesday, April 28, 2009 9:31 AM To: Worth Lutz Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] PHP mapscript - QuerymapObj class Worth Lutz wrote: > Is there any way to access the QuerymapObj from PHP mapscript? > > > > I cannot find the referenc

[mapserver-users] PHP mapscript - QuerymapObj class

2009-04-28 Thread Worth Lutz
Is there any way to access the QuerymapObj from PHP mapscript? I cannot find the reference to the object or a method to get to it in the MapObj class. Is the only way to change size or color in the mapfile if using PHP mapscript? Thanks in advance for your help, Worth Lutz

[mapserver-users] PHP mapscript and getResult()

2009-04-06 Thread Worth Lutz
There is a SWIG mapscript reference to a "layerObj" method "getResults()" returning a resultCacheObj. The resultCacheObj has an attribute "bounds" which is the extent of the results. Is this available in PHP mapscript. It seems to be missing. Worth ___