[mapserver-users] GDAL WMS

2010-03-15 Thread James Perrins
Hi, I've been trying to use this: http://www.gdal.org/frmt_wms.html I've tried both with a tile server - and with a WMS service (as it seemed like an easy way to get caching) It basically works, but I have problems with the quality of the image that mapserver produces It seems that mapserver req

Re: [mapserver-users] GDAL WMS

2010-03-15 Thread Tamas Szekeres
2010/3/15 James Perrins > > It seems that mapserver requests too many tiles / images from WMS for > the current screen image required - it then re-samples this resulting > in poor quality being served through mapserver (and often with too > much detail for the size returned meaning its still more

Re: [mapserver-users] GDAL WMS

2010-03-15 Thread James Perrins
Thanks Tamas, PROCESSING "OVERSAMPLE_RATIO=1" seems to have greatly improved things - especially for the tile server- I didn't see this in the documentation was I looking in the wrong place ? I presume 1 means don't oversize 2.0 means get double etc Do you know what the SizeX does for WMS as w

Re: [mapserver-users] GDAL WMS

2010-03-15 Thread Tamas Szekeres
2010/3/15 James Perrins > > Do you know what the SizeX does for WMS as well ? > > SizeX,SizeY corresponds to the raster dimensions in pixels Best regards, Tamas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/ma

[mapserver-users] OSM2pgsql, latlong, OpenStreetMap data, uDig = weird projection

2010-03-15 Thread Mulone
Hi guys, I have an issue trying to import OSM data on PostGIS. I download an xml file from the CloudMade site. I use this script to import the file into postgis (on Windows, latlong projection): ./osm2pgsql -U userId -W -H myhost -d maps -p myprefix -S default.style -c -l data.osm.bz2 This w

[mapserver-users] Re: GDAL WMS

2010-03-15 Thread paalkr
Hi! I have pointed out the missing documentation of the OVERSAMPLING_RATIO process directive before, and even made a ticket. As the directive enhances raster quality a lot in different situations I think it really deserves to be documented. Hopefully some with committing rights will pick it up so

Re: [mapserver-users] GDAL WMS

2010-03-15 Thread James Perrins
Thanks Tamas - but I'm still confused.. With a WMS call I can specify the BlockSize - which I believe controls the size of the tiles that I get back from the WMS service If I have set blocksize to be 256 then if I am requesting a WMS image to fill a 512x512 space on the screen and I have the OVER

Re: [mapserver-users] OSM2pgsql, latlong, OpenStreetMap data, uDig = weird projection

2010-03-15 Thread Thomasch
Hi, there is an HowTo: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData In your Mapfile, you have to state the Projection like the following: Map PROJECTION "init=epsg:4326" END [...] LAYER METADATA "WMS_TITLE" "Parks" END CLASSITEM "leisure" CONNECTION "user=

[mapserver-users] wms with gernerated Layers

2010-03-15 Thread Thomasch
Hi, I've got an map which contains some generated Layers using PHP Mapscript. How do I serve these Layers as wms? I read http://mapserver.org/ogc/mapscript.html but I don't really understand at which place i could modify the map itself. Thomasch _

Re: [mapserver-users] Looking for advice for OGC Services Server hardware requirements

2010-03-15 Thread Mark Korver
We all know that benchmarking is no easy task. Benchmarking when you don't have the hardware in the first place makes things just a bit more difficult. I know this is not exactly the same thing. But cloud services, like Amazon EC2, which give you access to a number of base configurations, with d

[mapserver-users] Average/Bilinear Resampling and Alpha Bands

2010-03-15 Thread Jason Beverage
Hi all, I have some imagery that is in UTM that contains an alpha band that masks out areas with no data. When I use MapServer to reproject it to epsg:4326, the masked out area looks good if I set RESAMPLE=NEAREST on the layer. If I change the RESAMPLE option to BILINEAR or AVERAGE I get black s

Re: [mapserver-users] Average/Bilinear Resampling and Alpha Bands

2010-03-15 Thread Frank Warmerdam
Jason Beverage wrote: Hi all, I have some imagery that is in UTM that contains an alpha band that masks out areas with no data. When I use MapServer to reproject it to epsg:4326, the masked out area looks good if I set RESAMPLE=NEAREST on the layer. If I change the RESAMPLE option to BILINEAR

[mapserver-users] Re: OSM2pgsql, latlong, OpenStreetMap data, uDig = weird projection

2010-03-15 Thread Mulone
Thanks for your hint! I tried to do that but without success. The system used to work with epsg:4326 but in our project we need a GoogleMaps like projection and we chose epsg:900913. These are the steps I followed to reimport everything for the new projection: 1) download osm xml file from Clou

Re: [mapserver-users] GDAL WMS

2010-03-15 Thread Robert Sanson
Hi JAmes I believe sizex,sizey refers to the size a given pixel represents on the ground. eg. a 1:25,000 scale orthophoto may be represented with each pixel = 2.5m on the ground. Here is an example from my mapfile: LAYER NAME nz50ktm GROUP "Toposcans" TYPE RASTER STATUS ON CONNEC

Re: [mapserver-users] Re: OSM2pgsql, latlong, OpenStreetMap data, uDig = weird projection

2010-03-15 Thread Thomasch
Hi Mulone, I'm not familiar with OpenLayers - in a quick search I found http://trac.openlayers.org/wiki/SphericalMercator If the Map itself (without using wms) is displayed correctly, did you try another WMS Client? Thomasch ___ mapserver-users mai

Re: [mapserver-users] Average/Bilinear Resampling and Alpha Bands

2010-03-15 Thread Robert Sanson
Hi Jason That's not unexpected. RESAMPLE=NEAREST preserves the "nodata" vales used in the mask. BILINEAR or AVERAGE combine values from adjoining pixels, so the "nodata" pixels get some other value. regards, Robert >>> Jason Beverage 16/03/2010 4:53 a.m. >>> Hi all, I have some imagery th

Re: [mapserver-users] Average/Bilinear Resampling and Alpha Bands

2010-03-15 Thread Jason Beverage
Hey again, Some more information, the file I was using was an ECW I converted from a tif. The black splotches appear if I use the ECW, but if I use the original tif file I don't see them. However, when using AVERAGE or BILINEAR, it appears as if the alpha values are either completely transparent

Re: [mapserver-users] Average/Bilinear Resampling and Alpha Bands

2010-03-15 Thread Robert Sanson
Hi Jason Well, ECW use wavelet compression, which is lossy, and data values can get changed slightly. regards, Robert >>> Jason Beverage 16/03/2010 10:27 a.m. >>> Hey again, Some more information, the file I was using was an ECW I converted from a tif. The black splotches appear if I use