Re: [mapserver-users] How to Mapserver 6.4 on Windows?
try mapserv -v command, it will list all the supported drivers. Another possible source of mapserver binaries is http://www.gisinternals.com it is compiled with mssql (as I read in the package info). Zoltan On Thu, 4 Sep 2014, Solly Vuso wrote: Does this version contains MSSQL connection? On 03 Sep 2014 11:10 PM, Siki Zoltan s...@agt.bme.hu wrote: yes On Wed, 3 Sep 2014, Thomas RAFFIN wrote: Hi, Does this version contain PHP Mapscript? Thanks Thomas Le 03/09/2014 15:46, Siki Zoltan a écrit : Dear Francesco, you can download binary package from http://trac.osgeo.org/osgeo4w/ 6.4.1 is the latest stabil. You can download apache laso from there. Zoltan On Wed, 3 Sep 2014, Francesco Martinelli wrote: Hi, I would like to install Mapserver 6.4.x on a Windows OS. What should I do? ... I immagine recompile, but can someone post some more details on specific steps to follow. Thank you. ___ 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 -- Thomas RAFFIN Chef de Projet Internet traf...@sirap.fr mailto:traf...@sirap.fr Sirap http://sirap.fr Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex ___ 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] How to Mapserver 6.4 on Windows?
Dear Francesco, you can download binary package from http://trac.osgeo.org/osgeo4w/ 6.4.1 is the latest stabil. You can download apache laso from there. Zoltan On Wed, 3 Sep 2014, Francesco Martinelli wrote: Hi, I would like to install Mapserver 6.4.x on a Windows OS. What should I do? ... I immagine recompile, but can someone post some more details on specific steps to follow. Thank you. ___ 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] How to Mapserver 6.4 on Windows?
yes On Wed, 3 Sep 2014, Thomas RAFFIN wrote: Hi, Does this version contain PHP Mapscript? Thanks Thomas Le 03/09/2014 15:46, Siki Zoltan a écrit : Dear Francesco, you can download binary package from http://trac.osgeo.org/osgeo4w/ 6.4.1 is the latest stabil. You can download apache laso from there. Zoltan On Wed, 3 Sep 2014, Francesco Martinelli wrote: Hi, I would like to install Mapserver 6.4.x on a Windows OS. What should I do? ... I immagine recompile, but can someone post some more details on specific steps to follow. Thank you. ___ 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 -- Thomas RAFFIN Chef de Projet Internet traf...@sirap.fr mailto:traf...@sirap.fr Sirap http://sirap.fr Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How to deal with (visible) CONNECTION information in .MAP file for WMS purposes
Dear Stefan, you can create one wrapper script for each maps file or you can ask only the name (without path) of the map file and your wrapper adds the path to the name. Regards, Zoltan On Tue, 7 Jan 2014, Stefan Schwarzer wrote: Thanks for all the valuable help! If I place the .MAP file somewhere where only the system can read it, the request looks a bit awkward: ?.map=/home/include/mapfiles/my_map.map?. Would there a possibility to juste use ?map=my_map? and have the path then get added/understood by some internal configuration (mod_rewrite perhaps?)? For the Wrapper, I don't really understand how that one would work. I have multiple .MAP files. And they need to by WMS-compliant. If I understand correctly, the URL would call the script: http://my_url.org/my_script, right? H... It says: #!/bin/sh MAPSERV=/path/to/my/mapserv MS_MAPFILE=/path/to/my/mapfile.map exec ${MAPSERV} Thanks for any help! Stefan On 06.01.2014, at 11:03, Siki Zoltan wrote: Hi Stefan, you should hide your map file using a wrapper script on the server side. See http://mapserver.org/cgi/wrapper.html You can find some other methods at http://mapserver.org/ogc/wms_server.html look for Changing the Online Resource URL Regards, Zoltan On Mon, 6 Jan 2014, Stefan Schwarzer wrote: Hi there, I am wondering how to deal with the CONNECTION information in the .MAP which is used for WMS requests. As the .MAP file must be visible and is readable, the CONNECTION information for my database is readable too. # Layers definition - LAYER NAME wilderness_areas_po METADATA 'wcs_label' 'Wilderness Areas' 'wcs_rangeset_name' 'test' 'wcs_rangeset_label' 'test label' END TYPE RASTER STATUS OFF DATA wilderness_areas_po CONNECTIONTYPE postgis CONNECTION 'user=my_username password=my_password dbname=my_database' PROJECTION 'init=epsg:4326' END END Either I would then need to create a very simple user for that case which really only can read the data, or I should hide the file in a directory which is not readable by a webuser. But I guess that Mapserver wouldn't like that. What are your recommendations? Thanks for any hints. Stefan ___ 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] How to deal with (visible) CONNECTION information in .MAP file for WMS purposes
Hi Stefan, you should hide your map file using a wrapper script on the server side. See http://mapserver.org/cgi/wrapper.html You can find some other methods at http://mapserver.org/ogc/wms_server.html look for Changing the Online Resource URL Regards, Zoltan On Mon, 6 Jan 2014, Stefan Schwarzer wrote: Hi there, I am wondering how to deal with the CONNECTION information in the .MAP which is used for WMS requests. As the .MAP file must be visible and is readable, the CONNECTION information for my database is readable too. # Layers definition - LAYER NAME wilderness_areas_po METADATA 'wcs_label' 'Wilderness Areas' 'wcs_rangeset_name' 'test' 'wcs_rangeset_label' 'test label' END TYPE RASTER STATUS OFF DATA wilderness_areas_po CONNECTIONTYPE postgis CONNECTION 'user=my_username password=my_password dbname=my_database' PROJECTION 'init=epsg:4326' END END Either I would then need to create a very simple user for that case which really only can read the data, or I should hide the file in a directory which is not readable by a webuser. But I guess that Mapserver wouldn't like that. What are your recommendations? Thanks for any hints. Stefan ___ 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] alternatives to ms4w?
Dear John, check osgeo4w at http://trac.osgeo.org/osgeo4w/ Regards, Zoltan On Sat, 29 Jun 2013, John Smith wrote: guys, are there any good alternatives to ms4w at http://www.maptools.org/ms4w/?page=downloads.html. its last stable base package is over a year old from may 26, 2012, and there is no timeline given about its next release. thanks, jzs ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Raster Display Performance
Dear Zsolt, You sould make pyramid and tiles. Divide the original images into smaller pieces. You can use gdal_translate. (I usually use approx 10 MB or smaller image size) Use gdaladdo to create pyramid. Regards Zoltan On Sun, 7 Mar 2010, Medve Zsolt wrote: Hy all! I would like to ask for a help. I have a dataset. 30 pieces of Tif file, aproximately 240 MB each. I make a layer in the map file: LAYER NAME something STATUS ON TILEINDEX sh.shp TILEITEM Location TYPE RASTER METADATA DESCRIPTION Something too ows_title dem END END I use this in the pmapper framework.(But its doing the same thing in ka-map either) But its apeaars very slowly and when i panning its reload all and its very slowly too.. i would like to tune up the performance somwhow. I am looking the gdaladdo program, because mapserver documentation suggest it. But when i tried the given examples (http://www.gdal.org/gdaladdo.html) it wont work, or i dont know what to see, Its just do nothing i think.. Can anybody help me on this? Or any method to make a better performance? please! thanks, Zsolt ___ 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] gmap and AJAX
Dear Zsolt, AFAIK gmap is a pure php application, so you should add a div to your html and a javascript to handle click event included XMLHttpRequest and a server side php script to answer the XMLHttpRequest. Alternativly you can use an AJAX ready framework like pmapper, geomoose, openlayers, etc. regards, Zoltan On Sun, 28 Feb 2010, Medve Zsolt wrote: Hy all!! I have a problem. How can i implement Ajax into the Gmap sample application (written in PHP mapscript)? For example in this app, when you click on a city, some info appears, but the browser reload the whole page again. This is when a Jax should help, that its load only the ifno part, not the wole page. Can anybody help me out? Thanks Zsolt ___ 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] How can I get my shapefiles on LAN, without databases?
Dear Mauricio, I suppose you would map the shared folder of MYSECONDCOMPUTER on the mapserver machine. 1. On MYSECONDCOMPUTER make the folder of your shape files shared, e.g. Right click in explorer on the name of the folder and select Sharing. For more information on sharing folders see: http://www.microsoft.com/windowsxp/using/networking/maintain/share.mspx 2. On mapserver machine in explorer select map network drive in the Tools menu and select the sharing on the other machine and assing a letter to to it, probably you should check reconnect. 3. Change the data line in your map file. I suppose using shared files from another machine is a performance issue. Regeards, Zoltan On Wed, 12 Aug 2009, Mauricio Herrera wrote: thanks for your help Julien I will follow trying with this configuration... But anyway I will wait more suggestions..Maybe somebody have used this configuration Mauricio 2009/8/11 Julien-Samuel Lacroix jlacr...@mapgears.com Hi, This should be possible, but note that the shapefile must be readable by the Apache user. I'm not sure how to check that on Windows, but others may probably help. Julien Mauricio Herrera wrote: Hi mapserver users I hope you can help with my questions. please I have a LAN with two computers. One computer is installed MapServer and my second computer are my shapefiles How can I get my shapefiles from my second computer? I have tried to do this (example) , but I couldn´t get my shapefile... *Is it possible to do this?.. *Note: I dont wanna use database, only files Example: LAYER NAME mybridge DATA *//MYSECONDCOMPUTER/maps/bridge* STATUS ON TYPE LINE CLASS NAME bridges STYLE COLOR 0 167 197 OUTLINECOLOR 218 218 218 END END END Thanks Mauricio ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Contour maps
Dear Padma, You can use gdal_contour (found in gdal utilities) to generate contours from a DEM, then mapserver can display contour vectors. You can use several opensource software to generate DEM, e.g. GRASS, GTM Best regards Zoltan On Fri, 19 Jun 2009, padma priya wrote: Hi All Can anyone tell me if it is possible to draw contour maps using mapserver. TIA Padma ___ 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] Kml to shape file conversion
Hi, Try ogr2ogr, you can find it in the \ms4w\tools\gdal-ogr. Do not forget to start setenv.bat in \ms4w. Regards, Zoltan On Mon, 13 Apr 2009, Mukul Gupta wrote: hi.. I'm new to GIS development and undertaking a GIS based application as my college project. I m working on XP Pro environment with ms4w as mapserver. Will you please suggest me some way to convert kml files into shapefiles with all or most of the inherent attributes and labels present. Please suggest any free software for the same( if required ). Thanks in advance. --Mukul Gupta ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] CGI problem
Dear Balázs, Probably you have an error in your map file, an END may be missing or a quote (). Test your map file with shp2img e.g. shp2img -m your_map_file -o output_image An other note, do not use your unix box as root if it is not neccessary. Best regards, Zoltán On Mon, 2 Feb 2009, Balázs Bámer wrote: Hi All, I've compiled and installed Mapserver for CGI use. If I try it from browser like http://web.address.hu/cgi-bin/proba?map=/var/www/proba/data/proba.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities it gives Internal Server Error with Premature end of script headers in Apache error log. It definitely finds the mapfile. After some list archive investigations, I tried the command-line method for inspecting output to see behind internal server errors: r...@black:/var/log/mapserver# REQUEST_METHOD=GET r...@black:/var/log/mapserver# QUERY_STRING=map=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.rich.mapmode=map r...@black:/var/log/mapserver# /usr/lib/cgi-bin/mapserv This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. so it seems the mapserv called from command line didn't see the query. How could I debug it? Thank you in advance. Best regards: Balázs Bámer ___ 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] Need Help with Custom (Raster) Data as Input
Dear Muizudeen, On Tue, 20 Jan 2009, Muizudeen Kusimo wrote: I have done the following: 1) Converted my .jpeg files to .tif and run the gdaltindex program to georeference them. It returned a .shp, .shx and .dbf files. But I don't have any .tfw file yet. Please see output of GDALTINDEX below. gdaltindex doesn't create a georeference to your raster, it is usefull if you have many tiled georeferenced rasters. You should get information about the coordinates of the corner of the scanned map or coordinates for any visible point on your scanned map. Than you may create the tfw file by hand (if the sides of the scanned map are parelel to the coordinate axices it is simple). Or you can use GRASS or gdal utilities to calculate the transformation between your image coordinatesystem to the map coordinate system (e.g. UTM). 2) I tested my .map file with the shp2img utility and it generated a blank (white) .png file for me. Expectedly, the same blank file displays as blank in the browser (i.e. Ka-Map UI). AFAIK if you have a raster without georeference then Mapserver will use the pixel row and column number as coordinates. So now the extent sould be 0 0 1098 1696 or if the given extent in your map file are the corners of your map then create the following georeference file (tfw) - start of twf file 4802.18579 0 0 -2684.334316 -220 384 -- end of tfw file But I am not sure the resolution of your raster is so different in northing and easting direction. My new questions: 1) My maps were scanned from a paper map, does this affect my ability to Georeference them? No. But you need reference points on the map where the coordinates are known. 2) How do I determine the Projection of the scanned map images? Usually it is written on. The projection is not so important if all of your maps use the same projection (coordinate system). Best regards Zoltan Thanks. GDALTINDEX OUTPUT (condensed): == C:\ms4w\Apache\cgi-bingdalinfo c:\ms4w\apps\test\tmp\pg19.tif Driver: GTiff/GeoTIFF Files: c:\ms4w\apps\test\tmp\pg19.tif Size is 1098, 1696 Coordinate System is `' Metadata: TIFFTAG_XRESOLUTION=200 TIFFTAG_YRESOLUTION=200 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=BAND Corner Coordinates: Upper Left (0.0,0.0) Lower Left (0.0, 1696.0) Upper Right ( 1098.0,0.0) Lower Right ( 1098.0, 1696.0) Center ( 549.0, 848.0) Band 1 Block=1098x8 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 165,171,167,255 2: 255,197,98,255 3: 239,168,102,255 4: 206,150,75,255 . . #removed to conserve space . 255: 177,169,148,255 C:\ms4w\Apache\cgi-bin The test.map file I used: = MAP NAME test STATUS ON SIZE 1280 1280 EXTENT -220 -712631 3072800 384 UNITS DD #IMAGECOLOR 255 255 255 IMAGETYPE JPEG WEB IMAGEPATH c:\ms4w\apps\test\tmp\ IMAGEURL c:\ms4w\apps\test\ END LEGEND TRANSPARENT TRUE END SCALEBAR TRANSPARENT TRUE END LAYER NAME My Sample Location TYPE RASTER STATUS ON TILEINDEX tmp\pg19.shp TILEITEM Location END END #MAP END @Venkat I hope my mail gives a clearer picture of my status for your further advice. Thanks. On Tue, Jan 20, 2009 at 1:04 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, First of all your jpeg files need to be georeferenced. Jpeg files are most often georeferenced with world files which are named as .jgw. Sometimes they are named as .tfw, even that name is actually reserved for tiff files. And Mapserver understands also world files named as .wld. If your images are georeferenced you can continue to building one single layer from all of your images. It is done with gdaltindex utility program. Gdaltindex is building a shapefile that records the extents of all the images to be indexed. Third step is to make a new raster layer that is using the shapefile index as a catalogue for finding the actual image files that needs to be opened when user is requesting a map from a certain area. This should be enough to show you images as a single layer. It would be a benefit to know the projection where the images are because otherwise they cannot be reprojected. And for optimising performance it may be good to convert jpeg images to tiffs, but you can just start from jpegs and see if you are happy with the speed. In conclusion: 1. Check georeferencing and projection, gdalinfo program is a good help in this. 2. Make tileindex with gdaltindex 3. Make a new raster layer in mapfile referring to just created tileindex file. -Jukka Rahkonen- -- *Lähettäjä:* mapserver-users-boun...@lists.osgeo.org [mailto: mapserver-users-boun...@lists.osgeo.org] *Puolesta *Muizudeen Kusimo *Lähetetty:* 20. tammikuuta 2009 10:45 *Vastaanottaja:* mapserver-users@lists.osgeo.org *Aihe:* [mapserver-users] Need Help with Custom (Raster) Data as Input Hello Everyone,
[mapserver-users] mapserver web site {Scanned}
Hi, I can't connect to the mapserver web site (mapserver.gis.umn.edu) for two days. Is the server down or the site has been moved? Thanks Zoltan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users