[mapserver-users] python scripting and layers

2012-05-29 Thread Jessica Clarke
Hi all, I'm just playing around with some ideas at the moment, so I'm not sure if this will make sense... Is it possible to use a python script to add a layer to an existing mapfile? I have an appliaction that sends a request to mapserver for a map, but I want to be able to add a related shape

Re: [mapserver-users] Restricted WMS access

2012-05-29 Thread Richard Suematsu
I don't think MapServer does this itself. We've done this by proxying MapServer behind tomcat and using a servlet filter to validate the user. Rich -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alberto Naje

Re: [mapserver-users] OGRVRT Data Sources and SQL server

2012-05-29 Thread Robert Sanson
Hi Chris You need to define the primary key in your .ovf file: farmgate_id I put the .ovf file in the same directory as my .map file, then Mapserver can find it: CONNECTION "./farmgates.ovf" All thebest, Robert >>> Chris Jackson 29/05/2012 8:57 p.m. >>> Hi Robert Thanks for the reply, you

Re: [mapserver-users] On a wms-request force the add of a layer when another layer is requested

2012-05-29 Thread Rahkonen Jukka
But doesn't it work so that &layers=1 gives you layer1+layer2? If you then move REQUIRES from Layer2 to Layer1 then &layers=2 should give you layer2+layer1. I will make a test tomorror. -Jukka Rahkonen- Andrea Peri wrote: Hi Jukka, The REQUIRES element work

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread Lime, Steve D (DNR)
Created a documentation ticket: https://github.com/mapserver/mapserver/issues/4332 Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Denis Rykov Sent: Tuesday, May 29, 2012 10:39 AM To: thomas bonfort Cc: mapserver-users@lists.os

Re: [mapserver-users] On a wms-request force the add of a layer when another layer is requested

2012-05-29 Thread Andrea Peri
Hi Jukka, The REQUIRES element work this mode: Layer2 is visible only when also Layer1 is in the request So a request like this: ...&layers=layer1,layer2 is visible layer1 + layer2 In a request like this: ...&layers=layer2 nothing is visible. Instead I need this other possibility: on a req

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread thomas bonfort
ftr, just added an autotest for this https://github.com/mapserver/msautotest/commit/d6af73dac1bfe2cf62b056202f86c4ab8038dc06 On Tue, May 29, 2012 at 5:39 PM, Denis Rykov wrote: > Awesome! It is works now in my 6.1-dev. Unfortunatly I can't find any > reference about this feature in docs. > > > O

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread Denis Rykov
Awesome! It is works now in my 6.1-dev. Unfortunatly I can't find any reference about this feature in docs. On Tue, May 29, 2012 at 4:09 PM, thomas bonfort wrote: > No, this is currently not possible. > http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your > issue, with that you c

Re: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source

2012-05-29 Thread John Callahan
1) I use average as well. No problems or complaints so far. 2) I use uncompressed TIFs when I can and not worry about file sizes unless necessary. If compression is necessary, I use LZW first, then JPEG (75 - 90) if more compression is needed. They all work fine. 3) Also have never heard of t

Re: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source

2012-05-29 Thread Rahkonen Jukka
Hi, 1) I am using average and our users have not complaint. But it is simple to test, you can create external overviews with -ro switch and try all the alternatives within on hour or faster. It will be nice to read about your experience. Take some timings too. 2) Jpeg in tiff suits pretty well

[mapserver-users] optimize raster for mapserver - gdal geoTIFF source

2012-05-29 Thread Mark Volz
Hello, I added a GeoTIFF to one of my .map files. When zoomed in the image appears fine. When I zoom out the image appears grainy, especially when looking at dirt fields. I assume the problem is that I built the overviews with the wrong resampling method when I built overviews with gdaladdo.

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread Lime, Steve D (DNR)
The geomtransform Thomas mentions below is currently supported. It was added as part of RFC 64. Give it a try... RFC 72 will likely be in the next release. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf

Re: [mapserver-users] On a wms-request force the add of a layer when another layer is requested

2012-05-29 Thread Rahkonen Jukka
Hi, Layer2 should come always together with Layer1 If you put this line in Layer2 definitions REQUIRES "[Layer1]" Without testing I cannot guarantee that I remember it right. For me the logic of keyword "REQUIRES" feels reversed because my brain says that Layer2 is rather required by Layer1

