Re: [mapserver-users] MapCahe question -- Caching the first coupleofzoom levels

2013-11-25 Thread Armin Burger
on Unix systems I would use as workaround for this a cron job, e.g. running a script every 5 minutes and having something like find /path/to/zoom/level -name "*.png" -mmin +5 -exec rm {} \; which deletes all PNG files older than 5 minutes armin On 11/25/2013 03:31 PM, James_in_Utah wrote: Th

Re: [mapserver-users] MapCache and the GoogleCRS84Quad TileMatrixSet

2013-04-10 Thread Armin Burger
illogical quirk. FWIW, I believe I had brought this up as a change request to the wmts working group, but this was ignored as I am not a member. best regards, thomas On 9 April 2013 20:57, Armin Burger mailto:armin.bur...@gmx.net>> wrote: Dear all I have a question regarding th

[mapserver-users] MapCache and the GoogleCRS84Quad TileMatrixSet

2013-04-09 Thread Armin Burger
Dear all I have a question regarding the GoogleCRS84Quad TileMatrixSet defined in MapCache. MapCache specifies this in the docs with the first level [0] as pixel resolution 0.70312500 deg, and an extent of -180 -90 180 90 and returns the GoogleCRS84Quad TileMatrixSet in the Capabilities re

Re: [mapserver-users] PHP-Mapscript and PHP Apache DSO - any progress?

2012-11-20 Thread Armin Burger
William I cannot say anything for Mac OS in this respect. But at least for Linux running Apache in the classical pre-fork MPM I did not experience problems with PHP-MapScript running as an Apache DSO. Also some stress tests with benchmarking using multiple WMS requests with on MapScript OWS a

Re: [mapserver-users] MapServer 6.0.1 ignoring WMS options?

2012-03-05 Thread Armin Burger
David According to the WMS specs, BBOX parameters for getMap requests are comma-separated, you are using spaces only (url-encoded as %20). I would expect MS to return an exception instead of ignoring this. armin On 05/03/2012 21:20, David Miller wrote: Hi list! We have MapServer 6.0.1 inst

Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]

