RE : [mapserver-users] How to make MapServer WMS super fast?
Here is a message published by Alexandre Dubé a few weeks ago - helpfull Here's how to install and setup fastCGI with Apache 2.2.8 contained in the MS4W 2.2.7 version. 1- MS4W 2.2.7 contains a MapServer compiled to support FastCGI so nothing needs to be done there. 2- But, Apache 2.2.8 that comes with MS4W 2.2.7 doesn't include the mod_fcgi module. This module can be dowloaded at http://www.apachelounge.com/download/ http://www.apachelounge.com/download/ ... Take the mod_fcgid-2.2a-w32.zip which will work with Apache 2.2.8. 3- Copy mod_fcgid.so to your apache/modules folder 4- Install the Visual C++ 2008 Redistributable Package (the binary is build with VC 2008). Download and install, if it isn't already done, from: www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-07 4B9F2BC1BFdisplaylang=en outbind://14/www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E0 3-4391-8A4D-074B9F2BC1BFdisplaylang=en 5- Modify your /ms4w/Apache/conf/httpd.conf a) Add : LoadModule fcgid_module modules/mod_fcgid.so b) Add : ScriptAlias /cgi-bin/ /ms4w/Apache/cgi-bin/ ScriptAlias /fcgi-bin/ /ms4w/Apache/cgi-bin/ c) Remove : Directory /ms4w/Apache/cgi-bin AllowOverride All Options None Order allow,deny Allow from all /Directory d) Add : Location /cgi-bin Options None Order allow,deny Allow from all /Location e) Add : Location /fcgi-bin # The following line activates the fastCGI script to all files in location SetHandler fcgid-script Options None Order allow,deny Allow from all /Location f) Add : IfModule fcgid_module IPCCommTimeout 60 IdleTimeout 60 DefaultMinClassProcessCount 2 DefaultMaxClassProcessCount 20 DefaultInitEnv PROJ_LIB c:/ms4w/proj/nad/ DefaultInitEnv PATH c:/ms4w/Apache/cgi-bin;c:/WINDOWS/system32;c:/WINDOWS;c:/WINDOWS/System32/W bem; DefaultInitEnv windir c:/WINDOWS DefaultInitEnv SystemRoot c:/WINDOWS DefaultInitEnv SystemDrive c: DefaultInitEnv GDAL_DATA c:/ms4w/gdaldata DefaultInitEnv GDAL_DRIVER_PATH c:/ms4w/gdalplugins DefaultInitEnv TMP c:/ms4w/tmp DefaultInitEnv TEMP c:/ms4w/tmp /IfModule 6- Restart Apache : /ms4w/apache-restart.bat 7- In your mapfile, set a PROCESSING directive to tell FastCGI to cache the connections and layer information on all layers for which connection caching is desired - ie. all slow layers. a) Add : PROCESSING CLOSE_CONNECTION=DEFER 8- Now you can load your map using either normal CGI or FastCGI : a) CGI : http://host:port/cgi-bin/mapserv.exe http://host:port/cgi-bin/mapserv.exe ?... b) fastCGI : http://host:port/fcgi-bin/mapserv.exe http://host:port/fcgi-bin/mapserv.exe ?... That way, your original cgi-bin folder wont be affected by fastCGI unless you use the modified url with fcti-bin which is the alias you added to your httpd.conf file at 5b). Special thanks to Jeff McKenna and Daniel Morissette who helped me a lot with this. __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 james.levei...@mtq.gouv.qc.ca mailto:james.levei...@mtq.gouv.qc.ca -Message d'origine- De : mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] De la part de Rahkonen Jukka Envoyé : 12 décembre 2008 10:39 À : Marcelo Oliveira; mapserver-users@lists.osgeo.org Objet : Re: [mapserver-users] How to make MapServer WMS super fast? Hi, Thanks, I will try Fast CGI. Are there some simple enough document for a ms4w users about how to turn the system to use Fast CGI? -Jukka- Lähettäjä: Marcelo Oliveira [mailto:molive...@geostats.com] Lähetetty: 12. joulukuuta 2008 17:05 Vastaanottaja: Rahkonen Jukka; mapserver-users@lists.osgeo.org Aihe: RE: [mapserver-users] How to make MapServer WMS super fast? Try using Fast CGI, it should improve your latency problem you are seeing. It is also possible that using other raster formats could help. Good luck! M -- Marcelo Simas Oliveira GeoStats LP 530 Means St., Ste. 310 Atlanta, Georgia 30318 (404) 588-1004 www.geostats.com From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Friday, December 12, 2008 10:01 AM To: mapserver-users@lists.osgeo.org
RE : [mapserver-users] SLD not rendered correctly
Hi Daniel, I'm no expert in SLD, but have you tried using 2 PointSymbolizer ? That's what I'm doing (with lines) and it works great ... LineSymbolizer Geometry PropertyNamecenter-line/PropertyName /Geometry Stroke CssParameter name=stroke#00/CssParameter CssParameter name=stroke-width7.0/CssParameter /Stroke /LineSymbolizer LineSymbolizer Geometry PropertyNamecenter-line/PropertyName /Geometry Stroke CssParameter name=stroke#009432/CssParameter CssParameter name=stroke-width5.0/CssParameter /Stroke /LineSymbolizer __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Daniel Degasperi Envoyé : 12 novembre 2008 10:36 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] SLD not rendered correctly Hello, the attached SLD should render a point layer with an outlinecolor (see stroke), unfortunately the stroke-color seems to overwrite the fill color. Images are attached. withoutsld.png would be the expected result, withsld.png is the actual result. Can anybody help me? I'm using MapServer 5.0.3 on Centos5 and the render client is OpenLayers. These tickets could be related: * http://trac.osgeo.org/mapserver/ticket/1887 * http://trac.osgeo.org/mapserver/ticket/2548 Regards, Daniel -- Daniel Degasperi Software Developer [EMAIL PROTECTED] --- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE : [mapserver-users] railroad map file
Here : CLASS STYLE SYMBOLpoint SIZE 5 COLOR 128 128 128 END STYLE SYMBOLpoint SIZE 3 COLOR 255 255 255 END STYLE SYMBOL ch_fer SIZE 8 COLOR 64 64 64 END END SYMBOL Name point Type Ellipse Filled TRUE Points 1 1 END END SYMBOL NAME ch_fer TYPE vector POINTS 0 0 0 7 -99 -99 7 0 7 7 END END __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Mark Volz Envoyé : 23 octobre 2008 13:57 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] railroad map file Does anyone have a railroad .map file? I would prefer one that includes the railroad ties. The examples I found with google mostly came up with people having problems with them. Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE : [mapserver-users] Displaying a point given its latitude andlongitude
Ramya, Here is an example that allows me to display a rectangle in a custom coordinate system. Start from there using your own coordinate system. LAYER PROJECTION init=epsg:42105 END METADATA wms_title Fond de carte END NAME fond_carte STATUSON DUMP TRUE EXTENT3 75000 170 212 TYPE POLYGON FEATURE POINTS -8000 57150 -8000 2111000 1773200 2111000 1773200 57150 -8000 57150 END END CLASS COLOR 240 230 175 END END __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de ramya srinivasan Envoyé : 20 août 2008 06:09 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] Displaying a point given its latitude andlongitude Hello, How to display a point in the map given its latitude and longitude.R there any methods under php/mapscript to do this? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE : [mapserver-users] drawing a north arrow on a map
John, the symbol name doesn't match __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de John Beck Envoyé : 7 août 2008 06:25 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] drawing a north arrow on a map Dear list, I'm hoping someone can help me. Following the instructions in the wiki, I am trying to add a north arrow to a map. I've got a basic north arrow image (north.gif), I've added a pixmap symbol referencing it, and I've added a layer to the map.However, the GIF never shows. I've tried this in both a mapscript app and the basic Itasca demo, same result. I know there is nothing wrong with the GIF or symbol definition. I found one solution in which a empty STYLE object that was needed but I am not sure how to implement. Can anyone help? SYMBOL #North Arrow NAME northarrow1 TYPE pixmap IMAGE north.gif END LAYER NAME North Arrow STATUS DEFAULT TRANSFORM FALSE TYPE POINT FEATURE POINTS 250 250 END END CLASS SYMBOL 'north' END END Thanks in advance. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE : [mapserver-users] MapServer + Database + WFS
Hi Tim, If it's not too late (I'm coming back from vacation), here is a working example with MapServer 5 (on Windows) and Oracle 10g. I'm also using a custom projection. Hope it helps. --- MAP NAME Prototype CONFIG PROJ_LIB D:/mapserver5_orcl/ms4w/proj/nad PROJECTION init=epsg:42105 END WEB METADATA wfs_title Prototype wfs_onlineresource http://server_name/MapServer5_orcl/mapserv.exe?map=D:\project\my_wfs_mapfil e.map wfs_srs EPSG:42105 # *** Contrary to WMS, I think that the OGC WFS specification doesn't allow a layer (feature type) to be advertized in more than one SRS. wfs_abstractMy prototype ... wfs_geometry_element_name MS_GEOMETRY END END STATUS ON EXTENT 3 75000 171 212 # Custom projection # SHAPEPATH D:/systemes/dds/donnees/ UNITS METERS # MY LAYER LAYER NAME layer name PROJECTION init=EPSG:42105 # Custom projection END METADATA wfs_title Layer Name wfs_name Layer Name wfs_abstract Layer Name wfs_srs EPSG:42105 # Custom projection wfs_geometry_element_name MS_GEOMETRY wfs_version 1.0.0 wfs_request_methodGET wfs_connectiontimeout 600 wfs_featureid ide_segmn_ferrv gml_exclude_items all gml_include_items ide_segmn_ferrv #,num_rtss,authr_respn,indct_sourc_ctq_mtq,topnm,clasf_res_camng END STATUSON DUMP TRUE EXTENT3 75000 170 212 # Custom projection CONNECTIONTYPEoraclespatial CONNECTIONuser/[EMAIL PROTECTED] PROCESSINGCLOSE_CONNECTION=DEFER DATA geo_segmn_ferrv FROM bgr_segmn_ferrv USING UNIQUE ide_segmn_ferrv SRID 1557057 TYPE LINE END END __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Nolte, Tim Envoyé : 30 juillet 2008 10:55 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] MapServer + Database + WFS Is no one out there using Oracle Spatial, or any other DB, with MapServer and WFS? There is pretty much a huge lack of documentation for serving WFS from MapServer. It would be nice to know if what I'm attempting is even possible or not. Thanks if someone does actually respond. - Tim Timothy J Nolte - [EMAIL PROTECTED] Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:616-706-2438 Fax:616-554-6484 Web: www.ipcswirelessinc.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 : RE : [mapserver-users] MapServer + Database + WFS
Hi Tim, I had the same problem - even a few timeouts on the server side (I know, with IIS ...). From my experience, WFS worked fine with a few features, but it proved to be more difficult to use when there were to many of them due 1) to the size of the GML file returned and 2) to the time it takes to read all the information from Oracle. I found no solution to this problem ... __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] -Message d'origine- De : Nolte, Tim [mailto:[EMAIL PROTECTED] Envoyé : 4 août 2008 14:23 À : Léveillé, James; mapserver-users@lists.osgeo.org Objet : RE: RE : [mapserver-users] MapServer + Database + WFS James, Thanks for the info. After a bunch of trial and error I was able to finally able to get WFS working, and our WFS client actually having the objects. One problem that I did run into was with the size of the data. I had around 1800 or so features each with around 15 attributes of data. This proved to take like 20 minutes for the entire amount of data to load. I'm not sure if you have any suggestions with that one. The only thing I found was to break up the data into smaller chunks, while not the most ideal solution it at least helped to reduce some of the load time feel. - Tim Timothy J Nolte - [EMAIL PROTECTED] Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS:616-706-2438 Fax:616-554-6484 Web: www.ipcswirelessinc.com -Original Message- From: Léveillé, James [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2008 2:08 PM To: Nolte, Tim; mapserver-users@lists.osgeo.org Subject: RE : [mapserver-users] MapServer + Database + WFS Hi Tim, If it's not too late (I'm coming back from vacation), here is a working example with MapServer 5 (on Windows) and Oracle 10g. I'm also using a custom projection. Hope it helps. --- MAP NAME Prototype CONFIG PROJ_LIB D:/mapserver5_orcl/ms4w/proj/nad PROJECTION init=epsg:42105 END WEB METADATA wfs_title Prototype wfs_onlineresource http://server_name/MapServer5_orcl/mapserv.exe?map=D:\project \my_wfs_mapfil e.map wfs_srs EPSG:42105 # *** Contrary to WMS, I think that the OGC WFS specification doesn't allow a layer (feature type) to be advertized in more than one SRS. wfs_abstractMy prototype ... wfs_geometry_element_name MS_GEOMETRY END END STATUS ON EXTENT 3 75000 171 212 # Custom projection # SHAPEPATH D:/systemes/dds/donnees/ UNITS METERS # MY LAYER LAYER NAME layer name PROJECTION init=EPSG:42105 # Custom projection END METADATA wfs_title Layer Name wfs_name Layer Name wfs_abstract Layer Name wfs_srs EPSG:42105 # Custom projection wfs_geometry_element_name MS_GEOMETRY wfs_version 1.0.0 wfs_request_methodGET wfs_connectiontimeout 600 wfs_featureid ide_segmn_ferrv gml_exclude_items all gml_include_items ide_segmn_ferrv #,num_rtss,authr_respn,indct_sourc_ctq_mtq,topnm,clasf_res_camng END STATUSON DUMP TRUE EXTENT3 75000 170 212 # Custom projection CONNECTIONTYPEoraclespatial CONNECTIONuser/[EMAIL PROTECTED] PROCESSINGCLOSE_CONNECTION=DEFER DATA geo_segmn_ferrv FROM bgr_segmn_ferrv USING UNIQUE ide_segmn_ferrv SRID 1557057 TYPE LINE END END __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Nolte, Tim Envoyé : 30 juillet 2008 10:55 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] MapServer + Database + WFS Is no one out there using Oracle Spatial, or any other DB, with MapServer and WFS? There is pretty much a huge lack of documentation for serving WFS from MapServer. It would be nice to know
RE : [mapserver-users] Ref: Highlight the selected area onmousemove byOpenLayer
We did something like what Steve mentionned with OL. We added a layer designed to display the hilited polygon (or line). On a mouse pause (0.5 secs), we send a getFeatureInfo. With the resulting ID, we call MapServer again (getMap this time) using the given ID as a filter to a specific MapServer layer. Works fine, even if two calls to the server are necessary. There might be a better way ... __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Steve Lime Envoyé : 3 juillet 2008 09:59 À : [EMAIL PROTECTED]; mapserver-users@lists.osgeo.org Objet : Re: [mapserver-users] Ref: Highlight the selected area onmousemove byOpenLayer I don't know that highlighting on move will work. It will take MapServer too long to render each map to keep up with the mouse. You might consider doing so only when the mouse pauses/hovers for a specified amount of time. OL has a hover control that can help with this. If, for example, you had an OL layer that was only responsible for the highlight then you could update it based on the coordinate where the mouse paused. The highlight layer would be a query map (mode=querymap). I'm not sure how you'd change the mode that the MapServer OL layer sends to MapServer. Anyway, you would pass that coordinate in as an option to the MapServer layer by changing the mapext and mapxy params to match the current OL mapext and the hover coordinate. An idea anyway, assuming you can alter the mode in the OL layer... Steve Prasad B [EMAIL PROTECTED] 07/03/08 8:46 AM hi i developing one MAPSERVER Application Using C# MapScript, i have Successfully implemented the OpenLayer JavaScript with it. Now i want to add functionality on mouse move to highlight the area where mouse is move. so can u help me how i can highlight region by OpenLayer . waiting for your Usefull reply. -- Thanks Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.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] mode=legend
Ok - thanks a lot Daniel __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Daniel Morissette Envoyé : 4 juin 2008 15:28 À : mapserver-users@lists.osgeo.org Objet : Re: [mapserver-users] mode=legend Daniel Morissette wrote: Léveillé wrote: QUESTION 2 : How can I specify the AGG image format in CGI mode ? Just setting 'IMAGETYPE AGGPNG24' in the mapfile does the trick for me. After checking further it turns out that this works only with the dev version (future 5.2). AGG legend images were not supported in 5.0 so you'd get regular GD (unaliased) legend images with MapServer 5.0. Daniel -- Daniel Morissette http://www.mapgears.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
[mapserver-users] mode=legend
Hi, I'm trying to use MapServer in CGI mode to get a Legend in HTML format using a TEMPLATE. My call : http://localhost/mapserver5/mapserv.exe?map=d:\mymapfile.mapmode=legendlay er=mylayer Starting from the example shown on http://mapserver.gis.umn.edu/docs/howto/html_legend, here is my TEMPLATE [leg_header_html]table border=0 width=300 cellpadding=2 cellspacing=2[/leg_header_html] [leg_class_html] tr td valign=top img src=[leg_icon width=20 height=14] width=20 height=14 /td td bgcolor=#cc [leg_class_name] /td /tr [/leg_class_html] [leg_footer_html]/table[/leg_footer_html] And the LEGEND declaration in my MapFile : LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 20 10 LABEL COLOR 200 0 0 TYPETRUETYPE FONTarial SIZE9 END TEMPLATE D:\legend.html END The problem is that the (temporary) images (icons) produced by MapServer for the legend are slightly cut at the top and bottom. For example, the result of a GetLegendGraphic call returned the following : While images obtained in CGI mode (mode=legend) are : QUESTION 1 : What explains this difference ? QUESTION 2 : How can I specify the AGG image format in CGI mode ? Regards Outlook.bmpOutlook.bmp___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE : [mapserver-users] Anit-alias Lines?
In your MapFile, add the following OUTPUTFORMAT NAME AGG DRIVERAGG/PNG IMAGEMODE RGB END In the getMap statement, add FORMAT=agg, as in http://localhost/MapServer5/mapserv.exe?map=D:\mymapfile.mapVERSION=1.1.1R EQUEST=GetMapLAYERS=allmylayersSTYLES=SRS=EPSG:42105BBOX=678 715.039028806,298202.419835631,721017.45078271,325126.670952306WIDTH=850HE IGHT=541BGCOLOR=0xFFEXCEPTIONS=application/vnd.ogc.se_xmlTRANSPARENT= FALSEFORMAT=agg ... And no need to specify the ANTIALIAS tag in your MapFile __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jeshua Lacock Envoyé : 2 juin 2008 16:23 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] Anit-alias Lines? Greetings, (thanks James Léveillé - your advice worked perfectly!) I was wondering how to produce anti-aliased lines. I tried using the 'ANTIALIAS true' statement with the style for the line, and I also tried using the AGG renderer (mapserver was compiled with AGG), but my lines still do not appear anti-aliased. Here is an example of my output: ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] AGG - FORMATOPTION PALETTE
Hi, I'm trying to use my own palette for AGG as described here by Thomas : http://www.nabble.com/forced-palette-and-quantization-for-RGBA-images-td1464 5869.html As explained in the article, I'm using a typical PNG 24 bits image (produced in RGBA mode - 4 bands). But from this image, I'm not able to produce a 8 bits PNG image with the ALPHA, only in RGB with 3 channels - see the GDALINFO below. I need this 8 bits image to generate my palette. gdalinfo rgb.png Driver: PNG/Portable Network Graphics Size is 1203, 813 Coordinate System is `' Corner Coordinates: Upper Left (0.0,0.0) Lower Left (0.0, 813.0) Upper Right ( 1203.0,0.0) Lower Right ( 1203.0, 813.0) Center ( 601.5, 406.5) Band 1 Block=1203x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 17,12,12,255 1: 27,101,44,255 2: 0,132,0,255 3: 19,130,16,255 ... How can I generate a 8 bits RGBA image from the original 24 bits image ? Regards. JAMES ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users