Re: [mapserver-users] I've been accused of not using things the way they were intended, but . . . can a getcapabilities request be run through the MapServer TEMPLATE for output?

2013-01-29 Thread Lime, Steve D (MNIT)
Templates don't expose the layer metadata you'd likely need so transforming normal XML as Steve suggested is a far better option. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul)

Re: [mapserver-users] Combined spatial and attribute query

2013-02-08 Thread Lime, Steve D (MNIT)
Is your spatial query just a bbox? If so then just set that as your map extent as part of doing your attribute query (attributes always do both). There are other options too, let us know more what your spatial query is. Steve From:

Re: [mapserver-users] Combined spatial and attribute query

2013-02-08 Thread Lime, Steve D (MNIT)
[bob.bistr...@maine.gov] Sent: Friday, February 08, 2013 10:09 AM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: Combined spatial and attribute query Interesting thought. Bbox won’t quite do it- the spatial select would be based on, for instance, a selected county or town

Re: [mapserver-users] Photo Viewer

2013-02-14 Thread Lime, Steve D (MNIT)
I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf

Re: [mapserver-users] Photo Viewer

2013-02-14 Thread Lime, Steve D (MNIT)
Could try ANGLE 90 at the map level? From: Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 4:17 PM To: Lime, Steve D (MNIT); Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: Photo Viewer Ok, I sort of got something to work . . . http://gis.ci.stpaul.mn.us/datasets/SHP

Re: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache?

2013-02-15 Thread Lime, Steve D (MNIT)
I'm assuming you're using open layers or similar. There isn't one image, that's the point of using tiles, it only looks like one. You could do something with OL to overlay a watermark but it's just an overlay and not part of the underlying tiles. That's would also be independent of mapcache.

Re: [mapserver-users] previous post

2013-02-18 Thread Lime, Steve D (MNIT)
I believe PATTERN is now obsolete in a symbol file. You define it in a style instead... Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Vince Miller [vincentpmil...@yahoo.com] Sent: Monday,

Re: [mapserver-users] MapServer .map file security question

2013-02-19 Thread Lime, Steve D (MNIT)
It's tricky though using the same webserver instance. If you have separate instances (e.g. different ports, names or whatever) on the same box you can use the MS_MAP_PATTERN environment variable (given as a regex) to restrict allowable mapfile patterns. If you had in separate directories (e.g.

Re: [mapserver-users] queryByShape returns too many results

2013-02-20 Thread Lime, Steve D (MNIT)
You don't use the nextShape() method to retrieve shapes as a result of a query. Here's the pseudo code: $layer-queryByShape($q_shape); for($i=0; $i $layer-getNumResults(); $i++) { $shape = $layer-getShape($layer-getResult($i)); .. do something with the shape .. } As part of query

Re: [mapserver-users] queryByShape returns too many results

2013-02-20 Thread Lime, Steve D (MNIT)
It shouldn't matter the shape type. Could it be projection related? Perhaps tolerance related? Steve From: Bistrais, Bob [bob.bistr...@maine.gov] Sent: Wednesday, February 20, 2013 3:34 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE

Re: [mapserver-users] queryByShape returns too many results

2013-02-20 Thread Lime, Steve D (MNIT)
. Steve From: Bistrais, Bob [bob.bistr...@maine.gov] Sent: Wednesday, February 20, 2013 4:08 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: queryByShape returns too many results Seems to be line layers. I reset the tolerance in the map file

Re: [mapserver-users] problem with TRUETYPE and GEOMTRANSFORM 'labelpoly': wrong calculation by mapserver ?

2013-02-21 Thread Lime, Steve D (MNIT)
Oliver: Any chance you can create a test case and a ticket? Steve ___ From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Oliver Christen [oliver.chris...@camptocamp.com] Sent: Thursday, February 21, 2013

Re: [mapserver-users] How use style for distinguish the rendering for scales interval.

2013-03-05 Thread Lime, Steve D (MNIT)
I dunno, I'm thinking the problem may lay in the legend code not respecting scale values. What exactly does your GetLegendGraphic call look like? Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of