[mapserver-users] On a wms-request force the add of a layer when another layer is requested

2012-05-29 Thread Andrea Peri
Hi, I'm using MapServer trunk version. Thx to Stephen Woodbridge response, (http://lists.osgeo.org/pipermail/mapserver-users/2012-May/072326.html) I'm able to avoid the use of a single layer of a group. Now I have another (perhaps) more complex question. I need to realize a map file with a conf

Re: [mapserver-users] OGRVRT Data Sources and SQL server

2012-05-29 Thread Jeff McKenna
On 12-05-29 8:40 AM, Jeff McKenna wrote: > On 12-05-29 5:57 AM, Chris Jackson wrote: >> Hi Robert >> >> Thanks for the reply, you have got me to a point where ogrinfo >> commandline processes an ovf file using sql authentication fine. >> However it will still not display using shp2img commandline

Re: [mapserver-users] OGRVRT Data Sources and SQL server

2012-05-29 Thread Jeff McKenna
On 12-05-29 5:57 AM, Chris Jackson wrote: > Hi Robert > > Thanks for the reply, you have got me to a point where ogrinfo > commandline processes an ovf file using sql authentication fine. > However it will still not display using shp2img commandline (other layer > in mapfile draws fine). My layer

Re: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ?

2012-05-29 Thread thomas bonfort
For reference, when the disk cache has symlinking enabled: case 1: 96M case 2: 147M On Tue, May 29, 2012 at 1:06 PM, thomas bonfort wrote: > Salut Ludovic, hi Andrew, > > I've investigated a bit more on the disk space issue with berkeley db > backends, and here are some of my findings. To summ

Re: [mapserver-users] MapCache - A way to reduce BerkeleyDB Cache size ?

2012-05-29 Thread thomas bonfort
Salut Ludovic, hi Andrew, I've investigated a bit more on the disk space issue with berkeley db backends, and here are some of my findings. To summarize, the space occupancy/efficiency is closely tied to the size of the images stored in the cache, and the configured pagesize of the bdb backend.

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread thomas bonfort
Unfortunately, using offset will produce the same artifacts as the proposed initial solution. -- thomas On Tue, May 29, 2012 at 11:34 AM, Havard Tveite wrote: > You could try OFFSET - see http://mapserver.org/mapfile/style.html > > "For lines, an OFFSET of n -99 will produce a line geometry that

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread Havard Tveite
You could try OFFSET - see http://mapserver.org/mapfile/style.html "For lines, an OFFSET of n -99 will produce a line geometry that is shifted n SIZEUNITS perpendicular to the original line geometry. A positive n shifts the line to the right when seen along the direction of the line. A negative n

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread thomas bonfort
No, this is currently not possible. http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your issue, with that you could do: style  outlinecolor 255 0 0  geomtransform (buffer([shape], -1)) end style  outlinecolor 255 0 0  width 1 geomtransform (buffer([shape], 1)) end I have no

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread Denis Rykov
Thanks for quick response! Are any ways to draw internal line (255 255 255 color in your example) with transparency (-1 -1 -1 doesnt work, in this case I see red line, but I would like to see underlying layer). On Tue, May 29, 2012 at 3:49 PM, thomas bonfort wrote: > something like this should w

Re: [mapserver-users] OGRVRT Data Sources and SQL server

2012-05-29 Thread Chris Jackson
Hi Robert Thanks for the reply, you have got me to a point where ogrinfo commandline processes an ovf file using sql authentication fine. However it will still not display using shp2img commandline (other layer in mapfile draws fine). My layer definition is fairly simple, but I am scratching my h

Re: [mapserver-users] Border style of polygon

2012-05-29 Thread thomas bonfort
something like this should work, with no "symbol" style outlinecolor 255 0 0 width 3 end style outlinecolor 255 255 255 width 1 end -- thomas On Tue, May 29, 2012 at 10:45 AM, Denis Rykov wrote: > I have WMS polygonal layer and want to draw polygon's border with the > following style: >

[mapserver-users] Border style of polygon

2012-05-29 Thread Denis Rykov
I have WMS polygonal layer and want to draw polygon's border with the following style: http://i.stack.imgur.com/J2A7x.png My symbol's description: SYMBOL NAME "double_line" TYPE vector POINTS 0 0 1 0 -99 -99 0 1 1 1 END END CLASS section in mapfile: CLASS STYLE OUTLINECOLOR 2