From janeks.kamerovskis at SILVA.LV Tue Aug 1 02:17:35 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 1 Aug 2006 12:17:35 +0300 Subject: paning with dragging Message-ID: Hi! I can do zooming with: imgext=290243.0+6129147.857143+785177.0+6 482672.142857&imgbox=104+142+462+398 by letting do all calculations to mapserver Can I do in similar way panning, by using drag coordinates? Or should I only use mapext, that is calculated at client side! Thanks in advance! Janeks From szekerest at GMAIL.COM Tue Aug 1 02:33:08 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 1 Aug 2006 11:33:08 +0200 Subject: CSharp Mapscript in WebForm (ASP.NET 2.0) In-Reply-To: <000001c6b518$b9826190$660ba8c0@dld410> Message-ID: Hi David, You may have to embed your manifest file into your mapscript.dll using the mt tool according to Chapter 3.2 of http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile > > - What exactly does unsafe, but locked mean vs. unsafe? > Unsafe means the portion of the code uses global resources (eg variables) without making synchronization when accessing these variables. So multiple threads may cause problems with these components. Unsafe but locked means these sections were identified and the critical sections are protected by global locks. It keeps from the problems coming out, but may result in performance using multiple threaded application models. (Having he locks global for the entire application). For more details see http://mapserver.gis.umn.edu/development/rfc/ms-rfc-15 > - Map config file loading ? is this opening a Mapfile from disk? If > so, would building the Mapfile dynamically remove the issue? The parser strore the state using global variables being protected by locks. Applies basically to creating mapObj by loading a .map file. Creating mapObj from scratch may prevent from this issue. I was thinking of a support for loading the state from plain binary files without using the parser might also help. > > - WMS/WFS ? is it fixable? What is the level of effort (hours / > $$$)? > Are you referring to the WMS/WFS server or client functionality? Best Regards, Tamas Szekeres From pcorti at GMAIL.COM Tue Aug 1 04:02:14 2006 From: pcorti at GMAIL.COM (Paolo Corti) Date: Tue, 1 Aug 2006 04:02:14 -0700 Subject: CSharp Mapscript in WebForm (ASP.NET 2.0) In-Reply-To: <000001c6b518$b9826190$660ba8c0@dld410> Message-ID: Hi, for a working sample of c# ASP NET application with MapScript you can get a look at this tutorial: http://blogs.ugidotnet.org/pcorti/archive/2006/07/28/45532.aspx (thanks to Tamas who helped me to solve some troubles I have got) ciao -- View this message in context: http://www.nabble.com/CSharp-Mapscript-in-WebForm-%28ASP.NET-2.0%29-tf2030990.html#a5592344 Sent from the Mapserver - User forum at Nabble.com. From pcorti at GMAIL.COM Tue Aug 1 04:12:15 2006 From: pcorti at GMAIL.COM (Paolo Corti) Date: Tue, 1 Aug 2006 04:12:15 -0700 Subject: Edit shape file in web MapServer application Message-ID: Hello I developed a simple application to edit shapefile with mapscript this is the sample code to add a point with some attributes to a point shapefile (c#): private void AddPoint(Double x, Double y, String activeLayer, String[,] fieldValues) { //check: this action is valid only for point shapefiles pointObj point = pixel2point(new pointObj(x,y,0,0)); //conver the image point in map point String shapeFullPath = map.shapepath + "\\" + activeLayer + ".shp"; shapefileObj shapefile = new shapefileObj(shapeFullPath,-2); if(shapefile.type!=(int)mapscript.MS_SHAPEFILE_POINT) { //notify action lblInfo.Text = "This action can be performed only on point shapefiles."; } else { /*Alternative way to insert a point in the shapefile using shapeObj: //create line to store point lineObj line = new lineObj(); line.add(point); //create shape shapeObj shape = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POINT); shape.add(line); //add shape to shapefile shapefile.add(shape; */ shapefile.addPoint(point); //add record for dbf table OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + map.shapepath + ";Extended Properties=dBASE IV;User ID=Admin;Password="); cn.Open(); OleDbCommand com = cn.CreateCommand(); //get field list and value list String fieldList = ""; String valueList = ""; for(int i=0; i<(fieldValues.Length/2); i++) { fieldList = fieldList + fieldValues[i,0]; valueList = valueList + "'" + fieldValues[i,1] + "'"; if(i<((fieldValues.Length/2)-1)) { fieldList = fieldList + ", "; valueList = valueList + ", "; } } com.CommandText = "INSERT INTO " + activeLayer + " (" + fieldList + ") VALUES(" + valueList + ")"; com.CommandType = CommandType.Text; com.ExecuteNonQuery(); cn.Close(); //notify action lblInfo.Text = "Point added (" + shapefile.numshapes.ToString() + " features in shapefile)."; } shapefile.Dispose(); } This is what I want to ask here, as I am new to mapscript and MapServer: is it safe to edit shapefile online, can be any thread or cuncurrency issues? At least in my ESRI experience with ArcIMS I know that they don't let you edit a shapefile if it is served on the web (ArcIMS locks it). If you need to edit data you need ArcSDE. So it is strange to me that MapServer give you this edit possibilites, but maybe (I couldn't find anywhere) is it safe to use this capacities only for standalone apps? Or should i convert my data to MySQL or PostGIS? thank you Paolo -- View this message in context: http://www.nabble.com/Edit-shape-file-in-web-MapServer-application-tf2032930.html#a5592464 Sent from the Mapserver - User forum at Nabble.com. From pcorti at GMAIL.COM Tue Aug 1 05:09:38 2006 From: pcorti at GMAIL.COM (Paolo Corti) Date: Tue, 1 Aug 2006 05:09:38 -0700 Subject: Deleting from a shapefile In-Reply-To: <003c01c696d2$b66cf3d0$5d00a8c0@aiandolo> Message-ID: Hi Antonio looks to be the only solution. You have to recreate the shapefile, I have also got in this issue today. I think MapServer developers should implement a shapefileObj.Remove method, as there are methods to add featrues like shapefileObj.Add, shapefileObj.AddPoint etc etc... ciao! -- View this message in context: http://www.nabble.com/Deleting-from-a-shapefile-tf1836861.html#a5593232 Sent from the Mapserver - User forum at Nabble.com. From jmckenna at DMSOLUTIONS.CA Tue Aug 1 05:34:02 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 1 Aug 2006 08:34:02 -0400 Subject: Map File Problem? In-Reply-To: Message-ID: Please always respond to the mailing list. For a shp2img example, see http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img jeff M.L. Jackson wrote: > How do you use the shp2img utitility? I see where it is located. I'm > on a windows machine. I tried running the shp2img.exe file with the -m > option followed by the absolute directory of the map file. My CPU made > a lot of noise and displayed jumbled data in the command prompt. I am > afraid to try it again. Please help. Thanks. -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From dlowther at COORDINATESOLUTIONS.COM Tue Aug 1 06:29:42 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Tue, 1 Aug 2006 08:29:42 -0500 Subject: CSharp Mapscript in WebForm (ASP.NET 2.0) In-Reply-To: Message-ID: Tamas, As usual - your suggestion (mt) worked instantly. Thanks, David Lowther -----Original Message----- From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, August 01, 2006 4:33 AM To: dlowther at coordinatesolutions.com Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] CSharp Mapscript in WebForm (ASP.NET 2.0) Hi David, You may have to embed your manifest file into your mapscript.dll using the mt tool according to Chapter 3.2 of http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile > > - What exactly does unsafe, but locked mean vs. unsafe? > Unsafe means the portion of the code uses global resources (eg variables) without making synchronization when accessing these variables. So multiple threads may cause problems with these components. Unsafe but locked means these sections were identified and the critical sections are protected by global locks. It keeps from the problems coming out, but may result in performance using multiple threaded application models. (Having he locks global for the entire application). For more details see http://mapserver.gis.umn.edu/development/rfc/ms-rfc-15 > - Map config file loading - is this opening a Mapfile from disk? If > so, would building the Mapfile dynamically remove the issue? The parser strore the state using global variables being protected by locks. Applies basically to creating mapObj by loading a .map file. Creating mapObj from scratch may prevent from this issue. I was thinking of a support for loading the state from plain binary files without using the parser might also help. > > - WMS/WFS - is it fixable? What is the level of effort (hours / > $$$)? > Are you referring to the WMS/WFS server or client functionality? Best Regards, Tamas Szekeres From bartvde at XS4ALL.NL Tue Aug 1 06:47:03 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 1 Aug 2006 15:47:03 +0200 Subject: emtpy GetStyles response with 4.8.4? Message-ID: Hi list, I am getting back an empty SLD document when I do a GetStyles request using Mapserver 4.8.4. Using 4.8.3 it works fine. Is anybody else experiencing this or able to confirm this? Thanks in advance. Best regards, Bart From bart_doggers at YAHOO.COM Tue Aug 1 07:12:12 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Tue, 1 Aug 2006 07:12:12 -0700 Subject: panning and zoomin and out, and ect In-Reply-To: Message-ID: Hi, I tried that code. I didnt get it to work. Here is my code. Can you see if I need to do something else? What else do I need?
pan nw
pan north
pan ne
pan west
pan east
pan sw
pan south
pan se
Luis Trevi?o wrote: 2006/7/21, Albert Anderson : Hi, I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. You can use something like this, you have to handle your width and height of your image: alto = height, ancho = width. function paneo(direccion,alto,ancho) { var x,y; var pansize = 0.75; if(direccion == 'n') { x = (ancho-1)/2.0; y = 0 - (alto * pansize)/2.0; } else if(direccion == 'nw') { x = 0 - (ancho * pansize)/2.0; y = 0 - (ancho * pansize)/2.0; } else if(direccion == 'ne') { x = (ancho-1) + (ancho * pansize)/2.0; y = 0 - (alto * pansize)/2.0; } else if(direccion == 's') { x = (ancho-1)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'sw') { x = 0 - (ancho * pansize)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'se') { x = (ancho-1) + (ancho * pansize)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'e') { x = (ancho-1) + (ancho * pansize)/2.0; y = (alto-1)/2.0; } else if(direccion == 'w') { x = 0 - (ancho * pansize)/2.0; y = (alto-1)/2.0; } document.mapserv.imgxy.value = x + " " + y; document.mapserv.submit(); } Anyother question, is there a _java script for images to zoom-in and out? you can use the zoomdir and the zoom values within your template, like: for a zoom out., so you can use radio buttons to manage this values One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? Thanks, Albert __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Hope this helps. Regards, Luis --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre at ACQUASOFTWARE.COM.BR Tue Aug 1 08:03:24 2006 From: alexandre at ACQUASOFTWARE.COM.BR (Alexandre Abramides) Date: Tue, 1 Aug 2006 12:03:24 -0300 Subject: Mapscript error: Fatal error: Invalid style index - Help? Message-ID: Can anyone help me? It should color diferent points according to the different codes but it?s always black points in the map.. Thanks in advance. $point = ms_newPointObj(); $point->setXY($x,$y); $line = ms_newLineObj(); $line->add($point); $feature = ms_newShapeObj(0); $feature->set("text"," "); // $feature->add($line); $layer = $map->getLayerByName($layer_name); $layer->addFeature($feature); switch($code){ case 3: $color[0] = 48; $color[1] = 255; $color[2] = 219; $class = ms_newClassObj($layer); $style = ms_newStyleObj($class); $class->setExpression('code = 3'); break; case 4: $color[0] = 255; $color[1] = 48; $color[2] = 84; $class = ms_newClassObj($layer); $style = ms_newStyleObj($class $class->setExpression('id = 4'); break; .... } Alexandre. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre at ACQUASOFTWARE.COM.BR Tue Aug 1 08:11:02 2006 From: alexandre at ACQUASOFTWARE.COM.BR (Alexandre Abramides) Date: Tue, 1 Aug 2006 12:11:02 -0300 Subject: Mapscript error: Fatal error: Invalid style index - Help? Message-ID: And before anyone say, I do color with $style->color->setRGB($color[0], $color[1], $color[2]); after the "switch", forgot to paste it before :p Anyone? ----- Original Message ----- From: Alexandre Abramides To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, August 01, 2006 12:03 PM Subject: [UMN_MAPSERVER-USERS] Mapscript error: Fatal error: Invalid style index - Help? Can anyone help me? It should color diferent points according to the different codes but it?s always black points in the map.. Thanks in advance. $point = ms_newPointObj(); $point->setXY($x,$y); $line = ms_newLineObj(); $line->add($point); $feature = ms_newShapeObj(0); $feature->set("text"," "); // $feature->add($line); $layer = $map->getLayerByName($layer_name); $layer->addFeature($feature); switch($code){ case 3: $color[0] = 48; $color[1] = 255; $color[2] = 219; $class = ms_newClassObj($layer); $style = ms_newStyleObj($class); $class->setExpression('code = 3'); break; case 4: $color[0] = 255; $color[1] = 48; $color[2] = 84; $class = ms_newClassObj($layer); $style = ms_newStyleObj($class $class->setExpression('id = 4'); break; .... } Alexandre. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mljacks2 at HOTMAIL.COM Tue Aug 1 10:09:36 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Tue, 1 Aug 2006 12:09:36 -0500 Subject: Map File Problem? In-Reply-To: <20060728214409.79284.qmail@web30303.mail.mud.yahoo.com> Message-ID: I tried the shp2img utility. I ended up with a perfect picture of a map of the United States. No errors were generated at all shp2img. So I would guess that the culprit is not the map file. Once I actually get my project deployed correctly, I will also post some of the errors generated. >From: Randy James >To: "M.L. Jackson" >Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? >Date: Fri, 28 Jul 2006 14:44:09 -0700 (PDT) > >Try posting the actual error message you get to the group, someone may have >seen it before. Or better yet post the error log file from tomcat. > > I was thinking of the client browser not sending the correct url. I >thought could be a iexplorer security issue as the problems sound like a >trojan maybe on your lan generating errors. I just think errors are never >random, but rather the cause is never fully understood so it appears >random. > > randy > >"M.L. Jackson" wrote: > I think that the problem is not client side at all. The errors generated >appear to come directly from the server. It could be the http server >(Apache Tomcat) because I've also had deployment issues lately which I >think >I have resolved. I'm just really not sure at all about the errors. I guess >I will have some trial and error debugging to do. I will also try the >shp2img utility. Thanks. :-) Any other suggestions would be great as well. > > > >From: Randy James > >Reply-To: Randy James > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? > >Date: Fri, 28 Jul 2006 10:16:43 -0700 > > > >The shp2img utility comes with mapserver. Could the problem be in your >http > >server rather than Mapserver? Or even a client side browser problem? > > > > Randy > > > > > >"M.L. Jackson" wrote: > > Where is the shp2img utility? Does it come with mapserver or do you have > >to > >download it? Sorry for the newbie questions but thanks for your help. > > > > >From: Jeff McKenna > > >Reply-To: Jeff McKenna > > >To: MAPSERVER-USERS at LISTS.UMN.EDU > > >Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? > > >Date: Fri, 28 Jul 2006 11:46:39 -0400 > > > > > >have u tried using the shp2img utility, to see if your mapfile is ok? >I'd > > >first make sure your mapfile is fine, then worry about your >application. > > > > > >jeff > > > > > > > > > > > > > > >M.L. Jackson wrote: > > >>The thing is.......the errors occur at random. If the errors weren't > > >>related to some central problem, then the same error should keep > >occuring > > >>until I fix it before any other errors are displayed. Instead each >time > > >>the server is restarted and the application is run a new error > >supposedly > > >>in the map file is displayed. > > >> > > >> > > >>>From: Jeff McKenna > > >>>Reply-To: Jeff McKenna > > >>>To: MAPSERVER-USERS at LISTS.UMN.EDU > > >>>Subject: Re: [UMN_MAPSERVER-USERS] Map File Problem? > > >>>Date: Fri, 28 Jul 2006 10:55:45 -0400 > > >>> > > >>>I'm not sure about your random problem...but you might want to check > >the > > >>>errors section of the mapserver documentation page, and battle those > > >>>errors one by one: http://mapserver.gis.umn.edu/docs/error > > >>> > > >>>jeff > > >>> > > >>> > > >>>M.L. Jackson wrote: > > >>>>Hi. I am running mapserver 4.6.0-beta1 with Java Mapscript on >Tomcat. > > >>>>While working on my project, I have encountered a weird series of > > >>>>errors. Everytime I restart the server and try to run my >application, > >I > > >>>>get an error indicating what appears to be any random line in the >map > > >>>>file. Most of the time the errors generated make absolutely no >sense. > > >>>>Among the errors generated are "projection not named" and "major >axis > > >>>>or radius = 0 or not given". The other errors are generally any line > > >>>>number with a piece of the map file indicated. Thanks for your > >replies. > > > > > > > > >-- > > >Jeff McKenna > > >DM Solutions Group Inc. > > >http://www.dmsolutions.ca > > > >_________________________________________________________________ > >Don?t just search. Find. Check out the new MSN Search! > >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > >--------------------------------- > >Yahoo! Music Unlimited - Access over 1 million songs.Try it free. > >_________________________________________________________________ >Don?t just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > >--------------------------------- >Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement From bartvde at XS4ALL.NL Tue Aug 1 11:40:10 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 1 Aug 2006 20:40:10 +0200 Subject: 3D Polygon In-Reply-To: <20060727200853.91747.qmail@web25509.mail.ukl.yahoo.com> Message-ID: Could this be related to: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1784 it should be in 4.8.4 though. Best regards, Bart K S wrote: > Sorry for the delay! Thanks for the response! > Here is the report of ogrinfo for the shapefile. Supposed that the > precompiled version of mapserver doesn't support 3D polygon how can I > "enable" 3D polygons' support? > > Layer name: TownBlocks > Geometry: 3D Polygon > Feature Count: 8024 > Extent: (496798.420507, 3874382.779711) - (692235.890369, 3932301.842024) > Layer SRS WKT: > PROJCS["Greek_Grid", > GEOGCS["GCS_GGRS_1987", > DATUM["Greek_Geodetic_Reference_System_1987", > SPHEROID["GRS_1980",6378137.0,298.257222101]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["False_Easting",500000.0], > PARAMETER["False_Northing",0.0], > PARAMETER["Central_Meridian",24.0], > PARAMETER["Scale_Factor",0.9996], > PARAMETER["Latitude_Of_Origin",0.0], > UNIT["Meter",1.0]] > OBJECTID: Integer (9.0) > FID_??????: Integer (9.0) > SDE_blockc: Real (19.11) > PERIMETER: Real (19.11) > TBLOCK_: Real (19.11) > TBLOCK_ID: Real (19.11) > ESYE_CODE: Integer (9.0) > MATCH_: Integer (9.0) > XBLOCK: Real (19.11) > YBLOCK: Real (19.11) > MUN_NAME: String (40.0) > MUN_CODE: String (8.0) > OT: String (12.0) > TR_POP: Real (19.11) > PER_POP: Real (19.11) > NOIK: Real (19.11) > HOUSES: Real (19.11) > H_OWN: Real (19.11) > H_REN: Real (19.11) > H_KAT: Real (19.11) > H_KEN: Real (19.11) > H_KY_KA: Real (19.11) > H_EXOH: Real (19.11) > PER_MEN: Real (19.11) > PER_WOM: Real (19.11) > AGE14: Real (19.11) > AGE1564: Real (19.11) > AGE65: Real (19.11) > YDR: Real (19.11) > EDR: Real (19.11) > H_PKEN: Real (19.11) > H_PREN: Real (19.11) > H_POWN: Real (19.11) > H_PEXOH: Real (19.11) > M_W_RAT: Real (19.11) > NOIK_MESO: Real (19.11) > POPDEN: Real (19.11) > FID_LLNew_: Integer (9.0) > Shape_Leng: Real (19.11) > Shape_Ar_1: Real (19.11) > Shape_Le_1: Real (19.11) > Shape_Area: Real (19.11) > > */"Bart van den Eijnden (OSGIS)" /* ??????: > > What does ogrinfo report on your shapefile? Can you send us the > output? > > Best regards, > Bart > > > I have tried using TYPE POLYGON in this LAYER but mapserver > keeps showing > > the error message: > > > > msDrawShapes() General error message. Only polygon shapes can be > drawn > > using a POLYGON layer definition. > > > > I am using mapserver version 4.8.4 from the precompiled pack that is > > distributed from maptools.org. I can use TYPE LINE for the LAYER > > without getting any error but that doesn't result to the map I > want to > > show.Any ideas? > > > > Thank you for the response! > > > > "Bart van den Eijnden (OSGIS)" ??????: You should > > just use TYPE POLYGON. Note I think you need Mapserver 4.6 or > > greater, best to try with the latest release (4.8.X). > > > > Btw, Mapserver has a compile option determining whether or not > it will > > pick up Z and M values. > > > > # If you want to use shape Z and M parameter this option must be > set. > > # It's OFF by default. > > #USE_POINT_Z_M=-DUSE_POINT_Z_M > > USE_POINT_Z_M= > > > > Best regards, > > Bart > > > > K S wrote: > > > >> Hello everybody, > >> I have a shapefile which is GEOMETRY: 3D POLYGON. How can i draw > >> the layer for this shapefile. To be more specific what would be the > >> TYPE of such a layer > >> > >> Thank you in advance > >> > >> ?????????????? Yahoo! > >> ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail > ???????? ??? > >> ???????? ?????? ????????? ???? ??? ??????????? ????????? > >> http://login.yahoo.com/config/mail?.intl=gr > > > > > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > > > > > --------------------------------- > > ?????????????? Yahoo! > > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail > ???????? ??? > > ???????? ?????? ????????? ???? ??? ??????????? ????????? > > http://login.yahoo.com/config/mail?.intl=gr > > > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? > ???????? ?????? ????????? ???? ??? ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From johnny.alves at GMAIL.COM Tue Aug 1 12:24:00 2006 From: johnny.alves at GMAIL.COM (Paulo Alves) Date: Tue, 1 Aug 2006 16:24:00 -0300 Subject: Getting field values from a point using mapscript Message-ID: Hello! I'm using ms4w under winxp. I want to get information about a point and show it in a popup. here is a part of my code: $image=$map->draw(); $image_url=$image->saveWebImage(); $extent_to_html = $map->extent->minx." ".$map->extent->miny." " .$map->extent->maxx." ".$map->extent->maxy; $my_point = ms_newpointObj(); $my_point->setXY($_REQUEST["mapa_x"],$_REQUEST["mapa_y"]); /* if we are selecting a click */ if ( isset($_REQUEST["zoom"]) && $_REQUEST["zoom"]=="query") { $dfKeyMapXMin = $map->extent->minx; $dfKeyMapYMin = $map->extent->miny; $dfKeyMapXMax = $map->extent->maxx; $dfKeyMapYMax = $map->extent->maxy; $dfWidthPix = doubleval($image->width); $dfHeightPix = doubleval($image->height); $nClickGeoX = GMapPix2Geo($_REQUEST['mapa_x'], 0, $dfWidthPix, $dfKeyMapXMin, $dfKeyMapXMax, 0); $nClickGeoY = GMapPix2Geo($_REQUEST["mapa_y"], 0, $dfHeightPix, $dfKeyMapYMin, $dfKeyMapYMax, 1); $my_point = ms_newpointObj(); $my_point->setXY($nClickGeoX,$nClickGeoY); $uLayer->queryByPoint($my_point, MS_SINGLE, 200); $results = $uLayer->{resultcache}; $rslt = $uLayer->getResult(0); $database_id2 = $rslt->{shapeindex}; echo $database_id; echo $database_id2; $foo = $uLayer->{numresults}; echo $foo; // always -1 exit; } I receive the shapeindex of the point correctly, but how i can get the value of the fields and show it in a new window? Thanks... -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Tue Aug 1 14:06:27 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 1 Aug 2006 23:06:27 +0200 Subject: Edit shape file in web MapServer application In-Reply-To: <5592464.post@talk.nabble.com> Message-ID: Hi Paolo, > > This is what I want to ask here, as I am new to mapscript and MapServer: is > it safe to edit shapefile online, can be any thread or cuncurrency issues? > At least in my ESRI experience with ArcIMS I know that they don't let you > edit a shapefile if it is served on the web (ArcIMS locks it). If you need > to edit data you need ArcSDE. > So it is strange to me that MapServer give you this edit possibilites, but > maybe (I couldn't find anywhere) is it safe to use this capacities only for > standalone apps? I consider this limited shape editing support was added because of the need of creating tileindexes for the layers. Mapserver/MapScript was designed primairly to display the maps. However there are some open source tools for editing data can use mapserver as the map rendering engine. > Or should i convert my data to MySQL or PostGIS? > For editing GIS data using a geodatabase as the repository of the data would be architecturally better than using plain files. Best Regards, Tamas From ollerery at ENGR.ORST.EDU Tue Aug 1 14:09:30 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 1 Aug 2006 14:09:30 -0700 Subject: World Wind/MapServer WMS In-Reply-To: <44CFA00A.6060201@xs4all.nl> Message-ID: Has anyone had any success accessing a MapServer WMS from World Wind? I keep getting the message "Error loading WMS server list" when i add my WMS to World Wind's WMS_server_list. Here is the XML code that i added to the server list: My Data http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&SERVICE=WMS& Themis 1.1.1 Mars Visualization Server And here is the result of a GetCapabilities Request on my server: OGC:WMS WMS MapServer Capability> application/vnd.ogc.wms_xml image/png image/gif image/png; mode=24bit image/jpeg image/wbmp image/tiff text/plain application/vnd.ogc.gml text/xml image/gif image/png; mode=24bit image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank WMS_WFS_WCS_server WMS Mars MapServer EPSG:4326 themis TMEMIS Data EPSG:4326 mola MOLA Data EPSG:4326 moc MOC Data EPSG:4326 hrsc_nd hrsc data EPSG:4326 hrsc_other hrsc_other EPSG:4326 From szekerest at GMAIL.COM Tue Aug 1 14:13:53 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 1 Aug 2006 23:13:53 +0200 Subject: Deleting from a shapefile In-Reply-To: <003c01c696d2$b66cf3d0$5d00a8c0@aiandolo> Message-ID: Antonio, AFAIK, deleting shapes from the file would not be so easy like adding a shape since the file from the deleted shape should be rewritten and the shx should be recreated. Finally the implementation would be similar as recreating the file like you have mentioned before. Best Regards, Tamas 2006/6/23, Antonio Iandolo : > Hi all, > I have a shapefile where I append points (permanently, not inline) using > the php-mapscript addPoint method. > > My question is: is there a way to permanently delete points from such a > shapefile? I could create a new temporary shapefile with all the same > points except the deleted one, but it doesn't seem to me a great > solution... > > Thanks in advance, > Antonio > From bpicinbono at WORLDONLINE.FR Tue Aug 1 14:26:04 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Tue, 1 Aug 2006 23:26:04 +0200 Subject: Edit shape file in web MapServer application In-Reply-To: Message-ID: Le mardi 1 ao?t 2006 23:06, Tamas Szekeres a ?crit?: > Hi Paolo, > > > This is what I want to ask here, as I am new to mapscript and MapServer: > > is it safe to edit shapefile online, can be any thread or cuncurrency > > issues? At least in my ESRI experience with ArcIMS I know that they don't > > let you edit a shapefile if it is served on the web (ArcIMS locks it). If > > you need to edit data you need ArcSDE. > > So it is strange to me that MapServer give you this edit possibilites, > > but maybe (I couldn't find anywhere) is it safe to use this capacities > > only for standalone apps? > > I consider this limited shape editing support was added because of the > need of creating tileindexes for the layers. Mapserver/MapScript was > designed primairly to display the maps. However there are some open > source tools for editing data can use mapserver as the map rendering > engine. > > > Or should i convert my data to MySQL or PostGIS? > > For editing GIS data using a geodatabase as the repository of the data > would be architecturally better than using plain files. > > Best Regards, > > Tamas Hi there Mapserver does a great shapes and datas editing and updating job when you build the correct functions. I didn't knew ArcIMS was somehow locking something when serving the web, but hopefully, Mapserver doesn't. It's up to you to cope with cuncurrency issues and all. There are several ways of doing it, like user-based files or else. Blaise From ltrevinoh at GMAIL.COM Tue Aug 1 19:25:11 2006 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Tue, 1 Aug 2006 21:25:11 -0500 Subject: panning and zoomin and out, and ect In-Reply-To: <20060801141212.42494.qmail@web55703.mail.re3.yahoo.com> Message-ID: Albert: Maybe the problem is in your map file or in the hidden variables of your template. 2006/8/1, Albert Anderson : > > Hi, > > I tried that code. I didnt get it to work. Here is my code. Can you > see if I need to do something else? What else do I need? > > > > > > HEIGHT="460" BORDER="0" align="left" > CELLPADDING="0" CELLSPACING="0"> > > > > > > > > > > > > > > > > > >
ALIGN="left" > VALIGN="top" > BGCOLOR="#e7a500"> src="../images/cornerarrow5.gif" alt="pan nw" width="25" height="25" > style="border-style:none"> BGCOLOR="#e7a500" > VALIGN="top"> VALIGN="top" > BGCOLOR="#e7a500"> src="../images/cornerarrow6.gif" alt="pan ne" width="25" height="25" > style="border-style:none">
BGCOLOR="#e7a500" > VALIGN="MIDDLE"> href="javascript:pan('w')">pan
> west ALIGN="center" > HEIGHT="413" VALIGN="MIDDLE" > WIDTH="309"> > > > type="image" src="[img]" WIDTH="309" HEIGHT="417" BORDER="1" /> BGCOLOR="#e7a500" > VALIGN="MIDDLE">
VALIGN="bottom" > BGCOLOR="#e7a500"> src="../images/cornerarrow8.gif" alt="pan sw" width="25" height="25" > style="border-style:none"> BGCOLOR="#e7a500" > VALIGN="bottom"> BGCOLOR="#e7a500" > VALIGN="bottom"> href="javascript:pan('se')">pan
> se
> > > > *Luis Trevi?o * wrote: > > > > 2006/7/21, Albert Anderson : > > > > Hi, > > > > I figure out my images. Does anyone have a _java script for using a > > image for panning. I have images set for the corners of my map. I want to > > use them to pan. > > > > You can use something like this, you have to handle your width and height > of your image: > alto = height, ancho = width. > function paneo(direccion,alto,ancho) { > var x,y; > var pansize = 0.75; > if(direccion == 'n') { > x = (ancho-1)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 'nw') { > x = 0 - (ancho * pansize)/2.0; > y = 0 - (ancho * pansize)/2.0; > } else if(direccion == 'ne') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 's') { > x = (ancho-1)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'sw') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'se') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'e') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } else if(direccion == 'w') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > Anyother question, is there a _java script for images to zoom-in and > > out? > > > you can use the zoomdir and the zoom values within your template, like: > > > for a zoom out., so you can use radio buttons to manage this values > > > > > One more question, I have a refresh button and pan radio button, then we > > I click refresh to take a layer off it moves the projective image. Why? But > > when I am on zoomin radio button and click refresh it acts like its panning? > > Why? > > > > Thanks, > > > > Albert > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > Hope this helps. > > Regards, > Luis > > > ------------------------------ > Yahoo! Messenger with Voice. Make PC-to-Phone Callsto the US (and 30+ countries) for 2?/min or less. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovidio at PLANETEK.IT Wed Aug 2 00:42:31 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 2 Aug 2006 09:42:31 +0200 Subject: map gps coordinates with CGI/ (java or Perl) In-Reply-To: Message-ID: I send you an example : LAYER NAME "mylayer" TYPE POINT STATUS on LABELITEM "id" CLASS LABEL TYPE TRUETYPE FONT "arial" SIZE 20 POSITION CC ANGLE AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 254 ANTIALIAS TRUE END NAME "point" STYLE SYMBOL "circle" SIZE 4 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END DATA "mylayer" CONNECTION "prova.ovf" CONNECTIONTYPE OGR METADATA "wms_title" "mylayer" END END Prova.ovf is : ODBC:user/pass at DSN tablenamewkbPoint WGS84 Bye ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** On 31 Jul 2006 at 13:41, P Kishor wrote: > ya then... > > On 7/31/06, Joel Thompson wrote: > > Thanks for the feedback. I really appreciate it alot. > > > > By dynamically I meant that the CGI would some be given the > > coordinates at runtime - either read from db, or passed as PARAMETERS > > in CGI ... and so actually I don't need help in setting up that part. > > so, it is not dynamic in as I thought of dynamic -- as in, a moving > dot on the screen. The above is plain, vanilla MapServer, so you are > set there. > > > What I would like to know is what is the best approach for dealing > > with the list of Long/Lats??? > > > > 1) Is it to create a MAP file w/ layers and features? OR > > 2) create a SHAPE file? OR > > 3) Is this kind of behavior already built into the MAP or MapServer > > some how? > > 4) Are their tools that help with this sort of stuff? Like GRASS or > > something else? > > Well, MapServer will need a .map file with layer definitions. There is > no way around that. That is the direction that MapServer needs. That > said, within the .map file, you can define the layer as a shapefile > (in which case, you will need to create a shapefile), or you might > even be able to define it as an OGR datasource (although, once again, > I am skating on thin-ice here... truth be told, I have been doing more > data-munging lately instead of actually working with MapServer). > > Whether you have to convert your lon/lat into a shapefile or define it > as an OGR datasource, FW's eponymous tools will help you greatly. You > can use ogr2ogr to convert lon/lat into shapefile, for which, you will > have to set up a .ovf file anyway (c'est compliqu?, non?). Search for > ogr2ogr and FW_tools on the MapServer website. > > > 5) Also - I am having problems setting up the Perl MapScript env - > > I can't get/find any directions on how to integrate the Perl modules into > > MapServer - Yet Perl works from Apache as a plain-old-cgi env. > > So I am wondering if I should attempt #1, or #2 in this CGI w/o the > > perl map module? or should I keep attempting to get the Perl Module > > integrated... (seemed straight forward, but not quite since I download > > prebuilt MapServer for Windows 2k and can't rebuild to integrated > > PERL...sigh..) > > This is the main reason I have not been using MapServer lately. Afaik, > Perl/MapScript does not work on Windows, and I am, in my current phase > in life, stuck with Windows for some time. Other flavors of MapScript > apparently work on Windows, but I have little interest in those > languages. > > If anyone has been able to build Perl/MapScript on Windows > successfully, please share the knowledge. (Steve Lime, le p?re de > MapServer, might be able to confirm this; then maybe not). > > > > > P Kishor wrote: > > > > > Joel, > > > > > > I don't have a specific suggestion for you, but I offer the following > > > to think about... You asked -- > > > > > >> > I'd like to map GPS lat/long coordinates dynamically through CGI > > > > > > > > > First, what does "dynamically" mean? > > > > > > You will have to somehow transfer the lon/lat from the GPS to the > > > computer that hosts MapServer. So, that is your first task. > > > > > > Then you will have to convert the lon/lat into x,y point features that > > > MapServer can read. That is your second task. > > > > > > Then you will have to create an web app that refreshes every few > > > seconds in order to be qualified as "dynamically." That is your final > > > task. > > > > > > Your best bet might be to send the GPS stream into a PostGIS database, > > > and set up a MapServer map file that reads that data source. Write an > > > Ajax-y app that refreshes the map without touching the rest of the > > > cruft, and you have a dynamic app. > > > > > > When you get it all hooked up and working, I would love to see it and > > > happily plagiarize it ;-). Better yet, you can write up a nice how-to, > > > and attach your app for the rest of us to benefit. > > > > > > Seriously, search the list archives. If I recall correctly, this kind > > > of stuff has been asked, and done before. > > > > > > On 7/28/06, Joel Thompson wrote: > > > > > >> Hi Guys - sorry to bug you again, but can someone give me some general > > >> direction? > > >> > > >> 1) should I try to manipulate the map file directly through the CGI env? > > >> If so, what would a sample map file look like to that showed, say Cities > > >> and the lat/lon coordinates that I provide to show a route...? > > >> > > >> 2) Or do I have to use CGI (perl, php...etc.) w/ its API into the > > >> MapScript to execute this some how? Not sure at all how to do this, so a > > >> simple sample would be very helpful. > > >> > > >> 3) or is there some other CGI type tools that does this for me already? > > >> IE. Just pass in a list of lat/lon pairs and it would map it out for me? > > >> > > >> > > >> Thanks for you help... I really appreciate it, > > >> Joel > > >> > > >> Joel Thompson wrote: > > >> > > >> > > > >> > Hello, > > >> > > > >> > I'd like to map GPS lat/long coordinates dynamically through CGI > > >> > (preferred JAVA,perl, php, in that order) - I am new to MapServer... > > >> > Can you help me to get in the right direction with this? is there any > > >> > add-on tools that do this? or is is just done through the .map w/ html > > >> > template architecture... where the CGI is used to create the HTML > > >> file??? > > >> > Any samples would be nice... Thanks in advanced. > > >> > > > >> > -Joel > > >> > > > > > > > > > > > > > > > -- > Puneet Kishor http://punkish.eidesis.org/ > Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ > Open Source Geospatial Foundation https://edu.osgeo.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From asachs at CLUE.CO.ZA Wed Aug 2 01:51:01 2006 From: asachs at CLUE.CO.ZA (Andre Sachs) Date: Wed, 2 Aug 2006 10:51:01 +0200 Subject: Mapserver & DXF input Message-ID: Hi All, My customer has his data in the DXF format and we are looking to find a way to convert it into something usable by Mapserver. Does anyone have the same problem or know of a possible solution on the Linux Platform ? Thanks and regards, Andre -- IT Architect Andre Sachs asachs at clue.co.za From cavallini at FAUNALIA.IT Wed Aug 2 02:15:54 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Wed, 2 Aug 2006 11:15:54 +0200 Subject: Mapserver & DXF input In-Reply-To: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 One possible way is to convert DXF in shapefile through GRASS. pc Andre Sachs ha scritto: > Hi All, > > My customer has his data in the DXF format and we are looking to find a > way to convert it into something usable by Mapserver. > Does anyone have the same problem or know of a possible solution on the > Linux Platform ? > > Thanks and regards, > Andre > -- > IT Architect > Andre Sachs > asachs at clue.co.za > - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE0G1K/NedwLUzIr4RAlAvAJ0XUpb7d2n/0cOa4MGssZWEcrVIZACgue4x BakU5mqJhC6GX2MFc2F6Up4= =jhD8 -----END PGP SIGNATURE----- From Sven.Borgers at KINEOINTERACTIVE.COM Wed Aug 2 02:29:09 2006 From: Sven.Borgers at KINEOINTERACTIVE.COM (Sven Borgers) Date: Wed, 2 Aug 2006 12:29:09 +0300 Subject: Mapserver - Mapscript PHP - Proj - Projection Parameter Question Message-ID: Hi! I am working on an application where I need to translate screen pixel xy coordinates to latlon. The basic mapserver template variables seem to give me the correct result, I can replicate that result with cs2cs but have so far not been able to get that out of the mapscript php project function. Any pointers would be greatly appreciated. I have a very simple mapfile with following projection spec and no projection in the layers: PROJECTION "proj=tmerc" "lat_0=49.000000000" "lon_0=-2.000000000" "k=0.999601" "x_0=400000.000" "y_0=-100000.000" "ellps=airy" "towgs84=375,-111,431,0,0,0,0" END When I use the mapserver application to find the latlon for: x : 533604.343541 y: 180566.045573 The mapserver template MAPLAT, MAPLON variables return: Lat: -0.076218 Lon: 51.508185 Which, when I look them up on MapQuest put me on the right spot. When I use the command line proj4 applications I get following results: invproj -f "%.6f" +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=375,-111,431,0,0,0,0 < 533604.343541 180566.045573 > EOF Lat: -0.074626 Lon: 51.507727 Which is not exactly the same point. When I use the cs2cs command I get following result: cs2cs -f "%.6f" +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=375,-111,431,0,0,0,0 +to +proj=latlong +ellps=WGS84 +datum=WGS84 < 533604.343541 180566.045573 > EOF Lat: -0.076218 Lon: 51.508185 45.074824 Which is what I would like to find When I use Mapscript PHP: $projInObj = ms_newProjectionObj( "proj=tmerc,". "lat_0=49,". "lon_0=-2,". "k=0.999601,". "x_0=400000,". "y_0=-100000,". "ellps=airy,". "towgs84=375,-111,431,0,0,0,0"); $projOutObj = ms_newProjectionObj("proj=latlong, ellps=WGS84, datum=WGS84"); $poPoint = ms_newPointObj(); $poPoint->setXY($_REQUEST["lon"],$_REQUEST["lat"]); $poPoint->project($projInObj, $projOutObj); I get: Lat: -0.074619464992752 Lon: 51.505774438372 Which is close but still about 1km out of where it should land. Sven Borgers. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dananrg at YAHOO.COM Wed Aug 2 03:02:00 2006 From: dananrg at YAHOO.COM (dnrg) Date: Wed, 2 Aug 2006 03:02:00 -0700 Subject: Open Source GIS San Diego Gathering (OSG-SD) - Tuesday, August 8th, 6:30pm - 9pm Message-ID: Open Source GIS San Diego Gathering (OSG-SD) - Tuesday, August 8th, 6:30pm You are cordially invited to an Open Source GIS gathering in San Diego. WHEN: Tuesday, August 8th 2006, 6:30pm to 9:00pm WHERE: Visualization Lab, San Diego State University ( http://citi.sdsu.edu/ ) WHY: To introduce geospatial professionals to free open source complements to commercial GIS software ADMISSION: Free, as in free beer. However, space in the lab is limited. Please contact Dana Nibby to be added to our mailing list: danaspatial at yahoo.com FOOD: Free, as in free beer, pizza and soda will be provided. DIRECTIONS: Driving - http://citi.sdsu.edu/directions Directions using public transportation to follow. PROPOSED EVENTS: * 6:30pm to 6:59pm - Doors open. Socializing * 7:00pm to 7:14pm - Welcome / Introduction * 7:15pm to 7:44pm - Presentation 1 (need presenter - preferred topic: Introduction to Open Source GIS Software) Please contact Dana Nibby if you are interested in presenting: danaspatial at yahoo.com * 7:45pm to 8:14pm - Presentation 2 (need presenter - preferred topic: MapServer + PostGIS) Please contact Dana Nibby if you are interested in presenting: danaspatial at yahoo.com * 8:15pm to 8:45pm - Open discussion on planning a larger event for 2007 * 9:00pm to 10:00pm - Beer social at _________. (BYOB - Buy Your Own Beverage) For more information, please check the following web site in the days leading up to the event: http://NCSDUG.ORG Thanks very much and hope to see you there. Please RSVP if you wish to attend, or can assist: danaspatial at yahoo.com Please forward this notice on and help get the word out. Post to other lists. Tell your friends. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From warmerdam at POBOX.COM Wed Aug 2 06:02:32 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 2 Aug 2006 09:02:32 -0400 Subject: Deleting from a shapefile In-Reply-To: Message-ID: Tamas Szekeres wrote: > Antonio, > > AFAIK, deleting shapes from the file would not be so easy like adding > a shape since the file from the deleted shape should be rewritten and > the shx should be recreated. Finally the implementation would be > similar as recreating the file like you have mentioned before. Tamas, The CVS version of Shapelib (and GDAL/OGR 1.3.2) supports most update operations on shapefiles. This includes adding new shapes, deleting shapes, and writing a new feature over an existing shape (with a potentially different sized geometry). Deleting is accomplished by marking records deleted in the .dbf file. All this can be done "in place" on a shapefile without having to copy it. However, rewriting a shape with a bigger geometry results in the geometry being written at the end of the file and the space of the original being lost. The only way to recover the space held by deleted shapes, and the lost geometry space for rewritten shapes is to issue the "REPACK " command via OGR SQL. This repacking effectively rewrites the files. None of this is directly usable from within mapscript, unfortunately. 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 | President OSGF, http://osgeo.org From skgstyle at YAHOO.COM Wed Aug 2 06:06:16 2006 From: skgstyle at YAHOO.COM (Sean Grimland) Date: Wed, 2 Aug 2006 06:06:16 -0700 Subject: Section 508 Websites In-Reply-To: <20060802100200.98490.qmail@web33109.mail.mud.yahoo.com> Message-ID: Does anyone have experience to share developing Mapserver websites that are U.S. Section 508 compliant? Section 508 governs electronic communication access for people with disabilities as mandated by federal law. Sean Grimland __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From assefa at DMSOLUTIONS.CA Wed Aug 2 06:26:11 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 2 Aug 2006 09:26:11 -0400 Subject: emtpy GetStyles response with 4.8.4? In-Reply-To: <6203.145.50.39.8.1154440023.squirrel@webmail.xs4all.nl> Message-ID: Bart, I tried the GetStyle with the 4.8.x branch as well as the head branch and got expected results. Not sure what the problem is but you can send me sample data/map if the problem persists. Later, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > I am getting back an empty SLD document when I do a GetStyles request > using Mapserver 4.8.4. Using 4.8.3 it works fine. > > Is anybody else experiencing this or able to confirm this? > > Thanks in advance. > > Best regards, > Bart > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bart_doggers at YAHOO.COM Wed Aug 2 06:52:59 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 2 Aug 2006 06:52:59 -0700 Subject: panning and zoomin and out, and ect In-Reply-To: Message-ID: Hi, I put my code with this email "hoping" for more than just it maybe in your map file or hidden variables thats all. Thanks, Albert Luis Trevi?o wrote: Albert: Maybe the problem is in your map file or in the hidden variables of your template. 2006/8/1, Albert Anderson : Hi, I tried that code. I didnt get it to work. Here is my code. Can you see if I need to do something else? What else do I need?
pan nw
pan north
pan ne
pan west
pan east
pan sw
pan south
pan se
Luis Trevi?o wrote: 2006/7/21, Albert Anderson : Hi, I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. You can use something like this, you have to handle your width and height of your image: alto = height, ancho = width. function paneo(direccion,alto,ancho) { var x,y; var pansize = 0.75; if(direccion == 'n') { x = (ancho-1)/2.0; y = 0 - (alto * pansize)/2.0; } else if(direccion == 'nw') { x = 0 - (ancho * pansize)/2.0; y = 0 - (ancho * pansize)/2.0; } else if(direccion == 'ne') { x = (ancho-1) + (ancho * pansize)/2.0; y = 0 - (alto * pansize)/2.0; } else if(direccion == 's') { x = (ancho-1)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'sw') { x = 0 - (ancho * pansize)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'se') { x = (ancho-1) + (ancho * pansize)/2.0; y = (alto-1) + (alto * pansize)/2.0; } else if(direccion == 'e') { x = (ancho-1) + (ancho * pansize)/2.0; y = (alto-1)/2.0; } else if(direccion == 'w') { x = 0 - (ancho * pansize)/2.0; y = (alto-1)/2.0; } document.mapserv.imgxy.value = x + " " + y; document.mapserv.submit(); } Anyother question, is there a _java script for images to zoom-in and out? you can use the zoomdir and the zoom values within your template, like: for a zoom out., so you can use radio buttons to manage this values One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? Thanks, Albert __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Hope this helps. Regards, Luis --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 2 06:58:38 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 2 Aug 2006 06:58:38 -0700 Subject: how do I get rid of clicking the button and loading it my html? In-Reply-To: <44CAF69A.3030902@spiekermann.de> Message-ID: Hi, I am using intializing button as a submit button. The html template is using the get method. I would like to know how to get rid of the submit button. Just have the mapserver auto load into the html without clicking the intializing and get the information from the mapserver. Thanks Albert Manfred Meier wrote: I don't know your application and so don't know which initialzing button you mean. But if there is a button then it is most likely a submit button of a form. Look at the source code of the html page in your browser and try to find out, to what url the action property in the form tag points. If there are no other hidden or visible input tags, try to point your browser to the url in the action property. If there are input tags, try to append the neccessary values to the url. I don't know if that works in your case. But its a often used method to circumvent the manual filling of forms. Manfred Albert Anderson schrieb: > Hi List, > > My question is how do I get my page to load auto like without using > initialzing button. I dont want to use the button. I just want to page > just load. Is there a way around this? I'm using a linux machine with > mapsever 4. Could someone help me? > > Thanks, > Albert > > ------------------------------------------------------------------------ > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > --------------------------------- Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Aug 2 07:08:11 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 2 Aug 2006 09:08:11 -0500 Subject: how do I get rid of clicking the button and loading it my html? In-Reply-To: A<20060802135838.57316.qmail@web55702.mail.re3.yahoo.com> Message-ID: Albert, You can include the initialization parameters for your page in the URL for that page. Look at what hidden variables the post request triggered by your 'Initialize' button is passing to MapServer and pass them in your URL. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, August 02, 2006 8:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how do I get rid of clicking the button and loading it my html? Hi, I am using intializing button as a submit button. The html template is using the get method. I would like to know how to get rid of the submit button. Just have the mapserver auto load into the html without clicking the intializing and get the information from the mapserver. Thanks Albert Manfred Meier wrote: I don't know your application and so don't know which initialzing button you mean. But if there is a button then it is most likely a submit button of a form. Look at the source code of the html page in your browser and try to find out, to what url the action property in the form tag points. If there are no other hidden or visible input tags, try to point your browser to the url in the action property. If there are input tags, try to append the neccessary values to the url. I don't know if that works in your case. But its a often used method to circumvent the manual filling of forms. Manfred Albert Anderson schrieb: > Hi List, > > My question is how do I get my page to load auto like without using > initialzing button. I dont want to use the button. I just want to page > just load. Is there a way around this? I'm using a linux machine with > mapsever 4. Could someone help me? > > Thanks, > Albert > > ------------------------------------------------------------------------ > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > ________________________________ Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 2 07:53:04 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 2 Aug 2006 07:53:04 -0700 Subject: how do I get rid of clicking the button and loading it my html? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB082F@s-sp22.pca.state.mn.us> Message-ID: Hi, How do you do that?In my html can I remove [img] and [ref]? I transfor the some hidden values and get use the button. It did show up my image or ref map. It just said subit query in the middle of the image place. I click that and It load my map but my zoom-in and zoom-out didnt work and etc... Is there anything else you could give me as help? Thanks Albert "Fawcett, David" wrote:Message Albert, You can include the initialization parameters for your page in the URL for that page. Look at what hidden variables the post request triggered by your 'Initialize' button is passing to MapServer and pass them in your URL. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, August 02, 2006 8:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how do I get rid of clicking the button and loading it my html? Hi, I am using intializing button as a submit button. The html template is using the get method. I would like to know how to get rid of the submit button. Just have the mapserver auto load into the html without clicking the intializing and get the information from the mapserver. Thanks Albert Manfred Meier wrote: I don't know your application and so don't know which initialzing button you mean. But if there is a button then it is most likely a submit button of a form. Look at the source code of the html page in your browser and try to find out, to what url the action property in the form tag points. If there are no other hidden or visible input tags, try to point your browser to the url in the action property. If there are input tags, try to append the neccessary values to the url. I don't know if that works in your case. But its a often used method to circumvent the manual filling of forms. Manfred Albert Anderson schrieb: > Hi List, > > My question is how do I get my page to load auto like without using > initialzing button. I dont want to use the button. I just want to page > just load. Is there a way around this? I'm using a linux machine with > mapsever 4. Could someone help me? > > Thanks, > Albert > > ------------------------------------------------------------------------ > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > --------------------------------- Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Aug 2 07:58:54 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 2 Aug 2006 09:58:54 -0500 Subject: how do I get rid of clicking the button and loading it my html? In-Reply-To: A<20060802145304.32804.qmail@web55701.mail.re3.yahoo.com> Message-ID: Leave your template page alone, you need the cgi variables like [img], etc. Look at the hidden variables on your inialize page and pass them in the URL when you access the map page for the first time. I am assuming that you based this application on the demo and the 'initialize' button is on a different page than your map. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, August 02, 2006 9:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how do I get rid of clicking the button and loading it my html? Hi, How do you do that?In my html can I remove [img] and [ref]? I transfor the some hidden values and get use the button. It did show up my image or ref map. It just said subit query in the middle of the image place. I click that and It load my map but my zoom-in and zoom-out didnt work and etc... Is there anything else you could give me as help? Thanks Albert "Fawcett, David" wrote: Albert, You can include the initialization parameters for your page in the URL for that page. Look at what hidden variables the post request triggered by your 'Initialize' button is passing to MapServer and pass them in your URL. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, August 02, 2006 8:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how do I get rid of clicking the button and loading it my html? Hi, I am using intializing button as a submit button. The html template is using the get method. I would like to know how to get rid of the submit button. Just have the mapserver auto load into the html without clicking the intializing and get the information from the mapserver. Thanks Albert Manfred Meier wrote: I don't know your application and so don't know which initialzing button you mean. But if there is a button then it is most likely a submit button of a form. Look at the source code of the html page in your browser and try to find out, to what url the action property in the form tag points. If there are no other hidden or visible input tags, try to point your browser to the url in the action property. If there are input tags, try to append the neccessary values to the url. I don't know if that works in your case. But its a often used method to circumvent the manual filling of forms. Manfred Albert Anderson schrieb: > Hi List, > > My question is how do I get my page to load auto like without using > initialzing button. I dont want to use the button. I just want to page > just load. Is there a way around this? I'm using a linux machine with > mapsever 4. Could someone help me? > > Thanks, > Albert > > ------------------------------------------------------------------------ > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > ________________________________ Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. ________________________________ Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From earevaloch at GMAIL.COM Wed Aug 2 07:59:53 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 2 Aug 2006 09:59:53 -0500 Subject: Server Problem?????? Message-ID: Hello List I am consulting this tutorial http://hypnos.cbs.umn.edu/tutorial/section2.html As it is the problem with the server:????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpederse at NATURE.BERKELEY.EDU Wed Aug 2 08:04:09 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Wed, 2 Aug 2006 08:04:09 -0700 Subject: panning and zoomin and out, and ect In-Reply-To: <20060802135259.15108.qmail@web55704.mail.re3.yahoo.com> Message-ID: hi, can you give more info on how it is not working? what happens? you may want to check what x and y are coming out as. often + will concatenate numbers instaed of adding. also, are you sure you want x and y to go negative as you have made them in 'nw' for example? i would try if(direction=='nw'){ x = 1; y = 1; } which i think should recenter you on the upper left corner of the map. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > I put my code with this email "hoping" for more than just it maybe in your map file or hidden variables thats all. > > Thanks, > Albert > > Luis Trevi?o wrote: Albert: > Maybe the problem is in your map file or in the hidden variables of your template. > > > > 2006/8/1, Albert Anderson : Hi, > > I tried that code. I didnt get it to work. Here is my code. Can you see if I need to do something else? What else do I need? > > > > > > HEIGHT="460" BORDER="0" align="left" CELLPADDING="0" CELLSPACING="0"> > > > > > > > > > > > > > > > > > >
VALIGN="top" BGCOLOR="#e7a500">pan nw VALIGN="top">
pan north
VALIGN="top" BGCOLOR="#e7a500">pan ne
VALIGN="MIDDLE">pan west HEIGHT="413" VALIGN="MIDDLE" WIDTH="309"> > > > VALIGN="MIDDLE">
pan east
VALIGN="bottom" BGCOLOR="#e7a500">pan sw VALIGN="bottom">
pan south
VALIGN="bottom">pan se
> > > > Luis Trevi?o wrote: > > 2006/7/21, Albert Anderson : Hi, > > I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. > > You can use something like this, you have to handle your width and height of your image: > alto = height, ancho = width. > function paneo(direccion,alto,ancho) { > var x,y; > var pansize = 0.75; > if(direccion == 'n') { > x = (ancho-1)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 'nw') { > x = 0 - (ancho * pansize)/2.0; > y = 0 - (ancho * pansize)/2.0; > } else if(direccion == 'ne') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 's') { > x = (ancho-1)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'sw') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'se') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'e') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } else if(direccion == 'w') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > Anyother question, is there a _java script for images to zoom-in and out? > you can use the zoomdir and the zoom values within your template, like: > > > for a zoom out., so you can use radio buttons to manage this values > > > > One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? > > Thanks, > > Albert > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > Hope this helps. > > Regards, > Luis > > > > > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. > > > > > > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. From Steve.Lime at DNR.STATE.MN.US Wed Aug 2 08:13:40 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 2 Aug 2006 10:13:40 -0500 Subject: Open Source GIS San Diego Gathering (OSG-SD) - Tuesday, August 8th, 6:30pm - 9 In-Reply-To: <20060802100200.98490.qmail@web33109.mail.mud.yahoo.com> Message-ID: Perhaps you could add this as an upcoming event on the MapServer website? >>> dnrg 8/2/2006 5:02:00 AM >>> Open Source GIS San Diego Gathering (OSG-SD) - Tuesday, August 8th, 6:30pm You are cordially invited to an Open Source GIS gathering in San Diego. WHEN: Tuesday, August 8th 2006, 6:30pm to 9:00pm WHERE: Visualization Lab, San Diego State University ( http://citi.sdsu.edu/ ) WHY: To introduce geospatial professionals to free open source complements to commercial GIS software ADMISSION: Free, as in free beer. However, space in the lab is limited. Please contact Dana Nibby to be added to our mailing list: danaspatial at yahoo.com FOOD: Free, as in free beer, pizza and soda will be provided. DIRECTIONS: Driving - http://citi.sdsu.edu/directions Directions using public transportation to follow. PROPOSED EVENTS: * 6:30pm to 6:59pm - Doors open. Socializing * 7:00pm to 7:14pm - Welcome / Introduction * 7:15pm to 7:44pm - Presentation 1 (need presenter - preferred topic: Introduction to Open Source GIS Software) Please contact Dana Nibby if you are interested in presenting: danaspatial at yahoo.com * 7:45pm to 8:14pm - Presentation 2 (need presenter - preferred topic: MapServer + PostGIS) Please contact Dana Nibby if you are interested in presenting: danaspatial at yahoo.com * 8:15pm to 8:45pm - Open discussion on planning a larger event for 2007 * 9:00pm to 10:00pm - Beer social at _________. (BYOB - Buy Your Own Beverage) For more information, please check the following web site in the days leading up to the event: http://NCSDUG.ORG Thanks very much and hope to see you there. Please RSVP if you wish to attend, or can assist: danaspatial at yahoo.com Please forward this notice on and help get the word out. Post to other lists. Tell your friends. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bart_doggers at YAHOO.COM Wed Aug 2 08:49:46 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 2 Aug 2006 08:49:46 -0700 Subject: panning and zoomin and out, and ect In-Reply-To: Message-ID: Hi, Its not working cause It doesnt do anything when I click the button. I got know if I want my number to go negative. I am new to this. You told me to try this i would try if(direction=='nw'){ x = 1; y = 1; } so do I change my code that I have? else if(direction== 'nw') { x = 0 + (309 * pansize)/2.0; y = 0 + (309 * pansize)/2.0; I dont know what I am doing?Could you help me? Thanks, Albert Brent Pedersen wrote: hi, can you give more info on how it is not working? what happens? you may want to check what x and y are coming out as. often + will concatenate numbers instaed of adding. also, are you sure you want x and y to go negative as you have made them in 'nw' for example? i would try if(direction=='nw'){ x = 1; y = 1; } which i think should recenter you on the upper left corner of the map. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > I put my code with this email "hoping" for more than just it maybe in your map file or hidden variables thats all. > > Thanks, > Albert > > Luis Trevi?o wrote: Albert: > Maybe the problem is in your map file or in the hidden variables of your template. > > > > 2006/8/1, Albert Anderson : Hi, > > I tried that code. I didnt get it to work. Here is my code. Can you see if I need to do something else? What else do I need? > > > > > var mapheight = 417; > var mapwidth = 309; > var pansize = 0.75; > > function pan(direction) { > var x,y; > > if(direction== 'n') { > x = (309-1)/2.0; > y = 0 - (417 * pansize)/2.0; > } else if(direction== 'nw') { > x = 0 - (309 * pansize)/2.0; > y = 0 - (309 * pansize)/2.0; > } else if(direction== 'ne') { > x = (309-1) + (309 * pansize)/2.0; > y = 0 - (417 * pansize)/2.0; > } else if(direction== 's') { > x = (309-1)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'sw') { > x = 0 - (309 * pansize)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'se') { > x = (309-1) + (309 * pansize)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'e') { > x = (309-1) + (309 * pansize)/2.0; > y = (417-1)/2.0; > } else if(direction== 'w') { > x = 0 - (309 * pansize)/2.0; > y = (417-1)/2.0; > } > > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > > > HEIGHT="460" BORDER="0" align="left" CELLPADDING="0" CELLSPACING="0"> > > > > > VALIGN="top" BGCOLOR="#e7a500"> > > VALIGN="top"> > > VALIGN="top" BGCOLOR="#e7a500"> > > > > > VALIGN="MIDDLE"> > > HEIGHT="413" VALIGN="MIDDLE" WIDTH="309"> > > > [input] > > VALIGN="MIDDLE"> > > > > VALIGN="bottom" BGCOLOR="#e7a500"> > > VALIGN="bottom"> > > VALIGN="bottom"> > > > > > Luis Trevi?o wrote: > > 2006/7/21, Albert Anderson : Hi, > > I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. > > You can use something like this, you have to handle your width and height of your image: > alto = height, ancho = width. > function paneo(direccion,alto,ancho) { > var x,y; > var pansize = 0.75; > if(direccion == 'n') { > x = (ancho-1)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 'nw') { > x = 0 - (ancho * pansize)/2.0; > y = 0 - (ancho * pansize)/2.0; > } else if(direccion == 'ne') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 's') { > x = (ancho-1)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'sw') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'se') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'e') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } else if(direccion == 'w') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > Anyother question, is there a _java script for images to zoom-in and out? > you can use the zoomdir and the zoom values within your template, like: > [input] > [input] > for a zoom out., so you can use radio buttons to manage this values > > > > One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? > > Thanks, > > Albert > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > Hope this helps. > > Regards, > Luis > > > > > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. > > > > > > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. --------------------------------- Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Aug 2 08:57:02 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 2 Aug 2006 10:57:02 -0500 Subject: panning and zoomin and out, and ect In-Reply-To: A<20060802154946.61949.qmail@web55703.mail.re3.yahoo.com> Message-ID: Albert, You may want to look at how it is done in the dBox interface. http://maps.dnr.state.mn.us/tools/dbox/ In fact, you may just want to use dBox or modify it. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, August 02, 2006 10:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] panning and zoomin and out, and ect Hi, Its not working cause It doesnt do anything when I click the button. I got know if I want my number to go negative. I am new to this. You told me to try this i would try if(direction=='nw'){ x = 1; y = 1; } so do I change my code that I have? else if(direction== 'nw') { x = 0 + (309 * pansize)/2.0; y = 0 + (309 * pansize)/2.0; I dont know what I am doing?Could you help me? Thanks, Albert Brent Pedersen wrote: hi, can you give more info on how it is not working? what happens? you may want to check what x and y are coming out as. often + will concatenate numbers instaed of adding. also, are you sure you want x and y to go negative as you have made them in 'nw' for example? i would try if(direction=='nw'){ x = 1; y = 1; } which i think should recenter you on the upper left corner of the map. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > I put my code with this email "hoping" for more than just it maybe in your map file or hidden variables thats all. > > Thanks, > Albert > > Luis Trevi?o wrote: Albert: > Maybe the problem is in your map file or in the hidden variables of your template. > > > > 2006/8/1, Albert Anderson : Hi, > > I tried that code. I didnt get it to work. Here is my code. Can you see if I need to do something else? What else do I need? > > > > > > > HEIGHT="460" BORDER="0" align="left" CELLPADDING="0" CELLSPACING="0"> > > > > > VALIGN="top" BGCOLOR="#e7a500">pan nw > > VALIGN="top"> pan north > > VALIGN="top" BGCOLOR="#e7a500">pan ne > > > > > VALIGN="MIDDLE">pan west > > HEIGHT="413" VALIGN="MIDDLE" WIDTH="309"> > > > > > VALIGN="MIDDLE"> pan east > > > > VALIGN="bottom" BGCOLOR="#e7a500">pan sw > > VALIGN="bottom"> pan south > > VALIGN="bottom">pan se > > > > > Luis Trevi?o wrote: > > 2006/7/21, Albert Anderson : Hi, > > I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. > > You can use something like this, you have to handle your width and height of your image: > alto = height, ancho = width. > function paneo(direccion,alto,ancho) { > var x,y; > var pansize = 0.75; > if(direccion == 'n') { > x = (ancho-1)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 'nw') { > x = 0 - (ancho * pansize)/2.0; > y = 0 - (ancho * pansize)/2.0; > } else if(direccion == 'ne') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 's') { > x = (ancho-1)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'sw') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'se') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'e') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } else if(direccion == 'w') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > Anyother question, is there a _java script for images to zoom-in and out? > you can use the zoomdir and the zoom values within your template, like: > > > for a zoom out., so you can use radio buttons to manage this values > > > > One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? > > Thanks, > > Albert > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > Hope this helps. > > Regards, > Luis > > > > > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. > > > > > > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. ________________________________ Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 2 09:07:41 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 2 Aug 2006 09:07:41 -0700 Subject: panning and zoomin and out, and ect In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0832@s-sp22.pca.state.mn.us> Message-ID: Hi, I tried that yestarday. I couldnt seem to get jBox working. I made the java/jBox folder under my var/www/htdocs. After that I tried everything but I got confussed. Albert "Fawcett, David" wrote:Message Albert, You may want to look at how it is done in the dBox interface. http://maps.dnr.state.mn.us/tools/dbox/ In fact, you may just want to use dBox or modify it. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, August 02, 2006 10:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] panning and zoomin and out, and ect Hi, Its not working cause It doesnt do anything when I click the button. I got know if I want my number to go negative. I am new to this. You told me to try this i would try if(direction=='nw'){ x = 1; y = 1; } so do I change my code that I have? else if(direction== 'nw') { x = 0 + (309 * pansize)/2.0; y = 0 + (309 * pansize)/2.0; I dont know what I am doing?Could you help me? Thanks, Albert Brent Pedersen wrote: hi, can you give more info on how it is not working? what happens? you may want to check what x and y are coming out as. often + will concatenate numbers instaed of adding. also, are you sure you want x and y to go negative as you have made them in 'nw' for example? i would try if(direction=='nw'){ x = 1; y = 1; } which i think should recenter you on the upper left corner of the map. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > I put my code with this email "hoping" for more than just it maybe in your map file or hidden variables thats all. > > Thanks, > Albert > > Luis Trevi?o wrote: Albert: > Maybe the problem is in your map file or in the hidden variables of your template. > > > > 2006/8/1, Albert Anderson : Hi, > > I tried that code. I didnt get it to work. Here is my code. Can you see if I need to do something else? What else do I need? > > > > > var mapheight = 417; > var mapwidth = 309; > var pansize = 0.75; > > function pan(direction) { > var x,y; > > if(direction== 'n') { > x = (309-1)/2.0; > y = 0 - (417 * pansize)/2.0; > } else if(direction== 'nw') { > x = 0 - (309 * pansize)/2.0; > y = 0 - (309 * pansize)/2.0; > } else if(direction== 'ne') { > x = (309-1) + (309 * pansize)/2.0; > y = 0 - (417 * pansize)/2.0; > } else if(direction== 's') { > x = (309-1)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'sw') { > x = 0 - (309 * pansize)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'se') { > x = (309-1) + (309 * pansize)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'e') { > x = (309-1) + (309 * pansize)/2.0; > y = (417-1)/2.0; > } else if(direction== 'w') { > x = 0 - (309 * pansize)/2.0; > y = (417-1)/2.0; > } > > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > > > HEIGHT="460" BORDER="0" align="left" CELLPADDING="0" CELLSPACING="0"> > > > > > VALIGN="top" BGCOLOR="#e7a500"> > > VALIGN="top"> > > VALIGN="top" BGCOLOR="#e7a500"> > > > > > VALIGN="MIDDLE"> > > HEIGHT="413" VALIGN="MIDDLE" WIDTH="309"> > > > [input] > > VALIGN="MIDDLE"> > > > > VALIGN="bottom" BGCOLOR="#e7a500"> > > VALIGN="bottom"> > > VALIGN="bottom"> > > > > > Luis Trevi?o wrote: > > 2006/7/21, Albert Anderson : Hi, > > I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. > > You can use something like this, you have to handle your width and height of your image: > alto = height, ancho = width. > function paneo(direccion,alto,ancho) { > var x,y; > var pansize = 0.75; > if(direccion == 'n') { > x = (ancho-1)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 'nw') { > x = 0 - (ancho * pansize)/2.0; > y = 0 - (ancho * pansize)/2.0; > } else if(direccion == 'ne') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 's') { > x = (ancho-1)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'sw') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'se') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'e') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } else if(direccion == 'w') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > Anyother question, is there a _java script for images to zoom-in and out? > you can use the zoomdir and the zoom values within your template, like: > [input] > [input] > for a zoom out., so you can use radio buttons to manage this values > > > > One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? > > Thanks, > > Albert > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > Hope this helps. > > Regards, > Luis > > > > > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. > > > > > > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. --------------------------------- Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. --------------------------------- Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Aug 2 09:10:47 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 2 Aug 2006 11:10:47 -0500 Subject: panning and zoomin and out, and ect In-Reply-To: <20060802160741.72526.qmail@web55703.mail.re3.yahoo.com> Message-ID: Albert, I am referring to dBox, not jBox. dBox uses dhtml (javascript), not Java. David. -----Original Message----- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Wednesday, August 02, 2006 11:08 AM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] panning and zoomin and out, and ect Hi, I tried that yestarday. I couldnt seem to get jBox working. I made the java/jBox folder under my var/www/htdocs. After that I tried everything but I got confussed. Albert "Fawcett, David" wrote: Albert, You may want to look at how it is done in the dBox interface. http://maps.dnr.state.mn.us/tools/dbox/ In fact, you may just want to use dBox or modify it. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, August 02, 2006 10:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] panning and zoomin and out, and ect Hi, Its not working cause It doesnt do anything when I click the button. I got know if I want my number to go negative. I am new to this. You told me to try this i would try if(direction=='nw'){ x = 1; y = 1; } so do I change my code that I have? else if(direction== 'nw') { x = 0 + (309 * pansize)/2.0; y = 0 + (309 * pansize)/2.0; I dont know what I am doing?Could you help me? Thanks, Albert Brent Pedersen wrote: hi, can you give more info on how it is not working? what happens? you may want to check what x and y are coming out as. often + will concatenate numbers instaed of adding. also, are you sure you want x and y to go negative as you have made them in 'nw' for example? i would try if(direction=='nw'){ x = 1; y = 1; } which i think should recenter you on the upper left corner of the map. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > I put my code with this email "hoping" for more than just it maybe in your map file or hidden variables thats all. > > Thanks, > Albert > > Luis Trevi?o wrote: Albert: > Maybe the problem is in your map file or in the hidden variables of your template. > > > > 2006/8/1, Albert Anderson : Hi, > > I tried that code. I didnt get it to work. Here is my code. Can you see if I need to do something else? What else do I need? > > > > > > > HEIGHT="460" BORDER="0" align="left" CELLPADDING="0" CELLSPACING="0"> > > > > > VALIGN="top" BGCOLOR="#e7a500">pan nw > > VALIGN="top"> pan north > > VALIGN="top" BGCOLOR="#e7a500">pan ne > > > > > VALIGN="MIDDLE">pan west > > HEIGHT="413" VALIGN="MIDDLE" WIDTH="309"> > > > > > VALIGN="MIDDLE"> pan east > > > > VALIGN="bottom" BGCOLOR="#e7a500">pan sw > > VALIGN="bottom"> pan south > > VALIGN="bottom">pan se > > > > > Luis Trevi?o wrote: > > 2006/7/21, Albert Anderson : Hi, > > I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. > > You can use something like this, you have to handle your width and height of your image: > alto = height, ancho = width. > function paneo(direccion,alto,ancho) { > var x,y; > var pansize = 0.75; > if(direccion == 'n') { > x = (ancho-1)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 'nw') { > x = 0 - (ancho * pansize)/2.0; > y = 0 - (ancho * pansize)/2.0; > } else if(direccion == 'ne') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 's') { > x = (ancho-1)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'sw') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'se') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'e') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } else if(direccion == 'w') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > Anyother question, is there a _java script for images to zoom-in and out? > you can use the zoomdir and the zoom values within your template, like: > > > for a zoom out., so you can use radio buttons to manage this values > > > > One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? > > Thanks, > > Albert > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > Hope this helps. > > Regards, > Luis > > > > > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. > > > > > > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. ________________________________ Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. ________________________________ Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 2 09:17:36 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 2 Aug 2006 09:17:36 -0700 Subject: panning and zoomin and out, and ect In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0834@s-sp22.pca.state.mn.us> Message-ID: Hi, Okay. I downloaded it but where do I untar it. I am using GIShost Mapserver 4 on a linux machine. Do I put it under var/www/htdosc/dBox???? or what? Albert "Fawcett, David" wrote:Message Albert, I am referring to dBox, not jBox. dBox uses dhtml (javascript), not Java. David. -----Original Message----- From: Albert Anderson [mailto:bart_doggers at yahoo.com] Sent: Wednesday, August 02, 2006 11:08 AM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] panning and zoomin and out, and ect Hi, I tried that yestarday. I couldnt seem to get jBox working. I made the java/jBox folder under my var/www/htdocs. After that I tried everything but I got confussed. Albert "Fawcett, David" wrote: Albert, You may want to look at how it is done in the dBox interface. http://maps.dnr.state.mn.us/tools/dbox/ In fact, you may just want to use dBox or modify it. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Wednesday, August 02, 2006 10:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] panning and zoomin and out, and ect Hi, Its not working cause It doesnt do anything when I click the button. I got know if I want my number to go negative. I am new to this. You told me to try this i would try if(direction=='nw'){ x = 1; y = 1; } so do I change my code that I have? else if(direction== 'nw') { x = 0 + (309 * pansize)/2.0; y = 0 + (309 * pansize)/2.0; I dont know what I am doing?Could you help me? Thanks, Albert Brent Pedersen wrote: hi, can you give more info on how it is not working? what happens? you may want to check what x and y are coming out as. often + will concatenate numbers instaed of adding. also, are you sure you want x and y to go negative as you have made them in 'nw' for example? i would try if(direction=='nw'){ x = 1; y = 1; } which i think should recenter you on the upper left corner of the map. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > I put my code with this email "hoping" for more than just it maybe in your map file or hidden variables thats all. > > Thanks, > Albert > > Luis Trevi?o wrote: Albert: > Maybe the problem is in your map file or in the hidden variables of your template. > > > > 2006/8/1, Albert Anderson : Hi, > > I tried that code. I didnt get it to work. Here is my code. Can you see if I need to do something else? What else do I need? > > > > > var mapheight = 417; > var mapwidth = 309; > var pansize = 0.75; > > function pan(direction) { > var x,y; > > if(direction== 'n') { > x = (309-1)/2.0; > y = 0 - (417 * pansize)/2.0; > } else if(direction== 'nw') { > x = 0 - (309 * pansize)/2.0; > y = 0 - (309 * pansize)/2.0; > } else if(direction== 'ne') { > x = (309-1) + (309 * pansize)/2.0; > y = 0 - (417 * pansize)/2.0; > } else if(direction== 's') { > x = (309-1)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'sw') { > x = 0 - (309 * pansize)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'se') { > x = (309-1) + (309 * pansize)/2.0; > y = (417-1) + (417 * pansize)/2.0; > } else if(direction== 'e') { > x = (309-1) + (309 * pansize)/2.0; > y = (417-1)/2.0; > } else if(direction== 'w') { > x = 0 - (309 * pansize)/2.0; > y = (417-1)/2.0; > } > > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > > > HEIGHT="460" BORDER="0" align="left" CELLPADDING="0" CELLSPACING="0"> > > > > > VALIGN="top" BGCOLOR="#e7a500"> > > VALIGN="top"> > > VALIGN="top" BGCOLOR="#e7a500"> > > > > > VALIGN="MIDDLE"> > > HEIGHT="413" VALIGN="MIDDLE" WIDTH="309"> > > > [input] > > VALIGN="MIDDLE"> > > > > VALIGN="bottom" BGCOLOR="#e7a500"> > > VALIGN="bottom"> > > VALIGN="bottom"> > > > > > Luis Trevi?o wrote: > > 2006/7/21, Albert Anderson : Hi, > > I figure out my images. Does anyone have a _java script for using a image for panning. I have images set for the corners of my map. I want to use them to pan. > > You can use something like this, you have to handle your width and height of your image: > alto = height, ancho = width. > function paneo(direccion,alto,ancho) { > var x,y; > var pansize = 0.75; > if(direccion == 'n') { > x = (ancho-1)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 'nw') { > x = 0 - (ancho * pansize)/2.0; > y = 0 - (ancho * pansize)/2.0; > } else if(direccion == 'ne') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = 0 - (alto * pansize)/2.0; > } else if(direccion == 's') { > x = (ancho-1)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'sw') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'se') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1) + (alto * pansize)/2.0; > } else if(direccion == 'e') { > x = (ancho-1) + (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } else if(direccion == 'w') { > x = 0 - (ancho * pansize)/2.0; > y = (alto-1)/2.0; > } > document.mapserv.imgxy.value = x + " " + y; > document.mapserv.submit(); > } > > > Anyother question, is there a _java script for images to zoom-in and out? > you can use the zoomdir and the zoom values within your template, like: > [input] > [input] > for a zoom out., so you can use radio buttons to manage this values > > > > One more question, I have a refresh button and pan radio button, then we I click refresh to take a layer off it moves the projective image. Why? But when I am on zoomin radio button and click refresh it acts like its panning? Why? > > Thanks, > > Albert > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > Hope this helps. > > Regards, > Luis > > > > > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. > > > > > > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. --------------------------------- Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. --------------------------------- Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Wed Aug 2 12:59:11 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 2 Aug 2006 18:59:11 -0100 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: <20060802135838.57316.qmail@web55702.mail.re3.yahoo.com> Message-ID: Hi Albert! You can pass parameters through the url. You must pass the name of your map file. For example: http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map Zoltan There aremany parameters you can set through the url, see the cgi mapserver reference. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > > I am using intializing button as a submit button. The html template is using the get method. I would like to know how to get rid of the submit button. Just have the mapserver auto load into the html without clicking the intializing and get the information from the mapserver. Thanks > > Albert > > Manfred Meier wrote: I don't know your application and so don't know which initialzing button > you mean. But if there is a button then it is most likely a submit > button of a form. Look at the source code of the html page in your > browser and try to find out, to what url the action property in the form > tag points. > > If there are no other hidden or visible input tags, try to point your > browser to the url in the action property. If there are input tags, try > to append the neccessary values to the url. > > I don't know if that works in your case. But its a often used method to > circumvent the manual filling of forms. > > Manfred > > > > > Albert Anderson schrieb: > > > Hi List, > > > > My question is how do I get my page to load auto like without using > > initialzing button. I dont want to use the button. I just want to page > > just load. Is there a way around this? I'm using a linux machine with > > mapsever 4. Could someone help me? > > > > Thanks, > > Albert > > > > ------------------------------------------------------------------------ > > Do you Yahoo!? > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > --------------------------------- > Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups. From earevaloch at GMAIL.COM Wed Aug 2 10:26:08 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 2 Aug 2006 12:26:08 -0500 Subject: error in scalebar ???????? Message-ID: I have following erro in mapfile treatment to put a scale bar. getInteger(): Symbol definition error. Parsing error near (LABEL):(line 25) the part of mapfile is: MAP . . . . WEB .... end SCALEBAR IMAGECOLOR 255.255.255 LABEL (line 25) COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT FALSE STATUS ON END . . . . -------------- next part -------------- An HTML attachment was scrubbed... URL: From ltrevinoh at GMAIL.COM Wed Aug 2 10:38:03 2006 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Wed, 2 Aug 2006 12:38:03 -0500 Subject: error in scalebar ???????? In-Reply-To: <95f68e530608021026y3ac9f5e0xc69b7f8b47424de7@mail.gmail.com> Message-ID: Eduardo: Maybe the problem is that you have the IMAGECOLOR with points between the values, try removing them using: IMAGECOLOR 255 255 255 Saludos Luis 2006/8/2, Eduardo Ar?valo : > > I have following erro in mapfile treatment to put a scale bar. > > getInteger(): Symbol definition error. Parsing error near (LABEL):(line > 25) > > the part of mapfile is: > MAP > . > . > . > . > WEB > .... > end > SCALEBAR > IMAGECOLOR 255.255.255 > > LABEL (line 25) > COLOR 0 0 0 > SIZE TINY > END > STYLE 1 > SIZE 100 2 > COLOR 0 0 0 > UNITS MILES > INTERVALS 2 > TRANSPARENT FALSE > STATUS ON > END > . > . > . > . > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 2 11:30:06 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 2 Aug 2006 11:30:06 -0700 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: Message-ID: hi, Where do I put that example at? Also I look at map context support through cgi and I dont understand it. The site is http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext Could you help me. Albert Siki Zoltan wrote: Hi Albert! You can pass parameters through the url. You must pass the name of your map file. For example: http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map Zoltan There aremany parameters you can set through the url, see the cgi mapserver reference. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > > I am using intializing button as a submit button. The html template is using the get method. I would like to know how to get rid of the submit button. Just have the mapserver auto load into the html without clicking the intializing and get the information from the mapserver. Thanks > > Albert > > Manfred Meier wrote: I don't know your application and so don't know which initialzing button > you mean. But if there is a button then it is most likely a submit > button of a form. Look at the source code of the html page in your > browser and try to find out, to what url the action property in the form > tag points. > > If there are no other hidden or visible input tags, try to point your > browser to the url in the action property. If there are input tags, try > to append the neccessary values to the url. > > I don't know if that works in your case. But its a often used method to > circumvent the manual filling of forms. > > Manfred > > > > > Albert Anderson schrieb: > > > Hi List, > > > > My question is how do I get my page to load auto like without using > > initialzing button. I dont want to use the button. I just want to page > > just load. Is there a way around this? I'm using a linux machine with > > mapsever 4. Could someone help me? > > > > Thanks, > > Albert > > > > ------------------------------------------------------------------------ > > Do you Yahoo!? > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > --------------------------------- > Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. --------------------------------- Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 2 11:30:18 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 2 Aug 2006 11:30:18 -0700 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: Message-ID: hi, Where do I put that example at? Also I look at map context support through cgi and I dont understand it. The site is http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext Could you help me. Albert Siki Zoltan wrote: Hi Albert! You can pass parameters through the url. You must pass the name of your map file. For example: http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map Zoltan There aremany parameters you can set through the url, see the cgi mapserver reference. On Wed, 2 Aug 2006, Albert Anderson wrote: > Hi, > > I am using intializing button as a submit button. The html template is using the get method. I would like to know how to get rid of the submit button. Just have the mapserver auto load into the html without clicking the intializing and get the information from the mapserver. Thanks > > Albert > > Manfred Meier wrote: I don't know your application and so don't know which initialzing button > you mean. But if there is a button then it is most likely a submit > button of a form. Look at the source code of the html page in your > browser and try to find out, to what url the action property in the form > tag points. > > If there are no other hidden or visible input tags, try to point your > browser to the url in the action property. If there are input tags, try > to append the neccessary values to the url. > > I don't know if that works in your case. But its a often used method to > circumvent the manual filling of forms. > > Manfred > > > > > Albert Anderson schrieb: > > > Hi List, > > > > My question is how do I get my page to load auto like without using > > initialzing button. I dont want to use the button. I just want to page > > just load. Is there a way around this? I'm using a linux machine with > > mapsever 4. Could someone help me? > > > > Thanks, > > Albert > > > > ------------------------------------------------------------------------ > > Do you Yahoo!? > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > --------------------------------- > Groups are talking. We?re listening. Check out the handy changes to Yahoo! Groups. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rockwell_001 at YAHOO.COM Wed Aug 2 11:38:06 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 2 Aug 2006 11:38:06 -0700 Subject: CGI Qlayer,Qstring variables usage In-Reply-To: <44CE333E0200008F000004CE@co5.dnr.state.mn.us> Message-ID: Hi steve, we also have mapscript application but for this project we want to post it to a URL instead of using php mapscript or anyother mapscript .... I have tried all the possible map file parameters to set in the url like imagetype, units, Label etc but for projection when i use "map_projection=somevalve", mapserver outputs the following error msProcessProjection(): Projection library error. projection not named, i have even tried map_layername_projection but no luck ... is the syntax some thing else for projection .... Thanks for your time and effort .. kris Steve Lime wrote: There is reference to this capability at: http://mapserver.gis.umn.edu/docs/reference/cgi/controls At the end of the document. Many parameters can be modified this way although if I were doing much with this I would likely suggest using MapScript. I typically just use the mechanism to change the units on a second scalebar (e.g. mode=scalebar) or add a dynamic feature or two. Steve >>> rock well 7/31/2006 2:11:51 PM >>> Thanks for your reply steve, its working. i was wondering if you can tell me where did you find the documentation for this so that i could read and see if there are any other features or parameters than i can use in the url. Thanks again kris Steve Lime wrote: Kris: Have you tried using the map_layername_projection=... syntax? Will work for the main projection as well using map_projection=... Steve >>> rock well 07/28/06 6:03 PM >>> Hi all, i got this working to query a layer and am able to display the result too ... the url looks like http://localhost/mapserv.exe?MODE=map&MAP=c:/Inetpub/states.map&LAYERS=states&filter_id=SD but what i am trying now is to pass the projection id in the url, but i guess mapserver doesnt support this form of variable substitution. Is there anyother way to pass the projection id from the url ... Thanks for your effort and time .. kris "Fawcett, David" wrote: Kris, This may not quite work, but it should be closer. Try something like: http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Thursday, July 20, 2006 5:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage Hello all, I was trying to query one of the layers from a shape file in the url, i am used map as the mode and gave the layer name for Qlayer, column name for Qitem and QString. Part of the URL looks like http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") the map is displayed but it didnt filter the layer with the given querystring variables .... Is there something missing, can anyone suggest with something ... Thanks for your effort and time .... kris --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mljacks2 at HOTMAIL.COM Wed Aug 2 11:50:57 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Wed, 2 Aug 2006 13:50:57 -0500 Subject: What does this error message mean? Message-ID: What does this mean? This message is generated when I try to run my java mapscript application on Tomcat. "fatal flex scanner internal error--end of buffer missed" _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From Steve.Lime at DNR.STATE.MN.US Wed Aug 2 12:15:45 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 2 Aug 2006 14:15:45 -0500 Subject: What does this error message mean? In-Reply-To: Message-ID: Hmmm... Haven't seen that one before. I've found very little on Google with regards to the error. Something tells me it has to do with something like an empty file however I tried doing that locally and got a more appropriate error. So, we'll need more information. - what platform? what version? - what does the mapfile look like? can you run shp2img on it? - have you run this or a similar script successfully under tomcat? Steve >>> "M.L. Jackson" 8/2/2006 1:50:57 PM >>> What does this mean? This message is generated when I try to run my java mapscript application on Tomcat. "fatal flex scanner internal error--end of buffer missed" _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From mljacks2 at HOTMAIL.COM Wed Aug 2 12:54:14 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Wed, 2 Aug 2006 14:54:14 -0500 Subject: What does this error message mean? In-Reply-To: <44D0B3910200008F00000745@co5.dnr.state.mn.us> Message-ID: I'm on a Windows machine running mapscript 4.6.0-beta1. Shp2img runs on it fine. The map file is a map of the United States of America with a rivers layer, states layer, and wms layer. I'm running a JSP script. Yes, I have run a similar script on Tomcat. The script prints an interactive map legend using a Java Bean print method call. The Java Bean method looks like this: public String makeLegend() { String layerName = ""; int layerCount = map.getNumlayers(); String legend = ""; //check the layer for a space which will cause problems and display error message for(int i = 0; i < layerCount; i++) { layerName = map.getLayer(i).getName(); if(layerName.contains(" ")){ legend += "

The layer name \"" + layerName + "\" contains a space character and will not function correctly!!
" + "Find the layer in the map file and remove the space, then " + "reload the application.
"; return legend; } } //generates html for check boxes legend = "
"; for(int i = 0; i < layerCount; i++) { layerName = map.getLayer(i).getName(); legend += "\n " + layerName.replace("_", " ") + "

"; } legend += "\n
"; return legend; } Hope this is somewhat clear. Thanks. >From: "Steve Lime" >To: "M.L. Jackson" , > >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? >Date: Wed, 02 Aug 2006 14:15:45 -0500 > >Hmmm... Haven't seen that one before. I've found very little on Google >with regards to the >error. Something tells me it has to do with something like an empty >file however I tried doing >that locally and got a more appropriate error. So, we'll need more >information. > >- what platform? what version? >- what does the mapfile look like? can you run shp2img on it? >- have you run this or a similar script successfully under tomcat? > >Steve > > > >>> "M.L. Jackson" 8/2/2006 1:50:57 PM >>> >What does this mean? This message is generated when I try to run my >java >mapscript application on Tomcat. > >"fatal flex scanner internal error--end of buffer missed" > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's >FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From szekerest at GMAIL.COM Wed Aug 2 13:12:57 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 2 Aug 2006 22:12:57 +0200 Subject: Mapserver & DXF input In-Reply-To: Message-ID: Hi, The OGR driver should be capable to read this format. You might want to use the ogr2ogr tool to make the conversion if needed. Best Regards, Tamas 2006/8/2, Andre Sachs : > Hi All, > > My customer has his data in the DXF format and we are looking to find > a way to convert it into something usable by Mapserver. > Does anyone have the same problem or know of a possible solution on > the Linux Platform ? > > Thanks and regards, > Andre > -- > IT Architect > Andre Sachs > asachs at clue.co.za > From Steve.Lime at DNR.STATE.MN.US Wed Aug 2 15:56:49 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 2 Aug 2006 17:56:49 -0500 Subject: What does this error message mean? Message-ID: Why are you running an old, not to mention beta, version? That aside I don't see code here that would even invoke the lexer. That only happens with mapfile parsing and expression evaluation. Steve >>> "M.L. Jackson" 08/02/06 2:54 PM >>> I'm on a Windows machine running mapscript 4.6.0-beta1. Shp2img runs on it fine. The map file is a map of the United States of America with a rivers layer, states layer, and wms layer. I'm running a JSP script. Yes, I have run a similar script on Tomcat. The script prints an interactive map legend using a Java Bean print method call. The Java Bean method looks like this: public String makeLegend() { String layerName = ""; int layerCount = map.getNumlayers(); String legend = ""; //check the layer for a space which will cause problems and display error message for(int i = 0; i < layerCount; i++) { layerName = map.getLayer(i).getName(); if(layerName.contains(" ")){ legend += "

The layer name \"" + layerName + "\" contains a space character and will not function correctly!!
" + "Find the layer in the map file and remove the space, then " + "reload the application.
"; return legend; } } //generates html for check boxes legend = "
"; for(int i = 0; i < layerCount; i++) { layerName = map.getLayer(i).getName(); legend += "\n " + layerName.replace("_", " ") + "

"; } legend += "\n
"; return legend; } Hope this is somewhat clear. Thanks. >From: "Steve Lime" >To: "M.L. Jackson" , > >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? >Date: Wed, 02 Aug 2006 14:15:45 -0500 > >Hmmm... Haven't seen that one before. I've found very little on Google >with regards to the >error. Something tells me it has to do with something like an empty >file however I tried doing >that locally and got a more appropriate error. So, we'll need more >information. > >- what platform? what version? >- what does the mapfile look like? can you run shp2img on it? >- have you run this or a similar script successfully under tomcat? > >Steve > > > >>> "M.L. Jackson" 8/2/2006 1:50:57 PM >>> >What does this mean? This message is generated when I try to run my >java >mapscript application on Tomcat. > >"fatal flex scanner internal error--end of buffer missed" > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's >FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From m.meier at SPIEKERMANN.DE Wed Aug 2 21:38:40 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 3 Aug 2006 06:38:40 +0200 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: <20060802183018.74486.qmail@web55704.mail.re3.yahoo.com> Message-ID: Hi Albert, if I understand right, you have a page with an initialize button and when you click it you get a page with a map and this works fine, ok? So send us the html-code of your page with the button. Perhaps we can "create" an example url for you which you can put in the adress field of the browser. > You must pass the name of your map file. > For example: > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > Where do I put that example at? Also I look at map context support It could be helpful, if you explain to us, how you want to load the map: - do want to load it from a menu or from a link? - or should your map be part of an html-page and and shall sit in a div or an iframe? Manfred Albert Anderson schrieb: > hi, > > Where do I put that example at? Also I look at map context support > through cgi and I dont understand it. The site is > http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext > Could you help me. > > Albert > > Siki Zoltan wrote: > > Hi Albert! > > You can pass parameters through the url. > You must pass the name of your map file. > For example: > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > > Zoltan > > There aremany parameters you can set through the url, see the cgi > mapserver reference. > > On Wed, 2 Aug 2006, Albert Anderson wrote: > > > Hi, > > > > I am using intializing button as a submit button. The html > template is using the get method. I would like to know how to get > rid of the submit button. Just have the mapserver auto load into the > html without clicking the intializing and get the information from > the mapserver. Thanks > > > > Albert > > > > Manfred Meier wrote: I don't know your application and so don't > know which initialzing button > > you mean. But if there is a button then it is most likely a submit > > button of a form. Look at the source code of the html page in your > > browser and try to find out, to what url the action property in > the form > > tag points. > > > > If there are no other hidden or visible input tags, try to point > your > > browser to the url in the action property. If there are input > tags, try > > to append the neccessary values to the url. > > > > I don't know if that works in your case. But its a often used > method to > > circumvent the manual filling of forms. > > > > Manfred > > > > > > > > > > Albert Anderson schrieb: > > > > > Hi List, > > > > > > My question is how do I get my page to load auto like without > using > > > initialzing button. I dont want to use the button. I just want > to page > > > just load. Is there a way around this? I'm using a linux > machine with > > > mapsever 4. Could someone help me? > > > > > > Thanks, > > > Albert > > > > > > > ------------------------------------------------------------------------ > > > Do you Yahoo!? > > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > > > > > > > --------------------------------- > > Groups are talking. We?re listening. Check out the handy changes > to Yahoo! Groups. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From tom at MAPLINK.JP Wed Aug 2 02:21:54 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Wed, 2 Aug 2006 18:21:54 +0900 Subject: Mapserver & DXF input Message-ID: Hi Andre, I had this same problem a few weeks ago. I used the FME Universal Viewer to convert DXF files to shape files. If you have any additional questions, feel free to ask. Tom ----- Original Message ----- From: "Andre Sachs" To: Sent: Wednesday, August 02, 2006 5:51 PM Subject: [UMN_MAPSERVER-USERS] Mapserver & DXF input > Hi All, > > My customer has his data in the DXF format and we are looking to find a > way to convert it into something usable by Mapserver. > Does anyone have the same problem or know of a possible solution on the > Linux Platform ? > > Thanks and regards, > Andre > -- > IT Architect > Andre Sachs > asachs at clue.co.za > From janeks.kamerovskis at SILVA.LV Wed Aug 2 23:31:46 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Thu, 3 Aug 2006 09:31:46 +0300 Subject: help: msINLINELayerGetShape(): Shapefile error. No inline feature with this index. Message-ID: I am querying my map with following parameters: ...layers=...+...+gps&qlayer=gps&mode=nquery&searchmap=true Where gps layer is inline layer or layer that data will come from cgi parameters. Does the message in the subj. means, that I can not make queries for this layer? Janeks From janeks.kamerovskis at SILVA.LV Thu Aug 3 01:49:52 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Thu, 3 Aug 2006 11:49:52 +0300 Subject: help: msINLINELayerGetShape(): Shapefile error. No inline feature with this index. In-Reply-To: <002f01c6b6c6$7e259590$790aa8c0@JANEKSXP> Message-ID: The main thing what I want to do is to get to use query template for inline features. Btw, could not find that example, that shows how to put features on my trought cgi parameters. Thanks in advance! Janeks > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Janeks Kamerovskis > Sent: Thursday, August 03, 2006 9:32 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] help: msINLINELayerGetShape(): Shapefile > error. No inline feature with this index. > > I am querying my map with following parameters: > ...layers=...+...+gps&qlayer=gps&mode=nquery&searchmap=true > Where gps layer is inline layer or layer that data will come from cgi > parameters. > > Does the message in the subj. means, that I can not make queries for this > layer? > > Janeks From janeks.kamerovskis at SILVA.LV Thu Aug 3 01:55:26 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Thu, 3 Aug 2006 11:55:26 +0300 Subject: help: msINLINELayerGetShape(): Shapefile error. No inline feature with this index. In-Reply-To: <003001c6b6d9$c965ac80$790aa8c0@JANEKSXP> Message-ID: > > Btw, could not find that example, that shows how to put features on my > trought cgi parameters. O'k ;-) Found > > Thanks in advance! > Janeks From bartvde at XS4ALL.NL Thu Aug 3 02:05:55 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 3 Aug 2006 11:05:55 +0200 Subject: WMS and resolution Message-ID: Hi list, a tip for anyone serving out WMS with Mapserver. You need to use a RESOLUTION of 90.71 according to the SLD and WMS specs for scales to behave as expected. WMS and SLD assume 0.28 mm per pixel. Developers, shouldn't any user setting for RESOLUTION be overruled by Mapserver internals when doing a WMS request? Best regards, Bart From cobra13 at GMAIL.COM Thu Aug 3 02:10:46 2006 From: cobra13 at GMAIL.COM (Thibaut Le Pape) Date: Thu, 3 Aug 2006 11:10:46 +0200 Subject: problem with projections Message-ID: Hello everybody, Here's my problem: when I have shapes and rasters in WGS84 all works fine, the data is displayed on the screen even if I don't define the projection in the mapfile. However, as soon as I have objects in other projections (for exemple Mercator) they are not displayed on the screen even if I set the projection definition. What's the problem? I use cartoweb maybe there is some parameters in cartoweb that I have not set. Thanks in advance. Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Dunne at UCC.IE Thu Aug 3 04:30:31 2006 From: D.Dunne at UCC.IE (Dunne, Declan) Date: Thu, 3 Aug 2006 12:30:31 +0100 Subject: World Wind/MapServer WMS Message-ID: Hi Ryan, NASA World Wind supports WMS in two ways 1) High-resolution imagery overlay (i.e. the layers listed under Layer Manger/Images). This option supports visualisation of large WMS image repositories through WMS image tiling. Configuration file: @Images.xml 2) Lower-resolution static/animated image overlay (i.e. the WMS Browser button). This option supports both static image and time-series WMS animations at a lower-resolution. It automatically builds a layer list from a WMS GetCapabilities request. Configuration file: wms_server_list.xml So, I think you are using method 2. To get this working you need to configure the wms_server_list.xml file like below (WW 1.3.5). Note, the ServerUrl tag contains a WMS GetCapabilities URL request, and I also replace "&" with "&" in the request string. I think the WMSLayerName tag that you used only works with option 1. ... WMS DEMO http://localhost//cgi-bin/mapserv.exe?map=YourMapfile.map&ser vice=WMS&version=1.1.1&request=GetCapabilities 1.1.1 Some Name ... Hope this helps, Declan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ryan Ollerenshaw Sent: 01 August 2006 22:10 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] World Wind/MapServer WMS Has anyone had any success accessing a MapServer WMS from World Wind? I keep getting the message "Error loading WMS server list" when i add my WMS to World Wind's WMS_server_list. Here is the XML code that i added to the server list: My Data http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webser vices.map&SERVICE=WMS& Themis 1.1.1 Mars Visualization Server And here is the result of a GetCapabilities Request on my server: OGC:WMS WMS MapServer Capability> application/vnd.ogc.wms_xml image/png image/gif image/png; mode=24bit image/jpeg image/wbmp image/tiff text/plain application/vnd.ogc.gml text/xml image/gif image/png; mode=24bit image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank WMS_WFS_WCS_server WMS Mars MapServer EPSG:4326 themis TMEMIS Data EPSG:4326 mola MOLA Data EPSG:4326 moc MOC Data EPSG:4326 hrsc_nd hrsc data EPSG:4326 hrsc_other hrsc_other EPSG:4326 From vberre at GI-PARIS.COM Thu Aug 3 06:22:07 2006 From: vberre at GI-PARIS.COM (Virginie BERRE) Date: Thu, 3 Aug 2006 15:22:07 +0200 Subject: MapServer WMS, WFS and WCS evaluation Message-ID: Hi All! I have to make an evaluation about GeoServer. That's why I need your help. If you have some times to complete these arrays... Thank you. Best regards. Licence Compliance to WMS What is the version of WMS supported by your product: is it compliant or just an implementation? What are the requests not supported? Is the GET/POST/SOAP request supported? Compliance with SLD What are the requests not supported? Is the GeoSYM/S 52/APP-6/MIL 25 25 B symbology supported? Coordinates system supported Is UTMs, Arc, WGS84 supported? Geodesic parameter database supported (EPSG, GeoDEF)? What are the output formats supported JPEG GIF SVG PNG Others What is the input format supported Digest A (ASRP/USRP) RPF (CADRG) geotiff NSIF HCRF JPEG2000 DTED WMS SGBDR others formats Shapefile VPF (VMAP, DNC) VRF (AML) S57 (AML, ENC) GML2/3 WFS SGBDR others formats NetCDF WCS GRIB others formats Performances Complexity of deployment Plateform supported Incompatibility with any client Compliance to WFS What is the version of WFS supported by your product: is it compliant or just an implementation? What are the requests not supported? Is the GET/POST/SOAP request supported? Compliance with Filter Encoding What are the requests not supported? Coordinates system supported Is UTMs, Arc, WGS84 supported? Geodesic parameter database supported (EPSG, GeoDEF)? What is the input format supported Shapefile VPF (VMAP, DNC) VRF (AML) S57 (AML, ENC) GML2/3 WFS SGBDR others formats Performances Complexity of deployment Plateform supported Incompatibility with any client Compliance to WCS What is the version of WCS supported by your product: is it compliant or just an implementation? What are the requests not supported? Is the GET/POST/SOAP request supported? What are the output formats supported GeoTIFF HDF-EOS DTED NITF GML Others Coordinates system supported Is UTMs, Arc, WGS84 supported? Geodesic parameter database supported (EPSG, GeoDEF)? What is the input format supported RASTER Digest A (ASRP/USRP) RPF (CADRG) geotiff NSIF HCRF JPEG2000 DTED WMS SGBDR others formats VECTOR Shapefile VPF (VMAP, DNC) VRF (AML) S57 (AML, ENC) GML2/3 WFS SGBDR others formats 3D NetCDF WCS GRIB others formats Performances Complexity of deployment Plateform supported Incompatibility with any client Virginie Berre / Ing?nieur ?tude et d?veloppement G?n?rale d'Infographie ZA Les Erables - B?timent 4 66, route de Sartrouville - 78232 LE PECQ Cedex T?l. : (33) (0)1.30.15.40.50 - Fax : (33) (0)1.30.15.40.60 mailto:vberre at gi-paris.com http://www.generale-infographie.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kristian.Thy at ATKINSGLOBAL.COM Thu Aug 3 07:36:39 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Thu, 3 Aug 2006 16:36:39 +0200 Subject: Enabling ArcSDE crashes MapServer Message-ID: I have installed the MS4W package on a Windows XP Pro box. We have tested and can succesfully display data from local shapefiles. But when I want to enable SDE connection support as per http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde-9-1 the new libmap.dll apparently makes mapserv.exe crash - I see a 500 Server Error in the browser. Here's all I get in the Apache log: [Thu Aug 03 16:00:15 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe, referer: http://localhost:8080/krak/ The log file for the application itself is empty. Using the original libmap.dll, I have verified that the .map file is syntactically valid (but nothing is displayed, of course, since it's using SDE connected layers). Looking at mapserv.exe and libmap.dll in the Dependency Walker distributed with Visual Studio, I see absolutely no difference between using one or the other libmap.dll except that SDE91.dll is found and correctly linked with the SDE-enabled dll. Any ideas? Thanks in advance, Kristian -- Kristian Thy GIS Developer Atkins Danmark Transport, Milj? og GIS Arne Jacobsens All? 17 2300 K?benhavn S tel: (+45) 8233 9366 This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From hartpence_gis at CO.JASPER.IA.US Thu Aug 3 08:20:02 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Thu, 3 Aug 2006 10:20:02 -0500 Subject: Highway Symbols Message-ID: Hello, I have created an Annotation layer in my mapfile to produce highway symbols. From bart_doggers at YAHOO.COM Thu Aug 3 08:20:14 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 3 Aug 2006 08:20:14 -0700 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: <44D17DD0.3090204@spiekermann.de> Message-ID: Hi Manfred, Yup your right with the button. Here is the code for the initializa button Mapserver Richland County
Thanks for you time. Albert Manfred Meier wrote: Hi Albert, if I understand right, you have a page with an initialize button and when you click it you get a page with a map and this works fine, ok? So send us the html-code of your page with the button. Perhaps we can "create" an example url for you which you can put in the adress field of the browser. > You must pass the name of your map file. > For example: > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > Where do I put that example at? Also I look at map context support It could be helpful, if you explain to us, how you want to load the map: - do want to load it from a menu or from a link? - or should your map be part of an html-page and and shall sit in a div or an iframe? Manfred Albert Anderson schrieb: > hi, > > Where do I put that example at? Also I look at map context support > through cgi and I dont understand it. The site is > http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext > Could you help me. > > Albert > > Siki Zoltan wrote: > > Hi Albert! > > You can pass parameters through the url. > You must pass the name of your map file. > For example: > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > > Zoltan > > There aremany parameters you can set through the url, see the cgi > mapserver reference. > > On Wed, 2 Aug 2006, Albert Anderson wrote: > > > Hi, > > > > I am using intializing button as a submit button. The html > template is using the get method. I would like to know how to get > rid of the submit button. Just have the mapserver auto load into the > html without clicking the intializing and get the information from > the mapserver. Thanks > > > > Albert > > > > Manfred Meier wrote: I don't know your application and so don't > know which initialzing button > > you mean. But if there is a button then it is most likely a submit > > button of a form. Look at the source code of the html page in your > > browser and try to find out, to what url the action property in > the form > > tag points. > > > > If there are no other hidden or visible input tags, try to point > your > > browser to the url in the action property. If there are input > tags, try > > to append the neccessary values to the url. > > > > I don't know if that works in your case. But its a often used > method to > > circumvent the manual filling of forms. > > > > Manfred > > > > > > > > > > Albert Anderson schrieb: > > > > > Hi List, > > > > > > My question is how do I get my page to load auto like without > using > > > initialzing button. I dont want to use the button. I just want > to page > > > just load. Is there a way around this? I'm using a linux > machine with > > > mapsever 4. Could someone help me? > > > > > > Thanks, > > > Albert > > > > > > > ------------------------------------------------------------------------ > > > Do you Yahoo!? > > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > > > > > > > --------------------------------- > > Groups are talking. We?re listening. Check out the handy changes > to Yahoo! Groups. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Thu Aug 3 08:23:10 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 3 Aug 2006 08:23:10 -0700 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: <44D17DD0.3090204@spiekermann.de> Message-ID: Hi Manfred, Yup your right with the button. Here is the code for the initializa button Mapserver Richland County
I would like the map to load up when I go to the url right away. So right when you type it in the address box and html page load that the map would too. Thanks for you time. Albert Manfred Meier wrote: Hi Albert, if I understand right, you have a page with an initialize button and when you click it you get a page with a map and this works fine, ok? So send us the html-code of your page with the button. Perhaps we can "create" an example url for you which you can put in the adress field of the browser. > You must pass the name of your map file. > For example: > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > Where do I put that example at? Also I look at map context support It could be helpful, if you explain to us, how you want to load the map: - do want to load it from a menu or from a link? - or should your map be part of an html-page and and shall sit in a div or an iframe? Manfred Albert Anderson schrieb: > hi, > > Where do I put that example at? Also I look at map context support > through cgi and I dont understand it. The site is > http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext > Could you help me. > > Albert > > Siki Zoltan wrote: > > Hi Albert! > > You can pass parameters through the url. > You must pass the name of your map file. > For example: > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > > Zoltan > > There aremany parameters you can set through the url, see the cgi > mapserver reference. > > On Wed, 2 Aug 2006, Albert Anderson wrote: > > > Hi, > > > > I am using intializing button as a submit button. The html > template is using the get method. I would like to know how to get > rid of the submit button. Just have the mapserver auto load into the > html without clicking the intializing and get the information from > the mapserver. Thanks > > > > Albert > > > > Manfred Meier wrote: I don't know your application and so don't > know which initialzing button > > you mean. But if there is a button then it is most likely a submit > > button of a form. Look at the source code of the html page in your > > browser and try to find out, to what url the action property in > the form > > tag points. > > > > If there are no other hidden or visible input tags, try to point > your > > browser to the url in the action property. If there are input > tags, try > > to append the neccessary values to the url. > > > > I don't know if that works in your case. But its a often used > method to > > circumvent the manual filling of forms. > > > > Manfred > > > > > > > > > > Albert Anderson schrieb: > > > > > Hi List, > > > > > > My question is how do I get my page to load auto like without > using > > > initialzing button. I dont want to use the button. I just want > to page > > > just load. Is there a way around this? I'm using a linux > machine with > > > mapsever 4. Could someone help me? > > > > > > Thanks, > > > Albert > > > > > > > ------------------------------------------------------------------------ > > > Do you Yahoo!? > > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > > > > > > > --------------------------------- > > Groups are talking. We?re listening. Check out the handy changes > to Yahoo! Groups. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Thu Aug 3 08:41:07 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 3 Aug 2006 10:41:07 -0500 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: <20060803152311.22524.qmail@web55710.mail.re3.yahoo.com> Message-ID: Albert, If you end up frustrated with the URL approach then try adding an ID to your form and adding a body onload event to submit the form:
David Lowther _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Thursday, August 03, 2006 10:23 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} Hi Manfred, Yup your right with the button. Here is the code for the initializa button Mapserver Richland County
I would like the map to load up when I go to the url right away. So right when you type it in the address box and html page load that the map would too. Thanks for you time. Albert Manfred Meier wrote: Hi Albert, if I understand right, you have a page with an initialize button and when you click it you get a page with a map and this works fine, ok? So send us the html-code of your page with the button. Perhaps we can "create" an example url for you which you can put in the adress field of the browser. > You must pass the name of your map file. > For example: > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > Where do I put that example at? Also I look at map context support It could be helpful, if you explain to us, how you want to load the map: - do want to load it from a menu or from a link? - or should your map be part of an html-page and and shall sit in a div or an iframe? Manfred Albert Anderson schrieb: > hi, > > Where do I put that example at? Also I look at map context support > through cgi and I dont understand it. The site is > http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext > Could you help me. > > Albert > > Siki Zoltan wrote: > > Hi Albert! > > You can pass parameters through the url. > You must pass the name of your map file. > For example: > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > > Zoltan > > There aremany parameters you can set through the url, see the cgi > mapserver reference. > > On Wed, 2 Aug 2006, Albert Anderson wrote: > > > Hi, > > > > I am using intializing button as a submit button. The html > template is using the get method. I would like to know how to get > rid of the submit button. Just have the mapserver auto load into the > html without clicking the intializing and get the information from > the mapserver. Thanks > > > > Albert > > > > Manfred Meier wrote: I don't know your application and so don't > know which initialzing button > > you mean. But if there is a button then it is most likely a submit > > button of a form. Look at the source code of the html page in your > > browser and try to find out, to what url the action property in > the form > > tag points. > > > > If there are no other hidden or visible input tags, try to point > your > > browser to the url in the action property. If there are input > tags, try > > to append the neccessary values to the url. > > > > I don't know if that works in your case. But its a often used > method to > > circumvent the manual filling of forms. > > > > Manfred > > > > > > > > > > Albert Anderson schrieb: > > > > > Hi List, > > > > > > My question is how do I get my page to load auto like without > using > > > initialzing button. I dont want to use the button. I just want > to page > > > just load. Is there a way around this? I'm using a linux > machine with > > > mapsever 4. Could someone help me? > > > > > > Thanks, > > > Albert > > > > > > > ------------------------------------------------------------------------ > > > Do you Yahoo!? > > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > > > > > > > --------------------------------- > > Groups are talking. We?re listening. Check out the handy changes > to Yahoo! Groups. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _____ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at CO.JASPER.IA.US Thu Aug 3 08:43:31 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Thu, 3 Aug 2006 10:43:31 -0500 Subject: Highway symbols Disregard last posting Message-ID: The posting on displaying highway symbols I sent earlier can be ignored. I just needed to set a size and outline color for the symbol. Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From m.meier at SPIEKERMANN.DE Thu Aug 3 09:18:19 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 3 Aug 2006 18:18:19 +0200 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: <20060803152311.22524.qmail@web55710.mail.re3.yahoo.com> Message-ID: Hi Albert, I think this solution of David with the onload routine is really good. But if you want to try the URL approach you could try: http://your-host/cgi-bin/mapserv?program=mapserv& map=/home/mapdata/richland.map& mapext=625173.309834 5085113.091715 718065.960556 5160035.212592& layers=aerial richland boundary cities roads sections rivers lakes railroad parcels& zoomsize=1 I did put together the informations from your html-code. You have to change the hostname. Then put this URL in one line into the address field of your browser. I hope, I made no mistakes and do not create confusion. Manfred Albert Anderson schrieb: > Hi Manfred, > > Yup your right with the button. Here is the code for the initializa button > > > Mapserver Richland County > >
> > > value="mapserv"> > > value="/home/mapdata/richland.map"> > > value="625173.309834 5085113.091715 718065.960556 > 5160035.212592"> > > > value="aerial richland boundary cities roads sections > rivers lakes railroad parcels"> > > size="1" value="1"> > > > > > > >
> > > > > I would like the map to load up when I go to the url right away. So > right when you type it in the address box and html page load that the > map would too. > Thanks for you time. > > Albert > > Manfred Meier wrote: > > Hi Albert, > > if I understand right, you have a page with an initialize button and > when you click it you get a page with a map and this works fine, ok? > > So send us the html-code of your page with the button. Perhaps we can > "create" an example url for you which you can put in the adress > field of > the browser. > > > You must pass the name of your map file. > > For example: > > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > > > Where do I put that example at? Also I look at map context support > > It could be helpful, if you explain to us, how you want to load the map: > > - do want to load it from a menu or from a link? > - or should your map be part of an html-page and and shall sit in a div > or an iframe? > > Manfred > > > > > > > > Albert Anderson schrieb: > > > hi, > > > > Where do I put that example at? Also I look at map context support > > through cgi and I dont understand it. The site is > > http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext > > Could you help me. > > > > Albert > > > > Siki Zoltan wrote: > > > > Hi Albert! > > > > You can pass parameters through the url. > > You must pass the name of your map file. > > For example: > > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > > > > Zoltan > > > > There aremany parameters you can set through the url, see the cgi > > mapserver reference. > > > > On Wed, 2 Aug 2006, Albert Anderson wrote: > > > > > Hi, > > > > > > I am using intializing button as a submit button. The html > > template is using the get method. I would like to know how to get > > rid of the submit button. Just have the mapserver auto load into the > > html without clicking the intializing and get the information from > > the mapserver. Thanks > > > > > > Albert > > > > > > Manfred Meier wrote: I don't know your application and so don't > > know which initialzing button > > > you mean. But if there is a button then it is most likely a submit > > > button of a form. Look at the source code of the html page in your > > > browser and try to find out, to what url the action property in > > the form > > > tag points. > > > > > > If there are no other hidden or visible input tags, try to point > > your > > > browser to the url in the action property. If there are input > > tags, try > > > to append the neccessary values to the url. > > > > > > I don't know if that works in your case. But its a often used > > method to > > > circumvent the manual filling of forms. > > > > > > Manfred > > > > > > > > > > > > > > > Albert Anderson schrieb: > > > > > > > Hi List, > > > > > > > > My question is how do I get my page to load auto like without > > using > > > > initialzing button. I dont want to use the button. I just want > > to page > > > > just load. Is there a way around this? I'm using a linux > > machine with > > > > mapsever 4. Could someone help me? > > > > > > > > Thanks, > > > > Albert > > > > > > > > > > > ------------------------------------------------------------------------ > > > > Do you Yahoo!? > > > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > > > > > > > > > > > > > --------------------------------- > > > Groups are talking. We?re listening. Check out the handy changes > > to Yahoo! Groups. > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > ------------------------------------------------------------------------ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. > > From bart_doggers at YAHOO.COM Thu Aug 3 09:25:36 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 3 Aug 2006 09:25:36 -0700 Subject: how do I get rid of clicking the button and loading it my html? {Scanned} {Scanned} In-Reply-To: <44D221CB.6070405@spiekermann.de> Message-ID: Hi Manfred, Thanks! It works how I wanted it. Albert Manfred Meier wrote: Hi Albert, I think this solution of David with the onload routine is really good. But if you want to try the URL approach you could try: http://your-host/cgi-bin/mapserv?program=mapserv& map=/home/mapdata/richland.map& mapext=625173.309834 5085113.091715 718065.960556 5160035.212592& layers=aerial richland boundary cities roads sections rivers lakes railroad parcels& zoomsize=1 I did put together the informations from your html-code. You have to change the hostname. Then put this URL in one line into the address field of your browser. I hope, I made no mistakes and do not create confusion. Manfred Albert Anderson schrieb: > Hi Manfred, > > Yup your right with the button. Here is the code for the initializa button > > Mapserver Richland County> > > > [input] > > [input] > value="mapserv"> > > [input] > value="/home/mapdata/richland.map"> > > [input] > value="625173.309834 5085113.091715 718065.960556 > 5160035.212592"> > > > [input] > value="aerial richland boundary cities roads sections > rivers lakes railroad parcels"> > > [input] > size="1" value="1"> > > [input] > [input] > [input] > [input] > > > > > > > I would like the map to load up when I go to the url right away. So > right when you type it in the address box and html page load that the > map would too. > Thanks for you time. > > Albert > > Manfred Meier wrote: > > Hi Albert, > > if I understand right, you have a page with an initialize button and > when you click it you get a page with a map and this works fine, ok? > > So send us the html-code of your page with the button. Perhaps we can > "create" an example url for you which you can put in the adress > field of > the browser. > > > You must pass the name of your map file. > > For example: > > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > > > Where do I put that example at? Also I look at map context support > > It could be helpful, if you explain to us, how you want to load the map: > > - do want to load it from a menu or from a link? > - or should your map be part of an html-page and and shall sit in a div > or an iframe? > > Manfred > > > > > > > > Albert Anderson schrieb: > > > hi, > > > > Where do I put that example at? Also I look at map context support > > through cgi and I dont understand it. The site is > > http://mapserver.gis.umn.edu/docs/reference/cgi/mapcontext > > Could you help me. > > > > Albert > > > > Siki Zoltan wrote: > > > > Hi Albert! > > > > You can pass parameters through the url. > > You must pass the name of your map file. > > For example: > > http://your.server/cgi-bin/mapserv.exe?map=path/to/your/file.map > > > > Zoltan > > > > There aremany parameters you can set through the url, see the cgi > > mapserver reference. > > > > On Wed, 2 Aug 2006, Albert Anderson wrote: > > > > > Hi, > > > > > > I am using intializing button as a submit button. The html > > template is using the get method. I would like to know how to get > > rid of the submit button. Just have the mapserver auto load into the > > html without clicking the intializing and get the information from > > the mapserver. Thanks > > > > > > Albert > > > > > > Manfred Meier wrote: I don't know your application and so don't > > know which initialzing button > > > you mean. But if there is a button then it is most likely a submit > > > button of a form. Look at the source code of the html page in your > > > browser and try to find out, to what url the action property in > > the form > > > tag points. > > > > > > If there are no other hidden or visible input tags, try to point > > your > > > browser to the url in the action property. If there are input > > tags, try > > > to append the neccessary values to the url. > > > > > > I don't know if that works in your case. But its a often used > > method to > > > circumvent the manual filling of forms. > > > > > > Manfred > > > > > > > > > > > > > > > Albert Anderson schrieb: > > > > > > > Hi List, > > > > > > > > My question is how do I get my page to load auto like without > > using > > > > initialzing button. I dont want to use the button. I just want > > to page > > > > just load. Is there a way around this? I'm using a linux > > machine with > > > > mapsever 4. Could someone help me? > > > > > > > > Thanks, > > > > Albert > > > > > > > > > > > ------------------------------------------------------------------------ > > > > Do you Yahoo!? > > > > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > > > > > > > > > > > > > > > > > > --------------------------------- > > > Groups are talking. We?re listening. Check out the handy changes > > to Yahoo! Groups. > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > ------------------------------------------------------------------------ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. > > --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Thu Aug 3 10:28:15 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 3 Aug 2006 12:28:15 -0500 Subject: Mapscript API - csharp - layerObj.getItemType, layerObj.getItemSize, etc...? Message-ID: Hi Everyone, I was wondering if I am overlooking a way to get information about a layers items in mapscript. I've been through the docs thoroughly (I think) but am only seeing stuff for returning item name and value. This makes sense since there are so many possible layer types - and therefore item types. Just wondering. Thanks, David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) www.coordinatesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Thu Aug 3 11:24:32 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 3 Aug 2006 11:24:32 -0700 Subject: Java Mapscript Message-ID: I am trying to use MapServer's java Mapscript and keep getting the following error: Java.lang.UnsatisfiedLinkError: no mapscript in java.library.path I have added mapscript.jar to my WEB-INF/lib directory, but i am not sure what else i should do. I am using eclipse with the Tomcat plug in, so i have also added the .jar file to eclipse but i dont think that makes a difference when using tomcat. Here is my java code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import edu.umn.gis.mapscript.*; public class MapServerTest extends HttpServlet { public void doGet ( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); System.loadLibrary("mapscript"); out.println(""); out.println("Hello World!"); out.println(""); out.println("

aa Hello, World !

"); //mapObj map = new mapObj("var/www/html/mapserver/htdocs/display.map"); }// end doGet }///:~ From mljacks2 at HOTMAIL.COM Thu Aug 3 11:51:34 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Thu, 3 Aug 2006 13:51:34 -0500 Subject: What does this error message mean? In-Reply-To: <44D0E7610200008F0000076C@co5.dnr.state.mn.us> Message-ID: Honestly, I downloaded this version as an update a while back and I remember it being a pain so I haven't been looking forward to updating again. I continued this project from someone else and always have to figure out where all the files are located and what I actually need to download. I guess I am now forced to update. The reason I posted the code snippet is that the error only seems to show when I add this code to my Java bean. Thanks for your replies. >From: "Steve Lime" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? >Date: Wed, 02 Aug 2006 17:56:49 -0500 > >Why are you running an old, not to mention beta, version? > >That aside I don't see code here that would even invoke the lexer. That >only happens with mapfile parsing and expression evaluation. > >Steve > > >>> "M.L. Jackson" 08/02/06 2:54 PM >>> >I'm on a Windows machine running mapscript 4.6.0-beta1. > >Shp2img runs on it fine. The map file is a map of the United States of >America with a rivers layer, states layer, and wms layer. > >I'm running a JSP script. Yes, I have run a similar script on Tomcat. >The >script prints an interactive map legend using a Java Bean print method >call. > >The Java Bean method looks like this: >public String makeLegend() >{ >String layerName = ""; > >int layerCount = map.getNumlayers(); > >String legend = ""; > >//check the layer for a space which will cause problems and display >error >message >for(int i = 0; i < layerCount; i++) >{ > layerName = map.getLayer(i).getName(); > if(layerName.contains(" ")){ >legend += "

The layer name \"" + > >layerName + > "\" contains a space character and >will not function >correctly!!
" + > "Find the layer in the map file >and remove the space, >then " + > "reload the >application.
"; > return legend; > } >} > >//generates html for check boxes >legend = "
"; > >for(int i = 0; i < layerCount; i++) >{ >layerName = map.getLayer(i).getName(); > >legend += "\n handleBoxes(\"" + >layerName + "\")" + > " name = \"" + layerName + >"box\" checked>" + layerName.replace("_", " >") + "

"; >} > >legend += "\n
"; > > >return legend; >} > >Hope this is somewhat clear. Thanks. > > >From: "Steve Lime" > >To: "M.L. Jackson" , > > > >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? > >Date: Wed, 02 Aug 2006 14:15:45 -0500 > > > >Hmmm... Haven't seen that one before. I've found very little on Google > >with regards to the > >error. Something tells me it has to do with something like an empty > >file however I tried doing > >that locally and got a more appropriate error. So, we'll need more > >information. > > > >- what platform? what version? > >- what does the mapfile look like? can you run shp2img on it? > >- have you run this or a similar script successfully under tomcat? > > > >Steve > > > > > > >>> "M.L. Jackson" 8/2/2006 1:50:57 PM >>> > >What does this mean? This message is generated when I try to run my > >java > >mapscript application on Tomcat. > > > >"fatal flex scanner internal error--end of buffer missed" > > > >_________________________________________________________________ > >Express yourself instantly with MSN Messenger! Download today - it's > >FREE! > >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's >FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From jarg58 at GMAIL.COM Thu Aug 3 12:14:14 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Thu, 3 Aug 2006 14:14:14 -0500 Subject: Java Mapscript In-Reply-To: <44D23F60.3060800@engr.orst.edu> Message-ID: Hi Ryan!! You must add the file libmapscript.so to your tomcat shared folder. Check http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55, here explain the correct configuration for use javamapscript On 8/3/06, Ryan Ollerenshaw wrote: > > I am trying to use MapServer's java Mapscript and keep getting the > following error: > > Java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > > I have added mapscript.jar to my WEB-INF/lib directory, but i am not > sure what else i should do. I am using eclipse with the Tomcat plug in, > so i have also added the .jar file to eclipse but i dont think that > makes a difference when using tomcat. > > Here is my java code: > > import java.io.*; > import javax.servlet.*; > import javax.servlet.http.*; > import edu.umn.gis.mapscript.*; > > public class MapServerTest extends HttpServlet { > > public void doGet ( HttpServletRequest request, HttpServletResponse > response ) > throws ServletException, IOException { > > response.setContentType("text/html"); > PrintWriter out = response.getWriter(); > > System.loadLibrary("mapscript"); > > out.println(""); > out.println("Hello World!"); > out.println(""); > out.println("

aa Hello, World !

"); > > //mapObj map = new > mapObj("var/www/html/mapserver/htdocs/display.map"); > }// end doGet > > }///:~ > -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpfurtado at GMAIL.COM Thu Aug 3 12:32:57 2006 From: bpfurtado at GMAIL.COM (Bruno Patini Furtado) Date: Thu, 3 Aug 2006 16:32:57 -0300 Subject: Demo, Itasca coordinate system Message-ID: Hi, I'm a bit confused with the EXTENT property of the mapfile of MapServer Demo, the one that shows the Itasca village ( http://en.wikipedia.org/wiki/Itasca%2C_Illinois). As it's possible to see on wikipedia page the coordinates of this place are 41.974678, -88.018513, being the X a negative number, as it's expected to all the USA country. My question is: Why the EXTENT has two points of whose X coordinates on both are positive numbers? Which coordinate system is being used? Thanks for your time. -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Aug 3 12:55:20 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 3 Aug 2006 14:55:20 -0500 Subject: Demo, Itasca coordinate system In-Reply-To: A Message-ID: Bruno, The Itasca demo is actually based on Itasca County Minnesota. The data is in the projection UTM Zone 15 (north). The epsg code is 26915. The units for UTM are meters. In UTM, there is a Northing value measured from the equator and an Easting value measured from a central meridian. A 'false easting' of 500,000 meters is applied to ensure that all values are positive. Do a Google on UTM projections for more info. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruno Patini Furtado Sent: Thursday, August 03, 2006 2:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Demo, Itasca coordinate system Hi, I'm a bit confused with the EXTENT property of the mapfile of MapServer Demo, the one that shows the Itasca village (http://en.wikipedia.org/wiki/Itasca%2C_Illinois ). As it's possible to see on wikipedia page the coordinates of this place are 41.974678, -88.018513, being the X a negative number, as it's expected to all the USA country. My question is: Why the EXTENT has two points of whose X coordinates on both are positive numbers? Which coordinate system is being used? Thanks for your time. -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Thu Aug 3 13:02:53 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 3 Aug 2006 22:02:53 +0200 Subject: Mapscript API - csharp - layerObj.getItemType, layerObj.getItemSize, etc...? In-Reply-To: <015201c6b722$34cc4090$660ba8c0@dld410> Message-ID: Hi David, With the current implementation mapserver stores the field values uniquely as strings. Therefore you cannot extract further information (like fieldlength, fieldtype, fieldprecision etc.). Either, there is not much control on how a data provider converts the values to strings may cause several further problems when labelling the objects. The information you are expecting exists at the provider's level but was not propagated into the mapserver/ mapscript structures. Are there other issues you have run into not mentioned before? Tamas 2006/8/3, David Lowther : > > > > > Hi Everyone, > > > > I was wondering if I am overlooking a way to get information about a layers > items in mapscript. I've been through the docs thoroughly (I think) but am > only seeing stuff for returning item name and value. This makes sense since > there are so many possible layer types ? and therefore item types. Just > wondering? > > > > Thanks, > > > > > > David Lowther > > > > > > Coordinate Solutions, Inc. > > > 501 N.E. 15th Street > > > Oklahoma City, OK 73104 > > > 405.246.9396 (Voice) > > > 405.227.0781 (Fax) > > > www.coordinatesolutions.com From Steve.Lime at DNR.STATE.MN.US Thu Aug 3 13:27:14 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 3 Aug 2006 15:27:14 -0500 Subject: What does this error message mean? In-Reply-To: Message-ID: I don't know that it's an update issue, the choice of version was interesting though. I'm gonna look through the lexer source code to see if there are any clues there and will report back. Steve >>> "M.L. Jackson" 8/3/2006 1:51:34 PM >>> Honestly, I downloaded this version as an update a while back and I remember it being a pain so I haven't been looking forward to updating again. I continued this project from someone else and always have to figure out where all the files are located and what I actually need to download. I guess I am now forced to update. The reason I posted the code snippet is that the error only seems to show when I add this code to my Java bean. Thanks for your replies. >From: "Steve Lime" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? >Date: Wed, 02 Aug 2006 17:56:49 -0500 > >Why are you running an old, not to mention beta, version? > >That aside I don't see code here that would even invoke the lexer. That >only happens with mapfile parsing and expression evaluation. > >Steve > > >>> "M.L. Jackson" 08/02/06 2:54 PM >>> >I'm on a Windows machine running mapscript 4.6.0-beta1. > >Shp2img runs on it fine. The map file is a map of the United States of >America with a rivers layer, states layer, and wms layer. > >I'm running a JSP script. Yes, I have run a similar script on Tomcat. >The >script prints an interactive map legend using a Java Bean print method >call. > >The Java Bean method looks like this: >public String makeLegend() >{ >String layerName = ""; > >int layerCount = map.getNumlayers(); > >String legend = ""; > >//check the layer for a space which will cause problems and display >error >message >for(int i = 0; i < layerCount; i++) >{ > layerName = map.getLayer(i).getName(); > if(layerName.contains(" ")){ >legend += "

The layer name \"" + > >layerName + > "\" contains a space character and >will not function >correctly!!
" + > "Find the layer in the map file >and remove the space, >then " + > "reload the >application.
"; > return legend; > } >} > >//generates html for check boxes >legend = "
"; > >for(int i = 0; i < layerCount; i++) >{ >layerName = map.getLayer(i).getName(); > >legend += "\n handleBoxes(\"" + >layerName + "\")" + > " name = \"" + layerName + >"box\" checked>" + layerName.replace("_", " >") + "

"; >} > >legend += "\n
"; > > >return legend; >} > >Hope this is somewhat clear. Thanks. > > >From: "Steve Lime" > >To: "M.L. Jackson" , > > > >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? > >Date: Wed, 02 Aug 2006 14:15:45 -0500 > > > >Hmmm... Haven't seen that one before. I've found very little on Google > >with regards to the > >error. Something tells me it has to do with something like an empty > >file however I tried doing > >that locally and got a more appropriate error. So, we'll need more > >information. > > > >- what platform? what version? > >- what does the mapfile look like? can you run shp2img on it? > >- have you run this or a similar script successfully under tomcat? > > > >Steve > > > > > > >>> "M.L. Jackson" 8/2/2006 1:50:57 PM >>> > >What does this mean? This message is generated when I try to run my > >java > >mapscript application on Tomcat. > > > >"fatal flex scanner internal error--end of buffer missed" > > > >_________________________________________________________________ > >Express yourself instantly with MSN Messenger! Download today - it's > >FREE! > >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's >FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From rockwell_001 at YAHOO.COM Thu Aug 3 14:22:47 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Thu, 3 Aug 2006 14:22:47 -0700 Subject: creating a new class in the mapfile from the url Message-ID: Hello all, I was trying to use the mapsever feature of adding/creating a new feature in the mapfile. I am trying to create a new class and add the color properties for the mapfile from the url. This feature is listed in the mapsever website @ http://mapserver.gis.umn.edu/docs/reference/cgi/controls the syntax for creating a new class is map_layername_class_0=new and the url for adding color property would be http://localhost/mapserv.exe?MODE=map&MAP=test.map&LAYERS=states&map_states_class_0=new&map_states_class_0_color=100 100 100 i guess this should work, it didnt give me any error but doesnt display anything, i have tried some other possibilities too, but couldnt get it working. Does any one have an idea how to do it .. Thanks for your time ... kris --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Thu Aug 3 14:28:10 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 3 Aug 2006 14:28:10 -0700 Subject: Java Mapscript In-Reply-To: Message-ID: Alejandro Rico wrote: > Hi Ryan!! > > You must add the file libmapscript.so to your tomcat shared folder. > > Check http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 > , > here explain the correct configuration for use javamapscript Thanks for the help but still no luck, I only see a libmapscript.so in the PHP section of my MapServer download directory structure. But i used it anyway and copied the directory structure shown on the link that you sent. But i am still getting: java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > On 8/3/06, *Ryan Ollerenshaw* > wrote: > > I am trying to use MapServer's java Mapscript and keep getting the > following error: > > Java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > > I have added mapscript.jar to my WEB-INF/lib directory, but i am not > sure what else i should do. I am using eclipse with the Tomcat > plug in, > so i have also added the .jar file to eclipse but i dont think that > makes a difference when using tomcat. > > Here is my java code: > > import java.io.*; > import javax.servlet.*; > import javax.servlet.http.* ; > import edu.umn.gis.mapscript.*; > > public class MapServerTest extends HttpServlet { > > public void doGet ( HttpServletRequest request, > HttpServletResponse > response ) > throws ServletException, IOException { > > response.setContentType("text/html"); > PrintWriter out = response.getWriter(); > > System.loadLibrary("mapscript"); > > out.println(""); > out.println("Hello World!"); > out.println(""); > out.println("

aa Hello, World !

"); > > //mapObj map = new > mapObj("var/www/html/mapserver/htdocs/display.map"); > }// end doGet > > }///:~ > > > > > -- > Alejandro Rico From David.Fawcett at STATE.MN.US Thu Aug 3 14:31:09 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 3 Aug 2006 16:31:09 -0500 Subject: creating a new class in the mapfile from the url In-Reply-To: A<20060803212247.53692.qmail@web34209.mail.mud.yahoo.com> Message-ID: Kris, As far as I know, this won't create a new class for you. It will modify the first class in the list of existing classes in your layer. The text at the bottom of the page referring to creating a new feature likely means that you can create a new point/line/poly feature. As opposed to loading the features from a shapefile or other datasource. This doesn't refer to creating a new mapfile object. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rock well Sent: Thursday, August 03, 2006 4:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] creating a new class in the mapfile from the url Hello all, I was trying to use the mapsever feature of adding/creating a new feature in the mapfile. I am trying to create a new class and add the color properties for the mapfile from the url. This feature is listed in the mapsever website @ http://mapserver.gis.umn.edu/docs/reference/cgi/controls the syntax for creating a new class is map_layername_class_0=new and the url for adding color property would be http://localhost/mapserv.exe?MODE=map&MAP=test.map&LAYERS=states& map_states_class_0=new&map_states_class_0_color=100 100 100 i guess this should work, it didnt give me any error but doesnt display anything, i have tried some other possibilities too, but couldnt get it working. Does any one have an idea how to do it .. Thanks for your time ... kris ________________________________ Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarg58 at GMAIL.COM Thu Aug 3 15:08:40 2006 From: jarg58 at GMAIL.COM (Alejandro Rico) Date: Thu, 3 Aug 2006 17:08:40 -0500 Subject: Java Mapscript In-Reply-To: <44D26A6A.8090701@engr.orst.edu> Message-ID: > > ok, i forgot that at the beginning of the startup script > (/..../apache-tomcat../bin/startup.sh) of your tomcat installation, you must > write a line like export LD_LIBRARY_PATH= path_where_you_have_libmapscript.so -- Alejandro Rico -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Thu Aug 3 14:25:45 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 3 Aug 2006 14:25:45 -0700 Subject: Java Mapscript In-Reply-To: Message-ID: Alejandro Rico wrote: > > ok, i forgot that at the beginning of the startup script > (/..../apache-tomcat../bin/startup.sh) of your tomcat > installation, you must write a line like > > > export LD_LIBRARY_PATH= path_where_you_have_libmapscript.so Still no luck i added the following to my startup.sh, i was not to sure what way is correct so i added two lines: export LD_LIBRARY_PATH=/etc/tomcat5/shared/lib exec `export LD_LIBRARY_PATH=/etc/tomcat5/shared/lib` From ollerery at ENGR.ORST.EDU Thu Aug 3 15:50:12 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 3 Aug 2006 15:50:12 -0700 Subject: Tomcat help In-Reply-To: <44D26A6A.8090701@engr.orst.edu> Message-ID: I am able to compile a java mapscript file from the command line using: javac -classpath ./mapscript.jar MapServerTest.java But when i try to turn my code into a servelt and run it over Tomcat i keep getting: java.lang.UnsatisfiedLinkError: no mapscript in java.library.path I have tried adding: export CLASSPATH=./mapscript.jar to my ./startup.sh file but that does not seem to help. Am i missing a setting somewhere, why cant Tomcat find the .jar file? I have it in the same directory as my .java file and also in /common/lib and /shared/lib Thank you for any help that you can provide From Geoff.Dibley at GA.GOV.AU Thu Aug 3 21:08:42 2006 From: Geoff.Dibley at GA.GOV.AU (Geoff Dibley) Date: Fri, 4 Aug 2006 14:08:42 +1000 Subject: Extents defined in mapfile versus those returned from GetCapabilities WMS request Message-ID: Hi there, I have a mapfile that defines an extent and projection as follows; EXTENT -2200000 -4700000 2000000 -1500000 PROJECTION "init=epsg:3112" # epsg:3112 (formerly 18001) is the same as the following: # "proj=lcc" # "ellps=WGS84" # "lat_1=-18d" # "lat_2=-36d" # "lat_0=0d" # "lon_0=134d" # "x_0=0d" # "y_0=0d" END Map Name, Projection, and required layer metadata (wms_title, wms_onlineresource, and wms_srs) are all set as per the Mapserver WMS Server How to. Layer Name, Projection and metadata are set (wms_title) s per the Mapserver WMS Server How to. This all works OK - but I'm confused as to where the LatLonBoundingBox and Bounding Box values in the GetCapabilities statement below are coming from; cities Cities and towns of Australia by type. EPSG:3112 Are the bounding box x,y the actual extents (in epsg:3112 units) calculated by Mapserver for that layer ? How does this relate to the extents defined in the top level of the mapfile (getmap requests on the layer limit themselves to these extents if no bbox is specified) ? Where do the latlonbounding box values come from - are they simply calculated in Mapserver by converting the epsg:3112 co-ordinates tom lat/long ? Any thoughts gratefully received ! Cheers, Geoff From simon at SIBERN.COM.AU Thu Aug 3 21:37:46 2006 From: simon at SIBERN.COM.AU (Simon Haddon) Date: Fri, 4 Aug 2006 14:37:46 +1000 Subject: New ColdFusion Maoscript interface Message-ID: Hi everyone, I have been sitting on a CFC that I wrote for ColdFusion that uses the Java mapscript interface. I have developed over the last few months and would like to put it out to public domain. Is there any use for it. Would anyone out there using ColdFusion (or wanting to use) be interested. It should make the use of mapscript easier than coding directly to the mapscript java interface. Please have a look and tell me what you think. Also can I add it to the mapscript site somewhere. I am not too sure what to do here as I haven't contributed code back to the mapserver project before. Simon Haddon -------------- next part -------------- A non-text attachment was scrubbed... Name: mapscript.cfc Type: application/x-cfc Size: 32927 bytes Desc: not available URL: From paul at SUSTAINABLEGIS.COM Thu Aug 3 22:34:14 2006 From: paul at SUSTAINABLEGIS.COM (Paul Hastings) Date: Fri, 4 Aug 2006 12:34:14 +0700 Subject: New ColdFusion Maoscript interface In-Reply-To: <50198.152.91.9.8.1154666266.squirrel@calippo.sibern.com.au> Message-ID: Simon Haddon wrote: > Hi everyone, > > I have been sitting on a CFC that I wrote for ColdFusion that uses the > Java mapscript interface. I have developed over the last few months and > would like to put it out to public domain. wow. i've been trying to get cf working w/java mapscript of & on for several months & never really succeeded. is this the plain jane ms object? this depends on the java jar, etc being in the classpath? i'd like to hear more about how you accomplished this (maybe off-list so we upset the php folks here ;-) thanks. From simon at SIBERN.COM.AU Thu Aug 3 22:45:39 2006 From: simon at SIBERN.COM.AU (Simon Haddon) Date: Fri, 4 Aug 2006 15:45:39 +1000 Subject: New ColdFusion Mapscript interface In-Reply-To: <44D2DC56.609@sustainableGIS.com> Message-ID: Hi Paul, If the emails get too indepth and no one else is interested in reading the conversation then I will take it off list. The CFC is written to talk to mapscript.jar which in turn talks to mapscript.so. This means that you need both jar and shared library in your classpath and library path. So yes, it is plain Jane in the sense it uses the standard jar and shared library that the other languages use. Once setup you can use the init method and then the create method to get generate an image. There are of course alot more methods for controlling extents, layers, etc. If you are compiling mapscript swig interface yourself then please make sure your swig version is up to date as they changed the enumerated data types from numbers to string values and I need te string values Now, I hope I haven't upset any php folks out there :-) Cheers, Simon > Simon Haddon wrote: >> Hi everyone, >> >> I have been sitting on a CFC that I wrote for ColdFusion that uses the >> Java mapscript interface. I have developed over the last few months and >> would like to put it out to public domain. > > wow. i've been trying to get cf working w/java mapscript of & on for > several > months & never really succeeded. is this the plain jane ms object? this > depends > on the java jar, etc being in the classpath? > > i'd like to hear more about how you accomplished this (maybe off-list so > we > upset the php folks here ;-) > > thanks. > From simon at SIBERN.COM.AU Thu Aug 3 23:52:16 2006 From: simon at SIBERN.COM.AU (Simon Haddon) Date: Fri, 4 Aug 2006 16:52:16 +1000 Subject: Tomcat help In-Reply-To: <44D27DA4.3090801@engr.orst.edu> Message-ID: Hi, I think that yo will find that it is finding the jar file. The problem is that mapscript.jar can't find mapscript.so . You need to make sure that the shared library is in the tomcat library path as well. You might need to define of extend LD_LIBRARY_PATH or maybe use java.library.path . Would need to check Cheers, Simon Haddon > I am able to compile a java mapscript file from the command line using: > > javac -classpath ./mapscript.jar MapServerTest.java > > But when i try to turn my code into a servelt and run it over Tomcat i > keep getting: > > java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > > I have tried adding: > export CLASSPATH=./mapscript.jar > to my ./startup.sh file but that does not seem to help. Am i missing a > setting somewhere, why cant Tomcat find the .jar file? I have it in the > same directory as my .java file and also in /common/lib and /shared/lib > > Thank you for any help that you can provide > From umberto.nicoletti at GMAIL.COM Fri Aug 4 00:39:51 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 4 Aug 2006 09:39:51 +0200 Subject: Tomcat help In-Reply-To: <44D27DA4.3090801@engr.orst.edu> Message-ID: There are a few docs scattered around that explain how to deal with this issue: http://www.unicolet.org/mapserver/tomcat.html http://mapserver.gis.umn.edu/docs/howto/javamapscript http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 HTH, Umberto On 8/4/06, Ryan Ollerenshaw wrote: > I am able to compile a java mapscript file from the command line using: > > javac -classpath ./mapscript.jar MapServerTest.java > > But when i try to turn my code into a servelt and run it over Tomcat i > keep getting: > > java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > > I have tried adding: > export CLASSPATH=./mapscript.jar > to my ./startup.sh file but that does not seem to help. Am i missing a > setting somewhere, why cant Tomcat find the .jar file? I have it in the > same directory as my .java file and also in /common/lib and /shared/lib > > Thank you for any help that you can provide > From bjh at GLOBEXPLORER.COM Fri Aug 4 03:56:21 2006 From: bjh at GLOBEXPLORER.COM (Jean-Henry Berevoescu) Date: Fri, 4 Aug 2006 03:56:21 -0700 Subject: Tomcat help In-Reply-To: <44D27DA4.3090801@engr.orst.edu> Message-ID: There are some components using Native code that need to have java.library.path set to point to the directories where the native libraries are. They are not using LD_LIBRARY_PATH as, I suppose, it is not a platform independent way to set such a thing. I use one of those components (PROJ.4) in a totally different context than MapServer and what I do in order to set java.library.path is add it as additional parameter in for JVM in catalina.sh with: -Djava.library.path=... Jean Ryan Ollerenshaw wrote: > I am able to compile a java mapscript file from the command line using: > > javac -classpath ./mapscript.jar MapServerTest.java > > But when i try to turn my code into a servelt and run it over Tomcat i > keep getting: > > java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > > I have tried adding: export CLASSPATH=./mapscript.jar > to my ./startup.sh file but that does not seem to help. Am i missing > a setting somewhere, why cant Tomcat find the .jar file? I have it in > the same directory as my .java file and also in /common/lib and > /shared/lib > > Thank you for any help that you can provide -- Please avoid sending me Word, Excel or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html From David.Fawcett at STATE.MN.US Fri Aug 4 05:55:05 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 4 Aug 2006 07:55:05 -0500 Subject: FW: Asking about driver Message-ID: I got this as a comment to the OGR MSQL Howto on the MapServer site. I am passing it on to the list for a wider group of eyes. Ahmed, Looking at the error, it appears that you have not changed the OVF file to reflect the name, password, etc. of your database setup. It would help the list help you if you posted the text of your ovf file to the list. David. -----Original Message----- From: ayaha2001 at yahoo.fr [mailto:ayaha2001 at yahoo.fr] Sent: Friday, August 04, 2006 6:14 AM To: Fawcett, David Subject: Asking about driver You are receiving this mail because Ayadi Ahmed (ahmed), ayaha2001 at yahoo.fr is sending feedback about content created by you at http://mapserver.gis.umn.edu/docs/howto/ogrmysql. The message sent was: I have a problem when I want to use orginfo to connect to mysql database. 'orginfo' n'est pas reconnu en tant que commande interne ou externe, un programme ex?cutable ou un fichier de commandes. C:\wamp\tools\gdal-ogr>ogrinfo aqidata.ovf ERROR 4: Update access not supported for VRT datasources. ERROR 1: Failed to open datasource `MYSQL:aqiTest,user=root,password=,host=127. .0.1,port=3306,tables=testdata'. FAILURE: Unable to open datasource `aqidata.ovf' with the following drivers. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> PGeo -> FMEObjects Gateway Thanks. -- MapServer Website From mljacks2 at HOTMAIL.COM Fri Aug 4 07:36:45 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Fri, 4 Aug 2006 09:36:45 -0500 Subject: shp2img in latest mapserver version? In-Reply-To: <44D215D20200008F00000846@co5.dnr.state.mn.us> Message-ID: Does the latest version of mapserver (4.8.4) include a shp2img executable? I was browsing the folders and could not find it anywhere. Maybe I downloaded the wrong version. Thanks. >From: Steve Lime >Reply-To: Steve Lime >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? >Date: Thu, 3 Aug 2006 15:27:14 -0500 > >I don't know that it's an update issue, the choice of version was >interesting though. > >I'm gonna look through the lexer source code to see if there are any clues >there and will report back. > >Steve > > >>> "M.L. Jackson" 8/3/2006 1:51:34 PM >>> >Honestly, I downloaded this version as an update a while back and I >remember >it being a pain so I haven't been looking forward to updating again. I >continued this project from someone else and always have to figure out >where >all the files are located and what I actually need to download. I guess I >am now forced to update. > >The reason I posted the code snippet is that the error only seems to show >when I add this code to my Java bean. > >Thanks for your replies. > > > >From: "Steve Lime" > >To: , > >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? > >Date: Wed, 02 Aug 2006 17:56:49 -0500 > > > >Why are you running an old, not to mention beta, version? > > > >That aside I don't see code here that would even invoke the lexer. That > >only happens with mapfile parsing and expression evaluation. > > > >Steve > > > > >>> "M.L. Jackson" 08/02/06 2:54 PM >>> > >I'm on a Windows machine running mapscript 4.6.0-beta1. > > > >Shp2img runs on it fine. The map file is a map of the United States of > >America with a rivers layer, states layer, and wms layer. > > > >I'm running a JSP script. Yes, I have run a similar script on Tomcat. > >The > >script prints an interactive map legend using a Java Bean print method > >call. > > > >The Java Bean method looks like this: > >public String makeLegend() > >{ > >String layerName = ""; > > > >int layerCount = map.getNumlayers(); > > > >String legend = ""; > > > >//check the layer for a space which will cause problems and display > >error > >message > >for(int i = 0; i < layerCount; i++) > >{ > > layerName = map.getLayer(i).getName(); > > if(layerName.contains(" ")){ > >legend += "

The layer name \"" + > > > >layerName + > > "\" contains a space character and > >will not function > >correctly!!
" + > > "Find the layer in the map file > >and remove the space, > >then " + > > "reload the > >application.
"; > > return legend; > > } > >} > > > >//generates html for check boxes > >legend = "
"; > > > >for(int i = 0; i < layerCount; i++) > >{ > >layerName = map.getLayer(i).getName(); > > > >legend += "\n >handleBoxes(\"" + > >layerName + "\")" + > > " name = \"" + layerName + > >"box\" checked>" + layerName.replace("_", " > >") + "

"; > >} > > > >legend += "\n
"; > > > > > >return legend; > >} > > > >Hope this is somewhat clear. Thanks. > > > > >From: "Steve Lime" > > >To: "M.L. Jackson" , > > > > > >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? > > >Date: Wed, 02 Aug 2006 14:15:45 -0500 > > > > > >Hmmm... Haven't seen that one before. I've found very little on Google > > >with regards to the > > >error. Something tells me it has to do with something like an empty > > >file however I tried doing > > >that locally and got a more appropriate error. So, we'll need more > > >information. > > > > > >- what platform? what version? > > >- what does the mapfile look like? can you run shp2img on it? > > >- have you run this or a similar script successfully under tomcat? > > > > > >Steve > > > > > > > > > >>> "M.L. Jackson" 8/2/2006 1:50:57 PM >>> > > >What does this mean? This message is generated when I try to run my > > >java > > >mapscript application on Tomcat. > > > > > >"fatal flex scanner internal error--end of buffer missed" > > > > > >_________________________________________________________________ > > >Express yourself instantly with MSN Messenger! Download today - it's > > >FREE! > > >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > >_________________________________________________________________ > >Express yourself instantly with MSN Messenger! Download today - it's > >FREE! > >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > >_________________________________________________________________ >Don?t just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From bart_doggers at YAHOO.COM Fri Aug 4 08:16:55 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Fri, 4 Aug 2006 08:16:55 -0700 Subject: label question Message-ID: Hi List, Is there a way to delete duplicate labels when I have the labels on? Like I have HWY 13 label on and it shows see different times on the map. Is there a code that I can put in my map file? Thanks Albert --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Fri Aug 4 08:25:42 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 4 Aug 2006 10:25:42 -0500 Subject: label question In-Reply-To: A<20060804151655.19081.qmail@web55701.mail.re3.yahoo.com> Message-ID: Take a look at the MapFile documentation. In the section on LABEL, you will see an entry for MINDISTANCE. http://mapserver.gis.umn.edu/docs/reference/mapfile/label You specify the minimum distance in pixels between labels for a particular feature. Another approach is to use MINFEATURESIZE. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson Sent: Friday, August 04, 2006 10:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] label question Hi List, Is there a way to delete duplicate labels when I have the labels on? Like I have HWY 13 label on and it shows see different times on the map. Is there a code that I can put in my map file? Thanks Albert ________________________________ Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Fri Aug 4 09:37:43 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Fri, 4 Aug 2006 11:37:43 -0500 Subject: Mapscript API - csharp - layerObj.getItemType, layerObj.getItemSize, etc...? In-Reply-To: Message-ID: Thanks for the reply Tamas. Other issues? Not yet. I've been working pretty steadily integrating Mapserver (via csharp_mapscript) in a set of .NET 2.0 objects that are used in an ASP.NET 2.0 GUI/client application. The objects had heretofore used ArcIMS exclusively (via the ActiveX connector). The goal of the objects is to abstract many of the basic mapping functions (selection, zooming, panning, etc...) and provide true .NET usability without having to "mess" with ArcIMS or Mapserver directly. Basically you configure your map with XML file (tools, toc, services, etc...) and then call methods of the GIS object (.ZoomIn, .ZoomOut, .Identify, .SelectPolygon, .Whatever). Also, all of the client side JavaScript is generated by the objects based on the configuration of the map. All of these functions work for ArcIMS. I've gotten Mapserver doing panning and zooming and have a good start on the selection stuff. I can configure my GIS to use multiple ArcIMS and Mapserver services and layers at the same time drawn on top of each other. Essentially, cascading ArcIMS and Mapserver together. (Why not basic WMS? Because you don't get the analysis and data that I want.) Someone reading this is thinking "If you can do all the things with Mapserver, why are you using ArcIMS?" Right now, it's because that's where this project started. Once I get EVERYTHING working with Mapserver that works with ArcIMS and see how the thread safety issues affect my reality, we'll see... David Lowther -----Original Message----- From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Thursday, August 03, 2006 3:03 PM To: dlowther at coordinatesolutions.com Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Mapscript API - csharp - layerObj.getItemType, layerObj.getItemSize, etc...? Hi David, With the current implementation mapserver stores the field values uniquely as strings. Therefore you cannot extract further information (like fieldlength, fieldtype, fieldprecision etc.). Either, there is not much control on how a data provider converts the values to strings may cause several further problems when labelling the objects. The information you are expecting exists at the provider's level but was not propagated into the mapserver/ mapscript structures. Are there other issues you have run into not mentioned before? Tamas 2006/8/3, David Lowther : > > > > > Hi Everyone, > > > > I was wondering if I am overlooking a way to get information about a layers > items in mapscript. I've been through the docs thoroughly (I think) but am > only seeing stuff for returning item name and value. This makes sense since > there are so many possible layer types - and therefore item types. Just > wondering. > > > > Thanks, > > > > > > David Lowther > > > > > > Coordinate Solutions, Inc. > > > 501 N.E. 15th Street > > > Oklahoma City, OK 73104 > > > 405.246.9396 (Voice) > > > 405.227.0781 (Fax) > > > www.coordinatesolutions.com From Steve.Lime at DNR.STATE.MN.US Fri Aug 4 10:46:10 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 4 Aug 2006 12:46:10 -0500 Subject: New ColdFusion Mapscript interface In-Reply-To: <38991.152.91.9.8.1154670339.squirrel@calippo.sibern.com.au> Message-ID: No, but the Perl folks are pissed... ;-) Sounds like a great addition. Perhaps you could create a page around this on the MapServer website? Either a link to your site or perhaps a howto if there is enough interest... Thanks for making this available! Steve >>> Simon Haddon 8/4/2006 12:45:39 AM >>> Hi Paul, If the emails get too indepth and no one else is interested in reading the conversation then I will take it off list. The CFC is written to talk to mapscript.jar which in turn talks to mapscript.so. This means that you need both jar and shared library in your classpath and library path. So yes, it is plain Jane in the sense it uses the standard jar and shared library that the other languages use. Once setup you can use the init method and then the create method to get generate an image. There are of course alot more methods for controlling extents, layers, etc. If you are compiling mapscript swig interface yourself then please make sure your swig version is up to date as they changed the enumerated data types from numbers to string values and I need te string values Now, I hope I haven't upset any php folks out there :-) Cheers, Simon > Simon Haddon wrote: >> Hi everyone, >> >> I have been sitting on a CFC that I wrote for ColdFusion that uses the >> Java mapscript interface. I have developed over the last few months and >> would like to put it out to public domain. > > wow. i've been trying to get cf working w/java mapscript of & on for > several > months & never really succeeded. is this the plain jane ms object? this > depends > on the java jar, etc being in the classpath? > > i'd like to hear more about how you accomplished this (maybe off-list so > we > upset the php folks here ;-) > > thanks. > From Steve.Lime at DNR.STATE.MN.US Fri Aug 4 10:50:19 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 4 Aug 2006 12:50:19 -0500 Subject: Website thought, an map gallery? Message-ID: Hi folks: I've been wondering if we shouldn't start up a new type of gallery, specifically an image gallery. The app gallery is great but it doesn't show off in a quick fashion the maps that can be created with MapServer and these various applications. One has to dig around and even then it might be hard to stumble on the best output a site has to output. In truth, the site owners have that knowledge. So, I'd like to propose the creation of a map gallery. Thoughts? Steve From ollerery at ENGR.ORST.EDU Fri Aug 4 10:07:41 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 4 Aug 2006 10:07:41 -0700 Subject: Tomcat help In-Reply-To: <75b4b93e0608040039x3b99e407wcdb57f0b3ff0bfe3@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: > There are a few docs scattered around that explain how to deal with > this issue: > > http://www.unicolet.org/mapserver/tomcat.html > http://mapserver.gis.umn.edu/docs/howto/javamapscript > http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 > > HTH, > > Umberto > Still no luck, and i have tried everything: I copied libmapscript.so to /usr/local/lib and set //etc/ld.so.conf/ // added export LD_LIBRARY_PATH=/etc/tomcat5/common/lib and export CLASSPATH=$CLASSPATH:/etc/tomcat/common/lib/mapscript.jar and JAVA_OPTS=" -Djava.library.path=/etc/tomcat5/common/lib/ " to catalina.sh Nothing seems to be working, when i print out my classpath through code using: Get the System Classloader ClassLoader sysClassLoader = ClassLoader.getSystemClassLoader(); //Get the URLs URL[] urls = ((URLClassLoader)sysClassLoader).getURLs(); for(int i=0; i< urls.length; i++) { out.println(urls[i].getFile()); out.println("
"); } I get: /usr/java/j2sdk1.4.2_12/lib/tools.jar /etc/tomcat5/bin/dist/commons-daemon.jar /etc/tomcat5/bin/bootstrap.jar why isnt mapserver.jar showing up? I am using the eclipse w/ the tomcat plug > > > On 8/4/06, Ryan Ollerenshaw wrote: >> I am able to compile a java mapscript file from the command line using: >> >> javac -classpath ./mapscript.jar MapServerTest.java >> >> But when i try to turn my code into a servelt and run it over Tomcat i >> keep getting: >> >> java.lang.UnsatisfiedLinkError: no mapscript in java.library.path >> >> I have tried adding: >> export CLASSPATH=./mapscript.jar >> to my ./startup.sh file but that does not seem to help. Am i missing a >> setting somewhere, why cant Tomcat find the .jar file? I have it in the >> same directory as my .java file and also in /common/lib and /shared/lib >> >> Thank you for any help that you can provide >> From mljacks2 at HOTMAIL.COM Fri Aug 4 11:16:58 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Fri, 4 Aug 2006 13:16:58 -0500 Subject: shp2img in latest mapserver version? In-Reply-To: Message-ID: Never mind that question. I know I have to compile it to get the executables. >From: "M.L. Jackson" >Reply-To: "M.L. Jackson" >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] shp2img in latest mapserver version? >Date: Fri, 4 Aug 2006 09:36:45 -0500 > >Does the latest version of mapserver (4.8.4) include a shp2img executable? >I was browsing the folders and could not find it anywhere. Maybe I >downloaded the wrong version. Thanks. > > >>From: Steve Lime >>Reply-To: Steve Lime >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? >>Date: Thu, 3 Aug 2006 15:27:14 -0500 >> >>I don't know that it's an update issue, the choice of version was >>interesting though. >> >>I'm gonna look through the lexer source code to see if there are any clues >>there and will report back. >> >>Steve >> >> >>> "M.L. Jackson" 8/3/2006 1:51:34 PM >>> >>Honestly, I downloaded this version as an update a while back and I >>remember >>it being a pain so I haven't been looking forward to updating again. I >>continued this project from someone else and always have to figure out >>where >>all the files are located and what I actually need to download. I guess I >>am now forced to update. >> >>The reason I posted the code snippet is that the error only seems to show >>when I add this code to my Java bean. >> >>Thanks for your replies. >> >> >> >From: "Steve Lime" >> >To: , >> >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? >> >Date: Wed, 02 Aug 2006 17:56:49 -0500 >> > >> >Why are you running an old, not to mention beta, version? >> > >> >That aside I don't see code here that would even invoke the lexer. That >> >only happens with mapfile parsing and expression evaluation. >> > >> >Steve >> > >> > >>> "M.L. Jackson" 08/02/06 2:54 PM >>> >> >I'm on a Windows machine running mapscript 4.6.0-beta1. >> > >> >Shp2img runs on it fine. The map file is a map of the United States of >> >America with a rivers layer, states layer, and wms layer. >> > >> >I'm running a JSP script. Yes, I have run a similar script on Tomcat. >> >The >> >script prints an interactive map legend using a Java Bean print method >> >call. >> > >> >The Java Bean method looks like this: >> >public String makeLegend() >> >{ >> >String layerName = ""; >> > >> >int layerCount = map.getNumlayers(); >> > >> >String legend = ""; >> > >> >//check the layer for a space which will cause problems and display >> >error >> >message >> >for(int i = 0; i < layerCount; i++) >> >{ >> > layerName = map.getLayer(i).getName(); >> > if(layerName.contains(" ")){ >> >legend += "

The layer name \"" + >> > >> >layerName + >> > "\" contains a space character and >> >will not function >> >correctly!!
" + >> > "Find the layer in the map file >> >and remove the space, >> >then " + >> > "reload the >> >application.
"; >> > return legend; >> > } >> >} >> > >> >//generates html for check boxes >> >legend = "
"; >> > >> >for(int i = 0; i < layerCount; i++) >> >{ >> >layerName = map.getLayer(i).getName(); >> > >> >legend += "\n > >handleBoxes(\"" + >> >layerName + "\")" + >> > " name = \"" + layerName + >> >"box\" checked>" + layerName.replace("_", " >> >") + "

"; >> >} >> > >> >legend += "\n
"; >> > >> > >> >return legend; >> >} >> > >> >Hope this is somewhat clear. Thanks. >> > >> > >From: "Steve Lime" >> > >To: "M.L. Jackson" , >> > > >> > >Subject: Re: [UMN_MAPSERVER-USERS] What does this error message mean? >> > >Date: Wed, 02 Aug 2006 14:15:45 -0500 >> > > >> > >Hmmm... Haven't seen that one before. I've found very little on Google >> > >with regards to the >> > >error. Something tells me it has to do with something like an empty >> > >file however I tried doing >> > >that locally and got a more appropriate error. So, we'll need more >> > >information. >> > > >> > >- what platform? what version? >> > >- what does the mapfile look like? can you run shp2img on it? >> > >- have you run this or a similar script successfully under tomcat? >> > > >> > >Steve >> > > >> > > >> > > >>> "M.L. Jackson" 8/2/2006 1:50:57 PM >>> >> > >What does this mean? This message is generated when I try to run my >> > >java >> > >mapscript application on Tomcat. >> > > >> > >"fatal flex scanner internal error--end of buffer missed" >> > > >> > >_________________________________________________________________ >> > >Express yourself instantly with MSN Messenger! Download today - it's >> > >FREE! >> > >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >> > >> >_________________________________________________________________ >> >Express yourself instantly with MSN Messenger! Download today - it's >> >FREE! >> >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >> > >> > >> >>_________________________________________________________________ >>Don?t just search. Find. Check out the new MSN Search! >>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ From tylermitchell at SHAW.CA Fri Aug 4 11:14:28 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 4 Aug 2006 11:14:28 -0700 Subject: Website thought, an map gallery? In-Reply-To: <44D3428B0200008F000008DA@co5.dnr.state.mn.us> Message-ID: Hi Steve, I think having an image/map gallery would be really nice to have. It would be a great resource for when we pull together slideshow presentations as well. Tyler On 4-Aug-06, at 10:50 AM, Steve Lime wrote: > Hi folks: I've been wondering if we shouldn't start up a new type of > gallery, specifically an image gallery. The app gallery is great > but it > doesn't show off in a quick fashion the maps that can be created with > MapServer and these various applications. One has to dig around > and even then it might be hard to stumble on the best output a site > has > to output. In truth, the site owners have that knowledge. > > So, I'd like to propose the creation of a map gallery. Thoughts? > > Steve From bjh at GLOBEXPLORER.COM Fri Aug 4 11:20:08 2006 From: bjh at GLOBEXPLORER.COM (Jean-Henry Berevoescu) Date: Fri, 4 Aug 2006 11:20:08 -0700 Subject: Tomcat help In-Reply-To: <44D37EDD.8050802@engr.orst.edu> Message-ID: Making sure libmapscript.so is in the path is good but not enough. All the libraries it depends on (depending on what set of dependencies you configured for before you compiled MapServer - stuff flike GD, GDAL, PROJ.4, PostgreSQL/PostGIS support, cURL etc) should be accessible too. In the cases you present here the only dir you have pointed to is your common lib of Tomcat's tree. Jean Ryan Ollerenshaw wrote: > Umberto Nicoletti wrote: >> There are a few docs scattered around that explain how to deal with >> this issue: >> >> http://www.unicolet.org/mapserver/tomcat.html >> http://mapserver.gis.umn.edu/docs/howto/javamapscript >> http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 >> >> HTH, >> >> Umberto >> > Still no luck, and i have tried everything: > > I copied libmapscript.so to /usr/local/lib and set //etc/ld.so.conf/ > // > added > export LD_LIBRARY_PATH=/etc/tomcat5/common/lib > and > export CLASSPATH=$CLASSPATH:/etc/tomcat/common/lib/mapscript.jar > and > JAVA_OPTS=" -Djava.library.path=/etc/tomcat5/common/lib/ " > to catalina.sh > > Nothing seems to be working, when i print out my classpath through > code using: > Get the System Classloader > ClassLoader sysClassLoader = ClassLoader.getSystemClassLoader(); > //Get the URLs > URL[] urls = ((URLClassLoader)sysClassLoader).getURLs(); > for(int i=0; i< urls.length; i++) > { > out.println(urls[i].getFile()); > out.println("
"); > } > > I get: > > /usr/java/j2sdk1.4.2_12/lib/tools.jar > /etc/tomcat5/bin/dist/commons-daemon.jar > /etc/tomcat5/bin/bootstrap.jar > > why isnt mapserver.jar showing up? > > I am using the eclipse w/ the tomcat plug >> >> >> On 8/4/06, Ryan Ollerenshaw wrote: >>> I am able to compile a java mapscript file from the command line using: >>> >>> javac -classpath ./mapscript.jar MapServerTest.java >>> >>> But when i try to turn my code into a servelt and run it over Tomcat i >>> keep getting: >>> >>> java.lang.UnsatisfiedLinkError: no mapscript in java.library.path >>> >>> I have tried adding: >>> export CLASSPATH=./mapscript.jar >>> to my ./startup.sh file but that does not seem to help. Am i missing a >>> setting somewhere, why cant Tomcat find the .jar file? I have it in >>> the >>> same directory as my .java file and also in /common/lib and /shared/lib >>> >>> Thank you for any help that you can provide >>> > > !DSPAM:44d38e02240001453737823! > > -- Please avoid sending me Word, Excel or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html From bob.basques at CI.STPAUL.MN.US Fri Aug 4 11:36:34 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 4 Aug 2006 13:36:34 -0500 Subject: Website thought, an map gallery? In-Reply-To: Message-ID: Steve, Great idea. I think just implementing an input form to add a link would suffice, where the owners could upload a screen capture (or captures). Or where you thinking about something more? bobb Steve Lime wrote: > Hi folks: I've been wondering if we shouldn't start up a new type of > gallery, specifically an image gallery. The app gallery is great but it > doesn't show off in a quick fashion the maps that can be created with > MapServer and these various applications. One has to dig around > and even then it might be hard to stumble on the best output a site has > to output. In truth, the site owners have that knowledge. > > So, I'd like to propose the creation of a map gallery. Thoughts? > > Steve > > From mgleahy at GOLDEN.NET Fri Aug 4 13:24:49 2006 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Fri, 4 Aug 2006 16:24:49 -0400 Subject: width property for points? Message-ID: Hello List, I've been trying to see if I can style points with an outline that is thicker than one pixel. Firstly, I've found that I am not able to set the WIDTH property of a style element using MapScript - is this a Bug? The MapServer FAQ suggest the following for Polygons: STYLE # solid fill COLOR 255 0 0 END STYLE # thick outline (could use a circle symbol with size too) OUTLINECOLOR 0 0 0 WIDTH 3 ANTIALIAS TRUE END This works if I manually edit the mapfile, but since MapScript won't save the width property for me (or ANTIALIAS for that matter), I had to use the following approach: STYLE ANGLE 360 COLOR 210 247 247 SYMBOL 0 END STYLE ANGLE 360 OUTLINECOLOR 0 0 255 SIZE 3 SYMBOL "circle" END I've tried similar methods for point symbols: STYLE COLOR 0 163 240 SIZE 9 SYMBOL "tent" END STYLE SYMBOL "tent" SIZE 9 OUTLINECOLOR 0 255 0 WIDTH 5 END I've also tried: STYLE COLOR 0 163 240 SIZE 9 SYMBOL "tent" OUTLINECOLOR 0 255 0 WIDTH 5 END Unfortunately, nothing I do makes the outline around the point any thicker than one pixel. Has anyone else encountered this? I know I could just put a smaller symbol on top of another, but that only works if a relatively symmetrical symbol is used (like a circle or star). Thanks in advance for any suggestions, Mike From Steve.Lime at DNR.STATE.MN.US Fri Aug 4 13:51:29 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 4 Aug 2006 15:51:29 -0500 Subject: width property for points? In-Reply-To: <44D3AD11.8010705@golden.net> Message-ID: Mike: First, please file a quick bug on not saving width or antialias and I'll fix ASAP. Might also want to file one for applying width to the outline of filled symbols. Second, you'll probably need 2 symbols: one with FILLED TRUE and the other without it (e.g. tent and tent-outline). I just looked at the code and it respects width for non-filled VECTOR symbols. Steve >>> Mike Leahy 8/4/2006 3:24:49 PM >>> Hello List, I've been trying to see if I can style points with an outline that is thicker than one pixel. Firstly, I've found that I am not able to set the WIDTH property of a style element using MapScript - is this a Bug? The MapServer FAQ suggest the following for Polygons: STYLE # solid fill COLOR 255 0 0 END STYLE # thick outline (could use a circle symbol with size too) OUTLINECOLOR 0 0 0 WIDTH 3 ANTIALIAS TRUE END This works if I manually edit the mapfile, but since MapScript won't save the width property for me (or ANTIALIAS for that matter), I had to use the following approach: STYLE ANGLE 360 COLOR 210 247 247 SYMBOL 0 END STYLE ANGLE 360 OUTLINECOLOR 0 0 255 SIZE 3 SYMBOL "circle" END I've tried similar methods for point symbols: STYLE COLOR 0 163 240 SIZE 9 SYMBOL "tent" END STYLE SYMBOL "tent" SIZE 9 OUTLINECOLOR 0 255 0 WIDTH 5 END I've also tried: STYLE COLOR 0 163 240 SIZE 9 SYMBOL "tent" OUTLINECOLOR 0 255 0 WIDTH 5 END Unfortunately, nothing I do makes the outline around the point any thicker than one pixel. Has anyone else encountered this? I know I could just put a smaller symbol on top of another, but that only works if a relatively symmetrical symbol is used (like a circle or star). Thanks in advance for any suggestions, Mike From Steve.Lime at DNR.STATE.MN.US Fri Aug 4 15:00:11 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 4 Aug 2006 17:00:11 -0500 Subject: Website thought, an map gallery? In-Reply-To: <44D393B2.4020908@ci.stpaul.mn.us> Message-ID: I wasn't thinking application screen captures as much as purely maps. Application captures belong over in the app gallery. Steve >>> Bob Basques 8/4/2006 1:36:34 PM >>> Steve, Great idea. I think just implementing an input form to add a link would suffice, where the owners could upload a screen capture (or captures). Or where you thinking about something more? bobb Steve Lime wrote: > Hi folks: I've been wondering if we shouldn't start up a new type of > gallery, specifically an image gallery. The app gallery is great but it > doesn't show off in a quick fashion the maps that can be created with > MapServer and these various applications. One has to dig around > and even then it might be hard to stumble on the best output a site has > to output. In truth, the site owners have that knowledge. > > So, I'd like to propose the creation of a map gallery. Thoughts? > > Steve > > From ollerery at ENGR.ORST.EDU Fri Aug 4 13:58:26 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 4 Aug 2006 13:58:26 -0700 Subject: Java MapScript UnsatisfiedLinkError In-Reply-To: <44D36D010200008F0000090A@co5.dnr.state.mn.us> Message-ID: Using this bit of code my java servelt reports that the mapscript has loaded. static { try { //System.loadLibrary("mapscript"); //load native library System.load("/etc/tomcat5/webapps/my_test/WEB-INF/src/libmapscript.so"); //load native library System.out.println(" * mapscript native library loaded *"); } catch (Exception e) { System.err.println(" * error loading native library *"); System.err.println("Error is: " + e); e.printStackTrace(); } } although i am still getting a UnsatisfiedLinkError: no mapscript in java.library.path when i reference any of the mapscript functions for example: mapObj map = new mapObj("/var/www/html/mapserver/htdocs/display.map"); Any ideas why this is? From bob.basques at CI.STPAUL.MN.US Fri Aug 4 15:09:28 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 4 Aug 2006 17:09:28 -0500 Subject: Website thought, an map gallery? In-Reply-To: Message-ID: Steve Lime wrote: > I wasn't thinking application screen captures as much as purely maps. > Application captures belong over > in the app gallery. > Well, then I would suggest that along with these gallery images, that the specifics of a MAP file corresponding to the map output should be posted as well if the Authors are willing. Seeing it done, I would naturally want to know how to do it too. :c) Some applications also have client components that change the output in one way or another, semi-transparency, Popup windows, etc.. These might be mis-construed as a MapServer capabilitires, while some of these items may very well originate from MapServer as well. bobb > Steve > > >>>> Bob Basques 8/4/2006 1:36:34 PM >>> >>>> > Steve, > > Great idea. > > I think just implementing an input form to add a link would suffice, > where the owners could upload a screen capture (or captures). Or where > > you thinking about something more? > > bobb > > > Steve Lime wrote: > >> Hi folks: I've been wondering if we shouldn't start up a new type of >> gallery, specifically an image gallery. The app gallery is great but >> > it > >> doesn't show off in a quick fashion the maps that can be created >> > with > >> MapServer and these various applications. One has to dig around >> and even then it might be hard to stumble on the best output a site >> > has > >> to output. In truth, the site owners have that knowledge. >> >> So, I'd like to propose the creation of a map gallery. Thoughts? >> >> Steve >> >> >> > > From ollerery at ENGR.ORST.EDU Fri Aug 4 14:49:41 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 4 Aug 2006 14:49:41 -0700 Subject: Tomcat help In-Reply-To: <44D38FD8.4030405@globexplorer.com> Message-ID: Jean-Henry Berevoescu wrote: > Making sure libmapscript.so is in the path is good but not enough. > All the libraries it depends on (depending on what set of dependencies > you configured for before you compiled MapServer - stuff flike GD, > GDAL, PROJ.4, PostgreSQL/PostGIS support, cURL etc) should > be accessible too. In the cases you present here the only dir you have > pointed to is your common lib of Tomcat's tree. > > Jean > I do not think that is the case because i can compile from the command line just fine using: javac -classpath ./mapscript.jar:/etc/tomcat5/common/lib/servlet-api.jar MapServerTest.java it is just Tomcat cannot seem to find mapscript.jar for some reason. i have the the permissions to 755 and i have the file located in: /etc/java/j2sdk1.4.2_12/jre/lib/ext/mapscript.jar /etc/java/j2sdk1.4.2_12/lib/mapscript.jar /etc/tomcat5/bin/mapscript.jar /etc/tomcat5/common/lib/mapscript.jar /etc/tomcat5/shared/lib/mapscript.jar /etc/tomcat5/shared/mapscript/mapscript.jar /etc/tomcat5/webapps/my_test/WEB-INF/classes/mapscript.jar /etc/tomcat5/webapps/my_test/WEB-INF/lib/mapscript.jar /etc/tomcat5/webapps/my_test/WEB-INF/src/mapscript.jar /usr/java/j2sdk1.4.2_12/lib/mapscript.jar /usr/local/mapserver/htdocs/testJavaApp/build/WEB-INF/lib/mapscript.jar > > Ryan Ollerenshaw wrote: > >> Umberto Nicoletti wrote: >> >>> There are a few docs scattered around that explain how to deal with >>> this issue: >>> >>> http://www.unicolet.org/mapserver/tomcat.html >>> http://mapserver.gis.umn.edu/docs/howto/javamapscript >>> http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 >>> >>> HTH, >>> >>> Umberto >>> >>> >> Still no luck, and i have tried everything: >> >> I copied libmapscript.so to /usr/local/lib and set //etc/ld.so.conf/ >> // >> added >> export LD_LIBRARY_PATH=/etc/tomcat5/common/lib >> and >> export CLASSPATH=$CLASSPATH:/etc/tomcat/common/lib/mapscript.jar >> and >> JAVA_OPTS=" -Djava.library.path=/etc/tomcat5/common/lib/ " >> to catalina.sh >> >> Nothing seems to be working, when i print out my classpath through >> code using: >> Get the System Classloader >> ClassLoader sysClassLoader = ClassLoader.getSystemClassLoader(); >> //Get the URLs >> URL[] urls = ((URLClassLoader)sysClassLoader).getURLs(); >> for(int i=0; i< urls.length; i++) >> { >> out.println(urls[i].getFile()); >> out.println("
"); >> } >> >> I get: >> >> /usr/java/j2sdk1.4.2_12/lib/tools.jar >> /etc/tomcat5/bin/dist/commons-daemon.jar >> /etc/tomcat5/bin/bootstrap.jar >> >> why isnt mapserver.jar showing up? >> >> I am using the eclipse w/ the tomcat plug >> >>> On 8/4/06, Ryan Ollerenshaw wrote: >>> >>>> I am able to compile a java mapscript file from the command line using: >>>> >>>> javac -classpath ./mapscript.jar MapServerTest.java >>>> >>>> But when i try to turn my code into a servelt and run it over Tomcat i >>>> keep getting: >>>> >>>> java.lang.UnsatisfiedLinkError: no mapscript in java.library.path >>>> >>>> I have tried adding: >>>> export CLASSPATH=./mapscript.jar >>>> to my ./startup.sh file but that does not seem to help. Am i missing a >>>> setting somewhere, why cant Tomcat find the .jar file? I have it in >>>> the >>>> same directory as my .java file and also in /common/lib and /shared/lib >>>> >>>> Thank you for any help that you can provide >>>> >>>> >> !DSPAM:44d38e02240001453737823! >> >> >> > > > From bjh at GLOBEXPLORER.COM Fri Aug 4 16:05:48 2006 From: bjh at GLOBEXPLORER.COM (Jean-Henry Berevoescu) Date: Fri, 4 Aug 2006 16:05:48 -0700 Subject: Tomcat help In-Reply-To: <44D3C0F5.6000200@engr.orst.edu> Message-ID: But your error is not related at all to the fact that the JAR file or classes archived in it is/are not found. The error is not ClassNotFound, but UnsatisfiedLinkError and that's pointing to the fact that one or more the native libraries and/or functions exported by them are not found (the same error you can get if you use an old library with a call that is not implemented by it - but we digress already). The fact that you set: export LD_LIBRARY_PATH=/etc/tomcat5/common/lib and not at least export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/etc/tomcat5/common/lib means that you actually expect to have all the necessary libraries in that directory - which is not normally the case for a UNIX platform. Moreover, as I said, newer approach that considers platform independence specifically asks for <-Djava.library.path=...> to be set - and it acts, in principle as LD_LIBRARY_PATH does on UNIX platforms - and that, in turn, means that you need all the native libraries to have their paths in that property, not only one of them. An in a normal case, one would have, say, GDAL in one place, GD probably in another and so on... It's a bit extreme, I agree, since the usual scenario is that you will have to add a few dirs to the search path: /usr/lib, usr/local/lib, some platforms have /opt/lib, others also /usr/shared/lib and/or /usr/local/shared/lib and so on. You will have to check all the dependencies, where they are located and add the corresponding directories in the search path. Jean Ryan Ollerenshaw wrote: > Jean-Henry Berevoescu wrote: >> Making sure libmapscript.so is in the path is good but not enough. >> All the libraries it depends on (depending on what set of dependencies >> you configured for before you compiled MapServer - stuff flike GD, >> GDAL, PROJ.4, PostgreSQL/PostGIS support, cURL etc) should >> be accessible too. In the cases you present here the only dir you have >> pointed to is your common lib of Tomcat's tree. >> >> Jean >> > I do not think that is the case because i can compile from the command > line just fine using: > > javac -classpath > ./mapscript.jar:/etc/tomcat5/common/lib/servlet-api.jar > MapServerTest.java > > it is just Tomcat cannot seem to find mapscript.jar for some reason. > i have the the permissions to 755 and i have the file located in: > > /etc/java/j2sdk1.4.2_12/jre/lib/ext/mapscript.jar > /etc/java/j2sdk1.4.2_12/lib/mapscript.jar > /etc/tomcat5/bin/mapscript.jar > /etc/tomcat5/common/lib/mapscript.jar > /etc/tomcat5/shared/lib/mapscript.jar > /etc/tomcat5/shared/mapscript/mapscript.jar > /etc/tomcat5/webapps/my_test/WEB-INF/classes/mapscript.jar > /etc/tomcat5/webapps/my_test/WEB-INF/lib/mapscript.jar > /etc/tomcat5/webapps/my_test/WEB-INF/src/mapscript.jar > /usr/java/j2sdk1.4.2_12/lib/mapscript.jar > /usr/local/mapserver/htdocs/testJavaApp/build/WEB-INF/lib/mapscript.jar > > >> >> Ryan Ollerenshaw wrote: >> >>> Umberto Nicoletti wrote: >>> >>>> There are a few docs scattered around that explain how to deal with >>>> this issue: >>>> >>>> http://www.unicolet.org/mapserver/tomcat.html >>>> http://mapserver.gis.umn.edu/docs/howto/javamapscript >>>> http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55 >>>> >>>> HTH, >>>> >>>> Umberto >>>> >>>> >>> Still no luck, and i have tried everything: >>> >>> I copied libmapscript.so to /usr/local/lib and set //etc/ld.so.conf/ >>> // >>> added >>> export LD_LIBRARY_PATH=/etc/tomcat5/common/lib >>> and >>> export CLASSPATH=$CLASSPATH:/etc/tomcat/common/lib/mapscript.jar >>> and >>> JAVA_OPTS=" -Djava.library.path=/etc/tomcat5/common/lib/ " >>> to catalina.sh >>> >>> Nothing seems to be working, when i print out my classpath through >>> code using: >>> Get the System Classloader >>> ClassLoader sysClassLoader = ClassLoader.getSystemClassLoader(); >>> //Get the URLs >>> URL[] urls = ((URLClassLoader)sysClassLoader).getURLs(); >>> for(int i=0; i< urls.length; i++) >>> { >>> out.println(urls[i].getFile()); >>> out.println("
"); >>> } >>> >>> I get: >>> >>> /usr/java/j2sdk1.4.2_12/lib/tools.jar >>> /etc/tomcat5/bin/dist/commons-daemon.jar >>> /etc/tomcat5/bin/bootstrap.jar >>> >>> why isnt mapserver.jar showing up? >>> >>> I am using the eclipse w/ the tomcat plug >>> >>>> On 8/4/06, Ryan Ollerenshaw wrote: >>>> >>>>> I am able to compile a java mapscript file from the command line >>>>> using: >>>>> >>>>> javac -classpath ./mapscript.jar MapServerTest.java >>>>> >>>>> But when i try to turn my code into a servelt and run it over >>>>> Tomcat i >>>>> keep getting: >>>>> >>>>> java.lang.UnsatisfiedLinkError: no mapscript in java.library.path >>>>> >>>>> I have tried adding: >>>>> export CLASSPATH=./mapscript.jar >>>>> to my ./startup.sh file but that does not seem to help. Am i >>>>> missing a >>>>> setting somewhere, why cant Tomcat find the .jar file? I have it in >>>>> the >>>>> same directory as my .java file and also in /common/lib and >>>>> /shared/lib >>>>> >>>>> Thank you for any help that you can provide >>>>> >>>>> >>> >>> >>> >>> >> >> >> > > > !DSPAM:44d3d015289671800216252! > -- Please avoid sending me Word, Excel or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html From bjh at GLOBEXPLORER.COM Fri Aug 4 16:17:57 2006 From: bjh at GLOBEXPLORER.COM (Jean-Henry Berevoescu) Date: Fri, 4 Aug 2006 16:17:57 -0700 Subject: Java MapScript UnsatisfiedLinkError In-Reply-To: <44D3B4F2.7010306@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > Using this bit of code my java servelt reports that the mapscript has > loaded. > static { > try { > //System.loadLibrary("mapscript"); //load native library > > System.load("/etc/tomcat5/webapps/my_test/WEB-INF/src/libmapscript.so"); > //load native library > System.out.println(" * mapscript native library loaded *"); > } catch (Exception e) { > System.err.println(" * error loading native library *"); > System.err.println("Error is: " + e); > e.printStackTrace(); > } > } > > although i am still getting a > UnsatisfiedLinkError: no mapscript in java.library.path when i > reference any of the mapscript functions for example: > > mapObj map = new mapObj("/var/www/html/mapserver/htdocs/display.map"); > > Any ideas why this is? > This shows that: your library was found, ideed, since you had the directory containing it in the lib search path. Loading the library still does not call functions. You get the error when you call something that, in turn will use anoter native call from a native library that is not in your lib search path. Look at my previous answer - it has the details in it. Jean -- Please avoid sending me Word, Excel or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html From umberto.nicoletti at GMAIL.COM Sat Aug 5 02:19:58 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sat, 5 Aug 2006 11:19:58 +0200 Subject: Java MapScript UnsatisfiedLinkError In-Reply-To: <44D3B4F2.7010306@engr.orst.edu> Message-ID: Ryan, let's follow this checklist: 1) install a fresh tomcat on a fresh system: fresh means new system, not the current cleaned up one. In this casesit is always recommended to start over 2) compile mapserver and java mapscript: post the configure command and its output 3) copy mapscript.jar in common/lib 4) set LD_LIBRARY_PATH to the dir where libmapscript.so is placed 5) run 'ldd -r /path/to/libmapscript.so' and post its output here 6) start tomcat with TOMCAT_HOME/bin/startup.sh 7) run your application If you still have exceptions post the catalina.out log here with the full stack trace of the exception. Needless to say the clearer and detailed your error report is the faster we'll be able to help you fix it. Umberto On 8/4/06, Ryan Ollerenshaw wrote: > Using this bit of code my java servelt reports that the mapscript has > loaded. > > static { > try { > //System.loadLibrary("mapscript"); //load native library > > System.load("/etc/tomcat5/webapps/my_test/WEB-INF/src/libmapscript.so"); > //load native library > System.out.println(" * mapscript native library loaded *"); > } catch (Exception e) { > System.err.println(" * error loading native library *"); > System.err.println("Error is: " + e); > e.printStackTrace(); > } > } > > although i am still getting a > UnsatisfiedLinkError: no mapscript in java.library.path when i reference > any of the mapscript functions for example: > > mapObj map = new mapObj("/var/www/html/mapserver/htdocs/display.map"); > > > Any ideas why this is? > From umberto.nicoletti at GMAIL.COM Sat Aug 5 02:23:45 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sat, 5 Aug 2006 11:23:45 +0200 Subject: Website thought, an map gallery? In-Reply-To: <44D37D1B0200008F00000918@co5.dnr.state.mn.us> Message-ID: Why not small flash movies showing user interaction with the map application, in the case the map app is behind a firewall in the intranet? Umberto On 8/5/06, Steve Lime wrote: > I wasn't thinking application screen captures as much as purely maps. > Application captures belong over > in the app gallery. > > Steve > > >>> Bob Basques 8/4/2006 1:36:34 PM >>> > Steve, > > Great idea. > > I think just implementing an input form to add a link would suffice, > where the owners could upload a screen capture (or captures). Or where > > you thinking about something more? > > bobb > > > Steve Lime wrote: > > Hi folks: I've been wondering if we shouldn't start up a new type of > > gallery, specifically an image gallery. The app gallery is great but > it > > doesn't show off in a quick fashion the maps that can be created > with > > MapServer and these various applications. One has to dig around > > and even then it might be hard to stumble on the best output a site > has > > to output. In truth, the site owners have that knowledge. > > > > So, I'd like to propose the creation of a map gallery. Thoughts? > > > > Steve > > > > > From arndw at WTAL.DE Sat Aug 5 12:18:38 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Sat, 5 Aug 2006 21:18:38 +0200 Subject: WG: Re: [UMN_MAPSERVER-USERS] Website thought, an map gallery? Message-ID: -----Urspr?ngliche Nachricht----- Von: Arnd Wippermann [mailto:arnd.wippermann at web.de] Gesendet: Samstag, 5. August 2006 21:01 An: 'MAPSERVER-USERS at LISTS.UMN.EDU' Betreff: Re: [UMN_MAPSERVER-USERS] Website thought, an map gallery? Hello, I would think, that it is a good idea. I have looked for myself and build a little application with the extraordinary OpenLayers API. Something like this, the mapserver user could declare the map and via the selectbox one could choose the map he wants have a look at. Perhaps the mapserver application developers are not so keen to see their maps other than in their application. So I will delete the link in a couple of days. Have a look: http://gis.ibbeck.de/pinguinale/mapserver.html Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ From simon at SIBERN.COM.AU Sat Aug 5 23:41:27 2006 From: simon at SIBERN.COM.AU (Simon Haddon) Date: Sun, 6 Aug 2006 16:41:27 +1000 Subject: Website thought, an map gallery? In-Reply-To: <44D3428B0200008F000008DA@co5.dnr.state.mn.us> Message-ID: Hi Steve, Sounds like a great idea. The images would have to be stored on the mapserver website as, probably in most cases, there are no direct links to any of the images on the remote site nor can they be linked to due to sessions, etc. The images would probably need some description or interpretive text along with them plus a link to the site that created them as an option Cheers, Simon Steve Lime wrote: > Hi folks: I've been wondering if we shouldn't start up a new type of > gallery, specifically an image gallery. The app gallery is great but it > doesn't show off in a quick fashion the maps that can be created with > MapServer and these various applications. One has to dig around > and even then it might be hard to stumble on the best output a site has > to output. In truth, the site owners have that knowledge. > > So, I'd like to propose the creation of a map gallery. Thoughts? > > Steve > From dananrg at YAHOO.COM Sun Aug 6 15:36:57 2006 From: dananrg at YAHOO.COM (dnrg) Date: Sun, 6 Aug 2006 15:36:57 -0700 Subject: Open Source GIS Gathering in San Diego (OSG-SD) - Tuesday night 6:30pm to 10pm @ SDSU Message-ID: No presenters have thus far stepped forward. At the very least, it would be great for someone to give a general overview of FOSS GIS clients, spatial databases, and map servers. So far, there are 30 people on the mailing list. Please spread the word - particularly if you know of anyone willing and able to give a survey / overview presentation, or a presentation on PostGIS/MapServer. Thanks very much. Dana Open Source GIS San Diego Gathering (OSG-SD) - Tuesday, August 8th, 6:30pm You are cordially invited to an Open Source GIS gathering in San Diego. WHEN: Tuesday, August 8th 2006, 6:30pm to 9:00pm WHERE: Visualization Lab, San Diego State University ( http://citi.sdsu.edu/ ) WHY: To introduce geospatial professionals to free open source complements to commercial GIS software ADMISSION: Free. However, space in the lab is limited. Please contact Dana Nibby to be added to our mailing list: danaspatial at yahoo.com FOOD: Free pizza and soda will be provided. DIRECTIONS: Driving - http://citi.sdsu.edu/directions Directions via public transportation will be sent to everyone on the mailing list PROPOSED EVENTS: As of Sat, August 6th at 3:00pm no presenters have stepped forward. * 6:30pm to 6:59pm - Doors open. Socializing * 7:00pm to 7:14pm - Welcome / Introduction * 7:15pm to 7:44pm - Presentation 1 (need presenter - preferred topic: Introduction to Open Source GIS Software) Please contact Dana Nibby if you are interested in presenting: danaspatial at yahoo.com * 7:45pm to 8:14pm - Presentation 2 (need presenter - preferred topic: MapServer + PostGIS) Please contact Dana Nibby if you are interested in presenting: danaspatial at yahoo.com * 8:15pm to 8:45pm - Open discussion on planning a larger event for 2007 * 9:00pm to 10:00pm - Social at a pub? For more information, please check the following web site in the days leading up to the event: http://NCSDUG.ORG Thanks very much and hope to see you there. Please RSVP if you wish to attend, or can assist: danaspatial at yahoo.com Please forward this notice on and help get the word out. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dananrg at YAHOO.COM Sun Aug 6 15:41:15 2006 From: dananrg at YAHOO.COM (dnrg) Date: Sun, 6 Aug 2006 15:41:15 -0700 Subject: Open Source GIS Gathering in San Diego Tuesday night 6:30pm to 10pm @ SDSU Message-ID: No presenters have thus far stepped forward. At the very least, it would be great for someone to give a general overview of FOSS GIS clients, spatial databases, and map servers. So far, there are 30 people on the mailing list. Please spread the word - particularly if you know of anyone willing and able to give a survey / overview presentation, or a presentation on PostGIS/MapServer. Thanks very much. Dana Open Source GIS San Diego Gathering (OSG-SD) - Tuesday, August 8th, 6:30pm You are invited to an Open Source GIS gathering in San Diego. Date/Time: Tuesday, August 8th 2006, 6:30pm to 9:00pm Location: Visualization Lab, San Diego State University ( http://citi.sdsu.edu/ ) Purpose: To introduce geospatial professionals to free open source complements to commercial GIS software Admission: Free. However, space in the lab is limited. Please contact Dana Nibby to be added to our mailing list: danaspatial at yahoo.com FOOD: Free pizza and soda will be provided. Driving directions - http://citi.sdsu.edu/directions Directions via public transportation will be sent to everyone on the mailing list As of Sat, August 6th at 3:00pm no presenters have stepped forward. Sample agenda (subjec to change) * 6:30pm to 6:59pm - Doors open. Socializing * 7:00pm to 7:14pm - Welcome / Introduction * 7:15pm to 7:44pm - Presentation 1 (need presenter - preferred topic: Introduction to Open Source GIS Software) Please contact Dana Nibby if you are interested in presenting: danaspatial at yahoo.com * 7:45pm to 8:14pm - Presentation 2 (need presenter - preferred topic: MapServer + PostGIS) Please contact Dana Nibby if you are interested in presenting: danaspatial at yahoo.com * 8:15pm to 8:45pm - Open discussion on planning a larger event for 2007 * 9:00pm to 10:00pm - Social at a pub? For more information, please check the following web site in the days leading up to the event: http://NCSDUG.ORG Please email danaspatial at yahoo.com if you'd like to attend or be a presenter. Thanks very much. Please help get the word out by posting this announcement far and wide. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From siukola.antti at GMAIL.COM Mon Aug 7 01:26:26 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 7 Aug 2006 11:26:26 +0300 Subject: Mapserver returns blank pages In-Reply-To: <75b4b93e0607200051p588afc8fw164f8ce938a380c6@mail.gmail.com> Message-ID: Hi! Problem seems to be solved after abandoning anti-aliasing and configuring mapserver with threads. Cheers! On 7/20/06, Umberto Nicoletti wrote: > I presume you are running php as shared module, right? > > If so recompile with this configure flag: --with-threads and then make > sure you read the thread safety FAQ: > http://mapserver.gis.umn.edu/docs/faq/thread_safety > > If you plan to use unsafe components (like cartoline symbols) switch > php to cgi mode (and then you can avoid using the --with-threads > option). > > HTH, > Umberto > > > > On 7/20/06, antti siukola wrote: > > Hello! > > > > Production: > > Redhat AS4 Upd 3 > > Mysql 5.0.21 > > Apache 2.2.2 with mod_php > > Mapserver 4.8.3 > > PHP 5.14 > > Gdal 1.3.2 > > > > Development: > > Ubuntu breezy > > MySQL 5.0.18 > > Apache 2.0.55 with mod_php > > MapServer 4.8.4 > > PHP PHP 5.0.5-2ubuntu1.2 > > Gdal 1.3.2 > > > > MapServer configure: > > --with-ogr --with-gdal --with-tiff --with-gd --with-jpeg > > --with-php=/usr/include/php5/ --with-odbc --with-httpd --with-proj > > > > It doesn't matter which on of the servers it is the problems are the same. > > > > And here is a sample of one of the map files: > > > > MAP > > NAME "name" > > FONTSET fontset.txt > > STATUS ON > > EXTENT 34083.890 75139.631 40587.098 79917.784 > > SIZE 500 367 > > SYMBOLSET ../etc/symbols.sym > > UNITS METERS > > IMAGECOLOR 240 240 240 > > WEB > > LOG "/mapserver.log" > > IMAGEPATH "/tmp/ms_tmp/" > > IMAGEURL "/ms_tmp/" > > MINSCALE 3000 > > MAXSCALE 50000 > > END # WEB ends > > > > IMAGETYPE JPEG > > > > OUTPUTFORMAT > > NAME png > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE PC256 > > EXTENSION "png" > > END > > OUTPUTFORMAT > > NAME png24 > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE RGBA > > EXTENSION "png" > > END > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > FORMATOPTION "QUALITY=87" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGB > > EXTENSION "jpg" > > END > > OUTPUTFORMAT > > NAME GTiff > > DRIVER "GDAL/GTiff" > > MIMETYPE "image/tiff" > > IMAGEMODE RGB > > EXTENSION "tif" > > END > > > > # > > # Start of legend > > # > > LEGEND > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > STATUS ON > > END > > > > # > > # Start of scalebar > > # > > SCALEBAR > > IMAGECOLOR 255 255 255 > > LABEL > > COLOR 0 0 0 > > SIZE SMALL > > END > > SIZE 300 5 > > COLOR 19 100 133 > > BACKGROUNDCOLOR 71 153 71 > > UNITS meters > > INTERVALS 5 > > STATUS ON > > END > > > > QUERYMAP > > STYLE HILITE > > COLOR 255 240 0 > > END > > > > > > > > LAYER > > NAME "name" > > DATA "data/raster/image.tif" > > TYPE RASTER > > STATUS OFF > > END #LAYER > > > > > > LAYER > > NAME name > > TYPE POLYGON > > DATA /url/to/shp/shp > > STATUS OFF > > CLASS > > NAME "name" > > COLOR 255 255 255 > > END > > END # Layer shapefile ends > > > > > > LAYER > > NAME name > > TYPE POLYGON > > STATUS OFF > > CONNECTIONTYPE OGR > > CONNECTION "/url/to/tab.TAB" > > LABELITEM "name" > > # STYLEITEM "AUTO" > > CLASS > > NAME "name" > > COLOR 216 176 255 > > LABEL > > TYPE TRUETYPE > > ANTIALIAS TRUE > > FONT FreeSans > > COLOR 0 0 0 > > OUTLINECOLOR 220 220 220 > > SIZE 8 > > OFFSET 0 2 > > buffer 2 > > END #label > > END > > END # Layer ends > > > > LAYER > > NAME name > > TYPE LINE > > STATUS OFF > > CONNECTIONTYPE OGR > > CONNECTION "/url/to/tab.TAB" > > LABELITEM "text" > > CLASS > > NAME "name" > > LABEL > > TYPE TRUETYPE > > ANTIALIAS TRUE > > FONT FreeSans > > COLOR 255 255 255 > > OUTLINECOLOR 0 0 0 > > SIZE 10 > > ANGLE AUTO > > POSITION UC > > OFFSET 0 2 > > buffer 2 > > END #label > > END #class > > END # Layer test ends > > > > > > LAYER > > NAME name > > TYPE LINE > > STATUS OFF > > CONNECTIONTYPE OGR > > CONNECTION "/url/to/tab.TAB" > > STYLEITEM "AUTO" > > CLASS > > NAME "name" > > END > > END # Layer ends > > > > > > END # MAP ends > > > > Cheers! > > > > On 7/20/06, Umberto Nicoletti wrote: > > > Antti, > > > please tell us more: > > > > > > - version of mapserver > > > - how you built it (yourself or picked one from where) > > > - if you built it yourself the configure flags you used > > > - are you using php as a shared module or as a cgi? > > > - version of apache, php and linux (uname -a) > > > > > > Can you post the map file to the list? > > > > > > Regards, > > > Umberto > > > > > > On 6/13/06, antti siukola wrote: > > > > Hi! > > > > > > > > Every time MapServer returns a blank page I find "[notice] child pid > > > > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any > > > > thoughts? Blank pages are returned randomly. > > > > > > > > AnttiS > > > > > > > > > > From siukola.antti at GMAIL.COM Mon Aug 7 02:53:56 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 7 Aug 2006 12:53:56 +0300 Subject: Loading ECW data Message-ID: Hi! I'm using raster image in ecw format and when loading it from mapserver I get this error: Warning: [MapServer Error]: drawEPP(): file.ecw is not an EPPL file. After surfing around I found that in some point mapserver gave this error when ever it was unable to load an image but can't tell if it's a problem anymore. I've used two tricks to load it: as a plain ecw and with a tab-file My map-file looks like this: with tab: LAYER NAME "name" TYPE RASTER STATUS ON CONNECTIONTYPE OGR CONNECTION "file.TAB" STYLEITEM "AUTO" CLASS NAME "name" END END and as plain ecw: LAYER NAME "name" TYPE RASTER STATUS ON DATA "file.ecw" CLASS NAME "name" END END the tab layer doesn't return anything but a blank image and with the ecw I get that eppl error. Cheers! Antti S From zhonghaiw at GMAIL.COM Mon Aug 7 03:12:40 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 7 Aug 2006 12:12:40 +0200 Subject: Multiple user problem -- C# MapScript Web Application Message-ID: Hi All, I've developed a windows application with the C# MapScript, and this application works well with all the common mapping functions. I am very happy with the performance of MapServer. So I am now trying to migrate the windows application to a web application, here I have some doubts with the migration: 1. for the windows application I use a singelton class to return the mapobj for all the mapping API -- I've programmed a mapping class for mapping functionalities, and this works well to store all the changes of a mapobj during the mapping process. But if I migrate the mapping class to web application, this singelton class should not be used, since there may be hundred users, who are accessing MapServer at the same time. I am just wondering how to solve this problem in MapServer? In MapXtreme, this problem is solved with the use of MapXBroker, which is a shared pool of MapX objects, does MapServer has any similar component? 2. Thread-Safety, I know this is not a new question, but it's important. In the .NET application, how to solve this problem? use thread lock? (I am programming with VB.NET) thanks for any information about this topic. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuarteve at LPARCHAEOLOGY.COM Mon Aug 7 05:46:59 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Mon, 7 Aug 2006 13:46:59 +0100 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: Hi there, I am not sure that I understand the FAQ completely (http://mapserver.gis.umn.edu/docs/faq/thread_safety). I am still getting seemingly random blank pages - even after recompiling --with-threads. There doesn't seem to be much of a pattern with it as sometimes after 5 or 6 reloads the page will load absolutely fine. I guess it may be to do with threads, and indeed it says in the FAQ that OGR layers are unsafe. "Programmers must either avoid using the unsafe components of MapServer or carefully place locks around them." How do I 'carefully place locks around them'? Or should I just avoid using OGR layers completely? If this is indeed my problem! Thanks in advance Stuart antti siukola wrote: > Hi! > > Problem seems to be solved after abandoning anti-aliasing and > configuring mapserver with threads. > > Cheers! > > On 7/20/06, Umberto Nicoletti wrote: >> I presume you are running php as shared module, right? >> >> If so recompile with this configure flag: --with-threads and then make >> sure you read the thread safety FAQ: >> http://mapserver.gis.umn.edu/docs/faq/thread_safety >> >> If you plan to use unsafe components (like cartoline symbols) switch >> php to cgi mode (and then you can avoid using the --with-threads >> option). >> >> HTH, >> Umberto >> >> >> >> On 7/20/06, antti siukola wrote: >> > Hello! >> > >> > Production: >> > Redhat AS4 Upd 3 >> > Mysql 5.0.21 >> > Apache 2.2.2 with mod_php >> > Mapserver 4.8.3 >> > PHP 5.14 >> > Gdal 1.3.2 >> > >> > Development: >> > Ubuntu breezy >> > MySQL 5.0.18 >> > Apache 2.0.55 with mod_php >> > MapServer 4.8.4 >> > PHP PHP 5.0.5-2ubuntu1.2 >> > Gdal 1.3.2 >> > >> > MapServer configure: >> > --with-ogr --with-gdal --with-tiff --with-gd --with-jpeg >> > --with-php=/usr/include/php5/ --with-odbc --with-httpd --with-proj >> > >> > It doesn't matter which on of the servers it is the problems are >> the same. >> > >> > And here is a sample of one of the map files: >> > >> > MAP >> > NAME "name" >> > FONTSET fontset.txt >> > STATUS ON >> > EXTENT 34083.890 75139.631 40587.098 79917.784 >> > SIZE 500 367 >> > SYMBOLSET ../etc/symbols.sym >> > UNITS METERS >> > IMAGECOLOR 240 240 240 >> > WEB >> > LOG "/mapserver.log" >> > IMAGEPATH "/tmp/ms_tmp/" >> > IMAGEURL "/ms_tmp/" >> > MINSCALE 3000 >> > MAXSCALE 50000 >> > END # WEB ends >> > >> > IMAGETYPE JPEG >> > >> > OUTPUTFORMAT >> > NAME png >> > DRIVER "GD/PNG" >> > MIMETYPE "image/png" >> > IMAGEMODE PC256 >> > EXTENSION "png" >> > END >> > OUTPUTFORMAT >> > NAME png24 >> > DRIVER "GD/PNG" >> > MIMETYPE "image/png" >> > IMAGEMODE RGBA >> > EXTENSION "png" >> > END >> > OUTPUTFORMAT >> > NAME jpeg >> > DRIVER "GD/JPEG" >> > FORMATOPTION "QUALITY=87" >> > MIMETYPE "image/jpeg" >> > IMAGEMODE RGB >> > EXTENSION "jpg" >> > END >> > OUTPUTFORMAT >> > NAME GTiff >> > DRIVER "GDAL/GTiff" >> > MIMETYPE "image/tiff" >> > IMAGEMODE RGB >> > EXTENSION "tif" >> > END >> > >> > # >> > # Start of legend >> > # >> > LEGEND >> > KEYSIZE 18 12 >> > LABEL >> > TYPE BITMAP >> > SIZE MEDIUM >> > COLOR 0 0 89 >> > END >> > STATUS ON >> > END >> > >> > # >> > # Start of scalebar >> > # >> > SCALEBAR >> > IMAGECOLOR 255 255 255 >> > LABEL >> > COLOR 0 0 0 >> > SIZE SMALL >> > END >> > SIZE 300 5 >> > COLOR 19 100 133 >> > BACKGROUNDCOLOR 71 153 71 >> > UNITS meters >> > INTERVALS 5 >> > STATUS ON >> > END >> > >> > QUERYMAP >> > STYLE HILITE >> > COLOR 255 240 0 >> > END >> > >> > >> > >> > LAYER >> > NAME "name" >> > DATA "data/raster/image.tif" >> > TYPE RASTER >> > STATUS OFF >> > END #LAYER >> > >> > >> > LAYER >> > NAME name >> > TYPE POLYGON >> > DATA /url/to/shp/shp >> > STATUS OFF >> > CLASS >> > NAME "name" >> > COLOR 255 255 255 >> > END >> > END # Layer shapefile ends >> > >> > >> > LAYER >> > NAME name >> > TYPE POLYGON >> > STATUS OFF >> > CONNECTIONTYPE OGR >> > CONNECTION "/url/to/tab.TAB" >> > LABELITEM "name" >> > # STYLEITEM "AUTO" >> > CLASS >> > NAME "name" >> > COLOR 216 176 255 >> > LABEL >> > TYPE TRUETYPE >> > ANTIALIAS TRUE >> > FONT FreeSans >> > COLOR 0 0 0 >> > OUTLINECOLOR 220 220 220 >> > SIZE 8 >> > OFFSET 0 2 >> > buffer 2 >> > END #label >> > END >> > END # Layer ends >> > >> > LAYER >> > NAME name >> > TYPE LINE >> > STATUS OFF >> > CONNECTIONTYPE OGR >> > CONNECTION "/url/to/tab.TAB" >> > LABELITEM "text" >> > CLASS >> > NAME "name" >> > LABEL >> > TYPE TRUETYPE >> > ANTIALIAS TRUE >> > FONT FreeSans >> > COLOR 255 255 255 >> > OUTLINECOLOR 0 0 0 >> > SIZE 10 >> > ANGLE AUTO >> > POSITION UC >> > OFFSET 0 2 >> > buffer 2 >> > END #label >> > END #class >> > END # Layer test ends >> > >> > >> > LAYER >> > NAME name >> > TYPE LINE >> > STATUS OFF >> > CONNECTIONTYPE OGR >> > CONNECTION "/url/to/tab.TAB" >> > STYLEITEM "AUTO" >> > CLASS >> > NAME "name" >> > END >> > END # Layer ends >> > >> > >> > END # MAP ends >> > >> > Cheers! >> > >> > On 7/20/06, Umberto Nicoletti wrote: >> > > Antti, >> > > please tell us more: >> > > >> > > - version of mapserver >> > > - how you built it (yourself or picked one from where) >> > > - if you built it yourself the configure flags you used >> > > - are you using php as a shared module or as a cgi? >> > > - version of apache, php and linux (uname -a) >> > > >> > > Can you post the map file to the list? >> > > >> > > Regards, >> > > Umberto >> > > >> > > On 6/13/06, antti siukola wrote: >> > > > Hi! >> > > > >> > > > Every time MapServer returns a blank page I find "[notice] >> child pid >> > > > xxxx exit signal Segmentation fault (11)" from apache's >> error_log. Any >> > > > thoughts? Blank pages are returned randomly. >> > > > >> > > > AnttiS >> > > > >> > > >> > >> > > > -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From dlowther at COORDINATESOLUTIONS.COM Mon Aug 7 06:02:55 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Mon, 7 Aug 2006 08:02:55 -0500 Subject: Coordinate System Transformation demo In-Reply-To: Message-ID: Richard, This is really great work. Are all of the standard (I guess I mean included with Proj4) EPSGs available at this time or does each new one have to be created? If they have to be created - is there much work involved in that? Thanks, David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Greenwood Sent: Monday, July 24, 2006 9:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Coordinate System Transformation demo I have been working on a port of the Proj.4 cs2cs program to JavaScript for use in web map clients. The source is at: http://svn.codehaus.org/mapbuilder/cscs/trunk/cscs/ and mailing list: mapbuilder-proj at lists.sourceforge.net I put a demo at: http://www2.tetonwyo.org/mapserver/tcd.html which uses Steve Lime's dBox client. The project is nowhere near finished, but I want to make people aware of it. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From siukola.antti at GMAIL.COM Mon Aug 7 06:04:56 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 7 Aug 2006 16:04:56 +0300 Subject: Mapserver returns blank pages In-Reply-To: <44D73643.5050905@lparchaeology.com> Message-ID: Hi! Are you using anti-aliasing in texts (labels etc.)? Since the GD bug (mentioned by thomas) caused a lot of blank pages for me. Antti S On 8/7/06, Stuart Eve wrote: > Hi there, > > I am not sure that I understand the FAQ completely > (http://mapserver.gis.umn.edu/docs/faq/thread_safety). I am still > getting seemingly random blank pages - even after recompiling > --with-threads. There doesn't seem to be much of a pattern with it as > sometimes after 5 or 6 reloads the page will load absolutely fine. I > guess it may be to do with threads, and indeed it says in the FAQ that > OGR layers are unsafe. > > "Programmers must either avoid using the unsafe components of MapServer > or carefully place locks around them." > > How do I 'carefully place locks around them'? Or should I just avoid > using OGR layers completely? If this is indeed my problem! > > Thanks in advance > > Stuart > > antti siukola wrote: > > Hi! > > > > Problem seems to be solved after abandoning anti-aliasing and > > configuring mapserver with threads. > > > > Cheers! > > > > On 7/20/06, Umberto Nicoletti wrote: > >> I presume you are running php as shared module, right? > >> > >> If so recompile with this configure flag: --with-threads and then make > >> sure you read the thread safety FAQ: > >> http://mapserver.gis.umn.edu/docs/faq/thread_safety > >> > >> If you plan to use unsafe components (like cartoline symbols) switch > >> php to cgi mode (and then you can avoid using the --with-threads > >> option). > >> > >> HTH, > >> Umberto > >> > >> > >> > >> On 7/20/06, antti siukola wrote: > >> > Hello! > >> > > >> > Production: > >> > Redhat AS4 Upd 3 > >> > Mysql 5.0.21 > >> > Apache 2.2.2 with mod_php > >> > Mapserver 4.8.3 > >> > PHP 5.14 > >> > Gdal 1.3.2 > >> > > >> > Development: > >> > Ubuntu breezy > >> > MySQL 5.0.18 > >> > Apache 2.0.55 with mod_php > >> > MapServer 4.8.4 > >> > PHP PHP 5.0.5-2ubuntu1.2 > >> > Gdal 1.3.2 > >> > > >> > MapServer configure: > >> > --with-ogr --with-gdal --with-tiff --with-gd --with-jpeg > >> > --with-php=/usr/include/php5/ --with-odbc --with-httpd --with-proj > >> > > >> > It doesn't matter which on of the servers it is the problems are > >> the same. > >> > > >> > And here is a sample of one of the map files: > >> > > >> > MAP > >> > NAME "name" > >> > FONTSET fontset.txt > >> > STATUS ON > >> > EXTENT 34083.890 75139.631 40587.098 79917.784 > >> > SIZE 500 367 > >> > SYMBOLSET ../etc/symbols.sym > >> > UNITS METERS > >> > IMAGECOLOR 240 240 240 > >> > WEB > >> > LOG "/mapserver.log" > >> > IMAGEPATH "/tmp/ms_tmp/" > >> > IMAGEURL "/ms_tmp/" > >> > MINSCALE 3000 > >> > MAXSCALE 50000 > >> > END # WEB ends > >> > > >> > IMAGETYPE JPEG > >> > > >> > OUTPUTFORMAT > >> > NAME png > >> > DRIVER "GD/PNG" > >> > MIMETYPE "image/png" > >> > IMAGEMODE PC256 > >> > EXTENSION "png" > >> > END > >> > OUTPUTFORMAT > >> > NAME png24 > >> > DRIVER "GD/PNG" > >> > MIMETYPE "image/png" > >> > IMAGEMODE RGBA > >> > EXTENSION "png" > >> > END > >> > OUTPUTFORMAT > >> > NAME jpeg > >> > DRIVER "GD/JPEG" > >> > FORMATOPTION "QUALITY=87" > >> > MIMETYPE "image/jpeg" > >> > IMAGEMODE RGB > >> > EXTENSION "jpg" > >> > END > >> > OUTPUTFORMAT > >> > NAME GTiff > >> > DRIVER "GDAL/GTiff" > >> > MIMETYPE "image/tiff" > >> > IMAGEMODE RGB > >> > EXTENSION "tif" > >> > END > >> > > >> > # > >> > # Start of legend > >> > # > >> > LEGEND > >> > KEYSIZE 18 12 > >> > LABEL > >> > TYPE BITMAP > >> > SIZE MEDIUM > >> > COLOR 0 0 89 > >> > END > >> > STATUS ON > >> > END > >> > > >> > # > >> > # Start of scalebar > >> > # > >> > SCALEBAR > >> > IMAGECOLOR 255 255 255 > >> > LABEL > >> > COLOR 0 0 0 > >> > SIZE SMALL > >> > END > >> > SIZE 300 5 > >> > COLOR 19 100 133 > >> > BACKGROUNDCOLOR 71 153 71 > >> > UNITS meters > >> > INTERVALS 5 > >> > STATUS ON > >> > END > >> > > >> > QUERYMAP > >> > STYLE HILITE > >> > COLOR 255 240 0 > >> > END > >> > > >> > > >> > > >> > LAYER > >> > NAME "name" > >> > DATA "data/raster/image.tif" > >> > TYPE RASTER > >> > STATUS OFF > >> > END #LAYER > >> > > >> > > >> > LAYER > >> > NAME name > >> > TYPE POLYGON > >> > DATA /url/to/shp/shp > >> > STATUS OFF > >> > CLASS > >> > NAME "name" > >> > COLOR 255 255 255 > >> > END > >> > END # Layer shapefile ends > >> > > >> > > >> > LAYER > >> > NAME name > >> > TYPE POLYGON > >> > STATUS OFF > >> > CONNECTIONTYPE OGR > >> > CONNECTION "/url/to/tab.TAB" > >> > LABELITEM "name" > >> > # STYLEITEM "AUTO" > >> > CLASS > >> > NAME "name" > >> > COLOR 216 176 255 > >> > LABEL > >> > TYPE TRUETYPE > >> > ANTIALIAS TRUE > >> > FONT FreeSans > >> > COLOR 0 0 0 > >> > OUTLINECOLOR 220 220 220 > >> > SIZE 8 > >> > OFFSET 0 2 > >> > buffer 2 > >> > END #label > >> > END > >> > END # Layer ends > >> > > >> > LAYER > >> > NAME name > >> > TYPE LINE > >> > STATUS OFF > >> > CONNECTIONTYPE OGR > >> > CONNECTION "/url/to/tab.TAB" > >> > LABELITEM "text" > >> > CLASS > >> > NAME "name" > >> > LABEL > >> > TYPE TRUETYPE > >> > ANTIALIAS TRUE > >> > FONT FreeSans > >> > COLOR 255 255 255 > >> > OUTLINECOLOR 0 0 0 > >> > SIZE 10 > >> > ANGLE AUTO > >> > POSITION UC > >> > OFFSET 0 2 > >> > buffer 2 > >> > END #label > >> > END #class > >> > END # Layer test ends > >> > > >> > > >> > LAYER > >> > NAME name > >> > TYPE LINE > >> > STATUS OFF > >> > CONNECTIONTYPE OGR > >> > CONNECTION "/url/to/tab.TAB" > >> > STYLEITEM "AUTO" > >> > CLASS > >> > NAME "name" > >> > END > >> > END # Layer ends > >> > > >> > > >> > END # MAP ends > >> > > >> > Cheers! > >> > > >> > On 7/20/06, Umberto Nicoletti wrote: > >> > > Antti, > >> > > please tell us more: > >> > > > >> > > - version of mapserver > >> > > - how you built it (yourself or picked one from where) > >> > > - if you built it yourself the configure flags you used > >> > > - are you using php as a shared module or as a cgi? > >> > > - version of apache, php and linux (uname -a) > >> > > > >> > > Can you post the map file to the list? > >> > > > >> > > Regards, > >> > > Umberto > >> > > > >> > > On 6/13/06, antti siukola wrote: > >> > > > Hi! > >> > > > > >> > > > Every time MapServer returns a blank page I find "[notice] > >> child pid > >> > > > xxxx exit signal Segmentation fault (11)" from apache's > >> error_log. Any > >> > > > thoughts? Blank pages are returned randomly. > >> > > > > >> > > > AnttiS > >> > > > > >> > > > >> > > >> > > > > > > > > > -- > Stuart Eve > L - P : Archaeology > stuarteve at lparchaeology.com > > From richard.greenwood at GMAIL.COM Mon Aug 7 06:09:54 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 7 Aug 2006 07:09:54 -0600 Subject: Coordinate System Transformation demo In-Reply-To: <003201c6ba21$cce5b0d0$640ba8c0@dld410> Message-ID: On 8/7/06, dlowther at coordinatesolutions.com wrote: > Richard, > > This is really great work. Are all of the standard (I guess I mean included > with Proj4) EPSGs available at this time or does each new one have to be > created? If they have to be created - is there much work involved in that? > > Thanks, > > David Lowther I only have a few coordinate systems converted so far. If it is a Transverse Mercator projection then is is quite easy; just pull a line from the Proj.4 EPSG file. But if it is a different type of projection then there is a little more work involved. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From siki at AGT.BME.HU Mon Aug 7 09:34:25 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 7 Aug 2006 15:34:25 -0100 Subject: Loading ECW data {Scanned} In-Reply-To: Message-ID: Hi! AFAIK Mapinfo tab bounded rasters are not supported in mapserver. Did you try gdalinfo? Bye Zoltan On Mon, 7 Aug 2006, antti siukola wrote: > Hi! > > I'm using raster image in ecw format and when loading it from > mapserver I get this error: Warning: [MapServer Error]: drawEPP(): > file.ecw is not an EPPL file. After surfing around I found that in > some point mapserver gave this error when ever it was unable to load > an image but can't tell if it's a problem anymore. > > I've used two tricks to load it: as a plain ecw and with a tab-file > My map-file looks like this: > with tab: > LAYER > NAME "name" > TYPE RASTER > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "file.TAB" > STYLEITEM "AUTO" > CLASS > NAME "name" > END > END > > and as plain ecw: > > LAYER > NAME "name" > TYPE RASTER > STATUS ON > DATA "file.ecw" > CLASS > NAME "name" > END > END > > the tab layer doesn't return anything but a blank image and with the > ecw I get that eppl error. > > Cheers! > > Antti S > From stuarteve at LPARCHAEOLOGY.COM Mon Aug 7 06:30:08 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Mon, 7 Aug 2006 14:30:08 +0100 Subject: Mapserver returns blank pages In-Reply-To: Message-ID: I have now turned off anti-aliasing and am still getting the blank pages - I guess it must be something to do with my user-defined functions - will get put my debugging hat back on! thanks for the suggestions though! Stu antti siukola wrote: > Hi! > > Are you using anti-aliasing in texts (labels etc.)? Since the GD bug > (mentioned by thomas) caused a lot of blank pages for me. > > Antti S > > On 8/7/06, Stuart Eve wrote: >> Hi there, >> >> I am not sure that I understand the FAQ completely >> (http://mapserver.gis.umn.edu/docs/faq/thread_safety). I am still >> getting seemingly random blank pages - even after recompiling >> --with-threads. There doesn't seem to be much of a pattern with it as >> sometimes after 5 or 6 reloads the page will load absolutely fine. I >> guess it may be to do with threads, and indeed it says in the FAQ that >> OGR layers are unsafe. >> >> "Programmers must either avoid using the unsafe components of MapServer >> or carefully place locks around them." >> >> How do I 'carefully place locks around them'? Or should I just avoid >> using OGR layers completely? If this is indeed my problem! >> >> Thanks in advance >> >> Stuart >> >> antti siukola wrote: >> > Hi! >> > >> > Problem seems to be solved after abandoning anti-aliasing and >> > configuring mapserver with threads. >> > >> > Cheers! >> > >> > On 7/20/06, Umberto Nicoletti wrote: >> >> I presume you are running php as shared module, right? >> >> >> >> If so recompile with this configure flag: --with-threads and then >> make >> >> sure you read the thread safety FAQ: >> >> http://mapserver.gis.umn.edu/docs/faq/thread_safety >> >> >> >> If you plan to use unsafe components (like cartoline symbols) switch >> >> php to cgi mode (and then you can avoid using the --with-threads >> >> option). >> >> >> >> HTH, >> >> Umberto >> >> >> >> >> >> >> >> On 7/20/06, antti siukola wrote: >> >> > Hello! >> >> > >> >> > Production: >> >> > Redhat AS4 Upd 3 >> >> > Mysql 5.0.21 >> >> > Apache 2.2.2 with mod_php >> >> > Mapserver 4.8.3 >> >> > PHP 5.14 >> >> > Gdal 1.3.2 >> >> > >> >> > Development: >> >> > Ubuntu breezy >> >> > MySQL 5.0.18 >> >> > Apache 2.0.55 with mod_php >> >> > MapServer 4.8.4 >> >> > PHP PHP 5.0.5-2ubuntu1.2 >> >> > Gdal 1.3.2 >> >> > >> >> > MapServer configure: >> >> > --with-ogr --with-gdal --with-tiff --with-gd --with-jpeg >> >> > --with-php=/usr/include/php5/ --with-odbc --with-httpd --with-proj >> >> > >> >> > It doesn't matter which on of the servers it is the problems are >> >> the same. >> >> > >> >> > And here is a sample of one of the map files: >> >> > >> >> > MAP >> >> > NAME "name" >> >> > FONTSET fontset.txt >> >> > STATUS ON >> >> > EXTENT 34083.890 75139.631 40587.098 79917.784 >> >> > SIZE 500 367 >> >> > SYMBOLSET ../etc/symbols.sym >> >> > UNITS METERS >> >> > IMAGECOLOR 240 240 240 >> >> > WEB >> >> > LOG "/mapserver.log" >> >> > IMAGEPATH "/tmp/ms_tmp/" >> >> > IMAGEURL "/ms_tmp/" >> >> > MINSCALE 3000 >> >> > MAXSCALE 50000 >> >> > END # WEB ends >> >> > >> >> > IMAGETYPE JPEG >> >> > >> >> > OUTPUTFORMAT >> >> > NAME png >> >> > DRIVER "GD/PNG" >> >> > MIMETYPE "image/png" >> >> > IMAGEMODE PC256 >> >> > EXTENSION "png" >> >> > END >> >> > OUTPUTFORMAT >> >> > NAME png24 >> >> > DRIVER "GD/PNG" >> >> > MIMETYPE "image/png" >> >> > IMAGEMODE RGBA >> >> > EXTENSION "png" >> >> > END >> >> > OUTPUTFORMAT >> >> > NAME jpeg >> >> > DRIVER "GD/JPEG" >> >> > FORMATOPTION "QUALITY=87" >> >> > MIMETYPE "image/jpeg" >> >> > IMAGEMODE RGB >> >> > EXTENSION "jpg" >> >> > END >> >> > OUTPUTFORMAT >> >> > NAME GTiff >> >> > DRIVER "GDAL/GTiff" >> >> > MIMETYPE "image/tiff" >> >> > IMAGEMODE RGB >> >> > EXTENSION "tif" >> >> > END >> >> > >> >> > # >> >> > # Start of legend >> >> > # >> >> > LEGEND >> >> > KEYSIZE 18 12 >> >> > LABEL >> >> > TYPE BITMAP >> >> > SIZE MEDIUM >> >> > COLOR 0 0 89 >> >> > END >> >> > STATUS ON >> >> > END >> >> > >> >> > # >> >> > # Start of scalebar >> >> > # >> >> > SCALEBAR >> >> > IMAGECOLOR 255 255 255 >> >> > LABEL >> >> > COLOR 0 0 0 >> >> > SIZE SMALL >> >> > END >> >> > SIZE 300 5 >> >> > COLOR 19 100 133 >> >> > BACKGROUNDCOLOR 71 153 71 >> >> > UNITS meters >> >> > INTERVALS 5 >> >> > STATUS ON >> >> > END >> >> > >> >> > QUERYMAP >> >> > STYLE HILITE >> >> > COLOR 255 240 0 >> >> > END >> >> > >> >> > >> >> > >> >> > LAYER >> >> > NAME "name" >> >> > DATA "data/raster/image.tif" >> >> > TYPE RASTER >> >> > STATUS OFF >> >> > END #LAYER >> >> > >> >> > >> >> > LAYER >> >> > NAME name >> >> > TYPE POLYGON >> >> > DATA /url/to/shp/shp >> >> > STATUS OFF >> >> > CLASS >> >> > NAME "name" >> >> > COLOR 255 255 255 >> >> > END >> >> > END # Layer shapefile ends >> >> > >> >> > >> >> > LAYER >> >> > NAME name >> >> > TYPE POLYGON >> >> > STATUS OFF >> >> > CONNECTIONTYPE OGR >> >> > CONNECTION "/url/to/tab.TAB" >> >> > LABELITEM "name" >> >> > # STYLEITEM "AUTO" >> >> > CLASS >> >> > NAME "name" >> >> > COLOR 216 176 255 >> >> > LABEL >> >> > TYPE TRUETYPE >> >> > ANTIALIAS TRUE >> >> > FONT FreeSans >> >> > COLOR 0 0 0 >> >> > OUTLINECOLOR 220 220 220 >> >> > SIZE 8 >> >> > OFFSET 0 2 >> >> > buffer 2 >> >> > END #label >> >> > END >> >> > END # Layer ends >> >> > >> >> > LAYER >> >> > NAME name >> >> > TYPE LINE >> >> > STATUS OFF >> >> > CONNECTIONTYPE OGR >> >> > CONNECTION "/url/to/tab.TAB" >> >> > LABELITEM "text" >> >> > CLASS >> >> > NAME "name" >> >> > LABEL >> >> > TYPE TRUETYPE >> >> > ANTIALIAS TRUE >> >> > FONT FreeSans >> >> > COLOR 255 255 255 >> >> > OUTLINECOLOR 0 0 0 >> >> > SIZE 10 >> >> > ANGLE AUTO >> >> > POSITION UC >> >> > OFFSET 0 2 >> >> > buffer 2 >> >> > END #label >> >> > END #class >> >> > END # Layer test ends >> >> > >> >> > >> >> > LAYER >> >> > NAME name >> >> > TYPE LINE >> >> > STATUS OFF >> >> > CONNECTIONTYPE OGR >> >> > CONNECTION "/url/to/tab.TAB" >> >> > STYLEITEM "AUTO" >> >> > CLASS >> >> > NAME "name" >> >> > END >> >> > END # Layer ends >> >> > >> >> > >> >> > END # MAP ends >> >> > >> >> > Cheers! >> >> > >> >> > On 7/20/06, Umberto Nicoletti wrote: >> >> > > Antti, >> >> > > please tell us more: >> >> > > >> >> > > - version of mapserver >> >> > > - how you built it (yourself or picked one from where) >> >> > > - if you built it yourself the configure flags you used >> >> > > - are you using php as a shared module or as a cgi? >> >> > > - version of apache, php and linux (uname -a) >> >> > > >> >> > > Can you post the map file to the list? >> >> > > >> >> > > Regards, >> >> > > Umberto >> >> > > >> >> > > On 6/13/06, antti siukola wrote: >> >> > > > Hi! >> >> > > > >> >> > > > Every time MapServer returns a blank page I find "[notice] >> >> child pid >> >> > > > xxxx exit signal Segmentation fault (11)" from apache's >> >> error_log. Any >> >> > > > thoughts? Blank pages are returned randomly. >> >> > > > >> >> > > > AnttiS >> >> > > > >> >> > > >> >> > >> >> >> > >> > >> > >> >> >> -- >> Stuart Eve >> L - P : Archaeology >> stuarteve at lparchaeology.com >> >> > > > -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From warmerdam at POBOX.COM Mon Aug 7 06:38:48 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 7 Aug 2006 09:38:48 -0400 Subject: Loading ECW data In-Reply-To: Message-ID: antti siukola wrote: > Hi! > > I'm using raster image in ecw format and when loading it from > mapserver I get this error: Warning: [MapServer Error]: drawEPP(): > file.ecw is not an EPPL file. After surfing around I found that in > some point mapserver gave this error when ever it was unable to load > an image but can't tell if it's a problem anymore. > > I've used two tricks to load it: as a plain ecw and with a tab-file > My map-file looks like this: Antti, The .tab file aspect definitely won't work with GDAL. The ECW will if you have ECW support built in. Try running gdalinfo against the ecw file or doing "gdalinfo --format ecw" to check if the ecw driver is available in your build. If not, mapserver will fall through to trying the file as EPPL and give the report you see. 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 | President OSGF, http://osgeo.org From bartvde at XS4ALL.NL Mon Aug 7 08:00:52 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 7 Aug 2006 17:00:52 +0200 Subject: HTML legends: isnotnull operator Message-ID: Hi list, since there is no [else] tag in Mapserver HTML legends, why is there no "isnotnull" operator besides the "isnull" operator? Best regards, Bart From siukola.antti at GMAIL.COM Mon Aug 7 08:46:02 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 7 Aug 2006 18:46:02 +0300 Subject: Loading ECW data In-Reply-To: <44D74268.1030505@pobox.com> Message-ID: Thanks for your reply! I also have to install the ER mappers ECW JPEG2000 SDK and then compile GDAL against it, am I right? And after that GDAL should work smoothly with ECW's. I'll try that. Cheers Antti S On 8/7/06, Frank Warmerdam wrote: > antti siukola wrote: > > Hi! > > > > I'm using raster image in ecw format and when loading it from > > mapserver I get this error: Warning: [MapServer Error]: drawEPP(): > > file.ecw is not an EPPL file. After surfing around I found that in > > some point mapserver gave this error when ever it was unable to load > > an image but can't tell if it's a problem anymore. > > > > I've used two tricks to load it: as a plain ecw and with a tab-file > > My map-file looks like this: > > Antti, > > The .tab file aspect definitely won't work with GDAL. The ECW will if > you have ECW support built in. Try running gdalinfo against the ecw file > or doing "gdalinfo --format ecw" to check if the ecw driver is available > in your build. If not, mapserver will fall through to trying the file as > EPPL and give the report you see. > > 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 | President OSGF, http://osgeo.org > > From warmerdam at POBOX.COM Mon Aug 7 09:08:19 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 7 Aug 2006 12:08:19 -0400 Subject: Loading ECW data In-Reply-To: Message-ID: antti siukola wrote: > Thanks for your reply! > > I also have to install the ER mappers ECW JPEG2000 SDK and then > compile GDAL against it, am I right? And after that GDAL should work > smoothly with ECW's. I'll try that. Antti, That is correct. 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 | President OSGF, http://osgeo.org From bart_doggers at YAHOO.COM Mon Aug 7 09:16:41 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Mon, 7 Aug 2006 09:16:41 -0700 Subject: another query string question Message-ID: Hi List, I have the layer parcels and I want to search for RNG and TWP label. Using 50 for the range and 133 for the section. How would I code the query item and query string? Thanks, Albert --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Mon Aug 7 09:21:17 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Mon, 7 Aug 2006 11:21:17 -0500 Subject: FW: [UMN_MAPSERVER-USERS] HTML legends: isnotnull operator Message-ID: Forgot to reply to list... David Lowther -----Original Message----- From: dlowther at coordinatesolutions.com [mailto:dlowther at coordinatesolutions.com] Sent: Monday, August 07, 2006 10:39 AM To: 'Bart van den Eijnden (OSGIS)' Subject: RE: [UMN_MAPSERVER-USERS] HTML legends: isnotnull operator Bart, It's been about 3 years since I fought this battle, but let me try to help you anyhow. I think what I ended up doing was manufacturing the correct logic by using the METADATA block in the Mapfile. For example, I wanted to include a radio for "active" layer in the legend, but not for all vector layers (or something like that). Having no "isnotnull" I had to create an "isnull" scenario that worked. Something like this in the .map: METADATA "NoID" "T" "DataLayersID" "1" "wms_title" "Judicial" legend_order "3000" END Something like this in the htmllegend template: [if name=NoID oper=isnull] [/if] Like I said, it's been awhile, but maybe you can use that as a jumping off point. If you are interested in the complete htmllegend template and Mapfile let me know. David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden (OSGIS) Sent: Monday, August 07, 2006 10:01 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] HTML legends: isnotnull operator Hi list, since there is no [else] tag in Mapserver HTML legends, why is there no "isnotnull" operator besides the "isnull" operator? Best regards, Bart From dlowther at COORDINATESOLUTIONS.COM Mon Aug 7 09:21:33 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Mon, 7 Aug 2006 11:21:33 -0500 Subject: FW: [UMN_MAPSERVER-USERS] HTML legends: isnotnull operator Message-ID: Forgot to reply to list... David Lowther -----Original Message----- From: dlowther at coordinatesolutions.com [mailto:dlowther at coordinatesolutions.com] Sent: Monday, August 07, 2006 10:40 AM To: 'Bart van den Eijnden (OSGIS)' Subject: RE: [UMN_MAPSERVER-USERS] HTML legends: isnotnull operator Oh, and you can see the results of this effort here: http://geo.ou.edu/cgi-bin/redesign.cgi?ft=db&template=Map_OKSTATE40.htm David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden (OSGIS) Sent: Monday, August 07, 2006 10:01 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] HTML legends: isnotnull operator Hi list, since there is no [else] tag in Mapserver HTML legends, why is there no "isnotnull" operator besides the "isnull" operator? Best regards, Bart From woodbri at SWOODBRIDGE.COM Mon Aug 7 10:29:26 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 7 Aug 2006 13:29:26 -0400 Subject: This is Cool - wikimapia.org Message-ID: http://wikimapia.org/#y=42857846&x=-72015381&z=10&l=0&m=a From Steve.Lime at DNR.STATE.MN.US Mon Aug 7 11:20:39 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 7 Aug 2006 13:20:39 -0500 Subject: another query string question In-Reply-To: <20060807161641.91077.qmail@web55702.mail.re3.yahoo.com> Message-ID: qitem doesn't get set, qstring would equal ([RNG] = 50 and [TWP] = 133). You'd need to properly escape the qstring if embedding in a URL. Steve >>> Albert Anderson 8/7/2006 11:16:41 AM >>> Hi List, I have the layer parcels and I want to search for RNG and TWP label. Using 50 for the range and 133 for the section. How would I code the query item and query string? Thanks, Albert --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. From bart_doggers at YAHOO.COM Mon Aug 7 11:38:50 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Mon, 7 Aug 2006 11:38:50 -0700 Subject: another query string question In-Reply-To: <44D73E270200008F00000A05@co5.dnr.state.mn.us> Message-ID: Hi Steve, Thanks it work. What do you mean by You'd need to properly escape the qstring if embedding in a URL? How do you do that? I guess I dont understand what you are saying. Albert Steve Lime wrote: qitem doesn't get set, qstring would equal ([RNG] = 50 and [TWP] = 133). You'd need to properly escape the qstring if embedding in a URL. Steve >>> Albert Anderson 8/7/2006 11:16:41 AM >>> Hi List, I have the layer parcels and I want to search for RNG and TWP label. Using 50 for the range and 133 for the section. How would I code the query item and query string? Thanks, Albert --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Mon Aug 7 11:58:22 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 7 Aug 2006 13:58:22 -0500 Subject: another query string question In-Reply-To: <20060807183850.84710.qmail@web55709.mail.re3.yahoo.com> Message-ID: Albert: Checkout http://www.blooberry.com/indexdot/html/topics/urlencoding.htm for more info. In many cases the browser does this for you. However sometimes you have to. In essence ([RNG] = 50 and [TWP] = 133) becomes %20(%5BRNG%5D%20=%2050%20and%20%5BTWP%5D%20=%20133) Steve >>> Albert Anderson 8/7/2006 1:38:50 PM >>> Hi Steve, Thanks it work. What do you mean by You'd need to properly escape the qstring if embedding in a URL? How do you do that? I guess I dont understand what you are saying. Albert Steve Lime wrote: qitem doesn't get set, qstring would equal ([RNG] = 50 and [TWP] = 133). You'd need to properly escape the qstring if embedding in a URL. Steve >>> Albert Anderson 8/7/2006 11:16:41 AM >>> Hi List, I have the layer parcels and I want to search for RNG and TWP label. Using 50 for the range and 133 for the section. How would I code the query item and query string? Thanks, Albert --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. From bpfurtado at GMAIL.COM Mon Aug 7 12:06:10 2006 From: bpfurtado at GMAIL.COM (Bruno Patini Furtado) Date: Mon, 7 Aug 2006 16:06:10 -0300 Subject: Layer Overviews Message-ID: Hi, I have successfully added internal overviews to a GeoTIFF image, which had its size increased from 270mb to 370mb, but I'm not finding where in the map file layer object where I configure this overviews. In order to create the internal overviews I've used the gdaladdo program. Any hint would be really appreciated! -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Mon Aug 7 13:22:16 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 7 Aug 2006 22:22:16 +0200 Subject: Multiple user problem -- C# MapScript Web Application In-Reply-To: <2534c4120608070312g4a732f64t4bb3c1b67af15e7@mail.gmail.com> Message-ID: Hi, Many of the mapserver components use globally allocated data so multiple threads within the executable (inside libmap.dll in this case) share the same data. Moreover the .dll is loaded into the host application (eg. aspnet_wp.exe or w3wp.exe) and the global variable will be shared among the threads within the overall worker process. The process may host multiple appdomains so the variables is shared among multiple web applications in this case. Lastly, the ASP application model implies the various requests are handled by multiple threads taken out of a pool of threads. It seems terrible compared to the architecture of a windows application, isn't it? If mapserver is compiled with thread support the global data in some of the components are protected by locks to provide synchronized access by multiple threads. The access will take place sequentially so the threads will wait for each other. For example if you are creating mapObj from a .map file multiple requests will wait for each other when parsing the file. This kind of thread interaction may be slightly decreased if the protected critical sections could be made smaller. The issue mentioned previously makes some of us frustrated. Maintaining locks kills the performance of the application, it would be preferable to avoid the global data at all when possible. Unfortunately to achieve this level much of the code should be reconsidered ( a better sort of collaboration should be made between the developers ). I consider this problem is critical and will manifest itself more and more obviously. I wonder the other mapscript languages are living happily without it ;-) Getting back to your question this time i would prefer establishing the mapping functionality in the middleware if possible. The drawing request should be queued and a pool of multiple processes should be spawned to handle the requests. The result may be dispatched back to the client using HTTP. The MONO XSP implementation may also help to establish the required functionality. Best Regards, Tamas Szekeres 2006/8/7, Zhonghai Wang : > > Hi All, > > I've developed a windows application with the C# MapScript, and this > application works well with all the common mapping functions. I am very > happy with the performance of MapServer. So I am now trying to migrate the > windows application to a web application, here I have some doubts with the > migration: > > 1. for the windows application I use a singelton class to return the mapobj > for all the mapping API -- I've programmed a mapping class for mapping > functionalities, and this works well to store all the changes of a mapobj > during the mapping process. But if I migrate the mapping class to web > application, this singelton class should not be used, since there may be > hundred users, who are accessing MapServer at the same time. I am just > wondering how to solve this problem in MapServer? > > In MapXtreme, this problem is solved with the use of MapXBroker, which is a > shared pool of MapX objects, does MapServer has any similar component? > > 2. Thread-Safety, I know this is not a new question, but it's important. In > the .NET application, how to solve this problem? use thread lock? (I am > programming with VB.NET) > > thanks for any information about this topic. > > > zhonghai From joe at OTSYS.COM Mon Aug 7 14:15:41 2006 From: joe at OTSYS.COM (Joe Bussell) Date: Mon, 7 Aug 2006 14:15:41 -0700 Subject: This is Cool - wikimapia.org In-Reply-To: <44D77876.5080000@swoodbridge.com> Message-ID: Cool indeed. There is a weird entry for my town. Can anyone decode the text for the following: http://wikimapia.org/#y=44087862&x=-123107429&z=16&l=0&m=a Is this area marked described in Arabic? I think this is an office park, but I will go drive over there to find out :) Joe Bussell Stephen Woodbridge wrote: > http://wikimapia.org/#y=42857846&x=-72015381&z=10&l=0&m=a > From szekerest at GMAIL.COM Mon Aug 7 14:51:26 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 7 Aug 2006 23:51:26 +0200 Subject: This is Cool - wikimapia.org In-Reply-To: <44D77876.5080000@swoodbridge.com> Message-ID: http://www.google.com/apis/maps/ Have you ever played with it? 2006/8/7, Stephen Woodbridge : > http://wikimapia.org/#y=42857846&x=-72015381&z=10&l=0&m=a > From ed at TOPOZONE.COM Mon Aug 7 15:46:59 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 7 Aug 2006 18:46:59 -0400 Subject: Layer Overviews Message-ID: Bruno - You don't configure it. As long as your MapServer binary is using GDAL support to read GeoTIFF files, GDAL will look for and automatically use the overviews. For a given map request there will be a certain input raster resolution desired. GDAL will use the lowest-resolution overview that is not lower in resolution than the requested resolution. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruno Patini Furtado Sent: Monday, August 07, 2006 3:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Layer Overviews Hi, I have successfully added internal overviews to a GeoTIFF image, which had its size increased from 270mb to 370mb, but I'm not finding where in the map file layer object where I configure this overviews. In order to create the internal overviews I've used the gdaladdo program. Any hint would be really appreciated! -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bitner at GYTTJA.ORG Mon Aug 7 18:11:55 2006 From: bitner at GYTTJA.ORG (David William Bitner) Date: Mon, 7 Aug 2006 20:11:55 -0500 Subject: This is Cool - wikimapia.org In-Reply-To: <44D7AD7D.2040505@otsys.com> Message-ID: I don't know, but if the current administration sees this they are going to go off the wall and assume it's a terrorist plan.... On 8/7/06, Joe Bussell wrote: > > Cool indeed. There is a weird entry for my town. Can anyone decode the > text for the following: > http://wikimapia.org/#y=44087862&x=-123107429&z=16&l=0&m=a > Is this area marked described in Arabic? I think this is an office > park, but I will go drive over there to find out :) > > Joe Bussell > > > > > Stephen Woodbridge wrote: > > http://wikimapia.org/#y=42857846&x=-72015381&z=10&l=0&m=a > > > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon at SIBERN.COM.AU Mon Aug 7 20:39:43 2006 From: simon at SIBERN.COM.AU (Simon Haddon) Date: Tue, 8 Aug 2006 13:39:43 +1000 Subject: Update to Coldfusion mapscript.cfc Message-ID: Hi, For those interested in the mapscript.cfc (version 1.9) I have made some updates. 1. Removed dependency on utils.cfc 2. Made html legend generation more flexible. Can now pass html into function 3. Other minor bug fixes Give it a go. Sorry about the lack of doco at this stage. Will work on that shortly. Cheers, Simon Haddon -------------- next part -------------- A non-text attachment was scrubbed... Name: mapscript.cfc Type: application/x-cfc Size: 44375 bytes Desc: not available URL: From simon at SIBERN.COM.AU Mon Aug 7 21:51:50 2006 From: simon at SIBERN.COM.AU (Simon Haddon) Date: Tue, 8 Aug 2006 14:51:50 +1000 Subject: Another update to Coldfusion mapscript.cfc Message-ID: Hi everyone, It is now up to 1.12 as there was a few more minor problems Attached is the latest mapscript.cfc -------------- next part -------------- A non-text attachment was scrubbed... Name: mapscript.cfc Type: application/x-cfc Size: 45075 bytes Desc: not available URL: From siukola.antti at GMAIL.COM Mon Aug 7 23:36:08 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 8 Aug 2006 09:36:08 +0300 Subject: Loading ECW data In-Reply-To: <44D76573.2060704@pobox.com> Message-ID: Hi! I compiled ER Mappers ECW SDK and GDAL against it and even re-compiled MapServer but still get the same error: ecw is not an EPPL file. $ gdalinfo --format ecw gives me: Format Details: Short Name: ECW Long Name: ERMapper Compressed Wavelets Extension: ecw Help Topic: frmt_ecw.html Supports: CreateCopy() - Create dataset by copying another. Creation Datatypes: Byte So it should work? Cheers! Antti S On 8/7/06, Frank Warmerdam wrote: > antti siukola wrote: > > Thanks for your reply! > > > > I also have to install the ER mappers ECW JPEG2000 SDK and then > > compile GDAL against it, am I right? And after that GDAL should work > > smoothly with ECW's. I'll try that. > > Antti, > > That is correct. > > 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 | President OSGF, http://osgeo.org > > From jegou at UNIV-TLSE2.FR Mon Aug 7 23:45:38 2006 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Tue, 8 Aug 2006 08:45:38 +0200 Subject: MapServer website : access to documentation pages In-Reply-To: <37058.152.91.9.8.1155012710.squirrel@calippo.sibern.com.au> Message-ID: Hello, just a reminder message about the documentation pages of the website : they are inaccessibles for many non-english visitors, since plone detects the locale of the browser (i imagine), and automatically present the part of the website corresponding (which is largely empty in french, by example). If you're looking for french translators, i can help, i've translated a good par of the core documentation (mapfiles) for the courses i teach. That's pretty annoying to be denied of access to the documentation. Thanks From dpinte at ITAE.BE Tue Aug 8 00:02:32 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 8 Aug 2006 09:02:32 +0200 Subject: MapServer website : access to documentation pages In-Reply-To: <44D83312.3050405@univ-tlse2.fr> Message-ID: Le mardi 08 ao?t 2006 ? 08:45 +0200, Laurent J?gou a ?crit : > Hello, just a reminder message about the documentation pages of the > website : they are inaccessibles for many non-english visitors, since > plone detects the locale of the browser (i imagine), and automatically > present the part of the website corresponding (which is largely empty in > french, by example). > > If you're looking for french translators, i can help, i've translated a > good par of the core documentation (mapfiles) for the courses i teach. > That's pretty annoying to be denied of access to the documentation. > > Thanks Hello Laurent, I'm the one having translated the front page into french. I wasn't supposed to translate only that page, leaving the french part of the website empty ... The problem is that the plone documentation part did not support translation at this time. I don't know if it's still the case but the last time i tried (two month ago) it was still not working. This must be fixed in order to let volunteers like you and me start translating all the rest of the site. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From tzzbzzgf at HOTMAIL.COM Tue Aug 8 01:47:18 2006 From: tzzbzzgf at HOTMAIL.COM (lemay) Date: Tue, 8 Aug 2006 16:47:18 +0800 Subject: ogr and mysql help! Message-ID: hi,all: I use ogr to connect mysql database and shp file with "left join" clause.and i only want to select some part of data from a mysql table ,how can i do ? Does ogr support "left join" and "where" clause together? MAP IMAGETYPE PNG #EXTENT 73 10 137 53 EXTENT 116 27 124 35.5 UNITS DD SIZE 400 300 #FONTSET "fonts/fonts.list" SHAPEPATH "data" IMAGECOLOR 255 255 255 LAYER # States polygon layer begins here DEBUG ON NAME jiangsu STATUS DEFAULT TYPE polygon DEBUG ON CONNECTIONTYPE ogr CONNECTION "/ms4w/apps/gmap/data/jiangsu.shp" #DATA "SELECT jiangsu_pro.*,test.* FROM jiangsu_pro left join 'MYSQL:test,host=localhost,user=root,password=491025,table types=memory'.test ON jiangsu_pro.JIANGSU_ID= test.Id" #DATA "SELECT jiangsu_pro.*,mysqltest.* FROM jiangsu_pro left join 'MYSQL:test,host=localhost,user=root,password=491025,table types=memory'.mysqltest ON jiangsu_pro.JIANGSU_ID= mysqltest.Id where mysqltest.Area_data='3'" DATA "SELECT * FROM jiangsu" PROJECTION "init=epsg:4609" END #CLASSITEM "test.Area_name" #CLASSITEM "mysqltest.area_name" CLASS # EXPRESSION 'Ganyu' COLOR 255 0 255 OUTLINECOLOR 0 132 32 END END # States polygon layer ends here END # end of map file/object -------------- next part -------------- An HTML attachment was scrubbed... URL: From donal_regan10 at YAHOO.CO.UK Tue Aug 8 02:38:49 2006 From: donal_regan10 at YAHOO.CO.UK (Donal Regan) Date: Tue, 8 Aug 2006 10:38:49 +0100 Subject: mapfile in shift-jis, db in utf-8 question Message-ID: I have a map file saved as shift-jis which allows to me query some shape files that have attributes encoded in shift-jis i.e I can write a classitem in shift-jis encoded japanese and my map displays as I would like. I now have a postgresql db encoded in UTF-8. I want to filter the data coming back but my column names are in UTF-8 encoded japanese. So when I set my FILTER to something like "内容=1" I get the folowing error: Postgresql reports the error as 'ERROR: invalid byte sequence for encoding "UTF8": 0x93 ' If I save my mapfile as UTF-8, no db error occurs, but now I can't match the attributes in shapefiles. Is there a way around this? Thanks, Donal --------------------------------- Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Tue Aug 8 03:26:31 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 8 Aug 2006 13:26:31 +0300 Subject: SHP point to line Message-ID: Hi! I have a shp-file that contains a lot of point information. Is there a way I could translate this to lines? Should this even work? The thing is that the layer contains street names that are connected to these points but then I can't get the angle information out of the shp automatically since it only works with lines. Cheers! Antti S From bpfurtado at GMAIL.COM Tue Aug 8 04:34:44 2006 From: bpfurtado at GMAIL.COM (Bruno Patini Furtado) Date: Tue, 8 Aug 2006 08:34:44 -0300 Subject: Layer Overviews In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DE036@ptolemy.topozone.com> Message-ID: Thanks Ed, this information helps a lot. :) On 8/7/06, Ed McNierney wrote: > > Bruno - > > You don't configure it. As long as your MapServer binary is using GDAL > support to read GeoTIFF files, GDAL will look for and automatically use the > overviews. For a given map request there will be a certain input raster > resolution desired. GDAL will use the lowest-resolution overview that is > not lower in resolution than the requested resolution. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > ed at topozone.com > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Bruno Patini Furtado > *Sent:* Monday, August 07, 2006 3:06 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Layer Overviews > > Hi, > I have successfully added internal overviews to a GeoTIFF image, which had > its size increased from 270mb to 370mb, but I'm not finding where in the map > file layer object where I configure this overviews. > > In order to create the internal overviews I've used the gdaladdo program. > > Any hint would be really appreciated! > > -- > "Minds are like parachutes, they work best when open." > > Bruno Patini Furtado > Software Developer > webpage: http://bpfurtado.net > software development blog: http://bpfurtado.livejournal.com > -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Tue Aug 8 06:20:09 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 8 Aug 2006 09:20:09 -0400 Subject: Enabling ArcSDE crashes MapServer In-Reply-To: Message-ID: Kristian, I'm not sure what MS4W version you are using, but 2.1 was released to fix issues with the SDE and Oracle connections. Both were tested and feedback from the community was that both work. Other than that I am not sure of your problem. jeff Thy, Kristian wrote: > I have installed the MS4W package on a Windows XP Pro box. We have > tested and can succesfully display data from local shapefiles. But when > I want to enable SDE connection support as per > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde-9-1 > the new libmap.dll apparently makes mapserv.exe crash - I see a 500 > Server Error in the browser. Here's all I get in the Apache log: > > [Thu Aug 03 16:00:15 2006] [error] [client 127.0.0.1] > Premature end of script headers: mapserv.exe, > referer: http://localhost:8080/krak/ > > The log file for the application itself is empty. Using the original > libmap.dll, I have verified that the .map file is syntactically valid > (but nothing is displayed, of course, since it's using SDE connected > layers). > > Looking at mapserv.exe and libmap.dll in the Dependency Walker > distributed with Visual Studio, I see absolutely no difference between > using one or the other libmap.dll except that SDE91.dll is found and > correctly linked with the SDE-enabled dll. > > Any ideas? > > Thanks in advance, > Kristian > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From John.Schattel at NOAA.GOV Tue Aug 8 07:06:51 2006 From: John.Schattel at NOAA.GOV (John Schattel) Date: Tue, 8 Aug 2006 10:06:51 -0400 Subject: Trouble with OGC Demo Message-ID: Hi All, I am trying to review the OGC Workshop demo (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) and I seem to be having trouble with the initial installation. When I run the demo the map image is very distorted and the rivers are not in the correct location (see http://www.weather.gov/mdl/XML/MapServerError.htm for screen capture). Any suggestions as to what I need to do to get the topo to show up correctly and the rivers to appear in their correct locations? Regards, John From pmaine at AUSTIN.RR.COM Tue Aug 8 08:06:41 2006 From: pmaine at AUSTIN.RR.COM (Paul Maine(ATS)) Date: Tue, 8 Aug 2006 10:06:41 -0500 Subject: How to use ESRI Map with Mapserver? Message-ID: I have installed MS4W and am using a PHP5 web service to get a map image (gif) from ESRI Arcweb Services. How can I use the map image with MapServer? In other words, I desire to use this map image as the bottom layer and then use MapServer to add additional layers. Thank You From dlowther at COORDINATESOLUTIONS.COM Tue Aug 8 08:26:21 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Tue, 8 Aug 2006 10:26:21 -0500 Subject: How to use ESRI Map with Mapserver? In-Reply-To: Message-ID: Paul, I guess I see two ways to approach this problem: 1 - If the web service is WMS compliant (yes, I know this is a stretch) then you could use the service as a layer in your map configuration file. 2 - You would need to automate several steps each time you make a map: - Request the ArcWeb Services map at an extent and projection that matches the current extent of the map. (It's surprisingly hard to say, but what I mean is, if you zoom in the extent changes. Request a map at this extent.) - Create a world file from the returned image (if it doesn't exist) - Create a dummy layer in your Mapfile for the ArcWeb image. - Modify the Data attribute of the dummy layer with the image file you returned above. I'm sure there are gotchas in this scenario, but I have managed to successfully make this work for ArcIMS and Mapserver, I can't imagine ArcWeb Services would be that much more difficult. David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Maine(ATS) Sent: Tuesday, August 08, 2006 10:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to use ESRI Map with Mapserver? I have installed MS4W and am using a PHP5 web service to get a map image (gif) from ESRI Arcweb Services. How can I use the map image with MapServer? In other words, I desire to use this map image as the bottom layer and then use MapServer to add additional layers. Thank You From pmaine at AUSTIN.RR.COM Tue Aug 8 08:36:15 2006 From: pmaine at AUSTIN.RR.COM (Paul Maine(ATS)) Date: Tue, 8 Aug 2006 10:36:15 -0500 Subject: How to use ESRI Map with Mapserver? In-Reply-To: <00f401c6baff$0125a930$640ba8c0@dld410> Message-ID: How do you create a world map? Thanks David! Paul, I guess I see two ways to approach this problem: 1 - If the web service is WMS compliant (yes, I know this is a stretch) then you could use the service as a layer in your map configuration file. 2 - You would need to automate several steps each time you make a map: - Request the ArcWeb Services map at an extent and projection that matches the current extent of the map. (It's surprisingly hard to say, but what I mean is, if you zoom in the extent changes. Request a map at this extent.) - Create a world file from the returned image (if it doesn't exist) - Create a dummy layer in your Mapfile for the ArcWeb image. - Modify the Data attribute of the dummy layer with the image file you returned above. I'm sure there are gotchas in this scenario, but I have managed to successfully make this work for ArcIMS and Mapserver, I can't imagine ArcWeb Services would be that much more difficult. David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Maine(ATS) Sent: Tuesday, August 08, 2006 10:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to use ESRI Map with Mapserver? I have installed MS4W and am using a PHP5 web service to get a map image (gif) from ESRI Arcweb Services. How can I use the map image with MapServer? In other words, I desire to use this map image as the bottom layer and then use MapServer to add additional layers. Thank You From jmckenna at DMSOLUTIONS.CA Tue Aug 8 09:59:47 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 8 Aug 2006 12:59:47 -0400 Subject: Trouble with OGC Demo In-Reply-To: <44D89A7B.9060607@noaa.gov> Message-ID: I also have that problem with the "Demo Interface" app in that package. To get around it, add the following lines to /client/default/demo.map in the 'land_shallow_topo_2048' layer: METADATA "ows_extent" "-180 -90 180 90" END jeff John Schattel wrote: > Hi All, > > I am trying to review the OGC Workshop demo > (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) and I seem to be > having trouble with the initial installation. When I run the demo the > map image is very distorted and the rivers are not in the correct > location (see http://www.weather.gov/mdl/XML/MapServerError.htm for > screen capture). Any suggestions as to what I need to do to get the > topo to show up correctly and the rivers to appear in their correct > locations? > > Regards, > > John > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Tom.Kralidis at EC.GC.CA Tue Aug 8 10:23:19 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 8 Aug 2006 13:23:19 -0400 Subject: Trouble with OGC Demo Message-ID: Thanks for the info. I can't seem to reproduce this error. 1./ Are you using version 1.0.1 of the workshop? 2./ (just in case) is the CVS revision 1.1.1.1 of client/default/demo.map? This is supposed to be a default (non-OGC) mapfile. Is the LAYER/EXTENT valid to use instead? ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff McKenna > Sent: 08 August, 2006 1:00 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Trouble with OGC Demo > > I also have that problem with the "Demo Interface" app in > that package. > > To get around it, add the following lines to > /client/default/demo.map in the 'land_shallow_topo_2048' layer: > > METADATA > "ows_extent" "-180 -90 180 90" > END > > jeff > > > > John Schattel wrote: > > Hi All, > > > > I am trying to review the OGC Workshop demo > > (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) and I seem to be > > having trouble with the initial installation. When I run the demo > > the map image is very distorted and the rivers are not in > the correct > > location (see http://www.weather.gov/mdl/XML/MapServerError.htm for > > screen capture). Any suggestions as to what I need to do > to get the > > topo to show up correctly and the rivers to appear in their correct > > locations? > > > > Regards, > > > > John > > > > > -- > Jeff McKenna > DM Solutions Group Inc. > http://www.dmsolutions.ca > From bart_doggers at YAHOO.COM Tue Aug 8 11:15:50 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Tue, 8 Aug 2006 11:15:50 -0700 Subject: query search question Message-ID: Hi list, I want to do a parcel search using a query. I dont for sure how to do it? I want to have a menu select down bar with TWP Range Range & SCT Twp & Range Twp & Range & SCT Then with 3 text boxes. TWP, RANGE, AND SCT so that you can enter in the numbers. Then have an search sumbit. What would I need to do? How do I get started with this. I am using mapserver 4 on a linux machine. Thanks, Albert __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Tue Aug 8 11:41:48 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 8 Aug 2006 14:41:48 -0400 Subject: Trouble with OGC Demo In-Reply-To: <2576812186CDD411BF1500508B6DCE950F009E60@ecnwri1.ontario.int.ec.gc.ca> Message-ID: (John replied directly and that metadata fixed his problem) Yes this is with 1.0.1, and CVS revision 1.1.1.1 of that mapfile. I thought it was odd how the projection objects in that demo.map file had "4236" in it first of all, and it got more confusing after that. No that mapfile does not work asis, and I had to add that metadata to get it to work. So something is wrong with the projection object, or worldfile, or something. jeff Kralidis,Tom [Burlington] wrote: > Thanks for the info. I can't seem to reproduce this error. > > 1./ Are you using version 1.0.1 of the workshop? > 2./ (just in case) is the CVS revision 1.1.1.1 of > client/default/demo.map? > > This is supposed to be a default (non-OGC) mapfile. Is the LAYER/EXTENT > valid to use instead? > > ..Tom > > > > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff McKenna >> Sent: 08 August, 2006 1:00 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Trouble with OGC Demo >> >> I also have that problem with the "Demo Interface" app in >> that package. >> >> To get around it, add the following lines to >> /client/default/demo.map in the 'land_shallow_topo_2048' layer: >> >> METADATA >> "ows_extent" "-180 -90 180 90" >> END >> >> jeff >> >> >> >> John Schattel wrote: >>> Hi All, >>> >>> I am trying to review the OGC Workshop demo >>> (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) and I seem to be >>> having trouble with the initial installation. When I run the demo >>> the map image is very distorted and the rivers are not in >> the correct >>> location (see http://www.weather.gov/mdl/XML/MapServerError.htm for >>> screen capture). Any suggestions as to what I need to do >> to get the >>> topo to show up correctly and the rivers to appear in their correct >>> locations? >>> >>> Regards, >>> >>> John >>> >> >> -- >> Jeff McKenna >> DM Solutions Group Inc. >> http://www.dmsolutions.ca >> > From Tom.Kralidis at EC.GC.CA Tue Aug 8 12:10:57 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 8 Aug 2006 15:10:57 -0400 Subject: Trouble with OGC Demo Message-ID: I've scanned the dist and found a few mapfiles with "4236", which I have changed to "4326". I have a tagged a 1.0.2 release for this (and a few small other items). Before I update the package online, I'd like to know what got more confusing afterwards? ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff McKenna > Sent: 08 August, 2006 2:42 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Trouble with OGC Demo > > (John replied directly and that metadata fixed his problem) > > Yes this is with 1.0.1, and CVS revision 1.1.1.1 of that mapfile. > > I thought it was odd how the projection objects in that > demo.map file had "4236" in it first of all, and it got more > confusing after that. No that mapfile does not work asis, > and I had to add that metadata to get it to work. > > So something is wrong with the projection object, or > worldfile, or something. > > jeff > > > > > Kralidis,Tom [Burlington] wrote: > > Thanks for the info. I can't seem to reproduce this error. > > > > 1./ Are you using version 1.0.1 of the workshop? > > 2./ (just in case) is the CVS revision 1.1.1.1 of > > client/default/demo.map? > > > > This is supposed to be a default (non-OGC) mapfile. Is the > > LAYER/EXTENT valid to use instead? > > > > ..Tom > > > > > > > > > >> -----Original Message----- > >> From: UMN MapServer Users List > >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff McKenna > >> Sent: 08 August, 2006 1:00 PM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: Re: [UMN_MAPSERVER-USERS] Trouble with OGC Demo > >> > >> I also have that problem with the "Demo Interface" app in that > >> package. > >> > >> To get around it, add the following lines to > /client/default/demo.map > >> in the 'land_shallow_topo_2048' layer: > >> > >> METADATA > >> "ows_extent" "-180 -90 180 90" > >> END > >> > >> jeff > >> > >> > >> > >> John Schattel wrote: > >>> Hi All, > >>> > >>> I am trying to review the OGC Workshop demo > >>> (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) and I > seem to be > >>> having trouble with the initial installation. When I > run the demo > >>> the map image is very distorted and the rivers are not in > >> the correct > >>> location (see > http://www.weather.gov/mdl/XML/MapServerError.htm for > >>> screen capture). Any suggestions as to what I need to do > >> to get the > >>> topo to show up correctly and the rivers to appear in > their correct > >>> locations? > >>> > >>> Regards, > >>> > >>> John > >>> > >> > >> -- > >> Jeff McKenna > >> DM Solutions Group Inc. > >> http://www.dmsolutions.ca > >> > > > From jmckenna at DMSOLUTIONS.CA Tue Aug 8 13:24:38 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 8 Aug 2006 16:24:38 -0400 Subject: Trouble with OGC Demo In-Reply-To: <2576812186CDD411BF1500508B6DCE950F009E7C@ecnwri1.ontario.int.ec.gc.ca> Message-ID: i was referring to the fact that changing the projection to the correct 4326 did not help in displaying the file properly. jeff Kralidis,Tom [Burlington] wrote: > I've scanned the dist and found a few mapfiles with "4236", which I have > changed to "4326". I have a tagged a 1.0.2 release for this (and a few > small other items). Before I update the package online, I'd like to > know what got more confusing afterwards? > > ..Tom > From ollerery at ENGR.ORST.EDU Tue Aug 8 14:40:18 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 8 Aug 2006 14:40:18 -0700 Subject: WFS and uDIG IllegalArgumentException In-Reply-To: <44D3C0F5.6000200@engr.orst.edu> Message-ID: When trying to add a Web Feature Server to uDIG i am getting a IllegalArgumentException. when i post the same URL into the web browser the XML document that is returned looks just fine, no warnings. any ideas on what the problem could be, i havent seen anything posted anywhere saying that uDIG has any problems with WFS. I can dispaly the same features just fine in uDIG using a WMS the URL http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/wfs_service.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=hrsc_nd& The error: java.lang.IllegalArgumentException: at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:58) at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:42) at org.eclipse.core.runtime.Status.setMessage(Status.java:174) at org.eclipse.core.runtime.Status.(Status.java:81) at net.refractions.udig.catalog.internal.wfs.WfsPlugin.log(WfsPlugin.java:110) at net.refractions.udig.catalog.internal.wfs.UDIGWFSDataStoreFactory.createNewDataStore(UDIGWFSDataStoreFactory.java:96) at org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:108) at net.refractions.udig.catalog.internal.wfs.WFSServiceImpl.getDS(WFSServiceImpl.java:143) at net.refractions.udig.catalog.internal.wfs.WFSServiceImpl.members(WFSServiceImpl.java:95) at net.refractions.udig.catalog.internal.ui.ConnectionPage$1.run(ConnectionPage.java:133) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830) at net.refractions.udig.catalog.internal.ui.ConnectionPage.getNextPage(ConnectionPage.java:147) at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at net.refractions.udig.internal.ui.UDIGApplication.run(UDIGApplication.java:28) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) The MapFile: MAP IMAGETYPE PNG EXTENT -180 -90 180 90 #EXTENT -350878.81 -9890271.86 350878.81 9890271.86 SIZE 600 500 SHAPEPATH "../my_data/" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA wfs_title "WFS test" wfs_name "WFS test" wfs_srs "EPSG:4326" wfs_onlineresourc "http://localhost/cgi-bin/mapserv?map=../html/mapserver/htdocs/wfs_service.map&" END END PROJECTION "init=epsg:4326" END LAYER NAME "hrsc_nd" #STATUS DEFAULT STATUS off TYPE POLYGON PROJECTION "init=epsg:4326" END DUMP TRUE CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=mars_db user=postgres" DATA "the_geom FROM hrsc0001_footprints_sep05_nd" METADATA wfs_title "hrsc_nd" wfs_srs "EPSG:4326" wfs_onlineresourc "http://localhost/cgi-bin/mapserv?map=../html/mapserver/htdocs/wfs_service.map&" gml_include_items "all" ## Optional (serves all attributes for layer) END CLASS NAME "hrsc_nd" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END # layer END # of map file From pramsey at REFRACTIONS.NET Tue Aug 8 16:39:47 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 8 Aug 2006 16:39:47 -0700 Subject: WFS and uDIG IllegalArgumentException In-Reply-To: <44D904C2.9090506@engr.orst.edu> Message-ID: We've been doing WFS cleanups for the last while, and have fixed a large number of issues, and also found others: - Our WFS support is much stronger in the ongoing 1.1RC series than in 1.0 - The Mapserver WFS support does some illegal things in versions prior to 4.8, which makes support spotty for ealier versions (some feature types work, others don't, some things work depending on the kind of backend you have, others don't, etc). The sad truth about WFS so far is that it seems to be quite hard for WFS servers to obey the schema/instance contract... they advertise different things in the DescribeFeatureType schema than they actually provide in the GetFeature instance. We have been turning these kinds of things up in commercial WFS servers too -- a complex specification takes no prisoners. P. Ryan Ollerenshaw wrote: > When trying to add a Web Feature Server to uDIG i am getting a > IllegalArgumentException. > > when i post the same URL into the web browser the XML document that is > returned looks just fine, no warnings. > any ideas on what the problem could be, i havent seen anything posted > anywhere saying that uDIG has any problems with WFS. I can dispaly the > same features just fine in uDIG using a WMS > > the URL > http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/wfs_service.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=hrsc_nd& > > > The error: > java.lang.IllegalArgumentException: > at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:58) > at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:42) > at org.eclipse.core.runtime.Status.setMessage(Status.java:174) > at org.eclipse.core.runtime.Status.(Status.java:81) > at > net.refractions.udig.catalog.internal.wfs.WfsPlugin.log(WfsPlugin.java:110) > at > net.refractions.udig.catalog.internal.wfs.UDIGWFSDataStoreFactory.createNewDataStore(UDIGWFSDataStoreFactory.java:96) > > at > org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:108) > > at > net.refractions.udig.catalog.internal.wfs.WFSServiceImpl.getDS(WFSServiceImpl.java:143) > > at > net.refractions.udig.catalog.internal.wfs.WFSServiceImpl.members(WFSServiceImpl.java:95) > > at > net.refractions.udig.catalog.internal.ui.ConnectionPage$1.run(ConnectionPage.java:133) > > at > org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346) > > at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291) > at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830) > at > net.refractions.udig.catalog.internal.ui.ConnectionPage.getNextPage(ConnectionPage.java:147) > > at > org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747) > at > org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345) > at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556) > at > org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758) > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) > at > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) > at > net.refractions.udig.internal.ui.UDIGApplication.run(UDIGApplication.java:28) > > at > org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) > > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) > > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) > at org.eclipse.core.launcher.Main.basicRun(Main.java:278) > at org.eclipse.core.launcher.Main.run(Main.java:973) > at org.eclipse.core.launcher.Main.main(Main.java:948) > > The MapFile: > MAP > IMAGETYPE PNG > EXTENT -180 -90 180 90 > #EXTENT -350878.81 -9890271.86 350878.81 9890271.86 > SIZE 600 500 > SHAPEPATH "../my_data/" > > IMAGECOLOR 255 255 255 > > WEB > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > wfs_title "WFS test" > wfs_name "WFS test" > wfs_srs "EPSG:4326" > wfs_onlineresourc > "http://localhost/cgi-bin/mapserv?map=../html/mapserver/htdocs/wfs_service.map&" > > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME "hrsc_nd" > #STATUS DEFAULT > STATUS off > TYPE POLYGON > PROJECTION > "init=epsg:4326" > END > DUMP TRUE > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=mars_db user=postgres" > DATA "the_geom FROM hrsc0001_footprints_sep05_nd" > METADATA > wfs_title "hrsc_nd" > wfs_srs "EPSG:4326" > wfs_onlineresourc > "http://localhost/cgi-bin/mapserv?map=../html/mapserver/htdocs/wfs_service.map&" > > gml_include_items "all" ## Optional (serves all attributes for > layer) END > CLASS > NAME "hrsc_nd" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END # layer > > > > > > END # of map file From ltrevinoh at GMAIL.COM Tue Aug 8 17:20:06 2006 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Tue, 8 Aug 2006 19:20:06 -0500 Subject: How can I know the name of the generated map Message-ID: Hi, I have an app that uses mapserver to display a generated map within other stuff (it?s a local application) with mode=map. I want to use the generated gif file (map) for other purposes also, (like including it in a doc file or as attachment in an e-mail) Can I tell to mapserver the name of the output gif file that I want? How can I know the name of the gif file just generated by mapserver? (without using the html tag) any ideas? Thanks in advance Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Aug 8 20:01:17 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 8 Aug 2006 22:01:17 -0500 Subject: How can I know the name of the generated map Message-ID: Luis: Mode=map streams the created image back to the requestor. There is no file actually written to disk. A file is only created with mode=browse or the non-image query modes (e.g. query, nquery, itemquery and so on). In those cases MapServer must return a template of some type. There's no reason it has to be HTML or contain image tags. For example, you could have a simple template like that only contains the string "[img]:[mapext]" so when processed you'd get the created image name plus it's extent. That's not a typical use case though... Steve >>> Luis Trevi?o 08/08/06 7:20 PM >>> Hi, I have an app that uses mapserver to display a generated map within other stuff (it?s a local application) with mode=map. I want to use the generated gif file (map) for other purposes also, (like including it in a doc file or as attachment in an e-mail) Can I tell to mapserver the name of the output gif file that I want? How can I know the name of the gif file just generated by mapserver? (without using the html tag) any ideas? Thanks in advance Luis From m.meier at SPIEKERMANN.DE Tue Aug 8 22:14:02 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 9 Aug 2006 07:14:02 +0200 Subject: How can I know the name of the generated map In-Reply-To: Message-ID: Hi, > generated gif file (map) for other purposes also, (like including it in > a doc file or as attachment in an e-mail) if you mean with doc-file that you create this file with a program called word from a corporation called m... than you can perhaps do the following: In Word 2003 I can insert the picture with "Einf?gen - Grafik - aus Datei.." and then I give the whole URL (request to mapserver) as the filename. Then I get back the image in the word document. Depending on your special application perhaps it is possible for you to generate the URL in WORD. So you have the most uptodate image and you don't need to look for a file. Manfred Luis Trevi?o schrieb: > Hi, > > I have an app that uses mapserver to display a generated map within > other stuff (it?s a local application) with mode=map. I want to use the > generated gif file (map) for other purposes also, (like including it in > a doc file or as attachment in an e-mail) > > Can I tell to mapserver the name of the output gif file that I want? > How can I know the name of the gif file just generated by mapserver? > (without using the html tag) > > any ideas? > > Thanks in advance > Luis From hartpence_gis at CO.JASPER.IA.US Wed Aug 9 05:43:38 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 9 Aug 2006 07:43:38 -0500 Subject: Highlight feature Message-ID: Sorry if you all already received this question, I don't think it made it out. I know how to query a feature and get MapServer to zoom to it. I have seen examples where the selected feature was highlighted and other examples where the feature is highlighted and the unselected features are not displayed. Could someone explain how this is done. I am using CGI MapServer. I will probably need a fairly thorough explanation. Thanks! Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From David.Fawcett at STATE.MN.US Wed Aug 9 05:56:28 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 9 Aug 2006 07:56:28 -0500 Subject: Highlight feature In-Reply-To: A<002701c6bbb1$71744a90$510a000a@jasper1.com> Message-ID: Lawrence, Take a look at QUERYMAP in the mapfile documentation. There are several options that you can choose. http://mapserver.gis.umn.edu/docs/reference/mapfile/querymap David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lawrence Hartpence Sent: Wednesday, August 09, 2006 7:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Highlight feature Sorry if you all already received this question, I don't think it made it out. I know how to query a feature and get MapServer to zoom to it. I have seen examples where the selected feature was highlighted and other examples where the feature is highlighted and the unselected features are not displayed. Could someone explain how this is done. I am using CGI MapServer. I will probably need a fairly thorough explanation. Thanks! Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From bartvde at XS4ALL.NL Wed Aug 9 06:29:02 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 9 Aug 2006 15:29:02 +0200 Subject: points disappearing when zooming in Message-ID: Hi list, I have a strange problem. Say at a scale of 1:200000 a whole lot of points are displayed. Then I zoom in at the cloud of points, to a scale of say 1:20000, and no points are displayed anymore. The layer has no MINSCALE or MAXSCALE settings, also the CLASSES have none. How can this be? Any thoughts? For reference, the layer definition: LAYER METADATA "WMS_LAYER_GROUP" "/WEGGEG" "WFS_MAXFEATURES" "50" "OWS_TITLE" "Portalen" "OWS_ABSTRACT" "Portalen punt" "WMS_METADATAURL_TYPE" "TC211" "WMS_METADATAURL_FORMAT" "text/xml" "WMS_METADATAURL_HREF" "http://test.intranet.rijkswaterstaat.nl/apps/geoservices/metadata/basispakket/AAA86" "GML_INCLUDE_ITEMS" "all" "GML_GEOMETRIES" "geometry" "GML_GEOMETRY_TYPE" "multipoint" "OWS_EXTENT" "10000 305000 280000 619000" END PROJECTION "init=epsg:28992" END NAME "AAA86" DATA "weggeg/geogegevens/shapefile/weggeg_wegvakniveau/portalen" STATUS ON TYPE POINT UNITS METERS SIZEUNITS PIXELS TOLERANCE 5 TOLERANCEUNITS PIXELS TEMPLATE "blank.html" DUMP TRUE CLASSITEM "OMSCHR" CLASS NAME "staal (losstaande stalen constructie)" EXPRESSION "staal (losstaande stalen constructie)" STYLE SYMBOL "square" COLOR 225 225 225 SIZE 6 END STYLE SYMBOL "square" COLOR 0 92 230 SIZE 4 END END CLASS NAME "viaduct (aan de zijkant van een viaduct)" EXPRESSION "viaduct (aan de zijkant van een viaduct)" STYLE SYMBOL "square" COLOR 225 225 225 SIZE 6 END STYLE SYMBOL "square" COLOR 168 112 0 SIZE 4 END END END Best regards, Bart From dlowther at COORDINATESOLUTIONS.COM Wed Aug 9 06:40:32 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Wed, 9 Aug 2006 08:40:32 -0500 Subject: How to use ESRI Map with Mapserver? In-Reply-To: Message-ID: Well, since noone else has responded to this (and there are a lot of folks who know more about it than I do...) - It's world "file" not world "map". Basically it's just a file that is used to georeference the image. Check this out: http://mapserver.gis.umn.edu/docs/howto/raster_data/#georeference-with-world -files David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Maine(ATS) Sent: Tuesday, August 08, 2006 10:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] How to use ESRI Map with Mapserver? How do you create a world map? Thanks David! Paul, I guess I see two ways to approach this problem: 1 - If the web service is WMS compliant (yes, I know this is a stretch) then you could use the service as a layer in your map configuration file. 2 - You would need to automate several steps each time you make a map: - Request the ArcWeb Services map at an extent and projection that matches the current extent of the map. (It's surprisingly hard to say, but what I mean is, if you zoom in the extent changes. Request a map at this extent.) - Create a world file from the returned image (if it doesn't exist) - Create a dummy layer in your Mapfile for the ArcWeb image. - Modify the Data attribute of the dummy layer with the image file you returned above. I'm sure there are gotchas in this scenario, but I have managed to successfully make this work for ArcIMS and Mapserver, I can't imagine ArcWeb Services would be that much more difficult. David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Maine(ATS) Sent: Tuesday, August 08, 2006 10:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to use ESRI Map with Mapserver? I have installed MS4W and am using a PHP5 web service to get a map image (gif) from ESRI Arcweb Services. How can I use the map image with MapServer? In other words, I desire to use this map image as the bottom layer and then use MapServer to add additional layers. Thank You From vilson.farias at DIGITRO.COM.BR Wed Aug 9 06:32:33 2006 From: vilson.farias at DIGITRO.COM.BR (=?ISO-8859-1?Q?Jos=E9_Vilson_de_Mello_de_Farias?=) Date: Wed, 9 Aug 2006 10:32:33 -0300 Subject: WMS Java Mapscript : msIO_getStdoutBufferBytes bug Message-ID: Greetings, I've compiled MapServer from the CVS HEAD 4.9-dev (2006-07-28) and I'm suposing the msIO_getStdoutBufferBytes is not working properly when used in Java Mapscript. I've written a very simple example to explain how it happens. Please take a look at it : public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOExcept { PrintWriter p = resp.getWriter(); mapObj map = new mapObj("/home/maps/rs.wms.map"); OWSRequest reqOWS = new OWSRequest(); reqOWS.setParameter("SERVICE", "WMS"); reqOWS.setParameter("VERSION", "1.1.0"); reqOWS.setParameter("REQUEST", "GetCapabilities"); mapscript.msIO_installStdoutToBuffer(); map.OWSDispatch(reqOWS); String contentType = mapscript.msIO_stripStdoutBufferContentType(); byte[] content = mapscript.msIO_getStdoutBufferBytes(); p.print(new String(content)); } The "byte[] content" stores the result of msIO_stripStdoutBufferContentType and it has some garbage data at the end. After the > 0x3E we have an NL 0x0A and finally a EOF 0x00, BUT the content doesn't stop at this point, there are more data after the 0x00 and the Java Mapscript can "see" it. That's a big problem, because when this "content" is returned, the resulting XML is corrupted. Please check this example bellow. 000018a0 20 20 20 20 20 20 20 20 20 3c 2f 4c 65 67 65 6e | . . .
.<| 000018e0 2f 43 61 70 61 62 69 6c 69 74 79 3e 0a 3c 2f 57 |/Capability>..............| 00001910 00 14 00 00 00 14 00 00 00 14 00 00 00 14 00 00 |................| 00001920 00 14 00 00 00 14 00 00 00 14 00 00 00 14 00 |...............| Is it a known bug? I'm afraid this kind of garbage can produce undesirable effects in WMS support. For this simples example I can "manually" remove it but I'm not sure how to deal with it in other cases. I'll be greatful if you could give me some light. Best regards, -- *Jos? Vilson de Mello de Farias* /Analista de Sistemas //SSE - Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* vilson.farias at digitro.com.br *Messenger: *vilsonfarias at hotmail.com ***Site:* www.digitro.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Wed Aug 9 06:51:09 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 9 Aug 2006 08:51:09 -0500 Subject: WMS Java Mapscript : msIO_getStdoutBufferBytes bug In-Reply-To: Message-ID: This is most likely a bug in the gdBuffer typemap for Java MapScript. Please file a bug in buzilla for the Java MapScript component with your example and information. Thanks Howard At 10:32 AM -0300 8/9/06, Jos? Vilson de Mello de Farias wrote: >This is a multi-part message in MIME format. >--------------080606080700010905000906 >Content-Type: text/plain; charset=ISO-8859-1; format=flowed >Content-Transfer-Encoding: 8bit > >Greetings, > > I've compiled MapServer from the CVS HEAD 4.9-dev (2006-07-28) and I'm >suposing the msIO_getStdoutBufferBytes is not working properly when used >in Java Mapscript. I've written a very simple example to explain how it >happens. Please take a look at it : > > public void doPost(HttpServletRequest req, >HttpServletResponse resp) throws >ServletException, IOExcept > > { > PrintWriter p = resp.getWriter(); > mapObj map = new mapObj("/home/maps/rs.wms.map"); > > OWSRequest reqOWS = new OWSRequest(); > reqOWS.setParameter("SERVICE", "WMS"); > reqOWS.setParameter("VERSION", "1.1.0"); > reqOWS.setParameter("REQUEST", "GetCapabilities"); > > > mapscript.msIO_installStdoutToBuffer(); > map.OWSDispatch(reqOWS); > > > String contentType = mapscript.msIO_stripStdoutBufferContentType(); > byte[] content = mapscript.msIO_getStdoutBufferBytes(); > p.print(new String(content)); > > } > > >The "byte[] content" stores the result of >msIO_stripStdoutBufferContentType and it has some garbage data at the >end. After the > 0x3E we have an NL 0x0A and finally a EOF 0x00, BUT the >content doesn't stop at this point, there are more data after the 0x00 >and the Java Mapscript can "see" it. That's a big problem, because when >this "content" is returned, the resulting XML is corrupted. Please check >this example bellow. > > 000018a0 20 20 20 20 20 20 20 20 20 3c 2f >4c 65 67 65 6e | 000018b0 64 55 52 4c 3e 0a 20 20 20 20 20 >20 20 20 3c 2f |dURL>. 000018c0 53 74 79 6c 65 3e 0a 20 20 20 20 >3c 2f 4c 61 79 |Style>. 000018d0 65 72 3e 0a 20 20 3c 2f 4c 61 79 >65 72 3e 0a 3c |er>. .<| > 000018e0 2f 43 61 70 61 62 69 6c 69 74 79 >3e 0a 3c 2f 57 |/Capability>. 000018f0 4d 54 5f 4d 53 5f 43 61 70 61 62 >69 6c 69 74 69 |MT_MS_Capabiliti| > 00001900 65 73 3e 0a 00 14 00 00 00 14 00 >00 00 14 00 00 |es>.............| > 00001910 00 14 00 00 00 14 00 00 00 14 00 >00 00 14 00 00 |................| > 00001920 00 14 00 00 00 14 00 00 00 14 00 >00 00 14 00 |...............| > >Is it a known bug? I'm afraid this kind of garbage can produce >undesirable effects in WMS support. For this simples example I can >"manually" remove it but I'm not sure how to deal with it in other >cases. I'll be greatful if you could give me some light. > > >Best regards, > >-- >*Jos? Vilson de Mello de Farias* >/Analista de Sistemas >//SSE - Seguran?a P?blica/ > >*D?GITRO TECNOLOGIA* >*E-mail:* vilson.farias at digitro.com.br > >*Messenger: *vilsonfarias at hotmail.com > >***Site:* www.digitro.com.br > > >--------------080606080700010905000906 >Content-Type: text/html; charset=ISO-8859-1 >Content-Transfer-Encoding: 7bit > > > > > > > > >Greetings,
>
>  I've compiled MapServer from the CVS HEAD 4.9-dev (2006-07-28) and >I'm suposing the msIO_getStdoutBufferBytes is not working properly when >used in Java Mapscript. I've written a very simple example to explain >how it happens. Please take a look at it :
>
>
>
>
size="-1">  public void 
>doPost(HttpServletRequest req, 
>HttpServletResponse resp) throws 
>ServletException, IOExcept
>
  {
>    PrintWriter p = resp.getWriter();
>    mapObj map = new 
>mapObj("/home/maps/rs.wms.map");
>
size="-1">    OWSRequest reqOWS = 
>new OWSRequest();
>    reqOWS.setParameter("SERVICE", "WMS");
>    reqOWS.setParameter("VERSION", "1.1.0");
>    reqOWS.setParameter("REQUEST", "GetCapabilities"); 
>  
>
size="-1">    
>mapscript.msIO_installStdoutToBuffer();
>    map.OWSDispatch(reqOWS); 
>  
>
size="-1">    String contentType 
>= mapscript.msIO_stripStdoutBufferContentType();
>    byte[] content = mapscript.msIO_getStdoutBufferBytes();
>    p.print(new String(content));
>
  } 
>
>
>The "byte[] content" stores the result of >msIO_stripStdoutBufferContentType and it has some garbage data at the >end. After the > 0x3E we have an NL 0x0A and finally a EOF 0x00, BUT >the content doesn't stop at this point, there are more data after the >0x00 and the Java Mapscript can "see" it. That's a big problem, because >when this "content" is returned, the resulting XML is corrupted. Please >check this example bellow.

>
face="Lucida Console">
>
>
>
000018a0  20 20 20 20 20 20 20 
>20  20 3c 2f 4c 65 67 65 6e  
>|         
></Legen|
>000018b0  64 55 52 4c 3e 0a 20 20  20 
>20 20 20 20 20 3c 2f  
>|dURL>.        
></|
>000018c0  53 74 79 6c 65 3e 0a 20  20 
>20 20 3c 2f 4c 61 79  
>|Style>.    </Lay|
>000018d0  65 72 3e 0a 20 20 3c 2f  4c 
>61 79 65 72 3e 0a 3c  |er>.  
></Layer>.<|
>000018e0  2f 43 61 70 61 62 69 6c  69 
>74 79 3e 0a 3c 2f 57  
>|/Capability>.</W|
>000018f0  4d 54 5f 4d 53 5f 43 61  70 
>61 62 69 6c 69 74 69  |MT_MS_Capabiliti|
>00001900  65 73 3e 0a 00 14 00 00  00 
>14 00 00 00 14 00 00  |es>.............|
>00001910  00 14 00 00 00 14 00 00  00 
>14 00 00 00 14 00 00  |................|
>00001920  00 14 00 00 00 14 00 00  00 
>14 00 00 00 14 00     
>|...............|
>
>Is it a known bug? I'm afraid this kind of >garbage can produce undesirable effects in WMS support. For this >simples example I can "manually" remove it but I'm not sure how to deal >with it in other cases. I'll be greatful if you could give me some >light.
>
>
>Best regards,
>

>--
> > > color="#000000" size="2">José Vilson >de Mello de Farias
>Analista de Sistemas
>
size="-2">SSE - Segurança Pública
>
>DÍGITRO TECNOLOGIA
>E-mail: >href="mailto:vilson.farias at digitro.com.br%20">color="#606060">vilson.farias at digitro.com.br
>
color="#000000">Messenger: face="Verdana, Helvetica, Arial" size="1"> >href="mailto:vilson.farias at digitro.com.br%20">color="#606060">vilsonfarias at hotmail.com
> color="#000000">Site: >color="#000000">www.digitro.com.br href="http://www.digitro.com.br%20"> >
> > > >--------------080606080700010905000906-- From luca76 at GMAIL.COM Wed Aug 9 06:59:54 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 9 Aug 2006 15:59:54 +0200 Subject: Mapserver as WMS: Query Message-ID: Hi, I'm trying to make QUERY via WMS working. In the guide from: http://mapserver.gis.umn.edu/docs/howto/wms_server there are three ways: # GetFeatureInfo: return info about feature(s) at a query (mouse click) location. MapServer supports 3 types of responses to this request: * Text/plain output with attribute info. * Text/html output using MapServer query templates specified in the CLASS template parameter. The MIME type returned by the Class templates defaults to text/html and can be controlled using the metadata "wms_feature_info_mime_type". * Gml features. well, in my map file I defined: LAYER NAME "trees" DATA "base/tree" METADATA "wms_title" "trees" "gml_include_items" "all" END PROJECTION "init=epsg:26591" END TYPE LINE STATUS ON #TRANSPARENCY 50 CLASS NAME "trees" STYLE COLOR 0 255 0 END END TEMPLATE "tree.html" END the TEMPLATE "tree.html" contains: MapServer Template Sample [cl]
id [TREE_ID] - type [TREE_TYP] but in my WFS client (arcmap) it doesn't return me any query result (but I see the layer) -- "Work only as many hours as you can be productive and only as many hours as you can sustain." - Kent Beck, in "Extreme Programming Explained" http://www.trapanator.com/blog From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Aug 9 07:02:11 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 9 Aug 2006 16:02:11 +0200 Subject: Mapserver as WMS: Query Message-ID: Check your webserver's access log to see what request ArcMap is doing. ArcMap 9.0 has a bug that it does not send the layers parameter in the request, which is manadatory. Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Luca Manganelli Verzonden: woensdag 9 augustus 2006 16:00 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Mapserver as WMS: Query Hi, I'm trying to make QUERY via WMS working. In the guide from: http://mapserver.gis.umn.edu/docs/howto/wms_server there are three ways: # GetFeatureInfo: return info about feature(s) at a query (mouse click) location. MapServer supports 3 types of responses to this request: * Text/plain output with attribute info. * Text/html output using MapServer query templates specified in the CLASS template parameter. The MIME type returned by the Class templates defaults to text/html and can be controlled using the metadata "wms_feature_info_mime_type". * Gml features. well, in my map file I defined: LAYER NAME "trees" DATA "base/tree" METADATA "wms_title" "trees" "gml_include_items" "all" END PROJECTION "init=epsg:26591" END TYPE LINE STATUS ON #TRANSPARENCY 50 CLASS NAME "trees" STYLE COLOR 0 255 0 END END TEMPLATE "tree.html" END the TEMPLATE "tree.html" contains: MapServer Template Sample [cl]
id [TREE_ID] - type [TREE_TYP] but in my WFS client (arcmap) it doesn't return me any query result (but I see the layer) -- "Work only as many hours as you can be productive and only as many hours as you can sustain." - Kent Beck, in "Extreme Programming Explained" http://www.trapanator.com/blog Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Tom.Kralidis at EC.GC.CA Wed Aug 9 07:03:37 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 9 Aug 2006 10:03:37 -0400 Subject: Mapserver as WMS: Query Message-ID: Luca, Try setting DUMP TRUE in the LAYER object? ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Luca Manganelli Sent: Wed 09-Aug-06 09:59 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Mapserver as WMS: Query Hi, I'm trying to make QUERY via WMS working. In the guide from: http://mapserver.gis.umn.edu/docs/howto/wms_server there are three ways: # GetFeatureInfo: return info about feature(s) at a query (mouse click) location. MapServer supports 3 types of responses to this request: * Text/plain output with attribute info. * Text/html output using MapServer query templates specified in the CLASS template parameter. The MIME type returned by the Class templates defaults to text/html and can be controlled using the metadata "wms_feature_info_mime_type". * Gml features. well, in my map file I defined: LAYER NAME "trees" DATA "base/tree" METADATA "wms_title" "trees" "gml_include_items" "all" END PROJECTION "init=epsg:26591" END TYPE LINE STATUS ON #TRANSPARENCY 50 CLASS NAME "trees" STYLE COLOR 0 255 0 END END TEMPLATE "tree.html" END the TEMPLATE "tree.html" contains: MapServer Template Sample [cl]
id [TREE_ID] - type [TREE_TYP] but in my WFS client (arcmap) it doesn't return me any query result (but I see the layer) -- "Work only as many hours as you can be productive and only as many hours as you can sustain." - Kent Beck, in "Extreme Programming Explained" http://www.trapanator.com/blog From warmerdam at POBOX.COM Wed Aug 9 07:39:38 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 9 Aug 2006 10:39:38 -0400 Subject: WMS Java Mapscript : msIO_getStdoutBufferBytes bug In-Reply-To: Message-ID: On 8/9/06, Howard Butler wrote: > This is most likely a bug in the gdBuffer typemap > for Java MapScript. Please file a bug in buzilla > for the Java MapScript component with your > example and information. Howard / Jose, I have come to the conclusion that there is a bug in my strip content header function in mapio.c. It was updating the 'allocated buffer size' instead of the 'portion of buffer used' value. I have committed a fix for this problem, however, I am unable to test it (as I'm on the road). I'd appreciate it if you could try the latest CVS code and let me know if there is still a problem. 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 bart_doggers at YAHOO.COM Wed Aug 9 07:57:52 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 9 Aug 2006 07:57:52 -0700 Subject: question on query Message-ID: Hi, I would like some help with building this query. I want drop down bar menu with TWP, RNG, RNG & SCT, TWP & RNG, and TWP & RNG & SCT. Then three text boxes so you can put in the numbers. Have a submit button for the results. Is there a way I can this do this with mapserver 4? How would I get started with this? Could someone email me back. Thanks, Albert --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpfurtado at GMAIL.COM Wed Aug 9 07:59:19 2006 From: bpfurtado at GMAIL.COM (Bruno Patini Furtado) Date: Wed, 9 Aug 2006 11:59:19 -0300 Subject: Image location inside its corner coordinates Message-ID: I have a DEM image of which below I've copied the gdalinfo output. Driver: GTiff/GeoTIFF Size is 1800, 1200 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-48.000416,-24.000416) Pixel Size = (0.00083333,-0.00083333) Metadata: AREA_OR_POINT=Area TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9 $ $Date: 2003/11/13 19:25:49EST $ TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( -48.0004159, -24.0004163) ( 48d 0'1.50"W, 24d 0'1.50"S) Lower Left ( -48.0004159, -25.0004164) ( 48d 0'1.50"W, 25d 0'1.50"S) Upper Right ( -46.5004159, -24.0004163) ( 46d30'1.50"W, 24d 0'1.50"S) Lower Right ( -46.5004159, -25.0004164) ( 46d30'1.50"W, 25d 0'1.50"S) Center ( -47.2504159, -24.5004163) ( 47d15'1.50"W, 24d30'1.50"S) Band 1 Block=1800x2 Type=UInt16, ColorInterp=Gray Overviews: 450x300, 225x150, 113x75, 57x38 I could take from it the EXTENT to use in my Mapfile using the Lower Left and Upper Right coordinates. But the problem is that the image is to small inside this coordinates and I can't find the image location inside then by this output. Is there some other utility to get this coordinates? -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sbeorchia at GI-LEMANS.COM Wed Aug 9 08:05:27 2006 From: sbeorchia at GI-LEMANS.COM (Sylvain Beorchia) Date: Wed, 9 Aug 2006 17:05:27 +0200 Subject: Mapscript C# - memory problem with GetShape Message-ID: Hi, I use the method layer.getShape(shape, tileIndex, result.shapeindex) and I've got a sporadic error wich throws this AccessViolationException : "Attempted to read or write protected memory. This is often an indication that other memory is corrupt The StackTrace is : ? mapscriptPINVOKE.layerObj_getShape(HandleRef jarg1, HandleRef jarg2, Int32 jarg3, Int32 jarg4) ? layerObj.getShape(shapeObj shape, Int32 tileindex, Int32 shapeindex) ? DI_DIFILE.DrawImg(Int32 Maprange, Int32 Mapsize, String Layer, String LayerIDValue, String Mapfile, String LayerID) Do you have an idea to fix this bug ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mljacks2 at HOTMAIL.COM Wed Aug 9 08:15:55 2006 From: mljacks2 at HOTMAIL.COM (M.L. Jackson) Date: Wed, 9 Aug 2006 10:15:55 -0500 Subject: Compiling latest mapserver 4.8.4 (link errors) Message-ID: I am trying to compile mapserver 4.8.4. I have come across the following error which seems to indicate a problem with linking: LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSV CRT.dll) LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib( cinitexe.obj) LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib( cinitexe.obj) LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib( cinitexe.obj) LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib( cinitexe.obj) MSVCRT.lib(MSVCRT.dll) : error LNK2005: __fileno already defined in LIBCMT.lib(f ileno.obj) LIBCMT.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRT.lib(M SVCRT.dll); second definition ignored LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.li b(cinitexe.obj); second definition ignored LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.li b(cinitexe.obj); second definition ignored LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.li b(cinitexe.obj); second definition ignored LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.li b(cinitexe.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __fileno already defined in LIBCMT.lib (fileno.obj); second definition ignored Creating library mapserver_i.lib and object mapserver_i.exp LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; us e /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; us e /NODEFAULTLIB:library maputil.obj : error LNK2001: unresolved external symbol _msSaveImageSWF maputil.obj : error LNK2001: unresolved external symbol _msFreeImageSWF maputil.obj : error LNK2001: unresolved external symbol _msImageCreateSWF mapdraw.obj : error LNK2001: unresolved external symbol _msImageCreateSWF maputil.obj : error LNK2001: unresolved external symbol _msTransformShapeSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawWMSLayerSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawVectorLayerAsRast erSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawRasterLayerSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbolSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLineSymbolSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawShadeSymbolSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLabelSWF mapdraw.obj : error LNK2001: unresolved external symbol _draw_textSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLabelCacheSWF mapdraw.obj : error LNK2001: unresolved external symbol _msImageStartLayerSWF mapdraw.obj : error LNK2001: unresolved external symbol _msDrawStartShapeSWF mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv_close mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv_open regex.obj : error LNK2001: unresolved external symbol _printchar pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol __imp__Re gCloseKey at 4 pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol __imp__Re gQueryValueExA at 24 pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol __imp__Re gOpenKeyExA at 20 LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main libmap.dll : fatal error LNK1120: 23 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. Can someone please tell me what I am doing wrong or what needs to be done to make it right? Thanks. _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee? Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From thip at AIT.AC.TH Wed Aug 9 08:26:07 2006 From: thip at AIT.AC.TH (SUBSCRIBE MAPSERVER-USERS Joe H. Smith) Date: Wed, 9 Aug 2006 22:26:07 +0700 Subject: Mapserver as WMS: Query In-Reply-To: <2576812186CDD411BF1500508B6DCE950D17F4FD@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Dear all, I have the same problem. I followed the same manual: http://mapserver.gis.umn.edu/docs/howto/wms_server but I could not make it work. If anyone can query feature through WMS, please please help. My map file is below. LAYER NAME Asia DATA asia_bnd DUMP TRUE PROJECTION #proj=latlong "init=epsg:4326" END METADATA "wms_title" "Asia" ##required "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:4031" "wms_name" "Asia" "wms_server_version" "1.3.0" "gml_include_items" "all" END TYPE POLYGON TRANSPARENCY 70 TEMPLATE "/data/maplab-2.2/AIT/asia.html" HEADER "/data/maplab-2.2/AIT/asia_header.html" FOOTER "/data/maplab-2.2/AIT/footer.html" STATUS ON CLASSITEM cntry_name LABELITEM cntry_name CLASS NAME "Asia" EXPRESSION /./ STYLE OUTLINECOLOR 74 74 74 COLOR 192 207 203 END END END Thanks, Thip Quoting "Kralidis,Tom [Burlington]" : > Luca, > > Try setting DUMP TRUE in the LAYER object? > > ..Tom > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Luca Manganelli > Sent: Wed 09-Aug-06 09:59 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] Mapserver as WMS: Query > > Hi, > > I'm trying to make QUERY via WMS working. > > In the guide from: > > http://mapserver.gis.umn.edu/docs/howto/wms_server > > there are three ways: > > # GetFeatureInfo: return info about feature(s) at a query (mouse > click) location. MapServer supports 3 types of responses to this > request: > > * Text/plain output with attribute info. > * Text/html output using MapServer query templates specified in > the CLASS template parameter. The MIME type returned by the Class > templates defaults to text/html and can be controlled using the > metadata "wms_feature_info_mime_type". > * Gml features. > > well, in my map file I defined: > > LAYER > NAME "trees" > DATA "base/tree" > METADATA > "wms_title" "trees" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:26591" > END > TYPE LINE > STATUS ON > #TRANSPARENCY 50 > CLASS > NAME "trees" > STYLE > COLOR 0 255 0 > END > END > TEMPLATE "tree.html" > END > > > the TEMPLATE "tree.html" contains: > > "http://www.w3.org/TR/html4/transitional.dtd"> > > > MapServer Template Sample > > > > [cl]
> id [TREE_ID] - type [TREE_TYP] > > > > but in my WFS client (arcmap) it doesn't return me any query result > (but I see the layer) > > > > > -- > "Work only as many hours as you can be productive and only as many hours as > you can sustain." - Kent Beck, in "Extreme Programming Explained" > > http://www.trapanator.com/blog > ---------------------------------------------------------- This mail sent through AIT WebMail : http://www.ait.ac.th/ From hobu at IASTATE.EDU Wed Aug 9 08:24:33 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 9 Aug 2006 10:24:33 -0500 Subject: Compiling latest mapserver 4.8.4 (link errors) In-Reply-To: Message-ID: It appears that MING/MING_DIR and PDF/PDF_DIR were left uncommented in nmake.opt for the 4.8 branch. You need to comment these out (or obtain those libraries for PDF and Flash support). The other errors are related to mixing debug and release versions of the runtimes. Is one of your support libraries compiled with /MDd and you are compling MapServer with /MD? All of the libraries need to be compiled against the same runtime to ensure perfect harmony in the MSVC universe. Howard At 10:15 AM 8/9/2006, M.L. Jackson wrote: >I am trying to compile mapserver 4.8.4. I have come across the following >error which seems to indicate a problem with linking: > >LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in >MSVCRT.lib(MSV >CRT.dll) >LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in >MSVCRT.lib( >cinitexe.obj) >LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in >MSVCRT.lib( >cinitexe.obj) >LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in >MSVCRT.lib( >cinitexe.obj) >LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in >MSVCRT.lib( >cinitexe.obj) >MSVCRT.lib(MSVCRT.dll) : error LNK2005: __fileno already defined in >LIBCMT.lib(f >ileno.obj) >LIBCMT.lib(crt0dat.obj) : warning LNK4006: _exit already defined in >MSVCRT.lib(M >SVCRT.dll); second definition ignored >LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in >MSVCRT.li >b(cinitexe.obj); second definition ignored >LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in >MSVCRT.li >b(cinitexe.obj); second definition ignored >LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in >MSVCRT.li >b(cinitexe.obj); second definition ignored >LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in >MSVCRT.li >b(cinitexe.obj); second definition ignored >MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __fileno already defined in >LIBCMT.lib >(fileno.obj); second definition ignored > Creating library mapserver_i.lib and object mapserver_i.exp >LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other >libs; us >e /NODEFAULTLIB:library >LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other >libs; us >e /NODEFAULTLIB:library >maputil.obj : error LNK2001: unresolved external symbol _msSaveImageSWF >maputil.obj : error LNK2001: unresolved external symbol _msFreeImageSWF >maputil.obj : error LNK2001: unresolved external symbol _msImageCreateSWF >mapdraw.obj : error LNK2001: unresolved external symbol _msImageCreateSWF >maputil.obj : error LNK2001: unresolved external symbol _msTransformShapeSWF >mapdraw.obj : error LNK2001: unresolved external symbol _msDrawWMSLayerSWF >mapdraw.obj : error LNK2001: unresolved external symbol >_msDrawVectorLayerAsRast >erSWF >mapdraw.obj : error LNK2001: unresolved external symbol >_msDrawRasterLayerSWF >mapdraw.obj : error LNK2001: unresolved external symbol >_msDrawMarkerSymbolSWF >mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLineSymbolSWF >mapdraw.obj : error LNK2001: unresolved external symbol >_msDrawShadeSymbolSWF >mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLabelSWF >mapdraw.obj : error LNK2001: unresolved external symbol _draw_textSWF >mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLabelCacheSWF >mapdraw.obj : error LNK2001: unresolved external symbol >_msImageStartLayerSWF >mapdraw.obj : error LNK2001: unresolved external symbol _msDrawStartShapeSWF >mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv_close >mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv >mapgd.obj : error LNK2001: unresolved external symbol __imp__libiconv_open >regex.obj : error LNK2001: unresolved external symbol _printchar >pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol >__imp__Re >gCloseKey at 4 >pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol >__imp__Re >gQueryValueExA at 24 >pdflib.lib(p_resource.obj) : error LNK2001: unresolved external symbol >__imp__Re >gOpenKeyExA at 20 >LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main >libmap.dll : fatal error LNK1120: 23 unresolved externals >NMAKE : fatal error U1077: 'link' : return code '0x460' >Stop. > >Can someone please tell me what I am doing wrong or what needs to be done to >make it right? Thanks. > >_________________________________________________________________ >Is your PC infected? Get a FREE online computer virus scan from McAfee? >Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Tom.Kralidis at EC.GC.CA Wed Aug 9 09:02:09 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 9 Aug 2006 12:02:09 -0400 Subject: Trouble with OGC Demo Message-ID: I've created a 1.0.2 dist with these (and other small) changes, now available at: http://devgeo.cciw.ca/ms_ogc_workshop/index.html ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff McKenna > Sent: 08 August, 2006 4:25 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Trouble with OGC Demo > > i was referring to the fact that changing the projection to > the correct > 4326 did not help in displaying the file properly. > > jeff > > > > Kralidis,Tom [Burlington] wrote: > > I've scanned the dist and found a few mapfiles with "4236", which I > > have changed to "4326". I have a tagged a 1.0.2 release > for this (and > > a few small other items). Before I update the package online, I'd > > like to know what got more confusing afterwards? > > > > ..Tom > > > From David.Fawcett at STATE.MN.US Wed Aug 9 09:04:31 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 9 Aug 2006 11:04:31 -0500 Subject: Compiling MapServer for SDE on Oracle10gR2_Solaris Message-ID: Has anyone compiled MapServer with SDE support for SDE 9.1, Oracle 10gR2, Solaris? Following the SDE 9.1 upgrade/patch for Oracle 10gR2_solaris64, I am curious if compiling against the original 9.1 SDK works, or if one needs to recompile MapServer against libraries in the upgrade. I can't imagine that there are a lot of people out there connecting to this configuration, but is anyone? David. From m.meier at SPIEKERMANN.DE Wed Aug 9 09:06:07 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 9 Aug 2006 18:06:07 +0200 Subject: question on query In-Reply-To: <20060809145752.19134.qmail@web55701.mail.re3.yahoo.com> Message-ID: Hi Albert, I can try to help, but I have no idea, what you are trying to do. - What is TWP, RNG and so on? - You write, you want to have drop down and text boxes. In my opinion you have to code these elements in HTML perhaps with javascript extensions. Do you know how to do that? Where does the contents of the drop downs come from? - What result do you want to have after submit? A highlighted element in the image and/or a table with detail data of the selected element? - I'm sure there are sites which do likely functions. Did you look at some example sites? - Do you use some scripting language like perl or php to dynamically create the html pages or are they static? Manfred Albert Anderson schrieb: > Hi, > > I would like some help with building this query. I want drop down bar > menu with TWP, RNG, RNG & SCT, TWP & RNG, and TWP & RNG & SCT. Then > three text boxes so you can put in the numbers. Have a submit button for > the results. Is there a way I can this do this with mapserver 4? How > would I get started with this? Could someone email me back. > > Thanks, > Albert > > ------------------------------------------------------------------------ > Stay in the know. Pulse on the new Yahoo.com. Check it out. > From ed at TOPOZONE.COM Wed Aug 9 09:18:00 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 9 Aug 2006 12:18:00 -0400 Subject: Image location inside its corner coordinates Message-ID: Bruno - Could you post the EXTENT statement you're using? Two things to check - UNITS DD should be there (should not affect this problem, however) and your EXTENT needs to be in the order MINX MINY MAXX MAXY, so it should be: EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 Your image is 1.5 degrees wide (X dimension) and 1 degree tall (Y dimension) so your output image size should also be that shape (600 pixels wide by 400 pixels high, for example) or you will see the map shrunk to fit the shape of the image. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruno Patini Furtado Sent: Wednesday, August 09, 2006 10:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image location inside its corner coordinates I have a DEM image of which below I've copied the gdalinfo output. Driver: GTiff/GeoTIFF Size is 1800, 1200 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-48.000416,-24.000416) Pixel Size = (0.00083333,-0.00083333 ) Metadata: AREA_OR_POINT=Area TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9 $ $Date: 2003/11/13 19:25:49EST $ TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( -48.0004159, -24.0004163) ( 48d 0'1.50"W, 24d 0'1.50"S) Lower Left ( -48.0004159, -25.0004164 ) ( 48d 0'1.50"W, 25d 0'1.50"S) Upper Right ( -46.5004159, -24.0004163) ( 46d30'1.50"W, 24d 0'1.50"S) Lower Right ( -46.5004159, -25.0004164) ( 46d30'1.50"W, 25d 0'1.50"S) Center ( -47.2504159, -24.5004163) ( 47d15'1.50"W, 24d30'1.50"S) Band 1 Block=1800x2 Type=UInt16, ColorInterp=Gray Overviews: 450x300, 225x150, 113x75, 57x38 I could take from it the EXTENT to use in my Mapfile using the Lower Left and Upper Right coordinates. But the problem is that the image is to small inside this coordinates and I can't find the image location inside then by this output. Is there some other utility to get this coordinates? -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 9 09:18:26 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 9 Aug 2006 09:18:26 -0700 Subject: question on query In-Reply-To: <44DA07EF.4040104@spiekermann.de> Message-ID: Hi Manfred, Okay. I want to able to serach by TWP(township), RNG(range), and SCT(sections). Why do you need to put java extensions on the end of them? I dont know how to do that. The contents comes from the parcels shp file which TWP, RNG, and SCT are the field names in the file. I want the result in a highlighted element in the image map. That would be ideal. If not I can get a table working that would be okay too. I am using html code in dreamweaver. No perl or php used. Here is a site that I am going by kinda http://www.houstonengineeringinc.com/mapmorph_demo/mapserv.html thanks, Albert Manfred Meier wrote: Hi Albert, I can try to help, but I have no idea, what you are trying to do. - What is TWP, RNG and so on? - You write, you want to have drop down and text boxes. In my opinion you have to code these elements in HTML perhaps with javascript extensions. Do you know how to do that? Where does the contents of the drop downs come from? - What result do you want to have after submit? A highlighted element in the image and/or a table with detail data of the selected element? - I'm sure there are sites which do likely functions. Did you look at some example sites? - Do you use some scripting language like perl or php to dynamically create the html pages or are they static? Manfred Albert Anderson schrieb: > Hi, > > I would like some help with building this query. I want drop down bar > menu with TWP, RNG, RNG & SCT, TWP & RNG, and TWP & RNG & SCT. Then > three text boxes so you can put in the numbers. Have a submit button for > the results. Is there a way I can this do this with mapserver 4? How > would I get started with this? Could someone email me back. > > Thanks, > Albert > > ------------------------------------------------------------------------ > Stay in the know. Pulse on the new Yahoo.com. Check it out. > --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at CO.JASPER.IA.US Wed Aug 9 09:24:01 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 9 Aug 2006 11:24:01 -0500 Subject: question on query In-Reply-To: <44DA07EF.4040104@spiekermann.de> Message-ID: Albert, I have a simple site that does something similar. You can look at it and see if it is helpful. http://216.203.113.94/JasperMaps/LandCorner/GoLandcorner.html Lawrence From szekerest at GMAIL.COM Wed Aug 9 09:34:02 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 9 Aug 2006 18:34:02 +0200 Subject: Mapscript C# - memory problem with GetShape In-Reply-To: <000801c6bbc5$3f846330$4769850a@gi.com> Message-ID: Hi, Would you describe your environment and the mapserver version in more detail? Would you try getFeature instead of getshape. Note: tileindex and shapeindex parameter should be switched. Best Regards, Tamas 2006/8/9, Sylvain Beorchia : > > > > Hi, > > I use the method layer.getShape(shape, tileIndex, result.shapeindex) and > I've got a sporadic error wich throws this AccessViolationException : > "Attempted to read or write protected memory. This is often an indication > that other memory is corrupt > The StackTrace is : > > > ? mapscriptPINVOKE.layerObj_getShape(HandleRef jarg1, > HandleRef jarg2, Int32 jarg3, Int32 jarg4) > > ? layerObj.getShape(shapeObj shape, Int32 tileindex, Int32 shapeindex) > > ? DI_DIFILE.DrawImg(Int32 Maprange, Int32 Mapsize, String Layer, String > LayerIDValue, String Mapfile, String LayerID) > > > > Do you have an idea to fix this bug ? > > From vilson.farias at DIGITRO.COM.BR Wed Aug 9 09:35:46 2006 From: vilson.farias at DIGITRO.COM.BR (=?ISO-8859-1?Q?Jos=E9_Vilson_de_Mello_de_Farias?=) Date: Wed, 9 Aug 2006 13:35:46 -0300 Subject: WMS Java Mapscript : msIO_getStdoutBufferBytes bug In-Reply-To: <931f8ea90608090739l566f6519hbabb6fcde2c25f20@mail.gmail.com> Message-ID: Frank/Howard, I've just tested a WMS GetCapabilities in a new MapServer compiled from today's CVS HEAD and the problem has been solved. Thanks everybody for such valuable help, Vilson Frank Warmerdam wrote: > On 8/9/06, Howard Butler wrote: >> This is most likely a bug in the gdBuffer typemap >> for Java MapScript. Please file a bug in buzilla >> for the Java MapScript component with your >> example and information. > > Howard / Jose, > > I have come to the conclusion that there is a bug in my > strip content header function in mapio.c. It was updating > the 'allocated buffer size' instead of the 'portion of buffer > used' value. I have committed a fix for this problem, > however, I am unable to test it (as I'm on the road). > I'd appreciate it if you could try the latest CVS code > and let me know if there is still a problem. > > Best regards, -- *Jos? Vilson de Mello de Farias* /Analista de Sistemas //SSE - Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* vilson.farias at digitro.com.br *Messenger: *vilsonfarias at hotmail.com *Fone:* (0xx48) 3281-7314 *Fax:* (0xx48) 3281-7000 *Site:* www.digitro.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 9 09:46:28 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 9 Aug 2006 09:46:28 -0700 Subject: question on query In-Reply-To: <004a01c6bbd0$3b6ed9f0$510a000a@jasper1.com> Message-ID: Hi Lawrence, What numbers do I put in the query to see it work? This might help me. Thanks, Albert Lawrence Hartpence wrote: Albert, I have a simple site that does something similar. You can look at it and see if it is helpful. http://216.203.113.94/JasperMaps/LandCorner/GoLandcorner.html Lawrence --------------------------------- Get your email and more, right on the new Yahoo.com --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpfurtado at GMAIL.COM Wed Aug 9 10:47:04 2006 From: bpfurtado at GMAIL.COM (Bruno Patini Furtado) Date: Wed, 9 Aug 2006 14:47:04 -0300 Subject: Image location inside its corner coordinates In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DE043@ptolemy.topozone.com> Message-ID: Hi Ed, On 8/9/06, Ed McNierney wrote: > > Bruno - > > Could you post the EXTENT statement you're using? Two things to check - > UNITS DD should be there (should not affect this problem, however) and your > EXTENT needs to be in the order MINX MINY MAXX MAXY, so it should be: > EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 > My extent is indeed like you said it should be: EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 It was because of the line below that you state that the units should be Decimal Degrees? UNIT["degree",0.0174532925199433], Your image is 1.5 degrees wide (X dimension) and 1 degree tall (Y dimension) > so your output image size should also be that shape (600 pixels wide by 400 > pixels high, for example) or you will see the map shrunk to fit the shape of > the image. > Your example shows the right proportion as gdalinfo tells the image is [1800, 1200] but I would like to set the layer metadata ows_extent with the actual image coordinates, not size, in order to show the image a bit better in the MapServer demo. Below goes my mapinfo layer element as I'm trying to configure it. LAYER NAME "my DEM Image" STATUS OFF TYPE RASTER DUMP TRUE DATA "SG-23-V-A.tif" PROJECTION "init=epsg:4326" END METADATA wcs_label "Some label" ows_extent "-48.000416 -24.000416 -48.001816 -24.001816" wcs_resolution "0.00083 -0.00083" ows_srs "EPSG:4326" wcs_formats "GEOTIFFINT16" wcs_nativeformat "geotiff" END END - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > ed at topozone.com > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Bruno Patini Furtado > *Sent:* Wednesday, August 09, 2006 10:59 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Image location inside its corner > coordinates > > I have a DEM image of which below I've copied the gdalinfo output. > > Driver: GTiff/GeoTIFF > Size is 1800, 1200 > Coordinate System is: > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.2572235630016, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]] > Origin = (-48.000416,-24.000416) > Pixel Size = (0.00083333,-0.00083333 ) > Metadata: > AREA_OR_POINT=Area > TIFFTAG_SOFTWARE=IMAGINE TIFF Support > Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved > @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9 $ $Date: 2003/11/13 19:25:49EST > $ > TIFFTAG_XRESOLUTION=1 > TIFFTAG_YRESOLUTION=1 > TIFFTAG_RESOLUTIONUNIT=1 (unitless) > Corner Coordinates: > Upper Left ( -48.0004159, -24.0004163) ( 48d 0'1.50"W, 24d 0'1.50"S) > Lower Left ( -48.0004159, -25.0004164 ) ( 48d 0'1.50"W, 25d 0'1.50"S) > Upper Right ( -46.5004159, -24.0004163) ( 46d30'1.50"W, 24d 0'1.50"S) > Lower Right ( -46.5004159, -25.0004164) ( 46d30'1.50"W, 25d 0'1.50"S) > Center ( -47.2504159, -24.5004163) ( 47d15'1.50"W, 24d30'1.50"S) > Band 1 Block=1800x2 Type=UInt16, ColorInterp=Gray > Overviews: 450x300, 225x150, 113x75, 57x38 > > I could take from it the EXTENT to use in my Mapfile using the Lower Left and > Upper Right coordinates. But the problem is that the image is to small > inside this coordinates and I can't find the image location inside then by > this output. Is there some other utility to get this coordinates? > > > -- > "Minds are like parachutes, they work best when open." > > Bruno Patini Furtado > Software Developer > webpage: http://bpfurtado.net > software development blog: http://bpfurtado.livejournal.com > -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Aug 9 10:56:53 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 9 Aug 2006 13:56:53 -0400 Subject: Color shifts using QUANTIZE_COLORS=256 Message-ID: Hi all, Sorry for the cross-post, but this seems valid for both groups. I have mapserver configured to work with ka-map and things are working fine except we have noticed color shifts in tiles. We are using: OUTPUTFORMAT NAME PNG8 DRIVER "GD/PNG" EXTENSION "png" MIMETYPE "image/png" IMAGEMODE RGBA TRANSPARENT OFF FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END in our mapfile and my hypotheses is that the GD QUANTIZE process is selecting different colors based on the colors available in the various meta-tiles. The mapserver source code calls the following function for this process and from the GD manual: > void gdImageTrueColorToPalette(gdImagePtr im, int ditherFlag, int > colorsWanted) gdImagePtr gdImageCreatePaletteFromTrueColor(gdImagePtr > im, int ditherFlag, int colorsWanted) (FUNCTION) > > gdImageCreatePaletteFromTrueColor returns a new image. > gdImageTrueColorToPalette permanently converts the existing image. > The two functions are otherwise identical. > > The function converts a truecolor image to a palette-based image, > using a high-quality two-pass quantization routine. If ditherFlag is > set, the image will be dithered to approximate colors better, at the > expense of some obvious "speckling." colorsWanted can be anything up > to 256. If the original source image includes photographic > information or anything that came out of a JPEG, 256 is strongly > recommended. 100% transparency of a single transparent color in the > original truecolor image will be preserved. There is no other support > for preservation of alpha channel or transparency in the destination > image. > > For best results, don't use this function -- write real truecolor > PNGs and JPEGs. The disk space gain of conversion to palette is not > great (for small images it can be negative) and the quality loss is > ugly. However, the version of this function included in version > 2.0.12 and later does do a better job than the version included prior > to 2.0.12. So, a few questions: 1) Has anyone looked into the impact of using PNG24 images on a) image sizes b) ka-map tile-cache sizing c) compatibility with browsers d) impact on browser memory usage or performance 2) I thought Paul Spencer said to use DITHERED=OFF, is this correct 3) Has anyone looked at the GD routine? Would it be possible to add a palette of say 32 colors that would be "sticky" and priority over other colors? -SteveW From bartvde at XS4ALL.NL Wed Aug 9 11:14:18 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 9 Aug 2006 20:14:18 +0200 Subject: Color shifts using QUANTIZE_COLORS=256 In-Reply-To: <44DA21E5.1060902@swoodbridge.com> Message-ID: Hi Steve, there is some info by Frank in the following bug report (assuming it is not outdated): http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=684 Are you able to preprocess your tiles to 8-bit using a script that GDAL provides? My experience with PNG24 is that they become huge (aerial photos of about 500 by 500 pixels approach 1 Mb) and that ofcourse IE 6 (and lower) has problems with alpha transparency. Best regards, Bart Stephen Woodbridge wrote: > Hi all, > > Sorry for the cross-post, but this seems valid for both groups. > > I have mapserver configured to work with ka-map and things are working > fine except we have noticed color shifts in tiles. We are using: > > OUTPUTFORMAT > NAME PNG8 > DRIVER "GD/PNG" > EXTENSION "png" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT OFF > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > in our mapfile and my hypotheses is that the GD QUANTIZE process is > selecting different colors based on the colors available in the various > meta-tiles. The mapserver source code calls the following function for > this process and from the GD manual: > >> void gdImageTrueColorToPalette(gdImagePtr im, int ditherFlag, int >> colorsWanted) gdImagePtr gdImageCreatePaletteFromTrueColor(gdImagePtr >> im, int ditherFlag, int colorsWanted) (FUNCTION) >> >> gdImageCreatePaletteFromTrueColor returns a new image. >> gdImageTrueColorToPalette permanently converts the existing image. >> The two functions are otherwise identical. >> >> The function converts a truecolor image to a palette-based image, >> using a high-quality two-pass quantization routine. If ditherFlag is >> set, the image will be dithered to approximate colors better, at the >> expense of some obvious "speckling." colorsWanted can be anything up >> to 256. If the original source image includes photographic >> information or anything that came out of a JPEG, 256 is strongly >> recommended. 100% transparency of a single transparent color in the >> original truecolor image will be preserved. There is no other support >> for preservation of alpha channel or transparency in the destination >> image. >> >> For best results, don't use this function -- write real truecolor >> PNGs and JPEGs. The disk space gain of conversion to palette is not >> great (for small images it can be negative) and the quality loss is >> ugly. However, the version of this function included in version >> 2.0.12 and later does do a better job than the version included prior >> to 2.0.12. > > > So, a few questions: > > 1) Has anyone looked into the impact of using PNG24 images on > a) image sizes > b) ka-map tile-cache sizing > c) compatibility with browsers > d) impact on browser memory usage or performance > 2) I thought Paul Spencer said to use DITHERED=OFF, is this correct > 3) Has anyone looked at the GD routine? Would it be possible to add a > palette of say 32 colors that would be "sticky" and priority over > other colors? > > -SteveW > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From woodbri at SWOODBRIDGE.COM Wed Aug 9 12:09:06 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 9 Aug 2006 15:09:06 -0400 Subject: Color shifts using QUANTIZE_COLORS=256 In-Reply-To: <44DA25FA.2090109@xs4all.nl> Message-ID: Bart, Thanks for the pointer to the bug. I will add some comments to it even though it is closed. -Steve Bart van den Eijnden (OSGIS) wrote: > Hi Steve, > > there is some info by Frank in the following bug report (assuming it is > not outdated): > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=684 > > Are you able to preprocess your tiles to 8-bit using a script that GDAL > provides? > > My experience with PNG24 is that they become huge (aerial photos of > about 500 by 500 pixels approach 1 Mb) and that ofcourse IE 6 (and > lower) has problems with alpha transparency. > > Best regards, > Bart > > Stephen Woodbridge wrote: > >> Hi all, >> >> Sorry for the cross-post, but this seems valid for both groups. >> >> I have mapserver configured to work with ka-map and things are working >> fine except we have noticed color shifts in tiles. We are using: >> >> OUTPUTFORMAT >> NAME PNG8 >> DRIVER "GD/PNG" >> EXTENSION "png" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> TRANSPARENT OFF >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=256" >> END >> >> in our mapfile and my hypotheses is that the GD QUANTIZE process is >> selecting different colors based on the colors available in the various >> meta-tiles. The mapserver source code calls the following function for >> this process and from the GD manual: >> >>> void gdImageTrueColorToPalette(gdImagePtr im, int ditherFlag, int >>> colorsWanted) gdImagePtr gdImageCreatePaletteFromTrueColor(gdImagePtr >>> im, int ditherFlag, int colorsWanted) (FUNCTION) >>> >>> gdImageCreatePaletteFromTrueColor returns a new image. >>> gdImageTrueColorToPalette permanently converts the existing image. >>> The two functions are otherwise identical. >>> >>> The function converts a truecolor image to a palette-based image, >>> using a high-quality two-pass quantization routine. If ditherFlag is >>> set, the image will be dithered to approximate colors better, at the >>> expense of some obvious "speckling." colorsWanted can be anything up >>> to 256. If the original source image includes photographic >>> information or anything that came out of a JPEG, 256 is strongly >>> recommended. 100% transparency of a single transparent color in the >>> original truecolor image will be preserved. There is no other support >>> for preservation of alpha channel or transparency in the destination >>> image. >>> >>> For best results, don't use this function -- write real truecolor >>> PNGs and JPEGs. The disk space gain of conversion to palette is not >>> great (for small images it can be negative) and the quality loss is >>> ugly. However, the version of this function included in version >>> 2.0.12 and later does do a better job than the version included prior >>> to 2.0.12. >> >> >> So, a few questions: >> >> 1) Has anyone looked into the impact of using PNG24 images on >> a) image sizes >> b) ka-map tile-cache sizing >> c) compatibility with browsers >> d) impact on browser memory usage or performance >> 2) I thought Paul Spencer said to use DITHERED=OFF, is this correct >> 3) Has anyone looked at the GD routine? Would it be possible to add a >> palette of say 32 colors that would be "sticky" and priority over >> other colors? >> >> -SteveW >> >> > > From bart_doggers at YAHOO.COM Wed Aug 9 12:46:45 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 9 Aug 2006 12:46:45 -0700 Subject: question on query In-Reply-To: <20060809161827.48229.qmail@web55708.mail.re3.yahoo.com> Message-ID: Hi Manfred, This search is a parcel search. Albert Albert Anderson wrote: Hi Manfred, Okay. I want to able to serach by TWP(township), RNG(range), and SCT(sections). Why do you need to put java extensions on the end of them? I dont know how to do that. The contents comes from the parcels shp file which TWP, RNG, and SCT are the field names in the file. I want the result in a highlighted element in the image map. That would be ideal. If not I can get a table working that would be okay too. I am using html code in dreamweaver. No perl or php used. Here is a site that I am going by kinda http://www.houstonengineeringinc.com/mapmorph_demo/mapserv.html thanks, Albert Manfred Meier wrote: Hi Albert, I can try to help, but I have no idea, what you are trying to do. - What is TWP, RNG and so on? - You write, you want to have drop down and text boxes. In my opinion you have to code these elements in HTML perhaps with javascript extensions. Do you know how to do that? Where does the contents of the drop downs come from? - What result do you want to have after submit? A highlighted element in the image and/or a table with detail data of the selected element? - I'm sure there are sites which do likely functions. Did you look at some example sites? - Do you use some scripting language like perl or php to dynamically create the html pages or are they static? Manfred Albert Anderson schrieb: > Hi, > > I would like some help with building this query. I want drop down bar > menu with TWP, RNG, RNG & SCT, TWP & RNG, and TWP & RNG & SCT. Then > three text boxes so you can put in the numbers. Have a submit button for > the results. Is there a way I can this do this with mapserver 4? How > would I get started with this? Could someone email me back. > > Thanks, > Albert > > ------------------------------------------------------------------------ > Stay in the know. Pulse on the new Yahoo.com. Check it out. > --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Wed Aug 9 12:47:26 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Wed, 9 Aug 2006 12:47:26 -0700 Subject: question on query In-Reply-To: <20060809161827.48229.qmail@web55708.mail.re3.yahoo.com> Message-ID: Hi Manfred, This search is a parcel search. Albert Albert Anderson wrote: Hi Manfred, Okay. I want to able to serach by TWP(township), RNG(range), and SCT(sections). Why do you need to put java extensions on the end of them? I dont know how to do that. The contents comes from the parcels shp file which TWP, RNG, and SCT are the field names in the file. I want the result in a highlighted element in the image map. That would be ideal. If not I can get a table working that would be okay too. I am using html code in dreamweaver. No perl or php used. Here is a site that I am going by kinda http://www.houstonengineeringinc.com/mapmorph_demo/mapserv.html thanks, Albert Manfred Meier wrote: Hi Albert, I can try to help, but I have no idea, what you are trying to do. - What is TWP, RNG and so on? - You write, you want to have drop down and text boxes. In my opinion you have to code these elements in HTML perhaps with javascript extensions. Do you know how to do that? Where does the contents of the drop downs come from? - What result do you want to have after submit? A highlighted element in the image and/or a table with detail data of the selected element? - I'm sure there are sites which do likely functions. Did you look at some example sites? - Do you use some scripting language like perl or php to dynamically create the html pages or are they static? Manfred Albert Anderson schrieb: > Hi, > > I would like some help with building this query. I want drop down bar > menu with TWP, RNG, RNG & SCT, TWP & RNG, and TWP & RNG & SCT. Then > three text boxes so you can put in the numbers. Have a submit button for > the results. Is there a way I can this do this with mapserver 4? How > would I get started with this? Could someone email me back. > > Thanks, > Albert > > ------------------------------------------------------------------------ > Stay in the know. Pulse on the new Yahoo.com. Check it out. > --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1??/min. --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Wed Aug 9 12:54:31 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 9 Aug 2006 15:54:31 -0400 Subject: Image location inside its corner coordinates Message-ID: Bruno - I would suggest not mixing problems at this point - let's not worry about ows_ metadata settings until you get the simple image display to work properly. Please leave out the METADATA statements until the image displays properly; then you'll be able to add the METADATA back in without being confused about what settings are helping and what settings are causing trouble. Yes, I suggested UNITS DD because your output and input image units are decimal degrees. You should have EXTENT and UNITS statements at the top level in your map file, and a PROJECTION block there, too (with the same settings as below, as you seem to want to display the image in its native unprojected coordinates). Is that the case? Can you post the whole map file? Are there other LAYER statements in the file? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: Bruno Patini Furtado [mailto:bpfurtado at gmail.com] Sent: Wednesday, August 09, 2006 1:47 PM To: Ed McNierney Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Image location inside its corner coordinates Hi Ed, On 8/9/06, Ed McNierney wrote: Bruno - Could you post the EXTENT statement you're using? Two things to check - UNITS DD should be there (should not affect this problem, however) and your EXTENT needs to be in the order MINX MINY MAXX MAXY, so it should be: EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 My extent is indeed like you said it should be: EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 It was because of the line below that you state that the units should be Decimal Degrees? UNIT["degree",0.0174532925199433], Your image is 1.5 degrees wide (X dimension) and 1 degree tall (Y dimension) so your output image size should also be that shape (600 pixels wide by 400 pixels high, for example) or you will see the map shrunk to fit the shape of the image. Your example shows the right proportion as gdalinfo tells the image is [1800, 1200] but I would like to set the layer metadata ows_extent with the actual image coordinates, not size, in order to show the image a bit better in the MapServer demo. Below goes my mapinfo layer element as I'm trying to configure it. LAYER NAME "my DEM Image" STATUS OFF TYPE RASTER DUMP TRUE DATA "SG-23-V-A.tif" PROJECTION "init=epsg:4326" END METADATA wcs_label "Some label" ows_extent "- 48.000416 -24.000416 -48.001816 -24.001816" wcs_resolution "0.00083 -0.00083" ows_srs "EPSG:4326" wcs_formats "GEOTIFFINT16" wcs_nativeformat "geotiff" END END - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruno Patini Furtado Sent: Wednesday, August 09, 2006 10:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image location inside its corner coordinates I have a DEM image of which below I've copied the gdalinfo output. Driver: GTiff/GeoTIFF Size is 1800, 1200 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-48.000416,-24.000416) Pixel Size = (0.00083333,-0.00083333 ) Metadata: AREA_OR_POINT=Area TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9 $ $Date: 2003/11/13 19:25:49EST $ TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( -48.0004159, -24.0004163) ( 48d 0'1.50"W, 24d 0'1.50"S) Lower Left ( -48.0004159, -25.0004164 ) ( 48d 0'1.50"W, 25d 0'1.50"S) Upper Right ( -46.5004159, -24.0004163) ( 46d30'1.50"W, 24d 0'1.50"S) Lower Right ( -46.5004159, -25.0004164) ( 46d30'1.50"W, 25d 0'1.50"S) Center ( -47.2504159, -24.5004163) ( 47d15'1.50"W, 24d30'1.50"S) Band 1 Block=1800x2 Type=UInt16, ColorInterp=Gray Overviews: 450x300, 225x150, 113x75, 57x38 I could take from it the EXTENT to use in my Mapfile using the Lower Left and Upper Right coordinates. But the problem is that the image is to small inside this coordinates and I can't find the image location inside then by this output. Is there some other utility to get this coordinates? -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhoward at AKIMEKA.COM Wed Aug 9 14:19:46 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Wed, 9 Aug 2006 11:19:46 -1000 Subject: NASA Blue Marble imagery In-Reply-To: A<4BF377919225F449BB097CB76FFE9BC83DE047@ptolemy.topozone.com> Message-ID: JMEWS II/Medical Situational Awareness (MSA) Akimeka, LLC 1305 North Holopono Street, Suite # 3 Kihei, HI 96753 Office (808) 442-7137 Fax??? (808) 442-7140 Cell?? (303) 829-1255 mhoward at akimeka.com Anybody know where I can download georeferenced tiles of Blue Marble imagery - preferably Aug.? The NASA site has PNG files - but they have no georeferencing and are pretty big. I'd have to process (tile) them anyway. TIA for any insight! Mark From woodbri at SWOODBRIDGE.COM Wed Aug 9 14:56:09 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 9 Aug 2006 17:56:09 -0400 Subject: [ka-Map-users] Color shifts using QUANTIZE_COLORS=256 In-Reply-To: Message-ID: Paul Spencer wrote: > Steve, > > I concluded the same thing you did (that the colours are mangled). > FrankW had an explanation for this that I didn't really understand. He > suggested that providing a mechanism to specify a fixed colour table > would be the real answer. > > Tile sizes in my experiments were 50% smaller in most cases (using > quantization). > > Dithering had no observable effect on the colour problem, but did result > in crappy looking images in most cases (hence I suggested turning it off). > > ImageMagick is able to produce outstanding 8bit pngs from 24bit > antialiased images, so it is possible. So have you guys done anything along the line of integrating ImageMagick with mapserver? How did you do your testing with ImageMagick? It seems that most of my tiles are close enough in color that it is not noticeable, but every now and then there is a very noticeable difference. > I would love to see something in mapserver that kept track of all the > colours that were allocated in the various styles and rendering stages, > and from the headers of the raster symbols, and used that as the colour > table when doing quantization or whatever is needed. > > As a minimum, it should be possible to specify a COLORS block or > something at the MAP level that would force those colours into the > output image. This would actually solve a long standing issue with 8 > bit images and raster symbols where antialiased text uses all the > colours and then the raster symbol colours get mangled. Yeah, it seems we should do something like this. We have been struggling with color shift issues for a few years now. We fix one and another pops up. Do you have any thoughts on using ImageMagick vs AGG? It seems that AGG would produce better images in general. I wonder if it does antialiasing directly into an 8-bit image which I would think would give you much better control. -Steve > My 2c > > Paul > > On 9-Aug-06, at 1:56 PM, Stephen Woodbridge wrote: > >> Hi all, >> >> Sorry for the cross-post, but this seems valid for both groups. >> >> I have mapserver configured to work with ka-map and things are working >> fine except we have noticed color shifts in tiles. We are using: >> >> OUTPUTFORMAT >> NAME PNG8 >> DRIVER "GD/PNG" >> EXTENSION "png" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> TRANSPARENT OFF >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=256" >> END >> >> in our mapfile and my hypotheses is that the GD QUANTIZE process is >> selecting different colors based on the colors available in the various >> meta-tiles. The mapserver source code calls the following function for >> this process and from the GD manual: >> >>> void gdImageTrueColorToPalette(gdImagePtr im, int ditherFlag, int >>> colorsWanted) gdImagePtr gdImageCreatePaletteFromTrueColor(gdImagePtr >>> im, int ditherFlag, int colorsWanted) (FUNCTION) >>> gdImageCreatePaletteFromTrueColor returns a new image. >>> gdImageTrueColorToPalette permanently converts the existing image. >>> The two functions are otherwise identical. >>> The function converts a truecolor image to a palette-based image, >>> using a high-quality two-pass quantization routine. If ditherFlag is >>> set, the image will be dithered to approximate colors better, at the >>> expense of some obvious "speckling." colorsWanted can be anything up >>> to 256. If the original source image includes photographic >>> information or anything that came out of a JPEG, 256 is strongly >>> recommended. 100% transparency of a single transparent color in the >>> original truecolor image will be preserved. There is no other support >>> for preservation of alpha channel or transparency in the destination >>> image. >>> For best results, don't use this function -- write real truecolor >>> PNGs and JPEGs. The disk space gain of conversion to palette is not >>> great (for small images it can be negative) and the quality loss is >>> ugly. However, the version of this function included in version >>> 2.0.12 and later does do a better job than the version included prior >>> to 2.0.12. >> >> So, a few questions: >> >> 1) Has anyone looked into the impact of using PNG24 images on >> a) image sizes >> b) ka-map tile-cache sizing >> c) compatibility with browsers >> d) impact on browser memory usage or performance >> 2) I thought Paul Spencer said to use DITHERED=OFF, is this correct >> 3) Has anyone looked at the GD routine? Would it be possible to add a >> palette of say 32 colors that would be "sticky" and priority over >> other colors? >> >> -SteveW >> _______________________________________________ >> ka-Map-users mailing list >> ka-Map-users at lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/ka-map-users > > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > > > > From mhoward at AKIMEKA.COM Wed Aug 9 16:05:42 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Wed, 9 Aug 2006 13:05:42 -1000 Subject: This is Cool - wikimapia.org In-Reply-To: A Message-ID: Google (http://translate.google.com/translate_t) translates: I would compound its inhabitants Harte Jamiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiielh God found sheep Salem Abenkel else, God willing, soon Yea you might want to check it out! Mark JMEWS II/Medical Situational Awareness (MSA) Akimeka, LLC 1305 North Holopono Street, Suite # 3 Kihei, HI 96753 Office (808) 442-7137 Fax (808) 442-7140 Cell (303) 829-1255 mhoward at akimeka.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David William Bitner Sent: Monday, August 07, 2006 3:12 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] This is Cool - wikimapia.org I don't know, but if the current administration sees this they are going to go off the wall and assume it's a terrorist plan.... On 8/7/06, Joe Bussell < joe at otsys.com> wrote: Cool indeed. There is a weird entry for my town. Can anyone decode the text for the following: http://wikimapia.org/#y=44087862&x=-123107429&z=16&l=0&m=a Is this area marked described in Arabic? I think this is an office park, but I will go drive over there to find out :) Joe Bussell Stephen Woodbridge wrote: > http://wikimapia.org/#y=42857846&x=-72015381&z=10&l=0&m=a > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From BBruce at GOV.MB.CA Wed Aug 9 16:14:00 2006 From: BBruce at GOV.MB.CA (Bruce, Bob (CON)) Date: Wed, 9 Aug 2006 18:14:00 -0500 Subject: Map Rendering Toolkits? Message-ID: Hi: this is not a MapServer question [sorry] but I was hoping that someone might know of a toolkit and could make suggestions. I am working with someone to migrate a Cadastral Mapping application from Visual C++ 6.0 into C# with Net 2.0 with the eventual goal of turning it into an open source and free application. We are looking for a map rendering toolkit to use with C# that is open source. Would anyone have any suggestions of a development tool to use? thanks, Bob Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Wed Aug 9 17:25:37 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 9 Aug 2006 19:25:37 -0500 Subject: [ka-Map-users] Color shifts using QUANTIZE_COLORS=256 Message-ID: You know what's funny is that old versions of MapServer used to reserve colors by computing a palette when looking at the mapfile. That way the vector data always was consistent. I think a PALETTE option within the IMAGE block might be a way to go. That way you could define a set of colors to pre-allocate when setting up 8-bit imagery. Something like: PALETTE 'colors.txt' Where colors.txt would contain: r g b r g b ... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-259-5473 >>> Stephen Woodbridge 08/09/06 4:56 PM >>> Paul Spencer wrote: > Steve, > > I concluded the same thing you did (that the colours are mangled). > FrankW had an explanation for this that I didn't really understand. He > suggested that providing a mechanism to specify a fixed colour table > would be the real answer. > > Tile sizes in my experiments were 50% smaller in most cases (using > quantization). > > Dithering had no observable effect on the colour problem, but did result > in crappy looking images in most cases (hence I suggested turning it off). > > ImageMagick is able to produce outstanding 8bit pngs from 24bit > antialiased images, so it is possible. So have you guys done anything along the line of integrating ImageMagick with mapserver? How did you do your testing with ImageMagick? It seems that most of my tiles are close enough in color that it is not noticeable, but every now and then there is a very noticeable difference. > I would love to see something in mapserver that kept track of all the > colours that were allocated in the various styles and rendering stages, > and from the headers of the raster symbols, and used that as the colour > table when doing quantization or whatever is needed. > > As a minimum, it should be possible to specify a COLORS block or > something at the MAP level that would force those colours into the > output image. This would actually solve a long standing issue with 8 > bit images and raster symbols where antialiased text uses all the > colours and then the raster symbol colours get mangled. Yeah, it seems we should do something like this. We have been struggling with color shift issues for a few years now. We fix one and another pops up. Do you have any thoughts on using ImageMagick vs AGG? It seems that AGG would produce better images in general. I wonder if it does antialiasing directly into an 8-bit image which I would think would give you much better control. -Steve > My 2c > > Paul > > On 9-Aug-06, at 1:56 PM, Stephen Woodbridge wrote: > >> Hi all, >> >> Sorry for the cross-post, but this seems valid for both groups. >> >> I have mapserver configured to work with ka-map and things are working >> fine except we have noticed color shifts in tiles. We are using: >> >> OUTPUTFORMAT >> NAME PNG8 >> DRIVER "GD/PNG" >> EXTENSION "png" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> TRANSPARENT OFF >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=256" >> END >> >> in our mapfile and my hypotheses is that the GD QUANTIZE process is >> selecting different colors based on the colors available in the various >> meta-tiles. The mapserver source code calls the following function for >> this process and from the GD manual: >> >>> void gdImageTrueColorToPalette(gdImagePtr im, int ditherFlag, int >>> colorsWanted) gdImagePtr gdImageCreatePaletteFromTrueColor(gdImagePtr >>> im, int ditherFlag, int colorsWanted) (FUNCTION) >>> gdImageCreatePaletteFromTrueColor returns a new image. >>> gdImageTrueColorToPalette permanently converts the existing image. >>> The two functions are otherwise identical. >>> The function converts a truecolor image to a palette-based image, >>> using a high-quality two-pass quantization routine. If ditherFlag is >>> set, the image will be dithered to approximate colors better, at the >>> expense of some obvious "speckling." colorsWanted can be anything up >>> to 256. If the original source image includes photographic >>> information or anything that came out of a JPEG, 256 is strongly >>> recommended. 100% transparency of a single transparent color in the >>> original truecolor image will be preserved. There is no other support >>> for preservation of alpha channel or transparency in the destination >>> image. >>> For best results, don't use this function -- write real truecolor >>> PNGs and JPEGs. The disk space gain of conversion to palette is not >>> great (for small images it can be negative) and the quality loss is >>> ugly. However, the version of this function included in version >>> 2.0.12 and later does do a better job than the version included prior >>> to 2.0.12. >> >> So, a few questions: >> >> 1) Has anyone looked into the impact of using PNG24 images on >> a) image sizes >> b) ka-map tile-cache sizing >> c) compatibility with browsers >> d) impact on browser memory usage or performance >> 2) I thought Paul Spencer said to use DITHERED=OFF, is this correct >> 3) Has anyone looked at the GD routine? Would it be possible to add a >> palette of say 32 colors that would be "sticky" and priority over >> other colors? >> >> -SteveW >> _______________________________________________ >> ka-Map-users mailing list >> ka-Map-users at lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/ka-map-users > > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > > > > _______________________________________________ ka-Map-users mailing list ka-Map-users at lists.maptools.org http://lists.maptools.org/mailman/listinfo/ka-map-users From woodbri at SWOODBRIDGE.COM Wed Aug 9 17:55:36 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 9 Aug 2006 20:55:36 -0400 Subject: [ka-Map-users] Color shifts using QUANTIZE_COLORS=256 In-Reply-To: <44DA36B20200008F00000C8B@co5.dnr.state.mn.us> Message-ID: Steve Lime wrote: > You know what's funny is that old versions of MapServer used to reserve > colors > by computing a palette when looking at the mapfile. That way the vector > data > always was consistent. I think there is has been code added to do this again in the current version of code. > I think a PALETTE option within the IMAGE block might be a way to go. > That way > you could define a set of colors to pre-allocate when setting up 8-bit > imagery. Something > like: > > PALETTE 'colors.txt' > > Where colors.txt would contain: > > r g b > r g b > ... The other way to do this that I have been doing for some time now is to create an image in photoshop and set single pixels to the colors that are important to me and insert is as the first LAYER in the mapfile which causes its colors to be added to the map image before any antialiasing is done. BUT, this does not solve the problem of PNG24 RGBA images required for AA brushes and squashing images to PNG8 with the gdCreateColorPaletteFromTrueColor() (or whatever it is called) function because we do not have direct control of the color palette in this case, unless we clone and modify the algorithm by somehow making the colors "sticky" in the palette. Steve I would be interested in knowing what you think about the later approach. Since I only have limited experience with ImageMagick, it is really hard for me to say if it would solve these particular problems or not. Than again, if we want really pretty images AGG seems to be the way to go :) -SteveW > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-259-5473 >>>> Stephen Woodbridge 08/09/06 4:56 PM >>> > Paul Spencer wrote: >> Steve, >> >> I concluded the same thing you did (that the colours are mangled). >> FrankW had an explanation for this that I didn't really understand. > He >> suggested that providing a mechanism to specify a fixed colour table >> would be the real answer. >> >> Tile sizes in my experiments were 50% smaller in most cases (using >> quantization). >> >> Dithering had no observable effect on the colour problem, but did > result >> in crappy looking images in most cases (hence I suggested turning it > off). >> ImageMagick is able to produce outstanding 8bit pngs from 24bit >> antialiased images, so it is possible. > > So have you guys done anything along the line of integrating ImageMagick > > with mapserver? How did you do your testing with ImageMagick? It seems > > that most of my tiles are close enough in color that it is not > noticeable, but every now and then there is a very noticeable > difference. > >> I would love to see something in mapserver that kept track of all the >> colours that were allocated in the various styles and rendering > stages, >> and from the headers of the raster symbols, and used that as the > colour >> table when doing quantization or whatever is needed. >> >> As a minimum, it should be possible to specify a COLORS block or >> something at the MAP level that would force those colours into the >> output image. This would actually solve a long standing issue with 8 >> bit images and raster symbols where antialiased text uses all the >> colours and then the raster symbol colours get mangled. > > Yeah, it seems we should do something like this. We have been struggling > > with color shift issues for a few years now. We fix one and another pops > up. > > Do you have any thoughts on using ImageMagick vs AGG? It seems that AGG > would produce better images in general. I wonder if it does antialiasing > > directly into an 8-bit image which I would think would give you much > better control. > > -Steve > >> My 2c >> >> Paul >> >> On 9-Aug-06, at 1:56 PM, Stephen Woodbridge wrote: >> >>> Hi all, >>> >>> Sorry for the cross-post, but this seems valid for both groups. >>> >>> I have mapserver configured to work with ka-map and things are > working >>> fine except we have noticed color shifts in tiles. We are using: >>> >>> OUTPUTFORMAT >>> NAME PNG8 >>> DRIVER "GD/PNG" >>> EXTENSION "png" >>> MIMETYPE "image/png" >>> IMAGEMODE RGBA >>> TRANSPARENT OFF >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=256" >>> END >>> >>> in our mapfile and my hypotheses is that the GD QUANTIZE process is >>> selecting different colors based on the colors available in the > various >>> meta-tiles. The mapserver source code calls the following function > for >>> this process and from the GD manual: >>> >>>> void gdImageTrueColorToPalette(gdImagePtr im, int ditherFlag, int >>>> colorsWanted) gdImagePtr > gdImageCreatePaletteFromTrueColor(gdImagePtr >>>> im, int ditherFlag, int colorsWanted) (FUNCTION) >>>> gdImageCreatePaletteFromTrueColor returns a new image. >>>> gdImageTrueColorToPalette permanently converts the existing image. >>>> The two functions are otherwise identical. >>>> The function converts a truecolor image to a palette-based image, >>>> using a high-quality two-pass quantization routine. If ditherFlag is >>>> set, the image will be dithered to approximate colors better, at the >>>> expense of some obvious "speckling." colorsWanted can be anything up >>>> to 256. If the original source image includes photographic >>>> information or anything that came out of a JPEG, 256 is strongly >>>> recommended. 100% transparency of a single transparent color in the >>>> original truecolor image will be preserved. There is no other > support >>>> for preservation of alpha channel or transparency in the destination >>>> image. >>>> For best results, don't use this function -- write real truecolor >>>> PNGs and JPEGs. The disk space gain of conversion to palette is not >>>> great (for small images it can be negative) and the quality loss is >>>> ugly. However, the version of this function included in version >>>> 2.0.12 and later does do a better job than the version included > prior >>>> to 2.0.12. >>> So, a few questions: >>> >>> 1) Has anyone looked into the impact of using PNG24 images on >>> a) image sizes >>> b) ka-map tile-cache sizing >>> c) compatibility with browsers >>> d) impact on browser memory usage or performance >>> 2) I thought Paul Spencer said to use DITHERED=OFF, is this correct >>> 3) Has anyone looked at the GD routine? Would it be possible to add a > >>> palette of say 32 colors that would be "sticky" and priority over >>> other colors? >>> >>> -SteveW >>> _______________________________________________ >>> ka-Map-users mailing list >>> ka-Map-users at lists.maptools.org >>> http://lists.maptools.org/mailman/listinfo/ka-map-users >> +-----------------------------------------------------------------+ >> |Paul Spencer pspencer at dmsolutions.ca | >> +-----------------------------------------------------------------+ >> |Applications & Software Development | >> |DM Solutions Group Inc http://www.dmsolutions.ca/| >> +-----------------------------------------------------------------+ >> >> >> >> >> > > _______________________________________________ > ka-Map-users mailing list > ka-Map-users at lists.maptools.org > http://lists.maptools.org/mailman/listinfo/ka-map-users > > From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Aug 9 23:19:47 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Thu, 10 Aug 2006 08:19:47 +0200 Subject: flaw in SLD label implementation Message-ID: Hi list, I am trying to get Mapserver (version 4.8.4) to display labels for a certain attribute column. This works fine if I use the non-conformant OGC request (only part of my SLD): According to the OGC SLD spec Mapserver should just label with MY_COLUMN as a static string. But it does not work if I use it the way the example in the SLD spec indicates (using ogc:PropertyName): I get: [Thu Aug 10 08:06:30 2006] [error] [client 145.50.39.34] Thu Aug 10 08:06:30 2006 - msDBFGetItemIndex(): DBASE file error. Item 'PropertyName' not found. Example from SLD spec: locatedAt Why is this important? So that you can label using attribute values and static strings combined, like: Can this be fixed? Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Aug 9 23:37:42 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Thu, 10 Aug 2006 08:37:42 +0200 Subject: flaw in SLD label implementation Message-ID: In the mean-time I have opened up the following bug report for this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1857 Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Eijnden, Bart van den (AGI) Verzonden: donderdag 10 augustus 2006 8:20 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] flaw in SLD label implementation Hi list, I am trying to get Mapserver (version 4.8.4) to display labels for a certain attribute column. This works fine if I use the non-conformant OGC request (only part of my SLD): According to the OGC SLD spec Mapserver should just label with MY_COLUMN as a static string. But it does not work if I use it the way the example in the SLD spec indicates (using ogc:PropertyName): I get: [Thu Aug 10 08:06:30 2006] [error] [client 145.50.39.34] Thu Aug 10 08:06:30 2006 - msDBFGetItemIndex(): DBASE file error. Item 'PropertyName' not found. Example from SLD spec: locatedAt Why is this important? So that you can label using attribute values and static strings combined, like: Can this be fixed? Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From m.meier at SPIEKERMANN.DE Wed Aug 9 23:52:05 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 10 Aug 2006 08:52:05 +0200 Subject: question on query In-Reply-To: <20060809194726.54998.qmail@web55709.mail.re3.yahoo.com> Message-ID: Hi Albert, - I mentioned javascript (not java) because sometimes you need it to make a web based gui more comfortable. For a first try it is not necessary. - Thanks for the explantions of TWP and so on and for the example url. - Lawrence did give you a good example. - Perhaps to make it more clear, how to put an url together here two examples: 1) Try http://www.elbe-link.de/cgi-bin/map_test1/mapserv?map=test1.map&mode=map&mapext=2545900+5673000+2547600+5674400 you should get an image with some polygons (parcels) and their id numbers. 2) Try http://www.elbe-link.de/cgi-bin/map_test1/mapserv?map=test1.map&mode=itemquery&mapext=2545900+5673000+2547600+5674400&qlayer=zel1&qitem=ZELNR&qstring="1405" we did a query for the polygon with the number 1405 in the data field "ZELNR". You should get an image with a highlighted polygon. You see the differences in mode, qlayer, qitem and qstring. At the moment I'm trying to put a qstring in the form "[ZELNR]=1405" together but it does not work. Sorry I have never worked with mode = itemquery and so on. Manfred Albert Anderson schrieb: > Hi Manfred, > > This search is a parcel search. > > Albert > > Albert Anderson wrote: > > Hi Manfred, > > Okay. I want to able to serach by TWP(township), RNG(range), and > SCT(sections). > > Why do you need to put java extensions on the end of them? I dont > know how to do that. The contents comes from the parcels shp file > which TWP, RNG, and SCT are the field names in the file. > > I want the result in a highlighted element in the image map. That > would be ideal. If not I can get a table working that would be okay > too. > > I am using html code in dreamweaver. No perl or php used. > > Here is a site that I am going by kinda > http://www.houstonengineeringinc.com/mapmorph_demo/mapserv.html > > thanks, > Albert > > > Manfred Meier wrote: > > Hi Albert, > > I can try to help, but I have no idea, what you are trying to do. > > - What is TWP, RNG and so on? > > - You write, you want to have drop down and text boxes. In my > opinion > you have to code these elements in HTML perhaps with javascript > extensions. Do you know how to do that? Where does the contents > of the > drop downs come from? > > - What result do you want to have after submit? A highlighted > element in > the image and/or a table with detail data of the selected element? > > - I'm sure there are sites which do likely functions. Did you > look at > some example sites? > > - Do you use some scripting language like perl or php to > dynamically > create the html pages or are they static? > > > > Manfred > > > Albert Anderson schrieb: > > Hi, > > > > I would like some help with building this query. I want drop > down bar > > menu with TWP, RNG, RNG & SCT, TWP & RNG, and TWP & RNG & > SCT. Then > > three text boxes so you can put in the numbers. Have a submit > button for > > the results. Is there a way I can this do this with mapserver > 4? How > > would I get started with this? Could someone email me back. > > > > Thanks, > > Albert > > > > > ------------------------------------------------------------------------ > > Stay in the know. Pulse on the new Yahoo.com. Check it out. > > > > > ------------------------------------------------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great > rates starting at 1??/min. > > > > > > ------------------------------------------------------------------------ > Do you Yahoo!? > Get on board. You're invited > > to try the new Yahoo! Mail Beta. From hartpence_gis at CO.JASPER.IA.US Tue Aug 8 13:52:42 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Tue, 8 Aug 2006 15:52:42 -0500 Subject: Select and highlight features Message-ID: I know this is a very simple question, but I am not figuring it out. I know how to query a feature and get MapServer to zoom to it. I have seen examples where the selected feature was highlighted and other examples where the feature is highlighted and the unselected features are not displayed. Could someone explain how this is done. I am using CGI MapServer. I will probably need a fairly thorough explanation. Thanks! Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From siukola.antti at GMAIL.COM Thu Aug 10 05:02:15 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 10 Aug 2006 15:02:15 +0300 Subject: QueryMap hiliting and layer object styling bug? Message-ID: Hi! I have configured some of the layers to use the defined color in the first style element for fill and a another style for outline color and have also set the qeurymap style to hilite and defined a color there too. But when an object is selected only the outline color uses the hilite color and the fill color stays the same only removing the transparency of the selected object. Here's the map-file configuration: ... QUERYMAP STYLE HILITE COLOR 255 240 0 END ... STYLE COLOR 255 133 2 END #style STYLE # thick outline (could use a circle symbol with size too) OUTLINECOLOR 0 0 0 WIDTH 2 END ... Is this a bug? Cheers! Antti S From pspencer at DMSOLUTIONS.CA Thu Aug 10 05:33:36 2006 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Thu, 10 Aug 2006 08:33:36 -0400 Subject: [ka-Map-users] Color shifts using QUANTIZE_COLORS=256 In-Reply-To: <44DA8408.2030201@swoodbridge.com> Message-ID: Steve and Steve :) what would it take to get the PALETTE option implemented (perhaps for 5.0?) and supported in the quantization code? ImageMagick does do this very well. I would assume that AGG could do the same, and likely much faster than ImageMagick (which appears to be 2-5 times slower). Cheers Paul On 9-Aug-06, at 8:55 PM, Stephen Woodbridge wrote: > Steve Lime wrote: >> You know what's funny is that old versions of MapServer used to >> reserve >> colors >> by computing a palette when looking at the mapfile. That way the >> vector >> data >> always was consistent. > > I think there is has been code added to do this again in the > current version of code. > >> I think a PALETTE option within the IMAGE block might be a way to go. >> That way >> you could define a set of colors to pre-allocate when setting up 8- >> bit >> imagery. Something >> like: >> PALETTE 'colors.txt' >> Where colors.txt would contain: >> r g b >> r g b >> ... > > The other way to do this that I have been doing for some time now > is to create an image in photoshop and set single pixels to the > colors that are important to me and insert is as the first LAYER in > the mapfile which causes its colors to be added to the map image > before any antialiasing is done. > > BUT, this does not solve the problem of PNG24 RGBA images required > for AA brushes and squashing images to PNG8 with the > gdCreateColorPaletteFromTrueColor() (or whatever it is called) > function because we do not have direct control of the color palette > in this case, unless we clone and modify the algorithm by somehow > making the colors "sticky" in the palette. > > Steve I would be interested in knowing what you think about the > later approach. > > Since I only have limited experience with ImageMagick, it is really > hard for me to say if it would solve these particular problems or > not. Than again, if we want really pretty images AGG seems to be > the way to go :) > > -SteveW > >> Steve >> Stephen Lime >> Data & Applications Manager >> Minnesota DNR >> 500 Lafayette Road >> St. Paul, MN 55155 >> 651-259-5473 >>>>> Stephen Woodbridge 08/09/06 4:56 PM >>> >> Paul Spencer wrote: >>> Steve, >>> >>> I concluded the same thing you did (that the colours are >>> mangled). FrankW had an explanation for this that I didn't >>> really understand. >> He >>> suggested that providing a mechanism to specify a fixed colour >>> table would be the real answer. >>> >>> Tile sizes in my experiments were 50% smaller in most cases >>> (using quantization). >>> >>> Dithering had no observable effect on the colour problem, but did >> result >>> in crappy looking images in most cases (hence I suggested turning it >> off). >>> ImageMagick is able to produce outstanding 8bit pngs from 24bit >>> antialiased images, so it is possible. >> So have you guys done anything along the line of integrating >> ImageMagick >> with mapserver? How did you do your testing with ImageMagick? It >> seems >> that most of my tiles are close enough in color that it is not >> noticeable, but every now and then there is a very noticeable >> difference. >>> I would love to see something in mapserver that kept track of all >>> the colours that were allocated in the various styles and rendering >> stages, >>> and from the headers of the raster symbols, and used that as the >> colour >>> table when doing quantization or whatever is needed. >>> >>> As a minimum, it should be possible to specify a COLORS block or >>> something at the MAP level that would force those colours into >>> the output image. This would actually solve a long standing >>> issue with 8 bit images and raster symbols where antialiased text >>> uses all the colours and then the raster symbol colours get mangled. >> Yeah, it seems we should do something like this. We have been >> struggling >> with color shift issues for a few years now. We fix one and >> another pops >> up. >> Do you have any thoughts on using ImageMagick vs AGG? It seems >> that AGG would produce better images in general. I wonder if it >> does antialiasing >> directly into an 8-bit image which I would think would give you >> much better control. >> -Steve >>> My 2c >>> >>> Paul >>> >>> On 9-Aug-06, at 1:56 PM, Stephen Woodbridge wrote: >>> >>>> Hi all, >>>> >>>> Sorry for the cross-post, but this seems valid for both groups. >>>> >>>> I have mapserver configured to work with ka-map and things are >> working >>>> fine except we have noticed color shifts in tiles. We are using: >>>> >>>> OUTPUTFORMAT >>>> NAME PNG8 >>>> DRIVER "GD/PNG" >>>> EXTENSION "png" >>>> MIMETYPE "image/png" >>>> IMAGEMODE RGBA >>>> TRANSPARENT OFF >>>> FORMATOPTION "QUANTIZE_FORCE=ON" >>>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>>> FORMATOPTION "QUANTIZE_COLORS=256" >>>> END >>>> >>>> in our mapfile and my hypotheses is that the GD QUANTIZE process is >>>> selecting different colors based on the colors available in the >> various >>>> meta-tiles. The mapserver source code calls the following function >> for >>>> this process and from the GD manual: >>>> >>>>> void gdImageTrueColorToPalette(gdImagePtr im, int ditherFlag, int >>>>> colorsWanted) gdImagePtr >> gdImageCreatePaletteFromTrueColor(gdImagePtr >>>>> im, int ditherFlag, int colorsWanted) (FUNCTION) >>>>> gdImageCreatePaletteFromTrueColor returns a new image. >>>>> gdImageTrueColorToPalette permanently converts the existing image. >>>>> The two functions are otherwise identical. >>>>> The function converts a truecolor image to a palette-based image, >>>>> using a high-quality two-pass quantization routine. If >>>>> ditherFlag is >>>>> set, the image will be dithered to approximate colors better, >>>>> at the >>>>> expense of some obvious "speckling." colorsWanted can be >>>>> anything up >>>>> to 256. If the original source image includes photographic >>>>> information or anything that came out of a JPEG, 256 is strongly >>>>> recommended. 100% transparency of a single transparent color in >>>>> the >>>>> original truecolor image will be preserved. There is no other >> support >>>>> for preservation of alpha channel or transparency in the >>>>> destination >>>>> image. >>>>> For best results, don't use this function -- write real truecolor >>>>> PNGs and JPEGs. The disk space gain of conversion to palette is >>>>> not >>>>> great (for small images it can be negative) and the quality >>>>> loss is >>>>> ugly. However, the version of this function included in version >>>>> 2.0.12 and later does do a better job than the version included >> prior >>>>> to 2.0.12. >>>> So, a few questions: >>>> >>>> 1) Has anyone looked into the impact of using PNG24 images on >>>> a) image sizes >>>> b) ka-map tile-cache sizing >>>> c) compatibility with browsers >>>> d) impact on browser memory usage or performance >>>> 2) I thought Paul Spencer said to use DITHERED=OFF, is this correct >>>> 3) Has anyone looked at the GD routine? Would it be possible to >>>> add a >>>> palette of say 32 colors that would be "sticky" and priority >>>> over other colors? >>>> >>>> -SteveW >>>> _______________________________________________ >>>> ka-Map-users mailing list >>>> ka-Map-users at lists.maptools.org >>>> http://lists.maptools.org/mailman/listinfo/ka-map-users >>> +-----------------------------------------------------------------+ >>> |Paul Spencer pspencer at dmsolutions.ca | >>> +-----------------------------------------------------------------+ >>> |Applications & Software Development | >>> |DM Solutions Group Inc http://www.dmsolutions.ca/| >>> +-----------------------------------------------------------------+ >>> >>> >>> >>> >>> >> _______________________________________________ >> ka-Map-users mailing list >> ka-Map-users at lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/ka-map-users > +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From David.Fawcett at STATE.MN.US Thu Aug 10 06:10:04 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 10 Aug 2006 08:10:04 -0500 Subject: question on query In-Reply-To: A<44DAD795.4060308@spiekermann.de> Message-ID: Manfred, This should work as a qstring: http://www.elbe-link.de/cgi-bin/map_test1/mapserv?map=test1.map&mode=itemquery&qlayer=zel1&qstring=([ZELNR]=1405) Albert, the concept is that you have to use html and/or javascript on your page to build a http request (url or post) to send to MapServer. I would look at the code behind Lawrence's example. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Manfred Meier Sent: Thursday, August 10, 2006 1:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] question on query Hi Albert, - I mentioned javascript (not java) because sometimes you need it to make a web based gui more comfortable. For a first try it is not necessary. - Thanks for the explantions of TWP and so on and for the example url. - Lawrence did give you a good example. - Perhaps to make it more clear, how to put an url together here two examples: 1) Try http://www.elbe-link.de/cgi-bin/map_test1/mapserv?map=test1.map&mode=map&mapext=2545900+5673000+2547600+5674400 you should get an image with some polygons (parcels) and their id numbers. 2) Try http://www.elbe-link.de/cgi-bin/map_test1/mapserv?map=test1.map&mode=itemquery&mapext=2545900+5673000+2547600+5674400&qlayer=zel1&qitem=ZELNR&qstring="1405" we did a query for the polygon with the number 1405 in the data field "ZELNR". You should get an image with a highlighted polygon. You see the differences in mode, qlayer, qitem and qstring. At the moment I'm trying to put a qstring in the form "[ZELNR]=1405" together but it does not work. Sorry I have never worked with mode = itemquery and so on. Manfred Albert Anderson schrieb: > Hi Manfred, > > This search is a parcel search. > > Albert > > Albert Anderson wrote: > > Hi Manfred, > > Okay. I want to able to serach by TWP(township), RNG(range), and > SCT(sections). > > Why do you need to put java extensions on the end of them? I dont > know how to do that. The contents comes from the parcels shp file > which TWP, RNG, and SCT are the field names in the file. > > I want the result in a highlighted element in the image map. That > would be ideal. If not I can get a table working that would be okay > too. > > I am using html code in dreamweaver. No perl or php used. > > Here is a site that I am going by kinda > http://www.houstonengineeringinc.com/mapmorph_demo/mapserv.html > > thanks, > Albert > > > Manfred Meier wrote: > > Hi Albert, > > I can try to help, but I have no idea, what you are trying to > do. > > - What is TWP, RNG and so on? > > - You write, you want to have drop down and text boxes. In my > opinion > you have to code these elements in HTML perhaps with javascript > extensions. Do you know how to do that? Where does the contents > of the > drop downs come from? > > - What result do you want to have after submit? A highlighted > element in > the image and/or a table with detail data of the selected > element? > > - I'm sure there are sites which do likely functions. Did you > look at > some example sites? > > - Do you use some scripting language like perl or php to > dynamically > create the html pages or are they static? > > > > Manfred > > > Albert Anderson schrieb: > > Hi, > > > > I would like some help with building this query. I want drop > down bar > > menu with TWP, RNG, RNG & SCT, TWP & RNG, and TWP & RNG & > SCT. Then > > three text boxes so you can put in the numbers. Have a submit > button for > > the results. Is there a way I can this do this with mapserver > 4? How > > would I get started with this? Could someone email me back. > > > > Thanks, > > Albert > > > > > ------------------------------------------------------------------------ > > Stay in the know. Pulse on the new Yahoo.com. Check it out. > > > > > ------------------------------------------------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great > rates starting at 1??/min. > > com/evt=39666/*http://messenger.yahoo.com> > > > com/evt=39666/*http://messenger.yahoo.com> > > ---------------------------------------------------------------------- > -- > Do you Yahoo!? > Get on board. You're invited > > to try the new Yahoo! Mail Beta. From m.meier at SPIEKERMANN.DE Thu Aug 10 06:24:05 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 10 Aug 2006 15:24:05 +0200 Subject: question on query In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB088C@s-sp22.pca.state.mn.us> Message-ID: David, thank you very much. I tried all combinations of ' and " and I got every time the same polygon 1407 highlighted. Now it works! Manfred Fawcett, David schrieb: > Manfred, > > This should work as a qstring: > > http://www.elbe-link.de/cgi-bin/map_test1/mapserv?map=test1.map&mode=itemquery&qlayer=zel1&qstring=([ZELNR]=1405) > > Albert, the concept is that you have to use html and/or javascript on your page to build a http request (url or post) to send to MapServer. I would look at the code behind Lawrence's example. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Manfred Meier > Sent: Thursday, August 10, 2006 1:52 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] question on query > > > Hi Albert, > > - I mentioned javascript (not java) because sometimes you need it to > make a web based gui more comfortable. For a first try it is not necessary. > > - Thanks for the explantions of TWP and so on and for the example url. > > - Lawrence did give you a good example. > > - Perhaps to make it more clear, how to put an url together here two > examples: > > 1) Try http://www.elbe-link.de/cgi-bin/map_test1/mapserv?map=test1.map&mode=map&mapext=2545900+5673000+2547600+5674400 > you should get an image with some polygons (parcels) and their id numbers. > > 2) Try http://www.elbe-link.de/cgi-bin/map_test1/mapserv?map=test1.map&mode=itemquery&mapext=2545900+5673000+2547600+5674400&qlayer=zel1&qitem=ZELNR&qstring="1405" > we did a query for the polygon with the number 1405 in the data field > "ZELNR". You should get an image with a highlighted polygon. > > You see the differences in mode, qlayer, qitem and qstring. > > At the moment I'm trying to put a qstring in the form "[ZELNR]=1405" > together but it does not work. Sorry I have never worked with mode = > itemquery and so on. > > Manfred > > > > > > > Albert Anderson schrieb: > > >>Hi Manfred, >> >> This search is a parcel search. >> >>Albert >> >>Albert Anderson wrote: >> >> Hi Manfred, >> >> Okay. I want to able to serach by TWP(township), RNG(range), and >> SCT(sections). >> >> Why do you need to put java extensions on the end of them? I dont >> know how to do that. The contents comes from the parcels shp file >> which TWP, RNG, and SCT are the field names in the file. >> >> I want the result in a highlighted element in the image map. That >> would be ideal. If not I can get a table working that would be okay >> too. >> >> I am using html code in dreamweaver. No perl or php used. >> >> Here is a site that I am going by kinda >> http://www.houstonengineeringinc.com/mapmorph_demo/mapserv.html >> >> thanks, >> Albert >> >> >> Manfred Meier wrote: >> >> Hi Albert, >> >> I can try to help, but I have no idea, what you are trying to >>do. >> >> - What is TWP, RNG and so on? >> >> - You write, you want to have drop down and text boxes. In my >> opinion >> you have to code these elements in HTML perhaps with javascript >> extensions. Do you know how to do that? Where does the contents >> of the >> drop downs come from? >> >> - What result do you want to have after submit? A highlighted >> element in >> the image and/or a table with detail data of the selected >>element? >> >> - I'm sure there are sites which do likely functions. Did you >> look at >> some example sites? >> >> - Do you use some scripting language like perl or php to >> dynamically >> create the html pages or are they static? >> >> >> >> Manfred >> >> >> Albert Anderson schrieb: >> > Hi, >> > >> > I would like some help with building this query. I want drop >> down bar >> > menu with TWP, RNG, RNG & SCT, TWP & RNG, and TWP & RNG & >> SCT. Then >> > three text boxes so you can put in the numbers. Have a submit >> button for >> > the results. Is there a way I can this do this with mapserver >> 4? How >> > would I get started with this? Could someone email me back. >> > >> > Thanks, >> > Albert >> > >> > >> ------------------------------------------------------------------------ >> > Stay in the know. Pulse on the new Yahoo.com. Check it out. >> > >> >> >> ------------------------------------------------------------------------ >> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great >> rates starting at 1??/min. >> >>>com/evt=39666/*http://messenger.yahoo.com> >> >> >>>com/evt=39666/*http://messenger.yahoo.com> >> >>---------------------------------------------------------------------- >>-- >>Do you Yahoo!? >>Get on board. You're invited >> >>to try the new Yahoo! Mail Beta. > > From mikesaunt at GMAIL.COM Thu Aug 10 06:51:02 2006 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Thu, 10 Aug 2006 14:51:02 +0100 Subject: HELP! Application Error - ArcSDE / MapServer 4.8 Message-ID: Hi All I've got an issue with ArcSde and MapServer running in a windows environment. I've copied the arcsde 9.1 libmap.dll and ogr_sde.dll into the MS directory. I have an ArcSDE 9.1 media pack client library installed on the mapserver box and a remote server with ArcSde 8.3. I can connect - as when I have invalid credentials I get valid errors return from MS - and I can find the sde layers - if I have the wrong TYPE for the layer then I get an error message from MS - all correct. The issue arises that when I have the correct connection string and the correct layer name I get an application error dialog box appearing with a memory read error. I can't seem to get any debug messages via the ms.logand also the mapserv -v via the command prompt says I have input type SDE. I'm sure it will be a little tweak but am starting to lose it a bit - also I am on a client site so can't debug etc through the night. LAYER NAME Landline TYPE POLYGON STATUS default CONNECTION "192.168.62.27,port:5156,UNI7,sde,sde" CONNECTIONTYPE SDE DATA "UNISDELIVE.UFRM_BCPLOT_POLY,SHAPE,SDE.DEFAULT" CLASS END END Has anyone come across this before? Thanks in advance Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From bart_doggers at YAHOO.COM Thu Aug 10 07:49:58 2006 From: bart_doggers at YAHOO.COM (Albert Anderson) Date: Thu, 10 Aug 2006 07:49:58 -0700 Subject: question on query In-Reply-To: <005101c6bbd4$d3a00ba0$510a000a@jasper1.com> Message-ID: Hi Lawrence, I tried copying your code and changing out your information to fit mine. Its not working to well. My button isnt doing anything. Here is my html code. Maybe you can look at it? I dont know what I am doing. Thanks, Albert Richland County GIS Map Server
Map Tools

Map Layers
Boundaries
  County
  Township
  Section

  Parcels (Search)
 
City

Environment
  Rivers
  Lakes

 Transportation
  Railroad
  Roads

Backgrounds
  Aerial Photos
            (2003 FSA-NAIP)

 

 

pan nw
pan north
pan ne
pan west
pan east
pan sw
pan south
pan se
Reference Map

Map Scale = 1: [scale]
Latitude: [mapx]
Longitude: [mapy]

Legend

 

Search for a Parcel:
Section Township Range  
 

Lawrence Hartpence wrote: Message Sorry, our county runs Ranges 17 - 21 and Townships 78 - 81. Sections you know go from 1-36. Lawrence --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpfurtado at GMAIL.COM Thu Aug 10 07:50:50 2006 From: bpfurtado at GMAIL.COM (Bruno Patini Furtado) Date: Thu, 10 Aug 2006 11:50:50 -0300 Subject: Image location inside its corner coordinates In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DE047@ptolemy.topozone.com> Message-ID: Hi Ed, On 8/9/06, Ed McNierney wrote: > > Bruno - > > I would suggest not mixing problems at this point - let's not worry about > ows_ metadata settings until you get the simple image display to work > properly. Please leave out the METADATA statements until the image displays > properly; then you'll be able to add the METADATA back in without being > confused about what settings are helping and what settings are causing > trouble. > My original motivation to adjust the ows_extent was to treat this problem but following your advice e changing the units to decimal degrees my zoom problem was solved, thanks a lot! Yes, I suggested UNITS DD because your output and input image units are > decimal degrees. > > You should have EXTENT and UNITS statements at the top level in your map > file, > and a PROJECTION block there, too (with the same settings as below, as you > seem to want to display the image in its native unprojected coordinates). > Is that the case? Can you post the whole map file? > I did not had a PROJECTION element other than the one in my LAYER element. Now based on the lines bellow outputted by gdalinfo: GEOGCS["WGS 84", DATUM["WGS_1984", I've created the following PROJECTION element: PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END But I'm not sure if that's correct. Here goes my hole mapfile (based on the mapserver demo Itasca mapfile): MAP NAME ITASCA STATUS ON SIZE 600 600 EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 TEMPLATEPATTERN "itasca" IMAGETYPE PNG PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER templates/header.html TEMPLATE "set in index.html" FOOTER templates/footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in index.html" IMAGEURL "set in index.html" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is a UMN MapServer application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS "none" # change this value to match your setup WMS_ONLINERESOURCE "http://10.10.5.171/cgi-bin/mapserv.exe" WMS_SRS "EPSG:26915" END END # # Start of reference map # REFERENCE IMAGE graphics/reference.png EXTENT 324152.222 7384541.141 336175.222 7392179.141 SIZE 120 120 STATUS ON MINBOXSIZE 5 MAXBOXSIZE 100 COLOR 255 0 0 OUTLINECOLOR 0 0 0 MARKERSIZE 8 MARKER 'star' END OUTPUTFORMAT NAME GEOTIFFINT16 DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "INT16" EXTENSION "tif" END LAYER NAME "MyLayer" STATUS OFF TYPE RASTER DUMP TRUE DATA "SG-23-V-A.tif" PROJECTION "init=epsg:4326" END END END Are there other LAYER statements in the file? > No, I'm just trying with one at the moment for the sake of simplicity. In fact I want to display a DEM (Digital Elevation Model) image through WCS (Web Coverage Service) in order to open it in the OpenJUMP application (The use of OpenJUMP is a mandatory requirement). For that I want first to test the availability of WCS of this DEM in the MapServer Demo application. That's my current strategy to achieve this objective, any suggestions would be most appreciated :) (but I know, this can be a subject for a hole new post to this list). - Ed > > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > ed at topozone.com > > ------------------------------ > *From:* Bruno Patini Furtado [mailto:bpfurtado at gmail.com] > *Sent:* Wednesday, August 09, 2006 1:47 PM > *To:* Ed McNierney > *Cc:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] Image location inside its corner > coordinates > > Hi Ed, > > On 8/9/06, Ed McNierney wrote: > > > > Bruno - > > > > Could you post the EXTENT statement you're using? Two things to check - > > UNITS DD should be there (should not affect this problem, however) and your > > EXTENT needs to be in the order MINX MINY MAXX MAXY, so it should be: > > EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 > > > My extent is indeed like you said it should be: > EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 > > It was because of the line below that you state that the units should be > Decimal Degrees? > UNIT["degree",0.0174532925199433], > > Your image is 1.5 degrees wide (X dimension) and 1 degree tall (Y > > dimension) so your output image size should also be that shape (600 pixels > > wide by 400 pixels high, for example) or you will see the map shrunk to fit > > the shape of the image. > > > > Your example shows the right proportion as gdalinfo tells the image is > [1800, 1200] but I would like to set the layer metadata ows_extent with > the actual image coordinates, not size, in order to show the image a bit > better in the MapServer demo. Below goes my mapinfo layer element as I'm > trying to configure it. > > LAYER > NAME "my DEM Image" > STATUS OFF > TYPE RASTER > DUMP TRUE > DATA "SG-23-V-A.tif" > PROJECTION > "init=epsg:4326" > END > METADATA > wcs_label "Some label" > ows_extent "- 48.000416 -24.000416 -48.001816 -24.001816" > wcs_resolution "0.00083 -0.00083" > ows_srs "EPSG:4326" > wcs_formats "GEOTIFFINT16" > wcs_nativeformat "geotiff" > END > END > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > Phone: +1 (978) 251-4242 > > Fax: +1 (978) 251-1396 > > ed at topozone.com > > > > ------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > *On Behalf Of *Bruno Patini Furtado > > *Sent:* Wednesday, August 09, 2006 10:59 AM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* [UMN_MAPSERVER-USERS] Image location inside its corner > > coordinates > > > > I have a DEM image of which below I've copied the gdalinfo output. > > > > Driver: GTiff/GeoTIFF > > Size is 1800, 1200 > > Coordinate System is: > > GEOGCS["WGS 84", > > DATUM["WGS_1984", > > SPHEROID["WGS 84",6378137,298.2572235630016, > > AUTHORITY["EPSG","7030"]], > > AUTHORITY["EPSG","6326"]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433], > > AUTHORITY["EPSG","4326"]] > > Origin = (-48.000416,-24.000416) > > Pixel Size = (0.00083333,-0.00083333 ) > > Metadata: > > AREA_OR_POINT=Area > > TIFFTAG_SOFTWARE=IMAGINE TIFF Support > > Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved > > @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9 $ $Date: 2003/11/13 > > 19:25:49EST $ > > TIFFTAG_XRESOLUTION=1 > > TIFFTAG_YRESOLUTION=1 > > TIFFTAG_RESOLUTIONUNIT=1 (unitless) > > Corner Coordinates: > > Upper Left ( -48.0004159, -24.0004163) ( 48d 0'1.50"W, 24d 0'1.50"S) > > Lower Left ( -48.0004159, -25.0004164 ) ( 48d 0'1.50"W, 25d 0'1.50"S) > > Upper Right ( -46.5004159, -24.0004163) ( 46d30'1.50"W, 24d 0'1.50"S) > > Lower Right ( -46.5004159, -25.0004164) ( 46d30'1.50"W, 25d 0'1.50"S) > > Center ( -47.2504159, -24.5004163) ( 47d15'1.50"W, 24d30'1.50"S) > > Band 1 Block=1800x2 Type=UInt16, ColorInterp=Gray > > Overviews: 450x300, 225x150, 113x75, 57x38 > > > > I could take from it the EXTENT to use in my Mapfile using the Lower > > Left and Upper Right coordinates. But the problem is that the image is > > to small inside this coordinates and I can't find the image location inside > > then by this output. Is there some other utility to get this coordinates? > > > > > > -- > > "Minds are like parachutes, they work best when open." > > > > Bruno Patini Furtado > > Software Developer > > webpage: http://bpfurtado.net > > software development blog: http://bpfurtado.livejournal.com > > > > > > -- > "Minds are like parachutes, they work best when open." > > Bruno Patini Furtado > Software Developer > webpage: http://bpfurtado.net > software development blog: http://bpfurtado.livejournal.com > -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbarker at ITTVIS.COM Thu Aug 10 07:55:40 2006 From: nbarker at ITTVIS.COM (Norman Barker) Date: Thu, 10 Aug 2006 15:55:40 +0100 Subject: Image location inside its corner coordinates Message-ID: ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruno Patini Furtado Sent: Thursday, August 10, 2006 3:51 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Image location inside its corner coordinates Hi Ed, On 8/9/06, Ed McNierney wrote: Bruno - I would suggest not mixing problems at this point - let's not worry about ows_ metadata settings until you get the simple image display to work properly. Please leave out the METADATA statements until the image displays properly; then you'll be able to add the METADATA back in without being confused about what settings are helping and what settings are causing trouble. My original motivation to adjust the ows_extent was to treat this problem but following your advice e changing the units to decimal degrees my zoom problem was solved, thanks a lot! Yes, I suggested UNITS DD because your output and input image units are decimal degrees. You should have EXTENT and UNITS statements at the top level in your map file, and a PROJECTION block there, too (with the same settings as below, as you seem to want to display the image in its native unprojected coordinates). Is that the case? Can you post the whole map file? I did not had a PROJECTION element other than the one in my LAYER element. Now based on the lines bellow outputted by gdalinfo: GEOGCS["WGS 84", DATUM["WGS_1984", I've created the following PROJECTION element: PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END But I'm not sure if that's correct. Here goes my hole mapfile (based on the mapserver demo Itasca mapfile): MAP NAME ITASCA STATUS ON SIZE 600 600 EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 TEMPLATEPATTERN "itasca" IMAGETYPE PNG PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER templates/header.html TEMPLATE "set in index.html" FOOTER templates/footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in index.html" IMAGEURL "set in index.html" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is a UMN MapServer application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS "none" # change this value to match your setup WMS_ONLINERESOURCE "http://10.10.5.171/cgi-bin/mapserv.exe " WMS_SRS "EPSG:26915" END END # # Start of reference map # REFERENCE IMAGE graphics/reference.png EXTENT 324152.222 7384541.141 336175.222 7392179.141 SIZE 120 120 STATUS ON MINBOXSIZE 5 MAXBOXSIZE 100 COLOR 255 0 0 OUTLINECOLOR 0 0 0 MARKERSIZE 8 MARKER 'star' END OUTPUTFORMAT NAME GEOTIFFINT16 DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "INT16" EXTENSION "tif" END LAYER NAME "MyLayer" STATUS OFF TYPE RASTER DUMP TRUE DATA "SG-23-V-A.tif" PROJECTION "init=epsg:4326" END END END Are there other LAYER statements in the file? No, I'm just trying with one at the moment for the sake of simplicity. In fact I want to display a DEM (Digital Elevation Model) image through WCS (Web Coverage Service) in order to open it in the OpenJUMP application ( The use of OpenJUMP is a mandatory requirement). For that I want first to test the availability of WCS of this DEM in the MapServer Demo application. To display a DEM through the MapServer WCS there are instructions here that have been gathered by lots of us doing this work; http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo if you have any problems please post back to the list. The excellent ICEDS service (Jeremy Morley - UCL) serves DEM using MapServer. wrote: Bruno - Could you post the EXTENT statement you're using? Two things to check - UNITS DD should be there (should not affect this problem, however) and your EXTENT needs to be in the order MINX MINY MAXX MAXY, so it should be: EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 My extent is indeed like you said it should be: EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163 It was because of the line below that you state that the units should be Decimal Degrees? UNIT["degree",0.0174532925199433], Your image is 1.5 degrees wide (X dimension) and 1 degree tall (Y dimension) so your output image size should also be that shape (600 pixels wide by 400 pixels high, for example) or you will see the map shrunk to fit the shape of the image. Your example shows the right proportion as gdalinfo tells the image is [1800, 1200] but I would like to set the layer metadata ows_extent with the actual image coordinates, not size, in order to show the image a bit better in the MapServer demo. Below goes my mapinfo layer element as I'm trying to configure it. LAYER NAME "my DEM Image" STATUS OFF TYPE RASTER DUMP TRUE DATA "SG-23-V-A.tif" PROJECTION "init=epsg:4326" END METADATA wcs_label "Some label" ows_extent "- 48.000416 -24.000416 -48.001816 -24.001816" wcs_resolution "0.00083 -0.00083" ows_srs "EPSG:4326" wcs_formats "GEOTIFFINT16" wcs_nativeformat "geotiff" END END - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU ] On Behalf Of Bruno Patini Furtado Sent: Wednesday, August 09, 2006 10:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image location inside its corner coordinates I have a DEM image of which below I've copied the gdalinfo output. Driver: GTiff/GeoTIFF Size is 1800, 1200 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-48.000416,-24.000416) Pixel Size = (0.00083333,-0.00083333 ) Metadata: AREA_OR_POINT=Area TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9 $ $Date: 2003/11/13 19:25:49EST $ TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( -48.0004159, -24.0004163) ( 48d 0'1.50"W, 24d 0'1.50"S) Lower Left ( -48.0004159, -25.0004164 ) ( 48d 0'1.50"W, 25d 0'1.50"S) Upper Right ( -46.5004159, -24.0004163) ( 46d30'1.50"W, 24d 0'1.50"S) Lower Right ( -46.5004159, -25.0004164) ( 46d30'1.50"W, 25d 0'1.50"S) Center ( -47.2504159, -24.5004163) ( 47d15'1.50"W, 24d30'1.50"S) Band 1 Block=1800x2 Type=UInt16, ColorInterp=Gray Overviews: 450x300, 225x150, 113x75, 57x38 I could take from it the EXTENT to use in my Mapfile using the Lower Left and Upper Right coordinates. But the problem is that the image is to small inside this coordinates and I can't find the image location inside then by this output. Is there some other utility to get this coordinates? -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -- "Minds are like parachutes, they work best when open." Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Thu Aug 10 08:21:41 2006 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 10 Aug 2006 10:21:41 -0500 Subject: Map Rendering Toolkits? In-Reply-To: <94DB743EBD20EC41B487D470B1DE23451CA9AE@OC1EX02.ME.MBGOV.CA> Message-ID: SharpMap(.net, not sure if c#) Csharp_Mapscript OpenLayers (JS - not c#), depending on your definition of map rendering David Lowther _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruce, Bob (CON) Sent: Wednesday, August 09, 2006 6:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map Rendering Toolkits? Hi: this is not a MapServer question [sorry] but I was hoping that someone might know of a toolkit and could make suggestions. I am working with someone to migrate a Cadastral Mapping application from Visual C++ 6.0 into C# with Net 2.0 with the eventual goal of turning it into an open source and free application. We are looking for a map rendering toolkit to use with C# that is open source. Would anyone have any suggestions of a development tool to use? thanks, Bob Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From watry at STEAM.COAPS.FSU.EDU Thu Aug 10 08:30:03 2006 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Thu, 10 Aug 2006 11:30:03 -0400 Subject: It ain't pretty but it works Message-ID: Hi The site is http://gisdev.coaps.fsu.edu/httpdocs/windrose.php It will run slow as it has not been moved to a production server Click on "get Info From Map" Click over red star (any one will do) Select a month in drop-down list (any will do) The issue is I had to repeat a block of code over and over again, programming by brute force (does anyone know of a better way than repeating the code in the function ChangeMonth() { The other question is can I query a shapefile from a test box. I want to be able to type in a USAFID number and have it zoom into that location and then open the form without having to click on the map. Any thoughts -- Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 Phone (850) 645-7457 E-Mail: watry at coaps.fsu.edu From m.meier at SPIEKERMANN.DE Thu Aug 10 08:54:49 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Thu, 10 Aug 2006 17:54:49 +0200 Subject: question on query In-Reply-To: <20060810144958.65375.qmail@web55708.mail.re3.yahoo.com> Message-ID: Hi Albert, when I load the html code into the browser then I get javascript errors (status line of internet explorer) because document.the_map and document.mapserv are undefined. "document.the_map" is used in the javascript function set_Mode which is called in the onload event. Do you get these errors too? Maybe they come only here because I opened the html code direct in the browser. Manfred Albert Anderson schrieb: > Hi Lawrence, > > I tried copying your code and changing out your information to fit > mine. Its not working to well. My button isnt doing anything. Here is > my html code. Maybe you can look at it? I dont know what I am doing. > Thanks, Albert > > msLoadMap(): Unable to access file. (/project/data/mymapfile.map)
Regards, Berend From warmerdam at POBOX.COM Thu Aug 31 08:31:04 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 31 Aug 2006 11:31:04 -0400 Subject: PHP Mapscript and WMS Server In-Reply-To: <1157013410.4141.18.camel@emil.intranet.gdv.com> Message-ID: Nicol Hermann wrote: > Bart, > i there any working example how to use the GetMap Request with the new > MapScript wrappers for WxS Services? > I had no look so far using PHP Mapscript. > Any code snippets? > Many thanks > Nicol Nicol, I have confirmed that the WxS methods have been added to PHP MapScript for 4.10; however, I neglected to add any examples of it in the WxS howto. I've done a very very quick test with the following script which at least seems to parse properly. Could you try something like it and see if it works? loadParams(); $map = ms_newMapObj( "/u/www/maps/ukpoly/ukpoly.map" ); $map->OWSDispatch( $req ); ?> If so, I'll update the howto with the example. 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 | President OSGeo, http://osgeo.org From umberto.nicoletti at GMAIL.COM Thu Aug 31 08:34:51 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 31 Aug 2006 17:34:51 +0200 Subject: reading and deleting annotation features in mapscript In-Reply-To: <04E4CB62BC22D94E9F86F06A6AB13C2C602FBE@darklighter.dottedeyes.com> Message-ID: On 8/31/06, Mike Talbutt wrote: > > > Hi all, > > A quick question from a mapserver newbie > > Using java mapscript I am creating annonations on a new map layer by > creating polygon features in a new layer, > > when I do a query on that layer to retreive the features I have created I am > unable to get at the shape objects as the following line of code fails > > shapeObj shape2 = m_Layer.getFeature(resultMember.getShapeindex(), > resultMember.getTileindex()); try: shapeObj shape2 = m_Layer.getFeature( featIndex ,-1); and you can use featIndex to access the list where features are stored like you would if you were accessing an array. I don't think you even need to query the layer, just use getFeature(). Inline layers do not need to opened. > > , I noticed the tile index and shape index properties in the > resultCacheMemberObj object are both -1. Can someone tell me how to get hold > of the shape objects, as I need provide some sort of delete annotation > functionality, and I dont want to simply drop the entire layer > As of deleting that is not supported. Umberto > Email has been scanned for viruses and spam by Altman Technologies' email > management service From jegou at UNIV-TLSE2.FR Thu Aug 31 08:39:28 2006 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Thu, 31 Aug 2006 17:39:28 +0200 Subject: New ressource : a FAQ in french language In-Reply-To: <04E4CB62BC22D94E9F86F06A6AB13C2C602FBE@darklighter.dottedeyes.com> Message-ID: Hello, I'm pleased to announce the availability of a new documentation ressource, a MapServer FAQ in french language, at the PortailSIG : http://www.portailsig.org/item-faq.html The FAQ will be progressively extended by questions and their answers from the http://www.forumsig.org Comments are welcome, Regards, Laurent From assefa at DMSOLUTIONS.CA Thu Aug 31 08:45:56 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 31 Aug 2006 11:45:56 -0400 Subject: PHP Mapscript and WMS Server In-Reply-To: <44F700B8.1090901@pobox.com> Message-ID: I have updated the documenetation with php example (http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/view). There was also a problem with the ms_iogetStdoutBufferBytes and it is now fixed in cvs. I will add the the php mapscript doc on mapsservr site with the new functions. Later, Frank Warmerdam wrote: > Nicol Hermann wrote: > >> Bart, >> i there any working example how to use the GetMap Request with the new >> MapScript wrappers for WxS Services? >> I had no look so far using PHP Mapscript. >> Any code snippets? >> Many thanks Nicol > > > Nicol, > > I have confirmed that the WxS methods have been added to PHP MapScript for > 4.10; however, I neglected to add any examples of it in the WxS howto. > > I've done a very very quick test with the following script which at least > seems to parse properly. Could you try something like it and see if it > works? > > > dl("php_mapscript.so"); > > $req = ms_newowsrequestobj(); > $req->loadParams(); > > $map = ms_newMapObj( "/u/www/maps/ukpoly/ukpoly.map" ); > $map->OWSDispatch( $req ); > > ?> > > If so, I'll update the howto with the example. > > Best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dovidio at PLANETEK.IT Thu Aug 31 08:49:14 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Thu, 31 Aug 2006 17:49:14 +0200 Subject: MapServer css Message-ID: Hello, I'd like to know if there is a way to give the same style to a group of layers trought map file withouth calling back that style any time for each layer. Thank you ! ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From mike.talbutt at DOTTEDEYES.COM Thu Aug 31 09:11:34 2006 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Thu, 31 Aug 2006 09:11:34 -0700 Subject: reading and deleting annotation features in mapscript In-Reply-To: <75b4b93e0608310834o2a940f04j328892a28663d8f8@mail.gmail.com> Message-ID: Thanks for that, I've now successfully got my shape, however you statement saying deleteing is not supported, does this mean that there is no way of removing a feature from a layer ? Umberto Nicoletti wrote: > > On 8/31/06, Mike Talbutt wrote: >> >> >> Hi all, >> >> A quick question from a mapserver newbie >> >> Using java mapscript I am creating annonations on a new map layer by >> creating polygon features in a new layer, >> >> when I do a query on that layer to retreive the features I have created I >> am >> unable to get at the shape objects as the following line of code fails >> >> shapeObj shape2 = m_Layer.getFeature(resultMember.getShapeindex(), >> resultMember.getTileindex()); > > try: > > shapeObj shape2 = m_Layer.getFeature( featIndex ,-1); > > and you can use featIndex to access the list where features are stored > like you would if you were accessing an array. > I don't think you even need to query the layer, just use getFeature(). > Inline layers do not need to opened. > >> >> , I noticed the tile index and shape index properties in the >> resultCacheMemberObj object are both -1. Can someone tell me how to get >> hold >> of the shape objects, as I need provide some sort of delete annotation >> functionality, and I dont want to simply drop the entire layer >> > > As of deleting that is not supported. > > Umberto > >> Email has been scanned for viruses and spam by Altman Technologies' email >> management service > > -- View this message in context: http://www.nabble.com/reading-and-deleting-annotation-features-in-mapscript-tf2197247.html#a6082722 Sent from the Mapserver - User forum at Nabble.com. From bob.basques at CI.STPAUL.MN.US Thu Aug 31 09:29:18 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 31 Aug 2006 11:29:18 -0500 Subject: Can the creation date of a SHP file be retrieved via a MAPSERVER call? Message-ID: All, Can the creation date of a SHP file be retrieved via a MAPSERVER call? I would like to place a Date related to the file creation time at the bottom of a template output. Is this something that's possible with a CGI call? If so, how is it done? in the Template, the Map file or both? Thanks bobb From assefa at DMSOLUTIONS.CA Thu Aug 31 09:29:32 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 31 Aug 2006 12:29:32 -0400 Subject: PHP Mapscript and WMS Server In-Reply-To: <1157013410.4141.18.camel@emil.intranet.gdv.com> Message-ID: Hi there, The doc http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/view has php examples. The php docs are now updated with the new functions : ms_ioxxx functions : http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/class-functions owsrequestobj: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/owsrequestobj Later, Nicol Hermann wrote: > Bart, > i there any working example how to use the GetMap Request with the new > MapScript wrappers for WxS Services? > I had no look so far using PHP Mapscript. > Any code snippets? > Many thanks > Nicol > > Am Donnerstag, den 31.08.2006, 10:08 +0200 schrieb Eijnden, Bart van den > (AGI): > >>Yes, Frank Warmerdam has done this work recently. It will only be released in version 4.10 though (4.10 is currently in the beta2 stage). >> >>See: >> >>http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/view >> >>Best regards, >>Bart >> >>-----Oorspronkelijk bericht----- >>Van: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Stuart Eve >>Verzonden: donderdag 31 augustus 2006 10:06 >>Aan: MAPSERVER-USERS at LISTS.UMN.EDU >>Onderwerp: [UMN_MAPSERVER-USERS] PHP Mapscript and WMS Server >> >> >>Dear all >> >>I have looked a round a bit at the archives and the documentation - but >>I can't see anywhere that suggests you can respond to a WMS/WFS request >>using PHPMapScript. Is there anyway to do this? Currently we have our >>WMS server running from the CGI, but I would much prefer to be able to >>wrap it in PHP. >> >>Thanks in advance >> >>Stuart >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at POBOX.COM Thu Aug 31 09:50:33 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 31 Aug 2006 12:50:33 -0400 Subject: Can the creation date of a SHP file be retrieved via a MAPSERVER call? In-Reply-To: <44F70E5E.9020703@ci.stpaul.mn.us> Message-ID: Bob Basques wrote: > All, > > Can the creation date of a SHP file be retrieved via a MAPSERVER call? > > I would like to place a Date related to the file creation time at the > bottom of a template output. Is this something that's possible with a > CGI call? If so, how is it done? in the Template, the Map file or both? Bob, No mechanism exists to get at this from a CGI or mapscript point of view. You could get at the filesystem creation date from some sort of scripting language call I would imagine. 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 | President OSGeo, http://osgeo.org From bob.basques at CI.STPAUL.MN.US Thu Aug 31 09:58:38 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 31 Aug 2006 11:58:38 -0500 Subject: Can the creation date of a SHP file be retrieved via a MAPSERVER call? In-Reply-To: Message-ID: Frank Warmerdam wrote: > Bob Basques wrote: > >> All, >> >> Can the creation date of a SHP file be retrieved via a MAPSERVER call? >> > > Bob, > > No mechanism exists to get at this from a CGI or mapscript point of view. > I thought about that, I also thought about using Metadata in the MapFile, IT just seems like a thing that should be available for some reason. :c) I also thought about using a Web call to a Web Service that could read the info ala a folder list display and pass that into the CGI call to mapserver, but then I would need to rig up some access to the SHP file itself on the server which didn't seem quite right either. Hmmm, I wonder what it would take to add this into MapServer, I mean, it's opening the file anyway, right . . . . The end product is to display a "Last Updated" message beneath some attribute data.being displayed. A last thought is to use the SHP file itself to store the data with an additional column. That seems like overkill too though. bobb From noreply at GEOCARTIC.COM Thu Aug 31 10:11:37 2006 From: noreply at GEOCARTIC.COM (Tim Schaub) Date: Thu, 31 Aug 2006 11:11:37 -0600 Subject: MapScript WMS In-Reply-To: <44F70434.1000606@dmsolutions.ca> Message-ID: Hello- I'm interested in: 1) receiving a GetMap request 2) tweaking some things 3) drawing the map and caching it server side 4) serving the map to the client Looks like there are (at least) two ways to accomplish this. Can anyone comment on the benefit of one over the other? Method I- # create map, request, and tweak some parameters first mapscript.msIO_installStdoutToBuffer() map.OWSDispatch(request) content_type = mapscript.msIO_stripStdoutBufferContentType() content = mapscript.msIO_getStdoutBufferBytes() # then write to cache, send to client, etc Method II- # create map, request, and tweak some parameters first map.loadWMSRequest('1.1.0', request) img = map.draw() # then write to cache, send to client, etc Seems like the two are equivalent for GetMap requests. The second looks a bit nicer. Is there a problem with msIO_stripStdoutBufferBytes in 4.9 that would make method I unreliable? Thanks for any tips, Tim > Yewondwossen Assefa > Sent: Thursday, August 31, 2006 9:46 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > > There was also a problem with the ms_iogetStdoutBufferBytes and it is > now fixed in cvs. From punkish at EIDESIS.ORG Thu Aug 31 10:36:31 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 31 Aug 2006 12:36:31 -0500 Subject: Can the creation date of a SHP file be retrieved via a MAPSERVER call? In-Reply-To: <44F7153E.7030307@ci.stpaul.mn.us> Message-ID: http://httpd.apache.org/docs/1.3/howto/ssi.html#today'sdate This document last modified On 8/31/06, Bob Basques wrote: > Frank Warmerdam wrote: > > Bob Basques wrote: > > > >> All, > >> > >> Can the creation date of a SHP file be retrieved via a MAPSERVER call? > >> > > > > Bob, > > > > No mechanism exists to get at this from a CGI or mapscript point of view. > > > I thought about that, I also thought about using Metadata in the > MapFile, IT just seems like a thing that should be available for some > reason. :c) > > I also thought about using a Web call to a Web Service that could read > the info ala a folder list display and pass that into the CGI call to > mapserver, but then I would need to rig up some access to the SHP file > itself on the server which didn't seem quite right either. > > Hmmm, I wonder what it would take to add this into MapServer, I mean, > it's opening the file anyway, right . . . . > > The end product is to display a "Last Updated" message beneath some > attribute data.being displayed. > > A last thought is to use the SHP file itself to store the data with an > additional column. That seems like overkill too though. > > bobb > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From bob.basques at CI.STPAUL.MN.US Thu Aug 31 10:53:29 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 31 Aug 2006 12:53:29 -0500 Subject: Can the creation date of a SHP file be retrieved via a MAPSERVER call? In-Reply-To: Message-ID: I discounted this approach because I would need a separate list of the SHP files ahead of time to pass them in to the CGI request. Right now, the MAP files is the only location where the SHP file is referenced. That's why I was looking for a way to read the change date from MapServer. Each of our layer are set up with their own MAP file rather than one large one. So getting the info From Mapserver seems like the best approach in the long run bobb P Kishor wrote: > http://httpd.apache.org/docs/1.3/howto/ssi.html#today'sdate > > This document last modified > > On 8/31/06, Bob Basques wrote: > >> Frank Warmerdam wrote: >> >>> Bob Basques wrote: >>> >>> >>>> All, >>>> >>>> Can the creation date of a SHP file be retrieved via a MAPSERVER call? >>>> >>>> >>> Bob, >>> >>> No mechanism exists to get at this from a CGI or mapscript point of view. >>> >>> >> I thought about that, I also thought about using Metadata in the >> MapFile, IT just seems like a thing that should be available for some >> reason. :c) >> >> I also thought about using a Web call to a Web Service that could read >> the info ala a folder list display and pass that into the CGI call to >> mapserver, but then I would need to rig up some access to the SHP file >> itself on the server which didn't seem quite right either. >> >> Hmmm, I wonder what it would take to add this into MapServer, I mean, >> it's opening the file anyway, right . . . . >> >> The end product is to display a "Last Updated" message beneath some >> attribute data.being displayed. >> >> A last thought is to use the SHP file itself to store the data with an >> additional column. That seems like overkill too though. >> >> bobb >> >> > > > From volunteer at SPATIALLINK.ORG Thu Aug 31 15:22:06 2006 From: volunteer at SPATIALLINK.ORG (siva) Date: Thu, 31 Aug 2006 15:22:06 -0700 Subject: joining shp dbf Message-ID: hello i get probelm joining shp dbf. old answer not working c:/pradesh/state.shp num name 1 andhra 2 kerala c:/pradesh/pop.dbf num name count year 1 andhra 35 1991 2 andhra 45 2001 i try showing 45 on state.shp as following MAP SHAPEPATH "/pradesh/" LAYER CONNECTIONTYPE ogr CONNECTION "c:/pradesh/state.shp" DATA "SELECT * FROM 'c:/pradesh/state.shp'.state LEFT JOIN 'c:/pradesh/pop.dbf'.pop ON state.name = pop.name WHERE pop.year LIKE '2001'" LABELITEM "join.count" many thank yous sincerely sshekar From richard.greenwood at GMAIL.COM Thu Aug 31 19:43:01 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 31 Aug 2006 20:43:01 -0600 Subject: interactively select within polygon In-Reply-To: <44F5C4000200008F000019DF@co5.dnr.state.mn.us> Message-ID: Way cool! Nothing against mapscript, but I have always said that users underestimate the power of MapServer CGI, and often move prematurely to a mapscript approach. jBox or dBox both have the basic functionality in place to capture user mouse clicks. You would simply need to gather those points up, and pass them back to MapServer. Also check out some of the WMS clients e.g. MapBuilder and MapBender. Rich On 8/30/06, Steve Lime wrote: > The MapServer CGI can accept an arbitrary shape as input for a query. I believe you set imgshape > or mapshape and then set mode=nquery or something like that. Bottom line, you don't need MapScript. > > So, if you can get the coordinates out of jbox you're in business. You can probably extend, as Rich > suggests, the measure tool. Unlike the measuring you'd need a mechanism to know when you're > done drawing so you can submit the polygon. I suppose you could detect a keystroke (e.g. Esc) or > even show a 'Done' button when you enter drawing mode. > > Steve > > >>> Richard Greenwood 8/30/2006 12:00:55 PM >>> > -------- Original Message -------- > Subject: helpme with jBox... > Date: Wed, 30 Aug 2006 11:31:23 -0500 > From: Oscar Mauricio Murillo Su?rez > > Hi > My name is Oscar and I am working with jBox and Mapserver, but I have a > problem. I need to select same points, but it is'nt a select within box, > I need to be a select within polygon. I don't know how to modify the > applet for this action?. Can you help me ? Thanks and you excuse my bad > handling for english, good bye. > > ------------------------------------------- > > Hello Oscar, > > I have forwarded your question to the MapServer-Users mailing list. I > have changed the subject line to "interactively select within > polygon". You can (and should) join this very helpful list at: > http://mapserver.gis.umn.edu/community/mailinglists/mapserver-users/ > > jBox does not support selecting points within a user-drawn polygon. > You could add the ability fairly easily (extend the measure tool) but > you would still need to have mapserver process the polygon because the > actual selection of points would take place on the server. > > I think this would require the use of mapscript, I think there are > other on the MapServer-Users list who would be better able to answer > your question than me. > > Regards, > Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Steve.Lime at DNR.STATE.MN.US Thu Aug 31 20:14:42 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 31 Aug 2006 22:14:42 -0500 Subject: Can the creation date of a SHP file be retrieved via a MAPSERVER call? Message-ID: These days the only data files mapserver hits directly are shapefiles so this would be a pretty specific addition (i.e. low priority). What about the possibility of storing the last modified in a seperate file and using INCLUDEs in 4.10 to get at them via metadata? Then you'd have access to that information via a template. I've not tested that but it might work. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-259-5473 >>> Bob Basques 08/31/06 12:53 PM >>> I discounted this approach because I would need a separate list of the SHP files ahead of time to pass them in to the CGI request. Right now, the MAP files is the only location where the SHP file is referenced. That's why I was looking for a way to read the change date from MapServer. Each of our layer are set up with their own MAP file rather than one large one. So getting the info From Mapserver seems like the best approach in the long run bobb P Kishor wrote: > http://httpd.apache.org/docs/1.3/howto/ssi.html#today'sdate > > This document last modified > > On 8/31/06, Bob Basques wrote: > >> Frank Warmerdam wrote: >> >>> Bob Basques wrote: >>> >>> >>>> All, >>>> >>>> Can the creation date of a SHP file be retrieved via a MAPSERVER call? >>>> >>>> >>> Bob, >>> >>> No mechanism exists to get at this from a CGI or mapscript point of view. >>> >>> >> I thought about that, I also thought about using Metadata in the >> MapFile, IT just seems like a thing that should be available for some >> reason. :c) >> >> I also thought about using a Web call to a Web Service that could read >> the info ala a folder list display and pass that into the CGI call to >> mapserver, but then I would need to rig up some access to the SHP file >> itself on the server which didn't seem quite right either. >> >> Hmmm, I wonder what it would take to add this into MapServer, I mean, >> it's opening the file anyway, right . . . . >> >> The end product is to display a "Last Updated" message beneath some >> attribute data.being displayed. >> >> A last thought is to use the SHP file itself to store the data with an >> additional column. That seems like overkill too though. >> >> bobb >> >> > > > From mario.basa at GMAIL.COM Thu Aug 31 20:51:22 2006 From: mario.basa at GMAIL.COM (Mario Basa) Date: Fri, 1 Sep 2006 12:51:22 +0900 Subject: Java Mapscript with Japanese Encoding In-Reply-To: <75b4b93e0608310819q26a12df3xd1cb391b7c38866@mail.gmail.com> Message-ID: Umberto, Thanks for the offer. I was really thinking of sending data for testing the other day, but it occured to me that your environment might not be capable of handling double-byte kanji characters. I guess we'll test QueryByAttributeUnicode from here. Mario. On 9/1/06, Umberto Nicoletti wrote: > Mario, > if you send me a sample shapefile, map and search string to test > against QueryByAttributeUnicode I'm willing to look into this. > Also, file an issue to bugzilla. > > Umberto > > From m.meier at SPIEKERMANN.DE Thu Aug 31 21:24:56 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Fri, 1 Sep 2006 06:24:56 +0200 Subject: [Fwd: RE: Using JOIN for querying] Message-ID: Hi Juan Carlos, thank you very much for your answer! Since this question was originally from Maricris I will forward your answer to the mapserver users list. Manfred -------- Urspr?ngliche Nachricht -------- Betreff: RE: Using JOIN for querying Datum: Thu, 31 Aug 2006 13:50:43 -0300 Von: Fuchs Juan Carlos An: 'Manfred Meier' Hi Manfred: about you statment ...the > msQueryByPoint message means that I had forgotten to indicate a > template file in my CLASS statement right? it also means that something goes wrong :) i suggest two things first >> > JOIN >> > NAME "reg_join" >> > CONNECTIONTYPE CSV >> > TABLE "lgu_DB_DACCESS_PROV.csv" >> > FROM "Place_ID" >> > TO "1" here goes the name of the column you have as target. >> > TEMPLATE "reg_bndary 2000_dbf.html" try avoiding the space between bndary and 2000 >> > END #join BTW when you say: Actually the error is what I'm confused about. As far as I know, the > msQueryByPoint message means that I had forgotten to indicate a > template file in my CLASS statement right? But as far as I read the > manual, the JOIN statement's format does not need the CLASS part, one > just need to add TEMPLATE "" in the JOIN part. > In fact if I insert the following in the JOIN part as such: > (...) > JOIN > CONNECTIONTYPE CSV > (...) > CLASS > TEMPLATE "reg_bndary 2000_dbf.html" > END > END > (...) > > It returns with the following error: > loadJoin(): Unknown identifier. Parsing error near (CLASS):(line 164) > > Oh and yes, the msQuerybyPoint message only appears when I add the > JOIN in my mapfile. keep in mind that the "JOIN" only takes place if you trigger a QUERY so the layer has to be "queryable" say LAYER NAME "whateveryounamethelayer" TYPE QUERY ... this gives you the possibility to control when you trigger the QUERY just changing the status from OFF to ON "nicht is so einfach, als wenn man weiss wie es geht; dannach, wird es uninteresant. :) Hals und Beinbruch, Manfred auf wiedersehn... JC. -----Mensaje original----- De: Manfred Meier [mailto:m.meier at SPIEKERMANN.DE] Enviado el: Mi?rcoles, 30 de Agosto de 2006 10:49 a.m. Asunto: Re: Using JOIN for querying Hi, here is a last+1 try: You mentioned the template file: On umn.mapserver.ch I found this example: LAYER NAME "Liegenschaften" STATUS ON DATA "data/Liegenschaften" TYPE LINE HEADER "NUMMER FLAECHE NAME PLZ ORT" JOIN NAME "Eigent?mer" TABLE "data/eigentuemer.dbf" FROM NUMMER TO NR TYPE multiple TEMPLATE eigentuemer.htm END CLASS COLOR 0 0 0 SYMBOL "continue" SIZE 2 TEMPLATE liegenschaften.htm END END Here are two template files. The Layer has a template file in his own CLASS Section. Is your mapfile analog to this file? Manfred cris ricana schrieb: > Thanks for replying, Manfred. > Here are some replies to your question: > >> I do not know how to use JOIN. But since nobody replied to your >> question, perhaps you can add information, if the test you made, give >> you the correct result when you do !!not!! use the JOIN. >> > Yes, everything works when I don't use JOIN. That is, if I use only > the shapefile (I mean that the whole set, including the .shp, .dbf and > .shx files), and use in the query only those data specific in the dbf > of the shapefile. > > >> If I understand right, then JOIN adds some data but no spatial >> information. So at the first sight it seems unlikely that the result of >> msQueryByPoint is related to a JOIN. >> >> So does this message appear only when you add the JOIN to the mapfile? > > > The data (in form of csv files) I'm adding do not have spatial > information, if you mean by spatial information as something like the > lat/lon of a region, for example (I'm dealing with areal data, by the > way). In fact it only contains additional socioeconomic statistics of > these region. The dbf file of the shapefiles contains the spatial > information of these regions, and I'm trying to add more info on these > places via JOIN and only during query requests, instead of creating a > very large dbf with all the info in them. > > Actually the error is what I'm confused about. As far as I know, the > msQueryByPoint message means that I had forgotten to indicate a > template file in my CLASS statement right? But as far as I read the > manual, the JOIN statement's format does not need the CLASS part, one > just need to add TEMPLATE "" in the JOIN part. > In fact if I insert the following in the JOIN part as such: > (...) > JOIN > CONNECTIONTYPE CSV > (...) > CLASS > TEMPLATE "reg_bndary 2000_dbf.html" > END > END > (...) > > It returns with the following error: > loadJoin(): Unknown identifier. Parsing error near (CLASS):(line 164) > > Oh and yes, the msQuerybyPoint message only appears when I add the > JOIN in my mapfile. > > > Maricris > > > > > On 8/30/06, Manfred Meier wrote: > >> Hi, >> >> I do not know how to use JOIN. But since nobody replied to your >> question, perhaps you can add information, if the test you made, give >> you the correct result when you do !!not!! use the JOIN. >> >> If I understand right, then JOIN adds some data but no spatial >> information. So at the first sight it seems unlikely that the result of >> msQueryByPoint is related to a JOIN. >> >> So does this message appear only when you add the JOIN to the mapfile? >> >> Manfred >> >> >> >> cris ricana schrieb: >> > Hello! >> > >> > I'd like some help regarding my use of JOIN in my mapserver setup. I'm >> > using two sets of data, a base shapefile ("reg_bndary") containing >> > basically place information and system-generated csv files containing >> > all the relevant information regarding these places in the shapefiles. >> > Both have a common field called Place_ID to be used for the join. I >> > was planning to use these csv in times when the users want to query >> > for detailed information on these places. My map file looks like this >> > (the JOIN part is near the end): >> > >> > NAME reg_bndary2000.map >> > SIZE 600 600 >> > EXTENT 114.03 3.8315 131.33 21.1585 >> > SHAPEPATH "data" >> > IMAGETYPE PNG >> > UNITS meters >> > >> > WEB >> > TEMPLATE 'reg_bndary2000.html' >> > # IMAGEPATH '/home/mis/DIRP/maps/' >> > # IMAGEURL 'home/mis/DIRP/maps/' >> > IMAGEPATH '/home/yronald/htdocs/maps/test_map/maps/' >> > IMAGEURL '/test_map/maps/' >> > END #WEB >> > >> > QUERYMAP >> > SIZE 600 600 >> > STATUS ON >> > STYLE SELECTED >> > COLOR 255 0 0 >> > END >> > (...) >> > LAYER >> > NAME CY_2000 >> > TYPE polygon >> > STATUS ON >> > DATA reg_bndary >> > CLASSITEM COUNT >> > LABELITEM REGION >> > (...) >> > HEADER "reg_bndary2000_header.html" >> > FOOTER "reg_bndary2000_footer.html" >> > >> > JOIN >> > NAME "reg_join" >> > CONNECTIONTYPE CSV >> > TABLE "lgu_DB_DACCESS_PROV.csv" >> > FROM "Place_ID" >> > TO "1" >> > TEMPLATE "reg_bndary 2000_dbf.html" >> > END #join >> > END # LAYER >> > END # MAPFILE >> > >> > The template file used for , "reg_bndary 2000_dbf.html", contains >> > simply the following: >> > [reg_join_REGION]
>> > [reg_join_PLACE] >> > >> > When when I test this, I get the following error: >> > >> > msQueryByPoint(): Search returned no results. No matching >> > record(s) found. >> > >> > Can somebody help me tell me what is wrong in my setup? >> > >> > >> > Thanks! >> > Maricris >> > >> >> > From gluker at SCU.EDU.AU Thu Aug 31 21:51:02 2006 From: gluker at SCU.EDU.AU (Greg Luker) Date: Fri, 1 Sep 2006 14:51:02 +1000 Subject: Using JOIN for querying Message-ID: Hi, Thanks very much Maricris, Juan Carlos and Manfred for all your suggestions! I will try them as soon as I can (unfortunately my MapServer needs to be recompiled with the --with-mygis option, which could take some time). And I will report results back to the list. Thanks, Greg Luker. From Walter.Pleyer at LFRZ.AT Thu Aug 31 23:09:28 2006 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Fri, 1 Sep 2006 08:09:28 +0200 Subject: Transparent raster layer In-Reply-To: A<44F6F4EC.6090805@pobox.com> Message-ID: Good morning, Frank! > Are you wanting to return an image from mapserver where the > final image includes alpha type transparency? What is your > output format? Our goal is to generate an image, that is composed of two input images, for example one satelite image (tiff) and a DEM (also tiff), where the DEM is on top and 50% transparent, so that the resulting image as a pseudo 3D look. The resulting image does not need to be transparent. For the output format png is preferred, but jpg is also an option. thanks in advance Walter