[mapserver-users] How best to serve very large (300GB) raster data?
I've been using ESRI products for quite a while. To serve a very large raster dataset I have (about 300 GB), or really any raster or vector, I usually just load the data into ArcSDE installed on Oracle and server through ArcIMS. However, I want to move away from ESRI/Oracle and into a more open environment, with all components being open source if possible. How best to serve a large raster dataset of about 300 GB? My data is in 2010 tiles, each a 3-band TIF of about 135 MB. From my initial research, I like what MapServer can do and all of the potential clients (OpenLayers, ka-Map, and many more.) I also really like PostGIS for vectors...and have already started a project with PostGIS points, being maintained by Quantum GIS and mapped through Google Maps Javascript API and some AJAX/PHP code I wrote. My biggest worry is dealing with the very large rasters. Ideally, a tile server would be nice but I don't want to create the tiles through an ESRI product (like Arc2Earth or HTMLImageMapper.) I really like the possibility of TileCache (http://www.tilecache.org/) working with MapServer. The immediate question is what would be the raster data source to MapServer? Should I create tiles inside each TIF using gdal_translate and then a shapefile tileindex? Maybe go with compressed JPGs instead of TIFs since they usually have much smaller file sizes? I'm not sure where to start. Thanks for any guidance you can offer. - John **** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-2833 Email: [EMAIL PROTECTED] http://www.dgs.udel.edu ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] MapFile2XML conversion
Is it possible to allow MapServer to use KML, or a variation thereof? I really don't what would be entailed. For example, KML can store coordinates for displaying vectors, which would be pointless in our context. Can KML point to shapefiles or tables for vectors like it can point to TIFs for rasters? If so, it seems like the infrastructure (styling, external editing packages, viewers, conversion tools, wide adoption) is already there to build on. Can we pull pieces from KML to make it easier for people to adopt without learning a new structure? +1 on keeping the configuration maps as file based. Databases are great for many reasons but add an entirely new level of complexity (and points of failure) for any application. - John John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: [EMAIL PROTECTED] http://www.dgs.udel.edu Barend Kobben wrote: Hi Bob, YES, by all means do move to XML. I think this would be a very important step forward (and my first guess is it would be not too complicated, but you never know...). I do see how some might be attracted to having an DB storage too, but I would urge you to always have that as an alternative, not as instead-of: keep the main configuration mechanism (XML-)file based! In many use cases there's no need for a DB and that would mean you'd have tho have a DB plus all its hassle, only for the configuration part. Also the current file-base config is ideal in situations were many people need to work on the one MS, such as in our educational setup, where we have many students working on their own config files in their private dirs, and they don't need to touch the 'main' MS setup on the server. Actually, what are your reasons for preferring an SQL sdolution over the file based one...? Bob Basques wrote: All, We've been pondering some sort of alternative to the Mapfiles for a few years now. A preferable approach would be something that could be stored in a DB in some fashion for querying/assembly processes. It seems on the surface like a DB schema could be developed to handle the MapFile storage aspects. A first step would be in how to best approach moving into an XML way of life for the MapFiles. Would it make any sense in the beginning to just build a MapFile2XML convertor (I would imagine this would be needed before anyone would sign up for XML) and once something like this is a state close to production, the innards of MapServer would then be made to parse the XML directly? Another approach might be to do something like MapFile2SQL first, and then the MapFile2XML. This might save some time and seem like it would make standardization easier, since it would need to be inside of the DB fist. Has anyone tried putting together any requirements list along these lines at all? Is it going to be something where we just need to jump in and build something even if it might be a wrong approach to begin with? This thread just got me thinking is all . . .you know how dangerous that can be . . . :c) bobb ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] MapFile2XML conversion
I know what you mean about different applications of XML. However, can a single file or format serve both needs? KML is an output format and used in many programs but it can be viewed as a map description format as well: it can point to multiple datasets, access dynamic web services and WMS, adds style information, screen overlays, and more. Aside from inclusion of coordinates/geometry of vectors data instead of referencing a vector dataset, KML seems to do accomplish similar tasks as map files. I've always thought KML becomes difficult to share when locally referencing large rasters; KML as input to a map server engine would solve that. It would be huge stretch to make something like this work but the lure of incorporating the successes of KML into an open source project (as something more than just an output format) just got me wondering. Even converting KML files to map files (placemarks/paths/polygons become shapefiles) may be beneficial. Just some thoughts... - John John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: [EMAIL PROTECTED] http://www.dgs.udel.edu Bob Basques wrote: John, You're starting to think about two different applications of XML. I was interested in setting up the XML to reflect the typical MapFile contents and use the XML for the Map generation out of MapServer. KML is a output format option, that would be output by MapServer, (possibly using this new XML MapServer control) to format the KML output. I would still tend to keep the configurations as file based as well, the DB approach just aloows for much more flexibilty for those hardcore programmers, and the MapFiles, don't input into a DB very easily. bobb >>> John Callahan <[EMAIL PROTECTED]> wrote: Is it possible to allow MapServer to use KML, or a variation thereof? I really don't what would be entailed. For example, KML can store coordinates for displaying vectors, which would be pointless in our context. Can KML point to shapefiles or tables for vectors like it can point to TIFs for rasters? If so, it seems like the infrastructure (styling, external editing packages, viewers, conversion tools, wide adoption) is already there to build on. Can we pull pieces from KML to make it easier for people to adopt without learning a new structure? +1 on keeping the configuration maps as file based. Databases are great for many reasons but add an entirely new level of complexity (and points of failure) for any application. - John **** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: [EMAIL PROTECTED] http://www.dgs.udel.edu <http://www.dgs.udel.edu/> Barend Kobben wrote: > Hi Bob, > > YES, by all means do move to XML. I think this would be a very important > step forward (and my first guess is it would be not too complicated, but you > never know...). > > I do see how some might be attracted to having an DB storage too, but I > would urge you to always have that as an alternative, not as instead-of: > keep the main configuration mechanism (XML-)file based! In many use cases > there's no need for a DB and that would mean you'd have tho have a DB plus > all its hassle, only for the configuration part. Also the current file-base > config is ideal in situations were many people need to work on the one MS, > such as in our educational setup, where we have many students working on > their own config files in their private dirs, and they don't need to touch > the 'main' MS setup on the server. > > Actually, what are your reasons for preferring an SQL sdolution over the > file based one...? > > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] satellite / aerial imagery
The USGS site is a good one. Check out http://gisdata.usgs.net/ for more info from USGS. Also check out TerraServer and the satellite imagery on http://www.perrygeo.net/wordpress/?p=35 Searching through http://geodata.gov/ may reveal something. I usually get frustrated with that site but you never know what you'll find. Note that very-high resolution imagery for North America as a raster/geotif may be a bit large. Connecting to a WMS service or Tile Map Server (like Google, Yahoo, VE) might be a better bet. I'm just getting started with MapServer so I really couldn't provide any instruction though. - John **** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: [EMAIL PROTECTED] http://www.dgs.udel.edu Ray Collett wrote: http://seamless.usgs.gov/ On Sat, Jun 28, 2008 at 12:39 PM, Mark Brooks <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I am working on a mapserver project and need satellite or aerial imagery, preferably at a very high resolution. Kind of like google maps satellite view. I assume raster or geotif would be the ideal file type. I only need imagery for North America. Can anyone suggest a good, hopefully free, resource for this? Much thanks, Mark NC State University ___ mapserver-users mailing list mapserver-users@lists.osgeo.org <mailto:mapserver-users@lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- === --==-- Ray Collett --==-- Technical Director; Newlands & Co. Inc. 503.287.8000 x520 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> www.nc3d.com <http://www.nc3d.com> www.norwesters.org <http://www.norwesters.org> === ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source
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 those processing directives. - John On Tue, May 29, 2012 at 10:43 AM, Rahkonen Jukka wrote: > ** > 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 for Mapserver, both for the images and > overviews. > > 3) Never heard about such processing directives, need to test some day. > > -Jukka Rahkonen- > > > -- > *Lähettäjä:* mapserver-users-boun...@lists.osgeo.org [mailto: > mapserver-users-boun...@lists.osgeo.org] *Puolesta *Mark Volz > *Lähetetty:* 29. toukokuuta 2012 17:18 > *Vastaanottaja:* mapserver-users@lists.osgeo.org > *Aihe:* [mapserver-users] optimize raster for mapserver - gdal geoTIFF > source > > 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. > > Question 1) Does anyone have any recommendations for resampling air > photos when I create an image using gdal? *{nearest > (default),average,gauss,cubic,average_mp,average_magphase,mode}* > > Question 2) I am using a compressed geoTIFF with built in overviews. I am > happy with this format as the file size is small, and the speed is fast. I > am wondering if this is format for having a fast raster while keeping a > relatively small file. Does anyone else have any other suggestions? > > Question 3) I have seen several Mapserver snippets of code concerning > GDAL_FORCE_CACHING and GDAL_ONE_BIGREAD. If I am not reprojecting my > imagery which processing directive(s) would be better for a compressed > GeoTIFF with overviews? > > > LAYER > … > PROCESSING "GDAL_FORCE_CACHING = YES" > Or: > PROCESSING "GDAL_ONE_BIGREAD = YES" > … > END # Air Photo Layer > > > Thank You > > Mark Volz > GIS Specialist > > > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] map file paths
Basically what I do is copy and rename mapserv.exe to some name I want in the URL. Then, if a request goes to that file, set the MS_MAPFILE variable to the relevant map file. This has worked well for me so far. For example, my organization recently published our 15th geologic map of out state. I want people to refer to it as geomap15. Therefore, I copied and renamed mapserv.exe to geomap15 (no exe extension, file still in cgi-bin directory). Then, I have the following in my httpd.conf file: SetEnvIf Request_URI "/cgi-bin/geomap15" MS_MAPFILE=C:/pathtomapfile/geomap15.map My URLs then look something like: http://maps.dgs.udel.edu/cgi-bin/geomap15? (This map file in action here: http://www.dgs.udel.edu/datasets/dgs-geologic-map-no-15-georgetown-quadrangle-dataset ) - John ** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ** On Wed, Nov 3, 2010 at 8:41 PM, Richard Greenwood < richard.greenw...@gmail.com> wrote: > On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand > wrote: > > Is there a way of abbreviating pathnames to the map file? For instance, > my > > URL to produce a map is > > > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map > > > > > > > > In my apache configuration file I have > > //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased to > > /test/ but the alias does not seem to work with CGI. I’m just wondering > if > > there is a workaround so that I don’t need to specify the whole file path > in > > my URL. > > > > > > > > Thanks. > > > > === > > David V. Hildebrand > > Agriculture Financial Services Corporation > > (403) 782-8239 > > In your Apache httpd.conf add: > SetEnv MY_MAP "C:/path/to/my/mapfile.map" > > and then your URL can be: > http://localhost/cgi-bin/mapserv.exe?map=MYMAP&mode=map > > Shorter URL, better security. > > Rich > > -- > Richard Greenwood > richard.greenw...@gmail.com > www.greenwoodmap.com > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] map file paths
The PHP mapscript wrapper looks promising. Thanks. The examples would need to be combined into one php file to handle both GetMap and GetCapabilities requests. Seems doable. I'm not a programmer and didn't want to get into mapscript, however, modifying this script template doesn't seem too difficult (if you already have PHP, which my server does.) I'm not a big fan of copying and renaming the mapserv.exe file but it does work well. We only publish a handful of services and do not expect to significantly increase in the future. If we do, scripting a batch file would work just as well. This is relatively easy and without the need to install (re: maintenance, security) or learn additional programming languages. For me, it's also important to have short, easily readable URLs to send out to people that use our WMS services. I do not want the extra "?map=mymap" parameters at the end of the URLs. For one reason or another, things always get screwed up when people start pasting these URLs into their desktop GIS or other apps. Simpler the better, even if it's not elegant or involves slightly more work on my part. - John ****** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ** On Thu, Nov 4, 2010 at 2:53 AM, Waberzeck, Thomas < thomas.waberz...@liag-hannover.de> wrote: > Jukka Rahkonen wrote: > > P Kishor wrote: > > > > > So you have 15 copies of the binary floating around on your computer. > > > What a nightmare. If you upgrade, you have to make 15 copies of the > > > new version and replace the old version. > > > > > What would happen when you publish the 150th geologic map? > > > > > Use a single binary, and use a wrapper (or the env variable) to get > > > the right query. > > > > I do not believe there are handy wrappers for Windows and the only way > > I have been able to get SetEnvIf to work is to make copies of > > mapserv.exe with different names. I maintain a batch file about our > > services with lines like "COPY mapserv.exe WMS_service1" etc. and then > > I only need to run the batch after update and publishing the 150th > > service does not change anything. > > > If you have php it's quite easy to write a small wrapper for it. See > http://www.mapserver.org/ogc/mapscript.html#php-example so the only thing > to do is to write the wrappers once and you have a single setup of > Mapserver. > > Thomas > BTW: The Example should be updated - I think php_mapscript_4.10.0.dll is > out of date. The name of the .dll is just php_mapscript.dll. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS intersect request
I have the following WFS intersect request that if working with GeoServer, and I'm trying to run this app with MapServer. The error I'm getting is: msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature ... I've dome some reading but not sure exactly what's supported. I have used both INTERSECT and INTERSECTS, both return the same error. Should I skip these and go with BBOX? If so, I assume I would need to get rid of the lowerCorner/upperCorner items and just list the coordinates separated by commas. Or could there be a problem with the PropertyName = SHAPE? I couldn't find doc on what this value should be. My data are either shapefiles or postgis layers. The POST request is: http://www.opengis.net/wfs"; service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance";> http://massgis.state.ma.us/featuretype";> http://www.opengis.net/ogc";> SHAPE http://www.opengis.net/gml"; srsName="EPSG:26957"> 149081.76574899518 163078.62572595105 205627.85303800018 194899.95291598293 Thanks for any help you can provide. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: WFS intersect request
Thanks. Yes, my server does support Intersect filter, according to the WFS GetCaps file. I'm using the latest MS4W install with MS 6. John On Thursday, June 9, 2011, Alexandre Dube wrote: > > > > > > > Hello, > > If you run a WFS GetCapabilities request on your server, it should > tell which filters it supports, see : > http://mapserver.org/ogc/filter_encoding.html#server-side > > Someone correct me if I'm wrong, but I think MapServer needs to be > compiled with GEOS in order to do intersect filters. > > HTH, > > Alexandre > > > On 11-06-09 12:09 PM, John Callahan wrote: > I have the following WFS intersect request that if > working with GeoServer, and I'm trying to run this app with > MapServer. The error I'm getting is: > > msWFSGetFeature(): WFS server error. > Invalid or Unsupported FILTER in GetFeature ... > > > I've dome some reading but not sure exactly what's supported. I > have used both INTERSECT and INTERSECTS, both return the same > error. Should I skip these and go with BBOX? If so, I assume I > would need to get rid of the lowerCorner/upperCorner items and > just list the coordinates separated by commas. Or could there be > a problem with the PropertyName = SHAPE? I couldn't find doc on > what this value should be. My data are either shapefiles or > postgis layers. > > The POST request is: > > http://www.opengis.net/wfs"; > service="WFS" version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > xmlns:massgis="http://massgis.state.ma.us/featuretype";> > http://www.opengis.net/ogc";> > > SHAPE > http://www.opengis.net/gml"; > srsName="EPSG:26957"> > 149081.76574899518 > 163078.62572595105 > 205627.85303800018 > 194899.95291598293 > > > > > > > > Thanks for any help you can provide. > > - John > > *** > John Callahan, Research Scientist > Delaware Geological Survey > University of Delaware > URL: http://www.dgs.udel.edu > *** > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Alexandre Dubé > Mapgears > www.mapgears.com > > > > -- *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: WFS intersect request
This WFS GetFeature request did work if I replaced with the spatial filter. - John On Thu, Jun 9, 2011 at 12:47 PM, John Callahan wrote: > Thanks. Yes, my server does support Intersect filter, according to the > WFS GetCaps file. I'm using the latest MS4W install with MS 6. > > John > > > On Thursday, June 9, 2011, Alexandre Dube wrote: > > > > > > > > > > > > > > Hello, > > > > If you run a WFS GetCapabilities request on your server, it should > > tell which filters it supports, see : > > http://mapserver.org/ogc/filter_encoding.html#server-side > > > > Someone correct me if I'm wrong, but I think MapServer needs to be > > compiled with GEOS in order to do intersect filters. > > > > HTH, > > > > Alexandre > > > > > > On 11-06-09 12:09 PM, John Callahan wrote: > > I have the following WFS intersect request that if > > working with GeoServer, and I'm trying to run this app with > > MapServer. The error I'm getting is: > > > > msWFSGetFeature(): WFS server error. > > Invalid or Unsupported FILTER in GetFeature ... > > > > > > I've dome some reading but not sure exactly what's supported. I > > have used both INTERSECT and INTERSECTS, both return the same > > error. Should I skip these and go with BBOX? If so, I assume I > > would need to get rid of the lowerCorner/upperCorner items and > > just list the coordinates separated by commas. Or could there be > > a problem with the PropertyName = SHAPE? I couldn't find doc on > > what this value should be. My data are either shapefiles or > > postgis layers. > > > > The POST request is: > > > > http://www.opengis.net/wfs"; > > service="WFS" version="1.1.0" xsi:schemaLocation=" > http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > >> xmlns:massgis="http://massgis.state.ma.us/featuretype";> > > http://www.opengis.net/ogc";> > > > > SHAPE > > http://www.opengis.net/gml"; > > srsName="EPSG:26957"> > > 149081.76574899518 > > 163078.62572595105 > > 205627.85303800018 > > 194899.95291598293 > > > > > > > > > > > > > > > > Thanks for any help you can provide. > > > > - John > > > > *** > > John Callahan, Research Scientist > > Delaware Geological Survey > > University of Delaware > > URL: http://www.dgs.udel.edu > > *** > > > > > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] job opportunity for web project
[Hopefully, it's OK to post job opportunities to this list. I posted this to the PostGIS list but Mapserver may play a more prominent role is getting this work done. I am not sure which method/software to use for these tasks.] I'm looking to hire someone to help on a web project I'm working on. We use Postgres/PostGIS as the database, MapServer as the map engine, and OpenLayers/GeoExt as the javascript mapping framework on the front end. Server-side: PHP/Python, Windows, Apache. The project involves displaying numerous spatial data layers on a map with common functionality; this part has already been done, (screenshot at http://www.dgs.udel.edu/temp/screenshot_weblayout.png)However, we need to add several specific tasks, such as: - display subsets of points based on a certain criteria selected by user via radio-buttons - based on mouse click, return values of the polygon or raster grid cell clicked within - use attribute of a clicked polygon to perform queries/reporting from other tables - if a groundwater well is click on (points), then display time series graph of data - based on user selected criteria, select points and return as line and display on map If you would be interested in this opportunity or think this post would be more appropriate on another list, please let me know. It's fine with me if any work done is shared back to the community. Start date is anytime, sooner the better. Thanks. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] elevation DEM color ramp map file
I'm just curious but does anyone know of Mapserver .map files, or color map text files, with classes designed for a elevation DEM? Or possibly a list of color ramps that work well for DEM maps? I read that GRASS had some predefined templates for applying color to DEMs and wondering if Mapserver has a similar thing, perhaps shared on a wiki or other site. The DEM I'm working with now has low relief, from -5 meters to about 150 meters, however a general method or set of map files that can be applied to a range of DEMs could be helpful to many. Does something like this exist? Thanks. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Service error
Check the WMS version of the request. When you add the WMS layer in ArcMap, set the WMS version to 1.1.1. Arc 9.3.x runs into trouble if the default request is 1.3.0. I believe this was fixed in Arc 10. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** On Tue, Jul 19, 2011 at 2:51 PM, qazi iqbal wrote: > I need help. I have created a mapfile for creating webservice or a > shapefile through WMS according to the documentation. When I add the WMS > server in ArcCatalog to see the layer, it show the treeview to the > description of layer, but when I click on the layer, it gives me the below > error. > > The selected object failed to draw: > Test Web Service: WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetmapParams(): WMS server error. > Invalid format for EXCEPTION paramater. > -Service Error Code:InvalidFormat. > > Does any one know what I am doing wrong. > > I appreciate any help. > Thanks > Qazi Iqbal > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Spatial Filter Problem
This thread may or may not help: http://osgeo-org.1803224.n2.nabble.com/WFS-intersect-request-td6458533.html I have not tried using AND compound filters. The following format does work for me using the BBOX filter. SHAPE http://www.opengis.net/gml"; srsName="EPSG:26957"> 149081.76574899518 163078.62572595105 205627.85303800018 194899.95291598293 - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** On Fri, Aug 5, 2011 at 7:02 AM, Bryan Hempen wrote: > ** > The problem: I am trying to implement something similar to > http://openlayers.org/dev/examples/wfs-spatial-filter.html with my own > data served by MapServer through a WFS. I just changed some lines in the > code to make it work with MapServer, so the code is almost equal to the code > in the example at the moment. So far it's working fine UNTIL I drag the > polygon to apply the spatial filter! According to the getCapabitilies the > server should be able to handle the request: > > ... > > > > > > > > > > > > > > > ... > > Both WFS GetFeature requests are sent via HTTP POST. The first one that > works (called on page load) looks like this: > > xmlns:wfs="http://www.opengis.net/wfs";<http://www.opengis.net/wfs>xmlns:xsi="http > :// > www.w3.org/2001/XMLSchema-instance" service="WFS" version="1.0.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd";<http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd> > > > > http://www > .opengis.net/ogc"<http://www%C2%A0.opengis.net/ogc> > > > > msGeometry > srsName="EPSG:4326"> > 135.45,-47.425 157.95,-36.175 > > > > > > > The request not working looks like this: > > xmlns:wfs="http://www.opengis.net/wfs";<http://www.opengis.net/wfs>xmlns:xsi= > "http://www.w3.org/2001/XMLSchema-instance";<http://www.w3.org/2001/XMLSchema-instance>service="WFS" > version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd";<http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd> > > >xmlns:ms="http://mapserver.gis.umn.edu/mapserver";<http://mapserver.gis.umn.edu/mapserver>typeName="ms:omega"> > xmlns:ogc="http://www.opengis.net/ogc";<http://www.opengis.net/ogc> > > > > > msGeometry >xmlns:gml="http://www.opengis.net/gml";<http://www.opengis.net/gml>srsName="EPSG:4326"> > > > 145.72880866081,-40.709423872828 145.83867194206,-42.752880904078 > 148.34355475456,-40.995068404078 > 145.72880866081,-40.709423872828 > > > > > > msGeometry >xmlns:gml="http://www.opengis.net/gml";<http://www.opengis.net/gml>srsName="EPSG:4326"> > 135.45,-47.40302734375 157.95,-36.15302734375 > > > > > > > > Does anyone have an idea? Any help is appreciated, I am stuck. > > The setup: > >- OS: Red Hat Enterprise Linux 5.4 >- PostgreSQL 8.2 >- PostGIS 1.3 > - MapServer 5.6.5 >- OpenLayers, one of the latest versions. ProxyHost set and working >(calling the proxy.cgi shows OpenLayers website) > > Kind regards, > Bryan > > > This message and any attachments are intended for the use of the addressee or > addressees only. The unauthorised disclosure, > > use, dissemination or copying (either in whole or in part) of its content is > not permitted. If you received this message in > > error, please notify the sender and delete it from your system. Emails can be > altered and their integrity cannot be guaranteed by > > the sender. > > Please consider the environment before printing this email. > = > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] advice on books
Can anyone point me to a good book on learning Mapserver, and possibly OpenLayers as well? I don't usually buy books on software products as there's so much available online. However, I recently purchased PostGIS in Action and it's helped significantly. I wonder if there's a similar quality book out there on Mapserver. Something higher than intro level would be preferable. Thanks. - John *** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu *** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] advice on books
Thanks Daniel. The OpenLayers book looks interesting. Even though I typically do fine with online examples, it's probably worth the purchase, especially since I may be migrating several Google Maps apps to OpenLayers at some point. That Mapserver book is from 2005, I agree a bit too old but the only one I can find as well. Luckily the Mapserver documentation wiki has everything we need! - John On Fri, Aug 5, 2011 at 1:43 PM, PORTER.DANIEL wrote: > John, > > ** ** > > I believe there is only one English book out on OpenLayers, called > “OpenLayers 2.10 Beginner’s Guide” ( > https://www.packtpub.com/openlayers-2-1-javascript-web-mapping-library-beginners-guide/book), > which as the name says, it’s a beginner’s guide. He assumes little > technical knowledge, which makes it very good for getting your bearings. If > you can figure out what to do from the OpenLayers examples and API docs, I > don’t know that it has much to offer. If you’re struggling with that, I > think it would be excellent (disclosure: I worked with Erik, the author of > the book). > > ** ** > > I have read that this mapserver book is somewhat outdated: > http://www.amazon.com/Beginning-MapServer-Source-Development-Experts/dp/1590594908 > I have not seen it, though. It’s the only one I know about. > > > ** ** > > Daniel > > *From:* mapserver-users-boun...@lists.osgeo.org [mailto: > mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *John Callahan > *Sent:* Friday, August 05, 2011 1:17 PM > *To:* mapserver-users@lists.osgeo.org > *Subject:* [mapserver-users] advice on books > > ** ** > > Can anyone point me to a good book on learning Mapserver, and possibly > OpenLayers as well? I don't usually buy books on software products as > there's so much available online. However, I recently purchased PostGIS in > Action and it's helped significantly. I wonder if there's a similar quality > book out there on Mapserver. Something higher than intro level would be > preferable. Thanks. > > ** ** > > - John > > > *** > John Callahan, Research Scientist > Delaware Geological Survey > University of Delaware > URL: http://www.dgs.udel.edu > *** > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] recommended tile caching mechanism with `mode=tile`
I'm sure lots of people are very interested in this topic. Very nice. I'm assuming at some point MapServer MapCache will be supported on the Windows platform. (IIRC, I do not believe mod-geocache is supported there.) Is that true and can the current trunk be built on Windows? - John On Sun, Sep 18, 2011 at 11:02 AM, thomas bonfort wrote: > On Sun, Sep 18, 2011 at 08:08, Mr. Puneet Kishor > wrote: > > > > On Sep 17, 2011, at 11:43 PM, Daniel Morissette wrote: > > > >> On 11-09-18 12:08 AM, Mr. Puneet Kishor wrote: > >>> I am using MapServer cgi with `mode=tile` with a Google Maps front-end, > and am wondering what is a recommended tile cache server. > >>> > >>> Any suggestions from personal experience? > >>> > >> > >> MapServer MapCache of course! It is a fully featured, robust and fast > tiling server. Only available in MapServer SVN trunk at the moment. > >> > >> http://mapserver.org/trunk/mapcache/ > >> > >> It was formerly known as Mod-Geocache until a few weeks ago... the > website is in the process of being migrated to the above URL, but in the > meantime you can still reach the old site: > >> > >> http://code.google.com/p/mod-geocache/ > >> > > > > > > Very nice. I look forward to installing this; hopefully, it will be > straightforward. > > > > A couple of questions -- > > > > 1. I was looking at mod_cache (mod_disk_cache and mod_mem_cache) > yesterday and wondering if they could be used to cache the images. Is > mod_geocache inspired/based on those modules? > As already stated by Mike, there's quite a bit of geo related > intermediary glue code that translates the incoming request into the > actual name of the tile as stored on the system, which makes the > module much more specific than the mod_*_cache existing modules. > There is a memcached storage backend for mapcache, but speed of access > to the tile data is not a use-case that it shines at: it is slower > than disk based caches, but allows the automatic expiring of tiles > based on their creation date. > > > > > 2. Why wed this to Apache? By making it web-server agnostic, you open up > the audience. > c.f. the fastcgi implementation. cgi is not a recommended setup. > > -- > thomas > > > > > > > Puneet. > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] gradient display of raster DEM data
I know this has been asked before but I thought I'd ask to see if anything changed. I'm looking to display a raster digital elevation model in mapserver. My data is in flat files, img and tiff. I'd like to display this data as a continuous gradient color range, rather than using CLASS categories/bins for specific colors. Is it still tru ethat this is not possible, easily? One method (passed to me on this list) was too generate the colored image I want in another program, using GMT or similar tool, then use that in mapserver. This seems like the best option but is non-trivial to someone who hasn't done this before. (though not terribly difficult.) I also read about the use of DATARANGE and COLORRANGE in mapserver. However, these are not in the documentation. Are these available in trunk only? A ticket was generated that seems to say this will be included with MS 6.2. (http://trac.osgeo.org/mapserver/ticket/1305) Any insight on whether this is still the plan? Thanks for your help and advice. - John *** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] gradient display of raster DEM data
Thanks for all your responses. I have COLORRANGE / DATARANGE working fine in my map file. Works very well. I'm also looking at using gdaldem for a more custom color scale. Thanks again. - John *** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH < michael.sm...@usace.army.mil> wrote: > John > > The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but > they have been present in MapServer for years (since 4.6 or so). > > We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS > Benchmarking effort. > > Mike > > -- > Michael Smith > US Army Corps > Remote Sensing GIS/Center > > From: John Callahan > Date: Fri, 14 Oct 2011 16:55:59 -0400 > > To: > Subject: [mapserver-users] gradient display of raster DEM data > > I know this has been asked before but I thought I'd ask to see if anything > changed. > > I'm looking to display a raster digital elevation model in mapserver. My > data is in flat files, img and tiff. I'd like to display this data as a > continuous gradient color range, rather than using CLASS categories/bins for > specific colors. Is it still tru ethat this is not possible, easily? > > One method (passed to me on this list) was too generate the colored image > I want in another program, using GMT or similar tool, then use that in > mapserver. This seems like the best option but is non-trivial to someone > who hasn't done this before. (though not terribly difficult.) > > I also read about the use of DATARANGE and COLORRANGE in mapserver. > However, these are not in the documentation. Are these available in trunk > only? A ticket was generated that seems to say this will be included with > MS 6.2. (http://trac.osgeo.org/mapserver/ticket/1305) Any insight on > whether this is still the plan? > > > Thanks for your help and advice. > > - John > > *** > John Callahan, Research Scientist > Delaware Geological Survey, University of Delaware > URL: http://www.dgs.udel.edu > * > > ___ mapserver-users mailing > list mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] gradient display of raster DEM data
Excellent! Very cool method. I've used multiple classes for vectors but didn't think about it for rasters. Thanks for the advice. - John *** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * On Mon, Oct 17, 2011 at 3:05 PM, Smith, Michael ERDC-CRREL-NH < michael.sm...@usace.army.mil> wrote: > John, > > I got a larger color range by using multiple classes > > LAYER > NAME "hillshade" > TYPE raster > TILEINDEX > "/benchmarking/wms/2011/data/raster/DEM/bil_16int/dem_bil16int.shp" > PROCESSING "CLOSE_CONNECTION=DEFER" > PROJECTION >"+init=epsg:4326" > END > CLASS > STYLE > COLORRANGE 46 154 88 251 255 128 > DATARANGE 1003 1800 > END > END > CLASS > STYLE > COLORRANGE 251 255 128 224 108 31 > DATARANGE 1800 2800 > END > END > CLASS > STYLE > COLORRANGE 224 108 31 200 55 55 > DATARANGE2800 3500 > END > END > CLASS > STYLE > COLORRANGE 200 55 55 215 244 244 > DATARANGE 3500 4397 > END > END > END > > > From: John Callahan > Date: Mon, 17 Oct 2011 14:54:13 -0400 > To: "mapserver-users@lists.osgeo.org" > Subject: Re: [mapserver-users] gradient display of raster DEM data > > Thanks for all your responses. I have COLORRANGE / DATARANGE working fine > in my map file. Works very well. I'm also looking at using gdaldem for a > more custom color scale. Thanks again. > > - John > > *** > John Callahan, Research Scientist > Delaware Geological Survey, University of Delaware > URL: http://www.dgs.udel.edu > * > > > > On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH < > michael.sm...@usace.army.mil> wrote: > >> John >> >> The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but >> they have been present in MapServer for years (since 4.6 or so). >> >> We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS >> Benchmarking effort. >> >> Mike >> >> -- >> Michael Smith >> US Army Corps >> Remote Sensing GIS/Center >> >> From: John Callahan >> Date: Fri, 14 Oct 2011 16:55:59 -0400 >> >> To: >> Subject: [mapserver-users] gradient display of raster DEM data >> >> I know this has been asked before but I thought I'd ask to see if >> anything changed. >> >> I'm looking to display a raster digital elevation model in mapserver. >> My data is in flat files, img and tiff. I'd like to display this data as a >> continuous gradient color range, rather than using CLASS categories/bins for >> specific colors. Is it still tru ethat this is not possible, easily? >> >> One method (passed to me on this list) was too generate the colored >> image I want in another program, using GMT or similar tool, then use that in >> mapserver. This seems like the best option but is non-trivial to someone >> who hasn't done this before. (though not terribly difficult.) >> >> I also read about the use of DATARANGE and COLORRANGE in mapserver. >> However, these are not in the documentation. Are these available in trunk >> only? A ticket was generated that seems to say this will be included with >> MS 6.2. (http://trac.osgeo.org/mapserver/ticket/1305) Any insight on >> whether this is still the plan? >> >> >> Thanks for your help and advice. >> >> - John >> >> *** >> John Callahan, Research Scientist >> Delaware Geological Survey, University of Delaware >> URL: http://www.dgs.udel.edu >> * >> >> ___ mapserver-users mailing >> list mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > ___ mapserver-users mailing > list mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] gradient display of raster DEM data
Thanks again for the idea of using multiple classes but I can't seem to get it to work. Has anyone else had success with this method? It seems as though it's applying only the first defined COLORRANGE to full range of the values in the dataset. I've tried using the below syntax (only COLORRANGE and DATARANGE in each CLASS) as well as the (proposed?) block syntax as defined at http://mapserver.org/development/rfc/ms-rfc-6.html (which gives me errors for RANGEITEM and invalid hex color for MINCOLOR.) I am using MapServer 6.0.1 as part of MSW 3.0.3. Incorrect image being displayed: http://i44.tinypic.com/2hdwuuu.jpg Correct image, created through QGIS: http://i42.tinypic.com/21d2x5h.jpg Here is the LAYER portion of my map file. Is there anything obvious I should change? Thanks for any suggestions. *** LAYER NAME 'de_dem2m' TYPE RASTER DATA 'C:\data\delaware2m.img' PROCESSING "CLOSE_CONNECTION=DEFER" EXTENT 166773.496 49314.974 233217.496 204730.974 METADATA 'ows_title' 'Delaware DEM' INCLUDE "ogc_projections.map" 'wms_include_items' 'all' END STATUS ON DUMP TRUE TRANSPARENCY 100 PROJECTION "init=epsg:26957" END CLASS STYLE COLORRANGE 170 230 209 255 255 179 DATARANGE 0.0 7.0 END END CLASS STYLE COLORRANGE 255 255 179 0 128 64 DATARANGE 7.01 11.0 END END CLASS STYLE COLORRANGE 0 128 64 252 186 3 DATARANGE 11.01 14.0 END END CLASS STYLE COLORRANGE 252 186 3 199 15 2 DATARANGE 14.01 20.0 END END CLASS STYLE COLORRANGE 199 15 2 105 48 13 DATARANGE 20.01 40.0 END END CLASS STYLE COLORRANGE 105 48 13 171 171 171 DATARANGE 40.01 100.0 END END CLASS STYLE COLORRANGE 171 171 171 232 230 232 DATARANGE 100.01 140.0 END END END * - John *** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * On Mon, Oct 17, 2011 at 3:05 PM, Smith, Michael ERDC-CRREL-NH < michael.sm...@usace.army.mil> wrote: > John, > > I got a larger color range by using multiple classes > > LAYER > NAME "hillshade" > TYPE raster > TILEINDEX > "/benchmarking/wms/2011/data/raster/DEM/bil_16int/dem_bil16int.shp" > PROCESSING "CLOSE_CONNECTION=DEFER" > PROJECTION >"+init=epsg:4326" > END > CLASS > STYLE > COLORRANGE 46 154 88 251 255 128 > DATARANGE 1003 1800 > END > END > CLASS > STYLE > COLORRANGE 251 255 128 224 108 31 > DATARANGE 1800 2800 > END > END > CLASS > STYLE > COLORRANGE 224 108 31 200 55 55 > DATARANGE2800 3500 > END > END > CLASS > STYLE > COLORRANGE 200 55 55 215 244 244 > DATARANGE 3500 4397 > END > END > END > > > From: John Callahan > Date: Mon, 17 Oct 2011 14:54:13 -0400 > To: "mapserver-users@lists.osgeo.org" > Subject: Re: [mapserver-users] gradient display of raster DEM data > > Thanks for all your responses. I have COLORRANGE / DATARANGE working > fine in my map file. Works very well. I'm also looking at using gdaldem > for a more custom color scale. Thanks again. > > - John > > > > On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH < > michael.sm...@usace.army.mil> wrote: > >> John >> >> The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but >> they have been present in MapServer for years (since 4.6 or so). >> >> We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS >> Benchmarking effort. >> >> Mike >> >> -- >> Michael Smith >> US Army Corps >> Remote Sensing GIS/Center >> >> From: John Callahan >> Date: Fri, 14 Oct 2011 16:55:59 -0400 >> >> To: >> Subject: [mapserver-users] gradient display of raster DEM data >> >> I know this has been asked before but I thought I'd ask to see if >> anything changed. >> >> I'm looking to display a raster digital elevation model in mapserver. >> My data is in flat files, img and tiff. I'd like to display this data as >> a continuous gradient color range, rather than using CLASS categories/bins >> for specific colors. Is it still tru ethat this is not possible, easily? >> >> One method (passed to me on this list) was too generate the colored >> ima
Re: [mapserver-users] Re: gradient display of raster DEM data (John Callahan)
Thanks guys. Adding an EXPRESSION for each class worked great. When using only one class, the EXPRESSION was not necessary. I'm using RGB and everything looks great. Any thoughts about the Legend Graphic? I saw some brief discussions on the doc page. - John On Mon, Nov 21, 2011 at 9:09 AM, Mark Volz wrote: > John, > > I was able to get datarange and classrange to work. However I found a > couple issues: > > 1) I had to include an expression for the raster range. - This may have > been fixed in newer versions of MS. > 2) I was getting unwanted black areas on my map. - I was using PC256 (to > make the image smaller), I had to revert to RGB, which has more colors. > Mapserver did not report an error when I was using PC256. > > > > CLASS >EXPRESSION ([pixel] >= 1030 AND [pixel] < 1133) >STYLE >COLORRANGE 176 240 232 255 255 179 >DATARANGE 1030 1133 >END > END #class > > > > Mark Volz > GIS Specialist > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org [mailto: > mapserver-users-boun...@lists.osgeo.org] On Behalf Of > mapserver-users-requ...@lists.osgeo.org > Sent: Sunday, November 20, 2011 11:00 AM > To: mapserver-users@lists.osgeo.org > Subject: mapserver-users Digest, Vol 46, Issue 53 > > Send mapserver-users mailing list submissions to >mapserver-users@lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit >http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to >mapserver-users-requ...@lists.osgeo.org > > You can reach the person managing the list at >mapserver-users-ow...@lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. Re: gradient display of raster DEM data (John Callahan) > > > -- > > Message: 1 > Date: Sat, 19 Nov 2011 13:51:38 -0500 > From: John Callahan > Subject: Re: [mapserver-users] gradient display of raster DEM data > To: "mapserver-users@lists.osgeo.org" > > Message-ID: > > > Content-Type: text/plain; charset="iso-8859-1" > > Thanks again for the idea of using multiple classes but I can't seem to get > it to work. Has anyone else had success with this method? It seems as > though it's applying only the first defined COLORRANGE to full range of the > values in the dataset. > > I've tried using the below syntax (only COLORRANGE and DATARANGE in each > CLASS) as well as the (proposed?) block syntax as defined at > http://mapserver.org/development/rfc/ms-rfc-6.html (which gives me errors > for RANGEITEM and invalid hex color for MINCOLOR.) > > I am using MapServer 6.0.1 as part of MSW 3.0.3. > > Incorrect image being displayed: http://i44.tinypic.com/2hdwuuu.jpg > > Correct image, created through QGIS: http://i42.tinypic.com/21d2x5h.jpg > > > Here is the LAYER portion of my map file. Is there anything obvious I > should change? Thanks for any suggestions. > > *** > LAYER >NAME 'de_dem2m' >TYPE RASTER >DATA 'C:\data\delaware2m.img' > PROCESSING "CLOSE_CONNECTION=DEFER" > EXTENT 166773.496 49314.974 233217.496 204730.974 >METADATA > 'ows_title' 'Delaware DEM' > INCLUDE "ogc_projections.map" > 'wms_include_items' 'all' >END >STATUS ON > DUMP TRUE >TRANSPARENCY 100 >PROJECTION > "init=epsg:26957" >END > > CLASS > STYLE > COLORRANGE 170 230 209 255 255 179 > DATARANGE 0.0 7.0 > END > END > > CLASS > STYLE > COLORRANGE 255 255 179 0 128 64 > DATARANGE 7.01 11.0 > END > END > > CLASS > STYLE > COLORRANGE 0 128 64 252 186 3 > DATARANGE 11.01 14.0 > END > END > > CLASS > STYLE > COLORRANGE 252 186 3 199 15 2 > DATARANGE 14.01 20.0 > END > END > CLASS > STYLE > COLORRANGE 199 15 2 105 48 13 > DATARANGE 20.01 40.0 > END > END > > CLASS > STYLE > COLORRANGE 105 48 13 171 171 171 > DATARANGE 40.01 100.0 > END > END > > CLASS > STYLE > COLORRANGE 171 171 171 232 230 232 > DATARANGE 100.01 140.0 > END > END > > END > * > > - John > >
[mapserver-users] mapcache
I'm giving mapcache a try but with no luck. Well, some luck. The module loads fine and the demo (vmap0, http://127.0.0.1/mapcache/demo/wms) also works fine. I see the tiles being generated on disk. Great. However, the problem comes in with my own data/services. A few questions may help me determine the problem. - in the source element, how do you define multiple layers? Comma separated or separate entries? - in the tileset element, can you have multiple grid entries? It doesn't seem like it from reading the documentation but the sample tileset shows both the "g" and "WGS84" grids. - for cache type attributes, what are the possible values? The docs show several possibilities (disk, sqllite, memcache) but the sample shows type="tiff" which is not listed on the doc page. Can other file extensions be used here? - when I define a FORMAT with name and type, how does that get used? I see that is called in the tileset but how does that relate to the image type under getmap/params/format? The doc page I am referring to is at http://www.mapserver.org/trunk/mapcache/config.html. I'm sure I'll have other questions as I work my way through. Thanks for this awesome addition to Mapserver! - John *** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache
Thanks for the help but I think I'm misunderstanding mapcache at a more basic level. What is the mapcachealias? In the apache httpd.conf file (using the latest MS4W), there is MapCacheAlias /mapcache "C:/ms4w/apps/mapcache/mapcache.xml" How does that relate to my own mapservices? What changes do I need to make to have them cached? My mapservices typically look like http://servername/myservice?LAYERS=layer1,layer2,...&REQUEST=GetMap&SERVICE=WMS&;.. .. Something else that seems strange is when looking at the demo ( http://servername/mapcache/dem/wms), it makes available additional layers based on entries in the current mapcache.xml file. When I try to select my own service through the demo interface, I see that it makes a GetMap request with LAYERS = tileset name. Does the name I define for the tileset in mapcache.xml have to be specific to my map service? or any special requirements? Thanks for your help. - John On Wed, Feb 1, 2012 at 6:56 AM, thomas bonfort wrote: > On Thu, Jan 26, 2012 at 19:30, John Callahan > wrote: > > I'm giving mapcache a try but with no luck. Well, some luck. The module > > loads fine and the demo (vmap0, http://127.0.0.1/mapcache/demo/wms) also > > works fine. I see the tiles being generated on disk. Great. However, > the > > problem comes in with my own data/services. A few questions may help me > > determine the problem. > > > > - in the source element, how do you define multiple layers? Comma > separated > > or separate entries? > > layer1,layer2 > > > > > - in the tileset element, can you have multiple grid entries? It doesn't > > seem like it from reading the documentation but the sample tileset shows > > both the "g" and "WGS84" grids. > which doc part does not show this? > http://www.mapserver.org/trunk/mapcache/config.html#tileset > > > > > - for cache type attributes, what are the possible values? The docs show > > several possibilities (disk, sqllite, memcache) but the sample shows > > type="tiff" which is not listed on the doc page. Can other file > extensions > > be used here? > http://www.mapserver.org/trunk/mapcache/caches.html > > > > > - when I define a FORMAT with name and type, how does that get used? I > see > > that is called in the tileset but how does that relate to the image type > > under getmap/params/format? > > The format is used when recompressing individual tiles after having > cut a larger metatile. It is also used when combining multiple tiles > into a single image for a getmap request. If you want to force a > specific format to be sent to the source wms server when creating a > tile, you can add a foobar to your source definition > (at the same level as the parameter). Both formats don't have > to be equivalent, it is actually a good idea to request the images in > png from the source wms server even when using a jpeg format for the > the tileset, as this will avoid a double jpeg compression (once on the > wms server, once on the mapcache server) when storing an individual > tile to the caches. > > regards, > thomas > > > > > > > The doc page I am referring to is > > at http://www.mapserver.org/trunk/mapcache/config.html. I'm sure I'll > have > > other questions as I work my way through. Thanks for this awesome > addition > > to Mapserver! > > > > - John > > > > *** > > John Callahan, Research Scientist > > Delaware Geological Survey, University of Delaware > > URL: http://www.dgs.udel.edu > > * > > > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache
Oops! Correction: My map services typically look like: (forgot the cgi-bin path) http://servername/fcgi-bin/myservice?LAYERS=layer1,layer2,...&REQUEST=GetMap&SERVICE=WMS&;.. .. - John On Tue, Feb 7, 2012 at 4:41 PM, John Callahan wrote: > Thanks for the help but I think I'm misunderstanding mapcache at a more > basic level. > > What is the mapcachealias? In the apache httpd.conf file (using the > latest MS4W), there is > > MapCacheAlias /mapcache "C:/ms4w/apps/mapcache/mapcache.xml" > > How does that relate to my own mapservices? What changes do I need to > make to have them cached? My mapservices typically look like > > > http://servername/myservice?LAYERS=layer1,layer2,...&REQUEST=GetMap&SERVICE=WMS&;.. > .. > > > Something else that seems strange is when looking at the demo ( > http://servername/mapcache/dem/wms), it makes available additional layers > based on entries in the current mapcache.xml file. When I try to select my > own service through the demo interface, I see that it makes a GetMap > request with LAYERS = tileset name. Does the name I define for the tileset > in mapcache.xml have to be specific to my map service? or any special > requirements? > > Thanks for your help. > > - John > > > > > > On Wed, Feb 1, 2012 at 6:56 AM, thomas bonfort > wrote: > >> On Thu, Jan 26, 2012 at 19:30, John Callahan >> wrote: >> > I'm giving mapcache a try but with no luck. Well, some luck. The >> module >> > loads fine and the demo (vmap0, http://127.0.0.1/mapcache/demo/wms) >> also >> > works fine. I see the tiles being generated on disk. Great. However, >> the >> > problem comes in with my own data/services. A few questions may help me >> > determine the problem. >> > >> > - in the source element, how do you define multiple layers? Comma >> separated >> > or separate entries? >> >> layer1,layer2 >> >> > >> > - in the tileset element, can you have multiple grid entries? It >> doesn't >> > seem like it from reading the documentation but the sample tileset shows >> > both the "g" and "WGS84" grids. >> which doc part does not show this? >> http://www.mapserver.org/trunk/mapcache/config.html#tileset >> >> > >> > - for cache type attributes, what are the possible values? The docs >> show >> > several possibilities (disk, sqllite, memcache) but the sample shows >> > type="tiff" which is not listed on the doc page. Can other file >> extensions >> > be used here? >> http://www.mapserver.org/trunk/mapcache/caches.html >> >> > >> > - when I define a FORMAT with name and type, how does that get used? I >> see >> > that is called in the tileset but how does that relate to the image type >> > under getmap/params/format? >> >> The format is used when recompressing individual tiles after having >> cut a larger metatile. It is also used when combining multiple tiles >> into a single image for a getmap request. If you want to force a >> specific format to be sent to the source wms server when creating a >> tile, you can add a foobar to your source definition >> (at the same level as the parameter). Both formats don't have >> to be equivalent, it is actually a good idea to request the images in >> png from the source wms server even when using a jpeg format for the >> the tileset, as this will avoid a double jpeg compression (once on the >> wms server, once on the mapcache server) when storing an individual >> tile to the caches. >> >> regards, >> thomas >> >> > >> > >> > The doc page I am referring to is >> > at http://www.mapserver.org/trunk/mapcache/config.html. I'm sure I'll >> have >> > other questions as I work my way through. Thanks for this awesome >> addition >> > to Mapserver! >> > >> > - John >> > >> > *** >> > John Callahan, Research Scientist >> > Delaware Geological Survey, University of Delaware >> > URL: http://www.dgs.udel.edu >> > * >> > >> > >> > ___ >> > mapserver-users mailing list >> > mapserver-users@lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] polygon symbol image fill problem
I hope this is an easy question. I'm drawing a polygon dataset through WMS. For some of the classes, I am filling those polygons with a local PNG file. However, the image itself has an outline. (see attached image for an example) Is there a way to remove the symbol image outline inside my polygon features? Here is a snippet of my map file. I'm using Mapserver 6.0.2 on Windows (I don't seem to remember this happening in older versions of Mapserver but maybe I missed it.) Thanks. CLASS NAME 'pegmatite' EXPRESSION 'pegmatite' STYLE SYMBOL 'graphics/pegmatite.png' END END - John ******* John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * <>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] polygon symbol image fill problem
@Matt: I doubt I can use the standard symbol features of Mapserver. Maybe. The hatch symbol is but one example. I have approx 10 - 20 image-based fills of all different types. These were created for our published, standardized geologic maps. Our web-based maps need to look identical to our publications. Thanks for the suggestion. @Havard: Thanks for the info. I'm glad there's a fix for this in 6.2. I can wait until then. - John *** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * On Thu, Mar 29, 2012 at 1:00 AM, Matt McClelland wrote: > Hi John > > I can't answer you question specifically I have not tried that feature > > But can you use standard symbols to do the hatch-fill instead? You will > probably get a better looking fill effect, and be kinder to your server > > The Symbol construction stuff took me a little while to get my head > around, but it is very powerful and allows you to do some cool things. > Hatching is fairly easy and you find a good example here. > http://mapserver.org/mapfile/symbology/construction.html#hatch-fill > > Hope that helps > > Matt :) > > Matt McClelland > mob: 0411 306 650 > e-mail: m...@wildwalks.com > web: http://www.wildwalks.com/ > Books: http://www.wildwalks.com/books > Newsletter: http://www.wildwalks.com/office/newsletters/ > > > On Thu, Mar 29, 2012 at 3:24 PM, John Callahan wrote: > >> I hope this is an easy question. I'm drawing a polygon dataset through >> WMS. For some of the classes, I am filling those polygons with a local PNG >> file. However, the image itself has an outline. (see attached image for an >> example) Is there a way to remove the symbol image outline inside my >> polygon features? >> >> Here is a snippet of my map file. I'm using Mapserver 6.0.2 on Windows >> (I don't seem to remember this happening in older versions of Mapserver but >> maybe I missed it.) Thanks. >> >> CLASS >> NAME 'pegmatite' >> EXPRESSION 'pegmatite' >> STYLE >> SYMBOL 'graphics/pegmatite.png' >>END >> END >> >> - John >> >> *** >> John Callahan, Research Scientist >> Delaware Geological Survey, University of Delaware >> URL: http://www.dgs.udel.edu >> * >> >> >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Speed vs Direct URL
Is the one tile your are requesting directly through your browser the same size (in pixels, say 256x256) than each tile being displayed through OL? Or is the image requested through the browser much larger in extent and size than a single OL tile? - John On Sat, Apr 7, 2012 at 5:11 PM, Andrew Revering wrote: > I'm curious if anyone knows why WMS is SOOO much faster when I am loading > my maps through a map (OpenLayers) than it is when I just try to pull a > single tile directly through my brower and a WMS url? > > It seems like the server takes forever when I just enter a WMS URL into my > browser's address bar, but when I load the same WMS map through OpenLayers > its so much faster, despite loading all those seperate tiles individually > instead of just the one I'm requesting in the browser. > > Any ideas? > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GeoSciML in Mapserver WFS
Does anyone have experience in implementing GeoSciML (instead of GML) through Mapserver WFS? I've read that Apache Cocoon can be used for an alternate XML format. However, can Mapserver be configured to use something like OUTPUTFORMAT=GEOSCIML? Thanks for any advice. - John *** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GeoSciML in Mapserver WFS
Thank you Eric for the response and references. Yes, working with OneGeology is one of the reasons why GeoSCiML through Mapserver would be useful to us. Their cookbooks do provide some good information. At this point, using Apache Cocoon or moving to Geoserver/Deegree for this work seem to be the best options. - John *** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu * On Wed, Apr 25, 2012 at 1:34 PM, Boisvert, Eric < eric.boisv...@rncan-nrcan.gc.ca> wrote: > ** > Deegree and GeoServer can, Mapserver is limited to GML Simple Feature > (AFAIK), but XSLT over the output can do the trick in some situations. > > See Alistair Ritchie'S excellent documentation at > https://www.seegrid.csiro.au/wiki/CGIModel/GeoSciMLReferenceDataset > and > https://www.seegrid.csiro.au/wiki/CGIModel/DeegreeGeoSciMLImplementation > > Snowflake is also an $ alternative. > > One Geology has a couple of cookbook you might be interested in. > > http://www.onegeology.org/misc/downloads.html > > > -- > *De :* mapserver-users-boun...@lists.osgeo.org [mailto: > mapserver-users-boun...@lists.osgeo.org] *De la part de* John Callahan > *Envoyé :* 25 avril 2012 13:09 > *À :* mapserver-users@lists.osgeo.org > *Objet :* [mapserver-users] GeoSciML in Mapserver WFS > > Does anyone have experience in implementing GeoSciML (instead of GML) > through Mapserver WFS? I've read that Apache Cocoon can be used for an > alternate XML format. However, can Mapserver be configured to use > something like OUTPUTFORMAT=GEOSCIML? > > Thanks for any advice. > > - John > > *** > John Callahan, Research Scientist > Delaware Geological Survey, University of Delaware > URL: http://www.dgs.udel.edu > * > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver or MS4W package on Windows x64
I have an existing server running x64 Windows Server 2008. I've been running x64 version sof Apache 2.2.10 and PHP 5.2.5 as downloaded and described here: http://www.elxis.org/guides/developers-guides/64bit-apache-php-mysql-windows.html (PHP is currently running as an apache module) My question is could I use MS4W and follow the instructions under Installing for other Environments (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL_3.0.html#j-installing-the-ms4w-mapserver-binaries-in-other-environments) Or, should I install the pieces (mapserver, gdal, etc...) separately, and possibly got the x64 versions from http://vbkto.dyndns.org:1280/sdk/Default.aspx ? At the start, I'll be using Mapserver for viewing of basic WMS services, nothing fancy. Not too far in the future though, I'll be using PHP or Python mapscript code, and/or implementing a package like GeoMoose. My data will be shapefiles, PostGIs features, and a few raster formats. Any suggestions on where I should start with setting up my server? Thanks. - John ** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver or MS4W package on Windows x64
I started working with the x64 binaries from Tamas' site at http://vbkto.dyndns.org:1280/sdk/Default.aspx. MSVC2005 (Win64) seemed most appropriate for me. However, I did not see php mapscript support. Is that true? I did see mapscript for java, python, and csharp. Can php mapscript run at all with x64 versions of Apache/PHP and/or Mapserver? If not, then I'll have to give up x64 or PHP. Bummer. I've also been reading that I should run Mapserver in fastcgi mode, in either Win32 or Win64 versions. Does that mean to use PHP mapscript that I need to run PHP in cgi/fastcgi mode and NOT as an apache module? Thanks for any advice. It's a bit confusing. - John ****** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ****** John Callahan wrote: I have an existing server running x64 Windows Server 2008. I've been running x64 version sof Apache 2.2.10 and PHP 5.2.5 as downloaded and described here: http://www.elxis.org/guides/developers-guides/64bit-apache-php-mysql-windows.html (PHP is currently running as an apache module) My question is could I use MS4W and follow the instructions under Installing for other Environments (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL_3.0.html#j-installing-the-ms4w-mapserver-binaries-in-other-environments) Or, should I install the pieces (mapserver, gdal, etc...) separately, and possibly got the x64 versions from http://vbkto.dyndns.org:1280/sdk/Default.aspx ? At the start, I'll be using Mapserver for viewing of basic WMS services, nothing fancy. Not too far in the future though, I'll be using PHP or Python mapscript code, and/or implementing a package like GeoMoose. My data will be shapefiles, PostGIs features, and a few raster formats. Any suggestions on where I should start with setting up my server? Thanks. - John ** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GetCapabilities response being truncated
This seems to be a strange problem... I can generate maps fine through the browser and mode=map. However, responses to GetCapabilities requests are being truncated. They are being truncated to 4053 characters. I've tried this using two separate map files, using different data, both WMS 1.1.0 and 1.1.1 versions, and the same result every time. I found some references to old posts but they didn't seem to apply here. My data in each map file is just one shapefile. My map file symbology is also very simple; it's listed below. When run from the command line (mapserv "QUERY_STRING=map=...REQUEST=GetCapabilities"), it works perfectly. I'm using the x64 stable build from http://vbkto.dyndns.org:1280/sdk/Default.aspx (MSVC2005 Win64) Apache 2.2.10 and PHP 5.2.5 (x64 versions) if that matters. I just don't know what's going on. Sounds like a problem with my server setup. Has anyone experienced this before? Any suggestions on what I can check? Thanks. - John * start of mapfile # Map file created from QGIS project file C:/Apache2.2/cgi-bin/maps/geomap12.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME 'geomap12' # Map image size SIZE 600 600 UNITS meters CONFIG "PROJ_LIB" "C:/programs/proj/nad/" EXTENT 213919.523729 80938.404739 236765.007609 99539.050324 PROJECTION "init=epsg:26957" END # Background color for the map canvas -- change as desired TRANSPARENT ON IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH 'C:/Apache2.2/htdocs/output/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/output/' # WMS server settings METADATA 'wms_title' 'geomap12' 'wms_onlineresource' 'http://diagproweb01/cgi-bin/mapserv.exe?map=c:/webgis/mapfiles/geomap12.map&;' 'wms_srs' 'EPSG:26957 EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END LAYER NAME 'geounits' TYPE POLYGON DATA 'C:\webgis\data\geomap_pubs\geomap12.shp' METADATA 'wms_title' 'geounits' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION "init=epsg:26957" END CLASS NAME 'geomap12' STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 144 50 207 END END END END * end of mapfile ** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetCapabilities response being truncated
Update: I should rephrase my statements... When run from the command line, c:\apache2.2\cgi-bin\mapserv "QUERY_STRING=map=...REQUEST=GetCapabilities" only works when output is to the screen. When directing the output to a file, like c:\apache2.2\cgi-bin\mapserv "QUERY_STRING=map=...REQUEST=GetCapabilities" > geomap.xml, then the output is again truncated. The limit is not 4053 characters but rather 4096 characters. At least the number makes more sense. Using MapServer 5.4.1, x64 in Windows 2008 Server. More details on the environment is: http://vbkto.dyndns.org:1280/sdk/PackageInfo.aspx?file=release-1400-x64-gdal-1-6-mapserver-5-4.zip - John John Callahan wrote: This seems to be a strange problem... I can generate maps fine through the browser and mode=map. However, responses to GetCapabilities requests are being truncated. They are being truncated to 4053 characters. I've tried this using two separate map files, using different data, both WMS 1.1.0 and 1.1.1 versions, and the same result every time. I found some references to old posts but they didn't seem to apply here. My data in each map file is just one shapefile. My map file symbology is also very simple; it's listed below. When run from the command line (mapserv "QUERY_STRING=map=...REQUEST=GetCapabilities"), it works perfectly. I'm using the x64 stable build from http://vbkto.dyndns.org:1280/sdk/Default.aspx (MSVC2005 Win64) Apache 2.2.10 and PHP 5.2.5 (x64 versions) if that matters. I just don't know what's going on. Sounds like a problem with my server setup. Has anyone experienced this before? Any suggestions on what I can check? Thanks. - John * start of mapfile # Map file created from QGIS project file C:/Apache2.2/cgi-bin/maps/geomap12.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME 'geomap12' # Map image size SIZE 600 600 UNITS meters CONFIG "PROJ_LIB" "C:/programs/proj/nad/" EXTENT 213919.523729 80938.404739 236765.007609 99539.050324 PROJECTION "init=epsg:26957" END # Background color for the map canvas -- change as desired TRANSPARENT ON IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH 'C:/Apache2.2/htdocs/output/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/output/' # WMS server settings METADATA 'wms_title' 'geomap12' 'wms_onlineresource' 'http://diagproweb01/cgi-bin/mapserv.exe?map=c:/webgis/mapfiles/geomap12.map&;' 'wms_srs' 'EPSG:26957 EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END LAYER NAME 'geounits' TYPE POLYGON DATA 'C:\webgis\data\geomap_pubs\geomap12.shp' METADATA 'wms_title' 'geounits' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION "init=epsg:26957" END CLASS NAME 'geomap12' STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 144 50 207 END ENDEND END * end of mapfile ** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetCapabilities response being truncated
I'm still struggling to find the cause of this strange problem. Has anyone successfully run x64 MapServer (from http://vbkto.dyndns.org:1280/sdk/) on Windows? Has anyone ever seen the 4096 character truncating problem before? Thanks for any help you can provide. - John John Callahan wrote: Update: I should rephrase my statements... When run from the command line, c:\apache2.2\cgi-bin\mapserv "QUERY_STRING=map=...REQUEST=GetCapabilities" only works when output is to the screen. When directing the output to a file, like c:\apache2.2\cgi-bin\mapserv "QUERY_STRING=map=...REQUEST=GetCapabilities" > geomap.xml, then the output is again truncated. The limit is not 4053 characters but rather 4096 characters. At least the number makes more sense. Using MapServer 5.4.1, x64 in Windows 2008 Server. More details on the environment is: http://vbkto.dyndns.org:1280/sdk/PackageInfo.aspx?file=release-1400-x64-gdal-1-6-mapserver-5-4.zip - John John Callahan wrote: This seems to be a strange problem... I can generate maps fine through the browser and mode=map. However, responses to GetCapabilities requests are being truncated. They are being truncated to 4053 characters. I've tried this using two separate map files, using different data, both WMS 1.1.0 and 1.1.1 versions, and the same result every time. I found some references to old posts but they didn't seem to apply here. My data in each map file is just one shapefile. My map file symbology is also very simple; it's listed below. When run from the command line (mapserv "QUERY_STRING=map=...REQUEST=GetCapabilities"), it works perfectly. I'm using the x64 stable build from http://vbkto.dyndns.org:1280/sdk/Default.aspx (MSVC2005 Win64) Apache 2.2.10 and PHP 5.2.5 (x64 versions) if that matters. I just don't know what's going on. Sounds like a problem with my server setup. Has anyone experienced this before? Any suggestions on what I can check? Thanks. - John * start of mapfile # Map file created from QGIS project file C:/Apache2.2/cgi-bin/maps/geomap12.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME 'geomap12' # Map image size SIZE 600 600 UNITS meters CONFIG "PROJ_LIB" "C:/programs/proj/nad/" EXTENT 213919.523729 80938.404739 236765.007609 99539.050324 PROJECTION "init=epsg:26957" END # Background color for the map canvas -- change as desired TRANSPARENT ON IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH 'C:/Apache2.2/htdocs/output/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/output/' # WMS server settings METADATA 'wms_title' 'geomap12' 'wms_onlineresource' 'http://diagproweb01/cgi-bin/mapserv.exe?map=c:/webgis/mapfiles/geomap12.map&;' 'wms_srs' 'EPSG:26957 EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END LAYER NAME 'geounits' TYPE POLYGON DATA 'C:\webgis\data\geomap_pubs\geomap12.shp' METADATA 'wms_title' 'geounits' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION "init=epsg:26957" END CLASS NAME 'geomap12' STYLE SYMBOL 0 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 144 50 207 END ENDEND END * end of mapfile ** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url
I was getting the exact same error when accessing the GetCapabilities output. For me, the output was getting truncated at 4kb, resulting in the "premature end of script headers" message. Even if I ran the script from the command line, the error was still there (if output was to a file, such as > out.xml, but all worked great when directing output to screen.) http://n2.nabble.com/GetCapabilities-response-being-truncated-td3234081.html The error was also there when connecting to WMS services as a tile server, such as via Google Maps API. About half of the tiles would show up and the other half of the requests had the same error. (a single request to the WMS always worked great, it seemed to be the multiple, almost concurrent requests from the GM api that caused the error.) Unfortunately, I could not solve the problem. The error occurred on two of by Windows Server 2008 machines, a third 2008 machine worked great. My Windows XP and Server 2003 machines worked great so I went with Server 2003. (all machines were x64 bit and used Apache 2.2. I am not sure if they all used vhosts/subdomains or not.) Good luck! I gave up and just went with a machine that worked (one of the benefits of virtualization!) - John ****** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware Email: john.calla...@udel.edu ** Ted Spradley wrote: The Apache error_log shows: error_log shows: [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of script headers: mapserv Thanks, Ted S. Andy Colson wrote: Ted Spradley wrote: Hi all, I decided it would be a good idea to move all of my mapping activity to a subdomain: maps.subdomain.com Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result is '500 Internal Server Error'. Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result is the expected 'No query information to decode. QUERY_STRING is set, but empty. '. access_log shows the two requests converted to the same GET: 1. 'http://domain.com/cgi-bin/mapserv' - What does apache error log show? -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] php mapscript
Does anyone know of a php_mapscript.dll (this is for Windows) that works with MapServer 5.4+ and PHP 5.2? Looking at MS4W 3.0 beta, it looks like it's for MS 5.4.2 and PHP 5.3. Previous version of MS4W is for PHP 5.2 and MS 5.2.4. Thanks. - John ** John Callahan, Geospatial Application Developer Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ** ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users