2012-03-05 Thread Armin Burger
Hello everybody there is a quite flexible and easy to use solution to achieve all these requirements with additional (non-standard) request parameters: using MapScript bindings for OWS/WxS requests (see e.g. http://mapserver.org/ogc/mapscript.html). I use both PHP and Python bindings and every

Re: [mapserver-users] WFS version and axis order

2012-03-01 Thread Armin Burger
On 01/03/2012 18:34, Rahkonen Jukka wrote: Hi, Unfortunately axis order in WFS 1.1.0 (or in GML3) is complicated. I need a second option so I can respond to a customer regarding their concerns of using our> WFS services. Their concern is mainly confidence and the ability of moving forwar

Re: [mapserver-users] PHP-Mapscript, Posgresql, Postgis, dynamic query without a map file

2012-01-15 Thread Armin Burger
I think setting the layer template to an *empty* string does not make the layer queryable. Set it to whatever non-empty string and try again, like $layer->set("template", "pippo"); PHP MapScript (or maybe PHP in general) seems to treat empty strings typically equivalent to null or false. arm

Re: [mapserver-users] MapCache compilation error; ld cannot find libraries

2012-01-02 Thread Armin Burger
thanks again Thomas, with this setting for the apsx2 it compiled and installed fine. Armin On 02/01/2012 15:18, thomas bonfort wrote: hmm, the apxs2 command does seem to need the -Wl flag passed to it -- thomas On Mon, Jan 2, 2012 at 14:41, Armin Burger wrote: Thomas thanks a lot for the

Re: [mapserver-users] MapCache compilation error; ld cannot find libraries

2012-01-02 Thread Armin Burger
Thomas thanks a lot for the quick help. OS is Ubuntu 10.04 64bit, libtool version is 2.2.6b. I made the changes as you suggested and compilation continued. But then another error appeared: /usr/bin/apxs2 -Wc," -DUSE_MEMCACHE -DUSE_PCRE -DUSE_OGR -DUSE_GEOS -DUSE_SQLITE -DUSE_PIXMAN-DLIN

[mapserver-users] MapCache compilation error; ld cannot find libraries

2012-01-02 Thread Armin Burger
Hi all I tried to compile MapCache from Mapserver trunk and get the error /usr/share/apr-1.0/build/libtool --mode=link --tag CC gcc -rpath /usr/local/lib ./lock.lo ./service_ve.lo ./source.lo ./tileset.lo ./core.lo ./image.lo ./imageio_jpeg.lo ./http.lo ./imageio_png.lo ./service_wms.lo ./gri

Re: [mapserver-users] Get MAP file CLASSes with no data - empty

2011-12-19 Thread Armin Burger
Michal I hope I understood your question correctly...: the following code returns all class indexes for the provided layer and full map extent that appear in the data. $me = $map->extent; $layer->open(); $status = $layer->whichShapes($me); $classWithData = array(); while ($shape = $layer->nex

[mapserver-users] Problem with PHP MapScript $layer->nextShape()

2011-12-09 Thread Armin Burger
Hi all I tried to use with PHP MapScript the function for the LAYER class "nextShape()" as described in the documentation with a small script example. The short version is $extentMap = $map->extent; $status = $layer->whichShapes($extentMap); $shape = $layer->nextShape(); This works fin

Re: [mapserver-users] Re: MapScript WMS request

2011-09-08 Thread Armin Burger
Puneet if you're interested in general in some sample code using PHP or Python MapScript for OWS request handling, please find some classes here: http://p-ows.pmapper.net/trac/browser/p-ows/trunk armin On 08/09/2011 20:05, Mr. Puneet Kishor wrote: On Sep 8, 2011, at 1:03 PM, thomas bonfort

Re: [mapserver-users] Re: MapScript WMS request

2011-09-08 Thread Armin Burger
in PHP MapScript should be something like $map->setMetaData("ows_enable_request", "*"); in Python: map.setMetaData("ows_enable_request", "*") armin On 08/09/2011 20:05, Mr. Puneet Kishor wrote: On Sep 8, 2011, at 1:03 PM, thomas bonfort wrote: it goes in map->web->metadata I guessed

Re: [mapserver-users] character encoding

2011-09-07 Thread Armin Burger
QGIS has quite nice possibilities to select the encoding when opening and writing the various supported vector data formats (including e.g. shape and KML). armin On 07/09/2011 17:59, Chris Jackson wrote: Hi all I am having some issues with special characters in my application (sure I am not

Re: [mapserver-users] Mapscript and wms client

2011-09-05 Thread Armin Burger
Chris Is it just this specific WMS or any other as well? I think the NASA JPL is very often not working or responding (it currently returns HTTP error 403 for getCapalities). It's even more like I cannot remember anymore when it was working... Maybe the URL has just changed... Armin On 05/0

Re: [mapserver-users] Raster parameter PROCESSING "BANDS=..." and ECW files

2011-09-04 Thread Armin Burger
On 04/09/2011 19:07, Frank Warmerdam wrote: On 11-09-04 09:33 AM, Armin Burger wrote: Hi all I noticed a strange behaviour of MapServer (5.6.7 and 6.0.1) when defining for a raster layer based on an ECW file a processing parameter for the bands order like PROCESSING "BANDS=3,2,1"

[mapserver-users] Raster parameter PROCESSING "BANDS=..." and ECW files

2011-09-04 Thread Armin Burger
Hi all I noticed a strange behaviour of MapServer (5.6.7 and 6.0.1) when defining for a raster layer based on an ECW file a processing parameter for the bands order like PROCESSING "BANDS=3,2,1" The order of the bands does not have any effect. The image is always displayed in the original b

Re: [mapserver-users] Google tile schema to coordinates conversion

2011-06-10 Thread Armin Burger
I discovered now the conversion method in the Mapserver source code in maptile.c => msTileSetExtent(). armin On 10/06/2011 17:43, Armin Burger wrote: Hi all I would like to set up a scripting solution based on MapScript that replies correctly to requests using the Google tile schema x+

[mapserver-users] Google tile schema to coordinates conversion

2011-06-10 Thread Armin Burger
Hi all I would like to set up a scripting solution based on MapScript that replies correctly to requests using the Google tile schema x+y+z. Does anybody know a formula how to transform the XYZ request values to bounding box coordinates in the Google Spherical Mercator projection? I know tha

Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-29 Thread Armin Burger
e if the free() removal has any effect. Alan On April 27, 2011 01:25:54 pm Armin Burger wrote: Hi everybody in MapServer/MapScript 6 the various class methods "free()" have been removed. If I want to have PHP/MapScript code compatible with both MapServer 5.x and 6, the easiest would be to

[mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-27 Thread Armin Burger
Hi everybody in MapServer/MapScript 6 the various class methods "free()" have been removed. If I want to have PHP/MapScript code compatible with both MapServer 5.x and 6, the easiest would be to completely remove these method calls from the code. My question is just if these free() methods a

Re: [mapserver-users] Mapserver 6.0.0 beta4 mapscript layer.getFeature missing?

2011-04-02 Thread Armin Burger
Francesco getShape() has been deprecated in MS <=5.6 and has been re-introduced (with modifications) in MS 6, and getFeature() that replaced getShape() in MS <=5.6 has been removed in MS 6, quite clear, isn't it? ;-) There's a migration guide Mapscript 5.6->6 and an RFC hat describe Mapscrip

[mapserver-users] MapServer 6 and KML outputformat

2011-03-10 Thread Armin Burger
Hi all the outputformat KML in the new MS 6 is quite nice and it allows easy and flexible data export to KML especially via Mapscript. But the implementation of the export of data attributes could be improved IMHO. Currently the fields/items of the layers (defined under map file METADATA KML

Re: [mapserver-users] MapServer 6.0.0-beta1 release - Error with $point->setXY()

2011-03-10 Thread Armin Burger
I tried the MS 6beta1 from SVN (the osgeo download site is not responding). The first error I found in PHP Mapscript was related to the function setXY() for point objects, the following code causes a segmentation fault (something like "child pid 16057 exit signal Segmentation fault (11)" in th

Re: [mapserver-users] Does Mapserver WCS 1.0.0 respect OFFSITE of tileindex layer?

2010-04-19 Thread Armin Burger
Hello Jukka your assumption how the the OFFSITE tag is applied for the WCS output is also what I would have expected it to do. I probably did not notice this strange behaviour since my set ups of WCS only used non-overlapping tiles (for WMS I use overlapping tiles and the OFFSITE works fine).

[mapserver-users] How to avoid warning messages for WFS and optional metadata

2009-12-04 Thread Armin Burger
Hi all when defining a WFS with MapServer the GetCapabilities request returns several warnings of the type: WARNING: Optional metadata ... was missing for ... if the version is set to 1.1.0 (it does not appear for requested version 1.0.0). I do not really understand why missing *optional* me

Re: [mapserver-users] MapServer 5.4 Beta 2 Available

2009-02-26 Thread Armin Burger
Hello just a more marginal remark regarding WCS and time support: is there a chance that the small patches for WCS-T (tickets #2487 and #1856) will make it into the 5.4? Greetings, Armin On 26/02/2009 06:44, Steve Lime wrote: Greetings all: MapServer 5.4 Beta 2 is now available for downlo

Re: [mapserver-users] Regarding Apache

2009-02-08 Thread Armin Burger
My experience is the following: I'm using PHP MapScript since ~ 2 years as Apache DSO without noticing problems. Important is to use the Apache 'prefork MPM' version of Apache 2.+ (or Apache 1.3 which seems always 'prefork'). Using the threaded MPM ('worker') of Apache seems not to work correct

Re: [mapserver-users] WCS time support bugs

2008-11-10 Thread Armin Burger
developers. Greetings, Armin On 10/11/2008 17:33, Alexander Petkov wrote: On Wed, Nov 5, 2008 at 11:39 AM, Alexander Petkov <[EMAIL PROTECTED]> wrote: On Wed, Nov 5, 2008 at 10:13 AM, Armin Burger <[EMAIL PROTECTED]> wrote: Alex I had a look at the code and tried the suggested fix. I u

Re: [mapserver-users] WCS time support bugs

2008-11-05 Thread Armin Burger
#x27; as a range of dates instead of single dates for the full timeseries. Armin On 05/11/2008 17:46, Alexander Petkov wrote: On Mon, Nov 3, 2008 at 4:10 PM, Armin Burger <[EMAIL PROTECTED]> wrote: Hi everybody I wanted to test the time support functionality of WCS but this seems n

[mapserver-users] WCS time support bugs

2008-11-03 Thread Armin Burger
Hi everybody I wanted to test the time support functionality of WCS but this seems not to be working. There is an older bug report at http://trac.osgeo.org/mapserver/ticket/1856 but it seems this has not been fixed yet. I use a PostGIS table to store the tileindex for the time series and as

Re: [mapserver-users] High resolution printing

2008-10-01 Thread Armin Burger
Milo Depending on the purpose, you could check if Mapyrus is useful for you. Disadvantage is that you need to define the map layout a second time and make it look similar to Mapserver layout. But the PDF output quality is far better than the one of Mapserver, and you do not need to bother with

Re: [mapserver-users] php/mapscipt getExtent

2008-04-23 Thread Armin Burger
Alim The extent returned for a layer seems to be working only for 'standard' layers (e.g. based on shapefiles), but neither for Postgis nor raster layers, god knows why I use the code below for zooming to the extent of a Postgis layer: $data = trim($layer->data); $dataList1 = preg_split(

Re: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile?

2008-04-17 Thread Armin Burger
On 17/04/2008 14:20, Daniel Morissette wrote: Armin Burger wrote: [...] Or using the main map file and deleting all layers but the requested one with 'removeLayer()'. This does not work with PHP Mapscript since this method does not exist there. The removeLayer() method does no

Re: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile?

2008-04-17 Thread Armin Burger
John I don't know if it is an option for you, but it would be quite easy doing this with Mapscript, using the functionality of OWSrequest. Either using an 'empty' map file and adding to it the desired layer from the main map file with Mapscript 'addLayer()' method. This works with all types of M

Re: [mapserver-users] buffer bounds (PHP Mapscript)

2008-04-11 Thread Armin Burger
Carlo I don't know if this behaviour is a feature or a bug of PHP Mapscript (I have not tested it with SWIG versions of Mapscript). A workaround is to project the buffer in the same projection as the layer. Then the extent is returned correctly. Something like $prj = ms_newprojectionobj($qu

Re: [mapserver-users] Tileindex and drawing order of tiles

2008-04-10 Thread Armin Burger
Jukka if you have a column you can use for sorting you could rewrite the shapefile using the sortshp tool provided with mapserver. The problem might be how to add this field if you create the shapefile with gdaltindex. One could use a Perl/PHP/Python script to update a sort column in the shap

Re: [mapserver-users] Re: Hiding overviews

2008-03-21 Thread Armin Burger
Jukka I was working a bit on this issue since we face the same problem. If you don't mind using Python MapScript instead of the Mapserver CGI then you could try to use this Python class that uses the OWSRequest functionality of Mapserver/Mapscript: http://svn.pmapper.net/repos/owspy/trunk/

[mapserver-users] removeLayer() in PHP MapScript

2008-03-07 Thread Armin Burger
Hello I'd have a question for the PHP Mapscript developers: are there any plans to implement the removeLayer() method (that exists for SWIG Mapscript versions) also in PHP Mapscript? Setting the layer status to MS_DELETE is in most cases not an alternative since it seems to have effects only