From vikki.km at gmail.com Mon Dec 1 02:08:09 2008 From: vikki.km at gmail.com (Vikas KM) Date: Mon, 1 Dec 2008 15:38:09 +0530 Subject: [mapserver-users] how to load tiff image on to mapserver... Message-ID: <5cf1344b0812010208t453accc3rdf2f4999674aab00@mail.gmail.com> How do i load tiff image on to mapserver???? -------------- Regards Vikas KM -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Mon Dec 1 02:12:53 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Mon, 1 Dec 2008 11:12:53 +0100 (CET) Subject: [mapserver-users] how to load tiff image on to mapserver... In-Reply-To: <5cf1344b0812010208t453accc3rdf2f4999674aab00@mail.gmail.com> References: <5cf1344b0812010208t453accc3rdf2f4999674aab00@mail.gmail.com> Message-ID: <37042.145.50.39.11.1228126373.squirrel@webmail.hostingdiscounter.nl> See: http://ms.gis.umn.edu/docs/howto/raster_data Best regards, Bart > How do i load tiff image on to mapserver???? > > -------------- > Regards > > Vikas KM > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jochen at remote.org Mon Dec 1 02:15:21 2008 From: jochen at remote.org (Jochen Topf) Date: Mon, 1 Dec 2008 11:15:21 +0100 Subject: [mapserver-users] LINE layer on small scales Message-ID: <20081201101521.GA31453@eldorado.topf.org> Hi! I have bunch of linestrings I want to show in one layer. Each linestring should show up as a line on large scales and as a symbol on small scales, because on the small scales the lines are too short to see. I know how to do this with two layers: One LINE layer and one POINT layer with the same underlying data. But I'd rather do this in one layer and use different CLASSes for the different scales. But when I do this the symbols keep disappearing on smaller scales, I guess because the linestrings get so short that Mapserver decides to not draw them at all. Can this be done? Any ideas? Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From aberenyi at burken.hu Mon Dec 1 02:45:33 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Mon, 01 Dec 2008 11:45:33 +0100 Subject: [mapserver-users] pyramid, .rrd file Message-ID: <4933C04D.3000301@burken.hu> Dear All, Is there any possibility to use ERDAS .rrd file in Mapserver focusing on the pyramid function? A bit detailed information: I have a lot of georeferenced orthophotos and I'm looking for the best way it display them via Mapserver as fast and as detailed as possible. I've tried gdal_retile, but it's slow, and I don't really understand how it works... Any suggestion would be very much appreciated! Thanks in advance, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Mon Dec 1 03:19:46 2008 From: stephan.holl at intevation.de (Stephan Holl) Date: Mon, 1 Dec 2008 12:19:46 +0100 Subject: [mapserver-users] LINE layer on small scales In-Reply-To: <20081201101521.GA31453@eldorado.topf.org> References: <20081201101521.GA31453@eldorado.topf.org> Message-ID: <20081201121946.7006ae5c@keto> Hallo Jochen, Jochen Topf , [20081201 - 11:15:21] > Hi! > > I have bunch of linestrings I want to show in one layer. Each > linestring should show up as a line on large scales and as a symbol > on small scales, because on the small scales the lines are too short > to see. > > I know how to do this with two layers: One LINE layer and one POINT > layer with the same underlying data. > > But I'd rather do this in one layer and use different CLASSes for the > different scales. But when I do this the symbols keep disappearing on > smaller scales, I guess because the linestrings get so short that > Mapserver decides to not draw them at all. > > Can this be done? Any ideas? Any reason why not GROUP two layers together and set the scale appropriate? Best Stephan -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From jochen at remote.org Mon Dec 1 03:50:04 2008 From: jochen at remote.org (Jochen Topf) Date: Mon, 1 Dec 2008 12:50:04 +0100 Subject: [mapserver-users] LINE layer on small scales In-Reply-To: <20081201121946.7006ae5c@keto> References: <20081201101521.GA31453@eldorado.topf.org> <20081201121946.7006ae5c@keto> Message-ID: <20081201115004.GA32660@eldorado.topf.org> On Mon, Dec 01, 2008 at 12:19:46PM +0100, Stephan Holl wrote: > Jochen Topf , [20081201 - 11:15:21] > > > Hi! > > > > I have bunch of linestrings I want to show in one layer. Each > > linestring should show up as a line on large scales and as a symbol > > on small scales, because on the small scales the lines are too short > > to see. > > > > I know how to do this with two layers: One LINE layer and one POINT > > layer with the same underlying data. > > > > But I'd rather do this in one layer and use different CLASSes for the > > different scales. But when I do this the symbols keep disappearing on > > smaller scales, I guess because the linestrings get so short that > > Mapserver decides to not draw them at all. > > > > Can this be done? Any ideas? > > Any reason why not GROUP two layers together and set the scale > appropriate? GROUPed layers are a bit different from normal layers. For instance it seems I can't set keywords for grouped layers (No OWS_GROUP_KEYWORDLIST), which is something I need for my application. I could probably change my app to also work with nested layers but that looks like a lot of work. :-) Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From geomapserver at gmail.com Mon Dec 1 06:24:48 2008 From: geomapserver at gmail.com (=?ISO-8859-1?Q?G=E9o_Sph=E8re?=) Date: Mon, 1 Dec 2008 15:24:48 +0100 Subject: [mapserver-users] MapServer 5 - MapScript Problem setExpression Message-ID: <3bdb37df0812010624r79fdb77ay7faf06553ea4fe5f@mail.gmail.com> Hello ! I use PHP Mapscript (MapServer 5.0.2). I do $oClass->setExpression("3NA"), then i save the mapfile. The expression saved in the mapfile is "3" Any idea ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Mon Dec 1 07:04:53 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 01 Dec 2008 10:04:53 -0500 Subject: [mapserver-users] MapServer 5 - MapScript Problem setExpression In-Reply-To: <3bdb37df0812010624r79fdb77ay7faf06553ea4fe5f@mail.gmail.com> References: <3bdb37df0812010624r79fdb77ay7faf06553ea4fe5f@mail.gmail.com> Message-ID: <4933FD15.40109@dmsolutions.ca> Can you try something like $oClass->setExpression('"3NA"') Later, G?o Sph?re wrote: > Hello ! > > I use PHP Mapscript (MapServer 5.0.2). > > I do $oClass->setExpression("3NA"), then i save the mapfile. > The expression saved in the mapfile is "3" > > Any idea ? > > Thanks > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Steve.Lime at dnr.state.mn.us Mon Dec 1 08:03:40 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 01 Dec 2008 10:03:40 -0600 Subject: [mapserver-users] MapServer 5 - MapScript Problem setExpression In-Reply-To: <4933FD15.40109@dmsolutions.ca> References: <3bdb37df0812010624r79fdb77ay7faf06553ea4fe5f@mail.gmail.com> <4933FD15.40109@dmsolutions.ca> Message-ID: <4933B67B.5157.008F.0@dnr.state.mn.us> That should fix it. The problem is that MapServer strings must start with a alpha character. Otherwise they must be quoted. Steve >>> On 12/1/2008 at 9:04 AM, in message <4933FD15.40109 at dmsolutions.ca>, Yewondwossen Assefa wrote: > Can you try something like $oClass->setExpression('"3NA"') > > Later, > > G?o Sph?re wrote: >> Hello ! >> >> I use PHP Mapscript (MapServer 5.0.2). >> >> I do $oClass->setExpression("3NA"), then i save the mapfile. >> The expression saved in the mapfile is "3" >> >> Any idea ? >> >> Thanks >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From geomapserver at gmail.com Mon Dec 1 08:06:31 2008 From: geomapserver at gmail.com (Gill Bates) Date: Mon, 1 Dec 2008 17:06:31 +0100 Subject: [mapserver-users] MapServer 5 - MapScript Problem setExpression In-Reply-To: <4933B67B.5157.008F.0@dnr.state.mn.us> References: <3bdb37df0812010624r79fdb77ay7faf06553ea4fe5f@mail.gmail.com> <4933FD15.40109@dmsolutions.ca> <4933B67B.5157.008F.0@dnr.state.mn.us> Message-ID: <3bdb37df0812010806v14da2594h13325921475e66a5@mail.gmail.com> Thanks a lot, it works ! I understand now. Good bye. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Dec 1 11:04:40 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 01 Dec 2008 14:04:40 -0500 Subject: [mapserver-users] pyramid, .rrd file In-Reply-To: <4933C04D.3000301@burken.hu> References: <4933C04D.3000301@burken.hu> Message-ID: <49343548.3040203@pobox.com> Ber?nyi Attila wrote: > Dear All, > > Is there any possibility to use ERDAS .rrd file in Mapserver focusing on > the pyramid function? > A bit detailed information: I have a lot of georeferenced orthophotos > and I'm looking for the best way it display them via Mapserver as fast > and as detailed as possible. > I've tried gdal_retile, but it's slow, and I don't really understand how > it works... > Any suggestion would be very much appreciated! Attila, Generally speaking Mapserver should already take advantage of .rrd pre-built overviews. If you want to confirm if GDAL (and consequently MapServer) can see the overviews, run the gdalinfo utility on the base file, and check the report of the individual bands to see if they have an overviews list. For example gdalinfo image_col.img ... Band 1 Block=64x64 Type=UInt16, ColorInterp=Undefined Description = Layer_1 Min=232.000 Max=1024.000 Minimum=232.000, Maximum=1024.000, Mean=335.990, StdDev=26.558 NoData Value=65535 Overviews: 692x600, 345x299, 171x148, 84x73, 41x35 ... This file has an .rrd ith 5 overview levels and they would be used by MapServer as long as the .rrd file is kept with the .img file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Steve.Lime at dnr.state.mn.us Mon Dec 1 12:14:50 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 01 Dec 2008 14:14:50 -0600 Subject: [mapserver-users] MapServer 5.2.1 Released Message-ID: <4933F15A.5157.008F.0@dnr.state.mn.us> Hi all: The MapServer PSC has just released version 5.2.1. This new release contains no additional functionality but addresses a number of issues identified since the 5.2.0 release. A list of fixes is included at the end of this message. The full change log can be viewed online at: http://mapserver.gis.umn.edu/download/current/HISTORY.TXT The source package is available in the MapServer downloads page: http://mapserver.gis.umn.edu/download/current/ Precompiled binaries should be available shortly at the usual locations (also linked from the download page above). Steve Version 5.2.1 (2008-12-01) --------------------------------- * Exposed PIXELS value via URL configuration * Add Support for SLD TextSymbolizer HALO and ANGLE (#2806) * Fix crash when an invalid bbox filter is used (#2805) * raster query fix for tileindex with relative paths (#2722) * Fix for the access violation caused by msMSSQL2008LayerGetShape (#2795) * Fixed msMSSQL2008LayerGetItems to retrieve the column names properly (#2791) * Prevent from calling msMSSQL2008CloseConnection from msMSSQL2008LayerClose causing memory corruption issues (#2790) * fix some integer rounding errors in the agg line offseter (#2659) * fix a bug with shapes with duplicate end points. was causing NaNs in the angle follow placement code (#2695) * memory leak in msInsertLayer, from Ned Horning (#2784) * legend keyimage resampling with agg (#2715) * tileindexed rasters when DATA is manipulated via mapscript work (#2783) * PHP: add priority attribute to the label object (#2782) * Fixed bug when QUERYMAP hilite color is set and the shape's color in a layer is from a data source (#2769) * PHP paste image should also work with AGG (#2682) * Correct allocation error in mapmssql2008.c (#2768) * Removed comma to correct WCS 1.1 Coverages formatting in payload directory. (#2764) * Correct bug when LABEL_NO_CLIP in combination with minfeaturesize (#2758) * Fix a label size computation for AGG bug when scalefactor is used (#2756) * Got rid of misleading errors about OWS SERVICE not being compiled in when a OWS request is sent that includes mode=map (or other mode value different from ows)(#2747) * Fixed a memory leak associated with not deleting the lexer buffer before parsing certain types of strings. (#2729) * Masking the out-of-range characters to avoid the crash in the AGG renderer (#2739) * AGG: fix pixmap symbols not drawing if no color was specified (#2736) * Accept WMS requests in which the optional SERVICE param is missing. A new test was incorrectly added in 5.2.0 that resulted in the error "Incomplete WFS request: SERVICE parameter missing" when the SERVICE parameter was missing in WMS requests in which the SERVICE param is optional (#2737) * SLD: when creating well known symbols on the fly the pen-up value used should be -99. * Support reading projection parameter for OFC filters (#2712) * Stop configure execution with an error if path to one of the -config scripts is invalid (#2710) * Fixed the configure script: failed to detect php5 on ubuntu. (#2365) From vtammineni at roulacglobal.com Mon Dec 1 19:55:57 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 2 Dec 2008 09:25:57 +0530 Subject: [mapserver-users] How to add point based on User interaction using C# In-Reply-To: <49376.192.168.1.60.1227886514.squirrel@localhost.localdomain> References: <002601c95130$a2cbe000$e863a000$@com> <49376.192.168.1.60.1227886514.squirrel@localhost.localdomain> Message-ID: <004501c95431$e3566330$aa032990$@com> Hi, Pietro Giannini, Thanks for great response. I have already done with my task. Thanks Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro Giannini Sent: Friday, November 28, 2008 9:05 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to add point based on User interaction using C# Hi Venkat. I found this tutorial very useful: http://www.paolocorti.net/public/wordpress/index.php/2006/09/20/mapserver-tu torial-for-c-mapscript-asp-net/ It is exactly what you want, unfortunately it is not reachable now, maybe a temporary server failure... I made the same in php_mapscript, db was mysql. You have to do the porting: ___________________________________________________ // get the click point in pixel coordinates // the imagebutton of the map is named "mapimg" $clickX = $_REQUEST["mapimg_x"]; $clickY = $_REQUEST["mapimg_y"]; // create a pointobject and store coordinates in projected units $ppPoint = ms_newpointobj(); $ppPoint->setXY(($oMap->extent->minx + ($oMap->cellsize * $clickX)), ($oMap->extent->maxy - ($oMap->cellsize * $clickY))); // create a lat lon projection $olatlonProj = ms_newprojectionobj("proj=latlong,ellps=WGS84"); // get the map projection $osProj = $oMap->getProjection(); $omapProj = ms_newprojectionobj($osProj); // project the point in EPSG 4326, latlon wgs84 $ppPoint->project($omapProj,$olatlonProj); // insert $sql = "INSERT INTO pushpins (lon,lat) VALUES "; $sql .= "(".$ppPoint->x.",".$ppPoint->y.")"; $myconn = mysql_connect(mysql_host,mysql_user,mysql_pw); mysql_select_db(mysql_db); $res = mysql_query($sql); // all done. // only now redraw the map $oImage = $oMap->draw(); $sImageUrl = $oImage->saveWebImage(); ___________________________________________________ I hope this is useful ciao ....................................... pg On Ven, Novembre 28, 2008 09:09, Venkat Rao Tammineni wrote: > Dear All, > > > > I want to add point based on user click on the map.That point has to > store in Postgresql/PostGIS.Is there anyone has done the same task.Please > help me. > > > > It is urgent for me .please any can help me.or please guide me . > > > > I am waiting for your great response. > > > > > > Advanced Thanks > > Venkat. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From vikki.km at gmail.com Mon Dec 1 21:08:15 2008 From: vikki.km at gmail.com (Vikas KM) Date: Tue, 2 Dec 2008 10:38:15 +0530 Subject: [mapserver-users] ICON Placing co-ordinates..... Message-ID: <5cf1344b0812012108y730f048u24ce4f3d6b6680eb@mail.gmail.com> Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... but the thing i can't get the icon placed at the required co-ordinates its taking the extent as its reference..? my Map File ------------------- MAP NAME "Tiff Image" SIZE 1900 1200 EXTENT 0.0 0.0 1920.0 1200.0 SHAPEPATH "/home/nms/mapserverdemo/tif/data/" IMAGETYPE JPEG WEB TEMPLATE "/home/nms/mapserverdemo/tif/tif.html" IMAGEPATH "/home/nms/mapserverdemo/tif/" IMAGEURL "/tif/" END LAYER STATUS default TYPE RASTER DATA "1.tif" END #END LAYER LAYER STATUS default TYPE RASTER /// size of the icon is 800,500 DATA "2.gif" END #END LAYER END #END MAPFILE how to I place an icon at x,y given position on the reference map... that is 1.tif ???? -------------- Regards Vikas KM -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Mon Dec 1 22:29:33 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Tue, 2 Dec 2008 11:59:33 +0530 Subject: [mapserver-users] I need ur help (plz urgent) Message-ID: Hello.. I am new to Mapserver. I have some raster files(tiff). I cant place the symbol within the created image. But legend is created. Somewhere I read that raster layer does not support Symbol. And also [map] tag is not working within HTML template. Error message is msEvalRegex(): Regular expression error. String ([map]) failed expression test. .I got that SAVEMAP must be switched on..But how ? I tried to send it via HTML hidden field but I did not get. Also if I write PROCESSING "BANDs=1 2 3" then error message is like msDrawMap(): Image handling error. Failed to draw layer named 'modis'. drawGDAL(): Unable to access file. Attempt to classify 24bit image, this is unsupported. I got that by default output image is 8 bit. So I tried to delare Imagetype JPEG and also Proceesing dither =yes and also via output object .But ?? If I commented that line then image quality is very very bad. And also I need MYSQL connection with raster file notes. Please I need ur help........And I hope I will get response very soon...... Thank you. MAP IMAGETYPE JPEG EXTENT 0.0 0.0 583.0 421.0 # -179.133392 17.674692 179.788208 71.398048 # # 0.004349 0.006191 312.987904 377.680442 SIZE 583 421 SHAPEPATH "/home/nms/MapServerData/data/" IMAGECOLOR 255 255 255 STATUS ON TRANSPARENT ON SYMBOLSET "/home/nms/MapServerData/symbol/symbol.sym" WEB TEMPLATE "/home/nms/MapServerData/data/temp1.html" IMAGEPATH "/home/nms/MapServerData/img/" IMAGEURL "/img/" LOG "/home/nms/MapServerData/logs/mapserver.log" END LEGEND KEYSIZE 12 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS METERS INTERVALS 2 # TRANSPARENT FALSE STATUS ON END # Scalebar object ends # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # MODIS raster layer begins here NAME modis CLASS NAME 'I AM ICON' #KEYIMAGE "/home/nms/MapServerData/data/z.png" #z.gif' SYMBOL '/home/nms/MapServerData/data/z.gif' #SYMBOL 'd' END # DATA "statesp020" DATA "DRDO.png" STATUS OFF TYPE RASTER PROCESSING "DITHER=YES" # PROCESSING "SCALE_1=409,1203" # PROCESSING "SCALE_2=203,296" # PROCESSING "SCALE_3=339,1004" # PROCESSING "SCALE=AUTO" #TILEINDEX DRDO.shp #TILEITEM Location TRANSPARENCY ALPHA CONNECTIONTYPE OGR CONNECTION "DRDO.ovf" PROCESSING "BANDS=1 2 3" # OFFSITE 255 255 255 JOIN NAME "test" TABLE "DRDO.dbf" FROM "ipForwarding" TO "LOCATION" TYPE ONE-TO-ONE END METADATA "t" "x" END # CLASSITEM "[pixel]" # class using simple string comparison, equivelent to ([pixel]) CLASS NAME "CCC" TEXT "CCCC" EXPRESSION "0" STYLE COLOR 0 0 0 END END # class using an EXPRESSION using only [pixel]. CLASS NAME "AAA" EXPRESSION ([pixel] >= x+64 AND [pixel] < 128) STYLE COLOR 255 0 0 END END # class using the red/green/blue values from the palette CLASS NAME "near white" EXPRESSION ([red] > 200 AND [green] > 200 AND [blue] > 200) STYLE # SYMBOL 1 COLOR 0 255 0 END END # Class using a regular expression to capture only pixel values ending in 1 CLASS NAME "BBB" EXPRESSION /*1/ STYLE COLOR 0 0 255 END END END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # All map files must come to an end just as all other things must come to... MapServer Workshop
Map Control:

Legend:

-------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.balman at gmail.com Tue Dec 2 02:37:20 2008 From: mark.balman at gmail.com (mark balman) Date: Tue, 2 Dec 2008 10:37:20 +0000 Subject: [mapserver-users] Postgis query Message-ID: <39f1dcdf0812020237v3d61bbc7q8155d34f88f03326@mail.gmail.com> Hi All I am trying to output a query from postgis using three tables and it is not quite working. First table is a quarter degree grid (spatial table) Second table is a table with each grid cell id along with many species id per grid cell Third table is list of species My query definition works well as the following (using two tables only) select fid_1, the_geom AS the_geom, spcgrid.id as gid, spcid from spcdensity left join spcgrid on spcdensity.fid_1 = spcgrid.fid This produces exactly what I want through mapserver, query a grid cell and it returns a list of species within that grid cell My problem is that I want to return a list of species names so my query at present is defined as: select spcid, spccommonname, fid_1, spcdensity.the_geom, spcid as gid from spcgrid left join species on spcgrid.spcid = species.spcrecid inner join spcdensity on spcdensity.fid_1 = spcgrid.fid Although the query works when run in pgadmin, when I query a grid cell I get a list of one species repeated. I am slightly confused as to what I am missing here, can anyone provide me with some pointers? Thanks in advance Mark From plieger at knmi.nl Tue Dec 2 04:25:06 2008 From: plieger at knmi.nl (Maarten Plieger) Date: Tue, 02 Dec 2008 12:25:06 +0000 Subject: [mapserver-users] OUTPUTFORMAT shapefiles instead of GML2/GML3 with WFS? Message-ID: <49352922.5080603@knmi.nl> Hi all, Is it possible to configure mapserver in such a way that it returns shapefiles instead of GML from a WFS GetFeature request? I would like to be able to output in GML2, GML3 and shapefiles... GML2 and GML3 work fine. The problem is that my GML files get very big, up to 60 megabytes, and my client applications (like ArcGIS) do not handle that very well. Thank you, Maarten Plieger Maarten Plieger KNMI, R&D Information and Observation Technology, De Bilt (t) +31 30 2206330 From bartvde at osgis.nl Tue Dec 2 04:29:45 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 2 Dec 2008 13:29:45 +0100 (CET) Subject: [mapserver-users] OUTPUTFORMAT shapefiles instead of GML2/GML3 with WFS? In-Reply-To: <49352922.5080603@knmi.nl> References: <49352922.5080603@knmi.nl> Message-ID: <45939.145.50.39.11.1228220985.squirrel@webmail.hostingdiscounter.nl> Hi Maarten, no unfortunately not, there used to be talk about an OGR output driver, so that any OGR (write) format could be written, but this was never implemented. Geoserver does have this functionality. Would be nice to have this in Mapserver though. Best regards, Bart > Hi all, > Is it possible to configure mapserver in such a way that it returns > shapefiles instead of GML from a WFS GetFeature request? > I would like to be able to output in GML2, GML3 and shapefiles... GML2 > and GML3 work fine. > > The problem is that my GML files get very big, up to 60 megabytes, and > my client applications (like ArcGIS) do not handle that very well. > > Thank you, > Maarten Plieger > > Maarten Plieger > KNMI, R&D Information and Observation Technology, De Bilt > (t) +31 30 2206330 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Tom.Kralidis at ec.gc.ca Tue Dec 2 04:35:34 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 2 Dec 2008 07:35:34 -0500 Subject: [mapserver-users] OUTPUTFORMAT shapefiles instead of GML2/GML3 withWFS? In-Reply-To: <49352922.5080603@knmi.nl> References: <49352922.5080603@knmi.nl> Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Maarten Plieger > Sent: Tuesday, 02 December 2008 07:25 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] OUTPUTFORMAT shapefiles instead of > GML2/GML3 withWFS? > > Hi all, > Is it possible to configure mapserver in such a way that it > returns shapefiles instead of GML from a WFS GetFeature request? Not that I know of. Not out of the box. > I would like to be able to output in GML2, GML3 and > shapefiles... GML2 and GML3 work fine. > > The problem is that my GML files get very big, up to 60 > megabytes, and my client applications (like ArcGIS) do not > handle that very well. > Options: - would compressing (gzip/zip) help at all? - you could write a mapscript WxS wrapper (see http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript) to intercept a GetFeature request (say, catching outputformat=shape), and transform the GML response to a shapefile. I'm guessing folks have done similar things w.r.t. shapefile clip/download functionality. ..Tom > Thank you, > Maarten Plieger > From pramsey at cleverelephant.ca Tue Dec 2 05:12:20 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 2 Dec 2008 05:12:20 -0800 Subject: [mapserver-users] Postgis query In-Reply-To: <39f1dcdf0812020237v3d61bbc7q8155d34f88f03326@mail.gmail.com> References: <39f1dcdf0812020237v3d61bbc7q8155d34f88f03326@mail.gmail.com> Message-ID: <30fe546d0812020512l746b0f6fr7a8622dd8c4e2555@mail.gmail.com> If you turn on statement logging in pgsql, you can see what SQL mapserver is sending to pgsql. That will clarify if there is a way for you to change your statement to get what you want, or if there's an error in what mapserver is asking for, or an error in how mapserver is processing what is returned to it. P On Tue, Dec 2, 2008 at 2:37 AM, mark balman wrote: > Hi All > > I am trying to output a query from postgis using three tables and it > is not quite working. > > First table is a quarter degree grid (spatial table) > Second table is a table with each grid cell id along with many species > id per grid cell > Third table is list of species > > My query definition works well as the following (using two tables only) > > select fid_1, the_geom AS the_geom, spcgrid.id as gid, spcid > from spcdensity > left join spcgrid on spcdensity.fid_1 = spcgrid.fid > > This produces exactly what I want through mapserver, query a grid cell > and it returns a list of species within that grid cell > > My problem is that I want to return a list of species names so my > query at present is defined as: > > select spcid, spccommonname, fid_1, spcdensity.the_geom, spcid as gid > from spcgrid left join species on spcgrid.spcid = species.spcrecid > inner join spcdensity on spcdensity.fid_1 = spcgrid.fid > > Although the query works when run in pgadmin, when I query a grid cell > I get a list of one species repeated. I am slightly confused as to > what I am missing here, can anyone provide me with some pointers? > > Thanks in advance > > Mark > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Tue Dec 2 06:48:01 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 02 Dec 2008 08:48:01 -0600 Subject: [mapserver-users] I need ur help (plz urgent) Message-ID: <4934F6410200008F0001E046@co5.dnr.state.mn.us> Ques 1: Not sure how you get the regex error with [map]. That tag goes in the html template (e.g. ) but note that it will only work IF you are setting "map" on the original call to MapServer. Ques 2: SAVEMAP is not switchable, you'd have to edit mapserv.c and recompile. Steve >>> "Amiya Patra" 12/02/08 12:30 AM >>> Hello.. I am new to Mapserver. I have some raster files(tiff). I cant place the symbol within the created image. But legend is created. Somewhere I read that raster layer does not support Symbol. And also [map] tag is not working within HTML template. Error message is msEvalRegex(): Regular expression error. String ([map]) failed expression test. .I got that SAVEMAP must be switched on..But how ? I tried to send it via HTML hidden field but I did not get. Also if I write PROCESSING "BANDs=1 2 3" then error message is like msDrawMap(): Image handling error. Failed to draw layer named 'modis'. drawGDAL(): Unable to access file. Attempt to classify 24bit image, this is unsupported. I got that by default output image is 8 bit. So I tried to delare Imagetype JPEG and also Proceesing dither =yes and also via output object .But ?? If I commented that line then image quality is very very bad. And also I need MYSQL connection with raster file notes. Please I need ur help........And I hope I will get response very soon...... Thank you. MAP IMAGETYPE JPEG EXTENT 0.0 0.0 583.0 421.0 # -179.133392 17.674692 179.788208 71.398048 # # 0.004349 0.006191 312.987904 377.680442 SIZE 583 421 SHAPEPATH "/home/nms/MapServerData/data/" IMAGECOLOR 255 255 255 STATUS ON TRANSPARENT ON SYMBOLSET "/home/nms/MapServerData/symbol/symbol.sym" WEB TEMPLATE "/home/nms/MapServerData/data/temp1.html" IMAGEPATH "/home/nms/MapServerData/img/" IMAGEURL "/img/" LOG "/home/nms/MapServerData/logs/mapserver.log" END LEGEND KEYSIZE 12 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS METERS INTERVALS 2 # TRANSPARENT FALSE STATUS ON END # Scalebar object ends # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # MODIS raster layer begins here NAME modis CLASS NAME 'I AM ICON' #KEYIMAGE "/home/nms/MapServerData/data/z.png" #z.gif' SYMBOL '/home/nms/MapServerData/data/z.gif' #SYMBOL 'd' END # DATA "statesp020" DATA "DRDO.png" STATUS OFF TYPE RASTER PROCESSING "DITHER=YES" # PROCESSING "SCALE_1=409,1203" # PROCESSING "SCALE_2=203,296" # PROCESSING "SCALE_3=339,1004" # PROCESSING "SCALE=AUTO" #TILEINDEX DRDO.shp #TILEITEM Location TRANSPARENCY ALPHA CONNECTIONTYPE OGR CONNECTION "DRDO.ovf" PROCESSING "BANDS=1 2 3" # OFFSITE 255 255 255 JOIN NAME "test" TABLE "DRDO.dbf" FROM "ipForwarding" TO "LOCATION" TYPE ONE-TO-ONE END METADATA "t" "x" END # CLASSITEM "[pixel]" # class using simple string comparison, equivelent to ([pixel]) CLASS NAME "CCC" TEXT "CCCC" EXPRESSION "0" STYLE COLOR 0 0 0 END END # class using an EXPRESSION using only [pixel]. CLASS NAME "AAA" EXPRESSION ([pixel] >= x+64 AND [pixel] < 128) STYLE COLOR 255 0 0 END END # class using the red/green/blue values from the palette CLASS NAME "near white" EXPRESSION ([red] > 200 AND [green] > 200 AND [blue] > 200) STYLE # SYMBOL 1 COLOR 0 255 0 END END # Class using a regular expression to capture only pixel values ending in 1 CLASS NAME "BBB" EXPRESSION /*1/ STYLE COLOR 0 0 255 END END END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # All map files must come to an end just as all other things must come to... MapServer Workshop
Map Control:

Legend:

From boolean10001 at yahoo.com Tue Dec 2 07:28:43 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 2 Dec 2008 07:28:43 -0800 (PST) Subject: [mapserver-users] Postgis query In-Reply-To: <39f1dcdf0812020237v3d61bbc7q8155d34f88f03326@mail.gmail.com> Message-ID: <671814.77355.qm@web38205.mail.mud.yahoo.com> I guess the problem resides in the use of INNER and LEFT joins. Also, the order of the tables is important. The first tables specified in a query within the joins?must be the ones which stablish the records agrupation or discrimination. IC Carlos Ruiz ? --- On Tue, 12/2/08, mark balman wrote: From: mark balman Subject: [mapserver-users] Postgis query To: mapserver-users at lists.osgeo.org Date: Tuesday, December 2, 2008, 4:37 AM Hi All I am trying to output a query from postgis using three tables and it is not quite working. First table is a quarter degree grid (spatial table) Second table is a table with each grid cell id along with many species id per grid cell Third table is list of species My query definition works well as the following (using two tables only) select fid_1, the_geom AS the_geom, spcgrid.id as gid, spcid from spcdensity left join spcgrid on spcdensity.fid_1 = spcgrid.fid This produces exactly what I want through mapserver, query a grid cell and it returns a list of species within that grid cell My problem is that I want to return a list of species names so my query at present is defined as: select spcid, spccommonname, fid_1, spcdensity.the_geom, spcid as gid from spcgrid left join species on spcgrid.spcid = species.spcrecid inner join spcdensity on spcdensity.fid_1 = spcgrid.fid Although the query works when run in pgadmin, when I query a grid cell I get a list of one species repeated. I am slightly confused as to what I am missing here, can anyone provide me with some pointers? Thanks in advance Mark _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Dec 2 09:20:43 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 02 Dec 2008 11:20:43 -0600 Subject: [mapserver-users] ICON Placing co-ordinates..... In-Reply-To: <5cf1344b0812012108y730f048u24ce4f3d6b6680eb@mail.gmail.com> References: <5cf1344b0812012108y730f048u24ce4f3d6b6680eb@mail.gmail.com> Message-ID: <49351A0A.5157.008F.0@dnr.state.mn.us> You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL "2.gif" END END END Steve >>> On 12/1/2008 at 11:08 PM, in message <5cf1344b0812012108y730f048u24ce4f3d6b6680eb at mail.gmail.com>, "Vikas KM" wrote: > Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... > but the thing i can't get the icon placed at the required co-ordinates its > taking the extent as its reference..? > > > my Map File > ------------------- > MAP > > NAME "Tiff Image" > SIZE 1900 1200 > EXTENT 0.0 0.0 1920.0 1200.0 > SHAPEPATH "/home/nms/mapserverdemo/tif/data/" > IMAGETYPE JPEG > > WEB > TEMPLATE "/home/nms/mapserverdemo/tif/tif.html" > IMAGEPATH "/home/nms/mapserverdemo/tif/" > IMAGEURL "/tif/" > END > > LAYER > STATUS default > TYPE RASTER > DATA "1.tif" > END #END LAYER > > LAYER > STATUS default > TYPE RASTER > /// size of the icon is 800,500 > DATA "2.gif" > END #END LAYER > > END #END MAPFILE > > > how to I place an icon at x,y given position on the reference map... that > is 1.tif ???? > > > -------------- > Regards > > Vikas KM From SansonR at asurequality.com Tue Dec 2 12:36:10 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 03 Dec 2008 09:36:10 +1300 Subject: [mapserver-users] ICON Placing co-ordinates..... In-Reply-To: <49351A0A.5157.008F.0@dnr.state.mn.us> References: <5cf1344b0812012108y730f048u24ce4f3d6b6680eb@mail.gmail.com> <49351A0A.5157.008F.0@dnr.state.mn.us> Message-ID: <49365309.379F.0037.0@asurequality.com> I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL "marker" END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME "marker" TYPE PIXMAP IMAGE "marker.png" #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&gpsy=5427898.99793&mode=map&layers=linz_orthos+crs_parcels+gps_point&MINX=1747411.13985&MINY=5426898.99793&MAXX=1749411.13985&MAXY=5428898.99793&mapsize=1200+1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson >>> "Steve Lime" 3/12/2008 6:20 a.m. >>> You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL "2.gif" END END END Steve >>> On 12/1/2008 at 11:08 PM, in message <5cf1344b0812012108y730f048u24ce4f3d6b6680eb at mail.gmail.com>, "Vikas KM" wrote: > Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... > but the thing i can't get the icon placed at the required co-ordinates its > taking the extent as its reference..? > > > my Map File > ------------------- > MAP > > NAME "Tiff Image" > SIZE 1900 1200 > EXTENT 0.0 0.0 1920.0 1200.0 > SHAPEPATH "/home/nms/mapserverdemo/tif/data/" > IMAGETYPE JPEG > > WEB > TEMPLATE "/home/nms/mapserverdemo/tif/tif.html" > IMAGEPATH "/home/nms/mapserverdemo/tif/" > IMAGEURL "/tif/" > END > > LAYER > STATUS default > TYPE RASTER > DATA "1.tif" > END #END LAYER > > LAYER > STATUS default > TYPE RASTER > /// size of the icon is 800,500 > DATA "2.gif" > END #END LAYER > > END #END MAPFILE > > > how to I place an icon at x,y given position on the reference map... that > is 1.tif ???? > > > -------------- > Regards > > Vikas KM _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Dec 2 13:01:30 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 2 Dec 2008 15:01:30 -0600 Subject: [mapserver-users] ICON Placing co-ordinates..... In-Reply-To: <49365309.379F.0037.0@asurequality.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA007@s-sp22.pca.state.mn.us> Robert, I thought that I remembered posting an example to fix a similar issue and went back into the archives to find it. Funny thing, it was a thread that you started! The solution was to create the feature on the fly through a URL configuration. http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.h tml If you can use the URL vars in the points obj, that would be nice and clean... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Sanson Sent: Tuesday, December 02, 2008 2:36 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ICON Placing co-ordinates..... I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL "marker" END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME "marker" TYPE PIXMAP IMAGE "marker.png" #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&gpsy=5427898.9 9793&mode=map&layers=linz_orthos+crs_parcels+gps_point&MINX=1747411.1398 5&MINY=5426898.99793&MAXX=1749411.13985&MAXY=5428898.99793&mapsize=1200+ 1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson >>> "Steve Lime" 3/12/2008 6:20 a.m. >>> You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL "2.gif" END END END Steve >>> On 12/1/2008 at 11:08 PM, in message <5cf1344b0812012108y730f048u24ce4f3d6b6680eb at mail.gmail.com>, "Vikas KM" wrote: > Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... > but the thing i can't get the icon placed at the required co-ordinates its > taking the extent as its reference..? > > > my Map File > ------------------- > MAP > > NAME "Tiff Image" > SIZE 1900 1200 > EXTENT 0.0 0.0 1920.0 1200.0 > SHAPEPATH "/home/nms/mapserverdemo/tif/data/" > IMAGETYPE JPEG > > WEB > TEMPLATE "/home/nms/mapserverdemo/tif/tif.html" > IMAGEPATH "/home/nms/mapserverdemo/tif/" > IMAGEURL "/tif/" > END > > LAYER > STATUS default > TYPE RASTER > DATA "1.tif" > END #END LAYER > > LAYER > STATUS default > TYPE RASTER > /// size of the icon is 800,500 > DATA "2.gif" > END #END LAYER > > END #END MAPFILE > > > how to I place an icon at x,y given position on the reference map... that > is 1.tif ???? > > > -------------- > Regards > > Vikas KM _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Tue Dec 2 13:06:05 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 03 Dec 2008 10:06:05 +1300 Subject: [mapserver-users] ICON Placing co-ordinates.....SOLVED In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA007@s-sp22.pca.state.mn.us> References: <49365309.379F.0037.0@asurequality.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA007@s-sp22.pca.state.mn.us> Message-ID: <49365A0D.379F.0037.0@asurequality.com> Thanks very much David. I was just about to post a message that I had solved it. Last time I was dealing with annotation. This time a GPS point reprojected into x,y. This is what works: Map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map - using a default value POINTS 1748411 5427899 END END CLASS STYLE SYMBOL "marker" END END END URL: http://10.65.192.1/cgi-bin/mapserv.exe?mode=map&layers=linz_orthos+crs_parcels+gps_point&map.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+END&MINX=1747637.58606&MINY=5438001.11023&MAXX=1749637.58606&MAXY=5440001.11023&mapsize=1200+1200 regards, Robert >>> "Fawcett, David" 3/12/2008 10:01 a.m. >>> Robert, I thought that I remembered posting an example to fix a similar issue and went back into the archives to find it. Funny thing, it was a thread that you started! The solution was to create the feature on the fly through a URL configuration. http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.html If you can use the URL vars in the points obj, that would be nice and clean... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Sanson Sent: Tuesday, December 02, 2008 2:36 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ICON Placing co-ordinates..... I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL "marker" END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME "marker" TYPE PIXMAP IMAGE "marker.png" #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&gpsy=5427898.99793&mode=map&layers=linz_orthos+crs_parcels+gps_point&MINX=1747411.13985&MINY=5426898.99793&MAXX=1749411.13985&MAXY=5428898.99793&mapsize=1200+1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson >>> "Steve Lime" 3/12/2008 6:20 a.m. >>> You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL "2.gif" END END END Steve >>> On 12/1/2008 at 11:08 PM, in message <5cf1344b0812012108y730f048u24ce4f3d6b6680eb at mail.gmail.com>, "Vikas KM" wrote: > Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... > but the thing i can't get the icon placed at the required co-ordinates its > taking the extent as its reference..? > > > my Map File > ------------------- > MAP > > NAME "Tiff Image" > SIZE 1900 1200 > EXTENT 0.0 0.0 1920.0 1200.0 > SHAPEPATH "/home/nms/mapserverdemo/tif/data/" > IMAGETYPE JPEG > > WEB > TEMPLATE "/home/nms/mapserverdemo/tif/tif.html" > IMAGEPATH "/home/nms/mapserverdemo/tif/" > IMAGEURL "/tif/" > END > > LAYER > STATUS default > TYPE RASTER > DATA "1.tif" > END #END LAYER > > LAYER > STATUS default > TYPE RASTER > /// size of the icon is 800,500 > DATA "2.gif" > END #END LAYER > > END #END MAPFILE > > > how to I place an icon at x,y given position on the reference map... that > is 1.tif ???? > > > -------------- > Regards > > Vikas KM _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ( http://www.surfcontrol.com/ ) Click here ( https://www.mailcontrol.com/sr/IRYj+ENRsNjTndxI!oX7Ul1c07CFB6vt3ifm3envFewlh8ABdpMRbcn9WIii7DFNLEE2u8gV0TCh35PDdlVduQ== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Dec 2 13:12:02 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 2 Dec 2008 15:12:02 -0600 Subject: [mapserver-users] ICON Placing co-ordinates.....SOLVED In-Reply-To: <49365A0D.379F.0037.0@asurequality.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA008@s-sp22.pca.state.mn.us> If you set the layer status to ON or OFF, your 'gps_point' layer won't show up on the map (at the default, unintended location) until you add the layer name explicitly in your URL call. David. -----Original Message----- From: Robert Sanson [mailto:SansonR at asurequality.com] Sent: Tuesday, December 02, 2008 3:06 PM To: mapserver-users at lists.osgeo.org; David Fawcett Subject: RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED Thanks very much David. I was just about to post a message that I had solved it. Last time I was dealing with annotation. This time a GPS point reprojected into x,y. This is what works: Map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map - using a default value POINTS 1748411 5427899 END END CLASS STYLE SYMBOL "marker" END END END URL: http://10.65.192.1/cgi-bin/mapserv.exe?mode=map&layers=linz_orthos+crs_p arcels+gps_point&map.layer[gps_point]=FEATURE+POINTS+1748637.58606+54390 01.11023+END+END&MINX=1747637.58606&MINY=5438001.11023&MAXX=1749637.5860 6&MAXY=5440001.11023&mapsize=1200+1200 regards, Robert >>> "Fawcett, David" 3/12/2008 10:01 a.m. >>> Robert, I thought that I remembered posting an example to fix a similar issue and went back into the archives to find it. Funny thing, it was a thread that you started! The solution was to create the feature on the fly through a URL configuration. http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.h tml If you can use the URL vars in the points obj, that would be nice and clean... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Sanson Sent: Tuesday, December 02, 2008 2:36 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ICON Placing co-ordinates..... I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL "marker" END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME "marker" TYPE PIXMAP IMAGE "marker.png" #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&gpsy=5427898.9 9793&mode=map&layers=linz_orthos+crs_parcels+gps_point&MINX=1747411.1398 5&MINY=5426898.99793&MAXX=1749411.13985&MAXY=5428898.99793&mapsize=1200+ 1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson >>> "Steve Lime" 3/12/2008 6:20 a.m. >>> You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL "2.gif" END END END Steve >>> On 12/1/2008 at 11:08 PM, in message <5cf1344b0812012108y730f048u24ce4f3d6b6680eb at mail.gmail.com>, "Vikas KM" wrote: > Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... > but the thing i can't get the icon placed at the required co-ordinates its > taking the extent as its reference..? > > > my Map File > ------------------- > MAP > > NAME "Tiff Image" > SIZE 1900 1200 > EXTENT 0.0 0.0 1920.0 1200.0 > SHAPEPATH "/home/nms/mapserverdemo/tif/data/" > IMAGETYPE JPEG > > WEB > TEMPLATE "/home/nms/mapserverdemo/tif/tif.html" > IMAGEPATH "/home/nms/mapserverdemo/tif/" > IMAGEURL "/tif/" > END > > LAYER > STATUS default > TYPE RASTER > DATA "1.tif" > END #END LAYER > > LAYER > STATUS default > TYPE RASTER > /// size of the icon is 800,500 > DATA "2.gif" > END #END LAYER > > END #END MAPFILE > > > how to I place an icon at x,y given position on the reference map... that > is 1.tif ???? > > > -------------- > Regards > > Vikas KM _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com Click here to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Tue Dec 2 13:15:30 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 03 Dec 2008 10:15:30 +1300 Subject: [mapserver-users] ICON Placing co-ordinates.....SOLVED In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA008@s-sp22.pca.state.mn.us> References: <49365A0D.379F.0037.0@asurequality.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA008@s-sp22.pca.state.mn.us> Message-ID: <49365C41.379F.0037.0@asurequality.com> Thanks - I hadn't spotted that. Mapfile section now has STATUS OFF. Robert >>> "Fawcett, David" 3/12/2008 10:12 a.m. >>> If you set the layer status to ON or OFF, your 'gps_point' layer won't show up on the map (at the default, unintended location) until you add the layer name explicitly in your URL call. David. -----Original Message----- From: Robert Sanson [mailto:SansonR at asurequality.com] Sent: Tuesday, December 02, 2008 3:06 PM To: mapserver-users at lists.osgeo.org; David Fawcett Subject: RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED Thanks very much David. I was just about to post a message that I had solved it. Last time I was dealing with annotation. This time a GPS point reprojected into x,y. This is what works: Map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map - using a default value POINTS 1748411 5427899 END END CLASS STYLE SYMBOL "marker" END END END URL: http://10.65.192.1/cgi-bin/mapserv.exe?mode=map&layers=linz_orthos+crs_parcels+gps_point&map.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+END&MINX=1747637.58606&MINY=5438001.11023&MAXX=1749637.58606&MAXY=5440001.11023&mapsize=1200+1200 regards, Robert >>> "Fawcett, David" 3/12/2008 10:01 a.m. >>> Robert, I thought that I remembered posting an example to fix a similar issue and went back into the archives to find it. Funny thing, it was a thread that you started! The solution was to create the feature on the fly through a URL configuration. http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.html If you can use the URL vars in the points obj, that would be nice and clean... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Sanson Sent: Tuesday, December 02, 2008 2:36 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ICON Placing co-ordinates..... I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL "marker" END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME "marker" TYPE PIXMAP IMAGE "marker.png" #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&gpsy=5427898.99793&mode=map&layers=linz_orthos+crs_parcels+gps_point&MINX=1747411.13985&MINY=5426898.99793&MAXX=1749411.13985&MAXY=5428898.99793&mapsize=1200+1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson >>> "Steve Lime" 3/12/2008 6:20 a.m. >>> You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL "2.gif" END END END Steve >>> On 12/1/2008 at 11:08 PM, in message <5cf1344b0812012108y730f048u24ce4f3d6b6680eb at mail.gmail.com>, "Vikas KM" wrote: > Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... > but the thing i can't get the icon placed at the required co-ordinates its > taking the extent as its reference..? > > > my Map File > ------------------- > MAP > > NAME "Tiff Image" > SIZE 1900 1200 > EXTENT 0.0 0.0 1920.0 1200.0 > SHAPEPATH "/home/nms/mapserverdemo/tif/data/" > IMAGETYPE JPEG > > WEB > TEMPLATE "/home/nms/mapserverdemo/tif/tif.html" > IMAGEPATH "/home/nms/mapserverdemo/tif/" > IMAGEURL "/tif/" > END > > LAYER > STATUS default > TYPE RASTER > DATA "1.tif" > END #END LAYER > > LAYER > STATUS default > TYPE RASTER > /// size of the icon is 800,500 > DATA "2.gif" > END #END LAYER > > END #END MAPFILE > > > how to I place an icon at x,y given position on the reference map... that > is 1.tif ???? > > > -------------- > Regards > > Vikas KM _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ( http://www.surfcontrol.com/ ) Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From guolixia84 at 163.com Wed Dec 3 00:07:33 2008 From: guolixia84 at 163.com (guolixia84) Date: Wed, 3 Dec 2008 16:07:33 +0800 (CST) Subject: [mapserver-users] hdf projection Message-ID: <22166572.335261228291653482.JavaMail.coremail@bj163app69.163.com> Hi , I use gdalinfo to get the metadata of subdataset of hdf. However there is not any projection information. And I use shp2img.exe to show my mapfile of hdf raster data, there is just a gray area with nothing image, I do not know how to write a correct mapfile of hdf, maybe the projection is the problem. I wonder how can I get the projection information or how can I write the correct mapfile. Part of my mapfile is as follows: The map level of projection I do not know how to define, so I do not define it. LAYER NAME preview DATA "HDF4_SDS:UNKNOWN:\DATA\AMOD021KM20060726040600\AMOD021KM20060726040600.hdf:0" #DATA 'meteopreview.tif' DUMP TRUE TYPE RASTER PROCESSING "BANDS=1" PROJECTION AUTO # I do not know the projection END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Wed Dec 3 00:36:56 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 3 Dec 2008 14:06:56 +0530 Subject: [mapserver-users] ICON Placing (Symbol) within raster file Message-ID: Hi Steve But how It is possible for raster file because in raster file symbol is not supported. Instead of that I tried by keyimage but I am unable to get..plz help me regarding that. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.balman at gmail.com Wed Dec 3 01:16:52 2008 From: mark.balman at gmail.com (mark balman) Date: Wed, 3 Dec 2008 09:16:52 +0000 Subject: [mapserver-users] Postgis query Message-ID: <39f1dcdf0812030116i69d0b452oa60625a344b08a6f@mail.gmail.com> Hi All Many thanks to Paul with regards to enabling statement logging (extremely useful to help find out what sql is being sent) and thanks to Carlos for suggesting the joins.. this was the problem which I can happily say that I have resolved. What an amazing combination of software really, Mapserver and Postgis are great products.. Cheers to all Mark From VenkataBapalu.Ganugula at tatatel.co.in Wed Dec 3 02:01:29 2008 From: VenkataBapalu.Ganugula at tatatel.co.in (Venkata Bapalu Ganugula) Date: Wed, 3 Dec 2008 15:31:29 +0530 Subject: [mapserver-users] (no subject) Message-ID: Regards cmd Ganugula ASE | Information Technology | Tata Consultancy Services Ltd Kohinoor Park, Plot No. 1, Jubilee Gardens,cyberabad. | Hyderabad-500081 * 66678705 * 9966213000 * www.tatateleservices.com ====================================== i-choose online store at www.tataindicom.com Your Comfort.Your Convenience.YourChoice. ====================================== DISCLAIMER: The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.TATATELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 3915 bytes Desc: image001.gif URL: From Steve.Lime at dnr.state.mn.us Wed Dec 3 06:58:57 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 03 Dec 2008 08:58:57 -0600 Subject: [mapserver-users] ICON Placing (Symbol) within raster file Message-ID: <49364A510200008F0001E138@co5.dnr.state.mn.us> Pixmaps are raster symbols. However, only common graphics file formats are supported: GIF/PNG8/PNG24/JPG. If you convert your TIF to one of those then you can use it as a symbol and marker. Steve >>> "Amiya Patra" 12/03/08 2:38 AM >>> Hi Steve But how It is possible for raster file because in raster file symbol is not supported. Instead of that I tried by keyimage but I am unable to get..plz help me regarding that. Thank you. From David.Fawcett at state.mn.us Wed Dec 3 07:12:40 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 3 Dec 2008 09:12:40 -0600 Subject: [mapserver-users] (no subject) In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA00A@s-sp22.pca.state.mn.us> Wow, that is the spammiest sig that I have ever seen! html to boot! -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Venkata Bapalu Ganugula Sent: Wednesday, December 03, 2008 4:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] (no subject) Regards cmd Ganugula ASE | Information Technology | Tata Consultancy Services Ltd Kohinoor Park, Plot No. 1, Jubilee Gardens,cyberabad. | Hyderabad-500081 * 66678705 * 9966213000 * www.tatateleservices.com ====================================== i-choose online store at www.tataindicom.com Your Comfort. Your Convenience. Your Choice. ====================================== DISCLAIMER: The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. TATA TELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained or that this communication is free of viruses, interceptions or interferences. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 3915 bytes Desc: image001.gif URL: From jhagedorn at bannerbkgs.com Wed Dec 3 08:00:38 2008 From: jhagedorn at bannerbkgs.com (Jim Hagedorn) Date: Wed, 3 Dec 2008 10:00:38 -0600 Subject: [mapserver-users] one to many issue Message-ID: <5863BC6EA0494C498F8C7A389EF32E491CA785F2AE@BannerExg.banner.bannerbkgs.com> I'm having issues with the one to many in the join. I keep getting error message about the template. The only example is for one to one. I have not been able to find anything on the mailing list on this, but then I can't search the mailing list. Is there an example of a template for the one to many? thanks Jim Hagedorn GIS Specialist [cid:image001.gif at 01C9552D.FE73A1D0] Banner Associates, Inc. 409 22nd Avenue South * PO Box 298 * Brookings, South Dakota 57006 (605) 692-6342 * Fax (605) 692-5714 www.bannerassociates.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 952 bytes Desc: image001.gif URL: From jhagedorn at bannerbkgs.com Wed Dec 3 08:00:54 2008 From: jhagedorn at bannerbkgs.com (Jim Hagedorn) Date: Wed, 3 Dec 2008 10:00:54 -0600 Subject: [mapserver-users] join table to shape file before query Message-ID: <5863BC6EA0494C498F8C7A389EF32E491CA785F2AF@BannerExg.banner.bannerbkgs.com> I need to join a table with a shape file before I do a query. I have a shape file with polygons and the table has info on the polys but the table could have multiple entries for each polygon. I need to search on the table and then be able to zoom to the polygon for that entry in the table. I have done the join but that is after the query and can only query the polygon but it doesn't have the info I need to search on. is it possible to do the join first or somehow query the table and then relate back to the shapefile? thanks Jim Hagedorn GIS Specialist [cid:image001.gif at 01C9552E.0806A6C0] Banner Associates, Inc. 409 22nd Avenue South * PO Box 298 * Brookings, South Dakota 57006 (605) 692-6342 * Fax (605) 692-5714 www.bannerassociates.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 952 bytes Desc: image001.gif URL: From Steve.Lime at dnr.state.mn.us Wed Dec 3 09:56:33 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 03 Dec 2008 11:56:33 -0600 Subject: [mapserver-users] join table to shape file before query In-Reply-To: <5863BC6EA0494C498F8C7A389EF32E491CA785F2AF@BannerExg.banner.bannerbkgs.com> References: <5863BC6EA0494C498F8C7A389EF32E491CA785F2AF@BannerExg.banner.bannerbkgs.com> Message-ID: <493673F1.5157.008F.0@dnr.state.mn.us> You have to use OGR to do this and not MapServer JOINs. Steve >>> On 12/3/2008 at 10:00 AM, in message <5863BC6EA0494C498F8C7A389EF32E491CA785F2AF at BannerExg.banner.bannerbkgs.com>, Jim Hagedorn wrote: > I need to join a table with a shape file before I do a query. I have a shape > file with polygons and the table has info on the polys but the table could > have multiple entries for each polygon. I need to search on the table and > then be able to zoom to the polygon for that entry in the table. I have done > the join but that is after the query and can only query the polygon but it > doesn't have the info I need to search on. is it possible to do the join > first or somehow query the table and then relate back to the shapefile? > > thanks > > > Jim Hagedorn > GIS Specialist > > > [cid:image001.gif at 01C9552E.0806A6C0] > > Banner Associates, Inc. > 409 22nd Avenue South * PO Box 298 * Brookings, South Dakota 57006 > (605) 692-6342 * Fax (605) 692-5714 > www.bannerassociates.com From romero619 at hotmail.com Wed Dec 3 11:55:26 2008 From: romero619 at hotmail.com (P.Romero) Date: Wed, 3 Dec 2008 13:55:26 -0600 Subject: [mapserver-users] world vector shorelines shpfile - convert meters to DD in mapfile Message-ID: Hello, Im a new mapserver user, and I don't really have any experience in GIS. I have had success plotting the "World sub Country Administrative Units 1998" shapefile (admin98.shp), using DD units and lat/lon extents. However, now I am trying to plot the following shapefile: World Vector Shoreline world_shorelines.shp More information on this shapefile can be found here: http://www.pdc.org/mde/full_metadata.jsp?docId=%7B32F5F3B8-1CF1-48C5-9B81-57 885C0CA448%7D The problem is that this shapefile uses units which are in meters, and not in decimal degrees. However, my application calls for setting the map extents using lat/lon values. How can I use lat/lon (DD) units using this shapefile? Will the shapefile need to be "reprofected"? if so, how can this be done, and what should be the target projection? Or, can this simply be configured through the mapfile (using the "projection" directives?)???? Please help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Wed Dec 3 12:03:30 2008 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 03 Dec 2008 12:03:30 -0800 Subject: [mapserver-users] world vector shorelines shpfile - convert meters to DD in mapfile In-Reply-To: References: Message-ID: <4936E612.7090306@hostgis.com> > The problem is that this shapefile uses units which are in meters, and Two solutions: a) Use a PROJECTION block like this, to tell MapServer to reproject the data on the fly: PROJECTION "init=EPSG:123456" END b) Reproject the data into DD using ogr2ogr: ogr2ogr -t_srs EPSG:4326 -s_srs EPSG:123456 dd.shp utm.shp Note that reprojection on the fly isn't a fast operation, so if your data is large or there's no need for it to be in meters (say, distance measurements between coordinates) you may prefer Option B. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at hostgis.com Wed Dec 3 12:20:06 2008 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 03 Dec 2008 12:20:06 -0800 Subject: [mapserver-users] world vector shorelines shpfile - convert meters to DD in mapfile In-Reply-To: References: <4936E612.7090306@hostgis.com> Message-ID: <4936E9F6.2080604@hostgis.com> Pablo Romero wrote: > Im assuming that "EPSG:123456" doesnt really exist, and was used as an > example, correct? > Which "EPSG" projection should I be using to convert this > "world_shorelines.shp" shapefile into DD? Yes, 123456 was "whatever EPSG code corresponds to the projection your data is really using" I have no idea what projection that is; read the metadata to find out, and thumb through your PROJ's epsg file as well; that's usually /usr/share/proj/epsg for Unix. I wasn't always GIS either; I'm still 90% sysadmin, security, and general programmer. :) -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From Bryn.Roberts at forestrytas.com.au Wed Dec 3 16:58:44 2008 From: Bryn.Roberts at forestrytas.com.au (Bryn Roberts) Date: Thu, 04 Dec 2008 11:58:44 +1100 Subject: [mapserver-users] Legend Blur Message-ID: <4937C5F1.208A.008D.0@forestrytas.com.au> Hi MapServer Users, I would like assistance with a problem I seem to be having after moving to the latest ms4w package which includes MapServer 5.2. The problem I see is that map legends look somewhat blurry when embedded into the map (they look fine when status is simply 'on'). Has anyone experienced this problem before, or have any ideas as to what may be going on? Some maps have less blurry legends than others, but all maps were previously working fine under MapServer 5.0, and on comparison it looks like the legends MapServer 5.2 is drawing are slightly squashed. Below is an extract of one of the map files I am experiencing this problem with. MAP NAME abc STATUS ON SIZE 500 500 EXTENT 227154 5165779 627108 5614539 UNITS METERS IMAGECOLOR 255 255 255 SYMBOLSET "symbols.sym" FONTSET "font.list" SHAPEPATH "C:/ms4w/Apache/htdocs/abc/data/" PROJECTION "init=epsg:28355" END OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END LEGEND STATUS EMBED POSITION ll IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 FONT "verdana" TYPE TRUETYPE POSITION AUTO PARTIALS FALSE SIZE 8 BUFFER 1 END END Many thanks in advance. Regards, Bryn ----------------------------------------------------- This transmission is intended solely for the person or organisation to whom it is addressed. It is confidential and may contain legally privileged information. If you have received this transmission in error,you may not use, copy or distribute it. Please advise us by return e-mail or by phoning 61 3 62338203 and immediately delete the transmission in its entirety. We will meet your reasonable expenses of notifying us. Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. ----------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From J.Lubkowski at bom.gov.au Wed Dec 3 21:33:17 2008 From: J.Lubkowski at bom.gov.au (Justyna Lubkowski) Date: Thu, 4 Dec 2008 16:33:17 +1100 Subject: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] In-Reply-To: <493401A5.5157.008F.0@dnr.state.mn.us> Message-ID: <29237876E2F56546975A098DC25F3D4A030AA21E@officeho2.bom.gov.au> Hi Steve, Thanks for your reply and the tar ball with the shapefiles and map file. I've tried your map file with the following test script. #!/usr/bin/perl use mapscript; $req = new mapscript::OWSRequest( ); $req->setParameter( "SERVICE", "WMS" ); $req->setParameter( "VERSION", "1.1.0" ); $req->setParameter( "REQUEST", "GetCapabilities" ); $map = new mapscript::mapObj( "minimal_wms.map" ); $map->OWSDispatch( $req ); The error message I get is: Can't call method "OWSDispatch" without a package or object reference at ./minimal_wms.pl line 14. I'm pretty sure that setParameter has not set SERVICE, VERSION OR REQUEST. Any ideas? Cheers - Justyna. -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, 2 December 2008 8:24 AM To: Justyna Lubkowski; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] Your mapfile doesn't look to meet the minimum configuration requirements for WMS. For example, there is no projection information defined. I have a minimal WMS config example that I've attached for reference purposes. Steve >>> On 11/26/2008 at 6:49 PM, in message <29237876E2F56546975A098DC25F3D4A030AA211 at officeho2.bom.gov.au>, "Justyna Lubkowski" wrote: > Hi, > > I'm hoping someone can help, I've been trying to get Perl mapscript to > work using a couple of examples from the "MapScript wrappers for WxS > Services" page http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > > Using python mapscript it works, when I run it on the command line I > get xml output, however if I try doing the same using perl mapscript I > get no xml output on the command line, I get errors telling me that I > cannot set the SERVICE, VERSION or REQUEST parameters. I've included > the python and perl scripts and their respective map files below. If > I try using $req->loadParams() in the script, and pass the same > parameters as part of the query string, then do a wget I get a zero length file. > > Am I doing something wrong? Or is there a bug in perl mapscript? > > Cheers - Justyna. > > =========================================== > #!/usr/bin/python > > import mapscript > > req = mapscript.OWSRequest() > req.setParameter( 'SERVICE', 'WMS' ) > req.setParameter( 'VERSION', '1.1.0' ) req.setParameter( 'REQUEST', > 'GetCapabilities' ) > > map = mapscript.mapObj( 'test.map' ) > map.OWSDispatch( req ) > =========================================== > > with the following map file > > =========================================== > MAP > SIZE 600 300 > EXTENT -180 -90 180 90 > IMAGECOLOR 180 180 250 > IMAGETYPE PNG > > UNITS DD > WEB > IMAGEPATH "/html/tmp/wms" > IMAGEURL "/tmp/" > METADATA > OWS_ONLINERESOURCE "http://servername/test.py" > END > END > > LAYER > NAME "coast_polygon" > TYPE POLYGON > STATUS DEFAULT > DATA coast > CLASS > COLOR 231 220 189 > OUTLINECOLOR 198 134 0 > NAME "Coast " > END > END > END > =========================================== > > I get the following errors using perl mapscript: > cannot set wms parameter at ./test3.pl line 6. > cannot set version parameter at ./test3.pl line 7. > cannot set request parameter at ./test3.pl line 8. > > =========================================== > #!/usr/bin/perl -w > > use mapscript; > > $req = new mapscript::OWSRequest() or die "no request"; > $req->setParameter('SERVICE','WMS') or warn "cannot set wms parameter > $!"; > $req->setParameter('VERSION','1.1.1') or warn "cannot set version > parameter $!"; > $req->setParameter('REQUEST','GetCapabilities') or warn "cannot set > request parameter $!"; > > $map = new mapscript::mapObj("test3.map") or die "no object"; > > $map->OWSDispatch( $req ) or die "cannot dispatch"; > =========================================== > > and its mapfile is > > =========================================== > MAP > SIZE 600 300 > EXTENT -180 -90 180 90 > IMAGECOLOR 180 180 250 > IMAGETYPE PNG > > UNITS DD > WEB > IMAGEPATH "/html/tmp/wms" > IMAGEURL "/tmp/" > METADATA > OWS_ONLINERESOURCE http://servername/test3.pl > END > END > > LAYER > NAME "coast_polygon" > TYPE POLYGON > STATUS DEFAULT > DATA coast > CLASS > COLOR 231 220 189 > OUTLINECOLOR 198 134 0 > NAME "Coast " > END > END > END > =========================================== > > > > > > > > > > > > From VenkataBapalu.Ganugula at tatatel.co.in Thu Dec 4 00:11:49 2008 From: VenkataBapalu.Ganugula at tatatel.co.in (Venkata Bapalu Ganugula) Date: Thu, 4 Dec 2008 13:41:49 +0530 Subject: [mapserver-users] Is it possible to do network analysis in UMN Map Server Message-ID: Dear All, I have to implement some network analysis functionalities like 1. Measuring the distance between two selected points on a cable 2. Selecting the point on the cable at a specified distance Please advice on the feasible options and various possibilities. Backend database is oracle spatial and front end application server is UMN MapServer. Regards, Bapalu ====================================== i-choose online store at www.tataindicom.com Your Comfort.Your Convenience.YourChoice. ====================================== DISCLAIMER: The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.TATATELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.balman at gmail.com Thu Dec 4 04:14:35 2008 From: mark.balman at gmail.com (mark balman) Date: Thu, 4 Dec 2008 12:14:35 +0000 Subject: [mapserver-users] passing coordinates to a postgis query Message-ID: <39f1dcdf0812040414j44b8033u8b31aceb2b0206f1@mail.gmail.com> Hi all I am trying to pass latitude and longitude coordinates to a postgis query but I am getting confused. So far I have tried to use the following DATA definition as follows: DATA "the_geom FROM (select * from kbapoly where st_distance(the_geom,GeomFromText('Point(%mapy% %mapx%)',4326)) <6) AS myquery using SRID=4326 using unique gid" where mapy and mapx are the mapserver X and Y coordinate of mouse click. Alas this is not working and any suggestions or pointers would be most welcomed, Thanks in advance Mark From Tom.Kralidis at ec.gc.ca Thu Dec 4 04:41:09 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Thu, 4 Dec 2008 07:41:09 -0500 Subject: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] In-Reply-To: <29237876E2F56546975A098DC25F3D4A030AA21E@officeho2.bom.gov.au> References: <493401A5.5157.008F.0@dnr.state.mn.us> <29237876E2F56546975A098DC25F3D4A030AA21E@officeho2.bom.gov.au> Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Justyna Lubkowski > Sent: Thursday, 04 December 2008 00:33 > To: Steve Lime; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] > > Hi Steve, > > Thanks for your reply and the tar ball with the shapefiles > and map file. > > I've tried your map file with the following test script. > > #!/usr/bin/perl > > use mapscript; > > $req = new mapscript::OWSRequest( ); > $req->setParameter( "SERVICE", "WMS" ); > $req->setParameter( "VERSION", "1.1.0" ); $req->setParameter( > "REQUEST", "GetCapabilities" ); > > $map = new mapscript::mapObj( "minimal_wms.map" ); The mapfile can't be found. Try changing this line to: $map = new mapscript::mapObj( "minimal_wms.map" ) or warn "mapfile error: $!\n"; ..and you'll see the error. Try pointing to the mapfile fullpath? > > $map->OWSDispatch( $req ); > > The error message I get is: > Can't call method "OWSDispatch" without a package or object > reference at ./minimal_wms.pl line 14. > > I'm pretty sure that setParameter has not set SERVICE, > VERSION OR REQUEST. > > Any ideas? > > Cheers - Justyna. > > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: Tuesday, 2 December 2008 8:24 AM > To: Justyna Lubkowski; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] > > Your mapfile doesn't look to meet the minimum configuration > requirements for WMS. For example, there is no projection > information defined. I have a minimal WMS config example that > I've attached for reference purposes. > > Steve > > >>> On 11/26/2008 at 6:49 PM, in message > <29237876E2F56546975A098DC25F3D4A030AA211 at officeho2.bom.gov.au>, > "Justyna Lubkowski" wrote: > > Hi, > > > > I'm hoping someone can help, I've been trying to get Perl > mapscript to > > > work using a couple of examples from the "MapScript > wrappers for WxS > > Services" page http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > > > > Using python mapscript it works, when I run it on the > command line I > > get xml output, however if I try doing the same using perl > mapscript I > > > get no xml output on the command line, I get errors telling > me that I > > cannot set the SERVICE, VERSION or REQUEST parameters. > I've included > > the python and perl scripts and their respective map files > below. If > > I try using $req->loadParams() in the script, and pass the same > > parameters as part of the query string, then do a wget I get a zero > length file. > > > > Am I doing something wrong? Or is there a bug in perl mapscript? > > > > Cheers - Justyna. > > > > =========================================== > > #!/usr/bin/python > > > > import mapscript > > > > req = mapscript.OWSRequest() > > req.setParameter( 'SERVICE', 'WMS' ) > > req.setParameter( 'VERSION', '1.1.0' ) req.setParameter( 'REQUEST', > > 'GetCapabilities' ) > > > > map = mapscript.mapObj( 'test.map' ) > > map.OWSDispatch( req ) > > =========================================== > > > > with the following map file > > > > =========================================== > > MAP > > SIZE 600 300 > > EXTENT -180 -90 180 90 > > IMAGECOLOR 180 180 250 > > IMAGETYPE PNG > > > > UNITS DD > > WEB > > IMAGEPATH "/html/tmp/wms" > > IMAGEURL "/tmp/" > > METADATA > > OWS_ONLINERESOURCE "http://servername/test.py" > > END > > END > > > > LAYER > > NAME "coast_polygon" > > TYPE POLYGON > > STATUS DEFAULT > > DATA coast > > CLASS > > COLOR 231 220 189 > > OUTLINECOLOR 198 134 0 > > NAME "Coast " > > END > > END > > END > > =========================================== > > > > I get the following errors using perl mapscript: > > cannot set wms parameter at ./test3.pl line 6. > > cannot set version parameter at ./test3.pl line 7. > > cannot set request parameter at ./test3.pl line 8. > > > > =========================================== > > #!/usr/bin/perl -w > > > > use mapscript; > > > > $req = new mapscript::OWSRequest() or die "no request"; > > $req->setParameter('SERVICE','WMS') or warn "cannot set wms > parameter > > $!"; > > $req->setParameter('VERSION','1.1.1') or warn "cannot set version > > parameter $!"; > > $req->setParameter('REQUEST','GetCapabilities') or warn "cannot set > > request parameter $!"; > > > > $map = new mapscript::mapObj("test3.map") or die "no object"; > > > > $map->OWSDispatch( $req ) or die "cannot dispatch"; > > =========================================== > > > > and its mapfile is > > > > =========================================== > > MAP > > SIZE 600 300 > > EXTENT -180 -90 180 90 > > IMAGECOLOR 180 180 250 > > IMAGETYPE PNG > > > > UNITS DD > > WEB > > IMAGEPATH "/html/tmp/wms" > > IMAGEURL "/tmp/" > > METADATA > > OWS_ONLINERESOURCE http://servername/test3.pl > > END > > END > > > > LAYER > > NAME "coast_polygon" > > TYPE POLYGON > > STATUS DEFAULT > > DATA coast > > CLASS > > COLOR 231 220 189 > > OUTLINECOLOR 198 134 0 > > NAME "Coast " > > END > > END > > END > > =========================================== > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From paulborodaev at gmail.com Thu Dec 4 05:09:05 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Thu, 4 Dec 2008 05:09:05 -0800 (PST) Subject: [MAPSERVER-USERS] need smart windows wms client Message-ID: <20833074.post@talk.nabble.com> Could someone suggest me a windows desktop application, which allows to view mapserver 5.2.1 wms service responses (custom output projection) and correctly shows getFeatureResults (I use html templates) I've tried GeoMedia - it doesn't support getFeatureResults Gaia 3.2.1 - empty getFeatureResults (only feature ID) (but it has extender API) QGIS is buggy (can't force using custom projection, http://trac.osgeo.org/qgis/ticket/1166) FME Viewer fails with unknown error... Tatuk GIS Viewer - no getFeatureResults Dapple - exception right after running)) next will be: ArcExplorer, Caris EasyView, CadCorp MapBrowser/Viewer(?) ... Help me -- View this message in context: http://www.nabble.com/need-smart-windows-wms-client-tp20833074p20833074.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jjmapping at gmail.com Thu Dec 4 07:07:50 2008 From: jjmapping at gmail.com (John Jameson) Date: Thu, 4 Dec 2008 07:07:50 -0800 (PST) Subject: [mapserver-users] Strategies for creating Google Map tiles... Message-ID: <1228403270820-1613836.post@n2.nabble.com> I'm progressing well with my MapServer learning and experimentation. I'm now at the point where I have to start doing some real development but have some "strategy" questions and could use advice from you all with much more experience. I'm not looking for code, script, or anything other than basic strategy and ideas at solving my problem. Figuring out the code part of this will be the fun part! Of course, any existing examples would be wonderful to peek at. I have a variety of raster and shapefile maps in different scales. They overlap each other and do not fit well in a seamless way (like many DRG topo maps do). The borders aren't rectangular. Some of the maps are not in a north up direction either. I need to make tiles compatible with Google maps out of this mess. The outcome needs to be the typical pyramid of tiles where each detailed zoom level has 4x the number of tiles than the level above. Here are the things I've considered strategy-wise: 1. Combine everything into a single map file and then let MapServer serve the tiles (through TileCache). I can then go through the area of data I'm interested in and collect the tiles and save them. The super advantage of this strategy is that I can test it by having it serve the tiles live. It'll be slower than having them pre-computed and that isn't ultimately acceptable because I'll need offline use of the tiles and won't have MapServer. Still, it allows for great testing before the tile collection begins. The disadvantage is that I fear I'll run out of space with hundreds of raster maps and another hundred shapefiles (each with 20-30 layers). I fear I'd have to re-gen MapServer with all of the layers needed. Back on the plus side, it seems like MapServer will "quilt" the maps together nicely. This strategy has me scared about resource size and speed needed. 2. Turn each map file into its own set of tiles (perhaps a few zoom layers on both sides of the natural scale of the map). Tiles would need to be transparent where they cut their border on the map. Then write a separate script (ImageMagick) to go through and merge together tiles from the same locations to "quilt" them. For each zoom level, the lower resolution tiles would be drawn with the higher resolution tiles drawn over. That would create a final quilted tile for areas of shared location. 3. Create shapefiles of just the borders of each map. Use MapServer to serve up the tiles of those simple rectangles. The result would show which maps are actually in the individual tiles. Then those maps could be tiled and quilted (ImageMagick). The trick is in figuring out a way to encode the rectangles to point back to the original map data file of the source. The advantage of this is that it would seem to take advantage of the quilting aspecs of MapServer but allow for quicker performance. The disadvantage is that it would be more complex. Are there other strategies that I'm missing? Certainly with so much map data being overlaid on Google Maps, these issues must have been dealt with before. What else am I forgetting about? Thanks for this forum. I've learned a tremendous amount from all of the postings. Now I have to stop learning and start working! -- View this message in context: http://n2.nabble.com/Strategies-for-creating-Google-Map-tiles...-tp1613836p1613836.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Doug_Newcomb at fws.gov Thu Dec 4 07:15:01 2008 From: Doug_Newcomb at fws.gov (Doug_Newcomb at fws.gov) Date: Thu, 4 Dec 2008 10:15:01 -0500 Subject: [mapserver-users] Compile errors with 5.2.1 on Centos 5.2 x64 Message-ID: Hi Folks, I'm having a bit of trouble compiling mapserver 5.2.1 on a Centos 5.2 x64 box. Sorry for the long post, just trying to be complete. Doug Configuration Options and Output --------------------------------- ./configure --without-tiff --without-eppl --without-jpeg --with-threads --with-proj --with-gdal=/usr/local/bin --with-php=/usr/include/php --with-gd --with-freetype=/usr/bin --with-ogr --with-gdal --with-wmsclient --with-wfs --with-wfs-client --with-postgis --with-geos checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.2.1' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config configure: checking where FreeType 2.x is installed... using libfreetype from -lfreetype checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... disabled by --without-jpeg checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from system libs (-L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no checking for PDF_load_font in -lpdf... no libpdf not found or too old... PDF support not included. checking if AGG support requested... no checking if RGBA palette png support requested... no configure: checking whether we should include EPPL7 support... disabled by --without-eppl configure: checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes using PROJ.4 from system libs. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes checking for geos-config... /usr/local/bin/geos-config checking for GEOS version >= 2.2.2... yes. Found version 3.0.3 configure: checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes configure: checking whether we should include TIFF support... disabled by --without-tiff checking if PostGIS support requested... yes checking for pg_config... no checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support enabled (-DUSE_WFS_SVR). configure: checking whether we should include WCS Server support... OGC WCS Server support not requested. configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support not requested. checking for curl-config... checking for curl-config... /usr/bin/curl-config found libcurl version 7.15.5 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). checking for libxml2... libxml2 not required. checking if FriBidi support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... checking for httpd... /usr/sbin/httpd /usr/sbin/httpd version is Apache/2.2.3 (2002003). Your system is apparently running Apache/2.2.3. Setting stderr to non-blocking for msDebug() due to Apache 2.x bug (see MapServer bug 458 or Apache bug 22030). Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... configure: checking for PHP/MapScript module options... checking for g++ -shared ... yes checking for location of config.h or php_config.h... /usr/include/php/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes found regex_extra.h - building PHP MapScript with PHP's bundled regex PHP/MapScript module configured. checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/php3/Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: FriBidi support: Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -------------- Data Format Drivers ------- native tiff support: PostGIS support: EPPL7 support: ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: yes Point of Compile Death upon make -------------------------------------------- g++ -shared -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o php_regex.o -L/usr/local/mapserver-5.2.1 -lmapserver -L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr/lib -lexpat -L/usr/local/lib -lxerces-c -lpthread -ljasper -lgif -lpng -lpq -L/usr/local/pgsql/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -L/usr/local/lib -lgeos_c -lpthread -lproj -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lc -lz -lm -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.so when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.a when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.so when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.a when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libidn.so when searching for -lidn /usr/bin/ld: skipping incompatible /usr/lib/libidn.a when searching for -lidn /usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg /usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching for -lsqlite3 /usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.so when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.a when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.so when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.a when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libidn.so when searching for -lidn /usr/bin/ld: skipping incompatible /usr/lib/libidn.a when searching for -lidn /usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg /usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz make[1]: Leaving directory `/usr/local/mapserver-5.2.1/mapscript/php3' Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 doug_newcomb at fws.gov --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of Interior. Life is too short for undocumented, proprietary data formats. From bob.b at gritechnologies.com Thu Dec 4 07:36:55 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Thu, 04 Dec 2008 09:36:55 -0600 Subject: [mapserver-users] Is it possible to do network analysis in UMN Map Server In-Reply-To: References: Message-ID: <4937F917.9090104@gritechnologies.com> These types of operations can be achieved via a Spatial database connection with MapServer. The controls you are looking for can be incorporated into the SQL request. during the map making process and sent as xml output via a template. bobb Venkata Bapalu Ganugula wrote: > > Dear All, > > > > I have to implement some network analysis functionalities like > > > > 1. Measuring the distance between two selected points on a cable > 2. Selecting the point on the cable at a specified distance > > > > > > Please advice on the feasible options and various possibilities. > Backend database is oracle spatial and front end application server is > UMN MapServer. > > > > Regards, > > Bapalu > > > > > > ====================================== > i-choose online store at www.tataindicom.com > Your Comfort. Your Convenience. Your Choice. > ====================================== > > DISCLAIMER: > The information contained in this message (including any attachments) > is confidential and may be privileged. If you have received it by > mistake please notify the sender by return e-mail and permanently > delete this message and any attachments from your system. Any > dissemination, use, review, distribution, printing or copying of this > message in whole or in part is strictly prohibited. Please note that > e-mails are susceptible to change. TATA TELESERVICES LTD. (including > its group companies) shall not be liable for the improper or > incomplete transmission of the information contained in this > communication nor for any delay in its receipt or damage to your > system. TATA TELESERVICES LTD. (or its group companies) does not > guarantee that the integrity of this communication has been maintained > or that this communication is free of viruses, interceptions or > interferences. > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Dec 4 07:47:36 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 04 Dec 2008 10:47:36 -0500 Subject: [mapserver-users] Is it possible to do network analysis in UMN Map Server In-Reply-To: <4937F917.9090104@gritechnologies.com> References: <4937F917.9090104@gritechnologies.com> Message-ID: <4937FB98.90200@swoodbridge.com> More specifically, look at pgRouting http://pgrouting.postlbs.org/ Bob Basques wrote: > These types of operations can be achieved via a Spatial database > connection with MapServer. The controls you are looking for can be > incorporated into the SQL request. during the map making process and > sent as xml output via a template. > > bobb > > > > Venkata Bapalu Ganugula wrote: >> >> Dear All, >> >> >> >> I have to implement some network analysis functionalities like >> >> >> >> 1. Measuring the distance between two selected points on a cable >> 2. Selecting the point on the cable at a specified distance >> >> >> >> >> >> Please advice on the feasible options and various possibilities. >> Backend database is oracle spatial and front end application server is >> UMN MapServer. >> >> >> >> Regards, >> >> Bapalu >> >> >> >> >> >> ====================================== >> i-choose online store at www.tataindicom.com >> Your Comfort. Your Convenience. Your Choice. >> ====================================== >> >> DISCLAIMER: >> The information contained in this message (including any attachments) >> is confidential and may be privileged. If you have received it by >> mistake please notify the sender by return e-mail and permanently >> delete this message and any attachments from your system. Any >> dissemination, use, review, distribution, printing or copying of this >> message in whole or in part is strictly prohibited. Please note that >> e-mails are susceptible to change. TATA TELESERVICES LTD. (including >> its group companies) shall not be liable for the improper or >> incomplete transmission of the information contained in this >> communication nor for any delay in its receipt or damage to your >> system. TATA TELESERVICES LTD. (or its group companies) does not >> guarantee that the integrity of this communication has been maintained >> or that this communication is free of viruses, interceptions or >> interferences. >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From randre at gmail.com Thu Dec 4 08:51:12 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 4 Dec 2008 08:51:12 -0800 Subject: [mapserver-users] Strategies for creating Google Map tiles... In-Reply-To: <1228403270820-1613836.post@n2.nabble.com> References: <1228403270820-1613836.post@n2.nabble.com> Message-ID: <9c2015090812040851j6413b6admbcc0ee93e6f0ec77@mail.gmail.com> Hi John, I've had good success with Option 1, but I'm not sure I understand all of the conditions you've mentioned. I assume that you intend to display these tiles in a Google Maps mashup when you're done? If so, using TileCache's tilecache_seed.py would allow you to pre-generate the tiles using Mapserver initially, and then display them in the map - without ever calling on Mapserver again. The major advantage I see to this method is that Mapserver can aggregate all of the separate layers and display them in a common projection. Good luck, Roger -- On Thu, Dec 4, 2008 at 7:07 AM, John Jameson wrote: > > I need to make tiles compatible with Google maps out of this mess. The > outcome needs to be the typical pyramid of tiles where each detailed zoom > level has 4x the number of tiles than the level above. > > Here are the things I've considered strategy-wise: > > 1. Combine everything into a single map file and then let MapServer serve > the tiles (through TileCache). I can then go through the area of data I'm > interested in and collect the tiles and save them. The super advantage of > this strategy is that I can test it by having it serve the tiles live. > It'll be slower than having them pre-computed and that isn't ultimately > acceptable because I'll need offline use of the tiles and won't have > MapServer. Still, it allows for great testing before the tile collection > begins. The disadvantage is that I fear I'll run out of space with > hundreds > of raster maps and another hundred shapefiles (each with 20-30 layers). I > fear I'd have to re-gen MapServer with all of the layers needed. Back on > the plus side, it seems like MapServer will "quilt" the maps together > nicely. This strategy has me scared about resource size and speed needed. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfe at ixsea.com Thu Dec 4 09:04:07 2008 From: bfe at ixsea.com (benjamin ferlicot) Date: Thu, 4 Dec 2008 18:04:07 +0100 Subject: [mapserver-users] Mapserver WFS and Udig Message-ID: <00eb01c95632$5242e8c0$f6c8ba40$@com> Hello, I 'm trying to set up a Wfs server with a postgis connection. My map file works fine with QuantumGis and worldWind but refuse to work with Udig. Did anyone experience same issue ? did anyone can post a working sample ? Thanks for Reading, best regards I had probably forgot something here is my test map : I use Fwtools build with mapserver 5.10 NAME WFS_server STATUS ON SIZE 400 300 CONFIG "PROJ_LIB" "c:\Inetpub\wwwroot\Cgi\proj_lib\" #FONTSET "c:\Inetpub\wwwroot\Cgi\fonts\fonts.txt" #SYMBOLSET "c:\Inetpub\wwwroot\Cgi\symbols\Symbols.txt" EXTENT -180 -90 180 90 UNITS METERS IMAGECOLOR 0 255 255 WEB IMAGEPATH "c:/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "WFS Layer Contact" "wfs_onlineresource" "http://isdas-vm-bfe2/cgi/bin/mapserv.exe?map=c:\WFS.map" "wfs_srs" "EPSG:4326" END END PROJECTION "init=epsg:4326" END LAYER NAME 'Contact' TYPE POINT CONNECTIONTYPE POSTGIS CONNECTION 'user=isdas_rw password=WXCvbn dbname=marseille2509 host=dev-soft-1 port=5432' DATA 'coordinate from contact as foo using unique idcontact using SRID=4326' EXTENT -180 -90 180 90 DUMP TRUE STATUS ON METADATA 'wfs_title' 'Contact' 'wfs_featureid' 'idcontact' 'wfs_srs' 'EPSG:4326' 'gml_include_items' 'name' 'gml_name_alias' 'name' END END Benjamin Ferlicot Software departement Ixsea Sas END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jar at deneb.biz Thu Dec 4 09:05:08 2008 From: jar at deneb.biz (=?ISO-8859-1?Q?Jos=E9_Angel_Rodr=EDguez_Leyva?=) Date: Thu, 4 Dec 2008 18:05:08 +0100 Subject: [mapserver-users] Tileindex doesn't draw when changes mapserver version Message-ID: <49380DC4.20605@deneb.biz> Hi, I?m using a set of separated DGN rectangular maps, joined together in a single tileindex shape file, in many projects and different mapserver versions and always works fine. Some days ago I tried to upgrade to the 2.2.7 Mapserver 4 Windows (ms4w) version, with MapServer 5.0.2 and GDAL 1.5.0 releases and now all tileindex layer drawings are empties (layer works in 5.0.0 ms version). There's no error messages or any mis-function with mapserver excepts that produce nothing. The output files are SWF flash movies. There's 74 DGN files and anyone is drawn if it is added in the mapfile as individual layer. I think it's possible there is a bug error in somewhere, because how the map couldn't draw correctly just changing to a new server subversion. greetings jos? a.r. -- o.o ..o O.. -------------- next part -------------- A non-text attachment was scrubbed... Name: jar.vcf Type: text/x-vcard Size: 215 bytes Desc: not available URL: From stephan.holl at intevation.de Thu Dec 4 10:53:31 2008 From: stephan.holl at intevation.de (Stephan Holl) Date: Thu, 4 Dec 2008 19:53:31 +0100 Subject: [mapserver-users] MapServer 5.2.1 Released In-Reply-To: <4933F15A.5157.008F.0@dnr.state.mn.us> References: <4933F15A.5157.008F.0@dnr.state.mn.us> Message-ID: <20081204195331.65cf61d0@keto> "Steve Lime" , [20081201 - 14:14:50] > Hi all: The MapServer PSC has just released version 5.2.1. This new > release contains no additional functionality but addresses a number > of issues identified since the 5.2.0 release. A list of fixes is > included at the end of this message. The full change log can be > viewed online at: > > http://mapserver.gis.umn.edu/download/current/HISTORY.TXT > > The source package is available in the MapServer downloads page: > > http://mapserver.gis.umn.edu/download/current/ > > Precompiled binaries should be available shortly at the usual > locations (also linked from the download page above). The OpenSuSE.repositorys provide RPMs for MS 5.2.1 for the following versions: * SLE_10 (i586/x86_64) * openSUSE_10.2 (i586/x86_64) * openSUSE_10.3 (i586/x86_64) * openSUSE_11 (i586/x86_64) You can find them here (or include the repo into yast): http://download.opensuse.org/repositories/Application:/Geo/ Best regards Stephan Holl > Version 5.2.1 (2008-12-01) > --------------------------------- > > * Exposed PIXELS value via URL configuration > * Add Support for SLD TextSymbolizer HALO and ANGLE (#2806) > * Fix crash when an invalid bbox filter is used (#2805) > * raster query fix for tileindex with relative paths (#2722) > * Fix for the access violation caused by msMSSQL2008LayerGetShape > (#2795) > * Fixed msMSSQL2008LayerGetItems to retrieve the column names > properly (#2791) > * Prevent from calling msMSSQL2008CloseConnection from > msMSSQL2008LayerClose causing memory corruption issues (#2790) > * fix some integer rounding errors in the agg line offseter (#2659) > * fix a bug with shapes with duplicate end points. was causing NaNs > in the angle follow placement code (#2695) > * memory leak in msInsertLayer, from Ned Horning (#2784) > * legend keyimage resampling with agg (#2715) > * tileindexed rasters when DATA is manipulated via mapscript work > (#2783) > * PHP: add priority attribute to the label object (#2782) > * Fixed bug when QUERYMAP hilite color is set and the shape's color > in a layer is from a data source (#2769) > * PHP paste image should also work with AGG (#2682) > * Correct allocation error in mapmssql2008.c (#2768) > * Removed comma to correct WCS 1.1 Coverages formatting in payload > directory. (#2764) > * Correct bug when LABEL_NO_CLIP in combination with minfeaturesize > (#2758) > * Fix a label size computation for AGG bug when scalefactor is used > (#2756) > * Got rid of misleading errors about OWS SERVICE not being compiled > in when a OWS request is sent that includes mode=map (or other mode > value different from ows)(#2747) > * Fixed a memory leak associated with not deleting the lexer buffer > before parsing certain types of strings. (#2729) > * Masking the out-of-range characters to avoid the crash in the AGG > renderer (#2739) > * AGG: fix pixmap symbols not drawing if no color was specified > (#2736) > * Accept WMS requests in which the optional SERVICE param is missing. > A new test was incorrectly added in 5.2.0 that resulted in the error > "Incomplete WFS request: SERVICE parameter missing" when the SERVICE > parameter was missing in WMS requests in which the SERVICE param is > optional (#2737) > * SLD: when creating well known symbols on the fly the pen-up value > used should be -99. > * Support reading projection parameter for OFC filters (#2712) > * Stop configure execution with an error if path to one of the > -config scripts is invalid (#2710) > * Fixed the configure script: failed to detect php5 on ubuntu. > (#2365) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From J.Lubkowski at bom.gov.au Thu Dec 4 16:53:56 2008 From: J.Lubkowski at bom.gov.au (Justyna Lubkowski) Date: Fri, 5 Dec 2008 11:53:56 +1100 Subject: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] In-Reply-To: Message-ID: <29237876E2F56546975A098DC25F3D4A030AA220@officeho2.bom.gov.au> Hi, Putting in the full path to the mapfile makes no difference the same errors occur. Are the errors for setParameter a red herring? Interestingly I've tried handing it both a valid map filename and a filename that doesn't exist. When the mapfile doesn't exist it reports "Mapfile error: No such file or directory". When the map file does exist it doesn't report on the nature of the problem, but clearly it is finding the file otherwise it would report "No such file or directory". See below. Is anyone using perl mapscript to do WxS services on mapserver 5.2? ====================================== Using no.map, which doesn't exist ====================================== $ ./minimal_wms.pl Cannot setParameter SERVICE: Cannot setParameter VERSION: Cannot setParameter REQUEST: Mapfile error: No such file or directory Can't call method "OWSDispatch" without a package or object reference at ./minimal_wms.pl line 13. ====================================== Using minimal_wms.map ====================================== ./minimal_wms.pl Cannot setParameter SERVICE: Cannot setParameter VERSION: Cannot setParameter REQUEST: Mapfile error: Can't call method "OWSDispatch" without a package or object reference at ./minimal_wms.pl line 13. #!/usr/bin/perl use mapscript; $req = new mapscript::OWSRequest( ) or warn "Cannot create request: $!\n"; $req->setParameter( "SERVICE", "WMS" ) or warn "Cannot setParameter SERVICE: $!\n"; $req->setParameter( "VERSION", "1.1.0" ) or warn "Cannot setParameter VERSION: $!\n"; $req->setParameter( "REQUEST", "GetCapabilities" ) or warn "Cannot setParameter REQUEST: $!\n"; #$map = new mapscript::mapObj( "no.map" ) or warn "Mapfile error: $!\n"; $map = new mapscript::mapObj( "minimal_wms.map" ) or warn "Mapfile error: $!\n"; $map->OWSDispatch( $req ); -----Original Message----- From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Thursday, 4 December 2008 11:41 PM To: Justyna Lubkowski; Steve Lime; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Justyna > Lubkowski > Sent: Thursday, 04 December 2008 00:33 > To: Steve Lime; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] > > Hi Steve, > > Thanks for your reply and the tar ball with the shapefiles and map > file. > > I've tried your map file with the following test script. > > #!/usr/bin/perl > > use mapscript; > > $req = new mapscript::OWSRequest( ); > $req->setParameter( "SERVICE", "WMS" ); $req->setParameter( "VERSION", > "1.1.0" ); $req->setParameter( "REQUEST", "GetCapabilities" ); > > $map = new mapscript::mapObj( "minimal_wms.map" ); The mapfile can't be found. Try changing this line to: $map = new mapscript::mapObj( "minimal_wms.map" ) or warn "mapfile error: $!\n"; ..and you'll see the error. Try pointing to the mapfile fullpath? > > $map->OWSDispatch( $req ); > > The error message I get is: > Can't call method "OWSDispatch" without a package or object reference > at ./minimal_wms.pl line 14. > > I'm pretty sure that setParameter has not set SERVICE, VERSION OR > REQUEST. > > Any ideas? > > Cheers - Justyna. > > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: Tuesday, 2 December 2008 8:24 AM > To: Justyna Lubkowski; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] > > Your mapfile doesn't look to meet the minimum configuration > requirements for WMS. For example, there is no projection information > defined. I have a minimal WMS config example that I've attached for > reference purposes. > > Steve > > >>> On 11/26/2008 at 6:49 PM, in message > <29237876E2F56546975A098DC25F3D4A030AA211 at officeho2.bom.gov.au>, > "Justyna Lubkowski" wrote: > > Hi, > > > > I'm hoping someone can help, I've been trying to get Perl > mapscript to > > > work using a couple of examples from the "MapScript > wrappers for WxS > > Services" page http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > > > > Using python mapscript it works, when I run it on the > command line I > > get xml output, however if I try doing the same using perl > mapscript I > > > get no xml output on the command line, I get errors telling > me that I > > cannot set the SERVICE, VERSION or REQUEST parameters. > I've included > > the python and perl scripts and their respective map files > below. If > > I try using $req->loadParams() in the script, and pass the same > > parameters as part of the query string, then do a wget I get a zero > length file. > > > > Am I doing something wrong? Or is there a bug in perl mapscript? > > > > Cheers - Justyna. > > > > =========================================== > > #!/usr/bin/python > > > > import mapscript > > > > req = mapscript.OWSRequest() > > req.setParameter( 'SERVICE', 'WMS' ) req.setParameter( 'VERSION', > > '1.1.0' ) req.setParameter( 'REQUEST', 'GetCapabilities' ) > > > > map = mapscript.mapObj( 'test.map' ) map.OWSDispatch( req ) > > =========================================== > > > > with the following map file > > > > =========================================== > > MAP > > SIZE 600 300 > > EXTENT -180 -90 180 90 > > IMAGECOLOR 180 180 250 > > IMAGETYPE PNG > > > > UNITS DD > > WEB > > IMAGEPATH "/html/tmp/wms" > > IMAGEURL "/tmp/" > > METADATA > > OWS_ONLINERESOURCE "http://servername/test.py" > > END > > END > > > > LAYER > > NAME "coast_polygon" > > TYPE POLYGON > > STATUS DEFAULT > > DATA coast > > CLASS > > COLOR 231 220 189 > > OUTLINECOLOR 198 134 0 > > NAME "Coast " > > END > > END > > END > > =========================================== > > > > I get the following errors using perl mapscript: > > cannot set wms parameter at ./test3.pl line 6. > > cannot set version parameter at ./test3.pl line 7. > > cannot set request parameter at ./test3.pl line 8. > > > > =========================================== > > #!/usr/bin/perl -w > > > > use mapscript; > > > > $req = new mapscript::OWSRequest() or die "no request"; > > $req->setParameter('SERVICE','WMS') or warn "cannot set wms > parameter > > $!"; > > $req->setParameter('VERSION','1.1.1') or warn "cannot set version > > parameter $!"; > > $req->setParameter('REQUEST','GetCapabilities') or warn "cannot set > > request parameter $!"; > > > > $map = new mapscript::mapObj("test3.map") or die "no object"; > > > > $map->OWSDispatch( $req ) or die "cannot dispatch"; > > =========================================== > > > > and its mapfile is > > > > =========================================== > > MAP > > SIZE 600 300 > > EXTENT -180 -90 180 90 > > IMAGECOLOR 180 180 250 > > IMAGETYPE PNG > > > > UNITS DD > > WEB > > IMAGEPATH "/html/tmp/wms" > > IMAGEURL "/tmp/" > > METADATA > > OWS_ONLINERESOURCE http://servername/test3.pl > > END > > END > > > > LAYER > > NAME "coast_polygon" > > TYPE POLYGON > > STATUS DEFAULT > > DATA coast > > CLASS > > COLOR 231 220 189 > > OUTLINECOLOR 198 134 0 > > NAME "Coast " > > END > > END > > END > > =========================================== > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From vtammineni at roulacglobal.com Fri Dec 5 04:14:45 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 5 Dec 2008 17:44:45 +0530 Subject: [mapserver-users] How to give QueryMap functionality for a particular Layer not for whole map Message-ID: <000c01c956d3$1143bd30$33cb3790$@com> Dear All, I want to assign QueryMap or querymapObj for particular layer in the map. Is it possible ? I am using C# .net. or atleast can I do something in Mapfile ? Anyone has done the same task? Please help me. I am waiting for your great response. Thanks Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Fri Dec 5 05:25:58 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Fri, 5 Dec 2008 08:25:58 -0500 Subject: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] References: <29237876E2F56546975A098DC25F3D4A030AA220@officeho2.bom.gov.au> Message-ID: I asked Justyna to send me a testcase. I was able to reproduce the issue. When I run the mapfile through shp2img, I get a projection not found error. When I check MAP.PROJECTION, the value is "init=EPSG:26915". The "EPSG" should be in lower case ("init=epsg:26915"). When this change is made, shp2img, and the Perl mapscript, runs fine If you are running this off the command line, you have to set MAP.WEB.METADATA.ows_onlineresource (MapServer gets the default value from http environment variables, if not specified). Can you try this and see if it works? ..Tom -----Original Message----- From: Justyna Lubkowski [mailto:J.Lubkowski at bom.gov.au] Sent: Thu 04-Dec-08 19:53 To: Kralidis,Tom [Ontario]; Steve Lime; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] Hi, Putting in the full path to the mapfile makes no difference the same errors occur. Are the errors for setParameter a red herring? Interestingly I've tried handing it both a valid map filename and a filename that doesn't exist. When the mapfile doesn't exist it reports "Mapfile error: No such file or directory". When the map file does exist it doesn't report on the nature of the problem, but clearly it is finding the file otherwise it would report "No such file or directory". See below. Is anyone using perl mapscript to do WxS services on mapserver 5.2? ====================================== Using no.map, which doesn't exist ====================================== $ ./minimal_wms.pl Cannot setParameter SERVICE: Cannot setParameter VERSION: Cannot setParameter REQUEST: Mapfile error: No such file or directory Can't call method "OWSDispatch" without a package or object reference at ./minimal_wms.pl line 13. ====================================== Using minimal_wms.map ====================================== ./minimal_wms.pl Cannot setParameter SERVICE: Cannot setParameter VERSION: Cannot setParameter REQUEST: Mapfile error: Can't call method "OWSDispatch" without a package or object reference at ./minimal_wms.pl line 13. #!/usr/bin/perl use mapscript; $req = new mapscript::OWSRequest( ) or warn "Cannot create request: $!\n"; $req->setParameter( "SERVICE", "WMS" ) or warn "Cannot setParameter SERVICE: $!\n"; $req->setParameter( "VERSION", "1.1.0" ) or warn "Cannot setParameter VERSION: $!\n"; $req->setParameter( "REQUEST", "GetCapabilities" ) or warn "Cannot setParameter REQUEST: $!\n"; #$map = new mapscript::mapObj( "no.map" ) or warn "Mapfile error: $!\n"; $map = new mapscript::mapObj( "minimal_wms.map" ) or warn "Mapfile error: $!\n"; $map->OWSDispatch( $req ); -----Original Message----- From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Thursday, 4 December 2008 11:41 PM To: Justyna Lubkowski; Steve Lime; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Justyna > Lubkowski > Sent: Thursday, 04 December 2008 00:33 > To: Steve Lime; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] > > Hi Steve, > > Thanks for your reply and the tar ball with the shapefiles and map > file. > > I've tried your map file with the following test script. > > #!/usr/bin/perl > > use mapscript; > > $req = new mapscript::OWSRequest( ); > $req->setParameter( "SERVICE", "WMS" ); $req->setParameter( "VERSION", > "1.1.0" ); $req->setParameter( "REQUEST", "GetCapabilities" ); > > $map = new mapscript::mapObj( "minimal_wms.map" ); The mapfile can't be found. Try changing this line to: $map = new mapscript::mapObj( "minimal_wms.map" ) or warn "mapfile error: $!\n"; ..and you'll see the error. Try pointing to the mapfile fullpath? > > $map->OWSDispatch( $req ); > > The error message I get is: > Can't call method "OWSDispatch" without a package or object reference > at ./minimal_wms.pl line 14. > > I'm pretty sure that setParameter has not set SERVICE, VERSION OR > REQUEST. > > Any ideas? > > Cheers - Justyna. > > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: Tuesday, 2 December 2008 8:24 AM > To: Justyna Lubkowski; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] > > Your mapfile doesn't look to meet the minimum configuration > requirements for WMS. For example, there is no projection information > defined. I have a minimal WMS config example that I've attached for > reference purposes. > > Steve > > >>> On 11/26/2008 at 6:49 PM, in message > <29237876E2F56546975A098DC25F3D4A030AA211 at officeho2.bom.gov.au>, > "Justyna Lubkowski" wrote: > > Hi, > > > > I'm hoping someone can help, I've been trying to get Perl > mapscript to > > > work using a couple of examples from the "MapScript > wrappers for WxS > > Services" page http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > > > > Using python mapscript it works, when I run it on the > command line I > > get xml output, however if I try doing the same using perl > mapscript I > > > get no xml output on the command line, I get errors telling > me that I > > cannot set the SERVICE, VERSION or REQUEST parameters. > I've included > > the python and perl scripts and their respective map files > below. If > > I try using $req->loadParams() in the script, and pass the same > > parameters as part of the query string, then do a wget I get a zero > length file. > > > > Am I doing something wrong? Or is there a bug in perl mapscript? > > > > Cheers - Justyna. > > > > =========================================== > > #!/usr/bin/python > > > > import mapscript > > > > req = mapscript.OWSRequest() > > req.setParameter( 'SERVICE', 'WMS' ) req.setParameter( 'VERSION', > > '1.1.0' ) req.setParameter( 'REQUEST', 'GetCapabilities' ) > > > > map = mapscript.mapObj( 'test.map' ) map.OWSDispatch( req ) > > =========================================== > > > > with the following map file > > > > =========================================== > > MAP > > SIZE 600 300 > > EXTENT -180 -90 180 90 > > IMAGECOLOR 180 180 250 > > IMAGETYPE PNG > > > > UNITS DD > > WEB > > IMAGEPATH "/html/tmp/wms" > > IMAGEURL "/tmp/" > > METADATA > > OWS_ONLINERESOURCE "http://servername/test.py" > > END > > END > > > > LAYER > > NAME "coast_polygon" > > TYPE POLYGON > > STATUS DEFAULT > > DATA coast > > CLASS > > COLOR 231 220 189 > > OUTLINECOLOR 198 134 0 > > NAME "Coast " > > END > > END > > END > > =========================================== > > > > I get the following errors using perl mapscript: > > cannot set wms parameter at ./test3.pl line 6. > > cannot set version parameter at ./test3.pl line 7. > > cannot set request parameter at ./test3.pl line 8. > > > > =========================================== > > #!/usr/bin/perl -w > > > > use mapscript; > > > > $req = new mapscript::OWSRequest() or die "no request"; > > $req->setParameter('SERVICE','WMS') or warn "cannot set wms > parameter > > $!"; > > $req->setParameter('VERSION','1.1.1') or warn "cannot set version > > parameter $!"; > > $req->setParameter('REQUEST','GetCapabilities') or warn "cannot set > > request parameter $!"; > > > > $map = new mapscript::mapObj("test3.map") or die "no object"; > > > > $map->OWSDispatch( $req ) or die "cannot dispatch"; > > =========================================== > > > > and its mapfile is > > > > =========================================== > > MAP > > SIZE 600 300 > > EXTENT -180 -90 180 90 > > IMAGECOLOR 180 180 250 > > IMAGETYPE PNG > > > > UNITS DD > > WEB > > IMAGEPATH "/html/tmp/wms" > > IMAGEURL "/tmp/" > > METADATA > > OWS_ONLINERESOURCE http://servername/test3.pl > > END > > END > > > > LAYER > > NAME "coast_polygon" > > TYPE POLYGON > > STATUS DEFAULT > > DATA coast > > CLASS > > COLOR 231 220 189 > > OUTLINECOLOR 198 134 0 > > NAME "Coast " > > END > > END > > END > > =========================================== > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lysholm at tut.by Fri Dec 5 06:06:07 2008 From: lysholm at tut.by (George A. Dubin) Date: Fri, 05 Dec 2008 16:06:07 +0200 Subject: [mapserver-users] Mapserver + Grass + polygons Message-ID: Hi all! I've tried to draw some polygons using GRASS. That was done using vector>develop map> digitize . Using that tool I draw some "boundaries" and tried to export them to Postgres to have a PostGIS layer. But Mapserver returns nothing. I have some other layes of a LINE and POINT type, created in the same way, and they are understandable by Mapserver. What's the matter with Polygons type layer? -- ???????? ? ???????? ??????? ???????? Opera: http://www.opera.com/mail/ From David.Fawcett at state.mn.us Fri Dec 5 07:12:49 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 5 Dec 2008 09:12:49 -0600 Subject: [mapserver-users] RE: MapServer for commercial use? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA01B@s-sp22.pca.state.mn.us> Mike, There are many people using MapServer for commercial projects, there are no license restrictions on this. MapServer is just the 'engine' that produces maps, usually output as an image file. It doesn't come with any data. MapServer can be used to produce large images, they could then be laid out in a document at 300dpi. David. PS. It is a little chilly this morning, but not enough snow yet... -----Original Message----- From: Mike.Edwards at ega.com [mailto:Mike.Edwards at ega.com] Sent: Friday, December 05, 2008 8:31 AM Subject: MapServer for commercial use? Hello. We are a commercial printing company and have a customer that would like us to produce dealer locator maps and print them on postcards for a mailing to their customers. I am looking for a cost-effective way to do this in-house and, for philosophical reasons, would prefer to use free/open-source software. The MapServer project is one such tool I am looking into, but before I get too far, I want to make sure it meets our needs and that we could legally use it for this purpose. So, here are my questions: 1. Are there any restrictions on printing hard-copy maps for commercial purposes? 2. Is the data behind the maps up to date, or is it the older, US Census data? 3. Can MapServer produce at least 300dpi images suitable for printing? I have some limited experience with cartogrophy and GIS systems, but I am sure there will be a learning curve to whatever tool we end up using. FWIW, I worked for the MN SHPO at the Historical Society back in the early 90s mapping out the state's archaeological resources and historic buildings, building a databse for a GIS to draw from. Hope you're enjoying the weather! Thank you, Mike -- Mike Edwards Director of Data Services Edwards Graphic Arts 2700 Bell Ave Des Moines, IA 50321 515-697-6503 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at deq.virginia.gov Fri Dec 5 07:40:52 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Fri, 5 Dec 2008 10:40:52 -0500 Subject: [mapserver-users] Mapserver + Grass + polygons Message-ID: <6C097DA58429B743A67070F98BE73A3703A8F1FB@deqex01.deq.local> You're gonna have to give a little more detail, for starters, the layer definition of the non-working polygon table. Also, where does the failure occur? You stated that you "tried to export them to Postgres to have a PostGIS layer" - did this attempt fail? Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of George A. Dubin Sent: Friday, December 05, 2008 9:06 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver + Grass + polygons Hi all! I've tried to draw some polygons using GRASS. That was done using vector>develop map> digitize . Using that tool I draw some "boundaries" and tried to export them to Postgres to have a PostGIS layer. But Mapserver returns nothing. I have some other layes of a LINE and POINT type, created in the same way, and they are understandable by Mapserver. What's the matter with Polygons type layer? -- ???????? ? ???????? ??????? ???????? Opera: http://www.opera.com/mail/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Dec 5 07:35:49 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 05 Dec 2008 10:35:49 -0500 Subject: [mapserver-users] Tileindex doesn't draw when changes mapserver version In-Reply-To: <49380DC4.20605@deneb.biz> References: <49380DC4.20605@deneb.biz> Message-ID: <49394A55.60307@gatewaygeomatics.com> Jos? Angel Rodr?guez Leyva wrote: > Hi, > > I?m using a set of separated DGN rectangular maps, joined together in a > single tileindex shape file, in many projects and different mapserver > versions and always works fine. Some days ago I tried to upgrade to the > 2.2.7 Mapserver 4 Windows (ms4w) version, with MapServer 5.0.2 and GDAL > 1.5.0 releases and now all tileindex layer drawings are empties (layer > works in 5.0.0 ms version). There's no error messages or any > mis-function with mapserver excepts that produce nothing. The output > files are SWF flash movies. There's 74 DGN files and anyone is drawn if > it is added in the mapfile as individual layer. > > I think it's possible there is a bug error in somewhere, because how the > map couldn't draw correctly just changing to a new server subversion. > > greetings > > jos? a.r. > Jos?, There was some changes to the how MapServer treats tileindexes after the 5.0.2 release. Can you upgrade to the latest MS4W (with MapServer 5.2.1) and try again? -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Albrecht.Weiser at hzd.hessen.de Fri Dec 5 08:48:05 2008 From: Albrecht.Weiser at hzd.hessen.de (Albrecht.Weiser at hzd.hessen.de) Date: Fri, 5 Dec 2008 17:48:05 +0100 Subject: [mapserver-users] Cant get a GetFeatureInfo response Message-ID: Hi mapserver list, i'm trying to get a GetFeatureInfo response from my mapserver-service which has ArcSDE 9.3 as Backend. When i'm trying to perform the request i'm getting this error: msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66 Here's my request: http://srvumwgeo006.umwelt.hessen.de/cgi-bin/mapserv.exe?map=C:/ms4w/Apa che/htdocs/maps/geo300.map&bbox=3445827,5552017,3458341,5562761&styles=& format=jpeg&info_format=text/plain&request=GetFeatureInfo&layers=GUEK300 _geo&query_layers=GUEK300_geo&width=550&height=250&x=170&y=160&version=1 .1.1&SRS=epsg:31467 I have all necessary mapfile configurations. Here's a snippet: MAP NAME 'geo300' STATUS ON PROJECTION 'init=epsg:31467' END SIZE 450 450 EXTENT 3503415.79963696 5651154.51738003 3508460.69944955 5655464.35707049 UNITS meters SHAPEPATH '' SYMBOLSET'C:\ms4w\Apache\htdocs\maps\symbols\geo300symbols.sym' FONTSET 'C:\ms4w\Apache\htdocs\maps\fonts\geo300fonts.fnt' IMAGECOLOR 255 255 255 DEBUG ON # #Start of web interface definition # WEB LOG geo300.log IMAGEPATH 'C:\ms4w\Apache\htdocs\tmp' IMAGEURL 'http://localhost/tmp/' TEMPLATE 'C:\ms4w\Apache\htdocs\tmp\' METADATA WMS_ONLINERESOURCE 'http://srvumwgeo006.umwelt.hessen.de/cgi-bin/mapserv.exe?map=C:\ms4w\Ap ache\htdocs\maps\geo300.map' WMS_SRS 'epsg:31467' WMS_ACCESSCONSTRAINTS 'none' WMS_TITLE 'geo300' WMS_FEATURE_INFO_MIME_TYPE 'text/html' WMS_ABSTRACT 'WMSmetatext' END #METADATA END #HEADER # #Start of legend # LEGEND STATUS ON KEYSIZE 25 25 TEMPLATE 'legend.html' LABEL COLOR 0 0 0 TYPE TRUETYPE FONT courbd SIZE 9 END # ENDE LABEL END #LEGEND # # Start of scalebar # SCALEBAR STATUS ON STYLE 1 INTERVALS 4 IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END #ENDE LABEL SIZE 200 3 #OUTLINECOLOR 0 0 0 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 UNITS KILOMETERS END #SCALEBAR QUERYMAP STATUS ON # the map is queryable by default STYLE HILITE # the selected object is highligthed END #QUERYMAP LAYER NAME 'Hintergrundgehalte_poly' DATA 'GEOLOGIE.V_GUEK_SMK,SHAPE,SDE.DEFAULT' STATUS on TYPE Polygon CONNECTIONTYPE PLUGIN CONNECTION "xxxxxxxxxxxxx.de,port:5151,sde,xxxxxxx,xxxxxxxx" PLUGIN "c:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" TRANSPARENCY 100 TEMPLATE "query.html" TOLERANCE 7 TOLERANCEUNITS pixels DUMP TRUE TEMPLATE "query.html" All the other requests like GetMap,... are working. What maybe the problem here? Regards Albrecht -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at gmail.com Fri Dec 5 10:41:56 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Fri, 5 Dec 2008 12:41:56 -0600 Subject: [mapserver-users] MapServer Documentation Effort In-Reply-To: References: Message-ID: <0EB07C0C-D43E-401E-8E79-51F0DE58C1AE@gmail.com> Jeff McKenna and I are working on another iteration of the MapServer documentation effort, and I thought I would give you a preview of where things are so we can solicit your feedback. We would be most interested in your ideas about content organization. http://mapserver.maptools.org Additionally, a 600 page PDF (~2.8 mb) is available that contains the same contents as the website in a nice printable form http://mapserver.maptools.org/MapServer.pdf - How can we improve the organization and documentation to help a new user coming into MapServer? - Does this attempt actually improve the organizational situation? - What documents does MapServer currently lack? Please site specific examples, not just the generic "MapServer needs more docs!" Is something just hard to find, or is it not written? Howard From knb at gfz-potsdam.de Fri Dec 5 08:31:37 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Fri, 05 Dec 2008 17:31:37 +0100 Subject: [mapserver-users] agg support and accents umlauts Message-ID: <49395769.2040507@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi List, I need some clarification: Do I understand this ticket correctly: >http://trac.osgeo.org/mapserver/ticket/2739 >Rendering raster fonts with AGG may cause crash in mapserver >I've noticed that rendering raster fonts when the character code falls >outside of the 23-127 domain may cause crash in mapserver. The >following patch provides a fix for the problem, however I consider this >as rather a bug in the AGG libraries This means that AGG has no ability whatsoever to deal with non-standard non-ASCII characters such as ?,?, ?, ? ? Is it really impossible to render vowels with accents, Umlauts, Sharp-S and so on with AGG? Then why has AGG been included into the mapserver distribution in the first place? Or is there a clever trick to hack the makefile of the libagg (by the way, building agg took way too long a time on my machine) or the freetype libs. mapserver-config --version; mapserver-config --includes 5.2.1 - -I/usr/local/include -I/opt/geo/include/agg2 - -I/usr/local/include/freetype2 -I/usr/local/include -I/opt/geo/include - -I/usr/include/pgsql -I/usr/local/include -I/usr/include/libxml2 Agg development seems to have stalled, doesn't it. - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Helmholtz-Zentrum Potsdam Fax : +49 (0) 331 288 1088 Deutsches GeoForschungsZentrum - GFZ Email: knb at gfz-potsdam.de Heinrich-Mann-Allee 18/19 URL : www.icdp-online.org Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkk5V00ACgkQcfWHNfIsrO/qHgCfeefEHRwZYOmiE4Lm9uq4RXH4 v7IAn1m27u1BHlAta1d45kjmsVuAvRk0 =Az0o -----END PGP SIGNATURE----- From szekerest at gmail.com Fri Dec 5 12:01:46 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 5 Dec 2008 21:01:46 +0100 Subject: [mapserver-users] agg support and accents umlauts In-Reply-To: <49395769.2040507@gfz-potsdam.de> References: <49395769.2040507@gfz-potsdam.de> Message-ID: 2008/12/5 Knut Behrends > > >I've noticed that rendering raster fonts when the character code falls > >outside of the 23-127 domain may cause crash in mapserver. The > >following patch provides a fix for the problem, however I consider this > >as rather a bug in the AGG libraries > > > This means that AGG has no ability whatsoever to deal with non-standard > non-ASCII characters such as ?,?, ?, ? ? Is it really impossible to > render vowels with accents, Umlauts, Sharp-S and so on with AGG? Then > why has AGG been included into the mapserver distribution in the first > place? > Hi, Yes, you're right, the raster based text rendering capabilities are rather limited, only a few set of predefinied glyps are selectable which cannot be localized either. To define further characters you'll probably have to patch something like agg_embedded_raster_fonts.cpp and define your own image inside the code. But I don't think if it was a convenient way to do such things locally. However, I think you should be able to use the truetype fonts with agg to display such fonts fairly well. > > Agg development seems to have stalled, doesn't it. > As far as I remember, there have been some efforts to take over some control of the code in mapserver (at least for 2.4) and apply fixes if necessary, but I'm not sure how do things stand in this topic at the moment. Best regards. Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Dec 5 12:18:26 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 5 Dec 2008 21:18:26 +0100 Subject: [mapserver-users] agg support and accents umlauts In-Reply-To: <49395769.2040507@gfz-potsdam.de> References: <49395769.2040507@gfz-potsdam.de> Message-ID: > This means that AGG has no ability whatsoever to deal with non-standard > non-ASCII characters such as ?,?, ?, ? ? Is it really impossible to > render vowels with accents, Umlauts, Sharp-S and so on with AGG? Then > why has AGG been included into the mapserver distribution in the first > place? [...] > Or is there a clever trick to hack the makefile of the libagg (by the > way, building agg took way too long a time on my machine) or the > freetype libs. > Coming out of nowhere and bitching on a project because you haven't understood the extent of a closed bug seems to me a very impolite way of introducing yourself and getting people to want to help you imho. Now onto the points you're raising: - as Tamas said, there's no support for accented characters *with the embedded raster raster fonts*. Truetype fonts don't have this problem provided you use/specify the correct encoding of your text. - for the compile stuff, agg is mostly templated code which means that most of the agg code itself has to be compiled each time mapagg.cpp is compiled. thomas From boache578 at yahoo.com Fri Dec 5 13:19:42 2008 From: boache578 at yahoo.com (John Kummun) Date: Fri, 5 Dec 2008 13:19:42 -0800 (PST) Subject: [mapserver-users] IDENTIFY TOOL Message-ID: <278476.80190.qm@web62006.mail.re1.yahoo.com> I am having problem with the identify tool. The old layers that i created are responding fine with this tool?but i am trying to use this tool on the newly created layers but it doesn't work. What might be the problem. ? identify mapfile ? LAYER ??NAME 'bridges' ??DATA 'transportation/HIGHWAYBRIDGE07.shp' ??STATUS ON ??TYPE POINT ??METADATA ??qstring_validation_pattern '.' ??END ??TEMPLATE 'transportation/identify_bridges.html' ??TOLERANCE 2 ?END ? template ? Bridges bridge number: [BRIDGE_NO] Status: [STATUS] Map link: [MAPLINK]     ? Bernard John Kummon Indiana -------------- next part -------------- An HTML attachment was scrubbed... URL: From Doug_Newcomb at fws.gov Fri Dec 5 13:35:36 2008 From: Doug_Newcomb at fws.gov (Doug_Newcomb at fws.gov) Date: Fri, 5 Dec 2008 16:35:36 -0500 Subject: [mapserver-users] Compile errors with 5.2.1 on Centos 5.2 x64 In-Reply-To: Message-ID: Sigh, One of the joys of email lists is that your ignorance and undue haste is displayed for all to see. In this case Mapserver 5.2.1 compiled correctly , the "skipping incompatible" messages were just warnings that the compiler was correctly skipping the 32bit libraries installed and using the 64 bit libraries. Sorry for the noise. Doug Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 doug_newcomb at fws.gov --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of Interior. Life is too short for undocumented, proprietary data formats. Doug_Newcomb at fws. gov Sent by: To mapserver-users-b mapserver-users at lists.osgeo.org ounces at lists.osge cc o.org Subject [mapserver-users] Compile errors 12/04/2008 10:15 with 5.2.1 on Centos 5.2 x64 AM Hi Folks, I'm having a bit of trouble compiling mapserver 5.2.1 on a Centos 5.2 x64 box. Sorry for the long post, just trying to be complete. Doug Configuration Options and Output --------------------------------- ./configure --without-tiff --without-eppl --without-jpeg --with-threads --with-proj --with-gdal=/usr/local/bin --with-php=/usr/include/php --with-gd --with-freetype=/usr/bin --with-ogr --with-gdal --with-wmsclient --with-wfs --with-wfs-client --with-postgis --with-geos checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.2.1' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config configure: checking where FreeType 2.x is installed... using libfreetype from -lfreetype checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... disabled by --without-jpeg checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from system libs (-L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no checking for PDF_load_font in -lpdf... no libpdf not found or too old... PDF support not included. checking if AGG support requested... no checking if RGBA palette png support requested... no configure: checking whether we should include EPPL7 support... disabled by --without-eppl configure: checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes using PROJ.4 from system libs. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes checking for geos-config... /usr/local/bin/geos-config checking for GEOS version >= 2.2.2... yes. Found version 3.0.3 configure: checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes configure: checking whether we should include TIFF support... disabled by --without-tiff checking if PostGIS support requested... yes checking for pg_config... no checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support enabled (-DUSE_WFS_SVR). configure: checking whether we should include WCS Server support... OGC WCS Server support not requested. configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support not requested. checking for curl-config... checking for curl-config... /usr/bin/curl-config found libcurl version 7.15.5 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). checking for libxml2... libxml2 not required. checking if FriBidi support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... checking for httpd... /usr/sbin/httpd /usr/sbin/httpd version is Apache/2.2.3 (2002003). Your system is apparently running Apache/2.2.3. Setting stderr to non-blocking for msDebug() due to Apache 2.x bug (see MapServer bug 458 or Apache bug 22030). Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... configure: checking for PHP/MapScript module options... checking for g++ -shared ... yes checking for location of config.h or php_config.h... /usr/include/php/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes found regex_extra.h - building PHP MapScript with PHP's bundled regex PHP/MapScript module configured. checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/php3/Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: FriBidi support: Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -------------- Data Format Drivers ------- native tiff support: PostGIS support: EPPL7 support: ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: yes Point of Compile Death upon make -------------------------------------------- g++ -shared -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o php_regex.o -L/usr/local/mapserver-5.2.1 -lmapserver -L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr/lib -lexpat -L/usr/local/lib -lxerces-c -lpthread -ljasper -lgif -lpng -lpq -L/usr/local/pgsql/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -L/usr/local/lib -lgeos_c -lpthread -lproj -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lc -lz -lm -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.so when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.a when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.so when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.a when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libidn.so when searching for -lidn /usr/bin/ld: skipping incompatible /usr/lib/libidn.a when searching for -lidn /usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg /usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching for -lsqlite3 /usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for -lcurl /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.so when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libkrb5.a when searching for -lkrb5 /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.so when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.a when searching for -lk5crypto /usr/bin/ld: skipping incompatible /usr/lib/libidn.so when searching for -lidn /usr/bin/ld: skipping incompatible /usr/lib/libidn.a when searching for -lidn /usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg /usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz make[1]: Leaving directory `/usr/local/mapserver-5.2.1/mapscript/php3' Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 doug_newcomb at fws.gov --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of Interior. Life is too short for undocumented, proprietary data formats. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From espen.isaksen at gmail.com Fri Dec 5 13:40:13 2008 From: espen.isaksen at gmail.com (Espen Isaksen) Date: Fri, 5 Dec 2008 22:40:13 +0100 Subject: [mapserver-users] MapServer Documentation Effort In-Reply-To: <0EB07C0C-D43E-401E-8E79-51F0DE58C1AE@gmail.com> References: <0EB07C0C-D43E-401E-8E79-51F0DE58C1AE@gmail.com> Message-ID: I have just looked through this very quickly, but already I find this much better than the old structure. I will start using this and hopefully give some more comments in the future. Espen 2008/12/5 Howard Butler : > Jeff McKenna and I are working on another iteration of the MapServer > documentation effort, and I thought I would give you a preview of where > things are so we can solicit your feedback. We would be most interested in > your ideas about content organization. > > http://mapserver.maptools.org > > Additionally, a 600 page PDF (~2.8 mb) is available that contains the same > contents as the website in a nice printable form > http://mapserver.maptools.org/MapServer.pdf > > - How can we improve the organization and documentation to help a new user > coming into MapServer? > - Does this attempt actually improve the organizational situation? > - What documents does MapServer currently lack? Please site specific > examples, not just the generic "MapServer needs more docs!" Is something > just hard to find, or is it not written? > > Howard > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Fri Dec 5 14:47:40 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 05 Dec 2008 16:47:40 -0600 Subject: [mapserver-users] IDENTIFY TOOL In-Reply-To: <278476.80190.qm@web62006.mail.re1.yahoo.com> References: <278476.80190.qm@web62006.mail.re1.yahoo.com> Message-ID: <49395B2C.5157.008F.0@dnr.state.mn.us> What does "it doesn't work mean"? What version of MapServer? What client are you doing the identify from? What does the URL you're feeding to MapServer that doesn't work look like? Steve >>> On 12/5/2008 at 3:19 PM, in message <278476.80190.qm at web62006.mail.re1.yahoo.com>, John Kummun wrote: > I am having problem with the identify tool. The old layers that i created are > responding fine with this tool but i am trying to use this tool on the newly > created layers but it doesn't work. What might be the problem. > > identify mapfile > > LAYER > NAME 'bridges' > DATA 'transportation/HIGHWAYBRIDGE07.shp' > STATUS ON > TYPE POINT > METADATA > qstring_validation_pattern '.' > END > TEMPLATE 'transportation/identify_bridges.html' > TOLERANCE 2 > END > > template > > Bridges > > bridge number: > [BRIDGE_NO] > > > Status: > [STATUS] > > > Map link: > [MAPLINK] > > >   >   > > > Bernard John Kummon > Indiana > > > From paul_pag00 at hotmail.com Fri Dec 5 14:55:39 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Fri, 5 Dec 2008 22:55:39 +0000 Subject: [mapserver-users] Centos 5.1 32 bits error mapserver 5.0.3 Message-ID: Hello friends i'm trying to install mapserver 5.03 on a Centos server, but i have a the following error with php_mapscript library PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' - /usr/lib/php/modules/php_mapscript.so: undefined symbol: php_gd_gdImageCopy in Unknown on line 0 Im usign proj 4.61. geos 3.00 postgis 1.3.3 gdal 1.5.2 mapserver 5.0.3 Did anyone know what happen this problem ? thanks a lot Paul _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: From edmondo.elisei at gmail.com Fri Dec 5 14:52:04 2008 From: edmondo.elisei at gmail.com (Edmondo Elisei) Date: Fri, 5 Dec 2008 23:52:04 +0100 Subject: [mapserver-users] New usr with an headache Message-ID: <412a97fc0812051452u186c94d5x3cff8cf30dd82e98@mail.gmail.com> Hi to All, I'd like build some simple web application. I'm looking for documentation to learning some basic concepts over map server but it looks like too hard for a new user without a specific background. Someone can suggest me the easier way to start? Thanks to all (and sorry for my English) Regards Edmondo -------------- next part -------------- An HTML attachment was scrubbed... URL: From lysholm at tut.by Sat Dec 6 00:21:13 2008 From: lysholm at tut.by (????) Date: Sat, 06 Dec 2008 10:21:13 +0200 Subject: [mapserver-users] Mapserver + Grass + polygons In-Reply-To: <6C097DA58429B743A67070F98BE73A3703A8F1FB@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A3703A8F1FB@deqex01.deq.local> Message-ID: Ok, I'll try to be more specific. While exporting polygons into Postgres there are no errors, and mapserv + Openlayers return no errors while rendering this layer. It simply renders -nothing-, just a transparent PNG image. This is a layer definition: LAYER NAME "areas" CONNECTIONTYPE postgis CONNECTION "user=mapserv dbname=mapserv host=127.0.0.1 port=5432" DATA "wkb_geometry from zonesmap" STATUS ON TYPE POLYGON DUMP TRUE LABELITEM "label" TOLERANCE 1 HEADER '/var/www/map/templates/templ_head.html' FOOTER '/var/www/map/templates/templ_footer.html' METADATA wms_title "areas" wms_abstract "vector areas" wms_srs "EPSG:32235" END # PROJECTION # "init=epsg:32235" # END CLASS NAME "areas" TEMPLATE '/var/www/map/templates/templ_query.html' STYLE SYMBOL 'circle' COLOR [color] # OUTLINECOLOR 0 0 0 SIZE [thikness] END LABEL COLOR 255 88 88 SHADOWCOLOR 0 0 0 SHADOWSIZE 1 1 # TYPE TRUETYPE # FONT /var/www/map/fonts/freesans.ttf # SIZE 7 # ANTIALIAS TRUE POSITION AUTO PARTIALS TRUE MINDISTANCE 100 BUFFER 2 ENCODING CP1251 WRAP '~' END END END Fri, 5 Dec 2008 10:40:52 -0500, "Burgholzer,Robert" ?????(?): > You're gonna have to give a little more detail, for starters, the layer >definition of the non-working polygon table. Also, where does the failure >occur? You stated that you "tried to export them to Postgres to have a >PostGIS layer" - did this attempt fail? > > Robert W. Burgholzer > Surface Water Modeler > Office of Water Supply and Planning > Virginia Department of Environmental Quality > rwburgholzer at deq.virginia.gov > 804-698-4405 > Open Source Modeling Tools: > http://sourceforge.net/projects/npsource/ > > -----Original Message----- >From: mapserver-users-bounces at lists.osgeo.org >[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of George A. >Dubin > Sent: Friday, December 05, 2008 9:06 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapserver + Grass + polygons > > Hi all! I've tried to draw some polygons using GRASS. That was done using > > vector>develop map> digitize . Using that tool I draw some "boundaries" > and tried to export them to Postgres to have a PostGIS layer. But > Mapserver returns nothing. I have some other layes of a LINE and POINT > type, created in the same way, and they are understandable by Mapserver. > What's the matter with Polygons type layer? > > -- > ???????? ? ???????? ??????? ???????? Opera: http://www.opera.com/mail/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Sat Dec 6 13:33:21 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 6 Dec 2008 22:33:21 +0100 Subject: [mapserver-users] How to give QueryMap functionality for a particular Layer not for whole map In-Reply-To: <000c01c956d3$1143bd30$33cb3790$@com> References: <000c01c956d3$1143bd30$33cb3790$@com> Message-ID: Venkat, The QueryMap parameters can only be specfied at map level at the moment. Best regards, Tamas 2008/12/5 Venkat Rao Tammineni > Dear All, > > > > I want to assign QueryMap or querymapObj for particular layer in the > map. Is it possible ? I am using C# .net. or atleast can I do something in > Mapfile ? Anyone has done the same task? > > > > Please help me. I am waiting for your great response. > > > > Thanks > > Venkat. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From knb at gfz-potsdam.de Mon Dec 8 00:40:50 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Mon, 08 Dec 2008 09:40:50 +0100 Subject: [mapserver-users] agg support and accents umlauts In-Reply-To: References: <49395769.2040507@gfz-potsdam.de> Message-ID: <493CDD92.3020207@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Coming out of nowhere and bitching on a project because you haven't > understood the extent of a closed bug seems to me a very impolite way > of introducing yourself and getting people to want to help you imho. Sorry, I didn't want to sound impolite or offensive but it took hours to get to the point where I had a working mapserver implementation with agg libs included. On Solaris they need so many dependencies and have to compiled starting with the gnu autotools because there is no configure script. Then I had to patch the makefile because there are 2 stdc++ libs on my system that gave me linker errors. After all this I got mapfiles that are unusable because placenames with accents can't be displayed. Before, on the 5.2.0 release, I got incomprehensible errors that really puzzled me because the default extent(s) on my mapserver project contains umlauts of cause. On Solaris truetype fonts aren't included by default but have to be installed manually as well. And I didn't find much end user documentation on the internet dealing with installing and configuring mapserver with agg support at all. (I doubt that many users have got it to work or let alone use it in production). The ticket was the only thing that pointed me to the cause of the problem. Maybe things are easier to set up on the win32 Platform but I doubt it. IMHO, building mapserver with agg support is really a task for the advanced and patient admins, or do-it-yourself end-users. I think these are issues that should be included in the call for feedback on the documentation effort that was mentioned in another mail on this list, a few hours ago. Knut > Now onto the points you're raising: > - as Tamas said, there's no support for accented characters *with the > embedded raster raster fonts*. Truetype fonts don't have this problem > provided you use/specify the correct encoding of your text. > - for the compile stuff, agg is mostly templated code which means that > most of the agg code itself has to be compiled each time mapagg.cpp is > compiled. > thomas > - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkk83ZEACgkQcfWHNfIsrO8v8gCfWIOdRMNgiyOuncnLGuc8JAnb dUsAn2JWqhm0KrGJ0bCU0qwtnMf9zHZn =kxPI -----END PGP SIGNATURE----- From thomas.bonfort at gmail.com Mon Dec 8 00:57:50 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 8 Dec 2008 09:57:50 +0100 Subject: [mapserver-users] agg support and accents umlauts In-Reply-To: <493CDD92.3020207@gfz-potsdam.de> References: <49395769.2040507@gfz-potsdam.de> <493CDD92.3020207@gfz-potsdam.de> Message-ID: > On Solaris truetype fonts aren't included by default but have to be > installed manually as well. > And I didn't find much end user documentation on the internet dealing > with installing and configuring mapserver with agg support at all. (I > doubt that many users have got it to work or let alone use it in > production). The ticket was the only thing that pointed me to the cause > of the problem. > Maybe things are easier to set up on the win32 Platform but I doubt it. > IMHO, building mapserver with agg support is really a task for the > advanced and patient admins, or do-it-yourself end-users. I think mapserver is rarely built by end users on win32 platforms. As for the problems you point out on solaris, having done this myself, I'd say the difficulty is building any opensource stack on that platform rather than specifically mapserver. Getting it done on on the more open *nix's is rarely a problem. > I think these are issues that should be included in the call for > feedback on the documentation effort that was mentioned in another mail > on this list, a few hours ago. patches and contributions gratefully accepted -- thomas From knb at gfz-potsdam.de Mon Dec 8 02:43:41 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Mon, 08 Dec 2008 11:43:41 +0100 Subject: [mapserver-users] agg support and accents umlauts In-Reply-To: References: <49395769.2040507@gfz-potsdam.de> Message-ID: <493CFA5D.5090704@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 thomas bonfort schrieb: > Now onto the points you're raising: > - as Tamas said, there's no support for accented characters *with the > embedded raster raster fonts*. Truetype fonts don't have this problem > provided you use/specify the correct encoding of your text. Support for Truetype fonts on my Solaris "box" seems to be shaky: What I get is similar to this bug report (reported by someone else): http://bugs.opensolaris.org/view_bug.do?bug_id=6633698 sdtfontadm, sdtfontadd, sdtfontls crash on Solaris 10 08/07 Sparc and X86 (and some on U3 sparc): /usr/dt/bin/sdtfontls /usr/openwin/lib/X11/fonts/TrueType Segmentation Fault(coredump) Work Around N/A I don't have the time to investigate this myself. Maybe I can get it done with a minimal fontset file created manually. - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkk8+l0ACgkQcfWHNfIsrO+YBACglRf/sMy0Q2nQhLMvggK+1G3M ipwAoI81M+OlL6sxU7TtnaXqDdIEIdKm =Y5RR -----END PGP SIGNATURE----- From mark.balman at gmail.com Mon Dec 8 03:02:18 2008 From: mark.balman at gmail.com (mark balman) Date: Mon, 8 Dec 2008 11:02:18 +0000 Subject: [mapserver-users] Adding a buffer symbol Message-ID: <39f1dcdf0812080302n6f8c1a6ajc9148dfe921208be@mail.gmail.com> Hi All Having worked out how to display a selection of features within a mouse click (passing the coordinates to postgis query) and colour coding these using classitem for specified distances away from a mouse click e.g. within 1 decimal degree, within 2 decimal degrees and within 3 decimal degrees. I am wondering how or if it is possible to create concentric circles indicating the buffer distances? Any ideas or pointers would be great! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Mon Dec 8 03:14:19 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 8 Dec 2008 16:44:19 +0530 Subject: [mapserver-users] Adding a buffer symbol In-Reply-To: <39f1dcdf0812080302n6f8c1a6ajc9148dfe921208be@mail.gmail.com> References: <39f1dcdf0812080302n6f8c1a6ajc9148dfe921208be@mail.gmail.com> Message-ID: <001501c95926$1fb896b0$5f29c410$@com> Hi, I don't know which programming language your using .I have vb.net code . if you can share that code it is working for me (buffer). Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mark balman Sent: Monday, December 08, 2008 4:32 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Adding a buffer symbol Hi All Having worked out how to display a selection of features within a mouse click (passing the coordinates to postgis query) and colour coding these using classitem for specified distances away from a mouse click e.g. within 1 decimal degree, within 2 decimal degrees and within 3 decimal degrees. I am wondering how or if it is possible to create concentric circles indicating the buffer distances? Any ideas or pointers would be great! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.balman at gmail.com Mon Dec 8 03:23:06 2008 From: mark.balman at gmail.com (mark balman) Date: Mon, 8 Dec 2008 11:23:06 +0000 Subject: [mapserver-users] Re: Adding a buffer symbol In-Reply-To: <39f1dcdf0812080302n6f8c1a6ajc9148dfe921208be@mail.gmail.com> References: <39f1dcdf0812080302n6f8c1a6ajc9148dfe921208be@mail.gmail.com> Message-ID: <39f1dcdf0812080323h4f6969bbn81e0ff7dc95b7c3c@mail.gmail.com> Hi Venkat At the moment I am just using the CGI mapserver. I was wondering if this can be done or ben achieved using Labels and symbols? but if needs be then I guess either javascript or php would be used to do this. Many thanks Mark On Mon, Dec 8, 2008 at 11:02 AM, mark balman wrote: > Hi All > > Having worked out how to display a selection of features within a mouse > click (passing the coordinates to postgis query) and colour coding these > using classitem for specified distances away from a mouse click e.g. within > 1 decimal degree, within 2 decimal degrees and within 3 decimal degrees. I > am wondering how or if it is possible to create concentric circles > indicating the buffer distances? > > Any ideas or pointers would be great! > > Mark > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Mon Dec 8 03:31:32 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 8 Dec 2008 17:01:32 +0530 Subject: [mapserver-users] Re: Adding a buffer symbol In-Reply-To: <39f1dcdf0812080323h4f6969bbn81e0ff7dc95b7c3c@mail.gmail.com> References: <39f1dcdf0812080302n6f8c1a6ajc9148dfe921208be@mail.gmail.com> <39f1dcdf0812080323h4f6969bbn81e0ff7dc95b7c3c@mail.gmail.com> Message-ID: <002601c95928$875c8040$961580c0$@com> Hi, http://mapserver.gis.umn.edu/docs/howto/cartosymbols the above url is for cartographic symbols. Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mark balman Sent: Monday, December 08, 2008 4:53 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Adding a buffer symbol Hi Venkat At the moment I am just using the CGI mapserver. I was wondering if this can be done or ben achieved using Labels and symbols? but if needs be then I guess either javascript or php would be used to do this. Many thanks Mark On Mon, Dec 8, 2008 at 11:02 AM, mark balman wrote: Hi All Having worked out how to display a selection of features within a mouse click (passing the coordinates to postgis query) and colour coding these using classitem for specified distances away from a mouse click e.g. within 1 decimal degree, within 2 decimal degrees and within 3 decimal degrees. I am wondering how or if it is possible to create concentric circles indicating the buffer distances? Any ideas or pointers would be great! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From knb at gfz-potsdam.de Mon Dec 8 03:47:48 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Mon, 08 Dec 2008 12:47:48 +0100 Subject: [mapserver-users] wfs client question Message-ID: <493D0964.9090208@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I want to query a public wfs server for some data. Internally, in my DHTML frontend, all lat/lon coordinates are handled in geographic coordinates EPSG:4326. However, the WFS server only accepts lat/lon values given with particular BBOX parameters specified in EPSG:31468, presumably. Hence, I think that before the making the request for the external WFS data, I need to convert the geographic EPSG:4326 coordinates to EPSG:31468 on the fly. What is the best way to do this? - - in javascript, on the frontend side? -- using ajax requests? -- or is there a recommended JS library for coordinate transforms? - - or on the the wfs client side, i.e. where my mapserver cgi is hosted ? Manipulating the cgi parameters somehow, before the request is sent out to the WFS server? Or am I did I get something wrong about the WFS specification? This is the first time I interact with a WFS, so please help me out someone... Knut - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkk9CWQACgkQcfWHNfIsrO/HGACgn6RrH3kRgRSHt0G2UsiB/pEH c8wAn1KzH6ACLag6JTaY3ffOejXgqEqD =L5Fx -----END PGP SIGNATURE----- From bartvde at osgis.nl Mon Dec 8 03:56:55 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Mon, 8 Dec 2008 12:56:55 +0100 (CET) Subject: [mapserver-users] wfs client question In-Reply-To: <493D0964.9090208@gfz-potsdam.de> References: <493D0964.9090208@gfz-potsdam.de> Message-ID: <36640.145.50.39.11.1228737415.squirrel@webmail.hostingdiscounter.nl> Hi Knut, Mapserver should be able to do this for you. Just use wfs_srs "EPSG:31468" on your CONNECTIONTYPE WFS layer, and maybe add a PROJECTION block as well on the LAYER: PROJECTION "init=epsg:31468" END On your MAP object you can use: PROJECTION "init=epsg:4326" END Mapserver should reproject the coordinates before doing the WFS request. If you want to do this in javascript instead I would recommend using proj4js: http://proj4js.org/ Best regards, Bart > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I want to query a public wfs server for some data. > Internally, in my DHTML frontend, all lat/lon coordinates are handled in > geographic coordinates EPSG:4326. > However, the WFS server only accepts lat/lon values given with > particular BBOX parameters specified in EPSG:31468, presumably. > > Hence, I think that before the making the request for the external WFS > data, I need to convert the geographic EPSG:4326 coordinates to > EPSG:31468 on the fly. > > What is the best way to do this? > > - - in javascript, on the frontend side? > -- using ajax requests? > -- or is there a recommended JS library for coordinate transforms? > > - - or on the the wfs client side, i.e. where my mapserver cgi is hosted ? > Manipulating the cgi parameters somehow, before the request is sent out > to the WFS server? > > > Or am I did I get something wrong about the WFS specification? > This is the first time I interact with a WFS, so please help me out > someone... > > > Knut > > - -- > ____________________________________________________________________________ > > Knut Behrends Phone: +49 (0) 331 288 1688 > Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) > ____________________________________________________________________________ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkk9CWQACgkQcfWHNfIsrO/HGACgn6RrH3kRgRSHt0G2UsiB/pEH > c8wAn1KzH6ACLag6JTaY3ffOejXgqEqD > =L5Fx > -----END PGP SIGNATURE----- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Mon Dec 8 04:13:50 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 8 Dec 2008 13:13:50 +0100 Subject: [mapserver-users] Re: Adding a buffer symbol In-Reply-To: <39f1dcdf0812080323h4f6969bbn81e0ff7dc95b7c3c@mail.gmail.com> References: <39f1dcdf0812080302n6f8c1a6ajc9148dfe921208be@mail.gmail.com> <39f1dcdf0812080323h4f6969bbn81e0ff7dc95b7c3c@mail.gmail.com> Message-ID: > At the moment I am just using the CGI mapserver. I was wondering if this can > be done or ben achieved using Labels and symbols? but if needs be then I > guess either javascript or php would be used to do this. you could do that using a special layer in your mapfile, and using url parameters to define the x,y of your click and the diameter of your circle: http://.....&map.layer[buffer]=FEATURE+POINTS+500000+1000000+END+END&map.layer[buffer].class[0].style[0]=SIZE+10 your "buffer" layer would be defined as LAYER TYPE POINT NAME "buffer" CLASS STYLE SYMBOL "circle" #circle symbol has FILLED FALSE COLOR 255 0 0 END END END regards, thomas From rwburgholzer at deq.virginia.gov Mon Dec 8 06:01:06 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Mon, 8 Dec 2008 09:01:06 -0500 Subject: [mapserver-users] New usr with an headache Message-ID: <6C097DA58429B743A67070F98BE73A3703A8F203@deqex01.deq.local> Edmondo, Fear not. The Mapserver demo application that comes with the basic install is a nice overview of the basics of mapserver, myself (and I am sure many, many other users) have been able to take that basic set of components and cut and paste to get their own basic app. As long as you can get it installed, you should find the learning curve to be easier than you suspect. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Edmondo Elisei Sent: Friday, December 05, 2008 5:52 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] New usr with an headache Hi to All, I'd like build some simple web application. I'm looking for documentation to learning some basic concepts over map server but it looks like too hard for a new user without a specific background. Someone can suggest me the easier way to start? Thanks to all (and sorry for my English) Regards Edmondo -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.ellett at statkart.no Mon Dec 8 06:14:58 2008 From: thomas.ellett at statkart.no (Tellett) Date: Mon, 8 Dec 2008 06:14:58 -0800 (PST) Subject: [MAPSERVER-USERS] Cant get a GetFeatureInfo response In-Reply-To: References: Message-ID: <20896073.post@talk.nabble.com> Hi Albrecht, Just noticed a couple of things, firstly theres no 'service=wms' in your request and secondly you have 'template 'query.html'' defined twice under your layer. Also you might want to try adding the following to your layer. Metadata "ows_include_items" "all" End You need this othewise mapserver defaults to returning no attributes (you can use wms_include_items as well for text/plain, but ows is a catch all for text/plain and text/gml so is probably better to use) Have a look at this link for a bit more info: http://64.233.183.132/search?q=cache:VW7CHM-FHlQJ:www.mail-archive.com/mapserver-users%40lists.umn.edu/msg08063.html+ows_include_items&hl=en&ct=clnk&cd=6 Just a couple of thoughts off the top of my head, Cheers Tom Albrecht.Weiser wrote: > > Hi mapserver list, > i'm trying to get a GetFeatureInfo response from my mapserver-service > which has ArcSDE 9.3 as Backend. When i'm trying to perform the request > i'm getting this error: > > msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid > parameter value passed to function. (-66 > > Here's my request: > http://srvumwgeo006.umwelt.hessen.de/cgi-bin/mapserv.exe?map=C:/ms4w/Apa > che/htdocs/maps/geo300.map&bbox=3445827,5552017,3458341,5562761&styles=& > format=jpeg&info_format=text/plain&request=GetFeatureInfo&layers=GUEK300 > _geo&query_layers=GUEK300_geo&width=550&height=250&x=170&y=160&version=1 > .1.1&SRS=epsg:31467 > > I have all necessary mapfile configurations. Here's a snippet: > > > MAP > NAME 'geo300' > STATUS ON > > PROJECTION > 'init=epsg:31467' > END > > SIZE 450 450 > EXTENT 3503415.79963696 5651154.51738003 3508460.69944955 > 5655464.35707049 > UNITS meters > SHAPEPATH '' > SYMBOLSET'C:\ms4w\Apache\htdocs\maps\symbols\geo300symbols.sym' > FONTSET 'C:\ms4w\Apache\htdocs\maps\fonts\geo300fonts.fnt' > IMAGECOLOR 255 255 255 > DEBUG ON > > # > #Start of web interface definition > # > > WEB > LOG geo300.log > IMAGEPATH 'C:\ms4w\Apache\htdocs\tmp' > IMAGEURL 'http://localhost/tmp/' > TEMPLATE 'C:\ms4w\Apache\htdocs\tmp\' > METADATA > WMS_ONLINERESOURCE > 'http://srvumwgeo006.umwelt.hessen.de/cgi-bin/mapserv.exe?map=C:\ms4w\Ap > ache\htdocs\maps\geo300.map' > WMS_SRS 'epsg:31467' > WMS_ACCESSCONSTRAINTS 'none' > WMS_TITLE 'geo300' > WMS_FEATURE_INFO_MIME_TYPE 'text/html' > WMS_ABSTRACT 'WMSmetatext' > END #METADATA > > END #HEADER > > # > #Start of legend > # > > LEGEND > STATUS ON > KEYSIZE 25 25 > TEMPLATE 'legend.html' > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > FONT courbd > SIZE 9 > END # ENDE LABEL > END #LEGEND > > # > # Start of scalebar > # > > SCALEBAR > STATUS ON > STYLE 1 > INTERVALS 4 > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END #ENDE LABEL > SIZE 200 3 > #OUTLINECOLOR 0 0 0 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > UNITS KILOMETERS > END #SCALEBAR > > QUERYMAP > STATUS ON > # the map is queryable by default > STYLE HILITE > # the selected object is highligthed > END #QUERYMAP > > LAYER > NAME 'Hintergrundgehalte_poly' > DATA 'GEOLOGIE.V_GUEK_SMK,SHAPE,SDE.DEFAULT' > STATUS on > TYPE Polygon > CONNECTIONTYPE PLUGIN > CONNECTION "xxxxxxxxxxxxx.de,port:5151,sde,xxxxxxx,xxxxxxxx" > PLUGIN "c:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" > TRANSPARENCY 100 > TEMPLATE "query.html" > TOLERANCE 7 > TOLERANCEUNITS pixels > DUMP TRUE > TEMPLATE "query.html" > > All the other requests like GetMap,... are working. What maybe the > problem here? > > Regards > Albrecht > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Cant-get-a-GetFeatureInfo-response-tp20858184p20896073.html Sent from the Mapserver - User mailing list archive at Nabble.com. From knb at gfz-potsdam.de Mon Dec 8 06:19:17 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Mon, 08 Dec 2008 15:19:17 +0100 Subject: [mapserver-users] wfs client question In-Reply-To: <493D0964.9090208@gfz-potsdam.de> References: <493D0964.9090208@gfz-potsdam.de> Message-ID: <493D2CE5.4040009@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks guys, the on-the-fly transforms seem to work now. Indeed, the PROJECTION entries in the MAP and in the LAYER sections must be specified exactly as Bart said. And I'll also get a copy of the proj4js Library, it might come in handy someday. - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkk9LOUACgkQcfWHNfIsrO8rYQCfRfE06clsp5Qegb2F3O3++tI8 oq4An12rMjedfkV2/mguzmdYOeE8PJRI =sgwF -----END PGP SIGNATURE----- From aberenyi at burken.hu Mon Dec 8 06:29:02 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Mon, 08 Dec 2008 15:29:02 +0100 Subject: [mapserver-users] pyramid, .rrd file In-Reply-To: <49343548.3040203@pobox.com> References: <4933C04D.3000301@burken.hu> <49343548.3040203@pobox.com> Message-ID: <493D2F2E.6050602@burken.hu> Thank you Frank, I'll try it! Attila Frank Warmerdam ?rta: > Ber?nyi Attila wrote: >> Dear All, >> >> Is there any possibility to use ERDAS .rrd file in Mapserver focusing >> on the pyramid function? >> A bit detailed information: I have a lot of georeferenced orthophotos >> and I'm looking for the best way it display them via Mapserver as >> fast and as detailed as possible. >> I've tried gdal_retile, but it's slow, and I don't really understand >> how it works... >> Any suggestion would be very much appreciated! > > Attila, > > Generally speaking Mapserver should already take advantage of .rrd > pre-built overviews. If you want to confirm if GDAL (and consequently > MapServer) can see the overviews, run the gdalinfo utility on the base > file, and check the report of the individual bands to see if they have > an overviews list. > > For example > > gdalinfo image_col.img > ... > Band 1 Block=64x64 Type=UInt16, ColorInterp=Undefined > Description = Layer_1 > Min=232.000 Max=1024.000 > Minimum=232.000, Maximum=1024.000, Mean=335.990, StdDev=26.558 > NoData Value=65535 > Overviews: 692x600, 345x299, 171x148, 84x73, 41x35 > ... > > This file has an .rrd ith 5 overview levels and they would be used > by MapServer as long as the .rrd file is kept with the .img file. > > Best regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Mon Dec 8 07:22:43 2008 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 8 Dec 2008 09:22:43 -0600 Subject: [mapserver-users] using precision within a label Message-ID: <3D56274B4A7874468F58FADDBFD0980106777FA9@llmhs02.r8nssis.local> Hello, I would like to use precision within a label. I already set up within the html identify results [item name="TXDEED" precision=2] however it does not work within the mapserver label. This label does not work TEXT ( NORTHING [item name="NORTHING" precision=2] EASTING [item name="EASTING" precision=2]) #label This label works #TEXT (NORTHING [NORTHING] EASTING [EASTING]) #label Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 -------------- next part -------------- An HTML attachment was scrubbed... URL: From maurosa at IOL.IT Mon Dec 8 11:00:52 2008 From: maurosa at IOL.IT (maurosa) Date: Mon, 8 Dec 2008 11:00:52 -0800 (PST) Subject: [MAPSERVER-USERS] Problems with scalebar embedding and java mapscript Message-ID: <20901440.post@talk.nabble.com> Hi list I am experiencing problems with scalebar embedding after version 5.02 using java mapscript. Changing map extent, does not change scalebar values. Version 5.02 works properly. The error happens with version 5.20 and 5.21. If scalebar usage is changed after version 5.02, I thank you for any suggestion. Mauro This is a simple java mapscript program to reproduce the error: --------------------------------------------- System.loadLibrary("mapscript"); //first extent: scalebar values are correct mapObj map = new mapObj("mymap.map"); imageObj img = map.draw(); img.save("mymap1.jpeg", map); //second extent: scalebar values are wrong //and are frozen to those of first image map.setExtent(300000, 4800000, 900000, 5200000); img = map.draw(); img.save("mymap2.jpeg", map); //from this point on, changing map extent does //not change the original scalebar values any more --------------------------------------------- The following is mymap.map: --------------------------------------------- MAP STATUS ON EXTENT 20000 4030000 1650000 5250000 SIZE 700 500 SYMBOLSET "symbols/symbols.sym" FONTSET "fonts/fonts.list" IMAGETYPE JPEG IMAGECOLOR 255 255 255 UNITS METERS PROJECTION "init=epsg:32632" END OUTPUTFORMAT NAME "JPEG" MIMETYPE "image/jpeg" DRIVER "AGG/JPEG" EXTENSION "jpg" IMAGEMODE "RGB" TRANSPARENT FALSE FORMATOPTION "QUALITY=95" END SCALEBAR STATUS embed SIZE 200 3 UNITS kilometers BACKGROUNDCOLOR 120 120 120 COLOR 200 200 200 STYLE 0 POSTLABELCACHE true LABEL COLOR 0 0 90 SIZE small END END LAYER NAME "MYLAYER" STATUS ON DATA "GEOMETRY FROM MYLAYER USING UNIQUE CODE SRID 8307 RELATE" TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "user/password at sid" PROJECTION "init=epsg:4326" END CLASS STYLE OUTLINECOLOR 0 0 255 END END END END -- View this message in context: http://www.nabble.com/Problems-with-scalebar-embedding-and-java-mapscript-tp20901440p20901440.html Sent from the Mapserver - User mailing list archive at Nabble.com. From randre at gmail.com Mon Dec 8 12:02:47 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 8 Dec 2008 12:02:47 -0800 Subject: [mapserver-users] Difference in appearance between "mode=map" and WMS Message-ID: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> Hi All, I think I'm having an instance of cranial flatulation, but maybe not. Hopefully you can set me straight. I need to create an image with Mapserver using mapscript that I can then georeference manually and use in another application. It needs to look exactly the same as the image I can already generate via a WMS call that looks like this: http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map &SERVICE=WMS &version=%221.1.1%22 &REQUEST=GetMap &LAYERS=imagery &STYLES=&BBOX=-125,39,-108,54 &WIDTH=600 &HEIGHT=600 &FORMAT=png &SRS=epsg:4326 I'm testing my mapscript parameters using a simple "mode=map" call to Mapserver, and the results I'm getting so far don't match the appearance of the WMS output at all. My mapfile has the following extent and projection info in it: PROJECTION "init=epsg:4326" END EXTENT -125.0 39.0 -108.0 54.0 SIZE 600 600 In addition to the mapfile projection specification, I am also specifying the same projection info in each of my LAYERS as well. Is it possible to do what I'm trying to accomplish here? Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at mapgears.com Mon Dec 8 12:25:14 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Mon, 08 Dec 2008 15:25:14 -0500 Subject: [mapserver-users] Difference in appearance between "mode=map" and WMS In-Reply-To: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> References: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> Message-ID: <493D82AA.6010807@mapgears.com> Hi, I guess would be that the WMS use non-square pixels. So if your BBOX x/y (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio (square in your case) the map will appear stretched. MapServer will actually stretch the map to fit the extent in the WIDTH/HEIGHT. The mode=map don't do that. If your extent doesn't have the same ratio, it adds some degree in your extent to fit the size. Make sure your BBOX and EXTENT are a square in your requests and retry Julien Roger Andr? wrote: > Hi All, > > I think I'm having an instance of cranial flatulation, but maybe not. > Hopefully you can set me straight. > > I need to create an image with Mapserver using mapscript that I can then > georeference manually and use in another application. It needs to look > exactly the same as the image I can already generate via a WMS call that > looks like this: > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map > &SERVICE=WMS > &version=%221.1.1%22 > &REQUEST=GetMap > &LAYERS=imagery > &STYLES=&BBOX=-125,39,-108,54 > &WIDTH=600 > &HEIGHT=600 > &FORMAT=png > &SRS=epsg:4326 > > I'm testing my mapscript parameters using a simple "mode=map" call to > Mapserver, and the results I'm getting so far don't match the appearance > of the WMS output at all. My mapfile has the following extent and > projection info in it: > > PROJECTION > "init=epsg:4326" > END > > EXTENT -125.0 39.0 -108.0 54.0 > SIZE 600 600 > > In addition to the mapfile projection specification, I am also > specifying the same projection info in each of my LAYERS as well. > > Is it possible to do what I'm trying to accomplish here? > > Thanks, > > Roger > -- > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From randre at gmail.com Mon Dec 8 13:21:12 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 8 Dec 2008 13:21:12 -0800 Subject: [mapserver-users] Difference in appearance between "mode=map" and WMS In-Reply-To: <493D82AA.6010807@mapgears.com> References: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> <493D82AA.6010807@mapgears.com> Message-ID: <9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com> Hi Julien, That makes sense, but it doesn't work. I modified my mapfile so that I now generate a 20_deg x 20_deg tile that is 600_pixels x 600_pixels. If I georeference that image using the extents, I still get incorrect placement. Maybe if I choose an output projection which always has square pixels, like spherical mercator (?) this will work. I'll give it a shot. Is there any way to give a WMS request via mapscript and NOT go through CGI? Roger -- On Mon, Dec 8, 2008 at 12:25 PM, Julien-Samuel Lacroix < jlacroix at mapgears.com> wrote: > Hi, > > I guess would be that the WMS use non-square pixels. So if your BBOX x/y > (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio (square in > your case) the map will appear stretched. MapServer will actually stretch > the map to fit the extent in the WIDTH/HEIGHT. > > The mode=map don't do that. If your extent doesn't have the same ratio, it > adds some degree in your extent to fit the size. > > Make sure your BBOX and EXTENT are a square in your requests and retry > > > Julien > > Roger Andr? wrote: > >> Hi All, >> >> I think I'm having an instance of cranial flatulation, but maybe not. >> Hopefully you can set me straight. >> >> I need to create an image with Mapserver using mapscript that I can then >> georeference manually and use in another application. It needs to look >> exactly the same as the image I can already generate via a WMS call that >> looks like this: >> >> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map >> &SERVICE=WMS >> &version=%221.1.1%22 >> &REQUEST=GetMap >> &LAYERS=imagery >> &STYLES=&BBOX=-125,39,-108,54 >> &WIDTH=600 >> &HEIGHT=600 >> &FORMAT=png >> &SRS=epsg:4326 >> >> I'm testing my mapscript parameters using a simple "mode=map" call to >> Mapserver, and the results I'm getting so far don't match the appearance of >> the WMS output at all. My mapfile has the following extent and projection >> info in it: >> >> PROJECTION >> "init=epsg:4326" >> END >> >> EXTENT -125.0 39.0 -108.0 54.0 >> SIZE 600 600 >> >> In addition to the mapfile projection specification, I am also specifying >> the same projection info in each of my LAYERS as well. >> >> Is it possible to do what I'm trying to accomplish here? >> >> Thanks, >> >> Roger >> -- >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- > Julien-Samuel Lacroix > Mapgears > http://www.mapgears.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at mapgears.com Mon Dec 8 13:39:17 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Mon, 08 Dec 2008 16:39:17 -0500 Subject: [mapserver-users] Difference in appearance between "mode=map" and WMS In-Reply-To: <9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com> References: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> <493D82AA.6010807@mapgears.com> <9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com> Message-ID: <493D9405.7040606@mapgears.com> Hi, Did you try the other way around? Making the WMS request with a square BBOX? Mapserver should return a valid image. Maybe others may help, I remember a bug of a 1 pixel error in some cases, but I don't remember what it was exactly. Julien Roger Andr? wrote: > Hi Julien, > > That makes sense, but it doesn't work. I modified my mapfile so that I > now generate a 20_deg x 20_deg tile that is 600_pixels x 600_pixels. If > I georeference that image using the extents, I still get incorrect > placement. Maybe if I choose an output projection which always has > square pixels, like spherical mercator (?) this will work. I'll give it > a shot. > > Is there any way to give a WMS request via mapscript and NOT go through CGI? > > Roger > -- > > > > On Mon, Dec 8, 2008 at 12:25 PM, Julien-Samuel Lacroix > > wrote: > > Hi, > > I guess would be that the WMS use non-square pixels. So if your BBOX > x/y (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio > (square in your case) the map will appear stretched. MapServer will > actually stretch the map to fit the extent in the WIDTH/HEIGHT. > > The mode=map don't do that. If your extent doesn't have the same > ratio, it adds some degree in your extent to fit the size. > > Make sure your BBOX and EXTENT are a square in your requests and retry > > > Julien > > Roger Andr? wrote: > > Hi All, > > I think I'm having an instance of cranial flatulation, but maybe > not. Hopefully you can set me straight. > > I need to create an image with Mapserver using mapscript that I > can then georeference manually and use in another application. > It needs to look exactly the same as the image I can already > generate via a WMS call that looks like this: > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map > &SERVICE=WMS > &version=%221.1.1%22 > &REQUEST=GetMap > &LAYERS=imagery > &STYLES=&BBOX=-125,39,-108,54 > &WIDTH=600 > &HEIGHT=600 > &FORMAT=png > &SRS=epsg:4326 > > I'm testing my mapscript parameters using a simple "mode=map" > call to Mapserver, and the results I'm getting so far don't > match the appearance of the WMS output at all. My mapfile has > the following extent and projection info in it: > > PROJECTION > "init=epsg:4326" > END > > EXTENT -125.0 39.0 -108.0 54.0 > SIZE 600 600 > > In addition to the mapfile projection specification, I am also > specifying the same projection info in each of my LAYERS as well. > > Is it possible to do what I'm trying to accomplish here? > > Thanks, > > Roger > -- > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Julien-Samuel Lacroix > Mapgears > http://www.mapgears.com/ > > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From Tom.Kralidis at ec.gc.ca Mon Dec 8 14:33:29 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Mon, 8 Dec 2008 17:33:29 -0500 Subject: [mapserver-users] Difference in appearance between "mode=map" andWMS References: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com><493D82AA.6010807@mapgears.com> <9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com> Message-ID: Roger: you can use MapScript WxS http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript as an approach to run a WMS request via mapscript. Maybe that can work for you? ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Roger Andr? Sent: Mon 08-Dec-08 16:21 To: Julien-Samuel Lacroix Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Difference in appearance between "mode=map" andWMS Hi Julien, That makes sense, but it doesn't work. I modified my mapfile so that I now generate a 20_deg x 20_deg tile that is 600_pixels x 600_pixels. If I georeference that image using the extents, I still get incorrect placement. Maybe if I choose an output projection which always has square pixels, like spherical mercator (?) this will work. I'll give it a shot. Is there any way to give a WMS request via mapscript and NOT go through CGI? Roger -- On Mon, Dec 8, 2008 at 12:25 PM, Julien-Samuel Lacroix < jlacroix at mapgears.com> wrote: > Hi, > > I guess would be that the WMS use non-square pixels. So if your BBOX x/y > (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio (square in > your case) the map will appear stretched. MapServer will actually stretch > the map to fit the extent in the WIDTH/HEIGHT. > > The mode=map don't do that. If your extent doesn't have the same ratio, it > adds some degree in your extent to fit the size. > > Make sure your BBOX and EXTENT are a square in your requests and retry > > > Julien > > Roger Andr? wrote: > >> Hi All, >> >> I think I'm having an instance of cranial flatulation, but maybe not. >> Hopefully you can set me straight. >> >> I need to create an image with Mapserver using mapscript that I can then >> georeference manually and use in another application. It needs to look >> exactly the same as the image I can already generate via a WMS call that >> looks like this: >> >> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map >> &SERVICE=WMS >> &version=%221.1.1%22 >> &REQUEST=GetMap >> &LAYERS=imagery >> &STYLES=&BBOX=-125,39,-108,54 >> &WIDTH=600 >> &HEIGHT=600 >> &FORMAT=png >> &SRS=epsg:4326 >> >> I'm testing my mapscript parameters using a simple "mode=map" call to >> Mapserver, and the results I'm getting so far don't match the appearance of >> the WMS output at all. My mapfile has the following extent and projection >> info in it: >> >> PROJECTION >> "init=epsg:4326" >> END >> >> EXTENT -125.0 39.0 -108.0 54.0 >> SIZE 600 600 >> >> In addition to the mapfile projection specification, I am also specifying >> the same projection info in each of my LAYERS as well. >> >> Is it possible to do what I'm trying to accomplish here? >> >> Thanks, >> >> Roger >> -- >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- > Julien-Samuel Lacroix > Mapgears > http://www.mapgears.com/ > From randre at gmail.com Mon Dec 8 14:46:43 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 8 Dec 2008 14:46:43 -0800 Subject: [mapserver-users] AGG renderer and paletted RGBA PNG's Message-ID: <9c2015090812081446x2faec335h9b82368967253e0b@mail.gmail.com> Hi All, I'm seeing a problem in some of my raster data which have graduated color ramps in them. When using the AGG renderer, the data appears to have discreet colors (which is incorrect), whereas with the GD renderer, we get correct color gradients. The GD outputformat looks like this: OUTPUTFORMAT NAME 'png' DRIVER GD/PNG IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END #end outputformat The AGG outputformat looks like this: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA EXTENSION "png" MIMETYPE "image/png; mode=24bit" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" END In addition, the output image appears to have a color palette, instead of being a 4-ch png. Finally, the problem is present in WMS requests, but not straight MODE=map requests. My WMS request looks like this: http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map&SERVICE=WMS&version=%221.1.1%22&REQUEST=GetMap&LAYERS=imagery&STYLES=&BBOX=-125,39,-108,54&WIDTH=600&HEIGHT=600&FORMAT=png&SRS=epsg:4326 Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Mon Dec 8 14:51:01 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 8 Dec 2008 14:51:01 -0800 Subject: [mapserver-users] Difference in appearance between "mode=map" andWMS In-Reply-To: References: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> <493D82AA.6010807@mapgears.com> <9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com> Message-ID: <9c2015090812081451m366b07dayf53fd8eb2e2aeec1@mail.gmail.com> Perfect, yes. That should do exactly what I need. I'd forgotten about those OWSRequests. Tilecache uses those in its MapServerLayer requests as well. Thanks very much Tom -- On Mon, Dec 8, 2008 at 2:33 PM, Kralidis,Tom [Ontario] < Tom.Kralidis at ec.gc.ca> wrote: > > Roger: you can use MapScript WxS > http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript as an approach to > run a WMS request via mapscript. Maybe that can work for you? > > ..Tom > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org on behalf of Roger Andr? > Sent: Mon 08-Dec-08 16:21 > To: Julien-Samuel Lacroix > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Difference in appearance between "mode=map" > andWMS > > Hi Julien, > > That makes sense, but it doesn't work. I modified my mapfile so that I now > generate a 20_deg x 20_deg tile that is 600_pixels x 600_pixels. If I > georeference that image using the extents, I still get incorrect placement. > Maybe if I choose an output projection which always has square pixels, like > spherical mercator (?) this will work. I'll give it a shot. > > Is there any way to give a WMS request via mapscript and NOT go through > CGI? > > Roger > -- > > > > On Mon, Dec 8, 2008 at 12:25 PM, Julien-Samuel Lacroix < > jlacroix at mapgears.com> wrote: > > > Hi, > > > > I guess would be that the WMS use non-square pixels. So if your BBOX x/y > > (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio (square in > > your case) the map will appear stretched. MapServer will actually stretch > > the map to fit the extent in the WIDTH/HEIGHT. > > > > The mode=map don't do that. If your extent doesn't have the same ratio, > it > > adds some degree in your extent to fit the size. > > > > Make sure your BBOX and EXTENT are a square in your requests and retry > > > > > > Julien > > > > Roger Andr? wrote: > > > >> Hi All, > >> > >> I think I'm having an instance of cranial flatulation, but maybe not. > >> Hopefully you can set me straight. > >> > >> I need to create an image with Mapserver using mapscript that I can then > >> georeference manually and use in another application. It needs to look > >> exactly the same as the image I can already generate via a WMS call that > >> looks like this: > >> > >> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map > >> &SERVICE=WMS > >> &version=%221.1.1%22 > >> &REQUEST=GetMap > >> &LAYERS=imagery > >> &STYLES=&BBOX=-125,39,-108,54 > >> &WIDTH=600 > >> &HEIGHT=600 > >> &FORMAT=png > >> &SRS=epsg:4326 > >> > >> I'm testing my mapscript parameters using a simple "mode=map" call to > >> Mapserver, and the results I'm getting so far don't match the appearance > of > >> the WMS output at all. My mapfile has the following extent and > projection > >> info in it: > >> > >> PROJECTION > >> "init=epsg:4326" > >> END > >> > >> EXTENT -125.0 39.0 -108.0 54.0 > >> SIZE 600 600 > >> > >> In addition to the mapfile projection specification, I am also > specifying > >> the same projection info in each of my LAYERS as well. > >> > >> Is it possible to do what I'm trying to accomplish here? > >> > >> Thanks, > >> > >> Roger > >> -- > >> > >> > >> ------------------------------------------------------------------------ > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > -- > > Julien-Samuel Lacroix > > Mapgears > > http://www.mapgears.com/ > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Dec 8 14:53:43 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Dec 2008 16:53:43 -0600 Subject: [mapserver-users] Difference in appearance between "mode=map"and WMS In-Reply-To: <493D9405.7040606@mapgears.com> References: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> <493D82AA.6010807@mapgears.com> <9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com><9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com> <493D9405.7040606@mapgears.com> Message-ID: <493D5117.5157.008F.0@dnr.state.mn.us> It's not a bug, just a difference in the extent models between MapServer proper and WMS. The MapServer WMS interface accounts for this difference in the code by adjusting the WMS extent to a MapServer extent. You'd need to make a similar adjustment when doing comparisons. A WMS extent is 1/2 a pixel larger all around (cellsize is the same). The effect is very subtle and most often not even noticeable. Steve >>> On 12/8/2008 at 3:39 PM, in message <493D9405.7040606 at mapgears.com>, Julien-Samuel Lacroix wrote: > Hi, > > Did you try the other way around? Making the WMS request with a square BBOX? > > Mapserver should return a valid image. Maybe others may help, I remember > a bug of a 1 pixel error in some cases, but I don't remember what it was > exactly. > > Julien > > Roger Andr? wrote: >> Hi Julien, >> >> That makes sense, but it doesn't work. I modified my mapfile so that I >> now generate a 20_deg x 20_deg tile that is 600_pixels x 600_pixels. If >> I georeference that image using the extents, I still get incorrect >> placement. Maybe if I choose an output projection which always has >> square pixels, like spherical mercator (?) this will work. I'll give it >> a shot. >> >> Is there any way to give a WMS request via mapscript and NOT go through CGI? >> >> Roger >> -- >> >> >> >> On Mon, Dec 8, 2008 at 12:25 PM, Julien-Samuel Lacroix >> > wrote: >> >> Hi, >> >> I guess would be that the WMS use non-square pixels. So if your BBOX >> x/y (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio >> (square in your case) the map will appear stretched. MapServer will >> actually stretch the map to fit the extent in the WIDTH/HEIGHT. >> >> The mode=map don't do that. If your extent doesn't have the same >> ratio, it adds some degree in your extent to fit the size. >> >> Make sure your BBOX and EXTENT are a square in your requests and retry >> >> >> Julien >> >> Roger Andr? wrote: >> >> Hi All, >> >> I think I'm having an instance of cranial flatulation, but maybe >> not. Hopefully you can set me straight. >> >> I need to create an image with Mapserver using mapscript that I >> can then georeference manually and use in another application. >> It needs to look exactly the same as the image I can already >> generate via a WMS call that looks like this: >> >> > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map >> &SERVICE=WMS >> &version=%221.1.1%22 >> &REQUEST=GetMap >> &LAYERS=imagery >> &STYLES=&BBOX=-125,39,-108,54 >> &WIDTH=600 >> &HEIGHT=600 >> &FORMAT=png >> &SRS=epsg:4326 >> >> I'm testing my mapscript parameters using a simple "mode=map" >> call to Mapserver, and the results I'm getting so far don't >> match the appearance of the WMS output at all. My mapfile has >> the following extent and projection info in it: >> >> PROJECTION >> "init=epsg:4326" >> END >> >> EXTENT -125.0 39.0 -108.0 54.0 >> SIZE 600 600 >> >> In addition to the mapfile projection specification, I am also >> specifying the same projection info in each of my LAYERS as well. >> >> Is it possible to do what I'm trying to accomplish here? >> >> Thanks, >> >> Roger >> -- >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> -- >> Julien-Samuel Lacroix >> Mapgears >> http://www.mapgears.com/ >> >> From randre at gmail.com Mon Dec 8 15:44:35 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 8 Dec 2008 15:44:35 -0800 Subject: [mapserver-users] Re: AGG renderer and paletted RGBA PNG's In-Reply-To: <9c2015090812081446x2faec335h9b82368967253e0b@mail.gmail.com> References: <9c2015090812081446x2faec335h9b82368967253e0b@mail.gmail.com> Message-ID: <9c2015090812081544i626c0a0cib715bd5aa27bdfca@mail.gmail.com> Looks like the WMS request needs some additional parameters: &FORMAT=image/png;%20mode=24bit Can I add these into the mapfile instead? -- On Mon, Dec 8, 2008 at 2:46 PM, Roger Andr? wrote: > Hi All, > > I'm seeing a problem in some of my raster data which have graduated color > ramps in them. When using the AGG renderer, the data appears to have > discreet colors (which is incorrect), whereas with the GD renderer, we get > correct color gradients. > > The GD outputformat looks like this: > > OUTPUTFORMAT > NAME 'png' > DRIVER GD/PNG > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > TRANSPARENT ON > END #end outputformat > > > The AGG outputformat looks like this: > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > EXTENSION "png" > MIMETYPE "image/png; mode=24bit" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > END > > In addition, the output image appears to have a color palette, instead of > being a 4-ch png. Finally, the problem is present in WMS requests, but not > straight MODE=map requests. > > My WMS request looks like this: > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map&SERVICE=WMS&version=%221.1.1%22&REQUEST=GetMap&LAYERS=imagery&STYLES=&BBOX=-125,39,-108,54&WIDTH=600&HEIGHT=600&FORMAT=png&SRS=epsg:4326 > > Any ideas? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Mon Dec 8 16:10:40 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Tue, 9 Dec 2008 00:10:40 +0000 Subject: [mapserver-users] Scalebar vs Numeric scale Message-ID: <31e2f7000812081610x2bc5511btbdf0d3e9f04757f7@mail.gmail.com> Hi... I have a small problem with the scale. The numeric scale and the scalebar don match. In the firth is 1/150.000 but measuring the second is 1/200.000. Someone have any clue? Thanks PS: I don't change any image size but i change the map size by the URL. -- Rui Gomes From maurerj at nsidc.org Mon Dec 8 16:44:53 2008 From: maurerj at nsidc.org (John Maurer) Date: Tue, 09 Dec 2008 00:44:53 +0000 Subject: [mapserver-users] How to use MINSCALEDENOM & MAXSCALEDENOM with dynamic image size? Message-ID: <493DBF85.8030906@nsidc.org> Dear MapServer Users, Defining a minimum and maximum scale denominator for a layer seems problematic to me when the resulting image size can be arbitrarily specified by the end user. For instance, doubling the image size (e.g. 400px to 800px) on the same map will double the scale denominator (e.g. 24,000 to 48,000)--a layer may display at one image size but not the other because of this. A more useful criteria would be to specify the minimum and maximum pixel size for a layer (e.g. 1 km and 5 km), which is independent of the image size. This must be a common problem for MapServer application developers since a WMS call requires an image width and height. Has anyone come up with a workaround for this? Or am I understanding things incorrectly? Thanks for any help! Best Regards, -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From SansonR at asurequality.com Mon Dec 8 16:45:55 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 09 Dec 2008 13:45:55 +1300 Subject: [mapserver-users] Scalebar vs Numeric scale In-Reply-To: <31e2f7000812081610x2bc5511btbdf0d3e9f04757f7@mail.gmail.com> References: <31e2f7000812081610x2bc5511btbdf0d3e9f04757f7@mail.gmail.com> Message-ID: <493E7692.379F.0037.0@asurequality.com> Have you checked the RESOLUTION parameter. I think the default is 72 (based on dots per inch of older computer monitors). Maybe you should change this to 96 dpi, or whatever you monitor resolution is: # default output image dimensions SIZE 512 512 RESOLUTION 96 regards, Robert Sanson >>> "Rui Gomes" 9/12/2008 1:10 p.m. >>> Hi... I have a small problem with the scale. The numeric scale and the scalebar don match. In the firth is 1/150.000 but measuring the second is 1/200.000. Someone have any clue? Thanks PS: I don't change any image size but i change the map size by the URL. -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamdryan at gmail.com Mon Dec 8 17:20:49 2008 From: adamdryan at gmail.com (Adam Ryan) Date: Mon, 8 Dec 2008 17:20:49 -0800 Subject: [mapserver-users] Difference in appearance between "mode=map" andWMS In-Reply-To: References: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> <493D82AA.6010807@mapgears.com> <9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com> Message-ID: <5a36779a0812081720y155db799i6db32e64f045d33d@mail.gmail.com> Roger, I don't know if this would help, but I recently came across a similar problem which was fixed by adding the processing directive to the layer: PROCESSING "RESAMPLE=NEAREST" This fixed a problem when zooming in very close on a raster layer. Apparently without this, mapserver changes the extent so that whole source pixels are included and not split. More here... http://www.nabble.com/Raster-alignment-problem-td19900625.html Cheers, Adam On Mon, Dec 8, 2008 at 2:33 PM, Kralidis,Tom [Ontario] wrote: > > Roger: you can use MapScript WxS http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript as an approach to run a WMS request via mapscript. Maybe that can work for you? > > ..Tom > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org on behalf of Roger Andr? > Sent: Mon 08-Dec-08 16:21 > To: Julien-Samuel Lacroix > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Difference in appearance between "mode=map" andWMS > > Hi Julien, > > That makes sense, but it doesn't work. I modified my mapfile so that I now > generate a 20_deg x 20_deg tile that is 600_pixels x 600_pixels. If I > georeference that image using the extents, I still get incorrect placement. > Maybe if I choose an output projection which always has square pixels, like > spherical mercator (?) this will work. I'll give it a shot. > > Is there any way to give a WMS request via mapscript and NOT go through CGI? > > Roger > -- > > > > On Mon, Dec 8, 2008 at 12:25 PM, Julien-Samuel Lacroix < > jlacroix at mapgears.com> wrote: > >> Hi, >> >> I guess would be that the WMS use non-square pixels. So if your BBOX x/y >> (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio (square in >> your case) the map will appear stretched. MapServer will actually stretch >> the map to fit the extent in the WIDTH/HEIGHT. >> >> The mode=map don't do that. If your extent doesn't have the same ratio, it >> adds some degree in your extent to fit the size. >> >> Make sure your BBOX and EXTENT are a square in your requests and retry >> >> >> Julien >> >> Roger Andr? wrote: >> >>> Hi All, >>> >>> I think I'm having an instance of cranial flatulation, but maybe not. >>> Hopefully you can set me straight. >>> >>> I need to create an image with Mapserver using mapscript that I can then >>> georeference manually and use in another application. It needs to look >>> exactly the same as the image I can already generate via a WMS call that >>> looks like this: >>> >>> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map >>> &SERVICE=WMS >>> &version=%221.1.1%22 >>> &REQUEST=GetMap >>> &LAYERS=imagery >>> &STYLES=&BBOX=-125,39,-108,54 >>> &WIDTH=600 >>> &HEIGHT=600 >>> &FORMAT=png >>> &SRS=epsg:4326 >>> >>> I'm testing my mapscript parameters using a simple "mode=map" call to >>> Mapserver, and the results I'm getting so far don't match the appearance of >>> the WMS output at all. My mapfile has the following extent and projection >>> info in it: >>> >>> PROJECTION >>> "init=epsg:4326" >>> END >>> >>> EXTENT -125.0 39.0 -108.0 54.0 >>> SIZE 600 600 >>> >>> In addition to the mapfile projection specification, I am also specifying >>> the same projection info in each of my LAYERS as well. >>> >>> Is it possible to do what I'm trying to accomplish here? >>> >>> Thanks, >>> >>> Roger >>> -- >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at 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 at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From randre at gmail.com Mon Dec 8 17:28:00 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 8 Dec 2008 17:28:00 -0800 Subject: [mapserver-users] Difference in appearance between "mode=map" andWMS In-Reply-To: <5a36779a0812081720y155db799i6db32e64f045d33d@mail.gmail.com> References: <9c2015090812081202k70a30c20o941801cab2f8a8fd@mail.gmail.com> <493D82AA.6010807@mapgears.com> <9c2015090812081321l21297c26k862eaa041283ee45@mail.gmail.com> <5a36779a0812081720y155db799i6db32e64f045d33d@mail.gmail.com> Message-ID: <9c2015090812081728p5d882138g73536d915517b8d@mail.gmail.com> Hi Adam and Steve, Thanks very much for the advice. The thing is, the shift I'm seeing is way more than 1/2 pixel on the edges. I'm off by quite a few degrees actually. I suspect it's as Julien thought earlier: I'm specifying an image size that is not consistent with the geographic extents. So I get back the number of pixels I've requested, but force a larger area than want. I guess what I'm looking for is WMS logic, but without having to make a WMS request. Thanks again, Roger -- On Mon, Dec 8, 2008 at 5:20 PM, Adam Ryan wrote: > Roger, > > I don't know if this would help, but I recently came across a similar > problem which was fixed by adding the processing directive to the > layer: > > PROCESSING "RESAMPLE=NEAREST" > > This fixed a problem when zooming in very close on a raster layer. > Apparently without this, mapserver changes the extent so that whole > source pixels are included and not split. > > More here... > > http://www.nabble.com/Raster-alignment-problem-td19900625.html > > Cheers, > > Adam > > On Mon, Dec 8, 2008 at 2:33 PM, Kralidis,Tom [Ontario] > wrote: > > > > Roger: you can use MapScript WxS > http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript as an approach to > run a WMS request via mapscript. Maybe that can work for you? > > > > ..Tom > > > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org on behalf of Roger Andr? > > Sent: Mon 08-Dec-08 16:21 > > To: Julien-Samuel Lacroix > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] Difference in appearance between > "mode=map" andWMS > > > > Hi Julien, > > > > That makes sense, but it doesn't work. I modified my mapfile so that I > now > > generate a 20_deg x 20_deg tile that is 600_pixels x 600_pixels. If I > > georeference that image using the extents, I still get incorrect > placement. > > Maybe if I choose an output projection which always has square pixels, > like > > spherical mercator (?) this will work. I'll give it a shot. > > > > Is there any way to give a WMS request via mapscript and NOT go through > CGI? > > > > Roger > > -- > > > > > > > > On Mon, Dec 8, 2008 at 12:25 PM, Julien-Samuel Lacroix < > > jlacroix at mapgears.com> wrote: > > > >> Hi, > >> > >> I guess would be that the WMS use non-square pixels. So if your BBOX x/y > >> (rectangle in your case) doesn't match you WIDTH/HEIGHT ratio (square > in > >> your case) the map will appear stretched. MapServer will actually > stretch > >> the map to fit the extent in the WIDTH/HEIGHT. > >> > >> The mode=map don't do that. If your extent doesn't have the same ratio, > it > >> adds some degree in your extent to fit the size. > >> > >> Make sure your BBOX and EXTENT are a square in your requests and retry > >> > >> > >> Julien > >> > >> Roger Andr? wrote: > >> > >>> Hi All, > >>> > >>> I think I'm having an instance of cranial flatulation, but maybe not. > >>> Hopefully you can set me straight. > >>> > >>> I need to create an image with Mapserver using mapscript that I can > then > >>> georeference manually and use in another application. It needs to look > >>> exactly the same as the image I can already generate via a WMS call > that > >>> looks like this: > >>> > >>> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map > >>> &SERVICE=WMS > >>> &version=%221.1.1%22 > >>> &REQUEST=GetMap > >>> &LAYERS=imagery > >>> &STYLES=&BBOX=-125,39,-108,54 > >>> &WIDTH=600 > >>> &HEIGHT=600 > >>> &FORMAT=png > >>> &SRS=epsg:4326 > >>> > >>> I'm testing my mapscript parameters using a simple "mode=map" call to > >>> Mapserver, and the results I'm getting so far don't match the > appearance of > >>> the WMS output at all. My mapfile has the following extent and > projection > >>> info in it: > >>> > >>> PROJECTION > >>> "init=epsg:4326" > >>> END > >>> > >>> EXTENT -125.0 39.0 -108.0 54.0 > >>> SIZE 600 600 > >>> > >>> In addition to the mapfile projection specification, I am also > specifying > >>> the same projection info in each of my LAYERS as well. > >>> > >>> Is it possible to do what I'm trying to accomplish here? > >>> > >>> Thanks, > >>> > >>> Roger > >>> -- > >>> > >>> > >>> > ------------------------------------------------------------------------ > >>> > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at 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 at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Mon Dec 8 18:05:58 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Tue, 9 Dec 2008 02:05:58 +0000 Subject: [mapserver-users] RE: Scalebar vs Numeric scale Message-ID: <31e2f7000812081805jc3ff5edv829a3a95fbe084b6@mail.gmail.com> Thanks Robert... The problem are the resolution as you say. I add the line (RESOLUTION 96) and now the scales match. But if a user have a diferent resolution? We can know his resolution monitors and them change the line??? -- Rui Gomes From SansonR at asurequality.com Mon Dec 8 18:09:20 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 09 Dec 2008 15:09:20 +1300 Subject: [mapserver-users] RE: Scalebar vs Numeric scale In-Reply-To: <31e2f7000812081805jc3ff5edv829a3a95fbe084b6@mail.gmail.com> References: <31e2f7000812081805jc3ff5edv829a3a95fbe084b6@mail.gmail.com> Message-ID: <493E8A1F.379F.0037.0@asurequality.com> Maybe someone better informed than me can answer. Is it possible to find out the resolution of the monitor using Javascript? Maybe you can then send the mapserv.exe CGI executable a parameter: &RESOLUTION+72 or something. see: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT Cheers, Robert >>> "Rui Gomes" 9/12/2008 3:05 p.m. >>> Thanks Robert... The problem are the resolution as you say. I add the line (RESOLUTION 96) and now the scales match. But if a user have a diferent resolution? We can know his resolution monitors and them change the line??? -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Mon Dec 8 18:34:34 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Tue, 9 Dec 2008 02:34:34 +0000 Subject: [mapserver-users] Scalebar vs Numeric scale Message-ID: <31e2f7000812081834k37758030m997d432dd465fd3a@mail.gmail.com> Thanks again -- Rui Gomes From ruijgomes at gmail.com Mon Dec 8 19:01:53 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Tue, 9 Dec 2008 03:01:53 +0000 Subject: [mapserver-users] Scalebar vs Numeric scale Message-ID: <31e2f7000812081901r4d6a9259l33f7e0b573de021f@mail.gmail.com> Hi. I find a resolution to get the dpi. The answer is in this forum topic: http://www.webdeveloper.com/forum/showthread.php?threadid=169369 Use a hidden css div and a width 1 inch. Then use javascript (or other) to get the offsetWidth (in pixel). The number of pixel is the dpi resolution. I don know if is the best answer but works -- Rui Gomes From Steve.Lime at dnr.state.mn.us Mon Dec 8 19:50:43 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Dec 2008 21:50:43 -0600 Subject: [mapserver-users] RE: Scalebar vs Numeric scale Message-ID: <493D96B30200008F0001E4E1@co5.dnr.state.mn.us> IMHO that numeric scale values are useless from a display perspective. You simply can't know what an appropriate RESOLUTION value is in all cases. The numeric values are useful for turning layers on/off etc... but that's about it. Steve >>> "Robert Sanson" 12/08/08 8:12 PM >>> Maybe someone better informed than me can answer. Is it possible to find out the resolution of the monitor using Javascript? Maybe you can then send the mapserv.exe CGI executable a parameter: &RESOLUTION+72 or something. see: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT Cheers, Robert >>> "Rui Gomes" 9/12/2008 3:05 p.m. >>> Thanks Robert... The problem are the resolution as you say. I add the line (RESOLUTION 96) and now the scales match. But if a user have a diferent resolution? We can know his resolution monitors and them change the line??? -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com From thomas.bonfort at gmail.com Mon Dec 8 22:16:51 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 9 Dec 2008 07:16:51 +0100 Subject: [mapserver-users] AGG renderer and paletted RGBA PNG's In-Reply-To: <9c2015090812081446x2faec335h9b82368967253e0b@mail.gmail.com> References: <9c2015090812081446x2faec335h9b82368967253e0b@mail.gmail.com> Message-ID: mapserver version, mapfile, screenshots? -- thomas On Mon, Dec 8, 2008 at 23:46, Roger Andr? wrote: > Hi All, > > I'm seeing a problem in some of my raster data which have graduated color > ramps in them. When using the AGG renderer, the data appears to have > discreet colors (which is incorrect), whereas with the GD renderer, we get > correct color gradients. > > The GD outputformat looks like this: > > OUTPUTFORMAT > NAME 'png' > DRIVER GD/PNG > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > TRANSPARENT ON > END #end outputformat > > > The AGG outputformat looks like this: > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > EXTENSION "png" > MIMETYPE "image/png; mode=24bit" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > END > > In addition, the output image appears to have a color palette, instead of > being a 4-ch png. Finally, the problem is present in WMS requests, but not > straight MODE=map requests. > > My WMS request looks like this: > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map&SERVICE=WMS&version=%221.1.1%22&REQUEST=GetMap&LAYERS=imagery&STYLES=&BBOX=-125,39,-108,54&WIDTH=600&HEIGHT=600&FORMAT=png&SRS=epsg:4326 > > Any ideas? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From thomas.bonfort at gmail.com Mon Dec 8 22:29:57 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 9 Dec 2008 07:29:57 +0100 Subject: [mapserver-users] Scalebar vs Numeric scale In-Reply-To: <31e2f7000812081901r4d6a9259l33f7e0b573de021f@mail.gmail.com> References: <31e2f7000812081901r4d6a9259l33f7e0b573de021f@mail.gmail.com> Message-ID: and now what happens if you're using a projector ? could you please factor in the distance to the screen and the field of view of the projector :) just to say how scale is meaningless for pixel maps in an uncontrolled environment. nice hack by the way, but I'm not sure even your OS knows how many pixels it can fit in a screen inch. I think gimp makes you measure a line on the screen (with a real ruler) to configure that value. -- thomas On Tue, Dec 9, 2008 at 04:01, Rui Gomes wrote: > Hi. I find a resolution to get the dpi. > > The answer is in this forum topic: > > http://www.webdeveloper.com/forum/showthread.php?threadid=169369 > > Use a hidden css div and a width 1 inch. Then use javascript (or > other) to get the offsetWidth (in pixel). The number of pixel is the > dpi resolution. > > I don know if is the best answer but works > > > -- > Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From iratxe.lejarreta at axios.es Mon Dec 8 23:21:08 2008 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Tue, 9 Dec 2008 08:21:08 +0100 Subject: [mapserver-users] Compile errors with 5.2.1 on Centos 5.2 x64 In-Reply-To: References: Message-ID: <200812090821.08329.iratxe.lejarreta@axios.es> On Friday 05 December 2008 22:35:36 Doug_Newcomb at fws.gov wrote: > One of the joys of email lists is that your ignorance ?and undue > haste is displayed for ?all to see. ?In this case Mapserver 5.2.1 compiled > correctly , the "skipping incompatible" messages were just warnings that > the compiler was correctly skipping the 32bit libraries installed and using > the 64 bit libraries. ?Sorry for the noise Otherwise, you can install FGS Linux Installer to install MapServer and all necesary components very easily. More info: http://www.maptools.org/fgs/ Best regards, -- Iratxe Lejarreta www.axios.es From szekerest at gmail.com Mon Dec 8 23:57:40 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 9 Dec 2008 08:57:40 +0100 Subject: [mapserver-users] How to use MINSCALEDENOM & MAXSCALEDENOM with dynamic image size? In-Reply-To: <493DBF85.8030906@nsidc.org> References: <493DBF85.8030906@nsidc.org> Message-ID: John, I guess it might be the same problem that I've already addressed in http://trac.osgeo.org/mapserver/ticket/2738 The related changes have already been applied in the development version (SVN trunk) so you can test it. Best regards, Tamas 2008/12/9 John Maurer > Dear MapServer Users, > Defining a minimum and maximum scale denominator for a layer seems > problematic to me when the resulting image size can be arbitrarily specified > by the end user. For instance, doubling the image size (e.g. 400px to 800px) > on the same map will double the scale denominator (e.g. 24,000 to 48,000)--a > layer may display at one image size but not the other because of this. A > more useful criteria would be to specify the minimum and maximum pixel size > for a layer (e.g. 1 km and 5 km), which is independent of the image size. > This must be a common problem for MapServer application developers since a > WMS call requires an image width and height. Has anyone come up with a > workaround for this? Or am I understanding things incorrectly? Thanks for > any help! > Best Regards, > > -- > John Maurer > Web/Database Applications Engineer > National Snow and Ice Data Center (NSIDC) > University of Colorado at Boulder > http://cires.colorado.edu/~maurerj > +1-303-586-1677 > ------------------------------------ > "Without geography, you're nowhere!" > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.pelliconi at sis-ter.it Tue Dec 9 00:11:47 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Tue, 09 Dec 2008 09:11:47 +0100 Subject: [mapserver-users] IDENTIFY TOOL In-Reply-To: <278476.80190.qm@web62006.mail.re1.yahoo.com> References: <278476.80190.qm@web62006.mail.re1.yahoo.com> Message-ID: <493E2843.80708@sis-ter.it> An HTML attachment was scrubbed... URL: From ricken11 at gmail.com Tue Dec 9 04:19:34 2008 From: ricken11 at gmail.com (Francisco Arrebola Pascual) Date: Tue, 9 Dec 2008 13:19:34 +0100 Subject: [mapserver-users] MapServer + WFS restrictions Message-ID: Hello, I want to restrict at server-side level the wfs requests. This means that I want to configure my mapserver to restrict for example the extension of a request or the number of features returned. I tried it using wfs_maxfeatures and wfs_extent properties of the METADATA field in .map file, but it does not work if I put parameters bbox, and maxfeatures in the request. Anybody knows what can I do? Thanks, and sorry about my poor English :p -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Dec 9 06:26:06 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 09 Dec 2008 09:26:06 -0500 Subject: [mapserver-users] MapServer + WFS restrictions In-Reply-To: References: Message-ID: <493E7FFE.90809@dmsolutions.ca> Hi There, I did a quick test and wfs_maxfeatures is working as expected with latest mapserver. How are you specifying it? something like this in the web metadata should work "wfs_maxfeatures" "8". Note that you do not need this metadata for the wfs maxfeatures parameter to work. wfs_extent is a metadata used at the layer level and setting it at the web level would not have any effect. Please refer to docs (http://mapserver.maptools.org/ogc/wfs_server.html) Assefa Francisco Arrebola Pascual wrote: > Hello, > I want to restrict at server-side level the wfs requests. This means > that I want to configure my mapserver to restrict for example the > extension of a request or the number of features returned. I tried it > using wfs_maxfeatures and wfs_extent properties of the METADATA field in > .map file, but it does not work if I put parameters bbox, and > maxfeatures in the request. > Anybody knows what can I do? > Thanks, and sorry about my poor English :p > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From maurerj at nsidc.org Tue Dec 9 07:20:50 2008 From: maurerj at nsidc.org (John Maurer) Date: Tue, 09 Dec 2008 15:20:50 +0000 Subject: [mapserver-users] How to use MINSCALEDENOM & MAXSCALEDENOM with dynamic image size? In-Reply-To: References: <493DBF85.8030906@nsidc.org> Message-ID: <493E8CD2.1090809@nsidc.org> Thanks for the notice, Tamas. That sounds like what I need. Cheers, John Tamas Szekeres wrote: > John, > > I guess it might be the same problem that I've already addressed in > http://trac.osgeo.org/mapserver/ticket/2738 > > The related changes have already been applied in the development > version (SVN trunk) so you can test it. > > Best regards, > > Tamas > > > 2008/12/9 John Maurer > > > Dear MapServer Users, > Defining a minimum and maximum scale denominator for a layer seems > problematic to me when the resulting image size can be arbitrarily > specified by the end user. For instance, doubling the image size > (e.g. 400px to 800px) on the same map will double the scale > denominator (e.g. 24,000 to 48,000)--a layer may display at one > image size but not the other because of this. A more useful > criteria would be to specify the minimum and maximum pixel size > for a layer (e.g. 1 km and 5 km), which is independent of the > image size. This must be a common problem for MapServer > application developers since a WMS call requires an image width > and height. Has anyone come up with a workaround for this? Or am I > understanding things incorrectly? Thanks for any help! > Best Regards, > > -- > John Maurer > Web/Database Applications Engineer > National Snow and Ice Data Center (NSIDC) > University of Colorado at Boulder > http://cires.colorado.edu/~maurerj > > +1-303-586-1677 > ------------------------------------ > "Without geography, you're nowhere!" > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From boolean10001 at yahoo.com Tue Dec 9 07:44:57 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 9 Dec 2008 07:44:57 -0800 (PST) Subject: [mapserver-users] Polygon filled and with an image in the center ? Message-ID: <808778.53338.qm@web38203.mail.mud.yahoo.com> Hi list, Does someone knows how to fill a polygon and put an image in the centroid within the same layer ? Thanks in advance IC Carlos Ruiz? -------------- next part -------------- An HTML attachment was scrubbed... URL: From justinbailey85 at yahoo.com Tue Dec 9 09:03:02 2008 From: justinbailey85 at yahoo.com (Justin Bailey) Date: Tue, 9 Dec 2008 09:03:02 -0800 (PST) Subject: [mapserver-users] help with converting Geoserver site to Mapserver Message-ID: <539427.83179.qm@web46408.mail.sp1.yahoo.com> Hi list, I hope I can get some assistance on a matter of some urgency.? Our organization has been putting the finishing touches on an application that is supposed to be released by the end of the year.? Unexpectedly, it did not pass license review, because it used Geoserver, which is GPL-licensed.? Since Mapserver has a more permissive license, and is also WMS-compatible, the decision was made to switch to Mapserver.? It now falls to me, as the junior developer, to do?a last-minute?switchover.? Unfortunately I come to this task knowing nothing about either Geoserver *or* Mapserver. After some difficulty I succeeded in getting Mapserver running on our existing Tomcat server, but I have not been able to figure out how to convert the Geoserver data.? I have made some?encouraging steps on the Mapserver tutorial but I still know nothing about Geoserver, and I am running out of time.? I need to solve this problem by the end of this week if possible, or by the end of next week at the absolute latest. So, I have two questions: 1) Is there a utility I could download that can convert a Geoserver installation to Mapserver? -- or -- 2) I *think* (crossing fingers) that the only thing I need to do, on the application side, is to convert the following Javascript call... var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", {layers: 'countries', bgcolor: 0x000055}); ...into its equivalent Mapserver call.? There are four countries.* files in the geoserver repository: countries.dbf countries.prj countries.shp countries.shx How do I create countries.map to serve these files, and what mapserv.exe call should I use? Many thanks for any and all assistance. Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Tue Dec 9 09:14:35 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 9 Dec 2008 12:14:35 -0500 Subject: [mapserver-users] help with converting Geoserver site to Mapserver References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> Message-ID: You might want to check the WMS Server howto doc, as well as the MapServer OGC Web Services workshop (http://ms-ogc-workshop.maptools.org/), which has examples of standing up WMS/WFS/WCS/SOS, etc. >From the client side, you would have to change the base URL of the new WMS (assuming the layer names would be the same). ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Justin Bailey Sent: Tue 09-Dec-08 12:03 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] help with converting Geoserver site to Mapserver Hi list, I hope I can get some assistance on a matter of some urgency.? Our organization has been putting the finishing touches on an application that is supposed to be released by the end of the year.? Unexpectedly, it did not pass license review, because it used Geoserver, which is GPL-licensed.? Since Mapserver has a more permissive license, and is also WMS-compatible, the decision was made to switch to Mapserver.? It now falls to me, as the junior developer, to do?a last-minute?switchover.? Unfortunately I come to this task knowing nothing about either Geoserver *or* Mapserver. After some difficulty I succeeded in getting Mapserver running on our existing Tomcat server, but I have not been able to figure out how to convert the Geoserver data.? I have made some?encouraging steps on the Mapserver tutorial but I still know nothing about Geoserver, and I am running out of time.? I need to solve this problem by the end of this week if possible, or by the end of next week at the absolute latest. So, I have two questions: 1) Is there a utility I could download that can convert a Geoserver installation to Mapserver? -- or -- 2) I *think* (crossing fingers) that the only thing I need to do, on the application side, is to convert the following Javascript call... var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", {layers: 'countries', bgcolor: 0x000055}); ...into its equivalent Mapserver call.? There are four countries.* files in the geoserver repository: countries.dbf countries.prj countries.shp countries.shx How do I create countries.map to serve these files, and what mapserv.exe call should I use? Many thanks for any and all assistance. Justin From warmerdam at pobox.com Tue Dec 9 09:17:33 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 09 Dec 2008 12:17:33 -0500 Subject: [mapserver-users] help with converting Geoserver site to Mapserver In-Reply-To: <539427.83179.qm@web46408.mail.sp1.yahoo.com> References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> Message-ID: <493EA82D.3060006@pobox.com> Justin Bailey wrote: > So, I have two questions: > > 1) Is there a utility I could download that can convert a Geoserver > installation to Mapserver? Justin, I am not aware of such a converter. > 2) I *think* (crossing fingers) that the only thing I need to do, on the > application side, is to convert the following Javascript call... > > var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", > {layers: 'countries', bgcolor: 0x000055}); This part will remain large the same with the exact "geoserver/wms?service=wms" string changing a bit depending on the name you set your MapServer WMS as. > ...into its equivalent Mapserver call. There are four countries.* files > in the geoserver repository: > > countries.dbf > countries.prj > countries.shp > countries.shx > > How do I create countries.map to serve these files, and what mapserv.exe > call should I use? MapServer works with shapefile easily so these files do not need to be altered. You really need to try reading through the mapserver documentation - particularly the new user resources and the basic mapserver tutorial. Your case does not appear complex on the face of it, so you just need to invest a day. One of the books about mapserver might also be a workwhile investment if you can get one quickly enough. While I don't envy you being put in this position, what needs to be done should be doable in a few days even starting from little knowledge of the topic assuming the styling and other requirements are not complex. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From adube at mapgears.com Tue Dec 9 09:21:01 2008 From: adube at mapgears.com (Alexandre Dube) Date: Tue, 09 Dec 2008 12:21:01 -0500 Subject: [mapserver-users] help with converting Geoserver site to Mapserver In-Reply-To: <539427.83179.qm@web46408.mail.sp1.yahoo.com> References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> Message-ID: <493EA8FD.9000900@mapgears.com> Hi Justin, MapServer already supports shapefiles format as datasource ( .shp ). There is plenty of informations on MapServer website about how to create your mapfile : http://mapserver.gis.umn.edu/docs/howto/wms_server Go and see the "3.3 Sample WMS Server Mapfile" section. This should be a good start for you. Hope this helps, Alexandre Justin Bailey wrote: > Hi list, > > I hope I can get some assistance on a matter of some urgency. Our > organization has been putting the finishing touches on an application > that is supposed to be released by the end of the year. Unexpectedly, > it did not pass license review, because it used Geoserver, which is > GPL-licensed. Since Mapserver has a more permissive license, and is > also WMS-compatible, the decision was made to switch to Mapserver. It > now falls to me, as the junior developer, to do a > last-minute switchover. Unfortunately I come to this task knowing > nothing about either Geoserver *or* Mapserver. > > After some difficulty I succeeded in getting Mapserver running on our > existing Tomcat server, but I have not been able to figure out how to > convert the Geoserver data. I have made some encouraging steps on the > Mapserver tutorial but I still know nothing about Geoserver, and I am > running out of time. I need to solve this problem by the end of this > week if possible, or by the end of next week at the absolute latest. > > > So, I have two questions: > > 1) Is there a utility I could download that can convert a Geoserver > installation to Mapserver? > > -- or -- > > 2) I *think* (crossing fingers) that the only thing I need to do, on > the application side, is to convert the following Javascript call... > > var wms = new OpenLayers.Layer.WMS("World", > "geoserver/wms?service=wms", {layers: 'countries', bgcolor: 0x000055}); > > ...into its equivalent Mapserver call. There are four countries.* > files in the geoserver repository: > > countries.dbf > countries.prj > countries.shp > countries.shx > > How do I create countries.map to serve these files, and what > mapserv.exe call should I use? > > > Many thanks for any and all assistance. > > Justin > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From jmckenna at gatewaygeomatics.com Tue Dec 9 10:13:54 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 09 Dec 2008 13:13:54 -0500 Subject: [mapserver-users] help with converting Geoserver site to Mapserver In-Reply-To: <539427.83179.qm@web46408.mail.sp1.yahoo.com> References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> Message-ID: <493EB562.1020904@gatewaygeomatics.com> Justin Bailey wrote: > > After some difficulty I succeeded in getting Mapserver running on our > existing Tomcat server, but I have not been able to figure out how to > convert the Geoserver data. Since I see that you are on windows, if you want to work locally and need a nice little package (containing MapServer and things like an Apache web server ready to use and some demo apps) try the MS4W package ("MapServer for Windows")...it's aimed at people like yourself (and myself) on Windows. It might help you learn the .map file syntax faster by looking at one of the MS4W add-on packages in action. You can grab it from maptools.org -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From pal.kristensen at statkart.no Tue Dec 9 11:20:39 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 9 Dec 2008 11:20:39 -0800 (PST) Subject: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver In-Reply-To: <539427.83179.qm@web46408.mail.sp1.yahoo.com> References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> Message-ID: <20921592.post@talk.nabble.com> Hi! If you could provide the shape file, I could set up a complete and working MapServer for Windows installation that only needs unzipping to the c:\ drive to work. The Map file will only contain basic styling of the file (like boundaries and maybe country names if your dataset contains that information). Changing the mapfile to add more complex drawing rules should be quite easy. Just let me know if you'd like me to help. It would be a great help if you could provide some information about the coordinate system support that you need. Regards, P?l Kristensen Norwegian Mapping and Cadastre Authority Justin Bailey-3 wrote: > > Hi list, > > I hope I can get some assistance on a matter of some urgency.? Our > organization has been putting the finishing touches on an application that > is supposed to be released by the end of the year.? Unexpectedly, it did > not pass license review, because it used Geoserver, which is > GPL-licensed.? Since Mapserver has a more permissive license, and is also > WMS-compatible, the decision was made to switch to Mapserver.? It now > falls to me, as the junior developer, to do?a last-minute?switchover.? > Unfortunately I come to this task knowing nothing about either Geoserver > *or* Mapserver. > > After some difficulty I succeeded in getting Mapserver running on our > existing Tomcat server, but I have not been able to figure out how to > convert the Geoserver data.? I have made some?encouraging steps on the > Mapserver tutorial but I still know nothing about Geoserver, and I am > running out of time.? I need to solve this problem by the end of this week > if possible, or by the end of next week at the absolute latest. > > > So, I have two questions: > > 1) Is there a utility I could download that can convert a Geoserver > installation to Mapserver? > > -- or -- > > 2) I *think* (crossing fingers) that the only thing I need to do, on the > application side, is to convert the following Javascript call... > > var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", > {layers: 'countries', bgcolor: 0x000055}); > > ...into its equivalent Mapserver call.? There are four countries.* files > in the geoserver repository: > > countries.dbf > countries.prj > countries.shp > countries.shx > > How do I create countries.map to serve these files, and what mapserv.exe > call should I use? > > > Many thanks for any and all assistance. > > Justin > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20921592.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue Dec 9 13:02:40 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 9 Dec 2008 23:02:40 +0200 Subject: [mapserver-users] help with converting Geoserver site to Mapserver References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> Message-ID: Hi, You should know by now that it is possible and easy to make a MapServer WMS service to deliver the same data that is now behind GeoServer WMS. That is for sure true. What I do not understand is why your organization thinks it is necessary. If your application is using just GeoServer WMS interface no part or your own code will be contaminated by GPL. But it will be a refreshing experience to study a bit how a similar result is achieved either with MapServer or Geoserver. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Justin Bailey L?hetetty: ti 9.12.2008 19:03 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] help with converting Geoserver site to Mapserver Hi list, I hope I can get some assistance on a matter of some urgency.? Our organization has been putting the finishing touches on an application that is supposed to be released by the end of the year.? Unexpectedly, it did not pass license review, because it used Geoserver, which is GPL-licensed.? Since Mapserver has a more permissive license, and is also WMS-compatible, the decision was made to switch to Mapserver.? It now falls to me, as the junior developer, to do?a last-minute?switchover.? Unfortunately I come to this task knowing nothing about either Geoserver *or* Mapserver. After some difficulty I succeeded in getting Mapserver running on our existing Tomcat server, but I have not been able to figure out how to convert the Geoserver data.? I have made some?encouraging steps on the Mapserver tutorial but I still know nothing about Geoserver, and I am running out of time.? I need to solve this problem by the end of this week if possible, or by the end of next week at the absolute latest. So, I have two questions: 1) Is there a utility I could download that can convert a Geoserver installation to Mapserver? -- or -- 2) I *think* (crossing fingers) that the only thing I need to do, on the application side, is to convert the following Javascript call... var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", {layers: 'countries', bgcolor: 0x000055}); ...into its equivalent Mapserver call.? There are four countries.* files in the geoserver repository: countries.dbf countries.prj countries.shp countries.shx How do I create countries.map to serve these files, and what mapserv.exe call should I use? Many thanks for any and all assistance. Justin From Bob.Bistrais at maine.gov Tue Dec 9 13:09:08 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 9 Dec 2008 16:09:08 -0500 Subject: [mapserver-users] Labels with SDE data Message-ID: <4EFF8BB964547748A07CA32961810C0412C480D8@SOM-TEAQASMAIL1.som.w2k.state.me.us> I am using ESRI SDE layers in a Map file. On some polygon layers, a text label appears as a strange symbol, such as horizontal lines or a square. If I convert the same layer to shapefile and use it as a source, the polygon labels look correct. How can I correct this so the labels look correct using SDE layers? -------------- next part -------------- An HTML attachment was scrubbed... URL: From justinbailey85 at yahoo.com Tue Dec 9 13:13:23 2008 From: justinbailey85 at yahoo.com (Justin Bailey) Date: Tue, 9 Dec 2008 13:13:23 -0800 (PST) Subject: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> <20921592.post@talk.nabble.com> Message-ID: <559419.75326.qm@web46416.mail.sp1.yahoo.com> Hi Mr. Kristensen, Thank you very much for you offer; I would greatly appreciate your help. The ZIP containing the shape file and other data is over 15 MB, so I will upload it using YouSendIt right after sending this post.? The coordinate system is?standard latitude/longitude; no need for MGRS or UTM or anything fancy.? The map should cover the entire globe..? Basic styling is fine; and the shape file should already contain the country boundaries. Justin P.S. To the others on this thread -- I feel I should correct a misconception.? I have already "invested" about three days in this project, one of which was spent just getting?mapserv.exe to run under?CGI.? I did not run to the mailing list as my first recourse; I am a firm believer that a person should put forth a best-effort attempt before asking for help. ? ________________________________ From: P?l Kristensen To: mapserver-users at lists.osgeo.org Sent: Tuesday, December 9, 2008 2:20:39 PM Subject: Re: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver Hi! If you could provide the shape file, I could set up a complete and working MapServer for Windows installation that only needs unzipping to the c:\ drive to work. The Map file will only contain basic styling of the file (like boundaries and maybe country names if your dataset contains that information). Changing the mapfile to add more complex drawing rules should be quite easy. Just let me know if you'd like me to help. It would be a great help if you could provide some information about the coordinate system support that you need. Regards, P?l Kristensen Norwegian Mapping and Cadastre Authority Justin Bailey-3 wrote: > > Hi list, > > I hope I can get some assistance on a matter of some urgency.? Our > organization has been putting the finishing touches on an application that > is supposed to be released by the end of the year.? Unexpectedly, it did > not pass license review, because it used Geoserver, which is > GPL-licensed.? Since Mapserver has a more permissive license, and is also > WMS-compatible, the decision was made to switch to Mapserver.? It now > falls to me, as the junior developer, to do?a last-minute?switchover.? > Unfortunately I come to this task knowing nothing about either Geoserver > *or* Mapserver. > > After some difficulty I succeeded in getting Mapserver running on our > existing Tomcat server, but I have not been able to figure out how to > convert the Geoserver data.? I have made some?encouraging steps on the > Mapserver tutorial but I still know nothing about Geoserver, and I am > running out of time.? I need to solve this problem by the end of this week > if possible, or by the end of next week at the absolute latest. > > > So, I have two questions: > > 1) Is there a utility I could download that can convert a Geoserver > installation to Mapserver? > > -- or -- > > 2) I *think* (crossing fingers) that the only thing I need to do, on the > application side, is to convert the following Javascript call... > > var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", > {layers: 'countries', bgcolor: 0x000055}); > > ...into its equivalent Mapserver call.? There are four countries.* files > in the geoserver repository: > > countries.dbf > countries.prj > countries.shp > countries.shx > > How do I create countries.map to serve these files, and what mapserv.exe > call should I use? > > > Many thanks for any and all assistance. > > Justin > > >? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20921592.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From justinbailey85 at yahoo.com Tue Dec 9 13:18:48 2008 From: justinbailey85 at yahoo.com (Justin Bailey) Date: Tue, 9 Dec 2008 13:18:48 -0800 (PST) Subject: [mapserver-users] help with converting Geoserver site to Mapserver References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> Message-ID: <414323.73326.qm@web46415.mail.sp1.yahoo.com> Hi Mr. Rahkonen, Yes, that is why it was unexpected. :(? It is my understanding that the senior developer used this very same rationale, but the license reviewer did not want to take the chance.? And the legal guys outrank the developers. Justin ________________________________ From: Rahkonen Jukka To: Justin Bailey ; mapserver-users at lists.osgeo.org Sent: Tuesday, December 9, 2008 4:02:40 PM Subject: Re: [mapserver-users] help with converting Geoserver site to Mapserver Hi, You should know by now that it is possible and easy to make a MapServer WMS service to deliver the same data that is now behind GeoServer WMS.? That is for sure true.? What I do not understand is why your organization thinks it is necessary.? If your application is using just GeoServer WMS interface no part or your own code will be contaminated by GPL. But it will be a refreshing experience to study a bit how a similar result is achieved either with MapServer or Geoserver. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Justin Bailey L?hetetty: ti 9.12.2008 19:03 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] help with converting Geoserver site to Mapserver Hi list, I hope I can get some assistance on a matter of some urgency.? Our organization has been putting the finishing touches on an application that is supposed to be released by the end of the year.? Unexpectedly, it did not pass license review, because it used Geoserver, which is GPL-licensed.? Since Mapserver has a more permissive license, and is also WMS-compatible, the decision was made to switch to Mapserver.? It now falls to me, as the junior developer, to do?a last-minute?switchover.? Unfortunately I come to this task knowing nothing about either Geoserver *or* Mapserver. After some difficulty I succeeded in getting Mapserver running on our existing Tomcat server, but I have not been able to figure out how to convert the Geoserver data.? I have made some?encouraging steps on the Mapserver tutorial but I still know nothing about Geoserver, and I am running out of time.? I need to solve this problem by the end of this week if possible, or by the end of next week at the absolute latest. So, I have two questions: 1) Is there a utility I could download that can convert a Geoserver installation to Mapserver? -- or -- 2) I *think* (crossing fingers) that the only thing I need to do, on the application side, is to convert the following Javascript call... var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", {layers: 'countries', bgcolor: 0x000055}); ...into its equivalent Mapserver call.? There are four countries.* files in the geoserver repository: countries.dbf countries.prj countries.shp countries.shx How do I create countries.map to serve these files, and what mapserv.exe call should I use? Many thanks for any and all assistance. Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at gmail.com Tue Dec 9 13:30:39 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Tue, 9 Dec 2008 15:30:39 -0600 Subject: [mapserver-users] Labels with SDE data In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C480D8@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C480D8@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <0EECAE99-85DE-457B-841B-81AEE25733A7@gmail.com> On Dec 9, 2008, at 3:09 PM, Bistrais, Bob wrote: > I am using ESRI SDE layers in a Map file. On some polygon layers, a > text label appears as a strange symbol, such as horizontal lines or > a square. If I convert the same layer to shapefile and use it as a > source, the polygon labels look correct. > > How can I correct this so the labels look correct using SDE layers? > The column you are labeling with likely has unicode characters in it and there is a bug in the MapServer SDE code. See this thread for some more detail. http://lists.osgeo.org/pipermail/mapserver-users/2008-November/058674.html Howard From Bob.Bistrais at maine.gov Tue Dec 9 13:33:14 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 9 Dec 2008 16:33:14 -0500 Subject: [mapserver-users] Labels with SDE data In-Reply-To: <0EECAE99-85DE-457B-841B-81AEE25733A7@gmail.com> References: <4EFF8BB964547748A07CA32961810C0412C480D8@SOM-TEAQASMAIL1.som.w2k.state.me.us> <0EECAE99-85DE-457B-841B-81AEE25733A7@gmail.com> Message-ID: <4EFF8BB964547748A07CA32961810C0412C480D9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Thanks Howard. Has anyone ever been able to find a workaround (besides using shapefiles)? -----Original Message----- From: Howard Butler [mailto:hobu.inc at gmail.com] Sent: Tuesday, December 09, 2008 4:31 PM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Labels with SDE data On Dec 9, 2008, at 3:09 PM, Bistrais, Bob wrote: > I am using ESRI SDE layers in a Map file. On some polygon layers, a > text label appears as a strange symbol, such as horizontal lines or a > square. If I convert the same layer to shapefile and use it as a > source, the polygon labels look correct. > > How can I correct this so the labels look correct using SDE layers? > The column you are labeling with likely has unicode characters in it and there is a bug in the MapServer SDE code. See this thread for some more detail. http://lists.osgeo.org/pipermail/mapserver-users/2008-November/058674.ht ml Howard From justinbailey85 at yahoo.com Tue Dec 9 13:12:54 2008 From: justinbailey85 at yahoo.com (justinbailey85 at yahoo.com) Date: Tue, 9 Dec 2008 13:12:54 -0800 (PST) Subject: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver Message-ID: <20081209211254.A103432104EF@wa-smtp-02.yousendit.com> Priority Delivery Here are the four country.* files, including country.shp. Download File at: http://rcpt.yousendit.com/632837246/80f9cbfe4b9fc57c65b9188f75104372 Sent by: Guest File to pick up: countries.zip File will remain active for: 7 days YouSendIt Inc. : http://www.yousendit.com Terms of Service: http://www.yousendit.com/cms/termsofservice Privacy Policy : http://www.yousendit.com/cms/privacypolicy DMCA Policy: http://www.yousendit.com/cms/dmca Opt Out: http://www.yousendit.com/blocking.php?action=optout&email=mapserver-users at lists.osgeo.org&key=883c21f4258259af99eb7e4ec3ac04ea5545c3cc -------------- next part -------------- An HTML attachment was scrubbed... URL: From godwin.liz at gmail.com Tue Dec 9 13:54:54 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 9 Dec 2008 16:54:54 -0500 Subject: [mapserver-users] Labels with SDE data In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C480D9@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C480D8@SOM-TEAQASMAIL1.som.w2k.state.me.us> <0EECAE99-85DE-457B-841B-81AEE25733A7@gmail.com> <4EFF8BB964547748A07CA32961810C0412C480D9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: We had this problem too. When we load data into SDE we now use a UTF8 keyword so that the string columns use varchar type instead of nvarchar. Cheers, Liz Eidsness On Tue, Dec 9, 2008 at 4:33 PM, Bistrais, Bob wrote: > Thanks Howard. Has anyone ever been able to find a workaround (besides > using shapefiles)? > > -----Original Message----- > From: Howard Butler [mailto:hobu.inc at gmail.com] > Sent: Tuesday, December 09, 2008 4:31 PM > To: Bistrais, Bob > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Labels with SDE data > > > On Dec 9, 2008, at 3:09 PM, Bistrais, Bob wrote: > > > I am using ESRI SDE layers in a Map file. On some polygon layers, a > > text label appears as a strange symbol, such as horizontal lines or a > > square. If I convert the same layer to shapefile and use it as a > > source, the polygon labels look correct. > > > > How can I correct this so the labels look correct using SDE layers? > > > > The column you are labeling with likely has unicode characters in it > and there is a bug in the MapServer SDE code. See this thread for > some more detail. > http://lists.osgeo.org/pipermail/mapserver-users/2008-November/058674.ht > ml > > Howard > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Wed Dec 10 04:20:33 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 10 Dec 2008 17:50:33 +0530 Subject: [mapserver-users] getting extent(urgent) Message-ID: Hi from where I will get GIS raster data? Actually I got some tiff images(from google snapshot)which has pixel extent (like 0,0,456,567). and using those images I am creating images. So obviously output will be same images. I need some tiff raster data files with longitude latitude extent. Is it possible to change the extent of pixels to long lat form?I know it is possible to get geo coordinates from raster file with lat long extent. Actually I want to calculate the lat long on any point of created image but then I need to have lat long extent (as reference point) so that I can calculate. Plz help me.... Thanks Amiya Patra -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Wed Dec 10 04:28:05 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 10 Dec 2008 04:28:05 -0800 (PST) Subject: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver In-Reply-To: <559419.75326.qm@web46416.mail.sp1.yahoo.com> References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> <20921592.post@talk.nabble.com> <559419.75326.qm@web46416.mail.sp1.yahoo.com> Message-ID: <20934362.post@talk.nabble.com> Hi Justin! I've recently uploaded (to YouSendIt) a ms4w archive with a predefined WMS service based on the countries dataset (which is included in my archive). Hope that it helps you in setting up your web applications. Regards, P?l Kristensen Justin Bailey-3 wrote: > > Hi Mr. Kristensen, > > Thank you very much for you offer; I would greatly appreciate your help. > > The ZIP containing the shape file and other data is over 15 MB, so I will > upload it using YouSendIt right after sending this post.? The coordinate > system is?standard latitude/longitude; no need for MGRS or UTM or anything > fancy.? The map should cover the entire globe..? Basic styling is fine; > and the shape file should already contain the country boundaries. > > Justin > > P.S. To the others on this thread -- I feel I should correct a > misconception.? I have already "invested" about three days in this > project, one of which was spent just getting?mapserv.exe to run > under?CGI.? I did not run to the mailing list as my first recourse; I am a > firm believer that a person should put forth a best-effort attempt before > asking for help. > > ? > > ________________________________ > From: P?l Kristensen > To: mapserver-users at lists.osgeo.org > Sent: Tuesday, December 9, 2008 2:20:39 PM > Subject: Re: [MAPSERVER-USERS] help with converting Geoserver site to > Mapserver > > > Hi! > > If you could provide the shape file, I could set up a complete and working > MapServer for Windows installation that only needs unzipping to the c:\ > drive to work. The Map file will only contain basic styling of the file > (like boundaries and maybe country names if your dataset contains that > information). Changing the mapfile to add more complex drawing rules > should > be quite easy. Just let me know if you'd like me to help. > > It would be a great help if you could provide some information about the > coordinate system support that you need. > > Regards, > P?l Kristensen > Norwegian Mapping and Cadastre Authority > > > > Justin Bailey-3 wrote: >> >> Hi list, >> >> I hope I can get some assistance on a matter of some urgency.? Our >> organization has been putting the finishing touches on an application >> that >> is supposed to be released by the end of the year.? Unexpectedly, it did >> not pass license review, because it used Geoserver, which is >> GPL-licensed.? Since Mapserver has a more permissive license, and is also >> WMS-compatible, the decision was made to switch to Mapserver.? It now >> falls to me, as the junior developer, to do?a last-minute?switchover.? >> Unfortunately I come to this task knowing nothing about either Geoserver >> *or* Mapserver. >> >> After some difficulty I succeeded in getting Mapserver running on our >> existing Tomcat server, but I have not been able to figure out how to >> convert the Geoserver data.? I have made some?encouraging steps on the >> Mapserver tutorial but I still know nothing about Geoserver, and I am >> running out of time.? I need to solve this problem by the end of this >> week >> if possible, or by the end of next week at the absolute latest. >> >> >> So, I have two questions: >> >> 1) Is there a utility I could download that can convert a Geoserver >> installation to Mapserver? >> >> -- or -- >> >> 2) I *think* (crossing fingers) that the only thing I need to do, on the >> application side, is to convert the following Javascript call... >> >> var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", >> {layers: 'countries', bgcolor: 0x000055}); >> >> ...into its equivalent Mapserver call.? There are four countries.* files >> in the geoserver repository: >> >> countries.dbf >> countries.prj >> countries.shp >> countries.shx >> >> How do I create countries.map to serve these files, and what mapserv.exe >> call should I use? >> >> >> Many thanks for any and all assistance. >> >> Justin >> >> >>? >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- > View this message in context: > http://www.nabble.com/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20921592.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20934362.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jose.maria.michia at gmail.com Wed Dec 10 05:02:20 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Wed, 10 Dec 2008 11:02:20 -0200 Subject: [mapserver-users] Polygon filled and with an image in the center ? In-Reply-To: <808778.53338.qm@web38203.mail.mud.yahoo.com> References: <808778.53338.qm@web38203.mail.mud.yahoo.com> Message-ID: Hi Carlos. The way that I know to make this, is use two layers with same source data. One layer as polygon layer, and the other layer as points, using centroids from first. Saludos Jos? Mar?a 2008/12/9 Carlos Ruiz : > Hi list, > > Does someone knows how to fill a polygon and put an image in the centroid > within the same > layer ? > > Thanks in advance > > IC Carlos Ruiz > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Schoenhammer.Herbert at Regensburg.de Wed Dec 10 04:53:12 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Wed, 10 Dec 2008 13:53:12 +0100 Subject: [mapserver-users] WFS: How to sort the WFS output in MS 5.x.x ? Message-ID: Hi list, until now I've been using mapserver 4.10.2 for generating wfs (for use with wfs-gazetteers). I determined the order of the wfs-output with the ORDER BY clause of the DATA-statement. Example: DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, haus_nr_zusatz, str_such_string, ... FROM stgk_hausnummern ORDER BY str_name,haus_nr,haus_nr_zusatz) as foo using unique fid using SRID=31468' The result: Changing the ORDER BY - clause caused changing the sort order of the output. ============================================================== Using mapserver 5.2.0 and mapserver 5.2.1 the ORDER BY - clause has obviously no effect. The wfs - output is always sorted by sort order given from attribute fid. Fid is the feature-id and implemented in the database as a unique-constraint. Is it possible to change the sort order in mapserver 5.x.x too? Has anybody a tipp for me, how this could be done ? Thanks Schoenhammer Herbert P.S. The generated urls are looking like: http://myserver/cgi-bin/getows?map=/data-umn/wfs/rgb_wfs_adressen.map&REQUEST=getFeature&Typename=adressen&Version=1.0.0&service=WFS&filter=%3Cogc:Filter+xmlns:ogc=%27http://ogc.org%27+xmlns:gml=%27http://www.opengis.net/gml%27%3E%3Cogc:PropertyIsLike+wildCard=%27*%27+singleChar=%27.%27+escape=%27!%27%3E%3Cogc:PropertyName%3Estr_such_string%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*MARTIN*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E -------------- next part -------------- An HTML attachment was scrubbed... URL: From snaperski at gmail.com Wed Dec 10 06:17:07 2008 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 10 Dec 2008 16:17:07 +0200 Subject: [mapserver-users] displaying line starting and ending points Message-ID: <49dc012b0812100617x492f46dbma9d7906036b53de@mail.gmail.com> Hello, I have a question concerning how to draw starting and ending points of line features. One option is to create a separate points layer in ArcGIS, where all the starting and ending points of lines are in. But is' t there some better solution or workaround how to get things done ? Humbly yours, Raivo From jose.maria.michia at gmail.com Wed Dec 10 06:44:00 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Wed, 10 Dec 2008 12:44:00 -0200 Subject: [mapserver-users] displaying line starting and ending points In-Reply-To: <49dc012b0812100617x492f46dbma9d7906036b53de@mail.gmail.com> References: <49dc012b0812100617x492f46dbma9d7906036b53de@mail.gmail.com> Message-ID: Hello, 2008/12/10 Raivo Alla : > Hello, > > I have a question concerning how to draw starting and ending points of > line features. > One option is to create a separate points layer in ArcGIS, where all > the starting and ending points of lines are in. > But is' t there some better solution or workaround how to get things done ? Using "Postgis" as data store, let you get the start and end points from line geometry with something like: DATA "geom from (SELECT oid,StartPoint(the_geom) FROM line_layer) as foo using unique oid using SRID=-1" And for end points: DATA "geom from (SELECT oid,EndPoint(the_geom) FROM line_layer) as foo using unique oid using SRID=-1" See: http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2572496 I do not know ArcGIS. Maybe there is something similar to this. Saludos Jos? Mar?a > > > Humbly yours, > Raivo > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Wed Dec 10 07:04:49 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 10 Dec 2008 16:04:49 +0100 Subject: [mapserver-users] displaying line starting and ending points In-Reply-To: References: <49dc012b0812100617x492f46dbma9d7906036b53de@mail.gmail.com> Message-ID: a couple of links: http://trac.osgeo.org/mapserver/browser/trunk/msautotest/misc/rfc48.map http://trac.osgeo.org/mapserver/browser/trunk/msautotest/misc/expected/rfc48.png On Wed, Dec 10, 2008 at 16:02, thomas bonfort wrote: > rfc48 has just entered the mapserver trunk, and will be present in 5.4 > > to apply a style block to just the start point, you'd use something like > > STYLE > GEOMTRANSFORM "start" > SYMBOL "mysymbol" > SIZE .... > ANGLE AUTO #to orient the symbol along the first segment > END > > you also get the "end" and "vertices" geomtransform to apply the style > to last or intermediate points of the line. > > cheers, > thomas > > On Wed, Dec 10, 2008 at 15:44, Jos? Mar?a Michia > wrote: >> Hello, >> >> 2008/12/10 Raivo Alla : >>> Hello, >>> >>> I have a question concerning how to draw starting and ending points of >>> line features. >>> One option is to create a separate points layer in ArcGIS, where all >>> the starting and ending points of lines are in. >>> But is' t there some better solution or workaround how to get things done ? >> >> Using "Postgis" as data store, let you get the start and end points >> from line geometry with something like: >> >> DATA "geom from (SELECT oid,StartPoint(the_geom) FROM line_layer) as >> foo using unique oid using SRID=-1" >> >> And for end points: >> >> DATA "geom from (SELECT oid,EndPoint(the_geom) FROM line_layer) as foo >> using unique oid using SRID=-1" >> >> See: >> >> http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2572496 >> >> I do not know ArcGIS. Maybe there is something similar to this. >> >> Saludos >> Jos? Mar?a >> >>> >>> >>> Humbly yours, >>> Raivo >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From thomas.bonfort at gmail.com Wed Dec 10 07:02:53 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 10 Dec 2008 16:02:53 +0100 Subject: [mapserver-users] displaying line starting and ending points In-Reply-To: References: <49dc012b0812100617x492f46dbma9d7906036b53de@mail.gmail.com> Message-ID: rfc48 has just entered the mapserver trunk, and will be present in 5.4 to apply a style block to just the start point, you'd use something like STYLE GEOMTRANSFORM "start" SYMBOL "mysymbol" SIZE .... ANGLE AUTO #to orient the symbol along the first segment END you also get the "end" and "vertices" geomtransform to apply the style to last or intermediate points of the line. cheers, thomas On Wed, Dec 10, 2008 at 15:44, Jos? Mar?a Michia wrote: > Hello, > > 2008/12/10 Raivo Alla : >> Hello, >> >> I have a question concerning how to draw starting and ending points of >> line features. >> One option is to create a separate points layer in ArcGIS, where all >> the starting and ending points of lines are in. >> But is' t there some better solution or workaround how to get things done ? > > Using "Postgis" as data store, let you get the start and end points > from line geometry with something like: > > DATA "geom from (SELECT oid,StartPoint(the_geom) FROM line_layer) as > foo using unique oid using SRID=-1" > > And for end points: > > DATA "geom from (SELECT oid,EndPoint(the_geom) FROM line_layer) as foo > using unique oid using SRID=-1" > > See: > > http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2572496 > > I do not know ArcGIS. Maybe there is something similar to this. > > Saludos > Jos? Mar?a > >> >> >> Humbly yours, >> Raivo >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From charlton at 2creek.com Wed Dec 10 08:36:03 2008 From: charlton at 2creek.com (Charlton Galvarino) Date: Wed, 10 Dec 2008 11:36:03 -0500 Subject: [mapserver-users] how to throw a custom ExceptionReport Message-ID: <97FDCEA6D905154D94E20D02312C8A310C13EDDAB7@mse18be1.mse18.exchange.ms> Hi, all. I intercept WMS calls on a regular basis using Perl CGI and a final print redirect('mapserv?...'); to actually send the WMS request along. I have the case where I'd like to throw a custom ExceptionReport, but I haven't had much luck so far in getting mapserver not to misunderstand it and throw its own WMS ServiceException. What I'm trying to do is to communicate to the user, "Hey, you've asked for a file I don't have." So what I have is an incoming WMS request. I snag the request, try to find a matching file. If I find it, great, I send the image generation request along and pass it back thru. If it doesn't, I'd like to spit out the XML message. I copied the structure of a mapserver msg and tried making it my own. print $query->header('text/xml'); print < Sorry, Charlie, you're out of luck. EOH exit; But I think I'm confusing myself of how my error messages interface w/ mapserver's. Thanks for any advice. Charlton Galvarino 1 (803) 233-6205 : voice 1 (803) 223-9579 : fax charlton at 2creek.com P.O. Box 50960 Columbia, SC 29250 From Tom.Kralidis at ec.gc.ca Wed Dec 10 08:41:55 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Wed, 10 Dec 2008 11:41:55 -0500 Subject: [mapserver-users] how to throw a custom ExceptionReport In-Reply-To: <97FDCEA6D905154D94E20D02312C8A310C13EDDAB7@mse18be1.mse18.exchange.ms> References: <97FDCEA6D905154D94E20D02312C8A310C13EDDAB7@mse18be1.mse18.exchange.ms> Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Charlton Galvarino > Sent: Wednesday, 10 December 2008 11:36 > To: Mapserver Users (mapserver-users at lists.osgeo.org) > Subject: [mapserver-users] how to throw a custom ExceptionReport > > Hi, all. I intercept WMS calls on a regular basis using Perl > CGI and a final print redirect('mapserv?...'); to actually > send the WMS request along. > > I have the case where I'd like to throw a custom > ExceptionReport, but I haven't had much luck so far in > getting mapserver not to misunderstand it and throw its own > WMS ServiceException. > > What I'm trying to do is to communicate to the user, "Hey, > you've asked for a file I don't have." > > So what I have is an incoming WMS request. I snag the > request, try to find a matching file. If I find it, great, I > send the image generation request along and pass it back > thru. If it doesn't, I'd like to spit out the XML message. > > I copied the structure of a mapserver msg and tried making it my own. > > print $query->header('text/xml'); > print < > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > Sorry, Charlie, you're out of luck. > > > EOH > exit; > > But I think I'm confusing myself of how my error messages > interface w/ mapserver's. > You can use Perl mapscript WxS to intercept and return a custom exception. Check out http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and examples. Hope this helps. ..Tom > Thanks for any advice. > > > > > Charlton Galvarino > 1 (803) 233-6205 : voice > 1 (803) 223-9579 : fax > charlton at 2creek.com > > P.O. Box 50960 > Columbia, SC 29250 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From charlton at 2creek.com Wed Dec 10 08:49:28 2008 From: charlton at 2creek.com (Charlton Galvarino) Date: Wed, 10 Dec 2008 11:49:28 -0500 Subject: [mapserver-users] how to throw a custom ExceptionReport In-Reply-To: References: <97FDCEA6D905154D94E20D02312C8A310C13EDDAB7@mse18be1.mse18.exchange.ms> Message-ID: <97FDCEA6D905154D94E20D02312C8A310C13EDDAD0@mse18be1.mse18.exchange.ms> > You can use Perl mapscript WxS to intercept and return a custom > exception. Check out > http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and > examples. Funny, I remember that link flying by recently. Thanks, Tom, I'll give that a shot. From snaperski at gmail.com Wed Dec 10 10:23:49 2008 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 10 Dec 2008 20:23:49 +0200 Subject: [mapserver-users] displaying line starting and ending points In-Reply-To: References: <49dc012b0812100617x492f46dbma9d7906036b53de@mail.gmail.com> Message-ID: <49dc012b0812101023x1acf2b78w7196bb80d790d27f@mail.gmail.com> Thank you Thomas and thank you Jos? Mar?a (I'll try something similar with ArcSDE soon). Almost happy, Raivo On Wed, Dec 10, 2008 at 5:04 PM, thomas bonfort wrote: > a couple of links: > > http://trac.osgeo.org/mapserver/browser/trunk/msautotest/misc/rfc48.map > http://trac.osgeo.org/mapserver/browser/trunk/msautotest/misc/expected/rfc48.png > > > On Wed, Dec 10, 2008 at 16:02, thomas bonfort wrote: >> rfc48 has just entered the mapserver trunk, and will be present in 5.4 >> >> to apply a style block to just the start point, you'd use something like >> >> STYLE >> GEOMTRANSFORM "start" >> SYMBOL "mysymbol" >> SIZE .... >> ANGLE AUTO #to orient the symbol along the first segment >> END >> >> you also get the "end" and "vertices" geomtransform to apply the style >> to last or intermediate points of the line. >> >> cheers, >> thomas >> >> On Wed, Dec 10, 2008 at 15:44, Jos? Mar?a Michia >> wrote: >>> Hello, >>> >>> 2008/12/10 Raivo Alla : >>>> Hello, >>>> >>>> I have a question concerning how to draw starting and ending points of >>>> line features. >>>> One option is to create a separate points layer in ArcGIS, where all >>>> the starting and ending points of lines are in. >>>> But is' t there some better solution or workaround how to get things done ? >>> >>> Using "Postgis" as data store, let you get the start and end points >>> from line geometry with something like: >>> >>> DATA "geom from (SELECT oid,StartPoint(the_geom) FROM line_layer) as >>> foo using unique oid using SRID=-1" >>> >>> And for end points: >>> >>> DATA "geom from (SELECT oid,EndPoint(the_geom) FROM line_layer) as foo >>> using unique oid using SRID=-1" >>> >>> See: >>> >>> http://postgis.refractions.net/documentation/manual-1.3/ch06.html#id2572496 >>> >>> I do not know ArcGIS. Maybe there is something similar to this. >>> >>> Saludos >>> Jos? Mar?a >>> >>>> >>>> >>>> Humbly yours, >>>> Raivo >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > From charlton at 2creek.com Wed Dec 10 11:52:14 2008 From: charlton at 2creek.com (Charlton Galvarino) Date: Wed, 10 Dec 2008 14:52:14 -0500 Subject: [mapserver-users] how to throw a custom ExceptionReport In-Reply-To: References: <97FDCEA6D905154D94E20D02312C8A310C13EDDAB7@mse18be1.mse18.exchange.ms> Message-ID: <97FDCEA6D905154D94E20D02312C8A310C13EDDBC0@mse18be1.mse18.exchange.ms> Tom, I've thought about this long and hard, and I can't wrap my head around it. > You can use Perl mapscript WxS to intercept and return a custom > exception. Check out > http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and > examples. It looks like those examples are doing what I'm doing in the end . . . dumping out XML. But perhaps what I need accomplished is a bit trickier? I don't think I explained in enough detail what I'm doing. I have a .map that contains something like: # demo.map LAYER NAME wind_wave_period_and_direction PROJECTION "init=epsg:4269" END TYPE RASTER STATUS OFF CONNECTION "http://localhost/viz" CONNECTIONTYPE WMS METADATA "ows_title" "wind_wave_period_and_direction" "wms_extent" "-100 5 -60 50" "wms_srs" "EPSG:4269" "wms_name" "ww3dir_info" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_connectiontimeout" "90" END So what I'm really doing is a cascade WMS request because I'm asking that .amp for the wind_wave_period_and_direction layer. http://localhost/mapserv?map=demo.map. The thing that I need to throw the error is the viz CGI in the CONNECTION string above. So perhaps my question boils down to . . . What could viz spit out so that this WMS request would know it sees an error via something like EXCEPTIONS=application/vnd.ogc.se_inimage? What I'm getting now, instead, is the MapServer error saying that the WMS returned an XML exception. Well, yes, it did -- but I want to SEE it! :) TIA. From Tom.Kralidis at ec.gc.ca Wed Dec 10 12:15:30 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Wed, 10 Dec 2008 15:15:30 -0500 Subject: [mapserver-users] how to throw a custom ExceptionReport In-Reply-To: <97FDCEA6D905154D94E20D02312C8A310C13EDDBC0@mse18be1.mse18.exchange.ms> References: <97FDCEA6D905154D94E20D02312C8A310C13EDDAB7@mse18be1.mse18.exchange.ms> <97FDCEA6D905154D94E20D02312C8A310C13EDDBC0@mse18be1.mse18.exchange.ms> Message-ID: > -----Original Message----- > From: Charlton Galvarino [mailto:charlton at 2creek.com] > Sent: Wednesday, 10 December 2008 14:52 > To: Kralidis,Tom [Ontario]; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] how to throw a custom ExceptionReport > > Tom, I've thought about this long and hard, and I can't wrap > my head around it. > > > You can use Perl mapscript WxS to intercept and return a custom > > exception. Check out > > http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for info and > > examples. > > It looks like those examples are doing what I'm doing in the > end . . . dumping out XML. But perhaps what I need > accomplished is a bit trickier? I don't think I explained in > enough detail what I'm doing. > > I have a .map that contains something like: > > # demo.map > LAYER > NAME wind_wave_period_and_direction > PROJECTION > "init=epsg:4269" > END > TYPE RASTER > STATUS OFF > CONNECTION "http://localhost/viz" > CONNECTIONTYPE WMS > METADATA > "ows_title" "wind_wave_period_and_direction" > "wms_extent" "-100 5 -60 50" > "wms_srs" "EPSG:4269" > "wms_name" "ww3dir_info" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > "wms_connectiontimeout" "90" > END > > So what I'm really doing is a cascade WMS request because I'm > asking that .amp for the wind_wave_period_and_direction > layer. http://localhost/mapserv?map=demo.map. > > The thing that I need to throw the error is the viz CGI in > the CONNECTION string above. > > So perhaps my question boils down to . . . > > What could viz spit out so that this WMS request would know > it sees an error via something like > EXCEPTIONS=application/vnd.ogc.se_inimage? What I'm getting > now, instead, is the MapServer error saying that the WMS > returned an XML exception. Well, yes, it did -- but I want > to SEE it! :) > Looks like Charlton wants to show the ExceptionText from a remote WMS's service exception. I'm not sure you can do this as it stands right now without some custom work. Options/comments: - you'd have to ensure the remote WMS support application/vnd.ogc.se_xml - can you catch an error when doing a remote WMS request from the mapscript object model? Others may have better ideas. Having said this, I think this would be a valuable enhancement to the codebase, i.e. allowing to show cascaded ExceptionReport XML. The ExceptionReport XML model allows for multiplicitity of Exception elements, so we could stack these to show the generic MapServer error, as well as the cascaded, say, WMS Exception/ExceptionText. ..Tom > TIA. > From Steve.Lime at dnr.state.mn.us Wed Dec 10 12:29:31 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 10 Dec 2008 14:29:31 -0600 Subject: [mapserver-users] Polygon filled and with an image in the center ? In-Reply-To: <808778.53338.qm@web38203.mail.mud.yahoo.com> References: <808778.53338.qm@web38203.mail.mud.yahoo.com> Message-ID: <493FD24B.5157.008F.0@dnr.state.mn.us> With 5.2 and earlier you can't do this with one layer. You have to use one polygon layer and one annotation layer. The next version will allow these types of transformations at the style layer (see the recent discussion on end points). The code is in the main trunk if you're feeling adventuresome. Steve >>> On 12/9/2008 at 9:44 AM, in message <808778.53338.qm at web38203.mail.mud.yahoo.com>, Carlos Ruiz wrote: > Hi list, > > Does someone knows how to fill a polygon and put an image in the centroid > within the same > layer ? > > Thanks in advance > > IC Carlos Ruiz > > > From Michelle.Douville at gov.bc.ca Wed Dec 10 13:09:30 2008 From: Michelle.Douville at gov.bc.ca (Douville, Michelle R ILMB:EX) Date: Wed, 10 Dec 2008 13:09:30 -0800 Subject: [mapserver-users] Parsing Mapserver Logs for usage stats Message-ID: <0FB1F527BFBF944991C0DBF8910F5B0A473A20@candle.idir.bcgov> Has anyone written a script/application to parse the mapserver logs for summary usage stats and average time per layer? Michelle Douville GeoBC Infrastructure Services Branch Integrated Land Management Bureau Ministry of Agriculture & Lands -------------- next part -------------- An HTML attachment was scrubbed... URL: From justinbailey85 at yahoo.com Wed Dec 10 15:40:24 2008 From: justinbailey85 at yahoo.com (Justin Bailey) Date: Wed, 10 Dec 2008 15:40:24 -0800 (PST) Subject: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver References: <539427.83179.qm@web46408.mail.sp1.yahoo.com> <20921592.post@talk.nabble.com> <559419.75326.qm@web46416.mail.sp1.yahoo.com> <20934362.post@talk.nabble.com> Message-ID: <944224.94946.qm@web46412.mail.sp1.yahoo.com> Mr. Kristensen, Brilliant! That was exactly what I needed. A correctly written mapfile was the last remaining major obstacle, and your installation helped me get through that as well as a bunch of other minor problems. Thanks so much! I will also be checking out the links and recommendations from other people in this thread, since I have a small bit of time remaining on this task. Many thanks. Justin ________________________________ From: P?l Kristensen To: mapserver-users at lists.osgeo.org Sent: Wednesday, December 10, 2008 7:28:05 AM Subject: Re: [MAPSERVER-USERS] help with converting Geoserver site to Mapserver Hi Justin! I've recently uploaded (to YouSendIt) a ms4w archive with a predefined WMS service based on the countries dataset (which is included in my archive). Hope that it helps you in setting up your web applications. Regards, P?l Kristensen Justin Bailey-3 wrote: > > Hi Mr. Kristensen, > > Thank you very much for you offer; I would greatly appreciate your help. > > The ZIP containing the shape file and other data is over 15 MB, so I will > upload it using YouSendIt right after sending this post. The coordinate > system is standard latitude/longitude; no need for MGRS or UTM or anything > fancy. The map should cover the entire globe.. Basic styling is fine; > and the shape file should already contain the country boundaries. > > Justin > > P.S. To the others on this thread -- I feel I should correct a > misconception. I have already "invested" about three days in this > project, one of which was spent just getting mapserv.exe to run > under CGI. I did not run to the mailing list as my first recourse; I am a > firm believer that a person should put forth a best-effort attempt before > asking for help. > > > > ________________________________ > From: P?l Kristensen > To: mapserver-users at lists.osgeo.org > Sent: Tuesday, December 9, 2008 2:20:39 PM > Subject: Re: [MAPSERVER-USERS] help with converting Geoserver site to > Mapserver > > > Hi! > > If you could provide the shape file, I could set up a complete and working > MapServer for Windows installation that only needs unzipping to the c:\ > drive to work. The Map file will only contain basic styling of the file > (like boundaries and maybe country names if your dataset contains that > information). Changing the mapfile to add more complex drawing rules > should > be quite easy. Just let me know if you'd like me to help. > > It would be a great help if you could provide some information about the > coordinate system support that you need. > > Regards, > P?l Kristensen > Norwegian Mapping and Cadastre Authority > > > > Justin Bailey-3 wrote: >> >> Hi list, >> >> I hope I can get some assistance on a matter of some urgency. Our >> organization has been putting the finishing touches on an application >> that >> is supposed to be released by the end of the year. Unexpectedly, it did >> not pass license review, because it used Geoserver, which is >> GPL-licensed. Since Mapserver has a more permissive license, and is also >> WMS-compatible, the decision was made to switch to Mapserver. It now >> falls to me, as the junior developer, to do a last-minute switchover. >> Unfortunately I come to this task knowing nothing about either Geoserver >> *or* Mapserver. >> >> After some difficulty I succeeded in getting Mapserver running on our >> existing Tomcat server, but I have not been able to figure out how to >> convert the Geoserver data. I have made some encouraging steps on the >> Mapserver tutorial but I still know nothing about Geoserver, and I am >> running out of time. I need to solve this problem by the end of this >> week >> if possible, or by the end of next week at the absolute latest. >> >> >> So, I have two questions: >> >> 1) Is there a utility I could download that can convert a Geoserver >> installation to Mapserver? >> >> -- or -- >> >> 2) I *think* (crossing fingers) that the only thing I need to do, on the >> application side, is to convert the following Javascript call... >> >> var wms = new OpenLayers.Layer.WMS("World", "geoserver/wms?service=wms", >> {layers: 'countries', bgcolor: 0x000055}); >> >> ...into its equivalent Mapserver call. There are four countries.* files >> in the geoserver repository: >> >> countries.dbf >> countries.prj >> countries.shp >> countries.shx >> >> How do I create countries.map to serve these files, and what mapserv.exe >> call should I use? >> >> >> Many thanks for any and all assistance. >> >> Justin >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- > View this message in context: > http://www.nabble.com/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20921592.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/help-with-converting-Geoserver-site-to-Mapserver-tp20919019p20934362.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Dec 10 19:53:58 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 11 Dec 2008 09:23:58 +0530 Subject: [mapserver-users] How to add different PIXMAP Symbols for Point Layer based on user click on map Message-ID: <001b01c95b44$1ade2680$509a7380$@com> Dear All, How to add different types of PIXMAP Symbols to point layer based on user click on the map. At present I can able to assign only single pixmap symbol. Below is my code to load single symbol. This is my mapfile code Layer # Layer starts here Name "PointLayer" #======================== POSTGRE SQL Server Connection ============================================ ConnectionType POSTGIS Connection "host=localhost dbname=GIS password=administrator user=postgres port=5432" Data "the_geom from globalnews" #=========================================================================== ======================== Type POINT Status ON TEMPLATE "query.html" # temporary template file for Query map End # end of the State Layer ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---- And here I am loading C# code public static void LaodStyles(mapObj map,layerObj layer) { layer=map.getLayerByName("PoinLayer"); symbolObj getSymbol = new symbolObj("Symbol", null); getSymbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_PIXMAP; getSymbol.setImagepath(@"\RIP\MapFile\round_push_2.gif"); getSymbol.sizex = 100; getSymbol.sizey = 100; map.symbolset.appendSymbol(getSymbol); classObj clsObj = new classObj(layer); clsObj.name = "test"; styleObj symStyle = new styleObj(clsObj); symStyle.symbolname = "Symbol"; symStyle.symbol = map.symbolset.index("Symbol"); symStyle.size = 75; } Please any can help me or at least suggest me something.I am waiting for your great response. Advanced Thanks. Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From p_kruschitz at hotmail.com Thu Dec 11 02:11:04 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Thu, 11 Dec 2008 02:11:04 -0800 (PST) Subject: [MAPSERVER-USERS] WMS: layer status turned to on Message-ID: <20952698.post@talk.nabble.com> Hi list, I have a question concerning the behaviour of Mapserver when acting as a WMS server. We have a web mapping application rendering roads and landcover information for all Europe. As the dataset is pretty huge, we have to use multiple, scale-dependant mapfiles. This was necessary because most of the data had to be generalized to improve performance at small scales. The layers with the same name in different mapfiles therefore use different geometries and some of the layers aren't used in all mapfiles. For example, the biggest layer, containing the local roads, is only used in the two last mapfiles, at a very large scale. I was asked to make the data available as a (demo) web mapping service. To do this, I added, in our application, a servlet that would pass the request to MS, calling different mapfiles while the scale changes. In order to be able to answer the GetCapabilities request, a dummy mapfile had to be written, containing all the layers that were used across the other mapfiles. This forced me to also add the 'missing' layers in each mapfile. For example, the local roads layer had to be added to the smaller scale mapfiles. The status of those additional layers was put to OFF, but the MS apparently turns the status to ON when the whole mapfile is requested (WMS request --> LAYERS=mapobject_name). As a workaround, to not have the other layers displayed, I deleted the class objects in the additional layers, but MS logically has to prepare the whole layer for display anyway, resulting in horrendous drawing times at small scales. When the single layers are selected in the request (LAYERS=country,highways,...), the map will draw very fast. So my question is, is there a way not having the layer status turned to ON when the 'root' WMS layer is selected? Or maybe there is another way to tell MS to not prepare those layers? As the mapfiles and data structure are very complex, setting up dummy (empty) data for each layer would take quite a long time. I know the whole thing isn't very clean and thoroughly thought through, but it had to be completed very fast and that was the best solution I came up with. If some of you have ideas on how to improve it, I would be very glad to listen to your suggestions. Best regards, Philippe Kruschitz PS: We're using Mapserver 5.0.0 -- View this message in context: http://www.nabble.com/WMS%3A-layer-status-turned-to-on-tp20952698p20952698.html Sent from the Mapserver - User mailing list archive at Nabble.com. From knb at gfz-potsdam.de Thu Dec 11 02:12:26 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Thu, 11 Dec 2008 11:12:26 +0100 Subject: [mapserver-users] agg support and accents umlauts In-Reply-To: <493CFA5D.5090704@gfz-potsdam.de> References: <49395769.2040507@gfz-potsdam.de> <493CFA5D.5090704@gfz-potsdam.de> Message-ID: <4940E78A.1000708@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This is my final post on this subject, just to end this topic on a positive note. Although the font management tools on solaris 10 release 08/07 always dump core after a few keystrokes and button clicks, Solaris' truetype fonts themselves are okay. On the machine can alternatively be determined with a unix "find /usr -name "*.ttf" command. Add a few other perl one-liners to create a fontlist file which can be used with the mapserver FONTSET directive. Arial-Bold /usr/openwin/lib/X11/fonts/TrueType/Arial-Bold.ttf Arial-Italic /usr/openwin/lib/X11/fonts/TrueType/Arial-Italic.ttf Arial /usr/openwin/lib/X11/fonts/TrueType/Arial.ttf .... When truetype fonts are used (instead of agg's built-in raster fonts) in the layers/mapfiles, then the agg renderer works properly. Knut Just to end this on a positive > Support for Truetype fonts on my Solaris "box" seems to be shaky: > > What I get is similar to this bug report (reported by someone else): > > http://bugs.opensolaris.org/view_bug.do?bug_id=6633698 > > sdtfontadm, sdtfontadd, sdtfontls crash on Solaris 10 08/07 Sparc and > X86 (and some on U3 sparc): > > /usr/dt/bin/sdtfontls /usr/openwin/lib/X11/fonts/TrueType > > Segmentation Fault(coredump) > > Work Around > N/A > > I don't have the time to investigate this myself. > > Maybe I can get it done with a minimal fontset file created manually. > > - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Heinrich-Mann-Allee 18/19 URL : www.icdp-online.org Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklA54oACgkQcfWHNfIsrO9fPACfYDSK+NwKLAQIWpQccwFhuV9b wBgAoI1xMRngXg0F3J4pIfP3QNJ8KeJM =Yt+P -----END PGP SIGNATURE----- From adube at mapgears.com Thu Dec 11 06:12:20 2008 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 11 Dec 2008 09:12:20 -0500 Subject: [MAPSERVER-USERS] WMS: layer status turned to on In-Reply-To: <20952698.post@talk.nabble.com> References: <20952698.post@talk.nabble.com> Message-ID: <49411FC4.7090006@mapgears.com> Philippe Kruschitz wrote: > Hi list, > > I have a question concerning the behaviour of Mapserver when acting as a WMS > server. We have a web mapping application rendering roads and landcover > information for all Europe. As the dataset is pretty huge, we have to use > multiple, scale-dependant mapfiles. This was necessary because most of the > data had to be generalized to improve performance at small scales. The > layers with the same name in different mapfiles therefore use different > geometries and some of the layers aren't used in all mapfiles. For example, > the biggest layer, containing the local roads, is only used in the two last > mapfiles, at a very large scale. > > I was asked to make the data available as a (demo) web mapping service. To > do this, I added, in our application, a servlet that would pass the request > to MS, calling different mapfiles while the scale changes. In order to be > able to answer the GetCapabilities request, a dummy mapfile had to be > written, containing all the layers that were used across the other mapfiles. > This forced me to also add the 'missing' layers in each mapfile. > > For example, the local roads layer had to be added to the smaller scale > mapfiles. The status of those additional layers was put to OFF, but the MS > apparently turns the status to ON when the whole mapfile is requested (WMS > request --> LAYERS=mapobject_name). As a workaround, to not have the other > layers displayed, I deleted the class objects in the additional layers, but > MS logically has to prepare the whole layer for display anyway, resulting in > horrendous drawing times at small scales. When the single layers are > selected in the request (LAYERS=country,highways,...), the map will draw > very fast. > > So my question is, is there a way not having the layer status turned to ON > when the 'root' WMS layer is selected? Or maybe there is another way to tell > MS to not prepare those layers? As the mapfiles and data structure are very > complex, setting up dummy (empty) data for each layer would take quite a > long time. > > Using MINSCALEDENOM and MAXSCALEDENOM could resolve your problem. Set MINSCALEDENOM to 1 to the layers you don't want to show in the dummy layer. I'm not sure if that's what you want though, maybe you could share a small portion of your mapfile. An other long solution you could do is to merge all your mapfiles in one big mapfile and using MINSCALEDENOM and MAXSCALEDENOM, determine which layer is displayed. Layers from the same data source that has been generalized would then have a unique name, but you could use GROUP and use the group name to call your layers in your requests. What do you think ? Alexandre > I know the whole thing isn't very clean and thoroughly thought through, but > it had to be completed very fast and that was the best solution I came up > with. If some of you have ideas on how to improve it, I would be very glad > to listen to your suggestions. > > Best regards, > > Philippe Kruschitz > > PS: We're using Mapserver 5.0.0 > > > > > -- Alexandre Dub? Mapgears www.mapgears.com From amiyapatra188 at gmail.com Thu Dec 11 06:16:29 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Thu, 11 Dec 2008 19:46:29 +0530 Subject: [mapserver-users] Integration and extent .............. Message-ID: Hi,, How I will get raster data with lat long extent (free)? I have one map appilication which I wrote in php mapscript.And I have also one jsp application. Now I want to integratefirst one with tomcat(2nd one). Actually what I done ....I simple created a hyperlink from my jsp page to map application. If I run tomcat and used that link it works fine.jsp application as well as mapscript application. Mapserver is cgi based.....and tomcat????????(using diff port) Please anybody can explain why it is working fine................ Please tell me how I will get the lat long extent from pixel extent(like 0,0,234,345) .....I think it is not possible at all....................But I want to be sure.......... Plz reply me soon............................I am very new mapserver user............................plz help me .................. Thanks............. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Thu Dec 11 06:31:04 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 11 Dec 2008 09:31:04 -0500 Subject: [MAPSERVER-USERS] WMS: layer status turned to on In-Reply-To: <49411FC4.7090006@mapgears.com> References: <20952698.post@talk.nabble.com> <49411FC4.7090006@mapgears.com> Message-ID: <4EFF8BB964547748A07CA32961810C0412C480ED@SOM-TEAQASMAIL1.som.w2k.state.me.us> I am facing a similar problem. In my case, though, I would like the layers in question to default to Status Off, not for scale reasons, but simply because we don't want the layers displayed by default. The individual layer files are set to Status Off, but when the WMS service is loaded into, for example, ArcGIS, the layers are on by default. -----Original Message----- From: Alexandre Dube [mailto:adube at mapgears.com] Sent: Thursday, December 11, 2008 9:12 AM To: Philippe Kruschitz Cc: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] WMS: layer status turned to on Philippe Kruschitz wrote: > Hi list, > > I have a question concerning the behaviour of Mapserver when acting as a WMS > server. We have a web mapping application rendering roads and landcover > information for all Europe. As the dataset is pretty huge, we have to use > multiple, scale-dependant mapfiles. This was necessary because most of the > data had to be generalized to improve performance at small scales. The > layers with the same name in different mapfiles therefore use different > geometries and some of the layers aren't used in all mapfiles. For example, > the biggest layer, containing the local roads, is only used in the two last > mapfiles, at a very large scale. > > I was asked to make the data available as a (demo) web mapping service. To > do this, I added, in our application, a servlet that would pass the request > to MS, calling different mapfiles while the scale changes. In order to be > able to answer the GetCapabilities request, a dummy mapfile had to be > written, containing all the layers that were used across the other mapfiles. > This forced me to also add the 'missing' layers in each mapfile. > > For example, the local roads layer had to be added to the smaller scale > mapfiles. The status of those additional layers was put to OFF, but the MS > apparently turns the status to ON when the whole mapfile is requested (WMS > request --> LAYERS=mapobject_name). As a workaround, to not have the other > layers displayed, I deleted the class objects in the additional layers, but > MS logically has to prepare the whole layer for display anyway, resulting in > horrendous drawing times at small scales. When the single layers are > selected in the request (LAYERS=country,highways,...), the map will draw > very fast. > > So my question is, is there a way not having the layer status turned to ON > when the 'root' WMS layer is selected? Or maybe there is another way to tell > MS to not prepare those layers? As the mapfiles and data structure are very > complex, setting up dummy (empty) data for each layer would take quite a > long time. > > Using MINSCALEDENOM and MAXSCALEDENOM could resolve your problem. Set MINSCALEDENOM to 1 to the layers you don't want to show in the dummy layer. I'm not sure if that's what you want though, maybe you could share a small portion of your mapfile. An other long solution you could do is to merge all your mapfiles in one big mapfile and using MINSCALEDENOM and MAXSCALEDENOM, determine which layer is displayed. Layers from the same data source that has been generalized would then have a unique name, but you could use GROUP and use the group name to call your layers in your requests. What do you think ? Alexandre > I know the whole thing isn't very clean and thoroughly thought through, but > it had to be completed very fast and that was the best solution I came up > with. If some of you have ideas on how to improve it, I would be very glad > to listen to your suggestions. > > Best regards, > > Philippe Kruschitz > > PS: We're using Mapserver 5.0.0 > > > > > -- Alexandre Dub? Mapgears www.mapgears.com From jose.maria.michia at gmail.com Thu Dec 11 06:45:34 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Thu, 11 Dec 2008 12:45:34 -0200 Subject: [mapserver-users] Integration and extent .............. In-Reply-To: References: Message-ID: > Hi,, > > How I will get raster data with lat long extent (free)? I have one map > appilication which I wrote in php mapscript.And I have also one jsp > application. Now I want to integratefirst one with tomcat(2nd one). > Actually what I done ....I simple created a hyperlink from my jsp page to > map application. If I run tomcat and used that link it works fine.jsp > application as well as mapscript application. Mapserver is cgi based.....and > tomcat????????(using diff port) Please anybody can explain why it is > working fine................ Sorry, I cannot fully understand this part of your message (maybe because my poor english). > Please tell me how I will get the lat long extent from pixel extent(like > 0,0,234,345) .....I think it is not possible at all....................But I > want to be sure.......... > Plz reply me soon............................I am very new mapserver > user............................plz help me .................. Is possibly to convert image coordinates to geographic coordinates. Almost with some scripting. This python code maybe useful: # convert image coordinates (xy in pixel) to geographic coordinates (in map projection) def MapPix2Geo(nPix, map): n_pointc= mapscript.pointObj() dfDeltaX = map.extent.maxx-map.extent.minx dfDeltaY = map.extent.maxy-map.extent.miny n_pointc.x= map.extent.minx + (nPix.x*dfDeltaX)/map.width n_pointc.y= map.extent.miny + ((map.height-nPix.y)*dfDeltaY)/map.height return n_pointc If map projection is other than lat-lon, you need one more conversion: # convert coordinates from map projection (planar xy) to geographic coordinates (lat lon) def convertToLL(nP, map): p1 = pyproj.Proj(map.getProjection()) p2 = Proj(init='epsg:4326') result = pyproj.transform(p1,p2,nP.x,nP.y) return result Suerte y saludos Jos? Mar?a > Thanks............. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From randre at gmail.com Thu Dec 11 09:18:42 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 11 Dec 2008 09:18:42 -0800 Subject: [mapserver-users] Graticule and Map Frame strategies Message-ID: <9c2015090812110918k7d9925bdjcb71eeb9a5d693e3@mail.gmail.com> Hi All, I'm curious what options have been explored to create tick marks, graticules and outside-of-map symbology? I'm currently investigating the use of Matplotlib as a compositer to draw on top of a Mapserver-generated image, and while I think this will give nice looking results, the speed of the process is quite slow, probably because Matplotlib deconstructs the Mapserver image with PIL and works with it as a numpy array. I'm interested in hearing about any other tools that allow for the same sort of "drawing on top of" strategy, preferrably ones with API's. Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Dec 11 09:36:44 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 11 Dec 2008 11:36:44 -0600 Subject: [mapserver-users] Graticule and Map Frame strategies Message-ID: <4940FB4C020000A80000F505@jeckle> Roger, While it's not really "Drawing" perse, we use the GeoMoose interface to do this type of printing, since the GeoMoose interface abstracts out all it's map layers as separate calls, there is quite a bit of functionality available for stacking of imagery, particualrly for plotting. We do use a somewhat complicated method of server side assembly of the separate image calls via their respective MapFiles. We generate a composite image and send to Image or PDF out. This eased the labor related to printing quite a bit for the larger percentage of users. We don't have the specific capabilities that you are looking for in the interface, but it has come up for discussion on more than one occasion. There are plans siiting around related to building a user Print Canvas for example to give the average user the control of output as you describe. Our immediate need is for adding USNG overlays to print outs for emergency Management and situational awareness. bobb >>> "Roger Andr?" 12/11/08 11:18 AM >>> Hi All, I'm curious what options have been explored to create tick marks, graticules and outside-of-map symbology? I'm currently investigating the use of Matplotlib as a compositer to draw on top of a Mapserver-generated image, and while I think this will give nice looking results, the speed of the process is quite slow, probably because Matplotlib deconstructs the Mapserver image with PIL and works with it as a numpy array. I'm interested in hearing about any other tools that allow for the same sort of "drawing on top of" strategy, preferrably ones with API's. Thanks, Roger -- From jccoate at mmm.com Thu Dec 11 09:54:36 2008 From: jccoate at mmm.com (jccoate at mmm.com) Date: Thu, 11 Dec 2008 11:54:36 -0600 Subject: [mapserver-users] Empty query results with SQL2008 datasource Message-ID: Hello, I'm doing a simple spatial query: http://server/cgi-bin/mapserv.exe?mode=query&img.x=290&img.y=210&imgext=-92.999302+44.952982+-92.998070+44.954215&map=..\..\apps\myapp\mapfile.map This returns my layer's specified template when datasource is shapefile or geodatabase. When I use the SQL2008 plugin for the layer's data I only get this query result: Content-type: text/html MapServer Message Mapserver renders the data from SQL Server in a map just fine. I'm using Mapserver 5.2.1 from MS4W 2.3.1 Is anyone able to get query results from SQL2008? Jeff Coate GIS Specialist Roadway Maintenance Services Traffic Safety Systems Division 3M Company office: 651-733-3027 cell: 612-720-8463 Jeff Coate GIS Specialist Roadway Maintenance Services Traffic Safety Systems Division 3M Company office: 651-733-3027 cell: 612-720-8463 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Thu Dec 11 11:00:11 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 11 Dec 2008 12:00:11 -0700 Subject: [mapserver-users] Graticule and Map Frame strategies In-Reply-To: <9c2015090812110918k7d9925bdjcb71eeb9a5d693e3@mail.gmail.com> References: <9c2015090812110918k7d9925bdjcb71eeb9a5d693e3@mail.gmail.com> Message-ID: <4941633B.1050803@geoanalytic.com> Roger, I asked a similar question last year (http://lists.osgeo.org/pipermail/discuss/2007-September/002349.html). Landon Blake and I (and others) came to the conclusion that the answer was to create a "map surround" library suitable for wrapping as a plug-in to various generic publishing/compositing applications (such as Inkscape, Scribus, ReportLab, etc) and possibly some desktop GIS apps (uDig, Quantum, gvSig, OpenJump, etc). While I still believe that's the ultimate answer, I find myself going back to Mapserver's mappdf.c (and mapgraticule.c, etc), and speculating on enhancements to give Mapserver the capability right out of the box. Brent Fraser GeoAnalytic Inc. Roger Andr? wrote: > Hi All, > > I'm curious what options have been explored to create tick marks, > graticules and outside-of-map symbology? I'm currently investigating > the use of Matplotlib as a compositer to draw on top of a > Mapserver-generated image, and while I think this will give nice looking > results, the speed of the process is quite slow, probably because > Matplotlib deconstructs the Mapserver image with PIL and works with it > as a numpy array. > > I'm interested in hearing about any other tools that allow for the same > sort of "drawing on top of" strategy, preferrably ones with API's. > > Thanks, > > Roger From Bob.Basques at ci.stpaul.mn.us Thu Dec 11 11:06:03 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 11 Dec 2008 13:06:03 -0600 Subject: [mapserver-users] Graticule and Map Frame strategies Message-ID: <4941103B020000A80000F522@jeckle> Brent, We basically came to the same conclusions, although I think there is also the potential for combining seamless overlay with the surround method as well. I still keep looking inside of MapServer too, but just can't seem to come up with a flexible method of building anything. The surround method is on my list, but it's down a ways. :c) bobb >>> Brent Fraser 12/11/08 1:00 PM >>> Roger, I asked a similar question last year (http://lists.osgeo.org/pipermail/discuss/2007-September/002349.html). Landon Blake and I (and others) came to the conclusion that the answer was to create a "map surround" library suitable for wrapping as a plug-in to various generic publishing/compositing applications (such as Inkscape, Scribus, ReportLab, etc) and possibly some desktop GIS apps (uDig, Quantum, gvSig, OpenJump, etc). While I still believe that's the ultimate answer, I find myself going back to Mapserver's mappdf.c (and mapgraticule.c, etc), and speculating on enhancements to give Mapserver the capability right out of the box. Brent Fraser GeoAnalytic Inc. Roger Andr? wrote: > Hi All, > > I'm curious what options have been explored to create tick marks, > graticules and outside-of-map symbology? I'm currently investigating > the use of Matplotlib as a compositer to draw on top of a > Mapserver-generated image, and while I think this will give nice looking > results, the speed of the process is quite slow, probably because > Matplotlib deconstructs the Mapserver image with PIL and works with it > as a numpy array. > > I'm interested in hearing about any other tools that allow for the same > sort of "drawing on top of" strategy, preferrably ones with API's. > > Thanks, > > Roger _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Thu Dec 11 12:30:34 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 11 Dec 2008 13:30:34 -0700 Subject: [mapserver-users] Graticule and Map Frame strategies In-Reply-To: <4941103B020000A80000F522@jeckle> References: <4941103B020000A80000F522@jeckle> Message-ID: <4941786A.1070601@geoanalytic.com> Bob, My thought is to have a core set of generic functions to calculate the location of the graphic primitives (points lines, polygons) given the specification parameters for a surround object. For example to get the graphics for a graticule, call: graphicPrimatives *SurroundCreateGraticule( polygon *mapShape, srs *mapSRS, gratSpec *MyGratSpec); These functions would do the hard work, and be portable (C? C++?), maybe even Swig-able. These would likely be wrapped in a application-specific function to make the results consumable to the application (Mapserver, Scribus, etc). For MapServer, this might be a loop in a msSurroundLayerNextShape function to iterate through the graphic primatives. Hopefully the application would know what to do with the graphics (render to the page, etc). And we'd likely need a set of functions to populate the parameter structures (containing tick length, font size, etc). Just some random architecture thoughts... Brent Fraser Bob Basques wrote: > Brent, > > We basically came to the same conclusions, although I think there is > also the potential for combining seamless overlay with the surround > method as well. I still keep looking inside of MapServer too, but just > can't seem to come up with a flexible method of building anything. > > The surround method is on my list, but it's down a ways. :c) > > bobb > > > >>>> Brent Fraser 12/11/08 1:00 PM >>> > Roger, > > I asked a similar question last year > (http://lists.osgeo.org/pipermail/discuss/2007-September/002349.html). > > Landon Blake and I (and others) came to the conclusion that the answer > was to create a "map surround" library suitable for wrapping as a > plug-in to various generic publishing/compositing applications (such as > Inkscape, Scribus, ReportLab, etc) and possibly some desktop GIS apps > (uDig, Quantum, gvSig, OpenJump, etc). > > While I still believe that's the ultimate answer, I find myself going > back to Mapserver's mappdf.c (and mapgraticule.c, etc), and speculating > on enhancements to give Mapserver the capability right out of the box. > > Brent Fraser > GeoAnalytic Inc. > > > Roger Andr? wrote: >> Hi All, >> >> I'm curious what options have been explored to create tick marks, >> graticules and outside-of-map symbology? I'm currently investigating >> the use of Matplotlib as a compositer to draw on top of a >> Mapserver-generated image, and while I think this will give nice > looking >> results, the speed of the process is quite slow, probably because >> Matplotlib deconstructs the Mapserver image with PIL and works with it > >> as a numpy array. >> >> I'm interested in hearing about any other tools that allow for the > same >> sort of "drawing on top of" strategy, preferrably ones with API's. >> >> Thanks, >> >> Roger > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From randre at gmail.com Thu Dec 11 12:46:19 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 11 Dec 2008 12:46:19 -0800 Subject: [mapserver-users] Graticule and Map Frame strategies In-Reply-To: <4941103B020000A80000F522@jeckle> References: <4941103B020000A80000F522@jeckle> Message-ID: <9c2015090812111246g6131b718o938b44dcbda920eb@mail.gmail.com> Hi Bob and Brent, That was a great thread to dig into, thanks for sending me the link. I'm guessing that Mapserver wasn't originally developed with the intent of acting as an engine for cartographic quality, paper, map production. The fact that it's capable of generating images of such high quality that I'm considering its use for exactly that purpose really says something about the quality of the development effort that has gone into it. Kudos to all who have contributed to the project. I really love it as a tool, and I enjoy working with it. I myself use (or am attempting to use) Mapserver for 2 completely disparate tasks. One use is to drive a web-map interface, and with that I have no issues whatsoever. The other is to create map graphics which are included in printed reports. Although the data shown is similar in both cases, the paper use-case is definitely more difficult to implement and has it's own unique requirements. As Brent said in one of his posts, "a map without a graticule, scale bar, and projection statement, (with parameter values!) is just a diagram". I would add a legend to that list as well, and Mapserver can generate all of those things relatively well. However, as is true with all projects, the 80/20 rule is biting at my heels here. To give some background to the problem, the requirement I'm working from is to generate graphics that look as good, or better, than those which are currently being generated with GMT (Generic Mapping Tools). For those of you who haven't tried GMT, it is capable of some pretty fantastic looking, print-quality maps. However, its use in an automated system is somewhat difficult, and it lacks some of the flexibility in data access, cartographic styling, and labeling which Mapserver has. It also lacks an API. Although I doubt we will ever fully replace GMT in the creation of one-off's, I think there is a good case to be made for replacing it with another tool for automated, and menu-driven map creation. The problem is that GMT "does it all". Without going into all of what GMT can do, here are a few of the things that it does which I haven't been able to find an easy way to implement with Mapserver. 1) Rendering of raster features based on the input of an array of regulalry-spaced points with X,Y,Z values. 2) Raster symbolization using color gradients, as opposed to just discreet colors. 3) Creation of color bars (legend) to show the values in a raster data set. 4) Graticule tick-marks on the edges of the map frame. 5) Inclusion of a map title. 6) Inclusion of text to describe the map. So far, my solution seems to be similar in concept to what others appear to be doing - I do these things outside of Mapserver. Items 1 and 2 are taken care of by the creation of a display-ready GeoTIFF with gdal. 3 - 6 are still being worked on, but at the moment are being dealt with by loading the Mapserver image into Matplotlib, then adding "decoration". Although this works, it seems a bit klunky to do these with 3 separate tools, especially given the nice job Mapserver already does with other things that are very similar in nature. Having said that, please don't flame me! I'm finding workarounds to solve the problems I'm having. I just want to add my voice to those who have already expressed an interest in extending some of the "decoration" functionality in Mapserver. And yes, I also know that other tools (such as GRASS) can do this, but that's not the point. ;) Thanks again to all of you who have worked to make Mapserver such a great tool. Roger -- On Thu, Dec 11, 2008 at 11:06 AM, Bob Basques wrote: > Brent, > > We basically came to the same conclusions, although I think there is > also the potential for combining seamless overlay with the surround > method as well. I still keep looking inside of MapServer too, but just > can't seem to come up with a flexible method of building anything. > > The surround method is on my list, but it's down a ways. :c) > > bobb > > > > >>> Brent Fraser 12/11/08 1:00 PM >>> > Roger, > > I asked a similar question last year > (http://lists.osgeo.org/pipermail/discuss/2007-September/002349.html). > > Landon Blake and I (and others) came to the conclusion that the answer > was to create a "map surround" library suitable for wrapping as a > plug-in to various generic publishing/compositing applications (such as > Inkscape, Scribus, ReportLab, etc) and possibly some desktop GIS apps > (uDig, Quantum, gvSig, OpenJump, etc). > > While I still believe that's the ultimate answer, I find myself going > back to Mapserver's mappdf.c (and mapgraticule.c, etc), and speculating > on enhancements to give Mapserver the capability right out of the box. > > Brent Fraser > GeoAnalytic Inc. > > > Roger Andr? wrote: > > Hi All, > > > > I'm curious what options have been explored to create tick marks, > > graticules and outside-of-map symbology? I'm currently investigating > > the use of Matplotlib as a compositer to draw on top of a > > Mapserver-generated image, and while I think this will give nice > looking > > results, the speed of the process is quite slow, probably because > > Matplotlib deconstructs the Mapserver image with PIL and works with it > > > as a numpy array. > > > > I'm interested in hearing about any other tools that allow for the > same > > sort of "drawing on top of" strategy, preferrably ones with API's. > > > > Thanks, > > > > Roger > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Thu Dec 11 15:11:19 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 11 Dec 2008 16:11:19 -0700 Subject: [mapserver-users] Graticule and Map Frame strategies In-Reply-To: <9c2015090812111246g6131b718o938b44dcbda920eb@mail.gmail.com> References: <4941103B020000A80000F522@jeckle> <9c2015090812111246g6131b718o938b44dcbda920eb@mail.gmail.com> Message-ID: <49419E17.1000604@geoanalytic.com> Roger Andr? wrote: > creation. The problem is that GMT "does it all". Without going into > all of what GMT can do, here are a few of the things that it does which > I haven't been able to find an easy way to implement with Mapserver. > > 3) Creation of color bars (legend) to show the values in a raster data set. Hmm, dunno... > 4) Graticule tick-marks on the edges of the map frame. No, but I'm thinking about it. Actually, using my Polygons-as-a-margin layer trick twice might work. Render your map layers then "blank out" the four sides of your map (they're in pixel coords so adjust as necessary): SIZE 800 600 : LAYER NAME "Margin" TRANSFORM FALSE STATUS DEFAULT TYPE POLYGON CLASS COLOR 255 255 255 END FEATURE POINTS 0 0 0 600 70 600 70 0 0 0 END POINTS 70 0 70 70 800 70 800 0 70 0 END POINTS 70 600 800 600 800 530 70 530 70 600 END POINTS 730 70 730 530 800 530 800 70 730 70 END END END then render your graticule lines (via another LAYER), then use the above technique only offset a pixel or two to clip back the graticule lines to look like "tics", then render a layer of graticule anno. Crude but it might work. > 5) Inclusion of a map title. > 6) Inclusion of text to describe the map. Yes you can. Use a LAYER with TRANSFORM FALSE and an in-line FEATURE: LAYER NAME title STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 4 396 END TEXT 'This is a Great Map!' END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS COLOR 255 255 255 POSITION UR END END END Good luck, Brent From bob.b at gritechnologies.com Thu Dec 11 17:57:13 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Thu, 11 Dec 2008 19:57:13 -0600 Subject: [mapserver-users] Graticule and Map Frame strategies In-Reply-To: <49419E17.1000604@geoanalytic.com> References: <4941103B020000A80000F522@jeckle> <9c2015090812111246g6131b718o938b44dcbda920eb@mail.gmail.com> <49419E17.1000604@geoanalytic.com> Message-ID: <4941C4F9.3030109@gritechnologies.com> Brent, Hmm, heavy handed way of going at it, but it seems like it could work, might be a bit laborious to set up initially. Sounds good enough to experiment with anyway. BTW, does anyone know of a way to label a line and justify the label to the edge of the map (other than planting things by pixel values) with MapServer? Also, in my last go around with this stuff, the option of adding inline styling to a text string would be fairly valuable here as well, Super/Sub-scripts stuff mainly. bobb Brent Fraser wrote: > Roger Andr? wrote: > >> creation. The problem is that GMT "does it all". Without going into >> all of what GMT can do, here are a few of the things that it does >> which I haven't been able to find an easy way to implement with >> Mapserver. >> > >> 3) Creation of color bars (legend) to show the values in a raster >> data set. > > Hmm, dunno... > >> 4) Graticule tick-marks on the edges of the map frame. > > No, but I'm thinking about it. Actually, using my > Polygons-as-a-margin layer trick twice might work. Render your map > layers then "blank out" the four sides of your map (they're in pixel > coords so adjust as necessary): > > SIZE 800 600 > : > LAYER > NAME "Margin" > TRANSFORM FALSE > STATUS DEFAULT > TYPE POLYGON > CLASS > COLOR 255 255 255 > END > FEATURE > POINTS 0 0 0 600 70 600 70 0 0 0 END > POINTS 70 0 70 70 800 70 800 0 70 0 END POINTS 70 600 800 600 > 800 530 70 530 70 600 END > POINTS 730 70 730 530 800 530 800 70 730 70 END > END > END > > then render your graticule lines (via another LAYER), then use the > above technique only offset a pixel or two to clip back the graticule > lines to look like "tics", then render a layer of graticule anno. > > Crude but it might work. > > >> 5) Inclusion of a map title. >> 6) Inclusion of text to describe the map. > > Yes you can. Use a LAYER with TRANSFORM FALSE and an in-line FEATURE: > > LAYER > NAME title > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS 4 396 END > TEXT 'This is a Great Map!' > END > CLASS > LABEL > TYPE TRUETYPE > FONT arial > SIZE 8 > ANTIALIAS > COLOR 255 255 255 > POSITION UR > END > END > END > > > Good luck, > Brent > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From neil at asdf.co.nz Thu Dec 11 19:14:46 2008 From: neil at asdf.co.nz (Neil Fincham) Date: Fri, 12 Dec 2008 16:14:46 +1300 Subject: [mapserver-users] Labels with SDE data In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C480D8@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C480D8@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <009901c95c07$c9457a70$5bd06f50$@co.nz> Hi All, Frustrating problem I know. I eventually fixed it as below;- http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Language_suppo rt_in_the_geodatabase You need to set UNICODE_STRING "FALSE" using sdedbtune, then when you load your data it will be just plain old text that mapserver does not have a problem with. Remember to do the stddbtune _before_ you load your data though, if it is already loaded pump it out to shapefiles, sdedbtune and then reload is fine. Neil From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Wednesday, 10 December 2008 10:09 a.m. To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Labels with SDE data I am using ESRI SDE layers in a Map file. On some polygon layers, a text label appears as a strange symbol, such as horizontal lines or a square. If I convert the same layer to shapefile and use it as a source, the polygon labels look correct. How can I correct this so the labels look correct using SDE layers? -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Thu Dec 11 22:06:01 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Fri, 12 Dec 2008 11:36:01 +0530 Subject: [mapserver-users] getting extent and integration from amiya Message-ID: Hi Jos? Mar?a Michia I cant understand whats wrong with my msg....why u did nt understand my query...Actually what I am trying to say that........I wrote one jsp application.as well as mapserver application in which I used phpmapscript..Both are different modules. Now I want to integrate both of these. What I have done is that I created one link (with anchor tag) from jsp page to mapserver page.( Both are using different port. )It works fine. my question is that why it is running.. I thought that mapserver executable file is CGI based ..and to do integration with tomcat CGI servlet must be required. Actually whats happen is according to me , both are differnt server...and when I run my jsp 1st server with a port is running and then when I called mapserver from jsp it mean that I am saying tomcat to stop and listen an another server with differnt port . its like one executable file is called from one application.....and I am getting output.but someone told me that it should not be run because of cgi ..........I did not get......that s why I am asking that please let me clear about this.............. And regarding my 1st question u suggest one function............which I already wrote in PHP.(given below)......but I think u did not get this question also.....Actually I have several pictures(not raster data) which I taken from google snapshot......but their extent is (0,0,456,567size=456X567)(0,0,567,657) like that......Look, all images have minx and miny 0.....so how I will convert this one to lat long form....or from where I will get lat long data.....I hope now u will get........and reply me soon.......... Thanks........... Amiya Patra // Convert from image to map coordinates function img2map($width,$height,$point,$ext) { $minx = $ext->minx; $miny = $ext->miny; $maxx = $ext->maxx; $maxy = $ext->maxy; if ($point->x && $point->y) { $x = $point->x; $y = $point->y; $dpp_x = ($maxx-$minx)/$width; $dpp_y = ($maxy-$miny)/$height; $x = $minx + $dpp_x*$x; $y = $maxy - $dpp_y*$y; } $pt[0] = $x; $pt[1] = $y; return $pt; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Thu Dec 11 23:23:03 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Fri, 12 Dec 2008 12:53:03 +0530 Subject: [mapserver-users] getting extent and integration from amiya Message-ID: Hi everyone I got the ans of 1st one...........I need to 2nd one.... Thanks................ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.maria.michia at gmail.com Fri Dec 12 00:52:40 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 12 Dec 2008 06:52:40 -0200 Subject: [mapserver-users] getting extent and integration from amiya In-Reply-To: References: Message-ID: > And regarding my 1st question u suggest one function............which I > already wrote in PHP.(given below)......but I think u did not get this > question also.....Actually I have several pictures(not raster data) which I > taken from google snapshot......but their extent is > (0,0,456,567size=456X567)(0,0,567,657) like that......Look, all images have > minx and miny 0.....so how I will convert this one to lat long form....or > from where I will get lat long data.....I hope now u will get........and > reply me soon.......... Ohh yes.. I understand. You need some control points. With control points, you need some program for warping the images. A control point, is a point to which you know: - coordinates on the image (pixel, google capture, 0-456,0-467) - coordinates on a geographic system (ie lat lon) Maybe is possible to acquire data for control point coordinates during capture of google snapshots. Maybe exists a better approach, is needed more detailed analisys of the case. English is hard to me, don't worry when I am confused, . Sorry. Saludos Jos? Mar?a > Thanks........... > Amiya Patra > > > > > // Convert from image to map coordinates > function img2map($width,$height,$point,$ext) > { > $minx = $ext->minx; > $miny = $ext->miny; > $maxx = $ext->maxx; > $maxy = $ext->maxy; > if ($point->x && $point->y) > { > $x = $point->x; > $y = $point->y; > $dpp_x = ($maxx-$minx)/$width; > $dpp_y = ($maxy-$miny)/$height; > $x = $minx + $dpp_x*$x; > $y = $maxy - $dpp_y*$y; > } > $pt[0] = $x; > $pt[1] = $y; > return $pt; > } > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jose.maria.michia at gmail.com Fri Dec 12 01:03:46 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 12 Dec 2008 07:03:46 -0200 Subject: [mapserver-users] problem using some fonts on pdf output Message-ID: Hi all. I have a mapfile, with some layers, with labels. I wish to use two differents fonts, "arial" and "times". I have the two fonts as tff. All work fine when I use shp2img utility program for make PNG files. But, when I change output format to PDF, the text that must be in times font, appears in other font (a Sans variant). I've opened the PDF in Acroread and Inkscape, with same results. I'm using: Linux Gentoo Mapserver 5.2.1 from sources "Sans" is nice font, and I happy with the map produced, but I wish to know what happens. (I need "PDF files", and not "PNG files", because the final maps are hardcopy maps). Thanks for any advice. Saludos Jos? Mar?a From Jukka.Rahkonen at mmmtike.fi Fri Dec 12 07:00:49 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 12 Dec 2008 17:00:49 +0200 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: <493E2843.80708@sis-ter.it> Message-ID: Hi, Are there any effective tricks for making MapServer to Top-Fuel class? We have now a typical ms4w installation on a rather good server platform with SCSI drives and 2 four-core processors running on Windows 2003 server. Our images are tiled, uncompressed geotiffs with overviews, vector sample data set is shapefile with shptree index. I have a shortened epsg file and my mapfile is extra short. Bandwith is not the limit. We are getting out now about 450 orthoimage pictures per minute (size 500 by 500 pixels) and 550 pictures from the vector layer in png24 image format. I consider that rather good, but we are required to reach 20 images per second, thus 1200 images per minute or 0.05 seconds per image. I wonder if anybody has tuned MapServer that far. I am willing to try however exotic solutions to reach the 20 WMS output images/second goal if somebody could suggest me what to try next. In our system there seems to be about 0.1 second ballast with WMS getMap requests and I cannot get any faster response even if I try with on empty data layer with nothing to render. Have anybody tried to keep mapfile, epsg-file or even tileindex files in RAM drive? Having about 20 parallel users seems to be optimal for our server and if I drive just WMS getCapabilities request against my mapfile I can get about 1300 responses per minute. That leads me to think that 1200 rendered images per minute might be possible to reach with optimal set-up. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From moliveira at GEOSTATS.com Fri Dec 12 07:05:23 2008 From: moliveira at GEOSTATS.com (Marcelo Oliveira) Date: Fri, 12 Dec 2008 10:05:23 -0500 Subject: [mapserver-users] How to make MapServer WMS super fast? References: Message-ID: <106F9C96E2CC5D4382760C42E3751A964D4A5C@drake.GEOSTATS.com> 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-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Friday, December 12, 2008 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to make MapServer WMS super fast? Hi, Are there any effective tricks for making MapServer to Top-Fuel class? We have now a typical ms4w installation on a rather good server platform with SCSI drives and 2 four-core processors running on Windows 2003 server. Our images are tiled, uncompressed geotiffs with overviews, vector sample data set is shapefile with shptree index. I have a shortened epsg file and my mapfile is extra short. Bandwith is not the limit. We are getting out now about 450 orthoimage pictures per minute (size 500 by 500 pixels) and 550 pictures from the vector layer in png24 image format. I consider that rather good, but we are required to reach 20 images per second, thus 1200 images per minute or 0.05 seconds per image. I wonder if anybody has tuned MapServer that far. I am willing to try however exotic solutions to reach the 20 WMS output images/second goal if somebody could suggest me what to try next. In our system there seems to be about 0.1 second ballast with WMS getMap requests and I cannot get any faster response even if I try with on empty data layer with nothing to render. Have anybody tried to keep mapfile, epsg-file or even tileindex files in RAM drive? Having about 20 parallel users seems to be optimal for our server and if I drive just WMS getCapabilities request against my mapfile I can get about 1300 responses per minute. That leads me to think that 1200 rendered images per minute might be possible to reach with optimal set-up. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Dec 12 07:30:04 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 12 Dec 2008 10:30:04 -0500 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: References: Message-ID: <4942837C.6060200@pobox.com> Rahkonen Jukka wrote: > Hi, > > Are there any effective tricks for making MapServer to Top-Fuel > class? We have now a typical ms4w installation on a rather good server > platform with SCSI drives and 2 four-core processors running on Windows > 2003 server. Our images are tiled, uncompressed geotiffs with overviews, > vector sample data set is shapefile with shptree index. I have a > shortened epsg file and my mapfile is extra short. Bandwith is not the > limit. We are getting out now about 450 orthoimage pictures per > minute (size 500 by 500 pixels) and 550 pictures from the vector layer > in png24 image format. I consider that rather good, but we are required > to reach 20 images per second, thus 1200 images per minute or 0.05 > seconds per image. I wonder if anybody has tuned MapServer that far. > > I am willing to try however exotic solutions to reach the 20 WMS output > images/second goal if somebody could suggest me what to try next. In > our system there seems to be about 0.1 second ballast with WMS getMap > requests and I cannot get any faster response even if I try with on > empty data layer with nothing to render. Have anybody tried to keep > mapfile, epsg-file or even tileindex files in RAM drive? > > Having about 20 parallel users seems to be optimal for our server and if > I drive just WMS getCapabilities request against my mapfile I can get > about 1300 responses per minute. That leads me to think that 1200 > rendered images per minute might be possible to reach with optimal set-up. Jukka, I'd suggest you come to the TO Code Sprint and help us fine tune performance! http://wiki.osgeo.org/wiki/Toronto_Code_Sprint_2009 More seriously, I have had the impression that some of the "everything but the kitchen sink" distributions like MS4W, FWTools and OSGeo4W have somewhat significant startup overhead - possibly due to the number of DLLs being loaded at startup. You might look into a custom building a "lite" version of mapserver and see if that helps. As someone else noted, fastcgi will also let you skip such startup costs on a per request basis. But honestly, why not just buy another damn server? Isn't your time worth something! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Jukka.Rahkonen at mmmtike.fi Fri Dec 12 07:36:16 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 12 Dec 2008 17:36:16 +0200 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: <4942837C.6060200@pobox.com> Message-ID: Hi, This requirement comes from the implementing rules of European Union's INSPIRE directive, so is conserns potentially hundreds of organizations all over Europe. Savings in getting the required speed with a single server would be great. In addition, it is a great challenge for MapServer that is said to be fast :) -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: Frank Warmerdam [mailto:warmerdam at pobox.com] > L?hetetty: 12. joulukuuta 2008 17:30 > Vastaanottaja: Rahkonen Jukka > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] How to make MapServer WMS super fast? > > Rahkonen Jukka wrote: > > Hi, > > > > Are there any effective tricks for making MapServer to > Top-Fuel class? > > We have now a typical ms4w installation on a rather good server > > platform with SCSI drives and 2 four-core processors running on > > Windows > > 2003 server. Our images are tiled, uncompressed geotiffs with > > overviews, vector sample data set is shapefile with shptree > index. I > > have a shortened epsg file and my mapfile is extra short. > Bandwith is > > not the limit. We are getting out now about 450 orthoimage pictures > > per minute (size 500 by 500 pixels) and 550 pictures from > the vector > > layer in png24 image format. I consider that rather good, > but we are > > required to reach 20 images per second, thus 1200 images > per minute or > > 0.05 seconds per image. I wonder if anybody has tuned > MapServer that far. > > > > I am willing to try however exotic solutions to reach the 20 WMS > > output images/second goal if somebody could suggest me what to try > > next. In our system there seems to be about 0.1 second > ballast with > > WMS getMap requests and I cannot get any faster response > even if I try > > with on empty data layer with nothing to render. Have > anybody tried > > to keep mapfile, epsg-file or even tileindex files in RAM drive? > > > > Having about 20 parallel users seems to be optimal for our > server and > > if I drive just WMS getCapabilities request against my > mapfile I can > > get about 1300 responses per minute. That leads me to > think that 1200 > > rendered images per minute might be possible to reach with > optimal set-up. > > Jukka, > > I'd suggest you come to the TO Code Sprint and help us fine > tune performance! > > http://wiki.osgeo.org/wiki/Toronto_Code_Sprint_2009 > > More seriously, I have had the impression that some of the > "everything but the kitchen sink" distributions like MS4W, > FWTools and OSGeo4W have somewhat significant startup > overhead - possibly due to the number of DLLs being loaded at > startup. You might look into a custom building a "lite" > version of mapserver and see if that helps. > > As someone else noted, fastcgi will also let you skip such > startup costs on a per request basis. > > But honestly, why not just buy another damn server? Isn't > your time worth something! > > Best regards, > -- > ---------------------------------------+---------------------- > ---------- > ---------------------------------------+------ > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > > From Jukka.Rahkonen at mmmtike.fi Fri Dec 12 07:38:59 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 12 Dec 2008 17:38:59 +0200 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: <106F9C96E2CC5D4382760C42E3751A964D4A5C@drake.GEOSTATS.com> Message-ID: 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:moliveira at GEOSTATS.com] L?hetetty: 12. joulukuuta 2008 17:05 Vastaanottaja: Rahkonen Jukka; mapserver-users at 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-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Friday, December 12, 2008 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to make MapServer WMS super fast? Hi, Are there any effective tricks for making MapServer to Top-Fuel class? We have now a typical ms4w installation on a rather good server platform with SCSI drives and 2 four-core processors running on Windows 2003 server. Our images are tiled, uncompressed geotiffs with overviews, vector sample data set is shapefile with shptree index. I have a shortened epsg file and my mapfile is extra short. Bandwith is not the limit. We are getting out now about 450 orthoimage pictures per minute (size 500 by 500 pixels) and 550 pictures from the vector layer in png24 image format. I consider that rather good, but we are required to reach 20 images per second, thus 1200 images per minute or 0.05 seconds per image. I wonder if anybody has tuned MapServer that far. I am willing to try however exotic solutions to reach the 20 WMS output images/second goal if somebody could suggest me what to try next. In our system there seems to be about 0.1 second ballast with WMS getMap requests and I cannot get any faster response even if I try with on empty data layer with nothing to render. Have anybody tried to keep mapfile, epsg-file or even tileindex files in RAM drive? Having about 20 parallel users seems to be optimal for our server and if I drive just WMS getCapabilities request against my mapfile I can get about 1300 responses per minute. That leads me to think that 1200 rendered images per minute might be possible to reach with optimal set-up. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Fri Dec 12 07:55:17 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 12 Dec 2008 10:55:17 -0500 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: References: <493E2843.80708@sis-ter.it> Message-ID: <20081212155517.GB5053@metacarta.com> On Fri, Dec 12, 2008 at 05:00:49PM +0200, Rahkonen Jukka wrote: > Hi, > > Are there any effective tricks for making MapServer to Top-Fuel class? > We have now a typical ms4w installation on a rather good server platform > with SCSI drives and 2 four-core processors running on Windows 2003 > server. Our images are tiled, uncompressed geotiffs with overviews, > vector sample data set is shapefile with shptree index. I have a > shortened epsg file and my mapfile is extra short. Bandwith is not the > limit. We are getting out now about 450 orthoimage pictures per minute > (size 500 by 500 pixels) and 550 pictures from the vector layer in png24 > image format. I consider that rather good, but we are required to reach > 20 images per second, thus 1200 images per minute or 0.05 seconds per > image. I wonder if anybody has tuned MapServer that far. To get much beyond this, I'd simply recommend cached tiles: TileCache and GeoWebCache are both fine products that cache tiles on the fly. TileCache supports storing to memcached, and in-memory LRU cache, which allows you to keep limited resources for caching while serving tiles quickly. TileCache users have reported serving > 1200 tiles/second with TileCache properly configured, so if your data is seldom changing, it's probably possible to achieve a significant benefit from TileCache. Regards, -- Christopher Schmidt MetaCarta From bea at ixsea.com Fri Dec 12 07:38:39 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Fri, 12 Dec 2008 16:38:39 +0100 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: <4942837C.6060200@pobox.com> References: <4942837C.6060200@pobox.com> Message-ID: <8FCF96B596094FB4920CDA5CC38D85F5@ixsea.local> Hi ! What about TileCache with a memcached store ? http://tilecache.org/ It won't speed up MapServer responses but the user should be faster served. I have never used it. Beno?t Andrieu bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: "Frank Warmerdam" To: "Rahkonen Jukka" Cc: Sent: Friday, December 12, 2008 4:30 PM Subject: Re: [mapserver-users] How to make MapServer WMS super fast? > Rahkonen Jukka wrote: >> Hi, >> Are there any effective tricks for making MapServer to Top-Fuel class? >> We have now a typical ms4w installation on a rather good server platform >> with SCSI drives and 2 four-core processors running on Windows 2003 >> server. Our images are tiled, uncompressed geotiffs with overviews, >> vector sample data set is shapefile with shptree index. I have a >> shortened epsg file and my mapfile is extra short. Bandwith is not the >> limit. We are getting out now about 450 orthoimage pictures per minute >> (size 500 by 500 pixels) and 550 pictures from the vector layer in png24 >> image format. I consider that rather good, but we are required to reach >> 20 images per second, thus 1200 images per minute or 0.05 seconds per >> image. I wonder if anybody has tuned MapServer that far. >> I am willing to try however exotic solutions to reach the 20 WMS output >> images/second goal if somebody could suggest me what to try next. In our >> system there seems to be about 0.1 second ballast with WMS getMap >> requests and I cannot get any faster response even if I try with on empty >> data layer with nothing to render. Have anybody tried to keep mapfile, >> epsg-file or even tileindex files in RAM drive? Having about 20 parallel >> users seems to be optimal for our server and if I drive just WMS >> getCapabilities request against my mapfile I can get about 1300 responses >> per minute. That leads me to think that 1200 rendered images per minute >> might be possible to reach with optimal set-up. > > Jukka, > > I'd suggest you come to the TO Code Sprint and help us fine tune > performance! > > http://wiki.osgeo.org/wiki/Toronto_Code_Sprint_2009 > > More seriously, I have had the impression that some of the "everything > but the kitchen sink" distributions like MS4W, FWTools and OSGeo4W have > somewhat significant startup overhead - possibly due to the number of > DLLs being loaded at startup. You might look into a custom building > a "lite" version of mapserver and see if that helps. > > As someone else noted, fastcgi will also let you skip such startup > costs on a per request basis. > > But honestly, why not just buy another damn server? Isn't your time > worth something! > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at 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 at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From James.Leveille at mtq.gouv.qc.ca Fri Dec 12 08:00:08 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Fri, 12 Dec 2008 11:00:08 -0500 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E063A335C@SINFRA0-EXC003.MTQ.MIN.INTRA> 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/ ... 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 4B9F2BC1BF&displaylang=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 : AllowOverride All Options None Order allow,deny Allow from all d) Add : Options None Order allow,deny Allow from all e) Add : # The following line activates the fastCGI script to all files in location SetHandler fcgid-script Options None Order allow,deny Allow from all f) Add : 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" 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 ?... b) fastCGI : 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.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Rahkonen Jukka Envoy? : 12 d?cembre 2008 10:39 ? : Marcelo Oliveira; mapserver-users at 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:moliveira at GEOSTATS.com] L?hetetty: 12. joulukuuta 2008 17:05 Vastaanottaja: Rahkonen Jukka; mapserver-users at 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-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Friday, December 12, 2008 10:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to make MapServer WMS super fast? Hi, Are there any effective tricks for making MapServer to Top-Fuel class? We have now a typical ms4w installation on a rather good server platform with SCSI drives and 2 four-core processors running on Windows 2003 server. Our images are tiled, uncompressed geotiffs with overviews, vector sample data set is shapefile with shptree index. I have a shortened epsg file and my mapfile is extra short. Bandwith is not the limit. We are getting out now about 450 orthoimage pictures per minute (size 500 by 500 pixels) and 550 pictures from the vector layer in png24 image format. I consider that rather good, but we are required to reach 20 images per second, thus 1200 images per minute or 0.05 seconds per image. I wonder if anybody has tuned MapServer that far. I am willing to try however exotic solutions to reach the 20 WMS output images/second goal if somebody could suggest me what to try next. In our system there seems to be about 0.1 second ballast with WMS getMap requests and I cannot get any faster response even if I try with on empty data layer with nothing to render. Have anybody tried to keep mapfile, epsg-file or even tileindex files in RAM drive? Having about 20 parallel users seems to be optimal for our server and if I drive just WMS getCapabilities request against my mapfile I can get about 1300 responses per minute. That leads me to think that 1200 rendered images per minute might be possible to reach with optimal set-up. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Fri Dec 12 09:14:07 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 12 Dec 2008 09:14:07 -0800 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E063A335C@SINFRA0-EXC003.MTQ.MIN.INTRA> References: <2F86ED212F3E164EB9FBB2E68C67858E063A335C@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: <9c2015090812120914l64b02aa7h98b641be0b72de37@mail.gmail.com> I think serving pre-cached tiles with TileCache running under FastCGI should improve your response times considerably. Roger -- PS - Give send an update if you try any of these. On Fri, Dec 12, 2008 at 8:00 AM, L?veill?, James < James.Leveille at mtq.gouv.qc.ca> wrote: > 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/*... 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-074B9F2BC1BF&displaylang=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 : > > > > AllowOverride All > > Options None > > Order allow,deny > > Allow from all > > > > d) Add : > > > > Options None > > Order allow,deny > > Allow from all > > > > e) Add : > > > > # The following line activates the fastCGI script to all files > > in location > > SetHandler fcgid-script > > Options None > > Order allow,deny > > Allow from all > > > > f) Add : > > > > 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/Wbem;" > > 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" > > > > 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*?... > > > b) fastCGI : > > *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.leveille at mtq.gouv.qc.ca > > > > -----Message d'origine----- > *De :* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *De la part de* Rahkonen Jukka > *Envoy? :* 12 d?cembre 2008 10:39 > *? :* Marcelo Oliveira; mapserver-users at 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:moliveira at GEOSTATS.com] > *L?hetetty:* 12. joulukuuta 2008 17:05 > *Vastaanottaja:* Rahkonen Jukka; mapserver-users at 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-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Rahkonen Jukka > *Sent:* Friday, December 12, 2008 10:01 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] How to make MapServer WMS super fast? > > > > Hi, > > > > Are there any effective tricks for making MapServer to Top-Fuel class? We > have now a typical ms4w installation on a rather good server platform with > SCSI drives and 2 four-core processors running on Windows 2003 server. Our > images are tiled, uncompressed geotiffs with overviews, vector sample data > set is shapefile with shptree index. I have a shortened epsg file and my > mapfile is extra short. Bandwith is not the limit. We are getting out now > about 450 orthoimage pictures per minute (size 500 by 500 pixels) and 550 > pictures from the vector layer in png24 image format. I consider that > rather good, but we are required to reach 20 images per second, thus 1200 > images per minute or 0.05 seconds per image. I wonder if anybody has tuned > MapServer that far. > > > > I am willing to try however exotic solutions to reach the 20 WMS output > images/second goal if somebody could suggest me what to try next. In our > system there seems to be about 0.1 second ballast with WMS getMap requests > and I cannot get any faster response even if I try with on empty data layer > with nothing to render. Have anybody tried to keep mapfile, epsg-file or > even tileindex files in RAM drive? > > > > Having about 20 parallel users seems to be optimal for our server and if > I drive just WMS getCapabilities request against my mapfile I can get about > 1300 responses per minute. That leads me to think that 1200 rendered images > per minute might be possible to reach with optimal set-up. > > > > -Jukka Rahkonen- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Dec 12 09:18:32 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 12 Dec 2008 12:18:32 -0500 Subject: [mapserver-users] How to make MapServer WMS super fast? In-Reply-To: References: Message-ID: <49429CE8.8090907@gatewaygeomatics.com> Rahkonen Jukka wrote: > 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? > Yes, see your local /ms4w/README_INSTALL.txt file, or online at: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#f-fastcgi For questions regarding MS4W and FastCGI configurations please use the ms4w mailing list. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From ruijgomes at gmail.com Fri Dec 12 10:08:53 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 12 Dec 2008 18:08:53 +0000 Subject: [mapserver-users] Scalebar vs Numeric scale Message-ID: <31e2f7000812121008g4810c0f8p3dcaf1a7e27f30f2@mail.gmail.com> But the numeric scale match with the graphics if the resolution is correct. I search and discovered the exist 2 type of resolution: the monitor dpi and the font dpi. Is easy to get the user? font dpi. If they are equal (most of the case) we can get the correct resolution and send it to mapserver. I understand what you say and i will be very careful using it. Your OS knows the monitor dpi. And about the projector is true. Maps in paper have both numeric scale and graphic scale but if you shrink a A4 to a A5 they don't match. For that reason we must no use the numeric scale in the original? -- Rui Gomes From Jukka.Rahkonen at mmmtike.fi Fri Dec 12 10:45:17 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 12 Dec 2008 20:45:17 +0200 Subject: [mapserver-users] How to make MapServer WMS super fast? References: <2F86ED212F3E164EB9FBB2E68C67858E063A335C@SINFRA0-EXC003.MTQ.MIN.INTRA> <9c2015090812120914l64b02aa7h98b641be0b72de37@mail.gmail.com> Message-ID: Hi, I don't believe pre-cached tiles would fulfill specifications but it need to be basic WMS. I will try to get fast-CGI running and make some new measurements then. -Jukka Rahkonen- Roger Andr? wrote: > I think serving pre-cached tiles with TileCache running under FastCGI should > improve your response times considerably. Roger -- PS - Give send an update if you try any of these. On Fri, Dec 12, 2008 at 8:00 AM, L?veill?, James < James.Leveille at mtq.gouv.qc.ca> wrote: > 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/*... 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-074B9F2BC1BF&displaylang=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 : > > > > AllowOverride All > > Options None > > Order allow,deny > > Allow from all > > > > d) Add : > > > > Options None > > Order allow,deny > > Allow from all > > > > e) Add : > > > > # The following line activates the fastCGI script to all files > > in location > > SetHandler fcgid-script > > Options None > > Order allow,deny > > Allow from all > > > > f) Add : > > > > 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/Wbem;" > > 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" > > > > 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*?... > > > b) fastCGI : > > *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.leveille at mtq.gouv.qc.ca > > > > -----Message d'origine----- > *De :* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *De la part de* Rahkonen Jukka > *Envoy? :* 12 d?cembre 2008 10:39 > *? :* Marcelo Oliveira; mapserver-users at 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:moliveira at GEOSTATS.com] > *L?hetetty:* 12. joulukuuta 2008 17:05 > *Vastaanottaja:* Rahkonen Jukka; mapserver-users at 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-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Rahkonen Jukka > *Sent:* Friday, December 12, 2008 10:01 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] How to make MapServer WMS super fast? > > > > Hi, > > > > Are there any effective tricks for making MapServer to Top-Fuel class? We > have now a typical ms4w installation on a rather good server platform with > SCSI drives and 2 four-core processors running on Windows 2003 server. Our > images are tiled, uncompressed geotiffs with overviews, vector sample data > set is shapefile with shptree index. I have a shortened epsg file and my > mapfile is extra short. Bandwith is not the limit. We are getting out now > about 450 orthoimage pictures per minute (size 500 by 500 pixels) and 550 > pictures from the vector layer in png24 image format. I consider that > rather good, but we are required to reach 20 images per second, thus 1200 > images per minute or 0.05 seconds per image. I wonder if anybody has tuned > MapServer that far. > > > > I am willing to try however exotic solutions to reach the 20 WMS output > images/second goal if somebody could suggest me what to try next. In our > system there seems to be about 0.1 second ballast with WMS getMap requests > and I cannot get any faster response even if I try with on empty data layer > with nothing to render. Have anybody tried to keep mapfile, epsg-file or > even tileindex files in RAM drive? > > > > Having about 20 parallel users seems to be optimal for our server and if > I drive just WMS getCapabilities request against my mapfile I can get about > 1300 responses per minute. That leads me to think that 1200 rendered images > per minute might be possible to reach with optimal set-up. > > > > -Jukka Rahkonen- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From russell at flora.ca Fri Dec 12 12:12:16 2008 From: russell at flora.ca (Russell McOrmond) Date: Fri, 12 Dec 2008 15:12:16 -0500 (EST) Subject: [mapserver-users] Hiding map= from URL with FastCGI Message-ID: I am experimenting with running Mapserver via FastCGI. (Apache httpd 2.2.9, latest fcgi and mod_fastcgi from http://www.fastcgi.com/dist/, Mapserver 5.2.1 ) When in CGI mode we launch separate cgi scripts which look like: #! /bin/bash MS_MAPFILE=/data/ourserver/basemap/map/basemap_wms_en.map export MS_MAPFILE /data/ourserver/cgi-bin/mapserv In this way we don't need to specify a map= URL on the command line. I tried to do something similar with mod_fastcgi, but it tells me "loadMap(): Web application error. CGI variable "map" is not set." If I specify the map= on the URL, then things work. This leads to a few questions: Is it possible to do with FastCGI something similar to what we were doing with the CGI version of mapserver? Do I do this with environment variables, or am I left doing some sort of mod_rewrite hacking to add the map= into the URL on the fly? We have a number of different map files and there seems to be some efficiency that could be gained by allowing the same group of fcgi mapserver processes to be able to handle all of them, rather than having the situation that some processes (accessing more popular maps) end up more busy than other processes. Am I correct in thinking this, or is there benefits to having specific mapserver processes that would be caching database (Well, ArcSDE) connection information and have that sorted within Apache? Separate thoughts: I notice with the ESRI servers you can configure an ArcGIS SOM with multiple ArcGIS SOC servers. The benefit is that the processing can be load ballanced across multiple servers. It appears that something similar can be done with mapserver running under fcgi. The idea is to run 'lighthttpd' which does load ballancing across a number of fcgi processes running on multiple servers. Then run fcgi-mapserver on multltiple servers, allowing each to better split the load. Has anyone done this? I'm also curious what the experience has been comparing CGI vs FastCGI with mapserver? I'm aware that I need to modify our map files to have 'PROCESSING "CLOSE_CONNECTION=DEFER"' added to them to receive the real benefits of FastCGI. I saw a powerpoint presentation from 2005 http://mapserver.gis.umn.edu/community/conferences/MUM3/present/session10/msvsarcims and am curious if something more recent with more recent verious of the FLOSS and ESRI software has been done. Note: I'm not a very experienced GIS person, but I am a long-time FLOSS person. Separate from the current contract I would like to learn how to promote FLOSS GEO. It is a mixed environment with the current contract, and I'm always curious about the limitations that have been presented. Questions I've come up against so far: - a claim that ArcGIS server is 5+ times faster than Mapserver. I'm not convinced fair tests have been conducted yet. - investigations so far indicating that Mapserver doesn't yet support UTF8 character encoding. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From pcreso at pcreso.com Fri Dec 12 12:11:05 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 12 Dec 2008 12:11:05 -0800 (PST) Subject: [mapserver-users] How to make MapServer WMS super fast? Message-ID: <664800.98651.qm@web33207.mail.mud.yahoo.com> Hi, Some general comments, not juat related to mapserver setup... I think your peformance is likely to be more raster limited than vector, but apart from fast-cgi you might try using jpg's or png's with world files instead of geotiffs. Much smaller image file sizes (but two files to access) so less disk access time to retrieve them, but generally more cpu overhead to process them. I can't say which will result in overall faster performance, it depends on whether you are more I/O or cpu bound. Also, if you have large shapefiles, and are generally just rendering a small subset of them, you may find managing yor vector data in Postgis will be faster. Shapefiles seem to be faster when you want to plot most of or the whole dataset, but if you want to select attribute or spatial based subsets, they can be significantly faster on a well indexed Postgis table. Also, depending on your system, you can abstract your Postgis database to a separate physical database server, whereas - barring network mounts - your shapefiles need to reside on the same server as your imagery (although having your rasters & shapefiles on different physical disks & filesystems on a single server can improve I/O performance as they can be read concurrently - assuming your SCSI controllers are up to the task). Also, I have found Linux to be faster than Windows, quite significantly in some cases, although some opinions here differ :-) With Linux I find you can choose & tune your filesystem better, and 64bit Linux makes more effective use of large memory configurations (like 8-64Mb if you can get it). Adding memory to heavily loaded servers is one of the first ways to improve overall performance, if your OS can use it effectively. Cheers, Brent Wood From bfraser at geoanalytic.com Fri Dec 12 13:22:03 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 12 Dec 2008 14:22:03 -0700 Subject: [mapserver-users] problem using some fonts on pdf output In-Reply-To: References: Message-ID: <4942D5FB.1000206@geoanalytic.com> Jos?, I think it has to do with font embedding in the output pdf. Looking at the source code, Mapserver appears to embed fonts used for symbols, but not for text labels. Brent Fraser Jos? Mar?a Michia wrote: > Hi all. > > I have a mapfile, with some layers, with labels. I wish to use two > differents fonts, "arial" and "times". I have the two fonts as tff. > All work fine when I use shp2img utility program for make PNG files. > But, when I change output format to PDF, the text that must be in > times font, appears in other font (a Sans variant). I've opened the > PDF in Acroread and Inkscape, with same results. > > I'm using: > > Linux Gentoo > Mapserver 5.2.1 from sources > > "Sans" is nice font, and I happy with the map produced, but I wish to > know what happens. (I need "PDF files", and not "PNG files", because > the final maps are hardcopy maps). > > Thanks for any advice. > > Saludos > Jos? Mar?a > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jochen at remote.org Sat Dec 13 00:39:30 2008 From: jochen at remote.org (Jochen Topf) Date: Sat, 13 Dec 2008 09:39:30 +0100 Subject: [mapserver-users] Hiding map= from URL with FastCGI In-Reply-To: References: Message-ID: <20081213083930.GB13425@eldorado.topf.org> On Fri, Dec 12, 2008 at 03:12:16PM -0500, Russell McOrmond wrote: > I tried to do something similar with mod_fastcgi, but it tells me > > "loadMap(): Web application error. CGI variable "map" is not set." > > If I specify the map= on the URL, then things work. I assume you are using Apache. Add something like SetEnvIf Request_URI "/mapserv" MS_MAPFILE=/path/to/mapfile.map to the Apache config. Other web servers can probably do similar things. Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From jose.maria.michia at gmail.com Sat Dec 13 04:15:55 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Sat, 13 Dec 2008 10:15:55 -0200 Subject: [mapserver-users] problem using some fonts on pdf output In-Reply-To: <4942D5FB.1000206@geoanalytic.com> References: <4942D5FB.1000206@geoanalytic.com> Message-ID: 2008/12/12 Brent Fraser : > Jos?, > > I think it has to do with font embedding in the output pdf. Looking at the > source code, Mapserver appears to embed fonts used for symbols, but not for > text labels. > > Brent Fraser I've tried use the font Times as symbol, and yes, font are embedded in the resultant pdf. But, the labels using the same font in this file, not uses the same font. This is only a test, is not a good solution, because forcing to use the desired font as symbol. Maybe is easy to change the code for include in the PDF the fonts used in labels, but not for me right now. I hope to learn how some day. Thanks to Brent and all the people of MapServer. Saludos Jos? Mar?a > Jos? Mar?a Michia wrote: >> >> Hi all. >> >> I have a mapfile, with some layers, with labels. I wish to use two >> differents fonts, "arial" and "times". I have the two fonts as tff. >> All work fine when I use shp2img utility program for make PNG files. >> But, when I change output format to PDF, the text that must be in >> times font, appears in other font (a Sans variant). I've opened the >> PDF in Acroread and Inkscape, with same results. >> >> I'm using: >> >> Linux Gentoo >> Mapserver 5.2.1 from sources >> >> "Sans" is nice font, and I happy with the map produced, but I wish to >> know what happens. (I need "PDF files", and not "PNG files", because >> the final maps are hardcopy maps). >> >> Thanks for any advice. >> >> Saludos >> Jos? Mar?a >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From msieczka at sieczka.org Sat Dec 13 05:43:45 2008 From: msieczka at sieczka.org (Maciej Sieczka) Date: Sat, 13 Dec 2008 14:43:45 +0100 Subject: [mapserver-users] PostGIS vs Shapefile [was: How to make MapServer WMS super fast?] In-Reply-To: <664800.98651.qm@web33207.mail.mud.yahoo.com> References: <664800.98651.qm@web33207.mail.mud.yahoo.com> Message-ID: <4943BC11.6060706@sieczka.org> pcreso at pcreso.com pisze: > Shapefiles seem to be faster when you want to plot most of or the > whole dataset, but if you want to select attribute or spatial based > subsets, they can be significantly faster on a well indexed Postgis > table. Does this still hold true when appropriate tiling is done for Shapefiles, e.g. as described on [1]? [1]http://www.nabble.com/Re:-question-about-shp2tile-p4461869.html Maciek -- Maciej Sieczka www.sieczka.org From amiyapatra188 at gmail.com Sat Dec 13 05:55:35 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Sat, 13 Dec 2008 19:25:35 +0530 Subject: [mapserver-users] getting raster data Message-ID: hi Please tell me from where I can capture the images with latitude and longitude extent(free). Please response................... Thanks From jose.maria.michia at gmail.com Sat Dec 13 06:29:07 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Sat, 13 Dec 2008 12:29:07 -0200 Subject: [mapserver-users] getting raster data In-Reply-To: References: Message-ID: Maybe here: http://edcsns17.cr.usgs.gov/EarthExplorer/ http://www.vterrain.org/Imagery/sources.html Saludos Jos? Mar?a 2008/12/13 Amiya Patra : > hi > > Please tell me from where I can capture the images with latitude and > longitude extent(free). Please response................... > Thanks > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pcreso at pcreso.com Sat Dec 13 11:16:13 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sat, 13 Dec 2008 11:16:13 -0800 (PST) Subject: [mapserver-users] Re: PostGIS vs Shapefile [was: How to make MapServer WMS super fast?] In-Reply-To: <4943B91C.5030506@sieczka.org> Message-ID: <255397.50307.qm@web33201.mail.mud.yahoo.com> Hi, One quick comment, I haven't seen any suggestion of raster pyramids or having a few zoom layers of the rasters pre-built to improve mapserver performance. This is one area where performance can be significantly enhanced pretty easily. And onto Maciej's question, I figure I perhaps should expand somewhat on what I meant... all based on my experiences with mapserver, shapefiles & Postgis to date... Breaking a large shapefile up into spatial tiles will improve performance when zooming in as many of the tiles are not read, but when zoomed out, you have many shapefiles to process instead of just one. The fix for this is to use zoom (scale based) layers, with fewer large tiles of reduced precision data when zoomed out & many small high precision tiles when zoomed in. So much like zoom layers for rasters, you can build zoom layers for shapefiles. I believe this sort of optimisation can be managed more easily in Postgis, here are some examples I've used: a lake "layer" comprising several mapserver layers as a zoom based group implemented on an underlying postgis table as something like: select lakes from t_lake where lake_area > 1000 for small scale/zoom out select lakes from t_lake where lake_area > 100 for med scale select lakes from t_lake where lake_area > 10 for lger scale zoomed in Thus a single table provides several zoom layers. If you only have a few lakes & zoom layers, this can be done just about as fast with shapefiles, but when you have 100,000's of lakes, for example, the database can return a small subset (based on a well indexed query) to be rendered much faster than a shapefile can. A bathymetry contour "layer" where the number & precision of the contours is modified depending on scale (to support a WFS service providing roughly constant data volumes irrespective of scale - still a work in progress), eg select simplify(the_geom, 10000) from bathy_contours where depth in (select depth from contour_groups where scale=10000000) select simplify(the_geom, 1000) from bathy_contours where depth in (select depth from contour_groups where scale=1000000) select simplify(the_geom, 100) from bathy_contours where depth in (select depth from contour_groups where scale=100000) select the_geom from bathy_contours -- where scale < 50000 The contour_groups table allows me to define which contours are plotted at each scale, so perhaps (250, 500, 1000, 2000, 5000) when zoomed out, or (100, 250, 500, 750, 1000, 1500, 2000, 3000, 4000, 5000) as you zoom in to all avaiable contours for large scale (zoomed in) maps. (I can even gain a few milliseconds by hard coding the depths in the sql instead of using the subquery if necessary :-) The Postgis server queried by mapserver is not the one running mapserver & holding the rasyers in the application, but is a separate db server on a Gb LAN, thus distributing the load somewhat. The underlying dataset was originally a 150Mb shapefile, which as a WFS XML file became about 2Gb of text, a bit excessive for WFS connections at 10mb. By using simplify() & reducing the numbers of contours, we are able to generate a reasonable map at any scale without significantly changing the volume of data transmitted. The performsnce of the Postgis simplify() (Peuker-Douglas) function is exemplary, so that we have found no need to pre-build the point reduced layers, but can reduce the points dynamically as we need from a single high res dataset in a single table. The index on depth provides a high performance filter on which contour linestrings are processed. The spatial index quickly limits the contour segments to just those required for the extent required. This use of database functionality to manage data volumes like this is much easier than with shape files, and I have not (yet) had performance issues due to Postgis, or at least none that couldn't be fixed prety easily with some database optimisation, such as clustered indexes, partitioned tables, custom fields with indexed flag values, etc. The resulting application (mapfile) was much simpler & I only have one database to manage, instead of a plethora of versions of shapefiles, which doesn't improve the application performance, but does improve mine :-) Cheers, Brent Wood --- On Sun, 12/14/08, Maciej Sieczka wrote: > From: Maciej Sieczka > Subject: PostGIS vs Shapefile [was: How to make MapServer WMS super fast?] > To: pcreso at pcreso.com > Cc: Jukka.Rahkonen at mmmtike.fi, mapserver-users at lists.osgeo.org > Date: Sunday, December 14, 2008, 2:31 AM > pcreso at pcreso.com pisze: > > Shapefiles seem to be faster when you want to plot > most of or the > > whole dataset, but if you want to select attribute or > spatial based > > subsets, they can be significantly faster on a well > indexed Postgis > > table. > > Does this still hold true when appropriate tiling is done > for > Shapefiles, e.g. as described on [1]? > > [1]http://www.nabble.com/Re:-question-about-shp2tile-p4461869.html > > Maciek > > -- Maciej Sieczka > www.sieczka.org From tew24 at cam.ac.uk Sun Dec 14 02:13:16 2008 From: tew24 at cam.ac.uk (bibbob) Date: Sun, 14 Dec 2008 02:13:16 -0800 (PST) Subject: [MAPSERVER-USERS] Serving jpeg tiles - is there a howto? Message-ID: <20998876.post@talk.nabble.com> Hello, Sorry if this question is a bit newbie-ish, but I've searched quite a bit for a guide on how to do this and haven't come up with anything yet. I have a pile of JPEG images which are tiles of a map. I'd like to serve them as a layer in MapServer (to use them within OpenLayers, but that's another story). Each image has its co-ordinates built into the filename, like so: ~/tiles $ ls tile-250000-253000-340000-343000.jpg tile-256000-259000-340000-343000.jpg tile-262000-265000-340000-343000.jpg tile-268000-271000-340000-343000.jpg tile-250000-253000-343000-346000.jpg tile-256000-259000-343000-346000.jpg The list is truncated - the format is tile-minX-maxX-minY-maxY.jpg where the origin is in the bottom-left of the map. I've read that I can use gdaltindex to create the shapefile to index these tiles, but when I try it, it complains that they aren't georeferenced: "It appears no georeferencing is available for `tile-271000-274000-358000-361000.jpg', skipping." ...which is understandable, as they're just JPEGs. Any idea how I tell it where each tile is? How do I put this into Mapserver? If there's a HOWTO or similar out there that I've missed, could someone please let me know where it is? Thank you. PS. Sorry about the newbieness - there's just so much to learn about mapping software and I'm a bit lost. -- View this message in context: http://www.nabble.com/Serving-jpeg-tiles---is-there-a-howto--tp20998876p20998876.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Sun Dec 14 02:28:08 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 14 Dec 2008 11:28:08 +0100 Subject: [MAPSERVER-USERS] Serving jpeg tiles - is there a howto? In-Reply-To: <20998876.post@talk.nabble.com> References: <20998876.post@talk.nabble.com> Message-ID: hi, the "easiest" way imho would be to create a custom batch script that creates wld georeferencing files for each of your jpegs: - use grep on the file name to extract the upper left coordinate (minx, maxy) - calculate the size of a single pixel (either from the image size and extent, or hardcoded if all your images have the same pixel size) - write the georeferencing matrix to disk (check http://duff.ess.washington.edu/data/raster/drg/tfw.html) - check with gdalinfo that your georeferencing is taken into account cheers, thomas On Sun, Dec 14, 2008 at 11:13, bibbob wrote: > > Hello, > > Sorry if this question is a bit newbie-ish, but I've searched quite a bit > for a guide on how to do this and haven't come up with anything yet. > > I have a pile of JPEG images which are tiles of a map. I'd like to serve > them as a layer in MapServer (to use them within OpenLayers, but that's > another story). Each image has its co-ordinates built into the filename, > like so: > > ~/tiles $ ls > tile-250000-253000-340000-343000.jpg tile-256000-259000-340000-343000.jpg > tile-262000-265000-340000-343000.jpg tile-268000-271000-340000-343000.jpg > tile-250000-253000-343000-346000.jpg tile-256000-259000-343000-346000.jpg > > The list is truncated - the format is tile-minX-maxX-minY-maxY.jpg where the > origin is in the bottom-left of the map. > > I've read that I can use gdaltindex to create the shapefile to index these > tiles, but when I try it, it complains that they aren't georeferenced: > "It appears no georeferencing is available for > `tile-271000-274000-358000-361000.jpg', skipping." > > ...which is understandable, as they're just JPEGs. Any idea how I tell it > where each tile is? How do I put this into Mapserver? If there's a HOWTO > or similar out there that I've missed, could someone please let me know > where it is? > > Thank you. > > PS. Sorry about the newbieness - there's just so much to learn about mapping > software and I'm a bit lost. > -- > View this message in context: http://www.nabble.com/Serving-jpeg-tiles---is-there-a-howto--tp20998876p20998876.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From crschmidt at metacarta.com Sun Dec 14 06:42:31 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Sun, 14 Dec 2008 09:42:31 -0500 Subject: [MAPSERVER-USERS] Serving jpeg tiles - is there a howto? In-Reply-To: <20998876.post@talk.nabble.com> References: <20998876.post@talk.nabble.com> Message-ID: <20081214144231.GB18278@metacarta.com> On Sun, Dec 14, 2008 at 02:13:16AM -0800, bibbob wrote: > > Hello, > > Sorry if this question is a bit newbie-ish, but I've searched quite a bit > for a guide on how to do this and haven't come up with anything yet. > > I have a pile of JPEG images which are tiles of a map. I'd like to serve > them as a layer in MapServer (to use them within OpenLayers, but that's > another story). Each image has its co-ordinates built into the filename, > like so: Note that with something like this, you don't need MapServer at all: with a little bit of legwork, you can load these into OpenLayers directly, following the instructions in something like: http://trac.openlayers.org/wiki/UsingCustomTiles . For more help on that, feel free to stop by the OpenLayers mailing list. Regards, -- Christopher Schmidt MetaCarta From tew24 at cam.ac.uk Sun Dec 14 17:04:03 2008 From: tew24 at cam.ac.uk (bibbob) Date: Sun, 14 Dec 2008 17:04:03 -0800 (PST) Subject: [MAPSERVER-USERS] Serving jpeg tiles - is there a howto? In-Reply-To: <20081214144231.GB18278@metacarta.com> References: <20998876.post@talk.nabble.com> <20081214144231.GB18278@metacarta.com> Message-ID: <21006850.post@talk.nabble.com> Christopher Schmidt-4 wrote: > > Note that with something like this, you don't need MapServer at all: > with a little bit of legwork, you can load these into OpenLayers > directly, following the instructions in something like: > http://trac.openlayers.org/wiki/UsingCustomTiles . > Brilliant! Thanks for that, it's just what I wanted and I don't have to learn the complexities of Mapserver and shapefiles. Many thanks, that works beautifully! -- View this message in context: http://www.nabble.com/Serving-jpeg-tiles---is-there-a-howto--tp20998876p21006850.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Sun Dec 14 21:32:25 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 15 Dec 2008 11:02:25 +0530 Subject: [mapserver-users] How to get data based on Date in Postgresql/PostGIS Message-ID: <003c01c95e76$84f4d700$8ede8500$@com> Dear All, I want get data based on Date. When I run query select * from PointLayer where news_date ='12/2/2008'; in postgre Query builder , it is working fine. When I try "the_geom from PointLayer where news_date='12/2/2008'" I am not getting data(map).I don't know how to send date parameter.is it possible ?if it is ..please let me know. Advanced thanks Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sun Dec 14 22:26:45 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 15 Dec 2008 07:26:45 +0100 Subject: [mapserver-users] How to get data based on Date in Postgresql/PostGIS In-Reply-To: <003c01c95e76$84f4d700$8ede8500$@com> References: <003c01c95e76$84f4d700$8ede8500$@com> Message-ID: try DATA the_geom from (select id,the_geom from pointlayer where date='12/2/2008') as foo using unique id using srid=xxxx -- thomas On Mon, Dec 15, 2008 at 06:32, Venkat Rao Tammineni wrote: > Dear All, > > > > I want get data based on Date. When I run query select * from > PointLayer where news_date ='12/2/2008'; in postgre Query builder , it is > working fine. > > > > When I try "the_geom from PointLayer where news_date='12/2/2008'" I am > not getting data(map).I don't know how to send date parameter.is it > possible ?if it is ..please let me know. > > > > Advanced thanks > > > > Venkat. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From knb at gfz-potsdam.de Mon Dec 15 00:33:42 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Mon, 15 Dec 2008 09:33:42 +0100 Subject: [mapserver-users] wfs data conversion with ogr2ogr? Message-ID: <49461666.9000304@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I have received data from a WFS that was returned in this format: (Sample feature member) 4436682.0 5783076.0 4441086.0 5786776.0 1732 Marienborn ogrinfo can parse the file: ogrinfo SA_PLACES.gml Had to open data source read-only. INFO: Open of `SA_PLACES.gml' using driver `GML' successful. 1: featureSet_704 ogr2ogr can also convert the file to, say, Esri Shapefile. There isI must assign a source SRS and a target SRS and force a source geometry type. INFO: Open of `out/featureSet_704.shp' using driver `ESRI Shapefile' successful. Layer name: featureSet_704 Geometry: Line String Feature Count: 100 Extent: (0.000000, 0.000000) - (0.000000, 0.000000) Layer SRS WKT: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]] GEOM_ID: Real (11.0) NAME: String (19.0) OGRFeature(featureSet_704):0 GEOM_ID (Real) = 1732 NAME (String) = Marienborn ... After successful conversion, however, only the GEOM_ID and the NAME are exported. The spatial information is ignored lost during the conversion. Maybe it's in the wrong format, but it is obviously present in the GML fragment above. What can I do to convert the spatial information that is contained in the and elements? Knut - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklGFmYACgkQcfWHNfIsrO9NNACfTwBojDKZ0MU3J/yVUBiof5JP P28AnRStqwySPcQ9gM+hjAgQBNZYRZz4 =Eane -----END PGP SIGNATURE----- From Jukka.Rahkonen at mmmtike.fi Mon Dec 15 00:50:06 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 15 Dec 2008 10:50:06 +0200 Subject: [mapserver-users] wfs data conversion with ogr2ogr? In-Reply-To: <49461666.9000304@gfz-potsdam.de> Message-ID: Hi, For me it looks like that gml does not contain actual feature coordinates, but the bounding box of the feature. In this case feature is probably a point and feature coordinates and bbox are the same but perhaps a point should be introduced as a point as well? just thinking, I do not understand much gml. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Knut Behrends > L?hetetty: 15. joulukuuta 2008 10:34 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] wfs data conversion with ogr2ogr? > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I have received data from a WFS that was returned in this format: > (Sample feature member) > > > > > > > 4436682.0 > 5783076.0 > > > 4441086.0 > 5786776.0 > > > > 1732 > Marienborn > > > > ogrinfo can parse the file: > ogrinfo SA_PLACES.gml > Had to open data source read-only. > INFO: Open of `SA_PLACES.gml' > using driver `GML' successful. > 1: featureSet_704 > > ogr2ogr can also convert the file to, say, Esri Shapefile. > There isI must assign a source SRS and a target SRS and force > a source geometry type. > > INFO: Open of `out/featureSet_704.shp' > using driver `ESRI Shapefile' successful. > > Layer name: featureSet_704 > Geometry: Line String > Feature Count: 100 > Extent: (0.000000, 0.000000) - (0.000000, 0.000000) Layer SRS WKT: > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137,298.257223563]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.017453292519943295]] > GEOM_ID: Real (11.0) > NAME: String (19.0) > OGRFeature(featureSet_704):0 > GEOM_ID (Real) = 1732 > NAME (String) = Marienborn > ... > > > After successful conversion, however, only the GEOM_ID and > the NAME are exported. The spatial information is ignored > lost during the conversion. > Maybe it's in the wrong format, but it is obviously present > in the GML fragment above. What can I do to convert the > spatial information that is contained in the and elements? > > Knut > > > - -- > ______________________________________________________________ > ______________ > > Knut Behrends Phone: +49 (0) 331 288 1688 > Potsdam 14473 KeyID: 0xF22CACEF (PGP > Public Key) > ______________________________________________________________ > ______________ > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAklGFmYACgkQcfWHNfIsrO9NNACfTwBojDKZ0MU3J/yVUBiof5JP > P28AnRStqwySPcQ9gM+hjAgQBNZYRZz4 > =Eane > -----END PGP SIGNATURE----- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From knb at gfz-potsdam.de Mon Dec 15 01:00:26 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Mon, 15 Dec 2008 10:00:26 +0100 Subject: [Re: [mapserver-users] wfs data conversion with ogr2ogr?] Message-ID: <49461CAA.2020805@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In this case feature is probably a point and feature coordinates and bbox are the same but perhaps a point should be introduced as a point as well? The features are placenames. I have tried these geometry types before: POINT, LINESTRING, POLYGON ... nothing works really. For some placenames a point would be a proper representation, for some a polygon. - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklGHKkACgkQcfWHNfIsrO8wIgCdHC83AQkGmdj5C33VDhR7GrYv J74AnihReeRyZOg4LH0gYgZkGWojj4As =cWOr -----END PGP SIGNATURE----- From p_kruschitz at hotmail.com Mon Dec 15 02:28:07 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Mon, 15 Dec 2008 02:28:07 -0800 (PST) Subject: [MAPSERVER-USERS] WMS: layer status turned to on In-Reply-To: <49411FC4.7090006@mapgears.com> References: <20952698.post@talk.nabble.com> <49411FC4.7090006@mapgears.com> Message-ID: <21011410.post@talk.nabble.com> Hi Alexandre, Alexandre Dube wrote: > > Using MINSCALEDENOM and MAXSCALEDENOM could resolve your problem. Set > MINSCALEDENOM to 1 to the layers you don't want to show in the dummy > layer. > Thanks for the hint, I didn't think about it out at all. Setting MAXSCALEDENOM (instead of MINSCALEDENOM ;-) ) to 1 on the dummy layers does it as Mapserver won't prepare them for display and will deliver the maps a lot faster. Although this works for me, as I will never need to display those layers, there should be a way to tell Mapserver that some layers shouldn't be loaded when acting as a WMS-Server. I tought this was the purpose of STATUS, but this obviously isn't the case, as Mapserver can change that value freely. Merci encore, Philippe -- View this message in context: http://www.nabble.com/WMS%3A-layer-status-turned-to-on-tp20952698p21011410.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefan.schwarzer at grid.unep.ch Mon Dec 15 05:09:30 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Mon, 15 Dec 2008 14:09:30 +0100 Subject: [mapserver-users] Mapserver interacting with graphs and tables? Message-ID: <9A467CAB-5AD4-4E62-8EE1-A5D471E5CC0B@grid.unep.ch> Hi there, we've developed a couple of years ago a SVG application, which enables some interactivity between the graphs, maps and tables. Now, seeing more and more interactive applications out there (OECD Data Explorer, IMF, World Bank etc.), which are almost all based on Flex and Flash, I wonder where we stand nowadays. I mean, if you would have to develop a data portal, which enables the visualization of (statistical and geospatial) data in form of maps, graphics and tables; and you would want the user to for example hover over a country, getting directly a bar or line chart visualizing the evolution of this dataset over the last 30 years. How would you do that? Are there opensource packages out there which can do that? We've always been into opensource; so, if possible, I would like to avoid Flash. Furthermore as we don't have any Flash developer. Then, on the other side, there is ArcGIS Server with Flex frontend. Slick, very nice. That's in principal what I would want (more or less)... Can anyone give me some hints, comments, suggestions? Thanks a lot! Stef ____________________________________________________________________ Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch ____________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Mon Dec 15 05:39:05 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Mon, 15 Dec 2008 19:09:05 +0530 Subject: [mapserver-users] Please help me Message-ID: Hello everyone... I have one serious problem. My application is not running. Suddenly It happens.I dont know why?? Actually Problem is that If I run my program by simple typing the url then my system becomes hang(not hang actually it becomes to much slow).If I run http then my cpu load average is becoming 12.34 like that..(running the top command)but it should to be less than 2 always.And either Firefox or httpd is taking 99% cpu. And one more thing is that I got one message that Selinux is preventing the mislabelled files. If I disable Selinux then also my program is not running..Not running means it is coming after a long time. If I increased my server time out option to 60 from 30(default located in php.ini)then it is eventually coming after a long period. One More thing is that I have one image having extent 0,0,234,345.Now suppose I have latitude and longitude information of 4 corners of that picture. Now I want to change the extent of that picture .Is it possible?? Usually We define the extent of map .it means that output extent. if I include projection lat long and give the lat long extent(which is not embeded with that input picture) the picture will come or not......because the extent should to be output extent. Actually we should to have raster data not image ..but suppose we have raster image as input, and o/p will be the same image..... please help me.............help me plz........... Thanks Amiya -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at flora.ca Mon Dec 15 06:17:52 2008 From: russell at flora.ca (Russell McOrmond) Date: Mon, 15 Dec 2008 09:17:52 -0500 (EST) Subject: [mapserver-users] Hiding map= from URL with FastCGI In-Reply-To: <20081213083930.GB13425@eldorado.topf.org> References: <20081213083930.GB13425@eldorado.topf.org> Message-ID: On Sat, 13 Dec 2008, Jochen Topf wrote: > I assume you are using Apache. Add something like > > SetEnvIf Request_URI "/mapserv" MS_MAPFILE=/path/to/mapfile.map Thank you. This worked exactly as suggested. I hadn't realized that FastCGI passed environment variables from the Apache environment, and doesn't take them from within the fcgi process space. Here is what we're doing now, one to set the MS_MAPFILE environment variable, and the other to alias that special URL to the fastcgi compiled mapserver. SetEnvIf Request_URI "/base_wms_en" MS_MAPFILE=/where/is/my/basemap_wms_en.map Alias /base_wms_en /where/is/my/fcgi-bin/mapserv -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From bob.b at gritechnologies.com Mon Dec 15 07:07:50 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Mon, 15 Dec 2008 09:07:50 -0600 Subject: [mapserver-users] Mapserver interacting with graphs and tables? In-Reply-To: <9A467CAB-5AD4-4E62-8EE1-A5D471E5CC0B@grid.unep.ch> References: <9A467CAB-5AD4-4E62-8EE1-A5D471E5CC0B@grid.unep.ch> Message-ID: <494672C6.3080403@gritechnologies.com> Stef, I made a short Flash Demo (I just use Flash for these Demo's [so far]) of the popup capabilities of GeoMoose. I think it's close to the functionality you are describing. I've put this page up temporarily: http://rlb.gritechnologies.com/gismo/gismo3c4.html I can get into more detail if you need more information about the GeoMoose framework. bobb Stefan Schwarzer wrote: > Hi there, > > we've developed a couple of years ago a SVG application, which enables > some interactivity between the graphs, maps and tables. Now, seeing > more and more interactive applications out there (OECD Data Explorer, > IMF, World Bank etc.), which are almost all based on Flex and Flash, I > wonder where we stand nowadays. > > I mean, if you would have to develop a data portal, which enables the > visualization of (statistical and geospatial) data in form of maps, > graphics and tables; and you would want the user to for example hover > over a country, getting directly a bar or line chart visualizing the > evolution of this dataset over the last 30 years. How would you do > that? Are there opensource packages out there which can do that? > > We've always been into opensource; so, if possible, I would like to > avoid Flash. Furthermore as we don't have any Flash developer. > > Then, on the other side, there is ArcGIS Server with Flex frontend. > Slick, very nice. That's in principal what I would want (more or less)... > > Can anyone give me some hints, comments, suggestions? > > Thanks a lot! > > Stef > > ____________________________________________________________________ > > > > Lean Back and Relax - Enjoy some Nature Photography > http://photoblog.la-famille-schwarzer.de > > Appetite for Global Data? UNEP GEO Data Portal: > http://geodata.grid.unep.ch > ____________________________________________________________________ > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Mon Dec 15 07:58:52 2008 From: danlittle at yahoo.com (Dan Little) Date: Mon, 15 Dec 2008 07:58:52 -0800 (PST) Subject: [mapserver-users] Please help me References: Message-ID: <958779.81374.qm@web51405.mail.re2.yahoo.com> Sounds like you have a multifaceted problem. Is SELINUX are requirement of your environment? If not ... you might just want to g'head and disable it. Before people get on my back, I know it's bad to disable SELINUX to fix problems ... but it's a good first step to diagnose if it is the root of the problem. Then go back, fix your labels, and re-enable SELINUX. As SELINUX is the first error you see I'd suggest starting there. Also, what is your application actually doing? If you're doing a join against a large shapefile or doing a big database operation you may need to look at optimizing the database queries. The picture thing should probably come AFTER fixing some of the other problems... 'course that's where my knowlege and assistance runs a little short... I haven't georeferenced any rasters in a while. ________________________________ From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Monday, December 15, 2008 7:39:05 AM Subject: [mapserver-users] Please help me Hello everyone... I have one serious problem. My application is not running. Suddenly It happens.I dont know why?? Actually Problem is that If I run my program by simple typing the url then my system becomes hang(not hang actually it becomes to much slow).If I run http then my cpu load average is becoming 12.34 like that..(running the top command)but it should to be less than 2 always.And either Firefox or httpd is taking 99% cpu. And one more thing is that I got one message that Selinux is preventing the mislabelled files. If I disable Selinux then also my program is not running..Not running means it is coming after a long time. If I increased my server time out option to 60 from 30(default located in php.ini)then it is eventually coming after a long period. One More thing is that I have one image having extent 0,0,234,345.Now suppose I have latitude and longitude information of 4 corners of that picture. Now I want to change the extent of that picture .Is it possible?? Usually We define the extent of map .it means that output extent. if I include projection lat long and give the lat long extent(which is not embeded with that input picture) the picture will come or not......because the extent should to be output extent. Actually we should to have raster data not image ..but suppose we have raster image as input, and o/p will be the same image..... please help me.............help me plz........... Thanks Amiya -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Mon Dec 15 08:22:31 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 15 Dec 2008 09:22:31 -0700 Subject: [mapserver-users] problem using some fonts on pdf output In-Reply-To: References: <4942D5FB.1000206@geoanalytic.com> Message-ID: <49468447.7080807@geoanalytic.com> Jos?, I did some investigation and I think I found the line in mappdf.c that needs to be changed, line 1318: /*load font using alias*/ // font = PDF_load_font(pdf, "f1" ,0 ,"winansi", NULL font = PDF_load_font(pdf, label->font ,0 ,"winansi", "embedding=true" );// changed so (multiple) fonts are embedded It appears to work on my XP computer, but I don't have a linux box to test on. So if someone could test on linux etc, I'd appreciate it. And I see there's support for an alternate PDF library planned: http://trac.osgeo.org/mapserver/ticket/2661 Brent Fraser Jos? Mar?a Michia wrote: > 2008/12/12 Brent Fraser : >> Jos?, >> >> I think it has to do with font embedding in the output pdf. Looking at the >> source code, Mapserver appears to embed fonts used for symbols, but not for >> text labels. >> >> Brent Fraser > > I've tried use the font Times as symbol, and yes, font are embedded in > the resultant pdf. But, the labels using the same font in this file, > not uses the same font. This is only a test, is not a good solution, > because forcing to use the desired font as symbol. > > Maybe is easy to change the code for include in the PDF the fonts used > in labels, but not for me right now. I hope to learn how some day. > > Thanks to Brent and all the people of MapServer. > Saludos > Jos? Mar?a > >> Jos? Mar?a Michia wrote: >>> Hi all. >>> >>> I have a mapfile, with some layers, with labels. I wish to use two >>> differents fonts, "arial" and "times". I have the two fonts as tff. >>> All work fine when I use shp2img utility program for make PNG files. >>> But, when I change output format to PDF, the text that must be in >>> times font, appears in other font (a Sans variant). I've opened the >>> PDF in Acroread and Inkscape, with same results. >>> >>> I'm using: >>> >>> Linux Gentoo >>> Mapserver 5.2.1 from sources >>> >>> "Sans" is nice font, and I happy with the map produced, but I wish to >>> know what happens. (I need "PDF files", and not "PNG files", because >>> the final maps are hardcopy maps). >>> >>> Thanks for any advice. >>> >>> Saludos >>> Jos? Mar?a >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > From Steve.Lime at dnr.state.mn.us Mon Dec 15 08:44:17 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 15 Dec 2008 10:44:17 -0600 Subject: [mapserver-users] Mapserver interacting with graphs and tables? Message-ID: <494635010200008F0001E920@co5.dnr.state.mn.us> We've done it by feeding data to owtchart in a MapServer query template. You could also create a URL template response consisting of a call to owtchart. Here's an example page: http://www.dnr.state.mn.us/hunting/deer/mapit2003.html?imgxy=174.5+174.5&map=%2Fusr%2Flocal%2Fwww%2Fdocs_maps%2Fwildlife%2Fwhitetail%2Fmain2003.map&imgext=74105.727952+4774937.053875+798393.592828+5499224.918751&layer=total&zoom=1&mode=query&img.x=189&img.y=75 I'm sure there are other Open Source tools to build the graphs in Flash. Or you could write your own helper tool with something like GD::Graph (Perl) or matplotlib (python). Would be fastest to prototype with OWTChart quickly and then improve quality as necessary. We'll be using matplotlib in the near future (AGG or Cairo output). Steve >>> Stefan Schwarzer 12/15/08 7:31 AM >>> Hi there, we've developed a couple of years ago a SVG application, which enables some interactivity between the graphs, maps and tables. Now, seeing more and more interactive applications out there (OECD Data Explorer, IMF, World Bank etc.), which are almost all based on Flex and Flash, I wonder where we stand nowadays. I mean, if you would have to develop a data portal, which enables the visualization of (statistical and geospatial) data in form of maps, graphics and tables; and you would want the user to for example hover over a country, getting directly a bar or line chart visualizing the evolution of this dataset over the last 30 years. How would you do that? Are there opensource packages out there which can do that? We've always been into opensource; so, if possible, I would like to avoid Flash. Furthermore as we don't have any Flash developer. Then, on the other side, there is ArcGIS Server with Flex frontend. Slick, very nice. That's in principal what I would want (more or less)... Can anyone give me some hints, comments, suggestions? Thanks a lot! Stef ____________________________________________________________________ Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch ____________________________________________________________________ From warmerdam at pobox.com Mon Dec 15 09:21:16 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 15 Dec 2008 12:21:16 -0500 Subject: [mapserver-users] wfs data conversion with ogr2ogr? In-Reply-To: <49461666.9000304@gfz-potsdam.de> References: <49461666.9000304@gfz-potsdam.de> Message-ID: <4946920C.5030207@pobox.com> Knut Behrends wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I have received data from a WFS that was returned in this format: > (Sample feature member) > > > > > > > 4436682.0 > 5783076.0 > > > 4441086.0 > 5786776.0 > > > > 1732 > Marienborn > > ... > After successful conversion, however, only the GEOM_ID and the NAME are > exported. The spatial information is ignored lost during the conversion. > Maybe it's in the wrong format, but it is obviously present in the GML > fragment above. What can I do to convert the spatial information that is > contained in the and elements? Knut, The above feature fragment from a WFS lacks a geometry properly. The boundedBy properly is normally ignored by OGR. Following is a simple example of a GML feature with a point geometry attribute. Bowstring Municipal Airport 47.5583 -93.8689 1372.0000 Jessie Lake 434634,5267578 If you can influence your WFS, then producing something a bit like this might be good. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jose.maria.michia at gmail.com Mon Dec 15 10:38:48 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Mon, 15 Dec 2008 16:38:48 -0200 Subject: [mapserver-users] problem using some fonts on pdf output In-Reply-To: <49468447.7080807@geoanalytic.com> References: <4942D5FB.1000206@geoanalytic.com> <49468447.7080807@geoanalytic.com> Message-ID: 2008/12/15 Brent Fraser : > Jos?, > > I did some investigation and I think I found the line in mappdf.c that > needs to be changed, line 1318: > > /*load font using alias*/ > // font = PDF_load_font(pdf, "f1" ,0 ,"winansi", NULL > font = PDF_load_font(pdf, label->font ,0 ,"winansi", "embedding=true" );// > changed so (multiple) fonts are embedded > > > It appears to work on my XP computer, but I don't have a linux box to test > on. So if someone could test on linux etc, I'd appreciate it. I tried this on my Linux, and works well. Note: if the font who used, have license restrictions, the font can not be embedded. > And I see there's support for an alternate PDF library planned: > http://trac.osgeo.org/mapserver/ticket/2661 > > Brent Fraser Thanks very much Brent. Now, I will to use "Times" where I desired. Something strange (to me) with this: I have not had a problem to use "Italic Times" in the first case where I could not use Times. In the file "FONTSET," I have defined: times /fontpath/times.ttf timesi /fontpath/timesi.ttf Before modify the code with the changes proposed by Brent, "times" was substituted for "Sans", but "timesi" remained "Times Italic" (in the PDF file). Saludos Jos? Mar?a > Jos? Mar?a Michia wrote: >> >> 2008/12/12 Brent Fraser : >>> >>> Jos?, >>> >>> I think it has to do with font embedding in the output pdf. Looking at >>> the >>> source code, Mapserver appears to embed fonts used for symbols, but not >>> for >>> text labels. >>> >>> Brent Fraser >> >> I've tried use the font Times as symbol, and yes, font are embedded in >> the resultant pdf. But, the labels using the same font in this file, >> not uses the same font. This is only a test, is not a good solution, >> because forcing to use the desired font as symbol. >> >> Maybe is easy to change the code for include in the PDF the fonts used >> in labels, but not for me right now. I hope to learn how some day. >> >> Thanks to Brent and all the people of MapServer. >> Saludos >> Jos? Mar?a >> >>> Jos? Mar?a Michia wrote: >>>> >>>> Hi all. >>>> >>>> I have a mapfile, with some layers, with labels. I wish to use two >>>> differents fonts, "arial" and "times". I have the two fonts as tff. >>>> All work fine when I use shp2img utility program for make PNG files. >>>> But, when I change output format to PDF, the text that must be in >>>> times font, appears in other font (a Sans variant). I've opened the >>>> PDF in Acroread and Inkscape, with same results. >>>> >>>> I'm using: >>>> >>>> Linux Gentoo >>>> Mapserver 5.2.1 from sources >>>> >>>> "Sans" is nice font, and I happy with the map produced, but I wish to >>>> know what happens. (I need "PDF files", and not "PNG files", because >>>> the final maps are hardcopy maps). >>>> >>>> Thanks for any advice. >>>> >>>> Saludos >>>> Jos? Mar?a >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >> > From jose.maria.michia at gmail.com Mon Dec 15 11:17:40 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Mon, 15 Dec 2008 17:17:40 -0200 Subject: [mapserver-users] Mapserver interacting with graphs and tables? In-Reply-To: <494635010200008F0001E920@co5.dnr.state.mn.us> References: <494635010200008F0001E920@co5.dnr.state.mn.us> Message-ID: > I'm sure there are other Open Source tools to build the graphs in Flash. Or you could > write your own helper tool with something like GD::Graph (Perl) or matplotlib (python). I think that the following tools can be useful or interesting: http://www.teethgrinder.co.uk/open-flash-chart/ http://code.google.com/apis/chart/ I hope that this info be useful. Saludos Jos? Mar?a From jose.maria.michia at gmail.com Mon Dec 15 11:34:58 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Mon, 15 Dec 2008 17:34:58 -0200 Subject: [mapserver-users] problem using some fonts on pdf output In-Reply-To: References: <4942D5FB.1000206@geoanalytic.com> <49468447.7080807@geoanalytic.com> Message-ID: I've found that option "ANGLE=follow" not works with PDF output format. I guess it might be useful to send a message to where they are planning changes to the PDF support: >> And I see there's support for an alternate PDF library planned: >> http://trac.osgeo.org/mapserver/ticket/2661 So, i will to do this. Saludos Jos? Mar?a 2008/12/15 Jos? Mar?a Michia : > 2008/12/15 Brent Fraser : >> Jos?, >> >> I did some investigation and I think I found the line in mappdf.c that >> needs to be changed, line 1318: >> >> /*load font using alias*/ >> // font = PDF_load_font(pdf, "f1" ,0 ,"winansi", NULL >> font = PDF_load_font(pdf, label->font ,0 ,"winansi", "embedding=true" );// >> changed so (multiple) fonts are embedded >> >> >> It appears to work on my XP computer, but I don't have a linux box to test >> on. So if someone could test on linux etc, I'd appreciate it. > > I tried this on my Linux, and works well. > > Note: if the font who used, have license restrictions, the font can > not be embedded. > >> And I see there's support for an alternate PDF library planned: >> http://trac.osgeo.org/mapserver/ticket/2661 >> >> Brent Fraser > > Thanks very much Brent. Now, I will to use "Times" where I desired. > > Something strange (to me) with this: I have not had a problem to use > "Italic Times" in the first case where I could not use Times. > > In the file "FONTSET," I have defined: > > times /fontpath/times.ttf > timesi /fontpath/timesi.ttf > > Before modify the code with the changes proposed by Brent, "times" was > substituted for "Sans", but "timesi" remained "Times Italic" (in the > PDF file). > > Saludos > Jos? Mar?a > >> Jos? Mar?a Michia wrote: >>> >>> 2008/12/12 Brent Fraser : >>>> >>>> Jos?, >>>> >>>> I think it has to do with font embedding in the output pdf. Looking at >>>> the >>>> source code, Mapserver appears to embed fonts used for symbols, but not >>>> for >>>> text labels. >>>> >>>> Brent Fraser >>> >>> I've tried use the font Times as symbol, and yes, font are embedded in >>> the resultant pdf. But, the labels using the same font in this file, >>> not uses the same font. This is only a test, is not a good solution, >>> because forcing to use the desired font as symbol. >>> >>> Maybe is easy to change the code for include in the PDF the fonts used >>> in labels, but not for me right now. I hope to learn how some day. >>> >>> Thanks to Brent and all the people of MapServer. >>> Saludos >>> Jos? Mar?a >>> >>>> Jos? Mar?a Michia wrote: >>>>> >>>>> Hi all. >>>>> >>>>> I have a mapfile, with some layers, with labels. I wish to use two >>>>> differents fonts, "arial" and "times". I have the two fonts as tff. >>>>> All work fine when I use shp2img utility program for make PNG files. >>>>> But, when I change output format to PDF, the text that must be in >>>>> times font, appears in other font (a Sans variant). I've opened the >>>>> PDF in Acroread and Inkscape, with same results. >>>>> >>>>> I'm using: >>>>> >>>>> Linux Gentoo >>>>> Mapserver 5.2.1 from sources >>>>> >>>>> "Sans" is nice font, and I happy with the map produced, but I wish to >>>>> know what happens. (I need "PDF files", and not "PNG files", because >>>>> the final maps are hardcopy maps). >>>>> >>>>> Thanks for any advice. >>>>> >>>>> Saludos >>>>> Jos? Mar?a >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>> >> > From cclabaugh at centwire.com Mon Dec 15 14:24:39 2008 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Mon, 15 Dec 2008 17:24:39 -0500 Subject: [mapserver-users] msTileSetup(): CGI error. Tile API is not available. Message-ID: <003501c95f03$eb618ff0$c224afd0$@com> Hello, I'm creating my first map server and I'm trying to generate tiles for gmap from shapfiles. I have successfully gotten the mapserver to render the shapefiles using the following url: http://000.000.000.000/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag e.map &mode=map but when I try to use (only "mode" changes): http://000.000.000.000/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag e.map &mode=tile I receive the error: msTileSetup(): CGI error. Tile API is not available. I know that I'll need more url switches (I've simplified for the example), however, I cannot find anything online concerning this error. I've compiled this on SUSE linux, and the map file contains only one simple map and layer section. If you need more info, please let me know. I am also wondering if I'm going about this the correct way. I would ideally like to generate a tile cache rather than generate per request. But I have not found a tutorial to do such (I'm sure there's one out there). Thank you much! Chad Clabaugh Technical Support, Engineering Office: 260.760.6398 Mobile: 260.466.8861 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Mon Dec 15 14:34:33 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 15 Dec 2008 14:34:33 -0800 Subject: [mapserver-users] PostGIS 1.3.5 Message-ID: <30fe546d0812151434y1bed1ad7y94b6dd01432d9f77@mail.gmail.com> The 1.3.5 release of PostGIS is available. I am cross-posting to Mapserver because of the particular interest for that community in this release. This release fixes a minor change in 1.3.4 that caused and Mapserver LINE layer to start crashing PostGIS. If you are using Mapserver and PostGIS, do not use version 1.3.4. Use this new version, or an earlier version. - A quick bug fix release, to remove crashes in cases of collecting LINESTRING (ST_Force_Collection(), ST_Multi()) that had a large affect on Mapserver with LINE layers. - Enhancements and Bug Fixes - GBT#21: improve LRS fix to apply to more platforms (Mark Cave-Ayland) - GBT#72: fix st_estimated_extent for better schema sensitivity (Mark Cave-Ayland) - GBT#80: segfault on st_multi in MULTILINESTRING repaired (Mark Cave-Ayland) - GBT#83: segfault on collecting LINESTRING repaired (Mark Cave-Ayland) From cclabaugh at centwire.com Mon Dec 15 14:36:50 2008 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Mon, 15 Dec 2008 17:36:50 -0500 Subject: [mapserver-users] msTileSetup(): CGI error. Tile API is not available. Message-ID: <004901c95f05$9f0749e0$dd15dda0$@com> Hello, I'm creating my first map server and I'm trying to generate tiles for gmap from shapfiles. I have successfully gotten the mapserver to render the shapefiles by using the following url: http://000.000.000.000/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag e.map &mode=map but when I try to use (only "mode" changes): http://000.000.000.000/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag e.map &mode=tile I receive the error: msTileSetup(): CGI error. Tile API is not available. I know that I'll need more url switches (I've simplified for the example), however, I cannot find anything online concerning this error. I've compiled this on SUSE linux, and the map file contains only one simple map and layer section. If you need more info, please let me know. I am also wondering if I'm going about this the correct way. I would ideally like to generate a tile cache rather than generate per request. But I have not found a tutorial to do such (I'm sure there's one out there). Thank you much! Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Mon Dec 15 14:46:05 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Mon, 15 Dec 2008 17:46:05 -0500 Subject: [mapserver-users] msTileSetup(): CGI error. Tile API is not available. In-Reply-To: <003501c95f03$eb618ff0$c224afd0$@com> References: <003501c95f03$eb618ff0$c224afd0$@com> Message-ID: <20081215224605.GD23663@metacarta.com> On Mon, Dec 15, 2008 at 05:24:39PM -0500, Chad Clabaugh wrote: > Hello, > > > > I'm creating my first map server and I'm trying to generate tiles for gmap > from shapfiles. I have successfully gotten the mapserver to render the > shapefiles using the following url: > > > > http://000.000.000.000/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag > e.map > ge.map&mode=map> &mode=map > > > > but when I try to use (only "mode" changes): In order to use the Tile API, you must have proj support. Is your MapServer compiled with PROJ support? You can check this with: mapserv -v and looking for SUPPORTS=PROJ. -- Chris > > > http://000.000.000.000/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag > e.map > ge.map&mode=tile> &mode=tile > > > > I receive the error: > > msTileSetup(): CGI error. Tile API is not available. > > > > I know that I'll need more url switches (I've simplified for the example), > however, I cannot find anything online concerning this error. I've compiled > this on SUSE linux, and the map file contains only one simple map and layer > section. > > If you need more info, please let me know. > > > > I am also wondering if I'm going about this the correct way. I would > ideally like to generate a tile cache rather than generate per request. But > I have not found a tutorial to do such (I'm sure there's one out there). > > > > Thank you much! > > > > Chad Clabaugh > > Technical Support, Engineering > > Office: 260.760.6398 > > Mobile: 260.466.8861 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From Andre.Gosselin at dfo-mpo.gc.ca Mon Dec 15 15:24:43 2008 From: Andre.Gosselin at dfo-mpo.gc.ca (Gosselin, Andre) Date: Mon, 15 Dec 2008 18:24:43 -0500 Subject: [mapserver-users] How to specify the nodata index to be used when outputting a PC256 GTiff with GDAL/GTiff dirver Message-ID: Hi, I have a LAYER based on a gtiff file reported as follows by gdalinfo : Band 1 Block=10800x1 Type=Byte, ColorInterp=Palette NoData Value=255 Color Table (RGB with 256 entries) 0: 255,0,255,255 1: 250,0,255,255 2: 240,0,255,255 3: 230,0,255,255 (snip) 253: 143,0,0,255 254: 140,0,0,255 255: 0,0,0,255 I would like Mapserver to produce a gtiff output with the same palette as the above one, eg with 255 as the nodata value. I just cannot see how to do that. Whatever I try, it appears that the missing value is always assigned to palette index 0 in the output tiff file. For ex. here is what gdalinfo reports for the output file : Band 1 Block=1000x8 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 255,0,255,255 2: 250,0,255,255 3: 240,0,255,255 (snip) 252: 150,0,0,255 253: 147,0,0,255 254: 143,0,0,255 255: 140,0,0,255 Note that there is no explicit "NoData Value= " indication. The input color palette has been "shifted down" by one position, with the former "255:0,0,0,255" entry now at top as "0: 0,0,0,255". This annoying, because the byte values in the output tiff file do not match anymore those in the input file. Is there away to avoid this problem (except requiring all my source tiff layers to be rewritten to use 0 as the nodata value instead of 255, which would be a big pain given their high number). Regards, Andre Gosselin Maurice Lamontagne Institute -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Mon Dec 15 20:54:51 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 15 Dec 2008 21:54:51 -0700 Subject: [mapserver-users] How to specify the nodata index to be used when outputting a PC256 GTiff with GDAL/GTiff dirver In-Reply-To: References: Message-ID: On Mon, Dec 15, 2008 at 4:24 PM, Gosselin, Andre wrote: > Hi, > > I have a LAYER based on a gtiff file reported as follows by gdalinfo : > > Band 1 Block=10800x1 Type=Byte, ColorInterp=Palette > NoData Value=255 > Color Table (RGB with 256 entries) > 0: 255,0,255,255 > 1: 250,0,255,255 > 2: 240,0,255,255 > 3: 230,0,255,255 > (snip) > 253: 143,0,0,255 > 254: 140,0,0,255 > 255: 0,0,0,255 > > I would like Mapserver to produce a gtiff output with the same palette as > the above one, eg with > 255 as the nodata value. I just cannot see how to do that. Whatever I try, > it appears that the missing value is always assigned to palette index 0 in > the > output tiff file. For ex. here is what gdalinfo reports for the output file > : > > Band 1 Block=1000x8 Type=Byte, ColorInterp=Palette > Color Table (RGB with 256 entries) > 0: 0,0,0,255 > 1: 255,0,255,255 > 2: 250,0,255,255 > 3: 240,0,255,255 > (snip) > 252: 150,0,0,255 > 253: 147,0,0,255 > 254: 143,0,0,255 > 255: 140,0,0,255 > > Note that there is no explicit "NoData Value= " indication. The input color > palette has been "shifted down" by one position, with the former > "255:0,0,0,255" entry now at top as "0: 0,0,0,255". > > This annoying, because the byte values in the output tiff file do not match > anymore those in the input file. > > Is there away to avoid this problem (except requiring all my source tiff > layers to be rewritten to use 0 as the nodata value instead of 255, which > would be a big pain given their high number). > > Regards, > > Andre Gosselin > Maurice Lamontagne Institute Hi Andre: How did you get Mapserver to produce a paletted Gtiff output image? Are you making a WMS GetMap request? I am trying to preserve the palette in a WCS GetCoverage request without success (I get a grayscale image), and I am interested in your solution. Also, how have you configured the output format in your .map file? Thanks in advance, Alex From vtammineni at roulacglobal.com Mon Dec 15 21:07:08 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 16 Dec 2008 10:37:08 +0530 Subject: [mapserver-users] How to get data based on Date in Postgresql/PostGIS In-Reply-To: References: <003c01c95e76$84f4d700$8ede8500$@com> Message-ID: <004b01c95f3c$277d9d70$7678d850$@com> Dear Thomas, I am not getting Point layer.I am getting blank image.Below is my query. Data "the_geom from (select gid,the_geom from globalnews where news_date='12/2/2008') as foo using unique gid using srid=3000" I don't know what is foo? I am getting confuse on this. Globalnews is point layer and news_date is varchar type, is there any problem with that? Please let me know.give me some suggestion on this. I am waiting for your great response. Thanks, Venkat. -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Monday, December 15, 2008 11:57 AM To: Venkat Rao Tammineni Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to get data based on Date in Postgresql/PostGIS try DATA the_geom from (select id,the_geom from pointlayer where date='12/2/2008') as foo using unique id using srid=xxxx -- thomas On Mon, Dec 15, 2008 at 06:32, Venkat Rao Tammineni wrote: > Dear All, > > > > I want get data based on Date. When I run query select * from > PointLayer where news_date ='12/2/2008'; in postgre Query builder , it is > working fine. > > > > When I try "the_geom from PointLayer where news_date='12/2/2008'" I am > not getting data(map).I don't know how to send date parameter.is it > possible ?if it is ..please let me know. > > > > Advanced thanks > > > > Venkat. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From vtammineni at roulacglobal.com Mon Dec 15 22:08:28 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 16 Dec 2008 11:38:28 +0530 Subject: [mapserver-users] How to get data based on Date in Postgresql/PostGIS In-Reply-To: References: <003c01c95e76$84f4d700$8ede8500$@com> Message-ID: <004f01c95f44$b890ec10$29b2c430$@com> Dear Thomas, I have done with my task. Here the thing is we need to have all the field members with in the Query. Thanks for great response. Here is my Code:- Data "the_geom from (select gid,test,date,class,the_geom from globalnews where date='12/2/2008') as Foo USING UNIQUE gid USING 'SRID=3000'" Thanks, Venkat. -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Monday, December 15, 2008 11:57 AM To: Venkat Rao Tammineni Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to get data based on Date in Postgresql/PostGIS try DATA the_geom from (select id,the_geom from pointlayer where date='12/2/2008') as foo using unique id using srid=xxxx -- thomas On Mon, Dec 15, 2008 at 06:32, Venkat Rao Tammineni wrote: > Dear All, > > > > I want get data based on Date. When I run query select * from > PointLayer where news_date ='12/2/2008'; in postgre Query builder , it is > working fine. > > > > When I try "the_geom from PointLayer where news_date='12/2/2008'" I am > not getting data(map).I don't know how to send date parameter.is it > possible ?if it is ..please let me know. > > > > Advanced thanks > > > > Venkat. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From knb at gfz-potsdam.de Tue Dec 16 01:31:18 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Tue, 16 Dec 2008 10:31:18 +0100 Subject: [mapserver-users] wfs data conversion with ogr2ogr? In-Reply-To: <4946920C.5030207@pobox.com> References: <49461666.9000304@gfz-potsdam.de> <4946920C.5030207@pobox.com> Message-ID: <49477566.8040508@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Frank Warmerdam schrieb: > Knut Behrends wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi all, >> >> I have received data from a WFS that was returned in this format: >> (Sample feature member) >> >> >> >> >> >> >> 4436682.0 >> 5783076.0 >> >> >> 4441086.0 >> 5786776.0 >> >> >> >> 1732 >> Marienborn >> >> > ... > >> After successful conversion, however, only the GEOM_ID and the NAME are >> exported. The spatial information is ignored lost during the conversion. >> Maybe it's in the wrong format, but it is obviously present in the GML >> fragment above. What can I do to convert the spatial information that is >> contained in the and elements? > > Knut, > > The above feature fragment from a WFS lacks a geometry properly. The > boundedBy properly is normally ignored by OGR. Following is a simple > example of a GML feature with a point geometry attribute. > > > > Bowstring Municipal Airport > 47.5583 > -93.8689 > 1372.0000 > Jessie Lake > > 434634,5267578 > > > > > If you can influence your WFS, then producing something a bit like this > might be good. > The (non-UMN-mapserver based) WFS is public, and I am acting as a WFS client, merely retrieving data. Maybe it's just the HTTP GET request that was misspelled or incomplete. This was my request: http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/servlet/gtEntryPoint?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=featureSet_704&BBOX=4400161.55779751,5779082.69612775,4502841.70515686,5881251.07072079&MAXFEATURES=100 Are these the correct URL parameters? - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklHdWYACgkQcfWHNfIsrO80hgCdETv+sJBSTYcLYTj9t76UZwwe 1IEAoKAgXrz4RwwDrmsVA6aUPkSgot6L =RyzI -----END PGP SIGNATURE----- From Jukka.Rahkonen at mmmtike.fi Tue Dec 16 01:47:44 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 16 Dec 2008 11:47:44 +0200 Subject: [mapserver-users] wfs data conversion with ogr2ogr? In-Reply-To: <49477566.8040508@gfz-potsdam.de> Message-ID: Hi, Are you sure there are data within that bounding box? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Knut Behrends > L?hetetty: 16. joulukuuta 2008 11:31 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] wfs data conversion with ogr2ogr? > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Frank Warmerdam schrieb: > > Knut Behrends wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA1 > >> > >> Hi all, > >> > >> I have received data from a WFS that was returned in this format: > >> (Sample feature member) > >> > >> > >> > >> > >> > >> > >> 4436682.0 > >> 5783076.0 > >> > >> > >> 4441086.0 > >> 5786776.0 > >> > >> > >> > >> 1732 > >> Marienborn > >> > >> > > ... > > > >> After successful conversion, however, only the GEOM_ID and > the NAME > >> are exported. The spatial information is ignored lost > during the conversion. > >> Maybe it's in the wrong format, but it is obviously > present in the > >> GML fragment above. What can I do to convert the spatial > information > >> that is contained in the and elements? > > > > Knut, > > > > The above feature fragment from a WFS lacks a geometry > properly. The > > boundedBy properly is normally ignored by OGR. Following > is a simple > > example of a GML feature with a point geometry attribute. > > > > > > > > Bowstring Municipal Airport > > 47.5583 > > -93.8689 > > 1372.0000 > > Jessie Lake > > > > > 434634,5267578 > coordinates> > > > > > > > > > > If you can influence your WFS, then producing something a bit like > > this might be good. > > > > The (non-UMN-mapserver based) WFS is public, and I am acting > as a WFS client, merely retrieving data. Maybe it's just the > HTTP GET request that was misspelled or incomplete. > This was my request: > http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/ser > vlet/gtEntryPoint?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WF > S&TYPENAME=featureSet_704&BBOX=4400161.55779751,5779082.696127 > 75,4502841.70515686,5881251.07072079&MAXFEATURES=100 > > Are these the correct URL parameters? > > - -- > ______________________________________________________________ > ______________ > > Knut Behrends Phone: +49 (0) 331 288 1688 > Potsdam 14473 KeyID: 0xF22CACEF (PGP > Public Key) > ______________________________________________________________ > ______________ > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAklHdWYACgkQcfWHNfIsrO80hgCdETv+sJBSTYcLYTj9t76UZwwe > 1IEAoKAgXrz4RwwDrmsVA6aUPkSgot6L > =RyzI > -----END PGP SIGNATURE----- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bartvde at osgis.nl Tue Dec 16 01:58:20 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 16 Dec 2008 10:58:20 +0100 (CET) Subject: [mapserver-users] wfs data conversion with ogr2ogr? In-Reply-To: <49477566.8040508@gfz-potsdam.de> References: <49461666.9000304@gfz-potsdam.de> <4946920C.5030207@pobox.com> <49477566.8040508@gfz-potsdam.de> Message-ID: <27673.145.50.39.11.1229421500.squirrel@webmail.hostingdiscounter.nl> If you look at the XML schema, i.e. http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/servlet/gtEntryPoint?&REQUEST=DescribeFeatureType&VERSION=1.0.0&SERVICE=WFS&TYPENAME=featureSet_704 the optional field VERWALTUNG should contain the geometry. Apparently these are not filled in the dataset that the WFS uses. So you are doing nothing wrong, and I think you should contact the maintainer of the WFS to ask if VERWALTUNG is present in any feature or that it is always non-existant. Best regards, Bart > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Frank Warmerdam schrieb: >> Knut Behrends wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Hi all, >>> >>> I have received data from a WFS that was returned in this format: >>> (Sample feature member) >>> >>> >>> >>> >>> >>> >>> 4436682.0 >>> 5783076.0 >>> >>> >>> 4441086.0 >>> 5786776.0 >>> >>> >>> >>> 1732 >>> Marienborn >>> >>> >> ... >> >>> After successful conversion, however, only the GEOM_ID and the NAME are >>> exported. The spatial information is ignored lost during the >>> conversion. >>> Maybe it's in the wrong format, but it is obviously present in the GML >>> fragment above. What can I do to convert the spatial information that >>> is >>> contained in the and elements? >> >> Knut, >> >> The above feature fragment from a WFS lacks a geometry properly. The >> boundedBy properly is normally ignored by OGR. Following is a simple >> example of a GML feature with a point geometry attribute. >> >> >> >> Bowstring Municipal Airport >> 47.5583 >> -93.8689 >> 1372.0000 >> Jessie Lake >> >> 434634,5267578 >> >> >> >> >> If you can influence your WFS, then producing something a bit like this >> might be good. >> > > The (non-UMN-mapserver based) WFS is public, and I am acting as a WFS > client, merely retrieving data. Maybe it's just the HTTP GET request > that was misspelled or incomplete. > This was my request: > http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/servlet/gtEntryPoint?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=featureSet_704&BBOX=4400161.55779751,5779082.69612775,4502841.70515686,5881251.07072079&MAXFEATURES=100 > > Are these the correct URL parameters? > > - -- > ____________________________________________________________________________ > > Knut Behrends Phone: +49 (0) 331 288 1688 > Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) > ____________________________________________________________________________ > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAklHdWYACgkQcfWHNfIsrO80hgCdETv+sJBSTYcLYTj9t76UZwwe > 1IEAoKAgXrz4RwwDrmsVA6aUPkSgot6L > =RyzI > -----END PGP SIGNATURE----- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From knb at gfz-potsdam.de Tue Dec 16 02:11:12 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Tue, 16 Dec 2008 11:11:12 +0100 Subject: [mapserver-users] wfs data conversion with ogr2ogr? In-Reply-To: References: Message-ID: <49477EC0.10409@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rahkonen Jukka schrieb: > Hi, > > Are you sure there are data within that bounding box? > > -Jukka Rahkonen- > Yes, indeed. I just tried again - watch for line breaks in the request. Knut > HTTP GET request that was misspelled or incomplete. > This was my request: > http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/ser > vlet/gtEntryPoint?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WF > S&TYPENAME=featureSet_704&BBOX=4400161.55779751,5779082.696127 > 75,4502841.70515686,5881251.07072079&MAXFEATURES=100 > > Are these the correct URL parameters? > _______________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklHfsAACgkQcfWHNfIsrO8GVACdGSmPB1/Nop2IIizYVSoGZZAf 140AnAyvSt5ve8acH04AKE7jXTL+QOQ/ =LDFG -----END PGP SIGNATURE----- From Schoenhammer.Herbert at Regensburg.de Tue Dec 16 02:13:08 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Tue, 16 Dec 2008 11:13:08 +0100 Subject: [mapserver-users] Again: WFS: How to sort the WFS output in MS 5.x.x ? Message-ID: Hi list, I have posted this item some days ago, but I didn't get some help. So I want to repeat my question: Until now I've been using mapserver 4.10.2 for generating wfs (for use with wfs-gazetteers). I determined the order of the wfs-output with the ORDER BY clause of the DATA-statement. Example: DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, haus_nr_zusatz, str_such_string, ... FROM stgk_hausnummern ORDER BY str_name,haus_nr,haus_nr_zusatz) as foo using unique fid using SRID=31468' Changing the ORDER BY - clause caused changing the sort order of the output. ============================================================== Using mapserver 5.2.0 and mapserver 5.2.1 the ORDER BY - clause has obviously no effect. The wfs - output is always sorted by sort order given from attribute fid. (could be another attribute like oid, but it is alwas used the attribute after USING UNIQUE ..) Is it possible to change the sort order in mapserver 5.x.x too? Has anybody a tipp for me, how this could be done ? Thanks Schoenhammer Herbert P.S. The generated urls are looking like: http://myserver/cgi-bin/getows?map=/data-umn/wfs/rgb_wfs_adressen.map&REQUEST=getFeature&Typename=adressen&Version=1.0.0&service=WFS&filter=%3Cogc:Filter+xmlns:ogc=%27http://ogc.org%27+xmlns:gml=%27http://www.opengis.net/gml%27%3E%3Cogc:PropertyIsLike+wildCard=%27*%27+singleChar=%27.%27+escape=%27!%27%3E%3Cogc:PropertyName%3Estr_such_string%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*MARTIN*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinisnunes1 at gmail.com Tue Dec 16 02:20:32 2008 From: dinisnunes1 at gmail.com (D.Nunes) Date: Tue, 16 Dec 2008 02:20:32 -0800 (PST) Subject: [MAPSERVER-USERS] Mapserver and Apache Message-ID: <21013532.post@talk.nabble.com> Hi, I have MapServer in my machine. But the MapServer brings an apache. I already have an apache on my computer. It's possible, instead of using the apache which is inside the folder ms4w, start to use apache I have on my computer? Cumps. D. Nunes -- View this message in context: http://www.nabble.com/Mapserver-and-Apache-tp21013532p21013532.html Sent from the Mapserver - User mailing list archive at Nabble.com. From knb at gfz-potsdam.de Tue Dec 16 02:50:05 2008 From: knb at gfz-potsdam.de (Knut Behrends) Date: Tue, 16 Dec 2008 11:50:05 +0100 Subject: [mapserver-users] wfs data conversion with ogr2ogr? In-Reply-To: <27673.145.50.39.11.1229421500.squirrel@webmail.hostingdiscounter.nl> References: <49461666.9000304@gfz-potsdam.de> <4946920C.5030207@pobox.com> <49477566.8040508@gfz-potsdam.de> <27673.145.50.39.11.1229421500.squirrel@webmail.hostingdiscounter.nl> Message-ID: <494787DD.7010801@gfz-potsdam.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 bartvde at osgis.nl schrieb: > If you look at the XML schema, i.e. > > http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/servlet/gtEntryPoint?&REQUEST=DescribeFeatureType&VERSION=1.0.0&SERVICE=WFS&TYPENAME=featureSet_704 > > the optional field VERWALTUNG should contain the geometry. > > Apparently these are not filled in the dataset that the WFS uses. > > So you are doing nothing wrong, and I think you should contact the > maintainer of the WFS to ask if VERWALTUNG is present in any feature or > that it is always non-existant. > > Best regards, > Bart > For various erasons I don't expect the authorities that provide the data to be very responsive. The data is not that important, anyway. It's about placenames, and there are many other sources for this well-known and quasi-static data. When I have the time I'll write my own XSL transform to convert the spatial information in the BBOX elements to gml:geometry elements. At best, this would approximate the locations of the places with squares, but that's better than nothing. Nice little exercise to refresh and expand my xslt skills. Knut - -- ____________________________________________________________________________ Knut Behrends Phone: +49 (0) 331 288 1688 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key) ____________________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklHh90ACgkQcfWHNfIsrO/0JwCfU+lBVX9v6y9gSooL/cFPJVjZ aZ8AnR0/i8QdqRB90YRViE1fZXikEC9j =sMsL -----END PGP SIGNATURE----- From vtammineni at roulacglobal.com Tue Dec 16 04:12:29 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 16 Dec 2008 17:42:29 +0530 Subject: [mapserver-users] Remove Layer based on layer Name C# Message-ID: <006501c95f77$9264b430$b72e1c90$@com> Dear All, I want remove layer based on Layer Name.Now I Can able to remove layer based on index.Is it possible to do. layer = MapFunction.Map.getLayerByName("PointLayer"); MapFunction.Map.removeLayer(0); Thanks Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Tue Dec 16 04:44:51 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Tue, 16 Dec 2008 18:14:51 +0530 Subject: [mapserver-users] simple question regarding output image Message-ID: Hi I have one tiff image as input. Now I am creating one output image(same). imagetype is gif or jpeg or png. Now the size of o/p image is too big compare to input image......and its takin time to load to browser .....plz explain me Why too big?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bea at ixsea.com Tue Dec 16 05:01:00 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 16 Dec 2008 14:01:00 +0100 Subject: [mapserver-users] simple question regarding output image In-Reply-To: References: Message-ID: <135C8D7A83C946618C776667B6C185D6@ixsea.local> Hi, What is the format of your Tiff input file ? 8 bit per pixel ? 3 bands ? Width and height ? And what are the size of input and output images ? The mapserver is doing computations that could take some time. If it has too read of lot of data in your picture, if it has to do reprojections... You should provide results from gdalinfo on your input picture, give your mapfile as well as your url request. Regards, Beno?t Beno?t Andrieu +33.(0)1.30.08.95.21 bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Tuesday, December 16, 2008 1:44 PM Subject: [mapserver-users] simple question regarding output image Hi I have one tiff image as input. Now I am creating one output image(same). imagetype is gif or jpeg or png. Now the size of o/p image is too big compare to input image......and its takin time to load to browser .....plz explain me Why too big?? ------------------------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Tue Dec 16 05:12:48 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Tue, 16 Dec 2008 18:42:48 +0530 Subject: [mapserver-users] simple question regarding output image Message-ID: hi Benoit I don have raster data. I have one gif file as input. So obviously the output image will be same.I am attaching that file here. the o/p image is too big.......input size is 475X486.(by gdalinfo) Thanks 4 reply -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: st_india.gif Type: image/gif Size: 52881 bytes Desc: not available URL: From amiyapatra188 at gmail.com Tue Dec 16 05:23:12 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Tue, 16 Dec 2008 18:53:12 +0530 Subject: [mapserver-users] simple question regarding output image Message-ID: hi Yeah If I put imagetype as gif then also o/p image size big than i/p gif..As well as if I put imagetype(map file) is png or other o/p image size is still big........ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bea at ixsea.com Tue Dec 16 05:24:09 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 16 Dec 2008 14:24:09 +0100 Subject: [mapserver-users] simple question regarding output image In-Reply-To: References: Message-ID: <3C94C5486DED4B47B9ED29D742BD2505@ixsea.local> Could you send me the output file ? And could you post the map file as well as the url request ? >From what I see, your outfile file uncompressed with 1 band should have a size of 230 kB. With 3 bands, it should be 692 kB. With some compression, it would be far less because you don't have much colors in your input file/ Beno?t Andrieu +33.(0)1.30.08.95.21 bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Tuesday, December 16, 2008 2:12 PM Subject: [mapserver-users] simple question regarding output image hi Benoit I don have raster data. I have one gif file as input. So obviously the output image will be same.I am attaching that file here. the o/p image is too big.......input size is 475X486.(by gdalinfo) Thanks 4 reply ------------------------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From valemunoz at gmail.com Tue Dec 16 05:31:19 2008 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 16 Dec 2008 10:31:19 -0300 Subject: [mapserver-users] ...Question Message-ID: <4b56aefe0812160531x59ddf59g80f28a7ce92cfedb@mail.gmail.com> Hi.. Exist some command or clause in the MapFile for change the text(type) to display in the map of a label from lower to upper or upper to lower? something like: CLASS EXPRESSION ('[HWYLEVEL]' = '1' and '[ONEWAY]'='0') TEXT (lower('[HWYLEVEL]')) .... greetings -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre.rodier at carm.es Tue Dec 16 05:31:26 2008 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Tue, 16 Dec 2008 14:31:26 +0100 Subject: [mapserver-users] Blank image after map request Message-ID: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> Hi everyone, I am begining with mapserver for windows and i have this problem: Mapserver work (theorycally) fine, because http://localhost/cgi-bin/mapserv.exe request in web navigator answer "No query information to decode. QUERY_STRING is set, but empty". I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in anex). But when a try to make a map request mapserver give a blank image (800x500 pixel) Whyyyyyyy!!! Thank you for your help. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mosaico.map Type: application/octet-stream Size: 5084 bytes Desc: mosaico.map URL: From bea at ixsea.com Tue Dec 16 05:43:15 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 16 Dec 2008 14:43:15 +0100 Subject: [mapserver-users] Blank image after map request In-Reply-To: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> References: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> Message-ID: Hi, Could you give us the results of gdalinfo on the input tiff ? http://www.gdal.org/gdalinfo.html And could you paste the url request ? Thanks ! Regards, Beno?t Beno?t Andrieu +33.(0)1.30.08.95.21 bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: RODIER BATISSE, ALEXANDRE To: mapserver-users at lists.osgeo.org Sent: Tuesday, December 16, 2008 2:31 PM Subject: [mapserver-users] Blank image after map request Hi everyone, I am begining with mapserver for windows and i have this problem: Mapserver work (theorycally) fine, because http://localhost/cgi-bin/mapserv.exe request in web navigator answer "No query information to decode. QUERY_STRING is set, but empty". I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in anex). But when a try to make a map request mapserver give a blank image (800x500 pixel) Whyyyyyyy!!! Thank you for your help. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- ------------------------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cclabaugh at centwire.com Tue Dec 16 05:53:50 2008 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Tue, 16 Dec 2008 08:53:50 -0500 Subject: [mapserver-users] msTileSetup(): CGI error. Tile API is not available. In-Reply-To: <20081215224605.GD23663@metacarta.com> References: <003501c95f03$eb618ff0$c224afd0$@com> <20081215224605.GD23663@metacarta.com> Message-ID: <004801c95f85$b9bb2ab0$2d318010$@com> THANKS! Ok, it doesn't list it as supported. But when I try to compile using ./configure --make-proj and make, it still doesn't list it. Even though it seemed to compile correctly and lists PROJ with DUSE. Thanks again, Chad -----Original Message----- From: Christopher Schmidt [mailto:crschmidt at metacarta.com] Sent: Monday, December 15, 2008 5:46 PM To: Chad Clabaugh Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] msTileSetup(): CGI error. Tile API is not available. On Mon, Dec 15, 2008 at 05:24:39PM -0500, Chad Clabaugh wrote: > Hello, > > > > I'm creating my first map server and I'm trying to generate tiles for gmap > from shapfiles. I have successfully gotten the mapserver to render the > shapefiles using the following url: > > > > http://000.000.000.000/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag > e.map > ge.map&mode=map> &mode=map > > > > but when I try to use (only "mode" changes): In order to use the Tile API, you must have proj support. Is your MapServer compiled with PROJ support? You can check this with: mapserv -v and looking for SUPPORTS=PROJ. -- Chris > > > http://000.000.000.000/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag > e.map > ge.map&mode=tile> &mode=tile > > > > I receive the error: > > msTileSetup(): CGI error. Tile API is not available. > > > > I know that I'll need more url switches (I've simplified for the example), > however, I cannot find anything online concerning this error. I've compiled > this on SUSE linux, and the map file contains only one simple map and layer > section. > > If you need more info, please let me know. > > > > I am also wondering if I'm going about this the correct way. I would > ideally like to generate a tile cache rather than generate per request. But > I have not found a tutorial to do such (I'm sure there's one out there). > > > > Thank you much! > > > > Chad Clabaugh > > Technical Support, Engineering > > Office: 260.760.6398 > > Mobile: 260.466.8861 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From amiyapatra188 at gmail.com Tue Dec 16 05:51:20 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Tue, 16 Dec 2008 19:21:20 +0530 Subject: [mapserver-users] simple question regarding output image Message-ID: Hello benoit Thanks 4 reply and sorry 4 using ur mail ......As mapserver mailing list will not allow me to attach my big image I sent it to ur mail.......sorry 4 that........Plz check it........ Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bea at ixsea.com Tue Dec 16 05:54:26 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 16 Dec 2008 14:54:26 +0100 Subject: [mapserver-users] simple question regarding output image In-Reply-To: References: Message-ID: Well... If you look at the size of your output file, the size is quite huge... ^^ 12345 x 23456 pixels, that's quite a big image !! ;) Here is the result of gdalinfo on the image : Driver: PNG/Portable Network Graphics Files: f:\temp\4947ac7e_29f5_0.png Size is 12345, 23456 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0,23456.0) Upper Right (12345.0, 0.0) Lower Right (12345.0,23456.0) Center ( 6172.5,11728.0) Band 1 Block=12345x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 255,255,255,255 1: 0,0,0,255 2: 255,0,0,255 3: 234,233,233,255 4: 233,232,233,255 5: 234,233,234,255 6: 233,233,233,255 7: 215,148,53,255 ... Now, you should look at your map file to see why this output size : IMAGETYPE png #NAME "mapa" SIZE 12345 23456#583 421 So, you put 12345 23456 as the optimal size for rendering the whole map and you commented another size (583 421). You should try to put the size of your input file instead of 12345 23456. Something else is coming to my mind ? Why do you want to use Mapserver to serve a file like this one ? Couldn't you use your web server to serve it ? Regards, Beno?t Andrieu +33.(0)1.30.08.95.21 bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Tuesday, December 16, 2008 2:23 PM Subject: [mapserver-users] simple question regarding output image hi Yeah If I put imagetype as gif then also o/p image size big than i/p gif..As well as if I put imagetype(map file) is png or other o/p image size is still big........ ------------------------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cdot2.map URL: From Jukka.Rahkonen at mmmtike.fi Tue Dec 16 05:56:03 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 16 Dec 2008 15:56:03 +0200 Subject: [mapserver-users] Blank image after map request In-Reply-To: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> Message-ID: Hi, Try first what happens if you set STATUS DEFAULT in your layer "mosaico" definitions. It that does not help then tell us how your request looks like. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta RODIER BATISSE, ALEXANDRE L?hetetty: 16. joulukuuta 2008 15:31 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Blank image after map request Hi everyone, I am begining with mapserver for windows and i have this problem: Mapserver work (theorycally) fine, because http://localhost/cgi-bin/mapserv.exe request in web navigator answer "No query information to decode. QUERY_STRING is set, but empty". I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in anex). But when a try to make a map request mapserver give a blank image (800x500 pixel) Whyyyyyyy!!! Thank you for your help. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Tue Dec 16 05:59:26 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Tue, 16 Dec 2008 19:29:26 +0530 Subject: [mapserver-users] simple question regarding output image Message-ID: oh my god..........sorry mistakenly I put the size so big......my entire day was lost.........oh god....anyway thanks.....friend............ One more thing plz tell me .in my input image the extent is the form of pixel(like 0,0,234,345) .Can I put the lat long instead of pixel as I know what will be extent (lat long of 4 corner).... Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Tue Dec 16 06:14:48 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 16 Dec 2008 09:14:48 -0500 Subject: [mapserver-users] msTileSetup(): CGI error. Tile API is not available. In-Reply-To: <004801c95f85$b9bb2ab0$2d318010$@com> References: <003501c95f03$eb618ff0$c224afd0$@com> <20081215224605.GD23663@metacarta.com> <004801c95f85$b9bb2ab0$2d318010$@com> Message-ID: <20081216141448.GH29818@metacarta.com> On Tue, Dec 16, 2008 at 08:53:50AM -0500, Chad Clabaugh wrote: > THANKS! > > Ok, it doesn't list it as supported. But when I try to compile using > ./configure --make-proj and make, it still doesn't list it. Even though it > seemed to compile correctly and lists PROJ with DUSE. I'm assuming '--make-proj' was a typo, and you meant '--with-proj'. Is proj installed in /usr? Or is it perhaps installed in /usr/local, and you need to point there? The docs suggest, for example: --with-proj=/usr/local Good Luck, and Best Regards, -- Christopher Schmidt MetaCarta From bea at ixsea.com Tue Dec 16 06:18:14 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 16 Dec 2008 15:18:14 +0100 Subject: [mapserver-users] simple question regarding output image In-Reply-To: References: Message-ID: <1E184D552D5247A880832A9CE8C4FAF7@ixsea.local> You have to ask yourself if your image is in a lat long projection (epsg 4326) or in another projection ? As soon as yo know, two options : - convert the gif in geotiff by the use of gdaltranslate (http://www.gdal.org/gdal_translate.html) to put coordinates and coordinate system within, - use a gfw file (gfw is the equivalent of tfw but for gif files), http://duff.ess.washington.edu/data/raster/drg/tfw.html You're welcome, Beno?t Andrieu +33.(0)1.30.08.95.21 bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Tuesday, December 16, 2008 2:59 PM Subject: [mapserver-users] simple question regarding output image oh my god..........sorry mistakenly I put the size so big......my entire day was lost.........oh god....anyway thanks.....friend............ One more thing plz tell me .in my input image the extent is the form of pixel(like 0,0,234,345) .Can I put the lat long instead of pixel as I know what will be extent (lat long of 4 corner).... Thanks ------------------------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Dec 16 06:41:28 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 16 Dec 2008 08:41:28 -0600 Subject: [mapserver-users] ...Question Message-ID: <494769BC0200008F0001EA20@co5.dnr.state.mn.us> Text expressions don't support functions. They should, and likely will, in the next release. Steve >>> "Valeria Mu?oz" 12/16/08 7:31 AM >>> Hi.. Exist some command or clause in the MapFile for change the text(type) to display in the map of a label from lower to upper or upper to lower? something like: CLASS EXPRESSION ('[HWYLEVEL]' = '1' and '[ONEWAY]'='0') TEXT (lower('[HWYLEVEL]')) .... greetings From David.Fawcett at state.mn.us Tue Dec 16 06:49:25 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 16 Dec 2008 08:49:25 -0600 Subject: [mapserver-users] simple question regarding output image In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA058@s-sp22.pca.state.mn.us> It is difficult to help you troubleshoot questions like this unless you include the text of your map file. What does the SIZE line say in your map file. If you are specifying a large image, this would cause the file size to be large. Also, what output format are you using? If you are using AGG and outputting to 24-bit image types, this will also cause larger file sizes. It is a trade off, if you want higher quality images, the files are larger (e.g. 'There is no such thing as a free lunch...') What do you mean by 'too big'? How much time is it taking to load in the browser? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Amiya Patra Sent: Tuesday, December 16, 2008 6:45 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] simple question regarding output image Hi I have one tiff image as input. Now I am creating one output image(same). imagetype is gif or jpeg or png. Now the size of o/p image is too big compare to input image......and its takin time to load to browser .....plz explain me Why too big?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Dec 16 06:55:33 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 16 Dec 2008 08:55:33 -0600 Subject: [mapserver-users] Blank image after map request In-Reply-To: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA059@s-sp22.pca.state.mn.us> Alexandre, What URL are you using to request your map? Are you explicitly requesting your layer 'mosaico' in the URL (e.g. &layers=mosaico)? If not, change the layer status to default for testing purposes. Try this first before exploring whether you have problems with your extent or spatial reference systems. Is mosaico.tif georeferenced and does it fall within the extent specified in your map file? Also, is it in the same spatial reference system as the projection stated in your map file? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of RODIER BATISSE, ALEXANDRE Sent: Tuesday, December 16, 2008 7:31 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Blank image after map request Hi everyone, I am begining with mapserver for windows and i have this problem: Mapserver work (theorycally) fine, because http://localhost/cgi-bin/mapserv.exe request in web navigator answer "No query information to decode. QUERY_STRING is set, but empty". I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in anex). But when a try to make a map request mapserver give a blank image (800x500 pixel) Whyyyyyyy!!! Thank you for your help. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From valemunoz at gmail.com Tue Dec 16 07:12:33 2008 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 16 Dec 2008 12:12:33 -0300 Subject: [mapserver-users] ...Question In-Reply-To: <494769BC0200008F0001EA20@co5.dnr.state.mn.us> References: <494769BC0200008F0001EA20@co5.dnr.state.mn.us> Message-ID: <4b56aefe0812160712u27109679hdb10df82d9d84e18@mail.gmail.com> Steve do you know when will be release?? greetings 2008/12/16 Steve Lime > Text expressions don't support functions. They should, and likely will, > in the > next release. > > Steve > > >>> "Valeria Mu?oz" 12/16/08 7:31 AM >>> > Hi.. > > Exist some command or clause in the MapFile for change the text(type) to > display in the map of a label from lower to upper or upper to lower? > something like: > > CLASS > EXPRESSION ('[HWYLEVEL]' = '1' and '[ONEWAY]'='0') > TEXT (lower('[HWYLEVEL]')) > .... > > greetings > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Dec 16 08:32:45 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 16 Dec 2008 17:32:45 +0100 Subject: [mapserver-users] Remove Layer based on layer Name C# In-Reply-To: <006501c95f77$9264b430$b72e1c90$@com> References: <006501c95f77$9264b430$b72e1c90$@com> Message-ID: Hi, How about doing this? layer = MapFunction.Map.getLayerByName("PointLayer"); MapFunction.Map.removeLayer(layer.index); Best regards, Tamas 2008/12/16 Venkat Rao Tammineni > Dear All, > > > > I want remove layer based on Layer Name.Now I Can able to > remove layer based on index.Is it possible to do. > > > > layer = MapFunction.Map.getLayerByName("PointLayer"); > > > > MapFunction.Map.removeLayer(0); > > > > Thanks > > Venkat. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Dec 16 09:08:28 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 16 Dec 2008 11:08:28 -0600 Subject: [mapserver-users] ...Question In-Reply-To: <4b56aefe0812160712u27109679hdb10df82d9d84e18@mail.gmail.com> References: <494769BC0200008F0001EA20@co5.dnr.state.mn.us> <4b56aefe0812160712u27109679hdb10df82d9d84e18@mail.gmail.com> Message-ID: <49478C2D.5157.008F.0@dnr.state.mn.us> Looking like March/April 09. With a spatial DB extension you can do this stuff now. Steve >>> On 12/16/2008 at 9:12 AM, in message <4b56aefe0812160712u27109679hdb10df82d9d84e18 at mail.gmail.com>, "Valeria Mu?oz" wrote: > Steve > do you know when will be release?? > > greetings > 2008/12/16 Steve Lime > >> Text expressions don't support functions. They should, and likely will, >> in the >> next release. >> >> Steve >> >> >>> "Valeria Mu?oz" 12/16/08 7:31 AM >>> >> Hi.. >> >> Exist some command or clause in the MapFile for change the text(type) to >> display in the map of a label from lower to upper or upper to lower? >> something like: >> >> CLASS >> EXPRESSION ('[HWYLEVEL]' = '1' and '[ONEWAY]'='0') >> TEXT (lower('[HWYLEVEL]')) >> .... >> >> greetings >> >> From Steve.Lime at dnr.state.mn.us Tue Dec 16 13:53:55 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 16 Dec 2008 15:53:55 -0600 Subject: [mapserver-users] Again: WFS: How to sort the WFS output in MS5.x.x ? In-Reply-To: References: Message-ID: <4947CF14.5157.008F.0@dnr.state.mn.us> The presentation side of the WFS code doesn't do any sorting so that's not the culprit. Looks like you're using PostGIS. Is there any way you can capture the SQL actually being generated by MapServer and executed by PostGIS? That would help us track this down. Steve >>> On 12/16/2008 at 4:13 AM, in message , Sch?nhammer, Herbert wrote: > Hi list, > > I have posted this item some days ago, but I didn't get some help. So I want > to repeat my question: > > Until now I've been using mapserver 4.10.2 for generating wfs (for use with > wfs-gazetteers). I determined the order of the wfs-output with the ORDER BY > clause of the DATA-statement. > > Example: > DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, > haus_nr_zusatz, str_such_string, ... FROM stgk_hausnummern ORDER BY > str_name,haus_nr,haus_nr_zusatz) as foo using unique fid using SRID=31468' > > Changing the ORDER BY - clause caused changing the sort order of the output. > ============================================================== > > Using mapserver 5.2.0 and mapserver 5.2.1 the ORDER BY - clause has obviously > no effect. The wfs - output is always sorted by sort order given from > attribute fid. (could be another attribute like oid, but it is alwas used the > attribute after USING UNIQUE ..) > > Is it possible to change the sort order in mapserver 5.x.x too? > Has anybody a tipp for me, how this could be done ? > > Thanks > Schoenhammer Herbert > > P.S. > The generated urls are looking like: > http://myserver/cgi-bin/getows?map=/data-umn/wfs/rgb_wfs_adressen.map&REQUEST=g > etFeature&Typename=adressen&Version=1.0.0&service=WFS&filter=%3Cogc:Filter+xmlns: > ogc=%27http://ogc.org%27+xmlns:gml=%27http://www.opengis.net/gml%27%3E%3Cogc: > PropertyIsLike+wildCard=%27*%27+singleChar=%27.%27+escape=%27!%27%3E%3Cogc:Pr > opertyName%3Estr_such_string%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*MARTIN*% > 3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E From woodbri at swoodbridge.com Tue Dec 16 14:01:41 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 16 Dec 2008 17:01:41 -0500 Subject: [mapserver-users] mapserver 5.2.1, centos 4.5 x86_64, compile errors using AGG Message-ID: <49482545.4000609@swoodbridge.com> Hi all, I'm getting the following compile error with mapserver 5.2.1 on a new centos 4.5 x86_64 box. Is this a known problem? Have a fix? I didn't see anything helpful googling for it. Thoughts? ./configure \ --enable-runpath \ --enable-ignore-missing-data \ --enable-debug \ --with-httpd=/usr/sbin/httpd \ --with-proj=/usr \ --with-agg \ --with-gd \ --with-png \ --with-freetype \ --with-postgis \ --without-tiff \ --with-wmsclient ... MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -O2 -fPIC -Wall C++ compiler: g++ -g -O2 -fPIC -Wall Debug: -g -DNEED_NONBLOCKING_STDERR Generic NINT: -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: -DUSE_JPEG iconv support: -DUSE_ICONV AGG support: -DUSE_AGG AGG Freetype support: -laggfontfreetype Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: FriBidi support: Curl support: -DUSE_CURL FastCGI support: Threading support: GEOS support: -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: GDAL support: Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WMS_LYR WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: no make ... g++ -c -g -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_CURL -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_JPEG -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/include -I/usr/include -O3 -Wno-uninitialized mapagg.cpp -o mapagg.o mapagg.h:37: error: ISO C++ forbids declaration of 'const_row_info' with no type mapagg.h:37: error: typedef name may not be a nested-name-specifier mapagg.h:37: error: expected ';' before '<' token mapagg.h:96: error: 'row_data' does not name a type /usr/include/agg2/agg_pixfmt_rgba.h: In instantiation of 'agg::pixfmt_alpha_blend_rgba, mapserv_row_ptr_cache, int>': mapagg.cpp:832: instantiated from here /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named 'row_data' in 'class mapserv_row_ptr_cache' /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named 'row_data' in 'class mapserv_row_ptr_cache' mapagg.cpp: In member function 'void AGGMapserverRenderer::renderEllipse(double, double, double, double, double, agg::rgba8&, agg::rgba8&, double)': mapagg.cpp:299: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp: In function 'void msCircleDrawShadeSymbolAGG(symbolSetObj*, imageObj*, pointObj*, double, styleObj*, double)': mapagg.cpp:1056: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp:1080: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp:1123: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp:1156: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp: In function 'void msDrawMarkerSymbolAGG(symbolSetObj*, imageObj*, pointObj*, styleObj*, double)': mapagg.cpp:1285: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp: In function 'void drawPolylineMarkers(imageObj*, shapeObj*, symbolSetObj*, styleObj*, double)': mapagg.cpp:1411: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp:1412: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp:1413: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp: In function 'void msDrawLineSymbolAGG(symbolSetObj*, imageObj*, shapeObj*, styleObj*, double)': mapagg.cpp:1692: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp: In function 'void msDrawShadeSymbolAGG(symbolSetObj*, imageObj*, shapeObj*, styleObj*, double)': mapagg.cpp:1815: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp:1867: error: 'class agg::path_storage' has no member named 'transform' mapagg.cpp:1924: error: 'class agg::path_storage' has no member named 'transform' make: *** [mapagg.o] Error 1 From hobu.inc at gmail.com Tue Dec 16 14:17:07 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Tue, 16 Dec 2008 16:17:07 -0600 Subject: [mapserver-users] mapserver 5.2.1, centos 4.5 x86_64, compile errors using AGG In-Reply-To: <49482545.4000609@swoodbridge.com> References: <49482545.4000609@swoodbridge.com> Message-ID: <32E31EE8-3EE2-4959-AA57-59542F6D69E0@gmail.com> returns http://trac.osgeo.org/mapserver/ticket/2224 On Dec 16, 2008, at 4:01 PM, Stephen Woodbridge wrote: > Hi all, > > I'm getting the following compile error with mapserver 5.2.1 on a > new centos 4.5 x86_64 box. Is this a known problem? Have a fix? I > didn't see anything helpful googling for it. Thoughts? > > > ./configure \ > --enable-runpath \ > --enable-ignore-missing-data \ > --enable-debug \ > --with-httpd=/usr/sbin/httpd \ > --with-proj=/usr \ > --with-agg \ > --with-gd \ > --with-png \ > --with-freetype \ > --with-postgis \ > --without-tiff \ > --with-wmsclient > > ... > > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -g -O2 -fPIC -Wall > C++ compiler: g++ -g -O2 -fPIC -Wall > Debug: -g -DNEED_NONBLOCKING_STDERR > Generic NINT: > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > palette rgba png support: > jpeg support: -DUSE_JPEG > iconv support: -DUSE_ICONV > AGG support: -DUSE_AGG > AGG Freetype support: -laggfontfreetype > Ming(flash) support: > PDFLib support: > > -------------- Support Libraries --------- > Proj.4 support: -DUSE_PROJ > Libxml2 support: > FriBidi support: > Curl support: -DUSE_CURL > FastCGI support: > Threading support: > GEOS support: > > -------------- Data Format Drivers ------- > native tiff support: > PostGIS support: -DUSE_POSTGIS > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: > GDAL support: > Oracle Spatial support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: > WFS Client: -DUSE_WMS_LYR > WCS Server: > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: no > > > make > ... > > g++ -c -g -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR - > DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR > -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_CURL - > DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_JPEG -DUSE_PROJ -DUSE_EPPL - > DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP - > DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR - > DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/include -I/ > usr/include/agg2 -I/usr/include/freetype2 -I/usr/include -I/usr/ > include -O3 -Wno-uninitialized mapagg.cpp -o mapagg.o > mapagg.h:37: error: ISO C++ forbids declaration of 'const_row_info' > with no type > mapagg.h:37: error: typedef name may not be a nested-name-specifier > mapagg.h:37: error: expected ';' before '<' token > mapagg.h:96: error: 'row_data' does not name a type > /usr/include/agg2/agg_pixfmt_rgba.h: In instantiation of > 'agg::pixfmt_alpha_blend_rgba agg::order_bgra>, mapserv_row_ptr_cache, int>': > mapagg.cpp:832: instantiated from here > /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named > 'row_data' in 'class mapserv_row_ptr_cache' > /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named > 'row_data' in 'class mapserv_row_ptr_cache' > mapagg.cpp: In member function 'void > AGGMapserverRenderer::renderEllipse(double, double, double, double, > double, agg::rgba8&, agg::rgba8&, double)': > mapagg.cpp:299: error: 'class agg::path_storage' has no member named > 'transform' > mapagg.cpp: In function 'void > msCircleDrawShadeSymbolAGG(symbolSetObj*, imageObj*, pointObj*, > double, styleObj*, double)': > mapagg.cpp:1056: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp:1080: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp:1123: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp:1156: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp: In function 'void msDrawMarkerSymbolAGG(symbolSetObj*, > imageObj*, pointObj*, styleObj*, double)': > mapagg.cpp:1285: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp: In function 'void drawPolylineMarkers(imageObj*, > shapeObj*, symbolSetObj*, styleObj*, double)': > mapagg.cpp:1411: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp:1412: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp:1413: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp: In function 'void msDrawLineSymbolAGG(symbolSetObj*, > imageObj*, shapeObj*, styleObj*, double)': > mapagg.cpp:1692: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp: In function 'void msDrawShadeSymbolAGG(symbolSetObj*, > imageObj*, shapeObj*, styleObj*, double)': > mapagg.cpp:1815: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp:1867: error: 'class agg::path_storage' has no member > named 'transform' > mapagg.cpp:1924: error: 'class agg::path_storage' has no member > named 'transform' > make: *** [mapagg.o] Error 1 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Dec 16 14:42:36 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 16 Dec 2008 16:42:36 -0600 Subject: [mapserver-users] Legend for a layer with filter In-Reply-To: <491D0D1F.2070800@gslab.com> References: <9c2015090811131300n14623913nd0528875dd3a76d3@mail.gmail.com> <9c2015090811131357t483e58besef2ca5eca08e8f69@mail.gmail.com> <491D0D1F.2070800@gslab.com> Message-ID: <4947DA7D.5157.008F.0@dnr.state.mn.us> Your CLASS needs a name and then it should work ok. Steve >>> On 11/13/2008 at 11:31 PM, in message <491D0D1F.2070800 at gslab.com>, Subha Ramakrishnan wrote: > Hi, > > I want to know if it is possible to generate a legend for a layer with a > filter. > I am getting a blank response with a mode=legend for this layer. > I tried passing the parameter that i am using in the filter, in the > request but didn't work either. > > This is the layer in the mapfile: > layer > name filterlayer > connectiontype postgis > connection "user= username dbname=db password=passwd host=localhost" > group world > type polygon > status on > class > style > width 3 > color 170 153 175 > outlinecolor 000 000 000 > end > end > filter 'id IN (%pid%)' > data "topology from dbtable" > transparency 65 > end > > Thank you. > > Regards, > Subha > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue Dec 16 15:10:02 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 16 Dec 2008 18:10:02 -0500 Subject: [mapserver-users] Blank image after map request In-Reply-To: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> References: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> Message-ID: <4948354A.6050305@gatewaygeomatics.com> RODIER BATISSE, ALEXANDRE wrote: > Hi everyone, > > > > I am begining with mapserver for windows and i have this problem: > > > > Mapserver work (theorycally) fine, because > http://localhost/cgi-bin/mapserv.exe request in web navigator answer ?No > query information to decode. QUERY_STRING is set, but empty?. > > > > I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in > anex). > > > > But when a try to make a map request mapserver give a blank image > (800x500 pixel) > > > > Whyyyyyyy!!! > I would also start with creating a valid map image with the shp2img utility (http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) and once that works move to debugging your application (or request). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Tue Dec 16 15:27:48 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 16 Dec 2008 18:27:48 -0500 Subject: [MAPSERVER-USERS] Mapserver and Apache In-Reply-To: <21013532.post@talk.nabble.com> References: <21013532.post@talk.nabble.com> Message-ID: <49483974.7070406@gatewaygeomatics.com> D.Nunes wrote: > Hi, > > I have MapServer in my machine. But the MapServer brings an apache. I > already have an apache on my computer. > > It's possible, instead of using the apache which is inside the folder ms4w, > start to use apache I have on my computer? > > Cumps. > D. Nunes The easiest option is to change the port number in MS4W's Apache (see "Listen 80" in /ms4w/Apache/conf/httpd.conf), execute /ms4w/apache-install.bat, and then goto 127.0.0.1:yourport in a browser. If you want to configure your own Apache for MapServer it's much more detailed, but possible. Is the easy option an option for you? -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From dinisnunes1 at gmail.com Tue Dec 16 16:12:30 2008 From: dinisnunes1 at gmail.com (D.Nunes) Date: Tue, 16 Dec 2008 16:12:30 -0800 (PST) Subject: [MAPSERVER-USERS] Mapserver and Apache In-Reply-To: <49483974.7070406@gatewaygeomatics.com> References: <21013532.post@talk.nabble.com> <49483974.7070406@gatewaygeomatics.com> Message-ID: <21044720.post@talk.nabble.com> Hi again & thanks 4 the answer. The question where is: If i have already an Apache running on my computador, why do i need to have another apache inside the ms4w folder. If i could use only one apache on my computer, my machine would be a optmized/eficient machine. So, if you could tell me how can i do that :) Thanks, Cumps, D.Nunes -- View this message in context: http://www.nabble.com/Mapserver-and-Apache-tp21013532p21044720.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jose.maria.michia at gmail.com Tue Dec 16 19:28:40 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Wed, 17 Dec 2008 01:28:40 -0200 Subject: [MAPSERVER-USERS] Mapserver and Apache In-Reply-To: <21044720.post@talk.nabble.com> References: <21013532.post@talk.nabble.com> <49483974.7070406@gatewaygeomatics.com> <21044720.post@talk.nabble.com> Message-ID: 2008/12/16 D.Nunes > > Hi again & thanks 4 the answer. > > The question where is: > > If i have already an Apache running on my computador, why do i need to have > another apache inside the cd folder. If i could use only one apache on my > computer, my machine would be a optmized/eficient machine. > > So, if you could tell me how can i do that :) > > Thanks, > > Cumps, > > D.Nunes Hello. Sorry if you do not properly understand the problem. I reviewed my copy of ms4w. I can not find any Apache server here. What I found is a configuration for Apache: /myfiles/ms4w/httpd.d/httpd_gmap.conf You can open your local Apache configuration file. Perhaps: /usr/local/apache2/conf/httpd.conf And you can include a configuration file with something like: Include /myfiles/ms4w/httpd.d/httpd_gmap.conf And reload or restart the local apache. Of course, check the settings to make sure that meet your needs. Saludos Jos? Mar?a From vtammineni at roulacglobal.com Tue Dec 16 23:41:24 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 17 Dec 2008 13:11:24 +0530 Subject: [mapserver-users] Remove Layer based on layer Name C# In-Reply-To: References: <006501c95f77$9264b430$b72e1c90$@com> Message-ID: <001501c9601a$dec26db0$9c474910$@com> Dear Sir Can you please tell me how remove specific layer or at least clear the layer form map. I can able to clear the layer based on index.but if I click clear layer button again it is clearing whatever the 0 position next layer. For example my map contains the layers called Continents and countries and states that is like 0 ,1, 2 position. If I want to remove continents (0) that is in 0 position , if I use MapFunction.Map.removeLayer(0); , it is working fine. If I Click the same button again countries will be the second position then the country layer is removing .but I want to remove single layer. protected void btnClearPointLayer_Click(object sender, EventArgs e) { if(Page.IsPostBack) { MapFunction.Map.removeLayer(0); } } Is it Possible every time same layer removable(dynamically the same layer will be adding). I am waiting for your great response. Advanced Thanks Regards Venkat. From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, December 16, 2008 10:03 PM To: Venkat Rao Tammineni Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Remove Layer based on layer Name C# Hi, How about doing this? layer = MapFunction.Map.getLayerByName("PointLayer"); MapFunction.Map.removeLayer(layer.index); Best regards, Tamas 2008/12/16 Venkat Rao Tammineni Dear All, I want remove layer based on Layer Name.Now I Can able to remove layer based on index.Is it possible to do. layer = MapFunction.Map.getLayerByName("PointLayer"); MapFunction.Map.removeLayer(0); Thanks Venkat. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Wed Dec 17 01:09:47 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 17 Dec 2008 14:39:47 +0530 Subject: [mapserver-users] regarding scalebar Message-ID: Hi I have one input with extent -97.384655 49.697475 -96.877772 50.077168 .Now my scalebar initially shows me upto 6 miles(0...3...6) why?? It should to show more than 6 as 1 degree =69.04 miles. MAP IMAGETYPE png24 #NAME "mapa" SIZE 640 480 STATUS ON UNITS dd IMAGECOLOR 255 255 255 EXTENT -97.384655 49.697475 -96.877772 50.077168 # 0.0 0.0 475.0 486.0 #583.0 421.0 SHAPEPATH "/home/nms/MapServerData/data" Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 2 STATUS embed SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 255 0 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.maria.michia at gmail.com Wed Dec 17 01:12:00 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Wed, 17 Dec 2008 07:12:00 -0200 Subject: [mapserver-users] get SVG/PDF for one layer Message-ID: Hi all In a Python script, I hope to get one layer rendered as PDF or SVG. I'm able to obtain one layer in any other format supported by GD, like PNG, using: img = layer.draw(map,img) img.saveToString() Or: img.save(f) and accessing later to f. But, if otputformat in mapfile is equal to SVG or PDF, I get errors. Error obtained using img.saveToString(): msSaveImageBufferGD(): Image handling error. Unknown output image type driver: svg. Error obtained using img.write(): _mapscript.MapServerError: imageObj::write: Image handling error. Writing of svg format not implemented I've found SVG files in the imagepath. But, i cannot relate these SVG with layers in the mapfile. Thanks for any advice. Saludos Jos? Mar?a From alexandre.rodier at carm.es Wed Dec 17 01:28:29 2008 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Wed, 17 Dec 2008 10:28:29 +0100 Subject: [mapserver-users] Blank image after map request References: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> <4948354A.6050305@gatewaygeomatics.com> Message-ID: <8DB813E500220E49824A37D46669749D56C8C1@CORREO06.carm.msda> Hi Jeff and all others than help me. I tried all your advice and i changed this tips: * I set STATUS layer tag to DEFAULT * I changed wms_onlineresource tag to "http://localhost/cgi-bin/mapserv?map=/ms4w/Apache/htdocs/map/mosaico.map&" * I checked EXTENT tag to correct extents * I changed "wms_latlongbounding" layer tag to the correct extents * I checked gdalinfo for both mosaico.ecw and mosaico.tif image files, and this is the result: C:\ms4w\tools\gdal-ogr>gdalinfo c:\ms4w\Apache\htdocs\raster\mosaico.ecw Driver: ECW/ERMapper Compressed Wavelets Files: c:\ms4w\Apache\htdocs\raster\mosaico.ecw Size is 302480, 316380 Coordinate System is `' Origin = (556560.000000000000000,4293110.000000000000000) Pixel Size = (0.500000000000000,-0.500000000000000) Corner Coordinates: Upper Left ( 556560.000, 4293110.000) Lower Left ( 556560.000, 4134920.000) Upper Right ( 707800.000, 4293110.000) Lower Right ( 707800.000, 4134920.000) Center ( 632180.000, 4214015.000) Band 1 Block=302480x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=302480x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=302480x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary C:\ms4w\tools\gdal-ogr>gdalinfo c:\ms4w\Apache\htdocs\raster\mosaico.tif Driver: GTiff/GeoTIFF Files: c:\ms4w\Apache\htdocs\raster\mosaico.tif Size is 33910, 31638 Coordinate System is: PROJCS["UTM Zone 30, Northern Hemisphere", GEOGCS["ETRS89", DATUM["unknown", SPHEROID["unretrievable - using WGS84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-3], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (556560.000000000000000,4293110.000000000000000) Pixel Size = (5.000000000000000,-5.000000000000000) Metadata: AREA_OR_POINT=Area Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 556560.000, 4293110.000) ( 2d20'55.64"W, 38d47'5.69"N) Lower Left ( 556560.000, 4134920.000) ( 2d21'40.71"W, 37d21'33.38"N) Upper Right ( 726110.000, 4293110.000) ( 0d23'52.18"W, 38d45'27.90"N) Lower Right ( 726110.000, 4134920.000) ( 0d26'52.05"W, 37d20'0.44"N) Center ( 641335.000, 4214015.000) ( 1d23'20.00"W, 38d 3'46.30"N) Band 1 Block=33910x1 Type=Byte, ColorInterp=Red Band 2 Block=33910x1 Type=Byte, ColorInterp=Green Band 3 Block=33910x1 Type=Byte, ColorInterp=Blue It likes ok, but gdalinfo does not return coordinate system data for ecw image, when i changed ecw header info to ETRS89 and NUTM30. * I tried shp2img with both ecw and tif images, and in both cases the result is a 800x500 blank image. * I tried getcapabilities with this url: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/map/mosaico.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities And it returnsme file in attached. And finally, I tried Getmap with http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/map/mosaico.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=Getmap&LAYERs=mosaico&SRS=EPSG:25830&bbox=556560,4134920,707800,4293920&format=image/png&width=800&height=500 and it returns 800x500 balnk image. Conclusion: I don't know what i can also do. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Jeff McKenna Enviado el: mi?rcoles, 17 de diciembre de 2008 0:10 Para: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Blank image after map request RODIER BATISSE, ALEXANDRE wrote: > Hi everyone, > > > > I am begining with mapserver for windows and i have this problem: > > > > Mapserver work (theorycally) fine, because > http://localhost/cgi-bin/mapserv.exe request in web navigator answer "No > query information to decode. QUERY_STRING is set, but empty". > > > > I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in > anex). > > > > But when a try to make a map request mapserver give a blank image > (800x500 pixel) > > > > Whyyyyyyy!!! > I would also start with creating a valid map image with the shp2img utility (http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) and once that works move to debugging your application (or request). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: getcapabilities.1&REQUEST=GetCapabilities Type: application/octet-stream Size: 7886 bytes Desc: getcapabilities.1&REQUEST=GetCapabilities URL: From jose.maria.michia at gmail.com Wed Dec 17 01:33:33 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Wed, 17 Dec 2008 07:33:33 -0200 Subject: [mapserver-users] Re: get SVG/PDF for one layer In-Reply-To: References: Message-ID: > I've found SVG files in the imagepath. But, i cannot relate these SVG > with layers in the mapfile. In reply to my self: I've found that all SVG files have a line indicating to which layer corresponds. Like this: Saludos Jos? Mar?a From ben at remoteinformation.com.au Tue Dec 16 22:47:40 2008 From: ben at remoteinformation.com.au (Ben Madin) Date: Wed, 17 Dec 2008 15:47:40 +0900 Subject: [mapserver-users] Blank PostGIS Layer In-Reply-To: <20081215133039.73299E00C99@lists.osgeo.org> References: <20081215133039.73299E00C99@lists.osgeo.org> Message-ID: <71BCDE55-E059-4983-B8A6-47ABB090DDE2@remoteinformation.com.au> G'day all, I am having generally excellent results with MapServer 5.2, but I am having a problem with a postgis layer not displaying, and no suggestion that it shouldn't from the logs. I imported a shapefile : shp2pgsql -s 4326 /Users/19022662/Geodata/healthmapper/LA/roads roads | psql prices in postgres I gave permission for the mapserver user to select from it : grant select on roads to gms_mapserver; My map layer : LAYER STATUS DEFAULT DEBUG 4 NAME "Roads" GROUP "Background" METADATA layer_title "Roads" END CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=prices password=badluck user=gms_mapserver" DATA "the_geom FROM ( SELECT gid, the_geom FROM roads ) AS foo USING UNIQUE gid USING SRID=4326" # DATA 'healthmapper/LA/roads' TYPE LINE PROJECTION "init=epsg:4326" END TRANSPARENCY 100 CLASS NAME "ROADS" OUTLINECOLOR 255 255 255 symbol 'dashed' COLOR 255 0 0 END END and I don't get the layer (even with everything else turned off); Other postGIS polygon layers are showing fine. If I load the data directly from the shapefile, it is fine If I connect to the postgis layer from QGIS, it is fine. Here is the dump from the error console [Wed Dec 17 15:44:42 2008].96166 msPOSTGISLayerOpen called datastatement: the_geom FROM ( SELECT gid, the_geom FROM roads ) AS foo USING UNIQUE gid USING SRID=4326 [Wed Dec 17 15:44:42 2008].96664 MSPOSTGISLayerOpen -- shared connection not available. [Wed Dec 17 15:44:42 2008].101270 msConnPoolRegister(Roads,host=localhost port=5432 dbname=prices password=badluck user=gms_mapserver,0x101900400) [Wed Dec 17 15:44:42 2008].101288 msPOSTGISLayerFreeItemInfo called [Wed Dec 17 15:44:42 2008].101314 msPOSTGISLayerWhichShapes called [Wed Dec 17 15:44:42 2008].101328 msPOSTGISLayerParseData: unique column = gid, srid='4326', geom_column_name = the_geom, table_name=( SELECT gid, the_geom FROM roads ) AS foo [Wed Dec 17 15:44:42 2008].101574 query_string_0_6:DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from ( SELECT gid, the_geom FROM roads ) AS foo WHERE the_geom && setSRID('BOX3D(102.054844143416 18.0123207848761,102.992352286832 18.7152227848761)'::BOX3D, 4326 ) [Wed Dec 17 15:44:42 2008].175520 msPOSTGISLayerFreeItemInfo called [Wed Dec 17 15:44:42 2008].175539 msPOSTGISLayerClose datastatement: the_geom FROM ( SELECT gid, the_geom FROM roads ) AS foo USING UNIQUE gid USING SRID=4326 [Wed Dec 17 15:44:42 2008].175543 msPOSTGISLayerClose -- closing query_result [Wed Dec 17 15:44:42 2008].175930 msConnPoolRelease(Roads,host=localhost port=5432 dbname=prices password=badluck user=gms_mapserver,0x101900400) [Wed Dec 17 15:44:42 2008].175940 msConnPoolClose(host=localhost port=5432 dbname=prices password=badluck user=gms_mapserver,0x101900400) [Wed Dec 17 15:44:42 2008].176004 msDrawMap(): Layer 8 (Roads), 0.080s [Wed Dec 17 15:44:42 2008].215812 msDrawMap(): Drawing Label Cache, 0.000s [Wed Dec 17 15:44:42 2008].215824 msDrawMap() total time: 0.121s [Wed Dec 17 15:44:42 2008].227155 msSaveImage() total time: 0.011s [Wed Dec 17 15:44:42 2008].230642 msSaveImage() total time: 0.001s [Wed Dec 17 15:44:42 2008].234008 mapserv request processing time (loadmap not incl.): 0.139s [Wed Dec 17 15:44:42 2008].234016 msFreeMap(): freeing map at 0x10180e200. [Wed Dec 17 15:44:42 2008].234020 msPOSTGISLayerClose datastatement: the_geom FROM ( SELECT gid, the_geom FROM roads ) AS foo USING UNIQUE gid USING SRID=4326 [Wed Dec 17 15:44:42 2008].234023 msPOSTGISLayerClose -- layerinfo is NULL If I copy and paste the query, I get data (I have no way of knowing if it is OK) : | 16899 \001 \007 \000 \000 \000 \001 \000 \000 \000 \001 \005 \000 \000 \000\001\000\000\000\001\002\000\000\000\037\000\000\000\000\000\000@ \023\225Y@\000\000\000\300 etc (I just copied some of it) There is no difference between cgi mapserv and shp2img. Any thoughts much appreciated!! cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From damarmo at gmail.com Wed Dec 17 01:43:14 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Wed, 17 Dec 2008 10:43:14 +0100 Subject: [mapserver-users] Blank image after map request In-Reply-To: <8DB813E500220E49824A37D46669749D56C8C1@CORREO06.carm.msda> References: <8DB813E500220E49824A37D46669749D56C8B6@CORREO06.carm.msda> <4948354A.6050305@gatewaygeomatics.com> <8DB813E500220E49824A37D46669749D56C8C1@CORREO06.carm.msda> Message-ID: <9771eb540812170143r270621e4t48b06b0b08568587@mail.gmail.com> Hi. Try tu put this in line 104 "wms_onlineresource" " http://localhost/cgi-bin/mapserv?map=/ms4w/Apache/htdocs/map/mosaico.map&SERVICE=SERVICE=WMS& " And if you are using windows OS, try tu put the absolute path to all your directory specifications ( SHAPEPATH "C:/ms4w/Apache/htdocs/vectorial/" -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Dec 17 01:54:35 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 17 Dec 2008 15:24:35 +0530 Subject: [mapserver-users] Blank PostGIS Layer In-Reply-To: <71BCDE55-E059-4983-B8A6-47ABB090DDE2@remoteinformation.com.au> References: <20081215133039.73299E00C99@lists.osgeo.org> <71BCDE55-E059-4983-B8A6-47ABB090DDE2@remoteinformation.com.au> Message-ID: <000c01c9602d$79764a40$6c62dec0$@com> Hi, Try this query DATA "the_geom FROM roads" Or Call all the fields(whatever the fields available in table) in select query. Thank, Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ben Madin Sent: Wednesday, December 17, 2008 12:18 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Blank PostGIS Layer G'day all, I am having generally excellent results with MapServer 5.2, but I am having a problem with a postgis layer not displaying, and no suggestion that it shouldn't from the logs. I imported a shapefile : shp2pgsql -s 4326 /Users/19022662/Geodata/healthmapper/LA/roads roads | psql prices in postgres I gave permission for the mapserver user to select from it : grant select on roads to gms_mapserver; My map layer : LAYER STATUS DEFAULT DEBUG 4 NAME "Roads" GROUP "Background" METADATA layer_title "Roads" END CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=prices password=badluck user=gms_mapserver" DATA "the_geom FROM ( SELECT gid, the_geom FROM roads ) AS foo USING UNIQUE gid USING SRID=4326" # DATA 'healthmapper/LA/roads' TYPE LINE PROJECTION "init=epsg:4326" END TRANSPARENCY 100 CLASS NAME "ROADS" OUTLINECOLOR 255 255 255 symbol 'dashed' COLOR 255 0 0 END END and I don't get the layer (even with everything else turned off); Other postGIS polygon layers are showing fine. If I load the data directly from the shapefile, it is fine If I connect to the postgis layer from QGIS, it is fine. Here is the dump from the error console [Wed Dec 17 15:44:42 2008].96166 msPOSTGISLayerOpen called datastatement: the_geom FROM ( SELECT gid, the_geom FROM roads ) AS foo USING UNIQUE gid USING SRID=4326 [Wed Dec 17 15:44:42 2008].96664 MSPOSTGISLayerOpen -- shared connection not available. [Wed Dec 17 15:44:42 2008].101270 msConnPoolRegister(Roads,host=localhost port=5432 dbname=prices password=badluck user=gms_mapserver,0x101900400) [Wed Dec 17 15:44:42 2008].101288 msPOSTGISLayerFreeItemInfo called [Wed Dec 17 15:44:42 2008].101314 msPOSTGISLayerWhichShapes called [Wed Dec 17 15:44:42 2008].101328 msPOSTGISLayerParseData: unique column = gid, srid='4326', geom_column_name = the_geom, table_name=( SELECT gid, the_geom FROM roads ) AS foo [Wed Dec 17 15:44:42 2008].101574 query_string_0_6:DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from ( SELECT gid, the_geom FROM roads ) AS foo WHERE the_geom && setSRID('BOX3D(102.054844143416 18.0123207848761,102.992352286832 18.7152227848761)'::BOX3D, 4326 ) [Wed Dec 17 15:44:42 2008].175520 msPOSTGISLayerFreeItemInfo called [Wed Dec 17 15:44:42 2008].175539 msPOSTGISLayerClose datastatement: the_geom FROM ( SELECT gid, the_geom FROM roads ) AS foo USING UNIQUE gid USING SRID=4326 [Wed Dec 17 15:44:42 2008].175543 msPOSTGISLayerClose -- closing query_result [Wed Dec 17 15:44:42 2008].175930 msConnPoolRelease(Roads,host=localhost port=5432 dbname=prices password=badluck user=gms_mapserver,0x101900400) [Wed Dec 17 15:44:42 2008].175940 msConnPoolClose(host=localhost port=5432 dbname=prices password=badluck user=gms_mapserver,0x101900400) [Wed Dec 17 15:44:42 2008].176004 msDrawMap(): Layer 8 (Roads), 0.080s [Wed Dec 17 15:44:42 2008].215812 msDrawMap(): Drawing Label Cache, 0.000s [Wed Dec 17 15:44:42 2008].215824 msDrawMap() total time: 0.121s [Wed Dec 17 15:44:42 2008].227155 msSaveImage() total time: 0.011s [Wed Dec 17 15:44:42 2008].230642 msSaveImage() total time: 0.001s [Wed Dec 17 15:44:42 2008].234008 mapserv request processing time (loadmap not incl.): 0.139s [Wed Dec 17 15:44:42 2008].234016 msFreeMap(): freeing map at 0x10180e200. [Wed Dec 17 15:44:42 2008].234020 msPOSTGISLayerClose datastatement: the_geom FROM ( SELECT gid, the_geom FROM roads ) AS foo USING UNIQUE gid USING SRID=4326 [Wed Dec 17 15:44:42 2008].234023 msPOSTGISLayerClose -- layerinfo is NULL If I copy and paste the query, I get data (I have no way of knowing if it is OK) : | 16899 \001 \007 \000 \000 \000 \001 \000 \000 \000 \001 \005 \000 \000 \000\001\000\000\000\001\002\000\000\000\037\000\000\000\000\000\000@ \023\225Y@\000\000\000\300 etc (I just copied some of it) There is no difference between cgi mapserv and shp2img. Any thoughts much appreciated!! cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From alexandre.rodier at carm.es Wed Dec 17 03:42:19 2008 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Wed, 17 Dec 2008 12:42:19 +0100 Subject: [mapserver-users] Blank image after map request References: <54d2ad300812170214j2be2b050q19b2cfaeef773fdb@mail.gmail.com> Message-ID: <8DB813E500220E49824A37D46669749D56C8C6@CORREO06.carm.msda> Ok, I changed data path to a full path and a getmap works fine. But wms service in gis client doesn't yet work. Thanks for your help. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -----Mensaje original----- De: Beno?t Andrieu [mailto:benoit.andrieu at gmail.com] Enviado el: mi?rcoles, 17 de diciembre de 2008 11:14 Para: RODIER BATISSE, ALEXANDRE; mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] Blank image after map request Hi, Sorry, but I am not at work and my webmail refuses to send the message, don't know why, so I have to send this message directly to you and not on the mailing list. My guess would be to check the path to the tiff file in map file. You have put DATA "/../raster/mosaico.tif". Doesn't that mean mapserv.exe will go to the root of the drive it is installed on; then go on the sub-folder of this root (...); then go in the raster folder of sub-folder of the root and expect to find the tiff in there ? I would put a nice full path. Other ideas : - I personnally don't like having unknown references in my gdalinfo results (your spheroid is unretrievable), - well, nothing more... Regards, Benoit Beno?t Andrieu +33.(0)1.30.08.95.21 bea at ixsea.com benoit.andrieu at gmail.com From vtammineni at roulacglobal.com Wed Dec 17 04:16:26 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 17 Dec 2008 17:46:26 +0530 Subject: [mapserver-users] How to Store Images(bmp) into PostgreSQL Message-ID: <001001c96041$4a213200$de639600$@com> Dear All, How can I store Images into PostgreSQL database. Anyone can guide me. I am waiting for your great response. Advanced Thanks, Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Wed Dec 17 06:24:23 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 17 Dec 2008 19:54:23 +0530 Subject: [mapserver-users] regarding scalebar Message-ID: Hi Why anyone is nt explaining my simple question.??.......My scalebar doubt.........And one more thing I need to restart apachhe after a period to continue run my program....why???Plz reply.... -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Westwood at port.ac.uk Wed Dec 17 06:32:08 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed, 17 Dec 2008 14:32:08 +0000 Subject: [mapserver-users] Trying to get GeoWebCache to work with MapServer Message-ID: <49490D680200005300049124@stirling.iso.port.ac.uk> Hi, I am having some problems trying to get GeoWebCache working with MapServer. I currently have a fully functional MapServer / TileCache / OpenLayers system setup on the server. MapServer is functioning as a WMS server. With a GeoWebCache layer I receive pink tiles, right clicking and viewing the image tile reports the following type of GeoWevCache error: 400: Empty metatile, error message: MimeType mismatch, expected image/png but got text/html I believe this means that GeoWebCache received a text response from MapServer instead of an image response. The previous error also came with a MapServer url. Hitting that url brings back the following MapServer error: msEvalRegex(): Regular expression error. String (/data/map-files/gbhgis.map?exceptions=application/vnd.ogc.se_inimage) failed expression test I tried stripping down my map file to just a single layer but that did not help. I also tried using the shp2img command with my full map file: shp2img -m /data/map-files/gbhgis.map -o test.png -map_debug 3 The following debug information was output and the resulting png was blank / transparent: msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.001s msSaveImage() total time: 0.031s There are many layers in my map file, yet nothing much happened with shp2img. Something seems a bit fishy. But everything works alright with Tilecache or with MapServer on its own with no caching. I'm confused. Does anybody have any ideas? Perhaps I could look at and compare the TileCache and GeoWebCache requests in the server log? However, it seems that there may be something more fundamentally wrong if shp2img returns northing. Regards, John Westwood Great Britain Historical GIS Project From thomas.bonfort at gmail.com Wed Dec 17 07:02:06 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 17 Dec 2008 16:02:06 +0100 Subject: [mapserver-users] Trying to get GeoWebCache to work with MapServer In-Reply-To: <49490D680200005300049124@stirling.iso.port.ac.uk> References: <49490D680200005300049124@stirling.iso.port.ac.uk> Message-ID: what are the exact urls called by geowebcache? (from your apache logs) I'd suspect a typo in your wms definition, given the stray "?" in your error message. eg: http://server/cgi/mapserv/map=path/to/map instead of http://server/cgi/mapserv?map=path/to/map regards, thomas On Wed, Dec 17, 2008 at 15:32, John Westwood wrote: > Hi, > > I am having some problems trying to get GeoWebCache working with MapServer. I currently have a fully functional MapServer / TileCache / OpenLayers system setup on the server. MapServer is functioning as a WMS server. > > With a GeoWebCache layer I receive pink tiles, right clicking and viewing the image tile reports the following type of GeoWevCache error: > > 400: Empty metatile, error message: MimeType mismatch, expected image/png but got text/html > > I believe this means that GeoWebCache received a text response from MapServer instead of an image response. The previous error also came with a MapServer url. Hitting that url brings back the following MapServer error: > > msEvalRegex(): Regular expression error. String (/data/map-files/gbhgis.map?exceptions=application/vnd.ogc.se_inimage) failed expression test > > I tried stripping down my map file to just a single layer but that did not help. I also tried using the shp2img command with my full map file: > > shp2img -m /data/map-files/gbhgis.map -o test.png -map_debug 3 > > The following debug information was output and the resulting png was blank / transparent: > > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.001s > msSaveImage() total time: 0.031s > > There are many layers in my map file, yet nothing much happened with shp2img. Something seems a bit fishy. But everything works alright with Tilecache or with MapServer on its own with no caching. I'm confused. > > Does anybody have any ideas? Perhaps I could look at and compare the TileCache and GeoWebCache requests in the server log? However, it seems that there may be something more fundamentally wrong if shp2img returns northing. > > Regards, > > John Westwood > Great Britain Historical GIS Project > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Wed Dec 17 10:06:53 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 17 Dec 2008 12:06:53 -0600 Subject: [mapserver-users] regarding scalebar In-Reply-To: References: Message-ID: <4948EB5E.5157.008F.0@dnr.state.mn.us> Dude, you need to be more patient, and it's not necessarily a simple question. Anyway, near as I can tell there is no problem. I whipped up a little example based on your mapfile and extent, see: http://maps.dnr.state.mn.us/cgi-bin/mapserv50?map=/usr/local/www/docs_maps/testing/patra.map&mode=browse&mapext=-97.384655+49.697475+-96.877772+50.077168 The dx for your map (after adjusting to the requested map aspect) is .506883 degrees, so with width of the entire map is 34.9952 miles over 639 pixels (remember mapserver extents are pixel center to pixel center). Using this we get that 6 miles should be 110 pixels wide. If you open the scalebar in something like photoshop the scalebar is 111 pixels wide (really 110 when you take into account the pixel center to pixel center computation). 34.9952/639 = 6/w, w = 109.55788, which rounds to 110 So the math works for me anyway given the bit of rounding that has to happen when creating and labeling the scalebar. Steve >>> On 12/17/2008 at 8:24 AM, in message , "Amiya Patra" wrote: > Hi > > Why anyone is nt explaining my simple question.??.......My scalebar > doubt.........And one more thing I need to restart apachhe after a period to > continue run my program....why???Plz reply.... From woodbri at swoodbridge.com Wed Dec 17 11:38:34 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 17 Dec 2008 14:38:34 -0500 Subject: [mapserver-users] AGG OUTPUTFORMAT Question Message-ID: <4949553A.7030107@swoodbridge.com> Hi Thomas, et al, I need to generate tiles using AGG output and need them to be 8 bit png images. http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics Does not make it clear if any of the formats shown are 8 bit png images and it does not note the use of: FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=/u/data/maps/palette-agg.txt" What is the proper way to set up OUTPUTFORMAT to use AGG to get the best quality 8 bit output. I think I need to use the PALETTE* options to control color shifts in adjacent tiles. I would be happy to add a comment to the above link with this additional info. Best regards, -Steve W From thomas.bonfort at gmail.com Wed Dec 17 11:56:42 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 17 Dec 2008 20:56:42 +0100 Subject: [mapserver-users] Re: AGG OUTPUTFORMAT Question In-Reply-To: <4949553A.7030107@swoodbridge.com> References: <4949553A.7030107@swoodbridge.com> Message-ID: Steve, you have the undocumented FORMATOPTION QUANTIZE_NEW=yes that uses the median cut quantization algorithm which is slower but much better than the GD one. Still no guarantee your tiles will have exactly the same colors, although in practice this seems to be the case. keep me in touch with your findings, so this can be documented if the results are ok. cheers, thomas On Wed, Dec 17, 2008 at 20:38, Stephen Woodbridge wrote: > Hi Thomas, et al, > > I need to generate tiles using AGG output and need them to be 8 bit png > images. > > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics > > Does not make it clear if any of the formats shown are 8 bit png images and > it does not note the use of: > > FORMATOPTION "PALETTE_FORCE=TRUE" > FORMATOPTION "PALETTE=/u/data/maps/palette-agg.txt" > > What is the proper way to set up OUTPUTFORMAT to use AGG to get the best > quality 8 bit output. I think I need to use the PALETTE* options to control > color shifts in adjacent tiles. > > I would be happy to add a comment to the above link with this additional > info. > > Best regards, > -Steve W > From jose.maria.michia at gmail.com Wed Dec 17 11:58:52 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Wed, 17 Dec 2008 17:58:52 -0200 Subject: [mapserver-users] thin lines in SVG format (size < 1) (and float size values) Message-ID: Hello. I'm using MapServer to make maps in SVG format. I wish draw lines of 0.5 pixel of width. But, the "stroke-width" in SVG output are integers. So, I going to try to modify code to use decimal values in SIZE and WIDTH. I've made some changes in mapsvg.c. But, the problem is that style object arrives to svg functions with size and with values rounded. So, I need to modify something at style level. Thanks for any advice. Saludos Jos? Mar?a From thomas.bonfort at gmail.com Wed Dec 17 12:07:07 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 17 Dec 2008 21:07:07 +0100 Subject: [mapserver-users] Re: AGG OUTPUTFORMAT Question In-Reply-To: References: <4949553A.7030107@swoodbridge.com> Message-ID: just a side note on the subject: seeding your tiles probably involves using tilecache's metatiles. quantizing a 5x5 tile in mapserver will very probably give poorer visual results than quantizing each individual tile. For this reason I tend to seed in 24bit mode, and postprocess the split up tiles with pngnq: for file in `find tilecache/mylayer -name "*.png"`; do echo $file; pngnq -e .png.tmp -n 256 $file; mv $file.tmp $file; done On Wed, Dec 17, 2008 at 20:56, thomas bonfort wrote: > Steve, > you have the undocumented FORMATOPTION QUANTIZE_NEW=yes that uses the > median cut quantization algorithm which is slower but much better than > the GD one. Still no guarantee your tiles will have exactly the same > colors, although in practice this seems to be the case. > > keep me in touch with your findings, so this can be documented if the > results are ok. > > cheers, > thomas > > On Wed, Dec 17, 2008 at 20:38, Stephen Woodbridge > wrote: >> Hi Thomas, et al, >> >> I need to generate tiles using AGG output and need them to be 8 bit png >> images. >> >> http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics >> >> Does not make it clear if any of the formats shown are 8 bit png images and >> it does not note the use of: >> >> FORMATOPTION "PALETTE_FORCE=TRUE" >> FORMATOPTION "PALETTE=/u/data/maps/palette-agg.txt" >> >> What is the proper way to set up OUTPUTFORMAT to use AGG to get the best >> quality 8 bit output. I think I need to use the PALETTE* options to control >> color shifts in adjacent tiles. >> >> I would be happy to add a comment to the above link with this additional >> info. >> >> Best regards, >> -Steve W >> > From thomas.bonfort at gmail.com Wed Dec 17 12:11:35 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 17 Dec 2008 21:11:35 +0100 Subject: [mapserver-users] thin lines in SVG format (size < 1) (and float size values) In-Reply-To: References: Message-ID: Jos?, the svn version of mapserver (what will be mapserver 5.4) comes with size and widths unrounded in the the style object. Please post your patch to mapsvg.c in the trac bugtracker so it can be incorporated alongside in 5.4 regards, thomas On Wed, Dec 17, 2008 at 20:58, Jos? Mar?a Michia wrote: > Hello. > > I'm using MapServer to make maps in SVG format. > > I wish draw lines of 0.5 pixel of width. But, the "stroke-width" in > SVG output are integers. > > So, I going to try to modify code to use decimal values in SIZE and WIDTH. > > I've made some changes in mapsvg.c. But, the problem is that style > object arrives to svg functions with size and with values rounded. So, > I need to modify something at style level. > > Thanks for any advice. > Saludos > Jos? Mar?a > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jose.maria.michia at gmail.com Wed Dec 17 13:50:24 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Wed, 17 Dec 2008 19:50:24 -0200 Subject: [mapserver-users] thin lines in SVG format (size < 1) (and float size values) In-Reply-To: References: Message-ID: I have the mapsvg.c file modified to write floating sizes. I sent a patch to the trac site. The "Ticket" is here: http://trac.osgeo.org/mapserver/ticket/2835 If the patch file does not work, I have a file of traditional differences, and of course the file itself, with the modifications. Saludos Jos? Mar?a 2008/12/17 thomas bonfort : > Jos?, > > the svn version of mapserver (what will be mapserver 5.4) comes with > size and widths unrounded in the the style object. Please post your > patch to mapsvg.c in the trac bugtracker so it can be incorporated > alongside in 5.4 > > regards, > thomas > > On Wed, Dec 17, 2008 at 20:58, Jos? Mar?a Michia > wrote: >> Hello. >> >> I'm using MapServer to make maps in SVG format. >> >> I wish draw lines of 0.5 pixel of width. But, the "stroke-width" in >> SVG output are integers. >> >> So, I going to try to modify code to use decimal values in SIZE and WIDTH. >> >> I've made some changes in mapsvg.c. But, the problem is that style >> object arrives to svg functions with size and with values rounded. So, >> I need to modify something at style level. >> >> Thanks for any advice. >> Saludos >> Jos? Mar?a >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From jose.maria.michia at gmail.com Wed Dec 17 18:54:37 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Thu, 18 Dec 2008 00:54:37 -0200 Subject: [mapserver-users] Inkscape layers in SVG output Message-ID: Hi all. I sent a patch to trac: http://trac.osgeo.org/mapserver/ticket/2836 Is for a new option for SVG format: INKSCAPE. Elements are separated in layers (Inkscape layers), in correspondence with original layers. The objective of this patch is to facilitate the retouching of final map. I hope that this be useful. If yes, please, check the code. Saludos Jos? Mar?a From pspencer at dmsolutions.ca Wed Dec 17 18:56:25 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed, 17 Dec 2008 21:56:25 -0500 Subject: [mapserver-users] AGG OUTPUTFORMAT Question In-Reply-To: <4949553A.7030107@swoodbridge.com> References: <4949553A.7030107@swoodbridge.com> Message-ID: Steve, I use this OUTPUTFORMAT OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGB" FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=/path/to/palette.txt" END We've had good results with this in terms of colours - once you identify the main colours you want to keep from the map file and any images in your palette.txt file, GD seems to do a pretty reasonable job of filling in the antialiasing colours I'm not sure the extra quality that Thomas mentioned would be noticeable, but I haven't tried it. I think that it might be worth running pngnq on tiles as well - not to reduce the palette but to reduce the tile size, but I'm not sure on that. Cheers Paul On 17-Dec-08, at 2:38 PM, Stephen Woodbridge wrote: > Hi Thomas, et al, > > I need to generate tiles using AGG output and need them to be 8 bit > png images. > > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics > > Does not make it clear if any of the formats shown are 8 bit png > images and it does not note the use of: > > FORMATOPTION "PALETTE_FORCE=TRUE" > FORMATOPTION "PALETTE=/u/data/maps/palette-agg.txt" > > What is the proper way to set up OUTPUTFORMAT to use AGG to get the > best quality 8 bit output. I think I need to use the PALETTE* > options to control color shifts in adjacent tiles. > > I would be happy to add a comment to the above link with this > additional info. > > Best regards, > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://research.dmsolutions.ca/ From amiyapatra188 at gmail.com Wed Dec 17 21:32:52 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Thu, 18 Dec 2008 11:02:52 +0530 Subject: [mapserver-users] regarding scalebar Message-ID: Hi steve....... Thanks 4 reply..... My calculation was exactly same as yours.. But steve my scalebar size is 144X5. ( not 110).........And I do need to restart apache server after some time to continue to run my program. why is it so ??? Thanks & Regards Amiya Patra -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at remoteinformation.com.au Wed Dec 17 21:49:11 2008 From: ben at remoteinformation.com.au (Ben Madin) Date: Thu, 18 Dec 2008 14:49:11 +0900 Subject: [mapserver-users] Re: Blank PostGIS Layer in MapServer In-Reply-To: <20081217142428.30F00E00F2D@lists.osgeo.org> References: <20081217142428.30F00E00F2D@lists.osgeo.org> Message-ID: <6A231555-434D-4C77-BBA5-62C191662471@remoteinformation.com.au> G'day all, A quick cross posting - I reply to myself - (thanks to Venkat for the suggestion, albeit not successful) > I am having generally excellent results with MapServer 5.2, but I am > having a problem with a postgis line layer not displaying, and no > suggestion that it shouldn't from the logs. This was resolved by upgrading from PostGIS 1.3.4 to 1.3.5. Unfortunately having only upgraded to 1.3.4 on the 14th December, I missed : (from the refractions website) News PostGIS 1.3.5 Release December 15, 2008 The 1.3.5 release of PostGIS is now available. This release is a small bug fix release, including a critical fix for using PostGIS with Mapserver and LINE layers. Neither did I notice this information in the postgis-users list - would it have been posted? (I did notice the thread 'Changed behaviour of PostGIS confuses MapServer' but I was under the impression this caused a complete crash, not just an empty set to be returned.) Either way, thanks to those who fixed it. For FreeBSD, if it helps anyone I have attached an amended Makefile and distinfo for the port. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PostGIS_distinfo Type: application/octet-stream Size: 196 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PostGIS_Makefile Type: application/octet-stream Size: 1981 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at remoteinformation.com.au Wed Dec 17 23:07:35 2008 From: ben at remoteinformation.com.au (Ben Madin) Date: Thu, 18 Dec 2008 16:07:35 +0900 Subject: [mapserver-users] Impact of InValid Geometry on PostGIS queries In-Reply-To: <20081218031704.A2962E012D0@lists.osgeo.org> References: <20081218031704.A2962E012D0@lists.osgeo.org> Message-ID: <6EA7EAE5-F669-4DFA-AEE7-63E45755E69C@remoteinformation.com.au> G'day all, I have a roads shapefile which I imported in PostGIS, planning to merge several different countries data eventually. It is producing a layer on the map, and labels etc. However, the data isn't all good - in fact, about 10% is bad : es=# select IsValid(the_geom), count(gid) from gis_roads group by IsValid(the_geom); isvalid | count ----------+------- | 4128 t | 39670 (2 rows) My question then is : should I ? a) leave it - it won't do any harm, but probably won't be rendered, b) remove it - it may be incorrectly rendered, or waste processor time on data that is unuseable, c) fix it by hand (lazy git!) d) fix it automatically, using super program I wasn't aware of. (called?) actually, I don't have the time or budget for option c, and I suspect option d does not exist! cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From vtammineni at roulacglobal.com Thu Dec 18 01:25:58 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 18 Dec 2008 14:55:58 +0530 Subject: [mapserver-users] How can i use MapServer dbox for C# asp.net Message-ID: <003d01c960f2$a56c2550$f0446ff0$@com> Dear All, I found url ,it looks good (Smoot zoom and pan etc..) http://maps.dnr.state.mn.us/tools/dbox/#introduction But I do not know how use in C# aps.net.If some one knows about ,please can you guide me. Advanced Thanks, Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bea at ixsea.com Thu Dec 18 01:24:53 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Thu, 18 Dec 2008 10:24:53 +0100 Subject: [mapserver-users] Impact of InValid Geometry on PostGIS queries In-Reply-To: <6EA7EAE5-F669-4DFA-AEE7-63E45755E69C@remoteinformation.com.au> References: <20081218031704.A2962E012D0@lists.osgeo.org> <6EA7EAE5-F669-4DFA-AEE7-63E45755E69C@remoteinformation.com.au> Message-ID: <2605520EA4124A1E81A77B7EC56A0FAB@ixsea.local> Hi Ben, Option A : from my own very little experience with postgis & mapserver, you'll have a little loss of performance. Option B : in the worst case, you'll get an error and mapserver will throw an exception to the client. Option C : poor guy... :) Option D : you should maybe try to put a call to buffer around your geom column; in some cases, it is able to do some magic results ! -- To see if the magic happens select buffer(the_geom), IsValid(buffer(the_geom)) from gis_roads where IsValid(the_geom) = false; -- To select and do the magic without updates select the_geom, count(gid) from (select buffer(the_geom) as the_geom, gid from gis_roads) group by the_geom; -- To update magically update gis_roads set the_geom = buffer(the_geom) where IsValid(the_geom) == false; I did not test those, so maybe it won't work... Best regards, Beno?t Beno?t Andrieu +33.(0)1.30.08.95.21 bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: "Ben Madin" To: Sent: Thursday, December 18, 2008 8:07 AM Subject: [mapserver-users] Impact of InValid Geometry on PostGIS queries > G'day all, > > I have a roads shapefile which I imported in PostGIS, planning to merge > several different countries data eventually. It is producing a layer on > the map, and labels etc. > > However, the data isn't all good - in fact, about 10% is bad : > > es=# select IsValid(the_geom), count(gid) from gis_roads group by > IsValid(the_geom); > > isvalid | count > ----------+------- > | 4128 > t | 39670 > (2 rows) > > My question then is : > > should I ? > > a) leave it - it won't do any harm, but probably won't be rendered, > b) remove it - it may be incorrectly rendered, or waste processor time on > data that is unuseable, > c) fix it by hand (lazy git!) > d) fix it automatically, using super program I wasn't aware of. (called?) > > actually, I don't have the time or budget for option c, and I suspect > option d does not exist! > > cheers > > Ben > > > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > Out here, it pays to know... > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From alexandre.rodier at carm.es Thu Dec 18 04:31:10 2008 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Thu, 18 Dec 2008 13:31:10 +0100 Subject: [mapserver-users] Problem with query template Message-ID: <8DB813E500220E49824A37D46669749D56C8E3@CORREO06.carm.msda> Hi other time, Today my problem is: I define a wms service with the attached .map file. It works well (i can see the map, wms conection is ok, legend likes good, etc.). But identifier tools in my gis client (Arcgis and gvsig) doesn't work and I cannot identifie the polygon values. The question is that I don't get to understand where I have to define template url: ?in the web object, in the layer object, or in every class object? ?I have to define header, footer and general template? When I have more one layer in the same file, how can i define diferent template??in each layer object, or in each class object? Thanks you for your help. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: prueba.map Type: application/octet-stream Size: 6015 bytes Desc: prueba.map URL: From jochen.wagner8 at googlemail.com Thu Dec 18 05:25:44 2008 From: jochen.wagner8 at googlemail.com (Jochen Wagner) Date: Thu, 18 Dec 2008 14:25:44 +0100 Subject: [mapserver-users] tileindex without .jgw Message-ID: <72c962640812180525n27c06469i6bc627e3fa32617d@mail.gmail.com> Hi, I have some airial photos (format is .jpg) without any georeference-files (.jgw). But there is a shapefile with with the coordinates of the upper left, upper right, lower left and lower right coordinates and the rows and columns (pixels). The aerialphotos are rectangles but the shapes are trapezoidal. Is it possible to georeference the files "on the fly" with the shapefile in mapserver using an image catalog? If I'm using the tileindex, the arialphotos are not at the correct position and scaling. LAYER NAME "test" STATUS ON TILEINDEX "testcat.shp" TILEITEM "NAME" TYPE RASTER CLASS NAME "test" END PROCESSING "Resample=average" OFFSITE 255 255 255 END Thanks Jo From amiyapatra188 at gmail.com Thu Dec 18 06:04:47 2008 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Thu, 18 Dec 2008 19:34:47 +0530 Subject: [mapserver-users] regarding scalebar Message-ID: Hi..... Please anyone give answer of my question.............According to me It should be 7.886242254 as my scale bar size is (144X5).............plz response............ -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Dec 18 08:20:37 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 18 Dec 2008 11:20:37 -0500 Subject: [mapserver-users] tileindex without .jgw In-Reply-To: <72c962640812180525n27c06469i6bc627e3fa32617d@mail.gmail.com> References: <72c962640812180525n27c06469i6bc627e3fa32617d@mail.gmail.com> Message-ID: <494A7855.3070608@pobox.com> Jochen Wagner wrote: > Hi, > > I have some airial photos (format is .jpg) without any > georeference-files (.jgw). > But there is a shapefile with with the coordinates of the upper left, > upper right, lower left and lower right coordinates and the rows and > columns (pixels). > The aerialphotos are rectangles but the shapes are trapezoidal. > Is it possible to georeference the files "on the fly" with the > shapefile in mapserver using an image catalog? > If I'm using the tileindex, the arialphotos are not at the correct > position and scaling. Jo, No, currently the tileindex is only used to select the right files for the area of interest. It is still necessary that they have georeferencing per-file in a form that mapserver (GDAL) can utilize and that does not include the values from the tile index. The obvious step is to write a script to produce world files for from the shapefile. There are some other more complicated options if having the files without a world file is important to you. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jose.maria.michia at gmail.com Thu Dec 18 08:46:14 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Thu, 18 Dec 2008 14:46:14 -0200 Subject: [mapserver-users] Problem with query template In-Reply-To: <8DB813E500220E49824A37D46669749D56C8E3@CORREO06.carm.msda> References: <8DB813E500220E49824A37D46669749D56C8E3@CORREO06.carm.msda> Message-ID: 2008/12/18 RODIER BATISSE, ALEXANDRE > > Hi other time, > > > > Today my problem is: I define a wms service with the attached .map file. It works well (i can see the map, wms conection is ok, legend likes good, etc.). But identifier tools in my gis client (Arcgis and gvsig) doesn't work and I cannot identifie the polygon values. > > > > The question is that I don't get to understand where I have to define template url: ?in the web object, in the layer object, or in every class object? ?I have to define header, footer and general template? When I have more one layer in the same file, how can i define diferent template??in each layer object, or in each class object? You have two alternatives: - define TEMPLATE in class object. - define global TEMPLATE in layer object. This template is for all classes in layer. header and footer are optional, and only are defined in LAYER object (so, are global, for all class in layer). WEB object have a TEMPLATE option. But this template is not for layer query, I think. Saludos Jos? Mar?a > > > > Thanks you for your help. > > > > --------------------------------------------- > > Alexandre Rodier > > Asistencia T?cnica del SIGA > > > > Servicio de Informaci?n e Integraci?n Ambiental > Direcci?n General de Patrimonio Natural y Biodiversidad > Consejer?a de Agricultura y Agua. > c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C > > 30.007 Murcia > > Tel. 968246272 > > Correo-e: alexandre.rodier at carm.es > > http://www.carm.es/medioambiente > > --------------------------------------------- > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Thu Dec 18 08:57:24 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 18 Dec 2008 10:57:24 -0600 Subject: [mapserver-users] regarding scalebar In-Reply-To: References: Message-ID: <494A2C94.5157.008F.0@dnr.state.mn.us> I provided a comprehensive answer yesterday. Even though your size is 144x5 that's the size of the whole scalebar image of which the actual bar is only a portion of. The bar is only 111 pixels wide so 6 is the correct value. Using your numbers this works out: 111/144 * 7.886242254 = 6.0789784 The scalebar is correct. Steve >>> On 12/18/2008 at 8:04 AM, in message , "Amiya Patra" wrote: > Hi..... > > Please anyone give answer of my question.............According to me It > should be 7.886242254 as my scale bar size is (144X5).............plz > response............ From Antti.Roppola at brs.gov.au Thu Dec 18 13:41:07 2008 From: Antti.Roppola at brs.gov.au (Roppola, Antti - BRS) Date: Fri, 19 Dec 2008 08:41:07 +1100 Subject: [mapserver-users] Impact of InValid Geometry on PostGIS queries [SEC=UNCLASSIFIED] References: <20081218031704.A2962E012D0@lists.osgeo.org> <6EA7EAE5-F669-4DFA-AEE7-63E45755E69C@remoteinformation.com.au> Message-ID: <61C2DEA055980B418D063F8646FCAEFC05AD1D42@ACT001CL03EX03.agdaff.gov.au> Hi Ben, Option "d" does exist. Proper GIS do not tolerate invalid geometries. You could import it into Arc/INFO and use "clean" and "build" for some heavy handed (but automatic) resolution of issues. You may come a cropper if you (or someone) makes the right (wrong) kind of query against dirty geometries. Say there's a self intersection in an arc that describes the boundary between "Black" and "White", the loop is there being defined as Black *and* White. Not particularly good if your code is expecting an un-ambiguous response. (Arc/INFO would split the arcs at the loop intersect and create a new, unlabeled polygon that says "Don't Know") Unfortunately desktop GIS has also promoted the generation of dirty data. Antti -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ben Madin Sent: Thursday, 18 December 2008 6:08 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Impact of InValid Geometry on PostGIS queries G'day all, I have a roads shapefile which I imported in PostGIS, planning to merge several different countries data eventually. It is producing a layer on the map, and labels etc. However, the data isn't all good - in fact, about 10% is bad : es=# select IsValid(the_geom), count(gid) from gis_roads group by IsValid(the_geom); isvalid | count ----------+------- | 4128 t | 39670 (2 rows) My question then is : should I ? a) leave it - it won't do any harm, but probably won't be rendered, b) remove it - it may be incorrectly rendered, or waste processor time on data that is unuseable, c) fix it by hand (lazy git!) d) fix it automatically, using super program I wasn't aware of. (called?) actually, I don't have the time or budget for option c, and I suspect option d does not exist! cheers Ben ------ IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain sensitive and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ------ From ben at remoteinformation.com.au Thu Dec 18 19:51:06 2008 From: ben at remoteinformation.com.au (Ben Madin) Date: Fri, 19 Dec 2008 12:51:06 +0900 Subject: [mapserver-users] Reference Map marker box not drawing Message-ID: G'day all, I seem to be regressing here - rushing before Christmas maybe? I am trying to draw a reference map (with the nice red box showing which part of the bigger map I am zoomed into. I took my initial map image, shrunk it down into a gif file, and saved it as my refmap.gif I added this REFERENCE section: REFERENCE STATUS ON EXTENT 90 4 120 24 ## 88 -2 128 28 IMAGE "../images/refmap.gif" SIZE 225 175 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END And put this in my template : And it was a beautiful thing, my newly created map image appeared, as if my magic. However, as I zoomed in no box appeared, nor even cross hairs. From looking around, it would appear I might be the first person in history this has not worked for? Have I missed something. I have : MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE (thanks again to William Kyngesbury) and the rest of the map details are : MAP NAME trade UNITS DD EXTENT 90 4 120 24 # full map extents SIZE 900 700 SHAPEPATH "geodata/" FONTSET "geodata/fonts/fonts.lst" SYMBOLSET "geodata/symbols/symbols.sym" IMAGECOLOR 230 240 255 CONFIG "MS_ERRORFILE" "/Users/19022662/mserr.txt" DEBUG 4 OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END PROJECTION "init=epsg:4326" END cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.maria.michia at gmail.com Thu Dec 18 21:24:18 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 19 Dec 2008 03:24:18 -0200 Subject: [mapserver-users] pdf OUTPUT format for annotation layer not working Message-ID: Hi all! I get this error message with "TYPE ANNOTATION" in a polygon layer: $ shp2img -m ubicacion_regional.map -o p.pdf fatal exception: [1906] PDF_moveto: Floating point number 2147483648 too large for PDF With "TYPE polygon" the program runs normally. I've tried with MapServer version 5.2.1 and with svn version. Ask me the data and the mapfile, so you can try to reproduce this. I've opened a ticket in trac system, but, maybe someone in the list knows what is wrong with this. Thanks for any advice. Saludos Jos? Mar?a From mhd.muzaffar at gmail.com Thu Dec 18 21:39:03 2008 From: mhd.muzaffar at gmail.com (muzaffar hussain) Date: Fri, 19 Dec 2008 11:09:03 +0530 Subject: [mapserver-users] getting error Message-ID: hi i am getting the following error if i am executing *"shp2img -m ogr.map -o test.png"* *msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'.
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `MyAqi'. Fi le not found or unsupported format.
* please help out from this. thanks in advance muzaffar -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.maria.michia at gmail.com Thu Dec 18 22:15:06 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 19 Dec 2008 04:15:06 -0200 Subject: [mapserver-users] getting error In-Reply-To: References: Message-ID: 2008/12/19 muzaffar hussain : > hi > > i am getting the following error if i am executing "shp2img -m ogr.map -o > test.png" > > msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'.
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `MyAqi'. Fi > le not found or unsupported format.
> > please help out from this. Hi, I think that you must provide more information. At least, the contents of ogr.map (at least, the LAYER object). Jos? > thanks in advance > > > muzaffar > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mhd.muzaffar at gmail.com Fri Dec 19 01:29:29 2008 From: mhd.muzaffar at gmail.com (muzaffar hussain) Date: Fri, 19 Dec 2008 14:59:29 +0530 Subject: [mapserver-users] can we use variable in map file Message-ID: hi all can we use variable in POINTS of map file.for example POINTS variable,variable usually we use constant like this POINTS 12,13 variable should get from database any one who have any idea or example code pls send it to me. thanks in advance muzaffar -------------- next part -------------- An HTML attachment was scrubbed... URL: From luigi.cardeles at gmail.com Fri Dec 19 02:50:43 2008 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Fri, 19 Dec 2008 08:50:43 -0200 Subject: [mapserver-users] getting error In-Reply-To: References: Message-ID: 2008/12/19 muzaffar hussain > hi > > i am getting the following error if i am executing *"shp2img -m ogr.map > -o test.png"* > > *msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'. >
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `MyAqi'. Fi > le not found or unsupported format.
* > > please help out from this. > > thanks in advance > > > muzaffar > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Luigi Castro Cardeles -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Fri Dec 19 03:44:46 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 19 Dec 2008 17:14:46 +0530 Subject: [mapserver-users] can we use variable in map file In-Reply-To: References: Message-ID: <005701c961cf$32f659e0$98e30da0$@com> Hi, You have to create empty mapfile using point type and call the_geom form table .access data from database based on variables.For that you have to write code in your programming language. Exp C# etc. Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of muzaffar hussain Sent: Friday, December 19, 2008 2:59 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] can we use variable in map file hi all can we use variable in POINTS of map file.for example POINTS variable,variable usually we use constant like this POINTS 12,13 variable should get from database any one who have any idea or example code pls send it to me. thanks in advance muzaffar -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Dec 19 07:41:31 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 19 Dec 2008 08:41:31 -0700 Subject: [mapserver-users] pdf OUTPUT format for annotation layer not working In-Reply-To: References: Message-ID: <494BC0AB.6040707@geoanalytic.com> Jos?, I ran into that problem a couple of days ago. I had a rogue COLOR object in my LAYER: LAYER NAME '082h04_1_0_TO_2520009_0' TYPE annotation DATA 'C:\Inetpub\wwwroot\Topo\data\vector\Canvec_50\082\H\082h04_1_0_TO_2520009_0' STATUS DEFAULT LABELITEM 'TOPONAME' CLASSITEM 'TYPE' CLASS COLOR 0 0 0 # this causes a "too large for PDF" error NAME 'TYPE = 4' EXPRESSION '4' LABEL FONT "tuffy5" TYPE TRUETYPE COLOR 80 80 80 : Taking out the (useless) COLOR object made it work. Brent Fraser Jos? Mar?a Michia wrote: > Hi all! > > I get this error message with "TYPE ANNOTATION" in a polygon layer: > > $ shp2img -m ubicacion_regional.map -o p.pdf > fatal exception: [1906] PDF_moveto: Floating point number 2147483648 > too large for PDF > > With "TYPE polygon" the program runs normally. > > I've tried with MapServer version 5.2.1 and with svn version. > > Ask me the data and the mapfile, so you can try to reproduce this. > > I've opened a ticket in trac system, but, maybe someone in the list > knows what is wrong with this. > > Thanks for any advice. > Saludos > Jos? Mar?a > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jose.maria.michia at gmail.com Fri Dec 19 09:04:11 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 19 Dec 2008 15:04:11 -0200 Subject: [mapserver-users] pdf OUTPUT format for annotation layer not working In-Reply-To: <494BC0AB.6040707@geoanalytic.com> References: <494BC0AB.6040707@geoanalytic.com> Message-ID: 2008/12/19 Brent Fraser : > Jos?, > > I ran into that problem a couple of days ago. I had a rogue COLOR object > in my LAYER: > > LAYER > NAME '082h04_1_0_TO_2520009_0' > TYPE annotation > DATA > 'C:\Inetpub\wwwroot\Topo\data\vector\Canvec_50\082\H\082h04_1_0_TO_2520009_0' > STATUS DEFAULT > LABELITEM 'TOPONAME' > CLASSITEM 'TYPE' > CLASS > COLOR 0 0 0 # this causes a "too large for PDF" error > NAME 'TYPE = 4' EXPRESSION '4' LABEL FONT "tuffy5" > TYPE TRUETYPE > COLOR 80 80 80 > : > > Taking out the (useless) COLOR object made it work. > > Brent Fraser Yes! This solves the problem. Thanks very much. Jos? Mar?a > Jos? Mar?a Michia wrote: >> >> Hi all! >> >> I get this error message with "TYPE ANNOTATION" in a polygon layer: >> >> $ shp2img -m ubicacion_regional.map -o p.pdf >> fatal exception: [1906] PDF_moveto: Floating point number 2147483648 >> too large for PDF >> >> With "TYPE polygon" the program runs normally. >> >> I've tried with MapServer version 5.2.1 and with svn version. >> >> Ask me the data and the mapfile, so you can try to reproduce this. >> >> I've opened a ticket in trac system, but, maybe someone in the list >> knows what is wrong with this. >> >> Thanks for any advice. >> Saludos >> Jos? Mar?a >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From jose.maria.michia at gmail.com Fri Dec 19 09:51:02 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 19 Dec 2008 15:51:02 -0200 Subject: [mapserver-users] produce hardcopy maps Message-ID: Hi all. I have worked several days, trying to get MapServer maps in vector format (PDF, SVG), to produce printed maps. I had intended to open the maps with Inkscape, to make the final composition with this program. But I encounter many difficulties. Especially with: - scale and resolution of the map - scale of the symbols - style of the symbols - labels (angle = follow not work; incorrect alignment in SVG format) As my maps are relatively small, and also need to move forward with my work, I have decided to use the PNG format (with the driver AGG). Is a correct decision? Or instead, should it be possible to get maps in PDF / SVG as these maps are seen in picture format? Sorry for my english. Thanks for any advice. Jos? Mar?a PS: Later I hope to continue working towards bringing the maps to Inkscape. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Dec 19 12:14:12 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 19 Dec 2008 13:14:12 -0700 Subject: [mapserver-users] produce hardcopy maps In-Reply-To: References: Message-ID: <494C0094.7000903@geoanalytic.com> Jos?, I would agree that the current implementation of PDF output is not suitable for producing printed maps. I'll be looking into fixing some of the open tickets (and other bugs I've found), and intend to add some additional FORMATOPTIONs to improve the setting of scale and resolution. Hopefully the changes will make it into version 5.4 (release in first quarter of 2009?). Brent Fraser Jos? Mar?a Michia wrote: > Hi all. > > I have worked several days, trying to get MapServer maps in vector > format (PDF, SVG), to produce printed maps. I had intended to open the > maps with Inkscape, to make the final composition with this program. > > But I encounter many difficulties. Especially with: > > - scale and resolution of the map > - scale of the symbols > - style of the symbols > - labels (angle = follow not work; incorrect alignment in SVG format) > > As my maps are relatively small, and also need to move forward with my > work, I have decided to use the PNG format (with the driver AGG). > > Is a correct decision? Or instead, should it be possible to get maps in > PDF / SVG as these maps are seen in picture format? > > Sorry for my english. > Thanks for any advice. > Jos? Mar?a > > PS: Later I hope to continue working towards bringing the maps to Inkscape. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Fri Dec 19 12:30:38 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 19 Dec 2008 15:30:38 -0500 Subject: [mapserver-users] produce hardcopy maps In-Reply-To: <494C0094.7000903@geoanalytic.com> References: <494C0094.7000903@geoanalytic.com> Message-ID: <494C046E.8020305@mapgears.com> Brent Fraser wrote: > > I would agree that the current implementation of PDF output is not > suitable for producing printed maps. I'll be looking into fixing some > of the open tickets (and other bugs I've found), and intend to add some > additional FORMATOPTIONs to improve the setting of scale and > resolution. Hopefully the changes will make it into version 5.4 > (release in first quarter of 2009?). > Brent, I'm glad to hear that you'd like to work on PDF issues, that's much needed, but before you invest time in this, you should be aware that there is also a switch from pdflib to libharu in the air: http://trac.osgeo.org/mapserver/ticket/2661 Not sure if/when that's going to happen, but it may be a good idea to share your plans on the -dev list before you spend time on this. Daniel -- Daniel Morissette http://www.mapgears.com/ From jose.maria.michia at gmail.com Fri Dec 19 12:51:04 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 19 Dec 2008 18:51:04 -0200 Subject: [mapserver-users] produce hardcopy maps In-Reply-To: <494C046E.8020305@mapgears.com> References: <494C0094.7000903@geoanalytic.com> <494C046E.8020305@mapgears.com> Message-ID: Hi all. I'm more interested in the SVG format, rather than the PDF format. The only reason that I prefer SVG, is that this format are best for later editing in programs like Inkscape. And, what about Postcript format? Is strange to me, that MapServer does not have support for PS output format. Saludos Jos? Mar?a 2008/12/19 Daniel Morissette > Brent Fraser wrote: > >> >> I would agree that the current implementation of PDF output is not >> suitable for producing printed maps. I'll be looking into fixing some of >> the open tickets (and other bugs I've found), and intend to add some >> additional FORMATOPTIONs to improve the setting of scale and resolution. >> Hopefully the changes will make it into version 5.4 (release in first >> quarter of 2009?). >> >> > > Brent, > > I'm glad to hear that you'd like to work on PDF issues, that's much needed, > but before you invest time in this, you should be aware that there is also a > switch from pdflib to libharu in the air: > > http://trac.osgeo.org/mapserver/ticket/2661 > > Not sure if/when that's going to happen, but it may be a good idea to share > your plans on the -dev list before you spend time on this. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Dec 19 13:05:01 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 19 Dec 2008 16:05:01 -0500 Subject: [mapserver-users] produce hardcopy maps In-Reply-To: References: <494C0094.7000903@geoanalytic.com> <494C046E.8020305@mapgears.com> Message-ID: <494C0C7D.4070403@mapgears.com> Jos? Mar?a Michia wrote: > > And, what about Postcript format? Is strange to me, that MapServer does > not have support for PS output format. > Probably a combination of the fact that MapServer is primarily used for web browsing and not printing (contrary to PDF/SVG, PS is not exactly Web-friendly), plus the lack of demand/funding for this specific output format. Daniel -- Daniel Morissette http://www.mapgears.com/ From pcreso at pcreso.com Fri Dec 19 18:34:12 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 19 Dec 2008 18:34:12 -0800 (PST) Subject: [mapserver-users] produce hardcopy maps In-Reply-To: <494C0094.7000903@geoanalytic.com> Message-ID: <582454.39704.qm@web33206.mail.mud.yahoo.com> Hi, I'm currently involved in developing an application using Postgis, mapserver, OpenLayers & GMT which needs to generate interactive mapserver maps as well as maps suitable for publication in a scientific journal. The vector data is held in Postgis, with some raster backgrounds via WMS. A mapserver based application via OpenLayers allows users to plot user selected subsets of the vector data, & a GMT tab in the application allows publication quality maps to be produced with GMT, then downloaded. It is pretty basic at present, pretty much a prototype, but we are considering expanding the fuctionality so that the GMT map picks up the user selections on the mapserver tab so the GMT extent, data layers, etc, will default to those in the mapserver tab. The main reason for this is we are working with data around Antarctica, where a polar plot is ideal, but not that easy to manage with mapserver, so a rectangular mapserver map, while distorted, is adequate for data browsing, but for cartographic output, it is not good enough. GMT can generate good quality polar plots, so we can generate those & make them available as ps or png images, (png allows preview in the browser). Cheers, Brent Wood --- On Sat, 12/20/08, Brent Fraser wrote: > From: Brent Fraser > Subject: Re: [mapserver-users] produce hardcopy maps > To: "Jos? Mar?a Michia" > Cc: mapserver-users at lists.osgeo.org > Date: Saturday, December 20, 2008, 9:14 AM > Jos?, > > I would agree that the current implementation of PDF > output is not suitable for producing printed maps. I'll > be looking into fixing some of the open tickets (and other > bugs I've found), and intend to add some additional > FORMATOPTIONs to improve the setting of scale and > resolution. Hopefully the changes will make it into version > 5.4 (release in first quarter of 2009?). > > Brent Fraser > > > Jos? Mar?a Michia wrote: > > Hi all. > > I have worked several days, trying to get MapServer > maps in vector format (PDF, SVG), to produce printed maps. I > had intended to open the maps with Inkscape, to make the > final composition with this program. > > > > But I encounter many difficulties. Especially with: > > > > - scale and resolution of the map > > - scale of the symbols > > - style of the symbols > > - labels (angle = follow not work; incorrect alignment > in SVG format) > > > > As my maps are relatively small, and also need to move > forward with my work, I have decided to use the PNG format > (with the driver AGG). > > > > Is a correct decision? Or instead, should it be > possible to get maps in PDF / SVG as these maps are seen in > picture format? > > > > Sorry for my english. > > Thanks for any advice. > > Jos? Mar?a > > > > PS: Later I hope to continue working towards bringing > the maps to Inkscape. > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jose.maria.michia at gmail.com Fri Dec 19 18:50:38 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Sat, 20 Dec 2008 00:50:38 -0200 Subject: [mapserver-users] produce hardcopy maps In-Reply-To: <582454.39704.qm@web33206.mail.mud.yahoo.com> References: <494C0094.7000903@geoanalytic.com> <582454.39704.qm@web33206.mail.mud.yahoo.com> Message-ID: Thanks very much for all your responses. At first, I thought of using GMT to produce these maps. So I learned to use GMT, and I was very happy with the results. For some small details, finally, I decided to use MapServer. Saludos Jos? Mar?a PS: I've wrote a small and simple Python script to extract labels from a MapServer labels cache. This script, produces an ASCII file for use with pstext. Ask me this script, if can be useful. The labels generated, maintains generalization made by MapServer, and angle (with angle=auto in label object in mapfile). 2008/12/20 > > Hi, > > I'm currently involved in developing an application using Postgis, > mapserver, OpenLayers & GMT which needs to generate interactive mapserver > maps as well as maps suitable for publication in a scientific journal. > > The vector data is held in Postgis, with some raster backgrounds via WMS. A > mapserver based application via OpenLayers allows users to plot user > selected subsets of the vector data, & a GMT tab in the application allows > publication quality maps to be produced with GMT, then downloaded. It is > pretty basic at present, pretty much a prototype, but we are considering > expanding the fuctionality so that the GMT map picks up the user selections > on the mapserver tab so the GMT extent, data layers, etc, will default to > those in the mapserver tab. > > The main reason for this is we are working with data around Antarctica, > where a polar plot is ideal, but not that easy to manage with mapserver, so > a rectangular mapserver map, while distorted, is adequate for data browsing, > but for cartographic output, it is not good enough. GMT can generate good > quality polar plots, so we can generate those & make them available as ps or > png images, (png allows preview in the browser). > > Cheers, > > Brent Wood > > > > --- On Sat, 12/20/08, Brent Fraser wrote: > > > From: Brent Fraser > > Subject: Re: [mapserver-users] produce hardcopy maps > > To: "Jos? Mar?a Michia" > > Cc: mapserver-users at lists.osgeo.org > > Date: Saturday, December 20, 2008, 9:14 AM > > Jos?, > > > > I would agree that the current implementation of PDF > > output is not suitable for producing printed maps. I'll > > be looking into fixing some of the open tickets (and other > > bugs I've found), and intend to add some additional > > FORMATOPTIONs to improve the setting of scale and > > resolution. Hopefully the changes will make it into version > > 5.4 (release in first quarter of 2009?). > > > > Brent Fraser > > > > > > Jos? Mar?a Michia wrote: > > > Hi all. > > > I have worked several days, trying to get MapServer > > maps in vector format (PDF, SVG), to produce printed maps. I > > had intended to open the maps with Inkscape, to make the > > final composition with this program. > > > > > > But I encounter many difficulties. Especially with: > > > > > > - scale and resolution of the map > > > - scale of the symbols > > > - style of the symbols > > > - labels (angle = follow not work; incorrect alignment > > in SVG format) > > > > > > As my maps are relatively small, and also need to move > > forward with my work, I have decided to use the PNG format > > (with the driver AGG). > > > > > > Is a correct decision? Or instead, should it be > > possible to get maps in PDF / SVG as these maps are seen in > > picture format? > > > > > > Sorry for my english. > > > Thanks for any advice. > > > Jos? Mar?a > > > > > > PS: Later I hope to continue working towards bringing > > the maps to Inkscape. > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhd.muzaffar at gmail.com Fri Dec 19 20:28:02 2008 From: mhd.muzaffar at gmail.com (muzaffar hussain) Date: Sat, 20 Dec 2008 09:58:02 +0530 Subject: [mapserver-users] getting error In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA06F@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA06F@s-sp22.pca.state.mn.us> Message-ID: hi first i have created table in *mysql *as *testdata *which have four fields *(areaID,x,y,sampleValue)* then i have created *aqidata.ovf* which have following code mention below * MYSQL:aqiTest,user=uuuuu,password=ppppp,host=192.170.1.100,port=3306,tables=testdata SELECT areaID, x, y, sampleValue FROM testdata wkbPoint * then i have execute this .ovf in command line as follows *C:\ms4w\tools\gdal-ogr>ogrinfo aqidata.ovf ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `aqidata.ovf' using driver `VRT' successful. 1: aqidata (Point)* then i have created map file as follows *LAYER NAME "MyAqi" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "aqidata.ovf" DATA "aqidata" CLASS NAME "MyClass" STYLE SYMBOL 'circle' SIZE 15 COLOR 0 255 0 END END END #Circle symbol SYMBOL NAME 'circle' TYPE ellipse FILLED true POINTS 1 1 END END END *after that if i try to execute this map file means its showing the error * C:\ms4w\tools\mapserv>shp2img -m ogr.map -o test.png msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'.
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `MyAqi'. Fi le not found or unsupported format.
** * please help me out from this ,where i have done a mistake thanks in advance muzaffar On Fri, Dec 19, 2008 at 8:25 PM, Fawcett, David wrote: > Muzaffar, > > I think that we would have to see the text from your map file to figure > this out. > > What format is your data in? (Based on the name, I have a guess that it is > possible that you are using MySQL and following the HowTo that I wrote a > long time ago...) > > If you are using MySQL, it could be that your MapServer binary was not > compiled with a version of ogr that supports MySQL input. What do you get > when you type mapserv -v ? > > We definitely need more info to help you. > > David. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *muzaffar hussain > *Sent:* Thursday, December 18, 2008 11:39 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] getting error > > hi > > i am getting the following error if i am executing *"shp2img -m ogr.map > -o test.png"* > > *msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'. >
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `MyAqi'. Fi > le not found or unsupported format.
* > > please help out from this. > > thanks in advance > > > muzaffar > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhd.muzaffar at gmail.com Fri Dec 19 23:05:29 2008 From: mhd.muzaffar at gmail.com (muzaffar hussain) Date: Sat, 20 Dec 2008 12:35:29 +0530 Subject: [mapserver-users] want plot dynamic points in map Message-ID: hi all i am doing project in vehicle tracking system.wat i want is ploting dynamic points in the map. if point is static means i can able to plot in particular location,my map file is mention blow *LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map - using a default value POINTS 0 0 END END CLASS STYLE SYMBOL "marker" END END END SYMBOL NAME "marker" TYPE PIXMAP IMAGE "C:\ms4w\apps\ka-map-1.0\htdocs\images\bus.gif" #TRANSPARENT 8 END* in the above map file one statement *POINTS 0,0* is there , i am adding static image (bus)in the map, i want to add dynamic object in the map,that is current location of vehicle in the map,i should take the longitude and latitude from database. for example *POINTS longitude,latitude* if anybody is having the sample code,or come across this kind of issue,please help me out from this,for the past 1 month i am trying to do this,but i am not getting any resource for this. please help me out from this. thanks in advance muzaffar -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sat Dec 20 06:48:07 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 20 Dec 2008 09:48:07 -0500 Subject: [mapserver-users] want plot dynamic points in map In-Reply-To: References: Message-ID: <494D05A7.7000603@swoodbridge.com> http://www.google.com/search?num=100&hl=en&newwindow=1&q=mapserver-users+plot+gps+points&btnG=Search might be helpful. -Steve W muzaffar hussain wrote: > hi all > > i am doing project in vehicle tracking system.wat i want is > ploting dynamic points in the map. > > if point is static means i can able to plot in particular location,my > map file is mention blow > > > *LAYER > NAME 'gps_point' > STATUS DEFAULT > TYPE POINT > FEATURE > # This is where you specify position on the map - using a default value > POINTS 0 0 END > END > CLASS > STYLE > SYMBOL "marker" > END > END > END > > > SYMBOL > NAME "marker" > TYPE PIXMAP > IMAGE "C:\ms4w\apps\ka-map-1.0\htdocs\images\bus.gif" > #TRANSPARENT 8 > END* > > in the above map file one statement *POINTS 0,0* is there , i am adding > static image (bus)in the map, > > i want to add dynamic object in the map,that is current location of > vehicle in the map,i should take the longitude and latitude from database. > > for example > > *POINTS longitude,latitude* > > if anybody is having the sample code,or come across this kind of > issue,please help me out from this,for the past 1 month i am trying to > do this,but i am not getting any resource for this. > > please help me out from this. > > > thanks in advance > > muzaffar > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Sat Dec 20 08:01:20 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sat, 20 Dec 2008 11:01:20 -0500 Subject: [mapserver-users] getting error In-Reply-To: References: <6246727221874A4FB8D3F9BBC37D9BD5056DA06F@s-sp22.pca.state.mn.us> Message-ID: <494D16D0.9090204@pobox.com> muzaffar hussain wrote: > then i have execute this .ovf in command line as follows > > *C:\ms4w\tools\gdal-ogr>ogrinfo aqidata.ovf > ERROR 4: Update access not supported for VRT datasources. > C:\ms4w\tools\mapserv>shp2img -m ogr.map -o test.png > msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'.
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `MyAqi'. Fi > > le not found or unsupported format.
** > * > > please help me out from this ,where i have done a mistake Muzaffar, It looks like you aqidata.ovf file is in C:\MS4W\tools\gdal-ogr but your mapfile is in C:\MS4W\tools\mapserv. I don't see anything in your mapfile indicating how to find aqidata.ovf. For simplicity I would suggest you use a full path to the .ovf file in the .map file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jmckenna at gatewaygeomatics.com Sat Dec 20 08:51:22 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 20 Dec 2008 11:51:22 -0500 Subject: [mapserver-users] getting error In-Reply-To: References: <6246727221874A4FB8D3F9BBC37D9BD5056DA06F@s-sp22.pca.state.mn.us> Message-ID: <494D228A.60804@gatewaygeomatics.com> muzaffar hussain wrote: > hi > > first i have created table in *mysql *as *testdata *which have four > fields*(areaID,x,y,sampleValue)* > > then i have created *aqidata.ovf* which have following code mention below > > > * > > MYSQL:aqiTest,user=uuuuu,password=ppppp,host=192.170.1.100,port=3306,tables=testdata > > SELECT areaID, x, y, sampleValue FROM testdata > wkbPoint > > > > * > > > then i have execute this .ovf in command line as follows > > *C:\ms4w\tools\gdal-ogr>ogrinfo aqidata.ovf > ERROR 4: Update access not supported for VRT datasources. > > Had to open data source read-only. > INFO: Open of `aqidata.ovf' > using driver `VRT' successful. > 1: aqidata (Point)* > > then i have created map file as follows > > > > *LAYER > NAME "MyAqi" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "aqidata.ovf" > DATA "aqidata" > > CLASS > > NAME "MyClass" > STYLE > SYMBOL 'circle' > SIZE 15 > COLOR 0 255 0 > END > END > END > > #Circle symbol > SYMBOL > > NAME 'circle' > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > END > > > *after that if i try to execute this map file means its showing the error > > * > > C:\ms4w\tools\mapserv>shp2img -m ogr.map -o test.png > msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'.
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `MyAqi'. Fi > > le not found or unsupported format.
** > * > > please help me out from this ,where i have done a mistake > > > thanks in advance > > muzaffar > > > > On Fri, Dec 19, 2008 at 8:25 PM, Fawcett, David > > wrote: > > Muzaffar, > > I think that we would have to see the text from your map file to > figure this out. > > What format is your data in? (Based on the name, I have a guess > that it is possible that you are using MySQL and following the HowTo > that I wrote a long time ago...) > > If you are using MySQL, it could be that your MapServer binary was > not compiled with a version of ogr that supports MySQL input. What > do you get when you type mapserv -v ? > > We definitely need more info to help you. > > David. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org > ] *On Behalf Of > *muzaffar hussain > *Sent:* Thursday, December 18, 2008 11:39 PM > *To:* mapserver-users at lists.osgeo.org > > *Subject:* [mapserver-users] getting error > > hi > > i am getting the following error if i am executing *"shp2img > -m ogr.map -o test.png"* > > *msDrawMap(): Image handling error. Failed to draw layer named > 'MyAqi'.
> msOGRFileOpen(): OGR error. Open failed for OGR connection in > layer `MyAqi'. Fi > le not found or unsupported format.
* > > please help out from this. > > thanks in advance > > > muzaffar I don't see any reference to you creating an ODBC connection to your table, as in http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData I would try those steps listed in that page. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From marcusvcs at gmail.com Mon Dec 22 02:21:06 2008 From: marcusvcs at gmail.com (marcusvcs) Date: Mon, 22 Dec 2008 02:21:06 -0800 (PST) Subject: [mapserver-users] ArcSDE 9.3 Raster Mapfile problem Message-ID: <1229941266973-1689552.post@n2.nabble.com> I'm trying to view a raster which is in ArcSDE 9.3 with the mapfile below: MAP NAME "RGB_2004" #EXTENT -76.551793 -35.926191 -29.02357 8.997746 #EXTENT 503299.214 8027516.529 513375.214 8037593.529 EXTENT 8156335.197 450704.114 8202932.697 511209.614 FONTSET "c:\ms4w\apache\htdocs\i3geo/symbols/fontes.txt" #-- ret?ngulo envolvente geral da aplica??o IMAGETYPE PNG #-- output image type SIZE 400 300 #-- largura x altura STATUS ON CONFIG "MS_ERRORFILE" "C:/ms4w/tmp/ms_error.txt" DEBUG 5 UNITS DD #-- unidade do sistema de coordenadas de sa?da WEB METADATA #-- defini??es para habilitar o modo servidor WMS "wms_title" "MapServer" #-- t?tulo do servidor "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=C:/mapas/municipios.map&" #-- url de acesso - a url que ser? colado em clients "wms_srs" "EPSG:29182" #-- sistema de coordenadas de sa?da = WGS84 END END PROJECTION "init=epsg:29182" #-- sistema de coordenadas de sa?da = WGS84 END LAYER NAME "RGB_2004" TYPE RASTER CONNECTION "10.234.85.59,port:5151,sde,user,pass" CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" DATA "SDE:10.234.85.59,5151,sde,user,pass,sde.user.RGB_2004,footprint" STATUS DEFAULT METADATA "wms_title" "RGB_2004" "wms_srs" "EPSG:29182" END END END In the log generated, the following message appears: msDrawRaster(): Unable to access file. (SDE:10.234.85.59,5151,sde,user,pass,sde.user.RGB_2004,footprint) I'm using MS4W 2.2.7. All other types of data worked very well. Does anyone know what is wrong with my mapfile? -- View this message in context: http://n2.nabble.com/ArcSDE-9.3-Raster-Mapfile-problem-tp1689552p1689552.html Sent from the Mapserver - User mailing list archive at Nabble.com. From JXA at cowi.dk Mon Dec 22 03:31:16 2008 From: JXA at cowi.dk (Jeppe Lund Andersen) Date: Mon, 22 Dec 2008 12:31:16 +0100 Subject: [mapserver-users] Buffer Message-ID: Hello all I need a little help here If I run the following $NewShapeFromWkt = ms_shapeObjFromWkt( "MULTIPOLYGON(((566725.7595 6131923.3645, 566755.923 6131916.786, 566774.0885 6131912.417, 566794.538 6131907.418, 566798.6035 6131901.309, 566788.164 6131836.8625, 566779.4235 6131830.6935, 566724.0525 6131841.7915, 566723.665 6131863.507, 566714.6605 6131868.216, 566718.157 6131885.2325, 566725.7595 6131923.3645)), ((566655.975 6131935.652, 566661.6235 6131937.282, 566696.924 6131929.5735, 566694.755 6131919.4455, 566702.3 6131917.506, 566704.304 6131927.964, 566725.6935 6131923.2945, 566718.091 6131885.1625, 566652.446 6131899.0795, 566655.975 6131935.652)))" ); $new_shape = $NewShapeFromWkt->Buffer(-0.1); echo($new_shape->toWkt()); I get this shape, and it remove one of the shapes in the multipolygon can any one try and see if they get the same error ? POLYGON ((566725.8376634185000000 6131923.2451023338000000, 566755.9006510233700000 6131916.6885235561000000, 566774.0649345762800000 6131912.3198161256000000, 566794.4763613325800000 6131907.3301233519000000, 566798.4985129962400000 6131901.2862604791000000, 566788.0720058706400000 6131836.9199698064000000, 566779.4009780341300000 6131830.8000029027000000, 566724.1510484541100000 6131841.8737367792000000, 566723.7649840826600000 6131863.5087841563000000, 566723.7113416689700000 6131863.5956140496000000, 566714.7736214522700000 6131868.2696908442000000, 566718.2549535385300000 6131885.2123727966000000, 566718.2550698703900000 6131885.2129474934000000, 566725.8376634185000000 6131923.2451023338000000)) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Dec 22 06:20:05 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 22 Dec 2008 09:20:05 -0500 Subject: [mapserver-users] ArcSDE 9.3 Raster Mapfile problem In-Reply-To: <1229941266973-1689552.post@n2.nabble.com> References: <1229941266973-1689552.post@n2.nabble.com> Message-ID: <494FA215.8010500@gatewaygeomatics.com> marcusvcs wrote: > I'm trying to view a raster which is in ArcSDE 9.3 with the mapfile below: > > MAP > NAME "RGB_2004" > #EXTENT -76.551793 -35.926191 -29.02357 8.997746 > #EXTENT 503299.214 8027516.529 513375.214 8037593.529 > EXTENT 8156335.197 450704.114 8202932.697 511209.614 > FONTSET "c:\ms4w\apache\htdocs\i3geo/symbols/fontes.txt" > #-- ret?ngulo envolvente geral da aplica??o > IMAGETYPE PNG #-- output image type > SIZE 400 300 #-- largura x altura > STATUS ON > CONFIG "MS_ERRORFILE" "C:/ms4w/tmp/ms_error.txt" > DEBUG 5 > UNITS DD #-- unidade do sistema de coordenadas de sa?da > > WEB > METADATA #-- defini??es para habilitar o modo servidor WMS > "wms_title" "MapServer" #-- t?tulo do servidor > "wms_onlineresource" > "http://localhost/cgi-bin/mapserv.exe?map=C:/mapas/municipios.map&" > #-- url de acesso - a url que ser? colado em clients > "wms_srs" "EPSG:29182" #-- sistema de coordenadas de sa?da = WGS84 > END > END > > PROJECTION > "init=epsg:29182" #-- sistema de coordenadas de sa?da = WGS84 > END > > LAYER > NAME "RGB_2004" > TYPE RASTER > CONNECTION "10.234.85.59,port:5151,sde,user,pass" > CONNECTIONTYPE PLUGIN > PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" > DATA "SDE:10.234.85.59,5151,sde,user,pass,sde.user.RGB_2004,footprint" > STATUS DEFAULT > METADATA > "wms_title" "RGB_2004" > "wms_srs" "EPSG:29182" > END > END > END > > In the log generated, the following message appears: > > msDrawRaster(): Unable to access file. > (SDE:10.234.85.59,5151,sde,user,pass,sde.user.RGB_2004,footprint) > > I'm using MS4W 2.2.7. > All other types of data worked very well. > Does anyone know what is wrong with my mapfile? > A quick list search gives this thread which should help: http://www.nabble.com/GDAL-and-SDE-raster-to20312128.html#a20312128 -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jhevenor at rogers.com Mon Dec 22 06:50:25 2008 From: jhevenor at rogers.com (Joshua Hevenor) Date: Mon, 22 Dec 2008 06:50:25 -0800 (PST) Subject: [mapserver-users] Clipping Message-ID: <442525.70271.qm@web88008.mail.re2.yahoo.com> Good morning list, I'm looking for a function and/or method to clip a polygon. In general, I need to limit a polygon to the map boundary for export (export as shapefile from a web map)...so if I had a 20x20 square that was overlapping the visible map by 10 units, the exported result would be a 10x20 rectangle. PHP MapScript is my weapon of choice. I'd also welcome opinions on the approach or suggestions for alternatives. Thanks for your assistance, Josh PS. Sorry for the re-post...forgot the subject -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhevenor at rogers.com Mon Dec 22 06:48:38 2008 From: jhevenor at rogers.com (Joshua Hevenor) Date: Mon, 22 Dec 2008 06:48:38 -0800 (PST) Subject: [mapserver-users] (no subject) Message-ID: <920166.62727.qm@web88003.mail.re2.yahoo.com> Good morning list, I'm looking for a function and/or method to clip a polygon. In general, I need to limit a polygon to the map boundary for export (export as shapefile from a web map)...so if I had a 20x20 square that was overlapping the visible map by 10 units, the exported result would be a 10x20 rectangle. PHP MapScript is my weapon of choice. I'd also welcome opinions on the approach or suggestions for alternatives. Thanks for your assistance, Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: From chad at agridatainc.com Mon Dec 22 13:43:40 2008 From: chad at agridatainc.com (Chad Ringenberg) Date: Mon, 22 Dec 2008 15:43:40 -0600 Subject: [mapserver-users] changing layer projection Message-ID: <68D8CEC8857C4F98A449AF02B586EB04@ChadsVista> I have been updating my mapserver cgi application from 4.10 to 5.21 and it appears we have lost the ability to change a layers projection parameter from the url. In version 4.1 I could change it with "map_layername_projection=init=epsg:26914". With 5.21 I have tried "map_layer[layername]_projection=init=epsg:26914" and numerous other combinations to no avail. Does anyone know how to change a layers projection with 5.21? Thanks, Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From maurerj at nsidc.org Mon Dec 22 14:25:33 2008 From: maurerj at nsidc.org (John Maurer) Date: Mon, 22 Dec 2008 22:25:33 +0000 Subject: [mapserver-users] MapServer requires unnecessary SERVICE=WMS parameter in GetMap request Message-ID: <495013DD.4020602@nsidc.org> Dear MapServer users, I recently discovered that MapServer (we are using 5.2.0) requires a SERVICE parameter (i.e. SERVICE=WMS) in a GetMap OGC request even though this parameter is not mentioned or required in the WMS 1.1.1 OGC specification for GetMap requests: http://www.opengeospatial.org/standards/wms It is strange that this is so since GetFeature and GetCoverage both require the SERVICE paramter, but for whatever reason the GetMap spec doesn't. Kind of an inconsistency in the OGC services, but MapServer needs to abide by it. This cropped up when a user contacted me that our WMS services were not working in ArcGIS 9.2 after we upgraded MapServer from 4.9 to 5.2. After discussion with ESRI, they pointed out that MapServer was throwing an error about a missing SERVICE parameter because they do not include this parameter in their GetMap requests. However, the SERVICE parameter should not be required according to the spec. I modified our CGI to fill this parameter in by default if not provided as a workaround, but a future release of MapServer should probably remove the requirement for this parameter in GetMap requests. Or am I missing something (always a possibility!)? Thanks! Cheers, -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From pramsey at cleverelephant.ca Mon Dec 22 15:13:05 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 22 Dec 2008 15:13:05 -0800 Subject: [mapserver-users] MapServer requires unnecessary SERVICE=WMS parameter in GetMap request In-Reply-To: <495013DD.4020602@nsidc.org> References: <495013DD.4020602@nsidc.org> Message-ID: <30fe546d0812221513i32dc690dn703d65111f59080a@mail.gmail.com> Right you are, another hidden gem of the specification... I've assigned a ticket to this. It seems pretty important to my mind, so if others are busy, I'll fix it. http://trac.osgeo.org/mapserver/ticket/2839 P. On Mon, Dec 22, 2008 at 2:25 PM, John Maurer wrote: > Dear MapServer users, > I recently discovered that MapServer (we are using 5.2.0) requires a SERVICE > parameter (i.e. SERVICE=WMS) in a GetMap OGC request even though this > parameter is not mentioned or required in the WMS 1.1.1 OGC specification > for GetMap requests: > > http://www.opengeospatial.org/standards/wms > > It is strange that this is so since GetFeature and GetCoverage both require > the SERVICE paramter, but for whatever reason the GetMap spec doesn't. Kind > of an inconsistency in the OGC services, but MapServer needs to abide by it. > > This cropped up when a user contacted me that our WMS services were not > working in ArcGIS 9.2 after we upgraded MapServer from 4.9 to 5.2. After > discussion with ESRI, they pointed out that MapServer was throwing an error > about a missing SERVICE parameter because they do not include this parameter > in their GetMap requests. However, the SERVICE parameter should not be > required according to the spec. > > I modified our CGI to fill this parameter in by default if not provided as a > workaround, but a future release of MapServer should probably remove the > requirement for this parameter in GetMap requests. Or am I missing something > (always a possibility!)? Thanks! > Cheers, > > -- > John Maurer > Web/Database Applications Engineer > National Snow and Ice Data Center (NSIDC) > University of Colorado at Boulder > http://cires.colorado.edu/~maurerj > +1-303-586-1677 > ------------------------------------ > "Without geography, you're nowhere!" > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Mon Dec 22 15:15:53 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 22 Dec 2008 17:15:53 -0600 Subject: [mapserver-users] MapServer requires unnecessary SERVICE=WMSparameter in GetMap request In-Reply-To: <30fe546d0812221513i32dc690dn703d65111f59080a@mail.gmail.com> References: <495013DD.4020602@nsidc.org> <30fe546d0812221513i32dc690dn703d65111f59080a@mail.gmail.com> Message-ID: <494FCB49.5157.008F.0@dnr.state.mn.us> I thought 5.2.1 fixed this already? Steve >>> On 12/22/2008 at 5:13 PM, in message <30fe546d0812221513i32dc690dn703d65111f59080a at mail.gmail.com>, "Paul Ramsey" wrote: > Right you are, another hidden gem of the specification... I've > assigned a ticket to this. It seems pretty important to my mind, so if > others are busy, I'll fix it. > > http://trac.osgeo.org/mapserver/ticket/2839 > > P. > > On Mon, Dec 22, 2008 at 2:25 PM, John Maurer wrote: >> Dear MapServer users, >> I recently discovered that MapServer (we are using 5.2.0) requires a SERVICE >> parameter (i.e. SERVICE=WMS) in a GetMap OGC request even though this >> parameter is not mentioned or required in the WMS 1.1.1 OGC specification >> for GetMap requests: >> >> http://www.opengeospatial.org/standards/wms >> >> It is strange that this is so since GetFeature and GetCoverage both require >> the SERVICE paramter, but for whatever reason the GetMap spec doesn't. Kind >> of an inconsistency in the OGC services, but MapServer needs to abide by it. >> >> This cropped up when a user contacted me that our WMS services were not >> working in ArcGIS 9.2 after we upgraded MapServer from 4.9 to 5.2. After >> discussion with ESRI, they pointed out that MapServer was throwing an error >> about a missing SERVICE parameter because they do not include this parameter >> in their GetMap requests. However, the SERVICE parameter should not be >> required according to the spec. >> >> I modified our CGI to fill this parameter in by default if not provided as a >> workaround, but a future release of MapServer should probably remove the >> requirement for this parameter in GetMap requests. Or am I missing something >> (always a possibility!)? Thanks! >> Cheers, >> >> -- >> John Maurer >> Web/Database Applications Engineer >> National Snow and Ice Data Center (NSIDC) >> University of Colorado at Boulder >> http://cires.colorado.edu/~maurerj >> +1-303-586-1677 >> ------------------------------------ >> "Without geography, you're nowhere!" >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Mon Dec 22 15:23:12 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 22 Dec 2008 15:23:12 -0800 Subject: [mapserver-users] MapServer requires unnecessary SERVICE=WMSparameter in GetMap request In-Reply-To: <494FCB49.5157.008F.0@dnr.state.mn.us> References: <495013DD.4020602@nsidc.org> <30fe546d0812221513i32dc690dn703d65111f59080a@mail.gmail.com> <494FCB49.5157.008F.0@dnr.state.mn.us> Message-ID: <30fe546d0812221523v5d0e39b7r64b8e3d94d0716fb@mail.gmail.com> Arg, it was indeed. My cursory trac search didn't turn it up :( http://trac.osgeo.org/mapserver/ticket/2737 I'll close out that new ticket. P On Mon, Dec 22, 2008 at 3:15 PM, Steve Lime wrote: > I thought 5.2.1 fixed this already? > > Steve > >>>> On 12/22/2008 at 5:13 PM, in message > <30fe546d0812221513i32dc690dn703d65111f59080a at mail.gmail.com>, "Paul Ramsey" > wrote: >> Right you are, another hidden gem of the specification... I've >> assigned a ticket to this. It seems pretty important to my mind, so if >> others are busy, I'll fix it. >> >> http://trac.osgeo.org/mapserver/ticket/2839 >> >> P. >> >> On Mon, Dec 22, 2008 at 2:25 PM, John Maurer wrote: >>> Dear MapServer users, >>> I recently discovered that MapServer (we are using 5.2.0) requires a SERVICE >>> parameter (i.e. SERVICE=WMS) in a GetMap OGC request even though this >>> parameter is not mentioned or required in the WMS 1.1.1 OGC specification >>> for GetMap requests: >>> >>> http://www.opengeospatial.org/standards/wms >>> >>> It is strange that this is so since GetFeature and GetCoverage both require >>> the SERVICE paramter, but for whatever reason the GetMap spec doesn't. Kind >>> of an inconsistency in the OGC services, but MapServer needs to abide by it. >>> >>> This cropped up when a user contacted me that our WMS services were not >>> working in ArcGIS 9.2 after we upgraded MapServer from 4.9 to 5.2. After >>> discussion with ESRI, they pointed out that MapServer was throwing an error >>> about a missing SERVICE parameter because they do not include this parameter >>> in their GetMap requests. However, the SERVICE parameter should not be >>> required according to the spec. >>> >>> I modified our CGI to fill this parameter in by default if not provided as a >>> workaround, but a future release of MapServer should probably remove the >>> requirement for this parameter in GetMap requests. Or am I missing something >>> (always a possibility!)? Thanks! >>> Cheers, >>> >>> -- >>> John Maurer >>> Web/Database Applications Engineer >>> National Snow and Ice Data Center (NSIDC) >>> University of Colorado at Boulder >>> http://cires.colorado.edu/~maurerj >>> +1-303-586-1677 >>> ------------------------------------ >>> "Without geography, you're nowhere!" >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jose.maria.michia at gmail.com Mon Dec 22 17:04:14 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Mon, 22 Dec 2008 23:04:14 -0200 Subject: [mapserver-users] Clipping In-Reply-To: <442525.70271.qm@web88008.mail.re2.yahoo.com> References: <442525.70271.qm@web88008.mail.re2.yahoo.com> Message-ID: 2008/12/22 Joshua Hevenor : > Good morning list, > I'm looking for a function and/or method to clip a polygon. In general, I > need to limit a polygon to the map boundary for export (export as shapefile > from a web map)...so if I had a 20x20 square that was overlapping > the visible map by 10 units, the exported result would be a 10x20 > rectangle. PHP MapScript is my weapon of choice. I'd also welcome opinions > on the approach or suggestions for alternatives. > > Thanks for your assistance, > > Josh > > PS. Sorry for the re-post...forgot the subject I don't know how to make this using only PHP, but combining with postgis, you can clip geometries using something like: SELECT intersection(the_Geom, ) FROM WHERE the_Geom && ; Saludos Jos? Mar?a From Steve.Lime at dnr.state.mn.us Mon Dec 22 17:10:16 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 22 Dec 2008 19:10:16 -0600 Subject: [mapserver-users] Clipping In-Reply-To: References: <442525.70271.qm@web88008.mail.re2.yahoo.com> Message-ID: <494FE618.5157.008F.0@dnr.state.mn.us> You can also do intersections with the GEOS methods exposed in MapScript (all flavors) assuming you have GEOS support compiled in... Steve >>> On 12/22/2008 at 7:04 PM, in message , "Jos? Mar?a Michia" wrote: > 2008/12/22 Joshua Hevenor : >> Good morning list, >> I'm looking for a function and/or method to clip a polygon. In general, I >> need to limit a polygon to the map boundary for export (export as shapefile >> from a web map)...so if I had a 20x20 square that was overlapping >> the visible map by 10 units, the exported result would be a 10x20 >> rectangle. PHP MapScript is my weapon of choice. I'd also welcome opinions >> on the approach or suggestions for alternatives. >> >> Thanks for your assistance, >> >> Josh >> >> PS. Sorry for the re-post...forgot the subject > > I don't know how to make this using only PHP, but combining with > postgis, you can clip geometries using something like: > > SELECT intersection(the_Geom, ) FROM
WHERE the_Geom && ; > > Saludos > Jos? Mar?a > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jose.maria.michia at gmail.com Mon Dec 22 17:36:20 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Mon, 22 Dec 2008 23:36:20 -0200 Subject: [mapserver-users] Buffer In-Reply-To: References: Message-ID: 2008/12/22 Jeppe Lund Andersen : > Hello all > > I need a little help here > If I run the following > > $NewShapeFromWkt = ms_shapeObjFromWkt( "MULTIPOLYGON(((566725.7595 > 6131923.3645, 566755.923 6131916.786, 566774.0885 6131912.417, 566794.538 > 6131907.418, 566798.6035 6131901.309, 566788.164 6131836.8625, 566779.4235 > 6131830.6935, 566724.0525 6131841.7915, 566723.665 6131863.507, 566714.6605 > 6131868.216, 566718.157 6131885.2325, 566725.7595 6131923.3645)), > ((566655.975 6131935.652, 566661.6235 6131937.282, 566696.924 6131929.5735, > 566694.755 6131919.4455, 566702.3 6131917.506, 566704.304 6131927.964, > 566725.6935 6131923.2945, 566718.091 6131885.1625, 566652.446 6131899.0795, > 566655.975 6131935.652)))" ); > > $new_shape = $NewShapeFromWkt->Buffer(-0.1); > echo($new_shape->toWkt()); > > I get this shape, and it remove one of the shapes in the multipolygon > can any one try and see if they get the same error ? > > POLYGON ((566725.8376634185000000 6131923.2451023338000000, > 566755.9006510233700000 6131916.6885235561000000, 566774.0649345762800000 > 6131912.3198161256000000, 566794.4763613325800000 6131907.3301233519000000, > 566798.4985129962400000 6131901.2862604791000000, 566788.0720058706400000 > 6131836.9199698064000000, 566779.4009780341300000 6131830.8000029027000000, > 566724.1510484541100000 6131841.8737367792000000, 566723.7649840826600000 > 6131863.5087841563000000, 566723.7113416689700000 6131863.5956140496000000, > 566714.7736214522700000 6131868.2696908442000000, 566718.2549535385300000 > 6131885.2123727966000000, 566718.2550698703900000 6131885.2129474934000000, > 566725.8376634185000000 6131923.2451023338000000)) > I execute your code, with its data, in my system, with the following results: One of the polygons has been eliminated, just like as in their case. In addition, my result, it has more vertices. In the attached image you can see the differences (or at least part of them). I don't know which is the reason for the difference in resolution (number of vertices). My result: POLYGON ((566725.8376634184969589 6131923.2451023338362575, 566755.9006510233739391 6131916.6885235561057925, 566774.0649345762794837 6131912.3198161255568266, 566794.4763613325776532 6131907.3301233518868685, 566798.4985129962442443 6131901.2862604791298509, 566788.0720058706356212 6131836.9199698064476252, 566779.4009780341293663 6131830.8000029027462006, 566724.1510484541067854 6131841.8737367792055011, 566723.7649840826634318 6131863.5087841562926769, 566723.7647452256642282 6131863.5141337206587195, 566723.7642203503055498 6131863.5194628285244107, 566723.7634109617210925 6131863.5247561996802688, 566723.7623193806502968 6131863.5299986554309726, 566723.7609487375011668 6131863.5351751623675227, 566723.7593029623385519 6131863.5402708780020475, 566723.7573867744067684 6131863.5452711889520288, 566723.7552056685090065 6131863.5501617584377527, 566723.7527658988256007 6131863.5549285616725683, 566723.7500744614517316 6131863.5595579305663705, 566723.7471390739083290 6131863.5640365900471807, 566723.7439681534888223 6131863.5683516971766949, 566723.7405707928119227 6131863.5724908793345094, 566723.7369567337445915 6131863.5764422677457333, 566723.7331363394623622 6131863.5801945300772786, 566723.7291205649962649 6131863.5837369086220860, 566723.7249209255678579 6131863.5870592454448342, 566723.7205494635272771 6131863.5901520121842623, 566723.7160187140107155 6131863.5930063417181373, 566723.7113416689680889 6131863.5956140495836735, 566714.7736214522738010 6131868.2696908442303538, 566718.2549535385333002 6131885.2123727966099977, 566718.2550698703853413 6131885.2129474934190512, 566725.8376634184969589 6131923.2451023338362575)) Saludos Jos? Mar?a From vtammineni at roulacglobal.com Mon Dec 22 22:31:45 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 23 Dec 2008 12:01:45 +0530 Subject: [mapserver-users] How to Create Legend for Single Layer Message-ID: <000601c964c8$22224d80$6666e880$@com> Dear All, I want to create Legend for Single layer. I have 5 layers on my Map. But I need to generate legend for single layer. Is it possible to generate Legend for single layer. If some one done the same task. Please let me know. I am waiting for your great response. Thanks, Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at gmail.com Mon Dec 22 22:39:56 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Tue, 23 Dec 2008 00:39:56 -0600 Subject: [mapserver-users] Update: MapServer Documentation Effort In-Reply-To: References: Message-ID: All, I wanted to let you know that we are on track to migrate the current MapServer website from its host at UMN to a server at TelaScience (provided graciously through TelaScience's relationship with OSGeo -- the same machine that hosts http://www.gdal.org and http://grass.osgeo.org ) next week (Dec 30th). On the 30th, the alias for mapserver.gis.umn.edu will be changed to point at the alias for http://mapserver.osgeo.org, which will be the new permanent home for the site. A preview of the site is already at http://mapserver.osgeo.org , and we'll be continuing to make additions as we build up to the 30th switchover. Some of the improvements and additions include: - A PDF containing all of the docs (nearly 600 pages worth!) http://mapserver.osgeo.org/MapServer.pdf - Updated glossary http://mapserver.osgeo.org/glossary.html - Significant work on the "New Users" doc (now called "An Introduction to MapServer") by Jeff McKenna http://mapserver.osgeo.org/introduction.html - A lot more internal referencing. Links and notes and annotations have been placed throughout the documentation (and more are being continually added) that provide more context, more depth, and more related content. - Better styling, faster static website, and the promise of more up-to- date docs. The new site works much better with our documentation writing workflow -- making it easier for people who write docs to write them. This will ultimately mean better docs in the long run. - (Hopefully) better organization Thanks, Howard From vtammineni at roulacglobal.com Tue Dec 23 00:42:31 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 23 Dec 2008 14:12:31 +0530 Subject: [mapserver-users] How to Create Legend for Single Layer In-Reply-To: <4950A190.4080905@gslab.com> References: <000601c964c8$22224d80$6666e880$@com> <4950A190.4080905@gslab.com> Message-ID: <001a01c964da$67358a60$35a09f20$@com> Hi, Thanks for your great response.I am not using CGI.I am using asp C#.net.I have created a method which generates legend.But it is doing for all the layers.And my layer does the expression property.based on the expression I m displaying polygon. Below code is for trying to get legend for single layer.But it is not working. layer = MapFunction.Map.getLayerByName("TestLayer"); classObj classLegend = new classObj(layer); imageObj imagelegend = MapFunction.Map.drawLegend(); string strFile ="C:\\temp\\test.png"; imagelegend.save(strFile,MapFunction.Map); Thanks Venkat. -----Original Message----- From: Subha Ramakrishnan [mailto:subha at gslab.com] Sent: Tuesday, December 23, 2008 2:00 PM To: Venkat Rao Tammineni Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to Create Legend for Single Layer Hi, You can do so using mode=legend request. Eg: "http://localhost/cgi-bin/mapserv?mode=legend&map=mapfile&layer=layer_name" This will give the legend only for the layer that you pass in the url. In addition to this, is there a facility to generate legend for a layer with a filter, where the filter takes in parameters passed from URL to generate polygons?? Thanks & regards, Subha Venkat Rao Tammineni wrote: > > Dear All, > > > > I want to create Legend for Single layer. I have 5 layers on my Map. > But I need to generate legend for single layer. Is it possible to > generate Legend for single layer. If some one done the same task. > Please let me know. > > > > I am waiting for your great response. > > > > Thanks, > > Venkat. > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bartvde at osgis.nl Tue Dec 23 00:41:23 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 23 Dec 2008 09:41:23 +0100 (CET) Subject: [mapserver-users] How to Create Legend for Single Layer In-Reply-To: <001a01c964da$67358a60$35a09f20$@com> References: <000601c964c8$22224d80$6666e880$@com> <4950A190.4080905@gslab.com> <001a01c964da$67358a60$35a09f20$@com> Message-ID: <13319.145.50.39.11.1230021683.squirrel@webmail.hostingdiscounter.nl> Before you call drawLegend, change the visibility of all other layers to false (status == MS_OFF), the legend only draws for the visible layers. When you're done, restore the visibility. Best regards, Bart > Hi, > > Thanks for your great response.I am not using CGI.I am using asp > C#.net.I have created a method which generates legend.But it is doing for > all the layers.And my layer does the expression property.based on the > expression I m displaying polygon. > > Below code is for trying to get legend for single layer.But it is not > working. > > layer = MapFunction.Map.getLayerByName("TestLayer"); > classObj classLegend = new classObj(layer); > imageObj imagelegend = MapFunction.Map.drawLegend(); > string strFile ="C:\\temp\\test.png"; > imagelegend.save(strFile,MapFunction.Map); > > > Thanks > Venkat. > > > -----Original Message----- > From: Subha Ramakrishnan [mailto:subha at gslab.com] > Sent: Tuesday, December 23, 2008 2:00 PM > To: Venkat Rao Tammineni > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to Create Legend for Single Layer > > Hi, > > You can do so using mode=legend request. Eg: > "http://localhost/cgi-bin/mapserv?mode=legend&map=mapfile&layer=layer_name" > This will give the legend only for the layer that you pass in the url. > > In addition to this, is there a facility to generate legend for a layer > with a filter, where the filter takes in parameters passed from URL to > generate polygons?? > > Thanks & regards, > Subha > > Venkat Rao Tammineni wrote: >> >> Dear All, >> >> >> >> I want to create Legend for Single layer. I have 5 layers on my Map. >> But I need to generate legend for single layer. Is it possible to >> generate Legend for single layer. If some one done the same task. >> Please let me know. >> >> >> >> I am waiting for your great response. >> >> >> >> Thanks, >> >> Venkat. >> >> >> -- >> This message has been scanned for viruses and >> dangerous content by *MailScanner* , and >> is >> believed to be clean. >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From subha at gslab.com Tue Dec 23 00:30:08 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Tue, 23 Dec 2008 14:00:08 +0530 Subject: [mapserver-users] How to Create Legend for Single Layer In-Reply-To: <000601c964c8$22224d80$6666e880$@com> References: <000601c964c8$22224d80$6666e880$@com> Message-ID: <4950A190.4080905@gslab.com> Hi, You can do so using mode=legend request. Eg: "http://localhost/cgi-bin/mapserv?mode=legend&map=mapfile&layer=layer_name" This will give the legend only for the layer that you pass in the url. In addition to this, is there a facility to generate legend for a layer with a filter, where the filter takes in parameters passed from URL to generate polygons?? Thanks & regards, Subha Venkat Rao Tammineni wrote: > > Dear All, > > > > I want to create Legend for Single layer. I have 5 layers on my Map. > But I need to generate legend for single layer. Is it possible to > generate Legend for single layer. If some one done the same task. > Please let me know. > > > > I am waiting for your great response. > > > > Thanks, > > Venkat. > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From j.l.h.hartmann at uva.nl Tue Dec 23 01:43:27 2008 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 23 Dec 2008 10:43:27 +0100 Subject: [mapserver-users] MapServer requires unnecessary SERVICE=WMSparameter in GetMap request In-Reply-To: <30fe546d0812221523v5d0e39b7r64b8e3d94d0716fb@mail.gmail.com> References: <495013DD.4020602@nsidc.org> <30fe546d0812221513i32dc690dn703d65111f59080a@mail.gmail.com> <494FCB49.5157.008F.0@dnr.state.mn.us> <30fe546d0812221523v5d0e39b7r64b8e3d94d0716fb@mail.gmail.com> Message-ID: <4950B2BF.20408@uva.nl> Meanwhile, the easiest solution for those using 5.0-5.2.0 is adding "service=wms" to the onlineresource string in the metadata section of the mapfile, as documented in http://trac.osgeo.org/mapserver/ticket/1262 Jan Paul Ramsey wrote: > Arg, it was indeed. My cursory trac search didn't turn it up :( > > http://trac.osgeo.org/mapserver/ticket/2737 > > I'll close out that new ticket. > > P > > On Mon, Dec 22, 2008 at 3:15 PM, Steve Lime wrote: > >> I thought 5.2.1 fixed this already? >> >> Steve >> >> >>>>> On 12/22/2008 at 5:13 PM, in message >>>>> >> <30fe546d0812221513i32dc690dn703d65111f59080a at mail.gmail.com>, "Paul Ramsey" >> wrote: >> >>> Right you are, another hidden gem of the specification... I've >>> assigned a ticket to this. It seems pretty important to my mind, so if >>> others are busy, I'll fix it. >>> >>> http://trac.osgeo.org/mapserver/ticket/2839 >>> >>> P. >>> >>> On Mon, Dec 22, 2008 at 2:25 PM, John Maurer wrote: >>> >>>> Dear MapServer users, >>>> I recently discovered that MapServer (we are using 5.2.0) requires a SERVICE >>>> parameter (i.e. SERVICE=WMS) in a GetMap OGC request even though this >>>> parameter is not mentioned or required in the WMS 1.1.1 OGC specification >>>> for GetMap requests: >>>> >>>> http://www.opengeospatial.org/standards/wms >>>> >>>> It is strange that this is so since GetFeature and GetCoverage both require >>>> the SERVICE paramter, but for whatever reason the GetMap spec doesn't. Kind >>>> of an inconsistency in the OGC services, but MapServer needs to abide by it. >>>> >>>> This cropped up when a user contacted me that our WMS services were not >>>> working in ArcGIS 9.2 after we upgraded MapServer from 4.9 to 5.2. After >>>> discussion with ESRI, they pointed out that MapServer was throwing an error >>>> about a missing SERVICE parameter because they do not include this parameter >>>> in their GetMap requests. However, the SERVICE parameter should not be >>>> required according to the spec. >>>> >>>> I modified our CGI to fill this parameter in by default if not provided as a >>>> workaround, but a future release of MapServer should probably remove the >>>> requirement for this parameter in GetMap requests. Or am I missing something >>>> (always a possibility!)? Thanks! >>>> Cheers, >>>> >>>> -- >>>> John Maurer >>>> Web/Database Applications Engineer >>>> National Snow and Ice Data Center (NSIDC) >>>> University of Colorado at Boulder >>>> http://cires.colorado.edu/~maurerj >>>> +1-303-586-1677 >>>> ------------------------------------ >>>> "Without geography, you're nowhere!" >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Tue Dec 23 02:14:39 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 23 Dec 2008 15:44:39 +0530 Subject: [mapserver-users] How to Create Legend for Single Layer In-Reply-To: <13319.145.50.39.11.1230021683.squirrel@webmail.hostingdiscounter.nl> References: <000601c964c8$22224d80$6666e880$@com> <4950A190.4080905@gslab.com> <001a01c964da$67358a60$35a09f20$@com> <13319.145.50.39.11.1230021683.squirrel@webmail.hostingdiscounter.nl> Message-ID: <002401c964e7$4628c5f0$d27a51d0$@com> Dear Sir, Thanks for your great response.I have done. It is working fine. Thanks again, Venkat. -----Original Message----- From: bartvde at osgis.nl [mailto:bartvde at osgis.nl] Sent: Tuesday, December 23, 2008 2:11 PM To: Venkat Rao Tammineni Cc: 'Subha Ramakrishnan'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] How to Create Legend for Single Layer Before you call drawLegend, change the visibility of all other layers to false (status == MS_OFF), the legend only draws for the visible layers. When you're done, restore the visibility. Best regards, Bart > Hi, > > Thanks for your great response.I am not using CGI.I am using asp > C#.net.I have created a method which generates legend.But it is doing for > all the layers.And my layer does the expression property.based on the > expression I m displaying polygon. > > Below code is for trying to get legend for single layer.But it is not > working. > > layer = MapFunction.Map.getLayerByName("TestLayer"); > classObj classLegend = new classObj(layer); > imageObj imagelegend = MapFunction.Map.drawLegend(); > string strFile ="C:\\temp\\test.png"; > imagelegend.save(strFile,MapFunction.Map); > > > Thanks > Venkat. > > > -----Original Message----- > From: Subha Ramakrishnan [mailto:subha at gslab.com] > Sent: Tuesday, December 23, 2008 2:00 PM > To: Venkat Rao Tammineni > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to Create Legend for Single Layer > > Hi, > > You can do so using mode=legend request. Eg: > "http://localhost/cgi-bin/mapserv?mode=legend&map=mapfile&layer=layer_name" > This will give the legend only for the layer that you pass in the url. > > In addition to this, is there a facility to generate legend for a layer > with a filter, where the filter takes in parameters passed from URL to > generate polygons?? > > Thanks & regards, > Subha > > Venkat Rao Tammineni wrote: >> >> Dear All, >> >> >> >> I want to create Legend for Single layer. I have 5 layers on my Map. >> But I need to generate legend for single layer. Is it possible to >> generate Legend for single layer. If some one done the same task. >> Please let me know. >> >> >> >> I am waiting for your great response. >> >> >> >> Thanks, >> >> Venkat. >> >> >> -- >> This message has been scanned for viruses and >> dangerous content by *MailScanner* , and >> is >> believed to be clean. >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From JXA at cowi.dk Tue Dec 23 02:46:59 2008 From: JXA at cowi.dk (Jeppe Lund Andersen) Date: Tue, 23 Dec 2008 11:46:59 +0100 Subject: [mapserver-users] Buffer In-Reply-To: References: Message-ID: Hello Thank you for running the code Okay there is an error in the buffer function. The reason why I have less vertices/segments is because I have changed the code to take a parameter to tell how many vertices/segments. Jeppe > -----Original Message----- > From: Jos? Mar?a Michia [mailto:jose.maria.michia at gmail.com] > Sent: Tuesday, December 23, 2008 2:36 AM > To: Jeppe Lund Andersen > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Buffer > > 2008/12/22 Jeppe Lund Andersen : > > Hello all > > > > I need a little help here > > If I run the following > > > > $NewShapeFromWkt = ms_shapeObjFromWkt( "MULTIPOLYGON(((566725.7595 > > 6131923.3645, 566755.923 6131916.786, 566774.0885 6131912.417, > > 566794.538 6131907.418, 566798.6035 6131901.309, 566788.164 > > 6131836.8625, 566779.4235 6131830.6935, 566724.0525 6131841.7915, > > 566723.665 6131863.507, 566714.6605 6131868.216, 566718.157 > > 6131885.2325, 566725.7595 6131923.3645)), > > ((566655.975 6131935.652, 566661.6235 6131937.282, 566696.924 > > 6131929.5735, > > 566694.755 6131919.4455, 566702.3 6131917.506, 566704.304 > 6131927.964, > > 566725.6935 6131923.2945, 566718.091 6131885.1625, 566652.446 > > 6131899.0795, > > 566655.975 6131935.652)))" ); > > > > $new_shape = $NewShapeFromWkt->Buffer(-0.1); > > echo($new_shape->toWkt()); > > > > I get this shape, and it remove one of the shapes in the > multipolygon > > can any one try and see if they get the same error ? > > > > POLYGON ((566725.8376634185000000 6131923.2451023338000000, > > 566755.9006510233700000 6131916.6885235561000000, > > 566774.0649345762800000 6131912.3198161256000000, > > 566794.4763613325800000 6131907.3301233519000000, > > 566798.4985129962400000 6131901.2862604791000000, > > 566788.0720058706400000 6131836.9199698064000000, > > 566779.4009780341300000 6131830.8000029027000000, > > 566724.1510484541100000 6131841.8737367792000000, > > 566723.7649840826600000 6131863.5087841563000000, > > 566723.7113416689700000 6131863.5956140496000000, > > 566714.7736214522700000 6131868.2696908442000000, > > 566718.2549535385300000 6131885.2123727966000000, > > 566718.2550698703900000 6131885.2129474934000000, > > 566725.8376634185000000 6131923.2451023338000000)) > > > > I execute your code, with its data, in my system, with the following > results: One of the polygons has been eliminated, just like > as in their case. In addition, my result, it has more > vertices. In the attached image you can see the differences > (or at least part of them). > I don't know which is the reason for the difference in > resolution (number of vertices). > > My result: > > POLYGON ((566725.8376634184969589 6131923.2451023338362575, > 566755.9006510233739391 6131916.6885235561057925, > 566774.0649345762794837 6131912.3198161255568266, > 566794.4763613325776532 6131907.3301233518868685, > 566798.4985129962442443 6131901.2862604791298509, > 566788.0720058706356212 6131836.9199698064476252, > 566779.4009780341293663 6131830.8000029027462006, > 566724.1510484541067854 6131841.8737367792055011, > 566723.7649840826634318 6131863.5087841562926769, > 566723.7647452256642282 6131863.5141337206587195, > 566723.7642203503055498 6131863.5194628285244107, > 566723.7634109617210925 6131863.5247561996802688, > 566723.7623193806502968 6131863.5299986554309726, > 566723.7609487375011668 6131863.5351751623675227, > 566723.7593029623385519 6131863.5402708780020475, > 566723.7573867744067684 6131863.5452711889520288, > 566723.7552056685090065 6131863.5501617584377527, > 566723.7527658988256007 6131863.5549285616725683, > 566723.7500744614517316 6131863.5595579305663705, > 566723.7471390739083290 6131863.5640365900471807, > 566723.7439681534888223 6131863.5683516971766949, > 566723.7405707928119227 6131863.5724908793345094, > 566723.7369567337445915 6131863.5764422677457333, > 566723.7331363394623622 6131863.5801945300772786, > 566723.7291205649962649 6131863.5837369086220860, > 566723.7249209255678579 6131863.5870592454448342, > 566723.7205494635272771 6131863.5901520121842623, > 566723.7160187140107155 6131863.5930063417181373, > 566723.7113416689680889 6131863.5956140495836735, > 566714.7736214522738010 6131868.2696908442303538, > 566718.2549535385333002 6131885.2123727966099977, > 566718.2550698703853413 6131885.2129474934190512, > 566725.8376634184969589 6131923.2451023338362575)) > > Saludos > Jos? Mar?a > > From Steve.Lime at dnr.state.mn.us Tue Dec 23 06:13:41 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 23 Dec 2008 08:13:41 -0600 Subject: [mapserver-users] Buffer In-Reply-To: References: Message-ID: <49509DB5.5157.008F.0@dnr.state.mn.us> It may not be an error in the buffer function. It could be an error in MapServer's GEOS support, specifically in the code that does the translation between GEOS geometries and MapServer shapeObj's. Can you try converting your WKT polygon to a shape and then back to WKT? They should match, but if not that could be the source of the error. Also, what version are we taking about (GEOS and MapServer)? Steve >>> On 12/23/2008 at 4:46 AM, in message , "Jeppe Lund Andersen" wrote: > Hello > > Thank you for running the code > > Okay there is an error in the buffer function. > The reason why I have less vertices/segments is because I have changed the > code to take a parameter to tell how many vertices/segments. > > Jeppe > > >> -----Original Message----- >> From: Jos? Mar?a Michia [mailto:jose.maria.michia at gmail.com] >> Sent: Tuesday, December 23, 2008 2:36 AM >> To: Jeppe Lund Andersen >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Buffer >> >> 2008/12/22 Jeppe Lund Andersen : >> > Hello all >> > >> > I need a little help here >> > If I run the following >> > >> > $NewShapeFromWkt = ms_shapeObjFromWkt( "MULTIPOLYGON(((566725.7595 >> > 6131923.3645, 566755.923 6131916.786, 566774.0885 6131912.417, >> > 566794.538 6131907.418, 566798.6035 6131901.309, 566788.164 >> > 6131836.8625, 566779.4235 6131830.6935, 566724.0525 6131841.7915, >> > 566723.665 6131863.507, 566714.6605 6131868.216, 566718.157 >> > 6131885.2325, 566725.7595 6131923.3645)), >> > ((566655.975 6131935.652, 566661.6235 6131937.282, 566696.924 >> > 6131929.5735, >> > 566694.755 6131919.4455, 566702.3 6131917.506, 566704.304 >> 6131927.964, >> > 566725.6935 6131923.2945, 566718.091 6131885.1625, 566652.446 >> > 6131899.0795, >> > 566655.975 6131935.652)))" ); >> > >> > $new_shape = $NewShapeFromWkt->Buffer(-0.1); >> > echo($new_shape->toWkt()); >> > >> > I get this shape, and it remove one of the shapes in the >> multipolygon >> > can any one try and see if they get the same error ? >> > >> > POLYGON ((566725.8376634185000000 6131923.2451023338000000, >> > 566755.9006510233700000 6131916.6885235561000000, >> > 566774.0649345762800000 6131912.3198161256000000, >> > 566794.4763613325800000 6131907.3301233519000000, >> > 566798.4985129962400000 6131901.2862604791000000, >> > 566788.0720058706400000 6131836.9199698064000000, >> > 566779.4009780341300000 6131830.8000029027000000, >> > 566724.1510484541100000 6131841.8737367792000000, >> > 566723.7649840826600000 6131863.5087841563000000, >> > 566723.7113416689700000 6131863.5956140496000000, >> > 566714.7736214522700000 6131868.2696908442000000, >> > 566718.2549535385300000 6131885.2123727966000000, >> > 566718.2550698703900000 6131885.2129474934000000, >> > 566725.8376634185000000 6131923.2451023338000000)) >> > >> >> I execute your code, with its data, in my system, with the following >> results: One of the polygons has been eliminated, just like >> as in their case. In addition, my result, it has more >> vertices. In the attached image you can see the differences >> (or at least part of them). >> I don't know which is the reason for the difference in >> resolution (number of vertices). >> >> My result: >> >> POLYGON ((566725.8376634184969589 6131923.2451023338362575, >> 566755.9006510233739391 6131916.6885235561057925, >> 566774.0649345762794837 6131912.3198161255568266, >> 566794.4763613325776532 6131907.3301233518868685, >> 566798.4985129962442443 6131901.2862604791298509, >> 566788.0720058706356212 6131836.9199698064476252, >> 566779.4009780341293663 6131830.8000029027462006, >> 566724.1510484541067854 6131841.8737367792055011, >> 566723.7649840826634318 6131863.5087841562926769, >> 566723.7647452256642282 6131863.5141337206587195, >> 566723.7642203503055498 6131863.5194628285244107, >> 566723.7634109617210925 6131863.5247561996802688, >> 566723.7623193806502968 6131863.5299986554309726, >> 566723.7609487375011668 6131863.5351751623675227, >> 566723.7593029623385519 6131863.5402708780020475, >> 566723.7573867744067684 6131863.5452711889520288, >> 566723.7552056685090065 6131863.5501617584377527, >> 566723.7527658988256007 6131863.5549285616725683, >> 566723.7500744614517316 6131863.5595579305663705, >> 566723.7471390739083290 6131863.5640365900471807, >> 566723.7439681534888223 6131863.5683516971766949, >> 566723.7405707928119227 6131863.5724908793345094, >> 566723.7369567337445915 6131863.5764422677457333, >> 566723.7331363394623622 6131863.5801945300772786, >> 566723.7291205649962649 6131863.5837369086220860, >> 566723.7249209255678579 6131863.5870592454448342, >> 566723.7205494635272771 6131863.5901520121842623, >> 566723.7160187140107155 6131863.5930063417181373, >> 566723.7113416689680889 6131863.5956140495836735, >> 566714.7736214522738010 6131868.2696908442303538, >> 566718.2549535385333002 6131885.2123727966099977, >> 566718.2550698703853413 6131885.2129474934190512, >> 566725.8376634184969589 6131923.2451023338362575)) >> >> Saludos >> Jos? Mar?a >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Tue Dec 23 06:46:06 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 23 Dec 2008 08:46:06 -0600 Subject: [mapserver-users] Update: MapServer Documentation Effort In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA07D@s-sp22.pca.state.mn.us> Wow, the much neglected 'New Users' page looks great Jeff and Howard. Let me know if you want me to contribute. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Howard Butler Sent: Tuesday, December 23, 2008 12:40 AM To: mapserver-users at lists.osgeo.org Cc: mapserver-dev Mailing List Subject: [mapserver-users] Update: MapServer Documentation Effort All, I wanted to let you know that we are on track to migrate the current MapServer website from its host at UMN to a server at TelaScience (provided graciously through TelaScience's relationship with OSGeo -- the same machine that hosts http://www.gdal.org and http://grass.osgeo.org ) next week (Dec 30th). On the 30th, the alias for mapserver.gis.umn.edu will be changed to point at the alias for http://mapserver.osgeo.org, which will be the new permanent home for the site. A preview of the site is already at http://mapserver.osgeo.org , and we'll be continuing to make additions as we build up to the 30th switchover. Some of the improvements and additions include: - A PDF containing all of the docs (nearly 600 pages worth!) http://mapserver.osgeo.org/MapServer.pdf - Updated glossary http://mapserver.osgeo.org/glossary.html - Significant work on the "New Users" doc (now called "An Introduction to MapServer") by Jeff McKenna http://mapserver.osgeo.org/introduction.html - A lot more internal referencing. Links and notes and annotations have been placed throughout the documentation (and more are being continually added) that provide more context, more depth, and more related content. - Better styling, faster static website, and the promise of more up-to- date docs. The new site works much better with our documentation writing workflow -- making it easier for people who write docs to write them. This will ultimately mean better docs in the long run. - (Hopefully) better organization Thanks, Howard _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From JXA at cowi.dk Tue Dec 23 06:48:01 2008 From: JXA at cowi.dk (Jeppe Lund Andersen) Date: Tue, 23 Dec 2008 15:48:01 +0100 Subject: [mapserver-users] Buffer In-Reply-To: <49509DB5.5157.008F.0@dnr.state.mn.us> References: <49509DB5.5157.008F.0@dnr.state.mn.us> Message-ID: Iam using mapserver 5.2 with 3.0.0 Geos if I do this $NewShapeFromWkt = ms_shapeObjFromWkt( "MULTIPOLYGON(((566725.7595 6131923.3645, 566755.923 6131916.786, 566774.0885 6131912.417, 566794.538 6131907.418, 566798.6035 6131901.309, 566788.164 6131836.8625, 566779.4235 6131830.6935, 566724.0525 6131841.7915, 566723.665 6131863.507, 566714.6605 6131868.216, 566718.157 6131885.2325, 566725.7595 6131923.3645)), ((566655.975 6131935.652, 566661.6235 6131937.282, 566696.924 6131929.5735, 566694.755 6131919.4455, 566702.3 6131917.506, 566704.304 6131927.964, 566725.6935 6131923.2945, 566718.091 6131885.1625, 566652.446 6131899.0795, 566655.975 6131935.652)))" ); echo($NewShapeFromWkt->toWkt()); I get the WKT just with more digits so it seems to be GEOS that has an error jeppe > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: Tuesday, December 23, 2008 3:14 PM > To: Jeppe Lund Andersen; jose.maria.michia at gmail.com > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Buffer > > It may not be an error in the buffer function. It could be an > error in MapServer's GEOS support, specifically in the code > that does the translation between GEOS geometries and > MapServer shapeObj's. > > Can you try converting your WKT polygon to a shape and then > back to WKT? They should match, but if not that could be the > source of the error. Also, what version are we taking about > (GEOS and MapServer)? > > Steve > > >>> On 12/23/2008 at 4:46 AM, in message > , > "Jeppe Lund Andersen" wrote: > > Hello > > > > Thank you for running the code > > > > Okay there is an error in the buffer function. > > The reason why I have less vertices/segments is because I have > changed the > > code to take a parameter to tell how many vertices/segments. > > > > Jeppe > > > > > >> -----Original Message----- > >> From: Jos? Mar?a Michia [mailto:jose.maria.michia at gmail.com] > >> Sent: Tuesday, December 23, 2008 2:36 AM > >> To: Jeppe Lund Andersen > >> Cc: mapserver-users at lists.osgeo.org > >> Subject: Re: [mapserver-users] Buffer > >> > >> 2008/12/22 Jeppe Lund Andersen : > >> > Hello all > >> > > >> > I need a little help here > >> > If I run the following > >> > > >> > $NewShapeFromWkt = ms_shapeObjFromWkt( > "MULTIPOLYGON(((566725.7595 > > >> > 6131923.3645, 566755.923 6131916.786, 566774.0885 6131912.417, > >> > 566794.538 6131907.418, 566798.6035 6131901.309, 566788.164 > >> > 6131836.8625, 566779.4235 6131830.6935, 566724.0525 6131841.7915, > > >> > 566723.665 6131863.507, 566714.6605 6131868.216, 566718.157 > >> > 6131885.2325, 566725.7595 6131923.3645)), > >> > ((566655.975 6131935.652, 566661.6235 6131937.282, 566696.924 > >> > 6131929.5735, > >> > 566694.755 6131919.4455, 566702.3 6131917.506, 566704.304 > >> 6131927.964, > >> > 566725.6935 6131923.2945, 566718.091 6131885.1625, 566652.446 > >> > 6131899.0795, > >> > 566655.975 6131935.652)))" ); > >> > > >> > $new_shape = $NewShapeFromWkt->Buffer(-0.1); > >> > echo($new_shape->toWkt()); > >> > > >> > I get this shape, and it remove one of the shapes in the > >> multipolygon > >> > can any one try and see if they get the same error ? > >> > > >> > POLYGON ((566725.8376634185000000 6131923.2451023338000000, > >> > 566755.9006510233700000 6131916.6885235561000000, > >> > 566774.0649345762800000 6131912.3198161256000000, > >> > 566794.4763613325800000 6131907.3301233519000000, > >> > 566798.4985129962400000 6131901.2862604791000000, > >> > 566788.0720058706400000 6131836.9199698064000000, > >> > 566779.4009780341300000 6131830.8000029027000000, > >> > 566724.1510484541100000 6131841.8737367792000000, > >> > 566723.7649840826600000 6131863.5087841563000000, > >> > 566723.7113416689700000 6131863.5956140496000000, > >> > 566714.7736214522700000 6131868.2696908442000000, > >> > 566718.2549535385300000 6131885.2123727966000000, > >> > 566718.2550698703900000 6131885.2129474934000000, > >> > 566725.8376634185000000 6131923.2451023338000000)) > >> > > >> > >> I execute your code, with its data, in my system, with the > following > >> results: One of the polygons has been eliminated, just like as in > >> their case. In addition, my result, it has more vertices. In the > >> attached image you can see the differences (or at least part of > >> them). > >> I don't know which is the reason for the difference in resolution > >> (number of vertices). > >> > >> My result: > >> > >> POLYGON ((566725.8376634184969589 6131923.2451023338362575, > >> 566755.9006510233739391 6131916.6885235561057925, > >> 566774.0649345762794837 6131912.3198161255568266, > >> 566794.4763613325776532 6131907.3301233518868685, > >> 566798.4985129962442443 6131901.2862604791298509, > >> 566788.0720058706356212 6131836.9199698064476252, > >> 566779.4009780341293663 6131830.8000029027462006, > >> 566724.1510484541067854 6131841.8737367792055011, > >> 566723.7649840826634318 6131863.5087841562926769, > >> 566723.7647452256642282 6131863.5141337206587195, > >> 566723.7642203503055498 6131863.5194628285244107, > >> 566723.7634109617210925 6131863.5247561996802688, > >> 566723.7623193806502968 6131863.5299986554309726, > >> 566723.7609487375011668 6131863.5351751623675227, > >> 566723.7593029623385519 6131863.5402708780020475, > >> 566723.7573867744067684 6131863.5452711889520288, > >> 566723.7552056685090065 6131863.5501617584377527, > >> 566723.7527658988256007 6131863.5549285616725683, > >> 566723.7500744614517316 6131863.5595579305663705, > >> 566723.7471390739083290 6131863.5640365900471807, > >> 566723.7439681534888223 6131863.5683516971766949, > >> 566723.7405707928119227 6131863.5724908793345094, > >> 566723.7369567337445915 6131863.5764422677457333, > >> 566723.7331363394623622 6131863.5801945300772786, > >> 566723.7291205649962649 6131863.5837369086220860, > >> 566723.7249209255678579 6131863.5870592454448342, > >> 566723.7205494635272771 6131863.5901520121842623, > >> 566723.7160187140107155 6131863.5930063417181373, > >> 566723.7113416689680889 6131863.5956140495836735, > >> 566714.7736214522738010 6131868.2696908442303538, > >> 566718.2549535385333002 6131885.2123727966099977, > >> 566718.2550698703853413 6131885.2129474934190512, > >> 566725.8376634184969589 6131923.2451023338362575)) > >> > >> Saludos > >> Jos? Mar?a > >> > >> > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From hobu.inc at gmail.com Tue Dec 23 07:27:13 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Tue, 23 Dec 2008 09:27:13 -0600 Subject: [mapserver-users] Update: MapServer Documentation Effort In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA07D@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA07D@s-sp22.pca.state.mn.us> Message-ID: <17F8A296-6CAA-4582-8BB9-F82D96BFBA67@gmail.com> On Dec 23, 2008, at 8:46 AM, Fawcett, David wrote: > > Let me know if you want me to contribute. Any and all are welcome to contribute :) That particular doc's source code is http://svn.osgeo.org/mapserver/trunk/docs/introduction.txt Start by filing tickets in Trac under the Documentation component and adding your changes to them as patches. Howard From person at meteo.psu.edu Tue Dec 23 08:16:15 2008 From: person at meteo.psu.edu (Arthur A. Person) Date: Tue, 23 Dec 2008 11:16:15 -0500 (EST) Subject: [mapserver-users] ogr2ogr hangs converting e00 files Message-ID: Hi... I'm trying to convert .e00 international boundary files into shapefile format using ogr2ogr, but when I run the conversion, ogr2ogr just hangs and hogs the processor. Here's the details: OS: RH Linux 4.7 (2.6.9-78.0.8.ELsmp) gdal: 1.5.1 basic command: ogr2ogr -f "ESRI Shapefile" bound.shp bound.e00 output: ERROR 6: Can't create fields of type IntegerList on shapefile layers. ERROR 6: Can't create fields of type IntegerList on shapefile layers. (then hangs hogging the processor...) Even though ogr2ogr hangs, it still produces a bunch of files including a bound.shp file. However, when I try to display that file using mapserver, it just produces a blank screen. output from ogrinfo for bound.e00: Had to open data source read-only. INFO: Open of `bound.e00' using driver `AVCBin' successful. 1: ARC (Line String) 2: CNT (Point) 3: LAB (Point) 4: PAL (Polygon) The bound.e00 file I'm using for testing is the North American Atlas political boundaries file from nationalatlas.gov. On a related note, does anyone know whether an open source file of international political/land boundaries exists that would save me the work of trying to combine a bunch of individual files together? I've searched high and low and can't seem to find anything... Thanks... Art Arthur A. Person Research Assistant, System Administrator Penn State Department of Meteorology email: person at meteo.psu.edu, phone: 814-863-1563 From jmckenna at gatewaygeomatics.com Tue Dec 23 08:45:15 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 23 Dec 2008 11:45:15 -0500 Subject: [mapserver-users] ogr2ogr hangs converting e00 files In-Reply-To: References: Message-ID: <4951159B.3030707@gatewaygeomatics.com> Arthur A. Person wrote: > Hi... > > I'm trying to convert .e00 international boundary files into shapefile > format using ogr2ogr, but when I run the conversion, ogr2ogr just hangs > and hogs the processor. Here's the details: > > OS: RH Linux 4.7 (2.6.9-78.0.8.ELsmp) > gdal: 1.5.1 basic > > command: ogr2ogr -f "ESRI Shapefile" bound.shp bound.e00 > > output: > ERROR 6: Can't create fields of type IntegerList on shapefile layers. > > ERROR 6: Can't create fields of type IntegerList on shapefile layers. > > (then hangs hogging the processor...) > > Even though ogr2ogr hangs, it still produces a bunch of files including > a bound.shp file. However, when I try to display that file using > mapserver, it just produces a blank screen. > > output from ogrinfo for bound.e00: > Had to open data source read-only. > INFO: Open of `bound.e00' > using driver `AVCBin' successful. > 1: ARC (Line String) > 2: CNT (Point) > 3: LAB (Point) > 4: PAL (Polygon) > > The bound.e00 file I'm using for testing is the North American Atlas > political boundaries file from nationalatlas.gov. > > On a related note, does anyone know whether an open source file of > international political/land boundaries exists that would save me the > work of trying to combine a bunch of individual files together? I've > searched high and low and can't seem to find anything... > > Thanks... > > Art I don't believe e00 write access is supported by OGR (http://www.gdal.org/ogr/drv_avce00.html), so I would use the AVCE00 library (http://avce00.maptools.org/avce00/index.html) to convert to coverage and then ogr2ogr to shapefile. happy holidays all. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From person at meteo.psu.edu Tue Dec 23 09:08:37 2008 From: person at meteo.psu.edu (Arthur A. Person) Date: Tue, 23 Dec 2008 12:08:37 -0500 (EST) Subject: [mapserver-users] ogr2ogr hangs converting e00 files In-Reply-To: <4951159B.3030707@gatewaygeomatics.com> References: <4951159B.3030707@gatewaygeomatics.com> Message-ID: Jeff, On Tue, 23 Dec 2008, Jeff McKenna wrote: > Arthur A. Person wrote: >> Hi... >> >> I'm trying to convert .e00 international boundary files into shapefile >> format using ogr2ogr, but when I run the conversion, ogr2ogr just hangs and >> hogs the processor. Here's the details: >> >> OS: RH Linux 4.7 (2.6.9-78.0.8.ELsmp) >> gdal: 1.5.1 basic >> >> command: ogr2ogr -f "ESRI Shapefile" bound.shp bound.e00 >> >> output: >> ERROR 6: Can't create fields of type IntegerList on shapefile layers. >> >> ERROR 6: Can't create fields of type IntegerList on shapefile layers. >> >> (then hangs hogging the processor...) >> >> Even though ogr2ogr hangs, it still produces a bunch of files including a >> bound.shp file. However, when I try to display that file using mapserver, >> it just produces a blank screen. >> >> output from ogrinfo for bound.e00: >> Had to open data source read-only. >> INFO: Open of `bound.e00' >> using driver `AVCBin' successful. >> 1: ARC (Line String) >> 2: CNT (Point) >> 3: LAB (Point) >> 4: PAL (Polygon) >> >> The bound.e00 file I'm using for testing is the North American Atlas >> political boundaries file from nationalatlas.gov. >> >> On a related note, does anyone know whether an open source file of >> international political/land boundaries exists that would save me the work >> of trying to combine a bunch of individual files together? I've searched >> high and low and can't seem to find anything... >> >> Thanks... >> >> Art > Thanks for the quick response... > I don't believe e00 write access is supported by OGR > (http://www.gdal.org/ogr/drv_avce00.html), so I would use the AVCE00 library > (http://avce00.maptools.org/avce00/index.html) to convert to coverage and > then ogr2ogr to shapefile. Perhaps I'm missing something... but the command I'm using is supposed to *read* the .e00 file and *write* the shapefile... so why would ogr2ogr be writing a .e00 file? Do I have something backwards, or is there an intermediate step I'm not aware of? Thanks... Art > happy holidays all. > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Arthur A. Person Research Assistant, System Administrator Penn State Department of Meteorology email: person at meteo.psu.edu, phone: 814-863-1563 From warmerdam at pobox.com Tue Dec 23 09:09:44 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 23 Dec 2008 12:09:44 -0500 Subject: [mapserver-users] ogr2ogr hangs converting e00 files In-Reply-To: References: Message-ID: <49511B58.9020201@pobox.com> Arthur A. Person wrote: > Hi... > > I'm trying to convert .e00 international boundary files into shapefile > format using ogr2ogr, but when I run the conversion, ogr2ogr just hangs > and hogs the processor. Arthur, Could you provide a direct pointer to the dataset in question? Assembling polygons from an E00 file is quite expensive, so for files with a lot of complex polygons it may take an unreasonable amount of time to assemble them properly. It is often helpful to first convert the E00 file into an arc/info binary coverage with avcimport. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jmckenna at gatewaygeomatics.com Tue Dec 23 09:12:05 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 23 Dec 2008 12:12:05 -0500 Subject: [mapserver-users] ogr2ogr hangs converting e00 files In-Reply-To: References: <4951159B.3030707@gatewaygeomatics.com> Message-ID: <49511BE5.6050504@gatewaygeomatics.com> > > Perhaps I'm missing something... but the command I'm using is supposed > to *read* the .e00 file and *write* the shapefile... so why would > ogr2ogr be writing a .e00 file? Do I have something backwards, or is > there an intermediate step I'm not aware of? sorry ignore my response. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From person at meteo.psu.edu Tue Dec 23 11:33:46 2008 From: person at meteo.psu.edu (Arthur A. Person) Date: Tue, 23 Dec 2008 14:33:46 -0500 (EST) Subject: [mapserver-users] ogr2ogr hangs converting e00 files In-Reply-To: <4951159B.3030707@gatewaygeomatics.com> References: <4951159B.3030707@gatewaygeomatics.com> Message-ID: Jeff, On Tue, 23 Dec 2008, Jeff McKenna wrote: > Arthur A. Person wrote: >> Hi... >> >> I'm trying to convert .e00 international boundary files into shapefile >> format using ogr2ogr, but when I run the conversion, ogr2ogr just hangs and >> hogs the processor. Here's the details: >> >> OS: RH Linux 4.7 (2.6.9-78.0.8.ELsmp) >> gdal: 1.5.1 basic >> >> command: ogr2ogr -f "ESRI Shapefile" bound.shp bound.e00 >> >> output: >> ERROR 6: Can't create fields of type IntegerList on shapefile layers. >> >> ERROR 6: Can't create fields of type IntegerList on shapefile layers. >> >> (then hangs hogging the processor...) >> >> Even though ogr2ogr hangs, it still produces a bunch of files including a >> bound.shp file. However, when I try to display that file using mapserver, >> it just produces a blank screen. >> >> output from ogrinfo for bound.e00: >> Had to open data source read-only. >> INFO: Open of `bound.e00' >> using driver `AVCBin' successful. >> 1: ARC (Line String) >> 2: CNT (Point) >> 3: LAB (Point) >> 4: PAL (Polygon) >> >> The bound.e00 file I'm using for testing is the North American Atlas >> political boundaries file from nationalatlas.gov. >> >> On a related note, does anyone know whether an open source file of >> international political/land boundaries exists that would save me the work >> of trying to combine a bunch of individual files together? I've searched >> high and low and can't seem to find anything... >> >> Thanks... >> >> Art > > I don't believe e00 write access is supported by OGR > (http://www.gdal.org/ogr/drv_avce00.html), so I would use the AVCE00 library > (http://avce00.maptools.org/avce00/index.html) to convert to coverage and > then ogr2ogr to shapefile. Okay... I did an avcimport of the bounds.e00 file and got a bunch of new files. Then I did the ogr2ogr on that, and it ran and finished. And, it pops up in mapserver like it's supposed to. A bit mysterious to me, but your suggestion worked. Thanks for the help... Art > happy holidays all. > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Arthur A. Person Research Assistant, System Administrator Penn State Department of Meteorology email: person at meteo.psu.edu, phone: 814-863-1563 From mlinden at zeelandnet.nl Tue Dec 23 12:48:48 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 23 Dec 2008 21:48:48 +0100 Subject: [mapserver-users] Update: MapServer Documentation Effort In-Reply-To: <17F8A296-6CAA-4582-8BB9-F82D96BFBA67@gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA07D@s-sp22.pca.state.mn.us> <17F8A296-6CAA-4582-8BB9-F82D96BFBA67@gmail.com> Message-ID: <49514EB0.8080801@zeelandnet.nl> Great work! And excellent that these docs are comming from svn. I already have a remark in http://svn.osgeo.org/mapserver/trunk/docs/mapfile/index.txt; .. seealso:: :ref:`introduction` for "An Introduction to the Mapfile" Is ignored. I tried to go to trac to see if I could attach a ticket, but I noticed trac chokes on ref and seealso too. perhaps there is a trac module for the documentation structure used? Anyhow, 3 thumbs up ;-)! Howard Butler wrote: > > On Dec 23, 2008, at 8:46 AM, Fawcett, David wrote: >> >> Let me know if you want me to contribute. > > Any and all are welcome to contribute :) > > That particular doc's source code is > http://svn.osgeo.org/mapserver/trunk/docs/introduction.txt Start by > filing tickets in Trac under the Documentation component and adding > your changes to them as patches. > > Howard > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From hobu.inc at gmail.com Tue Dec 23 13:35:14 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Tue, 23 Dec 2008 15:35:14 -0600 Subject: [mapserver-users] Update: MapServer Documentation Effort In-Reply-To: <49514EB0.8080801@zeelandnet.nl> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA07D@s-sp22.pca.state.mn.us> <17F8A296-6CAA-4582-8BB9-F82D96BFBA67@gmail.com> <49514EB0.8080801@zeelandnet.nl> Message-ID: <76B05F74-B74C-4493-BE6D-40117310FC14@gmail.com> This is due to the fact that the .. seealso:: directive can only be interpreted by Sphinx instead of Trac. To keep things from blowing up, I have changed the mime-type on the documentation files to text/ plain so Trac doesn't try to interpret them. You should be able to file a ticket and work with them more easily now. Howard On Dec 23, 2008, at 2:48 PM, Milo van der Linden wrote: > Great work! > > And excellent that these docs are comming from svn. > > I already have a remark in http://svn.osgeo.org/mapserver/trunk/docs/mapfile/index.txt > ; > > .. seealso:: > :ref:`introduction` for "An Introduction to the Mapfile" > > Is ignored. > > I tried to go to trac to see if I could attach a ticket, but I > noticed trac chokes on ref and seealso too. perhaps there is a trac > module for the documentation structure used? > > Anyhow, 3 thumbs up ;-)! > > > Howard Butler wrote: >> >> On Dec 23, 2008, at 8:46 AM, Fawcett, David wrote: >>> >>> Let me know if you want me to contribute. >> >> Any and all are welcome to contribute :) >> >> That particular doc's source code is http://svn.osgeo.org/mapserver/trunk/docs/introduction.txt >> Start by filing tickets in Trac under the Documentation component >> and adding your changes to them as patches. >> >> Howard >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From Steve.Lime at dnr.state.mn.us Tue Dec 23 15:49:27 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 23 Dec 2008 17:49:27 -0600 Subject: [mapserver-users] changing layer projection Message-ID: <495124A70200008F0001EF0E@co5.dnr.state.mn.us> How about: map_layer[layername]=PROJECTION+init=epsg:26914+END Steve >>> "Chad Ringenberg" 12/22/08 3:50 PM >>> I have been updating my mapserver cgi application from 4.10 to 5.21 and it appears we have lost the ability to change a layers projection parameter from the url. In version 4.1 I could change it with "map_layername_projection=init=epsg:26914". With 5.21 I have tried "map_layer[layername]_projection=init=epsg:26914" and numerous other combinations to no avail. Does anyone know how to change a layers projection with 5.21? Thanks, Chad From robe.dnd at cityofboston.gov Wed Dec 24 09:02:12 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed, 24 Dec 2008 12:02:12 -0500 Subject: [mapserver-users] Tile Mapping Service with Mapserver ala Virtual Earth and Google Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D205378785@ZDND.DND.boston.cob> I recall hearing that the 5.2 Mapserver has support for Tile Mapping Service for easy integration with Google and Virtual Earth. Are there any examples of using this floating around aside from the RFC http://mapserver.gis.umn.edu/development/rfc/ms-rfc-43 >From the RFC, I'm guessing my layers should support the VE and Google Earth projections or does that automatically happen if my data is projected? and TMS is not another layer type such as the case when Mapserver acts as a WMS client. More specifically I gather that this is a Mapserver living in a VE/GMap model rather than (VE living in a Mapserver model). It is not the server grabbing VE tiles and server/overlaying and returning a single image (which hmm I suppose may not be legal anyway or at least not so for Google). Thanks, Regina ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. From woodbri at swoodbridge.com Wed Dec 24 09:13:13 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 24 Dec 2008 12:13:13 -0500 Subject: [mapserver-users] Tile Mapping Service with Mapserver ala Virtual Earth and Google In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D205378785@ZDND.DND.boston.cob> References: <53F9CF533E1AA14EA1F8C5C08ABC08D205378785@ZDND.DND.boston.cob> Message-ID: <49526DA9.6040205@swoodbridge.com> Hi Regina, Obe, Regina wrote: > I recall hearing that the 5.2 Mapserver has support for Tile Mapping > Service for easy integration with Google and Virtual Earth. > > Are there any examples of using this floating around aside from the RFC > > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-43 > >>From the RFC, I'm guessing my layers should support the VE and Google > Earth projections or does that automatically happen if my data is > projected? and TMS is not another layer type such as the case when > Mapserver acts as a WMS client. This assumes a few things: 1) that you have installed Proj4 and built mapserver to use it 2) you have added EPSG:900913 to your epsg file 3) you have set up your mapfile to have projection blocks on all layers and probably the MAP object. > More specifically > I gather that this is a Mapserver living in a VE/GMap model rather than > (VE living in a Mapserver model). It is not the server grabbing VE > tiles and server/overlaying and returning a single image (which hmm I > suppose may not be legal anyway or at least not so for Google). Yes, this is how I read it also. This allows you to define a source for tiles that gMap or VE javaScript APIs can then pull map tiles into their infrastructure from maps you have defined in mapserver. Not the other way around. -Steve W > Thanks, > Regina > ----------------------------------------- > The substance of this message, including any attachments, may be > confidential, legally privileged and/or exempt from disclosure > pursuant to Massachusetts law. It is intended > solely for the addressee. If you received this in error, please > contact the sender and delete the material from any computer. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Wed Dec 24 09:13:16 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Wed, 24 Dec 2008 09:13:16 -0800 Subject: [mapserver-users] Tile Mapping Service with Mapserver ala Virtual Earth and Google In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D205378785@ZDND.DND.boston.cob> References: <53F9CF533E1AA14EA1F8C5C08ABC08D205378785@ZDND.DND.boston.cob> Message-ID: <30fe546d0812240913uc825942le958edc4d3dffdc8@mail.gmail.com> http://mapserver.osgeo.org/output/tile_mode.html On Wed, Dec 24, 2008 at 9:02 AM, Obe, Regina wrote: > I recall hearing that the 5.2 Mapserver has support for Tile Mapping > Service for easy integration with Google and Virtual Earth. > > Are there any examples of using this floating around aside from the RFC From nikos at maich.gr Thu Dec 25 08:46:44 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Thu, 25 Dec 2008 18:46:44 +0200 (EET) Subject: [mapserver-users] What is required to be able to query point layers? In-Reply-To: <20081225170009.226FFE00C45@lists.osgeo.org> References: <20081225170009.226FFE00C45@lists.osgeo.org> Message-ID: <1152.213.16.184.21.1230223604.squirrel@213.16.184.21> Hello and Merry X-mas to all, Bit of a bother here. I've received a point layer to add to my current app, and while I'm able to render it, I cannot get a query to work. Even with a huge tolerance, clicking on points does not return a result. The shapefile check outs fine and queries in ESRI and Qgis apps. Using MS 5.3-dev from FWTools, on XP would appreciate some help, Attached is the map file, regards, nikos ######################## map extent 311610.0 4326810.0 346410.0 4363900.0 imagecolor 255 255 255 name "farditsa1" shapepath "data" size 600 600 status on symbolset "symbols/all.sym" units meters # 1 scalebar #none scalebar backgroundcolor 255 255 0 color 255 255 255 imagecolor 255 255 255 intervals 4 outlinecolor 0 0 0 size 200 7 status on style 0 transparent true units meters # 1 label #none label backgroundcolor 0 0 0 color 255 255 0 size tiny end end # 2 layer 2006_xy_opekepe_Karditsa layer classitem "AFM" data "2006_xy_opekepe_Karditsa" footer "2006_xy_opekepe_Karditsa_footer.html" group "2006_xy_opekepe_Karditsa" header "2006_xy_opekepe_Karditsa_header.html" labelcache on labelitem "AFM" name "2006_xy_opekepe_Karditsa" postlabelcache true status on type point TOLERANCE 600 TOLERANCEUNITS pixels TRANSPARENCY 60 # 1 class 2006_xy_opekepe_Karditsa_1 class STYLE SYMBOL 'CIRCLE' SIZE 10 OUTLINECOLOR 0 0 0 COLOR 24 93 38 END END end #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END # 3 web farditsa1.html web footer "farditsa1_footer.html" header "farditsa1_header.html" imagepath "/web/farditsa1/tmp/" imageurl "/farditsa1/tmp/" template "farditsa1.html" end # 4 querymap hilite querymap color 255 0 0 size 200 200 status on style hilite end # 5 reference graphics/reference.gif reference color -1 -1 -1 extent 311610.0 4326810.0 346410.0 4363900.0 image "graphics/reference.gif" outlinecolor 255 0 0 size 120 120 status on end # 6 legend #none legend keysize 18 12 status on # 1 label #none label color 0 0 89 size medium type bitmap end end end #################################### From jose.maria.michia at gmail.com Thu Dec 25 16:43:21 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Thu, 25 Dec 2008 22:43:21 -0200 Subject: [mapserver-users] What is required to be able to query point layers? In-Reply-To: <1152.213.16.184.21.1230223604.squirrel@213.16.184.21> References: <20081225170009.226FFE00C45@lists.osgeo.org> <1152.213.16.184.21.1230223604.squirrel@213.16.184.21> Message-ID: 2008/12/25 > > Hello and Merry X-mas to all, > > Bit of a bother here. I've received a point layer to add to my current app, > and while I'm able to render it, I cannot get a query to work. > > Even with a huge tolerance, clicking on points does not return a result. > The shapefile check outs fine and queries in ESRI and Qgis apps. > > Using MS 5.3-dev from FWTools, on XP > > would appreciate some help, > > Attached is the map file, > > regards, > > nikos I believe that the LAYER/CLASS object lacks the TEMPLATE parameter. You may want to check this. For example, you must add a line in this way: > ######################## > map > .... > # 2 layer 2006_xy_opekepe_Karditsa > layer > classitem "AFM" > data "2006_xy_opekepe_Karditsa" # Add this here: > template "2006_xy_opekepe_Karditsa_template.html" # > footer "2006_xy_opekepe_Karditsa_footer.html" > group "2006_xy_opekepe_Karditsa" > header "2006_xy_opekepe_Karditsa_header.html" > labelcache on > labelitem "AFM" > name "2006_xy_opekepe_Karditsa" > postlabelcache true > status on > type point > TOLERANCE 600 > TOLERANCEUNITS pixels > TRANSPARENCY 60 > # 1 class 2006_xy_opekepe_Karditsa_1 > class > STYLE > SYMBOL 'CIRCLE' > SIZE 10 > OUTLINECOLOR 0 0 0 > COLOR 24 93 38 > END > END > end > .... Saludos Jos? Mar?a From Jukka.Rahkonen at mmmtike.fi Thu Dec 25 23:25:53 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 26 Dec 2008 09:25:53 +0200 Subject: [mapserver-users] What is required to be able to query pointlayers? References: <20081225170009.226FFE00C45@lists.osgeo.org><1152.213.16.184.21.1230223604.squirrel@213.16.184.21> Message-ID: Hi, Document http://mapserver.gis.umn.edu/docs/howto/wms_server tells: > Configuring for GetFeatureInfo Requests: > You must set the layer TEMPLATE parameter for the layer to be queryable by GetFeatureInfo > requests. For requests of type "text/html" you should also set the layer HEADER and FOOTER > parameters. (My addition here: The file that TEMPLATE refers to must exist in your computer, but it can be even an empty file). > For GetFeatureInfo requests of GML you must set the layer to DUMP TRUE in the mapfile. As of > MapServer 4.6 you must also set the gml_* metadata for the layer attributes to be served (see the > Layer Object metadata in the Reference Section later in this document). Thus, try these steps: 1) add DUMP TRUE 2) add TEMPLATE c:\ms4w\apps\template\foo.html and create an empty foo.html file with that name 3) add to layer metadata "ows_include_items" "all" That should be enough. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jos? Mar?a Michia L?hetetty: pe 26.12.2008 2:43 Vastaanottaja: nikos at maich.gr Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] What is required to be able to query pointlayers? 2008/12/25 > > Hello and Merry X-mas to all, > > Bit of a bother here. I've received a point layer to add to my current app, > and while I'm able to render it, I cannot get a query to work. > > Even with a huge tolerance, clicking on points does not return a result. > The shapefile check outs fine and queries in ESRI and Qgis apps. > > Using MS 5.3-dev from FWTools, on XP > > would appreciate some help, > > Attached is the map file, > > regards, > > nikos I believe that the LAYER/CLASS object lacks the TEMPLATE parameter. You may want to check this. For example, you must add a line in this way: > ######################## > map > .... > # 2 layer 2006_xy_opekepe_Karditsa > layer > classitem "AFM" > data "2006_xy_opekepe_Karditsa" # Add this here: > template "2006_xy_opekepe_Karditsa_template.html" # > footer "2006_xy_opekepe_Karditsa_footer.html" > group "2006_xy_opekepe_Karditsa" > header "2006_xy_opekepe_Karditsa_header.html" > labelcache on > labelitem "AFM" > name "2006_xy_opekepe_Karditsa" > postlabelcache true > status on > type point > TOLERANCE 600 > TOLERANCEUNITS pixels > TRANSPARENCY 60 > # 1 class 2006_xy_opekepe_Karditsa_1 > class > STYLE > SYMBOL 'CIRCLE' > SIZE 10 > OUTLINECOLOR 0 0 0 > COLOR 24 93 38 > END > END > end > .... Saludos Jos? Mar?a _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From chad at agridatainc.com Fri Dec 26 07:07:49 2008 From: chad at agridatainc.com (Chad Ringenberg) Date: Fri, 26 Dec 2008 09:07:49 -0600 Subject: [mapserver-users] Re: changing layer projection Message-ID: <288EED89877E4D398C786CE66E114BAC@ChadsVista> Since I haven't received a response yet on my question I will explain a little further what I'm am doing. I have numerous raster images from different sources that I dynamically load via cgi. Sometimes these images are in a different projection than my resulting map. I can still change the data parameter for the raster layer but have been unable to change the projection. I was able to do this in 4.1 but it appears to have been removed in 5.x or a bug was introduced. Can the projection parameter for a layer be changed in 5.x or should I file a bug report? Thanks, Chad ----- Original Message ----- From: Chad Ringenberg To: mapserver-users at lists.osgeo.org Sent: Monday, December 22, 2008 3:43 PM Subject: changing layer projection I have been updating my mapserver cgi application from 4.10 to 5.21 and it appears we have lost the ability to change a layers projection parameter from the url. In version 4.1 I could change it with "map_layername_projection=init=epsg:26914". With 5.21 I have tried "map_layer[layername]_projection=init=epsg:26914" and numerous other combinations to no avail. Does anyone know how to change a layers projection with 5.21? Thanks, Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.State.MN.US Fri Dec 26 07:20:39 2008 From: Steve.Lime at DNR.State.MN.US (Steve Lime) Date: Fri, 26 Dec 2008 09:20:39 -0600 Subject: [mapserver-users] Re: changing layer projection In-Reply-To: <288EED89877E4D398C786CE66E114BAC@ChadsVista> References: <288EED89877E4D398C786CE66E114BAC@ChadsVista> Message-ID: <4954A1E6.5157.008F.0@dnr.state.mn.us> I sent a reply to the list on the 23rd, did you see/try that? The proper syntax for a layer projection is: map_layer[layername]=PROJECTION%20init%3Depsg%3A26914%20END I checked the code and a projection can be modified by URL. Steve >>> On 12/26/2008 at 9:07 AM, in message <288EED89877E4D398C786CE66E114BAC at ChadsVista>, "Chad Ringenberg" wrote: > Since I haven't received a response yet on my question I will explain a > little further what I'm am doing. I have numerous raster images from > different sources that I dynamically load via cgi. Sometimes these images > are in a different projection than my resulting map. I can still change the > data parameter for the raster layer but have been unable to change the > projection. I was able to do this in 4.1 but it appears to have been removed > in 5.x or a bug was introduced. > > Can the projection parameter for a layer be changed in 5.x or should I file > a bug report? > > Thanks, > Chad > > > ----- Original Message ----- > From: Chad Ringenberg > To: mapserver-users at lists.osgeo.org > Sent: Monday, December 22, 2008 3:43 PM > Subject: changing layer projection > > > I have been updating my mapserver cgi application from 4.10 to 5.21 and it > appears we have lost the ability to change a layers projection parameter from > the url. In version 4.1 I could change it with > "map_layername_projection=init=epsg:26914". With 5.21 I have tried > "map_layer[layername]_projection=init=epsg:26914" and numerous other > combinations to no avail. > > Does anyone know how to change a layers projection with 5.21? > > Thanks, > Chad From chad at agridatainc.com Fri Dec 26 08:41:52 2008 From: chad at agridatainc.com (Chad Ringenberg) Date: Fri, 26 Dec 2008 10:41:52 -0600 Subject: [mapserver-users] Re: changing layer projection In-Reply-To: <4954A1E6.5157.008F.0@dnr.state.mn.us> References: <288EED89877E4D398C786CE66E114BAC@ChadsVista> <4954A1E6.5157.008F.0@dnr.state.mn.us> Message-ID: I hadn't received the previous email for some reason. I tried the suggestion below but received the following error. loadProjection(): Unknown identifier. Parsing error near (:):(line 1) ----- Original Message ----- From: "Steve Lime" To: "Chad Ringenberg" ; Sent: Friday, December 26, 2008 9:20 AM Subject: [mapserver-users] Re: changing layer projection I sent a reply to the list on the 23rd, did you see/try that? The proper syntax for a layer projection is: map_layer[layername]=PROJECTION%20init%3Depsg%3A26914%20END I checked the code and a projection can be modified by URL. Steve >>> On 12/26/2008 at 9:07 AM, in message <288EED89877E4D398C786CE66E114BAC at ChadsVista>, "Chad Ringenberg" wrote: > Since I haven't received a response yet on my question I will explain a > little further what I'm am doing. I have numerous raster images from > different sources that I dynamically load via cgi. Sometimes these images > are in a different projection than my resulting map. I can still change > the > data parameter for the raster layer but have been unable to change the > projection. I was able to do this in 4.1 but it appears to have been > removed > in 5.x or a bug was introduced. > > Can the projection parameter for a layer be changed in 5.x or should I > file > a bug report? > > Thanks, > Chad > > > ----- Original Message ----- > From: Chad Ringenberg > To: mapserver-users at lists.osgeo.org > Sent: Monday, December 22, 2008 3:43 PM > Subject: changing layer projection > > > I have been updating my mapserver cgi application from 4.10 to 5.21 and > it > appears we have lost the ability to change a layers projection parameter > from > the url. In version 4.1 I could change it with > "map_layername_projection=init=epsg:26914". With 5.21 I have tried > "map_layer[layername]_projection=init=epsg:26914" and numerous other > combinations to no avail. > > Does anyone know how to change a layers projection with 5.21? > > Thanks, > Chad From nikos at maich.gr Fri Dec 26 08:45:49 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Fri, 26 Dec 2008 18:45:49 +0200 (EET) Subject: [mapserver-users] Re: mapserver-users Digest, Vol 11, Issue 72 In-Reply-To: <20081226170009.EC322E00E4E@lists.osgeo.org> References: <20081226170009.EC322E00E4E@lists.osgeo.org> Message-ID: <64346.79.130.3.29.1230309949.squirrel@79.130.3.29> Thax all for responding, I have the templates, but, I guess working late, I did not have them in my map file. All is well, and thanx again. regards, nikos From Steve.Lime at dnr.state.mn.us Fri Dec 26 10:30:48 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 26 Dec 2008 12:30:48 -0600 Subject: [mapserver-users] Re: changing layer projection In-Reply-To: References: <288EED89877E4D398C786CE66E114BAC@ChadsVista> <4954A1E6.5157.008F.0@dnr.state.mn.us> Message-ID: <4954CE77.5157.008F.0@dnr.state.mn.us> Probably need to quote the string within the projection block. :'s probably aren't allowed in unquoted strings. The fact the error is from loadProjection means we're getting to the right place. Try: map_layer[layername]=PROJECTION%20"init%3Depsg%3A26914"%20END Steve >>> On 12/26/2008 at 10:41 AM, in message , "Chad Ringenberg" wrote: > I hadn't received the previous email for some reason. I tried the > suggestion below but received the following error. > > loadProjection(): Unknown identifier. Parsing error near (:):(line 1) > > > > ----- Original Message ----- > From: "Steve Lime" > To: "Chad Ringenberg" ; > > Sent: Friday, December 26, 2008 9:20 AM > Subject: [mapserver-users] Re: changing layer projection > > > I sent a reply to the list on the 23rd, did you see/try that? The proper > syntax for > a layer projection is: > > map_layer[layername]=PROJECTION%20init%3Depsg%3A26914%20END > > I checked the code and a projection can be modified by URL. > > Steve > > >>>> On 12/26/2008 at 9:07 AM, in message > <288EED89877E4D398C786CE66E114BAC at ChadsVista>, "Chad Ringenberg" > wrote: >> Since I haven't received a response yet on my question I will explain a >> little further what I'm am doing. I have numerous raster images from >> different sources that I dynamically load via cgi. Sometimes these images >> are in a different projection than my resulting map. I can still change >> the >> data parameter for the raster layer but have been unable to change the >> projection. I was able to do this in 4.1 but it appears to have been >> removed >> in 5.x or a bug was introduced. >> >> Can the projection parameter for a layer be changed in 5.x or should I >> file >> a bug report? >> >> Thanks, >> Chad >> >> >> ----- Original Message ----- >> From: Chad Ringenberg >> To: mapserver-users at lists.osgeo.org >> Sent: Monday, December 22, 2008 3:43 PM >> Subject: changing layer projection >> >> >> I have been updating my mapserver cgi application from 4.10 to 5.21 and >> it >> appears we have lost the ability to change a layers projection parameter >> from >> the url. In version 4.1 I could change it with >> "map_layername_projection=init=epsg:26914". With 5.21 I have tried >> "map_layer[layername]_projection=init=epsg:26914" and numerous other >> combinations to no avail. >> >> Does anyone know how to change a layers projection with 5.21? >> >> Thanks, >> Chad > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From chad at agridatainc.com Fri Dec 26 13:11:03 2008 From: chad at agridatainc.com (Chad Ringenberg) Date: Fri, 26 Dec 2008 15:11:03 -0600 Subject: [mapserver-users] Re: changing layer projection In-Reply-To: <4954CE77.5157.008F.0@dnr.state.mn.us> References: <288EED89877E4D398C786CE66E114BAC@ChadsVista> <4954A1E6.5157.008F.0@dnr.state.mn.us> <4954CE77.5157.008F.0@dnr.state.mn.us> Message-ID: <4ABC01ACDCCF41D6ADA8A2114FFDDEE4@ChadsVista> That worked. Thanks, Chad ----- Original Message ----- From: "Steve Lime" To: "Chad Ringenberg" ; Sent: Friday, December 26, 2008 12:30 PM Subject: Re: [mapserver-users] Re: changing layer projection Probably need to quote the string within the projection block. :'s probably aren't allowed in unquoted strings. The fact the error is from loadProjection means we're getting to the right place. Try: map_layer[layername]=PROJECTION%20"init%3Depsg%3A26914"%20END Steve >>> On 12/26/2008 at 10:41 AM, in message , "Chad Ringenberg" wrote: > I hadn't received the previous email for some reason. I tried the > suggestion below but received the following error. > > loadProjection(): Unknown identifier. Parsing error near (:):(line 1) > > > > ----- Original Message ----- > From: "Steve Lime" > To: "Chad Ringenberg" ; > > Sent: Friday, December 26, 2008 9:20 AM > Subject: [mapserver-users] Re: changing layer projection > > > I sent a reply to the list on the 23rd, did you see/try that? The proper > syntax for > a layer projection is: > > map_layer[layername]=PROJECTION%20init%3Depsg%3A26914%20END > > I checked the code and a projection can be modified by URL. > > Steve > > >>>> On 12/26/2008 at 9:07 AM, in message > <288EED89877E4D398C786CE66E114BAC at ChadsVista>, "Chad Ringenberg" > wrote: >> Since I haven't received a response yet on my question I will explain a >> little further what I'm am doing. I have numerous raster images from >> different sources that I dynamically load via cgi. Sometimes these >> images >> are in a different projection than my resulting map. I can still change >> the >> data parameter for the raster layer but have been unable to change the >> projection. I was able to do this in 4.1 but it appears to have been >> removed >> in 5.x or a bug was introduced. >> >> Can the projection parameter for a layer be changed in 5.x or should I >> file >> a bug report? >> >> Thanks, >> Chad >> >> >> ----- Original Message ----- >> From: Chad Ringenberg >> To: mapserver-users at lists.osgeo.org >> Sent: Monday, December 22, 2008 3:43 PM >> Subject: changing layer projection >> >> >> I have been updating my mapserver cgi application from 4.10 to 5.21 and >> it >> appears we have lost the ability to change a layers projection parameter >> from >> the url. In version 4.1 I could change it with >> "map_layername_projection=init=epsg:26914". With 5.21 I have tried >> "map_layer[layername]_projection=init=epsg:26914" and numerous other >> combinations to no avail. >> >> Does anyone know how to change a layers projection with 5.21? >> >> Thanks, >> Chad > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From paul_pag00 at hotmail.com Sat Dec 27 05:58:18 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Sat, 27 Dec 2008 05:58:18 -0800 (PST) Subject: [mapserver-users] RE: Display of polygon in map In-Reply-To: References: Message-ID: <1230386298170-2015902.post@n2.nabble.com> Hello friend maybe i know whats the problem did you check if you newgeo column is registered on the geometry_column table, because mapserver look for the field of geometry there and then make the graphic I hope yopu could solveypour problem with this Happy Holidays Date: Fri, 26 Dec 2008 19:24:42 -0800From: ml-user+2851-242421009 at n2.nabble.comTo: paul_pag00 at hotmail.comSubject: Re: Display of polygon in maphere it is..I have tried using gid ,srid etc..n its still not working :( LAYER NAME gps_polygon STATUS on TYPE polygon CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=gps_data user=abc password=xyz port=5432" DATA "newgeom FROM gps_polygon USING UNIQUE gid" LABELCACHE on #LABELITEM 'name' HEADER 'templates/header.html' FOOTER 'templates/footer.html' TOLERANCE 3 STYLE #COLOR 212 192 100 # OUTLINECOLOR 200 100 200 OUTLINECOLOR 0 0 255 END LABEL COLOR 255 0 0 POSITION ul SIZE large END # label END # class END # layer pag66 wrote: Hi friend post the connection that you're using maybe it a problem with the select statement, try "the_geom from table using unique gid" if you have and gid field This email is a reply to your post @ http://n2.nabble.com/Display-of-polygon-in-map-tp1971800p1971802.htmlYou can reply by email or by visting the link above. _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline -- View this message in context: http://n2.nabble.com/Display-of-polygon-in-map-tp1971800p2015902.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Dec 26 09:36:12 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 26 Dec 2008 17:36:12 -0000 Subject: [mapserver-users] LAYER LABEL ANGLE Calculation Problem Message-ID: <8AECC6DBE7FC444693271A8EC894C7CF@DELL> I am looking for some help if possible. I am putting labels on a map and the angle is stored in database field called "orientation". Orientation is in 10ths of degrees so I need to divide by 10 to get degrees. I also need to offset by 90 degrees as the number starts at east, not north. Ideally I would just like to do the following in the LABEL definition: ANGLE (([orientation]/10)-90) ... But it doesn't work - getting pink tiles. ANGLE [orientation] does work but obviously the labels are NOT at the right angle. Here's the full layer definition: LAYER CONNECTIONTYPE postgis NAME "CartographicText" CONNECTION "user=postgres dbname=MasterMap host=localhost" DATA "geom FROM cartographictext USING UNIQUE toid" STATUS DEFAULT MINSCALEDENOM 1 MAXSCALEDENOM 1300 TYPE ANNOTATION DEBUG ON LABELITEM textstring CLASS EXPRESSION ([featurecode] = 10169) LABEL TYPE truetype FONT arial SIZE 6 COLOR 0 0 0 OUTLINECOLOR 255 255 255 BACKGROUNDCOLOR 255 0 0 ANTIALIAS TRUE ANGLE [orientation] END # LABEL END # CLASS END # LAYER Regards, Donald From thomas.bonfort at gmail.com Sat Dec 27 09:12:27 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 27 Dec 2008 18:12:27 +0100 Subject: [mapserver-users] LAYER LABEL ANGLE Calculation Problem In-Reply-To: <8AECC6DBE7FC444693271A8EC894C7CF@DELL> References: <8AECC6DBE7FC444693271A8EC894C7CF@DELL> Message-ID: you can let postgres calculate the angle for you: DATA "geom FROM (select geom, toid, orientation/10-90 as orientation from cartographictext) as foo USING UNIQUE toid" and then use angle [orientation] in your label regards, thomas On Fri, Dec 26, 2008 at 18:36, Donald Kerr wrote: > I am looking for some help if possible. > > I am putting labels on a map and the angle is stored in database field > called "orientation". Orientation is in 10ths of degrees so I need to divide > by 10 to get degrees. I also need to offset by 90 degrees as the number > starts at east, not north. Ideally I would just like to do the following in > the LABEL definition: > > ANGLE (([orientation]/10)-90) > > ... But it doesn't work - getting pink tiles. > > ANGLE [orientation] does work but obviously the labels are NOT at the right > angle. > > Here's the full layer definition: > > LAYER CONNECTIONTYPE postgis > NAME "CartographicText" > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM cartographictext USING UNIQUE toid" > STATUS DEFAULT > > MINSCALEDENOM 1 > MAXSCALEDENOM 1300 > > TYPE ANNOTATION > > DEBUG ON > > LABELITEM textstring > CLASS > EXPRESSION ([featurecode] = 10169) > LABEL > TYPE truetype > FONT arial > SIZE 6 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > BACKGROUNDCOLOR 255 0 0 > ANTIALIAS TRUE > ANGLE [orientation] > END # LABEL > END # CLASS > END # LAYER > > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From donald.kerr at dkerr.co.uk Sun Dec 28 13:38:53 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sun, 28 Dec 2008 21:38:53 -0000 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points Message-ID: I've been struggling with this problem all day and cannot make any progress. I hope that someone can help. I want to convert a polyline points array into a MapServer Symbol but keep getting errors. Here's the polyline array: And here's a depiction of the symbol I need to create: http://www.dkerr.co.uk/boulderGeography.gif Many thanks. Regards, Donald From David at itbeyond.com.au Sun Dec 28 19:55:12 2008 From: David at itbeyond.com.au (David Martin) Date: Mon, 29 Dec 2008 12:55:12 +0900 Subject: [mapserver-users] Symbol Style Angle Seems Incorrect (MapServer 5.0.2) Message-ID: <9C37154DC7C8074FBC34214363755B7C280714@ITB-SVR-01.itbeyond.local> Hi, Using MapServer 5.0.2 I am using a database bind for a SYMBOL Style Angle however I am finding that the ANGLE show appears to be out and rendering backwards ie: ANGLE 10 is sloping a little to the left not right and angle 350 is sloping to the right. I am using a symbol made up of a | char as below: SYMBOL NAME 'landingground' TYPE TRUETYPE CHARACTER "|" FONT ARIAL POSITION CC END Showing on a map using CLASS NAME 'Landing Ground' EXPRESSION /3/ STYLE SYMBOL 'circle' SIZE 10 MAXSIZE 18 MINSIZE 10 COLOR 255 0 0 END STYLE SYMBOL 'circle' SIZE 9 MAXSIZE 17 MINSIZE 9 COLOR 255 255 255 END STYLE SYMBOL 'landingground' SIZE 5 MAXSIZE 12 MINSIZE 5 COLOR 255 0 0 ANGLE [ORIENTATN] # supplied from ShapeFile ANTIALIAS TRUE END END When I render this URL: http://mt1.exploroz.com/iMapPlot/GetMapTile.aspx?reload=1&key=test&mode= map&map_imagetype=png&mapext=13523695.804194272+-3421332.5005978127+1352 6141.78909896+-3418886.5156931253&imgext=13523695.804194272+-3421332.500 5978127+13526141.78909896+-3418886.5156931253&map_size=256+256&imgx=128& imgy=128&imgxy=256+256 (One of the tiles for my OL system) - showing an Airport defined at ANGLE 321 you will see the Airstrip sloping to the right when it should be mirrored and sloping to the left. Any one else seen this or have a fix? Regards David Martin ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Mon Dec 29 02:59:07 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 29 Dec 2008 10:59:07 -0000 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: Message-ID: Just to add a wee bit to this. I have a number of symbols that I would like to recreate in MapServer. I have an image of what they should look like and I have the arrays of polyline points. What I don't really know is the limitations of the MapServer vector points i.e. the maximum number of points that can be used and the highest positive/negative numbers that can be used. I believe that "-99" works as 'pen up' but does that mean that -98 and 98 are the maximum? Also, do the point values have to be integer values? If not, how many numbers after the point e.g. 1.12345 etc. If I take the polyline points like the following then the server throws a CGI wobbly and needs restarting: SYMBOL NAME 'boulderGeometry' TYPE VECTOR FILLED FALSE POINTS -0.154 0.236 -0.111 0.365 -0.116 0.501 -0.165 0.616 -0.170 0.627 -0.264 0.724 -0.490 0.826 -0.682 0.889 -0.885 0.900 -1.083 0.858 -1.264 0.767 -1.415 0.631 -1.521 0.466 -1.558 0.199 -1.538 -0.071 -1.462 -0.329 -1.333 -0.566 -1.156 -0.771 -99 -99 1.755 -0.819 1.534 -0.804 0.832 -0.857 0.129 -0.824 -0.450 -0.769 -1.032 -0.767 -1.612 -0.819 -99 -99 1.640 -0.804 1.620 -0.589 1.392 -0.388 1.122 -0.248 -99 -99 0.311 -0.526 0.520 -0.573 0.732 -0.554 0.930 -0.472 1.093 -0.335 1.097 -0.329 1.101 -0.323 1.105 -0.317 1.108 -0.311 1.111 -0.304 1.113 -0.298 1.115 -0.291 1.117 -0.284 1.118 -0.277 1.118 -0.270 1.119 -0.263 1.118 -0.256 1.118 -0.249 1.117 -0.242 1.115 -0.235 1.113 -0.229 1.111 -0.222 1.108 -0.216 1.105 -0.209 1.101 -0.203 1.097 -0.198 1.093 -0.192 1.088 -0.187 1.083 -0.182 1.078 -0.177 1.073 -0.173 1.067 -0.169 1.061 -0.165 1.054 -0.162 0.637 0.198 0.393 0.388 0.118 0.530 -0.165 0.616 -0.178,0.619 END # POINTS END # SYMBOL If I take just part of the above then it still doesn't work: SYMBOL NAME 'boulderGeometry' TYPE VECTOR FILLED FALSE POINTS -0.154 0.236 -0.111 0.365 -0.116 0.501 -0.165 0.616 -0.170 0.627 END # POINTS END # SYMBOL Any help most greatly appreciated. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: 28 December 2008 21:39 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points I've been struggling with this problem all day and cannot make any progress. I hope that someone can help. I want to convert a polyline points array into a MapServer Symbol but keep getting errors. Here's the polyline array: And here's a depiction of the symbol I need to create: http://www.dkerr.co.uk/boulderGeography.gif Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From attila.borbas at gmail.com Mon Dec 29 03:04:51 2008 From: attila.borbas at gmail.com (=?ISO-8859-1?Q?Borb=E1s_Attila?=) Date: Mon, 29 Dec 2008 12:04:51 +0100 Subject: [mapserver-users] add symbol to search result Message-ID: <46E1D5B1-8AFC-4CF4-A99A-B6E0DF4B5844@gmail.com> Hello, I want to add a symbol to my search result. I have a mysql table with city names and coordinates. If I search the map zoom onto city and I want to add a symbol that shows the search result. How can i do this? Thanx for answers. Attila From thomas.bonfort at gmail.com Mon Dec 29 03:23:44 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 29 Dec 2008 12:23:44 +0100 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: References: Message-ID: hi, On Mon, Dec 29, 2008 at 11:59, Donald Kerr wrote: > the maximum number of points that can be used by default it's 100. you can change the MS_MAXVECTORPOINTS constant in mapsymbol.h to change that limit. > and the highest positive/negative numbers that can be used. > I believe that "-99" works as 'pen up' but does that mean that -98 and 98 > are the maximum? -99 is the reserved value for penup, ie you can use -100 for the actual points. > Also, do the point values have to be integer values? If > not, how many numbers after the point e.g. 1.12345 etc. not necessarily integer. you can use as many numbers after the point as you wish > > If I take the polyline points like the following then the server throws a > CGI wobbly and needs restarting: > > -0.178,0.619 > END # POINTS > END # SYMBOL you've got a comma here, the parser can't recognize two numbers > > > If I take just part of the above then it still doesn't work: > > SYMBOL > NAME 'boulderGeometry' > TYPE VECTOR > FILLED FALSE > POINTS > -0.154 0.236 > -0.111 0.365 > -0.116 0.501 > -0.165 0.616 > -0.170 0.627 > END # POINTS > END # SYMBOL there's a limitation with the vector code that expects all values to be positive when computing the symbol size. I'm hoping this will be fixed in 5.4 / 6.0 regards, thomas From donald.kerr at dkerr.co.uk Mon Dec 29 04:58:26 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 29 Dec 2008 12:58:26 -0000 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: Message-ID: Thomas, Thanks for your prompt reply. >> If I take just part of the above then it still doesn't work: >> >> SYMBOL >> NAME 'boulderGeometry' >> TYPE VECTOR >> FILLED FALSE >> POINTS >> -0.154 0.236 >> -0.111 0.365 >> -0.116 0.501 >> -0.165 0.616 >> -0.170 0.627 >> END # POINTS >> END # SYMBOL > There's a limitation with the vector code that expects all > values to be positive when computing the symbol size. I'm > hoping this will be fixed in 5.4 / 6.0 Is that the reason why the above appears not to work i.e. the size issue? I will try changing everything to a positive number to see if that works. As a side issue, do the positive/negative numbers have a bearing on the anchor point of the symbol or is that always in the centre of the symbol? Many thanks. Regards, Donald From thomas.bonfort at gmail.com Mon Dec 29 05:06:17 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 29 Dec 2008 14:06:17 +0100 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: References: Message-ID: On Mon, Dec 29, 2008 at 13:58, Donald Kerr wrote: > Thomas, > > Thanks for your prompt reply. > >>> If I take just part of the above then it still doesn't work: >>> >>> SYMBOL >>> NAME 'boulderGeometry' >>> TYPE VECTOR >>> FILLED FALSE >>> POINTS >>> -0.154 0.236 >>> -0.111 0.365 >>> -0.116 0.501 >>> -0.165 0.616 >>> -0.170 0.627 >>> END # POINTS >>> END # SYMBOL > >> There's a limitation with the vector code that expects all >> values to be positive when computing the symbol size. I'm >> hoping this will be fixed in 5.4 / 6.0 > > Is that the reason why the above appears not to work i.e. the size issue? I > will try changing everything to a positive number to see if that works. probably > > As a side issue, do the positive/negative numbers have a bearing on the > anchor point of the symbol or is that always in the centre of the symbol? as of now, the symbol is centered on the anchor point. I'd be in favor of having a way to specify the anchor point, either by fixing it on 0,0 , or by specifying it alongside the symbol, eg ANCHORPOINT 0.3 2 regards, thomas From donald.kerr at dkerr.co.uk Mon Dec 29 06:13:39 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 29 Dec 2008 14:13:39 -0000 Subject: [mapserver-users] LABEL - POSITION and FONT Calculations In-Reply-To: Message-ID: <4AAB06B2B6D84CE49BA51ABE32C4FADD@DELL> I have a problem that has me stumped. I am trying to place text on a map as a LABEL which I can successfully do with the following code: LAYER CONNECTIONTYPE postgis NAME "CartographicText" CONNECTION "user=postgres dbname=MasterMap host=localhost" DATA "geom FROM (SELECT toid, featurecode, textstring, orientation/10 AS orientation, fontnumber, anchorposition, textstyle, geom FROM cartographictext) AS foo USING UNIQUE toid" METADATA "IMAGEFORMAT" "AGGA" END STATUS DEFAULT MINSCALEDENOM 1 MAXSCALEDENOM 1300 SYMBOLSCALEDENOM 1250 TYPE ANNOTATION LABELITEM textstring CLASS # Road Name Or Classification EXPRESSION ([featurecode] = 10169) LABEL TYPE truetype FONT arial SIZE 10 MAXSIZE 30 MINSIZE 0 COLOR 0 0 0 ANTIALIAS TRUE ANGLE [orientation] END # LABEL END # CLASS CLASS # Building or Structure Text EXPRESSION ([featurecode] = 10026) LABEL TYPE truetype FONT arial SIZE 7 MAXSIZE 21 MINSIZE 0 COLOR 0 0 0 ANTIALIAS TRUE ANGLE [orientation] END # LABEL END # CLASS END # LAYER I want to add POSITION based on [anchorposition] from the database. The database grid for anchorposition is as follows: 2 5 8 1 4 7 0 3 6 Whereas MapServer is as follows ul uc ur cl cc cr ll lc lr Which is probably: 0 1 2 3 4 5 6 7 8 The question is: Is it possible to take the values from the database and convert them for use within the LABEL e.g. 2 = ul = "POSITION ul" or 5 = uc = "POSITION uc"? I would also like to be able to change the Font based on [fontnumber] from the database e.g. 0 = Arial = "FONT arial" or 1 = Times = "FONT times" Are these things possible? Many thanks. Regards, Donald Kerr From David.Fawcett at state.mn.us Mon Dec 29 06:50:33 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 29 Dec 2008 08:50:33 -0600 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA08F@s-sp22.pca.state.mn.us> Another potential solution would be to create a true type font character and use that as your symbol. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Monday, December 29, 2008 7:06 AM To: Donald Kerr Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer Symbol Conversion from Polyline Points On Mon, Dec 29, 2008 at 13:58, Donald Kerr wrote: > Thomas, > > Thanks for your prompt reply. > >>> If I take just part of the above then it still doesn't work: >>> >>> SYMBOL >>> NAME 'boulderGeometry' >>> TYPE VECTOR >>> FILLED FALSE >>> POINTS >>> -0.154 0.236 >>> -0.111 0.365 >>> -0.116 0.501 >>> -0.165 0.616 >>> -0.170 0.627 >>> END # POINTS >>> END # SYMBOL > >> There's a limitation with the vector code that expects all values to >> be positive when computing the symbol size. I'm hoping this will be >> fixed in 5.4 / 6.0 > > Is that the reason why the above appears not to work i.e. the size > issue? I will try changing everything to a positive number to see if > that works. probably > > As a side issue, do the positive/negative numbers have a bearing on > the anchor point of the symbol or is that always in the centre of the > symbol? as of now, the symbol is centered on the anchor point. I'd be in favor of having a way to specify the anchor point, either by fixing it on 0,0 , or by specifying it alongside the symbol, eg ANCHORPOINT 0.3 2 regards, thomas _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Mon Dec 29 07:00:20 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 29 Dec 2008 15:00:20 -0000 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA08F@s-sp22.pca.state.mn.us> Message-ID: > Another potential solution would be to create a true > type font character and use that as your symbol. That might be worth a try. I'll be working on this problem later today wo will give it a go and see how I get on. I also want to try getting the polyline points into a vector format just to satisfy myself that it can be done that way. The TTF solution might be a bit neater and easier. Many thanks. Regards, Donald From jose.maria.michia at gmail.com Mon Dec 29 07:32:35 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Mon, 29 Dec 2008 13:32:35 -0200 Subject: [mapserver-users] LABEL - POSITION and FONT Calculations In-Reply-To: <4AAB06B2B6D84CE49BA51ABE32C4FADD@DELL> References: <4AAB06B2B6D84CE49BA51ABE32C4FADD@DELL> Message-ID: 2008/12/29 Donald Kerr : > I have a problem that has me stumped. > > I am trying to place text on a map as a LABEL which I can successfully do > with the following code: > > LAYER CONNECTIONTYPE postgis > NAME "CartographicText" > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM (SELECT toid, featurecode, textstring, > orientation/10 AS orientation, fontnumber, anchorposition, textstyle, geom > FROM cartographictext) AS foo USING UNIQUE toid" > > METADATA > "IMAGEFORMAT" "AGGA" > END > > STATUS DEFAULT > > MINSCALEDENOM 1 > MAXSCALEDENOM 1300 > SYMBOLSCALEDENOM 1250 > > TYPE ANNOTATION > > LABELITEM textstring > > CLASS > # Road Name Or Classification > EXPRESSION ([featurecode] = 10169) > LABEL > TYPE truetype > FONT arial > SIZE 10 > MAXSIZE 30 > MINSIZE 0 > COLOR 0 0 0 > ANTIALIAS TRUE > ANGLE [orientation] > END # LABEL > END # CLASS > > CLASS > # Building or Structure Text > EXPRESSION ([featurecode] = 10026) > LABEL > TYPE truetype > FONT arial > SIZE 7 > MAXSIZE 21 > MINSIZE 0 > COLOR 0 0 0 > ANTIALIAS TRUE > ANGLE [orientation] > END # LABEL > END # CLASS > > END # LAYER > > I want to add POSITION based on [anchorposition] from the database. > > The database grid for anchorposition is as follows: > > 2 5 8 > 1 4 7 > 0 3 6 > > Whereas MapServer is as follows > > ul uc ur > cl cc cr > ll lc lr > > Which is probably: > > 0 1 2 > 3 4 5 > 6 7 8 > > The question is: Is it possible to take the values from the database and > convert them for use within the LABEL e.g. 2 = ul = "POSITION ul" or 5 = uc > = "POSITION uc"? I think that, yes! The numeric values for these constants are defined in mapserv.h: enum MS_POSITIONS_ENUM {MS_UL=101, MS_LR, MS_UR, MS_LL, MS_CR, MS_CL, MS_UC, MS_LC, MS_CC, MS_AUTO, MS_XY , MS_FOLLOW}; The positions following to the MS_UL, adopt their values automaticly (MS_LR=102, and so on). > I would also like to be able to change the Font based on [fontnumber] from > the database e.g. 0 = Arial = "FONT arial" or 1 = Times = "FONT times" > > Are these things possible? Yes again. You must define your fonts in a FONTSET file. These file have entries like this one: "times /archivos/mapping/fonts/times.ttf arial /archivos/mapping/fonts/arial.ttf ..." The first column, is the name of the font, and the second column is the full path to the font. You can choose the name, so you can choose a number as font name: 0 /archivos/mapping/fonts/times.ttf 1 /archivos/mapping/fonts/arial.ttf ... I'm not sure if numbers are allowed in font names. Anyway, you can do some string manipulation to get the desired result. > Many thanks. > > Regards, > > Donald Kerr > I hope I have understood. And I hope that you understand myself. Saludos Jos? Mar?a From hobu.inc at gmail.com Mon Dec 29 08:15:39 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Mon, 29 Dec 2008 10:15:39 -0600 Subject: [mapserver-users] Re: Update: MapServer Documentation Effort In-Reply-To: <49514EB0.8080801@zeelandnet.nl> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA07D@s-sp22.pca.state.mn.us> <17F8A296-6CAA-4582-8BB9-F82D96BFBA67@gmail.com> <49514EB0.8080801@zeelandnet.nl> Message-ID: <1710FB84-2C44-4AC8-A30D-13285AC1142C@gmail.com> A reminder to let you know that the CNAME for mapserver.gis.umn.edu will be moving to mapserver.osgeo.org tomorrow, which coincides with our migration to the new website It may take a day or so for DNS to propagate. http://mapserver.osgeo.org Howard From Bob.Basques at ci.stpaul.mn.us Mon Dec 29 08:28:18 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 29 Dec 2008 10:28:18 -0600 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points Message-ID: <4958A642020000A80000FA90@jeckle> All, I would vote for both the 0,0 anchoring by default and the use of the ANCHORPOINT function. These things gave me no end of problems when I first started out with MapServer. Took a while to figure out how to anchor oddly shaped symbols for example. bobb > > As a side issue, do the positive/negative numbers have a bearing on the > anchor point of the symbol or is that always in the centre of the symbol? as of now, the symbol is centered on the anchor point. I'd be in favor of having a way to specify the anchor point, either by fixing it on 0,0 , or by specifying it alongside the symbol, eg ANCHORPOINT 0.3 2 regards, thomas _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Dec 29 09:41:46 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 29 Dec 2008 11:41:46 -0600 Subject: [mapserver-users] LABEL - POSITION and FONT Calculations In-Reply-To: <4AAB06B2B6D84CE49BA51ABE32C4FADD@DELL> References: <4AAB06B2B6D84CE49BA51ABE32C4FADD@DELL> Message-ID: <4958B779.5157.008F.0@dnr.state.mn.us> Hi Donald: > The question is: Is it possible to take the values from the database and > convert them for use within the LABEL e.g. 2 = ul = "POSITION ul" or 5 = uc > = "POSITION uc"? At the moment POSITION is not bindable. If you file a bug then that can be changed. Once changed you could use a PostgreSQL case statement to map your position codes to MapServer values (e.g. 1 => UL or whatever). > I would also like to be able to change the Font based on [fontnumber] from > the database e.g. 0 = Arial = "FONT arial" or 1 = Times = "FONT times" Fonts are bindable so you'd just need a case statement to map your codes to font names that MapServer recognizes. Steve From donald.kerr at dkerr.co.uk Mon Dec 29 13:34:14 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 29 Dec 2008 21:34:14 -0000 Subject: [mapserver-users] LABEL - POSITION and FONT Calculations In-Reply-To: <4958B779.5157.008F.0@dnr.state.mn.us> Message-ID: <5D58F8CE57F74F1BAC6E294D610ECC1C@DELL> Steve, >> The question is: Is it possible to take the values from the database and >> convert them for use within the LABEL e.g. 2 = ul = "POSITION ul" or 5 = uc >> = "POSITION uc"? > At the moment POSITION is not bindable. If you file a bug then that can be changed. Once changed > you could use a PostgreSQL case statement to map your position codes to MapServer values (e.g. > 1 => UL or whatever). >> I would also like to be able to change the Font based on [fontnumber] from >> the database e.g. 0 = Arial = "FONT arial" or 1 = Times = "FONT times" > Fonts are bindable so you'd just need a case statement to map your codes to font names that > MapServer recognizes. Is it possible to create the case statement in MapServer e.g. "SELECT Geom FROM () USING UNIQUE oid"? If you have any experience of doing this can you pen a quick example for me please? Many thanks. Regards, Donald From Steve.Lime at dnr.state.mn.us Mon Dec 29 13:41:36 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 29 Dec 2008 15:41:36 -0600 Subject: [mapserver-users] LABEL - POSITION and FONT Calculations In-Reply-To: <5D58F8CE57F74F1BAC6E294D610ECC1C@DELL> References: <4958B779.5157.008F.0@dnr.state.mn.us> <5D58F8CE57F74F1BAC6E294D610ECC1C@DELL> Message-ID: <4958EFB0.5157.008F.0@dnr.state.mn.us> Here's one: DATA "point FROM (select *, OID, substring(station from 2) as station_no_char, (case when current is null or tstamp_24hr is null or (now()-tstamp) > interval '1 day' then 0 when current > tstamp_24hr then 1 when current < tstamp_24hr then 2 else 3 end) as trend from station_interval_series where var=232) as foo USING UNIQUE OID USING SRID=-1" I create a trend column based on time intervals. Output is 0, 1, or 3. Steve >>> On 12/29/2008 at 3:34 PM, in message <5D58F8CE57F74F1BAC6E294D610ECC1C at DELL>, "Donald Kerr" wrote: > Steve, > >>> The question is: Is it possible to take the values from the database and >>> convert them for use within the LABEL e.g. 2 = ul = "POSITION ul" or 5 = > uc >>> = "POSITION uc"? > >> At the moment POSITION is not bindable. If you file a bug then that can be > changed. Once changed >> you could use a PostgreSQL case statement to map your position codes to > MapServer values (e.g. >> 1 => UL or whatever). > >>> I would also like to be able to change the Font based on [fontnumber] > from >>> the database e.g. 0 = Arial = "FONT arial" or 1 = Times = "FONT times" > >> Fonts are bindable so you'd just need a case statement to map your codes > to font names that >> MapServer recognizes. > > > Is it possible to create the case statement in MapServer e.g. "SELECT Geom > FROM () USING UNIQUE oid"? > > If you have any experience of doing this can you pen a quick example for me > please? > > Many thanks. > > Regards, > > Donald > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Mon Dec 29 13:51:34 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 29 Dec 2008 21:51:34 -0000 Subject: [mapserver-users] LABEL - POSITION and FONT Calculations In-Reply-To: Message-ID: <989DFB01EA79481F91610BEF2D7445EF@DELL> Jose, All understood. I'll try your suggestions tomorrow. Many thanks. Regards, Donald -----Original Message----- From: Jos? Mar?a Michia [mailto:jose.maria.michia at gmail.com] Sent: 29 December 2008 15:33 To: Donald Kerr Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] LABEL - POSITION and FONT Calculations 2008/12/29 Donald Kerr : > I have a problem that has me stumped. > > I am trying to place text on a map as a LABEL which I can successfully do > with the following code: > > LAYER CONNECTIONTYPE postgis > NAME "CartographicText" > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM (SELECT toid, featurecode, textstring, > orientation/10 AS orientation, fontnumber, anchorposition, textstyle, geom > FROM cartographictext) AS foo USING UNIQUE toid" > > METADATA > "IMAGEFORMAT" "AGGA" > END > > STATUS DEFAULT > > MINSCALEDENOM 1 > MAXSCALEDENOM 1300 > SYMBOLSCALEDENOM 1250 > > TYPE ANNOTATION > > LABELITEM textstring > > CLASS > # Road Name Or Classification > EXPRESSION ([featurecode] = 10169) > LABEL > TYPE truetype > FONT arial > SIZE 10 > MAXSIZE 30 > MINSIZE 0 > COLOR 0 0 0 > ANTIALIAS TRUE > ANGLE [orientation] > END # LABEL > END # CLASS > > CLASS > # Building or Structure Text > EXPRESSION ([featurecode] = 10026) > LABEL > TYPE truetype > FONT arial > SIZE 7 > MAXSIZE 21 > MINSIZE 0 > COLOR 0 0 0 > ANTIALIAS TRUE > ANGLE [orientation] > END # LABEL > END # CLASS > > END # LAYER > > I want to add POSITION based on [anchorposition] from the database. > > The database grid for anchorposition is as follows: > > 2 5 8 > 1 4 7 > 0 3 6 > > Whereas MapServer is as follows > > ul uc ur > cl cc cr > ll lc lr > > Which is probably: > > 0 1 2 > 3 4 5 > 6 7 8 > > The question is: Is it possible to take the values from the database and > convert them for use within the LABEL e.g. 2 = ul = "POSITION ul" or 5 = uc > = "POSITION uc"? I think that, yes! The numeric values for these constants are defined in mapserv.h: enum MS_POSITIONS_ENUM {MS_UL=101, MS_LR, MS_UR, MS_LL, MS_CR, MS_CL, MS_UC, MS_LC, MS_CC, MS_AUTO, MS_XY , MS_FOLLOW}; The positions following to the MS_UL, adopt their values automaticly (MS_LR=102, and so on). > I would also like to be able to change the Font based on [fontnumber] from > the database e.g. 0 = Arial = "FONT arial" or 1 = Times = "FONT times" > > Are these things possible? Yes again. You must define your fonts in a FONTSET file. These file have entries like this one: "times /archivos/mapping/fonts/times.ttf arial /archivos/mapping/fonts/arial.ttf ..." The first column, is the name of the font, and the second column is the full path to the font. You can choose the name, so you can choose a number as font name: 0 /archivos/mapping/fonts/times.ttf 1 /archivos/mapping/fonts/arial.ttf ... I'm not sure if numbers are allowed in font names. Anyway, you can do some string manipulation to get the desired result. > Many thanks. > > Regards, > > Donald Kerr > I hope I have understood. And I hope that you understand myself. Saludos Jos? Mar?a From donald.kerr at dkerr.co.uk Mon Dec 29 13:51:34 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 29 Dec 2008 21:51:34 -0000 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA08F@s-sp22.pca.state.mn.us> Message-ID: <1445C9778D114A44A677ADFFEB2FDF78@DELL> David, > Another potential solution would be to create a true type > font character and use that as your symbol. I gave up on trying to recreate the vector symbols and have been working away to create a font containing all the symbols (about 80 in total). This seems to work very well and provides a neat way of packaging them for use by others. Great suggestion! Many thanks. Regards, Donald From donald.kerr at dkerr.co.uk Mon Dec 29 13:57:07 2008 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 29 Dec 2008 21:57:07 -0000 Subject: [mapserver-users] LABEL - POSITION and FONT Calculations In-Reply-To: <4958EFB0.5157.008F.0@dnr.state.mn.us> Message-ID: Steve, > Here's one: > DATA "point FROM (select *, OID, substring(station from 2) as > station_no_char, (case when current is null or tstamp_24hr is > null or (now()-tstamp) > interval '1 day' then 0 when current > > tstamp_24hr then 1 when current < tstamp_24hr then 2 else 3 end) > as trend from station_interval_series where var=232) as foo > USING UNIQUE OID USING SRID=-1" > I create a trend column based on time intervals. Output is 0, 1, or 3. That'll do very nicely. Many thanks. Regards, Donald From Steve.Lime at dnr.state.mn.us Mon Dec 29 14:10:56 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 29 Dec 2008 16:10:56 -0600 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: References: Message-ID: <4958F690.5157.008F.0@dnr.state.mn.us> I believe the size is computed from the max x, y coordinates and 0,0. That size (and the Style size) is then used to offset the symbol so it is centered accordingly. Typically I always develop vector symbols on a unit square (0 to 1) so that things work predictably. As suggested later in this thread a TTF is a nice alternative for anything complex. I use 'FontCreator' and it works quite nicely. Steve >>> On 12/29/2008 at 6:58 AM, in message , "Donald Kerr" wrote: > Thomas, > > Thanks for your prompt reply. > >>> If I take just part of the above then it still doesn't work: >>> >>> SYMBOL >>> NAME 'boulderGeometry' >>> TYPE VECTOR >>> FILLED FALSE >>> POINTS >>> -0.154 0.236 >>> -0.111 0.365 >>> -0.116 0.501 >>> -0.165 0.616 >>> -0.170 0.627 >>> END # POINTS >>> END # SYMBOL > >> There's a limitation with the vector code that expects all >> values to be positive when computing the symbol size. I'm >> hoping this will be fixed in 5.4 / 6.0 > > Is that the reason why the above appears not to work i.e. the size issue? I > will try changing everything to a positive number to see if that works. > > As a side issue, do the positive/negative numbers have a bearing on the > anchor point of the symbol or is that always in the centre of the symbol? > > Many thanks. > > Regards, > > Donald > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Dec 29 16:25:05 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 29 Dec 2008 18:25:05 -0600 Subject: [mapserver-users] MapServer Website Migration Message-ID: <49591601.5157.008F.0@dnr.state.mn.us> Hi all: Perhaps you've already noticed the change, but regardless, the MapServer PSC is pleased to announce the migration of the MapServer website to a new domain and platform. This move completes the MapServer migration of services to OSGeo. It also marks the end of an era. For years the MapServer project has been hosted by the University of Minnesota (UMN) and this move completes the MapServer migration of services to OSGeo. I am grateful for the long-term support of Dr. Tom Burk and his staff, especially Trent Erikson. Without their efforts the project would not be where it is today. Infrastructure is a thankless job! The work to migrate the website was funded by the U.S. Army Corps of Engineers and principally accomplished by Howard Butler and Jeff McKenna. If you run into them make sure to buy them a beer. ;-) Thanks to OSGeo for the infrastructure necessary to support the website (and mailing lists, and wiki and svn - you get the idea). Special thanks to Chris Schmidt for a bunch of document conversion work and to Thomas Bonfort and Tom Kralidis for the nifty OpenLayers/MapServer interface on the new home page. As with anything new there are likely to be bugs or omissions with the new website. We ask for your patience. For the moment, please report bugs or omissions to mapserver-users or file a bug in trac (http://trac.osgeo.org/mapserver) and someone will take care of it. Oh, the site, it's at: http://mapserver.osgeo.org/ The old address will redirect folks for some time to come... Steve From bob.b at gritechnologies.com Mon Dec 29 17:41:21 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Mon, 29 Dec 2008 19:41:21 -0600 Subject: [mapserver-users] MapServer Website Migration In-Reply-To: <49591601.5157.008F.0@dnr.state.mn.us> References: <49591601.5157.008F.0@dnr.state.mn.us> Message-ID: <49597C41.60005@gritechnologies.com> All, Hey, is there a link to the mapfile being used for the OpenStreetMap data in the map. bobb Steve Lime wrote: > Hi all: Perhaps you've already noticed the change, but regardless, the MapServer PSC is pleased to > announce the migration of the MapServer website to a new domain and platform. This move completes > the MapServer migration of services to OSGeo. > > It also marks the end of an era. For years the MapServer project has been hosted by the University > of Minnesota (UMN) and this move completes the MapServer migration of services to OSGeo. I am > grateful for the long-term support of Dr. Tom Burk and his staff, especially Trent Erikson. Without > their efforts the project would not be where it is today. Infrastructure is a thankless job! > > The work to migrate the website was funded by the U.S. Army Corps of Engineers and principally > accomplished by Howard Butler and Jeff McKenna. If you run into them make sure to buy them a > beer. ;-) Thanks to OSGeo for the infrastructure necessary to support the website (and mailing lists, > and wiki and svn - you get the idea). > > Special thanks to Chris Schmidt for a bunch of document conversion work and to Thomas Bonfort > and Tom Kralidis for the nifty OpenLayers/MapServer interface on the new home page. > > As with anything new there are likely to be bugs or omissions with the new website. We ask for > your patience. For the moment, please report bugs or omissions to mapserver-users or file a bug > in trac (http://trac.osgeo.org/mapserver) and someone will take care of it. > > Oh, the site, it's at: > > http://mapserver.osgeo.org/ > > The old address will redirect folks for some time to come... > > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From David at itbeyond.com.au Mon Dec 29 19:38:41 2008 From: David at itbeyond.com.au (David Martin) Date: Tue, 30 Dec 2008 12:38:41 +0900 Subject: [mapserver-users] RE: Symbol Style Angle Seems Incorrect (MapServer 5.0.2) In-Reply-To: <20081229125839.E5700E00789@lists.osgeo.org> References: <20081229125839.E5700E00789@lists.osgeo.org> Message-ID: <9C37154DC7C8074FBC34214363755B7C28072F@ITB-SVR-01.itbeyond.local> I found some TRAC history on this issue and it appears to have been reported. I have also worked around the problem by changing the | char to a - character and increasing the symbol size in the map file. Just wanted to post this update for other looking at the same issue. Regards David Martin From subha at gslab.com Tue Dec 30 02:45:47 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Tue, 30 Dec 2008 16:15:47 +0530 Subject: [mapserver-users] Image not rendered on large monitors. In-Reply-To: <49591601.5157.008F.0@dnr.state.mn.us> References: <49591601.5157.008F.0@dnr.state.mn.us> Message-ID: <4959FBDB.7000103@gslab.com> Hi, We have built a map based web portal using Openlayers and Mapserver 5.0.2. We have multiple layers being rendered using Mapserver. But we are facing an issue here. On large monitors with the resolutions, "1680 x 1050", "1856 x 1392" ,"1920 x 1080"(21 inches and above), mapserver doesn't render images. It throws an error saying "WMS server error.Image size out of range,Width and height must be between 1 and 2048 pixels." I have tried setting the "MAXSIZE" as 2048 in my map file but it doesn't seem to work. My mapfile is as follows: map size 725 800 imagetype png imagecolor 225 225 225 projection "init=epsg:4326" end extent 60 0 100 40 maxsize 2048 outputformat name "jpg" driver "GD/JPEG" extension "jpg" formatoption "QUALITY=85" end layer name xyz connectiontype postgis connection "user= abc dbname=qwe password=fgg host=localhost" group world type polygon status on data "topology from table" class style width 3 outlinecolor 000 000 255 end end end end Is there something wrong that in the mapfile? Or if there is any other solution that someone knows, please let me know. Thanks for the help. Regards, Subha From thomas.bonfort at gmail.com Tue Dec 30 02:47:31 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 30 Dec 2008 11:47:31 +0100 Subject: [mapserver-users] Image not rendered on large monitors. In-Reply-To: <4959FBDB.7000103@gslab.com> References: <49591601.5157.008F.0@dnr.state.mn.us> <4959FBDB.7000103@gslab.com> Message-ID: hi, set maxsize to something bigger, eg 4096 regards, thomas On Tue, Dec 30, 2008 at 11:45, Subha Ramakrishnan wrote: > Hi, > > We have built a map based web portal using Openlayers and Mapserver 5.0.2. > We have multiple layers being rendered using Mapserver. > But we are facing an issue here. > On large monitors with the resolutions, "1680 x 1050", "1856 x 1392" ,"1920 > x 1080"(21 inches and above), mapserver doesn't render images. > It throws an error saying "WMS server error.Image size out of range,Width > and height must be between 1 and 2048 pixels." > > I have tried setting the "MAXSIZE" as 2048 in my map file but it doesn't > seem to work. > > My mapfile is as follows: > > map > size 725 800 > imagetype png > imagecolor 225 225 225 > projection > "init=epsg:4326" > end > extent 60 0 100 40 > maxsize 2048 > outputformat > name "jpg" > driver "GD/JPEG" > extension "jpg" > formatoption "QUALITY=85" > end > layer > name xyz > connectiontype postgis > connection "user= abc dbname=qwe password=fgg host=localhost" > group world > type polygon > status on > data "topology from table" > class > style > width 3 > outlinecolor 000 000 255 > end > end > end > end > > Is there something wrong that in the mapfile? Or if there is any other > solution that someone knows, please let me know. > > Thanks for the help. > > Regards, > Subha > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Tue Dec 30 03:23:55 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 30 Dec 2008 12:23:55 +0100 Subject: [mapserver-users] MapServer Website Migration In-Reply-To: <49597C41.60005@gritechnologies.com> References: <49591601.5157.008F.0@dnr.state.mn.us> <49597C41.60005@gritechnologies.com> Message-ID: On Tue, Dec 30, 2008 at 02:41, Bob Basques wrote: > All, > > Hey, is there a link to the mapfile being used for the OpenStreetMap data in > the map. > > It isn't ready for publication yet. It will be soon though. thomas From subha at gslab.com Tue Dec 30 03:29:49 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Tue, 30 Dec 2008 16:59:49 +0530 Subject: [mapserver-users] Image not rendered on large monitors. In-Reply-To: References: <49591601.5157.008F.0@dnr.state.mn.us> <4959FBDB.7000103@gslab.com> Message-ID: <495A062D.7000209@gslab.com> Hi, Thanks a lot for the reply. I will try that and check if it works. Thanks again. Subha thomas bonfort wrote: > hi, > set maxsize to something bigger, eg 4096 > > regards, > thomas > > On Tue, Dec 30, 2008 at 11:45, Subha Ramakrishnan wrote: > >> Hi, >> >> We have built a map based web portal using Openlayers and Mapserver 5.0.2. >> We have multiple layers being rendered using Mapserver. >> But we are facing an issue here. >> On large monitors with the resolutions, "1680 x 1050", "1856 x 1392" ,"1920 >> x 1080"(21 inches and above), mapserver doesn't render images. >> It throws an error saying "WMS server error.Image size out of range,Width >> and height must be between 1 and 2048 pixels." >> >> I have tried setting the "MAXSIZE" as 2048 in my map file but it doesn't >> seem to work. >> >> My mapfile is as follows: >> >> map >> size 725 800 >> imagetype png >> imagecolor 225 225 225 >> projection >> "init=epsg:4326" >> end >> extent 60 0 100 40 >> maxsize 2048 >> outputformat >> name "jpg" >> driver "GD/JPEG" >> extension "jpg" >> formatoption "QUALITY=85" >> end >> layer >> name xyz >> connectiontype postgis >> connection "user= abc dbname=qwe password=fgg host=localhost" >> group world >> type polygon >> status on >> data "topology from table" >> class >> style >> width 3 >> outlinecolor 000 000 255 >> end >> end >> end >> end >> >> Is there something wrong that in the mapfile? Or if there is any other >> solution that someone knows, please let me know. >> >> Thanks for the help. >> >> Regards, >> Subha >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From cemre.yilmaz at gmail.com Tue Dec 30 03:32:47 2008 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Tue, 30 Dec 2008 13:32:47 +0200 Subject: [mapserver-users] umn map server requested url not found on this server error Message-ID: <28babe2b0812300332w49185431pbe16aae6541ab26a@mail.gmail.com> Hello everybody; I have installed ms4w on my PC succesfully. I have typed "http://localhost/" on my web browser and main page of map server opened. After I tested if the server is working properly then I have create a folder called "tfc" in * C:/ms4w/apps* and I have created a configuration file in the folder * c:/ms4w/httpd.d* folder called *httpd_tfc.conf *and I typed; Alias /tfc/ "/ms4w/apps/tfc/" AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all When I typed "http://localhost/tfc/" on web browser normally I should see the empty file but there is a message on the opened page that "server requested url not found on this server " error 404. What should be the reason? I don't understand what is wrong. Why server can't find the folder. Note: I have restarted the apache server after the configuration file. Could you please inform me about this problem it is very urgent. Thanks a lot. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valemunoz at gmail.com Tue Dec 30 05:03:13 2008 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 30 Dec 2008 10:03:13 -0300 Subject: [mapserver-users] question Message-ID: <4b56aefe0812300503m1caf68edya78e5a63f3688ec@mail.gmail.com> Hi I have problems with symbol, this is my code: #Oneway nivel 4 LAYER NAME 'calle' MAXSCALE 5000 TYPE LINE DATA 'calle.shp' METADATA 'wms_title' 'calle' END STATUS DEFAULT TRANSPARENCY 80 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') STYLE SYMBOL 'flecha_ambos' SIZE 4 #ANGLE 190 #OUTLINECOLOR 161 189 196 #COLOR 0 0 0 END END SYMBOL 'flecha_ambos' is a PNG image, my problem is that the image appears throughout the line. if i change the type of layer to POINT, the image don't follow the line. attach image of the map.. can somebody help me please. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_map_line.JPG Type: image/jpeg Size: 18048 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_map_POINT.JPG Type: image/jpeg Size: 11852 bytes Desc: not available URL: From valemunoz at gmail.com Tue Dec 30 05:15:17 2008 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 30 Dec 2008 10:15:17 -0300 Subject: [mapserver-users] Question Message-ID: <4b56aefe0812300515j11fba959id164b68d8d3d5f50@mail.gmail.com> Hi I have problems with symbol, this is my code: #Oneway nivel 4 LAYER NAME 'calle' MAXSCALE 5000 TYPE LINE DATA 'calle.shp' METADATA 'wms_title' 'calle' END STATUS DEFAULT TRANSPARENCY 80 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') STYLE SYMBOL 'flecha_ambos' SIZE 4 #ANGLE 190 #OUTLINECOLOR 161 189 196 #COLOR 0 0 0 END END SYMBOL 'flecha_ambos' is a PNG image, my problem is that the image appears throughout the line. if i change the type of layer to POINT, the image don't follow the line. attach image of the map.. can somebody help me please. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_map_line.JPG Type: image/jpeg Size: 10678 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_map_POINT.JPG Type: image/jpeg Size: 7569 bytes Desc: not available URL: From thomas.bonfort at gmail.com Tue Dec 30 05:38:58 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 30 Dec 2008 14:38:58 +0100 Subject: [mapserver-users] question In-Reply-To: <4b56aefe0812300503m1caf68edya78e5a63f3688ec@mail.gmail.com> References: <4b56aefe0812300503m1caf68edya78e5a63f3688ec@mail.gmail.com> Message-ID: hi, add GAP -20 to your symbol definition, for a 20 pixel gap between arrows regards, thomas On Tue, Dec 30, 2008 at 14:03, Valeria Mu?oz wrote: > Hi > I have problems with symbol, this is my code: > > #Oneway nivel 4 > LAYER > NAME 'calle' > MAXSCALE 5000 > TYPE LINE > DATA 'calle.shp' > METADATA > 'wms_title' 'calle' > END > STATUS DEFAULT > TRANSPARENCY 80 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > CLASS > EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') > STYLE > SYMBOL 'flecha_ambos' > SIZE 4 > #ANGLE 190 > #OUTLINECOLOR 161 189 196 > #COLOR 0 0 0 > END > END > > SYMBOL 'flecha_ambos' is a PNG image, my problem is that the image appears > throughout the line. if i change the type of layer to POINT, the image don't > follow the line. > attach image of the map.. > > can somebody help me please. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From havard.tveite at umb.no Tue Dec 30 05:09:44 2008 From: havard.tveite at umb.no (Havard Tveite) Date: Tue, 30 Dec 2008 14:09:44 +0100 Subject: [mapserver-users] MapServer Symbol Conversion from Polyline Points In-Reply-To: <4958A642020000A80000FA90@jeckle> References: <4958A642020000A80000FA90@jeckle> Message-ID: <495A1D98.40809@umb.no> Precise symbol placement is among the issues that are being addressed in RFC45 (Symbology, Labeling, and Cartography Improvements) In RFC45, a new tag called CENTER or ORIGIN is proposed. ANCHORPOINT is perhaps a better name for it. This tag could be useful to have available both with the SYMBOL and with the STYLE. Cite from RFC45: CENTER/ORIGIN [x y] Defines the centre of the symbol using decimal pixels (x axis increasing to the right, y axis increasing downwards). * Is used for placing a point symbol on the map or on a ?decorated? line * Defines the centre of rotation if an ANGLE is specified for point symbols. * Default value is the centre of the symbol?s bounding box. * Applies to TYPE ellipse, vector, pixmap, truetype. H?vard Tveite Bob Basques wrote: > All, > > I would vote for both the 0,0 anchoring by default and the use of the ANCHORPOINT function. These things gave me no end of problems when I first started out with MapServer. Took a while to figure out how to anchor oddly shaped symbols for example. > > bobb > > > >> As a side issue, do the positive/negative numbers have a bearing on the >> anchor point of the symbol or is that always in the centre of the symbol? > as of now, the symbol is centered on the anchor point. I'd be in favor > of having a way to specify the anchor point, either by fixing it on > 0,0 , or by specifying it alongside the symbol, eg ANCHORPOINT 0.3 2 > > regards, > thomas From valemunoz at gmail.com Tue Dec 30 05:51:41 2008 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 30 Dec 2008 10:51:41 -0300 Subject: [mapserver-users] question In-Reply-To: References: <4b56aefe0812300503m1caf68edya78e5a63f3688ec@mail.gmail.com> Message-ID: <4b56aefe0812300551u6ff20bcbme040110056c3c111@mail.gmail.com> thank thomas, but now i have other problem, the arrow don't follow the line can you help me please? attach image of the map.. 2008/12/30 thomas bonfort > hi, > add > GAP -20 > to your symbol definition, for a 20 pixel gap between arrows > > regards, > thomas > > On Tue, Dec 30, 2008 at 14:03, Valeria Mu?oz wrote: > > Hi > > I have problems with symbol, this is my code: > > > > #Oneway nivel 4 > > LAYER > > NAME 'calle' > > MAXSCALE 5000 > > TYPE LINE > > DATA 'calle.shp' > > METADATA > > 'wms_title' 'calle' > > END > > STATUS DEFAULT > > TRANSPARENCY 80 > > PROJECTION > > 'proj=longlat' > > 'ellps=WGS84' > > 'datum=WGS84' > > 'no_defs' > > '' > > END > > CLASS > > EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') > > STYLE > > SYMBOL 'flecha_ambos' > > SIZE 4 > > #ANGLE 190 > > #OUTLINECOLOR 161 189 196 > > #COLOR 0 0 0 > > END > > END > > > > SYMBOL 'flecha_ambos' is a PNG image, my problem is that the image > appears > > throughout the line. if i change the type of layer to POINT, the image > don't > > follow the line. > > attach image of the map.. > > > > can somebody help me please. > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_map.JPG Type: image/jpeg Size: 10338 bytes Desc: not available URL: From thomas.bonfort at gmail.com Tue Dec 30 05:55:14 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 30 Dec 2008 14:55:14 +0100 Subject: [mapserver-users] question In-Reply-To: <4b56aefe0812300551u6ff20bcbme040110056c3c111@mail.gmail.com> References: <4b56aefe0812300503m1caf68edya78e5a63f3688ec@mail.gmail.com> <4b56aefe0812300551u6ff20bcbme040110056c3c111@mail.gmail.com> Message-ID: you've probably left an ANGLE in your style block, no ? On Tue, Dec 30, 2008 at 14:51, Valeria Mu?oz wrote: > thank thomas, but now i have other problem, the arrow don't follow the line > can you help me please? > attach image of the map.. > 2008/12/30 thomas bonfort >> >> hi, >> add >> GAP -20 >> to your symbol definition, for a 20 pixel gap between arrows >> >> regards, >> thomas >> >> On Tue, Dec 30, 2008 at 14:03, Valeria Mu?oz wrote: >> > Hi >> > I have problems with symbol, this is my code: >> > >> > #Oneway nivel 4 >> > LAYER >> > NAME 'calle' >> > MAXSCALE 5000 >> > TYPE LINE >> > DATA 'calle.shp' >> > METADATA >> > 'wms_title' 'calle' >> > END >> > STATUS DEFAULT >> > TRANSPARENCY 80 >> > PROJECTION >> > 'proj=longlat' >> > 'ellps=WGS84' >> > 'datum=WGS84' >> > 'no_defs' >> > '' >> > END >> > CLASS >> > EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') >> > STYLE >> > SYMBOL 'flecha_ambos' >> > SIZE 4 >> > #ANGLE 190 >> > #OUTLINECOLOR 161 189 196 >> > #COLOR 0 0 0 >> > END >> > END >> > >> > SYMBOL 'flecha_ambos' is a PNG image, my problem is that the image >> > appears >> > throughout the line. if i change the type of layer to POINT, the image >> > don't >> > follow the line. >> > attach image of the map.. >> > >> > can somebody help me please. >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > From valemunoz at gmail.com Tue Dec 30 06:11:11 2008 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 30 Dec 2008 11:11:11 -0300 Subject: [mapserver-users] question In-Reply-To: References: <4b56aefe0812300503m1caf68edya78e5a63f3688ec@mail.gmail.com> <4b56aefe0812300551u6ff20bcbme040110056c3c111@mail.gmail.com> Message-ID: <4b56aefe0812300611w68113362yee4826174999ba99@mail.gmail.com> Thomas you are absolutely right, thank you for everything now works 2008/12/30 thomas bonfort > you've probably left an ANGLE in your style block, no ? > > On Tue, Dec 30, 2008 at 14:51, Valeria Mu?oz wrote: > > thank thomas, but now i have other problem, the arrow don't follow the > line > > can you help me please? > > attach image of the map.. > > 2008/12/30 thomas bonfort > >> > >> hi, > >> add > >> GAP -20 > >> to your symbol definition, for a 20 pixel gap between arrows > >> > >> regards, > >> thomas > >> > >> On Tue, Dec 30, 2008 at 14:03, Valeria Mu?oz > wrote: > >> > Hi > >> > I have problems with symbol, this is my code: > >> > > >> > #Oneway nivel 4 > >> > LAYER > >> > NAME 'calle' > >> > MAXSCALE 5000 > >> > TYPE LINE > >> > DATA 'calle.shp' > >> > METADATA > >> > 'wms_title' 'calle' > >> > END > >> > STATUS DEFAULT > >> > TRANSPARENCY 80 > >> > PROJECTION > >> > 'proj=longlat' > >> > 'ellps=WGS84' > >> > 'datum=WGS84' > >> > 'no_defs' > >> > '' > >> > END > >> > CLASS > >> > EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') > >> > STYLE > >> > SYMBOL 'flecha_ambos' > >> > SIZE 4 > >> > #ANGLE 190 > >> > #OUTLINECOLOR 161 189 196 > >> > #COLOR 0 0 0 > >> > END > >> > END > >> > > >> > SYMBOL 'flecha_ambos' is a PNG image, my problem is that the image > >> > appears > >> > throughout the line. if i change the type of layer to POINT, the image > >> > don't > >> > follow the line. > >> > attach image of the map.. > >> > > >> > can somebody help me please. > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Dec 30 06:16:16 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 30 Dec 2008 09:16:16 -0500 Subject: [mapserver-users] umn map server requested url not found on this server error In-Reply-To: <28babe2b0812300332w49185431pbe16aae6541ab26a@mail.gmail.com> References: <28babe2b0812300332w49185431pbe16aae6541ab26a@mail.gmail.com> Message-ID: <495A2D30.2020300@gatewaygeomatics.com> cemre yilmaz wrote: > Hello everybody; > > I have installed ms4w on my PC succesfully. I have typed > "http://localhost/" on my web browser and main page of map server > opened. After I tested if the server is working properly then I have > create a folder called "tfc" in *C:/ms4w/apps* and I have created a > configuration file in the folder *c:/ms4w/httpd.d* folder called > *httpd_tfc.conf *and I typed; > > Alias /tfc/ "/ms4w/apps/tfc/" > > AllowOverride None > Options Indexes FollowSymLinks Multiviews > Order allow,deny > Allow from all > > > > When I typed "http://localhost/tfc/" on web browser normally I should > see the empty file but there is a message on the opened page that > "server requested url not found on this server " error 404. What should > be the reason? I don't understand what is wrong. Why server can't find > the folder. > > Note: I have restarted the apache server after the configuration file. > > Could you please inform me about this problem it is very urgent. Thanks > a lot. > > Your steps look valid. I don't have the answer, but if that was me I would try the following: - I might purposely make an error in httpd_tfc.conf (such as have "AllowOverride None1") and open a Command window and execute c:/ms4w/apache-restart.bat .......just to verify that an error is reported and I am modifying the correct Apache - I might also download another MS4W add-on package (such as the "PHP/MapScript Sample Application") and restart apache, and see if I can access it in the web browser _ I would then just copy that add-on folder in /ms4w/apps/ and give the new folder a name, and copy/rename the /ms4w/httpd.d/httpd_gmap.conf file and restart Apache....that process should work if the other add-on application worked in Apache. Happy holidays to all. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From nikos at maich.gr Tue Dec 30 04:45:00 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Tue, 30 Dec 2008 14:45:00 +0200 (EET) Subject: [mapserver-users] First timer with sphidx, shapeindex In-Reply-To: <20081230131406.24096E00C91@lists.osgeo.org> References: <20081230131406.24096E00C91@lists.osgeo.org> Message-ID: <3149.193.218.36.79.1230641100.squirrel@193.218.36.79> Hi, My first time that I will try to query by shape index. I've searched the docs, and have not really found much. I've seen ref's to both shpidx and shapeindex as cgi vars What is the difference, as my ms does not recognize these vars Also, even though I have .shx indexes in my data, do I need to index my shapes with shptree to create a .qix file, or does ms use the .shx files? I would then think ms would handle shpidx vars? I'm using cgi ms and templates, regards, and Happy New Year, nikos From gemerson at WelshCo.com Tue Dec 30 07:51:25 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Tue, 30 Dec 2008 09:51:25 -0600 Subject: [mapserver-users] add symbol to search result In-Reply-To: <46E1D5B1-8AFC-4CF4-A99A-B6E0DF4B5844@gmail.com> References: <46E1D5B1-8AFC-4CF4-A99A-B6E0DF4B5844@gmail.com> Message-ID: <348277DFCE9FF044B3812A6CF459CD37017B5A25@welshmail.welshco.com.local> Attila: If you're using the CGI version of Mapserver, you can insert a point via the URL to represent your search result. Check http://mapserver.osgeo.org/cgi/controls.html?highlight=map_layer (scroll down to "Changing map file parameters via a form or URL) I use dummy layers in my mapfile that defines what the result will look like (such as an arrow, pushpin, house, etc), and how it's labeled (city name, etc). For example, this layer defines a simple labeled arrow: LAYER NAME "pushpin" STATUS off #layer must be specified ON or DEFAULT in URL for it to be drawn TYPE point UNITS dd PROJECTION "init=epsg:4326" END TRANSPARENCY ALPHA #Features get inserted from URL CLASS NAME "Search Result" #For map legend LABEL #Label TEXT gets inserted via URL FONT "arial" TYPE TRUETYPE POSITION ur #label positioned above and to the right of pin symbol SIZE 10 WRAP "%" #newline when % encountered in string BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END STYLE SYMBOL "arrow" #Defined in symbolfile COLOR 0 0 0 SIZE 75 END END END The features are inserted when the CGI is called, by adding them to the URL (or through the equivalent form value). For instance, when I run an address search, I want to plot the XY coordinates of the result, along with some info about the address. In my case, I'm using two form variables in my template that reference "map_layer_pushpin", as described in the Mapserver documentation. Since they're going from a form to the URL, they need to be escaped as " Then when I get the search result, I have a script which sets the form value: document.form[4].value="FEATURE POINTS "+geores+" END TEXT '"+gstreet+"%"+gcity+", "+gstate+" "+gzip+"' END"; And this makes the layer visible by calling another copy of map_layer_pushpin (you can probably just include this in the first reference to the layer, I wanted to keep track of the result and it's STATUS separately from one state to the next). document.eform[5].value="STATUS default"; When the form is submitted, Mapserver inserts the feature points, label text, and status values into the appropriate parts of the dummy layer, and draws a labeled symbol on the map at the point set in my "geores" variable. You can define your own vector symbol in the symbolfile, or reference it to a raster image. Hope that helps. -Gabe -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Borb?s Attila Sent: Monday, December 29, 2008 5:05 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] add symbol to search result Hello, I want to add a symbol to my search result. I have a mysql table with city names and coordinates. If I search the map zoom onto city and I want to add a symbol that shows the search result. How can i do this? Thanx for answers. Attila _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jhagedorn at bannerbkgs.com Tue Dec 30 13:15:41 2008 From: jhagedorn at bannerbkgs.com (Jim Hagedorn) Date: Tue, 30 Dec 2008 15:15:41 -0600 Subject: [mapserver-users] SQL join question Message-ID: <5863BC6EA0494C498F8C7A389EF32E491D968E8638@BannerExg.banner.bannerbkgs.com> I am using OGR in my map file and have a CONNECTION and DATA lines. I have a SQL statement in the DATA. It works when I use it on the ACCESS database that is the Personal GeoDatabase in ESRI but when I put it into the map file I get an error message. It should bring back 33 records and the message says that the search brought back no results. I'm using a left join, which is in the example for OGR and geodatabases but the only join I can make work is an inner join and that doesn't bring back the correct results like the left join does. This is the sql that atleast brings back some results, all be it not the results I am expecting: SELECT * FROM CEMSHEET_2 INNER JOIN milbank_cemetary_UTM ON CEMSHEET_2.LOT=milbank_cemetary_UTM.lot And this one brings back the expected results in access but gives me the no results returned in GeoMoose when I run a search. SELECT CEMSHEET_2.NAME, CEMSHEET_2.LOT, CEMSHEET_2.AGE FROM CEMSHEET_2 LEFT JOIN milbank_cemetary_UTM ON CEMSHEET_2.LOT = milbank_cemetary_UTM.lot >From what I have read in the documentation on mapserver, that the left join is the only join that is suppost to work but I get results when I use inner join. Hope this makes sense. thansk Jim Hagedorn GIS Specialist [cid:image001.gif at 01C96A91.137D49F0] Banner Associates, Inc. 409 22nd Avenue South * PO Box 298 * Brookings, South Dakota 57006 (605) 692-6342 * Fax (605) 692-5714 www.bannerassociates.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 952 bytes Desc: image001.gif URL: From warmerdam at pobox.com Tue Dec 30 19:41:05 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 30 Dec 2008 22:41:05 -0500 Subject: [mapserver-users] SQL join question In-Reply-To: <5863BC6EA0494C498F8C7A389EF32E491D968E8638@BannerExg.banner.bannerbkgs.com> References: <5863BC6EA0494C498F8C7A389EF32E491D968E8638@BannerExg.banner.bannerbkgs.com> Message-ID: <495AE9D1.2040206@pobox.com> Jim Hagedorn wrote: > I am using OGR in my map file and have a CONNECTION and DATA lines. I > have a SQL statement in the DATA. It works when I use it on the ACCESS > database that is the Personal GeoDatabase in ESRI but when I put it into > the map file I get an error message. It should bring back 33 records > and the message says that the search brought back no results. I?m using > a left join, which is in the example for OGR and geodatabases but the > only join I can make work is an inner join and that doesn?t bring back > the correct results like the left join does. > > > > This is the sql that atleast brings back some results, all be it not the > results I am expecting: > > SELECT * > > FROM CEMSHEET_2 INNER JOIN milbank_cemetary_UTM ON > CEMSHEET_2.LOT=milbank_cemetary_UTM.lot > > > > And this one brings back the expected results in access but gives me the > no results returned in GeoMoose when I run a search. > > > > SELECT CEMSHEET_2.NAME, CEMSHEET_2.LOT, CEMSHEET_2.AGE > > FROM CEMSHEET_2 LEFT JOIN milbank_cemetary_UTM ON CEMSHEET_2.LOT = > milbank_cemetary_UTM.lot > > > > From what I have read in the documentation on mapserver, that the left > join is the only join that is suppost to work but I get results when I > use inner join. Jim, If you are using SELECT statements in the DATA statement of an layer using OGR connectiontype, then you need to focus on OGR join support. This will be completely distinct from the MapServer JOIN object. Furthermore, OGR actually passes the SQL through access when you operate on personal geodatabases and so any SQL operation supported by Access should be ok. I'd suggest you do some testing at the commandline with ogrinfo to determine what sort of results OGR produces for different queries. Something like: ogrinfo abc.mdb -sql "select * from NHDPointEventFC" I tried simple queries against a personal geodatabase and I got reasonable results. I didn't try any joins. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent