RE: [mapserver-users] LABEL - POSITION and FONT Calculations

2008-12-29 Thread Steve Lime
Here's one: DATA point FROM (select *, OID, substring(station from 2) as station_no_char, (case when current is null or tstamp_24hr is null or (now()-tstamp) interval '1 day' then 0 when current tstamp_24hr then 1 when current tstamp_24hr then 2 else 3 end) as trend from

RE: [mapserver-users] MapServer Symbol Conversion from Polyline Points

2008-12-29 Thread Steve Lime
I believe the size is computed from the max x, y coordinates and 0,0. That size (and the Style size) is then used to offset the symbol so it is centered accordingly. Typically I always develop vector symbols on a unit square (0 to 1) so that things work predictably. As suggested later in this

[mapserver-users] MapServer Website Migration

2008-12-29 Thread Steve Lime
Hi all: Perhaps you've already noticed the change, but regardless, the MapServer PSC is pleased to announce the migration of the MapServer website to a new domain and platform. This move completes the MapServer migration of services to OSGeo. It also marks the end of an era. For years the

[mapserver-users] Re: changing layer projection

2008-12-26 Thread Steve Lime
I sent a reply to the list on the 23rd, did you see/try that? The proper syntax for a layer projection is: map_layer[layername]=PROJECTION%20init%3Depsg%3A26914%20END I checked the code and a projection can be modified by URL. Steve On 12/26/2008 at 9:07 AM, in message

RE: [mapserver-users] Buffer

2008-12-23 Thread Steve Lime
It may not be an error in the buffer function. It could be an error in MapServer's GEOS support, specifically in the code that does the translation between GEOS geometries and MapServer shapeObj's. Can you try converting your WKT polygon to a shape and then back to WKT? They should match, but if

Re: [mapserver-users] MapServer requires unnecessary SERVICE=WMSparameter in GetMap request

2008-12-22 Thread Steve Lime
I thought 5.2.1 fixed this already? Steve On 12/22/2008 at 5:13 PM, in message 30fe546d0812221513i32dc690dn703d65111f590...@mail.gmail.com, Paul Ramsey pram...@cleverelephant.ca wrote: Right you are, another hidden gem of the specification... I've assigned a ticket to this. It seems pretty

Re: [mapserver-users] Clipping

2008-12-22 Thread Steve Lime
You can also do intersections with the GEOS methods exposed in MapScript (all flavors) assuming you have GEOS support compiled in... Steve On 12/22/2008 at 7:04 PM, in message a37ffbf90812221704q1b79d27frf27f9c5b24034...@mail.gmail.com, José María Michia jose.maria.mic...@gmail.com wrote:

Re: [mapserver-users] regarding scalebar

2008-12-18 Thread Steve Lime
I provided a comprehensive answer yesterday. Even though your size is 144x5 that's the size of the whole scalebar image of which the actual bar is only a portion of. The bar is only 111 pixels wide so 6 is the correct value. Using your numbers this works out: 111/144 * 7.886242254 = 6.0789784

Re: [mapserver-users] regarding scalebar

2008-12-17 Thread Steve Lime
Dude, you need to be more patient, and it's not necessarily a simple question. Anyway, near as I can tell there is no problem. I whipped up a little example based on your mapfile and extent, see:

Re: [mapserver-users] ...Question

2008-12-16 Thread Steve Lime
/16 Steve Lime steve.l...@dnr.state.mn.us Text expressions don't support functions. They should, and likely will, in the next release. Steve Valeria Muñoz valemu...@gmail.com 12/16/08 7:31 AM Hi.. Exist some command or clause in the MapFile for change the text(type) to display

Re: [mapserver-users] Again: WFS: How to sort the WFS output in MS5.x.x ?

2008-12-16 Thread Steve Lime
The presentation side of the WFS code doesn't do any sorting so that's not the culprit. Looks like you're using PostGIS. Is there any way you can capture the SQL actually being generated by MapServer and executed by PostGIS? That would help us track this down. Steve On 12/16/2008 at 4:13 AM,

Re: [mapserver-users] Legend for a layer with filter

2008-12-16 Thread Steve Lime
Your CLASS needs a name and then it should work ok. Steve On 11/13/2008 at 11:31 PM, in message 491d0d1f.2070...@gslab.com, Subha Ramakrishnan su...@gslab.com wrote: Hi, I want to know if it is possible to generate a legend for a layer with a filter. I am getting a blank response with a

Re: [mapserver-users] Mapserver interacting with graphs and tables?

2008-12-15 Thread Steve Lime
We've done it by feeding data to owtchart in a MapServer query template. You could also create a URL template response consisting of a call to owtchart. Here's an example page:

Re: [mapserver-users] Polygon filled and with an image in the center ?