Re: [mapserver-users] lcc projection doesnt output map

2013-03-18 Thread Lime, Steve D (MNIT)
Your extents need to be given in the projection you set. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Mark Mirrlees [mmirrl...@hotmail.com] Sent: Monday, March 18, 2013 12:15 PM To:

Re: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED)

2013-03-18 Thread Lime, Steve D (MNIT)
I've successfully compiled against 10.0 on SuSE 11 (64-bit). Files were part of an SDE client DVD I had access to. Looks like: root@maps:/opt/sde/sdeexe100 ls * etc: services.sde include: pe_coordsys_from_prj.h pedef.h pef.h pe_names.h sderaster.h sgerr.h sqlerr.h pe_database.h

Re: [mapserver-users] query creation issues

2013-03-20 Thread Lime, Steve D (MNIT)
Hi Mark: Personally I'd steer you to the simplified query templates as described here: http://mapserver.org/development/rfc/ms-rfc-36.html This allows you to put everything in one place and better separates data from presentation. No more header/footer's. Plus you can have multiple

Re: [mapserver-users] query creation issues

2013-03-20 Thread Lime, Steve D (MNIT)
You need to refer to the attributes next... trtd[NAME]/tdtd[TYPE]/td/tr Steve From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Wednesday, March 20, 2013 12:16 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve

Re: [mapserver-users] query creation issues

2013-03-20 Thread Lime, Steve D (MNIT)
Straight item tags like that ARE case sensitive. Try [item name=name] and [item name=type] instead. From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Wednesday, March 20, 2013 1:33 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] query creation

Re: [mapserver-users] MAXSCALEDENOM : different values between two servers

2013-03-27 Thread Lime, Steve D (MNIT)
Exact same mapfile? From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Fernando Norte [ferna...@globalgeo.com.br] Sent: Wednesday, March 27, 2013 9:48 AM To: mapserver-users@lists.osgeo.org Subject:

Re: [mapserver-users] Duplicate results with processquerytemplate

2013-03-29 Thread Lime, Steve D (MNIT)
What type of query are you triggering? From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Bistrais, Bob [bob.bistr...@maine.gov] Sent: Friday, March 29, 2013 11:02 AM To: mapserver-users@lists.osgeo.org Subject:

Re: [mapserver-users] Duplicate results with processquerytemplate

2013-03-29 Thread Lime, Steve D (MNIT)
Is it the selection layer that is duplicated? Steve From: Bistrais, Bob [bob.bistr...@maine.gov] Sent: Friday, March 29, 2013 11:46 AM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate It’s

Re: [mapserver-users] How use the filteritem with a ogr spatialite db

2013-04-04 Thread Lime, Steve D (MNIT)
Filter should look like: FILTER (ID_ING = '%idtpn%' ) If MapServer is to execute it, or: FILTER WHERE ID_ING = '%idtpn%' If OGR is to execute it. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri Sent:

Re: [mapserver-users] PHP Mapscript query

2013-04-10 Thread Lime, Steve D (MNIT)
That error indicates a fundamental problem and I'm not even sure how you would trigger it. Basically it's generated when the type of queryObj passed to a query function is inappropriate for that particular function. Makes me wonder if your install might be mucked up. Do you have a simple test

Re: [mapserver-users] Need help with shpxy centriod in template file

2013-04-12 Thread Lime, Steve D (MNIT)
The centroid in the shpxy code is very basic and not a true centroid, it's just the mid-point of the bounding box of shape in question. It really wouldn't need to be this simple I think. The computation of that value is done on the raw shape and converted to image coordinates. I'm guessing it's

Re: [mapserver-users] Need help with shpxy centriod in template file

2013-04-12 Thread Lime, Steve D (MNIT)
. What do your queries look like? Steve -Original Message- From: Kent Richards [mailto:i...@kentrichards.net] Sent: Friday, April 12, 2013 11:24 AM To: mapserver-users@lists.osgeo.org; Lime, Steve D (MNIT) Subject: Re: [mapserver-users] Need help with shpxy centriod in template file

Re: [mapserver-users] Filter by date

