[mapserver-users] Motion: FOSS4G WFS magician competition
Hi, I would love to meet a person or group who could contigure all these - GeoServer - deegree - MapServer and - TinyOWS to deliver the same datasets through WFS, and then show with some Open Source desktop client, that it is possible to build queries with both attribute and spatial filters and request features from all these services so that the returning data get correctly parsed and that finally there would be four identical map layers with identical attributes on the screen. I have found that I am not talented enough for that and I'll give in. As a first step I suggest that GeoServer, deegree, MapServer and TinyOWS developer teams would try to agree on some test datasets and try to keep them available from their demo servers so that the WFS server and client developers could use them for evaluating interoperability. Datasets do not need to be big so it should not be especially hard or expensive thing to do. Actually there are already at least these online, but all with different datasets: http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFSVERSION=1.0.0; REQUEST=GetCapabilities http://demo.deegree.org/deegree-wfs/services?SERVICE=WFSVERSION=1.0.0R EQUEST=GetCapabilities http://sigma.openplans.org:8080/geoserver/wfs?SERVICE=WFSVERSION=1.0.0; REQUEST=GetCapabilities Or perhaps the competition should be aimed for the desktop GIS teams? Usually there is no problem in getting data out from the WFS services with wget or browser, but the real clients tend to work against only (or at most) one WFS server model. Anyway, the same data available from different WFS servers would be extremely important even then. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapScript WMS Server - Custom exceptions
Hi all I have created a C# MapScript wrapper for a WMS server. Now, I want to add some vendor-specific parameters to the request (e.g.: http://server/wms?request=getmap...login=usrpassword=pwd;) This I have also made work, to a point. When the user enters invalid information, I just return a 403 errorpage (Access denied). I was thinking about throwing a WMS exception (XML/InImage/Blank) and wondering if MapServer/MapScript is able to throw custom exceptions? Or do I have to handle it myself? /Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapScript-WMS-Server-Custom-exceptions-tp5541770p5541770.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: MapScript dlls?
I use this build for my ASP.NET application: http://vbkto.dyndns.org/sdk/ http://vbkto.dyndns.org/sdk/ They are compiled for Windows, so as far as i can tell they should work. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapScript-dlls-tp5537964p5541780.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Output geospatial PDFs
Is MapServer able to output geospatial PDFs? I know that PDFlib is able to handle it in version 8 (commercial), but appearently not in PDFlib Lite as MapServer uses. http://www.pdflib.com/pdflib-cookbook/geospatial-pdf/starter-geospatial/ PDFlib cookbook about geospatial PDFs http://en.wikipedia.org/wiki/Geospatial_PDF Wikipedia article about geospatial PDFs /Kristian frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Output-geospatial-PDFs-tp5541843p5541843.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Dissolve Tool?
Hi, I guess that the Union by attribute function in OpenJUMP might be close to what you want (Tools - Analysis - One layer - Union by attribute value). Download the nightly snapshot from http://openjump.org and unzip. Increase Java memory setting in the launch file that is located in the \bin -directory. The file is openjump.bat for Windows, openjump.sh for Linux. The value you will need to increase is -Xmx256M. Try something like Xmx1400M. Lets hope it is enough for your dataset. OpenJUMP keeps all the data in memory and it is not sure that it can handle your data. I am remembering that with 32 bit Windows it is not possible to increase memory above about 1500M even if the computer has more but I have read about 64 bit Linux user who was super happy with 6 gigabytes. I had a try with Vmap0 World boundaries and union by REGION made me for example Europe and Asia multipolygons. Operation has an option for removing the common boundaries where it is possible, and another one for summing up the numeric fields. I suppose this is very close to what you want. -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Lehr, Steven Lähetetty: 16. syyskuuta 2010 18:14 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] Dissolve Tool? Does anyone have a reliable dissolve tool that they would share. I have many cases where I need to dissolve parcels on a parcel_id (maybe up to 200,000 polygons in the whole file); I know I can bring it down into ESRI, but it adds multiple steps to my process. I'd like to have a Perl/python script that does: dissolve.pl parcels parcel_id The output being a shapefile named parcels_dissolve.* Where the inputs: parcels is a shapefile and parcel_id an attribute in the .dbf; The .shp, .dbf etc would be processed appropriately dissolving on the attribute passed in, so it could be parcel_id to dissolve parcels with similar parcel_id, or could be an attribute like zoning; the resulting output file would contain only one record in the .dbf file for each unique attribute. Additionally the only attribute left in the .dbf would be the attribute being dissolved on (unless you have the ability to sum area or count # of occurrences; but no other logic about which fields to bring forth; just the one attribute). Thanks for the help. I'd be willing to pay for this project to be written if someone is interested - drop me an email off list. Steven Lehr Associate Professor College of Engineering Embry-Riddle Aeronautical University (LB263) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapScript WMS Server - Custom exceptions
Frost89 wrote: Hi all I have created a C# MapScript wrapper for a WMS server. Now, I want to add some vendor-specific parameters to the request (e.g.: http://server/wms?request=getmap...login=usrpassword=pwd;) This I have also made work, to a point. When the user enters invalid information, I just return a 403 errorpage (Access denied). I was thinking about throwing a WMS exception (XML/InImage/Blank) and wondering if MapServer/MapScript is able to throw custom exceptions? Or do I have to handle it myself? /Kristian Frost Kristian, Skimming maperror.h it appears that msSetError() is not exposed via SWIG. I think you would pretty much need access to this to push an error message through the conventional error handling channels from C#. One approach would be to try and expose msSetError() though I'm not sure if that would be enough. Alternatively you could fake your way around it just creating the error image or xml yourself. But this might be fragile in various ways. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Expressions
I am using GeoMoose but feel this is more a question for Map Server. I am trying to sort my points by dates using the code belowI think that I can do this but not sure Is this a viable format 2Y%2M%2D ? * As for the field in the shapefile...If I use an integer it removes the 0 from the 092110, (sept 21st 2010) * If I use a date then there are / ... 9/21/10 * The only way I can see this happening is using a text field with retains the 0 in 092110 When I use the textfield dateValues as seen below I can get the stars to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not show and I know that I have a few records with dates in the last 14 days... Thoughts? THANKSall your help is very appreciated Main .xml file map-source name=Burglaries type=mapserver file./maple_grove_datasets/police/Burglaries.map/file param type=today offset=-7 name=LASTWEEK format=%2Y%2M%2D / param type=today offset=-14 name=LASTTWOWEEKS format=%2Y%2M%2D / param type=today offset=-30 name=LASTTHIRTY format=%2Y%2M%2D / param type=today offset=-90 name=LASTNINTY format=%2Y%2M%2D / layer name=Burglaries/ /map-source .map file CLASS NAME 'Last Weeks' EXPRESSION ('[dateValues]' '%LASTWEEK%') STYLE COLOR 0 0 0 SYMBOL star SIZE 12 END END CLASS NAME 'Last Two Weeks' EXPRESSION ('[dateValues]' '%LASTTWOWEEKS%') STYLE COLOR 0 100 50 SYMBOL star SIZE 12 END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Could not read data from MySQL database
I don't know if this applies to your case at all. In other cases where people have had mysql connections fail, it has sometimes been due to the lack of mysql support in ogr. One question to figure out is whether the ogr being used by MapServer is the same ogr that you are hitting when you run ogrinfo. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Murat Beyhan Sent: Thursday, September 16, 2010 5:18 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Could not read data from MySQL database Dear Friends, I was succeeded to read and draw data from MySQL database using OGR connection until upgrade mapserver and gdal. Now I use the same codes but could not read data form MySql database. I have created tables using ogr2ogr again. but still When I open webpage the following error message occurred. msDrawMap(): Image handling error. Failed to draw layer named 'sea'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `sea'. File not found or unsupported format. What is wrong for that, please help. When I try ogrinfo as follows it works [mu...@localhost mapdata]$ ogrinfo MySQL:testogr,user=root,password=mysql_123 INFO: Open of `MySQL:testogr,user=root,password=mysql_pass' using driver `MySQL' successful. 1: deniz (Polygon) 2: il_merkezleri (Point) 3: il_sinirlari (Polygon) 4: ilce_merkezleri (Point) 5: ilce_sinirlari (Polygon) 6: iller (Polygon) 7: iller_sil (Polygon) 8: komsular (Polygon) [mu...@localhost mapdata]$ AND my mapserver version info as follows [mu...@localhost mapdata]$ mapserv -v MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE and [mu...@localhost mapdata]$ ogrinfo --formats Supported Formats: - ESRI Shapefile (read/write) - MapInfo File (read/write) - UK .NTF (readonly) - SDTS (readonly) - TIGER (read/write) - S57 (read/write) - DGN (read/write) - VRT (readonly) - REC (readonly) - Memory (read/write) - BNA (read/write) - CSV (read/write) - GML (read/write) - GPX (read/write) - KML (read/write) - GeoJSON (read/write) - Interlis 1 (read/write) - Interlis 2 (read/write) - GMT (read/write) - SQLite (read/write) - ODBC (read/write) - PGeo (readonly) - OGDI (readonly) - MySQL (read/write) - PCIDSK (readonly) - XPlane (readonly) - AVCBin (readonly) - AVCE00 (readonly) - DXF (read/write) - GRASS (readonly) - Geoconcept (read/write) - GeoRSS (read/write) - GPSTrackMaker (read/write) - VFK (readonly) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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] Re: Raster Display Performance
Hi everyone, I am using mapserver to create a tiling server. Actually I have this server working good but I realize that I have some performance issues. I am using MapServer in windows and my raster images are too large TIF files. (resolution 17000x16000 each tif). I have read a lot in this forum and I did all the recommended thing: gdal_translate -co TILED=YES old.tif new.tif gdaladdo new.tif 2 4 8 16 32 64 128 gdaltindex index.shp new.tif shptree index.shp The problem is I dind't see increased performance after that. Maybe I am doing something wrong. PROJECTION proj=longlat ellps=WGS84 datum=WGS84 no_defs END LAYER NAME Angola TYPE RASTER STATUS DEFAULT TILEINDEX index.shp TILEITEM Location END Best regards, Gonçalo Marins -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performance-tp4691679p5543142.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] creating layers dynamically with cgi
You can't create new layers, only alter existing. I've often put in a dummy layer for just such a purpose. Perl MapScript 5.6.5 works just fine... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of P Kishor Sent: Thursday, September 16, 2010 8:33 AM To: Mapserver-users Subject: [mapserver-users] creating layers dynamically with cgi I want to generate MapServer layers, but can I do so without writing them into the map file? I am using 5.6.5 with cgi. I'd rather not use MapScript (by the way, what is the state of Perl MapScript with MS 5.6.5?) -- Puneet Kishor ___ 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] Expressions
A first stab at seeing more than one class, might be to try and switch them around order wise, one filter may be overwriting the other for example. bobb On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: I am using GeoMoose but feel this is more a question for Map Server. I am trying to sort my points by dates using the code belowI think that I can do this but not sure Is this a viable format 2Y%2M%2D ? · As for the field in the shapefile...If I use an integer it removes the 0 from the 092110, (sept 21^st 2010) · If I use a date then there are / ... 9/21/10 · The only way I can see this happening is using a text field with retains the 0 in 092110 When I use the textfield dateValues as seen below I can get the stars to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not show and I know that I have a few records with dates in the last 14 days... Thoughts? THANKSall your help is very appreciated Main .xml file map-source name=Burglaries type=mapserver file./maple_grove_datasets/police/Burglaries.map/file param type=today offset=-7 name=LASTWEEK format=%2Y%2M%2D / param type=today offset=-14 name=LASTTWOWEEKS format=%2Y%2M%2D / param type=today offset=-30 name=LASTTHIRTY format=%2Y%2M%2D / param type=today offset=-90 name=LASTNINTY format=%2Y%2M%2D / layer name=Burglaries/ /map-source .map file CLASS NAME 'Last Weeks' EXPRESSION ('[dateValues]' '%LASTWEEK%') STYLE COLOR 0 0 0 SYMBOL star SIZE 12 END END CLASS NAME 'Last Two Weeks' EXPRESSION ('[dateValues]' '%LASTTWOWEEKS%') STYLE COLOR 0 100 50 SYMBOL star SIZE 12 END END ___ 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] Securing a WMS server
Hi, I been trying to secure my WMS server resource via login/password using the mapfile configuration below. However, it's not working as it doensn't ask for any login/pwd with my testing using a wms client like Arcgis 9.3 The image map will just appear as usual. Rgds YC --- WEB TEMPLATE default.html IMAGEPATH C:\web\soul\wms\temp\ IMAGEURL /temp/ METADATA WMS_TITLE Map Service WMS_ABSTRACT GIS WMS_SERVER_VERSION 1.1.1 WMS_ONLINERESOURCE http://localhost?map=/webwms/wms.mapamp;; WMS_SRS EPSG:4326 WMS_AUTH_TYPE basic WMS_AUTH_USERNAME 1234 # username here WMS_AUTH_PASSWORD 1234 # password here END END___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Specify NODATA for 3 bands?
Hey guys. I have some NAIP imagery in MrSID format. It displays, but the black area where counties meet is really ugly. The MrSIDs are 3 one-byte bands: R/G/B The bands do not specify a NODATA but I figure that 0/0/0 (all black) may be usable as a NODATA value, via a PROCESSING directive. It works nicely, suppressing the black halos and making the almost-seamless effect where the counties intersect. BUT... it only does so if I don't show all 3 bands. If I specify any combination of BAND directives, I get a greyscale image (of course) and the NODATA works (black halos are gone, so counties are near seamless). PROCESSING NODATA=0 PROCESSING BANDS=1,2 #PROCESSING BANDS=3 #PROCESSING BANDS=1,3 But, if I do not specify the BAND or if I specify all 3 bands, I get the black halos as if the NODATA were not specified. What gives? Is there something special I must do to have the NODATA take effect for 3 or more bands? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Specify NODATA for 3 bands?
I think your halos are blacks that are not pure black. Not 0/0/0, just close. This is a compression artifact. I think the same thing also happens with jp2 CCMs. The NAIP CCMs/or County Compressed Mosaics were never meant to be mosaicked together like this. They are a deliverable at the county level, not the state. MapServer as far as I know will only do 0/0/0 and does not have a feature to make that fuzzy. You may have seen page, written some time ago, that speaks to this problem - http://sites.google.com/site/bpederse/caliwms The vertical and horizontal banding in the California case is related but diff from the halo effect. That is because with the large counties are cut into smaller sids in order to keep file sizes under control. That in combination with re-projecting the data causes issues with no-data areas. On Fri, Sep 17, 2010 at 11:28 PM, Gregor at HostGIS gre...@hostgis.com wrote: Hey guys. I have some NAIP imagery in MrSID format. It displays, but the black area where counties meet is really ugly. The MrSIDs are 3 one-byte bands: R/G/B The bands do not specify a NODATA but I figure that 0/0/0 (all black) may be usable as a NODATA value, via a PROCESSING directive. It works nicely, suppressing the black halos and making the almost-seamless effect where the counties intersect. BUT... it only does so if I don't show all 3 bands. If I specify any combination of BAND directives, I get a greyscale image (of course) and the NODATA works (black halos are gone, so counties are near seamless). PROCESSING NODATA=0 PROCESSING BANDS=1,2 #PROCESSING BANDS=3 #PROCESSING BANDS=1,3 But, if I do not specify the BAND or if I specify all 3 bands, I get the black halos as if the NODATA were not specified. What gives? Is there something special I must do to have the NODATA take effect for 3 or more bands? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX No one cares if you can back up — only if you can recover. ___ 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