2008-12-10 Thread Steve Lime
With 5.2 and earlier you can't do this with one layer. You have to use one polygon layer and one annotation layer. The next version will allow these types of transformations at the style layer (see the recent discussion on end points). The code is in the main trunk if you're feeling

Re: [mapserver-users] Difference in appearance between mode=mapand WMS

2008-12-08 Thread Steve Lime
It's not a bug, just a difference in the extent models between MapServer proper and WMS. The MapServer WMS interface accounts for this difference in the code by adjusting the WMS extent to a MapServer extent. You'd need to make a similar adjustment when doing comparisons. A WMS extent is 1/2 a

Re: [mapserver-users] RE: Scalebar vs Numeric scale

2008-12-08 Thread Steve Lime
IMHO that numeric scale values are useless from a display perspective. You simply can't know what an appropriate RESOLUTION value is in all cases. The numeric values are useful for turning layers on/off etc... but that's about it. Steve Robert Sanson [EMAIL PROTECTED] 12/08/08 8:12 PM Maybe

Re: [mapserver-users] IDENTIFY TOOL

2008-12-05 Thread Steve Lime
What does it doesn't work mean? What version of MapServer? What client are you doing the identify from? What does the URL you're feeding to MapServer that doesn't work look like? Steve On 12/5/2008 at 3:19 PM, in message [EMAIL PROTECTED], John Kummun [EMAIL PROTECTED] wrote: I am having

Re: [mapserver-users] ICON Placing (Symbol) within raster file

2008-12-03 Thread Steve Lime
Pixmaps are raster symbols. However, only common graphics file formats are supported: GIF/PNG8/PNG24/JPG. If you convert your TIF to one of those then you can use it as a symbol and marker. Steve Amiya Patra [EMAIL PROTECTED] 12/03/08 2:38 AM Hi Steve But how It is possible for raster file

Re: [mapserver-users] join table to shape file before query

2008-12-03 Thread Steve Lime
You have to use OGR to do this and not MapServer JOINs. Steve On 12/3/2008 at 10:00 AM, in message [EMAIL PROTECTED], Jim Hagedorn [EMAIL PROTECTED] wrote: I need to join a table with a shape file before I do a query. I have a shape file with polygons and the table has info on the polys but

Re: [mapserver-users] I need ur help (plz urgent)

2008-12-02 Thread Steve Lime
Ques 1: Not sure how you get the regex error with [map]. That tag goes in the html template (e.g. input type=hidden name=map map=[map]) but note that it will only work IF you are setting map on the original call to MapServer. Ques 2: SAVEMAP is not switchable, you'd have to edit mapserv.c and

Re: [mapserver-users] ICON Placing co-ordinates.....