2013-04-15 Thread Lime, Steve D (MNIT)
H... The MapServer mapfile parser will probably choke on /'s. You have a couple of options: Use a wildcard (tweak as necessary): FILTERITEM year FILTER /^[0-9]{1,2}.[0-9]{1,2}.[0-9]{4}$/ Use a logical expression (assumes version 6.x): FILTER ([year] ~ ^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$)

[mapserver-users] Announcing MapServer 6.2.1

2013-04-19 Thread Lime, Steve D (MNIT)
The MapServer Team is pleased to announce version 6.2.1. This is a maintenance release that addresses some 30 tickets identified since the release of version 6.2.0. The complete changelog can be viewed at: http://mapserver.org/development.changelog/changelog-6-2-1.html. The source for this

Re: [mapserver-users] still no results for wfs getfeature request

2013-04-22 Thread Lime, Steve D (MNIT)
Any chance you could run it against a shapefile version of the data? I'm curious if this could be Oracle specific. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Holger Porath [por...@web.de]

Re: [mapserver-users] problem with processquerytemplate and large selection sets

2013-04-23 Thread Lime, Steve D (MNIT)
What does the template look like? --Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Friday, April 19, 2013 3:29 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] problem with

Re: [mapserver-users] problem with processquerytemplate and large selection sets

2013-04-23 Thread Lime, Steve D (MNIT)
and by-pass MapScript altogether. Steve From: Bistrais, Bob [mailto:bob.bistr...@maine.gov] Sent: Tuesday, April 23, 2013 11:57 AM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] problem with processquerytemplate and large selection sets Here

Re: [mapserver-users] Query one return multiple

2013-04-23 Thread Lime, Steve D (MNIT)
I don't think so. If feature ids are sequential you might be able to link to a query that would get you the next feature. Depends on what client environment you're using. You could do this with MapScript though. Steve From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] problem with processquerytemplate and large selection sets

2013-04-23 Thread Lime, Steve D (MNIT)
I mean did you add timing statements to the PHP code or did you muck about in the MapServer/MapScript source. It's possible that PHP is slow, not the specific MapServer calls. From: Bistrais, Bob [mailto:bob.bistr...@maine.gov] Sent: Tuesday, April 23, 2013 12:48 PM To: Lime, Steve D (MNIT

Re: [mapserver-users] Query one return multiple

2013-04-29 Thread Lime, Steve D (MNIT)
the existing result set. - Process result set as you normally would using templates or just writing code against it. Steve From: Weisbender, Eric [mailto:weisb...@wapa.gov] Sent: Wednesday, April 24, 2013 8:24 AM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: Query

Re: [mapserver-users] Question about Mapserver, WMS and Mapcache

2013-05-06 Thread Lime, Steve D (MNIT)
Easiest path is: 1) install mapserver and mapcache 2) configure a mapfile for WMS 3) configure mapcache to access that WMS server (e.g. MapServer) 4) configure your app to access the tile cache (e.g. MapCache) MapServer has mode=tile that can be useful for super quick testing but

Re: [mapserver-users] MapServer 6.2.1 and ArcSDE 10

2013-06-07 Thread Lime, Steve D (MNIT)
Ah, I ran into this to as well, see ticket https://github.com/mapserver/mapserver/issues/4521. I've attached a diff that made things work well for me. Once a fix is put in place for 6.4 (git master) we can backport to 6.2. Steve From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] MapServer 6.2.1 and ArcSDE 10

2013-06-11 Thread Lime, Steve D (MNIT)
, Eric [mailto:weisb...@wapa.gov] Sent: Tuesday, June 11, 2013 9:55 AM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Cc: Klein, Michael Subject: RE: MapServer 6.2.1 and ArcSDE 10 Success! Thanks again for all your help. One last thing, do you suggest any of the other SDE Layer

Re: [mapserver-users] RFC documentation - status would be useful

