Re: [mapserver-users] WMS non-square extent query using openlayers

2012-01-25 Thread Frank Warmerdam
On Wed, Jan 25, 2012 at 3:34 PM, David Quinn wrote: > Just to clarify - so non-square results should be returned without doing > anything special on the mapserver side? David, That is my understanding in WMS mode. >> >> >> But if I were you, I'd start by examining that WMS request is actually >

[mapserver-users] RE: javascript in html templates

2012-01-25 Thread KenHeer1
I did find the method you outlined but I was still having problems. After digging deeper into the old javascript, I found where I could intercept the response and process it as I needed; basically applying the raw html the way I was before, then executing the script tags to replace the placeholders

Re: [mapserver-users] WMS non-square extent query using openlayers

2012-01-25 Thread David Quinn
Frank, Thanks for your comments. On Wed, Jan 25, 2012 at 6:04 PM, Frank Warmerdam wrote: > David, > > MapServer is definately able to return results that are non-square, > and further that do not have 1:1 aspect ratio with the geo request > (thus resulting in requesting so called "non square pix

RE: [mapserver-users] RE: javascript in html templates

2012-01-25 Thread Lime, Steve D (DNR)
Yes, the MapServer-processed template is the AJAX response. If you display the AJAX content in a new window (e.g. window.open(...)) or frame then javascript in the content will be executed because it's essentially a new web page. The problem occurs when you want to display the AJAX content in a

Re: [mapserver-users] WMS non-square extent query using openlayers

2012-01-25 Thread Frank Warmerdam
David, MapServer is definately able to return results that are non-square, and further that do not have 1:1 aspect ratio with the geo request (thus resulting in requesting so called "non square pixels"). In WMS mode I believe non-square pixel support is enabled by default - I think this is not th

[mapserver-users] WMS non-square extent query using openlayers

2012-01-25 Thread David Quinn
Hi List, Is it possible to receive a non-square tile, or collection of tiles, from a WMS query? I'm using openlayers to send a WMS query based on a user-chosen extent of a rectangular polygon. My javascript is as follows: WMSLayer = new OpenLayers.Layer.WMS( "layerName",

RE: [mapserver-users] shape->draw problem

2012-01-25 Thread Bistrais, Bob
On further investigation, it looks like the query statement is the cause of trouble. There appears to be some change in syntax in MS 6.x. I've been trying to re-write it, but to no avail. Can anyone provide an example for a query statement for a shapefile data source, something like this: $valu

[mapserver-users] RE: javascript in html templates

2012-01-25 Thread KenHeer1
I hope you might be able to help me out a little further, I am still a little new to this. I'm using Openlayers to perform my getfeatureinfo request. The Mapserver Template file that is returned *is* my ajax response, right? That response is a full html page with the javascript in it. If I unders

Re: [mapserver-users] Relative path's in mapfile

2012-01-25 Thread Smith, Michael ERDC-CRREL-NH
Daniel, Is there anyway to get the IMAGEURL set similarly? To set a base path and have mapserver determine an absolute URL plus the base path. Right now, if you want the temp images to work with Google Earth, you need a absolute URL but if you access mapserver via multiple methods (eg inside and v

Re: [mapserver-users] Relative path's in mapfile

2012-01-25 Thread Jeff McKenna
On 12-01-24 10:16 PM, Richard Greenwood wrote: A more common and flexible approach is to set and environment variable in your Apache httpd.conf file, for example SetEnv MYMAP "C:/Files/apps/demo/demoCV.map" Those are forward slashes not back slashes even though it's Windows. And your URL is

Re: [mapserver-users] Relative path's in mapfile

2012-01-25 Thread Rahkonen Jukka
Daniel Morissette wrote: > Adding hardcoded vendor-specific params to the automatically generated > URL sounds like a nice idea. We'd just need someone to champion it ;-) I started to think that I made an online demo when I was playing with this some time ago. This one is using variable "sql" a

RE: [mapserver-users] shape->draw problem

2012-01-25 Thread Bistrais, Bob
Hi Alan, I worked with the nextShape() a little bit as follows: for ($i=0; $i<=($oLayer_master->getNumResults() - 1); $i++) { while($oShape = $oLayer_master->nextShape()){ $oResult = $oLayer_master->getResult($i); $oLayer_mas

Re: [mapserver-users] Relative path's in mapfile

2012-01-25 Thread Daniel Morissette
On 12-01-25 10:04 AM, Rahkonen Jukka wrote: Hi, I have been thinking that the the MAP METADATA parameter "wms_onlineresource" might have a setting "wms_onlineresource" "auto" It would capture the url that was used for reading the GetCapabilities and place the reasonable parts of it automatic

Re: [mapserver-users] Relative path's in mapfile

2012-01-25 Thread Rahkonen Jukka
Hi, I have been thinking that the the MAP METADATA parameter "wms_onlineresource" might have a setting "wms_onlineresource" "auto" It would capture the url that was used for reading the GetCapabilities and place the reasonable parts of it automatically into GetCapabilities response. This opti

Re: RE [Polluriel potentiel] Re: [mapserver-users] Relative path's in mapfile

2012-01-25 Thread Daniel Morissette
On 12-01-25 9:01 AM, steve.tout...@inspq.qc.ca wrote: How do you manage the server/domain name in the mapfile for wms_onlineressource when migrating from dev to prod environment. Per example, http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP Do we need to manually change localhost:80before migr

RE [Polluriel potentiel] Re: [mapserver-users] Relative path's in mapfile

2012-01-25 Thread Steve . Toutant
How do you manage the server/domain name in the mapfile for wms_onlineressource when migrating from dev to prod environment. Per example, http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP Do we need to manually change localhost:80 before migrating to prod? thanks steve Richard Greenwood @list

[mapserver-users] Re: GetFeature find data with GET, not with POST

2012-01-25 Thread Rahkonen Jukka
Hi, I can repeat the problem with a small shapefile with just a handful of polygons. Testdata, mapfile and a WFS request for testing are all included in the ticket http://trac.osgeo.org/mapserver/ticket/4166 -Jukka Rahkonen- Jukka Rahkonen wrote: > Hi, > > All I know for sure is that BBOX f