2008-12-02 Thread Steve Lime
You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL 2.gif END END END Steve On 12/1/2008 at 11:08 PM, in message [EMAIL

Re: [mapserver-users] MapServer 5 - MapScript Problem setExpression

2008-12-01 Thread Steve Lime
That should fix it. The problem is that MapServer strings must start with a alpha character. Otherwise they must be quoted. Steve On 12/1/2008 at 9:04 AM, in message [EMAIL PROTECTED], Yewondwossen Assefa [EMAIL PROTECTED] wrote: Can you try something like $oClass-setExpression('3NA')

[mapserver-users] MapServer 5.2.1 Released

2008-12-01 Thread Steve Lime
Hi all: The MapServer PSC has just released version 5.2.1. This new release contains no additional functionality but addresses a number of issues identified since the 5.2.0 release. A list of fixes is included at the end of this message. The full change log can be viewed online at:

Re: [mapserver-users] Mapserver legend is never transparent

2008-11-25 Thread Steve Lime
Have you tried mode=legend calls? How about setting TRANSPARENT TRUE in the LEGEND object? Steve Ivan Mincik [EMAIL PROTECTED] 11/23/08 2:08 PM I have a problem that mapserver legend is never transparent even when using php-mapscript or querying WMS layer. Tested at few of mapserver 5.x.x

Re: [mapserver-users] filtering features of layer by quarries inattribute table

2008-11-25 Thread Steve Lime
Something like this should work: CLASS NAME 'Small' EXPRESSION ([AREA] 1000) ... END CLASS NAME 'Medium' EXPRESSION ([AREA] = 1000 AND [AREA] 5000) ... END CLASS NAME 'Large' # no expression necessary since this class will catch everything = 5000 ... END Steve Oz Nahum

Re: [MAPSERVER-USERS] CLASSITEM and EXPRESSION issue in trunk?

2008-11-21 Thread Steve Lime
The PostGIS support underwent major changes recently so I'd suspect this is specific to that work. Perhaps there are character padding affecting things? Steve Pål Kristensen [EMAIL PROTECTED] 11/21/08 8:36 AM Hi! I've compiled 5.3-dev from trunk yesterday and got some trouble with some

Re: [mapserver-users] LABELREQUIRES Recursion Errors

2008-11-19 Thread Steve Lime
What version? Recursion errors will occur if two layers reference each other or if a layer references itself. From your mapfile snippet that doesn't seem to be the case. It's a pretty lightly used feature so it's possible there is a flaw in the code. If you use just REQUIRES (so the whole layer

Re: [mapserver-users] setting variables in cgi-bin callout

2008-11-14 Thread Steve Lime
Two ideas: - write a simple wrapper script around MapServer to translate variables between the old and new - use Apache mod_rewrite to do that translation Steve On 11/14/2008 at 2:33 PM, in message [EMAIL PROTECTED], jacob rodel [EMAIL PROTECTED] wrote: I am trying to duplicate a web

Re: [mapserver-users] dBox - Hide mapfile source

2008-11-13 Thread Steve Lime
The web server interprets the variable, not the browser. The browser never sees the expanded value unless you want it to. Steve On 11/13/2008 at 9:08 AM, in message [EMAIL PROTECTED], Richard Polk [EMAIL PROTECTED] wrote: Steve, It seems to me that once Javascript interprets the variable, a

Re: [mapserver-users] Is it possible to take the last 3 chars from astring as labelitem

2008-11-13 Thread Steve Lime
It's not possible within mapserver itself. With PostGIS or Oracle Spatial you can specify functions in your data statements essentially creating a column on-the-fly. Perhaps that's possible with SDE as well? Steve On 11/11/2008 at 7:14 AM, in message [EMAIL PROTECTED], I-Real - Rob ter Haar

Re: [mapserver-users] dBox - Hide mapfile source

2008-11-12 Thread Steve Lime
Easiest way is to use an environment variable in your web server. In Apache you just do: SetEnv RockMSMap //someserver/somehiddenshare$/webapps/RockMS.map and then in javascript: config.mapfile = 'RockMSMap' Not sure how you'd do that with IIS but I imagine it's possible. Steve Richard

Re: [mapserver-users] Using pixels in TOLERANCEUNITS

2008-11-10 Thread Steve Lime
There is no tutorial for editing the source code. It's generally not for the faint of heart. The file maplexer.l is part of the MapServer source distribution so if you build the software from source then it would be right there along with the other C/C++ sources. If you're using MS4W I'm

Re: [mapserver-users] Using pixels in TOLERANCEUNITS

2008-11-08 Thread Steve Lime
What do you mean in the html? Do you mean your trying to set via URL? If so it's likely an oversight on my part and that keyword isn't being recognized when parsing URLs. I'll make sure that gets fixed in the source. In the meantime you can edit maplexer.l and change: INITIALpixels to

Re: [mapserver-users] Get the actual mode of the map

2008-11-07 Thread Steve Lime
Assuming you set it on the call to MapServer it should be simply [mode] on the way out. The only possible values you can get at via a template are browse or one of the various query modes. Browse is the default so for those templates you know mode=browse. For queries you have to explicitly set

Re: [MAPSERVER-USERS] Features not displayed if LABELITEM is null

2008-11-06 Thread Steve Lime
What layer type, version, etc...? On 11/6/2008 at 9:10 AM, in message [EMAIL PROTECTED], Philippe Kruschitz [EMAIL PROTECTED] wrote: Hi list, Is it normal that Mapserver won't draw features if it can't find a string in the [labelitem] attribute? I am trying to display a road network

Re: [mapserver-users] getting field names using mapscript

2008-11-06 Thread Steve Lime
If you're using a shapefile however you can do something like: // in perl $shapefile = new mapscript::shapefileObj('myshapefile', -1); print $shapefile-{numshapes}; There is a getNumFeatures() method for layer objects although I don't know if it is widely implemented. Steve On

Re: [mapserver-users] Getteing the intersection of two layers

2008-11-06 Thread Steve Lime
You could try a feature query in MapServer/MapScript. First step is to do a query that selects the polygons (probably by attribute) and then do a queryByFeatures() query on the point layer. The result would be a set of points that are contained in your polygon features. Be sure to set the

Re: [mapserver-users] Dynamic SQL

2008-11-03 Thread Steve Lime
Browse mode expects an imgext in this case. It's necessary to turn the img.x and img.y into map coordinates. Imgext is the extent of the map you clicked in. Steve On 11/3/2008 at 5:51 AM, in message [EMAIL PROTECTED], Denis Rykov [EMAIL PROTECTED] wrote: Hi all! This is my map-file: MAP

Re: [MAPSERVER-USERS] Get Number of features returned by extent change(zoom)

2008-10-23 Thread Steve Lime
Sure, the [NF] template tag will give you that number. You'd have to pass the bbox to MapServer with mode=nquery to get it. Steve On 10/23/2008 at 11:17 AM, in message [EMAIL PROTECTED], djoblo [EMAIL PROTECTED] wrote: Dear all, I' m looking for a way to get the number of features

[mapserver-users] RE: itemquery, itemnquery, qstring struggles

2008-10-22 Thread Steve Lime
H... The error message is curious. The []'s shouldn't be there. Any chance you could share your data, mapfile and templates and I can set it up here? Steve On 10/22/2008 at 10:52 AM, in message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Anybody have any ideas? Is the problem in the map

Re: [mapserver-users] Symbol rendering performance (image x vector xfont)

2008-10-21 Thread Steve Lime
There shouldn't be much of a difference although as always it depends. In the end all of them end up as images and there is caching in place for both vector and truetype symbols. You just pay the performance penalty for the initial rendering. Steve On 10/21/2008 at 8:44 AM, in message [EMAIL

Re: [mapserver-users] Symbol rendering performance (image x vectorxfont)

2008-10-21 Thread Steve Lime
a summary of your testcase and conclusions so others can benefit from them :) cheers, thomas On Tue, Oct 21, 2008 at 21:03, Steve Lime [EMAIL PROTECTED] wrote: There shouldn't be much of a difference although as always it depends. In the end all of them end up as images