2013-07-01 Thread Lime, Steve D (MNIT)
Good point (I'm probably the biggest offender)... I'll take a pass through them. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Volz Sent: Monday, July 01, 2013 12:55 PM To:

Re: [mapserver-users] roads shields, and street name labels

2013-07-03 Thread Lime, Steve D (MNIT)
Version 6.2 allows you to define multiple label blocks for one feature. Combine that with repeating labels and it might be accomplished that way. For example, you define one label that defines a shield and draw it at one interval, and then another text label that uses the road name. If they

Re: [mapserver-users] MapServer and ArcSDE

2013-07-11 Thread Lime, Steve D (MNIT)
I'd say the other way around (beer that is)... ;-) Can you open a ticket so this change doesn't get lost? It needs to be pushed into the upcoming 6.4 release. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric

Re: [mapserver-users] error showing map in template

2013-07-15 Thread Lime, Steve D (MNIT)
Tough to tell without a little bit of the mapfile content. Most likely this is from: 1) missing quotes around a string 2) misspelling of a keyword 3) a missing END keyword Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] GSoC Project - ScribeUI: A mapfile editor

2013-07-15 Thread Lime, Steve D (MNIT)
Out of curiosity, what GUI/component framework(s) (e.g. Twitter Bootstrap, jQuery UI, etc...) are being used or considered? Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jessica Lapointe Sent: Monday, July 15, 2013 9:51 AM To:

Re: [mapserver-users] tiled label issue - labels cut off in cases where the label fits on one tile but not the other?

2013-07-18 Thread Lime, Steve D (MNIT)
Web metadata... -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, July 18, 2013 2:00 PM To: thomas bonfort Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] tiled label

Re: [mapserver-users] limits on ITEMNQUERY

2013-08-08 Thread Lime, Steve D (MNIT)
Depending on version there are a couple of ways to do this. - set MAXFEATURES in the mapfile - use the limit attribute when presenting results using new-style templates (e.g [feature limit=10]) tag Neither of these can be controlled by the client. WFS allows this though. Steve

Re: [mapserver-users] draw map at a precise scale

2013-08-13 Thread Lime, Steve D (MNIT)
Via the CGI you can use a combination of mapxy, mode=map, and scale parameters. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Michael McInnis Sent: Monday, August 12, 2013 1:02 PM To: mapserver-users@lists.osgeo.org Subject:

Re: [mapserver-users] MapServer query template questions - shpmidx, shpmidy

2013-08-21 Thread Lime, Steve D (MNIT)
1) layer source projection, 2) yes, use shpxy tag w/projection argument. You must define the layer projection, 3) yes From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Mark Volz [markv...@co.lyon.mn.us]

Re: [mapserver-users] Mapserver 4.9

2013-08-27 Thread Lime, Steve D (MNIT)
All the old tarballs are at: http://download.osgeo.org/mapserver/. I can't recommend using anything that old however. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tara.hemph...@l-3com.com Sent: Tuesday, August 27, 2013 2:34

Re: [mapserver-users] shptree command does not change .qix 'date modified' when re-run?

2013-08-28 Thread Lime, Steve D (MNIT)
Working as expected on SuSE 11, I see the timestamp change. I did notice that the utility doesn't produce an error if it can't create the file for some reason (I tested with permissions), it just fails silently. Maybe you're running into that? Steve From:

Re: [mapserver-users] class expression question

2013-09-05 Thread Lime, Steve D (MNIT)
You can use regexes: CLASSITEM 'road_type' CLASS EXPRESSION /^I-/ ... END or CLASS EXPRESSION ('[road_type]' ~ '^I-') ... END Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, September 05,

Re: [mapserver-users] Labels stopped working after update

2013-09-13 Thread Lime, Steve D (MNIT)
Depends on how big of a jump in version you made. 6.2 now features multiple labels per class. I think you need to do something like: $label = $oAirportsClass-getLabel(0); $label-color-setRGB(0,0,0); $label-set(font, verdana); $label-set(size, MS_LARGE); $label-set(position, MS_AUTO);

Re: [mapserver-users] [Cluster:FeatureCount] is string?

2013-09-13 Thread Lime, Steve D (MNIT)
Really need Tamas to comment on the clustering specifics but to clarify, MapServer stores all attributes as strings. Then they are cast as necessary when referenced in an expression. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] No points selected with queryByShape

2013-09-17 Thread Lime, Steve D (MNIT)
Is your feature layer queryable? That is, does is have a value set for TEMPLATE? Even 'TEMPLATE void' will do. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Michael McInnis Sent: Tuesday, September 17, 2013 4:51 PM To:

Re: [mapserver-users] No points selected with queryByShape

2013-09-17 Thread Lime, Steve D (MNIT)
, September 17, 2013 5:23 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] No points selected with queryByShape Not sure I follow this. Template is an empty layer in my map file we use to add shapes to for display. My Feature layer is a shapefile of business

Re: [mapserver-users] WMS server error. Invalid layer(s) given in the LAYERS parameter

2013-09-23 Thread Lime, Steve D (MNIT)
The error means you're asking for a layer in you WMS request that doesn't exist in the service. Basically it's not defined in the mapfile. I'd guess you have a typo someplace. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] Bad BBOX passed to db query

2013-09-24 Thread Lime, Steve D (MNIT)
It would be helpful to see the mapfile before and after. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jack Walters Sent: Monday, September 23, 2013 6:13 PM To: mapserver-users@lists.osgeo.org Subject: Re:

Re: [mapserver-users] Old code must be deprecated

2013-09-27 Thread Lime, Steve D (MNIT)
Hi Michael: It should look like: $layer-queryByShape($circle); for($i=0; $i$layer-getNumResults(); $i++) { $shape = $layer-getShape($layer-getResult($i)); # do whatever with the shape } The RFC that describes the changes is here:

Re: [mapserver-users] Can variables be used in PROCESSING?

2013-10-01 Thread Lime, Steve D (MNIT)
Correct, currently it doesn't. Substitution does have a performance impact (have to check/validate potential values against all places it's allowed) so we've been mindful of use. You could hack mapfile.c (see layerSubstituteString() function) and try it... Steve -Original Message-

Re: [mapserver-users] Adding stackexchange to our support channels

2013-10-04 Thread Lime, Steve D (MNIT)
I think this is an ok idea - I use stackexchange constantly for answers. The issue I see is adding another support channel to watch and knowing what to recommend to users. Are the mailing list and stackexchange considered equal? Would we want to move certain questions from one to the other to

Re: [mapserver-users] MapCache and a transparent layer

2013-11-02 Thread Lime, Steve D (MNIT)
What do you see if you use the MapCache demo? E.g. http://myserver/mapcache/demo From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of James_in_Utah [james.ev...@hill.af.mil] Sent: Friday, November 01,

Re: [mapserver-users] Segfaults from MS 6.4

2013-11-05 Thread Lime, Steve D (MNIT)
I guess you need the combination of call parameters and configuration that produced it. Can you use the timestamps in combination with the webserver logs (access and error) to identify likely calls? Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] interpolation maps

2013-11-11 Thread Lime, Steve D (MNIT)
Maybe something like a heat map? From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Stephen Woodbridge [wood...@swoodbridge.com] Sent: Monday, November 11, 2013 11:31 AM To:

Re: [mapserver-users] Transparent (OPACITY) color(S)

2013-12-02 Thread Lime, Steve D (MNIT)
I don't believe this has ever been possible. If I understand you, the rendering order is: 1. Draw aerial photo 2. Draw lake 3. Draw islands (i.e. holes) in lake Step 2 has already mucked with pixels that you're drawing (again) in step 3. You'd need to combine the lake and

Re: [mapserver-users] pink tiles on the edge of a cached layer

2013-12-04 Thread Lime, Steve D (MNIT)
I wouldn't think you'd need to mess with the bbox at all. Pink tiles are from URLs like:

Re: [mapserver-users] Server hacked via cgi-bin - Mapserver, PHP, …? How to better protect the machine now?

2013-12-09 Thread Lime, Steve D (MNIT)
Hi Stefan: We have fixed a few security issues over time and like any software there are most certainly existing defects. That said, I am unaware of any real-world exploit of the mapserv binary. Doesn't mean it hasn't happened, just that nothing has been communicated to the development team.

Re: [mapserver-users] Mapserver Expressions