Re: [mapserver-users] Layer (line) with LABELITEM...

2008-10-20 Thread Steve Lime
Hi Paul: For now you must have 2 layers. There's no way to make one style apply to the line work and the another to a label marker. That may change in 5.4 but for now you're stuck with 2. Steve Paul james [EMAIL PROTECTED] 10/17/08 12:44 PM Hello guys... I have 2 layers, LINE and

Re: [mapserver-users] Changing imagetype of web output

2008-10-17 Thread Steve Lime
Hi Robert: In a mapfile it should be as easy as: IMAGETYPE GIF (or PNG or PNG24 or AGGPNG24...) This assumes you have GIF support available in GD. If it's there GIF should be the default anyway so you really shouldn't need to set IMAGETYPE. In MapScript there is a selectOutputFormat method

Re: [mapserver-users] examples of Web GIS interaction between citizensand governments?

2008-10-16 Thread Steve Lime
We use web gis in a couple of situations to collect geographic information that is used as part of a departmental business process: 1) Tagged fish reporting. Staff created an application to capture the locations where tagged fish were caught. That information is used to generally locate the catch

[mapserver-users] Re: [mapserver-dev] ms sql 2008 spatial: Recently fixed issues

2008-10-13 Thread Steve Lime
I've added the component, with Howard has the owner. Let me know if that's not correct. Steve Tamas Szekeres [EMAIL PROTECTED] 10/12/08 5:17 PM 2008/9/12 BrainDrain [EMAIL PROTECTED]: msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: tried to find the geometry column in the

Re: [mapserver-users] Disappearing point in a map

2008-10-13 Thread Steve Lime
What happens if you use a point layer instead of an annotation layer? Annotation disappears if label collisions happen. Steve On 10/10/2008 at 4:53 PM, in message [EMAIL PROTECTED], Chip Taylor [EMAIL PROTECTED] wrote: I have a map where I pass in the information about a point via the URL. I

Re: [mapserver-users] gedit (Ubuntu text editor) syntax highlighting

2008-10-10 Thread Steve Lime
Cool, looks great! I published the resource on the website too. Steve On 10/9/2008 at 11:46 PM, in message [EMAIL PROTECTED], Eduin Carrillo [EMAIL PROTECTED] wrote: Hi, I just released the mapserver.lang file to highlight mapfiles syntax in gedit, the text editor of Ubuntu. I would like

Re: R: [MAPSERVER-USERS] Dynamic Labeling of maps

2008-10-07 Thread Steve Lime
That's what ANNOTATION layers are for. You could group them and then refer to them as a single layer. I can see where it would be helpful to have the ability to have a draw labels only mode at a global level (e.g. LABELMODE ALL|NONE|ONLY). ALL would be the default, NONE would turn off all

Re: [mapserver-users] WMS don't load

2008-09-30 Thread Steve Lime
MapServer version? On 9/30/2008 at 10:36 AM, in message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hello, I have 2 mapServers on different computer (windows). I defined a mapFile containing several layers and one WMS layer. The same copy of this mapFile is used on both server. On one server

Re: [mapserver-users] WMS don't load

2008-09-30 Thread Steve Lime
If you do a mapserv -v is the output identical on each box? On 9/30/2008 at 11:57 AM, in message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Version 5.0.0 on the server that works well Version 5.2.0 on the server where WMS don't load Also, If I call the WMS directly from internet explorer

Re: [mapserver-users] ArcSDE 9.3 Support.

2008-09-30 Thread Steve Lime
My assumption is that if it is not specifically stated that something WON'T work with a particular version then it probably will work. I'd say try it. I don't have that version handy or I'd do it myself. Steve On 9/30/2008 at 12:06 PM, in message [EMAIL PROTECTED], Nelson Soto [EMAIL

Fwd: Re: [mapserver-users] WMS don't load

2008-09-30 Thread Steve Lime
Perhaps some windows/ms4w users will have an idea... Steve On 9/30/2008 at 2:04 PM, in message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Are you getting an exception from the WMS? No, I only get a blank page. I didn't find any log with information. How about running shp2img on the

Re: [mapserver-users] Variable substitution in FILTER request with aLIKE

2008-09-29 Thread Steve Lime
FILTER WHERE NAME LIKE '%%road%%' won't work? MapServer should just replace the inner %road% and leave the outer %'s alone. Steve On 9/28/2008 at 10:03 PM, in message [EMAIL PROTECTED], Robert Sanson [EMAIL PROTECTED] wrote: I would like to have a FILTER section in my layer definition of an

Re: [mapserver-users] query case insensitive

2008-09-24 Thread Steve Lime
Use the *~ operator as described at: http://www.postgresql.org/docs/8.3/static/functions-matching.html Steve Sven Schroeter [EMAIL PROTECTED] 09/24/08 5:12 AM Hi all, I'm using the queryByAttributes-function of PHP-Mapscript with the LIKE (~) operator for strings (out of a POSTGIS-table):

Re: [mapserver-users] scalebar - control units based on scale?

2008-09-24 Thread Steve Lime
Hi Mark: There's no easy way in MapServer. The way I'd do it would be to intervene on the client side and change calls to MapServer to use scalebar units in feet instead of miles once you cross a scale threshold. You can do that by appending map.scalebar=units%20feet to the URLs. Steve Mark

Re: [mapserver-users] shade a county

2008-09-24 Thread Steve Lime
A query map will do this. That is you do a point search with map output (mode=querymap) or mode=query with queryformat (in the mapfile) set to your favorite image type (e.g. PNG, PNG24, AGGPNG24, etc...). Steve Mark Brooks [EMAIL PROTECTED] 09/23/08 11:16 AM I have a shapefile of type

Re: [mapserver-users] Using Fast CGI with MapServer to alleviatepoor performance

2008-09-19 Thread Steve Lime
This shouldn't be the case, there are tests in the main API code to test projections of the map against layers to avoid this. I suspect it's projection related though... Steve On 9/19/2008 at 11:19 AM, in message [EMAIL PROTECTED], Guillaume Sueur [EMAIL PROTECTED] wrote: I guess that wms

Re: [mapserver-users] Using Fast CGI with MapServer to alleviatepoorperformance

2008-09-19 Thread Steve Lime
I setup a test case here tonite (albeit a simple one rendering) a tiff image with 24bit output (no AGG). The CGI performed marginally (hundreths of a second) faster than the WMS calls. I guess this is what I would have expected given the WMS process has a bit more up front overhead. I think to

Re: [mapserver-users] Mapserver (CGI/FastCGI) crashes when querying amap

2008-09-18 Thread Steve Lime
You're going to have to be more specific what the hell you're trying to do. ;-) On 9/18/2008 at 1:43 PM, in message [EMAIL PROTECTED], Carlos Ruiz [EMAIL PROTECTED] wrote: Hi list, I have Mapserver 5.0.2 installed on Win32, when I do some queries to my map, the response takes so long and

Re: [mapserver-users] qstring validation question

2008-09-16 Thread Steve Lime
JohN: It's given as a regex in the layer metadata: 'qstring_validation_pattern''^[0-9]{1,2}$' This one limits the qstring to a 1 or 2 digit integer. Steve On 9/16/2008 at 10:05 AM, in message [EMAIL PROTECTED], John B. Churchill [EMAIL PROTECTED] wrote: We recently upgraded to a newer

Re: [mapserver-users] Run-time Substitution vs. Variable Substitutionand what are the Parameters Supported?

2008-09-15 Thread Steve Lime
Variable substitution refers to those parameters that can have part of their value changed remotely. The supported parameters are: LAYER: data, tileindex, connection and filter CLASS: expression Setting up parameter validation is STRONGLY encouraged. In your layer metadata you'd define

Re: [mapserver-users] service exception