2013-12-16 Thread Lime, Steve D (MNIT)
Did you get this fixed? The layer looks right to me. --Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Charlie Allgrove Sent: Wednesday, December 11, 2013 11:11 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users]

Re: [mapserver-users] Displaying a line between objet and label

2013-12-29 Thread Lime, Steve D (MNIT)
Hi Thomas: MapServer 6.4 supports leader lines, see http://mapserver.org/development/rfc/ms-rfc-81.html. You could also think about computing label points for the lines and using those as a point layer for labeling which might open up some options. Kinda depends on the nature of your data

Re: [mapserver-users] RE Linear (left to right) Legend . . .

2014-01-03 Thread Lime, Steve D (MNIT)
There's not a way using just the mapfile. I'm sure you could do something in MapScript using class names and calls to create icons, either via WMS or using mode=legendicon to get components. That is, render the map and then add to the resulting image. Steve From:

Re: [mapserver-users] How to deal with (visible) CONNECTION information in .MAP file for WMS purposes

2014-01-06 Thread Lime, Steve D (MNIT)
You can also encrypt the database password using MapServer utilities. I do the following: - store the mapfiles outside web htdocs directory - encrypt database passwords (if in a shared hosting environment) - use webserver environment variables to reference mapfiles... this obfuscates your

Re: [mapserver-users] Displaying a line between objet and label

2014-01-06 Thread Lime, Steve D (MNIT)
What sort of an error message to you receive? --Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of wiltomap [wilt...@gmail.com] Sent: Monday, January 06, 2014 7:50 AM To:

Re: [mapserver-users] Zooming with CGI Parameter

2014-01-17 Thread Lime, Steve D (MNIT)
The zooming assumes the user is interacting with an image described by imgext and imgsize, so you're close. You can try those parameters instead of mapext and mapsize. On thing to note that the supplied extent will be adjusted to fit the size provided. This means the supplied extent may not

Re: [mapserver-users] featureInfo data mapping

2014-01-20 Thread Lime, Steve D (MNIT)
The templating supports some basic functionality like this, for example: [item name=foo pattern=1 value=bar] so where foo=1 we see bar. If the pattern doesn't march nothing is output. You can have multiple occurrences to mimic an if-then-else construct. Steve

Re: [mapserver-users] Point between 2 tiles disappearing

2014-01-20 Thread Lime, Steve D (MNIT)
SIZE 6 END END END #LAYER END #MAP Thanks :) Jonathan Beliën Geo-6 De : Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Envoyé : vendredi 17 janvier 2014 00:28 À : Geo-6; mapserver-users@lists.osgeo.org Cc : ms4w-us

Re: [mapserver-users] Can QUERY mode process XY as map/data coordinates instead of pixel XY?

2014-01-27 Thread Lime, Steve D (MNIT)
://dl.dropboxusercontent.com/u/108047961/debug/map-3.jpg Eduardo Patto Kanegae http://www.webmapit.com | @webmapit Eduardo Patto Kanegae http://www.webmapit.com | @webmapit 2014-01-27 Lime, Steve D (MNIT) steve.l...@state.mn.us: Hi Eduardo: It's not real clear what you're trying accomplish, but I can say

Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS?

2014-01-28 Thread Lime, Steve D (MNIT)
Validation is required for substitution to work... -Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) [jukka.rahko...@mmmtike.fi] Sent: Monday, January 27, 2014 11:15 PM To:

Re: [mapserver-users] Help with expression

2014-01-28 Thread Lime, Steve D (MNIT)
Hmmm... If you make a request against the WFS server outside MapServer what does the result look like? Ideally you'd have the WFS server do the filtering and avoid sending extra features over the wire. Steve From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS?

2014-01-28 Thread Lime, Steve D (MNIT)
Those need to be removed, there's a validation section a little later in that same document that takes precedence. I'll create a documentation ticket. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of

Re: [mapserver-users] PostGIS Data Query vs Expression

2014-02-07 Thread Lime, Steve D (MNIT)
Anything you can do in the data definition limits the number of features sent over the network, so that's preferable. Class expressions are generally used to sort features you want to draw differently. Steve From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] Geotiff OUTPUTFORMAT fails in browse mode