2008-09-11 Thread Steve Lime
I don't think it's possible to override the error messages with OGC service support. The ERROR directive is supported on by the CGI interface. Steve On 9/11/2008 at 9:47 AM, in message [EMAIL PROTECTED], zhao peisheng [EMAIL PROTECTED] wrote: Hi all, Currently, the MapServer will return

Re: [mapserver-users] Why queryByPoint returns neighbour object insteadof clicked object

2008-09-08 Thread Steve Lime
You could try plotting your query point on the map to help visualize things I suppose. Perhaps the PixelToGeo function is off. One things I'd try is taking the output from that function and using it to formulate a query to the CGI. That would allow you to compare your results against another

Re: [mapserver-users] drawing a circle

2008-09-08 Thread Steve Lime
Can you explain a bit more about your environment (CGI vs. MapScript), context of the need etc...? The easiest path will likely involve a point layer that you'll populate dynamically (with the click coordinate) and then display that point with a circle symbol. You can scale that symbol

Re: [mapserver-users] Template problem

2008-09-08 Thread Steve Lime
You're trying to mix PHP and HTML templates. That won't work as far as I know unless there is some funky piping you can do in Apache 2. MapServer parses the template specified and echos the output to stdout so it's not interpreted by anything else before it hits the user's browser. Steve On

Re: [mapserver-users] Image handling error

2008-09-08 Thread Steve Lime
I didn't see any replies so figured I'd chime in. Anyway, just because GDAL is on the system doesn't mean mapserver knows about it. Have folks confirmed MapServer was indeed compiled with GDAL support? Steve On 9/2/2008 at 5:42 AM, in message [EMAIL PROTECTED], Christian Willmes [EMAIL

Re: [mapserver-users] error in installing mapserver on linux platform

2008-09-05 Thread Steve Lime
What output does it give you? The apache error isn't helpful. I would assume it's something like when run the CGI process is not able to load the right dynamic libraries. You can try setting the the LD_LIBRARY_PATH in your configuration to include directories that you installed supporting

Re: [MAPSERVER-USERS] Highlighting query results

2008-09-03 Thread Steve Lime
these lines in map-file but there are no results: QUERYMAP COLOR 0 0 255 STATUS ON STYLE HILITE END What I've missed? 2BrainDrain: Thank you, I'll try and your way too. Steve Lime wrote: MapServer supports what's called a query map. It basically replaces the color of the top

Re: [mapserver-users] GetFeatureInfo for number in textfield

2008-09-01 Thread Steve Lime
nr is also a template substitution string (means number of results) in mapserver templates so I'm guessing that's being returned instead of the column values. A value of 1 for every result seems to confirm that. The work around would be to rename the column in your SQL statement (eg nr as

Re: [mapserver-users] MapServer-packages for SuSE-derived systemsavailable

2008-08-29 Thread Steve Lime
Sweet! Might be worth adding a link to http://mapserver.gis.umn.edu/download/current/? Steve Stephan Holl [EMAIL PROTECTED] 8/29/2008 2:02 AM Hello mapserver-users, while at it I built MapServer-packages for SuSE-dervied systems using opensuses build-service. Currently mapserver 5.2.0 is

Re: [mapserver-users] show only some point on the map

2008-08-28 Thread Steve Lime
The IN operator works with all datasources since it's an expression. I've done this before and it works fine although there are probably some practical limits in the number of features you'd want to deal with this way. If you can group the IDs into one var (e.g ids) and then use an expression

Re: [mapserver-users] Using space in layer's name?

2008-08-25 Thread Steve Lime
You've hit a bug in the code. Since layers uses a space delimiter spaces in layer names will cause problems. A work around would be to use layer=layer1layer=layer2... in your call. If you'd file a bug on this issue I'll address for 5.4, probably by supporting multiple delimiters like a comma and

Re: [mapserver-users] Using space in layer's name?

2008-08-25 Thread Steve Lime
). Guess I'm gonna change all the spaces in the layer's name to underscores instead. -Kresh --- On Mon, 8/25/08, Steve Lime [EMAIL PROTECTED] wrote: From: Steve Lime [EMAIL PROTECTED] Subject: Re: [mapserver-users] Using space in layer's name? To: TC Haddad [EMAIL PROTECTED], [EMAIL PROTECTED

Re: [mapserver-users] Change a class name by url

2008-08-19 Thread Steve Lime
Manipulation of parameters that don't go through some validation as part of parsing (e.g. most strings) is not supported in 5.0 and 5.2. The exceptions are data and template IF datapattern and templatepattern are set. I've realized this change is probably too limiting and intended to remedy for

Re: [mapserver-users] Fractional line widths?

2008-08-19 Thread Steve Lime
We've talked about this as part of a package of graphics-related enhancements. Look for it in 5.4 soon. Steve Tamas Szekeres [EMAIL PROTECTED] 08/18/08 7:06 PM Dane, I think it would be implemented by means of replacing the int-s with doubles at the style and the symbol definitions and the