2014-02-19 Thread Lime, Steve D (MNIT)
Browse mode is for old-style interactive clients. That is, user click - send to mapserver - mapserver builds new page. You wouldn't use mode=browse to create georeferenced output like you're doing. Mode=map or WMS are the way to go. Steve From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] WMS image display

2014-02-25 Thread Lime, Steve D (MNIT)
That's a weird one. It kinda sounds like a data issue for that certain area more than a mapserver issue. I mean, if there was something funky going on with image size and scale computation I'd expect all images at that zoom level and image size to be blank, not just one. I'd recommend further

Re: [mapserver-users] Upgrading to 6.4.x

2014-02-25 Thread Lime, Steve D (MNIT)
Can you post pics? From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Tuesday, February 25, 2014 3:09 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Upgrading to 6.4.x All, Has anyone

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Lime, Steve D (MNIT)
Could also use class groups and send the appropriate group value with your request. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, March 03, 2014 10:46 AM To:

Re: [mapserver-users] JSON template

2014-03-12 Thread Lime, Steve D (MNIT)
That's the appropriate work around at this point. Typically I'll put a few things that I know will always be present at the end. For example the if the query is triggered by a point query I prepend the x/y: 'point':{ 'epsg:26915': [[mapx], [mapy]], 'epsg:4326': [[maplon], [maplat]] }

Re: [mapserver-users] Fwd: Wrong/different legend generation

2014-03-30 Thread Lime, Steve D (MNIT)
Certainly looks like a bug but it would help to see the layer defs for one of the solid fills layers and one of the line layers. Are you setting map resolution explicitly? --Steve From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] JSON template dependencies

2014-04-17 Thread Lime, Steve D (MNIT)
Hi Rich: Crap, I had meant to connect with your on this back when you first posted it. I don’t think this is related to the MIMETYPE. I use an output format very similar to the you do. I think what’s happening is that MapServer doesn’t know to use the geojson output format and falls back to a

[mapserver-users] FW: [OSGeo-Discuss] Community voting open through May 5th

2014-04-22 Thread Lime, Steve D (MNIT)
Hi all: A chance to contribute to the upcoming FOSS4G - Portland event. There are several MapServer/MapCache/TinyOWS related presentations in the mix. Steve -Original Message- From: discuss-boun...@lists.osgeo.org [mailto:discuss-boun...@lists.osgeo.org] On Behalf Of Eli Adam Sent:

Re: [mapserver-users] labelpoly buffer, how to increase??

2014-04-23 Thread Lime, Steve D (MNIT)
Hi Bob: I don't think so... It's a limitation of the implementation and something I hope to correct by allowing you to buffer the label polygon. You probably can hack the source if you wanted to change the value globally. I can look if you'd like. Steve From:

Re: [mapserver-users] Label once per shape

2014-05-13 Thread Lime, Steve D (MNIT)
Try adding this to the States layer: PROCESSING 'LABEL_NO_CLIP=1' This tells MapServer to compute a label point before clipping the geometry. Basically it fixes the label point. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] About FILTER and FILTERITEM

2014-05-14 Thread Lime, Steve D (MNIT)
FIlters are used primarily under the hood for certain types of query operations. The main differences are: - FILTERs are defined in the native query language of the underlying driver. So for PostGIS you'd actually write a little SQL snippet. - FILTERs are applied when data are pulled from

Re: [mapserver-users] Time to make a new demo?

2014-05-14 Thread Lime, Steve D (MNIT)
I agree with you... Almost all of our demos are pretty dated. Personally I always liked the way OpenLayers approached things with concise demos that showed off a particular bit of functionality. I wonder if our regression tests (msautotest) might serve this purpose and if web wrapper could be

Re: [mapserver-users] itemquery and validation

2014-05-27 Thread Lime, Steve D (MNIT)
Correct. We do it this way since many drivers don't require a QITEM. For example, you could author a qstring that leverages multiple columns. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Eichner,