Re: [mapserver-users] Layer and tranform

2008-08-19 Thread Steve Lime
Monica: Some examples of what overturned means would be helpful. Perhaps before and after image samples? Steve On 8/19/2008 at 4:53 AM, in message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Dear All, I've update the current version of mapserver with the new 5.2.0. When I put the layer in

Re: [mapserver-users] How to display vector symbols (direction andmagnitude) in MapServer?

2008-08-19 Thread Steve Lime
Or a way to alter the interpretation of angles, e.g. ANGLEMODE or something like that... Steve On 8/19/2008 at 3:06 AM, in message [EMAIL PROTECTED], Havard Tveite [EMAIL PROTECTED] wrote: I don't think ANGLE can be used in your case (if you do not use scripting to calculate the ANGLEs

Re: [mapserver-users] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file?

2008-08-19 Thread Steve Lime
Is there a ticket for this? If not there should be. Steve On 8/19/2008 at 3:09 AM, in message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: No, this is not yet possible. It will need some funding to get done most likely. Best regards, Bart Hi, Instead of having an embedded

[mapserver-users] Re: msGetLabelSize(): TrueType Font error.Requested font (sans) not found.

2008-08-19 Thread Steve Lime
Font references are stored in a fontset, a simple text file. You need to reference that in your map object and can look at it's contents to determine what's available. Steve On 8/18/2008 at 4:24 PM, in message [EMAIL PROTECTED], John Mitchell [EMAIL PROTECTED] wrote: Sorry for the extra

Re: [mapserver-users] loadWeb(): General error message.URL-basedTEMPLATE...

2008-08-19 Thread Steve Lime
When changing a template via a URL the value is compared against a regex stored in TEMPLATEPATTERN. If the value validates then the template is changed. Is this the stock MapServer demo or have you altered it? Steve On 8/15/2008 at 11:44 PM, in message [EMAIL PROTECTED], LMonge [EMAIL

Re: Res: [mapserver-users] Change a class name by url

2008-08-19 Thread Steve Lime
If you can recompile MapServer then all you need to do is edit maplexer.l. Go down to the line: INITIALname and change it to: INITIAL,URL_STRINGname and that should do it. Steve On 8/19/2008 at 11:09 AM, in message [EMAIL PROTECTED], Jefferson Bauer [EMAIL PROTECTED] wrote: Thaks for

Re: [mapserver-users] How to display vector symbols (direction andmagnitude) in MapServer?

2008-08-18 Thread Steve Lime
Just in terms of the image... Steve On 8/18/2008 at 6:30 AM, in message [EMAIL PROTECTED], John Maurer [EMAIL PROTECTED] wrote: Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter in MapServer 5.0. One remaining concern I have, though, is how the angle will be

Re: [mapserver-users] attach text to displayed features that are comingfrom postgis

2008-08-18 Thread Steve Lime
Check out the LABELITEM property for a layer. You'll also need to define a LABEL for your class. Steve On 8/18/2008 at 11:17 AM, in message [EMAIL PROTECTED], John Mitchell [EMAIL PROTECTED] wrote: Hi, I would like to be able to attach text to displayed features that are coming from

Re: [mapserver-users] wcs_timeposition: explicit listing or start/endrange?

2008-08-15 Thread Steve Lime
Hi Alex: A present no, you have to be explicit. If you file a bug I'll make sure this gets synced with the WMS implementation. Steve On 8/15/2008 at 10:49 AM, in message [EMAIL PROTECTED], Alexander Petkov [EMAIL PROTECTED] wrote: I am trying to allow data downloads via a GetCoverage

Re: [MAPSERVER-USERS] how to avoid overlapping points

2008-08-15 Thread Steve Lime
What are you after instead? If you use an annotation layer a marker is considered part of the label and is used in collision avoidance. Steve On 8/15/2008 at 11:11 AM, in message [EMAIL PROTECTED], daa32 [EMAIL PROTECTED] wrote: Hi folks! I´m making a WMS using a point layer. The questions

Re: [mapserver-users] wcs_timeposition: explicit listing orstart/endrange?

2008-08-15 Thread Steve Lime
intent to figure out time positions from the wcs_timeitem parameter if wcs_timeposition is being set to AUTO Alex On Fri, Aug 15, 2008 at 10:59 AM, Steve Lime [EMAIL PROTECTED] wrote: Hi Alex: A present no, you have to be explicit. If you file a bug I'll make sure this gets synced

Re: [MAPSERVER-USERS] Problems calculating MAXSCALES

2008-08-14 Thread Steve Lime
Your assuming that an extent in ESRI represents the same thing MapServer. It doesn't assuming an ESRI extent is UL corner of UL pixel and the LR corner of the LR pixel for the rendered map. MapServer would use the centers of each pixel. You need to account for those differences when comparing

Re: [mapserver-users] Stress test wms demo application

2008-08-14 Thread Steve Lime
Very cool, nice looking app and maps. I like the mouse icon you use when drag/pan! Steve On 8/14/2008 at 9:17 AM, in message [EMAIL PROTECTED], Stijn Tallir [EMAIL PROTECTED] wrote: Hi, My company plans to deliver our raster catalog through a mapserver powered WMS and I need the

Re: [MAPSERVER-USERS] Problems calculating MAXSCALES

2008-08-13 Thread Steve Lime
It's likely the desktop product you're using uses a different pixel model than MapServer's center-to-center model. The code in 4.8.3 was incorrect so I'm not sure what we can do. A WMS extent simply isn't equal to a MapServer extent. The MapServer WMS and WCS code account for the difference

Re: [MAPSERVER-USERS] Problems calculating MAXSCALES

2008-08-13 Thread Steve Lime
/ Steve Lime wrote: It's likely the desktop product you're using uses a different pixel model than MapServer's center-to-center model. The code in 4.8.3 was incorrect so I'm not sure what we can do. A WMS extent simply isn't equal to a MapServer extent. The MapServer WMS and WCS code account

Re: [mapserver-users] RE: Labeling

2008-08-06 Thread Steve Lime
From your example I can see that your ANGLE parameter is in the wrong object it should be in the label object to rotate the text. As is you should be throwing parsing errors. the item storing the angle need not be numeric although the values must represent numbers upon conversion. Steve Jay

Re: [MAPSERVER-USERS] Problem with SymbolObj

2008-08-05 Thread Steve Lime
The original question was: Hello everyone, I've got a problem with PHP Mapscript. When I create a new symbol for a map, a symbol that I can find back with $map-getSymbolObjectById() method, then i CAN'T delete it. There is no method to delete or remove a symbol added in a map (with

Re: [mapserver-users] cartography questions.

2008-08-01 Thread Steve Lime
Hi Mark: On 8/1/2008 at 2:53 PM, in message [EMAIL PROTECTED], Mark Volz [EMAIL PROTECTED] wrote: Hello, I have a couple cartography questions. First, I noticed if I zoom in to the center of multiple polygons the layers stack over each other. For example If I zoom in to a scale of

Re: [mapserver-users] Re: mapscript querybypoint on tiled rasterlayers?

2008-07-30 Thread Steve Lime
for the reply. To clarify, I am using 5.2. I'm guessing by what you're saying is that bugs with a new feature like this are to be expected - I just wanted to check if it was already known to anyone else before submitting a ticket in the trac. Regards, Mike Steve Lime wrote: Support for tile

Re: [mapserver-users] Output image resolution - explanation needed

2008-07-30 Thread Steve Lime
Resolution in MapServer-speak is referring to the resolution of the output device a map will be displayed on. The value is used for scale computations and nothing else. It does not affect the size (in pixels) of MapServer. Scale values do impact the size at which features and text are rendered

[mapserver-users] Re: mapscript querybypoint on tiled raster layers?

2008-07-29 Thread Steve Lime
Support for tile names relative to the tile index is brand new in 5.2 so in older versions absolute paths or paths relative to the mapfile were your only options. Steve On 7/29/2008 at 12:44 PM, in message [EMAIL PROTECTED], Mike Leahy [EMAIL PROTECTED] wrote: Ok...I figured out the problem

Re: [mapserver-users] MapServer Version 5.2.0 Source Released

2008-07-28 Thread Steve Lime
Info inline... I'll file documentation bugs for those issues I noted below... Steve On 7/27/2008 at 12:51 AM, in message [EMAIL PROTECTED], Luca Manganelli [EMAIL PROTECTED] wrote: Where can I have more detail about these improvements? * performance enhancements for large shapefile

Re: [mapserver-users] nextlabel() getlabel() still being used?

2008-07-28 Thread Steve Lime
Didn't see any replies, sorry for the delay. Looking at the source these methods look to be gone from PHP/MapScript although they are still present in Swig/MapScript. Perhaps one of the PHP/MapScript maintainers can chime in... Steve On 7/17/2008 at 3:34 PM, in message [EMAIL PROTECTED],

Re: [mapserver-users] Displaying identify results properly precisionand scale

2008-07-24 Thread Steve Lime
I'm not sure how geomose generates those results but I would imagine it's through templates. If so, then you can use the item tag to control precision. If the column is area then the tag would look like: [item name=area precision=2] or something along those lines. Steve On 7/24/2008 at

<    1   2   3   4   5   6   >