Re: [mapserver-users] Ubuntu 14.04 and Mapserver 6.4.1-2

2014-06-02 Thread Lime, Steve D (MNIT)
The difference is MapServer version, not Ubuntu. You *must* define a validation pattern (a regex) for qstring values. In either the web or layer block (depending on your app) you'd do something like: VALIDATION 'qstring' '^\/ESD-[0-9]*\/i$' END Depends on what sort of values you might see of

Re: [mapserver-users] What is the default coordinate system used in MapServer (if no projection is defined)?

2014-06-02 Thread Lime, Steve D (MNIT)
MapServer has no default, it's just uses a simple Cartesian coordinate system. HOWEVER, the CGI does have some hooks that tries to auto-detect lat/lon coordinates and automatically convert them to what's set in the MAP's projection block. I believe that only kicks in if there is a projection

Re: [mapserver-users] Label BBox Computation

2014-06-10 Thread Lime, Steve D (MNIT)
Are you looking for bboxes for all labels, regardless of visibility? Basically the label cache itself. It should be possible but I’m not sure how generally useful it would be. You can hack maplabel.c to do just this if you’d like to play around. That said, that’s just a picture and it won’t be

Re: [mapserver-users] WMS/WFS set-up and query time

2014-06-10 Thread Lime, Steve D (MNIT)
I believe WMS/WFS layers fetch/cache the necessary data from the remote server before rendering starts. Perhaps there’s a less than speedy remote server? --Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Travis Kirstine Sent:

Re: [mapserver-users] TileIndex - accuracy and truncation ?

2014-06-12 Thread Lime, Steve D (MNIT)
The world files are read internally by GDAL, not MapServer. I wonder if there's a way to test this just using GDAL and take MapServer out of the equation completely. Is there any projection being done? That could also be a source of slivers. Is it possible to generate the tiles with just a bit

Re: [mapserver-users] working with date formats in identify templates

2014-06-13 Thread Lime, Steve D (MNIT)
There's nothing inherent in templates to do this for you but there are options: 1. Use javascript in the template, something like: tr td align=rightbGIS Date:/b/td script var date_jf = '[item name=Date]'; // process the date into something prettier var date = ...;

Re: [mapserver-users] Why $map-scaledenom returns -1 ?

2014-06-16 Thread Lime, Steve D (MNIT)
Scale can only be computed if there is a map extent and map size set. Are you doing so? Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Vladimir Sent: Monday, June 16, 2014 1:12 AM To: mapserver-users Subject: [mapserver-users]

Re: [mapserver-users] Why $map-scaledenom returns -1 ?

2014-06-17 Thread Lime, Steve D (MNIT)
); $map-preparequery(); $scale=$map-scaledenom; It works for me, but I am not sure that is standard method. Can this be used? Best regards Vladimir 16 2014, 15:43 UTC от Lime, Steve D (MNIT) steve.l...@state.mn.usmailto:steve.l...@state.mn.us: Scale can only be computed if there is a map extent

Re: [mapserver-users] shapeObj classIndex

2014-06-17 Thread Lime, Steve D (MNIT)
Hi Meher: Can you post a quick snippet of your code? Which language? Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mohamed Meher TOUHAMI Sent: Monday, June 16, 2014 12:32 PM To: mapserver-users@lists.osgeo.org Subject:

Re: [mapserver-users] Why $map-scaledenom returns -1 ?

2014-06-20 Thread Lime, Steve D (MNIT)
,$maxX,$maxY); $map-preparequery(); $scale=$map-scaledenom; } Can't understand what's wrong. Any idea ? Best regards Vladimir Tue, 17 Jun 2014 14:29:53 + от Lime, Steve D (MNIT) steve.l...@state.mn.usmailto:steve.l...@state.mn.us: This is a WMS request? I’d think MapServer would populate

Re: [mapserver-users] color attribute question

2014-06-23 Thread Lime, Steve D (MNIT)
You can compute a color string using PostgreSQL string functions: SELECT percentage || ‘ 0 0’ AS color FROM … Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Do Wi Sent: Sunday, June 22, 2014 3:50 PM To:

  1   2   3   4   5   >