From BEN at SYNCERA-ITSOLUTIONS.NL Mon Aug 1 01:32:36 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:52 2008 Subject: WFS request using CVS version: mapserv(): Web application error. No template provided. Message-ID: Hi list, using the latest CVS version, when issuing a normal WFS GetFeature request, which used to work with 4.6 I get back: D:\sources\python>mapserver_getfeature.py MapServer Message mapserv(): Web application error. No template provided.
Any ideas? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl From BEN at SYNCERA-ITSOLUTIONS.NL Mon Aug 1 01:52:41 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:52 2008 Subject: WFS request using CVS version: mapserv(): Web application error. No template p Message-ID: Sorry, I forgot to compile with WFS SERVER support ..... Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Bart van den Eijnden 08/01/05 07:32am >>> Hi list, using the latest CVS version, when issuing a normal WFS GetFeature request, which used to work with 4.6 I get back: D:\sources\python>mapserver_getfeature.py MapServer Message mapserv(): Web application error. No template provided.
Any ideas? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl From artur.skalski at ACXIOM.COM Mon Aug 1 03:16:12 2005 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Fri Feb 8 15:07:52 2008 Subject: settext php Message-ID: Hi all I'm using mapserver 4.4 and php mapscript 4.4 I've got a problem with setting text to the anotanion layer the Layer looks like this: LAYER NAME themetitle STATUS OFF TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 250 30 END END CLASS LABEL TYPE TRUETYPE FONT ARIAL SIZE 10 ANTIALIAS TRUE COLOR 0 100 0 END #TEXT 'Tytul mapy tematycznej' END END and the php code that is to change or add TEXT to the Layer looks like $zlayer = $gpoMap->getLayerByName(themetitle); $cl = $zlayer->getClass(0); $cl->settext("some text"); Unfortunately it doesn't work :( Do you have any ide why? Thanks for any tip! Artur From umberto.nicoletti at GMAIL.COM Mon Aug 1 03:42:34 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri Feb 8 15:07:52 2008 Subject: JavaMapScript howto delete a layer?. In-Reply-To: Message-ID: Antonio, have a look at this recent thread 'Java VM Crashes using the Mapscript API' on the ml archives and next time post more details! What if you went to a car mechanic and asked him why is my car broken without showing him the car? No pun intended, I am just trying to help you and I cannot do it without being told the *necessary* information. Ciao, Umberto On 7/30/05, Antonio Pace wrote: > Hi, > > mapObj.removeLayer(int layerIndex) crash the Mapserver Instance, when i > try to remove a dynamic added layer. > > Howto remove a layer from a map object? > > Alternatively howto clean a layer? > > thanks. > From Maarten.van.der.Hoeven at KNMI.NL Mon Aug 1 05:14:18 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Fri Feb 8 15:07:52 2008 Subject: Line thickness with symbols Message-ID: David, Thank you for your reply. I understand what you are saying. But [:)], I want to combine these two. I want to increase/decrease the diameter of the circle, *AND* I want to make the line thicker. Is this possible? Regards, Maarten -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] Namens Fawcett, David Verzonden: Monday, July 25, 2005 4:38 PM Aan: MAPSERVER-USERS@LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Maarten, When you apply this symbol to a layer of TYPE LINE, increasing the size parameter will make the line thicker. If, as in your example, it is applied to a point layer, increasing size will increase the diameter of the circle. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Hoeven, Maarten van der Sent: Monday, July 25, 2005 9:28 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Yes, I worked with the size-parameter. But if my understanding is correct, this is the size of the symbol itself, and not the line thickness when plotting a 'not-filled' circle. As an example, see the attchment. In Switzerland, there are two blue 'empty circles', with size 17. The size is correct, only I want to 'thicken' the small blue line. Thanks! Maarten -----Oorspronkelijk bericht----- Van: Bart van den Eijnden [mailto:BEN@Syncera-ITSolutions.NL] Verzonden: Monday, July 25, 2005 4:11 PM Aan: Hoeven, Maarten van der; MAPSERVER-USERS@LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Use in your CLASS the following (5 is the width in pixels): CLASS .. STYLE SYMBOL "emptycircle" SIZE 5 END .. END Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Hoeven, Maarten van der" 07/25/05 >>> 04:07pm >>> Hi list, I am using a symbol file, with (part of) the symbol definition below. This is working okay, except the line thickness of this circle is (only) 1 pixel. Is there a way to make the line thickness more than 1? SYMBOL Name 'emptycircle' TYPE ELLIPSE FILLED FALSE POINTS 1 1 END Regards, Maarten From BEN at SYNCERA-ITSOLUTIONS.NL Mon Aug 1 05:20:23 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:52 2008 Subject: Line thickness with symbols Message-ID: Maarten, have a look here: http://mapserver.gis.umn.edu/doc46/cartographic-symbols.html Look at: Complex symbols, especially signatur4b en signatur5b. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Hoeven, Maarten van der" 08/01/05 11:14am >>> David, Thank you for your reply. I understand what you are saying. But [:)], I want to combine these two. I want to increase/decrease the diameter of the circle, *AND* I want to make the line thicker. Is this possible? Regards, Maarten -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] Namens Fawcett, David Verzonden: Monday, July 25, 2005 4:38 PM Aan: MAPSERVER-USERS@LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Maarten, When you apply this symbol to a layer of TYPE LINE, increasing the size parameter will make the line thicker. If, as in your example, it is applied to a point layer, increasing size will increase the diameter of the circle. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Hoeven, Maarten van der Sent: Monday, July 25, 2005 9:28 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Yes, I worked with the size-parameter. But if my understanding is correct, this is the size of the symbol itself, and not the line thickness when plotting a 'not-filled' circle. As an example, see the attchment. In Switzerland, there are two blue 'empty circles', with size 17. The size is correct, only I want to 'thicken' the small blue line. Thanks! Maarten -----Oorspronkelijk bericht----- Van: Bart van den Eijnden [mailto:BEN@Syncera-ITSolutions.NL] Verzonden: Monday, July 25, 2005 4:11 PM Aan: Hoeven, Maarten van der; MAPSERVER-USERS@LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Line thickness with symbols Use in your CLASS the following (5 is the width in pixels): CLASS .. STYLE SYMBOL "emptycircle" SIZE 5 END .. END Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Hoeven, Maarten van der" 07/25/05 >>> 04:07pm >>> Hi list, I am using a symbol file, with (part of) the symbol definition below. This is working okay, except the line thickness of this circle is (only) 1 pixel. Is there a way to make the line thickness more than 1? SYMBOL Name 'emptycircle' TYPE ELLIPSE FILLED FALSE POINTS 1 1 END Regards, Maarten From yvan.calcagni at VOILA.FR Mon Aug 1 05:55:27 2005 From: yvan.calcagni at VOILA.FR (Y. Calcagni) Date: Fri Feb 8 15:07:52 2008 Subject: Raster layer coordinates Message-ID: Hi everybody!!! I've searched for days how to get the extent of a raster layer but I didn't succeed... I just want to make a short function which can permit user to recenter the map to any layer extent in the mapfile. It already works fine with vector layers. If anyone has ideas.... Thanks in advance for your replies. Yvan From leopold.schefcik at MULTIMEDIAPLAN.AT Mon Aug 1 06:51:55 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:52 2008 Subject: EPSG In-Reply-To: Message-ID: hi list, I have data in this projection: Map_Projection: Map_Projection_Name: Lambert Conformal Conic Lambert_Conformal_Conic: Standard_Parallel: 46.000000 Standard_Parallel: 49.000000 Longitude_of_Central_Meridian: 13.333333 Latitude_of_Projection_Origin: 47.500000 False_Easting: 400000.000000 False_Northing: 400000.000000 Planar_Coordinate_Information: Planar_Coordinate_Encoding_Method: coordinate pair Coordinate_Representation: Abscissa_Resolution: 0.000512 Ordinate_Resolution: 0.000512 Planar_Distance_Units: meters Geodetic_Model: Horizontal_Datum_Name: D_MGI Ellipsoid_Name: Bessel_1841 Semi-major_Axis: 6377397.155000 Denominator_of_Flattening_Ratio: 299.152813 ---------------------------------------------------------- Question 1: Does anybody know what EPSG this is? Question 2: How can I get the right EPSG? greatings, Leopold From piero.cavalieri at HEIDI.IT Mon Aug 1 07:12:59 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri Feb 8 15:07:52 2008 Subject: EPSG Message-ID: I try: # MGI / Austria Lambert <31287> +proj=lcc +lat_1=49 +lat_2=46 +lat_0=47.5 +lon_0=13.33333333333333 +x_0=400000 +y_0=400000 +ellps=bessel +units=m +no_defs no_defs <> Epsg codes can be found in the epsg file inside the Proj\nad installation dir, for example Cheers P. Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote: > > >hi list, >I have data in this projection: > >Map_Projection: > Map_Projection_Name: Lambert Conformal Conic > Lambert_Conformal_Conic: > Standard_Parallel: 46.000000 > Standard_Parallel: 49.000000 > Longitude_of_Central_Meridian: 13.333333 > Latitude_of_Projection_Origin: 47.500000 > False_Easting: 400000.000000 > False_Northing: 400000.000000 > Planar_Coordinate_Information: > Planar_Coordinate_Encoding_Method: coordinate pair > Coordinate_Representation: > Abscissa_Resolution: 0.000512 > Ordinate_Resolution: 0.000512 > Planar_Distance_Units: meters > Geodetic_Model: > Horizontal_Datum_Name: D_MGI > Ellipsoid_Name: Bessel_1841 > Semi-major_Axis: 6377397.155000 > Denominator_of_Flattening_Ratio: 299.152813 >---------------------------------------------------------- >Question 1: Does anybody know what EPSG this is? >Question 2: How can I get the right EPSG? > >greatings, Leopold > From fwarmerdam at GMAIL.COM Mon Aug 1 10:26:59 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:52 2008 Subject: Raster layer coordinates In-Reply-To: Message-ID: On 8/1/05, Y. Calcagni wrote: > Hi everybody!!! > > I've searched for days how to get the extent of a raster layer but I didn't > succeed... I just want to make a short function which can permit user to > recenter the map to any layer extent in the mapfile. It already works fine > with vector layers. If anyone has ideas.... Yvan, I am not aware of any mapscript call to get the extents of a raster layer. In fact, for WMS or normal CGI use MapServer has essentially no mechanisms to query layout information from a raster layer. All it can do is ask them to draw themselves. If you are working in Python you can import "gdal" and use it to get geometry information. Otherwise you might want to add extents metadata on the layer in the .map file (either manually, or with some other sort of script) and then fetch from that. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jithesh at FLASHMAIL.COM Mon Aug 1 10:34:14 2005 From: jithesh at FLASHMAIL.COM (jithesh@flashmail.com) Date: Fri Feb 8 15:07:52 2008 Subject: GetCapabilites Request Message-ID: Hello Friends / Jeff, We are developing a phpmapscript program where we use a number of scale dependant layers. We use $layer->minscale and $layer->maxscale to set the scale range at which the layers have to be drawn. We get the all the scale dependant layers drawn perfectly. But, we are unable to get proper results for the drawquery function. When we query the scale dependant layers we get results from the layers for all the query functions but the selected objects are not hilighted. We use STYLE HILITE in the mapfile. At the same time, all the layers which do not bear the minscale and maxscale parameters (the layers that draw throughout all the zoom scales) are working perfectly with a query. The selected objects are hilited with color specified in the querymap. Can anybody suggest a solution for the same? why the scale dependant layers are not hilited during the query? We have tried with different versions of phpmapscript starting from version 4.0.x to 4.6. Expecting a reply from any of the user group members...phpmapscripters at dmsolutions... Thanking you in advance Jithesh From trujillo.carlos at GMAIL.COM Mon Aug 1 11:31:39 2005 From: trujillo.carlos at GMAIL.COM (cartman) Date: Fri Feb 8 15:07:52 2008 Subject: No subject Message-ID: -- Gracias. Atentamente, Carlos Arturo Trujillo Silva From logicalgenetics at GMAIL.COM Mon Aug 1 11:53:32 2005 From: logicalgenetics at GMAIL.COM (Dan Taylor) Date: Fri Feb 8 15:07:52 2008 Subject: ClickToPoint with projection Message-ID: I am having problems with translating click coordinates to map coordinates in mapscript/PHP. I have written a simple function which converts click coords to map coords based on a flat (lat/long) projection and it works well. However, I have now decided to use a mercator projection and, of course, the method no longer works correctly. Has anyone written a PHP function to convert from image coordinates to map coordinates when a mercator projection is used? If not, can anyone tell me where to look for help! Very best to all, Dan -- Dan Taylor Software Development Engineer, JTL Systems Ltd PhD Student, Reading University, UK http://www.logicalgenetics.com From jdport at VERITIME.COM Mon Aug 1 12:00:09 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri Feb 8 15:07:52 2008 Subject: ClickToPoint with projection Message-ID: What I do , is I convert to lat/long the same way you did, and then put the results in a point object and re-project that point to the mercator instead of converting from click coordinates directly to mercator. It seems to work ok... -Jeff ----- Original Message ----- From: "Dan Taylor" To: Sent: Monday, August 01, 2005 11:53 AM Subject: [UMN_MAPSERVER-USERS] ClickToPoint with projection I am having problems with translating click coordinates to map coordinates in mapscript/PHP. I have written a simple function which converts click coords to map coords based on a flat (lat/long) projection and it works well. However, I have now decided to use a mercator projection and, of course, the method no longer works correctly. Has anyone written a PHP function to convert from image coordinates to map coordinates when a mercator projection is used? If not, can anyone tell me where to look for help! Very best to all, Dan -- Dan Taylor Software Development Engineer, JTL Systems Ltd PhD Student, Reading University, UK http://www.logicalgenetics.com From dibblethewrecker at JIWE.ORG Mon Aug 1 12:35:48 2005 From: dibblethewrecker at JIWE.ORG (Philip Dillon-Thiselton) Date: Fri Feb 8 15:07:52 2008 Subject: Error making mapscript tcl In-Reply-To: <42EE0F2E.7080301@maich.gr> Message-ID: OK - I hurdled that little problem - mapserver-workbench then wanted mkWidgets, i fixed that ok but now... [mapserver-workbench] : msedit.tcl Error in startup script: can't find package msTclObjs while executing "package require msTclObjs" (file "/usr/bin/msedit.tcl" line 23) I can't even find msTclObjs mentioned on teh net except for on the mapserver related sites - what is it? Phil Nikos wrote: > Philip Dillon-Thiselton wrote: > >> I'm just trying to get this set up so I can use mapscript-workbench - >> any help appreciated! > > > > > Hi Philip, > > FWIW, I believe if you compile/link against tcl8.3, you should have no > problems... > I've ran into this also, but have not had time to look into it.. > > ANyway, you can compile/link against 8.3 and use it under > tcl8.4.....The problem is just the hassle of downloading the 8.3 > sources... > > regards, > > nicolas boretos > > > > From julia.harrell at NCMAIL.NET Mon Aug 1 13:07:32 2005 From: julia.harrell at NCMAIL.NET (Julia Harrell) Date: Fri Feb 8 15:07:52 2008 Subject: Slightly off topic: Sounds like,Mapserver+GDAL+... In-Reply-To: Message-ID: >>This sounds like promptserver which is a product that has been >>out for a couple of years. Did ESRI purchase promptserver or >>just borrow their ideas? It is based on the PromptServer product, but I couldn't get a straight answer as to whether ESRI bought the technology outright or licensed it for use in their products. I suspect it is probably the latter, since the PromptServer folks still had their own separate booth at the ESRI conference. From David.Hunter at FNF.COM Mon Aug 1 13:21:10 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:52 2008 Subject: sheild symbols in PDF Message-ID: I'm adding road shields to my demo application. Got them to work in PNG output, but they don't appear in PDF output. Is there a trick to getting symbols to work in PDF maps? I'm using CGI version 4.4.1. Here's a snippet that shows the class I created to display shields on one type of highway: LABELITEM "hwyname" LABELMAXSCALE 490 LABELMINSCALE 0 CLASSITEM "fcc" CLASS NAME "U.S. Highways" EXPRESSION "A21" STYLE COLOR 0 0 0 SYMBOL 'symbols/ushwy.png' END LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION cc SIZE TINY COLOR 0 0 0 END END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 7 COLOR 0 0 0 #OUTLINECOLOR 255 204 051 ANTIALIAS TRUE ANGLE auto FORCE false POSITION cc OFFSET 0 0 MINDISTANCE 335 END END END David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter@fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050801/a07e63a1/attachment.html From gireddy at GMAIL.COM Mon Aug 1 13:54:44 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri Feb 8 15:07:52 2008 Subject: wildcard characters in setExpression (php_mapscript) Message-ID: Here is my setExpression in php_mapscript $AG1->setexpression("([RDBD] == 'AG')"); Here AG inside the expression is a string, I tried all types of wildcards (PHP, c, Java) but it didn't respond to me, the output is just a blank image. Help appreciated. thank you, shashil. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Cell: 205-239-6655 From saintsjd at YAHOO.COM Mon Aug 1 16:11:12 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Fri Feb 8 15:07:52 2008 Subject: Query error. Error executing POSTGIS DECLARE In-Reply-To: <20050801180750.GA8045@keybit.net> Message-ID: From steve.lime at DNR.STATE.MN.US Mon Aug 1 16:57:03 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:52 2008 Subject: wildcard characters in setExpression (php_mapscript) Message-ID: Try one more set of quotes, like so: $AG1->setexpression("('[RDBD]' == 'AG')"); >>> Shashi Gireddy 08/01/05 12:54 PM >>> Here is my setExpression in php_mapscript $AG1->setexpression("([RDBD] == 'AG')"); Here AG inside the expression is a string, I tried all types of wildcards (PHP, c, Java) but it didn't respond to me, the output is just a blank image. Help appreciated. thank you, shashil. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Cell: 205-239-6655 From kgeurts at GIS.UMN.EDU Mon Aug 1 18:53:21 2005 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Fri Feb 8 15:07:52 2008 Subject: New Mapserver page Message-ID: New Website Users, This problem has been fixed. A huge number of temp files needed to be removed. Trent Erickson (system admin) has written a script to take care of this issue. Everyone should be able to add to the new site now. Thanks, Kari ------------- Begin Forwarded Message ------------- X-Umn-Remote-Mta: [N] lsv-m.tc.umn.edu [160.94.23.1] #+HF+LO+NM+TR X-Umn-Remote-Mta: [N] vogon.ccgis.de [212.79.172.106] #+NR+OF (I,-) X-Umn-Report-As-Spam: User-Agent: Mozilla Thunderbird 0.8 (X11/20040923) X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: AMaViS-ng at Geo-Consortium Bonn Date: Fri, 29 Jul 2005 11:41:00 +0200 From: Till Adams Subject: [UMN_MAPSERVER-USERS] New Mapserver page To: MAPSERVER-USERS@LISTS.UMN.EDU Dear guys developing the new Website. Good job!! But ... I want to participate, jut tried, but in the moment there seems to be a problem with the disk-space: I tried to insert a new HowTo new (ovf file with mysql-odbc connect on linux - horrable!!) but I couldn't do anything, because I always got them essage: Error Type IOError Error Value [Errno 28] No space left on device Thanks & have a nice weekend, Till -- Kari A. Geurts GIS and Remote Sensing Laboratory Department of Forest Resources University of Minnesota 1530 Cleveland Ave N. St. Paul, MN. 55108 Phone: 612-624-3459 Fax: 612-625-5212 From pykacz1 at YAHOO.COM Mon Aug 1 21:13:31 2005 From: pykacz1 at YAHOO.COM (Robert Nowak) Date: Fri Feb 8 15:07:52 2008 Subject: Mapserver Message-ID: I instaled MS4W and got Maplab and Chameleon working. But How can I get mapserver running, I went through many tutorials and instructions, and did not find any thing on this subject. From legoist at GMAIL.COM Mon Aug 1 23:10:31 2005 From: legoist at GMAIL.COM (Lego han (aka Doig)) Date: Fri Feb 8 15:07:52 2008 Subject: Expression not working on mapserver Message-ID: Below I have a snippet of a map file... I get a blank image every time I use the expression. If I comment it out everything appears. When I run the query, I get data.... What's the problem here? I've tried Quotes, no Quotes, all sorts of iterations. Help... DATA "the_geom from (SELECT the_geom,CASE WHEN cfcc IN ('A11','A12','A13','A14','A15','A16') THEN 'freeway' ELSE 'road' END as roadtype,cfcc, fename,oid FROM roads) as foo USING unique oid" TYPE LINE STATUS ON CLASS EXPRESSION "([roadtype] = 'freeway')" STYLE COLOR 55 50 0 OUTLINECOLOR 200 200 200 SYMBOL 0 MINSIZE 3 SIZE 5 END END CLASS EXPRESSION ([fename] = 'Monroe') STYLE COLOR 255 0 0 OUTLINECOLOR 200 200 200 SYMBOL 0 SIZE 3 END END From steve.lime at DNR.STATE.MN.US Mon Aug 1 23:46:23 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:52 2008 Subject: Expression not working on mapserver Message-ID: There are 2 problems: 1) EXPRESSION "([roadtype] = 'freeway')" should be EXPRESSION ([roadtype] = 'freeway') No qoutes around the logical expression otherwise MapServer treats the whole thing as one big string. 2) EXPRESSION ([roadtype] = 'freeway') should be EXPRESSION ('[roadtype]' = 'freeway') MapServer doesn't know anything about item types or anything so you must be overly explicit when preparing expressions. Same applies to the rest of your mapfile. Steve >>> "Lego han (aka Doig)" 08/01/05 10:10 PM >>> Below I have a snippet of a map file... I get a blank image every time I use the expression. If I comment it out everything appears. When I run the query, I get data.... What's the problem here? I've tried Quotes, no Quotes, all sorts of iterations. Help... DATA "the_geom from (SELECT the_geom,CASE WHEN cfcc IN ('A11','A12','A13','A14','A15','A16') THEN 'freeway' ELSE 'road' END as roadtype,cfcc, fename,oid FROM roads) as foo USING unique oid" TYPE LINE STATUS ON CLASS EXPRESSION "([roadtype] = 'freeway')" STYLE COLOR 55 50 0 OUTLINECOLOR 200 200 200 SYMBOL 0 MINSIZE 3 SIZE 5 END END CLASS EXPRESSION ([fename] = 'Monroe') STYLE COLOR 255 0 0 OUTLINECOLOR 200 200 200 SYMBOL 0 SIZE 3 END END From rummage_bin at YAHOO.COM Tue Aug 2 00:45:21 2005 From: rummage_bin at YAHOO.COM (Andrew L. Ross) Date: Fri Feb 8 15:07:52 2008 Subject: Document Type Declaration CSS IE6 Message-ID: Hi, I'm a relative newbie to Mapserver so perhaps I'm missing something simple. Anyway, I have an MS4W type installation on a windows xp development server. I've had no trouble getting GIS data to display coherently from a wep page like this: In order to then format the web page using CSS style declarations (I've placed these between the tags) I have to use a Document Type Declaration (DTD). This stuff: The problem starts when Mapserver adds its own header at the beginning of the template it submits to the browser. I'm talking about this: Well, as it turns out Internet Explorer 6 goes into "Quirks Mode" as soon as you add anything in front of the DTD (Mozilla based browsers have no problems with this). As a result all that beautiful CSS formating goes right out the window for IE. I am positive that this is the case because I pulled the source from the browser, manually removed the Mapserver header and resubmitted that file back to IE, sure enough everything worked perfectly. So, does anyone know of a way in which I can tell Mapserver not to place its header at the begining of the HTML template when it submits it to the browser? Any advice will be greatly appreciated, Andrew From taatuut at PLANET.NL Tue Aug 2 02:41:24 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Fri Feb 8 15:07:52 2008 Subject: Document Type Declaration CSS IE6 In-Reply-To: Message-ID: Hello Andrew, As far as I know there is no possibility to not add the header or change it's position in the output html at this moment. This could be a nice enhancement. I don't know the exact reasons why the header is put in, maybe one of the developers can respond on that. You can however get around this by parsing the created HTML on the server before sending it to the client. This requires some extra work: you need the client request to be directed to another page on the server, not directly to the mapserver. In this page (could be php, asp etc.) you extract the needed parameters from the request to create the request that will be send to the mapserver, for example with a (serverside!) xmhttp request. When receiving the response (still on the server) you can edit the html and then finally send the html back to the client. This might seem a bit of an overkill but will offer you some extra flexibility too, not only for removing the header but also for adding other possibilities. If you search through the mail list archives you will find more info on this. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Andrew L. Ross Sent: dinsdag 2 augustus 2005 6:45 To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Document Type Declaration CSS IE6 Hi, I'm a relative newbie to Mapserver so perhaps I'm missing something simple. Anyway, I have an MS4W type installation on a windows xp development server. I've had no trouble getting GIS data to display coherently from a wep page like this: In order to then format the web page using CSS style declarations (I've placed these between the tags) I have to use a Document Type Declaration (DTD). This stuff: The problem starts when Mapserver adds its own header at the beginning of the template it submits to the browser. I'm talking about this: Well, as it turns out Internet Explorer 6 goes into "Quirks Mode" as soon as you add anything in front of the DTD (Mozilla based browsers have no problems with this). As a result all that beautiful CSS formating goes right out the window for IE. I am positive that this is the case because I pulled the source from the browser, manually removed the Mapserver header and resubmitted that file back to IE, sure enough everything worked perfectly. So, does anyone know of a way in which I can tell Mapserver not to place its header at the begining of the HTML template when it submits it to the browser? Any advice will be greatly appreciated, Andrew From pscott at UWC.AC.ZA Tue Aug 2 03:01:22 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Fri Feb 8 15:07:52 2008 Subject: PHP Mapscript on Debian GNU/Linux Sarge Message-ID: I have just finished compiling php mapscript for Debian gnu/linux from the stock apt sources and debian packages. In order to compile php mapscript properly, using PHP's Regex, do the following: apt-get -s build-dep php4 > builddep-php4-packages apt-get -s build-dep mapserver > builddep-mapserver-packages apt-get build-dep php4 apt-get build-dep mapserver apt-get install fakeroot apt-get install dpkg-dev apt-get install php4-dev apt-get source php4 cd php4-4.3.10 fakeroot dpkg-buildpackage cp apache-build/regex/.libs/*.o regex/ apt-get source mapserver cd mapserver-4.4.1 fakeroot dpkg-buildpackage fgrep ./configure config.log > conf.new Edit the "conf.new" file to remove the leading "$" sign, and add the following configure options to the end of the line: --with-php=/usr/include/php4/ --with-php-regex-dir=../php4-4.3.10/regex/ ./conf.new make strip --strip-unneeded mapscript/php3/php_mapscript.so su cp mapscript/php3/php_mapscript.so /usr/lib/php4/20020429/ All thats left is to test: Thought someone else may benefit from this... --Paul From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Aug 2 03:03:47 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:52 2008 Subject: WMS supports SRS In-Reply-To: Message-ID: hi list, I have data in EPSG 31287. When I want to show this data with an WMS viewer I get the message "The WMS may not support the SRS you specified" So what can I do, that my WMS will support (I think) EPSG 4326? (WMS Software: UMN Server -> MS4W) thx Leopold From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 2 03:23:55 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:52 2008 Subject: WMS supports SRS Message-ID: Add wms_srs to your METADATA section, see: http://ms.gis.umn.edu/docs/howto/wms_server wms_srs "EPSG:31287" Check your WMS capabilities if it ends up there. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/02/05 09:03am >>> hi list, I have data in EPSG 31287. When I want to show this data with an WMS viewer I get the message "The WMS may not support the SRS you specified" So what can I do, that my WMS will support (I think) EPSG 4326? (WMS Software: UMN Server -> MS4W) thx Leopold From pimpoumvlan at HOTMAIL.COM Tue Aug 2 04:55:34 2005 From: pimpoumvlan at HOTMAIL.COM (Selim Hernandez) Date: Fri Feb 8 15:07:52 2008 Subject: [Projection problem] - simple translation Message-ID: Hello, I think my problem is simple but since I don't understand how the projection system work, it seems confusing to me. I have a map file with 2 layers that have 2 types of coordinates. In fact, the two types are nearly the same, but on one of them, 3000000 has been addded to the Y coordinate. For example : (from a mif file) here are the 2 types of coordinates (with or without 3000000) for the same 2 points. REGION 1 REGION 1 6 6 887807.365 3091440.265 887807.365 91440.265 887818.530 3091439.880 887818.530 91439.880 ... .... I don't succeed in displaying both at the same time. I think I have to add a PROJECTION object in my layers on maybe in my map object but I don't understand the way it works. If anyone has any idea, it would be very helpful. thank you From yvan.calcagni at VOILA.FR Tue Aug 2 06:12:48 2005 From: yvan.calcagni at VOILA.FR (SUBSCRIBE MAPSERVER-USERS Y. Calcagni) Date: Fri Feb 8 15:07:52 2008 Subject: Raster layer coordinates Message-ID: Thanks Franck for your reply, it explains a lot of things... but I persist to believe that such a capability to known any layer extent should be in any mapserver engine (and not also UMN mapserver). Is there an "historical" or technical reason for this lack (due to dependencies, perhaps)? Best regards. Yvan From nicolas at MAICH.GR Tue Aug 2 08:42:35 2005 From: nicolas at MAICH.GR (Nikos) Date: Fri Feb 8 15:07:52 2008 Subject: Error making mapscript tcl In-Reply-To: <42EE4F64.60704@jiwe.org> Message-ID: Philip Dillon-Thiselton wrote: > OK - I hurdled that little problem - mapserver-workbench then wanted > mkWidgets, i fixed that ok but now... How didi you fix the previous problem Philip? > > [mapserver-workbench] : msedit.tcl > Error in startup script: can't find package msTclObjs > while executing > "package require msTclObjs" > (file "/usr/bin/msedit.tcl" line 23) > > I can't even find msTclObjs mentioned on teh net except for on the > mapserver related sites - what is it? msTclObjs is a package included with msworkbench. It is an object wrapperthat uses the obstcl package. You msworkbench distro should have it, as well as someother packages in it.. I've fiddled with the msTclObjs package to use Itcl, which is more maintained than the obstcl package.. Let me know if you want a copy.. regards, nikos > > Phil From jmckenna at DMSOLUTIONS.CA Tue Aug 2 09:02:44 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri Feb 8 15:07:52 2008 Subject: Mapserver In-Reply-To: Message-ID: Hi Robert, I guess I don't understand your question. MS4W contains MapServer in CGI form, as well as PHP/MapScript. When you say you are using MapLab and Chameleon, that means you are running MapServer in the background (MapLab and Chameleon use MapServer through PHP/MapScript to produce map images). Here is a link to a tutorial on getting started with MapServer: http://www.omsug.ca/dl/osgis2004/ms101.zip jeff Robert Nowak wrote: > I instaled MS4W and got Maplab and Chameleon working. But How can I get > mapserver running, I went through many tutorials and instructions, and did > not find any thing on this subject. > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From fwarmerdam at GMAIL.COM Tue Aug 2 09:17:10 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:52 2008 Subject: Raster layer coordinates In-Reply-To: Message-ID: On 8/2/05, SUBSCRIBE MAPSERVER-USERS Y. Calcagni wrote: > Thanks Franck for your reply, it explains a lot of things... > but I persist to believe that such a capability to known any layer extent > should be in any mapserver engine (and not also UMN mapserver). Is there > an "historical" or technical reason for this lack (due to dependencies, > perhaps)? Yvan, I don't think there is any compelling reason things are this way, and in fact there is a bug report on the need to add extent support for rasters: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=79 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From legoist at GMAIL.COM Tue Aug 2 10:49:42 2005 From: legoist at GMAIL.COM (Lego han (aka Doig)) Date: Fri Feb 8 15:07:52 2008 Subject: Expression not working on mapserver In-Reply-To: Message-ID: Thanks. I actually got the quote issues worked out. It looks like this: EXPRESSION ('[roadtype]' = 'freeway') now. Quoting column names just doesn't come naturally to me. On 8/1/05, Steve Lime wrote: > There are 2 problems: > > 1) EXPRESSION "([roadtype] = 'freeway')" should be > EXPRESSION ([roadtype] = 'freeway') > > No qoutes around the logical expression otherwise MapServer treats the whole thing as one big string. > > 2) EXPRESSION ([roadtype] = 'freeway') should be > EXPRESSION ('[roadtype]' = 'freeway') > > MapServer doesn't know anything about item types or anything so you must be overly explicit when preparing expressions. Same applies to the rest of your mapfile. > > Steve > > >>> "Lego han (aka Doig)" 08/01/05 10:10 PM >>> > Below I have a snippet of a map file... I get a blank image every > time I use the expression. If I comment it out everything appears. > When I run the query, I get data.... What's the problem here? I've > tried Quotes, no Quotes, all sorts of iterations. > > Help... > > > DATA "the_geom from (SELECT the_geom,CASE WHEN cfcc IN > ('A11','A12','A13','A14','A15','A16') > THEN 'freeway' ELSE 'road' END as roadtype,cfcc, > fename,oid FROM roads) as foo USING unique oid" > TYPE LINE > STATUS ON > CLASS > EXPRESSION "([roadtype] = 'freeway')" > STYLE > COLOR 55 50 0 > OUTLINECOLOR 200 200 200 > SYMBOL 0 > MINSIZE 3 > SIZE 5 > END > END > CLASS > EXPRESSION ([fename] = 'Monroe') > STYLE > COLOR 255 0 0 > OUTLINECOLOR 200 200 200 > SYMBOL 0 > SIZE 3 > END > END > > From dibblethewrecker at JIWE.ORG Tue Aug 2 11:03:19 2005 From: dibblethewrecker at JIWE.ORG (Phil Dillon-Thiselton) Date: Fri Feb 8 15:07:52 2008 Subject: Error making mapscript tcl In-Reply-To: <42EF6A3B.2040108@maich.gr> Message-ID: > -----Original Message----- > From: Nikos [mailto:nicolas@MAICH.GR] > Sent: 02 August 2005 13:43 > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Error making mapscript tcl > > Philip Dillon-Thiselton wrote: > > > OK - I hurdled that little problem - mapserver-workbench then wanted > > mkWidgets, i fixed that ok but now... > > How didi you fix the previous problem Philip? I switched to tcl 8.3.5 as you suggested to build against and it worked fine > > > > > [mapserver-workbench] : msedit.tcl > > Error in startup script: can't find package msTclObjs > > while executing > > "package require msTclObjs" > > (file "/usr/bin/msedit.tcl" line 23) > > > > I can't even find msTclObjs mentioned on teh net except for on the > > mapserver related sites - what is it? > > msTclObjs is a package included with msworkbench. It is an object > wrapperthat uses the obstcl package. > You msworkbench distro should have it, as well as someother packages in > it.. So it should be in http://download.sourceforge.net/msworkbench/msworkbench-0.3.tar.gz > > I've fiddled with the msTclObjs package to use Itcl, which is more > maintained than the obstcl package.. > Let me know if you want a copy.. If you can help implement it - I am putting this all together for Live GIS distribution :) > > regards, > nikos > > > > > Phil > From gireddy at GMAIL.COM Tue Aug 2 11:52:20 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri Feb 8 15:07:52 2008 Subject: wildcard characters in setExpression (php_mapscript) In-Reply-To: Message-ID: Thanks alot Steve, Nicol. $AG1->setexpression("([RDBD] =~ '/AG/')"); didn't work but both $AG1->setexpression("('[RDBD]' == 'AG')"); and $AG1->setexpression('[RDBD]' == 'AG'); are working fine. Thank you, shashi. On 8/1/05, Steve Lime wrote: > Try one more set of quotes, like so: > > $AG1->setexpression("('[RDBD]' == 'AG')"); > > >>> Shashi Gireddy 08/01/05 12:54 PM >>> > Here is my setExpression in php_mapscript > > $AG1->setexpression("([RDBD] == 'AG')"); > > Here AG inside the expression is a string, I tried all types of > wildcards (PHP, c, Java) but it didn't respond to me, the output is > just a blank image. > > Help appreciated. > thank you, > shashil. > > -- > Shashi Kiran Reddy. Gireddy, > Graduate Assistant, > CBER, University of Alabama. > http://www.cs.ua.edu/shashi > Cell: 205-239-6655 > > -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Cell: 205-239-6655 From wer at CSTONE.NET Tue Aug 2 14:49:29 2005 From: wer at CSTONE.NET (William E Reid) Date: Fri Feb 8 15:07:52 2008 Subject: Tigerline data Imported to postgis and TEXT LABEL Message-ID: Greetings, GDAL 1.2.1.0, released 2004/06/23 MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PostgreSQL 7.4.6 I have noticed that ogr2ogr will import tigerline data using 'character' types for some of the columns. When doing normal selects (ex: where fename = 'teststreet') I have two choices: where fename like 'teststreet%' or where trim(fename) = 'teststreet'. Same goes for toaddr, fraddr, fedirp etc... Basically, anywhere I would want to see varchar(X) used, character(x) is used so trim() or % are needed. Mapscript will gladly display TEXT defined in my LABEL object, but it does not trim the spaces (I am assuming because postgres treats characters as (X length) strings without termination. So I end up with labels that take up a lot of real estate especially when displaying [toaddr]-[fraddr] as an example each being defined as character(11) (right justified?!). I can modify my columns and fix the problem (create column with new type,copy data, move column, remove column....), but I was really hoping to stay with generic tigerline data and whatever ogr wants it to be when converted to postgis. I am trying to cut back on the already large task of updating/creating/indexing what I consider to be large amounts of data. Some of this question belongs to ogr2ogr but the remainder (displaying of labels) I wander about in mapserver. Any little tidbits of thought out there for my TEXT field and dealing with extra spaces returned from postgis/ogr2ogr? It could also be done efficiently through postgres with a cast, but as I watch the statements coming from mapserver (and learn a bunch too), I would not begin to want to throw and extra implicit cast in there. Also I didn't really want to add a regex for each TEXT label. Do most of you guys (in the states) end up using Tigerline data or do you get it somewhere else? Do you roll your own tables for everything anyway? Thanks for all the Maps. I dig it. Mapserver has been a really useful tool for us. -=Bill From kmulka at GLC.ORG Tue Aug 2 15:34:32 2005 From: kmulka at GLC.ORG (Kyle Mulka) Date: Fri Feb 8 15:07:52 2008 Subject: Image Caching Message-ID: Is there any way to tell mapserver to cache the images produced by the WMS service and then replay those on an identical request later to speed things up significantly? Basically, I want a mapserver backend to Google Maps. Right now, I've gotten two WMS layers similar to Google's Hybrid mode. I do have caching set up so that mapserver isn't being used to draw most of the tiles, but I would like this functionality behind the WMS service itself instead of in front. Here's my demo: http://maps.kylemulka.com/umbuildings-onsat.php And another demo using Google's roads layer: http://maps.kylemulka.com/umbuildings.php -Kyle Mulka -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050802/847736ca/attachment.html From David.Hunter at FNF.COM Tue Aug 2 16:41:23 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer Message-ID: I'm using Mapinfo files for vector data, some of the layers are county-based. I created tiled index layers for these county-based layers (my demo consists of four counties in North Carolina) using the ogrtindex utility. When the map straddles the border between two counties, the tiled layers do not appear in one of the counties (the roads, etc. stop at the county border). Panning either direction so that the map no longer straddles the border makes the missing layers reappear. I assume this is a bug in GDAL/OGR or mapserver (CGI version 4.4.1). Has anybody else seen this problem? Is there a workaround, or do I need to rethink my use of tiled layers? The application will need to cover the entire U.S., so effective indexing of the data is a requirement. David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter@fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050802/1693b551/attachment.html From ed at TOPOZONE.COM Tue Aug 2 16:49:32 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer Message-ID: David - It's dangerous to assume that problems are caused by bugs in the software rather than in your own code ! I don't have any reason to think there's a MapServer problem - could you please post the MAP file you're using? Thanks. - Ed P.S. I have a large number of county-based tiled vector data sets indexed and being served by MapServer for the entire US, so I'm rather certain this scenario can be made to work. You might want to think through your application design, however, since simply trying to index everything is not necessarily the best solution. The primary goal of performance tuning should be to make sure that data that won't be used in the output map isn't touched or even considered wherever possible. Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Hunter, David - St. Louis Park, MN Sent: Tuesday, August 02, 2005 4:41 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] problem with tiled layer I'm using Mapinfo files for vector data, some of the layers are county-based. I created tiled index layers for these county-based layers (my demo consists of four counties in North Carolina) using the ogrtindex utility. When the map straddles the border between two counties, the tiled layers do not appear in one of the counties (the roads, etc. stop at the county border). Panning either direction so that the map no longer straddles the border makes the missing layers reappear. I assume this is a bug in GDAL/OGR or mapserver (CGI version 4.4.1). Has anybody else seen this problem? Is there a workaround, or do I need to rethink my use of tiled layers? The application will need to cover the entire U.S., so effective indexing of the data is a requirement. David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter@fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050802/469cdf9c/attachment.html From fwarmerdam at GMAIL.COM Tue Aug 2 16:51:05 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B6308C2@smbfnis-chi01.fnis.com> Message-ID: On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > > > > I'm using Mapinfo files for vector data, some of the layers are > county-based. I created tiled index layers for these county-based layers > (my demo consists of four counties in North Carolina) using the ogrtindex > utility. When the map straddles the border between two counties, the tiled > layers do not appear in one of the counties (the roads, etc. stop at the > county border). Panning either direction so that the map no longer > straddles the border makes the missing layers reappear. I assume this is a > bug in GDAL/OGR or mapserver (CGI version 4.4.1). Has anybody else seen > this problem? Is there a workaround, or do I need to rethink my use of > tiled layers? The application will need to cover the entire U.S., so > effective indexing of the data is a requirement. David, I haven't seen a problem like this and find it a bit hard to imagine how it could be occuring unless there are complicating factors not clear from your email. If you can reproduce in a way I can replicate easily with 4.6, then I would be willing to dig into it and try to fix it. I'm not too keen on looking into 4.4 issues though. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Hunter at FNF.COM Tue Aug 2 16:54:31 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver_demo.map Type: application/octet-stream Size: 17082 bytes Desc: mapserver_demo.map Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050802/1a4d6aa8/mapserver_demo.obj From David.Hunter at FNF.COM Tue Aug 2 16:58:08 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer Message-ID: Should I try and upgrade to 4.6? What would be involved, merely copying the contents of the bin directory to my cgi-bin? -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam@gmail.com] Sent: Tuesday, August 02, 2005 3:51 PM To: Hunter, David - St. Louis Park, MN Cc: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with tiled layer On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > > > > I'm using Mapinfo files for vector data, some of the layers are > county-based. I created tiled index layers for these county-based layers > (my demo consists of four counties in North Carolina) using the ogrtindex > utility. When the map straddles the border between two counties, the tiled > layers do not appear in one of the counties (the roads, etc. stop at the > county border). Panning either direction so that the map no longer > straddles the border makes the missing layers reappear. I assume this is a > bug in GDAL/OGR or mapserver (CGI version 4.4.1). Has anybody else seen > this problem? Is there a workaround, or do I need to rethink my use of > tiled layers? The application will need to cover the entire U.S., so > effective indexing of the data is a requirement. David, I haven't seen a problem like this and find it a bit hard to imagine how it could be occuring unless there are complicating factors not clear from your email. If you can reproduce in a way I can replicate easily with 4.6, then I would be willing to dig into it and try to fix it. I'm not too keen on looking into 4.4 issues though. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Tue Aug 2 17:10:55 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B6308D7@smbfnis-chi01.fnis.com> Message-ID: On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > Should I try and upgrade to 4.6? What would be involved, merely copying > the contents of the bin directory to my cgi-bin? David, Well, that depends on your circumstances. Where you get your binaries, etc. Generally speaking the .map file and other application components should be pretty compatible between 4.4 and 4.6 so the main issue is replacing your binaries and support libraries with a newer version. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Hunter at FNF.COM Tue Aug 2 17:16:35 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer Message-ID: If I remember right, I downloaded the Win binaries from the Hobu's Kitchen Sink site. If it's just a matter of downloading the 4.6 version and copying that stuff, I'll get right on it. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, August 02, 2005 4:11 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with tiled layer On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > Should I try and upgrade to 4.6? What would be involved, merely copying > the contents of the bin directory to my cgi-bin? David, Well, that depends on your circumstances. Where you get your binaries, etc. Generally speaking the .map file and other application components should be pretty compatible between 4.4 and 4.6 so the main issue is replacing your binaries and support libraries with a newer version. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Hunter at FNF.COM Tue Aug 2 18:01:01 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer Message-ID: I upgraded to 4.6, and I get an application error, mapserver is attempting to write to address 0x00000010. I traced it down to using highway shield symbols. When I remove the major roads label layers, the error goes away. If I change the path to the symbol .PNGs, I get a mapserver-generated error message. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, August 02, 2005 4:11 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with tiled layer On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > Should I try and upgrade to 4.6? What would be involved, merely copying > the contents of the bin directory to my cgi-bin? David, Well, that depends on your circumstances. Where you get your binaries, etc. Generally speaking the .map file and other application components should be pretty compatible between 4.4 and 4.6 so the main issue is replacing your binaries and support libraries with a newer version. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Hunter at FNF.COM Tue Aug 2 18:48:30 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:52 2008 Subject: problem with tiled layer Message-ID: I was able to reproduce the problem using version 4.6. I can send you a .map file, data and GET strings that would show the problem, if you're interested. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, August 02, 2005 4:11 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with tiled layer On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > Should I try and upgrade to 4.6? What would be involved, merely copying > the contents of the bin directory to my cgi-bin? David, Well, that depends on your circumstances. Where you get your binaries, etc. Generally speaking the .map file and other application components should be pretty compatible between 4.4 and 4.6 so the main issue is replacing your binaries and support libraries with a newer version. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Tue Aug 2 20:02:00 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:07:52 2008 Subject: shp2tile 1.4 released Message-ID: Hi all, I have just released shp2tile v1.4 which contains bug fixes to some serious problems. I want to thank Bob Basques for all his help testing and supplying me with data that reproduced the problem he found. You can get it from the download page at iMaptools.com http://imaptools.com/?tab=4 PLEASE UPGRADE to this new version! It fixes some major problems. There is probably NO need to re-tile your data. The major symptom was crashing while tiling in quadtree mode. Thanks, -Stephen Woodbridge http://iMaptools.com From chris at NARX.NET Wed Aug 3 00:01:07 2005 From: chris at NARX.NET (Chris Tweedie) Date: Fri Feb 8 15:07:52 2008 Subject: SLD support on LINUX mapserver? Message-ID: Hi guys, we are having some severe problems trying to get mapserver to consume the SLD paramater on our RH Linux install. We have compiled v4.4.2 to mirror our existing windows installs, everything works - except the SLD. An example SLD getmap request, which works correctly on our windows install. http://localhost/cgi-bin/mapserv?map=/path/to/the.map&service=WMS&version=1.0.0&request=GetMap&format=image/png&width=500&height=500&srs=EPSG:4283&layers=MRS,Cadastre,Roads,Contours,Spot-Heights,Control-Points,LGA&SLD=http://localhost/sld.xml&bbox=115.841231613,-31.9617279432,115.85460954,-31.9530975116 (Obviously, the paths to the map file and SLD have been modified, however they are fully accessible by the server) I have double checked all available list posts and documentation and i havent been able to find any solutions. The linux install is seemingly ignoring/refusing the SLD request and only outputting the map file classifications (whereas the windows one is overriding the mapfile with the SLD, as it should). I have cut down the SLD to a simple line colour and submitted a single layer with the same result. There also appears to be no associated errors popping up in the logs. I am at a loss to what could be causing this. Any suggestions would be appreciated guys. Regards, From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 3 02:01:16 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:52 2008 Subject: Image Caching Message-ID: Currently there is no mechanism for this. There has been talk of implementing this though. Search the mapserver-dev archives for "Sally's Summit Summary". Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Kyle Mulka 08/02/05 21:33 PM >>> Is there any way to tell mapserver to cache the images produced by the WMS service and then replay those on an identical request later to speed things up significantly? Basically, I want a mapserver backend to Google Maps. Right now, I've gotten two WMS layers similar to Google's Hybrid mode. I do have caching set up so that mapserver isn't being used to draw most of the tiles, but I would like this functionality behind the WMS service itself instead of in front. Here's my demo: http://maps.kylemulka.com/umbuildings-onsat.php And another demo using Google's roads layer: http://maps.kylemulka.com/umbuildings.php -Kyle Mulka From arnulf.christl at CCGIS.DE Wed Aug 3 02:15:18 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri Feb 8 15:07:52 2008 Subject: Image Caching In-Reply-To: <20050802193235.CB4232454@superior.great-lakes.net> Message-ID: Kyle Mulka wrote: > Is there any way to tell mapserver to cache the images produced by the > WMS service and then replay those on an identical request later to speed > things up significantly? Currently there is no server side caching implemented within UMN MapServer. As far as i know this is not planned. Personally i think it should not be done. By the looks of what i have seen in your demo you do a great job already. :-) > Basically, I want a mapserver backend to Google Maps. Right now, I've > gotten two WMS layers similar to Google's Hybrid mode. I do have caching > set up so that mapserver isn't being used to draw most of the tiles, but > I would like this functionality behind the WMS service itself instead of > in front. Why that? Is it not a good idea to use whatever is best suitable for caching? Probably this will rather be some reliable and tested squid proxy set-up or any kind of front end behind which MapServer can hide. The job of MapServer is to serve maps - hence the name =:-). The job of a proxy that can cache would be just that. A similar discussion is going on around authentication and authorisation - there are loads of reliable AA services which can be wrapped around an existing service, so why burden this on top of MapServer. The only reason would be to minimize installation and maintenance efforts and those are negligible compared to all the rest when MapServer works in an enterprise environment. > Here's my demo: > _http://maps.kylemulka.com/umbuildings-onsat.php_ > > And another demo using Google's roads layer: > _http://maps.kylemulka.com/umbuildings.php_ > > -Kyle Mulka Cool demos, would you share the architecture on how you implemented caching in this installation? In some environments (preferrably very large networks) you do not have to worry at all about caching because its been done by the network anyway. That is when we start to develop a problem the other way round - how to tell the caching service to request for a new tile because the content has changed on the server... Best, From giorgio.plazzotta at SARASRICERCHE.IT Wed Aug 3 03:35:44 2005 From: giorgio.plazzotta at SARASRICERCHE.IT (Giorgio Plazzotta) Date: Fri Feb 8 15:07:52 2008 Subject: Postgis table vs. Tileindexed shapefile Message-ID: MAPSERVER-USERS Digest - 1 Aug 2005 to 2 Aug 2005 (#2005-221)Hi all. I started to build my Mapserver Mapfile data using shapefiles and now I am moving all the vector layers into Postgis. I wonder what to do with tileindexed data. Tileindexing improved the performance vs. the huge vector shapefile but how is the comparison with the PostGis table? I suppose that the tileindexed shapefile should still be faster than the gist indexed large Postgis table, but i could be wrong. From an organizative point of view I would prefer to have all the vector data into Postgis but I would accept to pay too much in performance. Did anybody already do such a benchmark? ps: Before inquiring the Mapserver list i tried to sumbit this question to the Postgis list with no feedback. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050803/75a3b2ce/attachment.html From Gail.Millin at MANCHESTER.AC.UK Wed Aug 3 03:57:44 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail) Date: Fri Feb 8 15:07:52 2008 Subject: Mapserver Message-ID: Robert, The URL http://mapserver.gis.umn.edu/doc46/win32_compile-howto.html provides you with details on Windows installation for MapServer. I would install MapServer first create a basic MapFile and do some GetCapabilities/GetMap requests to check MapServer is working fine. Then configure the mapfile to work with Chameleon. Other useful documentation can be found on the MapeServer documents page http://mapserver.gis.umn.edu/doc.html Kind Regards Gail ------------------------------------------------------------- Gail Rebecca Millin Geodata Interoperability Support Officer ------------------------------------------------------------- MIMAS Manchester Computing The University of Manchester Oxford Road Manchester M13 9PL Telephone: +44 (0) 161 275 0581 E-mail: Gail.Millin@manchester.ac.uk Website: http://www.mimas.ac.uk/spatial ------------------------------------------------------------- -----Original Message----- From: Robert Nowak [mailto:pykacz1@YAHOO.COM] Sent: Tuesday, August 02, 2005 2:14 AM Subject: Mapserver I instaled MS4W and got Maplab and Chameleon working. But How can I get mapserver running, I went through many tutorials and instructions, and did not find any thing on this subject. From aborruso at TIN.IT Wed Aug 3 03:37:05 2005 From: aborruso at TIN.IT (andy) Date: Fri Feb 8 15:07:52 2008 Subject: OSG 05 In-Reply-To: <1095230037.4147e2555afc2@smwp01.maa.sify.net> Message-ID: Dear all, are there available any proceedings of OSG 05? thank you, a From Gail.Millin at MANCHESTER.AC.UK Wed Aug 3 04:12:57 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail) Date: Fri Feb 8 15:07:52 2008 Subject: EPSG Message-ID: Leopold, The EPSG can be found in the EPSG files go to C:\proj\nad Gail ------------------------------------------------------------- Gail Rebecca Millin Geodata Interoperability Support Officer ------------------------------------------------------------- MIMAS Manchester Computing The University of Manchester Oxford Road Manchester M13 9PL Telephone: +44 (0) 161 275 0581 E-mail: Gail.Millin@manchester.ac.uk Website: http://www.mimas.ac.uk/spatial ------------------------------------------------------------- -----Original Message----- From: Leopold Schefcik (MULTIMEDIAPLAN.AT) [mailto:leopold.schefcik@MULTIMEDIAPLAN.AT] Sent: Monday, August 01, 2005 11:52 AM Subject: EPSG hi list, I have data in this projection: Map_Projection: Map_Projection_Name: Lambert Conformal Conic Lambert_Conformal_Conic: Standard_Parallel: 46.000000 Standard_Parallel: 49.000000 Longitude_of_Central_Meridian: 13.333333 Latitude_of_Projection_Origin: 47.500000 False_Easting: 400000.000000 False_Northing: 400000.000000 Planar_Coordinate_Information: Planar_Coordinate_Encoding_Method: coordinate pair Coordinate_Representation: Abscissa_Resolution: 0.000512 Ordinate_Resolution: 0.000512 Planar_Distance_Units: meters Geodetic_Model: Horizontal_Datum_Name: D_MGI Ellipsoid_Name: Bessel_1841 Semi-major_Axis: 6377397.155000 Denominator_of_Flattening_Ratio: 299.152813 ---------------------------------------------------------- Question 1: Does anybody know what EPSG this is? Question 2: How can I get the right EPSG? greatings, Leopold From my_massoo at LYCOS.COM Wed Aug 3 04:21:19 2005 From: my_massoo at LYCOS.COM (prashant n) Date: Fri Feb 8 15:07:52 2008 Subject: Installation Message-ID: thanks to all of mapserver guys and those who are supporting the map serving regards shann ----- Original Message ----- From: "Till Adams" To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Installation Date: Fri, 29 Jul 2005 11:33:01 +0200 > > prashant n wrote: > > hi list, > > > > is it possible to publish this document in either pdf / ps / open > > office format so that everyone can have a look at this and follow > > the instructions. > > Mr.Till Adams, can you publish this as it would be great help to > > mapserver newbees like me, who often run into installation > > problems > > > > Thanks & Regards > > Shann > > > > ----- Original Message ----- > > From: "Till Adams" > > To: MAPSERVER-USERS@LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Installation > > Date: Wed, 27 Jul 2005 16:24:57 +0200 > > > > > >> Geraint Lee wrote: > >> > >>> Till Adams wrote: > >>> > >>> > >>>> Geraint Lee wrote: > >>>> > >>>> > >>>>> Hey all, > >>>>> > >>>>> I've been trying to install mapserver for several days now, coming > >>>>> accross a number of installation problems (with other programs like gd, > >>>>> jpeg-2b...) which i've overcome... now i'm stuck on mapserver. > >>>>> > >>>>> gd, jpeg, freetype2, libiconv and libpng are all installed on the server > >>>>> (FreeBSD 4.11)... anyway, here's the output from: > >>>>> ./configure --with-png=/usr/local --with-jpeg=/usr/local > >>>>> --with-freetype=/usr/local --without-xpm --with-libiconv=/usr/local > >>>>> --with-gd=/usr/local > >>>>> -- ... > >>>>> configure: checking where FreeType 2.x is installed... > >>>>> using libfreetype from -L/usr/local/lib -Wl,--rpath > >>>>> -Wl,/usr/local/lib -lfreetype -lz > >>>>> checking for FT_Init_FreeType in -lfreetype... no > >>>>> using libfreetype -L/usr/local/lib -Wl,--rpath > >>>>> -Wl,/usr/local/lib -lfreetype -lz from system libs. > >>>>> configure: checking where Zlib is installed... > >>>>> checking for zlibVersion in -lz... yes > >>>>> using libz from system libs. > >>>>> configure: checking where PNG is installed... > >>>>> using libpng from -L/usr/local/lib64 -lpng > >>>>> configure: checking whether we should include JPEG support... > >>>>> using libjpeg from system -L/usr/local/lib64 -ljpeg > >>>>> configure: checking where libiconv is installed... > >>>>> checking for iconv_open in -lc... no > >>>>> checking for libiconv_open in -liconv... yes > >>>>> using libiconv from -L/usr/local/lib64 -liconv > >>>>> libiconv found. Enabling internationalization (-DUSE_ICONV) > >>>>> configure: checking for GD 2.0.12 or higher... > >>>>> checking for gdImageSetAntiAliased in -lgd... no > >>>>> configure: checking whether GD needs libiconv... > >>>>> checking for gdImageSetAntiAliased in -lgd... no > >>>>> configure: error: Could not find gd.h or libgd.a/libgd.so in > >>>>> /usr/local. Make sure GD 2.0.12 or higher is compiled before calling > >>>>> configure. You may also get this error if you didn't specify the > >>>>> appropriate location for one of GD's dependencies (freetype, libpng, > >>>>> libjpeg or libiconv). > >>>>> -- all of those files exist in /usr/local/lib and /local - > >>>>> does anyone have > >>>>> any suggestions at all as to what the problem may be. > >>>>> > >>>>> Thanks > >>>>> > >>>>> Geraint > >>>> > >>>> > >>>> > >>>> > >>>> Geraint, > >>>> > >>>> which OS (Debian Linux, Suse, edHat, etc.) do you use? > >>>> > >>>> We have several step-to-step descriptions (sorry for not > >>>> making them open to everybody till now) for Win, Suse 9.x, > >>>> Debian Woody and Sarge, Mandrake, RedHat and FreeBSD. I may > >>>> send you the appropriate for you. > >>>> > >>>> Fiorst of all - the easiest may be just to try a > >>>> > >>>> # /sbin/ldconfig /usr/local/lib -v > >>>> > >>>> and > >>>> > >>>> # /sbin/ldconfig /local -v > >>>> > >>>> to make the libs known to your system. Also add these pathes > >>>> to the file /etc/ld.so.config, so you don't have to do this > >>>> every time you reboot. > >>>> > >>>> Greetings from Bonn, Till > >>>> > >>>> > >>> > >>> Hi, > >>> > >>> i'm running FreeBSD-4.11. > >>> > >>> i've tried /sbin/ldconfig -v /usr/local/lib with no luck > >>> > >>> i would appreciate it if you could send the installation > >>> instructions for freebsd. > >>> > >>> Thanks > >>> > >>> Geraint > >>> > >> > >> Geraint, > >> > >> it's OpenOffice format - hope you may read this - if there are > >> any comments, please add and send it back > >> > >> Send it in a minute direct, so I don't bory this list with > >> attaschments - have fun! Till > >> > >> -- Mit freundlichen Gr?ssen aus Bonn, > >> > >> Till Adams > >> > >> ****************************************** > >> * released: AmeiN! ArcMap-Export-2-UMN * > >> * LiveLinux 'WebGIS on CD' * > >> * http://www.terrestris.de * > >> ****************************************** > >> > >> ------------------------------------------ > >> > >> Dipl. Geogr. Till Adams > >> terrestris, H. Paulsen& T. Adams GbR > >> Siemensstr. 8 * 53121 Bonn > >> Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > >> info@terrestris.de * http://www.terrestris.de > > > > > > > > Dear Prashant, > > we will put these documents on the NEW mapserver website as > Howto's. I think they will be there in the next two weeks. > > I send them to you personally now. > > Cheers, Till > > > -- Mit freundlichen Gr?ssen aus Bonn, > > Till Adams > > ****************************************** > * released: AmeiN! ArcMap-Export-2-UMN * > * LiveLinux 'WebGIS on CD' * > * http://www.terrestris.de * > ****************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, H. Paulsen& T. Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info@terrestris.de * http://www.terrestris.de -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com From flavio at TYDAC.CH Wed Aug 3 04:22:58 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri Feb 8 15:07:52 2008 Subject: transparent symbol In-Reply-To: <425ec3b605072811137f7c554a@mail.gmail.com> Message-ID: Hi Lluis in the layer saction set the following TRANSPARENCY 1000 (or TRANSPARENCY ALPHA) Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio@tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Llu?s Garcia i Mestres To: MAPSERVER-USERS@LISTS.UMN.EDU Date: Thu, 28 Jul 2005 20:13:37 +0200 Subject: [UMN_MAPSERVER-USERS] transparent symbol > Hi list, > I'm trying to implement pixmap symbols transparent. I was following > the > current documentation but it's a litlle confusing with the inde > color. In my > case, I have a white background that I want to skip. How can I figure > out > what is my index color for a white background? > The outputformat of the map is the following: > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGBA > > EXTENSION "jpg" > > TRANSPARENT ON > > END > and the symbol definition > SYMBOL > NAME 'eolica' > TYPE PIXMAP > IMAGE 'eolica2.png' > TRANSPARENT 1 > END > > > -- > Llu?s Garcia i Mestres, > > lluisgm@gmail.com > lluisgm@hotmail.com > From vincent.dacol at LAPOSTE.NET Wed Aug 3 04:29:55 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Fri Feb 8 15:07:52 2008 Subject: Phpmapscript.dll Message-ID: Hello everyone, I have a little strange probleme. I want to use phpmapscript.dll in my php installation. I have put the dll in the correct folder (ext) and my php.ini is correctly configured. But when I make a phpinfo(), phpmapscript doesn't appeart on the screen. Anybody have had this problem? And how is it possible to active this extention? I only want to use this extention, not mapserver cgi. Have a nice day, Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From Gail.Millin at MANCHESTER.AC.UK Wed Aug 3 04:30:54 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail) Date: Fri Feb 8 15:07:52 2008 Subject: WMS supports SRS Message-ID: Leopold, Do you have the Proj library installed to your c drive? There should be an EPSG file at C:\proj\nad check that the EPSG 31287 is supported in that file. If it is,"wms_srs" "EPSG:31287" set in WEB element and "init=epsg:31287" in Projection element in the mapfile? Gail ------------------------------------------------------------- Gail Rebecca Millin Geodata Interoperability Support Officer ------------------------------------------------------------- MIMAS Manchester Computing The University of Manchester Oxford Road Manchester M13 9PL Telephone: +44 (0) 161 275 0581 E-mail: Gail.Millin@manchester.ac.uk Website: http://www.mimas.ac.uk/spatial ------------------------------------------------------------- From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 3 04:33:00 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:52 2008 Subject: Phpmapscript.dll Message-ID: Hi, did you a do a dl of the Mapscript extension before calling phpinfo? Or did you put the extension in php.ini to load by default? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "vincent.dacol" 08/03/05 10:30 AM >>> Hello everyone, I have a little strange probleme. I want to use phpmapscript.dll in my php installation. I have put the dll in the correct folder (ext) and my php.ini is correctly configured. But when I make a phpinfo(), phpmapscript doesn't appeart on the screen. Anybody have had this problem? And how is it possible to active this extention? I only want to use this extention, not mapserver cgi. Have a nice day, Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From douglass_davis at EARTHLINK.NET Wed Aug 3 04:47:30 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Fri Feb 8 15:07:52 2008 Subject: problem with state polygon labels Message-ID: I have a shapefile of the U.S. states. Some states have multiple polygons... For example, those states with islands. The problem is, mapserver will do a label for each polygon in the state. The only way I know of to correct this is just to use a different shapefile with either: some data item to say which polygon is the "main" part of the state. Or some shapefile with points that represent the center of the state. That's my guess anyway. Can any one point me in the right direction to correct this problem? -- http://www.douglassdavis.com From vincent.dacol at LAPOSTE.NET Wed Aug 3 04:48:10 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Fri Feb 8 15:07:52 2008 Subject: Phpmapscript.dll Message-ID: Hi Bart, I have put the extention in php.ini to load by default. I couldn't use the dl in a script. Best regard, Vincent > Hi, > > did you a do a dl of the Mapscript extension before calling phpinfo? Or did you put the extension in php.ini to load by default? > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > >>> "vincent.dacol" 08/03/05 10:30 AM >>> > Hello everyone, > > I have a little strange probleme. > I want to use phpmapscript.dll in my php installation. I have > put the dll in the correct folder (ext) and my php.ini is > correctly configured. > > But when I make a phpinfo(), phpmapscript doesn't appeart on > the screen. > > Anybody have had this problem? And how is it possible to > active this extention? > > I only want to use this extention, not mapserver cgi. > > Have a nice day, > > Vincent > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From Gail.Millin at MANCHESTER.AC.UK Wed Aug 3 04:50:26 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail) Date: Fri Feb 8 15:07:52 2008 Subject: [Projection problem] - simple translation Message-ID: Selim, There are 4 places where projection information is specified in a mapfile. 1) The first is in the WEB object e.g. "wms_srs" "EPSG:27700" This gives the projection the data is originally in, in this case you would specify 2 epsg codes if you have data in two different projections. In my case the data is originally in EPSG:27700 2) The PROJECTION object e.g. PROJECTION "init=epsg:4326" This tells MapServer which projection the data should be viewed in therefore if the data is not originally in this projection it will be projected on the fly to the projection specified here. So in my case the data is reprojected to espg 4326 3) In the LAYER object there is a PROJECTION object within the LAYER object. This should be specified the same as that within the PROJECTION object towards the top of the mapfile, in my case this is EPSG 4326 (2). Finally in the METADATA object which is also within the LAYER object the "wms_srs" should be what the original data layer projection is so in my case this is EPSG: 27700 (same as in the web object). I hope you find this helpful and get the two layers showing up together. Gail ------------------------------------------------------------- Gail Rebecca Millin Geodata Interoperability Support Officer ------------------------------------------------------------- MIMAS Manchester Computing The University of Manchester Oxford Road Manchester M13 9PL Telephone: +44 (0) 161 275 0581 E-mail: Gail.Millin@manchester.ac.uk Website: http://www.mimas.ac.uk/spatial ------------------------------------------------------------- -----Original Message----- From: Selim Hernandez [mailto:pimpoumvlan@HOTMAIL.COM] Sent: Tuesday, August 02, 2005 9:56 AM Subject: [Projection problem] - simple translation Hello, I think my problem is simple but since I don't understand how the projection system work, it seems confusing to me. I have a map file with 2 layers that have 2 types of coordinates. In fact, the two types are nearly the same, but on one of them, 3000000 has been addded to the Y coordinate. For example : (from a mif file) here are the 2 types of coordinates (with or without 3000000) for the same 2 points. REGION 1 REGION 1 6 6 887807.365 3091440.265 887807.365 91440.265 887818.530 3091439.880 887818.530 91439.880 ... .... I don't succeed in displaying both at the same time. I think I have to add a PROJECTION object in my layers on maybe in my map object but I don't understand the way it works. If anyone has any idea, it would be very helpful. thank you From mlinden at ZEELANDNET.NL Wed Aug 3 05:01:43 2005 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri Feb 8 15:07:52 2008 Subject: WMS Server serving large raster Message-ID: Hello list, I have set up my first WMS Server and joined it with my standard MapInfo client, all works well. I am facing the following challenge however: - I have over 1,5Gb of raster image data covering the whole of the Netherlands at a 1:25000 scale. I want to serve this data via my MapServer WMS Server in order to get it into my WMS capable smartphone GPS viewer. Since my phone holds limited memory, I want the rasters to be sent accross the air smart, meaning that only for the resolutions displayed (100x100) that part of the image should be sent. My base rasters are 5000x5000 pixels and about 5mb in size, they are tiled and all connect together or overlap. In what way can I best organize my Map File in order to get: - Highest performance on my smartphone - only the detail that I need? - The most compact Layer definition in the Map File? Kind regards, Milo van der Linden AVD-ICT GIS Consultant * Hoogbloklandseweg 24 * 4205 NE Gorinchem Tel. +31 183 50 81 50 Fax. +31 183 50 81 60 Mob. +31 629 54 06 96 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050803/f3089b70/attachment.html From ml.winter at CARTO.NET Wed Aug 3 05:06:14 2005 From: ml.winter at CARTO.NET (=?ISO-8859-1?Q?=22Andr=E9_M=2E_Winter_-_Carto=2Enet=22?=) Date: Fri Feb 8 15:07:52 2008 Subject: transparent color on PIXMAP in JPG output In-Reply-To: Message-ID: hello, new to maperserver i am playing around with different WMS sources. till now i used a GIF output because it best handled the DEMIS source. adding some satellite image sources i am missing to much colors and i switched to JPG (also tried PNG). the problem: i do have PIXMAPs used for SYMBOL definintion that have a transparent color defined. with JPG output this is no more the case and i get such a result: (remaining green sqares). the symbols should look link this: (wrong extension, this is a GIF) or but here we see the missing colors in the background satellite image... PNG output doesn't help . using PNG instead of GIF PIXMAP doesn't change anything. is this a GD or a mapserver problem? fyi here are my OUTPUTFORMAT dedinitions #OUTPUTFORMAT # NAME mapformat # DRIVER "GD/GIF" # MIMETYPE "image/gif" # IMAGEMODE PC256 # EXTENSION "gif" #END #OUTPUTFORMAT # NAME mapformat # DRIVER "GD/JPEG" # FORMATOPTION QUALITY=80 # MIMETYPE "image/jpeg" # IMAGEMODE RGB # EXTENSION "jpg" #END and that's the way i define symbols SYMBOL NAME "gp_icon_plus" TYPE PIXMAP IMAGE "gp_icon_plus.gif" TRANSPARENT 1 END thank you for information hereon, -- ___________________________________________________________________ andre m. winter, cartography for internet and multimedia applications a6091 goetzens, tyrol, austria tel.: ++43.5234.32732 email: SVG consulting and development online cartography focusing on SVG print and online touristic map solutions From lluisgm at GMAIL.COM Wed Aug 3 05:19:13 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Fri Feb 8 15:07:52 2008 Subject: transparent symbol In-Reply-To: Message-ID: Hi Flavio Thanks for your help, now I get the transparency in my symbols. 2005/8/3, Flavio Hendry : > > Hi Lluis > > in the layer saction set the following > > TRANSPARENCY 1000 > (or TRANSPARENCY ALPHA) > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio@tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > -----Original Message----- > From: Llu?s Garcia i Mestres > To: MAPSERVER-USERS@LISTS.UMN.EDU > Date: Thu, 28 Jul 2005 20:13:37 +0200 > Subject: [UMN_MAPSERVER-USERS] transparent symbol > > > Hi list, > > I'm trying to implement pixmap symbols transparent. I was following > > the > > current documentation but it's a litlle confusing with the inde > > color. In my > > case, I have a white background that I want to skip. How can I figure > > out > > what is my index color for a white background? > > The outputformat of the map is the following: > > > > OUTPUTFORMAT > > > > NAME jpeg > > > > DRIVER "GD/JPEG" > > > > MIMETYPE "image/jpeg" > > > > IMAGEMODE RGBA > > > > EXTENSION "jpg" > > > > TRANSPARENT ON > > > > END > > and the symbol definition > > SYMBOL > > NAME 'eolica' > > TYPE PIXMAP > > IMAGE 'eolica2.png' > > TRANSPARENT 1 > > END > > > > > > -- > > Llu?s Garcia i Mestres, > > > > lluisgm@gmail.com > > lluisgm@hotmail.com > > > > > -- Llu?s Garcia i Mestres, lluisgm@gmail.com lluisgm@hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050803/5499bf6b/attachment.html From vincent.dacol at LAPOSTE.NET Wed Aug 3 05:37:08 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Fri Feb 8 15:07:52 2008 Subject: Phpmapscript.dll Message-ID: I have put in php.ini: The answers are bottom your questions. > What exactly did you put in php.ini? What do you search for in the phpinfo page, Mapscript? extention=phpmapscript_46.dll > > Are there no errors reported by PHP with loading the extension? There are no error reported by php Can all the dependent dll's be found? this is the question ;) I don't no who're dependent dll, so I have put a lot of them in my "ext" folder. I'm under IIS (sorry, but I don't have the choice, and php5). php5 work fine, IIS work has he can ;) (fine in fact) My onlyest probleme is that I must use mapscript fonction, and the extention doesn't appear when I do a phpinfo(), and IIS could't use dl fonction :((( Thanks for the help, Best regards, Vincent > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > >>> "vincent.dacol" 08/03/05 11:27 AM >>> > Hi Bart, > > I have put the extention in php.ini. > > I couldn't do a dl in a script. > > Best regards, > > Vincent > > > Hi, > > > > did you a do a dl of the Mapscript extension before calling > phpinfo? Or did you put the extension in php.ini to load by > default? > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr.: 015-7512436 > > email: BEN@Syncera-ITSolutions.nl > > >>> "vincent.dacol" 08/03/05 > 10:30 AM >>> > > Hello everyone, > > > > I have a little strange probleme. > > I want to use phpmapscript.dll in my php installation. I have > > put the dll in the correct folder (ext) and my php.ini is > > correctly configured. > > > > But when I make a phpinfo(), phpmapscript doesn't appeart on > > the screen. > > > > Anybody have had this problem? And how is it possible to > > active this extention? > > > > I only want to use this extention, not mapserver cgi. > > > > Have a nice day, > > > > Vincent > > > > Acc?dez au courrier ?lectronique de La Poste : > www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From bernd.deckert at FREE.FR Wed Aug 3 05:47:28 2005 From: bernd.deckert at FREE.FR (Bernd Deckert) Date: Fri Feb 8 15:07:52 2008 Subject: transparent color on PIXMAP in JPG output Message-ID: Hello Andr?, I d'ont know if this could help From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 3 05:57:01 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:52 2008 Subject: Phpmapscript.dll Message-ID: Normally it is called php_mapscript_46.dll (note the first underscore). Where did you get the Mapscript binary from? For PHP5 it needs to be recompiled against PHP 5. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "vincent.dacol" 08/03/05 11:38 AM >>> I have put in php.ini: The answers are bottom your questions. > What exactly did you put in php.ini? What do you search for in the phpinfo page, Mapscript? extention=phpmapscript_46.dll > > Are there no errors reported by PHP with loading the extension? There are no error reported by php Can all the dependent dll's be found? this is the question ;) I don't no who're dependent dll, so I have put a lot of them in my "ext" folder. I'm under IIS (sorry, but I don't have the choice, and php5). php5 work fine, IIS work has he can ;) (fine in fact) My onlyest probleme is that I must use mapscript fonction, and the extention doesn't appear when I do a phpinfo(), and IIS could't use dl fonction :((( Thanks for the help, Best regards, Vincent > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > >>> "vincent.dacol" 08/03/05 11:27 AM >>> > Hi Bart, > > I have put the extention in php.ini. > > I couldn't do a dl in a script. > > Best regards, > > Vincent > > > Hi, > > > > did you a do a dl of the Mapscript extension before calling > phpinfo? Or did you put the extension in php.ini to load by > default? > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr.: 015-7512436 > > email: BEN@Syncera-ITSolutions.nl > > >>> "vincent.dacol" 08/03/05 > 10:30 AM >>> > > Hello everyone, > > > > I have a little strange probleme. > > I want to use phpmapscript.dll in my php installation. I have > > put the dll in the correct folder (ext) and my php.ini is > > correctly configured. > > > > But when I make a phpinfo(), phpmapscript doesn't appeart on > > the screen. > > > > Anybody have had this problem? And how is it possible to > > active this extention? > > > > I only want to use this extention, not mapserver cgi. > > > > Have a nice day, > > > > Vincent > > > > Acc?dez au courrier ?lectronique de La Poste : > www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From kooman at NIEUWLAND.NL Wed Aug 3 06:13:23 2005 From: kooman at NIEUWLAND.NL (Stefan Kooman) Date: Fri Feb 8 15:07:52 2008 Subject: mapserver 4.6 with oracle spatial Message-ID: Dear Mapservusers, I'm trying to compile mapserver 4.6 (on CentOS 4) with the following options: ./configure --with-oraclespatial --with-wmsclient --with-proj --with-gdal --with-ogr --with-wfs --with-wms --with-wcs --with-sfsclient --without-tiff --with-httpd=/usr/sbin/apachectl I have installed oracle client and exported the home dir of oracle so mapserver knows where to look. When I try to make mapserver it returns the following error messages: maporaclespatial.c -o maporaclespatial.o maporaclespatial.c:129:17: oci.h: No such file or directory maporaclespatial.c:151: syntax error before "OCINumber" maporaclespatial.c:151: warning: no semicolon at end of struct or union maporaclespatial.c:152: warning: type defaults to `int' in declaration of `y' maporaclespatial.c:152: warning: data definition has no type or storage class maporaclespatial.c:153: syntax error before "z" ... ... and so on... I've been through the archives of the mapservermailinglist and someone did had the same problem on SLES9, unfortunately no solution was provided. Does anyone of you know what goes wrong here? Thanks, Stefan Kooman P.s. mapserver compiles ok without oracle spatial... From andrew.seales at ED.AC.UK Wed Aug 3 06:34:03 2005 From: andrew.seales at ED.AC.UK (Andrew Seales) Date: Fri Feb 8 15:07:52 2008 Subject: mapserver 4.6 with oracle spatial In-Reply-To: Message-ID: Stefan Kooman wrote: > Dear Mapservusers, > > I'm trying to compile mapserver 4.6 (on CentOS 4) with the following options: > ./configure --with-oraclespatial --with-wmsclient --with-proj --with-gdal > --with-ogr --with-wfs --with-wms --with-wcs --with-sfsclient --without-tiff > --with-httpd=/usr/sbin/apachectl > > I have installed oracle client and exported the home dir of oracle so > mapserver knows where to look. > You probably need to tell mapserver where the oracle client is installed as the oci.h file probably isn't in your default include folder. My oci.h file is in the /opt/oracle/OraHome_1/rdbms/public directory so you will need to change the --with-oraclespatial parameter to --with-oraclespatial=/path/to/oracle/OraHome_1/rdbms -- Andrew Seales EDINA tel: +44 (0) 131 651 1430 Edinburgh University fax: +44 (0) 131 650 3308 Main Library Building url: http://edina.ac.uk George Square email: andrew.seales@ed.ac.uk Edinburgh EH8 9LJ From douglass_davis at EARTHLINK.NET Wed Aug 3 06:36:33 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Fri Feb 8 15:07:52 2008 Subject: Mapscript Zooming In-Reply-To: <6d675eda0507281442138000e4@mail.gmail.com> Message-ID: I'm trying to understand your question. If you zoom, that means the extent will be reduced, as far as I know. It seems that's what zooming is. Maybe what you want to do is increase the size of the image, instead of zooming? Giridhar Manepalli wrote: >Any Ideas? > >On 7/22/05, Giridhar Manepalli wrote: > > >>Hello All, >>When I zoom using functions like zoomscale etc (php mapscript), it >>zooms well. The image after the zoom contains the zoomed map but the >>extent of the map is somewhat reduced. I could not figure out what is >>really affecting the extent. >> >>Now, how is it possible to have the entire extent at the specified >>zoom level. It really doesnot matter if the size of the image grows >>bigger as long as I know the size of the image created. >> >>Any suggestions? >> >>P.S. When I say I need the entire extent, I need the entire map to be >>displayed at the specified zoom level. I do not care about the output >>size >> >> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050803/884d32dd/attachment.html From dibblethewrecker at JIWE.ORG Wed Aug 3 06:33:58 2005 From: dibblethewrecker at JIWE.ORG (Phil Dillon-Thiselton) Date: Fri Feb 8 15:07:52 2008 Subject: Error making mapscript tcl In-Reply-To: Message-ID: > -----Original Message----- > From: Phil Dillon-Thiselton [mailto:dibblethewrecker@JIWE.ORG] > Sent: 02 August 2005 16:03 > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Error making mapscript tcl > > > -----Original Message----- > > From: Nikos [mailto:nicolas@MAICH.GR] > > Sent: 02 August 2005 13:43 > > To: MAPSERVER-USERS@LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Error making mapscript tcl > > > > Philip Dillon-Thiselton wrote: > > > > > OK - I hurdled that little problem - mapserver-workbench then wanted > > > mkWidgets, i fixed that ok but now... > > > > How didi you fix the previous problem Philip? > > I switched to tcl 8.3.5 as you suggested to build against and it worked > fine > > > > > > > > > [mapserver-workbench] : msedit.tcl > > > Error in startup script: can't find package msTclObjs > > > while executing > > > "package require msTclObjs" > > > (file "/usr/bin/msedit.tcl" line 23) > > > > > > I can't even find msTclObjs mentioned on teh net except for on the > > > mapserver related sites - what is it? > > > > msTclObjs is a package included with msworkbench. It is an object > > wrapperthat uses the obstcl package. > > You msworkbench distro should have it, as well as someother packages in > > it.. > > So it should be in > http://download.sourceforge.net/msworkbench/msworkbench-0.3.tar.gz All sorted - I found the 3 directories for the included tools in the src dir - I have NO idea how I missed them before - I scoured that dir looking the files - even ran find! So, all good here - thanks for the help > > > > > I've fiddled with the msTclObjs package to use Itcl, which is more > > maintained than the obstcl package.. > > Let me know if you want a copy.. > > If you can help implement it - I am putting this all together for Live GIS > distribution :) > > > > > regards, > > nikos > > > > > > > > Phil > > > From fsimon at UNIVALI.BR Wed Aug 3 07:50:54 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri Feb 8 15:07:52 2008 Subject: mapserver 4.6 with oracle spatial In-Reply-To: <42F09D9B.8060706@ed.ac.uk> Message-ID: Hi, This problem occur when the configure can't locate the ORACLE_HOME, you can do how the Stefan suggest or define a shell variable with ORACLE_HOME. You can check this link how to set the variables: http://www.puschitz.com/InstallingOracle9i.shtml#SettingOracleEnvironments You need to install the OCI (Oracle Call Interfaces) to add the support for Oracle Spatial in Mapserv. Did you install the OCI? Here I installed without problems Mapserver+Oracle in Suse 9.2, 9.2 and Slackware 10. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Andrew Seales wrote: > Stefan Kooman wrote: > > > Dear Mapservusers, > > > > I'm trying to compile mapserver 4.6 (on CentOS 4) with the following > options: > > ./configure --with-oraclespatial --with-wmsclient --with-proj > --with-gdal > > --with-ogr --with-wfs --with-wms --with-wcs --with-sfsclient > --without-tiff > > --with-httpd=/usr/sbin/apachectl > > > > I have installed oracle client and exported the home dir of oracle so > > mapserver knows where to look. > > > > You probably need to tell mapserver where the oracle client is > installed as the oci.h file probably isn't in your default include > folder. My oci.h file is in the /opt/oracle/OraHome_1/rdbms/public > directory so you will need to change the --with-oraclespatial > parameter to --with-oraclespatial=/path/to/oracle/OraHome_1/rdbms > From jdport at VERITIME.COM Wed Aug 3 08:21:48 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri Feb 8 15:07:53 2008 Subject: Mapscript Zooming Message-ID: I think what you mean is you want to display the entire extents of the map at a particular scale. Zoom level implies a smaller extent. If you don't doom, but instead make your image size larger while keeping the extent the same, the scale will change... perhaps that's what you want. Unfortunately, there is no mapserver function to determine this for you.. you'd have to experiment with different image sizes or try to work out the math to determine the size of the image that suits your needs. -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050803/b683d73c/attachment.html From ed at TOPOZONE.COM Wed Aug 3 08:43:16 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri Feb 8 15:07:53 2008 Subject: WMS Server serving large raster Message-ID: Milo - This kind of application isn't any problem at all. It sounds like your base rasters are a collection of tiled data all belonging to the same data set. You can use the gdaltindex utility from GDAL to create a shapefile index of your rasters, and then use the TILEINDEX statement in your LAYER definition to refer to that tile index file. MapServer will, for any given request, use the tile index file to determine which input rasters are needed, read the correct data from each image, produce the requested 100x100 output image and send it to the client. To specifically answer your three questions: 1. Use a tile index as described. There are other things you can do to tune the internal format of each raster file. What file format do your rasters use? Do you have the freedom to modify that file format, or do you have to use them as they are? 2. MapServer will deliver a WMS image response that includes only the data you need. 3. The tile index will give you the most compact map file. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Milo van der Linden Sent: Wednesday, August 03, 2005 5:02 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Server serving large raster Hello list, I have set up my first WMS Server and joined it with my standard MapInfo client, all works well. I am facing the following challenge however: - I have over 1,5Gb of raster image data covering the whole of the Netherlands at a 1:25000 scale. I want to serve this data via my MapServer WMS Server in order to get it into my WMS capable smartphone GPS viewer. Since my phone holds limited memory, I want the rasters to be sent accross the air smart, meaning that only for the resolutions displayed (100x100) that part of the image should be sent. My base rasters are 5000x5000 pixels and about 5mb in size, they are tiled and all connect together or overlap. In what way can I best organize my Map File in order to get: - Highest performance on my smartphone - only the detail that I need? - The most compact Layer definition in the Map File? Kind regards, Milo van der Linden AVD-ICT GIS Consultant * Hoogbloklandseweg 24 * 4205 NE Gorinchem Tel. +31 183 50 81 50 Fax. +31 183 50 81 60 Mob. +31 629 54 06 96 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050803/db9fd738/attachment.html From ed at TOPOZONE.COM Wed Aug 3 08:45:36 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri Feb 8 15:07:53 2008 Subject: problem with tiled layer Message-ID: David - Is the server publicly accessible? It would be helpful (but not essential) to be able to see this behavior interactively. I did notice that all your data come from MapInfo TAB files. I don't know if that's relevant, but while I've never seen this behavior myself I also do not use TAB files for vector data. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Hunter, David - St. Louis Park, MN Sent: Tuesday, August 02, 2005 6:49 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with tiled layer I was able to reproduce the problem using version 4.6. I can send you a .map file, data and GET strings that would show the problem, if you're interested. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, August 02, 2005 4:11 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with tiled layer On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > Should I try and upgrade to 4.6? What would be involved, merely copying > the contents of the bin directory to my cgi-bin? David, Well, that depends on your circumstances. Where you get your binaries, etc. Generally speaking the .map file and other application components should be pretty compatible between 4.4 and 4.6 so the main issue is replacing your binaries and support libraries with a newer version. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mlinden at ZEELANDNET.NL Wed Aug 3 08:52:38 2005 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri Feb 8 15:07:53 2008 Subject: WMS Server serving large raster In-Reply-To: <4BF377919225F449BB097CB76FFE9BC81887A4@ptolemy.topozone.com> Message-ID: Ed, Thank you for the response! I indeed found the needed documentation on TILEINDEX and will try to create it with gdaltindex. My raster images are however overlapping, will this cause problems for the TILEINDEX since I think I remember that ESRI shape files do not support overlapping objects (MapInfo does)? Will the requested 100x100 image be rebuild with every request sent from a WMS client to the server? Because I tried it with a single Raster Image in MapInfo via WMS Server and zooming in and out resulted in a loss of raster quality because the raster remained in the resolution it had when it was first connected. Kind regards! _____ From: Ed McNierney [mailto:ed@topozone.com] Sent: woensdag 3 augustus 2005 14:43 To: Milo van der Linden; MAPSERVER-USERS@LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] WMS Server serving large raster Milo - This kind of application isn't any problem at all. It sounds like your base rasters are a collection of tiled data all belonging to the same data set. You can use the gdaltindex utility from GDAL to create a shapefile index of your rasters, and then use the TILEINDEX statement in your LAYER definition to refer to that tile index file. MapServer will, for any given request, use the tile index file to determine which input rasters are needed, read the correct data from each image, produce the requested 100x100 output image and send it to the client. To specifically answer your three questions: 1. Use a tile index as described. There are other things you can do to tune the internal format of each raster file. What file format do your rasters use? Do you have the freedom to modify that file format, or do you have to use them as they are? 2. MapServer will deliver a WMS image response that includes only the data you need. 3. The tile index will give you the most compact map file. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Milo van der Linden Sent: Wednesday, August 03, 2005 5:02 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Server serving large raster Hello list, I have set up my first WMS Server and joined it with my standard MapInfo client, all works well. I am facing the following challenge however: - I have over 1,5Gb of raster image data covering the whole of the Netherlands at a 1:25000 scale. I want to serve this data via my MapServer WMS Server in order to get it into my WMS capable smartphone GPS viewer. Since my phone holds limited memory, I want the rasters to be sent accross the air smart, meaning that only for the resolutions displayed (100x100) that part of the image should be sent. My base rasters are 5000x5000 pixels and about 5mb in size, they are tiled and all connect together or overlap. In what way can I best organize my Map File in order to get: - Highest performance on my smartphone - only the detail that I need? - The most compact Layer definition in the Map File? Kind regards, Milo van der Linden AVD-ICT GIS Consultant * Hoogbloklandseweg 24 * 4205 NE Gorinchem Tel. +31 183 50 81 50 Fax. +31 183 50 81 60 Mob. +31 629 54 06 96 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050803/06746cd9/attachment.html From fwarmerdam at GMAIL.COM Wed Aug 3 09:05:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: WMS Server serving large raster In-Reply-To: <200508031252.j73Cqd6I049170@smtp-vbr8.xs4all.nl> Message-ID: On 8/3/05, Milo van der Linden wrote: > I indeed found the needed documentation on TILEINDEX and will try to create > it with gdaltindex. My raster images are however overlapping, will this > cause problems for the TILEINDEX since I think I remember that ESRI shape > files do not support overlapping objects (MapInfo does)? Milo, There is no problem having overlapping objects in a MapServer tileindex. Shapefiles do allow overlapping polygons. I think you are thinking of Arc/Info topological coverages which do not (normally). Note that overlapping files will be rendered in the order they are processed which is normally the order in the shapefile though it will be different if you build a spatial index for the tileindex file. The last file rendered "wins" being drawn over earlier data. > Will the requested 100x100 image be rebuild with every request sent from a > WMS client to the server? Because I tried it with a single Raster Image in > MapInfo via WMS Server and zooming in and out resulted in a loss of raster > quality because the raster remained in the resolution it had when it was > first connected. I don't know anything about MapInfo WMS client support, but it sounds as if it requests the view once and then just keeps showing that same raster. As long as your "smart phone" re-requests new images from the server they will be at the requested resolution. BTW, 1.5GB of raster imagery is quite modest and not demanding of MapServer. However some additional performance related steps may be useful. If you are going to be making some wide area requests to the server (say for an overview of all holland) you will find it helpful to pre-build overviews. This can be accomplished on individual files using the "gdaladdo" utility. But with such a modest amount of imagery, my suggestion would be to build a merged mosaic file with all your imagery. This might be accomplished with the "gdal_merge.py" script. Make sure you create a tiled output TIFF file (-co TILED=YES) and then build overviews on it with gdaladdo. This will give you one file to list in your mapfile, and maximize performance for overview views. Other approachs (ie. tile index with separate overviews layers in the mapfile) are also reasonable but may be more work to setup. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed Aug 3 09:08:20 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: problem with tiled layer In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B630921@smbfnis-chi01.fnis.com> Message-ID: On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > I was able to reproduce the problem using version 4.6. I can send you a > .map file, data and GET strings that would show the problem, if you're > interested. David, That would be perfect. Also please setup a bugzilla bug report for the issue, but you shouldn't attach all the data there if it is large. Thanks, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Fawcett at STATE.MN.US Wed Aug 3 09:43:20 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:53 2008 Subject: problem with state polygon labels Message-ID: Douglass, Your best strategy, particularly for a layer like states that hopefully won't be changing any time soon, would be to create a point layer with one point in the spot where you want to label each state. Then, add this to your map file as a layer of type annotation and include the label in that layer. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Douglass Davis Sent: Wednesday, August 03, 2005 3:48 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] problem with state polygon labels I have a shapefile of the U.S. states. Some states have multiple polygons... For example, those states with islands. The problem is, mapserver will do a label for each polygon in the state. The only way I know of to correct this is just to use a different shapefile with either: some data item to say which polygon is the "main" part of the state. Or some shapefile with points that represent the center of the state. That's my guess anyway. Can any one point me in the right direction to correct this problem? -- http://www.douglassdavis.com From teb at MALLIT.FR.UMN.EDU Wed Aug 3 09:56:54 2005 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Fri Feb 8 15:07:53 2008 Subject: OSG 05 Message-ID: There will be no published paper proceedings. But most presentations, etc. will be available electronically in a couple weeks. An announcement will be made when the materials are available. Tom >X-Umn-Remote-Mta: [N] lsv-m.tc.umn.edu [160.94.23.1] #+HF+LO+NM+TR >X-Umn-Remote-Mta: [N] unserve.spaziogis.it [212.29.133.204] #+NN+IW+NR+OF (I,-) >X-Umn-Report-As-Spam: >User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) >X-Accept-Language: en-us, en >MIME-Version: 1.0 >Content-Transfer-Encoding: 7bit >X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on unserve.spaziogis.it >X-Virus-Status: Clean >Date: Wed, 3 Aug 2005 09:37:05 +0200 >From: andy >Subject: [UMN_MAPSERVER-USERS] OSG 05 >To: MAPSERVER-USERS@LISTS.UMN.EDU > >Dear all, >are there available any proceedings of OSG 05? > >thank you, > >a > From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 3 10:00:16 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: Image Caching Message-ID: Hi, Google can't search into the archives anyomore because they are not publicly accessible only for registered users. So look at: http://lists.umn.edu/archives/mapserver-dev.html And click search the archives. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Kyle Mulka" 08/03/05 15:49 PM >>> Thanks for the reply. Google didn't return anything for "Sally's Summit Summary" or either of the first two words by themselves when pointed at mapserver-dev archives. I searched for "cache" as well, but couldn't come up with anything useful. -----Original Message----- From: Bart van den Eijnden [mailto:BEN@Syncera-ITSolutions.NL] Sent: Wednesday, August 03, 2005 2:01 AM To: kmulka@GLC.ORG; MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Image Caching Currently there is no mechanism for this. There has been talk of implementing this though. Search the mapserver-dev archives for "Sally's Summit Summary". Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Kyle Mulka 08/02/05 21:33 PM >>> Is there any way to tell mapserver to cache the images produced by the WMS service and then replay those on an identical request later to speed things up significantly? Basically, I want a mapserver backend to Google Maps. Right now, I've gotten two WMS layers similar to Google's Hybrid mode. I do have caching set up so that mapserver isn't being used to draw most of the tiles, but I would like this functionality behind the WMS service itself instead of in front. Here's my demo: http://maps.kylemulka.com/umbuildings-onsat.php And another demo using Google's roads layer: http://maps.kylemulka.com/umbuildings.php -Kyle Mulka From vincent.dacol at LAPOSTE.NET Wed Aug 3 10:05:57 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Fri Feb 8 15:07:53 2008 Subject: Phpmapscript.dll Message-ID: I have modified my configuration. Instead of IIS 6 I use Apache 2. An other difference is that php run in cgi mode. I call php_mapscrip_45 with the dl() fonction, and now, it work with php 5.04 Thanks for the hand, Bye, Vincent > I run under IIS without problems, but I use PHP 4.3.11. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > >>> "vincent.dacol" 08/03/05 13:08 PM >>> > OK, thanks for the answers. > > Before try with php_mapscript_46.dll, I have try > php_mapscript_45.dll compiled for PhP5, but it didn't work. > > Maybe IIS server is the source of the problem??? I will try > with apache 2. > > Any ideas are welcom ;) > > Best regard, > > Vincent > > > > Normally it is called php_mapscript_46.dll (note the first > underscore). > > > > Where did you get the Mapscript binary from? For PHP5 it > needs to be recompiled against PHP 5. > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr.: 015-7512436 > > email: BEN@Syncera-ITSolutions.nl > > >>> "vincent.dacol" 08/03/05 > 11:38 AM >>> > > I have put in php.ini: > > > > The answers are bottom your questions. > > > > > > > > > What exactly did you put in php.ini? What do you search for > > in the phpinfo page, Mapscript? > > > > extention=phpmapscript_46.dll > > > > > > > > Are there no errors reported by PHP with loading the > > extension? > > > > There are no error reported by php > > > > Can all the dependent dll's be found? > > > > this is the question ;) I don't no who're dependent dll, so I > > have put a lot of them in my "ext" folder. > > > > I'm under IIS (sorry, but I don't have the choice, and php5). > > php5 work fine, IIS work has he can ;) (fine in fact) > > > > My onlyest probleme is that I must use mapscript fonction, and > > the extention doesn't appear when I do a phpinfo(), and IIS > > could't use dl fonction :((( > > > > > > Thanks for the help, > > > > Best regards, > > > > Vincent > > > > > > > > > Best regards, > > > Bart > > > > > > Bart van den Eijnden > > > Syncera IT Solutions > > > Postbus 270 > > > 2600 AG DELFT > > > > > > tel.nr.: 015-7512436 > > > email: BEN@Syncera-ITSolutions.nl > > > >>> "vincent.dacol" 08/03/05 > > 11:27 AM >>> > > > Hi Bart, > > > > > > I have put the extention in php.ini. > > > > > > I couldn't do a dl in a script. > > > > > > Best regards, > > > > > > Vincent > > > > > > > Hi, > > > > > > > > did you a do a dl of the Mapscript extension before calling > > > phpinfo? Or did you put the extension in php.ini to load by > > > default? > > > > > > > > Best regards, > > > > Bart > > > > > > > > Bart van den Eijnden > > > > Syncera IT Solutions > > > > Postbus 270 > > > > 2600 AG DELFT > > > > > > > > tel.nr.: 015-7512436 > > > > email: BEN@Syncera-ITSolutions.nl > > > > >>> "vincent.dacol" 08/03/05 > > > 10:30 AM >>> > > > > Hello everyone, > > > > > > > > I have a little strange probleme. > > > > I want to use phpmapscript.dll in my php installation. I > have > > > > put the dll in the correct folder (ext) and my php.ini is > > > > correctly configured. > > > > > > > > But when I make a phpinfo(), phpmapscript doesn't appeart on > > > > the screen. > > > > > > > > Anybody have had this problem? And how is it possible to > > > > active this extention? > > > > > > > > I only want to use this extention, not mapserver cgi. > > > > > > > > Have a nice day, > > > > > > > > Vincent > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > > > www.laposte.net ; > > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > > www.laposte.net ; > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From philippe.gondek at GMAIL.COM Wed Aug 3 10:18:17 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Fri Feb 8 15:07:53 2008 Subject: UNSUBSCRIBE Message-ID: Hi, is it possible to unsusbsribre from MAPSERVER-USERS list and how? Thank you all for your help during my GIS experience... Phil From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 3 10:32:11 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: UNSUBSCRIBE Message-ID: Hi, go to: http://lists.umn.edu/archives/mapserver-users.html and click Join or leave the list (or change settings) Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Philippe Gondek 08/03/05 16:18 PM >>> Hi, is it possible to unsusbsribre from MAPSERVER-USERS list and how? Thank you all for your help during my GIS experience... Phil From David.Hunter at FNF.COM Wed Aug 3 11:35:03 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:53 2008 Subject: problem with tiled layer Message-ID: No, unfortunately the server is locked down. I suspect that the .TAB format may have something to do with the problem, causing the overlapping bounding boxes to be misinterpreted. I will be zipping up the .map file, data and example URLs for Frank Warmerdam. Would you like a copy of that also? -----Original Message----- From: Ed McNierney [mailto:ed@topozone.com] Sent: Wednesday, August 03, 2005 7:46 AM To: Hunter, David - St. Louis Park, MN; MAPSERVER-USERS@LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] problem with tiled layer David - Is the server publicly accessible? It would be helpful (but not essential) to be able to see this behavior interactively. I did notice that all your data come from MapInfo TAB files. I don't know if that's relevant, but while I've never seen this behavior myself I also do not use TAB files for vector data. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Hunter, David - St. Louis Park, MN Sent: Tuesday, August 02, 2005 6:49 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with tiled layer I was able to reproduce the problem using version 4.6. I can send you a .map file, data and GET strings that would show the problem, if you're interested. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, August 02, 2005 4:11 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with tiled layer On 8/2/05, Hunter, David - St. Louis Park, MN wrote: > Should I try and upgrade to 4.6? What would be involved, merely copying > the contents of the bin directory to my cgi-bin? David, Well, that depends on your circumstances. Where you get your binaries, etc. Generally speaking the .map file and other application components should be pretty compatible between 4.4 and 4.6 so the main issue is replacing your binaries and support libraries with a newer version. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ericdorner at HOTMAIL.COM Wed Aug 3 11:56:02 2005 From: ericdorner at HOTMAIL.COM (Eric Dorner) Date: Fri Feb 8 15:07:53 2008 Subject: Client Support for WMS Time Dimension Message-ID: I was wondering if anyone was aware of any client software available that supported MapServer's WMS time dimension (ie. allows a user to select layers at a specific point in time). If there is not, can anyone recommend a good open source client, which I could extend to add support for the time dimension. Thanks in advance. Eric From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 3 13:12:39 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: Client Support for WMS Time Dimension Message-ID: uDIG probably has this on the roll, or maybe it's in there already, you check on their user list: http://jira.codehaus.org/browse/UDIG-226 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Eric Dorner 08/03/05 18:06 PM >>> I was wondering if anyone was aware of any client software available that supported MapServer's WMS time dimension (ie. allows a user to select layers at a specific point in time). If there is not, can anyone recommend a good open source client, which I could extend to add support for the time dimension. Thanks in advance. Eric From Debbie.Pagurek at EC.GC.CA Wed Aug 3 13:11:47 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri Feb 8 15:07:53 2008 Subject: SLD pointsymbolizer-fixed in MS4.7 Message-ID: Hi Assefa, Thanks for putting the MS4.7 binary up on maptools. It DOES work with my SLD. So there IS something weird going on with the mapserver version (4.6) that is currently packaged with the MS4W build. Will you be fixing the MS4W package? Or should I tell my IT guys here to use this 4.7 build instead? I noticed that there is a difference in the GDAL library (the dates are different). Debbie Debbie Pagurek, M.Sc. Integrated Environmental Applications Branch / Direction des Applications Environnementales Int?gr?s Knowledge Integration Directorate / Direction g?n?rale de l'integration du savoir Environment Canada / Environnement Canada 70 Cr?mazie, 7th Floor / 7e ?tage Gatineau, Qu?bec K1A 0H3 Tel / T?l: (819) 997-5956 Fax / T?l?c: (819) 994-5738 E-mail / Courriel: Debbie.Pagurek@ec.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050803/4672786d/attachment.html From assefa at DMSOLUTIONS.CA Wed Aug 3 13:50:48 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri Feb 8 15:07:53 2008 Subject: SLD pointsymbolizer-fixed in MS4.7 In-Reply-To: <3F34A5A15450C74C813BA20E31DBB451ECCEB7@ncrx3.ncr.int.ec.gc.ca> Message-ID: Debbie, I think the ms4w package is generally updated around mapserver releases. I guess there will be one pretty soon when mapserver 4.6.1 will be released. I have cc'd Jeff who is in charge of the ms4w package. Later, Pagurek,Debbie [NCR] wrote: > Hi Assefa, > > Thanks for putting the MS4.7 binary up on maptools. It DOES work with my > SLD. > > So there IS something weird going on with the mapserver version (4.6) > that is currently packaged with the MS4W build. > > Will you be fixing the MS4W package? Or should I tell my IT guys here to > use this 4.7 build instead? I noticed that there is a difference in the > GDAL library (the dates are different). > > Debbie > > *Debbie Pagurek, M.Sc.* > Integrated Environmental Applications Branch / Direction des > Applications Environnementales Int?gr?s > Knowledge Integration Directorate / Direction g?n?rale de l'integration > du savoir > Environment Canada / Environnement Canada > 70 Cr?mazie, 7th Floor / 7^e ?tage > Gatineau, Qu?bec K1A 0H3 > Tel / T?l:* (819) 997-5956* > Fax / T?l?c: (819) 994-5738 > E-mail / Courriel:* Debbie.Pagurek@ec.gc.ca*** > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dejan.gambin at PULA.HR Wed Aug 3 14:10:22 2005 From: dejan.gambin at PULA.HR (Dejan Gambin) Date: Fri Feb 8 15:07:53 2008 Subject: WMS Server serving large raster In-Reply-To: <931f8ea905080306055a75ea38@mail.gmail.com> Message-ID: Frank, Back to old performance issues, I would like to know if making one big tiled output TIFF file with built overviews is better than having a set of tileindexed tiff files that each has built overviews (and even make each file tiled with -co TILED=YES)? I am asking this because I have 18 80MB large tiff files (they don't form a square if merged). I have created overviews on each and used TILEINDEX. Now I am wondering if maybe is better to merge them using gdal_merge with -co TILED=YES and then build overviews on this one file?? Of course, I can test it and see but...:-)) regards dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Wednesday, August 03, 2005 3:06 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS Server serving large raster On 8/3/05, Milo van der Linden wrote: > I indeed found the needed documentation on TILEINDEX and will try to > create it with gdaltindex. My raster images are however overlapping, > will this cause problems for the TILEINDEX since I think I remember > that ESRI shape files do not support overlapping objects (MapInfo > does)? Milo, There is no problem having overlapping objects in a MapServer tileindex. Shapefiles do allow overlapping polygons. I think you are thinking of Arc/Info topological coverages which do not (normally). Note that overlapping files will be rendered in the order they are processed which is normally the order in the shapefile though it will be different if you build a spatial index for the tileindex file. The last file rendered "wins" being drawn over earlier data. > Will the requested 100x100 image be rebuild with every request sent > from a WMS client to the server? Because I tried it with a single > Raster Image in MapInfo via WMS Server and zooming in and out resulted > in a loss of raster quality because the raster remained in the > resolution it had when it was first connected. I don't know anything about MapInfo WMS client support, but it sounds as if it requests the view once and then just keeps showing that same raster. As long as your "smart phone" re-requests new images from the server they will be at the requested resolution. BTW, 1.5GB of raster imagery is quite modest and not demanding of MapServer. However some additional performance related steps may be useful. If you are going to be making some wide area requests to the server (say for an overview of all holland) you will find it helpful to pre-build overviews. This can be accomplished on individual files using the "gdaladdo" utility. But with such a modest amount of imagery, my suggestion would be to build a merged mosaic file with all your imagery. This might be accomplished with the "gdal_merge.py" script. Make sure you create a tiled output TIFF file (-co TILED=YES) and then build overviews on it with gdaladdo. This will give you one file to list in your mapfile, and maximize performance for overview views. Other approachs (ie. tile index with separate overviews layers in the mapfile) are also reasonable but may be more work to setup. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From douglass_davis at EARTHLINK.NET Wed Aug 3 14:19:36 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Fri Feb 8 15:07:53 2008 Subject: don't understand scale Message-ID: I am using php mapscript, and i want to zoom in to a point. I have two options: zoomPoint and zoomScale... I understand zoomPoint, because it just zooms by a percentage. But, zoomScale, I am not understanding. It zooms to a certain scale, which is a double. What does that scale represent? What is the scale relative to? The docs don't really explain this well. The reason I wanted to do this, is because instead of zooming in and out relative to the previous map's extent, it would be better if I had about 9 zoom levels, kind of like mapquest. level 1 would show the states, level 9 would be a close up of the street. But each of the 9 levels would be a fixed zoom amount, relative to the size of the original extent in the mapfile possibly. Is this difficult to do? -- http://www.douglassdavis.com From ericcf at NORTHWESTERN.EDU Wed Aug 3 14:12:02 2005 From: ericcf at NORTHWESTERN.EDU (Eric Carty-Fickes) Date: Fri Feb 8 15:07:53 2008 Subject: spatial mysql with mapserver Message-ID: Hi, has anyone been able to get this working? I know mysql is not ideal, but I need to use it. If there is any documentation or examples you could point me to, I'd appreciate it. Thanks. Eric From watergen at ECN.PURDUE.EDU Wed Aug 3 15:06:13 2005 From: watergen at ECN.PURDUE.EDU (ABE Water Research Account) Date: Fri Feb 8 15:07:53 2008 Subject: mapogr.cpp compile problem Message-ID: HI, when I compile map server 3.6.4, it gave this error, ./libmap.a(mapogr.o): In function `msLoadWKTProjectionString': mapogr.cpp:(.text+0xc): undefined reference to `OGRSpatialReference::OGRSpatialReference(char const*)' mapogr.cpp:(.text+0x1c): undefined reference to `OGRSpatialReference::importFromWkt(char**)' mapogr.cpp:(.text+0x48): undefined reference to `OGRSpatialReference::~OGRSpatialReference()' mapogr.cpp:(.text+0x60): undefined reference to `OGRSpatialReference::IsLocal () const' mapogr.cpp:(.text+0x78): undefined reference to `OGRSpatialReference::exportToProj4(char**) const' mapogr.cpp:(.text+0xd0): undefined reference to `OGRSpatialReference::~OGRSpatialReference()' mapogr.cpp:(.text+0x10c): undefined reference to `OGRSpatialReference::~OGRSpatialReference()' ./libmap.a(mapogr.o): In function `msOGRSpatialRef2ProjectionObj (OGRSpatialReference*, projectionObj*)': mapogr.cpp:(.text+0x16c): undefined reference to `OGRSpatialReference::IsLocal () const' mapogr.cpp:(.text+0x188): undefined reference to `OGRSpatialReference::exportToProj4(char**) const' ./libmap.a(mapogr.o): In function `msOGCWKT2ProjectionObj': mapogr.cpp:(.text+0x22c): undefined reference to `OGRSpatialReference::OGRSpatialReference(char const*)' mapogr.cpp:(.text+0x23c): undefined reference to `OGRSpatialReference::importFromWkt(char**)' mapogr.cpp:(.text+0x26c): undefined reference to `OGRSpatialReference::~OGRSpatialReference()' mapogr.cpp:(.text+0x288): undefined reference to `OGRSpatialReference::~OGRSpatialReference()' mapogr.cpp:(.text+0x298): undefined reference to `OGRSpatialReference::~OGRSpatialReference()' /usr/local/bin/ld: shp2img: hidden symbol `__eprintf' in /package/GNU/gcc/3.4.3/sparc-sunos5.8/lib/gcc/sparc-sun- solaris2.8/3.4.3/libgcc.a(_eprintf.oS) is referenced by DSO /usr/local/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Please HELP. From tkirstine at JDBARNES.COM Wed Aug 3 16:10:22 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Fri Feb 8 15:07:53 2008 Subject: problem with state polygon labels In-Reply-To: Message-ID: You can also play around with MINDISTANCE [int] or MINFEATURESIZE [int|auto] in the LABEL object. See following for usage http://mapserver.gis.umn.edu/doc44/mapfile-reference.html Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Fawcett, David Sent: Wednesday, August 03, 2005 9:43 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with state polygon labels Douglass, Your best strategy, particularly for a layer like states that hopefully won't be changing any time soon, would be to create a point layer with one point in the spot where you want to label each state. Then, add this to your map file as a layer of type annotation and include the label in that layer. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Douglass Davis Sent: Wednesday, August 03, 2005 3:48 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] problem with state polygon labels I have a shapefile of the U.S. states. Some states have multiple polygons... For example, those states with islands. The problem is, mapserver will do a label for each polygon in the state. The only way I know of to correct this is just to use a different shapefile with either: some data item to say which polygon is the "main" part of the state. Or some shapefile with points that represent the center of the state. That's my guess anyway. Can any one point me in the right direction to correct this problem? -- http://www.douglassdavis.com From douglass_davis at EARTHLINK.NET Wed Aug 3 21:33:58 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Fri Feb 8 15:07:53 2008 Subject: don't understand scale In-Reply-To: <42F10AB8.80902@earthlink.net> Message-ID: Ok, so the scale is relative to the units used in the mapfile. I still don't quite understand. This example would help me a lot if any one could explain it. let's say I have a map with (fictitional units) EXTENT 100 100 200 300 Now... For example, what scale number will I have to use in zoomScale to get a map scaled to exactly 100%. Meaning, exactly the same map I would get without scaling. From that number I can get the other scales. And can any one explain how they got this mathematically? --- http://www.douglassdavis.com Douglass Davis wrote: > I am using php mapscript, and i want to zoom in to a point. I have > two options: > > zoomPoint and zoomScale... I understand zoomPoint, because it just > zooms by a percentage. But, zoomScale, I am not understanding. It > zooms to a certain scale, which is a double. What does that scale > represent? What is the scale relative to? The docs don't really > explain this well. > > The reason I wanted to do this, is because instead of zooming in and > out relative to the previous map's extent, it would be better if I had > about 9 zoom levels, kind of like mapquest. level 1 would show the > states, level 9 would be a close up of the street. But each of the 9 > levels would be a fixed zoom amount, relative to the size of the > original extent in the mapfile possibly. Is this difficult to do? > > -- > http://www.douglassdavis.com > From perrygeo at GMAIL.COM Wed Aug 3 22:31:51 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri Feb 8 15:07:53 2008 Subject: don't understand scale In-Reply-To: <42F17086.9000001@earthlink.net> Message-ID: Douglass, Scale is usually the ratio of "Map" coordinates to "Real" coordinates and is usually expressed as something like 1:24000. So 1 inch on the map equals 24000 inches on the ground. To simplify things (or complicate them perhaps) alot of GIS programmers would refer to this scale value as simply 24000. So if your "real" area is 100 feet wide and 200 feet tall and you're looking at the full extent on a paper map that measures, say, 1 ft by 2 ft, your scale would be 1:100 or, in mapserver speak, just 100. The problem comes in with rendering digital map images. A 500 pixel-wide image will not have a consistent width on everyone's monitor (it depends on resolution, monitor size, etc). I _believe_ that mapserver gives a default of 72 pixels per inch. That should give you enough to figure out the math behind the scale calculations. matt On 8/3/05, Douglass Davis wrote: > Ok, so the scale is relative to the units used in the mapfile. I still > don't quite understand. This example would help me a lot if any one > could explain it. > > let's say I have a map with (fictitional units) > > EXTENT 100 100 200 300 > > Now... For example, what scale number will I have to use in zoomScale > to get a map scaled to exactly 100%. Meaning, exactly the same map I > would get without scaling. From that number I can get the other scales. > > And can any one explain how they got this mathematically? > > --- > http://www.douglassdavis.com > > > Douglass Davis wrote: > > > I am using php mapscript, and i want to zoom in to a point. I have > > two options: > > > > zoomPoint and zoomScale... I understand zoomPoint, because it just > > zooms by a percentage. But, zoomScale, I am not understanding. It > > zooms to a certain scale, which is a double. What does that scale > > represent? What is the scale relative to? The docs don't really > > explain this well. > > > > The reason I wanted to do this, is because instead of zooming in and > > out relative to the previous map's extent, it would be better if I had > > about 9 zoom levels, kind of like mapquest. level 1 would show the > > states, level 9 would be a close up of the street. But each of the 9 > > levels would be a fixed zoom amount, relative to the size of the > > original extent in the mapfile possibly. Is this difficult to do? > > > > -- > > http://www.douglassdavis.com > > > -- Matt Perry perrygeo@gmail.com http://www.perrygeo.net From fwarmerdam at GMAIL.COM Wed Aug 3 22:35:54 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: WMS Server serving large raster In-Reply-To: <000001c59856$9ea1cb20$0201000a@gradpula.local> Message-ID: On 8/3/05, Dejan Gambin wrote: > Frank, > > Back to old performance issues, I would like to know if making one big > tiled output TIFF file with built overviews is better than having a set > of tileindexed tiff files that each has built overviews (and even make > each file tiled with -co TILED=YES)? > > I am asking this because I have 18 80MB large tiff files (they don't > form a square if merged). I have created overviews on each and used > TILEINDEX. Now I am wondering if maybe is better to merge them using > gdal_merge with -co TILED=YES and then build overviews on this one > file?? Dejan, There is a certain amount of overhead to reading and parsing the headers (and overview headers) of 18 files that I think might be noticable in a webmapping situation. So views that show many of the files (broad overview views) I think you would benefit from rebuilding everything as a single file with overviews. However, I have never done any real performance testing. I do know that the "header reading time" becomes significant when several dozens of files need to be read for each render. At 18 I am less sure that the difference would be sigificant. Of course, the other issue is whether overview views are common. If most views are only one or two files then your current organization is likely to be a bit better if only because the amount of "tile map" and similar information needing to be loaded will be smaller than if one big file was used. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Wed Aug 3 22:41:25 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:07:53 2008 Subject: don't understand scale In-Reply-To: <42F17086.9000001@earthlink.net> Message-ID: Douglass, Scale is the ratio of the real world extents of an image of your data compared to the physical rendered image of that data. SO say for example lets say you display 10 miles of real world data onto an image that is ten inches wide. Then you scale is 1 in : 1 mile or 1:63360 because 1 mi = 5280 * 12 inches For displaying on the screen we figure 72 dot per inch. If you are trying to figure out how to set minscale and maxscale values, most of us add

Scale 1:[scale]

to our templates or get the scale directly from the mapObj->{scale} and print it on out web pages. Then as we zoom in/out if always shows the scale. HTH, -Steve W. Douglass Davis wrote: > Ok, so the scale is relative to the units used in the mapfile. I still > don't quite understand. This example would help me a lot if any one > could explain it. > > let's say I have a map with (fictitional units) > > EXTENT 100 100 200 300 > > Now... For example, what scale number will I have to use in zoomScale > to get a map scaled to exactly 100%. Meaning, exactly the same map I > would get without scaling. From that number I can get the other scales. > > And can any one explain how they got this mathematically? > > --- > http://www.douglassdavis.com > > > Douglass Davis wrote: > >> I am using php mapscript, and i want to zoom in to a point. I have >> two options: >> >> zoomPoint and zoomScale... I understand zoomPoint, because it just >> zooms by a percentage. But, zoomScale, I am not understanding. It >> zooms to a certain scale, which is a double. What does that scale >> represent? What is the scale relative to? The docs don't really >> explain this well. >> >> The reason I wanted to do this, is because instead of zooming in and >> out relative to the previous map's extent, it would be better if I had >> about 9 zoom levels, kind of like mapquest. level 1 would show the >> states, level 9 would be a close up of the street. But each of the 9 >> levels would be a fixed zoom amount, relative to the size of the >> original extent in the mapfile possibly. Is this difficult to do? >> >> -- >> http://www.douglassdavis.com >> > From douglass_davis at EARTHLINK.NET Thu Aug 4 00:30:41 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Fri Feb 8 15:07:53 2008 Subject: don't understand scale In-Reply-To: <42F18055.4020201@swoodbridge.com> Message-ID: Ok, thanks for all the help everyone. I guess mapObj->{scale}was the magic number I was looking for. Just wanted to point out though that oddly enough PHP/Mapscript you will get -1 for scale, until you set the extent (or call another method on the mapObj apparently). here's the code: $map = ms_newMapObj($map_file); echo "
scale1= ".$map->scale; // prints -1 // just setting to what it is already. $map->setExtent( $map->extent->minx, $map->extent->miny, $map->extent->maxx, $map->extent->maxy); echo "
scale2= ".$map->scale; // prints real scale value I thought this was strange... But, in case anyone is interested, this is what I had to do to make it work. -- http://www.douglassdavis.com Stephen Woodbridge wrote: > Douglass, > > Scale is the ratio of the real world extents of an image of your data > compared to the physical rendered image of that data. > > SO say for example lets say you display 10 miles of real world data > onto an image that is ten inches wide. Then you scale is 1 in : 1 mile > or 1:63360 because 1 mi = 5280 * 12 inches > > For displaying on the screen we figure 72 dot per inch. If you are > trying to figure out how to set minscale and maxscale values, most of > us add > >

Scale 1:[scale]

> > to our templates or get the scale directly from the mapObj->{scale} > and print it on out web pages. Then as we zoom in/out if always shows > the scale. > > HTH, > -Steve W. > > Douglass Davis wrote: > >> Ok, so the scale is relative to the units used in the mapfile. I >> still don't quite understand. This example would help me a lot if >> any one could explain it. >> >> let's say I have a map with (fictitional units) >> >> EXTENT 100 100 200 300 >> >> Now... For example, what scale number will I have to use in >> zoomScale to get a map scaled to exactly 100%. Meaning, exactly the >> same map I would get without scaling. From that number I can get the >> other scales. >> >> And can any one explain how they got this mathematically? >> >> --- >> http://www.douglassdavis.com >> >> >> Douglass Davis wrote: >> >>> I am using php mapscript, and i want to zoom in to a point. I have >>> two options: >>> >>> zoomPoint and zoomScale... I understand zoomPoint, because it just >>> zooms by a percentage. But, zoomScale, I am not understanding. It >>> zooms to a certain scale, which is a double. What does that scale >>> represent? What is the scale relative to? The docs don't really >>> explain this well. >>> >>> The reason I wanted to do this, is because instead of zooming in >>> and out relative to the previous map's extent, it would be better if >>> I had about 9 zoom levels, kind of like mapquest. level 1 would >>> show the states, level 9 would be a close up of the street. But >>> each of the 9 levels would be a fixed zoom amount, relative to the >>> size of the original extent in the mapfile possibly. Is this >>> difficult to do? >>> >>> -- >>> http://www.douglassdavis.com >>> >> > > From fwarmerdam at GMAIL.COM Thu Aug 4 01:07:38 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: mapogr.cpp compile problem In-Reply-To: Message-ID: On 8/3/05, ABE Water Research Account wrote: > HI, when I compile map server 3.6.4, it gave this error, ABE, Wow, that version is a blast from the past. Perhaps you should consider updating. Version 4.6 is now considered stable. I think you will have a hard time getting serious support for a 3.x version of Mapserver. > ./libmap.a(mapogr.o): In function `msLoadWKTProjectionString': > mapogr.cpp:(.text+0xc): undefined reference to > `OGRSpatialReference::OGRSpatialReference(char const*)' > mapogr.cpp:(.text+0x1c): undefined reference to You don't list the full link line or give any indication of the version of GDAL/OGR installed, but the missing function is from the GDAL/OGR library. You need to check that you have a compatible version of GDAL/OGR installed, and that the link line is properly referencing the shared library for GDAL/OGR. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Dejan.Gambin at PULA.HR Thu Aug 4 01:14:52 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri Feb 8 15:07:53 2008 Subject: WMS Server serving large raster Message-ID: Thanks Frank very much, I am aware of no significant difference in my case, I am asking this just because of theoretical knowledge I would like to get. I only don't understand completely the last issue you mentioned, about the 1-2 files overviews and "tile map" information needing to be loaded. What does it mean "if overview views are common" (maybe my "common" translation is wrong)? thanks and regards dejan -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam@gmail.com] Sent: Thursday, August 04, 2005 4:36 AM To: Gambin Dejan Cc: MAPSERVER-USERS@lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] WMS Server serving large raster On 8/3/05, Dejan Gambin wrote: > Frank, > > Back to old performance issues, I would like to know if making one big > tiled output TIFF file with built overviews is better than having a > set of tileindexed tiff files that each has built overviews (and even > make each file tiled with -co TILED=YES)? > > I am asking this because I have 18 80MB large tiff files (they don't > form a square if merged). I have created overviews on each and used > TILEINDEX. Now I am wondering if maybe is better to merge them using > gdal_merge with -co TILED=YES and then build overviews on this one > file?? Dejan, There is a certain amount of overhead to reading and parsing the headers (and overview headers) of 18 files that I think might be noticable in a webmapping situation. So views that show many of the files (broad overview views) I think you would benefit from rebuilding everything as a single file with overviews. However, I have never done any real performance testing. I do know that the "header reading time" becomes significant when several dozens of files need to be read for each render. At 18 I am less sure that the difference would be sigificant. Of course, the other issue is whether overview views are common. If most views are only one or two files then your current organization is likely to be a bit better if only because the amount of "tile map" and similar information needing to be loaded will be smaller than if one big file was used. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From hetzerrr at GMAIL.COM Thu Aug 4 01:52:24 2005 From: hetzerrr at GMAIL.COM (John Novak) Date: Fri Feb 8 15:07:53 2008 Subject: WMS Server serving large raster In-Reply-To: Message-ID: I'll be running some tests over the coming weekend using a TILEINDEX composed of about 650 36MB files. I have the files stored as tiled GeoTIFFs, with overviews and have added a quadtree index using shptree. I am hoping the quadtree keeps queries from iterating over all entires in the TILEINDEX, as appears to be occuring without. Early tests with about 40 files, even with all files displayed, showed relatively little performance degradation and results were definitely acceptable. Frank, the GDAL utilites are awesome !! John Novak From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 4 02:35:56 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: spatial mysql with mapserver Message-ID: Eric, Mapserver does *not* support the MySQL 4.1 spatial types. It does support something called MyGIS, but this is not the same as the MySQL 4.1 spatial types: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Eric Carty-Fickes 08/03/05 08:12pm >>> Hi, has anyone been able to get this working? I know mysql is not ideal, but I need to use it. If there is any documentation or examples you could point me to, I'd appreciate it. Thanks. Eric From lindagervasi at HOTMAIL.COM Thu Aug 4 03:12:02 2005 From: lindagervasi at HOTMAIL.COM (Linda Gervasi) Date: Fri Feb 8 15:07:53 2008 Subject: Dynamic maps - Online tutorial Message-ID: An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/a7d73a45/attachment.html From saso.celarc at HERMES-PLUS.SI Thu Aug 4 05:46:13 2005 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Fri Feb 8 15:07:53 2008 Subject: National fonts in labels Message-ID: How can be national characters correctly displayed as layer/feature labels. In DBF (through Excel and one other DBF viewer) I can see national characters which are in CP1250. When I display map, this characters are visible as strange characters. I tried with copying ttf file (arial.ttf) from Windows fonts to the MapServer ../fonts directory too. But without success. My whole installation is on Win XP. What should I do? Regards, Saso From nicolas at MAICH.GR Thu Aug 4 05:56:17 2005 From: nicolas at MAICH.GR (Nikos) Date: Fri Feb 8 15:07:53 2008 Subject: National fonts in labels In-Reply-To: Message-ID: Sa?o Celarc wrote: >How can be national characters correctly displayed as layer/feature labels. >In DBF (through Excel and one other DBF viewer) I can see national >characters which are in CP1250. When I display map, this characters are >visible as strange characters. >I tried with copying ttf file (arial.ttf) from Windows fonts to the >MapServer ../fonts directory too. But without success. > >My whole installation is on Win XP. > >What should I do? > >Regards, >Saso > > Try setting the characterset in your template, e.g, for greek.. regards, nikos From Dejan.Gambin at PULA.HR Thu Aug 4 06:02:54 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri Feb 8 15:07:53 2008 Subject: National fonts in labels Message-ID: Take a look on the ENCODING parameter in Mapserver map file... dejan gambin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Sa?o Celarc Sent: Thursday, August 04, 2005 11:46 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] National fonts in labels How can be national characters correctly displayed as layer/feature labels. In DBF (through Excel and one other DBF viewer) I can see national characters which are in CP1250. When I display map, this characters are visible as strange characters. I tried with copying ttf file (arial.ttf) from Windows fonts to the MapServer ../fonts directory too. But without success. My whole installation is on Win XP. What should I do? Regards, Saso From ml.winter at CARTO.NET Thu Aug 4 06:06:44 2005 From: ml.winter at CARTO.NET (Andre M. Winter - Carto.net) Date: Fri Feb 8 15:07:53 2008 Subject: National fonts in labels In-Reply-To: Message-ID: hi, i don't know about winXp and CP1250, but i had similar problems on linux/postres/perl. the problem were the missing declaration in the output html files (nikos just gave an example) AND the encoding of the acting perl-files. i switched anything to UTF-8 and now anyting works fine. UTF-8 should do your job as well btw... andr? -- ___________________________________________________________________ andre m. winter, cartography for internet and multimedia applications schiessstand 4/1, a6091 goetzens, tyrol, austria tel.: ++43.5234.32732 email: SVG consulting and development online cartography focusing on SVG print and online touristic map solutions Sa?o Celarc wrote: >How can be national characters correctly displayed as layer/feature labels. >In DBF (through Excel and one other DBF viewer) I can see national >characters which are in CP1250. When I display map, this characters are >visible as strange characters. >I tried with copying ttf file (arial.ttf) from Windows fonts to the >MapServer ../fonts directory too. But without success. > >My whole installation is on Win XP. > >What should I do? > >Regards, >Saso > > From woodbri at SWOODBRIDGE.COM Thu Aug 4 09:02:09 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:07:53 2008 Subject: [ka-Map-users] AGG ("anti grain graphics") or OpenGL In-Reply-To: Message-ID: Steve, This is great news. Any progress on this front would be great. It seems that there is little or no interest in investigating OpenGL that would give us access to hardware acceleration for rendering. This would be desirable from the point of view that it takes forever to pre generate all the tiles which is really required for any high bandwidth operation that is potentially serving 100's of millions of standard map draws a year which will translate into 10-30 times as many tile serves per year, but I guess there are not a lot of people with that problem :) -Steve W. Steve Lime wrote: > All: I'm not sure where funding stands. I've been reading up on and > playing a bit with the various libs and am not convinced either Cairo > or AGG are ready for primetime. Neither are complete or well > documented and are basically one person research projects. I threw > out another option of ImageMagick which has anti-aliased drawing > capabilities, is well established and very robust, and some > interesting image processing capabilities (such as convolution > filtering) not found in GDAL. Worth a look anyway. I plan on spending > at least some time with this regardless of funding... > > Steve > > >>>> Paul Spencer 08/04/05 7:12 AM >>> > > Steve, > > I believe the technical decision came down to either Cairo or AGG. I > haven't checked with Daniel on the status of getting this funded ... > I think that was the key issue. There seemed to be several parties > interested in contributing small amounts towards getting this done, > but I don't know if everyone was completely serious about their > intentions to contribute. > > I would imagine that it is still on the books to be done, and I will > check with Daniel today to get a status. > > This is obviously of major interest to ka-map users since they are > the most likely to benefit from the additional cartographic quality > > Cheers > > Paul > > Stephen Woodbridge wrote: > >> Paul, >> >> I know there was some discussion during/after MUM3 about writing a >> new back end for mapserver using AGG ("anti grain graphics") or >> OpenGL, so that we can get some more-accurate drawing, nicer fonts, >> and curved font labels and faster tile generation. This was >> specifical to better support ka-map tile generation. >> >> Is there anything happening on this front? >> >> -Steve W. _______________________________________________ >> ka-Map-users mailing list ka-Map-users@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/ka-map-users >> > > From steve.lime at DNR.STATE.MN.US Thu Aug 4 09:42:39 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:53 2008 Subject: [ka-Map-users] AGG ("anti grain graphics") or OpenGL Message-ID: I wouldn't say no interest and throw it into the mix... >>> Stephen Woodbridge 08/04/05 8:02 AM >>> Steve, This is great news. Any progress on this front would be great. It seems that there is little or no interest in investigating OpenGL that would give us access to hardware acceleration for rendering. This would be desirable from the point of view that it takes forever to pre generate all the tiles which is really required for any high bandwidth operation that is potentially serving 100's of millions of standard map draws a year which will translate into 10-30 times as many tile serves per year, but I guess there are not a lot of people with that problem :) -Steve W. Steve Lime wrote: > All: I'm not sure where funding stands. I've been reading up on and > playing a bit with the various libs and am not convinced either Cairo > or AGG are ready for primetime. Neither are complete or well > documented and are basically one person research projects. I threw > out another option of ImageMagick which has anti-aliased drawing > capabilities, is well established and very robust, and some > interesting image processing capabilities (such as convolution > filtering) not found in GDAL. Worth a look anyway. I plan on spending > at least some time with this regardless of funding... > > Steve > > >>>> Paul Spencer 08/04/05 7:12 AM >>> > > Steve, > > I believe the technical decision came down to either Cairo or AGG. I > haven't checked with Daniel on the status of getting this funded ... > I think that was the key issue. There seemed to be several parties > interested in contributing small amounts towards getting this done, > but I don't know if everyone was completely serious about their > intentions to contribute. > > I would imagine that it is still on the books to be done, and I will > check with Daniel today to get a status. > > This is obviously of major interest to ka-map users since they are > the most likely to benefit from the additional cartographic quality > > Cheers > > Paul > > Stephen Woodbridge wrote: > >> Paul, >> >> I know there was some discussion during/after MUM3 about writing a >> new back end for mapserver using AGG ("anti grain graphics") or >> OpenGL, so that we can get some more-accurate drawing, nicer fonts, >> and curved font labels and faster tile generation. This was >> specifical to better support ka-map tile generation. >> >> Is there anything happening on this front? >> >> -Steve W. _______________________________________________ >> ka-Map-users mailing list ka-Map-users@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/ka-map-users >> > > From andrecruvinel at YAHOO.COM.BR Thu Aug 4 10:08:14 2005 From: andrecruvinel at YAHOO.COM.BR (Andre Cruvinel Resende) Date: Fri Feb 8 15:07:53 2008 Subject: ms4w and postgres+postgis runing on Win 2003 x XP. Message-ID: Hi Folks, (from alll lists) We are going to install a new server with ms4w and postgresql+postgis and we have to decide with operational system will be better, we have the licence for Windows 2003 server and Windows XP. There's any limitation for ms4w or postgis in the Windows 2003 Operational system? There's any one who use the Win2003 and ms4w+postgis with sucess? What about performance? And security? So, help us to make this decision! Thanks for all! Andre _______________________________________________________ Yahoo! Acesso Gr?tis - Internet r?pida e gr?tis. Instale o discador agora! http://br.acesso.yahoo.com/ From kmulka at GLC.ORG Thu Aug 4 10:30:01 2005 From: kmulka at GLC.ORG (Kyle Mulka) Date: Fri Feb 8 15:07:53 2008 Subject: Image Caching Message-ID: Would it be good to move this discussion to mapserver-dev? > By the looks of what i have seen in your demo you do a great job already. :-) I'm using the PEAR Cache_Lite package for PHP right now. Its simple to use. Only takes about 10 lines of code. > Probably this will rather be some reliable and tested squid proxy set-up or any > kind of front end behind which MapServer can hide. I looked into squid and realized that thing it needs to know is when the content changes so that it can refresh the cache. From what I've heard so far, it doesn't sound like mapserver has any clue as to when the map it serves might change. It seems that it would be pretty easy for mapserver to simply determine if a map would change based on the timestamp on the shapefiles its serving and either the timestamp or the content of the map file. I'm not sure as to the exact details of how it would report this to the caching engine (squid for example), but I think it has something to do with the http headers it would return when the headers were requested. > Cool demos, would you share the architecture on how you implemented caching in > this installation? Like I said above, I use the PEAR Cache_Lite package. http://pear.php.net/package/Cache_Lite I used a cache lifetime of about a week, although I could have used longer. I'll need to manually delete the cache when I change the colors, style, content, etc. The cache id I used was the full request URL to the WMS service. So, everything after the question mark basically. Each query should not change its result as long as I don't change the map file or shapefiles. > In some environments (preferrably very large networks) you do not have to worry > at all about caching because its been done by the network anyway. That is when > we start to develop a problem the other way round - how to tell the caching >> > service to request for a new tile because the content has changed on the > > server... Exactly. This is why we need at least something in mapserver that knows about caching. Mapserver doesn't actually have to do the caching, but should know when caching would be appropriate. -Kyle Mulka http://www.kylemulka.com From arnulf.christl at CCGIS.DE Thu Aug 4 11:00:12 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri Feb 8 15:07:53 2008 Subject: Image Caching, when to update? In-Reply-To: <20050804142805.1FC3D238E@superior.great-lakes.net> Message-ID: Kyle Mulka wrote: [...] > I looked into squid and realized that thing it needs to know is when > the content changes so that it can refresh the cache. From what I've > heard so far, it doesn't sound like mapserver has any clue as to > when the map it serves might change. It seems that it would be > pretty easy for mapserver to simply determine if a map would change > based on the timestamp on the shapefiles its serving and either > the timestamp or the content of the map file. Kyle Mulka wrote: > Would it be good to move this discussion to mapserver-dev? Hmmm, i'd say leave them out front, they got enough on their hands doing a great job serving maps (not that i would repeat myself... :-) >>By the looks of what i have seen in your demo you do a great job already. > > :-) > > I'm using the PEAR Cache_Lite package for PHP right now. Its simple to use. > Only takes about 10 lines of code. [...] > Exactly. This is why we need at least something in mapserver that knows > about caching. Mapserver doesn't actually have to do the caching, but should > know when caching would be appropriate. I don't think any WMS service really knows a lot about what kind or actuality of data it actually serves (someone enlighten us?). Wouldn't this be something that metadata could be used for? Not that anybody would care to provide for good metadata... There are not too many thoughts about misusing metadata for this kind of job as far as i know but basically it would fit in nicely?! This said we might haul this discussion over to the OpenSDI clan instead of bullying the mapserver dev guys, but maybe we should just let them decide for themselves. Best, From tylermitchell at SHAW.CA Thu Aug 4 11:42:50 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:53 2008 Subject: ms4w and postgres+postgis runing on Win 2003 x XP. Message-ID: I'm running Windows XP without any problems. Tyler ----- Original Message ----- From: Andre Cruvinel Resende Date: Thursday, August 4, 2005 7:08 am Subject: [UMN_MAPSERVER-USERS] ms4w and postgres+postgis runing on Win 2003 x XP. > Hi Folks, (from alll lists) > > We are going to install a new server with ms4w and > postgresql+postgis and we have to decide with operational > system will be better, we have the licence for > Windows 2003 server and Windows XP. > > There's any limitation for ms4w or postgis in the Windows > 2003 Operational system? > There's any one who use the Win2003 and ms4w+postgis with > sucess? > What about performance? > And security? > > So, help us to make this decision! > > Thanks for all! > > Andre > > > > > > _______________________________________________________ > Yahoo! Acesso Gr??tis - Internet r??pida e gr??tis. > Instale o discador agora! http://br.acesso.yahoo.com/ > From fwarmerdam at GMAIL.COM Thu Aug 4 11:47:03 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: WMS Server serving large raster In-Reply-To: Message-ID: On 8/4/05, Gambin Dejan wrote: > Thanks Frank very much, > > I am aware of no significant difference in my case, I am asking this > just because of theoretical knowledge I would like to get. I only don't > understand completely the last issue you mentioned, about the 1-2 files > overviews and "tile map" information needing to be loaded. What does it > mean "if overview views are common" (maybe my "common" translation is > wrong)? Dejan, What I expressed rather poorly was that on consideration is what is a typical usage scenario for your user. If the nature of your mapping application is that folks start looking at the whole map, and then zoom in to a local area, then you will want to ensure that rendering the whole dataset for an overview view is fast, because this is a common case. If the nature of your application is that people are generally only looking at a small area, then you might not be too concerned about whether overview views of the whole map are somewhat slow. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Hunter at FNF.COM Thu Aug 4 12:26:50 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:53 2008 Subject: postGIS vs. TAB files Message-ID: I know little to nothing about postGIS, but I was wondering if using it might have some advantages over Mapinfo .TAB files (and tile indexes) for use with Mapserver in a Win2000 environment. Any feedback from people that have used postGIS would be greatly appreciated! David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter@fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/e77584c1/attachment.html From andreas.albarello at TERRITORIUMONLINE.COM Thu Aug 4 13:53:50 2005 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Fri Feb 8 15:07:53 2008 Subject: quotes and apostrophes in dbf Message-ID: I noticed that dbf-records containing apostrophes or quotes in one of their fields don't show up in the attribute query results when such a field is referenced inside the expression. For instance, a query like '[ORT_NAME_I]' =~ /.*(A|a)(N|n)(D|d)(R|r).*/ produces the expected results except for the record where ORT_NAME_I is Sant'Andrea, which doesn't show up due to the apostrophe (things behave exactly the same on other dbf-data, using different queries and working on different machines, when there's char #34 or #39 around). I guess that things go wrong somewhere inside the parser which is called from msEvalExpression. In fact, what we probably need to do is to escape any quote and apostrophe in a record as things are ok when I surround [ORT_NAME_I] in the example above with quotes instead of apostrophes, but that, viceversa, hides any record containing a quote. Of course, I may be wrong as well. Has anybody else experienced this behavior too? Best regards, -- -------------------------------------------------------------------- Andreas Albarello Territorium Online Srl/GmbH andreas.albarello@territoriumonline.com www.territoriumonline.com -------------------------------------------------------------------- From jmckenna at DMSOLUTIONS.CA Thu Aug 4 14:27:58 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri Feb 8 15:07:53 2008 Subject: ms4w and postgres+postgis runing on Win 2003 x XP. In-Reply-To: <20050804140814.56811.qmail@web31002.mail.mud.yahoo.com> Message-ID: we run MS4W on Win2003 Server and XP and see no problems... jeff Andre Cruvinel Resende wrote: > Hi Folks, (from alll lists) > > We are going to install a new server with ms4w and > postgresql+postgis and we have to decide with operational > system will be better, we have the licence for > Windows 2003 server and Windows XP. > > There's any limitation for ms4w or postgis in the Windows > 2003 Operational system? > There's any one who use the Win2003 and ms4w+postgis with > sucess? > What about performance? > And security? > > So, help us to make this decision! > > Thanks for all! > > Andre > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From tkirstine at JDBARNES.COM Thu Aug 4 15:29:24 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Fri Feb 8 15:07:53 2008 Subject: displaying layers with two classes Message-ID: I've been tring to display several layer each with two classes but getting some unexpected results. I want to display each polygon layer with one class having a solid fill at max extent 1:150000 to 1:20000 then use another class having a outline only at the min scale range 1:20000 to 1:500. Seems easy, my layers display correctly at the max scale range(max_range.jpg) but at the min range the colours are incorrect, the colours are all the same as the first layer in my mapfile(min_range_bad.jpg). Also if I turn off the first layer the colour changes to the correct colour(min_range.jpg). I don't know what I'm doing wrong. Travis #{{{{{[[[[[[((((((<<< APARTMENT NEIGHBOURHOODS>>>)))))))]]]]]]]}}}}}} LAYER DATA mattamy/apartment_neighbourhoods NAME "op_niegh" METADATA DESCRIPTION "OP Apartment Areas" END TYPE POLYGON STATUS on MINSCALE 120000 MAXSCALE 501 TEMPLATE void CLASS NAME "app_1" MAXSCALE 120000 MINSCALE 20001 SYMBOL 4 COLOR 255 127 0 SIZE 1 END CLASS NAME "app_2" MAXSCALE 20000 MINSCALE 500 SYMBOL 4 OUTLINECOLOR 255 127 0 SIZE 3 END END #{{{{{[[[[[[((((((<<< MIXED USE >>>)))))))]]]]]]]}}}}}} LAYER DATA mattamy/mixed_use_area NAME "op_mix" METADATA DESCRIPTION "OP Mixed Use Areas" END TYPE POLYGON STATUS on MINSCALE 120000 MAXSCALE 501 TEMPLATE void CLASS #displayes correctly NAME "mix_1" MAXSCALE 120000 MINSCALE 20001 SYMBOL 4 COLOR 255 50 50 SIZE 1 END CLASS #displayes as orange instead of red NAME "mix_2" MAXSCALE 20000 MINSCALE 500 SYMBOL 4 OUTLINECOLOR 255 50 50 SIZE 3 END END -------------- next part -------------- A non-text attachment was scrubbed... Name: max_range.JPG Type: image/jpeg Size: 162875 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/cb44ffb4/max_range.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: min_range.JPG Type: image/jpeg Size: 238049 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/cb44ffb4/min_range.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: min_range_bad.JPG Type: image/jpeg Size: 197738 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/cb44ffb4/min_range_bad.jpe From Bruce.Tonkin at GOV.BC.CA Thu Aug 4 17:08:06 2005 From: Bruce.Tonkin at GOV.BC.CA (Tonkin, Bruce SRM:EX) Date: Fri Feb 8 15:07:53 2008 Subject: Mapserver Configuration Message-ID: I have a few hundred layers of data that I need to publish using MapServer. The plan is not to publish all the data at once, but add layers to the WMS/s as the need arises. MapServer has an initial limit or restriction of 50 layers, which can be changed at compile time. Now my question. Does it make sense to publish all the data using one big Map file, or does it make sense to have a different Map file for each business area i.e.. base, water, wildlife etc... We currently have in excess of a million image requests a month, so I need to ensure that we are scalable as time goes by. Your comments or suggestions would be appreciated. Thanks, ____________________________________________________________ Bruce Tonkin NOTE: New email address - Bruce.Tonkin@gov.bc.ca Information Management Branch Land Information British Columbia Integrated Land Management Agency 3rd Floor, 395 Waterfront Crescent, Victoria, BC, Canada, V8W 9M3 Mail: PO Box 9364, Stn Prov Govt, Victoria BC V8W 9M3 Phone: (250) 356-0108 Fax: (250) 387-1085 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/94b09743/attachment.html From richard.greenwood at GMAIL.COM Thu Aug 4 17:40:39 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri Feb 8 15:07:53 2008 Subject: transparent hatch Message-ID: Since Mapserver 4.4, when I want to output jpegs, if I want a simple vector hatch to be transparent (for underlying layer to show thru) I have to set IMAGEMODE PC256: OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE PC256 EXTENSION "jpg" END If I use IMAGEMODE RGB, the space between the vector lines is opaque white. My symbol definition: Symbol NAME 'Diag_NE_SW' TYPE VECTOR POINTS 0 1 1 0 END END And my class definition: CLASS NAME "FEMA 500 Year Flood Zone SHX" EXPRESSION 'SHX' STYLE COLOR 112 186 248 OUTLINECOLOR 0 0 255 SYMBOL 'Diag_NE_SW' SIZE 20 END END Am I overlooking anything? I would prefer to use IMAGEMODE RGB. Thanks, Rich -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From fwarmerdam at GMAIL.COM Thu Aug 4 18:17:33 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: transparent hatch In-Reply-To: Message-ID: On 8/4/05, Richard Greenwood wrote: > Since Mapserver 4.4, when I want to output jpegs, if I want a simple > vector hatch to be transparent (for underlying layer to show thru) I > have to set IMAGEMODE PC256: > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE PC256 > EXTENSION "jpg" > END > > If I use IMAGEMODE RGB, the space between the vector lines is opaque white. > > My symbol definition: > > Symbol > NAME 'Diag_NE_SW' > TYPE VECTOR > POINTS > 0 1 > 1 0 > END > END > > And my class definition: > > CLASS > NAME "FEMA 500 Year Flood Zone SHX" > EXPRESSION 'SHX' > STYLE > COLOR 112 186 248 > OUTLINECOLOR 0 0 255 > SYMBOL 'Diag_NE_SW' > SIZE 20 > END > END > > Am I overlooking anything? I would prefer to use IMAGEMODE RGB. Rich, Try adding a "TRANSPARENT ALPHA" line in your layer definition. Amoung other things this enables the alpha blending needed for raster symbols with transparency. I'm not really satisfied with this requirement, though it is organized this way partly to avoid extra work in the common case where there is no transparency. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From sgillies at FRII.COM Thu Aug 4 18:40:42 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri Feb 8 15:07:53 2008 Subject: transparent hatch In-Reply-To: Message-ID: On Aug 4, 2005, at 4:17 PM, Frank Warmerdam wrote: > On 8/4/05, Richard Greenwood wrote: >> Since Mapserver 4.4, when I want to output jpegs, if I want a simple >> vector hatch to be transparent (for underlying layer to show thru) I >> have to set IMAGEMODE PC256: >> =20 >> OUTPUTFORMAT >> NAME jpeg >> DRIVER "GD/JPEG" >> MIMETYPE "image/jpeg" >> IMAGEMODE PC256 >> EXTENSION "jpg" >> END >> =20 >> If I use IMAGEMODE RGB, the space between the vector lines is opaque >> whit= > e. >> =20 >> My symbol definition: >> =20 >> Symbol >> NAME 'Diag_NE_SW' >> TYPE VECTOR >> POINTS >> 0 1 >> 1 0 >> END >> END >> =20 >> And my class definition: >> =20 >> CLASS >> NAME "FEMA 500 Year Flood Zone SHX" >> EXPRESSION 'SHX' >> STYLE >> COLOR 112 186 248 >> OUTLINECOLOR 0 0 255 >> SYMBOL 'Diag_NE_SW' >> SIZE 20 >> END >> END >> =20 >> Am I overlooking anything? I would prefer to use IMAGEMODE RGB. > > Rich,=20 > > Try adding a "TRANSPARENT ALPHA" line in your layer definition. > Amoung other things this enables the alpha blending needed for > raster symbols with transparency. =20 > > I'm not really satisfied with this requirement, though it is organized > this way partly to avoid extra work in the common case where there > is no transparency. > Originally I thought this was a different issue, but indeed MapServer's vector type symbols are first rendered into pixmaps. Pixmap transparency for RGB imagemodes was on in versions prior to 4.2, and then was broken in 4.2, presumably in an attempt to increase performance. I restored it in 4.4.2 and 4.6, controlled by the layer transparency keyword instead of adding another transparency keyword to the symbol definition. It might be better to define transparency for symbols instead of layers, but this would require a fair amount of rewriting. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From richard.greenwood at GMAIL.COM Thu Aug 4 18:46:46 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri Feb 8 15:07:53 2008 Subject: transparent hatch In-Reply-To: <931f8ea9050804151776e79b98@mail.gmail.com> Message-ID: On 8/4/05, Frank Warmerdam wrote: > On 8/4/05, Richard Greenwood wrote: > > Since Mapserver 4.4, when I want to output jpegs, if I want a simple > > vector hatch to be transparent (for underlying layer to show thru) I > > have to set IMAGEMODE PC256: > > > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE PC256 > > EXTENSION "jpg" > > END > > > > If I use IMAGEMODE RGB, the space between the vector lines is opaque white. > > > > My symbol definition: > > > > Symbol > > NAME 'Diag_NE_SW' > > TYPE VECTOR > > POINTS > > 0 1 > > 1 0 > > END > > END > > > > And my class definition: > > > > CLASS > > NAME "FEMA 500 Year Flood Zone SHX" > > EXPRESSION 'SHX' > > STYLE > > COLOR 112 186 248 > > OUTLINECOLOR 0 0 255 > > SYMBOL 'Diag_NE_SW' > > SIZE 20 > > END > > END > > > > Am I overlooking anything? I would prefer to use IMAGEMODE RGB. > > Rich, > > Try adding a "TRANSPARENT ALPHA" line in your layer definition. > Amoung other things this enables the alpha blending needed for > raster symbols with transparency. > > I'm not really satisfied with this requirement, though it is organized > this way partly to avoid extra work in the common case where there > is no transparency. > > Best regards, > > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > Thank you Frank, you always have the answer! For the record; it is "TRANSPARENCY alpha" (not TRANSPARENT). Best regards, -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From pramsey at REFRACTIONS.NET Thu Aug 4 20:28:42 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri Feb 8 15:07:53 2008 Subject: postGIS vs. TAB files In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B630BAE@smbfnis-chi01.fnis.com> Message-ID: David, Frank might have to comment on the efficiency of his TAB support in OGR to clarify, but in general PostGIS is more effective if you want to consolidate management of data into one place, query/modify the data from multiple applications/clients, and get better optimization of composite spatial/attribute queries. In straight speed metrics of drawing a map, PostGIS vs shapefile favours the shapefile by 10-20%. I am not sure if the same would be true of TAB, they have to traverse an extra layer of abstraction (OGR). Paul On Aug 4, 2005, at 9:26 AM, Hunter, David - St. Louis Park, MN wrote: > I know little to nothing about postGIS, but I was wondering if > using it might have some advantages over Mapinfo .TAB files (and > tile indexes) for use with Mapserver in a Win2000 environment. Any > feedback from people that have used postGIS would be greatly > appreciated! > > > > David S. Hunter > Sr. Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Financial > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > ? Email: david.hunter@fnf.com > ' Phone: 952.542.1440 ext. 256 > 7 Fax: 952.542.3859 > > > > From richard.greenwood at GMAIL.COM Thu Aug 4 23:34:03 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri Feb 8 15:07:53 2008 Subject: transparent hatch Message-ID: From: Sean Gillies FRII.COM> Subject: Re: [UMN_MAPSERVER-USERS] transparent hatch Newsgroups: gmane.comp.gis.mapserver.user Date: 2005-08-04 22:40:42 GMT (4 hours and 40 minutes ago) On Aug 4, 2005, at 4:17 PM, Frank Warmerdam wrote: > On 8/4/05, Richard Greenwood gmail.com> wrote: > Since Mapserver 4.4, when I want to output jpegs, if I want a simple > vector hatch to be transparent (for underlying layer to show thru) I > have to set IMAGEMODE PC256: > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE PC256 > EXTENSION "jpg" > END > > If I use IMAGEMODE RGB, the space between the vector lines is opaque > whie. > > My symbol definition: > > Symbol > NAME 'Diag_NE_SW' > TYPE VECTOR > POINTS > 0 1 > 1 0 > END > END > > And my class definition: > > CLASS > NAME "FEMA 500 Year Flood Zone SHX" > EXPRESSION 'SHX' > STYLE > COLOR 112 186 248 > OUTLINECOLOR 0 0 255 > SYMBOL 'Diag_NE_SW' > SIZE 20 > END > END > > Am I overlooking anything? I would prefer to use IMAGEMODE RGB. > > Rich Originally I thought this was a different issue, but indeed MapServer's vector type symbols are first rendered into pixmaps. Pixmap transparency for RGB imagemodes was on in versions prior to 4.2, and then was broken in 4.2, presumably in an attempt to increase performance. I restored it in 4.4.2 and 4.6, controlled by the layer transparency keyword instead of adding another transparency keyword to the symbol definition. It might be better to define transparency for symbols instead of layers, but this would require a fair amount of rewriting. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com Sean, Thanks for the explanation. Although TRANSPARECNY ALPHA solved the problem, I found it less that obvious as to why. I mean, what should transparency have to do with vectors? But your explanation puts it all in context - the vector hatch gets rendered to a raster, which then needs transparency if it is not to mask underlying layers. Hope all is well with you. Best regards, -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From flavio at TYDAC.CH Fri Aug 5 02:20:58 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri Feb 8 15:07:53 2008 Subject: ms4w and postgres+postgis runing on Win 2003 x XP. In-Reply-To: <2fd0f342fd0a19.2fd0a192fd0f34@shaw.ca> Message-ID: Hi Andre If you have it anyway, I would highly suggest to use Windows 2003, which has a lot tighter security as Win XP. We run several Servers with 2003 and no problems so far. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio@tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From flavio at TYDAC.CH Fri Aug 5 02:25:52 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri Feb 8 15:07:53 2008 Subject: postGIS vs. TAB files In-Reply-To: <9ABD03DE-B059-4B2B-90D1-279615B7B365@refractions.net> Message-ID: Hi David We use TAB a lot and do not really see too much difference to Shape. To me it performs similar to PostGIS. But as Paul says: "but in general PostGIS is more effective if you want to consolidate management of data into one place, query/modify the data from multiple applications/ clients, and get better optimization of composite spatial/attribute queries". TAB is good for "display and query" kind of applications ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio@tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 5 02:28:35 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: displaying layers with two classes Message-ID: Looks like Mapserver is running out of colors in 8 bit mode, can you try and use 24 bit mode? Change your outputformat to: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Travis Kirstine GIS Tech 08/04/05 21:31 PM >>> I've been tring to display several layer each with two classes but getting some unexpected results. I want to display each polygon layer with one class having a solid fill at max extent 1:150000 to 1:20000 then use another class having a outline only at the min scale range 1:20000 to 1:500. Seems easy, my layers display correctly at the max scale range(max_range.jpg) but at the min range the colours are incorrect, the colours are all the same as the first layer in my mapfile(min_range_bad.jpg). Also if I turn off the first layer the colour changes to the correct colour(min_range.jpg). I don't know what I'm doing wrong. Travis #{{{{{[[[[[[((((((<<< APARTMENT NEIGHBOURHOODS>>>)))))))]]]]]]]}}}}}} LAYER DATA mattamy/apartment_neighbourhoods NAME "op_niegh" METADATA DESCRIPTION "OP Apartment Areas" END TYPE POLYGON STATUS on MINSCALE 120000 MAXSCALE 501 TEMPLATE void CLASS NAME "app_1" MAXSCALE 120000 MINSCALE 20001 SYMBOL 4 COLOR 255 127 0 SIZE 1 END CLASS NAME "app_2" MAXSCALE 20000 MINSCALE 500 SYMBOL 4 OUTLINECOLOR 255 127 0 SIZE 3 END END #{{{{{[[[[[[((((((<<< MIXED USE >>>)))))))]]]]]]]}}}}}} LAYER DATA mattamy/mixed_use_area NAME "op_mix" METADATA DESCRIPTION "OP Mixed Use Areas" END TYPE POLYGON STATUS on MINSCALE 120000 MAXSCALE 501 TEMPLATE void CLASS #displayes correctly NAME "mix_1" MAXSCALE 120000 MINSCALE 20001 SYMBOL 4 COLOR 255 50 50 SIZE 1 END CLASS #displayes as orange instead of red NAME "mix_2" MAXSCALE 20000 MINSCALE 500 SYMBOL 4 OUTLINECOLOR 255 50 50 SIZE 3 END END From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 5 02:31:53 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: postGIS vs. TAB files Message-ID: One problem of the TAB support through OGR currently is that the attribute indexes are not being used. So doing queries on large TAB files is not that fast. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Flavio Hendry 08/05/05 08:28 AM >>> Hi David We use TAB a lot and do not really see too much difference to Shape. To me it performs similar to PostGIS. But as Paul says: "but in general PostGIS is more effective if you want to consolidate management of data into one place, query/modify the data from multiple applications/ clients, and get better optimization of composite spatial/attribute queries". TAB is good for "display and query" kind of applications ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio@tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From flavio at TYDAC.CH Fri Aug 5 03:20:18 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri Feb 8 15:07:53 2008 Subject: displaying layers with two classes In-Reply-To: Message-ID: Hi Bart my experiance is that PNG24 creates "huge" files, such as 400k, compared to around 70k with JPEG (same image), so I'd suggest to use JPEG ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio@tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Bart van den Eijnden To: MAPSERVER-USERS@LISTS.UMN.EDU Date: Fri, 5 Aug 2005 08:28:35 +0200 Subject: Re: [UMN_MAPSERVER-USERS] displaying layers with two classes > Looks like Mapserver is running out of colors in 8 bit mode, can you > try and use 24 bit mode? > > Change your outputformat to: > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > IMAGEMODE RGBA > TRANSPARENT ON > END > > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > >>> Travis Kirstine GIS Tech 08/04/05 21:31 > PM >>> > I've been tring to display several layer each with two classes but > getting > some unexpected results. I want to display each polygon layer with > one > class having a solid fill at max extent 1:150000 to 1:20000 then use > another > class having a outline only at the min scale range 1:20000 to 1:500. > Seems > easy, my layers display correctly at the max scale > range(max_range.jpg) but > at the min range the colours are incorrect, the colours are all the > same as > the first layer in my mapfile(min_range_bad.jpg). Also if I turn off > the > first layer the colour changes to the correct colour(min_range.jpg). > I > don't know what I'm doing wrong. > Travis > > #{{{{{[[[[[[((((((<<< APARTMENT NEIGHBOURHOODS>>>)))))))]]]]]]]}}}}}} > > LAYER > DATA mattamy/apartment_neighbourhoods > NAME "op_niegh" > METADATA > DESCRIPTION "OP Apartment Areas" > END > TYPE POLYGON > STATUS on > MINSCALE 120000 > MAXSCALE 501 > TEMPLATE void > CLASS > NAME "app_1" > MAXSCALE 120000 > MINSCALE 20001 > SYMBOL 4 > COLOR 255 127 0 > SIZE 1 > END > CLASS > NAME "app_2" > MAXSCALE 20000 > MINSCALE 500 > SYMBOL 4 > OUTLINECOLOR 255 127 0 > SIZE 3 > END > > END > #{{{{{[[[[[[((((((<<< MIXED USE >>>)))))))]]]]]]]}}}}}} > > LAYER > DATA mattamy/mixed_use_area > NAME "op_mix" > METADATA > DESCRIPTION "OP Mixed Use Areas" > END > TYPE POLYGON > STATUS on > MINSCALE 120000 > MAXSCALE 501 > TEMPLATE void > CLASS #displayes correctly > NAME "mix_1" > MAXSCALE 120000 > MINSCALE 20001 > SYMBOL 4 > COLOR 255 50 50 > SIZE 1 > END > CLASS #displayes as orange instead of red > NAME "mix_2" > MAXSCALE 20000 > MINSCALE 500 > SYMBOL 4 > OUTLINECOLOR 255 50 50 > SIZE 3 > END > > END From flavio at TYDAC.CH Fri Aug 5 03:21:37 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri Feb 8 15:07:53 2008 Subject: postGIS vs. TAB files In-Reply-To: Message-ID: > One problem of the TAB support through OGR currently is that the > attribute indexes are not being used. So doing queries on large TAB > files is not that fast. agreed. as said: "display and query" (with query I mean info-tool kind of stuff). ciao flavio From m.cave-ayland at WEBBASED.CO.UK Fri Aug 5 03:53:20 2005 From: m.cave-ayland at WEBBASED.CO.UK (Mark Cave-Ayland) Date: Fri Feb 8 15:07:53 2008 Subject: [postgis-users] ms4w and postgres+postgis runing on Win 2003 x XP. In-Reply-To: <20050804140814.56811.qmail@web31002.mail.mud.yahoo.com> Message-ID: > -----Original Message----- > From: postgis-users-bounces@postgis.refractions.net > [mailto:postgis-users-bounces@postgis.refractions.net] On > Behalf Of Andre Cruvinel Resende > Sent: 04 August 2005 15:08 > To: ms4w-users@lists.maptools.org; > mapserver-users@lists.umn.edu; postgis-users@postgis.refractions.net > Subject: [postgis-users] ms4w and postgres+postgis runing on > Win 2003 x XP. > > > Hi Folks, (from alll lists) > > We are going to install a new server with ms4w and > postgresql+postgis and we have to decide with operational > system will be better, we have the licence for > Windows 2003 server and Windows XP. > > There's any limitation for ms4w or postgis in the Windows > 2003 Operational system? > There's any one who use the Win2003 and ms4w+postgis with sucess? > What about performance? > And security? > > So, help us to make this decision! > > Thanks for all! > > Andre Hi Andre, There should be no problems with using ms4w under Windows 2k3, however please please do *not* use the MS4W Win32 PostgreSQL 7.5/PostGIS installation on the MS4W download page on a public server. Since I first put the package together, there have been a number of security fixes, in particular fixes that prevent the server from running as an Administrator user which caused me to withdraw the original ZIP file. Also, as PostgreSQL 7.5 turned into 8.0, a lot of new features/changes were added which means that getting support from the PostgreSQL people will be almost possible. For any new installation, my recommendation is to use the official PostgreSQL installer, install without PostGIS 0.9.x and download the latest Win32 PostGIS 1.0.X release from http://www.webbased.co.uk/mca/. If possible, I would also wait until next week when the 1.0.3 release comes out, which will fix a serious bug in the bounding box calculations. Kind regards, Mark. ------------------------ WebBased Ltd 17 Research Way Tamar Science Park Plymouth PL6 8BT T: +44 (0)1752 797131 F: +44 (0)1752 791023 W: http://www.webbased.co.uk From juanantonio.fernandez at UCA.ES Fri Aug 5 04:52:57 2005 From: juanantonio.fernandez at UCA.ES (=?iso-8859-1?Q?Juan_Antonio_Fern=E1ndez?=) Date: Fri Feb 8 15:07:53 2008 Subject: php-mapserver, SDE and querys... Message-ID: Hi everybody. I've got a problem. I've got some shapes, and I make query to this shapes with mapserver. It works fine. But if I transform these shapes to SDE-shapes, and I make the same query, I get the following error: the query has not found results. I've seen that when I transform the shape, the name of the fields of the associated table change; but I change too the code of my *.map to adjust these changes. If someone knows a solution formy problem, please help me. Thanks for everybody, and regards. Juan Antonio Fern?ndez Prada Laboratorio de Astronom?a, Geodesia y Cartograf?a Facultad de Ciencias Universidad de C?diz (Spain) Tel?fono: 956 01 6287 Email: juanantonio.fernandez@uca.es -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050805/3a554fc6/attachment.html From Debbie.Pagurek at EC.GC.CA Fri Aug 5 08:28:52 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri Feb 8 15:07:53 2008 Subject: Maintenance issues Message-ID: Sorry for cross-posting but I have some questions relevant to both the mapserver and chamelon lists. There's a server at my workplace that is running php 3.3, Mapserver 4.4, and an older csv version of chameleon (looks like april 2004 which is way before the 2.2 release). There are existing applications on the server that shouldn't break, but few people around who can maintain them. I know that I could put mapserver 4.6 and chameleon 2.2 on this server at the same time as the older versions, but am I correct in thinking that the php 3.3 version won't work with these up to date versions? And I can't put a second version of PHP on the server, correct? If we upgrade the php version to 3.11, what is the likely impact on the old mapserver and chamelon (and mapserver/mapscript) applications? I'd appreciate any comments that people have on the regular mainenance planning for their projects. Thanks, D. Pagurek -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050805/e40aa72d/attachment.html From szekeres.tamas at FREEMAIL.HU Fri Aug 5 10:02:35 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:53 2008 Subject: Displaying Mapinfo text layer with rotation Message-ID: How to display Mapinfo "text" layer correctly? It seems that using STYLEITEM "AUTO" and TYPE ANNOTATION ensures the features to display, but the angle or the font display setting have not taken into account. The rotation angle and the displayable text do not appear as a separate attribute, so it is not possible to set the appearance manually (eg. by using LABELANGLEITEM). How to render the labels with the size depending on the scale as Mapinfo does? I would greatly thankful for any help. Tamas Szekeres From josh at OKLIEB.NET Thu Aug 4 17:27:53 2005 From: josh at OKLIEB.NET (Josh@oklieb) Date: Fri Feb 8 15:07:53 2008 Subject: [OpenSDI] Image Caching, when to update? In-Reply-To: <42F27A7B.8000407@gmail.com> Message-ID: The good news is that there are a whole raft of standard HTTP header tags for controlling caching, such as "If-Modified-Since". The bad news is that most software neither generates nor acts on them at present. -josh On Aug 4, 2005, at 4:28 PM, Cameron Shorter wrote: > I've always wondered whether a caching of a WMS/WFS can be > controlled by the "Last-Modified" metadata in the HTML response. > > For instance, a typical HTML response contains meta data like the > following: > > HTTP/1.1 200 OK > Date: Fri, 30 Oct 1998 13:19:41 GMT > Server: Apache/1.3.3 (Unix) > Cache-Control: max-age=3600, must-revalidate > Expires: Fri, 30 Oct 1998 14:19:41 GMT > Last-Modified: Mon, 29 Jun 1998 02:28:12 GMT > ETag: "3e86-410-3596fbbc" > Content-Length: 1040 > Content-Type: text/html > > I think image responses contain something similar. > Proxies usually use the Last-Modified tag to determine whether a > cache should be used or not. I'd suggest that the WFS/WMS should > set the Last-Modified flag to the last time the database was updated. > > Jody Garnett wrote: > >> Chris Holmes wrote: >> >>> One thought I've had about this is rigging up extend WFS-T >>> functionality >>> to handle notification and subscriptions. >>> >> This is what Galdos does with their "Cascading WFS-T", the >> probably initially used it to handle replication between clustered >> WFS servers, but once that was in place they pushed it as a way >> for clients to be notified of changes. >> Cheers, >> Jody >> > > -- > Cameron Shorter > http://cameron.shorter.net > http://mapbuilder.sourceforge.net > > _______________________________________________ > OpenSDI mailing list > OpenSDI@lists.eogeo.org > http://lists.eogeo.org/mailman/listinfo/opensdi > From imd_listuser at COMCAST.NET Fri Aug 5 13:08:15 2005 From: imd_listuser at COMCAST.NET (IMD Listuser) Date: Fri Feb 8 15:07:53 2008 Subject: OGRVRT Layers not releasing DB Connections Message-ID: Greetings, Im using Mapserver 4.6 from hobu and have just noticed that I am running out of database connections to my SQL Server database. Ive looked at the docs specifying how to use the PROCESSING "CLOSE_CONNECTION=DEFER" or PROCESSING "CLOSE_CONNECTION=NORMAL" items in the map file, but this does not seem to make a big difference in my case. Could the list offer any further details on how to be sure that my OGRVRT/ODBC connection to SQL Server is colsing its connection when completed? Thanks Charlie Van Dusen charlie@im-design.net From erics at AMERI-TITLE.COM Fri Aug 5 13:17:33 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Fri Feb 8 15:07:53 2008 Subject: PHP mapscript and JOINS Message-ID: OK I am stumped again. Using PHP mapscript I have gotten some results from a spatial query. I now want to create a table showing data from an associated dbf file for the query results. What is the best method of joining the query results to a dbf in PHP? 1. Should I be using a JOIN object in the map file for the layer queried? If so what is the syntax for accesing the join fields? (I have only been able to get the original shapefile values) 2. Should I be using the PHP dbase extension? I'm assuming this might be slow since I would have to query the dbf for each result from the spatial query. 3. Am I going to have to delv into PostGIS, and convert all my data into it? Any guidance would be appreciated! ~Eric From fwarmerdam at GMAIL.COM Fri Aug 5 13:23:01 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: OGRVRT Layers not releasing DB Connections In-Reply-To: <90264B8395BF154DB2CB12B068DFFAE9083BA5@westward.im-design.net> Message-ID: On 8/5/05, IMD Listuser wrote: > Greetings, > > Im using Mapserver 4.6 from hobu and have just noticed that I am running > out of database connections to my SQL Server database. Ive looked at the > docs specifying how to use the PROCESSING "CLOSE_CONNECTION=DEFER" or > PROCESSING "CLOSE_CONNECTION=NORMAL" items in the map file, but this > does not seem to make a big difference in my case. > > Could the list offer any further details on how to be sure that my > OGRVRT/ODBC connection to SQL Server is colsing its connection when > completed? Charlie, I assume you are using a VRT file referencing SQL Server via ODBC? Just with normal CGI mapserv? If you run mapserv (or shp2img) in debug mode, you should see messages like the following when the VRT file is closed within MapServer: msOGRLayerClose(...). With shp2img I can see these messages if I do "shp2img -all_debug 1 ...". To be really sure that the low level ODBC connection is being shutdown properly we would need to add some debuging output in the CloseConnection() method in gdal/port/cpl_odbc.cpp. If the ODBCSession is being properly shutdown then things are out of our control. If not, then there is a bug in the cleanup at some level. I would add that OGR's processing of the CLOSE_CONNECTION is different and distinct from the RDBMS derivers. I would suggest you avoid using the processing directive unless you find you have a specific need. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at DNR.STATE.MN.US Fri Aug 5 14:08:27 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:53 2008 Subject: transparent hatch Message-ID: There is enough information in a style to know when a vector symbol is transparent. Basically no background color. I suppose that could be used to trigger the same effect as TRANSPARENCY ALPHA. Steve >>> Sean Gillies 08/04/05 5:40 PM >>> On Aug 4, 2005, at 4:17 PM, Frank Warmerdam wrote: > On 8/4/05, Richard Greenwood wrote: >> Since Mapserver 4.4, when I want to output jpegs, if I want a simple >> vector hatch to be transparent (for underlying layer to show thru) I >> have to set IMAGEMODE PC256: >> =20 >> OUTPUTFORMAT >> NAME jpeg >> DRIVER "GD/JPEG" >> MIMETYPE "image/jpeg" >> IMAGEMODE PC256 >> EXTENSION "jpg" >> END >> =20 >> If I use IMAGEMODE RGB, the space between the vector lines is opaque >> whit= > e. >> =20 >> My symbol definition: >> =20 >> Symbol >> NAME 'Diag_NE_SW' >> TYPE VECTOR >> POINTS >> 0 1 >> 1 0 >> END >> END >> =20 >> And my class definition: >> =20 >> CLASS >> NAME "FEMA 500 Year Flood Zone SHX" >> EXPRESSION 'SHX' >> STYLE >> COLOR 112 186 248 >> OUTLINECOLOR 0 0 255 >> SYMBOL 'Diag_NE_SW' >> SIZE 20 >> END >> END >> =20 >> Am I overlooking anything? I would prefer to use IMAGEMODE RGB. > > Rich,=20 > > Try adding a "TRANSPARENT ALPHA" line in your layer definition. > Amoung other things this enables the alpha blending needed for > raster symbols with transparency. =20 > > I'm not really satisfied with this requirement, though it is organized > this way partly to avoid extra work in the common case where there > is no transparency. > Originally I thought this was a different issue, but indeed MapServer's vector type symbols are first rendered into pixmaps. Pixmap transparency for RGB imagemodes was on in versions prior to 4.2, and then was broken in 4.2, presumably in an attempt to increase performance. I restored it in 4.4.2 and 4.6, controlled by the layer transparency keyword instead of adding another transparency keyword to the symbol definition. It might be better to define transparency for symbols instead of layers, but this would require a fair amount of rewriting. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From richard.greenwood at GMAIL.COM Fri Aug 5 14:38:24 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri Feb 8 15:07:53 2008 Subject: postGIS vs. TAB files Message-ID: Bart van den Eijnden SYNCERA-ITSOLUTIONS.NL> writes: > > One problem of the TAB support through OGR currently is that the attribute indexes are not being used. So > doing queries on large TAB files is not that fast. > > Best regards, > Bart With shape files you can create an attribute index with OGR: ogrinfo -ro myTable -sql "create index on listing using ID" This creates an XML file which tells OGR that there is an attribute index, and a MapInfo format index (so you might want to drop MapInfo indexes before you creat the new index). I do not know if this works with TAB files. Regards, Richard Greenwood www.greenwoodmap.com From Debbie.Pagurek at EC.GC.CA Fri Aug 5 14:55:21 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri Feb 8 15:07:53 2008 Subject: DWITHIN filter question Message-ID: I would like to find out what polygon (my polygon layer is in EPSG:42304) a given point (provided in latitude/longitude) falls into. Is it possible to combine epsg codes like this? The example provided on the How To page provides the following example. http://www2.dmsolutions.ca/cgi-bin/mswfs_filter?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=popplace&Filter=Geometry2587598.000000,404010.5312501000 Is it possible to specify -75,4510... Is it srs or srsName? I tried this and I wasn't able to get it to work - every feature was returned. Debbie Debbie Pagurek, M.Sc. Integrated Environmental Applications Branch / Direction des Applications Environnementales Int?gr?s Knowledge Integration Directorate / Direction g?n?rale de l'integration du savoir Environment Canada / Environnement Canada 70 Cr?mazie, 7th Floor / 7e ?tage Gatineau, Qu?bec K1A 0H3 Tel / T?l: (819) 997-5956 Fax / T?l?c: (819) 994-5738 E-mail / Courriel: Debbie.Pagurek@ec.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050805/e982fd33/attachment.html From fwarmerdam at GMAIL.COM Fri Aug 5 15:13:15 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: postGIS vs. TAB files In-Reply-To: Message-ID: On 8/5/05, Richard Greenwood wrote: > Bart van den Eijnden SYNCERA-ITSOLUTIONS.NL> writes: > > > > > One problem of the TAB support through OGR currently is that the attribute > indexes are not being used. So > > doing queries on large TAB files is not that fast. > > > > Best regards, > > Bart > > With shape files you can create an attribute index with OGR: > ogrinfo -ro myTable -sql "create index on listing using ID" > This creates an XML file which tells OGR that there is an > attribute index, and a MapInfo format index (so you might > want to drop MapInfo indexes before you creat the new index). > > I do not know if this works with TAB files. Rich, Unfortunately, OGR does not use mapinfo attribute indexes for mapinfo format, even though it uses them for shapefiles. I would add that currently these indexes are only useful for unique value lookup. They don't help for ranges, or non-unique values. So, as mentioned, PostGIS does offer alot of flexibility and speed for different kinds of attribute queries that OGR's TAB support lacks. I would note that OGR's Mapinfo driver does support spatial indexes, so PostGIS shouldn't have a significant advantage on that front. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From siki at AGT.BME.HU Fri Aug 5 19:11:11 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri Feb 8 15:07:53 2008 Subject: Displaying Mapinfo text layer with rotation {Scanned} {Scanned} In-Reply-To: Message-ID: Hi Tamas, Some alternatives ... If you have MapInfo you can add a column for rotational angle and you can fill it up with a SQL command Update table_name set angle_column = ObjectGeography(obj, 7) I usually generate a line tab from the texts and display them as labels with ANGLE AUTO. I also use shape files where this is the solution to position annotations. To make your labels size depending on the zoom add SYMBOLSCALE scale line to your layer definition, the label SIZE parameter will be used at the given scale, at other scales mapserver will change the size of labels. Bye, Zoltan On Fri, 5 Aug 2005, Tamas Szekeres wrote: > How to display Mapinfo "text" layer correctly? It seems that using > STYLEITEM "AUTO" and TYPE ANNOTATION ensures the features to display, but > the angle or the font display setting have not taken into account. > > The rotation angle and the displayable text do not appear as a separate > attribute, so it is not possible to set the appearance manually (eg. by > using LABELANGLEITEM). > > How to render the labels with the size depending on the scale as Mapinfo > does? > > > I would greatly thankful for any help. > > Tamas Szekeres > From bill at POCONOGIS.COM Fri Aug 5 17:39:09 2005 From: bill at POCONOGIS.COM (Bill Chappell) Date: Fri Feb 8 15:07:53 2008 Subject: PHP 4.4.0? Message-ID: Hi, I have am using Mapserver Version 4.6.0 (2005-06-14), with php_mapscript_46.dll, and chameleon-2.2. My ISP wants to install PHP 4.4.0 for the bug fixes. I was using 4.3.1 and wonder what type of problems I will have with this upgrade. I remember seeing something on the list saying there was a problem with PHP 5.x but I can't find that message again. Any ideas of what I'll need to do with this newer version? I am using a win 2003 server. Bill Bill Chappell 570-402-5064 Bill@PoconoGIS.com www.PoconoGIS.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050805/71378581/attachment.html From douglass_davis at EARTHLINK.NET Fri Aug 5 20:07:13 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Fri Feb 8 15:07:53 2008 Subject: conditional/regular expressions are slow Message-ID: I have an application which allows me to have about 5 different zoom levels. From the lowest zoom level, you can see the biggest cities only. Az you zoom in, can see the biggest highways, then small highways, then small streets. The way I do this is in my mapfile I have: LAYER NAME big_cities ... CLASS NAME big_city_class EXPRESSION ('[POP_2000]'>80000 and '[STATE]'='NC') ... I am only interested in North Carolina by the way. Also, the highways are numbered A1.* and A2.* for the big highways A3.* for the smaller highways etc. So, What I do is use regular expressions like: EXPRESSION /A[12].*/ EXPRESSION /A[3].*/ This appears to be slowing things down. What's the best way to handle this? Three ideas I have for speeding this up are: 1. Export the shapefile to PostGIS where it can be indexed correctly 2. Separate the shapefile into multiple shapefiles somehow. One file would have big cities, the next file would have medium size cities and big cities etc. 3. Somehow add more indexing to the shapefile. Neither of which I know how to do. Does any one have any idea of how to do any of these things? I would prefer using some kind of free tool... Even a command line one would be fine, as I do not have a big budget. -- http://www.douglassdavis.com From douglass_davis at EARTHLINK.NET Fri Aug 5 20:11:28 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Fri Feb 8 15:07:53 2008 Subject: very complex maps Message-ID: Hello All, I have quickly learned that putting together a map such as the one that mapquest has, with all highways, cities, parks, bodies of water, and appropriate symbology etc. can be very difficult. Is there a company that sells pre-made mapfiles and the all the appropriate and timely data to go with them? Thank you! -d -- http://www.douglassdavis.com From dbkeon.ml at GMAIL.COM Fri Aug 5 20:48:29 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Fri Feb 8 15:07:53 2008 Subject: conditional/regular expressions are slow In-Reply-To: <42F3FF31.4030605@earthlink.net> Message-ID: On 08/05/2005 05:07 PM, Douglass Davis wrote: > Also, the highways are numbered A1.* and A2.* for the big highways A3.* > for the smaller highways etc. So, What I do is use regular expressions > like: > > EXPRESSION /A[12].*/ > EXPRESSION /A[3].*/ > > This appears to be slowing things down. What's the best way to handle > this? I haven't tested this, but I wonder if /^A[12]/ and /^A3/ would be any faster. > Three ideas I have for speeding this up are: > 1. Export the shapefile to PostGIS where it can be indexed correctly > 2. Separate the shapefile into multiple shapefiles somehow. One file > would have big cities, the next file would have medium size cities and > big cities etc. > 3. Somehow add more indexing to the shapefile. Try creating spatial indexes on your shapefiles if you haven't done so already. Use the shptree utility that is packaged with MapServer. --Dylan From flavio at TYDAC.CH Sat Aug 6 03:19:29 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri Feb 8 15:07:53 2008 Subject: Displaying Mapinfo text layer with rotation In-Reply-To: Message-ID: Hi Tamas see the MapInfo Example under http://umn.mapserver.ch/ (i.e. the layer house numbers). such as: CONNECTIONTYPE OGR CONNECTION "..\data\housenr.TAB" LABELITEM "OGR:LabelText" LABELANGLEITEM "OGR:LabelAngle" and for scaling: MINSCALE 0 MAXSCALE 2000 SYMBOLSCALE 1500 Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio@tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From BEN at SYNCERA-ITSOLUTIONS.NL Sat Aug 6 06:41:54 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: PHP 4.4.0? Message-ID: There should be no problem with 4.4, I don't know if Mapscript needs to be recompiled against PHP 4.4 though, for more info see: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1387 and: http://bugzilla.maptools.org/show_bug.cgi?id=1097 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Bill Chappell 08/05/05 23:44 PM >>> Hi, I have am using Mapserver Version 4.6.0 (2005-06-14), with php_mapscript_46.dll, and chameleon-2.2. My ISP wants to install PHP 4.4.0 for the bug fixes. I was using 4.3.1 and wonder what type of problems I will have with this upgrade. I remember seeing something on the list saying there was a problem with PHP 5.x but I can't find that message again. Any ideas of what I'll need to do with this newer version? I am using a win 2003 server. Bill Bill Chappell 570-402-5064 Bill@PoconoGIS.com www.PoconoGIS.com From pramsey at REFRACTIONS.NET Sat Aug 6 11:21:39 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri Feb 8 15:07:53 2008 Subject: conditional/regular expressions are slow In-Reply-To: <42F408DD.7080606@gmail.com> Message-ID: Douglas, Sounds like you are trying to draw *just* the big highways at certain scales. Using the feature code as a filter. This is not mapserver being slow, this is mapserver processing a huge amount of data. You need to think about how mapserver has to answer your request (use this shape file and show me the big highways). Since it has no attribute indexes, it has to open the file and for every shape in the current view (it does have spatial indexes) it reads the shape and checks the feature code. It probably examines 100 ordinary road shapes for every 1 highway shape it draws for you. Not efficient at all. The answer is your open 2 below. Pre-process your data so that mapserver can do the bare minimum of work for each rendering pass. There is no point in having mapserver read 100000 features that it is not even going to draw. Paul On 5-Aug-05, at 5:48 PM, Dylan Keon wrote: > On 08/05/2005 05:07 PM, Douglass Davis wrote: > >> Also, the highways are numbered A1.* and A2.* for the big highways >> A3.* for the smaller highways etc. So, What I do is use regular >> expressions like: >> EXPRESSION /A[12].*/ >> EXPRESSION /A[3].*/ >> This appears to be slowing things down. What's the best way to >> handle this? >> > > I haven't tested this, but I wonder if /^A[12]/ and /^A3/ would be > any faster. > > >> Three ideas I have for speeding this up are: >> 1. Export the shapefile to PostGIS where it can be indexed correctly >> 2. Separate the shapefile into multiple shapefiles somehow. One >> file would have big cities, the next file would have medium size >> cities and big cities etc. >> 3. Somehow add more indexing to the shapefile. >> > > Try creating spatial indexes on your shapefiles if you haven't done > so already. Use the shptree utility that is packaged with MapServer. > > --Dylan > From douglass_davis at EARTHLINK.NET Sat Aug 6 11:43:33 2005 From: douglass_davis at EARTHLINK.NET (Douglass Davis) Date: Fri Feb 8 15:07:53 2008 Subject: conditional/regular expressions are slow In-Reply-To: <97297B04-F142-4ED5-9EEE-225ADBCA40D1@refractions.net> Message-ID: Paul Ramsey wrote: > > The answer is your open 2 below. Pre-process your data so that > mapserver can do the bare minimum of work for each rendering pass. > There is no point in having mapserver read 100000 features that it is > not even going to draw. > > Paul > thanks. Does any one know of any free tools that can separate a shapefile into multiple shapefiles using queries/regular expressions/attributes...? From imd_listuser at COMCAST.NET Sat Aug 6 11:54:09 2005 From: imd_listuser at COMCAST.NET (IMD Listuser) Date: Fri Feb 8 15:07:53 2008 Subject: OGRVRT Layers not releasing DB Connections Message-ID: Hi, Thanks for the reply. Im not using an ovf file. Rather, Ive included all of the parameters of the OVF file in the CONNECTION string within the .map file so that I use variable substitution (in a element) with a parameter that is passed in on the request. Here is the layer from the .map file: LAYER NAME pstn TYPE POINT TEMPLATE "VTemplate.html" CONNECTIONTYPE OGR CONNECTION "ODBC:user/pwd@MyODBCDSNselect top 1 * from LogTable where vid = '%vid%' order by LogTable.id descwkbPointWGS84" STATUS DEFAULT CLASS TEXT([label]) COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE 10 LABEL FORCE true POSITION AUTO TYPE TRUETYPE FONT Arial SIZE 8 OFFSET 0 5 COLOR 255 255 255 OUTLINECOLOR 0 0 0 WRAP "," END END END This is one of 3 layers that use ODBC connections to a SQL Server DB. Each request for a map thus makes 3 distinct connections to the DB to get information to place on the map image. When I monitor the number of connections, it increments by 3 after each request, so it seems to me that the connections are not being released since after a period of time I start to receive errors that other processes cannot connect to the database. A restart is necessary to restore connectivity. I did turn debugging for this layer and I did note a call to msOGRLayerClose(), but as you can see it seems to include all of the CONNECTION string. Is this expected? msOGRFileOpen(ODBC:user/pwd@MyODBCDSNselect top 1 * from LogTable where vid = '020fe190-4f2c-48e4-a3a5-8bf38631f308' order by LogTable.id descwkbPointWGS84)... OGROPen(ODBC:user/pwd@MyODBCDSNselect top 1 * from LogTable where vid = '020fe190-4f2c-48e4-a3a5-8bf38631f308' order by LogTable.id descwkbPointWGS84) msOGRLayerClose(ODBC:user/pwd@MyODBCDSNselect top 1 * from LogTable where vid = '020fe190-4f2c-48e4-a3a5-8bf38631f308' order by LogTable.id descwkbPointWGS84). msOGRFileClose(ODBC:user/pwd@MyODBCDSNselect top 1 * from LogTable where vid = '020fe190-4f2c-48e4-a3a5-8bf38631f308' order by LogTable.id descwkbPointWGS84,0). This is a tracking application that is just using the CGI verion of Mapserver at present. I would like to be able to use SQL server, but I might be tempted to move to MySQL or PostGIS if it were clearly the right thing to do, esp as regards displaying the dynamic spatial data and its attributes on the map image. I eagerly await your response. charlie Charlie Van Dusen charlie@im-design.net -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Friday, August 05, 2005 1:23 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGRVRT Layers not releasing DB Connections On 8/5/05, IMD Listuser wrote: > Greetings, > > Im using Mapserver 4.6 from hobu and have just noticed that I am > running out of database connections to my SQL Server database. Ive > looked at the docs specifying how to use the PROCESSING > "CLOSE_CONNECTION=DEFER" or PROCESSING "CLOSE_CONNECTION=NORMAL" items > in the map file, but this does not seem to make a big difference in my case. > > Could the list offer any further details on how to be sure that my > OGRVRT/ODBC connection to SQL Server is colsing its connection when > completed? Charlie, I assume you are using a VRT file referencing SQL Server via ODBC? Just with normal CGI mapserv? If you run mapserv (or shp2img) in debug mode, you should see messages like the following when the VRT file is closed within MapServer: msOGRLayerClose(...). With shp2img I can see these messages if I do "shp2img -all_debug 1 ...". To be really sure that the low level ODBC connection is being shutdown properly we would need to add some debuging output in the CloseConnection() method in gdal/port/cpl_odbc.cpp. If the ODBCSession is being properly shutdown then things are out of our control. If not, then there is a bug in the cleanup at some level. I would add that OGR's processing of the CLOSE_CONNECTION is different and distinct from the RDBMS derivers. I would suggest you avoid using the processing directive unless you find you have a specific need. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From watergen at ECN.PURDUE.EDU Sat Aug 6 13:40:08 2005 From: watergen at ECN.PURDUE.EDU (ABE Water Research Account) Date: Fri Feb 8 15:07:53 2008 Subject: MapServer4.6 install:can't find gd.h and jpeg Message-ID: Hi, all, I 've spent three days worth of time to get all the latest version of tools for MS4.6 and compiled/install them with no error and updated LD_LIB... env, then MapServer configure kept saying it can't find my gd.h and libgd... and neither can it find jpeglib.h and libjpeg.*. Due to system restriction, we like to install on local user account, you know, not the /usr/local defaul locations, and I have the bin/ lib/ include/ share/ etc all set up nicely and all the files are there... so I configure it like: ./configure --prefix=$HOME \ --enable-debug \ --with-sde=/home/water/a/watergen/lib/sde/sdeexe83 \ --with-sde-version=83 \ --with-zlib==/home/water/a/watergen/lib \ --with-freetype=/home/water/a/watergen/bin/freetype-config \ --with-jpeg=/home/water/a/watergen/lib \ --with-png=/home/water/a/watergen/lib \ --with-ogr=/home/water/a/watergen/bin/gdal-config \ --with-gdal=/home/water/a/watergen/bin/gdal-config \ --with-pdf=/home/water/a/watergen/bin/pdflib-config \ --with-tiff=/home/water/a/watergen/lib \ --with-curl-config=/home/water/a/watergen/bin/curl-config \ --with-proj=/home/water/a/watergen/lib \ --with-gd=/home/water/a/watergen/bin/gdlib-config \ --with-threads and I get back: configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. configure: checking where PNG is installed... using libpng from -L/home/water/a/watergen/lib -lpng configure: checking whether we should include JPEG support... using libjpeg from system -L/home/water/a/watergen/lib -ljpeg configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... yes using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /home/danpatch/a/watergen/bin/gdlib-config. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). our system specs: Machine hardware: sun4u OS version: 5.8 Processor type: sparc Hardware: SUNW,Ultra-4 Then when our collected hair on our heads all pulled out, I just configure it without any --with, it passed. So I guess this new version or previous version(s) just need to get things from default places. I still hold out hope that we can still put things locally, please let us know any suggestions, Best, Baldy From bartvde at XS4ALL.NL Sat Aug 6 14:35:56 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: conditional/regular expressions are slow In-Reply-To: <42F4DAA5.9030506@earthlink.net> Message-ID: OGR has tools for this. Check ogr2ogr. http://www.gdal.org/ogr/ogr_utilities.html Best regards, Bart On Sat, 06 Aug 2005 17:43:33 +0200, Douglass Davis wrote: > Paul Ramsey wrote: > >> >> The answer is your open 2 below. Pre-process your data so that >> mapserver can do the bare minimum of work for each rendering pass. >> There is no point in having mapserver read 100000 features that it is >> not even going to draw. >> >> Paul >> > > thanks. Does any one know of any free tools that can separate a > shapefile into multiple shapefiles using queries/regular > expressions/attributes...? > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From markknightnz at YAHOO.CO.NZ Sat Aug 6 19:53:47 2005 From: markknightnz at YAHOO.CO.NZ (Mark Coetzee) Date: Fri Feb 8 15:07:53 2008 Subject: Error - object expect Message-ID: Hi When I try and dispay a vector layer using mapserver it gives me an error of object expected, I've been trying for a long time and have been unsuccesfull at solving it. Thanks Mark Send instant messages to your online friends http://au.messenger.yahoo.com From ivankautter at HOTMAIL.COM Sat Aug 6 21:24:58 2005 From: ivankautter at HOTMAIL.COM (Ivan Kautter) Date: Fri Feb 8 15:07:53 2008 Subject: PHP5, Windows, and phpMapScript Message-ID: List serv users, I am having a problem getting webserver to acknowledge my php_mapscript_47.dll. Running Apache2 under windows, PHP5 in cgi-mode. Ran the dependency walker application mentioned in a thread earlier this year and found that the development version at maptools.org that was claimed to be compiled under PHP5 is dependent upon PHP4TS.DLL which of course I do not have as my install is PHP5. Also dependency walker indicates EFSADU.DLL missing in the GDAL1.2.DLL. At this point, I am thinking using most recent php4 be the easiest solution. Any suggestions? Thanks. Ivan From ivankautter at HOTMAIL.COM Sat Aug 6 22:43:15 2005 From: ivankautter at HOTMAIL.COM (Ivan Kautter) Date: Fri Feb 8 15:07:53 2008 Subject: Phpmapscript.dll Message-ID: I am having this problem as well. I have switched over to php4.4 until someone recompiles for php5. If I call dl() in my php script I get this message: Warning: dl(): Not supported in multithreaded Web servers - use extension statements in your php.ini in C:\Program Files\Apache Group\Apache2\htdocs\phpinfo2.php on line 5. If I merely use the extenstion option in the php.ini file thusly: extension=php_mapscript_47.dll I get no indication in the phpinfo page that the extension is recognized. I specified an absolute path in php.ini for extensions: extension_dir = "C:/php/extensions" and this is where php_mapscript_47.dll resides. Not sure what I am missing here. Ivan From ace at SUARES.NL Sat Aug 6 23:38:20 2005 From: ace at SUARES.NL (Ace Suares) Date: Fri Feb 8 15:07:53 2008 Subject: POINT TO PIXEL In-Reply-To: Message-ID: On Wednesday 08 June 2005 4:23, G Casey wrote: > Does anyone have a good way to convert point in meters to pixel I am > trying to compute this for the ability to zoom to a point without a > click. > > the click2map (php mapscript) function (below) works however i need > to solve for click_x and click_y for a large extent with a known x_map > and y_map. I have tried and seem to be getting very strange numbers. > > Why can I not just solve for click_x with a known x_map ???? My 'map2click' function seems to work... you feed it a mapObject and a rectObj, the latter being the bounds of the shape you are looking for. The function calculates the center of the rectangle, and return the pixel value. I use it in http://www.la21.nl/resultaten2005 and it seems to do what it must do. It makes sure the selected shape will be centered in the small 'zoom_map'. // If there are any doubts: I wrote this and it's licensed under the GPL. function map2click ( $map, $bounds ) { $bounds_average_x = ( $bounds->maxx + $bounds->minx ) / 2; $bounds_average_y = ( $bounds->miny + $bounds->maxy ) / 2; $x_pct = ( ( $bounds_average_x - $map->extent->minx ) / ( $map->extent->maxx - $map->extent->minx ) ); $y_pct = ( ( $bounds_average_y - $map->extent->miny ) / ( $map->extent->maxy - $map->extent->miny ) ); $x_map = intval( $map->width * $x_pct ); $y_map = intval( $map->height * (1 - $y_pct) ); return array( $x_map, $y_map ); } // take care about wrapping caused by mailer. -- "To be nobody but yourself in a world which is doing its best, night and day, to make you like everybody else, means to fight the hardest battle any human being can fight and never stop fighting." - E. E. Cummings Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +599 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support@suares.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050806/3028acbe/attachment.bin From fwarmerdam at GMAIL.COM Sun Aug 7 10:14:42 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:53 2008 Subject: OGRVRT Layers not releasing DB Connections In-Reply-To: <90264B8395BF154DB2CB12B068DFFAE9083BA8@westward.im-design.net> Message-ID: On 8/6/05, IMD Listuser wrote: > > Hi, > > Thanks for the reply. > > Im not using an ovf file. Rather, Ive included all of the parameters of > the OVF file in the CONNECTION string within the .map file so that I use > variable substitution (in a element) with a parameter that is > passed in on the request. Here is the layer from the .map file: ... > This is one of 3 layers that use ODBC connections to a SQL Server DB. > Each request for a map thus makes 3 distinct connections to the DB to > get information to place on the map image. When I monitor the number of > connections, it increments by 3 after each request, so it seems to me > that the connections are not being released since after a period of time > I start to receive errors that other processes cannot connect to the > database. A restart is necessary to restore connectivity. > > I did turn debugging for this layer and I did note a call to > msOGRLayerClose(), but as you can see it seems to include all of the > CONNECTION string. Is this expected? > > msOGRFileOpen(ODBC:user/pwd@MyODBCDSNselect top 1 * from LogTable where > vid = '020fe190-4f2c-48e4-a3a5-8bf38631f308' order by LogTable.id > descwkbPointWGS84)... OGROPen(ODBC:user/pwd@MyODBCDSNselect top 1 * from > LogTable where vid = '020fe190-4f2c-48e4-a3a5-8bf38631f308' order by > LogTable.id descwkbPointWGS84) > msOGRLayerClose(ODBC:user/pwd@MyODBCDSNselect top 1 * from LogTable > where vid = '020fe190-4f2c-48e4-a3a5-8bf38631f308' order by LogTable.id > descwkbPointWGS84). msOGRFileClose(ODBC:user/pwd@MyODBCDSNselect top 1 * > from LogTable where vid = '020fe190-4f2c-48e4-a3a5-8bf38631f308' order > by LogTable.id descwkbPointWGS84,0). Charlie, Using the direct OGR VRT information in the connection string should be fine. It certainly looks like mapserver is properly asking OGR to close the connection. I tried some experiments with an ODBC connection via OGR VRT to an MS Access file and it seemed to be calling SQLDisconnect() properly for each SQLConnect() request. I'm really not sure what else to do at my end to try and reproduce your situation. I did commit changes to OGR so that with CPL_DEBUG set ON it will report each SQLConnect and SQLDisconnect call. One approach to debugging might be to update to the latest GDAL/OGR from CVS and run it in debug to see if SQLDisconnect is being properly called. If it is, then I am pretty much at a loss as to why connections at the level you are monitoring them would not be properly released. > This is a tracking application that is just using the CGI verion of > Mapserver at present. I would like to be able to use SQL server, but I > might be tempted to move to MySQL or PostGIS if it were clearly the > right thing to do, esp as regards displaying the dynamic spatial data > and its attributes on the map image. It is hard for me to provide useful reasons to move or not move. There are advantages to moving into postgis but other than "lightness of connection", I'm not sure that mysql would have any advantages over SQL Server. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fx.prunayre at OIEAU.FR Mon Aug 8 03:01:48 2005 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Fri Feb 8 15:07:53 2008 Subject: Oracle / OCI error In-Reply-To: <20050808070406.M28907@oieau.fr> Message-ID: Hi, question for Oracle users Mapserver error is : msDrawMap(): Image handling error. Failed to draw layer named 'CIBA'. msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: . With mapfile : CONNECTIONTYPE oraclespatial CONNECTION "zonage/zonage@rnde" DATA "GEOM FROM CIBA USING UNIQUE ID SRID 41014" With OGR, same problem CONNECTION "oci:zonage/zonage@rnde" CONNECTIONTYPE OGR DATA "CIBA" And ogrinfo oci:zonage/zonage@rnde CIBA works fine. Httpd.conf is : LoadModule cgi_module modules/mod_cgi.so #LoadModule fastcgi_module modules/mod_fastcgi.so SetEnv TNS_ADMIN "/usr/local/oracle/product/10.2.0/client_1/network/admin" SetEnv PATH "/usr/local/oracle/product/10.2.0/client_1/bin" #SetEnv ORACLE_SID rnde #SetEnv ORACLE_HOME /usr/local/oracle/product/10.2.0/client_1 #SetEnv LD_LIBRARY_PATH /usr/local/oracle/product/10.2.0/client_1/lib:/usr/local/oracle/product/10.2 .0/client_1 SetEnv NLS_LANG AMERICAN_AMERICA.WE8ISO8859P15 Any ideas on what is wrong ? I would like to use fastcgi once cgi works. What do we have to set for fastcgi to work with oracle &mapserver ? Thanks. Francois Office International de l'EAU Web : http://www.oieau.fr -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From pscott at UWC.AC.ZA Mon Aug 8 03:50:42 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Fri Feb 8 15:07:53 2008 Subject: PHP Mapscript object Message-ID: Hi all, I have started work on a difinitive PHP class (as an adaptor pattern) that encapsulates all of the PHP mapscript API, and makes it available in a PHP4 compatible class. I was just wondering if anyone has atempted this type of thing before? This class will also make use of my previous postgis class, which can be found at http://avoir.uwc.ac.za/projects/postgis/ --Paul From Maarten.van.der.Hoeven at KNMI.NL Mon Aug 8 04:13:07 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Fri Feb 8 15:07:53 2008 Subject: Mapscript and Google maps Message-ID: Hi list, Can someone give me a working example how to hook google maps into mapscript? I have the feeling it has something to do with WMS, and if so, that part is completely new to me. I am willing to read the * manual, but with an working example, that is going to be a lot easier. Thanks, Maarten From leopold.schefcik at MULTIMEDIAPLAN.AT Mon Aug 8 07:58:31 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:53 2008 Subject: SRS in OGC Viewer ok, but not in Mapbender!? In-Reply-To: Message-ID: hi list, 1st problem: I have a GetCapability Request for my map project with one single layer: GetCapabilies Request: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2\tuto rial/gewaesser.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities ----------------------------------- In the wms viewer http://www.wmsviewer.com/main.asp there are two layers (one is the right layer, and one has the name of the map. What's that!?!?!? ____________________________________________________________________________ 2nd problem: in Mapbender I have the message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers. (Mapbender-GUI: http://213.47.127.15:8081/mapbender/frames/index.php?&gui_id=_PGO_) I have 3 times an EPSG in my map-code: A. at Map/Web/Metadata -> EPSG:4326 B. at Map/Prokection -> EPSG:31287 C. at Map/Layer/Metadata -> EPSG:4326 ist this right??? With this A/B/C configuration I have no Error message in the OGC WMS Viewer but in Mapbender. If I make all to 31287, I have an error message in the OGC WMS Viewer. can anybody help me please?!? Leopold PS: The map and capability file is in the attachement. -------------- next part -------------- A non-text attachment was scrubbed... Name: gewaesser.map Type: application/octet-stream Size: 2180 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050808/327c6600/gewaesser.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv Type: application/octet-stream Size: 5384 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050808/327c6600/mapserv.obj From leopold.schefcik at MULTIMEDIAPLAN.AT Mon Aug 8 08:01:54 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:53 2008 Subject: WG: SRS in OGC Viewer ok, but not in Mapbender!? Message-ID: -----Urspr?ngliche Nachricht----- Von: Leopold Schefcik (MULTIMEDIAPLAN.AT) [mailto:leopold.schefcik@multimediaplan.at] Gesendet: Montag, 8. August 2005 13:59 An: mdp@lists.gis.umn.edu; mapserver-users@lists.umn.edu Betreff: SRS in OGC Viewer ok, but not in Mapbender!? hi list, 1st problem: I have a GetCapability Request for my map project with one single layer: GetCapabilies Request: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2\tuto rial/gewaesser.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities ----------------------------------- In the wms viewer http://www.wmsviewer.com/main.asp there are two layers (one is the right layer, and one has the name of the map. What's that!?!?!? ____________________________________________________________________________ 2nd problem: in Mapbender I have the message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers. (Mapbender-GUI: http://213.47.127.15:8081/mapbender/frames/index.php?&gui_id=_PGO_) I have 3 times an EPSG in my map-code: A. at Map/Web/Metadata -> EPSG:4326 B. at Map/Prokection -> EPSG:31287 C. at Map/Layer/Metadata -> EPSG:4326 ist this right??? With this A/B/C configuration I have no Error message in the OGC WMS Viewer but in Mapbender. If I make all to 31287, I have an error message in the OGC WMS Viewer. can anybody help me please?!? Leopold PS: The map and capability file is in the attachement. -------------- next part -------------- A non-text attachment was scrubbed... Name: gewaesser.map Type: application/octet-stream Size: 2180 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050808/3cfab236/gewaesser.obj From BEN at SYNCERA-ITSOLUTIONS.NL Mon Aug 8 09:01:10 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:53 2008 Subject: SRS in OGC Viewer ok, but not in Mapbender!? Message-ID: Leopold, 1st problem is not a problem, Mapserver adds a group item which holds all your layers. This allows a WMS client to ask for all your layers at once, without specifying all the names. 2nd problem, can you try the following METADATA at the WEB and LAYER level: "WMS_SRS" "EPSG:31287 EPSG:4326" Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/08/05 01:58pm >>> hi list, 1st problem: I have a GetCapability Request for my map project with one single layer: GetCapabilies Request: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2\tuto rial/gewaesser.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities ----------------------------------- In the wms viewer http://www.wmsviewer.com/main.asp there are two layers (one is the right layer, and one has the name of the map. What's that!?!?!? ____________________________________________________________________________ 2nd problem: in Mapbender I have the message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers. (Mapbender-GUI: http://213.47.127.15:8081/mapbender/frames/index.php?&gui_id=_PGO_) I have 3 times an EPSG in my map-code: A. at Map/Web/Metadata -> EPSG:4326 B. at Map/Prokection -> EPSG:31287 C. at Map/Layer/Metadata -> EPSG:4326 ist this right??? With this A/B/C configuration I have no Error message in the OGC WMS Viewer but in Mapbender. If I make all to 31287, I have an error message in the OGC WMS Viewer. can anybody help me please?!? Leopold PS: The map and capability file is in the attachement. From fsimon at UNIVALI.BR Mon Aug 8 09:03:22 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri Feb 8 15:07:53 2008 Subject: Oracle / OCI error In-Reply-To: <200508080715.j787FdGI010958@ns1.oieau.fr> Message-ID: Hi Fran?ois, This problem can occur when the user that run Mapserv can't access the Oracle home. Did you define the same variables in the console that the user that run Mapserver? Can this user access (read permission) the ORACLE_HOME folder? You need to specify the Oracle enviroments for Oracle Spatial support (native connection) in Mapserver, you can check this link how to define it: http://www.puschitz.com/InstallingOracle9i.shtml#SettingOracleEnvironments Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Fran?ois Prunayre wrote: >Hi, question for Oracle users > >Mapserver error is : >msDrawMap(): Image handling error. Failed to draw layer named 'CIBA'. >msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. >Connection failure. Check the connection string. Error: . > >With mapfile : >CONNECTIONTYPE oraclespatial >CONNECTION "zonage/zonage@rnde" >DATA "GEOM FROM CIBA USING UNIQUE ID SRID 41014" > >With OGR, same problem > CONNECTION "oci:zonage/zonage@rnde" > CONNECTIONTYPE OGR > DATA "CIBA" > >And ogrinfo oci:zonage/zonage@rnde CIBA works fine. > >Httpd.conf is : >LoadModule cgi_module modules/mod_cgi.so >#LoadModule fastcgi_module modules/mod_fastcgi.so > > >SetEnv TNS_ADMIN "/usr/local/oracle/product/10.2.0/client_1/network/admin" >SetEnv PATH "/usr/local/oracle/product/10.2.0/client_1/bin" >#SetEnv ORACLE_SID rnde >#SetEnv ORACLE_HOME /usr/local/oracle/product/10.2.0/client_1 >#SetEnv LD_LIBRARY_PATH >/usr/local/oracle/product/10.2.0/client_1/lib:/usr/local/oracle/product/10.2 >.0/client_1 >SetEnv NLS_LANG AMERICAN_AMERICA.WE8ISO8859P15 > > >Any ideas on what is wrong ? I would like to use fastcgi once cgi works. >What do we have to set for fastcgi to work with oracle &mapserver ? > >Thanks. >Francois > > > >Office International de l'EAU >Web : http://www.oieau.fr > > >-- >Ce message a ete verifie par MailScanner pour des virus ou des polluriels et >rien de suspect n'a ete trouve. > >Les donnees et renseignements contenus dans ce message sont personnels, >confidentiels et prives. Toute publication, utilisation ou diffusion, meme >partielle, doit etre autorisee. > >Any data and information contained in this electronic mail is personal, >confidential and secret. Any total or partial publication, use or >distribution must be authorized. > > > > From szekeres.tamas at FREEMAIL.HU Mon Aug 8 10:11:58 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:53 2008 Subject: Displaying Mapinfo text layer with rotation {Scanned} {Scanned} Message-ID: Dear Zolt?n! I've debugged the mapserver's code and the following things could really solve my problem: Using "STYLEITEM AUTO" I had to set up a proper fontset in accordance with the settings of the Mapinfo data source. A least a "default" font should be declared in order to draw the labels with truetype fonts. Without this, the layer is rendered using raster fonts that could not been rotated at all. The settings of the datasource is validated in the msOGRGetAutoStyle function in mapogr.cpp. In most of my MapInfo files the label size is set to zero, so the labels are rendered with the default minimum size (4) at all scales (msGetLabelSize). (The current scale factor is multiplied with the label size of the class which is zero.) To workaround this, I had to change the code as setting the minimum label size coming from the OGR source to 1. I'm waiting for a correct solution, which can be suited into the overall concept of the program. Many thanks, for your suggestions, Tamas Szekeres On Fri, 5 Aug 2005 22:11:11 -0100, Siki Zoltan wrote: >Hi Tamas, > >Some alternatives ... >If you have MapInfo you can add a column for rotational angle and >you can fill it up with a SQL command >Update table_name set angle_column = ObjectGeography(obj, 7) > >I usually generate a line tab from the texts and display them as >labels with ANGLE AUTO. I also use shape files where this is the solution >to position annotations. > >To make your labels size depending on the zoom add > SYMBOLSCALE scale >line to your layer definition, the label SIZE parameter will be used at >the given scale, at other scales mapserver will change the size of labels. > >Bye, >Zoltan > >On Fri, 5 Aug 2005, Tamas Szekeres wrote: > >> How to display Mapinfo "text" layer correctly? It seems that using >> STYLEITEM "AUTO" and TYPE ANNOTATION ensures the features to display, but >> the angle or the font display setting have not taken into account. >> >> The rotation angle and the displayable text do not appear as a separate >> attribute, so it is not possible to set the appearance manually (eg. by >> using LABELANGLEITEM). >> >> How to render the labels with the size depending on the scale as Mapinfo >> does? >> >> >> I would greatly thankful for any help. >> >> Tamas Szekeres >> From albrecht at FIELAX.DE Mon Aug 8 10:29:08 2005 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Fri Feb 8 15:07:53 2008 Subject: WMS, GetFeatureInfo, querymap, GML Message-ID: Hello mapserver users and devs, is it possible to get a querymap image from a WMS-Server (Mapserver) in which the selected features are highlighted - just like a mapserver standalone application would do? In the mailinglist archives I found a thread (Till Adams, 2003-Nov-14, "WMS and Querymap") that said it would be possible, but using the GetFeatureInfo always returns a plain text or a GML to me, not an image. Concerning the GML I was wondering why no feature's attributes are included in the XML file but only coordinates. If I choose text/plain only attributes are returned but no feature coordinates. I would really like to use WMS or WFS for my application because I think it is a nice and scalable way merging geodata from different places of the world. But they are very restricted and never seem to have the functionality of a PHP/Mapscript solution according to things like querying, draw legends, projections, set expressions/filters dynamically. But please feel free to comment this. Best regards, Sebastian Albrecht From ecooley at STRATEGY5.COM Mon Aug 8 10:37:31 2005 From: ecooley at STRATEGY5.COM (Ed Cooley) Date: Fri Feb 8 15:07:54 2008 Subject: MapServer4.6 install:can't find gd.h and jpeg Message-ID: From szekeres.tamas at FREEMAIL.HU Mon Aug 8 10:46:35 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:54 2008 Subject: Displaying Mapinfo text layer with rotation Message-ID: Dear Flavio! Your suggestions could solve my problem, thanks. But using "STYLEITEM AUTO" the scale dependent rendering of the label size cannot be achieved if the label size in the OGR data source is set to zero, because the actual scalefactor is eliminated by multiplying with the zero (see msGetLabelSize in maplabel.cpp). Best Regards Tamas Szekeres On Sat, 6 Aug 2005 09:19:29 +0200, Flavio Hendry wrote: >Hi Tamas > >see the MapInfo Example under http://umn.mapserver.ch/ (i.e. the layer >house numbers). > >such as: > >CONNECTIONTYPE OGR >CONNECTION "..\data\housenr.TAB" >LABELITEM "OGR:LabelText" >LABELANGLEITEM "OGR:LabelAngle" > >and for scaling: >MINSCALE 0 >MAXSCALE 2000 >SYMBOLSCALE 1500 > >Mit freundlichem Gruss / Best Regards >Flavio Hendry > >---------------------------------------------------------------- >TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual >---------------------------------------------------------------- >############ Mit freundlichen Gruessen / Kind Regards >############ mailto:flavio@tydac.ch >############ TYDAC AG - http://www.tydac.ch >#### #### Geographic Information Solutions >#### #### Luternauweg 12 -- CH-3006 Bern >############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 >---------------------------------------------------------------- From lists at WEBMAPIT.COM.BR Mon Aug 8 11:41:33 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Fri Feb 8 15:07:54 2008 Subject: php_proj.dll - Not anymore included on PHP/MapScript package? Message-ID: Hi, As far as I remember, the last package of MapServer/PHPMapScript from MapTools which included php_proj.dll was version 4.4.1 Why is this *php_proj.dll* not included anymore at 4.6 package? Can I use this version using latest PHP 4.x or PHP 5.x? Or is there a way to build it without needing *Micro$oft Expensive Studio* ? I mean, is it possible to do it using the free *MS Visual C++ Toolkit 2003* or another free compiler? How was this extension done? Was it 'SWIGed' from PHP+PROJ4 sources? best regards -- Eduardo Patto Kanegae http://www.webmapit.com.br From assefa at DMSOLUTIONS.CA Mon Aug 8 12:02:14 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri Feb 8 15:07:54 2008 Subject: php_proj.dll - Not anymore included on PHP/MapScript package? In-Reply-To: <42F77D2D.5020006@webmapit.com.br> Message-ID: Hi There, Eduardo Patto Kanegae wrote: > Hi, > > As far as I remember, the last package of MapServer/PHPMapScript from > MapTools > which included php_proj.dll was version 4.4.1 > > Why is this *php_proj.dll* not included anymore at 4.6 package? > This package I think was mostly useful when projection information was not exposode few years back through php mapscript. I think you can now do all the projection conversions using php mapscript objects. > Can I use this version using latest PHP 4.x or PHP 5.x? > the dll won't work with php5.x. It might work with the php 4.4 > Or is there a way to build it without needing *Micro$oft Expensive > Studio* ? I mean, > is it possible to do it using the free *MS Visual C++ Toolkit 2003* or > another free compiler? > > How was this extension done? Was it 'SWIGed' from PHP+PROJ4 sources? > There is a php_proj.c file manitened manulally uder the php/mapscript directory. The makefiles have a taget called php_proj inside them. Although I have not tried it, It should be able to build using the free MS Visual C++ Toolkit 2003. > best regards > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dylan at IICI.NO-IP.ORG Mon Aug 8 12:34:15 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application Message-ID: Greetings, We are currently in the process of ramping up the scale of a mapserver-based application, and thus in search of some new hardware. So far we have priced out some dual processor systems, with the best deal from Dell. The machine will be running the UNIX version of mapserver. The large quantity of imagery and high density vector files will require a powerful machine in order to keep latency low. Any suggestions or stories about previous purchases (related to a mapserver application) would be much appreciated. Thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From tylermitchell at SHAW.CA Mon Aug 8 12:36:31 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application Message-ID: If you are using PostGIS or databases at all, I recommend digging up an article on optimising spatial data access (includes from a hardware perspective). Paul Ramsey provided some great tips in an article a year or so ago, somewhere in here: http://www.geospatial-online.com/ Tyler ----- Original Message ----- From: Dylan Beaudette Date: Monday, August 8, 2005 9:34 am Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application > Greetings, > > We are currently in the process of ramping up the scale of a > mapserver-based > application, and thus in search of some new hardware. > > So far we have priced out some dual processor systems, with the > best deal from > Dell. The machine will be running the UNIX version of mapserver. > The large > quantity of imagery and high density vector files will require a > powerful > machine in order to keep latency low. > > Any suggestions or stories about previous purchases (related to a > mapserver > application) would be much appreciated. > > Thanks in advance! > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group > University of California at Davis > 530.754.7341 > From steve.lime at DNR.STATE.MN.US Mon Aug 8 13:04:20 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:54 2008 Subject: PHP mapscript and JOINS Message-ID: Hi Eric: The JOIN support for MapServer is pretty much limited to queries and query template files. That is, it all goes on behind the scenes. I don't believe that any of the JOIN functionality is even exposed via MapScript- PHP or any other language. One reason being that the scripting languages that support MapScript provide better access to a database (flat files, DBF files, Oracle or Postgres) than MapScript. So number 2 below is a very viable option, as of course is number 3. Another option would be to use OGR since it has join abilities built in as well. Steve >>> Eric Shuman 08/05/05 12:17 PM >>> OK I am stumped again. Using PHP mapscript I have gotten some results from a spatial query. I now want to create a table showing data from an associated dbf file for the query results. What is the best method of joining the query results to a dbf in PHP? 1. Should I be using a JOIN object in the map file for the layer queried? If so what is the syntax for accesing the join fields? (I have only been able to get the original shapefile values) 2. Should I be using the PHP dbase extension? I'm assuming this might be slow since I would have to query the dbf for each result from the spatial query. 3. Am I going to have to delv into PostGIS, and convert all my data into it? Any guidance would be appreciated! ~Eric From bartvde at XS4ALL.NL Mon Aug 8 13:15:32 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:54 2008 Subject: WMS, GetFeatureInfo, querymap, GML In-Reply-To: <5610240970.20050808162908@fielax.de> Message-ID: Hi, with respect to only getting the coordinates, use the following in your METADATA section: "gml_include_items" "all" Querymap in WMS could be accomplished using an SLD WMS request to Mapserver, specifying a filter to determine which features will be highlighted. Best regards, Bart On Mon, 08 Aug 2005 16:29:08 +0200, Sebastian Albrecht wrote: > Hello mapserver users and devs, > > > is it possible to get a querymap image from a WMS-Server (Mapserver) > in which the selected features are highlighted - just like a mapserver > standalone application would do? > > In the mailinglist archives I found a thread (Till Adams, 2003-Nov-14, > "WMS and Querymap") that said it would be possible, but using the > GetFeatureInfo always returns a plain text or a GML to me, not an > image. > > > Concerning the GML I was wondering why no feature's attributes are > included in the XML file but only coordinates. If I choose text/plain > only attributes are returned but no feature coordinates. > > > I would really like to use WMS or WFS for my application because I > think it is a nice and scalable way merging geodata from different > places of the world. But they are very restricted and never seem to > have the functionality of a PHP/Mapscript solution according to things > like querying, draw legends, projections, set expressions/filters > dynamically. But please feel free to comment this. > > > Best regards, > Sebastian Albrecht > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From dylan at IICI.NO-IP.ORG Mon Aug 8 14:11:29 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application In-Reply-To: <4BF377919225F449BB097CB76FFE9BC81887B6@ptolemy.topozone.com> Message-ID: Thanks for the tips Ed, There should be about 100Gb of imagery in geotiff format, 5 to 10 Gb of vector data stored in shapefiles, and about another 5 to 10 Gb of tabular data stored in MySQL. I am not expecting a huge number of hits per day, but right now it is hard to say... perhaps 10 to 100 requests per day? We are considering a dual processor xeon system with SCSI disks, as this closely resembles our test machine. Thanks again, Dylan On Monday 08 August 2005 10:11 am, Ed McNierney wrote: > Dylan - > > I always recommend buying cheap stuff and making sure you ask it simple > questions ! > > If you are running lots of imagery, a fast disk subsystem is a good > idea. But it's helpful to define "large quantity" more precisely, > because one person's "large" is another's "minuscule". RAM is cheap and > always a good idea, as it can be used for disk caching and swapping is a > big performance hit. > > If you can be more specific about (a) the size of your data sets, (b) > the volume of requests and image sizes supported, and (c) the formats of > your data (TIFF? PostGIS? Shapefiles?) perhaps we can be more specific > about recommendations. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed@topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On > Behalf Of Dylan Beaudette > Sent: Monday, August 08, 2005 12:34 PM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver > application > > Greetings, > > We are currently in the process of ramping up the scale of a > mapserver-based application, and thus in search of some new hardware. > > So far we have priced out some dual processor systems, with the best > deal from Dell. The machine will be running the UNIX version of > mapserver. The large quantity of imagery and high density vector files > will require a powerful machine in order to keep latency low. > > Any suggestions or stories about previous purchases (related to a > mapserver > application) would be much appreciated. > > Thanks in advance! > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group University of California at > Davis > 530.754.7341 From Richard_D_Levine at RAYTHEON.COM Mon Aug 8 14:09:06 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application In-Reply-To: <33fa7d033fe440.33fe44033fa7d0@shaw.ca> Message-ID: http://archives.postgresql.org/pgsql-performance/2005-06/msg00220.php This is the top of a series of threads in the PostgreSQL mail archives that contains a lengthy discussion on exactly this topic. Cheers, Rick UMN MapServer Users List wrote on 08/08/2005 11:36:31 AM: > If you are using PostGIS or databases at all, I recommend digging up > an article on optimising spatial data access (includes from a > hardware perspective). Paul Ramsey provided some great tips in an > article a year or so ago, somewhere in here: > http://www.geospatial-online.com/ > > Tyler > > ----- Original Message ----- > From: Dylan Beaudette > Date: Monday, August 8, 2005 9:34 am > Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a > mapserver application > > > Greetings, > > > > We are currently in the process of ramping up the scale of a > > mapserver-based > > application, and thus in search of some new hardware. > > > > So far we have priced out some dual processor systems, with the > > best deal from > > Dell. The machine will be running the UNIX version of mapserver. > > The large > > quantity of imagery and high density vector files will require a > > powerful > > machine in order to keep latency low. > > > > Any suggestions or stories about previous purchases (related to a > > mapserver > > application) would be much appreciated. > > > > Thanks in advance! > > > > -- > > Dylan Beaudette > > Soils and Biogeochemistry Graduate Group > > University of California at Davis > > 530.754.7341 > > From ryan.feagin at PEACHTREEGEOGRAPHICS.COM Mon Aug 8 15:03:21 2005 From: ryan.feagin at PEACHTREEGEOGRAPHICS.COM (Ryan Feagin) Date: Fri Feb 8 15:07:54 2008 Subject: Get line and line points Message-ID: Hi. I've just recently started using mapserver with PHP mapscript. I'm trying to find a specific line segment from a shapefile, and then find a point x distance on the line to be able create a geocoded point. Can someone give me an example in php of how get to the line segment and how to access its node points? I have started unsuccessfully playing around with the following: $shapefile = ms_newShapefileObj($streetFile, -1); $s = ms_newShapeObj(-1); $shapefile->getShape(1, $s); $line = ms_NewLineObj(); $line = $s->{line}; echo $line->numpoints; I get nothing back. Thanks for you help From dgadoury at DMSOLUTIONS.CA Mon Aug 8 15:21:24 2005 From: dgadoury at DMSOLUTIONS.CA (Dean Gadoury) Date: Fri Feb 8 15:07:54 2008 Subject: Tiger 2004 data and mapfile Message-ID: We've had a number of inquiries from MapServer users looking for Tiger data pre-configured and optimized for MapServer. For those interested we've put together a pacakage with optimized Tiger data and a mapfile ready to use in MapServer applications. If you're interested you can get information including pricing at: http://maps.dmsolutions.ca/tiger.html and try out the mapfile demo at: http://maps.dmsolutions.ca/demo/tiger/ Dean -- Dean Gadoury DM Solutions Group 30 Rosemount Ave. Suite 200 Ottawa, Ontario. K1Y 1P4 613.565.5056 ext. 24 dgadoury@dmsolutions.ca www.dmsolutions.ca From lists at WEBMAPIT.COM.BR Mon Aug 8 18:56:14 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Fri Feb 8 15:07:54 2008 Subject: MapServer for windows setup up guide Message-ID: Hi folks, I've just published a "windows how-to setup guide" at my website. In fact, I translated( and made some fixes) it from a portuguese version which I made months ago for a customer. 1) http://www.webmapit.com.br 2) click "INSTALL" menu 3) then click "Setting up a MapServer development environment in a Windows box" title suggestions and english tips are welcome. best regards. -- Eduardo Patto Kanegae http://www.webmapit.com.br From adhi_iswara at YAHOO.CO.UK Mon Aug 8 22:22:39 2005 From: adhi_iswara at YAHOO.CO.UK (Iswara Adhi) Date: Fri Feb 8 15:07:54 2008 Subject: Spatial Data Entry Form? Message-ID: Hello, I'm new user of mapserver... I have a project that use php and oracle 10g as a DBMS. I like to insert spatial data (i.e. coordinate x,y;triplet, etc) using php form...could I? and how? Thanks for help. ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 9 02:02:14 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application Message-ID: Hey Tyler, do you mean this one? http://www.geospatial-online.com/geospatialsolutions/article/articleDetail.jsp?id=118595 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Tyler Mitchell 08/08/05 06:36pm >>> If you are using PostGIS or databases at all, I recommend digging up an article on optimising spatial data access (includes from a hardware perspective). Paul Ramsey provided some great tips in an article a year or so ago, somewhere in here: http://www.geospatial-online.com/ Tyler ----- Original Message ----- From: Dylan Beaudette Date: Monday, August 8, 2005 9:34 am Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application > Greetings, > > We are currently in the process of ramping up the scale of a > mapserver-based > application, and thus in search of some new hardware. > > So far we have priced out some dual processor systems, with the > best deal from > Dell. The machine will be running the UNIX version of mapserver. > The large > quantity of imagery and high density vector files will require a > powerful > machine in order to keep latency low. > > Any suggestions or stories about previous purchases (related to a > mapserver > application) would be much appreciated. > > Thanks in advance! > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group > University of California at Davis > 530.754.7341 > From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 9 02:14:01 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:54 2008 Subject: Spatial Data Entry Form? Message-ID: Mapserver is largely a read-only application, not an edit application. If you want to insert spatial data, you could look at 2 options: 1) Geoserver, http://geoserver.sourceforge.net 2) the PHP OGR module (or maybe already the new PHP bindings to GDAL ... ), which is available from: http://dl.maptools.org/dl/php_ogr/php_ogr_documentation.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Iswara Adhi 08/09/05 04:22am >>> Hello, I'm new user of mapserver... I have a project that use php and oracle 10g as a DBMS. I like to insert spatial data (i.e. coordinate x,y;triplet, etc) using php form...could I? and how? Thanks for help. ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com From adhi_iswara at YAHOO.CO.UK Tue Aug 9 03:42:23 2005 From: adhi_iswara at YAHOO.CO.UK (Iswara Adhi) Date: Fri Feb 8 15:07:54 2008 Subject: Best fit tools? Message-ID: Thanks for reply... Here is my project description : I'll build an database system involve spatial and atribute data of parcel...I've a Win2K, AMD Athlon 1800, 512 MB RAM, 80GB HD, Oracle 10g Database (installed). what'is suitable tools and software to develop my project where my project will make an application or interface to enter, edit and view the spatial and also atribut data of parcels simultanously? Best regard...thanks. ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com From ldorileo at GMAIL.COM Mon Aug 8 23:53:07 2005 From: ldorileo at GMAIL.COM (Leandro Dorileo) Date: Fri Feb 8 15:07:54 2008 Subject: static compilation Message-ID: Hi all I would like to compile mapserver with -static cflag. Has anybody done this? does anybody have any how-to to help me? -- Dorileo From arnulf.christl at CCGIS.DE Tue Aug 9 07:55:44 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri Feb 8 15:07:54 2008 Subject: very complex maps In-Reply-To: <42F40030.1050907@earthlink.net> Message-ID: Douglass Davis wrote: > Hello All, > > I have quickly learned that putting together a map such as the one that > mapquest has, with all highways, cities, parks, bodies of water, and > appropriate symbology etc. can be very difficult. Is there a company > that sells pre-made mapfiles and the all the appropriate and timely data > to go with them? > > Thank you! > -d > > -- > http://www.douglassdavis.com Actually we'd like to share MAP-files (we put them under GNU/FDL) via web but there is no central place to put them for download. It seems that every cartographic problem requires its own MAP files and classes and definitions. For the German ALK we have put together a set of thirteen MAP files plus creating several hundred symbol fonts to achieve the cartographic output. The result renders the official cadastral base map. Done using WMS standards only and way cool but probably not of the slightest use to you. It just shows that you might have to be quite creative in overlaying different geometries with different layouts to obtain a reasonable result. We have some definitions for a road map using this concept, might be more interesting to you. This is an example WMS request using them: http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/wesseling/wesseling_stadtkarte.map&&VERSION=1.1.0&REQUEST=GetMap&LAYERS=Nutzung%2CStrassen%2CStadtgrenze%2CStrassennamen%2Cwes_dsk_patch&STYLES=&SRS=EPSG%3A31466&BBOX=2568843.75,5631525.988,2570052.75,5632734.988&WIDTH=1000&HEIGHT=1000&FORMAT=PNG&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE Where to put the corresponding MAP files? This question has been raised on and off in this list but never with any clear result (or did I miss it?). Any sugggestions anyone? Best, Arnulf. From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue Aug 9 07:58:35 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Fri Feb 8 15:07:54 2008 Subject: Not producing all layers? Message-ID: Hello List, A couple of weeks ago I wrote about a problem that I was having with Map Server not being able to produce a PNG image. I changed the format to JPEG, because PNG was not a format that Map Server was configured to produce. I am still having problems. I am able to produce the first layer entitled "oma24kqd.shp," but nothing after that pops up. The map file is actually calling another map file called "drg24.map". The DGR24.map file is actually identical to the map file you see below. Actually, the only layer I really care about is the layer with the oahe.shp file listed as the data. Would someone take a brief moment to scan the code to see if there is any obvious errors that maybe I just don't see? I would appreciate someone's assistant very much. Thanks! Ryan # # Start of map file # NAME EDOQ STATUS ON SIZE 600 600 # Extents from lower left to upper right (minx miny maxx maxy) # EXTENT -545712 26685 1428199 1537062 EXTENT -110 36 -90 46 #UNITS meters UNITS dd #SHAPEPATH "data" IMAGECOLOR 100 100 200 IMAGETYPE png #IMAGEQUALITY 96 OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" FORMATOPTION "QUALITY=95" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END # # PROJECTION # MRR Albers projection #"proj=aea" #"Lat_1=40.3861111" #"lat_2=47.272222" #"lat_0=37.0" #"lon_0=-105.685556" #"x_0=0.0" #"y_0=0.0" #"ellps=clrk66" #"datum=NAD27" #"units=m" "init=epsg:4326" END # # Start of web interface definition (including WMS enabling metadata) # WEB TEMPLATE demo.html # MINSCALE 1000 # MAXSCALE 40000 IMAGEPATH "/u01/app/oracle/product/9.2.0/Apache/Apache/htdocs/tmp/" IMAGEURL "/tmp/" METADATA WMS_TITLE "NWD-PDM DRG" WMS_ABSTRACT "Water Management DRG of Omaha in TIF Format" WMS_ACCESSCONSTRAINTS "For US Army Corps of Engineers Use Only." WMS_ONLINERESOURCE "http://[domain]/cgi-bin/mapserv?map=../htdocs/mapserver/drg/drg24.map&" WMS_SRS "EPSG:4326 AUTO:42003 " END END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END ### DRG 24,000 ### LAYER # DRG data NAME drg24 TYPE raster TILEINDEX "oma24kqd.shp" MAXSCALE 40000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DRG24000" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME drg24ki TYPE line DATA "oma24kqd.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "indexdrg24k" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END LAYER # DOQQ data NAME doqq24 TYPE raster TILEINDEX "doqq.shp" MAXSCALE 60000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DOQQ" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME doqq24ki TYPE line DATA "doqq.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:80000" END METADATA WMS_TITLE "DOQQINDEX" WMS_ABSTRACT "DRG: MRR Albers" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END ############################### LAYER # DOQQ data NAME Oahe_Color TYPE raster TILEINDEX "oahe.shp" MAXSCALE 60000 STATUS DEFAULT OFFSITE 0 0 0 PROJECTION "init=epsg:26914" END METADATA WMS_TITLE "Oahe CLR" WMS_ABSTRACT "Oahe - UTM" WMS_OPAQUE "1" END END ### INDEX DRG 250 #### LAYER NAME Oahe_Col_IDX TYPE line DATA "oahe.shp" # MAXSCALE 40000 STATUS ON PROJECTION "init=epsg:26914" END METADATA WMS_TITLE "Oahe Index" WMS_ABSTRACT "Oahe - UTM" WMS_OPAQUE "1" END CLASS SYMBOL 0 COLOR 185 211 238 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE tiny POSITION cc WRAP "/" END END END ################################ end # map file -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050809/5eb0bbb0/attachment.html From arnulf.christl at CCGIS.DE Tue Aug 9 08:09:18 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application In-Reply-To: <200508081111.29367.dylan@iici.no-ip.org> Message-ID: Dylan Beaudette wrote: > Thanks for the tips Ed, > > There should be about 100Gb of imagery in geotiff format, 5 to 10 Gb of vector > data stored in shapefiles, and about another 5 to 10 Gb of tabular data > stored in MySQL. The vectorial data will not cause any problems though i would suggest to merge the shapes and MySQl alpha data into one PostgreSQL/PostGIS feature table. We are truly happy with PG doing all the work and rendering sections out of 10 million and more polygons within milliseconds. There are quite different opinions though regarding performance of shape files versus databases. > I am not expecting a huge number of hits per day, but right now it is hard to > say... perhaps 10 to 100 requests per day? Is that individual requests or number of users? Larger installations are known to render several hundred thousand maps a day so that your suggested numbers should not even get you start to think. > We are considering a dual processor xeon system with SCSI disks, as this > closely resembles our test machine. As suggested, keep it cheap, step up later. Dual CPU is cool, loads of RAM is cool when using PG, fast disks are good for large raster data (see Ed, he is the expert on rasters). If you need more database vector performance put it on a separate machine. Best, Arnulf. > Thanks again, > > Dylan > > On Monday 08 August 2005 10:11 am, Ed McNierney wrote: > >>Dylan - >> >>I always recommend buying cheap stuff and making sure you ask it simple >>questions ! >> >>If you are running lots of imagery, a fast disk subsystem is a good >>idea. But it's helpful to define "large quantity" more precisely, >>because one person's "large" is another's "minuscule". RAM is cheap and >>always a good idea, as it can be used for disk caching and swapping is a >>big performance hit. >> >>If you can be more specific about (a) the size of your data sets, (b) >>the volume of requests and image sizes supported, and (c) the formats of >>your data (TIFF? PostGIS? Shapefiles?) perhaps we can be more specific >>about recommendations. >> >> - Ed >> >>Ed McNierney >>President and Chief Mapmaker >>TopoZone.com / Maps a la carte, Inc. >>73 Princeton Street, Suite 305 >>North Chelmsford, MA 01863 >>ed@topozone.com >>(978) 251-4242 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On >>Behalf Of Dylan Beaudette >>Sent: Monday, August 08, 2005 12:34 PM >>To: MAPSERVER-USERS@LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver >>application >> >>Greetings, >> >>We are currently in the process of ramping up the scale of a >>mapserver-based application, and thus in search of some new hardware. >> >>So far we have priced out some dual processor systems, with the best >>deal from Dell. The machine will be running the UNIX version of >>mapserver. The large quantity of imagery and high density vector files >>will require a powerful machine in order to keep latency low. >> >>Any suggestions or stories about previous purchases (related to a >>mapserver >>application) would be much appreciated. >> >>Thanks in advance! >> >>-- >>Dylan Beaudette >>Soils and Biogeochemistry Graduate Group University of California at >>Davis >>530.754.7341 From gsw at GLOBEXPLORER.COM Tue Aug 9 08:27:14 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri Feb 8 15:07:54 2008 Subject: very complex maps Message-ID: Perhaps a wiki could be used for such things as sample maps and associated bits of html, javascript, whatever ? Perhaps as part of a cookbook of tricks, techniques and methods ... My $0.02 worth ... Greg Williamson ps -- nice example there, Arnulf ... must have taken some work to set it all up. -----Original Message----- From: UMN MapServer Users List on behalf of Arnulf Christl Sent: Tue 8/9/2005 4:55 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] very complex maps Douglass Davis wrote: > Hello All, > > I have quickly learned that putting together a map such as the one that > mapquest has, with all highways, cities, parks, bodies of water, and > appropriate symbology etc. can be very difficult. Is there a company > that sells pre-made mapfiles and the all the appropriate and timely data > to go with them? > > Thank you! > -d > > -- > http://www.douglassdavis.com Actually we'd like to share MAP-files (we put them under GNU/FDL) via web but there is no central place to put them for download. It seems that every cartographic problem requires its own MAP files and classes and definitions. For the German ALK we have put together a set of thirteen MAP files plus creating several hundred symbol fonts to achieve the cartographic output. The result renders the official cadastral base map. Done using WMS standards only and way cool but probably not of the slightest use to you. It just shows that you might have to be quite creative in overlaying different geometries with different layouts to obtain a reasonable result. We have some definitions for a road map using this concept, might be more interesting to you. This is an example WMS request using them: http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/wesseling/wesseling_stadtkarte.map&&VERSION=1.1.0&REQUEST=GetMap&LAYERS=Nutzung%2CStrassen%2CStadtgrenze%2CStrassennamen%2Cwes_dsk_patch&STYLES=&SRS=EPSG%3A31466&BBOX=2568843.75,5631525.988,2570052.75,5632734.988&WIDTH=1000&HEIGHT=1000&FORMAT=PNG&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE Where to put the corresponding MAP files? This question has been raised on and off in this list but never with any clear result (or did I miss it?). Any sugggestions anyone? Best, Arnulf. !DSPAM:42f898ee252911637716777! From Frank.Broniewski at MNHA.ETAT.LU Tue Aug 9 08:40:53 2005 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Fri Feb 8 15:07:54 2008 Subject: AW: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application In-Reply-To: <42F89CEE.1020506@ccgis.de> Message-ID: If I may interfere, I have also an question about putting vector data into postgis. If I may qoute you: > ...though i would suggest to > merge the shapes and MySQl alpha data into one PostgreSQL/PostGIS > feature table. ... Are you putting all your e.g. point shapes into one table and seperate them by an attribute or do you create one table for one shapefile? Is there an advantage of having all shapefiles of one geometry in one table instead of having one table per shapefile? I'm curious because here at the museum we want to put our data also into a postgres/postgis db and are unsure about the most clever way to accomplish this. Your Idea seemed somewhat revolutionary to me, so I wondered if you could describe a little more in detail your way of storing shapefiles in the database. Greetings Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] Im Auftrag von Arnulf Christl Gesendet: Dienstag, 9. August 2005 13:09 An: MAPSERVER-USERS@LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application Dylan Beaudette wrote: > Thanks for the tips Ed, > > There should be about 100Gb of imagery in geotiff format, 5 to 10 Gb > of vector data stored in shapefiles, and about another 5 to 10 Gb of > tabular data stored in MySQL. The vectorial data will not cause any problems though i would suggest to merge the shapes and MySQl alpha data into one PostgreSQL/PostGIS feature table. We are truly happy with PG doing all the work and rendering sections out of 10 million and more polygons within milliseconds. There are quite different opinions though regarding performance of shape files versus databases. > I am not expecting a huge number of hits per day, but right now it is > hard to say... perhaps 10 to 100 requests per day? Is that individual requests or number of users? Larger installations are known to render several hundred thousand maps a day so that your suggested numbers should not even get you start to think. > We are considering a dual processor xeon system with SCSI disks, as > this closely resembles our test machine. As suggested, keep it cheap, step up later. Dual CPU is cool, loads of RAM is cool when using PG, fast disks are good for large raster data (see Ed, he is the expert on rasters). If you need more database vector performance put it on a separate machine. Best, Arnulf. > Thanks again, > > Dylan > > On Monday 08 August 2005 10:11 am, Ed McNierney wrote: > >>Dylan - >> >>I always recommend buying cheap stuff and making sure you ask it >>simple questions ! >> >>If you are running lots of imagery, a fast disk subsystem is a good >>idea. But it's helpful to define "large quantity" more precisely, >>because one person's "large" is another's "minuscule". RAM is cheap >>and always a good idea, as it can be used for disk caching and >>swapping is a big performance hit. >> >>If you can be more specific about (a) the size of your data sets, (b) >>the volume of requests and image sizes supported, and (c) the formats >>of your data (TIFF? PostGIS? Shapefiles?) perhaps we can be more >>specific about recommendations. >> >> - Ed >> >>Ed McNierney >>President and Chief Mapmaker >>TopoZone.com / Maps a la carte, Inc. >>73 Princeton Street, Suite 305 >>North Chelmsford, MA 01863 >>ed@topozone.com >>(978) 251-4242 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] >>On Behalf Of Dylan Beaudette >>Sent: Monday, August 08, 2005 12:34 PM >>To: MAPSERVER-USERS@LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a >>mapserver application >> >>Greetings, >> >>We are currently in the process of ramping up the scale of a >>mapserver-based application, and thus in search of some new hardware. >> >>So far we have priced out some dual processor systems, with the best >>deal from Dell. The machine will be running the UNIX version of >>mapserver. The large quantity of imagery and high density vector files >>will require a powerful machine in order to keep latency low. >> >>Any suggestions or stories about previous purchases (related to a >>mapserver >>application) would be much appreciated. >> >>Thanks in advance! >> >>-- >>Dylan Beaudette >>Soils and Biogeochemistry Graduate Group University of California at >>Davis 530.754.7341 From gsw at GLOBEXPLORER.COM Tue Aug 9 08:55:59 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri Feb 8 15:07:54 2008 Subject: AW: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application Message-ID: Frank, Not that you asked me specifically, but ... FWIW, our approach is to store vector data in different tables, although each table may have been created from many shape files (streets being created out some 3200 UWS counties, etc.), they tend to be all of the same sort (point, line or multipolygon). Some, e.g. states in the US, are small in number of rows, while others (US streets, US land parcel data, etc.) are fairly large with tens of millions of rows. The postGIS queries using a bounding box are reasonably efficient, and areas that are commonly seen are cached in RAM which helps speed things up considerably. postGres tools help us decide what indexes are useful and do some tuning. We do have a tracking system in place to be able to say which shapefile / other source was the origin of the data, which helps for maintenance and reproducing data sets. We aso have some meta-data tables that let us quickly determine which data is available is which areas. HTH, Greg Williamson DBA GlobeXplorer LLC "When the only tool you have is a hammer, all your problems look like nails!" -----Original Message----- From: UMN MapServer Users List on behalf of Frank Broniewski Sent: Tue 8/9/2005 5:40 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] AW: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application If I may interfere, I have also an question about putting vector data into postgis. If I may qoute you: > ...though i would suggest to > merge the shapes and MySQl alpha data into one PostgreSQL/PostGIS > feature table. ... Are you putting all your e.g. point shapes into one table and seperate them by an attribute or do you create one table for one shapefile? Is there an advantage of having all shapefiles of one geometry in one table instead of having one table per shapefile? I'm curious because here at the museum we want to put our data also into a postgres/postgis db and are unsure about the most clever way to accomplish this. Your Idea seemed somewhat revolutionary to me, so I wondered if you could describe a little more in detail your way of storing shapefiles in the database. Greetings Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] Im Auftrag von Arnulf Christl Gesendet: Dienstag, 9. August 2005 13:09 An: MAPSERVER-USERS@LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application Dylan Beaudette wrote: > Thanks for the tips Ed, > > There should be about 100Gb of imagery in geotiff format, 5 to 10 Gb > of vector data stored in shapefiles, and about another 5 to 10 Gb of > tabular data stored in MySQL. The vectorial data will not cause any problems though i would suggest to merge the shapes and MySQl alpha data into one PostgreSQL/PostGIS feature table. We are truly happy with PG doing all the work and rendering sections out of 10 million and more polygons within milliseconds. There are quite different opinions though regarding performance of shape files versus databases. > I am not expecting a huge number of hits per day, but right now it is > hard to say... perhaps 10 to 100 requests per day? Is that individual requests or number of users? Larger installations are known to render several hundred thousand maps a day so that your suggested numbers should not even get you start to think. > We are considering a dual processor xeon system with SCSI disks, as > this closely resembles our test machine. As suggested, keep it cheap, step up later. Dual CPU is cool, loads of RAM is cool when using PG, fast disks are good for large raster data (see Ed, he is the expert on rasters). If you need more database vector performance put it on a separate machine. Best, Arnulf. > Thanks again, > > Dylan > > On Monday 08 August 2005 10:11 am, Ed McNierney wrote: > >>Dylan - >> >>I always recommend buying cheap stuff and making sure you ask it >>simple questions ! >> >>If you are running lots of imagery, a fast disk subsystem is a good >>idea. But it's helpful to define "large quantity" more precisely, >>because one person's "large" is another's "minuscule". RAM is cheap >>and always a good idea, as it can be used for disk caching and >>swapping is a big performance hit. >> >>If you can be more specific about (a) the size of your data sets, (b) >>the volume of requests and image sizes supported, and (c) the formats >>of your data (TIFF? PostGIS? Shapefiles?) perhaps we can be more >>specific about recommendations. >> >> - Ed >> >>Ed McNierney >>President and Chief Mapmaker >>TopoZone.com / Maps a la carte, Inc. >>73 Princeton Street, Suite 305 >>North Chelmsford, MA 01863 >>ed@topozone.com >>(978) 251-4242 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] >>On Behalf Of Dylan Beaudette >>Sent: Monday, August 08, 2005 12:34 PM >>To: MAPSERVER-USERS@LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a >>mapserver application >> >>Greetings, >> >>We are currently in the process of ramping up the scale of a >>mapserver-based application, and thus in search of some new hardware. >> >>So far we have priced out some dual processor systems, with the best >>deal from Dell. The machine will be running the UNIX version of >>mapserver. The large quantity of imagery and high density vector files >>will require a powerful machine in order to keep latency low. >> >>Any suggestions or stories about previous purchases (related to a >>mapserver >>application) would be much appreciated. >> >>Thanks in advance! >> >>-- >>Dylan Beaudette >>Soils and Biogeochemistry Graduate Group University of California at >>Davis 530.754.7341 !DSPAM:42f8a47d263891639413654! From kmulka at GLC.ORG Tue Aug 9 09:01:04 2005 From: kmulka at GLC.ORG (Kyle Mulka) Date: Fri Feb 8 15:07:54 2008 Subject: Mapscript and Google maps Message-ID: I don't know anything about mapscript, but I do know PHP and Google Maps pretty well. Here's a few of my example maps which use WMS to display maps in the Google Maps interface: http://maps.kylemulka.com/umbuildings-onsat.php http://maps.kylemulka.com/satcompare.php I also have a tutorial available, but it doesn't go in depth on how to integrate the WMS. I'm hoping to get another tutorial up soon which will do this for you. http://blog.kylemulka.com/?p=287 -Kyle Mulka http://maps.kylemulka.com -----Original Message----- From: Hoeven, Maarten van der [mailto:Maarten.van.der.Hoeven@KNMI.NL] Sent: Monday, August 08, 2005 4:13 AM Subject: Mapscript and Google maps Hi list, Can someone give me a working example how to hook google maps into mapscript? I have the feeling it has something to do with WMS, and if so, that part is completely new to me. I am willing to read the * manual, but with an working example, that is going to be a lot easier. Thanks, Maarten From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue Aug 9 09:31:57 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Fri Feb 8 15:07:54 2008 Subject: Not producing all layers? Message-ID: Sabastian, My bad... I did in fact change PNG to JPEG. I accidentally omitted this change when I copied the text into the e-mail. Thanks though! Ryan -----Original Message----- From: Sebastian Albrecht [mailto:albrecht@fielax.de] Sent: Tuesday, August 09, 2005 8:24 AM To: Owens, Ryan J NWD02 CONTRACTOR Subject: Re: [UMN_MAPSERVER-USERS] Not producing all layers? Hi Ryan, > IMAGETYPE png ^^^ I think this should be jpeg? > #IMAGEQUALITY 96 > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > FORMATOPTION "QUALITY=95" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END From nmt at CS.STIR.AC.UK Tue Aug 9 10:01:45 2005 From: nmt at CS.STIR.AC.UK (Nhamoinesu Mtetwa) Date: Fri Feb 8 15:07:54 2008 Subject: JPEG Aerial photos tiling Message-ID: Hello, I have 64 .jpg aerial photos which I want to form the base layer for my map. Could someone please tell me the syntax for the mapfile layering and the tiling. The images come in two files: .jgw and .jpg The .jgw looks as follows: 0.250000 0.000000 0.000000 -0.250000 175000.000000 47000.000000 Nhamo. -- The University of Stirling is a university established in Scotland by charter at Stirling, FK9 4LA. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not disclose, copy or deliver this message to anyone and any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. From johan.e.hallgren at WMDATA.SE Tue Aug 9 10:07:44 2005 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Fri Feb 8 15:07:54 2008 Subject: Adding text-features on a dynamic created inline layer Message-ID: Hello I tries to create at inline layer dynamicly with mapscript. Adding a label- class and then add inline textfeatures on that layer. The code for creating the layer is below. *************************************** oLayerObj = new layerObj(oMapObj); oLayerObj.name = strName; oLayerObj.type = oMS_LAYER_TYPE; oLayerObj.connectiontype = MS_CONNECTION_TYPE.MS_INLINE; oLayerObj.status = 1; oClassObj = new classObj(oLayerObj); labelObj oLabelObj = new labelObj(); oLabelObj.type = MS_FONT_TYPE.MS_TRUETYPE; oLabelObj.font = "verdanab"; oLabelObj.color = oColorObj; oLabelObj.size = iSize; oLabelObj.outlinecolor = getColor("255,255,255"); oLabelObj.position = (int)MS_LABEL_POSITIONS.MS_UC; oLabelObj.antialias = mapscript.MS_TRUE; oLabelObj.encoding = "CP437"; oClassObj.label = oLabelObj; iClassIndex = oLayerObj.insertClass(oClassObj, -1); **************************************** Adding features lookes like this **************************************** lineObj oLineObj = new lineObj(); oLineObj.add(getPointObj(textNode.Attributes["coords"].Value, isDatabaseCoord)); shapeObj oShapeObj = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POINT); oShapeObj.add(oLineObj); oShapeObj.classindex = iClassIndex; oShapeObj.text = textNode.Attributes["label"].Value; oLayerObj.addFeature(oShapeObj); oLayerObj.draw(oMapObj, i_obj); **************************************** When I draws the text-features they dont show up on the map. If I'm instead using a predefiend layer in the mapfile it works fine. **************************************** LAYER NAME TTTEXT STATUS ON TYPE ANNOTATION FEATURE END CLASS LABEL TYPE TRUETYPE FONT verdanab SIZE 18 ANTIALIAS TRUE OUTLINECOLOR 255 255 255 COLOR 0 0 0 POSITION UC END END END **************************************** Does anyone have a clue what can be wrong? Regards Johan From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 9 10:12:49 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:54 2008 Subject: JPEG Aerial photos tiling Message-ID: Read the Mapserver Raster HOWTO: http://ms.gis.umn.edu/docs/howto/raster_data In summary, make a tileindex with gdaltindex. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Nhamoinesu Mtetwa 08/09/05 04:01pm >>> Hello, I have 64 .jpg aerial photos which I want to form the base layer for my map. Could someone please tell me the syntax for the mapfile layering and the tiling. The images come in two files: .jgw and .jpg The .jgw looks as follows: 0.250000 0.000000 0.000000 -0.250000 175000.000000 47000.000000 Nhamo. -- The University of Stirling is a university established in Scotland by charter at Stirling, FK9 4LA. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not disclose, copy or deliver this message to anyone and any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. From matthew at PROPERTYRESEARCHPARTNERS.COM Tue Aug 9 10:42:00 2005 From: matthew at PROPERTYRESEARCHPARTNERS.COM (Matthew Haines) Date: Fri Feb 8 15:07:54 2008 Subject: Using attribute info stored in MySQL tables Message-ID: In my Mapserver application I am generating my maps from shapefiles. Since my application is used for real estate, usually the shape files hold land parcel polygons, and usually the parcels will be uniquely identified by a parcel_id attribute. There are usually some other attributes such as zoning class that I can use to color the map. But sometimes I'd like to color the map based on attributes that are stored in a MySQL table that has the parcel_id has the primary key. However I don't have the polygons in the MySQL table -- they remain in the shape file. Is this possible? What would I put in my .map file to reference the MySQL tables? Can someone sketch out an example of the crucial bits of a hypothetical .map file for this? I looked in this Twiki page http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL for examples, but it seems to cover only the case where the polygons are stored in the MySQL table. Thanks in advance, Matthew From matthew at PROPERTYRESEARCHPARTNERS.COM Tue Aug 9 10:45:44 2005 From: matthew at PROPERTYRESEARCHPARTNERS.COM (Matthew Haines) Date: Fri Feb 8 15:07:54 2008 Subject: Found it! Message-ID: Silly me -- didn't read the Twiki page carefully enough. Here is the Twiki page that answers exactly the question I asked: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?JoinDatasources Sorry for the wasted bandwidth. Matthew From bjoern.platzen at MOMATEC.DE Tue Aug 9 11:05:52 2005 From: bjoern.platzen at MOMATEC.DE (Bjoern Platzen) Date: Fri Feb 8 15:07:54 2008 Subject: Problems with Postgis Query Message-ID: Hello List! from my postgis database I need two tables to visualize a layer: CREATE TABLE arealocation ( geometryid int4 NOT NULL DEFAULT nextval('"arealocation_geometryid_seq"'::text), geometrie geometry, CONSTRAINT pk_arealocation PRIMARY KEY (geometryid), CONSTRAINT enforce_geotype_geometry CHECK (geometrytype(geometrie) = 'POLYGON'::text OR geometrie IS NULL), CONSTRAINT enforce_srid_geometry CHECK (srid(geometrie) = -1) ) WITH OIDS; CREATE TABLE all_qu ( quid int4 NOT NULL DEFAULT nextval('"all_qu_quid_seq"'::text), qunr int4, qust int4, quname varchar(50) DEFAULT ''::character varying, map_ext varchar(100) DEFAULT ''::character varying, mapfile varchar(20) DEFAULT ''::character varying, geometrytype varchar(25) DEFAULT 'arealocation'::character varying, geometrie int4, color varchar(7) NOT NULL DEFAULT ''::character varying, recdat int8 DEFAULT 0, cssurl varchar(100) DEFAULT ''::character varying, "session" varchar(50) DEFAULT ''::character varying ) WITH OIDS; For each all_qu.quid there is a polygon in arealocations. The tables are linked by the fields all_qu.geometrie and arealocation.geometryid. The geometry_columns-table contains a row for the geometry in arealocation: 22422;"''";"public";"arealocation";"geometrie";"2";"-1";"POLYGON" In my mapfile I've got the following statement: DATA "geom FROM (SELECT a.quid as quid, a.quname AS name, a.color, b.geometrie AS geom FROM arealocation b LEFT JOIN all_qu a ON b.geometryid = a.geometrie) as foo using unique arealocation.geometryid using srid=-1" The statement itself returns exately four rows, like it should. Somehow, this does not work. I always get the following error-message (using shp2img): msDrawMap(): Image handling error. Failed to draw layer named 'plugin_Parkinfo_quartiere'.
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT Id::text,name::text,asbinary(force_collection(force_2d(geom)),'NDR'),arealoc ation.geometryid::text from (SELECT a.quid as quid, a.quname AS name, a.color, b.geometrie AS geom FROM arealocation b LEFT JOIN all_qu a ON b.geometryid = a.geometrie) as foo WHERE geom && setSRID('BOX3D(2516850 5658600,2542250 5684000)'::BOX3D, -1 )'

Postgresql reports the error as 'ERROR: column "id" does not exist I wonder where this column "id" comes from?? I hope, that someone can help... Thanks in advance, Bjoern. From mgoncalves at DSI.UMINHO.PT Tue Aug 9 11:33:20 2005 From: mgoncalves at DSI.UMINHO.PT (=?ISO-8859-1?Q?Miguel_Gon=E7alves?=) Date: Fri Feb 8 15:07:54 2008 Subject: nearest geographical feature to a point? Message-ID: Hi, I am building an application using the MapServer. I have a map with several layers of points, lines and polygons. When I perform a request to my application, I give it a point in the form (latitude,longitude) and I want to obtain the maximum geographical information of the layers for thr the given point. I am using the WFS interface and the GetFeature request. My problem is very simple. Supose that I have a point layer cities in my map and I have the city X in the point (a,b). If the point that I give in the GetFeature request is (a,b) I will obtain the geographical information for the city X. The real problem arises if I pass in the GetFeature request a point that does not coincides with any location in the map. Supose that I pass the point (a,b+0.0001). This point is really near the city X but I will not obtain any information in the WFS request. It woul be wounderfull if I could have a kind of WFS request that could give me the nearest city in a certain range of the point. I know that I can use the bounding box in the WFS GetCapabilities request to give me the cities near the point but, bounding box is a rectangle. I would prefer to have a proximity range. But even better than having the geographical features inside a given range I would like to have the nearest feature to a given point. Does anybody knows how to get the nearest feature to a certain given point using the MapServer? Is it possible in WFS? Thanks and best regards. Miguel From lluisgm at GMAIL.COM Tue Aug 9 11:46:49 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Fri Feb 8 15:07:54 2008 Subject: label readability Message-ID: Hi list, I'm trying to improve the readability of my labels. Using the color black and outlinecolor white, the result is correct but if it should be possible to increase the outline size from 1 to 2 or 3 it will be great. Anyone knows how to play with the mapserver variables to get it? Thanks in advance -- Llu?s Garcia i Mestres, lluisgm@gmail.com lluisgm@hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050809/ed57e432/attachment.html From dylan at IICI.NO-IP.ORG Tue Aug 9 11:55:10 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application In-Reply-To: Message-ID: On Monday 08 August 2005 11:02 pm, Bart van den Eijnden wrote: > Hey Tyler, > > do you mean this one? > > http://www.geospatial-online.com/geospatialsolutions/article/articleDetail. >jsp?id=118595 > > Best regards, > Bart > thanks! > > >>> Tyler Mitchell 08/08/05 06:36pm >>> > > If you are using PostGIS or databases at all, I recommend digging up an > article on optimising spatial data access (includes from a hardware > perspective). Paul Ramsey provided some great tips in an article a year or > so ago, somewhere in here: http://www.geospatial-online.com/ > > Tyler > > ----- Original Message ----- > From: Dylan Beaudette > Date: Monday, August 8, 2005 9:34 am > Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver > application > > > Greetings, > > > > We are currently in the process of ramping up the scale of a > > mapserver-based > > application, and thus in search of some new hardware. > > > > So far we have priced out some dual processor systems, with the > > best deal from > > Dell. The machine will be running the UNIX version of mapserver. > > The large > > quantity of imagery and high density vector files will require a > > powerful > > machine in order to keep latency low. > > > > Any suggestions or stories about previous purchases (related to a > > mapserver > > application) would be much appreciated. > > > > Thanks in advance! > > > > -- > > Dylan Beaudette > > Soils and Biogeochemistry Graduate Group > > University of California at Davis > > 530.754.7341 -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From David.Fawcett at STATE.MN.US Tue Aug 9 11:51:32 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:54 2008 Subject: label readability Message-ID: Take a look at: http://ms.gis.umn.edu/docs/reference/mapfile/label You want SHADOWSIZE David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Llu?s Garcia i Mestres Sent: Tuesday, August 09, 2005 10:47 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] label readability Hi list, I'm trying to improve the readability of my labels. Using the color black and outlinecolor white, the result is correct but if it should be possible to increase the outline size from 1 to 2 or 3 it will be great. Anyone knows how to play with the mapserver variables to get it? Thanks in advance -- Llu?s Garcia i Mestres, lluisgm@gmail.com lluisgm@hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050809/1b49d099/attachment.html From bw at HIS.COM Tue Aug 9 11:21:06 2005 From: bw at HIS.COM (Bill Whitacre) Date: Fri Feb 8 15:07:54 2008 Subject: Newbie Mac OS X MapServer 4.6 question Message-ID: I've just installed the MapServer packages from Kyng Chaos and have a couple of questions: 1. When I try the CGI I get the "MapServer Itasca Application" page OK but when hit the Initialize button with Basic Application selected I get the following error: > getString(): Symbol definition error. Parsing error near (none): > (line 73) My form variables look like this in the /workshop/index.html file: > >
onSubmit="submit_form()"> > > > > > > > > > > > What have I done wrong? 2. When I try the testphp.php script - that looks like this: > > dl("php_mapscript.so"); > > phpinfo(); > > ?> I get the following error: > Warning: dl(): Unable to load dynamic library '/usr/lib/php/ > extensions/no-debug-non-zts-20020429/php_mapscript.so' - (null) in / > Library/WebServer/Documents/testphp.php on line 2 along with the normal PHP info stuff. Again, what have I done wrong? Thanks very much for your help ... and patience. bw --- Bill Whitacre bw@his.com From lluisgm at GMAIL.COM Tue Aug 9 12:24:59 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Fri Feb 8 15:07:54 2008 Subject: label readability In-Reply-To: Message-ID: Hi David, I've tried many times with the shadowsize without success. I want to get a something like the shadow but around all the letter and not just an offset part. It could be something like two labels, one with size 2 and the other with 4, then I will get what I'm looking for ;) 2005/8/9, Fawcett, David : > > Take a look at: http://ms.gis.umn.edu/docs/reference/mapfile/label > You want SHADOWSIZE > David. > > David Fawcett > Minnesota Office of Environmental Assistance > david.fawcett@moea.state.mn.us > 651.215.0200 > > -----Original Message----- > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]*On > Behalf Of *Llu?s Garcia i Mestres > *Sent:* Tuesday, August 09, 2005 10:47 AM > *To:* MAPSERVER-USERS@LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] label readability > > > Hi list, > I'm trying to improve the readability of my labels. Using the color black > and outlinecolor white, the result is correct but if it should be possible > to increase the outline size from 1 to 2 or 3 it will be great. Anyone knows > how to play with the mapserver variables to get it? > Thanks in advance > > -- > Llu?s Garcia i Mestres, > > lluisgm@gmail.com > lluisgm@hotmail.com > > -- Llu?s Garcia i Mestres, lluisgm@gmail.com lluisgm@hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050809/be518ac0/attachment.html From arnulf.christl at CCGIS.DE Tue Aug 9 13:13:49 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri Feb 8 15:07:54 2008 Subject: AW: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application In-Reply-To: <000001c59cdf$94b8db70$a6696e94@EPCCARTOGIS> Message-ID: Frank Broniewski wrote: > If I may interfere, I have also an question about putting vector data > into postgis. > If I may qoute you: > > >>...though i would suggest to >>merge the shapes and MySQl alpha data into one PostgreSQL/PostGIS >>feature table. ... > > > Are you putting all your e.g. point shapes into one table and seperate > them by an attribute or do you create one table for one shapefile? Is > there an advantage of having all shapefiles of one geometry in one table > instead of having one table per shapefile? Umm, well no special fondness for one or the other. It depends on what you plan to do with the data. Being lazy by nature i would probably choose one table, gives me less to configure. But in the end it really is a question of what you need to do to the data. Is the shape file your primary source and every time something changes you have to re-import it (yuck)? Or do you also plan tp maintain the data inside PG? > I'm curious because here at the museum we want to put our data also > into a postgres/postgis db and are unsure about the most clever way to > accomplish this. > > Your Idea seemed somewhat revolutionary to me, so I wondered if you > could describe a little more in detail your way of storing shapefiles in > the database. Oh nothing revolutionary, pure laziness and an affection for PG/PostGIS. You just can do all sorts of cool spatial operations with your data simply using SQL once it has been stuffed into PostGIS. Best, Arnulf. > Greetings > > Frank Broniewski > Mus?e National d'Histoire et d'Art > Section Pr?histoire / Projet EPC > T?l: +352 260 281-21 > 241, Rue de Luxembourg > L-8077 Bertrange > > > -----Urspr?ngliche Nachricht----- > Von: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] Im > Auftrag von Arnulf Christl > Gesendet: Dienstag, 9. August 2005 13:09 > An: MAPSERVER-USERS@LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a > mapserver application > > > Dylan Beaudette wrote: > >>Thanks for the tips Ed, >> >>There should be about 100Gb of imagery in geotiff format, 5 to 10 Gb >>of vector data stored in shapefiles, and about another 5 to 10 Gb of >>tabular data stored in MySQL. > > > The vectorial data will not cause any problems though i would suggest to > > merge the shapes and MySQl alpha data into one PostgreSQL/PostGIS > feature table. We are truly happy with PG doing all the work and > rendering sections out of 10 million and more polygons within > milliseconds. There are quite different opinions though regarding > performance of shape > files versus databases. > > >>I am not expecting a huge number of hits per day, but right now it is >>hard to say... perhaps 10 to 100 requests per day? > > > Is that individual requests or number of users? Larger installations are > > known to render several hundred thousand maps a day so that your > suggested numbers should not even get you start to think. > > >>We are considering a dual processor xeon system with SCSI disks, as >>this closely resembles our test machine. > > > As suggested, keep it cheap, step up later. Dual CPU is cool, loads of > RAM is cool when using PG, fast disks are good for large raster data > (see Ed, he is the expert on rasters). If you need more database vector > performance put it on a separate machine. > > Best, Arnulf. > > >>Thanks again, >> >>Dylan >> >>On Monday 08 August 2005 10:11 am, Ed McNierney wrote: >> >> >>>Dylan - >>> >>>I always recommend buying cheap stuff and making sure you ask it >>>simple questions ! >>> >>>If you are running lots of imagery, a fast disk subsystem is a good >>>idea. But it's helpful to define "large quantity" more precisely, >>>because one person's "large" is another's "minuscule". RAM is cheap >>>and always a good idea, as it can be used for disk caching and >>>swapping is a big performance hit. >>> >>>If you can be more specific about (a) the size of your data sets, (b) >>>the volume of requests and image sizes supported, and (c) the formats >>>of your data (TIFF? PostGIS? Shapefiles?) perhaps we can be more >>>specific about recommendations. >>> >>> - Ed >>> >>>Ed McNierney >>>President and Chief Mapmaker >>>TopoZone.com / Maps a la carte, Inc. >>>73 Princeton Street, Suite 305 >>>North Chelmsford, MA 01863 >>>ed@topozone.com >>>(978) 251-4242 >>> >>>-----Original Message----- >>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] >>>On Behalf Of Dylan Beaudette >>>Sent: Monday, August 08, 2005 12:34 PM >>>To: MAPSERVER-USERS@LISTS.UMN.EDU >>>Subject: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a >>>mapserver application >>> >>>Greetings, >>> >>>We are currently in the process of ramping up the scale of a >>>mapserver-based application, and thus in search of some new hardware. >>> >>>So far we have priced out some dual processor systems, with the best >>>deal from Dell. The machine will be running the UNIX version of >>>mapserver. The large quantity of imagery and high density vector files > > >>>will require a powerful machine in order to keep latency low. >>> >>>Any suggestions or stories about previous purchases (related to a >>>mapserver >>>application) would be much appreciated. >>> >>>Thanks in advance! >>> >>>-- >>>Dylan Beaudette >>>Soils and Biogeochemistry Graduate Group University of California at >>>Davis 530.754.7341 From camrex1 at AMERITECH.NET Tue Aug 9 13:13:07 2005 From: camrex1 at AMERITECH.NET (Cameron Rex) Date: Fri Feb 8 15:07:54 2008 Subject: Mapscript and Google maps Message-ID: I have been playing around with Kyle Mulka's implementation of WMS in the Google API and have put together a simple example of it. NOTE: All credit to how the WMS fits into the Google API goes to Kyle Mulka and any other previous people who have contributed. After seeing Kyle's examples I started playing with it...it just so happened that my example also uses a University campus. I am making my map, php and the js files available in a zip. Just make sure that you get your own Google API Key. I tried to make the map file as simple as possible. Example: http://geo.neiu.edu/~camrex/google/neiu_google.php ZIP: http://geo.neiu.edu/~camrex/google/google_wms.zip If you have problems let me know. Cameron Rex From Trevor.Penney at NOVAGEOMATICS.COM Mon Aug 8 12:46:01 2005 From: Trevor.Penney at NOVAGEOMATICS.COM (Trevor Penney) Date: Fri Feb 8 15:07:54 2008 Subject: Mapserver Setup Problems, Any Suggestions? Message-ID: Hi All, I am having some problems with setting up mapserver, any suggestions would be greatly appreciated. Basically I want to install mapserver. I have root access and Fedora Core 2. However, I can't use gcc to compile the mapserver from source, and unfortunately FGS isn't an option because I can't run more than 1 http.d, due for server reasons. Any suggestions on a work around, such as an RPM or something? If you know of anyone else I could contact that would be great. Thanks for any input! Trevor Penney From bpicinbono at WORLDONLINE.FR Tue Aug 9 14:17:14 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Fri Feb 8 15:07:54 2008 Subject: Mapserver Setup Problems, Any Suggestions? In-Reply-To: <20050808114601.r6puje89084k4wc8@webmail.novageomatics.com> Message-ID: lundi 8 Ao?t 2005 18:46, Trevor Penney : > Hi All, > > I am having some problems with setting up mapserver, any suggestions would > be greatly appreciated. > > Basically I want to install mapserver. I have root access and Fedora Core > 2. However, I can't use gcc to compile the mapserver from source, and > unfortunately FGS isn't an option because I can't run more than 1 http.d, > due for server reasons. Any suggestions on a work around, such as an RPM or > something? > > If you know of anyone else I could contact that would be great. > > Thanks for any input! > > Trevor Penney Why can't you use the gcc compiler ? Blaise From woklist at CHARTER.NET Tue Aug 9 14:42:52 2005 From: woklist at CHARTER.NET (William K) Date: Fri Feb 8 15:07:54 2008 Subject: Newbie Mac OS X MapServer 4.6 question In-Reply-To: Message-ID: On Aug 9, 2005, at 10:21 AM, Bill Whitacre wrote: > I've just installed the MapServer packages from Kyng Chaos and have a > couple of questions: > > 1. When I try the CGI I get the "MapServer Itasca Application" page > OK but when hit the Initialize button with Basic Application selected > I get the following error: > > >> getString(): Symbol definition error. Parsing error near (none): >> (line 73) >> > > My form variables look like this in the /workshop/index.html file: > > >> >> > onSubmit="submit_form()"> >> >> >> >> >> >> >> >> >> >> >> >> > > What have I done wrong? > The root hidden variable is a web path (URL), not a file system path, so it should be "/workshop/". That's all I can think of from this snippet. But, I'm getting the same thing, and the logs don't tell me anything. Hmm. It's been so long since I used CGI MapServer. Maybe someone else has an idea. I see that the itasca readme says it's made for MapServer 4.0, there have been enough changes from then to MapServer 4.6 that the demo may not work. I recall seeing some messages on the list about that. Maybe I should remove that recommendation from my installer readme. You could try the tutorial from the MapServer documentation page. > 2. When I try the testphp.php script - that looks like this: > > I get the following error: > > >> Warning: dl(): Unable to load dynamic library '/usr/lib/php/ >> extensions/no-debug-non-zts-20020429/php_mapscript.so' - (null) in / >> Library/WebServer/Documents/testphp.php on line 2 >> > > along with the normal PHP info stuff. > > Again, what have I done wrong? > Don't know if you did anything wrong, but somehow your httpd.conf is looking in the wrong location for php_mapscript.so. It should be / usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429. Are you using my PHP with this or Apple's PHP? It doesn't work with Apple's PHP. ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From Trevor.Penney at NOVAGEOMATICS.COM Tue Aug 9 07:48:17 2005 From: Trevor.Penney at NOVAGEOMATICS.COM (Trevor Penney) Date: Fri Feb 8 15:07:54 2008 Subject: Mapserver Setup Problems, Any Suggestions? Message-ID: Hi All, I hope I am not sending this twice, I am new to this list. I appologize for any inconviences. I am having some problems with setting up mapserver, any suggestions would be greatly appreciated. Basically I want to install mapserver. I have root access and Fedora Core 2. However, I can't use gcc to compile the mapserver from source, and unfortunately FGS isn't an option because I can't run more than 1 http.d, due for server reasons. Any suggestions on a work around, such as an RPM or something? If you know of anyone else I could contact that would be great. Thanks for any input! Trevor Penney From David.Fawcett at STATE.MN.US Tue Aug 9 15:26:18 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:54 2008 Subject: Newbie Mac OS X MapServer 4.6 question Message-ID: Post your map file. What is on or near line 73 in your Map file? What path do you have set for your symbols? Does this match the location of the files on your system? David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of William K Sent: Tuesday, August 09, 2005 1:43 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Newbie Mac OS X MapServer 4.6 question On Aug 9, 2005, at 10:21 AM, Bill Whitacre wrote: > I've just installed the MapServer packages from Kyng Chaos and have a > couple of questions: > > 1. When I try the CGI I get the "MapServer Itasca Application" page > OK but when hit the Initialize button with Basic Application selected > I get the following error: > > >> getString(): Symbol definition error. Parsing error near (none): >> (line 73) >> > > My form variables look like this in the /workshop/index.html file: > > >> >> > onSubmit="submit_form()"> >> >> >> >> >> >> >> >> >> >> >> >> > > What have I done wrong? > The root hidden variable is a web path (URL), not a file system path, so it should be "/workshop/". That's all I can think of from this snippet. But, I'm getting the same thing, and the logs don't tell me anything. Hmm. It's been so long since I used CGI MapServer. Maybe someone else has an idea. I see that the itasca readme says it's made for MapServer 4.0, there have been enough changes from then to MapServer 4.6 that the demo may not work. I recall seeing some messages on the list about that. Maybe I should remove that recommendation from my installer readme. You could try the tutorial from the MapServer documentation page. > 2. When I try the testphp.php script - that looks like this: > > I get the following error: > > >> Warning: dl(): Unable to load dynamic library '/usr/lib/php/ >> extensions/no-debug-non-zts-20020429/php_mapscript.so' - (null) in / >> Library/WebServer/Documents/testphp.php on line 2 >> > > along with the normal PHP info stuff. > > Again, what have I done wrong? > Don't know if you did anything wrong, but somehow your httpd.conf is looking in the wrong location for php_mapscript.so. It should be / usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429. Are you using my PHP with this or Apple's PHP? It doesn't work with Apple's PHP. ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From carloseduardo at COSTARRICENSE.CR Tue Aug 9 15:32:03 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Fri Feb 8 15:07:54 2008 Subject: query in new window Message-ID: Hi list. I'm using mapserver with php mapscript in suse 9.1. My application is based in the gmap example (http://www2.dmsolutions.ca/gmap/gmap75.phtml) The results of a query are showed in a table under the map. Now, i need to show this results in a new window because it might be a lot of information. I need an example of how can i do this in the best way. Some example code could be very useful. Thanks for your help.!! From kmulka at GLC.ORG Tue Aug 9 15:56:56 2005 From: kmulka at GLC.ORG (Kyle Mulka) Date: Fri Feb 8 15:07:54 2008 Subject: Reduce Detail on Maps? Message-ID: Is there any way to reduce the detail and smooth out lines. This: http://mt.kylemulka.com/um.php?map=/ms4w/umbuildings.map&REQUEST=GetMap&SERV ICE=WMS&VERSION=1.1.1&LAYERS=Buildings&STYLES=&FORMAT=image/png&BGCOLOR=0xFF FFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-83.7322998046875,42.27934093085314 5,-83.72955322265625,42.28137302193453&WIDTH=256&HEIGHT=256 Just looks ugly with all the detail in it. -Kyle Mulka http://maps.kylemulka.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050809/a898f703/attachment.html From fwarmerdam at GMAIL.COM Tue Aug 9 15:56:48 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:54 2008 Subject: Mapserver Setup Problems, Any Suggestions? In-Reply-To: <20050808114601.r6puje89084k4wc8@webmail.novageomatics.com> Message-ID: On 8/8/05, Trevor Penney wrote: > Hi All, > > I am having some problems with setting up mapserver, any suggestions would be > greatly appreciated. > > Basically I want to install mapserver. I have root access and Fedora Core 2. > However, I can't use gcc to compile the mapserver from source, and > unfortunately FGS isn't an option because I can't run more than 1 http.d, due > for server reasons. Any suggestions on a work around, such as an RPM or > something? Trevor, You should still be able to use FGS even if you don't use their bundled apache. But you will need to do a bit of additional work to setup your apache so that it can use the FGS stuff. Mostly adding the FGS lib directory to LD_LIBRARY_PATH in apache.conf, and likely some php magic. Are you looking to use PHP or just MapServer in cgi mode? If you just need cgi, you could use FWTools which includes MapServer. On my server use FWTools and I just drop a small wrapper script in my cgi-bin directory to invoke it looking like: #!/bin/sh . /opt/FWTools-linux-0.9.6/fwtools_env.sh exec /opt/FWTools-linux-0.9.6/bin/mapserv "$*" The fwtools_env.sh script sets up the environment so I don't have to fiddle with the apache.conf directly. There are also rpms for Fedora available at: http://mappinghacks.com/rpm/ Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From dylan at IICI.NO-IP.ORG Tue Aug 9 16:04:01 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application In-Reply-To: <200508080934.15779.dylan@iici.no-ip.org> Message-ID: On Monday 08 August 2005 09:34 am, Dylan Beaudette wrote: > Greetings, > > We are currently in the process of ramping up the scale of a > mapserver-based application, and thus in search of some new hardware. > > So far we have priced out some dual processor systems, with the best deal > from Dell. The machine will be running the UNIX version of mapserver. The > large quantity of imagery and high density vector files will require a > powerful machine in order to keep latency low. > > Any suggestions or stories about previous purchases (related to a mapserver > application) would be much appreciated. > > Thanks in advance! Thanks to everyone who responded, I have some good information on which to base my purchasing decision on now. Cheers! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From bw at HIS.COM Tue Aug 9 16:30:57 2005 From: bw at HIS.COM (Bill Whitacre) Date: Fri Feb 8 15:07:54 2008 Subject: Newbie Mac OS X MapServer 4.6 question In-Reply-To: Message-ID: Thanks David & William. I've got the CGI working now. I took out this line [73] from the itasca.map file: > WMS_ACCESSCONSTRAINTS none and set my local website a few lines down and now things are working. Oh yea, I had to creat a tmp directory for the .png files and give it write permission. I'm going to keep working on it and may have more questions but I feel great just to have gotten this far. I'll be looking for some international data files tonight/tomorrow. Thanks again. bw --- On Aug 9, 2005, at 3:26 PM, Fawcett, David wrote: > Post your map file. What is on or near line 73 in your Map file? > > What path do you have set for your symbols? Does this match the > location of the files on your system? > > David. > > David Fawcett > Minnesota Office of Environmental Assistance > david.fawcett@moea.state.mn.us > 651.215.0200 > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS@LISTS.UMN.EDU]On > Behalf Of William K > Sent: Tuesday, August 09, 2005 1:43 PM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Newbie Mac OS X MapServer 4.6 > question > > > On Aug 9, 2005, at 10:21 AM, Bill Whitacre wrote: > > >> I've just installed the MapServer packages from Kyng Chaos and have a >> couple of questions: >> >> 1. When I try the CGI I get the "MapServer Itasca Application" page >> OK but when hit the Initialize button with Basic Application selected >> I get the following error: >> >> >> >>> getString(): Symbol definition error. Parsing error near (none): >>> (line 73) >>> >>> >> >> My form variables look like this in the /workshop/index.html file: >> >> >> >>> >>> >> onSubmit="submit_form()"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> What have I done wrong? >> >> > The root hidden variable is a web path (URL), not a file system path, > so it should be "/workshop/". That's all I can think of from this > snippet. But, I'm getting the same thing, and the logs don't tell me > anything. Hmm. It's been so long since I used CGI MapServer. Maybe > someone else has an idea. > > I see that the itasca readme says it's made for MapServer 4.0, there > have been enough changes from then to MapServer 4.6 that the demo may > not work. I recall seeing some messages on the list about that. > > Maybe I should remove that recommendation from my installer readme. > You could try the tutorial from the MapServer documentation page. > > >> 2. When I try the testphp.php script - that looks like this: >> >> I get the following error: >> >> >> >>> Warning: dl(): Unable to load dynamic library '/usr/lib/php/ >>> extensions/no-debug-non-zts-20020429/php_mapscript.so' - (null) in / >>> Library/WebServer/Documents/testphp.php on line 2 >>> >>> >> >> along with the normal PHP info stuff. >> >> Again, what have I done wrong? >> >> > Don't know if you did anything wrong, but somehow your httpd.conf is > looking in the wrong location for php_mapscript.so. It should be / > usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429. Are you > using my PHP with this or Apple's PHP? It doesn't work with Apple's > PHP. > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > [Trillian] What are you supposed to do WITH a maniacally depressed > robot? > > [Marvin] You think you have problems? What are you supposed to do > if you ARE a maniacally depressed robot? No, don't try and answer, > I'm 50,000 times more intelligent than you and even I don't know the > answer... > > - HitchHiker's Guide to the Galaxy > --- Bill Whitacre bw@his.com From steve.lime at DNR.STATE.MN.US Tue Aug 9 16:31:43 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:54 2008 Subject: Newbie Mac OS X MapServer 4.6 question Message-ID: None is a keyword in the latest version of MapServer so you just need to quote that value in the mapfile, that is none => 'none'. Steve >>> "Fawcett, David" 08/09/05 2:26 PM >>> Post your map file. What is on or near line 73 in your Map file? What path do you have set for your symbols? Does this match the location of the files on your system? David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of William K Sent: Tuesday, August 09, 2005 1:43 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Newbie Mac OS X MapServer 4.6 question On Aug 9, 2005, at 10:21 AM, Bill Whitacre wrote: > I've just installed the MapServer packages from Kyng Chaos and have a > couple of questions: > > 1. When I try the CGI I get the "MapServer Itasca Application" page > OK but when hit the Initialize button with Basic Application selected > I get the following error: > > >> getString(): Symbol definition error. Parsing error near (none): >> (line 73) >> > > My form variables look like this in the /workshop/index.html file: > > >> >> > onSubmit="submit_form()"> >> >> >> >> >> >> >> >> >> >> >> >> > > What have I done wrong? > The root hidden variable is a web path (URL), not a file system path, so it should be "/workshop/". That's all I can think of from this snippet. But, I'm getting the same thing, and the logs don't tell me anything. Hmm. It's been so long since I used CGI MapServer. Maybe someone else has an idea. I see that the itasca readme says it's made for MapServer 4.0, there have been enough changes from then to MapServer 4.6 that the demo may not work. I recall seeing some messages on the list about that. Maybe I should remove that recommendation from my installer readme. You could try the tutorial from the MapServer documentation page. > 2. When I try the testphp.php script - that looks like this: > > I get the following error: > > >> Warning: dl(): Unable to load dynamic library '/usr/lib/php/ >> extensions/no-debug-non-zts-20020429/php_mapscript.so' - (null) in / >> Library/WebServer/Documents/testphp.php on line 2 >> > > along with the normal PHP info stuff. > > Again, what have I done wrong? > Don't know if you did anything wrong, but somehow your httpd.conf is looking in the wrong location for php_mapscript.so. It should be / usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429. Are you using my PHP with this or Apple's PHP? It doesn't work with Apple's PHP. ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From abe.gillespie at GMAIL.COM Tue Aug 9 16:40:15 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri Feb 8 15:07:54 2008 Subject: Reduce Detail on Maps? In-Reply-To: <20050809195422.8F4E624DE@superior.great-lakes.net> Message-ID: And so does your URL ... just kidding. :) However, if you don't know about http://tinyurl.com/ take a look at 'er. -Abe On 8/9/05, Kyle Mulka wrote: > > > Is there any way to reduce the detail and smooth out lines. This: > http://mt.kylemulka.com/um.php?map=/ms4w/umbuildings.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Buildings&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-83.7322998046875,42.279340930853145,-83.72955322265625,42.28137302193453&WIDTH=256&HEIGHT=256 > > Just looks ugly with all the detail in it. > > -Kyle Mulka > http://maps.kylemulka.com From steve.lime at DNR.STATE.MN.US Tue Aug 9 16:40:13 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:54 2008 Subject: Newbie Mac OS X MapServer 4.6 question Message-ID: Have posted a new version of the workshop.zip file that fixes this problem. Sorry about that. Steve >>> "Fawcett, David" 08/09/05 2:26 PM >>> Post your map file. What is on or near line 73 in your Map file? What path do you have set for your symbols? Does this match the location of the files on your system? David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of William K Sent: Tuesday, August 09, 2005 1:43 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Newbie Mac OS X MapServer 4.6 question On Aug 9, 2005, at 10:21 AM, Bill Whitacre wrote: > I've just installed the MapServer packages from Kyng Chaos and have a > couple of questions: > > 1. When I try the CGI I get the "MapServer Itasca Application" page > OK but when hit the Initialize button with Basic Application selected > I get the following error: > > >> getString(): Symbol definition error. Parsing error near (none): >> (line 73) >> > > My form variables look like this in the /workshop/index.html file: > > >> >> > onSubmit="submit_form()"> >> >> >> >> >> >> >> >> >> >> >> >> > > What have I done wrong? > The root hidden variable is a web path (URL), not a file system path, so it should be "/workshop/". That's all I can think of from this snippet. But, I'm getting the same thing, and the logs don't tell me anything. Hmm. It's been so long since I used CGI MapServer. Maybe someone else has an idea. I see that the itasca readme says it's made for MapServer 4.0, there have been enough changes from then to MapServer 4.6 that the demo may not work. I recall seeing some messages on the list about that. Maybe I should remove that recommendation from my installer readme. You could try the tutorial from the MapServer documentation page. > 2. When I try the testphp.php script - that looks like this: > > I get the following error: > > >> Warning: dl(): Unable to load dynamic library '/usr/lib/php/ >> extensions/no-debug-non-zts-20020429/php_mapscript.so' - (null) in / >> Library/WebServer/Documents/testphp.php on line 2 >> > > along with the normal PHP info stuff. > > Again, what have I done wrong? > Don't know if you did anything wrong, but somehow your httpd.conf is looking in the wrong location for php_mapscript.so. It should be / usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429. Are you using my PHP with this or Apple's PHP? It doesn't work with Apple's PHP. ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From steve.lime at DNR.STATE.MN.US Tue Aug 9 16:44:05 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:54 2008 Subject: label readability Message-ID: MapServer only supports a single pixel wide font outline via the OUTLINECOLOR option, sorry. Steve >>> Llu?s Garcia i Mestres 08/09/05 11:24 AM >>> Hi David, I've tried many times with the shadowsize without success. I want to get a something like the shadow but around all the letter and not just an offset part. It could be something like two labels, one with size 2 and the other with 4, then I will get what I'm looking for ;) 2005/8/9, Fawcett, David : > > Take a look at: http://ms.gis.umn.edu/docs/reference/mapfile/label > You want SHADOWSIZE > David. > > David Fawcett > Minnesota Office of Environmental Assistance > david.fawcett@moea.state.mn.us > 651.215.0200 > > -----Original Message----- > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]*On > Behalf Of *Llu?s Garcia i Mestres > *Sent:* Tuesday, August 09, 2005 10:47 AM > *To:* MAPSERVER-USERS@LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] label readability > > > Hi list, > I'm trying to improve the readability of my labels. Using the color black > and outlinecolor white, the result is correct but if it should be possible > to increase the outline size from 1 to 2 or 3 it will be great. Anyone knows > how to play with the mapserver variables to get it? > Thanks in advance > > -- > Llu?s Garcia i Mestres, > > lluisgm@gmail.com > lluisgm@hotmail.com > > -- Llu?s Garcia i Mestres, lluisgm@gmail.com lluisgm@hotmail.com From bfraser at GEOANALYTIC.COM Tue Aug 9 16:54:12 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri Feb 8 15:07:54 2008 Subject: slighty OT: new hardware for a mapserver application Message-ID: Dylan, Here's some "slightly OT" information. ESRI has a technical document discussing web mapping system performance (among other things) of their products: http://www.esri.com/systemsint/kbase/strategies.html Some of the information (network, cpu performance, etc) would apply to Mapserver configurations as well... Brent Fraser ----- Original Message ----- From: "Dylan Beaudette" To: Sent: Tuesday, August 09, 2005 2:04 PM Subject: Re: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application > On Monday 08 August 2005 09:34 am, Dylan Beaudette wrote: > > Greetings, > > > > We are currently in the process of ramping up the scale of a > > mapserver-based application, and thus in search of some new hardware. > > > > So far we have priced out some dual processor systems, with the best deal > > from Dell. The machine will be running the UNIX version of mapserver. The > > large quantity of imagery and high density vector files will require a > > powerful machine in order to keep latency low. > > > > Any suggestions or stories about previous purchases (related to a mapserver > > application) would be much appreciated. > > > > Thanks in advance! > > Thanks to everyone who responded, I have some good information on which to > base my purchasing decision on now. > > Cheers! > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group > University of California at Davis > 530.754.7341 From gsw at GLOBEXPLORER.COM Tue Aug 9 16:56:55 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri Feb 8 15:07:54 2008 Subject: Reduce Detail on Maps? Message-ID: Kyle, Do you mean to reduce the detail in the lines themselves ? If you are using postgres you could perhaps use the simplify function: * 0.60 Simplify(geometry, tolerance) Returns a "simplified" version of the given geometry using the Douglas-Peuker algorithm. Will actually do something only with (multi)lines and (multi)polygons but you can safely call it with any kind of geometry. Since simplification occurs on a object-by-object basis you can also feed a GeometryCollection to this function. Note that returned geometry might loose its simplicity (see IsSimple) Not sure what other tools could do this ... perhaps the JUMP tool has such functionality as well, and it can work directly with shape files. HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of Kyle Mulka Sent: Tue 8/9/2005 12:56 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Reduce Detail on Maps? Is there any way to reduce the detail and smooth out lines. This: http://mt.kylemulka.com/um.php?map=/ms4w/umbuildings.map&REQUEST=GetMap&SERV ICE=WMS&VERSION=1.1.1&LAYERS=Buildings&STYLES=&FORMAT=image/png&BGCOLOR=0xFF FFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-83.7322998046875,42.27934093085314 5,-83.72955322265625,42.28137302193453&WIDTH=256&HEIGHT=256 Just looks ugly with all the detail in it. -Kyle Mulka http://maps.kylemulka.com !DSPAM:42f90a033852046723401! From abe.gillespie at GMAIL.COM Tue Aug 9 17:06:27 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri Feb 8 15:07:54 2008 Subject: Reduce Detail on Maps? In-Reply-To: <71E37EF6B7DCC1499CEA0316A2568328024BB73F@loki.wc.globexplorer.net> Message-ID: I assumed Kyle was looking for a way to antialias the jaggedness of the lines. -Abe On 8/9/05, Gregory S. Williamson wrote: > Kyle, > > Do you mean to reduce the detail in the lines themselves ? > > If you are using postgres you could perhaps use the simplify function: > > * 0.60 Simplify(geometry, tolerance) > Returns a "simplified" version of the given geometry using > the Douglas-Peuker algorithm. Will actually do something > only with (multi)lines and (multi)polygons but you > can safely call it with any kind of geometry. Since simplification > occurs on a object-by-object basis you can also > feed a GeometryCollection to this function. Note that returned > geometry might loose its simplicity (see IsSimple) > > Not sure what other tools could do this ... perhaps the JUMP tool has such functionality as well, and it can work directly with shape files. > > HTH, > > Greg Williamson > DBA > GlobeXplorer LLC > > -----Original Message----- > From: UMN MapServer Users List on behalf of Kyle Mulka > Sent: Tue 8/9/2005 12:56 PM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] Reduce Detail on Maps? > Is there any way to reduce the detail and smooth out lines. This: > http://mt.kylemulka.com/um.php?map=/ms4w/umbuildings.map&REQUEST=GetMap&SERV > ICE=WMS&VERSION=1.1.1&LAYERS=Buildings&STYLES=&FORMAT=image/png&BGCOLOR=0xFF > FFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-83.7322998046875,42.27934093085314 > 5,-83.72955322265625,42.28137302193453&WIDTH=256&HEIGHT=256 > Just looks ugly with all the detail in it. > > -Kyle Mulka > http://maps.kylemulka.com > > > !DSPAM:42f90a033852046723401! > From szekeres.tamas at FREEMAIL.HU Tue Aug 9 17:23:22 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:54 2008 Subject: Rendering layers with multiple type of geometries Message-ID: Some GIS data sources like Mapinfo files may have different kind of features in the same layer. In my case I have a layer with text and line features. If I display this layer with "TYPE ANNOTATION" using LABELITEM and LABELANGLEITEM mapserver produces an error when reaches the features with the LINESTRING type. How can I achieve that mapserver reads only the suitable type of features for that layer. I think, that FILTERITEM will not work, because the accessing of the attributes takes place earlier than the application of the filter (in the msOGRFileNextShape function). I would be pleased if anyone could help me how to separate the layer with multiple geometries without making any offline conversions. Thanks Tamas Szekeres From richard.greenwood at GMAIL.COM Tue Aug 9 22:32:44 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri Feb 8 15:07:54 2008 Subject: JPEG Aerial photos tiling Message-ID: Nhamoinesu Mtetwa CS.STIR.AC.UK> writes: > > Hello, > > I have 64 .jpg aerial photos which I want to form the base layer for my > map. Could someone please tell me the syntax for the mapfile layering and > the tiling. The images come in two files: .jgw and .jpg > Nhamo. > Check out the docs at: http://mapserver.gis.umn.edu/doc46/raster-howto.html and especially: http://mapserver.gis.umn.edu/doc46/raster-howto.html#indexing And if performance is a concern, you will probably want to convert the jpeg's to tiff's. From Trevor.Penney at NOVAGEOMATICS.COM Tue Aug 9 22:53:37 2005 From: Trevor.Penney at NOVAGEOMATICS.COM (Trevor Penney) Date: Fri Feb 8 15:07:54 2008 Subject: Mapserver Setup Problems, Any Suggestions? In-Reply-To: <200508092017.14882.bpicinbono@worldonline.fr> Message-ID: The problem with the GCC compiler has to do with the server, there is not quite eneough resources to get GCC installed. Trevor Quoting blaise : > lundi 8 Ao?t 2005 18:46, Trevor Penney : >> Hi All, >> >> I am having some problems with setting up mapserver, any suggestions would >> be greatly appreciated. >> >> Basically I want to install mapserver. I have root access and Fedora Core >> 2. However, I can't use gcc to compile the mapserver from source, and >> unfortunately FGS isn't an option because I can't run more than 1 http.d, >> due for server reasons. Any suggestions on a work around, such as an RPM or >> something? >> >> If you know of anyone else I could contact that would be great. >> >> Thanks for any input! >> >> Trevor Penney > > Why can't you use the gcc compiler ? > Blaise > From Trevor.Penney at NOVAGEOMATICS.COM Tue Aug 9 23:03:37 2005 From: Trevor.Penney at NOVAGEOMATICS.COM (Trevor Penney) Date: Fri Feb 8 15:07:54 2008 Subject: Mapserver Setup Problems, Any Suggestions? In-Reply-To: <931f8ea9050809125625dc19a@mail.gmail.com> Message-ID: I would also like to have the PHP/Mapscript as well. I am hoping to do some development with CartoWeb. > You should still be able to use FGS even if you don't use their bundled > apache. But you will need to do a bit of additional work to setup your > apache so that it can use the FGS stuff. Mostly adding the FGS lib > directory to LD_LIBRARY_PATH in apache.conf, and likely some php > magic. To do this would the best method be to install all of the seperate FGS Modules or would you install the full FGS and then move it to LD_LIBRARY_PATH in apache.conf? What else would need to be done, what sort of PHP magic? Thanks for any input. Trevor Penney > On 8/8/05, Trevor Penney wrote: >> Hi All, >> >> I am having some problems with setting up mapserver, any suggestions >> would be >> greatly appreciated. >> >> Basically I want to install mapserver. I have root access and Fedora Core 2. >> However, I can't use gcc to compile the mapserver from source, and >> unfortunately FGS isn't an option because I can't run more than 1 >> http.d, due >> for server reasons. Any suggestions on a work around, such as an RPM or >> something? > > Trevor, > > You should still be able to use FGS even if you don't use their bundled > apache. But you will need to do a bit of additional work to setup your > apache so that it can use the FGS stuff. Mostly adding the FGS lib > directory to LD_LIBRARY_PATH in apache.conf, and likely some php > magic. > > Are you looking to use PHP or just MapServer in cgi mode? If you > just need cgi, you could use FWTools which includes MapServer. > On my server use FWTools and I just drop a small wrapper script > in my cgi-bin directory to invoke it looking like: > > #!/bin/sh > > . /opt/FWTools-linux-0.9.6/fwtools_env.sh > exec /opt/FWTools-linux-0.9.6/bin/mapserv "$*" > > The fwtools_env.sh script sets up the environment so I don't have to > fiddle with the apache.conf directly. > > There are also rpms for Fedora available at: > > http://mappinghacks.com/rpm/ > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From mapserver at GEOWORLD.DE Wed Aug 10 01:15:53 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Fri Feb 8 15:07:54 2008 Subject: Get line and line points In-Reply-To: Message-ID: Hi Ryan, joerg p posted a little script a while ago. http://lists.umn.edu/cgi-bin/wa?A2=ind0506&L=mapserver-users&P=R115632&D=0&H=0&I=-3&O=T&T=0&X=65DF737538283E5E65&Y=mapserver%40geoworld.de $testshape = ms_newShapefileObj("data/country", -1); print_r($testshape); echo "

"; for($i=0; $i < $testshape->numshapes; $i++){ echo $i.": "; print_r($singleshape = $testshape->getShape($i)); echo "
"; for($j=0; $j < $singleshape->numlines; $j++){ $singleline = $singleshape->line($j); for($k=0; $k < $singleline->numpoints; $k++){ $singlepoint = $singleline->point($k); print_r($singlepoint); } } echo "


"; }
HTH Nicol Am Montag, den 08.08.2005, 14:03 -0500 schrieb Ryan Feagin: > Hi. I've just recently started using mapserver with PHP mapscript. > > I'm trying to find a specific line segment from a shapefile, and then find > a point x distance on the line to be able create a geocoded point. Can > someone give me an example in php of how get to the line segment and how > to access its node points? I have started unsuccessfully playing around > with the following: > > $shapefile = ms_newShapefileObj($streetFile, -1); > $s = ms_newShapeObj(-1); > $shapefile->getShape(1, $s); > > $line = ms_NewLineObj(); > $line = $s->{line}; > > echo $line->numpoints; > > I get nothing back. > > Thanks for you help From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 10 02:51:29 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:54 2008 Subject: Reduce Detail on Maps? Message-ID: I remember Steve talking about feature thinning in Mapserver at the MUM2. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Abe Gillespie 08/09/05 23:31 PM >>> I assumed Kyle was looking for a way to antialias the jaggedness of the lines. -Abe On 8/9/05, Gregory S. Williamson wrote: > Kyle, > > Do you mean to reduce the detail in the lines themselves ? > > If you are using postgres you could perhaps use the simplify function: > > * 0.60 Simplify(geometry, tolerance) > Returns a "simplified" version of the given geometry using > the Douglas-Peuker algorithm. Will actually do something > only with (multi)lines and (multi)polygons but you > can safely call it with any kind of geometry. Since simplification > occurs on a object-by-object basis you can also > feed a GeometryCollection to this function. Note that returned > geometry might loose its simplicity (see IsSimple) > > Not sure what other tools could do this ... perhaps the JUMP tool has such functionality as well, and it can work directly with shape files. > > HTH, > > Greg Williamson > DBA > GlobeXplorer LLC > > -----Original Message----- > From: UMN MapServer Users List on behalf of Kyle Mulka > Sent: Tue 8/9/2005 12:56 PM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] Reduce Detail on Maps? > Is there any way to reduce the detail and smooth out lines. This: > http://mt.kylemulka.com/um.php?map=/ms4w/umbuildings.map&REQUEST=GetMap&SERV > ICE=WMS&VERSION=1.1.1&LAYERS=Buildings&STYLES=&FORMAT=image/png&BGCOLOR=0xFF > FFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-83.7322998046875,42.27934093085314 > 5,-83.72955322265625,42.28137302193453&WIDTH=256&HEIGHT=256 > Just looks ugly with all the detail in it. > > -Kyle Mulka > http://maps.kylemulka.com > > > !DSPAM:42f90a033852046723401! > From Frank.Broniewski at MNHA.ETAT.LU Wed Aug 10 04:14:20 2005 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Fri Feb 8 15:07:54 2008 Subject: AW: [UMN_MAPSERVER-USERS] AW: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application In-Reply-To: <42F8E44D.7090900@ccgis.de> Message-ID: Thanks alot for all the helpful answers. Though my next question is (also) somewhat offtopic for the mapserver list, I will ask it anyways :-) How do you deal with the relationship of polygons when they are stored in a postgis-table? E.g. you have several levels of administrative units. How do you get to the information which smaller level of adm. unit belongs to the upper level of adm. unit? Right now I use the classical approach and have ids and parentids and with them I determine the father and child elements. But when you have postgis, you can do something like intersect to find all smaller adm. units of a higher level adm. unit. Which one do you prefer? I ask, because I have lots of data which have father-child relations like mentioned above, and so I'm very interested in how other people handle this. Greetings from Luxembourg Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] Im Auftrag von Arnulf Christl Gesendet: Dienstag, 9. August 2005 18:14 An: MAPSERVER-USERS@LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] AW: [UMN_MAPSERVER-USERS] slighty OT: new hardware for a mapserver application Frank Broniewski wrote: > If I may interfere, I have also an question about putting vector data > into postgis. If I may qoute you: > > >>...though i would suggest to >>merge the shapes and MySQl alpha data into one PostgreSQL/PostGIS >>feature table. ... > > > Are you putting all your e.g. point shapes into one table and seperate > them by an attribute or do you create one table for one shapefile? Is > there an advantage of having all shapefiles of one geometry in one > table instead of having one table per shapefile? Umm, well no special fondness for one or the other. It depends on what you plan to do with the data. Being lazy by nature i would probably choose one table, gives me less to configure. But in the end it really is a question of what you need to do to the data. Is the shape file your primary source and every time something changes you have to re-import it (yuck)? Or do you also plan tp maintain the data inside PG? > I'm curious because here at the museum we want to put our data also > into a postgres/postgis db and are unsure about the most clever way to > accomplish this. > > Your Idea seemed somewhat revolutionary to me, so I wondered if you > could describe a little more in detail your way of storing shapefiles > in the database. Oh nothing revolutionary, pure laziness and an affection for PG/PostGIS. You just can do all sorts of cool spatial operations with your data simply using SQL once it has been stuffed into PostGIS. Best, Arnulf. From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 10 04:16:41 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:54 2008 Subject: onmouse over at loadWMC In-Reply-To: Message-ID: hi list, I am trying to get the saveWMC and loadWMC buttons in my Mapbender. The saveWMC seems to work. The I put in the loadWMC (by SQL). When the hp is loaded it seems to work, but when I take the mouse over the loadWMC icon, there is an error message: Zeile: 20 Zeichen: 1 Fehler: Objekt erwartet Code: 0 maybe something with the onmouseover=\\\'mod_loadwmc_init(this)\\\''? but at saveWMC it?s the same and working fine. Leopold the loadWMC SQL: INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closeTag, e_js_file, e_mb_mod, e_target, e_requires) VALUES('Natura2000', 'loadwmc_2', '0002', '1', 'load WMC into workspace', 'img', '../img/button_gray/zoomIn2_off.png', 'onclick=\\\'mod_loadwmc()\\\' onmouseover=\\\'mod_loadwmc_init(this)\\\'', '730', '50', '24', '24', '1', '', '', '', 'mod_loadwmc.php', '', 'mapframe1', ''); the saveWMC SQL: INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closeTag, e_js_file, e_mb_mod, e_target, e_requires) VALUES('Natura2000', 'saveWMC', '0002', '1', 'saves the WebMapContext', 'img', '../img/button_blink_red/leg_over.png', 'onclick=\\\'mod_savewmc()\\\' onmouseover=\\\'mod_savewmc_init(this)\\\'', '645', '30', '24', '24', '1', '', '', '', 'mod_saveWMC.php', '', 'treeGDE,mapframe1', 'loadData'); From tsfu at HKUCS.ORG Wed Aug 10 04:09:42 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:54 2008 Subject: 4 million sounding data Message-ID: I have 4 million sounding data to display in MapServer. I have not problem in uploading the data to both PostgreSQL 8.0.3 and Oracle 10g. But it seems that MapServer cannot afford to work with such an amount of data. When I turn on the sounding layer, the php mapscript simply times out. When I turn off the time-out threshold, it simply stops without any error. When I try to browse all other map works, they perform as usual. Then I lower the rowid to about 12,000 in Oracle, MapServer displays some some points after struggling for quite a while (about 15 minutes!). Any suggestion? Thanks. Jason From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 10 04:59:26 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:54 2008 Subject: mapbender print tmp In-Reply-To: Message-ID: hi list, now I?m trying to make the print button work. I read that I have to make sure that the wms hast write permissions for this directory. $filename = "/tmp/map_".substr(md5(uniqid(rand())),0,7).".png"; I didn?t found the directory, so I made one at \\Mmp-server1\C\mapbender2\http\print\tmp and \\Mmp-server1\C\mapbender2\http\tmp and \\Mmp-server1\C\mapbender2\tmp and \\Mmp-server1\C\tmp all with full permissions in the security settings in the properbilities of the explorer window. Doesn?t seems to be the right way. Or? Best regards, Leopold From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 10 05:06:46 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:54 2008 Subject: mapbender print tmp Message-ID: Hi Leopold, I don't think most people on this list are familiar with Mapbender. You can try these questions better at the Mapbender list. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/10/05 11:03 AM >>> hi list, now I?m trying to make the print button work. I read that I have to make sure that the wms hast write permissions for this directory. $filename = "/tmp/map_".substr(md5(uniqid(rand())),0,7).".png"; I didn?t found the directory, so I made one at \\Mmp-server1\C\mapbender2\http\print\tmp and \\Mmp-server1\C\mapbender2\http\tmp and \\Mmp-server1\C\mapbender2\tmp and \\Mmp-server1\C\tmp all with full permissions in the security settings in the properbilities of the explorer window. Doesn?t seems to be the right way. Or? Best regards, Leopold From johan.e.hallgren at WMDATA.SE Wed Aug 10 07:38:54 2005 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Fri Feb 8 15:07:54 2008 Subject: Adding text-features on a dynamic created inline layer Message-ID: I could figure it out my self... I had to set some more variables on the labelObj-class. ************************** oClassObj = new classObj(null); labelObj oLabelObj = new labelObj(); oLabelObj.type = MS_FONT_TYPE.MS_TRUETYPE; oLabelObj.font = "verdanab"; oLabelObj.color = oColorObj; oLabelObj.backgroundcolor = getColor("-1,-1,-1"); oLabelObj.backgroundshadowcolor = getColor("-1,-1,-1"); oLabelObj.shadowcolor = getColor("-1,-1,-1"); oLabelObj.size = iSize; oLabelObj.outlinecolor = getColor("255,255,255"); oLabelObj.position = (int)MS_LABEL_POSITIONS.MS_UC; oLabelObj.antialias = mapscript.MS_TRUE; oLabelObj.encoding = "CP437"; oLabelObj.maxsize = 256; oLabelObj.minsize = 4; oLabelObj.partials = mapscript.MS_TRUE; oLabelObj.shadowsizex = 1; oClassObj.label = oLabelObj; iClassIndex = oLayerObj.insertClass(oClassObj, -1); ************************** Regards Johan On Tue, 9 Aug 2005 09:07:44 -0500, Johan Hallgren wrote: >Hello > >I tries to create at inline layer dynamicly with mapscript. Adding a label- >class and then add inline textfeatures on that layer. > >The code for creating the layer is below. >*************************************** >oLayerObj = new layerObj(oMapObj); >oLayerObj.name = strName; >oLayerObj.type = oMS_LAYER_TYPE; >oLayerObj.connectiontype = MS_CONNECTION_TYPE.MS_INLINE; >oLayerObj.status = 1; > >oClassObj = new classObj(oLayerObj); >labelObj oLabelObj = new labelObj(); >oLabelObj.type = MS_FONT_TYPE.MS_TRUETYPE; >oLabelObj.font = "verdanab"; >oLabelObj.color = oColorObj; >oLabelObj.size = iSize; >oLabelObj.outlinecolor = getColor("255,255,255"); >oLabelObj.position = (int)MS_LABEL_POSITIONS.MS_UC; >oLabelObj.antialias = mapscript.MS_TRUE; >oLabelObj.encoding = "CP437"; >oClassObj.label = oLabelObj; >iClassIndex = oLayerObj.insertClass(oClassObj, -1); >**************************************** >Adding features lookes like this >**************************************** >lineObj oLineObj = new lineObj(); >oLineObj.add(getPointObj(textNode.Attributes["coords"].Value, >isDatabaseCoord)); >shapeObj oShapeObj = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POINT); >oShapeObj.add(oLineObj); >oShapeObj.classindex = iClassIndex; >oShapeObj.text = textNode.Attributes["label"].Value; >oLayerObj.addFeature(oShapeObj); >oLayerObj.draw(oMapObj, i_obj); >**************************************** > >When I draws the text-features they dont show up on the map. If I'm >instead using a predefiend layer in the mapfile it works fine. > >**************************************** >LAYER > NAME TTTEXT > STATUS ON > TYPE ANNOTATION > FEATURE > END > CLASS > LABEL > TYPE TRUETYPE > FONT verdanab > SIZE 18 > ANTIALIAS TRUE > OUTLINECOLOR 255 255 255 > COLOR 0 0 0 > POSITION UC > END > END >END >**************************************** > >Does anyone have a clue what can be wrong? > >Regards >Johan From cbughi at GMAIL.COM Wed Aug 10 08:01:19 2005 From: cbughi at GMAIL.COM (Carlos Henrique Bughi) Date: Fri Feb 8 15:07:54 2008 Subject: IAS and Java 1.3.1 Message-ID: Hi there! We are asked to run Java Mapserver with Oracle Application Server 9.0.4 and Java runtime 1.3.1. We know that Java Mapserver was written for Java runtime 1.4.X. However, we have to use version 1.3.1. Any experiences or comments that might help us... Thanks Carlos Henrique Bughi Mapserver and Oracle Spatial Development Group G10 - Laboratorio de Computacao Aplicada - Brazil From umberto.nicoletti at GMAIL.COM Wed Aug 10 08:16:14 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri Feb 8 15:07:54 2008 Subject: IAS and Java 1.3.1 In-Reply-To: Message-ID: I think you should be able to compile Java Mapscript with java 1.3.x as well. I dunno about IAS. Good luck! Umberto On 8/10/05, Carlos Henrique Bughi wrote: > Hi there! > > We are asked to run Java Mapserver with Oracle Application Server 9.0.4 > and Java runtime 1.3.1. > > We know that Java Mapserver was written for Java runtime 1.4.X. However, > we have to use version 1.3.1. Any experiences or comments that might help > us... > > Thanks > > Carlos Henrique Bughi > Mapserver and Oracle Spatial Development Group > G10 - Laboratorio de Computacao Aplicada - Brazil > From steve.lime at DNR.STATE.MN.US Wed Aug 10 11:01:29 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:54 2008 Subject: Reduce Detail on Maps? Message-ID: I was talking about potentially adding an option to the [shpxy ...] tag to thin shapes using the Douglas-Peuker algorithm. It's vaporware at this point though. I did post a perl MapScript script that implements that algorithm on shapefiles. It's on the WIKI. It's not speedy (which is why on-the-fly application is a bad idea, at least for drawing) but is certainly suitable for offline use. Steve >>> Bart van den Eijnden 08/10/05 1:51 AM >>> I remember Steve talking about feature thinning in Mapserver at the MUM2. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Abe Gillespie 08/09/05 23:31 PM >>> I assumed Kyle was looking for a way to antialias the jaggedness of the lines. -Abe On 8/9/05, Gregory S. Williamson wrote: > Kyle, > > Do you mean to reduce the detail in the lines themselves ? > > If you are using postgres you could perhaps use the simplify function: > > * 0.60 Simplify(geometry, tolerance) > Returns a "simplified" version of the given geometry using > the Douglas-Peuker algorithm. Will actually do something > only with (multi)lines and (multi)polygons but you > can safely call it with any kind of geometry. Since simplification > occurs on a object-by-object basis you can also > feed a GeometryCollection to this function. Note that returned > geometry might loose its simplicity (see IsSimple) > > Not sure what other tools could do this ... perhaps the JUMP tool has such functionality as well, and it can work directly with shape files. > > HTH, > > Greg Williamson > DBA > GlobeXplorer LLC > > -----Original Message----- > From: UMN MapServer Users List on behalf of Kyle Mulka > Sent: Tue 8/9/2005 12:56 PM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] Reduce Detail on Maps? > Is there any way to reduce the detail and smooth out lines. This: > http://mt.kylemulka.com/um.php?map=/ms4w/umbuildings.map&REQUEST=GetMap&SERV > ICE=WMS&VERSION=1.1.1&LAYERS=Buildings&STYLES=&FORMAT=image/png&BGCOLOR=0xFF > FFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-83.7322998046875,42.27934093085314 > 5,-83.72955322265625,42.28137302193453&WIDTH=256&HEIGHT=256 > Just looks ugly with all the detail in it. > > -Kyle Mulka > http://maps.kylemulka.com > > > !DSPAM:42f90a033852046723401! > From kmulka at GLC.ORG Wed Aug 10 11:20:04 2005 From: kmulka at GLC.ORG (Kyle Mulka) Date: Fri Feb 8 15:07:54 2008 Subject: Mapscript and Google maps Message-ID: My thoughts on your (andre's) two questions follows: - you having observed the different API versions, how stable is that cloning, do you need to rewrite these functions on every version upgrad on the google side? The cloning is pretty stable. So far, through only a few versions of the API I haven't had to change anything. When I say versions of the API here, I only mean the minor versions where they just switch it on the fly. It's mostly just bug fixes. They say they will do a major version change in the future and allow a month to switch all of your code. - google's "terms of use" don't permit this kind of manipulatons (at least that is what i understand by reading their statements). do you think this will make of our trials not more than "viewing for educational purposes only"? True, it is iffy whether or not the terms of use allows this. It is certainly not a documented feature. I think they will allow this fully as long as they can still stick in their advertising (which we haven't seen as of yet) and track users using your service. If they can't, well, who knows. If we are lucky they will open-source their javascript code and let us use it without the Google logo in the corner. -Kyle Mulka http://maps.kylemulka.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050810/4d1c77e4/attachment.html From james.browne at LIU.EDU Wed Aug 10 12:24:23 2005 From: james.browne at LIU.EDU (James P. Browne) Date: Fri Feb 8 15:07:54 2008 Subject: Problem with php_mapscript and ecw Message-ID: I am running a Debian Linux/Gnu server and compiled the new ECW driver into GDAL and compiled Mapserver against that. When I write PHP4 code using php_mapscript I have no trouble creating an interface where the user can turn shape files on and off, but when either of ECW layers are turned on, they only work intermittently. The correct output is created in the image directory, but there is usually no php/html output after the line dl('php_mapscript.so'); If there is no output before that, it looks like nothing happened when using firefox or mozila, although IE returns a ?page cannot be displayed...technical difficulty...? error. The images were created on the server, it seems that php_mapscript locks up. If you switch back to shape files, the page works normally again. I can't see what I could be doing wrong. Any ideas? From bill at BINKO.NET Wed Aug 10 12:56:42 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri Feb 8 15:07:54 2008 Subject: Problem with php_mapscript and ecw In-Reply-To: Message-ID: On Wed, 10 Aug 2005, James P. Browne wrote: > I am running a Debian Linux/Gnu server and compiled the new ECW driver into > GDAL and compiled Mapserver against that. > > When I write PHP4 code using php_mapscript I have no trouble creating an > interface where the user can turn shape files on and off, but when either of > ECW layers are turned on, they only work intermittently. The correct output > is created in the image directory, but there is usually no php/html output > after the line > dl('php_mapscript.so'); > If there is no output before that, it looks like nothing happened when using > firefox or mozila, although IE returns a ?page cannot be > displayed...technical difficulty...? error. The images were created on the > server, it seems that php_mapscript locks up. > > If you switch back to shape files, the page works normally again. > > I can't see what I could be doing wrong. Any ideas? > > I am pretty sure I know the problem here: libecw 3.1 (all versions) have a multi-threading bug that sometimes leaves a thread hanging and keeps the process from completing. I posted a patch to the ermapper forums, and Tom has taken it and incorporated it into their latest 3.2 betas (I believe). There are other problems with ECW at the moment, but the good news is that several very smart people are "all over it" at the moment. Frank and Tom are both working to get a 3.2 out (with that and other fixes) and Frank has updated the GDAL interface to ECW to match it in GDAL CVS. Now: to solve your problem... 1) If this can wait a few weeks: just wait for libecw3.2 to be released and for Frank to sign off on the changes to GDAL. Your problems will probably go away. 2) If this is critical, you have two options: a) If you feel comfortable doing it, apply the patch attached to this discussion to the libecw3.1 sources and rebuild completely ( make clean all) http://forums.ermapper.com/viewtopic.php?t=486&highlight= b) If you're really realy stuck, find someone who can build you a patched library. I can do it on Mandrake 10.1, but you should be able to find someone to help on most platforms if you ask nicely. Bill From Ken.Tanaka at NOAA.GOV Wed Aug 10 13:54:00 2005 From: Ken.Tanaka at NOAA.GOV (Ken Tanaka) Date: Fri Feb 8 15:07:54 2008 Subject: 4 million sounding data In-Reply-To: Message-ID: I would think that many points are too much to be of use to a user. How about * a filter to limit points to a more reasonable number by space/time/attribute or measurement range * a derived image showing data distribution * a derived dataset that computes a useful summary (like an average) that contains fewer points. -Ken Jason FU wrote: >I have 4 million sounding data to display in MapServer. I have not problem >in uploading the data to both PostgreSQL 8.0.3 and Oracle 10g. But it seems >that MapServer cannot afford to work with such an amount of data. When I >turn on the sounding layer, the php mapscript simply times out. When I turn >off the time-out threshold, it simply stops without any error. When I try to >browse all other map works, they perform as usual. Then I lower the rowid to >about 12,000 in Oracle, MapServer displays some some points after struggling >for quite a while (about 15 minutes!). > >Any suggestion? > >Thanks. > >Jason > > -- = Enterprise Data Services Division =============== | CIRES, National Geophysical Data Center / NOAA | = Ken.Tanaka(a)noaa.gov =========================== From kevin at PEOPLEGIS.COM Wed Aug 10 14:11:12 2005 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Fri Feb 8 15:07:54 2008 Subject: SDE sites Message-ID: Can folks out there let us know where and when you may have integrated Mapserver with SDE and/or Microsoft SQLServer? We are looking for experience and knowledge base.... thanks.... Kevin -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 7/25/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050810/97c83013/attachment.html From hobu at IASTATE.EDU Wed Aug 10 14:29:40 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Fri Feb 8 15:07:54 2008 Subject: SDE sites In-Reply-To: Message-ID: Kevin, MapServer and ArcSDE/Oracle has been working quite well for me for a number of years. I also have maintained the MapServer SDE driver for a couple of years and added a few extra features like versioned layer queries which ArcIMS doesn't even support. The SDE C API abstracts away the database for the most part, and it doesn't matter if Oracle, MSSQL, or Informix are actually behind SDE. Did you have a specific question, or were you just wondering whether or not it worked? There are some features that are not there yet (and might never be). Attribute joins are on the wishlist, but I've found it is much easier, simpler, and faster to use sdeview to create a view for something that I would want to join. QueryByShape is not supported, but the impending implementation of WKT support in MapServer should make its development quite easy (SDE C API supports exporting and importing to and from WKT/WKB). DirectConnect and Geodatabase functionality are not natively supported by the SDE C API and are not supported by MapServer. There is also experimental SDE raster support, but as far as I know, I'm the only one to ever get it to actually work :( (and I don't use it any sort of production sense... tiled overviewed tiffs on the filesystem are much better). I also maintain a set of windows binaries at that you can use with the SDE 9.0 DLLs to try MapServer SDE support. Howard From richard.greenwood at GMAIL.COM Wed Aug 10 16:27:29 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri Feb 8 15:07:54 2008 Subject: swamp or wetland hatch Message-ID: Does anyone have a nice swamp or wetland hatch that they would care to share? Thanks, -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From jeff at PROPERTYKEY.COM Wed Aug 10 16:41:24 2005 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Fri Feb 8 15:07:54 2008 Subject: swamp or wetland hatch In-Reply-To: Message-ID: Richard Greenwood wrote: > Does anyone have a nice swamp or wetland hatch that they would care to share? This is what I created for such places. Nice is up the the eye of the beholder -- I'm definately no graphic designer, but I think it looks OK. -- Jeff Hoffmann jeff@propertykey.com -------------- next part -------------- A non-text attachment was scrubbed... Name: marsh.png Type: image/png Size: 317 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050810/8b583f28/marsh.png From Zamil.Murji at DIVESTCO.COM Wed Aug 10 16:49:54 2005 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Fri Feb 8 15:07:54 2008 Subject: Shapefile Problems Message-ID: Hello list, My maps have recently run into a problem with a specific shapefile. The problem just started happening (they had all been working in the past). Here are the details: 1) Both of the attached shapefiles work in arc explorer. 2) The seis3dfill shapefile works with the specific layer in question, but the absale1 is the one that is acting up. Here is the url in question. It returns an empty image when I use the absale1 shapefile and an image filled with polygons if I switch it to use the seis3dfill shapefile. No error msgs are produced. http://idcmap.divestco.com/cgi-bin/mapserv?mode=map&map=/mapfiles/sdb-client-side.map&mapext=9257858.00000+2992248.10443+11712816.00000+5189146.89557&mapsize=723+647&layers=&map_seismic2d_class_expression=/(.)/&layers=&map_seismic2dlibrarycard_class_expression=/(.)/&layers=&map_seismic3d_class_expression=/(.)/&layers=&map_seismic3dlibrarycard_class_expression=/(.)/&layers=&map_seismic3d-outline_class_expression=/(.)/&layers=absale1 Here is the layer definition. # ALBERTA SALE 1 LAYER NAME absale1 TYPE POLYGON STATUS off DATA /mapdata/canada_data/landsales/absale1 # DATA ./seismic/seis3dfill CLASSITEM 'agreement' # CLASSITEM 'TEXT1' # MAXSCALE 250000 LABELITEM "sale date" # LABELITEM 'LINENAME1' LABELMAXSCALE 200000 SYMBOLSCALE 120000 CLASS EXPRESSION /./ OUTLINECOLOR 0 0 0 COLOR 255 149 46 SYMBOL 0 LABEL COLOR 0 0 99 TYPE TRUETYPE FONT arial FORCE on ANGLE 0.000000 POSITION cc SIZE 5 MAXSIZE 20 MINSIZE 1 END END END Any help would be appreciated. Thanks Zamil From Zamil.Murji at DIVESTCO.COM Wed Aug 10 17:15:33 2005 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Fri Feb 8 15:07:54 2008 Subject: Shapefile Problems Message-ID: I believe I answered my own question. Projection issues...the new absale1 file was missing a shift in the X coordinate. Thanks and sorry for the troubles. Zamil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Zamil Murji Sent: Wednesday, August 10, 2005 2:50 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Shapefile Problems Hello list, My maps have recently run into a problem with a specific shapefile. The problem just started happening (they had all been working in the past). Here are the details: 1) Both of the attached shapefiles work in arc explorer. 2) The seis3dfill shapefile works with the specific layer in question, but the absale1 is the one that is acting up. Here is the url in question. It returns an empty image when I use the absale1 shapefile and an image filled with polygons if I switch it to use the seis3dfill shapefile. No error msgs are produced. http://idcmap.divestco.com/cgi-bin/mapserv?mode=map&map=/mapfiles/sdb-client-side.map&mapext=9257858.00000+2992248.10443+11712816.00000+5189146.89557&mapsize=723+647&layers=&map_seismic2d_class_expression=/(.)/&layers=&map_seismic2dlibrarycard_class_expression=/(.)/&layers=&map_seismic3d_class_expression=/(.)/&layers=&map_seismic3dlibrarycard_class_expression=/(.)/&layers=&map_seismic3d-outline_class_expression=/(.)/&layers=absale1 Here is the layer definition. # ALBERTA SALE 1 LAYER NAME absale1 TYPE POLYGON STATUS off DATA /mapdata/canada_data/landsales/absale1 # DATA ./seismic/seis3dfill CLASSITEM 'agreement' # CLASSITEM 'TEXT1' # MAXSCALE 250000 LABELITEM "sale date" # LABELITEM 'LINENAME1' LABELMAXSCALE 200000 SYMBOLSCALE 120000 CLASS EXPRESSION /./ OUTLINECOLOR 0 0 0 COLOR 255 149 46 SYMBOL 0 LABEL COLOR 0 0 99 TYPE TRUETYPE FONT arial FORCE on ANGLE 0.000000 POSITION cc SIZE 5 MAXSIZE 20 MINSIZE 1 END END END Any help would be appreciated. Thanks Zamil From holdenera at SAIC.COM Wed Aug 10 18:03:56 2005 From: holdenera at SAIC.COM (SUBSCRIBE MAPSERVER-USERS Anthony Holdener) Date: Fri Feb 8 15:07:54 2008 Subject: The commented version in template files Message-ID: I am wondering if there is any way to have the MapServer CGI not send the MapServer version in HTML comments when using a Web Template File. It invalidates XML, which is screwing up my AJAX implementation. What I'm talking about: Thanks. From tnaberhaus at MONTANA.EDU Wed Aug 10 18:19:13 2005 From: tnaberhaus at MONTANA.EDU (Naberhaus, Thomas) Date: Fri Feb 8 15:07:54 2008 Subject: problem with php mapscript layerobj functions Message-ID: Hello List, I am running mapserver on debian sarge and have just begun to work with it. The examples seem to work well. However when attempting to use the php mapscript functions getLayer(), getLayerByName(), or ms_newLayerObj($map), the script fails and apache reports a segmentation fault. I installed MapServer on Windows XP and the same script works properly. Does anyone have any ideas what might be wrong or how to get the functions to work on the debian installation? Thanks, Thomas /*********************************** Thomas Naberhaus Technology Coordinator Mountain Prairie Node, NBII Big Sky Institute Montana State University 114 AJM Johnson Hall Bozeman, MT 59717 voice: (406) 994-5786 fax: (406) 994-5122 tnaberhaus@montana.edu ***********************************/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050810/a0103042/attachment.html From steve at SIERRACLUB.BC.CA Wed Aug 10 20:40:11 2005 From: steve at SIERRACLUB.BC.CA (Steve Young) Date: Fri Feb 8 15:07:54 2008 Subject: Mapscript getClassByName Message-ID: Hi List, I'm trying to get a handle on mapscript. One of the mapfile attributes I want to access for dynamic legend creation is the class name. As best I can tell this isn't accessible using getClassByName(); or similar function. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=209. Mentions there is a simple workaround. Unfortuately it isn't simple enough for me to figure out. Can anyone help? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050810/d1d0c0e8/attachment.html From tsfu at HKUCS.ORG Thu Aug 11 02:09:21 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:54 2008 Subject: 4 million sounding data Message-ID: Well, but I only have the sounding data from the users. The point is I am investigating how to set a display limit for MapServer by selecting only part of the points well distributed all over the waters. I cannot sort out the way to get the "current" extent {(minx, miny) and (maxx, maxy)} during zoom-in for a proper SQL statement for both PostGIS and Oracle 10g. Any suggestion? Jason From fx.prunayre at OIEAU.FR Thu Aug 11 02:49:31 2005 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Fri Feb 8 15:07:54 2008 Subject: Oracle / OCI error In-Reply-To: <42F7581A.4050505@univali.br> Message-ID: Thanks Fernando. Problem was read access to ORACLE_HOME for apache users. -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] De la part de Fernando Simon Envoy? : lundi 8 ao?t 2005 15:03 ? : MAPSERVER-USERS@LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Oracle / OCI error Hi Fran?ois, This problem can occur when the user that run Mapserv can't access the Oracle home. Did you define the same variables in the console that the user that run Mapserver? Can this user access (read permission) the ORACLE_HOME folder? You need to specify the Oracle enviroments for Oracle Spatial support (native connection) in Mapserver, you can check this link how to define it: http://www.puschitz.com/InstallingOracle9i.shtml#SettingOracleEnvironments Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Fran?ois Prunayre wrote: >Hi, question for Oracle users > >Mapserver error is : >msDrawMap(): Image handling error. Failed to draw layer named 'CIBA'. >msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. >Connection failure. Check the connection string. Error: . > >With mapfile : >CONNECTIONTYPE oraclespatial >CONNECTION "zonage/zonage@rnde" >DATA "GEOM FROM CIBA USING UNIQUE ID SRID 41014" > >With OGR, same problem > CONNECTION "oci:zonage/zonage@rnde" > CONNECTIONTYPE OGR > DATA "CIBA" > >And ogrinfo oci:zonage/zonage@rnde CIBA works fine. > >Httpd.conf is : >LoadModule cgi_module modules/mod_cgi.so #LoadModule fastcgi_module >modules/mod_fastcgi.so > > >SetEnv TNS_ADMIN "/usr/local/oracle/product/10.2.0/client_1/network/admin" >SetEnv PATH "/usr/local/oracle/product/10.2.0/client_1/bin" >#SetEnv ORACLE_SID rnde >#SetEnv ORACLE_HOME /usr/local/oracle/product/10.2.0/client_1 >#SetEnv LD_LIBRARY_PATH >/usr/local/oracle/product/10.2.0/client_1/lib:/usr/local/oracle/product >/10.2 >.0/client_1 >SetEnv NLS_LANG AMERICAN_AMERICA.WE8ISO8859P15 > > >Any ideas on what is wrong ? I would like to use fastcgi once cgi works. >What do we have to set for fastcgi to work with oracle &mapserver ? > >Thanks. >Francois > > > >Office International de l'EAU >Web : http://www.oieau.fr > > >-- >Ce message a ete verifie par MailScanner pour des virus ou des >polluriels et rien de suspect n'a ete trouve. > >Les donnees et renseignements contenus dans ce message sont personnels, >confidentiels et prives. Toute publication, utilisation ou diffusion, >meme partielle, doit etre autorisee. > >Any data and information contained in this electronic mail is personal, >confidential and secret. Any total or partial publication, use or >distribution must be authorized. > > > > -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From adhi_iswara at YAHOO.CO.UK Thu Aug 11 02:56:03 2005 From: adhi_iswara at YAHOO.CO.UK (Iswara Adhi) Date: Fri Feb 8 15:07:54 2008 Subject: storing gps data via php/web interface... Message-ID: Hi lists..! I'll use mapserver and mapscript to build my web-based gis application, could I create interface in php that could store gps data(x,y coordinates or oracle triplet) in my database(i.e. oracle 10g)? Thanks for help! --------------------------------- To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/3f67340b/attachment.html From j.cook at OXFORDARCH.CO.UK Thu Aug 11 04:03:32 2005 From: j.cook at OXFORDARCH.CO.UK (joanne cook) Date: Fri Feb 8 15:07:54 2008 Subject: multiple legends Message-ID: Hi List, I have produced a "print friendly" version of my map, without navigation buttons etc, which launches when you click a button in my main map. In my main map I am using a html legend, with check-boxes for turning layers on and off, but in my print-friendly map I would prefer to have the simple gif legend, or at least no check boxes. The best I have managed so far is to list the layers using the [layers] variable, but that won't give me icons. Is there a way of using the gif legend when you have specified an html legend template in your map file, or any way of using a second html template? Or, am I looking at producing a second map file? Thanks Jo ------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology North ------------------------------------------- ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ From mgoncalves at DSI.UMINHO.PT Thu Aug 11 05:22:02 2005 From: mgoncalves at DSI.UMINHO.PT (=?ISO-8859-1?Q?Miguel_Gon=E7alves?=) Date: Fri Feb 8 15:07:54 2008 Subject: nearest feature Message-ID: Hi, I am using MapServer in order to build a local-based context application. I use a mapfile with several layers ansd I use a WFS request to get the geographical information related to a given point. Normally I use a request of this type: http://mapserv.exe?MAP=mymap.map& SERVICE=wfs& VERSION=1.0.0& REQUEST=getFeature& TYPENAME={all the layers}& BBOX=-8.418000,41.539600,-8.418000,41.539600 My problem is when the point that I pass in the BBOX does not coincides geographically with any geographic feature in my map. In those cases, is it possible, for each layer, to get the nearest feature? You see what I mean? If I pass the point (x,y) in the BBOX and the nearest feature to (x,y), in a given layer, is located in (a,b), is there any type of interface that gives (a,b) as result? From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 11 05:26:57 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:54 2008 Subject: nearest feature Message-ID: You could try with a DWithin Filter, specifying a search distance, and then specifying maxfeatures = 1 in the request. I don't know if Mapserver does any weighting though with respect to distance, or if it just returns you the first feature it finds ..... you have to check that out. I suspect it just returns the first feature it finds. If that's the case I can't think of any other way to do this. See for a Dwithin example: http://mapserver.gis.umn.edu/doc46/filter-encoding-howto.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Miguel Gon?alves 08/11/05 11:22am >>> Hi, I am using MapServer in order to build a local-based context application. I use a mapfile with several layers ansd I use a WFS request to get the geographical information related to a given point. Normally I use a request of this type: http://mapserv.exe?MAP=mymap.map& SERVICE=wfs& VERSION=1.0.0& REQUEST=getFeature& TYPENAME={all the layers}& BBOX=-8.418000,41.539600,-8.418000,41.539600 My problem is when the point that I pass in the BBOX does not coincides geographically with any geographic feature in my map. In those cases, is it possible, for each layer, to get the nearest feature? You see what I mean? If I pass the point (x,y) in the BBOX and the nearest feature to (x,y), in a given layer, is located in (a,b), is there any type of interface that gives (a,b) as result? From pneal at MBL.EDU Thu Aug 11 07:31:56 2005 From: pneal at MBL.EDU (Phillip Neal) Date: Fri Feb 8 15:07:54 2008 Subject: problem with php mapscript layerobj functions In-Reply-To: <939353102D6E2540BD0EC960D4EAD323070640@GEMSTONES.msu.montana.edu> Message-ID: Dear All, I had the same mapscript 'layer' problem on a Fedora 3 installation. I got a segmentation fault. I never figured out what was wrong. I tried all different kinds of recompiles and versions. But I couldn't shake the error. Phil On Aug 10, 2005, at 6:19 PM, Naberhaus, Thomas wrote: > > Hello List, > ? > I am running mapserver on debian sarge and have just begun to work > with it.? The examples seem to work well. > However when attempting to use the php mapscript functions getLayer(), > getLayerByName(), or ms_newLayerObj($map), the script fails and apache > reports a segmentation fault.? > ? > I installed MapServer on Windows XP and the same script works properly. > ? > Does anyone have any ideas what might be wrong or how to get the > functions to work on the debian installation? > ? > Thanks, > Thomas > ? > /*********************************** > Thomas Naberhaus > Technology Coordinator > Mountain Prairie Node, NBII > Big Sky Institute > Montana State University > 114 AJM Johnson Hall > Bozeman, MT? 59717 > voice: (406) 994-5786 > fax:??? (406) 994-5122 > tnaberhaus@montana.edu > ***********************************/ > ? > ? > Phillip Neal Senior Research Assistant Josephine Bay Paul Center for Comparative Molecular Biology and Evolution Marine Biological Laboratory 7 MBL Street Woods Hole, MA 02540 pneal@mbl.edu Tel: 508-289-7153 Fax: 508-289-4727 "Simplicity of character is no hindrance to the subtlety of intellect." ?? - John Morley -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 3749 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/51a09a38/attachment.bin From wbronsema at DMSOLUTIONS.CA Thu Aug 11 08:34:41 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Fri Feb 8 15:07:54 2008 Subject: Mapscript getClassByName In-Reply-To: <7815696F92E60C4CA436E8E71BA755298D901C@exchange.scbc.dyndns.org> Message-ID: Hi Steve, The work around would be something like this: for ($i=0; $i<$oLayer->numclasses; $i++) { $oClass = $ oLayer->getClass($i); If ( $oClass->name == $myClassName ) { // do something } } Makes sense? HTH Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Software & Applications Development, DM Solutions Group Inc. _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Steve Young Sent: Wednesday, August 10, 2005 8:40 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapscript getClassByName Hi List, I'm trying to get a handle on mapscript. One of the mapfile attributes I want to access for dynamic legend creation is the class name. As best I can tell this isn't accessible using getClassByName(); or similar function. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=209. Mentions there is a simple workaround. Unfortuately it isn't simple enough for me to figure out. Can anyone help? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/3c1e6640/attachment.html From gribas at CPQD.COM.BR Thu Aug 11 07:09:24 2005 From: gribas at CPQD.COM.BR (Gustavo Henrique Sberze Ribas) Date: Fri Feb 8 15:07:54 2008 Subject: multiple legends Message-ID: Hello Jo, What about a direct GetLegendGraphic request? http://localhost/cgi-bin/ms_wms?service=WMS&version=1.1.1&request=GetLegendGraphic&format=image/gif&layer=layerName -- Gustavo > Hi List, > > I have produced a "print friendly" version of my map, without > navigation buttons etc, which launches when you click a > button in my main map. In my main map I am using a html > legend, with check-boxes for turning layers on and off, but > in my print-friendly map I would prefer to have the simple > gif legend, or at least no check boxes. The best I have > managed so far is to list the layers using the [layers] > variable, but that won't give me icons. Is there a way of > using the gif legend when you have specified an html legend > template in your map file, or any way of using a second html > template? Or, am I looking at producing a second map file? > > Thanks > > Jo > > ------------------------------------------- > Joanne Cook > Information Systems Coordinator > Oxford Archaeology North > ------------------------------------------- > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > From viperp at GMAIL.COM Thu Aug 11 10:26:13 2005 From: viperp at GMAIL.COM (corvao) Date: Fri Feb 8 15:07:54 2008 Subject: help! Mapserver installation! Message-ID: Hi everyone! I've got a pretty big problem here, I can't install the mapserver correctly. System configuration: - Debina Stable - Apache2 - php 4 - mysql - mapserver 4.6 - Everything, except the mapserver, was installed using the apt-get install. - Procedure used for mapserver installation: - cd mapserver 4.6 - ./configure --with-gd --without-tiff --with-freetype --with-proj --with-ogr --with-gdal --with-wmsclient --with-php=/home/ler/php 4 - Where /home/ler/php4 is where I unzipped the php4, made the ./configure and the make - Next I copied the file called mapserv generated by the mapserver to the apache's cgi-bin directory - And copied the php_mapscript.so file to /usr/lib/php4/20020429/ And the error is the following: Warning: [MapServer Error]: getString(): Parsing error near (none):(line 36) in /var/www/sipeas_novo/htdocs/index.php on line 35 Warning: Failed to open map file 2.map in /var/www/sipeas_novo/htdocs/index.php on line 35 The erroneus part of index.php is the following: if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { $dlext = "dll"; } else { $dlext = "so"; } dl("php_mapscript.so"); include("index.inc.php"); if ($HTTP_FORM_VARS["CODIGO_MAPA"]){ $gpoMap = ms_newMapObj(strval($HTTP_FORM_VARS["CODIGO_MAPA"]).".map"); } else{ $gpoMap = ms_newMapObj("1.map"); } Can anybody help? I can be contacted by either msn or email. ty From carloseduardo at COSTARRICENSE.CR Thu Aug 11 10:45:37 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Fri Feb 8 15:07:54 2008 Subject: Message to Remy Baud Message-ID: Hi Remy. I hope that you remember me. You sent me some example code of how to add a print option in my mapserver application some time ago. I need a little extra help about it and I could never communicate with you again. You sent me "printmap.php" and some code to add in my "xxx.inc.php" file. I added a print button in my application that opens the printmap.php file, and the code in the other file was added in my xxx.inc.php file. But when i click the 'Imprimer' button in the new window nothing happend. I found the error using the java console in mozilla firefox. This is the error: "frm.elements.print_map has no properties". This mistake happends in this line: "frm.elements.print_map.value = true" into the carto_print function. Thanks and i hope that you can help again. I'll be waiting for your response. Carlos From URaudszus at STADTDO.DE Thu Aug 11 11:13:09 2005 From: URaudszus at STADTDO.DE (Uwe Raudszus) Date: Fri Feb 8 15:07:54 2008 Subject: WFS DescribeFeature Message-ID: Hello, i have updated my MapServer from 4.4.2 to 4.6.0. The response of the DescribeFeature Request has changed now. Does any one have any idea where are my attributes now? Thanks. Uwe Request: http://doris/mapserver/mapserv.exe?map=d:\UMNMapServer\Dienste\BPlan\bplanwfs.map&SERVICE=WFS&VERSION=1.0.0 &REQUEST=DescribeFeatureType&TYPENAME=Bebauungsplangrenzen Response with Version 4.4.2 Response with Version 4.6.0 From doylep at HOTMAIL.COM Thu Aug 11 11:07:42 2005 From: doylep at HOTMAIL.COM (Paul) Date: Fri Feb 8 15:07:54 2008 Subject: High res images Message-ID: I need to set up Quickbird geotif images into Mapserver, is there a tutorial for this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/ba132e31/attachment.html From tnaberhaus at MONTANA.EDU Thu Aug 11 12:15:17 2005 From: tnaberhaus at MONTANA.EDU (Naberhaus, Thomas) Date: Fri Feb 8 15:07:54 2008 Subject: problem with php mapscript layerobj functions Message-ID: Thanks for your reply, Phil. That is pretty discouraging news! Did you abandon using MapServer or migrate to a different OS? Does anyone else have any ideas about this issue? Thanks, Thomas -----Original Message----- From: Phillip Neal [mailto:pneal@mbl.edu] Sent: Thu 8/11/2005 5:31 AM To: Naberhaus, Thomas Cc: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with php mapscript layerobj functions Dear All, I had the same mapscript 'layer' problem on a Fedora 3 installation. I got a segmentation fault. I never figured out what was wrong. I tried all different kinds of recompiles and versions. But I couldn't shake the error. Phil On Aug 10, 2005, at 6:19 PM, Naberhaus, Thomas wrote: > > Hello List, > > I am running mapserver on debian sarge and have just begun to work > with it. The examples seem to work well. > However when attempting to use the php mapscript functions getLayer(), > getLayerByName(), or ms_newLayerObj($map), the script fails and apache > reports a segmentation fault. > > I installed MapServer on Windows XP and the same script works properly. > > Does anyone have any ideas what might be wrong or how to get the > functions to work on the debian installation? > > Thanks, > Thomas > > /*********************************** > Thomas Naberhaus > Technology Coordinator > Mountain Prairie Node, NBII > Big Sky Institute > Montana State University > 114 AJM Johnson Hall > Bozeman, MT 59717 > voice: (406) 994-5786 > fax: (406) 994-5122 > tnaberhaus@montana.edu > ***********************************/ > > > Phillip Neal Senior Research Assistant Josephine Bay Paul Center for Comparative Molecular Biology and Evolution Marine Biological Laboratory 7 MBL Street Woods Hole, MA 02540 pneal@mbl.edu Tel: 508-289-7153 Fax: 508-289-4727 "Simplicity of character is no hindrance to the subtlety of intellect." - John Morley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/88aa9aa7/attachment.html From bartvde at XS4ALL.NL Thu Aug 11 12:53:23 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:54 2008 Subject: WFS DescribeFeature In-Reply-To: Message-ID: Use METADATA .. gml_include_items "all" .. END at your LAYER's METADATA section. This is becoming a question for the FAQ :-) Best regards, Bart On Thu, 11 Aug 2005 17:13:09 +0200, Uwe Raudszus wrote: > Hello, > > i have updated my MapServer from 4.4.2 to 4.6.0. The response of the > DescribeFeature Request has changed now. > > Does any one have any idea where are my attributes now? > > Thanks. > Uwe > > Request: > http://doris/mapserver/mapserv.exe?map=d:\UMNMapServer\Dienste\BPlan\bplanwfs.map&SERVICE=WFS&VERSION=1.0.0 > &REQUEST=DescribeFeatureType&TYPENAME=Bebauungsplangrenzen > > Response with Version 4.4.2 > > targetNamespace="http://doris.stadtdo.de/doris" > xmlns:doris="http://doris.stadtdo.de/doris" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="http://www.w3.org/2001/XMLSchema" > xmlns:gml="http://www.opengis.net/gml" > elementFormDefault="qualified" version="0.1" > > > schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2 > /feature.xsd" /> > > type="doris:Bebauungsplangrenzen_Type" > substitutionGroup="gml:_Feature" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Response with Version 4.6.0 > > targetNamespace="http://doris.stadtdo.de/doris" > xmlns:doris="http://doris.stadtdo.de/doris" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="http://www.w3.org/2001/XMLSchema" > xmlns:gml="http://www.opengis.net/gml" > elementFormDefault="qualified" version="0.1" > > > schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2 > /feature.xsd" /> > > type="doris:BebauungsplangrenzenType" > substitutionGroup="gml:_Feature" /> > > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From David.Fawcett at STATE.MN.US Thu Aug 11 13:08:05 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:54 2008 Subject: problem with php mapscript layerobj functions Message-ID: Have you tried the FGS Linux Installer from DM Solutions? http://maptools.org/fgs/ David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Naberhaus, Thomas Sent: Thursday, August 11, 2005 11:15 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with php mapscript layerobj functions Thanks for your reply, Phil. That is pretty discouraging news! Did you abandon using MapServer or migrate to a different OS? Does anyone else have any ideas about this issue? Thanks, Thomas -----Original Message----- From: Phillip Neal [ mailto:pneal@mbl.edu] Sent: Thu 8/11/2005 5:31 AM To: Naberhaus, Thomas Cc: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem with php mapscript layerobj functions Dear All, I had the same mapscript 'layer' problem on a Fedora 3 installation. I got a segmentation fault. I never figured out what was wrong. I tried all different kinds of recompiles and versions. But I couldn't shake the error. Phil On Aug 10, 2005, at 6:19 PM, Naberhaus, Thomas wrote: > > Hello List, > > I am running mapserver on debian sarge and have just begun to work > with it. The examples seem to work well. > However when attempting to use the php mapscript functions getLayer(), > getLayerByName(), or ms_newLayerObj($map), the script fails and apache > reports a segmentation fault. > > I installed MapServer on Windows XP and the same script works properly. > > Does anyone have any ideas what might be wrong or how to get the > functions to work on the debian installation? > > Thanks, > Thomas > > /*********************************** > Thomas Naberhaus > Technology Coordinator > Mountain Prairie Node, NBII > Big Sky Institute > Montana State University > 114 AJM Johnson Hall > Bozeman, MT 59717 > voice: (406) 994-5786 > fax: (406) 994-5122 > tnaberhaus@montana.edu > ***********************************/ > > > Phillip Neal Senior Research Assistant Josephine Bay Paul Center for Comparative Molecular Biology and Evolution Marine Biological Laboratory 7 MBL Street Woods Hole, MA 02540 pneal@mbl.edu Tel: 508-289-7153 Fax: 508-289-4727 "Simplicity of character is no hindrance to the subtlety of intellect." - John Morley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/1904b22c/attachment.html From tibben at OCF.BERKELEY.EDU Thu Aug 11 13:26:48 2005 From: tibben at OCF.BERKELEY.EDU (tim) Date: Fri Feb 8 15:07:54 2008 Subject: problem with php mapscript layerobj functions In-Reply-To: <939353102D6E2540BD0EC960D4EAD323073C10@GEMSTONES.msu.monta na.edu> Message-ID: Hi Tom I have a MapServer installation using php-mapscript on Fedora Core 3 and Fedora Core 4 and both work fine. The Core 3 is on a Toshiba Laptop (pretty cheap-o computer) and the Core 4 is on a Dell Server. perhaps it is a hardware issue . . . tim Tim Norris p.s. say hi to Tom and Rankin for me . . . At 11:15 AM 8/11/2005, Naberhaus, Thomas wrote: >Thanks for your reply, Phil. > >That is pretty discouraging news! > >Did you abandon using MapServer or migrate to a different OS? > >Does anyone else have any ideas about this issue? > >Thanks, >Thomas > > >-----Original Message----- >From: Phillip Neal [mailto:pneal@mbl.edu] >Sent: Thu 8/11/2005 5:31 AM >To: Naberhaus, Thomas >Cc: MAPSERVER-USERS@LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] problem with php mapscript layerobj >functions > >Dear All, > >I had the same mapscript 'layer' problem on a Fedora 3 installation. > >I got a segmentation fault. > >I never figured out what was wrong. > > >I tried all different kinds of recompiles and versions. But I couldn't >shake the error. > >Phil > >On Aug 10, 2005, at 6:19 PM, Naberhaus, Thomas wrote: > > > > > Hello List, > > > > I am running mapserver on debian sarge and have just begun to work > > with it. The examples seem to work well. > > However when attempting to use the php mapscript functions getLayer(), > > getLayerByName(), or ms_newLayerObj($map), the script fails and apache > > reports a segmentation fault. > > > > I installed MapServer on Windows XP and the same script works properly. > > > > Does anyone have any ideas what might be wrong or how to get the > > functions to work on the debian installation? > > > > Thanks, > > Thomas > > > > /*********************************** > > Thomas Naberhaus > > Technology Coordinator > > Mountain Prairie Node, NBII > > Big Sky Institute > > Montana State University > > 114 AJM Johnson Hall > > Bozeman, MT 59717 > > voice: (406) 994-5786 > > fax: (406) 994-5122 > > tnaberhaus@montana.edu > > ***********************************/ > > > > > > >Phillip Neal >Senior Research Assistant >Josephine Bay Paul Center for >Comparative Molecular Biology and Evolution >Marine Biological Laboratory >7 MBL Street >Woods Hole, MA 02540 >pneal@mbl.edu >Tel: 508-289-7153 >Fax: 508-289-4727 > >"Simplicity of character is no hindrance to the subtlety of intellect." > > - John Morley > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/85420eed/attachment.html From stevem at SPATIALMAPPING.COM Thu Aug 11 14:16:41 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Fri Feb 8 15:07:55 2008 Subject: PHP/Mapscript 4.6.0 build fails when PHP is DSO/--with-regex=php Message-ID: Greetings, all: First, some context: I just got around to upgrading MapServer to 4.6.0 (from 4.4.1), and I'm having a problem building the php_mapscript module. I'm running Slackware Linux 10.0, Apache 1.3.33, and PHP 4.3.10. PHP was built from source with a script that actually builds PHP twice: the first build creates an apache DSO using --with-apxs=/usr/sbin/apxs and --with-regex=php (plus lots of other configure switches, see below for the complete list); the second build creates the CGI and CLI interpreters using --with-regex=system (plus lots of others, see below). Now my problem: When I configure MapServer --with-php pointing to my PHP CGI/CLI build directory, php_mapscript.so successfully compiles. However, when I configure MapServer --with-php pointing to my PHP DSO build directory, the MapServer build fails with compilation errors. The failing gcc command and the corresponding error message appear as follows (I have saved the complete log, if anyone would like to see it): gcc -fPIC -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4 - USE_WMS_LYR -DUSE_WFS_LYR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS - DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_GD_GIF - DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -I/usr/local/src/mapserver-4.6.0 - I/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/.. - I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include - I/usr/local/include -I/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build - I/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/dl - I/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/main - I/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/Zend - I/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/include - I/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/TSRM - I/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/.. -c - o /usr/local/src/php/pkg_tmp/php-4.3.10-dso- build/regex/regerror.o /usr/local/src/php/pkg_tmp/php-4.3.10-dso- build/regex/regerror.c /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:38: error: `REG_OKAY' undeclared here (not in a function) /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:38: error: initializer element is not constant /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:38: error: (near initialization for `rerrs[0].code') /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:38: error: initializer element is not constant /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:38: error: (near initialization for `rerrs[0]') /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:39: error: initializer element is not constant /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:39: error: (near initialization for `rerrs[1]') /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:40: error: initializer element is not constant /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:40: error: (near initialization for `rerrs[2]') /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:41: error: initializer element is not constant /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:41: error: (near initialization for `rerrs[3]') /usr/local/src/php/pkg_tmp/php-4.3.10-dso-build/regex/regerror.c:42: error: initializer element is not constant .... (and so on; snipped for brevity) .... Strangely, the failure occurs while compiling regerror.c within the PHP source tree. It is clear that the above error is caused by my PHP DSO configuration, since my PHP CGI/CLI config works just fine with MapServer. Any ideas what's going on here? Additional details: The following are complete listings of the ./configure switches I used to build PHP and MapServer, just in case anyone wants to see them. Here are the PHP configure switches common to both the DSO and CGI/CLI builds: --prefix=/usr --sysconfdir=/etc --enable-discard-path --with-config-file-path=/etc/apache --enable-safe-mode --with-openssl --with-mhash --enable-bcmath --with-bz2 --with-pic --enable-calendar --enable-ctype --with-gdbm --with-db3 --enable-dbase --enable-ftp --with-iconv --with-exif --enable-exif --with-gd=/usr/local --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=/usr/local --with-gmp --with-pgsql=/usr/local/pgsql --with-curl=/usr --with-mysql=shared,/usr --with-gettext=shared,/usr --with-expat-dir=/usr --with-xml --enable-wddx --with-mm=/usr --enable-trans-sid --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-yp --enable-memory-limit --with-tsrm-pthreads --enable-shared --disable-debug --with-zlib=/usr Here are the additional switches used specifically for the PHP DSO build: --disable-static --with-apxs=/usr/sbin/apxs --with-regex=php Here are the additional switches used specifically for the PHP CGI/CLI build: --enable-force-cgi-redirect --enable-fastcgi --enable-pcntl --enable-sigchild --with-regex=system Finally, here are ./configure switches used to build php_mapscript.so for use with DSO PHP (when building it for use with CGI PHP, only the last switch is different): --with-gd=/usr/local --with-jpeg=/usr --with-freetype=/usr/local --with-zlib=/usr --with-png=/usr --without-tiff --without-eppl --with-proj=/usr/local --with-threads --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wmsclient --with-wfsclient --with-curl-config=/usr/bin/curl-config --disable-ignore-missing-data --disable-debug --with-php=/usr/local/src/php/pkg_tmp/php-4.3.10-dso-build Thanks, -SM -- On Mon, 6 Jun 2005 10:21:58 -0400, Bill Binko wrote: >On Mon, 6 Jun 2005, Camden Daily wrote: > >> Is this the link for it? >> >> http://cvs.gis.umn.edu/dist/mapserver-4.6.0-beta3.tar.gz > >That's the one! > >> >> I had previously been building PHP with the option >> '--with-regex=system'. Will I still need to configure PHP in this >> way? > >No, you should be able to run with either regex now. That makes running >against pre-built PHP binaries much simpler. You do need to have the PHP >#include files. > >You also do not need the --with-php-regex-dir parameter. Just use >--with-php=/usr or wherever your #includes are. > >Bill From lamarca at ACQUASOFTWARE.COM.BR Thu Aug 11 14:16:28 2005 From: lamarca at ACQUASOFTWARE.COM.BR (Leonardo Lamarca) Date: Fri Feb 8 15:07:55 2008 Subject: Problems with MapServer and Postgis - find_srid() Message-ID: Hi everyone! I need a help! I am running Mapserver 4.6.0 in Linux with PostgreSQL 7.4.5 and Postgis 1.0.3 I am trying to run my first web-map application using Postgis. When I call de mapfile, MapServer return this error below. I have an web-map application running with shape files. I converted these shape files to PostgreSQL using shp2pgsql and change mapfile to connect and get data through PostgreSQL. Regards, Leonardo Lamarca ========================================================= msDrawMap(): Image handling error. Failed to draw layer named 'uf'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT REGIAO::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from public.br_uf WHERE the_geom && setSRID('BOX3D(-79.1998333333333 -33.751,-27.1691666666667 5.272)'::BOX3D, find_srid('','public.br_uf ','the_geom') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation.php Mappostgis.c - version of Jan 23/2004. ================================================================ Part of my mapfile: MAP NAME "my2ndmap" EXTENT -73.991 -33.751 -32.378 5.272 FONTSET "fontset.txt" IMAGETYPE PNG #SHAPEPATH "mapas" SIZE 600 450 SYMBOLSET "symbolset.sym" STATUS ON UNITS DD # sim. ? necess?rio especificar a unidade de medida usada pelo MAP->PROJECTION #~ PROJECTION #~ "init=epsg:4291" # <4291> +proj=longlat +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 no_defs <> #~ END WEB IMAGEPATH "/var/www/html/my2ndmap/tmp/" IMAGEURL "/my2ndmap/tmp/" MINSCALE 25000 MAXSCALE 35000000 TEMPLATE "web_template.html" HEADER "web_header.html" FOOTER "web_footer.html" LOG "/var/www/html/my2ndmap/log" END QUERYMAP COLOR 0 0 255 SIZE 300 225 STATUS ON STYLE HILITE END LEGEND IMAGECOLOR 255 255 255 POSITION UR KEYSIZE 12 10 STATUS ON LABEL ANTIALIAS TRUE SIZE SMALL TYPE BITMAP COLOR 0 0 0 END END REFERENCE COLOR -1 -1 -1 EXTENT -73.991 -33.751 -32.378 5.272 IMAGE "br_refmap.png" MAXBOXSIZE 119 OUTLINECOLOR 255 0 0 SIZE 120 90 STATUS ON END SCALEBAR COLOR 255 0 0 INTERVALS 3 OUTLINECOLOR 0 0 0 POSITION LR SIZE 200 3 STATUS EMBED STYLE 0 UNITS KILOMETERS LABEL ANTIALIAS TRUE SIZE SMALL TYPE BITMAP COLOR 0 0 0 END END LAYER # uf #~ PROJECTION #~ "init=epsg:4291" # <4291> +proj=longlat +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 no_defs <> #~ END NAME "uf" DEBUG on CONNECTIONTYPE postgis CONNECTION "user=[*******] password=[*******] dbname=gis_teste01 host=localhost" TYPE POLYGON DATA "the_geom from public.br_uf " STATUS DEFAULT CLASSITEM "REGIAO" CLASS NAME "Norte" EXPRESSION "NORTE" OUTLINECOLOR 46 92 92 COLOR 0 192 0 END CLASS NAME "Nordeste" EXPRESSION "NORDESTE" OUTLINECOLOR 46 92 92 COLOR 192 192 192 END CLASS NAME "Centroeste" EXPRESSION "CENTROESTE" OUTLINECOLOR 46 92 92 COLOR 255 128 128 END CLASS NAME "Sudeste" EXPRESSION "SUDESTE" OUTLINECOLOR 46 92 92 COLOR 255 255 128 END CLASS NAME "Sul" EXPRESSION "SUL" OUTLINECOLOR 46 92 92 COLOR 128 128 255 END END (....) From carloseduardo at COSTARRICENSE.CR Thu Aug 11 14:32:58 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Fri Feb 8 15:07:55 2008 Subject: Problems with MapServer and Postgis - find_srid() Message-ID: Try with this in the DATA line: DATA "the_geom from public.br_uf as data using unique gid using srid=-1" From pscott at UWC.AC.ZA Thu Aug 11 14:36:52 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Fri Feb 8 15:07:55 2008 Subject: Problems with MapServer and Postgis - find_srid() Message-ID: Leonardo, Try and leave off the part of the data connection. i.e. Change DATA "the_geom from public.br_uf " to: DATA "the_geom from br_uf " --Paul >>> Leonardo Lamarca 08/11/05 8:16 PM >>> LAYER # uf #~ PROJECTION #~ "init=epsg:4291" # <4291> +proj=longlat +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 no_defs <> #~ END NAME "uf" DEBUG on CONNECTIONTYPE postgis CONNECTION "user=[*******] password=[*******] dbname=gis_teste01 host=localhost" TYPE POLYGON DATA "the_geom from public.br_uf " STATUS DEFAULT CLASSITEM "REGIAO" CLASS NAME "Norte" EXPRESSION "NORTE" OUTLINECOLOR 46 92 92 COLOR 0 192 0 END CLASS NAME "Nordeste" EXPRESSION "NORDESTE" OUTLINECOLOR 46 92 92 COLOR 192 192 192 END From kenlord at GMAIL.COM Thu Aug 11 14:35:26 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri Feb 8 15:07:55 2008 Subject: Problems with MapServer and Postgis - find_srid() In-Reply-To: <42FB95FC.7010503@acquasoftware.com.br> Message-ID: Hi Leonardo, I suspect that when you placed the shapefile into PostGIS, you may not have set the SRID value: shp2pgsql ...... -s 26910 .... Try a DATA string something like this: DATA "the_geom from (SELECT * from mylayer) as foo using unique gid using SRID=26910" ... use the SRID number appropriate for you. Cheers, Ken Lord Vancouver BC On 8/11/05, Leonardo Lamarca wrote: > > Hi everyone! > > I need a help! I am running Mapserver 4.6.0 in Linux with PostgreSQL > 7.4.5 and Postgis 1.0.3 > I am trying to run my first web-map application using Postgis. When I > call de mapfile, MapServer return this error below. > > I have an web-map application running with shape files. I converted > these shape files to PostgreSQL using shp2pgsql and change mapfile to > connect and get data through PostgreSQL. > > Regards, > Leonardo Lamarca > > ========================================================= > > msDrawMap(): Image handling error. Failed to draw layer named 'uf'. > prepare_database(): Query error. Error executing POSTGIS DECLARE (the > actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > > REGIAO::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text > from public.br_uf WHERE the_geom && setSRID('BOX3D(-79.1998333333333 > -33.751,-27.1691666666667 5.272)'::BOX3D, find_srid('','public.br_uf > ','the_geom') )' > > Postgresql reports the error as 'ERROR: find_srid() - couldnt find the > corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS > table? Is there an uppercase/lowercase missmatch? ' > > More Help: > > Error with POSTGIS data variable. You specified ''. > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from () as foo using unique name> using SRID=' > > Make sure you put in the 'using unique ' and 'using SRID=#' > clauses in. > > For more help, please see http://postgis.refractions.net/documentation.php > > Mappostgis.c - version of Jan 23/2004. > > ================================================================ > > Part of my mapfile: > > > MAP > NAME "my2ndmap" > EXTENT -73.991 -33.751 -32.378 5.272 > FONTSET "fontset.txt" > IMAGETYPE PNG > #SHAPEPATH "mapas" > SIZE 600 450 > SYMBOLSET "symbolset.sym" > STATUS ON > UNITS DD # sim. ? necess?rio especificar a unidade de > medida usada pelo MAP->PROJECTION > > #~ PROJECTION > #~ "init=epsg:4291" # <4291> +proj=longlat +ellps=GRS67 > +towgs84=-57,1,-41,0,0,0,0 no_defs <> > #~ END > > WEB > IMAGEPATH "/var/www/html/my2ndmap/tmp/" > IMAGEURL "/my2ndmap/tmp/" > MINSCALE 25000 > MAXSCALE 35000000 > TEMPLATE "web_template.html" > HEADER "web_header.html" > FOOTER "web_footer.html" > LOG "/var/www/html/my2ndmap/log" > END > > QUERYMAP > COLOR 0 0 255 > SIZE 300 225 > STATUS ON > STYLE HILITE > END > > LEGEND > IMAGECOLOR 255 255 255 > POSITION UR > KEYSIZE 12 10 > STATUS ON > LABEL > ANTIALIAS TRUE > SIZE SMALL > TYPE BITMAP > COLOR 0 0 0 > END > END > > REFERENCE > COLOR -1 -1 -1 > EXTENT -73.991 -33.751 -32.378 5.272 > IMAGE "br_refmap.png" > MAXBOXSIZE 119 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > STATUS ON > END > > SCALEBAR > COLOR 255 0 0 > INTERVALS 3 > OUTLINECOLOR 0 0 0 > POSITION LR > SIZE 200 3 > STATUS EMBED > STYLE 0 > UNITS KILOMETERS > LABEL > ANTIALIAS TRUE > SIZE SMALL > TYPE BITMAP > COLOR 0 0 0 > END > END > > > LAYER # uf > #~ PROJECTION > #~ "init=epsg:4291" # <4291> +proj=longlat +ellps=GRS67 > +towgs84=-57,1,-41,0,0,0,0 no_defs <> > #~ END > NAME "uf" > DEBUG on > CONNECTIONTYPE postgis > CONNECTION "user=[*******] password=[*******] dbname=gis_teste01 > host=localhost" > TYPE POLYGON > DATA "the_geom from public.br_uf " > STATUS DEFAULT > CLASSITEM "REGIAO" > CLASS > NAME "Norte" > EXPRESSION "NORTE" > OUTLINECOLOR 46 92 92 > COLOR 0 192 0 > END > CLASS > NAME "Nordeste" > EXPRESSION "NORDESTE" > OUTLINECOLOR 46 92 92 > COLOR 192 192 192 > END > CLASS > NAME "Centroeste" > EXPRESSION "CENTROESTE" > OUTLINECOLOR 46 92 92 > COLOR 255 128 128 > END > CLASS > NAME "Sudeste" > EXPRESSION "SUDESTE" > OUTLINECOLOR 46 92 92 > COLOR 255 255 128 > END > CLASS > NAME "Sul" > EXPRESSION "SUL" > OUTLINECOLOR 46 92 92 > COLOR 128 128 255 > END > END > > (....) > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/f25ca10e/attachment.html From lamarca at ACQUASOFTWARE.COM.BR Thu Aug 11 15:24:29 2005 From: lamarca at ACQUASOFTWARE.COM.BR (Leonardo Lamarca) Date: Fri Feb 8 15:07:55 2008 Subject: SOLVED - Problems with MapServer and Postgis - find_srid() In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/29942fa5/attachment.html From jaime at MAINTASK.COM Thu Aug 11 14:53:56 2005 From: jaime at MAINTASK.COM (=?ISO-8859-1?Q?Jaime_Mej=EDa?=) Date: Fri Feb 8 15:07:55 2008 Subject: Problems with MapServer and Postgis - find_srid() In-Reply-To: Message-ID: Best try DATA "the_geom from (select setsrid(the_geom,1) as the_geom, gid from yourtable) as data using unique gid using srid=1" Jaime Carlos Eduardo Sibaja Salazar escribi?: >Try with this in the DATA line: >DATA "the_geom from public.br_uf as data using unique gid using srid=-1" > > > > From tsfu at HKUCS.ORG Thu Aug 11 21:45:07 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:55 2008 Subject: limit in PostgreSQL Message-ID: In Oracle, we have rowid for limiting the number of selected rows/records. In PostgreSQL, we have limit and offset. But how do we use limit in the MapServer. For Oracle spatial, we simply add rowid in the FILTER statement. What do we do in PostGIS connection? Thanks. Jason From richard.greenwood at GMAIL.COM Thu Aug 11 22:28:14 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri Feb 8 15:07:55 2008 Subject: swamp or wetland hatch In-Reply-To: <42FA6674.10501@propertykey.com> Message-ID: On 8/10/05, Jeff Hoffmann wrote: > Richard Greenwood wrote: > > Does anyone have a nice swamp or wetland hatch that they would care to share? > > This is what I created for such places. Nice is up the the eye of the > beholder -- I'm definately no graphic designer, but I think it looks OK. > > -- > Jeff Hoffmann > jeff@propertykey.com Well, yeah, that looks nice to me. Is it vector or raster? Regards, -- Richard Greenwood richard.greenwood@gmail.com www.greenwoodmap.com From woodbri at SWOODBRIDGE.COM Thu Aug 11 22:50:38 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:07:55 2008 Subject: swamp or wetland hatch In-Reply-To: Message-ID: Richard Greenwood wrote: > On 8/10/05, Jeff Hoffmann wrote: > >>Richard Greenwood wrote: >> >>>Does anyone have a nice swamp or wetland hatch that they would care to share? >> >>This is what I created for such places. Nice is up the the eye of the >>beholder -- I'm definately no graphic designer, but I think it looks OK. >> >>-- >>Jeff Hoffmann >>jeff@propertykey.com > > > Well, yeah, that looks nice to me. Is it vector or raster? Its a png image and it looks great BTW. -Steve From woodbri at SWOODBRIDGE.COM Thu Aug 11 22:56:56 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:07:55 2008 Subject: limit in PostgreSQL In-Reply-To: Message-ID: Jason FU wrote: > In Oracle, we have rowid for limiting the number of selected rows/records. > In PostgreSQL, we have limit and offset. But how do we use limit in the > MapServer. For Oracle spatial, we simply add rowid in the FILTER statement. > What do we do in PostGIS connection? DATA "the_geom from (SELECT gid, the_geom, ... FROM mytable LIMIT 2000) as foo using srid=4326 using unique gid" so basically you can put any SQL query as a sub-select as long as you return at least the_geom and gid or oid, other fields can be used for class expressions. -Steve W http://imaptools.com/ From jdenisgiguere at FASTMAIL.FM Fri Aug 12 00:00:47 2005 From: jdenisgiguere at FASTMAIL.FM (Jean-Denis Giguere) Date: Fri Feb 8 15:07:55 2008 Subject: limit in PostgreSQL In-Reply-To: <42FC0FF8.6080800@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Jason FU wrote: > >> In Oracle, we have rowid for limiting the number of selected >> rows/records. >> In PostgreSQL, we have limit and offset. But how do we use limit in the >> MapServer. For Oracle spatial, we simply add rowid in the FILTER >> statement. >> What do we do in PostGIS connection? > > > DATA "the_geom from (SELECT gid, the_geom, ... FROM mytable LIMIT 2000) > as foo using srid=4326 using unique gid" > > so basically you can put any SQL query as a sub-select as long as you > return at least the_geom and gid or oid, other fields can be used for > class expressions. > > -Steve W > http://imaptools.com/ Is there a trick to use the spatial index automatically generated by MS inside the sub-select query ? This could be useful when you want to use complex request on a small part of a large database. Regards, Jean-Denis From tsfu at HKUCS.ORG Fri Aug 12 00:15:54 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:55 2008 Subject: limit in PostgreSQL Message-ID: It works. Thanks! But I've got one more question. Limit and offset work within the subquery. Then how about a union for the subqueries? And what do we do for the very long subquery? Could we use \ in Oracle or...? Thanks. Jason On Thu, 11 Aug 2005 22:56:56 -0400, Stephen Woodbridge wrote: >Jason FU wrote: >> In Oracle, we have rowid for limiting the number of selected rows/records. >> In PostgreSQL, we have limit and offset. But how do we use limit in the >> MapServer. For Oracle spatial, we simply add rowid in the FILTER statement. >> What do we do in PostGIS connection? > >DATA "the_geom from (SELECT gid, the_geom, ... FROM mytable LIMIT 2000) >as foo using srid=4326 using unique gid" > >so basically you can put any SQL query as a sub-select as long as you >return at least the_geom and gid or oid, other fields can be used for >class expressions. > >-Steve W > http://imaptools.com/ From steve at SIERRACLUB.BC.CA Fri Aug 12 00:17:37 2005 From: steve at SIERRACLUB.BC.CA (Steve Young) Date: Fri Feb 8 15:07:55 2008 Subject: Mapscript getClassByName Message-ID: Thanks Bill, That gives me what I needed. Steve ________________________________ From: William Bronsema [mailto:wbronsema@dmsolutions.ca] Sent: August 11, 2005 5:35 AM To: Steve Young; MAPSERVER-USERS@LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Mapscript getClassByName Hi Steve, The work around would be something like this: for ($i=0; $i<$oLayer->numclasses; $i++) { $oClass = $ oLayer->getClass($i); If ( $oClass->name == $myClassName ) { // do something } } Makes sense? HTH Regards, Bill ________________________________________________ William A. Bronsema, C.E.T. Software & Applications Development, DM Solutions Group Inc. ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Steve Young Sent: Wednesday, August 10, 2005 8:40 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapscript getClassByName Hi List, I'm trying to get a handle on mapscript. One of the mapfile attributes I want to access for dynamic legend creation is the class name. As best I can tell this isn't accessible using getClassByName(); or similar function. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=209. Mentions there is a simple workaround. Unfortuately it isn't simple enough for me to figure out. Can anyone help? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/c0900339/attachment.html From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 12 05:12:17 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: Problem with php_mapscript and ecw Message-ID: Hi Bill, list, we are running into this same issue unfortunately. I am trying to get the ECW3.2 beta source code SDK compiled using Microsoft Visual Studio 6 but there are some problems compiling ... I did include the platform SDK. And ofcourse I cannot apply your patch to 3.1 since that is only a binary distribution. What's the best thing to try? Which part of the ECW 3.2 beta SDK do I need to compile exactly for GDAL? Did anybody succeed in doing this all on Windows? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Bill Binko 08/10/05 06:56pm >>> On Wed, 10 Aug 2005, James P. Browne wrote: > I am running a Debian Linux/Gnu server and compiled the new ECW driver into > GDAL and compiled Mapserver against that. > > When I write PHP4 code using php_mapscript I have no trouble creating an > interface where the user can turn shape files on and off, but when either of > ECW layers are turned on, they only work intermittently. The correct output > is created in the image directory, but there is usually no php/html output > after the line > dl('php_mapscript.so'); > If there is no output before that, it looks like nothing happened when using > firefox or mozila, although IE returns a "page cannot be > displayed...technical difficulty..." error. The images were created on the > server, it seems that php_mapscript locks up. > > If you switch back to shape files, the page works normally again. > > I can't see what I could be doing wrong. Any ideas? > > I am pretty sure I know the problem here: libecw 3.1 (all versions) have a multi-threading bug that sometimes leaves a thread hanging and keeps the process from completing. I posted a patch to the ermapper forums, and Tom has taken it and incorporated it into their latest 3.2 betas (I believe). There are other problems with ECW at the moment, but the good news is that several very smart people are "all over it" at the moment. Frank and Tom are both working to get a 3.2 out (with that and other fixes) and Frank has updated the GDAL interface to ECW to match it in GDAL CVS. Now: to solve your problem... 1) If this can wait a few weeks: just wait for libecw3.2 to be released and for Frank to sign off on the changes to GDAL. Your problems will probably go away. 2) If this is critical, you have two options: a) If you feel comfortable doing it, apply the patch attached to this discussion to the libecw3.1 sources and rebuild completely ( make clean all) http://forums.ermapper.com/viewtopic.php?t=486&highlight= b) If you're really realy stuck, find someone who can build you a patched library. I can do it on Mandrake 10.1, but you should be able to find someone to help on most platforms if you ask nicely. Bill From jorge.agudelo at PREMPER.COM Fri Aug 12 08:23:08 2005 From: jorge.agudelo at PREMPER.COM (Jorge Agudelo) Date: Fri Feb 8 15:07:55 2008 Subject: Swf layers Message-ID: Hello Everyone, It is possible to change the way mapserver generates the code for swf = layers with swfdumpattributes?, the problem is that mapserver generates = a lot of code for every object (onrollover, onrelease), this code could = be done dinamically using a for cycle when loading the swf this way it = will decrease a lot the swf size. The problem is that if the swfdumpattributes tag is deleted the objects = of the layers becomes shapes so it is no possible to work with them by = code. It is there anyway to tell mapserver that make the objects be = buttons but not to put code for every object? Thanks for your time. Jorge Agudelo From mgoncalves at DSI.UMINHO.PT Fri Aug 12 10:11:41 2005 From: mgoncalves at DSI.UMINHO.PT (=?ISO-8859-1?Q?Miguel_Gon=E7alves?=) Date: Fri Feb 8 15:07:55 2008 Subject: DWithin Filter Message-ID: I am using the WFS DWithin filter to get all the cities in a range of 1000 meters from a point using the following request; http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter= -8.418000,41.539600 1000 In the results that I obtain the distance of the cities from the point is not being accurate. I believe I am having problems with the units. Can somebody help me to correct my request? Beste regards. Miguel From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 12 10:13:58 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: DWithin Filter Message-ID: Which Mapserver version are you using? There was a bug with the TOLERANCEUNITS not being set. As a workaround you can try to set TOLERANCEUNITS METERS on your LAYER. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Miguel Gon?alves 08/12/05 04:11pm >>> I am using the WFS DWithin filter to get all the cities in a range of 1000 meters from a point using the following request; http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter= -8.418000,41.539600 1000 In the results that I obtain the distance of the cities from the point is not being accurate. I believe I am having problems with the units. Can somebody help me to correct my request? Beste regards. Miguel From mgoncalves at DSI.UMINHO.PT Fri Aug 12 10:26:12 2005 From: mgoncalves at DSI.UMINHO.PT (=?ISO-8859-1?Q?Miguel_Gon=E7alves?=) Date: Fri Feb 8 15:07:55 2008 Subject: DWithin Filter In-Reply-To: Message-ID: I am using MapServer 4.4.1. TOLERANCEUNITS METERS is already set in the cities layer but results are the same. When I put the distance=0,9 I get the city that coincides with the point but, when I put distance=1 I get a lot of cities that are really far from the point. Bart van den Eijnden wrote: >Which Mapserver version are you using? > >There was a bug with the TOLERANCEUNITS not being set. As a workaround you can try to set TOLERANCEUNITS METERS on your LAYER. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > > >>>>Miguel Gon?alves 08/12/05 04:11pm >>> >>>> >>>> >I am using the WFS DWithin filter to get all the cities in a range of >1000 meters from a point >using the following request; > >http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter= > > > > -8.418000,41.539600 > > 1000 > > > >In the results that I obtain the distance of the cities from the point >is not being accurate. >I believe I am having problems with the units. >Can somebody help me to correct my request? >Beste regards. >Miguel > > > From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 12 10:29:29 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: DWithin Filter Message-ID: Can you try upgrading to Mapserver 4.6? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Miguel Gon?alves 08/12/05 04:26pm >>> I am using MapServer 4.4.1. TOLERANCEUNITS METERS is already set in the cities layer but results are the same. When I put the distance=0,9 I get the city that coincides with the point but, when I put distance=1 I get a lot of cities that are really far from the point. Bart van den Eijnden wrote: >Which Mapserver version are you using? > >There was a bug with the TOLERANCEUNITS not being set. As a workaround you can try to set TOLERANCEUNITS METERS on your LAYER. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > > >>>>Miguel Gon?alves 08/12/05 04:11pm >>> >>>> >>>> >I am using the WFS DWithin filter to get all the cities in a range of >1000 meters from a point >using the following request; > >http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter= > > > > -8.418000,41.539600 > > 1000 > > > >In the results that I obtain the distance of the cities from the point >is not being accurate. >I believe I am having problems with the units. >Can somebody help me to correct my request? >Beste regards. >Miguel > > > From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 12 10:39:54 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: DWithin Filter Message-ID: Mapserver 4.6 is the latest release version for Windows, see: http://www.maptools.org/dl/mapserver-4.6.0-win32-php4.3.11.zip Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Miguel Gon?alves 08/12/05 04:35pm >>> It will not be possible to upgrade it because I am working in Windows (not my choice) and the last version of MapServer for this operating system is the one I am using. Best regards, Miguel Bart van den Eijnden wrote: >Can you try upgrading to Mapserver 4.6? > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > > >>>>Miguel Gon?alves 08/12/05 04:26pm >>> >>>> >>>> >I am using MapServer 4.4.1. >TOLERANCEUNITS METERS is already set in the cities layer but results are >the same. >When I put the distance=0,9 I get the city that coincides with the point >but, >when I put distance=1 I get a lot of cities that are really far from the >point. > > >Bart van den Eijnden wrote: > > > >>Which Mapserver version are you using? >> >>There was a bug with the TOLERANCEUNITS not being set. As a workaround you can try to set TOLERANCEUNITS METERS on your LAYER. >> >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera IT Solutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN@Syncera-ITSolutions.nl >> >> >> >> >> >>>>>Miguel Gon?alves 08/12/05 04:11pm >>> >>>>> >>>>> >>>>> >>>>> >>I am using the WFS DWithin filter to get all the cities in a range of >>1000 meters from a point >>using the following request; >> >>http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter= >> >> >> >> -8.418000,41.539600 >> >> 1000 >> >> >> >>In the results that I obtain the distance of the cities from the point >>is not being accurate. >>I believe I am having problems with the units. >>Can somebody help me to correct my request? >>Beste regards. >>Miguel >> >> >> >> >> > > > From assefa at DMSOLUTIONS.CA Fri Aug 12 10:43:13 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri Feb 8 15:07:55 2008 Subject: DWithin Filter In-Reply-To: <42FCB184.5060607@dsi.uminho.pt> Message-ID: Parsing of the units parameter was done for the 4.6 release (Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1342). If possible you should use 4.6 and above. Later, Miguel Gon?alves wrote: > I am using MapServer 4.4.1. > TOLERANCEUNITS METERS is already set in the cities layer but results are > the same. > When I put the distance=0,9 I get the city that coincides with the point > but, > when I put distance=1 I get a lot of cities that are really far from the > point. > > > Bart van den Eijnden wrote: > >> Which Mapserver version are you using? >> >> There was a bug with the TOLERANCEUNITS not being set. As a workaround >> you can try to set TOLERANCEUNITS METERS on your LAYER. >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN@Syncera-ITSolutions.nl >> >> >> >>>>> Miguel Gon?alves 08/12/05 04:11pm >>> >>>>> >> >> I am using the WFS DWithin filter to get all the cities in a range of >> 1000 meters from a point >> using the following request; >> >> http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter= >> >> >> >> -8.418000,41.539600 >> >> 1000 >> >> >> >> In the results that I obtain the distance of the cities from the point >> is not being accurate. >> I believe I am having problems with the units. >> Can somebody help me to correct my request? >> Beste regards. >> Miguel >> >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From EWNUTTALL at QINETIQ.COM Fri Aug 12 10:46:19 2005 From: EWNUTTALL at QINETIQ.COM (Nuttall Edward W) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree Message-ID: Is there any reason why I should choose MapServer over Deegree? It seems to based on legacy technologies (C, CGI) yet most of the recent GIS development books around seem to use it in their examples? The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. Emails and other electronic communication with QinetiQ may be monitored. Calls to QinetiQ may be recorded for quality control, regulatory and monitoring purposes. From James.Browne at LIU.EDU Fri Aug 12 10:56:55 2005 From: James.Browne at LIU.EDU (James Browne) Date: Fri Feb 8 15:07:55 2008 Subject: Problem with php_mapscript and ecw Message-ID: Hello All, I "applied" the patch to the 3.2 beta by hand editing the thread.c file and NCSUtil.so built just fine, but I still had problems because libNCSEcw.so is not building due to a header file problem. in LIBNCSEcw.so undefined reference to 'NCSMutexTryBegin in function 'NCSecwGlobalTryLock' in NCSJP2FileView.o undefined reference to 'CNCSEvent::~CNCSEvent [in-charge()' in function (no function named) This is after double checking that I followed all of the other hand edits mentioned on the ERmapper forum thread. I will triple check all my steps over the weekend. HOWEVER: As an experiment, I tried the new "patched" 3.2 NCSUtil.so as a drop in replacement for the 3.1 version. This worked better, although now I get a "GDALRasterIO() failed when zooming in close, particularly in one image. Also: I can ask friends if anyone is willing to help with and auto-config for the ecwsdk, if that is still and issue. Jim -----Original Message----- From: UMN MapServer Users List on behalf of Bart van den Eijnden Sent: Fri 8/12/2005 5:12 AM To: MAPSERVER-USERS@lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Problem with php_mapscript and ecw Hi Bill, list, we are running into this same issue unfortunately. I am trying to get the ECW3.2 beta source code SDK compiled using Microsoft Visual Studio 6 but there are some problems compiling ... I did include the platform SDK. And ofcourse I cannot apply your patch to 3.1 since that is only a binary distribution. What's the best thing to try? Which part of the ECW 3.2 beta SDK do I need to compile exactly for GDAL? Did anybody succeed in doing this all on Windows? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Bill Binko 08/10/05 06:56pm >>> On Wed, 10 Aug 2005, James P. Browne wrote: > I am running a Debian Linux/Gnu server and compiled the new ECW driver into > GDAL and compiled Mapserver against that. > > When I write PHP4 code using php_mapscript I have no trouble creating an > interface where the user can turn shape files on and off, but when either of > ECW layers are turned on, they only work intermittently. The correct output > is created in the image directory, but there is usually no php/html output > after the line > dl('php_mapscript.so'); > If there is no output before that, it looks like nothing happened when using > firefox or mozila, although IE returns a "page cannot be > displayed...technical difficulty..." error. The images were created on the > server, it seems that php_mapscript locks up. > > If you switch back to shape files, the page works normally again. > > I can't see what I could be doing wrong. Any ideas? > > I am pretty sure I know the problem here: libecw 3.1 (all versions) have a multi-threading bug that sometimes leaves a thread hanging and keeps the process from completing. I posted a patch to the ermapper forums, and Tom has taken it and incorporated it into their latest 3.2 betas (I believe). There are other problems with ECW at the moment, but the good news is that several very smart people are "all over it" at the moment. Frank and Tom are both working to get a 3.2 out (with that and other fixes) and Frank has updated the GDAL interface to ECW to match it in GDAL CVS. Now: to solve your problem... 1) If this can wait a few weeks: just wait for libecw3.2 to be released and for Frank to sign off on the changes to GDAL. Your problems will probably go away. 2) If this is critical, you have two options: a) If you feel comfortable doing it, apply the patch attached to this discussion to the libecw3.1 sources and rebuild completely ( make clean all) http://forums.ermapper.com/viewtopic.php?t=486&highlight= b) If you're really realy stuck, find someone who can build you a patched library. I can do it on Mandrake 10.1, but you should be able to find someone to help on most platforms if you ask nicely. Bill From fwarmerdam at GMAIL.COM Fri Aug 12 11:16:15 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: Message-ID: On 8/12/05, Nuttall Edward W wrote: > Is there any reason why I should choose MapServer over Deegree? It seems to > based on legacy technologies (C, CGI) yet most of the recent GIS development > books around seem to use it in their examples? Edward, Well, if you don't want to get trapped using "legacy technologies" like C and CGI you might want to avoid MapServer. I don't know Deegree too well, but my vague understanding is that it and the geotools map server(s) have somewhat restricted sets of input formats supported, and also perhaps not great scalability in raster performance. If you are interested in scripting in Python, PHP or Perl I think you will find MapServer more readily used. Lastly MapServer has a larger and more active user community which can be important in some cases. That said, I am sure Deegree has lots of pluses too, and my understanding is that it has quite good standards compliance. You will really need to evaluate in terms of your particular needs. I am not aware of much "side by side" performance comparison of Deegree and MapServer. What might make sense is to provide a summary of what you want to accomplish and mapserver users could give a sense if it is practical with MapServer. > The Information contained in this E-Mail and any subsequent correspondence > is private and is intended solely for the intended recipient(s). > For those other than the recipient any disclosure, copying, distribution, > or any action taken or omitted to be taken in reliance on such information > is prohibited and may be unlawful. I am afraid despite your email notice above, I have taken the liberty of copying parts of your email into my reply, and redistributing it quite widely (back to the list). I realize that it isn't your fault, but I hope when given the opportunity you will let management know that such email disclaimers make you and your organization look like knobs in public forums. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From sgillies at FRII.COM Fri Aug 12 11:27:37 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: Message-ID: On Aug 12, 2005, at 8:46 AM, Nuttall Edward W wrote: > Is there any reason why I should choose MapServer over Deegree? It > seems to > based on legacy technologies (C, CGI) yet most of the recent GIS > development > books around seem to use it in their examples? > It's fast, easy to deploy, and makes nice looking maps from practically any data source. But, if you consider C to be legacy technology you should probably go with Deegree. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From kenlord at GMAIL.COM Fri Aug 12 12:58:29 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: <95feb99cfa5abe26aeaba460bfd838de@frii.com> Message-ID: Why is it that whenever something works very well ... but uses technology more than a year or so old, people jump out worried that it might hold them back with 'legacy technology'? Shouldn't the performance and adaptability of the product matter more? Don't these people consider the risks of being an early adopter of 'futuristic technology' such as: - small user base - lack of support - unexpected / hidden bugs - narrow focus / no flexibility - climbing a new learning curve - potential higher costs (for deployment and maintenance of an unknown beast) I have no idea what Deegree is like, I'm sure its great, my rant is not targetted at that product, just at the philosophy of 'legacy technology' This has been 'My Two Cents' with your host, Ken Lord. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050812/43aefcff/attachment.html From tylermitchell at SHAW.CA Fri Aug 12 12:51:08 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree Message-ID: > > Is there any reason why I should choose MapServer over Deegree? > It > > seems to > > based on legacy technologies (C, CGI) yet most of the recent GIS > > development > > books around seem to use it in their examples? The reason I use MapServer is because it can do so much more than just OGC specifications and for a Java server noob like me, it was easy to get started. MapServer for Windows (MS4W) and FGS (linux installer) make the MapSever easy to get going. But I know those who are comfortable with java servers and such have similarly easy approaches. Can someone tell me if Deegree ONLY does OGC/ISO specs or does it do others as well? Tyler From tim at COMMENSPACE.ORG Fri Aug 12 13:23:38 2005 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Fri Feb 8 15:07:55 2008 Subject: maxscale & queryByAttributes with mapscript Message-ID: I thought this might be a problem that others have confronted. When using queryByAttributes() (at least the PHP MapScript variety) there is an implicit queryByRect() with the map extent that happens before the attribute query. So if the map is zoomed to an extent that doesn't contain the feature that you're looking for, you'll never find it. The way I've dealt with this is to set the extent of the map to the extent of the query layer (or some max extent) before doing the queryByAttributes(). This, however, also fails if the query layer has a maxscale that is less (in mapserver terms) than the map scale when zoomed to this new extent. Getting around this requires temporarily setting the layer's maxscale to -1. Is this too obvious to be documented somewhere? Or is there a better method? Tim Schaub 406-579-5929 CommEn Space -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050812/8e6bc42d/attachment.html From kmulka at GLC.ORG Fri Aug 12 13:36:03 2005 From: kmulka at GLC.ORG (Kyle Mulka) Date: Fri Feb 8 15:07:55 2008 Subject: Help with WFS Message-ID: Hi all, I'm implementing a Google Maps WFS Interface. This will allow GIS people to plot and possibly query their data using the awsome web mapping tool that is Google Maps. So, if anyone knows WFS well, and can give me details of how I should implement a parser for the GML files WFS creates, please help. Maybe there is documentation that is shorter and clearer than the WFS spec on the OGC site? Maybe someone can guide me through the highlights of the spec as it relates to what I'm doing? -Kyle Mulka http://maps.kylemulka.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050812/3d9503c2/attachment.html From schuyler at NOCAT.NET Fri Aug 12 13:38:18 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri Feb 8 15:07:55 2008 Subject: Help with WFS In-Reply-To: <20050812173408.5742A241A@superior.great-lakes.net> Message-ID: * On 12-Aug-2005 at 10:34AM PDT, Kyle Mulka said: > > I'm implementing a Google Maps WFS Interface. This will allow GIS people to > plot and possibly query their data using the awsome web mapping tool that is > Google Maps. > > So, if anyone knows WFS well, and can give me details of how I should > implement a parser for the GML files WFS creates, please help. Hi, Kyle, here's a bit of code I wrote to take MapServer WFS output of a Wi-Fi hotspot database as a demo for our new book. It uses the JavaScript DOM API to parse out bits of point data from MS's GML. ----- var features = document.getElementByTagName('featureMember'); for (var i = 0; i < features.length; i++) { var ssid, lat, lon; var featureNode = features[i]; var ssidNode = featureNode.getElementByTagName('ssid'); if (ssidNode) ssid = ssidNode[0].childNodes[0].nodeValue; else ssid = "unknown"; var pointNode = featureNode.getElementByTagName('Point'); var coordNode = pointNode[0].getElementByTagName('Coordinates'); var coordinates = coordNode[0].childNodes[0].nodeValue; var lonlat = coordinates.split(","); lon = lonlat[0]; lat = lonlat[1]; // do something with lat, lon, and ssid } --- I have no idea if it works, but it might get you started. Please keep me posted! SDE From pcreso at PCRESO.COM Fri Aug 12 14:46:19 2005 From: pcreso at PCRESO.COM (Brent Wood) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: <931f8ea905081208162bbae686@mail.gmail.com> Message-ID: On 8/12/05, Nuttall Edward W wrote: > Is there any reason why I should choose MapServer over Deegree? It seems to > based on legacy technologies (C, CGI) yet most of the recent GIS development > books around seem to use it in their examples? > > Edward, Hmmm.. A terminology issue here? Is legacy necessarily perceived as bad? Try proven, accepted, wide user base, lots of support, tutorials, documentation instead :-) If C is a legacy language, should we be discarding Linux, and all those numerical Fortran 77 libraries must no longer be useful. All those RDBMS systems gone as well? & GRASS must be well past its use by date! Any software as widely used as Mapserver, proven stable & successful over years is probably not going to make the best use of the latest technologies. Is your priority to have tools based on new technologies or proven effective, stable solutions? Which is not to say that newer solutions may be as stable & even better than some older ones. Just that legacy is not all bad :-) For some info on the C vs Java Open Source GIS toolsets, Paul Ramsey's paper at http://www.refractions.net/white_papers/ (choose view the pdf) is a useful resource. Cheers, Brent From craig.miller at SPATIALMINDS.COM Fri Aug 12 14:57:14 2005 From: craig.miller at SPATIALMINDS.COM (Craig Miller) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: <20050812184619.6531.qmail@web33206.mail.mud.yahoo.com> Message-ID: Why is everyone bashing on this guy? IMHO he asked a pretty good question for someone new to the OSS mapping community and MapServer in particular. C is a fast language, but it has been known to be susceptible to buffer overflows which when exposed as a service on the internet is generally a bad thing. In the case of Map Server, I've never heard of any vulnerabilities, but it is something that a newcomer should be concerned with and evaluate. CGI has also been shown to not scale well for a couple of reasons. It creates a new process for each request, and it doesn't re-use memory allocations. In the case of MapServer these concerns are largely moot because they aren't significant relative to the time and resources it takes to load data and render a map. Pooling of PostGIS connections, etc would be a performance improvement however. He asked the right questions and has as much right as the rest of us to get good answers from the community. --Craig -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Brent Wood Sent: Friday, August 12, 2005 11:46 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer vs. Deegree On 8/12/05, Nuttall Edward W wrote: > Is there any reason why I should choose MapServer over Deegree? It seems to > based on legacy technologies (C, CGI) yet most of the recent GIS development > books around seem to use it in their examples? > > Edward, Hmmm.. A terminology issue here? Is legacy necessarily perceived as bad? Try proven, accepted, wide user base, lots of support, tutorials, documentation instead :-) If C is a legacy language, should we be discarding Linux, and all those numerical Fortran 77 libraries must no longer be useful. All those RDBMS systems gone as well? & GRASS must be well past its use by date! Any software as widely used as Mapserver, proven stable & successful over years is probably not going to make the best use of the latest technologies. Is your priority to have tools based on new technologies or proven effective, stable solutions? Which is not to say that newer solutions may be as stable & even better than some older ones. Just that legacy is not all bad :-) For some info on the C vs Java Open Source GIS toolsets, Paul Ramsey's paper at http://www.refractions.net/white_papers/ (choose view the pdf) is a useful resource. Cheers, Brent From pramsey at REFRACTIONS.NET Fri Aug 12 15:06:23 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: Message-ID: Craig Miller wrote: > CGI has also been shown to not scale well for a couple of reasons. It > creates a new process for each request, and it doesn't re-use memory > allocations. In the case of MapServer these concerns are largely moot > because they aren't significant relative to the time and resources it takes > to load data and render a map. Pooling of PostGIS connections, etc would be > a performance improvement however. FYI: You can pool PostGIS (and more importantly Oracle and SDE) connections by moving to FastCGI with Mapserver. For PostGIS, the connection overhead is about 0.15s, and connections are pooled within the process, so each CGI invocation only creates one connection. For Oracle and SDE the connection overhead can get up towards 1s depeending on authentication regimes, so connection pooling is basically a requirement for anything except demonstration/test services. Paul From craig.miller at SPATIALMINDS.COM Fri Aug 12 15:17:28 2005 From: craig.miller at SPATIALMINDS.COM (Craig Miller) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: <42FCF32F.4000601@refractions.net> Message-ID: Thanks Paul. That's helpful. Is the FastCGI pooling done per process, or cross-process? Are there other items that could benefit from cross-process cacheing? As a MapServer user, I'm curious as to how MapServer (CGI) compares to Degree (J2EE) too. Thanks, Craig -----Original Message----- From: Paul Ramsey [mailto:pramsey@refractions.net] Sent: Friday, August 12, 2005 12:06 PM To: Craig Miller Cc: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer vs. Deegree Craig Miller wrote: > CGI has also been shown to not scale well for a couple of reasons. It > creates a new process for each request, and it doesn't re-use memory > allocations. In the case of MapServer these concerns are largely moot > because they aren't significant relative to the time and resources it takes > to load data and render a map. Pooling of PostGIS connections, etc would be > a performance improvement however. FYI: You can pool PostGIS (and more importantly Oracle and SDE) connections by moving to FastCGI with Mapserver. For PostGIS, the connection overhead is about 0.15s, and connections are pooled within the process, so each CGI invocation only creates one connection. For Oracle and SDE the connection overhead can get up towards 1s depeending on authentication regimes, so connection pooling is basically a requirement for anything except demonstration/test services. Paul From ajfrank at ALICE.IT Sat Aug 13 05:48:54 2005 From: ajfrank at ALICE.IT (Gianfranco Brescia) Date: Fri Feb 8 15:07:55 2008 Subject: Linux, Mapserver and ECW file Message-ID: Hi to all! First I've to apologize for my English, I'm an Italian student of GIS. My operative system is linux (Slackware 10.1)and I've installed mapserver with gdal ad other staff... My problem is that when I put a ecw file in the map file a cannot see it! While the other raster file (tiff for example render very good), the ecw file render nothing. I've the world file with the ecw file and the path is right. Is ecw a native support for mapserver or do I have to install staff like erMapper: if so can someone tell me a how to install it with gdal; I've read some in internet but seem to be a little difficult. Thanks very much and sorry again for bad English. Gianfranco. From claudia at RODAT.DE Sat Aug 13 07:25:34 2005 From: claudia at RODAT.DE (Claudia Rodat) Date: Fri Feb 8 15:07:55 2008 Subject: mapscript : changing features=?ISO-8859-1?Q?=B4?= information Message-ID: Hi list, I want to add/change/delete information on selected features of one layer. Usually this could be achieved by marking the features using "querybypoint" thus retrieving the feature-ID. This solution however always implies a reload of the page. I tried the following solution which is not really satisfactorily: on click a symbol is created in a new
using javascript and the coordinates are noted in a hidden field. If all designated features are marked a doubleclick will end the session. After the reload a new layer is generated by mapscript using the memorised coodinates and the readout feature-IDs. In another window the list of attributes with their information is displayed and can be edited. I also thought about visualising the visible features by loading them in an javascript array. But this way requires a lot of time when a great amount of features or polygons is used. Does anyone has a more improved solution ? Any help would be appreciated. Claudia From fwarmerdam at GMAIL.COM Sat Aug 13 09:39:52 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:55 2008 Subject: Linux, Mapserver and ECW file In-Reply-To: Message-ID: On 8/13/05, Gianfranco Brescia wrote: > Hi to all! > First I've to apologize for my English, I'm an Italian student of GIS. > My operative system is linux (Slackware 10.1)and I've installed mapserver > with gdal ad other staff... > My problem is that when I put a ecw file in the map file a cannot see it! > While the other raster file (tiff for example render very good), the ecw > file render nothing. I've the world file with the ecw file and the path is > right. > Is ecw a native support for mapserver or do I have to install staff like > erMapper: if so can someone tell me a how to install it with gdal; I've > read some in internet but seem to be a little difficult. > Thanks very much and sorry again for bad English. Gianfranco, ECW support in GDAL is optional, and depends on inclusion of the ERMapper ECW SDK. I would add that it is still fairly challenging to get the SDK built on Linux, and incorporate various bug fixes needed for safe use on Linux. You might consider either waiting for a final 3.2 release of the ECW SDK (rolling in an easier build mechanism, and some bug fixes) or consider using a prebuilt distribution like the FWTools binaries for Linux which include ECW support. http://fwtools.maptools.org/ Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ana.rosa.maretec at IST.UTL.PT Sun Aug 14 11:53:29 2005 From: ana.rosa.maretec at IST.UTL.PT (Ana Rosa Trancoso) Date: Fri Feb 8 15:07:55 2008 Subject: postgis or windows bug? Message-ID: Dear all, I am upgrading an old mapserver application to query a postgres database. I am using mapserv 4.4.1 (latest version) and would appreciate some guidance with these 2 errors: - sometimes the point layer doesn't appear in the map image, although it is in the legend. - when the points appear, I get a IE error saying "the memory can not be read" along with some error codes (0xf456..) when I do zoom. I tried 3 computers running with windows, but they all do the same. Another thing that bugs me is that I have 2 old versions of mapserver (3.6.1 and 4.0.1) and their exes have 2-3 MB. The mapserver 4.4.1 exe only has 36kb! Why? Thank you for the attention! Rosa -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050814/15712545/attachment.html From bartvde at XS4ALL.NL Sun Aug 14 15:25:10 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: postgis or windows bug? In-Reply-To: <20050814155330.7353A70004F8@ciistr3.ist.utl.pt> Message-ID: Hi, First of all, always try the latest version for this kind of functionality, so try Mapserver 4.6 from: http://www.maptools.org/dl/mapserver-4.6.0-win32-php4.3.11.zip The mapserv.exe you mention is smaller since it depends on libmap.dll. There are 2 ways to build Mapserver, include everything in the exe or build a libmap.dll and a mapserv.exe. Best regards, Bart On Sun, 14 Aug 2005 17:53:29 +0200, Ana Rosa Trancoso wrote: > Dear all, > > > I am upgrading an old mapserver application to query a postgres > database. I > am using mapserv 4.4.1 (latest version) and would appreciate some > guidance > with these 2 errors: > > > - sometimes the point layer doesn't appear in the map image, although it > is > in the legend. > > - when the points appear, I get a IE error saying "the memory can not be > read" along with some error codes (0xf456..) when I do zoom. > > > I tried 3 computers running with windows, but they all do the same. > > Another thing that bugs me is that I have 2 old versions of mapserver > (3.6.1 > and 4.0.1) and their exes have 2-3 MB. The mapserver 4.4.1 exe only has > 36kb! Why? > > > Thank you for the attention! > > > Rosa > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From matt0177 at GMAIL.COM Sun Aug 14 20:11:36 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Fri Feb 8 15:07:55 2008 Subject: Legend with Groups and Folder Icons Message-ID: I'm currently working on a project using Mapserver and Chameleon widgets. I have the gui 90% to my satisfaction, the only thing I would like to change at this point is to change the legend to a gui which would emulate windows explorer in apperance. With my layers grouped and played in folders which can be open and closed. I have seen this done with great results on several sites linked on the mapserver homepage. I would like to know how to go about doing this for myself, and information or sample code would be greatly appreciate. Thanks, Matt From ed at TOPOZONE.COM Sun Aug 14 21:11:58 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree Message-ID: Edward - The choice of a solution depends heavily on the problem - would you ask someone "is there any reason I should choose a hammer over a screwdriver"? If you can tell us something about what task you're trying to perform it would be much easier to offer a helpful comparison. And I'll add my request to remove inappropriate disclaimers from emails, especially when the disclaimer is three times the size of the message, and isn't appropriate to the message. Thanks! - 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@topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Nuttall Edward W Sent: Friday, August 12, 2005 10:46 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer vs. Deegree Is there any reason why I should choose MapServer over Deegree? It seems to based on legacy technologies (C, CGI) yet most of the recent GIS development books around seem to use it in their examples? The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. Emails and other electronic communication with QinetiQ may be monitored. Calls to QinetiQ may be recorded for quality control, regulatory and monitoring purposes. From Silke.Reimer at INTEVATION.DE Mon Aug 15 03:50:07 2005 From: Silke.Reimer at INTEVATION.DE (Silke Reimer) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: <3a984cc3a9a62e.3a9a62e3a984cc@shaw.ca> Message-ID: On Fri, Aug 12, 2005 at 09:51:08AM -0700, Tyler Mitchell wrote: > > > Is there any reason why I should choose MapServer over Deegree? > > It > > > seems to > > > based on legacy technologies (C, CGI) yet most of the recent GIS > > > development > > > books around seem to use it in their examples? > > The reason I use MapServer is because it can do so much more than > just OGC specifications and for a Java server noob like me, it was > easy to get started. MapServer for Windows (MS4W) and FGS (linux > installer) make the MapSever easy to get going. But I know those > who are comfortable with java servers and such have similarly easy > approaches. > > Can someone tell me if Deegree ONLY does OGC/ISO specs or does it > do others as well? Yes, deegree does "only" OGC/ISO specs but if you look at the WMS spec you can do a lot of things when you follow the specification 1.1.1 in full scale. The UMN MapServer does not support User Layers for example which enables you to define further layers to be drawn on the map. Furthermore deegree follows all OGC-specifications which are necessary to build up a SDI while the UMN MapServer "only" support WMS and basic WFS and WCS - and will probably not go much further. To come back to the initial questions: In my oponion there are situations where I would choose the UMN MapServer over deegree and vice versa. If you want to set up a full SDI you often need more than just a WMS or a basic WFS, but also a Catalog Service, a WFS-Gazetteer etc. In those cases I prefer deegree since - I only have to install 1 tool - the deegree is designed to build up complex SDI whereas OGC-support has been added later to the UMN MapServer which leads to some strange situations when configuring the UMN MapServer. (for example it is not obvious that you need to define a - not even existent - template in a layers class if you want to make the layer queriable in the WMS). The UMN MapServer otherwise has much more documentation and - meanwhile - a lot of poeple around who know how to configure the UMN MapServer which leads to local user lists etc. Hence it is much easier to get help even in your mother language - which is at least in Germany rather important. Furthermore I like the possibility to script the UMN MapServer - which is not possible with deegree as far as I know. These are some aspects when you want to compare deegree and UMN MapServer. Surely there are others as well as prefered programming language etc. Silke -- Intevation GmbH Georgstrasse 4 49074 Osnabr?ck, Germany http://intevation.de http://intevation.de/~silke FreeGIS.org http://freegis.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050815/4fc01c63/attachment.bin From ewnuttall at QINETIQ.COM Mon Aug 15 07:02:18 2005 From: ewnuttall at QINETIQ.COM (Edward Nuttall) Date: Fri Feb 8 15:07:55 2008 Subject: MAPSERVER vs. DEEGREE / LibTiff librar y problems Message-ID: Hi all Sorry if I've ruffled a few feathers, I've been cocooned on a greenfield Java project for the last 3 years so I'm somewhat brainwashed with J2EE :o) I have moved onto a project which was prototyped on Deegree and have been asked to find out if this is a suitable platform and judging by the books I have bought it seems MapServer is the tool of choice in GIS (an area I have only been in for a few weeks) so I just wondered if there were any critical differences before I started to evaluate. When I referred to C and CGI as legacy, this was a poor choice of words and I certainly wasn't trying to make any kind of statement. Thanks for all your input otherwise, as yet I don't have full project requirements which most people are querying so I'll keep you posted. On a probably more basic issue, I am having the following trouble running mapserv. Libtiff not found error: Following a successful compile I cannot run mapserv due to the following error ./mapserv: error while loading shared libraries: libtiff.3: cannot open shared object file: No such file or directory Running ldd on mapserv brings up: libgd.so.2 => /usr/local/lib/libgd.so.2 (0xf6f9d000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0xf6f3e000) libpng.so.3 => /usr/local/lib/libpng.so.3 (0xf6f1c000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0xf6ee8000) libgdal.so.1 => /usr/local/lib/libgdal.so.1 (0xf6b9c000) libpq.so.4 => /usr/local/pgsql/lib/libpq.so.4 (0xf6b86000) libcurl.so.3 => /usr/local/lib/libcurl.so.3 (0xf6b59000) libssl.so.4 => /lib/libssl.so.4 (0x00224000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x00101000) libdl.so.2 => /lib/libdl.so.2 (0x00afa000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x0020e000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00d7f000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x00d7a000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x001eb000) libresolv.so.2 => /lib/libresolv.so.2 (0x00d56000) libc.so.6 => /lib/tls/libc.so.6 (0x009d1000) libm.so.6 => /lib/tls/libm.so.6 (0x00b00000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x003cb000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0050d000) libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0xf6b34000) libz.so.1 => /usr/lib/libz.so.1 (0x00c22000) libgeos.so.2 => /usr/local/lib/libgeos.so.2 (0xf6a47000) libgeotiff.so => /usr/local/lib/libgeotiff.so (0xf69de000) libtiff.3 => not found libcrypt.so.1 => /lib/libcrypt.so.1 (0x06ad2000) libnsl.so.1 => /lib/libnsl.so.1 (0x00de6000) /lib/ld-linux.so.2 (0x009b8000) The path to libtiff.3 is /usr/local/lib which exists in my /etc/ld.so.conf file and all the other libraries here have been found. I've seen other posts describing errors arising multiple libtiff's but I can't find any others on my system? Many thanks for any help Cheers Ed From nbarker at RSINC.COM Mon Aug 15 07:32:29 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Fri Feb 8 15:07:55 2008 Subject: MAPSERVER vs. DEEGREE / LibTiff librar y problems Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Edward Nuttall Sent: Monday, August 15, 2005 12:02 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MAPSERVER vs. DEEGREE / LibTiff librar y problems Hi all Libtiff not found error: Cheers Ed Ed, if you are just prototyping then use FWTools, http://www.fwtools.org works great, and takes seconds to set up. If however you need to adjust the source then you need to look at your configure script, and specify --with-tiff=DIR, if however you are using GDAL, then you shouldn't have to do this, since if GDAL is working then libtiff is as well! You say in one of your emails, that you are a java nut, well I recently found out that MapServer can be used as an engine within a J2EE environment using the Java SWIG interfaces (thanks Steve Lime). If this is of interest to you let me know, I would like to investigate this. Norman From shussain at ATSINCORP.COM Mon Aug 15 10:32:52 2005 From: shussain at ATSINCORP.COM (Shaik A. Hussain) Date: Fri Feb 8 15:07:55 2008 Subject: MrSID Error Message-ID: Hello List, I am getting the following error with the MrSID layer file. Can any one help me how to fix this error. msDrawMap(): Image handling error. Failed to draw layer named 'MrSid'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. D:\Data\Imagery\geovantage\geovantage_nir\geo_0_000_001_e_nirmosaicnt.sid is not an EPPL file. I am using Mapserver 4.4.1, Apache, windows 2003 server. D:\Software\Mapserver\ms441pg\bin>mapserv -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPU T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Here is my map file. # # Start of map file - created Tue Jun 28 09:52:58 2005 # NAME KLC SIZE 500 500 EXTENT 5240806.130 3502523.667 5273037.828 3597935.530 UNITS feet SYMBOLSET "D:\Apache2\htdocs\Symbols\symbols.sym" SHAPEPATH 'D:\Data\Imagery/' # # Start of web interface definition # WEB TEMPLATE 'mapdisplay.html' IMAGEPATH '..\test_site\mapimages\' IMAGEURL '/test_site/mapimages/' END #WEB # # Start of legend # LEGEND IMAGECOLOR 205 205 205 KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 POSITION UR END STATUS ON END #LEGEND # # Start of scalebar # SCALEBAR IMAGECOLOR 205 205 205 LABEL COLOR 0 0 0 SIZE SMALL END #LABEL SIZE 300 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES INTERVALS 10 STATUS ON END #SCALEBAR # # Start of layer definitions # LAYER NAME "MrSid" TYPE raster TILEINDEX "pulaski_imagetile_mrsid" TILEITEM "location" STATUS default END END # MAPFILE Thanks, Anwar From fwarmerdam at GMAIL.COM Mon Aug 15 10:54:22 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:55 2008 Subject: MrSID Error In-Reply-To: Message-ID: On 8/15/05, Shaik A. Hussain wrote: > Hello List, > > I am getting the following error with the MrSID layer file. Can any one > help me how to fix this error. > > msDrawMap(): Image handling error. Failed to draw layer named 'MrSid'. > > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format Shaik, Whether or not your MapServer instance supports MrSID format for input depends on whether your GDAL is built with MrSID support. Try: gdalinfo --formats to list all GDAL support formats in your build. Likely you do not have MrSID support enabled. It can be a bit involved to build in. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Mon Aug 15 11:01:55 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:55 2008 Subject: MapServer vs. Deegree In-Reply-To: Message-ID: On 8/12/05, Craig Miller wrote: > Thanks Paul. That's helpful. > > Is the FastCGI pooling done per process, or cross-process? > Are there other items that could benefit from cross-process cacheing? As a > MapServer user, I'm curious as to how MapServer (CGI) compares to Degree > (J2EE) too. Craig, FastCGI is a technology that basically keeps a "cgi process" alive, and keeps feeding it new cgi requests. Depending on your configuration there may be several "cgi server" processes running with Apache doling out requests to them. The connection pooling implemented in MapServer is only within a given process, so you will generally be consuming as many connections as you have fastcgi server proecesses running. There are indeed a variety of other things in mapserver that could benefit from cross-request caching but it isn't clear that in the general case any of them would make a signifiant difference so we haven't pursued the issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Jay.D.Austin at NWO02.USACE.ARMY.MIL Mon Aug 15 11:17:11 2005 From: Jay.D.Austin at NWO02.USACE.ARMY.MIL (Austin, Jay D NWD contractor) Date: Fri Feb 8 15:07:55 2008 Subject: Swf layers Message-ID: Currently you can't do that. You either have dumpattributes on or off. It would be a nice feature if you could customize the scripts that were placed on the objects or make them objects without scripts. Another feature that would be helpful would be an option to put the info in the MapObj variable on each individual layer instead of the compiled layer. That would allow you to load the layers individually and still have access to attributes like the layer name and filepath etc. -Jay Austin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Jorge Agudelo Sent: Friday, August 12, 2005 7:23 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Swf layers Hello Everyone, It is possible to change the way mapserver generates the code for swf = layers with swfdumpattributes?, the problem is that mapserver generates = a lot of code for every object (onrollover, onrelease), this code could = be done dinamically using a for cycle when loading the swf this way it = will decrease a lot the swf size. The problem is that if the swfdumpattributes tag is deleted the objects = of the layers becomes shapes so it is no possible to work with them by = code. It is there anyway to tell mapserver that make the objects be = buttons but not to put code for every object? Thanks for your time. Jorge Agudelo From djisgitt at SOUNDENERGY.COM Mon Aug 15 12:05:52 2005 From: djisgitt at SOUNDENERGY.COM (Don Isgitt) Date: Fri Feb 8 15:07:55 2008 Subject: Failure building mapserver 4.4.2 with ming Message-ID: Hi, In attempting to build mapserver 4.4.2 with ming 0.3beta1, I receive the following: gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_ICONV -DUSE_POSTGIS -I/usr/include -I/home/djisgitt/FWTools-linux-0.9.8/include -I/usr/local/pgsql/include -I/home/djisgitt/ming-0.3beta1/src mapswf.c -o mapswf.o mapswf.c: In function `BuildButtonFromGD': mapswf.c:482: warning: passing arg 2 of `SWFButton_addShape' from incompatible pointer type ...snip mapswf.c:2885: too few arguments to function `SWFMovie_save' mapswf.c:2897: warning: passing arg 2 of `SWFMovie_add' from incompatible pointer type mapswf.c:2913: warning: passing arg 2 of `SWFMovie_add' from incompatible pointer type mapswf.c:2917: warning: passing arg 2 of `SWFMovie_add' from incompatible pointer type mapswf.c:2922: too few arguments to function `SWFMovie_save' mapswf.c: In function `msDrawVectorLayerAsRasterSWF': mapswf.c:3075: warning: passing arg 2 of `SWFMovie_add' from incompatible pointer type make: *** [mapswf.o] Error 1 Is it just too many warnings, since I don't see any compiler errors until the final one? Platform is linux 2.4.18-6mdksmp and compiler is gcc version 3.2.1 Any help appreciated. Thank you. Don From David.Hunter at FNF.COM Mon Aug 15 12:18:11 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri Feb 8 15:07:55 2008 Subject: PNG symbols causing crash Message-ID: I have a map file that worked perfectly in CGI version 4.4.1, but with version 4.6 mapserver crashes. I have isolated the problem to the use of PNG symbols (for highway shields, in this case). If I simply un-comment-out this line, mapserver crashes, even with the layer turned off. This is within a class defined as such: CLASS NAME "Interstates" STYLE SYMBOL 'symbols/interstate.png' END END When I change the path to the PNG, I get an error message from Mapserver saying the file cannot be opened. With correct path, Mapserver tries to write to address 0x00000010. I also tried using GIFs, same problem. This is running on Win2000. Mapserver was downloaded from Hobu's site, and is the standard build. David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter@fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050815/8bd30682/attachment.html From bartvde at XS4ALL.NL Mon Aug 15 13:24:21 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: Legend with Groups and Folder Icons In-Reply-To: <8e2cbd66050814171190e8d8e@mail.gmail.com> Message-ID: You could use Chameleon's XMLThemeLegend and integrate it with a Javascript tree implementation like: http://www.destroydrop.com/javascripts/tree/ Best regards, Bart On Mon, 15 Aug 2005 02:11:36 +0200, Matthew Edmondson wrote: > I'm currently working on a project using Mapserver and Chameleon > widgets. I have the gui 90% to my satisfaction, the only thing I would > like to change at this point is to change the legend to a gui which > would emulate windows explorer in apperance. With my layers grouped > and played in folders which can be open and closed. > > I have seen this done with great results on several sites linked on > the mapserver homepage. I would like to know how to go about doing > this for myself, and information or sample code would be greatly > appreciate. > > Thanks, > > Matt > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From assefa at DMSOLUTIONS.CA Mon Aug 15 13:40:02 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri Feb 8 15:07:55 2008 Subject: Failure building mapserver 4.4.2 with ming In-Reply-To: <4300BD60.1000207@soundenergy.com> Message-ID: Hi There, You should try to build it with ming 0.2a. Although, It could be build with 0.3 with few twicks, the 0.3 version never really worked properly for me on a windows platform. It might be diffrent on a linux platform. Later, Don Isgitt wrote: > Hi, > > In attempting to build mapserver 4.4.2 with ming 0.3beta1, I receive the > following: > > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_MING_FLASH > -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_ICONV -DUSE_POSTGIS > -I/usr/include -I/home/djisgitt/FWTools-linux-0.9.8/include > -I/usr/local/pgsql/include -I/home/djisgitt/ming-0.3beta1/src > mapswf.c -o mapswf.o > mapswf.c: In function `BuildButtonFromGD': > mapswf.c:482: warning: passing arg 2 of `SWFButton_addShape' from > incompatible pointer type > ...snip > > mapswf.c:2885: too few arguments to function `SWFMovie_save' > mapswf.c:2897: warning: passing arg 2 of `SWFMovie_add' from > incompatible pointer type > mapswf.c:2913: warning: passing arg 2 of `SWFMovie_add' from > incompatible pointer type > mapswf.c:2917: warning: passing arg 2 of `SWFMovie_add' from > incompatible pointer type > mapswf.c:2922: too few arguments to function `SWFMovie_save' > mapswf.c: In function `msDrawVectorLayerAsRasterSWF': > mapswf.c:3075: warning: passing arg 2 of `SWFMovie_add' from > incompatible pointer type > make: *** [mapswf.o] Error 1 > > Is it just too many warnings, since I don't see any compiler errors > until the final one? > > Platform is > linux 2.4.18-6mdksmp and compiler is > gcc version 3.2.1 > > Any help appreciated. > > Thank you. > > Don > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jzeisloft at GMAIL.COM Mon Aug 15 15:25:51 2005 From: jzeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Fri Feb 8 15:07:55 2008 Subject: Security Risks?? Message-ID: Hello All- We have been working locally with ms4w but would like to "go public". My understanding is that there are some security risks involved in using the ms4w installation as opposed to the Map Server installation. Our network administrator would like to know exactly what are the security and other issues with using ms4w before we switch to Map Server. If someone could explain this or point me to the documentation that explains it, I would be very appreciative. Thanks in advance! Jennifer Zeisloft -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050815/71143d48/attachment.html From listuser at HERZSYS.DE Mon Aug 15 12:25:20 2005 From: listuser at HERZSYS.DE (Listuser H.) Date: Fri Feb 8 15:07:55 2008 Subject: OGR VRT for lines? Message-ID: Hi all, I use VRT to create a point layer with x/y coordinates from a table. In the docs is mentioned that this only works for point data. But what I want to do is to create a simple line layer from a table with x/y for the startpoint and x/y for endpoint. I saw in the docs that OGR has a GeometryType wkbLineString. If it is possible to use this how could the GeometryField definition look like. Regards, Norbert ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From fwarmerdam at GMAIL.COM Mon Aug 15 16:26:40 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:55 2008 Subject: FWTools 0.9.9 Released Message-ID: Folks, The FWTools 0.9.9 release is now available. FWTools is a packaged build including recent snapshots of OpenEV, MapServer, GDAL, PROJ.4 and a variety of underlying packages. It aims to be "cutting edge" with recent developments and also to include as many optional formats as practical. It also includes a complete Python instance, and python binding support for GDAL and MapServer. It should work smoothly on Windows, and most 32bit Intel Linux platforms regardless of native packaging system. More information is available at: http://fwtools.maptools.org/ Direct downloads are available from: Windows: http://www.gdal.org/dl/fwtools/FWTools099.exe Linux: http://www.gdal.org/dl/fwtools/FWTools-linux-0.9.9.tar.gz Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From spam at ROBL.ORG.UK Mon Aug 15 20:18:17 2005 From: spam at ROBL.ORG.UK (Rob Lee) Date: Fri Feb 8 15:07:55 2008 Subject: Label problems with draggable tiles Message-ID: Hi, I have been using some of the 'web front-end' software to mapserver recently (ka-map, maps.civicactions.net) and have noticed what could either be considered a bug or a feature of mapserver and wondered what the rest of the community thought ... ka-map generates a set of dragable tiles from mapserver via (I believe) requesting one maptile the size of the viewport and then using the GD library to cut it into smaller tiles - I believe this is to stop labels being displayed multiple times (if a set of 4 smaller tiles were requested from mapserver instead of the one large one) at larger zoom levels e.g. on a world map when zoomed into a specific country the label would appear on each of the individual country tiles generated by mapserver. This can be seen in action on the map at maps.civicactions.net if you zoom in to a high enough degree (this application requests four seperate map tiles from mapserver via javascript). I guess the reason for this is mapserver was never envisioned as being used in this way ?? Is this experience also what other used have seen or have I missed a part of the puzzle - I couldn't see any obvious solution other than the one used by ka-map. I believe it would require a modification to mapserver to enable working with tiles in this fashion ? I'm not sure what this modification would be if required - any thoughts ? Thanks, Rob Lee From tsfu at HKUCS.ORG Mon Aug 15 22:35:03 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:55 2008 Subject: group by clause Message-ID: What do I do for the sql statement as follows: select the_geom from sounding.sdgonly_20050722point where elevation > 0 and mod(gid, 300) = 1 group by the_geom having max(dispx) > 86738 ? ================================================================ CREATE TABLE sounding.sdgonly_20050722point ( gid serial NOT NULL, recno int8, elevation float8, dataflags int8, dispx float8, dispy float8, size float8, angle float8, scale int8, keyword varchar, usernum int8, fcode varchar, datatype int4, descflags int8, themenum int8, indexkey varchar, superflags int8, sourceid varchar, the_geom geometry, CONSTRAINT sdgonly_20050722point_pkey PRIMARY KEY (gid), CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2), CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS NULL), CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) ) WITH OIDS; ================================================================ I tried this one in MapServer but it doesn't work at all. DATA "the_geom from sounding.sdgonly_20050722point" FILTER " (elevation > 0 and mod(gid, 300) = 1) # group by the_geom " Please advise. Thanks. Jason From kenlord at GMAIL.COM Mon Aug 15 23:44:06 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri Feb 8 15:07:55 2008 Subject: group by clause In-Reply-To: Message-ID: Hi Jason, You could try a DATA string something like this ... DATA "the_geom FROM (SELECT * FROM sounding.sdgonly_20050722point WHERE elevation > 0 AND mod(gid, 300) = 1 GROUP BY the_geom HAVING max(dispx) > 86738) AS foo USING UNIQUE gid USING SRID=26910" .... I've capitalized the SQL keywords just to make them more readable. The DATA string should all be on one line (not sure how this will post to the list). .... Use the appropriate SRID number in place of 26910, representing the projection of your data. Cheers, Ken Lord Vancouver BC On 8/15/05, Jason FU wrote: > > What do I do for the sql statement as follows: > > select the_geom from sounding.sdgonly_20050722point > where elevation > 0 and mod(gid, 300) = 1 > group by the_geom > having max(dispx) > 86738 > > ? > > ================================================================ > > CREATE TABLE sounding.sdgonly_20050722point > ( > gid serial NOT NULL, > recno int8, > elevation float8, > dataflags int8, > dispx float8, > dispy float8, > size float8, > angle float8, > scale int8, > keyword varchar, > usernum int8, > fcode varchar, > datatype int4, > descflags int8, > themenum int8, > indexkey varchar, > superflags int8, > sourceid varchar, > the_geom geometry, > CONSTRAINT sdgonly_20050722point_pkey PRIMARY KEY (gid), > CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2), > CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = > 'POINT'::text OR the_geom IS NULL), > CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) > ) > WITH OIDS; > ================================================================ > I tried this one in MapServer but it doesn't work at all. > > DATA "the_geom from sounding.sdgonly_20050722point" > FILTER " (elevation > 0 and mod(gid, 300) = 1) # group by the_geom " > > Please advise. > > Thanks. > > Jason > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050815/18ff40fc/attachment.html From matt0177 at GMAIL.COM Tue Aug 16 00:01:04 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Fri Feb 8 15:07:55 2008 Subject: Legend with Groups and Folder Icons In-Reply-To: Message-ID: Thank you very much for the link, I think it could end up helping me in the future. For the time being, my legend is getting far to long with layers, is there a simpe way to set a icon or something to open/close a group in order to make my legend more user friendly. Thanks, Matt From tsfu at HKUCS.ORG Tue Aug 16 00:24:00 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:55 2008 Subject: group by clause Message-ID: I've got it. Thanks! Jason On Mon, 15 Aug 2005 20:44:06 -0700, Ken Lord wrote: >Hi Jason, > You could try a DATA string something like this ... > DATA "the_geom FROM (SELECT * FROM sounding.sdgonly_20050722point WHERE >elevation > 0 AND mod(gid, 300) = 1 GROUP BY the_geom HAVING max(dispx) > >86738) AS foo USING UNIQUE gid USING SRID=26910" > .... I've capitalized the SQL keywords just to make them more readable. The >DATA string should all be on one line (not sure how this will post to the >list). >.... Use the appropriate SRID number in place of 26910, representing the >projection of your data. > Cheers, >Ken Lord >Vancouver BC > > >On 8/15/05, Jason FU wrote: >> >> What do I do for the sql statement as follows: >> >> select the_geom from sounding.sdgonly_20050722point >> where elevation > 0 and mod(gid, 300) = 1 >> group by the_geom >> having max(dispx) > 86738 >> >> ? >> >> ================================================================ >> >> CREATE TABLE sounding.sdgonly_20050722point >> ( >> gid serial NOT NULL, >> recno int8, >> elevation float8, >> dataflags int8, >> dispx float8, >> dispy float8, >> size float8, >> angle float8, >> scale int8, >> keyword varchar, >> usernum int8, >> fcode varchar, >> datatype int4, >> descflags int8, >> themenum int8, >> indexkey varchar, >> superflags int8, >> sourceid varchar, >> the_geom geometry, >> CONSTRAINT sdgonly_20050722point_pkey PRIMARY KEY (gid), >> CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2), >> CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = >> 'POINT'::text OR the_geom IS NULL), >> CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) >> ) >> WITH OIDS; >> ================================================================ >> I tried this one in MapServer but it doesn't work at all. >> >> DATA "the_geom from sounding.sdgonly_20050722point" >> FILTER " (elevation > 0 and mod(gid, 300) = 1) # group by the_geom " >> >> Please advise. >> >> Thanks. >> >> Jason >> > From jaakko.kahkonen at FGI.FI Tue Aug 16 01:53:08 2005 From: jaakko.kahkonen at FGI.FI (Jaakko Kahkonen) Date: Fri Feb 8 15:07:55 2008 Subject: how to set transparent to false on wms query? Message-ID: I'm trying to use mapserver 4.6 as a WMS client. When sniffing GET query with ethereal, I noticed that query uses TRANSPARENT=TRUE value as a default. And WMS-server I'm quering does not support transparency: Request is for an optional operation that is not supported by the server : Transparency of returned images not supported on this version. How can I send a query from mapserver without TRANSPARENT=TRUE value, or does this reply from server mean something else? I tried to set TRANSPARENT OFF, but it didn't help... -- Jaakko From tsfu at HKUCS.ORG Tue Aug 16 03:07:40 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:55 2008 Subject: Extent of the map Message-ID: How do we get the extent dynamically for the .map file? Jason From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 16 03:11:11 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: how to set transparent to false on wms query? Message-ID: Hi, This is hardcoded in mapwmslayer.c, so please file an enhancement bug for this in bugzilla. msSetWMSParamString(psWMSParams, "TRANSPARENT", "TRUE",MS_FALSE); Btw, I am not 100% that the remote WMS service is allowed to return a ServiceException, I think according to the spec it should just ignore the TRANSPARENT parameter. But that's spec details. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Jaakko Kahkonen 08/16/05 07:53am >>> I'm trying to use mapserver 4.6 as a WMS client. When sniffing GET query with ethereal, I noticed that query uses TRANSPARENT=TRUE value as a default. And WMS-server I'm quering does not support transparency: Request is for an optional operation that is not supported by the server : Transparency of returned images not supported on this version. How can I send a query from mapserver without TRANSPARENT=TRUE value, or does this reply from server mean something else? I tried to set TRANSPARENT OFF, but it didn't help... -- Jaakko From tsfu at HKUCS.ORG Tue Aug 16 03:41:01 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:55 2008 Subject: Actual value rather than symbol Message-ID: If I've got to show the actual value to the point mentioned by the the_geom column from the table below: CREATE TABLE sounding.sdgonly_20050722point ( gid serial NOT NULL, recno int8, elevation float8, dataflags int8, dispx float8, dispy float8, size float8, angle float8, scale int8, keyword varchar, usernum int8, fcode varchar, datatype int4, descflags int8, themenum int8, indexkey varchar, superflags int8, sourceid varchar, the_geom geometry, CONSTRAINT sdgonly_20050722point_pkey PRIMARY KEY (gid), CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2), CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS NULL), CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) ) WITH OIDS; what do I do for the map file? Thanks! Jason From tsfu at HKUCS.ORG Tue Aug 16 03:42:25 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:55 2008 Subject: Actual value rather than symbol Message-ID: I'm to show the value of elevation in the chart. What should the map file look like? Jason On Tue, 16 Aug 2005 02:41:01 -0500, Jason FU wrote: >If I've got to show the actual value to the point mentioned by the the_geom >column from the table below: > >CREATE TABLE sounding.sdgonly_20050722point >( > gid serial NOT NULL, > recno int8, > elevation float8, > dataflags int8, > dispx float8, > dispy float8, > size float8, > angle float8, > scale int8, > keyword varchar, > usernum int8, > fcode varchar, > datatype int4, > descflags int8, > themenum int8, > indexkey varchar, > superflags int8, > sourceid varchar, > the_geom geometry, > CONSTRAINT sdgonly_20050722point_pkey PRIMARY KEY (gid), > CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2), > CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = >'POINT'::text OR the_geom IS NULL), > CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) >) >WITH OIDS; > >what do I do for the map file? > >Thanks! > >Jason From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Aug 16 03:48:30 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:55 2008 Subject: falling back to SRS error message In-Reply-To: Message-ID: hi list, hi Bart. I had a error message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers." Bart solved the problem giving: ... WEB METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END ... PROJECTION "init=epsg:31287" END ... LAYER METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END ... Then it worked. But suddenly id doesn?t work anymore and the same error message is displayed. Can someone help me please? Leopold ---------------------------------------------- following the map-file and the Capabilities: ---------------------------------------------- GetCapabilitiesRequest: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2/tuto rial/natura2000_epsg_2.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities ----------------------------- map-file: MAP NAME "mmp_wms" STATUS OFF EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034 SIZE 800 600 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 226 UNITS METERS WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" "wms_title" "mmp_wms_centrope_natura2000" END END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:31287" END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP FONT "fritqat-italic" SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "gewaesser_noe" STATUS ON DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Gewaesser_Noe" "DESCRIPTION" "Wasser" "WMS_SRS" "EPSG:31287 EPSG:4326" END CLASS NAME "gewaesser_noe" STYLE SYMBOL 0 COLOR 199 195 240 OUTLINECOLOR 106 105 199 SIZE 1 MINSIZE 1 MAXSIZE 100 END STYLE SYMBOL 0 COLOR 0 0 255 BACKGROUNDCOLOR 251 148 112 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END END ----------------------------- capabilities-file: ]> OGC:WMS mmp_wms_centrope_natura2000 application/vnd.ogc.wms_xml image/png image/gif image/jpeg image/wbmp image/tiff text/plain application/vnd.ogc.gml text/xml image/png image/gif image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank mmp_wms mmp_wms_centrope_natura2000 EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:31287 EPSG:4326 From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Aug 16 04:00:22 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:55 2008 Subject: the GUI link to the SRS error message In-Reply-To: Message-ID: the link to the user interface with the SRS error message belong to the last mail: http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=Leop&name=test& password=test Best regards, Leopold From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 16 04:24:13 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: falling back to SRS error message Message-ID: Leopold, I see you are using Mapserver 4.4.0. I think you should try upgrading to Mapserver 4.6. There was a fix for this 24 May 2005. * Revision 1.163 2005/05/24 18:52:45 julien * Bug 1149: From WMS 1.1.1, SRS are given in individual tags. There is a strange thing in your capabilities, this part: EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:31287 EPSG:4326 For your root layer, the notation is the old OGC notation: EPSG:31287 EPSG:4326. For your child layers, the notation is the new OGC notation: EPSG:31287EPSG:4326 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/16/05 09:48am >>> hi list, hi Bart. I had a error message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers." Bart solved the problem giving: .... WEB METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END .... PROJECTION "init=epsg:31287" END .... LAYER METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END .... Then it worked. But suddenly id doesn t work anymore and the same error message is displayed. Can someone help me please? Leopold ---------------------------------------------- following the map-file and the Capabilities: ---------------------------------------------- GetCapabilitiesRequest: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2/tuto rial/natura2000_epsg_2.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities ----------------------------- map-file: MAP NAME "mmp_wms" STATUS OFF EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034 SIZE 800 600 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 226 UNITS METERS WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" "wms_title" "mmp_wms_centrope_natura2000" END END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:31287" END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP FONT "fritqat-italic" SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "gewaesser_noe" STATUS ON DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Gewaesser_Noe" "DESCRIPTION" "Wasser" "WMS_SRS" "EPSG:31287 EPSG:4326" END CLASS NAME "gewaesser_noe" STYLE SYMBOL 0 COLOR 199 195 240 OUTLINECOLOR 106 105 199 SIZE 1 MINSIZE 1 MAXSIZE 100 END STYLE SYMBOL 0 COLOR 0 0 255 BACKGROUNDCOLOR 251 148 112 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END END ----------------------------- capabilities-file: ]> OGC:WMS mmp_wms_centrope_natura2000 application/vnd.ogc.wms_xml image/png image/gif image/jpeg image/wbmp image/tiff text/plain application/vnd.ogc.gml text/xml image/png image/gif image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank mmp_wms mmp_wms_centrope_natura2000 EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:31287 EPSG:4326 From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Aug 16 05:15:07 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:55 2008 Subject: AW: [UMN_MAPSERVER-USERS] falling back to SRS error message In-Reply-To: Message-ID: Hi Bart, Do you mean I have to change my map file from: LAYER METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END to LAYER METADATA "WMS_SRS" "EPSG:31287" "WMS_SRS" "EPSG:4326" END so in the Capabilities there is only the 4326 shown: EPSG:4326 Can you tell me what exactly I have to put in my map file please? Thanks a lot! - Leopold --------------------------------------------- new Capabilities: ]> OGC:WMS mmp_wms_centrope_natura2000 application/vnd.ogc.wms_xml image/png image/gif image/jpeg image/wbmp image/tiff text/plain application/vnd.ogc.gml text/xml image/png image/gif image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank mmp_wms mmp_wms_centrope_natura2000 EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:4326 ______________________________________ new map-file: MAP NAME "mmp_wms" STATUS OFF EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034 SIZE 800 600 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 226 UNITS METERS WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" "wms_title" "mmp_wms_centrope_natura2000" END END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:31287" END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP FONT "fritqat-italic" SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "gewaesser_noe" STATUS ON DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Gewaesser_Noe" "DESCRIPTION" "Wasser" "WMS_SRS" "EPSG:31287" "WMS_SRS" "EPSG:4326" END CLASS NAME "gewaesser_noe" STYLE SYMBOL 0 COLOR 199 195 240 OUTLINECOLOR 106 105 199 SIZE 1 MINSIZE 1 MAXSIZE 100 END STYLE SYMBOL 0 COLOR 0 0 255 BACKGROUNDCOLOR 251 148 112 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END END ______________________________________________________ ______________________________________________________ -----Ursprungliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]Im Auftrag von Bart van den Eijnden Gesendet: Dienstag, 16. August 2005 10:24 An: MAPSERVER-USERS@LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] falling back to SRS error message Leopold, I see you are using Mapserver 4.4.0. I think you should try upgrading to Mapserver 4.6. There was a fix for this 24 May 2005. * Revision 1.163 2005/05/24 18:52:45 julien * Bug 1149: From WMS 1.1.1, SRS are given in individual tags. There is a strange thing in your capabilities, this part: EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:31287 EPSG:4326 For your root layer, the notation is the old OGC notation: EPSG:31287 EPSG:4326. For your child layers, the notation is the new OGC notation: EPSG:31287EPSG:4326 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/16/05 09:48am >>> hi list, hi Bart. I had a error message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers." Bart solved the problem giving: .... WEB METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END .... PROJECTION "init=epsg:31287" END .... LAYER METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END .... Then it worked. But suddenly id doesn t work anymore and the same error message is displayed. Can someone help me please? Leopold ---------------------------------------------- following the map-file and the Capabilities: ---------------------------------------------- GetCapabilitiesRequest: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2/tuto rial/natura2000_epsg_2.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities ----------------------------- map-file: MAP NAME "mmp_wms" STATUS OFF EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034 SIZE 800 600 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 226 UNITS METERS WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" "wms_title" "mmp_wms_centrope_natura2000" END END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:31287" END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP FONT "fritqat-italic" SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "gewaesser_noe" STATUS ON DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Gewaesser_Noe" "DESCRIPTION" "Wasser" "WMS_SRS" "EPSG:31287 EPSG:4326" END CLASS NAME "gewaesser_noe" STYLE SYMBOL 0 COLOR 199 195 240 OUTLINECOLOR 106 105 199 SIZE 1 MINSIZE 1 MAXSIZE 100 END STYLE SYMBOL 0 COLOR 0 0 255 BACKGROUNDCOLOR 251 148 112 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END END ----------------------------- capabilities-file: ]> OGC:WMS mmp_wms_centrope_natura2000 application/vnd.ogc.wms_xml image/png image/gif image/jpeg image/wbmp image/tiff text/plain application/vnd.ogc.gml text/xml image/png image/gif image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank mmp_wms mmp_wms_centrope_natura2000 EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:31287 EPSG:4326 From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 16 05:18:40 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: AW: [UMN_MAPSERVER-USERS] falling back to SRS error message Message-ID: Hi Leopold, this is not something you can fix in your MAP file, you need to upgrade your Mapserver to get it fixed. I don't know 100% sure though if this is causing the error message of Mapbender, but I can imagine this could be the case. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/16/05 11:15am >>> Hi Bart, Do you mean I have to change my map file from: LAYER METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END to LAYER METADATA "WMS_SRS" "EPSG:31287" "WMS_SRS" "EPSG:4326" END so in the Capabilities there is only the 4326 shown: EPSG:4326 Can you tell me what exactly I have to put in my map file please? Thanks a lot! - Leopold --------------------------------------------- new Capabilities: ]> OGC:WMS mmp_wms_centrope_natura2000 application/vnd.ogc.wms_xml image/png image/gif image/jpeg image/wbmp image/tiff text/plain application/vnd.ogc.gml text/xml image/png image/gif image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank mmp_wms mmp_wms_centrope_natura2000 EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:4326 ______________________________________ new map-file: MAP NAME "mmp_wms" STATUS OFF EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034 SIZE 800 600 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 226 UNITS METERS WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" "wms_title" "mmp_wms_centrope_natura2000" END END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:31287" END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP FONT "fritqat-italic" SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "gewaesser_noe" STATUS ON DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Gewaesser_Noe" "DESCRIPTION" "Wasser" "WMS_SRS" "EPSG:31287" "WMS_SRS" "EPSG:4326" END CLASS NAME "gewaesser_noe" STYLE SYMBOL 0 COLOR 199 195 240 OUTLINECOLOR 106 105 199 SIZE 1 MINSIZE 1 MAXSIZE 100 END STYLE SYMBOL 0 COLOR 0 0 255 BACKGROUNDCOLOR 251 148 112 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END END ______________________________________________________ ______________________________________________________ -----Ursprungliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]Im Auftrag von Bart van den Eijnden Gesendet: Dienstag, 16. August 2005 10:24 An: MAPSERVER-USERS@LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] falling back to SRS error message Leopold, I see you are using Mapserver 4.4.0. I think you should try upgrading to Mapserver 4.6. There was a fix for this 24 May 2005. * Revision 1.163 2005/05/24 18:52:45 julien * Bug 1149: From WMS 1.1.1, SRS are given in individual tags. There is a strange thing in your capabilities, this part: EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:31287 EPSG:4326 For your root layer, the notation is the old OGC notation: EPSG:31287 EPSG:4326. For your child layers, the notation is the new OGC notation: EPSG:31287EPSG:4326 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/16/05 09:48am >>> hi list, hi Bart. I had a error message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers." Bart solved the problem giving: ..... WEB METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END ..... PROJECTION "init=epsg:31287" END ..... LAYER METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END ..... Then it worked. But suddenly id doesn t work anymore and the same error message is displayed. Can someone help me please? Leopold ---------------------------------------------- following the map-file and the Capabilities: ---------------------------------------------- GetCapabilitiesRequest: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2/tuto rial/natura2000_epsg_2.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities ----------------------------- map-file: MAP NAME "mmp_wms" STATUS OFF EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034 SIZE 800 600 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 226 UNITS METERS WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" "wms_title" "mmp_wms_centrope_natura2000" END END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:31287" END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP FONT "fritqat-italic" SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "gewaesser_noe" STATUS ON DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Gewaesser_Noe" "DESCRIPTION" "Wasser" "WMS_SRS" "EPSG:31287 EPSG:4326" END CLASS NAME "gewaesser_noe" STYLE SYMBOL 0 COLOR 199 195 240 OUTLINECOLOR 106 105 199 SIZE 1 MINSIZE 1 MAXSIZE 100 END STYLE SYMBOL 0 COLOR 0 0 255 BACKGROUNDCOLOR 251 148 112 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END END ----------------------------- capabilities-file: ]> OGC:WMS mmp_wms_centrope_natura2000 application/vnd.ogc.wms_xml image/png image/gif image/jpeg image/wbmp image/tiff text/plain application/vnd.ogc.gml text/xml image/png image/gif image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank mmp_wms mmp_wms_centrope_natura2000 EPSG:31287 EPSG:4326 gewaesser_noe Gewaesser_Noe EPSG:31287 EPSG:4326 From valik.solorzano.barboza at GEODAN.NL Tue Aug 16 08:04:22 2005 From: valik.solorzano.barboza at GEODAN.NL (=?iso-8859-1?Q?Valik_Sol=F3rzano_Barboza?=) Date: Fri Feb 8 15:07:55 2008 Subject: Web Mapping Illustrated as PDF? In-Reply-To: Message-ID: Hi Tyler (and list) my compliments to your book. It is really a great overview of all the available OpenSource Gis components and various techniques. I'm just wondering is there also a digital version that we can publish internally within our organization. It will help a lot, especially if you are looking for something and you have to search. Regards, Valik Drs. Valik Sol?rzano Barboza Geodan Systems & Research President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- Tel: +31 (0)20 - 5711 311 Fax: +31 (0)20 - 5711 333 ------------------------------------- E-mail: valik.solorzano.barboza@geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer ------------------------------------- From Gail.Millin at MANCHESTER.AC.UK Tue Aug 16 08:40:03 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail) Date: Fri Feb 8 15:07:55 2008 Subject: SRS Error in Mapbender In-Reply-To: Message-ID: Hi Leopold, I have had a look at your MapBender website and the viewer appears to be configured to EPSG 31467. However in you natura2000_epsg.map file the init is set to epsg 321287. PROJECTION "init=epsg:31287" END If you change this as below to epsg 31467 I think the wms will work. PROJECTION "init=epsg:31467" END Also in your mapserv.dat file there is an error message You need to add your wms_title metadata this may also be causing some problems. Give that a try and let me know if it works otherwise I have one more suggestion I could make. Gail -----Original Message----- From: Leopold Schefcik (MULTIMEDIAPLAN.AT) [mailto:leopold.schefcik@multimediaplan.at] Sent: Tuesday, August 16, 2005 1:05 PM To: Gail Subject: SRS Error in Mapbender Hi Gail, maybe you can help me with this problem!? Leopold (English Version below.) Hallo, mein Mapserver l?uft ganz brauchbar, wenn ich ihn in den OCG WMS Viewer (http://www.wmsviewer.com/main.asp) einbinde. Sobald ich den selben Request allerdings in eine Mapbender Gui einbinde kommt die Fehlermeldung: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers." Was ist da los?!?!?!? Diese Fehlermeldung kenne ich von der Zeit, als wir im Mapbender Forum uns m?hsam mit den EPSGs der Metadaten gespielt haben. Schlussendlich hat es damit geklappt: ... WEB METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END ... PROJECTION "init=epsg:31287" END ... LAYER METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END ... Was kann ich tun, damit es auch in Mapbender klappt? (Das Groteske ist ja, dass es schon mal funktioniert hatte, aber jetzt aus irgendwelchen unerfindlichen Gr?nden pltzlich nicht mehr geht.) Ich bitte dringend um Hilfestellung! Danke - Leopold Im Anhang befinden sich Map-file und Capabilities-file. Mapbender-Projekt: http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=Leop&name=test& password=test GetCapabilities Request: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2/tuto rial/natura2000_epsg.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities _______________________________________________________________ ENGLISH: Hello, my WebMapServer is running with the OCG WMS Viewer (http://www.wmsviewer.com/main.asp) without any problems. But, when I want to integrate it in my Mapbender project I get the error message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all requested layers." What could be the reason for this? I know this error message from the time we worked in Mapserver Forum at the settings f?r the meta-epsg data. With this configuration it works know: ... WEB METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END ... PROJECTION "init=epsg:31287" END ... LAYER METADATA "WMS_SRS" "EPSG:31287 EPSG:4326" END ... What can I do, to make it works in Mapbender too. (It?s a great pity, that it was running already, and suddenly it does not work anymore.) I'm asking you urgently to help me! Thanks a lot! - Leopold In the attachement there are the Map-file and the Capabilities-file. Mapbender-Projekt: http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=Leop&name=test& password=test GetCapabilities Request: http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2/tuto rial/natura2000_epsg.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 16 08:41:17 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: Web Mapping Illustrated as PDF? Message-ID: Hi Valik, AFAIK Safari is O'Reilly's section for e-books, but Tyler's book is not in there yet and I don't know if that is planned. http://safari.oreilly.com Mapping Hacks is in there though. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Valik Sol?rzano Barboza 08/16/05 02:04pm >>> Hi Tyler (and list) my compliments to your book. It is really a great overview of all the available OpenSource Gis components and various techniques. I'm just wondering is there also a digital version that we can publish internally within our organization. It will help a lot, especially if you are looking for something and you have to search. Regards, Valik Drs. Valik Sol?rzano Barboza Geodan Systems & Research President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- Tel: +31 (0)20 - 5711 311 Fax: +31 (0)20 - 5711 333 ------------------------------------- E-mail: valik.solorzano.barboza@geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer ------------------------------------- From fwarmerdam at GMAIL.COM Tue Aug 16 10:27:12 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:55 2008 Subject: OGR VRT for lines? In-Reply-To: <20050815172520.gc5c7rjb40cwc00s@webmail.herzsys.de> Message-ID: On 8/15/05, Listuser H. wrote: > Hi all, > > I use VRT to create a point layer with x/y coordinates from a table. In the docs > is mentioned that this only works for point data. But what I want to do is to > create a simple line layer from a table with x/y for the startpoint and x/y for > endpoint. I saw in the docs that OGR has a GeometryType wkbLineString. > > If it is possible to use this how could the GeometryField definition look like. Norbert, There is currently no mechanism to create linestrings from four columns, sorry. If you can create a single column with the linestring geometry in WKT format (ie. LINESTRING(1 3,2 4)) then you could read it from a flat table. I could add the capability you are requesting as a different case if you need it badly enough. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ahuang at GEOANALYTIC.COM Tue Aug 16 11:25:49 2005 From: ahuang at GEOANALYTIC.COM (Andrew Huang) Date: Fri Feb 8 15:07:55 2008 Subject: raster to pdf Message-ID: Hi, I'm trying to get mapserver to output a pdf file from a tiff image. I can't seem to find much documentation about creating pdf files with mapserver so I thought I'd post something in here. I'm able to create a pdf, but the file seems to only have 256 colors. Below is a copy of the map file I use. Am I doing something wrong? MAP NAME test STATUS ON OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" DRIVER pdf IMAGEMODE RGB EXTENSION "pdf" END SIZE 10800 10800 EXTENT 679793.750000 5485393.75 717518.75 5515106.250000 UNITS METERS PROJECTION "proj=utm" "ellps=clrk66" "zone=11" "datum=NAD27" END LAYER NAME "82G09" TYPE RASTER STATUS ON DATA "082G09FN.tif" PROJECTION "proj=utm" "ellps=clrk66" "zone=11" "datum=NAD27" END END END Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050816/31dba18c/attachment.html From frizby at AQUA.WISC.EDU Tue Aug 16 13:08:16 2005 From: frizby at AQUA.WISC.EDU (Frizby James H. Grandt) Date: Fri Feb 8 15:07:55 2008 Subject: Pseudo Production Environment Message-ID: Users: I am installing MapServer on a Win2003 Server. Are there installation instructions to put all the pieces together since I am not using MS4W? Are there guidelines for making the server secure to the outside world? Thanks in advance. James H. Grandt - Electrical Engineer/Sys Admin UW-Madison - Aquatic Sciences Center 1975 Willow Drive Room 214 Madison, WI 53706-1177 Personal Cell: (608) 436-1552 Office Phone: (608) 263-6961 FAX: (608) 262-0591 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050816/fc8d5aec/attachment.html From listsbox at FASTMAIL.FM Tue Aug 16 14:29:22 2005 From: listsbox at FASTMAIL.FM (Renaud) Date: Fri Feb 8 15:07:55 2008 Subject: Binary Grid scaling Message-ID: One of the layers of our map is a raster image (see gdalinfo output) which represents a piece of land, surrounded by a NODATA area. The display through mapserver is correct as long as the displayed area doesn't include any NODATA dots. Sadly, if a part of the displayed box has a NODATA area, the latter appears black while the land is white. Driver: AIG/Arc/Info Binary Grid Size is 5072, 2944 Coordinate System is `' Origin = (41800.000000,168200.000000) Pixel Size = (50.00000000,-50.00000000) Corner Coordinates: Upper Left ( 41800.000, 168200.000) Lower Left ( 41800.000, 21000.000) Upper Right ( 295400.000, 168200.000) Lower Right ( 295400.000, 21000.000) Center ( 168600.000, 94600.000) Band 1 Block=317x4 Type=Float32, ColorInterp=Undefined Min=0.024 Max=0.264 NoData Value=-3.40282e+38 It seems to be a scaling problem... We have played around with *the PROCESSING "SCALE=AUTO" or "NODATA=..." options, *classes etc. from within the mapfile, and tried to convert the image to another format with gdal_translate, but nothing worked. Thank you for your help, Renaud Detry. From fwarmerdam at GMAIL.COM Tue Aug 16 14:50:56 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:55 2008 Subject: Binary Grid scaling In-Reply-To: <8b811b97b87ec76ad9b9b47ecbc16075@fastmail.fm> Message-ID: On 8/16/05, Renaud wrote: > One of the layers of our map is a raster image (see gdalinfo output) > which represents a piece of land, surrounded by a NODATA area. The > display through mapserver is correct as long as the displayed area > doesn't include any NODATA dots. Sadly, if a part of the displayed box > has a NODATA area, the latter appears black while the land is white. > > Driver: AIG/Arc/Info Binary Grid > Size is 5072, 2944 > Coordinate System is `' > Origin = (41800.000000,168200.000000) > Pixel Size = (50.00000000,-50.00000000) > Corner Coordinates: > Upper Left ( 41800.000, 168200.000) > Lower Left ( 41800.000, 21000.000) > Upper Right ( 295400.000, 168200.000) > Lower Right ( 295400.000, 21000.000) > Center ( 168600.000, 94600.000) > Band 1 Block=317x4 Type=Float32, ColorInterp=Undefined > Min=0.024 Max=0.264 > NoData Value=-3.40282e+38 > > > It seems to be a scaling problem... We have played around with > *the PROCESSING "SCALE=AUTO" or "NODATA=..." options, > *classes etc. > from within the mapfile, and tried to convert the image to another > format with gdal_translate, but nothing worked. Renaud, It should be sufficient to use the line: PROCESSING "SCALE=0.024,0.264" in your layer definition. This tells GDAL to manually scale the values from 0.024 to 0.264. The nodata areas will likely be displayed in white. If you need the nodata areas to be show transparent, then other mechanisms may be needed. For instance, gdal_translate -scale 0.024 0.280 -a_nodata 255 in/hdf.adf out.tif should rescale the image, and translate all nodata pixels to the value 255 which will be marked as nodata. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From tylermitchell at SHAW.CA Tue Aug 16 23:17:05 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:55 2008 Subject: Web Mapping Illustrated as PDF? In-Reply-To: <0ILB00DU1DJG0800@l-daemon> Message-ID: Hi Valik, Bart beat me to it - yes, O'Reilly's Safari service will be what you want. I'm not sure why it isn't available there yet, but I'm looking into it. Thank you for the compliments, I hope it helps you out! Tyler On August 16, 2005 05:04 am, Valik Sol?rzano Barboza wrote: > Hi Tyler (and list) > > my compliments to your book. It is really a great overview of all the > available OpenSource Gis components and various techniques. I'm just > wondering is there also a digital version that we can publish internally > within our organization. It will help a lot, especially if you are looking > for something and you have to search. > > Regards, > > Valik > > Drs. Valik Sol?rzano Barboza > > Geodan Systems & Research > President Kennedylaan 1 > 1079 MB Amsterdam (NL) > ------------------------------------- > Tel: +31 (0)20 - 5711 311 > Fax: +31 (0)20 - 5711 333 > ------------------------------------- > E-mail: valik.solorzano.barboza@geodan.nl > Website: www.geodan.nl > Disclaimer: www.geodan.nl/disclaimer > ------------------------------------- From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 17 02:26:34 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:55 2008 Subject: Pseudo Production Environment Message-ID: It's not that difficult installing Mapserver on IIS 6 and Windows 2003. You need to create a Web Service Extension though for the mapserv.exe CGI. I always keep the dependent dll's in the same directory as the CGI program. If you have any specific questions or run into issues, post them to the list. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Frizby James H. Grandt" 08/16/05 19:18 PM >>> Users: I am installing MapServer on a Win2003 Server. Are there installation instructions to put all the pieces together since I am not using MS4W? Are there guidelines for making the server secure to the outside world? Thanks in advance. James H. Grandt - Electrical Engineer/Sys Admin UW-Madison - Aquatic Sciences Center 1975 Willow Drive Room 214 Madison, WI 53706-1177 Personal Cell: (608) 436-1552 Office Phone: (608) 263-6961 FAX: (608) 262-0591 From bernhard.klingseisen at ALUMNI.FH-KAERNTEN.AT Wed Aug 17 03:50:17 2005 From: bernhard.klingseisen at ALUMNI.FH-KAERNTEN.AT (Bernhard Klingseisen) Date: Fri Feb 8 15:07:55 2008 Subject: Update Mapfile on the fly Message-ID: Hi List, I'm currently searching for a sol?tion of how to update the content of a mapservice on the fly. In fact I want to pass features (e.g. groundwater sampling sites) to Grass to interpolate a surface and send this surface back to the client via mapserver. Does anyone have an idea of how to manage this? Regards Bernie From Gail.Millin at MANCHESTER.AC.UK Wed Aug 17 04:24:34 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail) Date: Fri Feb 8 15:07:55 2008 Subject: SRS Error in Mapbender In-Reply-To: Message-ID: Leopold, first of all: thank you very much for helping me!! No problem I tried: 1. changing "init=epsg:31287" to "init=epsg:31467" in my map-file -> nothing changed. (I think this coult not be right, because my maps are in epsg 31287, only the German map from an other webserver might be in 31467.) I see, well if the German map is in epsg 31467 and all the other layers are in epsg 31287 this could be your problem. How are you requesting that particular layer? Is it being called from a separate mapfile containing only that layer? Or are your layers all in the same mapfile? 2. I tried to change the EPSG of the bounding box. I coult only find it in ../php/mod_changeEPSG.php?sessionID to make my epsg available in the dropdown. -> But also nothing changed. (Where can I change the setting for the bounding box himself?) What epsg is the viewer set in at the moment? Is it showing the layers in lat long? I tried to look myself but the viewer wasn't loading at the time, I guess you might be working on something. 3. I am sorry, I sended you an old mapserv.dat file. In the attachement is the new one. I think I could eliminate all the warning-messages. Well that's one error removed - What do you think about the settings of the "init=epsg:31..." and of the bounding box? - Maybe you can tell me your other suggestions, you metioned? The init=epsg should be the same projection as what the viewer is configured to be. So if the viewer is configured to show data layers in lat long the init=epsg 4326 My other suggestion would be to structure your mapfiles in this way. 1) First have one main mapfile which contains all the layers coming from your own server 2) The layers that are being requested from external servers such as the German layer define in the main mapfile and use CONNECTION in the Layer object to connect to the external server, rather than requesting the layer directly from the German mapfile. Therefore in affect you are cascading the German layer through your own mapfile to ensure that all layers are being requested with the same epsg settings. Let me know if that helps at all Gail Thx a lot and greatings from Vienna. Leopold From holl at GDF-HANNOVER.DE Wed Aug 17 04:28:09 2005 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Fri Feb 8 15:07:55 2008 Subject: Update Mapfile on the fly In-Reply-To: Message-ID: Hello Bernhard, On Wed, 17 Aug 2005 02:50:17 -0500 Bernhard Klingseisen wrote: > Hi List, > > I'm currently searching for a sol=FAtion of how to update the content > of a mapservice on the fly. In fact I want to pass features (e.g. > groundwater sampling sites) to Grass to interpolate a surface and > send this surface back to the client via mapserver. > > Does anyone have an idea of how to manage this? You could use any mapscript-flavour which updates the data-part of the layer (or creates another Raster-layer inside the mapfile) according to the calculated result of GRASS. Be aware that gdal needs to be compiled with GRASS-Support. hth Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl@gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From robert-fritz at WEB.DE Wed Aug 17 07:49:40 2005 From: robert-fritz at WEB.DE (robert fritz) Date: Fri Feb 8 15:07:55 2008 Subject: mapscript set connectiontype Message-ID: An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050817/588fbd73/attachment.html From eric at GOMOOS.ORG Wed Aug 17 08:51:43 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri Feb 8 15:07:55 2008 Subject: mapscript set connectiontype In-Reply-To: <1909781237@web.de> Message-ID: Try using: $objLayer->set('conectiontype', MS_OGR); On Wed, 2005-08-17 at 07:49, robert fritz wrote: Hello, i try to set the "connectiontype" property of one layer using mapscript php $objLayer->set('connectiontype','OGR'); $objLayer->set('connection',$oldData); $objLayer->set('data',$strNewData); The "connection" and "data" properties were set but the "connectiontype" property is not. The layer is not drawn, but I do not get any error message. I saved the dynamically changed map-file and there is no property "connectiontype" in the layer-definition. If I try to set the property in this way $objLayer->set('connectiontype', 0); the layer is not drawn, but if I take this $objLayer->set('connectiontype', 1); I get a PHP Warning PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'FS'. So, what I'm doing wrong? Thanks, Robert Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179 From listuser at HERZSYS.DE Wed Aug 17 09:29:17 2005 From: listuser at HERZSYS.DE (listuser HH) Date: Fri Feb 8 15:07:55 2008 Subject: mapscript set connectiontype In-Reply-To: <1909781237@web.de> Message-ID: robert fritz wrote: > Hello, > > i try to set the "connectiontype" property of one layer using > mapscript php > > ? > > $objLayer->set('connectiontype','OGR'); > > $objLayer->set('connection',$oldData); > > $objLayer->set('data',$strNewData); > > ? > > The "connection" and "data" properties were set but the > "connectiontype" property is not. The layer is not drawn, but I do not > get any error message. I saved the dynamically changed map-file and > there is no property "connectiontype" in the layer-definition. > > If I try to set the property in this way > > ? > > $objLayer->set('connectiontype', 0); > > ? > > the layer is not drawn, but if I take this > > ? > > $objLayer->set('connectiontype', 1); > > ? > > I get a PHP Warning PHP Warning: > > [MapServer Error]: msDrawMap(): Failed to draw layer named 'FS'. > > So, what I'm doing wrong? > > Thanks, Robert Hi, you should use the MS_* defininitions. Have a look at: http://ms.gis.umn.edu/docs/reference/mapscript/index_html#mapscript-variables Regards, Norbert From adam.hill at GMAIL.COM Wed Aug 17 09:35:00 2005 From: adam.hill at GMAIL.COM (Adam Hill) Date: Fri Feb 8 15:07:55 2008 Subject: Pseudo Production Environment In-Reply-To: Message-ID: OK I'll bite. Point us to some code that shows us how to redirect output from an EXE to the request from the server. Is this going to be something we have to write specifically for mapserver or has someone written a wrapper that turns any EXE with stdout into a CG for IIS? (like SRVANY for Windows Services) I have been wondering how to do this as well. adam hill Thregecy inc. On 8/17/05, Bart van den Eijnden wrote: > It's not that difficult installing Mapserver on IIS 6 and Windows 2003. You need to create a Web Service Extension though for the mapserv.exe CGI. I always keep the dependent dll's in the same directory as the CGI program. > > If you have any specific questions or run into issues, post them to the list. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > >>> "Frizby James H. Grandt" 08/16/05 19:18 PM >>> > Users: > > I am installing MapServer on a Win2003 Server. > Are there installation instructions to put all the pieces together > since I am not using MS4W? Are there guidelines for making > the server secure to the outside world? > > Thanks in advance. > > James H. Grandt - Electrical Engineer/Sys Admin > UW-Madison - Aquatic Sciences Center > 1975 Willow Drive Room 214 > Madison, WI 53706-1177 > Personal Cell: (608) 436-1552 > Office Phone: (608) 263-6961 > FAX: (608) 262-0591 > From tylermitchell at SHAW.CA Wed Aug 17 10:52:02 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:55 2008 Subject: Update Mapfile on the fly In-Reply-To: Message-ID: Bernie, If you are using the CGI version of MapServer ( not MapScript ), you should be able to change some things in the URL to point to your new layer name. What did you have in mind? If you can tell us a bit more, it might help us direct you accordingly. Sounds interesting! Tyler On August 17, 2005 12:50 am, Bernhard Klingseisen wrote: > Hi List, > > I'm currently searching for a sol?tion of how to update the content of a > mapservice on the fly. In fact I want to pass features (e.g. groundwater > sampling sites) to Grass to interpolate a surface and send this surface > back to the client via mapserver. > > Does anyone have an idea of how to manage this? > > Regards > Bernie From helmster_99 at YAHOO.COM Wed Aug 17 11:26:50 2005 From: helmster_99 at YAHOO.COM (Chris Helm) Date: Fri Feb 8 15:07:55 2008 Subject: Point Query Hilite? In-Reply-To: <200508170752.02856.tylermitchell@shaw.ca> Message-ID: Hi List, I have an issue that I'm not understanding. When I'm in query mode my point query works query just fine (as far the data returned in the results), but the query map is not hiliting the feature queried. When I'm in nquery mode everything is queried and everything that should be hilited is. Has anyone had this problem before? Thanks, Chris __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html From tnaberhaus at MONTANA.EDU Wed Aug 17 14:27:14 2005 From: tnaberhaus at MONTANA.EDU (Thomas Naberhaus) Date: Fri Feb 8 15:07:55 2008 Subject: mapscript installation on debian Message-ID: I have been attempting to install Mapserver/php mapscript on debian sarge for several days now with no luck. When using the instructions given below, I receive the following error when attempting to restart apache2: "Invalid command 'Action', perhaps mis-spelled or defined by a module not included in the server configuration" What am I doing wrong? Can anyone provide some insight, advice, or perhaps more updated instructions for completing this install? I am interested in using the apache module version of php for non-mapscript php pages, and the cgi-version only as required by mapscript. Thanks all. On Thu, 24 Mar 2005 08:43:32 -0500, James Cradock wrote: >This all assumes that Apache2 and PostgreSQL with PostgreSQL's >libraries are installed. Also assumed: That you're running Debian Sarge >("testing"). (Watch the line breaks!) > >Change to user root and bring APT up-to-date: > >apt-get update > >1. Supporting libraries: > >Install libraries to make MapServer useful -- many of these are >documented on the UNIX installation page on MapServer's online >documentation: > >apt-get install libgd2 libgd2-dev proj libcurl3 libcurl3-dev libtiff4 >libtiff4-dev libjpeg62 libjpeg62-dev freetype2 libgdal1 libgdal1-dev > >2. PHP: > >PHP must be run as a CGI and it must be configured and built with >system regular expressions. This install of PHP will give you PHP as a >CGI with system regex wihout clobbering mod_php (if it's installed) >with its built-in regex -- note that I'm installing the PHP I want to >use with MapServer in /usr/local/php_for_mapserver-4.3.10 and that I'm >symlinking it to make upgrading PHP easier: > >cd /usr/local/src >apt-get source php4-cgi >cd php4-4.3.10 >./configure --prefix=/usr/local/php_for_mapserver-4.3.10 --enable-dbase >--with-jpeg=/usr --with-tiff=/usr --with-gd=/usr --with-png=/usr >--with-freetype --with-zlib --with-regex=system >make >make install >cp php.ini-dist /usr/local/php_for_mapserver-4.3.10/lib/php.ini >cd /usr/local >ln -s php_for_mapserver-4.3.10 php_for_mapserver > >Setup Apache to execute all *.phtml as PHP CGI. First edit >/etc/apache2/sites-enabled/default (or whatever your default >configuration is): > > > AddType application/x-httpd-php-cgi .phtml > Action application/x-httpd-php-cgi /cgi-bin/php > > >Then add this shell script, called "php", to the /usr/lib/cgi-bin >directory: > >#!/bin/sh > >export SCRIPT_FILENAME=$PATH_TRANSLATED >/usr/local/php_for_mapserver/bin/php -c >/usr/local/php_for_mapserver/etc/php.ini > >Make it executable: > >chmod 755 /usr/lib/cgi-bin/php > >Make the "mapserver" directory: > >mkdir /var/www/mapserver > >And make a phpinfo.phtml file: > >echo "" > /var/www/mapserver/phpinfo.phtml > >If you restart Apache ("apache2ctl restart") and navigate to >"http://127.0.0.1/mapserver/phpinfo.phtml" you'll see the output you'd >otherwise see loading a page with phpinfo() with the *.php extension. > >3. MapServer: > >cd /usr/local/src >wget http://cvs.gis.umn.edu/dist/mapserver-4.4.1.tar.gz >tar -zxvf mapserver-4.4.1.tar.gz >cd mapserver-4.4.1 >./configure --prefix=/usr/local/mapserver-4.4.1 --with-jpeg >--with-freetype=/usr/local --with-zlib --with-png --with-tiff >--with-gd=/usr --with-proj=/usr --with-gdal=/usr/bin/gdal-config >--with-wmsclient --with-php=/usr/local/php_for_mapserver >--with-postgis=/usr/bin/pg_config --with-mygis=/usr/bin/mysql_config >make >make install > >"make install" will print this message to your terminal window: > >***** MapServer Installation ***** >To install MapServer, copy the 'mapserv' file to your web server's >cgi-bin >directory. >If you use MapScript then see the documentation for your specific >MapScript >version for installation instructions. > >Copy "mapserv" to the CGI-BIB directory: > >cp mapserv /usr/lib/cgi-bin/mapserv > >Enable PHP/MapScript: > >cd mapscript/php3 >mkdir /usr/local/php_for_mapserver/lib/php/20020429 >cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ > >In /usr/local/php_for_mapserver/lib/php.ini set the extension_dir to >/usr/local/php_for_mapserver/lib/php/20020429/, enable the >PHP/MapScript module: > >extension=php_mapscript.so > >And copy php_mapscript.so to the extensions directory: > >cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ > >Now you don't need to load the module in your PHP script. > >Restart Apache and go again to >"http://127.0.0.1/mapserver/phpinfo.phtml". You'll see a block for >MapScript. > >4. Gotchas: > >* I've enabled MapServer and PHP/MapScript with support for MyGIS. You >may need to install MySQL 4.1's client libraries: > >apt-get install libmysqlclient14 libmysqlclient14-dev > >* mod_action may need to be enabled in Apache. It's disabled in Debian >by default: > >cd /etc/apache2/mods-enabled >ln -s /etc/apache2/mods-available/actions.load . > >* Again, this all assumes that Apache2 and PostgreSQL with PostgreSQL's >libraries are installed. > >I hope this helps. Let me know if I should make changes to these >instructions. > >Thanks. > >Jim > >On Mar 23, 2005, at 10:23 AM, Lehuta Juraj - OZ wrote: > >> Yes, it will be fayn, >> thank you very much >> >> WochteR >> >> >> -----Original Message----- >> From: James Cradock [mailto:jcradock@me3.com] >> Sent: Wednesday, March 23, 2005 4:15 PM >> To: Lehuta Juraj - OZ >> Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian >> >> I would install all the supporting software (apache2, proj, gdal, gd, >> etc -- >> look at the MapServer UNIX installation docs) from APT and build PHP >> (to run >> as a CGI alongside mod_php) and MapServer from source. I've got an >> utterly >> straightforward installation recipe, including input for a gotcha or >> two >> I've gotten help with from this list, for Sarge, and I can send it to >> you >> later today and amend it to the Debian topic on the MapServer Wiki. >> >> Jim >> >> On Mar 23, 2005, at 10:04 AM, Lehuta Juraj - OZ wrote: >> >>> yes, >>> extension_dir /usr/lib/php4/20020429-zts /usr/lib/php4/20020429-zts >>> >>> and mapscript.so is realy in this directory >>> >>> my Debian is: >>> sarge >>> Linux mapserver 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 >>> GNU/Linux >>> >>> I installed mapserver and mapscript packages from deb >>> http://agrogeomatic.educagri.fr/debian woody main >>> >>> by: >>> apt-get install php-mapscript cgi-mapserver php4 >>> >>> When I remove the mapscript.so from /usr/lib/php4/20020429-zts I >>> obtain this: >>> Warning: dl(): Unable to load dynamic library >>> '/usr/lib/php4/20020429-zts/php_mapscript.so' - >>> /usr/lib/php4/20020429-zts/php_mapscript.so: cannot open shared object >>> file: >>> No such file or directory in /var/www/test.php on line 2 >>> >>> ** cannot open shared object file*** >>> >> ----- >> James Cradock, jcradock@me3.com >> >> me3 Technology Consultants, LLC >> 24 Preble Street, 2nd Floor >> Portland, ME 04101 >> >> 207-772-3217 (office) >> 207-838-8678 (mobile) >> >> www.me3.com >> >> >----- >James Cradock, jcradock@me3.com > >me3 Technology Consultants, LLC >24 Preble Street, 2nd Floor >Portland, ME 04101 > >207-772-3217 (office) >207-838-8678 (mobile) > >www.me3.com From armin.burger at GMX.NET Wed Aug 17 14:46:57 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Fri Feb 8 15:07:55 2008 Subject: mapscript installation on debian In-Reply-To: Message-ID: Thomas, you might have to add something in httpd.conf like LoadModule actions_module modules/mod_actions.so Best regards Armin Thomas Naberhaus wrote: >I have been attempting to install Mapserver/php mapscript on debian sarge >for several days now with no luck. When using the instructions given below, >I receive the following error when attempting to restart apache2: > "Invalid command 'Action', perhaps mis-spelled or defined by a module not > included in the server configuration" >What am I doing wrong? Can anyone provide some insight, advice, or perhaps >more updated instructions for completing this install? I am interested in >using the apache module version of php for non-mapscript php pages, and the >cgi-version only as required by mapscript. > >Thanks all. > > > > > > >On Thu, 24 Mar 2005 08:43:32 -0500, James Cradock wrote: > > > >>This all assumes that Apache2 and PostgreSQL with PostgreSQL's >>libraries are installed. Also assumed: That you're running Debian Sarge >>("testing"). (Watch the line breaks!) >> >>Change to user root and bring APT up-to-date: >> >>apt-get update >> >>1. Supporting libraries: >> >>Install libraries to make MapServer useful -- many of these are >>documented on the UNIX installation page on MapServer's online >>documentation: >> >>apt-get install libgd2 libgd2-dev proj libcurl3 libcurl3-dev libtiff4 >>libtiff4-dev libjpeg62 libjpeg62-dev freetype2 libgdal1 libgdal1-dev >> >>2. PHP: >> >>PHP must be run as a CGI and it must be configured and built with >>system regular expressions. This install of PHP will give you PHP as a >>CGI with system regex wihout clobbering mod_php (if it's installed) >>with its built-in regex -- note that I'm installing the PHP I want to >>use with MapServer in /usr/local/php_for_mapserver-4.3.10 and that I'm >>symlinking it to make upgrading PHP easier: >> >>cd /usr/local/src >>apt-get source php4-cgi >>cd php4-4.3.10 >>./configure --prefix=/usr/local/php_for_mapserver-4.3.10 --enable-dbase >>--with-jpeg=/usr --with-tiff=/usr --with-gd=/usr --with-png=/usr >>--with-freetype --with-zlib --with-regex=system >>make >>make install >>cp php.ini-dist /usr/local/php_for_mapserver-4.3.10/lib/php.ini >>cd /usr/local >>ln -s php_for_mapserver-4.3.10 php_for_mapserver >> >>Setup Apache to execute all *.phtml as PHP CGI. First edit >>/etc/apache2/sites-enabled/default (or whatever your default >>configuration is): >> >> >> AddType application/x-httpd-php-cgi .phtml >> Action application/x-httpd-php-cgi /cgi-bin/php >> >> >>Then add this shell script, called "php", to the /usr/lib/cgi-bin >>directory: >> >>#!/bin/sh >> >>export SCRIPT_FILENAME=$PATH_TRANSLATED >>/usr/local/php_for_mapserver/bin/php -c >>/usr/local/php_for_mapserver/etc/php.ini >> >>Make it executable: >> >>chmod 755 /usr/lib/cgi-bin/php >> >>Make the "mapserver" directory: >> >>mkdir /var/www/mapserver >> >>And make a phpinfo.phtml file: >> >>echo "" > /var/www/mapserver/phpinfo.phtml >> >>If you restart Apache ("apache2ctl restart") and navigate to >>"http://127.0.0.1/mapserver/phpinfo.phtml" you'll see the output you'd >>otherwise see loading a page with phpinfo() with the *.php extension. >> >>3. MapServer: >> >>cd /usr/local/src >>wget http://cvs.gis.umn.edu/dist/mapserver-4.4.1.tar.gz >>tar -zxvf mapserver-4.4.1.tar.gz >>cd mapserver-4.4.1 >>./configure --prefix=/usr/local/mapserver-4.4.1 --with-jpeg >>--with-freetype=/usr/local --with-zlib --with-png --with-tiff >>--with-gd=/usr --with-proj=/usr --with-gdal=/usr/bin/gdal-config >>--with-wmsclient --with-php=/usr/local/php_for_mapserver >>--with-postgis=/usr/bin/pg_config --with-mygis=/usr/bin/mysql_config >>make >>make install >> >>"make install" will print this message to your terminal window: >> >>***** MapServer Installation ***** >>To install MapServer, copy the 'mapserv' file to your web server's >>cgi-bin >>directory. >>If you use MapScript then see the documentation for your specific >>MapScript >>version for installation instructions. >> >>Copy "mapserv" to the CGI-BIB directory: >> >>cp mapserv /usr/lib/cgi-bin/mapserv >> >>Enable PHP/MapScript: >> >>cd mapscript/php3 >>mkdir /usr/local/php_for_mapserver/lib/php/20020429 >>cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ >> >>In /usr/local/php_for_mapserver/lib/php.ini set the extension_dir to >>/usr/local/php_for_mapserver/lib/php/20020429/, enable the >>PHP/MapScript module: >> >>extension=php_mapscript.so >> >>And copy php_mapscript.so to the extensions directory: >> >>cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ >> >>Now you don't need to load the module in your PHP script. >> >>Restart Apache and go again to >>"http://127.0.0.1/mapserver/phpinfo.phtml". You'll see a block for >>MapScript. >> >>4. Gotchas: >> >>* I've enabled MapServer and PHP/MapScript with support for MyGIS. You >>may need to install MySQL 4.1's client libraries: >> >>apt-get install libmysqlclient14 libmysqlclient14-dev >> >>* mod_action may need to be enabled in Apache. It's disabled in Debian >>by default: >> >>cd /etc/apache2/mods-enabled >>ln -s /etc/apache2/mods-available/actions.load . >> >>* Again, this all assumes that Apache2 and PostgreSQL with PostgreSQL's >>libraries are installed. >> >>I hope this helps. Let me know if I should make changes to these >>instructions. >> >>Thanks. >> >>Jim >> >>On Mar 23, 2005, at 10:23 AM, Lehuta Juraj - OZ wrote: >> >> >> >>>Yes, it will be fayn, >>>thank you very much >>> >>>WochteR >>> >>> >>>-----Original Message----- >>>From: James Cradock [mailto:jcradock@me3.com] >>>Sent: Wednesday, March 23, 2005 4:15 PM >>>To: Lehuta Juraj - OZ >>>Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian >>> >>>I would install all the supporting software (apache2, proj, gdal, gd, >>>etc -- >>>look at the MapServer UNIX installation docs) from APT and build PHP >>>(to run >>>as a CGI alongside mod_php) and MapServer from source. I've got an >>>utterly >>>straightforward installation recipe, including input for a gotcha or >>>two >>>I've gotten help with from this list, for Sarge, and I can send it to >>>you >>>later today and amend it to the Debian topic on the MapServer Wiki. >>> >>>Jim >>> >>>On Mar 23, 2005, at 10:04 AM, Lehuta Juraj - OZ wrote: >>> >>> >>> >>>>yes, >>>>extension_dir /usr/lib/php4/20020429-zts /usr/lib/php4/20020429-zts >>>> >>>>and mapscript.so is realy in this directory >>>> >>>>my Debian is: >>>>sarge >>>>Linux mapserver 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 >>>>GNU/Linux >>>> >>>>I installed mapserver and mapscript packages from deb >>>>http://agrogeomatic.educagri.fr/debian woody main >>>> >>>>by: >>>>apt-get install php-mapscript cgi-mapserver php4 >>>> >>>>When I remove the mapscript.so from /usr/lib/php4/20020429-zts I >>>>obtain this: >>>>Warning: dl(): Unable to load dynamic library >>>>'/usr/lib/php4/20020429-zts/php_mapscript.so' - >>>>/usr/lib/php4/20020429-zts/php_mapscript.so: cannot open shared object >>>>file: >>>>No such file or directory in /var/www/test.php on line 2 >>>> >>>>** cannot open shared object file*** >>>> >>>> >>>> >>>----- >>>James Cradock, jcradock@me3.com >>> >>>me3 Technology Consultants, LLC >>>24 Preble Street, 2nd Floor >>>Portland, ME 04101 >>> >>>207-772-3217 (office) >>>207-838-8678 (mobile) >>> >>>www.me3.com >>> >>> >>> >>> >>----- >>James Cradock, jcradock@me3.com >> >>me3 Technology Consultants, LLC >>24 Preble Street, 2nd Floor >>Portland, ME 04101 >> >>207-772-3217 (office) >>207-838-8678 (mobile) >> >>www.me3.com >> >> > > > > From tnaberhaus at MONTANA.EDU Wed Aug 17 15:06:35 2005 From: tnaberhaus at MONTANA.EDU (Naberhaus, Thomas) Date: Fri Feb 8 15:07:55 2008 Subject: mapscript installation on debian Message-ID: Thanks for your suggestion Armin. Actions.load is enabled via the debian style apache2 configuration mechanism. Are there any other ideas out there? Has anyone completed a successful debian sarge mapscript install that has any suggestions? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Armin Burger Sent: Wednesday, August 17, 2005 12:47 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian Thomas, you might have to add something in httpd.conf like LoadModule actions_module modules/mod_actions.so Best regards Armin Thomas Naberhaus wrote: >I have been attempting to install Mapserver/php mapscript on debian sarge >for several days now with no luck. When using the instructions given below, >I receive the following error when attempting to restart apache2: > "Invalid command 'Action', perhaps mis-spelled or defined by a module not > included in the server configuration" >What am I doing wrong? Can anyone provide some insight, advice, or perhaps >more updated instructions for completing this install? I am interested in >using the apache module version of php for non-mapscript php pages, and the >cgi-version only as required by mapscript. > >Thanks all. > > > > > > >On Thu, 24 Mar 2005 08:43:32 -0500, James Cradock wrote: > > > >>This all assumes that Apache2 and PostgreSQL with PostgreSQL's >>libraries are installed. Also assumed: That you're running Debian Sarge >>("testing"). (Watch the line breaks!) >> >>Change to user root and bring APT up-to-date: >> >>apt-get update >> >>1. Supporting libraries: >> >>Install libraries to make MapServer useful -- many of these are >>documented on the UNIX installation page on MapServer's online >>documentation: >> >>apt-get install libgd2 libgd2-dev proj libcurl3 libcurl3-dev libtiff4 >>libtiff4-dev libjpeg62 libjpeg62-dev freetype2 libgdal1 libgdal1-dev >> >>2. PHP: >> >>PHP must be run as a CGI and it must be configured and built with >>system regular expressions. This install of PHP will give you PHP as a >>CGI with system regex wihout clobbering mod_php (if it's installed) >>with its built-in regex -- note that I'm installing the PHP I want to >>use with MapServer in /usr/local/php_for_mapserver-4.3.10 and that I'm >>symlinking it to make upgrading PHP easier: >> >>cd /usr/local/src >>apt-get source php4-cgi >>cd php4-4.3.10 >>./configure --prefix=/usr/local/php_for_mapserver-4.3.10 --enable-dbase >>--with-jpeg=/usr --with-tiff=/usr --with-gd=/usr --with-png=/usr >>--with-freetype --with-zlib --with-regex=system >>make >>make install >>cp php.ini-dist /usr/local/php_for_mapserver-4.3.10/lib/php.ini >>cd /usr/local >>ln -s php_for_mapserver-4.3.10 php_for_mapserver >> >>Setup Apache to execute all *.phtml as PHP CGI. First edit >>/etc/apache2/sites-enabled/default (or whatever your default >>configuration is): >> >> >> AddType application/x-httpd-php-cgi .phtml >> Action application/x-httpd-php-cgi /cgi-bin/php >> >> >>Then add this shell script, called "php", to the /usr/lib/cgi-bin >>directory: >> >>#!/bin/sh >> >>export SCRIPT_FILENAME=$PATH_TRANSLATED >>/usr/local/php_for_mapserver/bin/php -c >>/usr/local/php_for_mapserver/etc/php.ini >> >>Make it executable: >> >>chmod 755 /usr/lib/cgi-bin/php >> >>Make the "mapserver" directory: >> >>mkdir /var/www/mapserver >> >>And make a phpinfo.phtml file: >> >>echo "" > /var/www/mapserver/phpinfo.phtml >> >>If you restart Apache ("apache2ctl restart") and navigate to >>"http://127.0.0.1/mapserver/phpinfo.phtml" you'll see the output you'd >>otherwise see loading a page with phpinfo() with the *.php extension. >> >>3. MapServer: >> >>cd /usr/local/src >>wget http://cvs.gis.umn.edu/dist/mapserver-4.4.1.tar.gz >>tar -zxvf mapserver-4.4.1.tar.gz >>cd mapserver-4.4.1 >>./configure --prefix=/usr/local/mapserver-4.4.1 --with-jpeg >>--with-freetype=/usr/local --with-zlib --with-png --with-tiff >>--with-gd=/usr --with-proj=/usr --with-gdal=/usr/bin/gdal-config >>--with-wmsclient --with-php=/usr/local/php_for_mapserver >>--with-postgis=/usr/bin/pg_config --with-mygis=/usr/bin/mysql_config >>make >>make install >> >>"make install" will print this message to your terminal window: >> >>***** MapServer Installation ***** >>To install MapServer, copy the 'mapserv' file to your web server's >>cgi-bin >>directory. >>If you use MapScript then see the documentation for your specific >>MapScript >>version for installation instructions. >> >>Copy "mapserv" to the CGI-BIB directory: >> >>cp mapserv /usr/lib/cgi-bin/mapserv >> >>Enable PHP/MapScript: >> >>cd mapscript/php3 >>mkdir /usr/local/php_for_mapserver/lib/php/20020429 >>cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ >> >>In /usr/local/php_for_mapserver/lib/php.ini set the extension_dir to >>/usr/local/php_for_mapserver/lib/php/20020429/, enable the >>PHP/MapScript module: >> >>extension=php_mapscript.so >> >>And copy php_mapscript.so to the extensions directory: >> >>cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ >> >>Now you don't need to load the module in your PHP script. >> >>Restart Apache and go again to >>"http://127.0.0.1/mapserver/phpinfo.phtml". You'll see a block for >>MapScript. >> >>4. Gotchas: >> >>* I've enabled MapServer and PHP/MapScript with support for MyGIS. You >>may need to install MySQL 4.1's client libraries: >> >>apt-get install libmysqlclient14 libmysqlclient14-dev >> >>* mod_action may need to be enabled in Apache. It's disabled in Debian >>by default: >> >>cd /etc/apache2/mods-enabled >>ln -s /etc/apache2/mods-available/actions.load . >> >>* Again, this all assumes that Apache2 and PostgreSQL with PostgreSQL's >>libraries are installed. >> >>I hope this helps. Let me know if I should make changes to these >>instructions. >> >>Thanks. >> >>Jim >> >>On Mar 23, 2005, at 10:23 AM, Lehuta Juraj - OZ wrote: >> >> >> >>>Yes, it will be fayn, >>>thank you very much >>> >>>WochteR >>> >>> >>>-----Original Message----- >>>From: James Cradock [mailto:jcradock@me3.com] >>>Sent: Wednesday, March 23, 2005 4:15 PM >>>To: Lehuta Juraj - OZ >>>Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian >>> >>>I would install all the supporting software (apache2, proj, gdal, gd, >>>etc -- >>>look at the MapServer UNIX installation docs) from APT and build PHP >>>(to run >>>as a CGI alongside mod_php) and MapServer from source. I've got an >>>utterly >>>straightforward installation recipe, including input for a gotcha or >>>two >>>I've gotten help with from this list, for Sarge, and I can send it to >>>you >>>later today and amend it to the Debian topic on the MapServer Wiki. >>> >>>Jim >>> >>>On Mar 23, 2005, at 10:04 AM, Lehuta Juraj - OZ wrote: >>> >>> >>> >>>>yes, >>>>extension_dir /usr/lib/php4/20020429-zts /usr/lib/php4/20020429-zts >>>> >>>>and mapscript.so is realy in this directory >>>> >>>>my Debian is: >>>>sarge >>>>Linux mapserver 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 >>>>GNU/Linux >>>> >>>>I installed mapserver and mapscript packages from deb >>>>http://agrogeomatic.educagri.fr/debian woody main >>>> >>>>by: >>>>apt-get install php-mapscript cgi-mapserver php4 >>>> >>>>When I remove the mapscript.so from /usr/lib/php4/20020429-zts I >>>>obtain this: >>>>Warning: dl(): Unable to load dynamic library >>>>'/usr/lib/php4/20020429-zts/php_mapscript.so' - >>>>/usr/lib/php4/20020429-zts/php_mapscript.so: cannot open shared object >>>>file: >>>>No such file or directory in /var/www/test.php on line 2 >>>> >>>>** cannot open shared object file*** >>>> >>>> >>>> >>>----- >>>James Cradock, jcradock@me3.com >>> >>>me3 Technology Consultants, LLC >>>24 Preble Street, 2nd Floor >>>Portland, ME 04101 >>> >>>207-772-3217 (office) >>>207-838-8678 (mobile) >>> >>>www.me3.com >>> >>> >>> >>> >>----- >>James Cradock, jcradock@me3.com >> >>me3 Technology Consultants, LLC >>24 Preble Street, 2nd Floor >>Portland, ME 04101 >> >>207-772-3217 (office) >>207-838-8678 (mobile) >> >>www.me3.com >> >> > > > > From john.cole at UAI.COM Wed Aug 17 16:12:30 2005 From: john.cole at UAI.COM (John Cole) Date: Fri Feb 8 15:07:55 2008 Subject: Where can I find EPSG codes? Message-ID: I'm looking for NAD_1983_StatePlane_Alabama_West_FIPS_0102_Feet. I've done a google search on EPSG and lookup (among others) and haven't found it (though it might be in there somewhere :-) Where do you look up this stuff? Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From tylermitchell at SHAW.CA Wed Aug 17 16:17:35 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:55 2008 Subject: Where can I find EPSG codes? Message-ID: Hi John, I'm assuming you have a working MapServer install running, is that right? There is a file named 'epsg' that is part of the proj4 projection system, it defines what all the numbers mean. Search your system and see. If you don't have that already, you can grab some files from: http://proj.maptools.org/ and see it. Hope that helps. Tyler ----- Original Message ----- From: John Cole Date: Wednesday, August 17, 2005 1:12 pm Subject: [UMN_MAPSERVER-USERS] Where can I find EPSG codes? > I'm looking for NAD_1983_StatePlane_Alabama_West_FIPS_0102_Feet. > I've done > a google search on EPSG and lookup (among others) and haven't > found it > (though it might be in there somewhere :-) > > > Where do you look up this stuff? > > Thanks, > > John Cole > > ------------------------------------- > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom > they are addressed. If you have received this email in error > please notify the system manager. This message contains > confidential information and is intended only for the individual > named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. > From aaronr at ECOTRUST.ORG Wed Aug 17 16:27:40 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Fri Feb 8 15:07:55 2008 Subject: Where can I find EPSG codes? Message-ID: John, The EPSG codes can be found using your local installation of PROJ.4. On my machine this is located at: /usr/local/share/proj/epsg I also took a quick look and found this in the EPSG file... Hope it helps. # NAD83 / Alabama West <26930> +proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933 +x_0=600000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs <> Aaron +----------------------------------------+ | Aaron Racicot | aaronr@ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 1:13 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Where can I find EPSG codes? I'm looking for NAD_1983_StatePlane_Alabama_West_FIPS_0102_Feet. I've done a google search on EPSG and lookup (among others) and haven't found it (though it might be in there somewhere :-) Where do you look up this stuff? Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From aaronr at ECOTRUST.ORG Wed Aug 17 16:34:36 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Fri Feb 8 15:07:55 2008 Subject: Where can I find EPSG codes? Message-ID: John, Just realized that the EPSG entry that I sent you was in meters, yet the name of the projection you are trying to locate has "Feet" in the name... Looks like you might be after a non-standard projection that is not defined in the EPSG file? I am not familiar with Alabama's state plane coordinate system but it looks like they are in meters, so you might have to do some local digging or define your own projection and forgo the convenience of the EPSG codes. Good luck... Aaron +----------------------------------------+ | Aaron Racicot | aaronr@ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: Aaron Racicot Sent: Wednesday, August 17, 2005 1:28 PM To: 'John Cole'; MAPSERVER-USERS@LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Where can I find EPSG codes? John, The EPSG codes can be found using your local installation of PROJ.4. On my machine this is located at: /usr/local/share/proj/epsg I also took a quick look and found this in the EPSG file... Hope it helps. # NAD83 / Alabama West <26930> +proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933 +x_0=600000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs <> Aaron +----------------------------------------+ | Aaron Racicot | aaronr@ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 1:13 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Where can I find EPSG codes? I'm looking for NAD_1983_StatePlane_Alabama_West_FIPS_0102_Feet. I've done a google search on EPSG and lookup (among others) and haven't found it (though it might be in there somewhere :-) Where do you look up this stuff? Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From john.cole at UAI.COM Wed Aug 17 16:41:05 2005 From: john.cole at UAI.COM (John Cole) Date: Fri Feb 8 15:07:56 2008 Subject: projection issue... Message-ID: Thanks to everyone helping me to find the EPSG code, I was able to find both the esri and epsg file in the proj directory. Unfortunately, I had the epsg code correct (I was hoping it was wrong, because the projection isn't working). I'm trying to get a shapefile of the Midwest states to work with a projected tiger county (epsg:26930). I'm including the prj file for both the states and my county, along with a mapfile and an image of what I'm getting. I've been reading and searching, and I thought this should work, but my north Alabama county is winding up in Maine. Any help would be appreciated. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: test.map Type: application/octet-stream Size: 1949 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050817/56b81a71/test.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: states.prj Type: application/octet-stream Size: 167 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050817/56b81a71/states.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: tgr01077cty00.prj Type: application/octet-stream Size: 481 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050817/56b81a71/tgr01077cty00.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: radmapserver11243106871864.png Type: application/octet-stream Size: 1250 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050817/56b81a71/radmapserver11243106871864.obj From pgiencke at GLC.ORG Wed Aug 17 16:55:57 2005 From: pgiencke at GLC.ORG (Peter Giencke) Date: Fri Feb 8 15:07:56 2008 Subject: projection issue... In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079093B0@hermes.uai.int> Message-ID: John, Try expliciting specifying the projection info for your layer(s) instead. This tends to work when epsg codes do not.... Here's my template for doing this: PROJECTION "proj=lcc" #projection name "ellps=GRS80" #aka spheroid "lat_0=63" #lat of false origin "lat_1=49" #lat of first stp "lat_2=77" #lat of second stp "lon_0=-91.86660000" #lon of false origin "+x_0=6200000" #false origin easting "+y_0=2958000" #false origin northin END -pete -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 4:41 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection issue... Thanks to everyone helping me to find the EPSG code, I was able to find both the esri and epsg file in the proj directory. Unfortunately, I had the epsg code correct (I was hoping it was wrong, because the projection isn't working). I'm trying to get a shapefile of the Midwest states to work with a projected tiger county (epsg:26930). I'm including the prj file for both the states and my county, along with a mapfile and an image of what I'm getting. I've been reading and searching, and I thought this should work, but my north Alabama county is winding up in Maine. Any help would be appreciated. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From dcmikkelsen at SHAW.CA Wed Aug 17 16:45:38 2005 From: dcmikkelsen at SHAW.CA (Dean C. Mikkelsen) Date: Fri Feb 8 15:07:56 2008 Subject: projection issue... In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079093B0@hermes.uai.int> Message-ID: Hi there, One observation, you are using two different datum's. The TIGER File is NAD83 and the States File is NAD27. Look at using the PROJ4 library routines to convert one to the other. This may lead you down the right path. Cheers, Dean Dean C. Mikkelsen, B.Sc., P.Eng. Consultant, Terra ETL Ltd. - Geodesy & GIS Phone: +1 604 929 8630 E-mail: dcmikkelsen@shaw.ca -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 1:41 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection issue... Thanks to everyone helping me to find the EPSG code, I was able to find both the esri and epsg file in the proj directory. Unfortunately, I had the epsg code correct (I was hoping it was wrong, because the projection isn't working). I'm trying to get a shapefile of the Midwest states to work with a projected tiger county (epsg:26930). I'm including the prj file for both the states and my county, along with a mapfile and an image of what I'm getting. I've been reading and searching, and I thought this should work, but my north Alabama county is winding up in Maine. Any help would be appreciated. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From aaronr at ECOTRUST.ORG Wed Aug 17 17:11:01 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Fri Feb 8 15:07:56 2008 Subject: projection issue... Message-ID: John, In the esri definition file with PROJ.4 (my version at least) the code does exist (in feet). I have never tried to use these esri codes, so you can try to use it directly or just define your own using the same parameters: # NAD 1983 StatePlane Alabama West FIPS 0102 Feet <102630> +proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933 +x_0=600000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 no_defs <> Trying to define your own in a mapfile might look like: PROJECTION "proj=tmerc" "lat_0=30" "lon_0=-87.5" "k=0.999933" "x_0=600000.0000000001" "y_0=0" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096012192" "no_defs" END Hope this helps... Aaron +----------------------------------------+ | Aaron Racicot | aaronr@ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 1:41 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection issue... Thanks to everyone helping me to find the EPSG code, I was able to find both the esri and epsg file in the proj directory. Unfortunately, I had the epsg code correct (I was hoping it was wrong, because the projection isn't working). I'm trying to get a shapefile of the Midwest states to work with a projected tiger county (epsg:26930). I'm including the prj file for both the states and my county, along with a mapfile and an image of what I'm getting. I've been reading and searching, and I thought this should work, but my north Alabama county is winding up in Maine. Any help would be appreciated. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From john.cole at UAI.COM Wed Aug 17 17:46:26 2005 From: john.cole at UAI.COM (John Cole) Date: Fri Feb 8 15:07:56 2008 Subject: projection issue... Message-ID: Aaron, Thanks! I didn't see one that existed for feet, but I'll look again. I'll also try your projection definition too. I was able to put together one that seemed to work ok, but I really was guessing at a few things. PROJECTION "+proj=tmerc" #projection name "+ellps=GRS80" #aka spheroid "+lat_0=30" #lat of false origin "+lon_0=-87.5" #lon of false origin #"+x_0=1968500" #false origin easting "+x_0=599999.9999999999952" #false origin easting "+y_0=0" #false origin northin "+datum=NAD83" "+k=0.9999333333333333" "+units=ft" END Thanks everyone, I'm lined up pretty close now ;-) John Cole -----Original Message----- From: Aaron Racicot [mailto:aaronr@ecotrust.org] Sent: Wednesday, August 17, 2005 4:11 PM To: John Cole; MAPSERVER-USERS@LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] projection issue... John, In the esri definition file with PROJ.4 (my version at least) the code does exist (in feet). I have never tried to use these esri codes, so you can try to use it directly or just define your own using the same parameters: # NAD 1983 StatePlane Alabama West FIPS 0102 Feet <102630> +proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933 +x_0=600000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 no_defs <> Trying to define your own in a mapfile might look like: PROJECTION "proj=tmerc" "lat_0=30" "lon_0=-87.5" "k=0.999933" "x_0=600000.0000000001" "y_0=0" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096012192" "no_defs" END Hope this helps... Aaron +----------------------------------------+ | Aaron Racicot | aaronr@ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 1:41 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection issue... Thanks to everyone helping me to find the EPSG code, I was able to find both the esri and epsg file in the proj directory. Unfortunately, I had the epsg code correct (I was hoping it was wrong, because the projection isn't working). I'm trying to get a shapefile of the Midwest states to work with a projected tiger county (epsg:26930). I'm including the prj file for both the states and my county, along with a mapfile and an image of what I'm getting. I've been reading and searching, and I thought this should work, but my north Alabama county is winding up in Maine. Any help would be appreciated. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From john.cole at UAI.COM Wed Aug 17 17:59:58 2005 From: john.cole at UAI.COM (John Cole) Date: Fri Feb 8 15:07:56 2008 Subject: esri projection for wms srs value... Message-ID: Aaron, Thanks, both your projection statement and using the esri code worked: PROJECTION "init=esri:102630" END Now another question, how do I use that esri code or the projection information in the wms_srs metadata section? "wms_srs" "ESRI: 102630" Doesn't seem to work :-) Thanks again. John Cole -----Original Message----- From: Aaron Racicot [mailto:aaronr@ecotrust.org] Sent: Wednesday, August 17, 2005 4:11 PM To: John Cole; MAPSERVER-USERS@LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] projection issue... John, In the esri definition file with PROJ.4 (my version at least) the code does exist (in feet). I have never tried to use these esri codes, so you can try to use it directly or just define your own using the same parameters: # NAD 1983 StatePlane Alabama West FIPS 0102 Feet <102630> +proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933 +x_0=600000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 no_defs <> Trying to define your own in a mapfile might look like: PROJECTION "proj=tmerc" "lat_0=30" "lon_0=-87.5" "k=0.999933" "x_0=600000.0000000001" "y_0=0" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096012192" "no_defs" END Hope this helps... Aaron +----------------------------------------+ | Aaron Racicot | aaronr@ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 1:41 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection issue... Thanks to everyone helping me to find the EPSG code, I was able to find both the esri and epsg file in the proj directory. Unfortunately, I had the epsg code correct (I was hoping it was wrong, because the projection isn't working). I'm trying to get a shapefile of the Midwest states to work with a projected tiger county (epsg:26930). I'm including the prj file for both the states and my county, along with a mapfile and an image of what I'm getting. I've been reading and searching, and I thought this should work, but my north Alabama county is winding up in Maine. Any help would be appreciated. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From aaronr at ECOTRUST.ORG Wed Aug 17 18:13:45 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Fri Feb 8 15:07:56 2008 Subject: esri projection for wms srs value... Message-ID: I will have to leave the WMS questions to others, as I do not use WMS very much. The only difference I see is that you have a space in the WMS version of the definition. Don't know how picky the parser is. There also seems to be some good talk about this in the documentation: http://mapserver.gis.umn.edu/doc46/wms-client-howto.html#mapfile http://mapserver.gis.umn.edu/doc46/wms-server-howto.html#mapfile Glad we were able to get you a little further along! I am sure someone else with more WMS experience will chime in... A +----------------------------------------+ | Aaron Racicot | aaronr@ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 3:00 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] esri projection for wms srs value... Aaron, Thanks, both your projection statement and using the esri code worked: PROJECTION "init=esri:102630" END Now another question, how do I use that esri code or the projection information in the wms_srs metadata section? "wms_srs" "ESRI: 102630" Doesn't seem to work :-) Thanks again. John Cole -----Original Message----- From: Aaron Racicot [mailto:aaronr@ecotrust.org] Sent: Wednesday, August 17, 2005 4:11 PM To: John Cole; MAPSERVER-USERS@LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] projection issue... John, In the esri definition file with PROJ.4 (my version at least) the code does exist (in feet). I have never tried to use these esri codes, so you can try to use it directly or just define your own using the same parameters: # NAD 1983 StatePlane Alabama West FIPS 0102 Feet <102630> +proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933 +x_0=600000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 no_defs <> Trying to define your own in a mapfile might look like: PROJECTION "proj=tmerc" "lat_0=30" "lon_0=-87.5" "k=0.999933" "x_0=600000.0000000001" "y_0=0" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096012192" "no_defs" END Hope this helps... Aaron +----------------------------------------+ | Aaron Racicot | aaronr@ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, August 17, 2005 1:41 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection issue... Thanks to everyone helping me to find the EPSG code, I was able to find both the esri and epsg file in the proj directory. Unfortunately, I had the epsg code correct (I was hoping it was wrong, because the projection isn't working). I'm trying to get a shapefile of the Midwest states to work with a projected tiger county (epsg:26930). I'm including the prj file for both the states and my county, along with a mapfile and an image of what I'm getting. I've been reading and searching, and I thought this should work, but my north Alabama county is winding up in Maine. Any help would be appreciated. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From nate at SEASTAR.JPL.NASA.GOV Wed Aug 17 19:19:21 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Fri Feb 8 15:07:56 2008 Subject: priority of layers, points Message-ID: I am using PHP MapScript and am wondering how to overlay lat/lon lines last, so that they are on top of some point layers. The current sequence is: - Turn on selected raster layers, lat/lon layer - Draw map ($map->draw) - Draw points ($point->draw) As I understand it, you have to the draw points after you draw the map. Is there another option I have not considered? I know the point layer can be drawn directly from the shape file, but the algorithm is fairly complicated. We have different symbols for different wind directions, scaling of font sizes, and more rules that would be hard to specify in the MAPFILE. Thanks, Nate -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate@seastar.jpl.nasa.gov From tim at COMMENSPACE.ORG Wed Aug 17 21:53:44 2005 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Fri Feb 8 15:07:56 2008 Subject: esri projection for wms srs value... Message-ID: > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of John Cole > Sent: Wednesday, August 17, 2005 4:00 PM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] esri projection for wms > srs value... > > PROJECTION > "init=esri:102630" > END Caution to Windows folks using the ESRI codes for projections: the codes listed in the esri file that come with the latest Windows binaries for proj (ftp://ftp.remotesensing.org/proj/proj446_win32_bin.zip) aren't the same as the codes you get with ArcGIS (at least v9) via ISpatialReference::FactoryCode (some are good, some are bad). The esri file that comes with more recent versions of proj can be used instead. One of the hazards on relying on pre-built binaries I guess. Tim From Gail.Millin at MANCHESTER.AC.UK Thu Aug 18 04:33:44 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail) Date: Fri Feb 8 15:07:56 2008 Subject: Announcement - New How To WCS Use Cases Documentation Message-ID: Dear List, I would like to make MapServer users aware of the new How To documentation for WCS - WCS Server Use Cases - This documentation provides instructions on how to implement WCS for different data formats e.g. Landsat, SPOT, DEM and NetCDF. I hope this documentation will be of use for those interested in developing WCS and please post any comments to the user list if you have any suggestions which could further develop this documentation Kind Regards, Gail Millin, MIMAS University of Manchester Norman Barker, RSInc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/9646a7ed/attachment.html From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 18 05:10:46 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:56 2008 Subject: Announcement - New How To WCS Use Cases Documentation Message-ID: Looks like very useful documentation! Maybe it is an idea to provide the link so that less experienced users of the new website are able to find it: http://ms.gis.umn.edu/docs/howto/WCSServerFormatHowTo Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Gail 08/18/05 10:33am >>> Dear List, I would like to make MapServer users aware of the new How To documentation for WCS - WCS Server Use Cases - This documentation provides instructions on how to implement WCS for different data formats e.g. Landsat, SPOT, DEM and NetCDF. I hope this documentation will be of use for those interested in developing WCS and please post any comments to the user list if you have any suggestions which could further develop this documentation Kind Regards, Gail Millin, MIMAS University of Manchester Norman Barker, RSInc. From listuser at HERZSYS.DE Thu Aug 18 05:39:29 2005 From: listuser at HERZSYS.DE (listuser HH) Date: Fri Feb 8 15:07:56 2008 Subject: Two MapServer websites? Message-ID: Hi all, I'm a bit confused about the current mapserver websites. There is: 1. http://mapserver.gis.umn.edu 2. http://ms.gis.umn.edu Do I see this right? Which one is the "official" site? Will both stay online? Sorry if I missed something. Regards Norbert From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 18 05:42:10 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:56 2008 Subject: Two MapServer websites? Message-ID: Hi Norbert, the latest one is the ms.gis.umn.edu site. It is Plone based, so that users will be able to add content or add comments. The old mapserver.gis.umn.edu site will be phased out AFAIK, but I don't know if the new one will take over the mapserver.gis.umn.edu URL in the end (I guess so). Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> listuser HH 08/18/05 11:39am >>> Hi all, I'm a bit confused about the current mapserver websites. There is: 1. http://mapserver.gis.umn.edu 2. http://ms.gis.umn.edu Do I see this right? Which one is the "official" site? Will both stay online? Sorry if I missed something. Regards Norbert From juanantonio.fernandez at UCA.ES Thu Aug 18 06:18:43 2005 From: juanantonio.fernandez at UCA.ES (Juan Antonio Fernandez Prada) Date: Fri Feb 8 15:07:56 2008 Subject: SDE querybypoint no results Message-ID: Hello everbody! I'm trying to make querys to a shape in SDE. I've got some shapes in ArcSDE; the mapserver works fine with them, but when I make querybypoint, there in not any results. I think that should be have any form to make this, but I don?t know than. Does anybody know how to make this? Or, does anybody if I can or can't do this? An other question: Can I work with MapServer and ArcGis FeatureClass? Thanks a lot and regards, Juan Antonio. From p.shapley at FSMAIL.NET Thu Aug 18 06:08:41 2005 From: p.shapley at FSMAIL.NET (Paul Shapley) Date: Fri Feb 8 15:07:56 2008 Subject: New Mapserver User Message-ID: I'm new to Mapserver and i'm trying to get the demo to work. When i 'initialize' the demo_init.html file the Mapserv.exe attempts to download to my pc. The supporting documentation explains this is due to an IIS 'permissions' problem. Can anyone explain what i need to do to get it working. Many thanks, Paul Shapley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/475c29eb/attachment.html From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 18 06:46:05 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:56 2008 Subject: New Mapserver User Message-ID: Which IIS version? You have to set permission for scripts and executables in the IIS Manager. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Paul Shapley 08/18/05 12:08pm >>> I'm new to Mapserver and i'm trying to get the demo to work. When i 'initialize' the demo_init.html file the Mapserv.exe attempts to download to my pc. The supporting documentation explains this is due to an IIS 'permissions' problem. Can anyone explain what i need to do to get it working. Many thanks, Paul Shapley From camrex1 at AMERITECH.NET Thu Aug 18 10:34:38 2005 From: camrex1 at AMERITECH.NET (Cameron Rex) Date: Fri Feb 8 15:07:56 2008 Subject: Where can I find EPSG codes? Message-ID: If you want a quick online reference with EPSG codes...I have been using http://www.inovagis.org/giserver/epsg.asp . I think it is fairly accurate. From pinktomate at HOTMAIL.COM Thu Aug 18 10:38:18 2005 From: pinktomate at HOTMAIL.COM (Pinktomate Pink) Date: Fri Feb 8 15:07:56 2008 Subject: help with jbox In-Reply-To: Message-ID: If I have this code in html, where it display shapefiles
In what part I have to put the jBox.jar to display maps as the same form of the transparnt pixel??? regards _________________________________________________________________ Las mejores tiendas, los precios mas bajos, entregas en todo el mundo, YupiMSN Compras: http://latam.msn.com/compras/ From williampaul28 at YAHOO.COM Thu Aug 18 10:53:06 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Fri Feb 8 15:07:56 2008 Subject: Help please Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: image_error.jpg Type: image/pjpeg Size: 1937 bytes Desc: 950714746-image_error.jpg Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/9d2df660/image_error.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: image_good.jpg Type: image/pjpeg Size: 1671 bytes Desc: 9125525-image_good.jpg Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/9d2df660/image_good.bin From moran at PLACE-BASE.COM Thu Aug 18 11:04:21 2005 From: moran at PLACE-BASE.COM (Moran Ben-David) Date: Fri Feb 8 15:07:56 2008 Subject: Help please In-Reply-To: <20050818145306.50793.qmail@web33502.mail.mud.yahoo.com> Message-ID: Sounds like out of frustration you forgot to attach the entire javascript/html file? Moran _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of william paul Sent: Thursday, August 18, 2005 10:53 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help please Hi: I try to replace the radio buttons (for zoom, pan, etc) with images. I have the script in javascript and I am quite sure that is working, but I still have problems: I have the HTML code something like: document.write(" your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/d2e5dea5/attachment.html From saengpole at YAHOO.COM Thu Aug 18 11:19:57 2005 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Fri Feb 8 15:07:56 2008 Subject: Re-projection on the fly Message-ID: Hi all, I have one trouble about projection. My testing area is around UTM zone-47 and zone-48. The official road shapefile is translated both zones into zone-47 (Indian 1975). My road is in zone-48 (WGS84). So, I'd like to translate my utm-48 road data into zone-47. I used: $proj48=ms_newProjectionObj("proj=utm,zone=48,ellps=WGS84,datum=WGS84,units=m,no_defs"); $proj47=ms_newProjectionObj("proj=utm,zone=47,a=6377276.345,b=6356075.413,towgs84=209,818,290,0,0,0,0,units=m,no_defs"); $line=ms_newLineObj(); $pt=ms_newPointObj(); $pt->setXY(195397,1604329); $pt->project($proj48,$proj47); $line->add($pt); $pt->setXY(195385,1604354); $pt->project($proj48,$proj47); $line->add($pt); ............. $shp->add($line); My road should overlay onto official road. But it wasn't on the right place, it shifted to the left of official road about 350m. If I use data by not translating in map file as: ............. # ------------- Official road ---------- LAYER NAME "road47" DATA "road/road47 TYPE line PROJECTION "proj=utm" "zone=47" "a=6377276.345" "b=6356075.413" "towgs84=209,818,290,0,0,0,0" "units=m" "no_defs" END CLASS COLOR 0 200 0 END END # ------------- my road ---------- LAYER NAME "road48" DATA "road/road48 TYPE line PROJECTION "proj=utm" "zone=48" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END CLASS COLOR 0 200 0 END END ....... It works as it should be. What I've done wrong about the script above. Could I use this way to re-projection on the fly? Thank you. Krung --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/bd35d37b/attachment.html From fsozzi at INTERCAD.CH Thu Aug 18 11:20:52 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Fri Feb 8 15:07:56 2008 Subject: oracle layers: php sometime crashes Message-ID: Hi all, I have a trouble in using QueryByAttributes or QueryByShape on an Oracle Spatial layer: PHP sometime crashes. The strange thing is that it happens only on some layer and on some PC. I have a test installation with exactly the same php code, Apache version, Mapserver version, Oracle Version, OS version (Windows XP Professional) and on one machine works fine and on another php crashes (and only on one oracle layer, for the other oracle layers it works fine). Has anybody already experimented a problem like this?.... Bets regards I use: - PHP 4.3.10 - Mapserver 4.4.1 - Apache 2 - Windows XP The test code is: getLayerByName("Condotte"); $rectDrawnedMapCoord = ms_newrectObj(); $rectDrawnedMapCoord->setextent(716765.866548, 89471.4128114 , 717831.590747, 87732.5996441); $qresult = $gLayer->queryByRect($rectDrawnedMapCoord); $layer->open(); ?> The layer definition is: # ------------------------------------------------------------------------ # Condotte # ------------------------------------------------------------------------ LAYER NAME "Condotte" TYPE LINE CONNECTIONTYPE oraclespatial CONNECTION "ail_gas/avs@tb" DATA "GEOM FROM (SELECT fid,geom,FROM ga_strang WHERE geom is not null AND DELETED=0) USING UNIQUE fid NONE" STATUS DEFAULT SYMBOLSCALE 200 CLASS NAME "nessuna" COLOR 0 0 0 SYMBOL 1 SIZE 8 TEMPLATE "templates/default.html" END END -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/b236453c/attachment.html From hobu at IASTATE.EDU Thu Aug 18 11:24:52 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Fri Feb 8 15:07:56 2008 Subject: Two MapServer websites? In-Reply-To: Message-ID: Norbert, Indeed there are currently two MapServer websites. The plone site at is still in development (user contributions welcome!) with the intent that it will live at the same location as when it is done. We plan to take care to do some URL rewriting to ensure that bookmarks to major documents (and links in books :) are not broken when the transition takes place. We are currently in the confusing time where some documents that live at one website don't live at the other and vice versa. Of course, this is not ideal. I don't have a timeframe for when the transition will take place, but my hope is that it will be done before the end of the year. Howard At 11:42 AM +0200 8/18/05, Bart van den Eijnden wrote: >Hi Norbert, > >the latest one is the ms.gis.umn.edu site. It is Plone based, so that = >users will be able to add content or add comments. > >The old mapserver.gis.umn.edu site will be phased out AFAIK, but I don't = >know if the new one will take over the mapserver.gis.umn.edu URL in the = >end (I guess so). > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > >>>> listuser HH 08/18/05 11:39am >>> >Hi all, > >I'm a bit confused about the current mapserver websites. > >There is: > 1. http://mapserver.gis.umn.edu=20 > 2. http://ms.gis.umn.edu=20 > >Do I see this right? >Which one is the "official" site? >Will both stay online? > >Sorry if I missed something. > >Regards >Norbert From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 18 11:25:36 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:56 2008 Subject: oracle layers: php sometime crashes Message-ID: Are you able to upgrade to Mapserver/Mapscript 4.6 and see if the problem is still there? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Francesco Sozzi 08/18/05 05:20pm >>> Hi all, I have a trouble in using QueryByAttributes or QueryByShape on an Oracle Spatial layer: PHP sometime crashes. The strange thing is that it happens only on some layer and on some PC. I have a test installation with exactly the same php code, Apache version, Mapserver version, Oracle Version, OS version (Windows XP Professional) and on one machine works fine and on another php crashes (and only on one oracle layer, for the other oracle layers it works fine). Has anybody already experimented a problem like this?.... Bets regards I use: - PHP 4.3.10 - Mapserver 4.4.1 - Apache 2 - Windows XP The test code is: getLayerByName("Condotte"); $rectDrawnedMapCoord = ms_newrectObj(); $rectDrawnedMapCoord->setextent(716765.866548, 89471.4128114 , 717831.590747, 87732.5996441); $qresult = $gLayer->queryByRect($rectDrawnedMapCoord); $layer->open(); ?> The layer definition is: # ------------------------------------------------------------------------ # Condotte # ------------------------------------------------------------------------ LAYER NAME "Condotte" TYPE LINE CONNECTIONTYPE oraclespatial CONNECTION "ail_gas/avs@tb" DATA "GEOM FROM (SELECT fid,geom,FROM ga_strang WHERE geom is not null AND DELETED=0) USING UNIQUE fid NONE" STATUS DEFAULT SYMBOLSCALE 200 CLASS NAME "nessuna" COLOR 0 0 0 SYMBOL 1 SIZE 8 TEMPLATE "templates/default.html" END END From LESSARDST at DFO-MPO.GC.CA Thu Aug 18 11:37:06 2005 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Fri Feb 8 15:07:56 2008 Subject: WFS Line layer: Missing last point Message-ID: Greatings, I have defined a WFS Line layer for a MID / MIF file. All seems to be working well, except that the last point is missing. The MID / MIF is properly defined, and is displayed properly when I access it directly. Ogrinfo gives me the following (relevant parts only): //////// Feature Count: 1 Extent: (-67.366667, 48.666667) - (-62.000000, 49.516667) ... OGRFeature(route53):1 ... LINESTRING (-67.36666667 49.21666667,-66.95000000 49.38333333,-65.00000000 49. 51666667,-62.00000000 48.66666667) //////// As you can see, there are 4 points in this line. But here is the result of the WFS request, extracted from the ".tmp.gml" file: //////// -67.366667,48.666667 -62.000000,49.516667 -67.366667,49.216667 -66.950000,49.383333 -65.000000,49.516667 //////// The last point is missing! And the same thing happens with all my routes. I have included my MID and MIF file. If someone wants to test that or just investigate the source code, I would be very grateful. Mapfile layer (WFS Server): /////// LAYER NAME ROUTE_WFS DUMP TRUE TYPE LINE STATUS ON CONNECTIONTYPE OGR TILEINDEX "D:\Marinfo\Glaces\Officielles\Shape\IceRoute.shp" CLASS STYLE SYMBOL "mapinfo_59" END END METADATA "wfs_title" "ROUTE_WFS" "wfs_srs" "EPSG:4269" "wfs_abstract" "" "wfs_keywordlist" "" END END # Layer /////// I'm using Mapserver 4.3 to generate the WFS service. Thank you! St?phane Lessard, ing. jr. Ing?nieur Syst?mes Ordin?s Syst?mes ?lectroniques et Informatiques Garde C?ti?re Canadienne R?gion du Qu?bec 101, boul. Champlain, Qu?bec, QC G1K 7Y7 T?l.: (418) 649-6351 T?l?copieur : (418) 649-6876 Courriel : lessardst@dfo-mpo.gc.ca D?couvrez MARINFO ? l'adresse : www.marinfo.gc.ca <> <> -------------- next part -------------- A non-text attachment was scrubbed... Name: route53.mid Type: application/octet-stream Size: 58 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/fc58a23b/route53.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: route53.mif Type: application/octet-stream Size: 315 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/fc58a23b/route53-0001.obj From fwarmerdam at GMAIL.COM Thu Aug 18 11:39:33 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:56 2008 Subject: Re-projection on the fly In-Reply-To: <20050818151958.64087.qmail@web52714.mail.yahoo.com> Message-ID: On 8/18/05, Krung Saengpole wrote: > Hi all, > I have one trouble about projection. My testing area is around UTM zone-47 > and zone-48. The official road shapefile is translated both zones into > zone-47 (Indian 1975). My road is in zone-48 (WGS84). So, I'd like to > translate my utm-48 road data into zone-47. I used: > > $proj48=ms_newProjectionObj("proj=utm,zone=48,ellps=WGS84,datum=WGS84,units=m,no_defs"); > $proj47=ms_newProjectionObj("proj=utm,zone=47,a=6377276.345,b=6356075.413,towgs84=209,818,290,0,0,0,0,units=m,no_defs"); > My road should overlay onto official road. But it wasn't on the right place, > it shifted to the left of official road about 350m. If I use data by not > translating in map file as: Krung, The error you quote sounds typical of a missing or misapplied datum conversion. Are you confident of the towgs84 value you selected? There are "handedness" issues between common european and american towgs84 parameter listings for instance. You might also want to try with towgs84=0,0,0 and see if that is closer, or futher away, or the same. Perhaps the datum shift isn't being applied, or should not be applied. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fsimon at UNIVALI.BR Thu Aug 18 12:15:12 2005 From: fsimon at UNIVALI.BR (Fernando Siimon) Date: Fri Feb 8 15:07:56 2008 Subject: oracle layers: php sometime crashes In-Reply-To: Message-ID: Hi, Is it right the "," before FROM clause? As Bart, I suggest to use the 4.6 version, it's more stable and contains some improves in the code that can help with this problem. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Bart van den Eijnden wrote: >Are you able to upgrade to Mapserver/Mapscript 4.6 and see if the problem is still there? > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > > >>>>Francesco Sozzi 08/18/05 05:20pm >>> >>>> >>>> >Hi all, > >I have a trouble in using QueryByAttributes or QueryByShape on an Oracle Spatial layer: PHP sometime crashes. >The strange thing is that it happens only on some layer and on some PC. >I have a test installation with exactly the same php code, Apache version, Mapserver version, Oracle Version, OS version (Windows XP Professional) and on one machine works fine and on another php crashes (and only on one oracle layer, for the other oracle layers it works fine). > >Has anybody already experimented a problem like this?.... > >Bets regards > > > >I use: >- PHP 4.3.10 >- Mapserver 4.4.1 >- Apache 2 >- Windows XP > >The test code is: > >$gMap = ms_newMapObj("C:/App/QueryMapWEB/data/AIL/gas.map"); >$gLayer = $gMap->getLayerByName("Condotte"); > >$rectDrawnedMapCoord = ms_newrectObj(); >$rectDrawnedMapCoord->setextent(716765.866548, > 89471.4128114 , > 717831.590747, > 87732.5996441); > >$qresult = $gLayer->queryByRect($rectDrawnedMapCoord); >$layer->open(); > >?> > >The layer definition is: ># ------------------------------------------------------------------------ ># Condotte ># ------------------------------------------------------------------------ >LAYER > NAME "Condotte" > TYPE LINE > CONNECTIONTYPE oraclespatial > CONNECTION "ail_gas/avs@tb" > DATA "GEOM FROM (SELECT fid,geom,FROM ga_strang WHERE geom is not null AND DELETED=0) USING UNIQUE fid NONE" > STATUS DEFAULT > SYMBOLSCALE 200 > > CLASS > NAME "nessuna" > COLOR 0 0 0 > SYMBOL 1 > SIZE 8 > TEMPLATE "templates/default.html" > END > >END > > > From ahuang at GEOANALYTIC.COM Thu Aug 18 14:09:41 2005 From: ahuang at GEOANALYTIC.COM (Andrew Huang) Date: Fri Feb 8 15:07:56 2008 Subject: mapserv - output pdf Message-ID: Hi everyone, I'm having a problem using mapserv to output a pdf file. I using query_string from the dos commandline and the following is what I type: C:\development\MapServer\MapServer\v4.6.0\20050616_official\mapserver-4.6.0\andrewtest>mapserv QUERY_STRING="MAP=test.map&VERSION=1.1.1 &SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:26711&LAYERS=LVL1,LVL2,LVL3,LVL4&WIDTH=1024&HEIGHT=1024&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vn d.ogc.se.xml&FORMAT=application/x-pdf" >test.pdf It comes out with an error saying that the format is unsupported - here is the output: msWMSLoadGetMapParams(): Image handling error. Unsupported output format (application/x-pdf). I've compiled mapserv to use pdflib, and it works when i use shp2img to create a pdf file, but I'd like to get it to work using WMS. Can anyone help? Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/f2d3f4ba/attachment.html From Debbie.Pagurek at EC.GC.CA Thu Aug 18 14:26:02 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri Feb 8 15:07:56 2008 Subject: new How-To: Setup IIS to work with Mapserver Message-ID: Hi all, There seemed to be a lack of documentation on how to set up IIS to work with MapServer/Chameleon so I wrote up my notes and put them on the new wiki. http://ms.gis.umn.edu/docs/howto/setupiis If anyone wants to add to it or correct anything, please do. D. Pagurek -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/77b3f73d/attachment.html From mboos at AUGSIGNALS.COM Thu Aug 18 14:42:11 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL Message-ID: Hello I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET server. I compiled the 4.6.0 version of MapServer and have placed what I believe to be the appropriate dependencies (mapscript_csharp.dll, mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin directory on my server. It is appears to be finding mapscript_csharp.dll, but is having trouble finding mapscript.dll or one of its dependencies. I am seeing the following error message: Server Error in '/' Application. /Unable to load DLL (mapscript)./ * Description: *An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. * Exception Details: *System.DllNotFoundException: Unable to load DLL (mapscript). Am I missing a dependency? Or do I need to set some configuration option or place the files elsewhere? Thanks! Mike Boos From assefa at DMSOLUTIONS.CA Thu Aug 18 15:02:31 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri Feb 8 15:07:56 2008 Subject: mapserv - output pdf In-Reply-To: <004101c5a420$018884c0$140002c0@tiger> Message-ID: Andrew, This is a limitation discussed in http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455. It was supposed to be adresssed before the 4.6 release. I will work on it in the comming days. Later, Andrew Huang wrote: > Hi everyone, > > I'm having a problem using mapserv to output a pdf file. > I using query_string from the dos commandline and the following is what > I type: > > C:\development\MapServer\MapServer\v4.6.0\20050616_official\mapserver-4.6.0\andrewtest>mapserv > QUERY_STRING="MAP=test.map&VERSION=1.1.1 > &SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:26711&LAYERS=LVL1,LVL2,LVL3,LVL4&WIDTH=1024&HEIGHT=1024&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vn > d.ogc.se.xml&FORMAT=application/x-pdf" >test.pdf > > It comes out with an error saying that the format is unsupported - here > is the output: > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msWMSLoadGetMapParams(): Image handling error. Unsupported output format > (application/x-pdf). > > > > I've compiled mapserv to use pdflib, and it works when i use shp2img to > create a pdf file, but I'd like to get it to work using WMS. > > Can anyone help? > > Thanks, > > Andrew > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jdport at VERITIME.COM Thu Aug 18 17:14:01 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri Feb 8 15:07:56 2008 Subject: label priority Message-ID: I'm using a shapefile called citiesx020 to show cities in the US, and I'm having a small problem. In many places cities are very close together. I have already limited it to cities with population over a certain amount so I don't end up not being able to distinguish points but in certain cases there are sufficiently large cities that I want to show that are close enough together so that their labels collide. I have a buffer of 5 pixels, so in such cases only one of the cities will show their label, and the other one won't. In one particular case though I have New York City that is pretty close to Newark, Elizibeth, and Jersey City and I have the label for Elizibeth blocking the label for New York city. How can I give New York City precedence over the smaller city? I have two classes now, one that draws cities with populations over 500,000 and the other with populations of 100,000-499999. The bigger class draws bigger citiy markers and uses bold names, the smaller pop cities use smaller labels and markers. I've tried reversing the order the classes appear in the map file, but it didn't change anything... is there any way to accomplish this? Thanks! -Jeff From tim at COMMENSPACE.ORG Thu Aug 18 17:33:04 2005 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Fri Feb 8 15:07:56 2008 Subject: label priority Message-ID: Hey Jeff- > Elizibeth blocking the label for New York city. How can I > give New York > City precedence over the smaller city? You want the records in your dbf to be in order of increasing population. MapServer will label records at the bottom of your dbf first. To do this, you have to physically sort the records by population (ascending order). There are a number of scripts to do this. If you're looking for an SERI solution, search Arc Scripts for 'sort dbf'. Tim Schaub www.commenspace.org From assefa at DMSOLUTIONS.CA Thu Aug 18 17:38:58 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri Feb 8 15:07:56 2008 Subject: label priority In-Reply-To: <00fb01c5a439$d368a970$5ff2fbd0@solo> Message-ID: Jeff, Maybe you could sort your shape using the population attribute file using the sortshp utility that comes with mapserver. The syntax is something like this : sortshp [infile] [outfile] [item] [ascending|descending] Once sorted (I beleive descending in your case) It should draw first the cities with the largest population. Later, Jeff Portwine wrote: > I'm using a shapefile called citiesx020 to show cities in the US, and > I'm having a small problem. In many places cities are very close > together. I have already limited it to cities with population over a > certain amount so I don't end up not being able to distinguish points > but in certain cases there are sufficiently large cities that I want to > show that are close enough together so that their labels collide. I > have a buffer of 5 pixels, so in such cases only one of the cities will > show their label, and the other one won't. In one particular case > though I have New York City that is pretty close to Newark, Elizibeth, > and Jersey City and I have the label for Elizibeth blocking the label > for New York city. How can I give New York City precedence over the > smaller city? > > I have two classes now, one that draws cities with populations over > 500,000 and the other with populations of 100,000-499999. The bigger > class draws bigger citiy markers and uses bold names, the smaller pop > cities use smaller labels and markers. I've tried reversing the order > the classes appear in the map file, but it didn't change anything... is > there any way to accomplish this? > > Thanks! > -Jeff > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From john.cole at UAI.COM Thu Aug 18 17:43:17 2005 From: john.cole at UAI.COM (John Cole) Date: Fri Feb 8 15:07:56 2008 Subject: WMS client/Terraserver example... Message-ID: After getting the NEXRAD data projected and working (http://mesonet.agron.iastate.edu/docs/radmapserver/howto.html) I wanted to get back to terraserver data. I created a very simple map file and put all of the layer statements that I could find from the mailing list for using terraserver wms. My problem is that all I get is a map with my county on it, but I think my problem is that I'm behind a proxy server. Is there a way to configure the wms client to use a proxy server? I would appreciate someone looking at my map file and seeing if it does indeed work or let me know what isn't correct. Attached is a zip file renamed to zix of my small terraserver test project If that doesn't make it through, here is my map file and the html template. Thanks, John Cole #-------------------------- main.map -------------------- MAP # Start of Mapfile (radmapserver.map) NAME radmapserver STATUS ON SIZE 800 600 #SIZE 150 96 EXTENT -86.790056 34.475633 -86.255771 34.992296 UNITS dd IMAGETYPE PNG # the shape path is the .map file directory SHAPEPATH "." # fonts.txt for windows XP (strip # sign) # ----- cut below this line -------- # arial C:\WINDOWS\Fonts\arial.ttf # ----- cut above this line -------- FONTSET "fonts.txt" # Map projection definition PROJECTION "init=epsg:4326" END WEB TEMPLATE 'main.html' # template file IMAGEPATH "/tmp/ms_tmp/" # web server needs read/write to this directory IMAGEURL "/ms_tmp/" # web path to the above directory (set this in IIS or Apache) LOG "test_terra.log" END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 20 10 KEYSPACING 5 2 LABEL TYPE truetype FONT arial size 8 OFFSET 0 0 PARTIALS TRUE ANTIALIAS TRUE MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 END END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 0 SIZE 200 4 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 UNITS MILES INTERVALS 5 STATUS on END # to make a reference image, set the size to 150 96 and # uncomment the fill color line in the county style (and comment the outline color) # save the image as reference.png in the directory your mapfile is in # if you do not have a reference.png set the status to OFF REFERENCE STATUS ON IMAGE reference.png EXTENT -86.790056 34.475633 -86.255771 34.992296 SIZE 150 96 MINBOXSIZE 5 MAXBOXSIZE 140 COLOR -1 0 0 OUTLINECOLOR 255 0 0 END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=ON" END LAYER NAME "photo" STATUS ON TYPE RASTER MINSCALE 10000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/OgcMap.ashx?" METADATA "wms_srs" "EPSG:26910" "wms_title" "Orthophoto" "wms_name" "DOQ" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_layers" "doq" "wms_group_title" "background" END PROJECTION "init=epsg:26910" END END LAYER NAME "aerial" TYPE RASTER STATUS ON CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=urbana rea&FORMAT=image/jpeg&STYLES=" METADATA "wms_srs" "EPSG:4326" END PROJECTION "init=epsg:4326" END END LAYER NAME ortho METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:4326" LYRNAME "DOQs (orthophotos)" LINK "http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOverview" END GROUP "BASE DATA" STATUS ON DEBUG ON TYPE RASTER MINSCALE 1500 MAXSCALE 80000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FO RMAT=png&styles=" PROJECTION "init=epsg:4326" END END LAYER NAME DOQ17N METADATA "wms_title" "USGS Digital Ortho-Quadrangles" #"wms_srs" "EPSG:26916" #NAD83 UTM zone 16N "wms_srs" "EPSG:4326" LYRNAME "DOQs (orthophotos)" LINK "http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOverview" END STATUS default TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FO RMAT=png&styles=" PROJECTION #"init=epsg:26916" #NAD83 UTM zone 16N "init=epsg:4326" END END # Madison County, Alabama TIGER County 2000 polygon # http://arcdata.esri.com/data/tiger2000/tiger_download.cfm LAYER NAME "Madison County" DATA "tgr01089cty00" METADATA "wms_title" "Madison County" "wms_srs" "EPSG:4326" END PROJECTION "init=epsg:4326" END STATUS default TYPE POLYGON CLASS NAME "Madison County" STYLE OUTLINECOLOR 0 255 0 #COLOR 242 236 223 END END END END #-------------------------- main.map -------------------- MapServer Workshop

Terraserver Sample Map View

Map Mode:
Map Control:

Reference:

Legend:

Map scale 1:[scale]

Pixel size [cellsize]

Extents [minx], [miny], [maxx], [maxy]

Map size (screen) [mapsize]

Map width [mapwidth]

Map height [mapheight]

Map [map]

Layers [layers]

------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: terraserver.zix Type: application/octet-stream Size: 24636 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/a0353ec9/terraserver.obj From transversemercator at HOTMAIL.COM Thu Aug 18 17:33:25 2005 From: transversemercator at HOTMAIL.COM (India) Date: Fri Feb 8 15:07:56 2008 Subject: Oracle Spatial vs. PostgreSQL/PostGIS Message-ID: I have a rather general question for this list-serv, which I hope is appropriate, but would appeciate any input. I am a graduate student researching the design and implementation of web-based decision support tools. I am particularly interested in Open Source/Distributed GIS development with Flash Interface design. What are advatages/disadvantages from the Mapserver users perspective on using the PostgreSQL/PostGIS database versus Oracle Spatial, aside from the obvious expense of Oracle? From jerl.simpso at GMAIL.COM Thu Aug 18 20:39:23 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri Feb 8 15:07:56 2008 Subject: WMS client/Terraserver example... In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079093B4@hermes.uai.int> Message-ID: Is the extent restricted to only your county? It might not make a difference, but try extending your extent to say, the US. Roughly -125 24 -66 50 Jerl On 8/18/05, John Cole wrote: > After getting the NEXRAD data projected and working > (http://mesonet.agron.iastate.edu/docs/radmapserver/howto.html) I wanted to > get back to terraserver data. > > I created a very simple map file and put all of the layer statements that I > could find from the mailing list for using terraserver wms. My problem is > that all I get is a map with my county on it, but I think my problem is that > I'm behind a proxy server. Is there a way to configure the wms client to > use a proxy server? > > I would appreciate someone looking at my map file and seeing if it does > indeed work or let me know what isn't correct. > > Attached is a zip file renamed to zix of my small terraserver test project > > If that doesn't make it through, here is my map file and the html template. > > > Thanks, > > John Cole > > #-------------------------- main.map -------------------- > MAP > # Start of Mapfile (radmapserver.map) > NAME radmapserver > STATUS ON > SIZE 800 600 > #SIZE 150 96 > EXTENT -86.790056 34.475633 -86.255771 34.992296 > UNITS dd > IMAGETYPE PNG > > # the shape path is the .map file directory > SHAPEPATH "." > > # fonts.txt for windows XP (strip # sign) > # ----- cut below this line -------- > # arial C:\WINDOWS\Fonts\arial.ttf > # ----- cut above this line -------- > FONTSET "fonts.txt" > > > # Map projection definition > PROJECTION > "init=epsg:4326" > END > > WEB > TEMPLATE 'main.html' # template file > IMAGEPATH "/tmp/ms_tmp/" # web server needs read/write to > this directory > IMAGEURL "/ms_tmp/" # web path to the above > directory (set this in IIS or Apache) > LOG "test_terra.log" > END > > LEGEND > STATUS ON > IMAGECOLOR 255 255 255 > POSITION UL > KEYSIZE 20 10 > KEYSPACING 5 2 > LABEL > TYPE truetype > FONT arial > size 8 > OFFSET 0 0 > PARTIALS TRUE > ANTIALIAS TRUE > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 0 > END > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE TINY > END > STYLE 0 > SIZE 200 4 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > UNITS MILES > INTERVALS 5 > STATUS on > END > > > # to make a reference image, set the size to 150 96 and > # uncomment the fill color line in the county style (and comment the outline > color) > # save the image as reference.png in the directory your mapfile is in > # if you do not have a reference.png set the status to OFF > REFERENCE > STATUS ON > IMAGE reference.png > EXTENT -86.790056 34.475633 -86.255771 34.992296 > SIZE 150 96 > MINBOXSIZE 5 > MAXBOXSIZE 140 > COLOR -1 0 0 > OUTLINECOLOR 255 0 0 > END > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=ON" > END > > LAYER > NAME "photo" > STATUS ON > TYPE RASTER > MINSCALE 10000 > > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/OgcMap.ashx?" > > METADATA > "wms_srs" "EPSG:26910" > "wms_title" "Orthophoto" > "wms_name" "DOQ" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > "wms_layers" "doq" > "wms_group_title" "background" > END > PROJECTION > "init=epsg:26910" > END > END > > > LAYER > NAME "aerial" > TYPE RASTER > STATUS ON > CONNECTIONTYPE WMS > CONNECTION > "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=urbana > rea&FORMAT=image/jpeg&STYLES=" > METADATA > "wms_srs" "EPSG:4326" > END > PROJECTION > "init=epsg:4326" > END > END > > LAYER > NAME ortho > METADATA > "wms_title" "USGS Digital Ortho-Quadrangles" > "wms_srs" "EPSG:4326" > LYRNAME "DOQs (orthophotos)" > LINK > "http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOverview" > END > GROUP "BASE DATA" > STATUS ON > DEBUG ON > TYPE RASTER > MINSCALE 1500 > MAXSCALE 80000 > CONNECTIONTYPE WMS > CONNECTION > "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FO > RMAT=png&styles=" > PROJECTION > "init=epsg:4326" > END > END > > LAYER > NAME DOQ17N > METADATA > "wms_title" "USGS Digital Ortho-Quadrangles" > #"wms_srs" "EPSG:26916" #NAD83 UTM zone 16N > "wms_srs" "EPSG:4326" > LYRNAME "DOQs (orthophotos)" > LINK > "http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOverview" > END > STATUS default > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION > "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FO > RMAT=png&styles=" > PROJECTION > #"init=epsg:26916" #NAD83 UTM zone 16N > "init=epsg:4326" > END > END > > # Madison County, Alabama TIGER County 2000 polygon > # http://arcdata.esri.com/data/tiger2000/tiger_download.cfm > LAYER > NAME "Madison County" > DATA "tgr01089cty00" > METADATA > "wms_title" "Madison County" > "wms_srs" "EPSG:4326" > END > PROJECTION > "init=epsg:4326" > END > STATUS default > TYPE POLYGON > CLASS > NAME "Madison County" > STYLE > OUTLINECOLOR 0 255 0 > #COLOR 242 236 223 > END > END > END > > > END > #-------------------------- main.map -------------------- > > > > > "HTML Tidy for Windows (vers 1st June 2004), see www.w3.org" /> > > MapServer Workshop > "text/html; charset=us-ascii" /> > "/projects/tutorial/ms35.css" /> > > > >

Terraserver Sample Map View

> > > >
id="mapserv"> > > > > > > > > > > > > > > > > > > > > > > >
> > >
> Map Mode:
> >
>
> > >
> >
>
> > >
> Map Control:
> >
>
>

Reference:
>

> >

Legend:
>

>
> height="600" border="0" /> > > > > > > > >
>
>
> >

Map scale 1:[scale]

>

Pixel size [cellsize]

>

Extents [minx], [miny], [maxx], [maxy]

>

Map size (screen) [mapsize]

>

Map width [mapwidth]

>

Map height [mapheight]

>

Map [map]

>

Layers [layers]

> > > > > > ------------------------------------- > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > > > From yecarrillo at YAHOO.COM Thu Aug 18 22:20:59 2005 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Fri Feb 8 15:07:56 2008 Subject: mapserver cgi+fedora4+SELinux Message-ID: I just update my OS to Fedora4. I had never hear about SELinux, but last two day I were enforced to learn more about security policies and now I like SELinux (my site were hacked 3 times in the last six months). I get php_mapscrit runs with the system rpm's and other rpms I found on the net (mappinghacks) except GDAL, and successfully compiled mapserver 4.6.0 in that environment, but mapserv executable returns a 500 Internal Server Error. Apache log reports: /var/www/cgi-bin/mapserv: error while loading shared libraries: /usr/local/lib/libgdal.so.1: cannot restore segment prot after reloc: Permission denied SELinux policies I applied: chcon -t texrel_shlib_t /usr/local/lib/*.so --> for gdal shared libraries chcon -t httpd_unconfined_script_t /var/www/cgi-bin/mapserv -->for mapserv binary I were getting the same error runing mapserver apps (legend, etc..) from the command line, but policy applied for gdal, solved that. Previuosly tim ask about php/mapscript and SELinux, so these are my steps to get php/mapscript running in FC4: ---------------------------------- cd /usr/local/src wget http://cvs.gis.umn.edu/dist/mapserver-4.6.0.tar.gz tar xvzf mapserver-4.6.0.tar.gz cd mapserver-4.6.0 ./configure --with-curl-config=/usr/bin/curl-config --with-php=/usr/src/redhat/SOURCES/php-5.0.4 --with-httpd=/usr/sbin/httpd --with-postgis=/usr/bin/pg_config --with-geos=/usr/bin/geos-config --with-mygis=/usr/bin/mysql_config --with-proj=/usr --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-eppl --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-gd=/usr make cp -f mapserv /var/www/cgi-bin/mapserv cp -f legend /usr/local/bin/legend cp -f scalebar /usr/local/bin/scalebar cp -f shp2img /usr/local/bin/shp2img cp -f shp2pdf /usr/local/bin/shp2pdf cp -f shptree /usr/local/bin/shptree cp -f shptreetst /usr/local/bin/shptreetst cp -f shptreevis /usr/local/bin/shptreevis cp -f sortshp /usr/local/bin/sortshp cp -f tile4ms /usr/local/bin/tile4ms cp -f mapscript/php3/php_mapscript.so /usr/lib/php/modules/php_mapscript.so #SELinux policy for php/mapscript chcon -t texrel_shlib_t /usr/lib/php/modules/php_mapscript.so #to load as php module echo "extension=php_mapscript.so" > /etc/php.d/mapscript.ini service httpd restart ------------------------- Any hint? Thanks in advanced. Eduin Yesid Carrillo Vega yecarrillo@yahoo.com COLOMBIA __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ From williampaul28 at YAHOO.COM Fri Aug 19 01:28:36 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Fri Feb 8 15:07:56 2008 Subject: Help please Message-ID: Hi Moran, I didn't forget. I thought that is nothing wrong with the _javascript file since the images are loaded with a simple HTML file. The images aren't loaded when I launch them from the same HTML file, but this time as a template. I tried to load images insight and outside the mapserver FORM but I have the same results. I will send you in the next 2 hours the code Do you have a working example? I will really appreciate William Moran Ben-David wrote: #message v\:* {behavior:url(#default#VML);}#message o\:* {behavior:url(#default#VML);}#message w\:* {behavior:url(#default#VML);}#message .shape {behavior:url(#default#VML);} Sounds like out of frustration you forgot to attach the entire _javascript/html file? Moran --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050818/461eb704/attachment.html From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 19 02:22:00 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:56 2008 Subject: WFS Line layer: Missing last point Message-ID: > I'm using Mapserver 4.3 to generate the WFS service. Can you upgrade to 4.6 and try again? Make you sure you do include the following METADATA then for your LAYER: gml_include_items "all" Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Stephane Lessard 08/18/05 17:39 PM >>> Greatings, I have defined a WFS Line layer for a MID / MIF file. All seems to be working well, except that the last point is missing. The MID / MIF is properly defined, and is displayed properly when I access it directly. Ogrinfo gives me the following (relevant parts only): //////// Feature Count: 1 Extent: (-67.366667, 48.666667) - (-62.000000, 49.516667) .... OGRFeature(route53):1 .... LINESTRING (-67.36666667 49.21666667,-66.95000000 49.38333333,-65.00000000 49. 51666667,-62.00000000 48.66666667) //////// As you can see, there are 4 points in this line. But here is the result of the WFS request, extracted from the ".tmp.gml" file: //////// -67.366667,48.666667 -62.000000,49.516667 -67.366667,49.216667 -66.950000,49.383333 -65.000000,49.516667 //////// The last point is missing! And the same thing happens with all my routes. I have included my MID and MIF file. If someone wants to test that or just investigate the source code, I would be very grateful. Mapfile layer (WFS Server): /////// LAYER NAME ROUTE_WFS DUMP TRUE TYPE LINE STATUS ON CONNECTIONTYPE OGR TILEINDEX "D:\Marinfo\Glaces\Officielles\Shape\IceRoute.shp" CLASS STYLE SYMBOL "mapinfo_59" END END METADATA "wfs_title" "ROUTE_WFS" "wfs_srs" "EPSG:4269" "wfs_abstract" "" "wfs_keywordlist" "" END END # Layer /////// I'm using Mapserver 4.3 to generate the WFS service. Thank you! St?phane Lessard, ing. jr. Ing?nieur Syst?mes Ordin?s Syst?mes ?lectroniques et Informatiques Garde C?ti?re Canadienne R?gion du Qu?bec 101, boul. Champlain, Qu?bec, QC G1K 7Y7 T?l.: (418) 649-6351 T?l?copieur : (418) 649-6876 Courriel : lessardst@dfo-mpo.gc.ca D?couvrez MARINFO ? l'adresse : www.marinfo.gc.ca <> <> From p.shapley at FSMAIL.NET Fri Aug 19 06:02:10 2005 From: p.shapley at FSMAIL.NET (Paul Shapley) Date: Fri Feb 8 15:07:56 2008 Subject: IIS Permission Problem (Mapserver Demo) Message-ID: Hi Everyone, I'm still having some problems with the Mapserv.exe on Windows 2000, it is still attempting to download when i click 'initialize' on the 'demo_init.html' file. I do not know anything about 'IIS', Scripts and Executables etc . How do you prevent this?. The 'cgi-bin' folder has r/w permissions. Thanks all. Paul ======================================== Message Received: Aug 18 2005, 11:08 AM From: "Paul Shapley" To: MAPSERVER-USERS@LISTS.UMN.EDU Cc: Subject: New Mapserver User I'm new to Mapserver and i'm trying to get the demo to work. When i 'initialize' the demo_init.html file the Mapserv.exe attempts to download to my pc. The supporting documentation explains this is due to an IIS 'permissions' problem. Can anyone explain what i need to do to get it working. Many thanks, Paul Shapley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050819/4be2ed25/attachment.html From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 19 06:08:26 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:56 2008 Subject: IIS Permission Problem (Mapserver Demo) Message-ID: If you don't know anything about IIS you should start reading up on that ...... IIS has a Manager application, in which you can get the properties of the cgi-bin directory. Part of that dialog has a select box in it in which you need to select Script and Executables. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Paul Shapley 08/19/05 12:02 PM >>> Hi Everyone, I'm still having some problems with the Mapserv.exe on Windows 2000, it is still attempting to download when i click 'initialize' on the 'demo_init.html' file. I do not know anything about 'IIS', Scripts and Executables etc .. How do you prevent this?. The 'cgi-bin' folder has r/w permissions. Thanks all. Paul ======================================== Message Received: Aug 18 2005, 11:08 AM From: "Paul Shapley" To: MAPSERVER-USERS@LISTS.UMN.EDU Cc: Subject: New Mapserver User I'm new to Mapserver and i'm trying to get the demo to work. When i 'initialize' the demo_init.html file the Mapserv.exe attempts to download to my pc. The supporting documentation explains this is due to an IIS 'permissions' problem. Can anyone explain what i need to do to get it working. Many thanks, Paul Shapley From lorenzo.panarello at ZENIT-SA.COM Fri Aug 19 08:27:09 2005 From: lorenzo.panarello at ZENIT-SA.COM (Dott. Lorenzo Panarello - ZENIT S.A.) Date: Fri Feb 8 15:07:56 2008 Subject: Caching query result? Message-ID: Hi Listers, I have a trouble with query results. My application works with 4.7 version of mapserver in a frame layout: query results in a query frame and map drawing in a map frame. When I fire a query the first time all works fine but the following queries always return the same result even if I query another feature in the same map. It seems I have to zoom or pan to another map area to make queries work again. I also noticed a strange behaviour of TOLERANCE and TOLERANCEUNITS directives: I catch too many "Search returned no results" errors also clicking exactly on the queried feature... maybe the 2 problems are correlated?? Anyone can help me? Does anyone know if there is some query caching process or initialize method?? Thanks in advance... Lorenzo Dott. Lorenzo Panarello lorenzo.panarello@zenit-sa.com ----------------------------------------------------------------------- Studio Associato Zenit Cartografia e Sistemi Informativi per l'Ambiente ed il Territorio Vicolo Molino 2, Busto Arsizio (VA) web - www.zenit-sa.com mail - info@zenit-sa.com ---------------------------------------------------------------------------- ------------- -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.12/77 - Release Date: 18/08/2005 From fsimon at UNIVALI.BR Fri Aug 19 08:40:35 2005 From: fsimon at UNIVALI.BR (Fernando Siimon) Date: Fri Feb 8 15:07:56 2008 Subject: Oracle Spatial vs. PostgreSQL/PostGIS In-Reply-To: Message-ID: Hi, This question we did when we started to develop using PostgreSQL/PostGIS. The first thing that you can check is the time to return the results of query's, PostgreSQL is more quickly (using geom too), but an Oracle with a good tunning can be very close of the PostgreSQL performance. Exist others parameters that you need to check before to choose the data base. The architecture of Oracle is more complex(redo logs, archives log, PGA, indexes...) than PostgreSQL and it will impact in the performance, but Oracle is much more secure than PostgreSQL. I believe that the security is a factor that you need to consider. For spatial data the crucial difference between te DB's is how they implement the support of data, Oracle/Oracle Spatial use a Object Oriented to store the geom data and contains many complex spatial functions and operators, Oracle Spatial contains many functions that you can use to obtain the same result, you can choose the appropriate for your scope. PostgreSQL/PostGIS don't use this way to store geom data, and contain many spatial functions too. Of course that sintax of two DB for the functions is different, but the result if you apply in your data will be the same. It's always a hard decision, the correct DB needs to considerate many other factors, here we use the two DB and have good return of both. PostgreSQL/PostGIS is a good database, im my opinion is the best opensource database. Oracle is a good database too, I belive that is the best database at the momment. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ India wrote: >I have a rather general question for this list-serv, which I hope is >appropriate, but would appeciate any input. I am a graduate student >researching the design and implementation of web-based decision support >tools. I am particularly interested in Open Source/Distributed GIS >development with Flash Interface design. > >What are advatages/disadvantages from the Mapserver users perspective on >using the PostgreSQL/PostGIS database versus Oracle Spatial, aside from >the obvious expense of Oracle? > > > From fsozzi at INTERCAD.CH Fri Aug 19 09:12:36 2005 From: fsozzi at INTERCAD.CH (fsozzi) Date: Fri Feb 8 15:07:56 2008 Subject: oracle layers: php sometime crashes In-Reply-To: <4304B410.8000900@univali.br> Message-ID: Hi Fernando and Bart, Thanks for answer. I've forgot the "'" in the mail, but in the map file it is correct. Right now I did not found time to test the new version, but may be that next week I will find it. As soon as I will do the test I will tell you the result. Bets regards Francesco -----Original Message----- From: Fernando Siimon To: Bart van den Eijnden Cc: MAPSERVER-USERS@LISTS.UMN.EDU, fsozzi@INTERCAD.CH Date: Thu, 18 Aug 2005 13:15:12 -0300 Subject: Re: [UMN_MAPSERVER-USERS] oracle layers: php sometime crashes > Hi, > Is it right the "," before FROM clause? > As Bart, I suggest to use the 4.6 version, it's more stable and > contains some improves in the code that can help with this problem. > Thanks. > > ----------------------------------------------------------------------- > - > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ----------------------------------------------------------------------- > - > > Bart van den Eijnden wrote: > > >Are you able to upgrade to Mapserver/Mapscript 4.6 and see if the > problem is still there? > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > > > > >>>>Francesco Sozzi 08/18/05 05:20pm >>> > >>>> > >>>> > >Hi all, > > > >I have a trouble in using QueryByAttributes or QueryByShape on an > Oracle Spatial layer: PHP sometime crashes. > >The strange thing is that it happens only on some layer and on some > PC. > >I have a test installation with exactly the same php code, Apache > version, Mapserver version, Oracle Version, OS version (Windows XP > Professional) and on one machine works fine and on another php crashes > (and only on one oracle layer, for the other oracle layers it works > fine). > > > >Has anybody already experimented a problem like this?.... > > > >Bets regards > > > > > > > >I use: > >- PHP 4.3.10 > >- Mapserver 4.4.1 > >- Apache 2 > >- Windows XP > > > >The test code is: > > > > >$gMap = ms_newMapObj("C:/App/QueryMapWEB/data/AIL/gas.map"); > >$gLayer = $gMap->getLayerByName("Condotte"); > > > >$rectDrawnedMapCoord = ms_newrectObj(); > >$rectDrawnedMapCoord->setextent(716765.866548, > > 89471.4128114 , > > 717831.590747, > > 87732.5996441); > > > >$qresult = $gLayer->queryByRect($rectDrawnedMapCoord); > >$layer->open(); > > > >?> > > > >The layer definition is: > ># > ----------------------------------------------------------------------- > - > ># Condotte > ># > ----------------------------------------------------------------------- > - > >LAYER > > NAME "Condotte" > > TYPE LINE > > CONNECTIONTYPE oraclespatial > > CONNECTION "ail_gas/avs@tb" > > DATA "GEOM FROM (SELECT fid,geom,FROM ga_strang WHERE geom is not > null AND DELETED=0) USING UNIQUE fid NONE" > > STATUS DEFAULT > > SYMBOLSCALE 200 > > > > CLASS > > NAME "nessuna" > > COLOR 0 0 0 > > SYMBOL 1 > > SIZE 8 > > TEMPLATE "templates/default.html" > > END > > > >END > > > > > > > From racine_pierre at HOTMAIL.COM Fri Aug 19 10:21:48 2005 From: racine_pierre at HOTMAIL.COM (Pierre Racine) Date: Fri Feb 8 15:07:56 2008 Subject: Wishing we had COLORRAMPs or something Message-ID: Stephen, This is EXACTLY what I would need right now. This would help making MapServer a much better cartographic product, event better than ArcMap. It is harrassing to define so many CLASSes right now, mostly when we want to assign SIZE and COLOR to a symbol. A COLORRAMP would do the job perfectly. Is this going to be available soon? We also need to fix bug #1398 to allow SIZEITEM to control the size of point data type. It would be great to allow the construction of SIZEBREAK similar to what you described for COLORRAMP. To define COLORRAMP we would have: COLORRANGE 0 0 0 255 255 0 255 0 0 #black to yellow to red UNDERCOLOR 0 255 0 #green OVERCOLOR 0 0 255 #blue DATARANGE 0.0 100.0 #with this range, -10..0 would be mapped to green, 0.0001 to black, 50.0 to yellow, 100.0 to red and 100.0001... to blue RANGEITEM "foobar" Or COLORBREAK 0 0 0 255 255 0 255 0 0 #black to yellow to red UNDERCOLOR 0 255 0 #green OVERCOLOR 0 0 255 #blue DATABREAK 0.0 30.0 90.0 100.0 #instead of DATARANGE. The number of break-1 must match the number of COLORBREAK. x<=0.0 = green, x<=30.0 = black, x<=90.0 = yellow, x<=100.0 = red and x>100.0 = blue RANGEITEM "foobar" In this last example we could use COLORRANGE instead of COLORBREAK. This would imply that the values between 0.0 and 30.0 would be mapped to a color between black and yellow. This makes clear the difference betweem using a RANGE and a BREAK. A range implies interpolation and a BREAK implies exact color. In this case the number of color must match the number of breaks. Example: COLORRANGE 0 0 0 255 255 0 255 0 0 0 255 255 #black to yellow to red to cyan UNDERCOLOR 0 255 0 #green OVERCOLOR 0 0 255 #blue DATABREAK 0.0 30.0 90.0 100.0 #The number of break must match the number of color in COLORRANGE. x<=0.0 = green, x<=30.0 = interpolation between black and yellow, x<=90.0 = interpolation between yellow and blue, x<=100.0 = interpolation between red and cyan, x>100.0 = blue RANGEITEM "foobar" ________________________________________________ Similarly for SIZE we would have something like: SIZERANGE 1 100 UNDERSIZE 1 #omitting this parameter would default undersized value to the first value of SIZERANGE OVERSIZE 100 #idem to the last value DATARANGE 0.0 1456.0 #this would keep the determination of symbology in the map file instead of having to compute a value for SIZEITEM in Postgres for example. (which is the data side. "Keep data and their representation separated") SIZEITEM "foobar" Or with breaks: SIZEBREAK 1 10 100 UNDERSIZE 0 OVERSIZE 100 DATABREAK 0.0 300.0 900.0 1456.0 #instead of DATARANGE. The number of break-1 must match the number of SIZEBREAKs. x<=0.0 = 0, x<=30.0 = 1, x<=90.0 = 10, x<=100.0 = 100 and x>100.0 = 100 SIZEITEM "foobar" Or SIZERANGE 1 10 20 100 UNDERSIZE 0 OVERSIZE 100 DATABREAK 0.0 300.0 900.0 1456.0 #instead of DATARANGE. The number of break must match the number of SIZEBREAKs. Value 150.0 is mapped to 4.5, value 900 to 20, etc... SIZEITEM "foobar" It is important to make the distinction between RANGEs and BREAKs. Pierre Racine From tibben at OCF.BERKELEY.EDU Fri Aug 19 10:22:05 2005 From: tibben at OCF.BERKELEY.EDU (tim) Date: Fri Feb 8 15:07:56 2008 Subject: mapserver cgi+fedora4+SELinux In-Reply-To: <20050819022101.44207.qmail@web31703.mail.mud.yahoo.com> Message-ID: Hi Eduin The errors that you are getting look similar to the errors we had with SELinux . . . We did get mapServer to work in Core 4 with SELinux. In the end we had to download the sources for the policies and make a special policy for the mapServer environment. -> Download SELinux policy sources -> in path /etc/selinux/targeted/src/policy/domains/misc create a file called local.te that looks like the following: allow httpd_sys_script_t lib_t:file execmod; allow httpd_sys_script_t var_t:dir getattr; allow httpd_sys_script_t httpd_exec_t:lnk_file read; allow httpd_sys_script_t default_t:dir { getattr read search }; allow httpd_sys_script_t httpd_var_lib_t:dir search; -> compile this policy (see the SELinux docs) - I can't remember the exact command - the sysadmin where I work figured this out and showed me briefly, but it didn't stick -> set php_mapscript.so to: system_u:object_r:httpd_sys_script_exec_t -> just in case set the my_sql.so files to: system_u:object_r:texrel_shlib_t -> set all php scripts and map data files to: system_u:object_r:httpd_sys_content_t -> NOTE: all of my html is also: system_u:object_r:httpd_sys_content_t -> in /usr/local/lib all .so files are (not the links with .so in the name): system_u:object_r:shlib_t and all other files are: system_u:object_r:lib_t (this is for gdal, proj, gd, xerces, etc.) From what I recall this is all . . . I am sure there are other ways to do this as well, this is just the solution that we found in a short amount of time without futzing over it too much. As a security measure I also moved all the php scripts to a private directory that is outside of the doc root for the web server. All of the scripts are then 'included' through a small parsing script in the doc root. hope this helps tim Peru At 09:20 PM 8/18/2005, Eduin Carrillo wrote: >I just update my OS to Fedora4. I had never hear about SELinux, but last two >day I were enforced to learn more about security policies and now I like >SELinux (my site were hacked 3 times in the last six months). > >I get php_mapscrit runs with the system rpm's and other rpms I found on >the net >(mappinghacks) except GDAL, and successfully compiled mapserver 4.6.0 in that >environment, but mapserv executable returns a 500 Internal Server Error. >Apache log reports: >/var/www/cgi-bin/mapserv: error while loading shared libraries: >/usr/local/lib/libgdal.so.1: cannot restore segment prot after reloc: >Permission denied > >SELinux policies I applied: >chcon -t texrel_shlib_t /usr/local/lib/*.so --> for gdal shared libraries >chcon -t httpd_unconfined_script_t /var/www/cgi-bin/mapserv -->for mapserv >binary > >I were getting the same error runing mapserver apps (legend, etc..) from the >command line, but policy applied for gdal, solved that. > >Previuosly tim ask about php/mapscript and SELinux, so these are my steps to >get php/mapscript running in FC4: >---------------------------------- >cd /usr/local/src >wget http://cvs.gis.umn.edu/dist/mapserver-4.6.0.tar.gz >tar xvzf mapserver-4.6.0.tar.gz >cd mapserver-4.6.0 >./configure --with-curl-config=/usr/bin/curl-config >--with-php=/usr/src/redhat/SOURCES/php-5.0.4 --with-httpd=/usr/sbin/httpd >--with-postgis=/usr/bin/pg_config --with-geos=/usr/bin/geos-config >--with-mygis=/usr/bin/mysql_config --with-proj=/usr >--with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config >--with-eppl --with-wfs --with-wcs --with-wmsclient --with-wfsclient >--with-gd=/usr >make >cp -f mapserv /var/www/cgi-bin/mapserv >cp -f legend /usr/local/bin/legend >cp -f scalebar /usr/local/bin/scalebar >cp -f shp2img /usr/local/bin/shp2img >cp -f shp2pdf /usr/local/bin/shp2pdf >cp -f shptree /usr/local/bin/shptree >cp -f shptreetst /usr/local/bin/shptreetst >cp -f shptreevis /usr/local/bin/shptreevis >cp -f sortshp /usr/local/bin/sortshp >cp -f tile4ms /usr/local/bin/tile4ms >cp -f mapscript/php3/php_mapscript.so /usr/lib/php/modules/php_mapscript.so > >#SELinux policy for php/mapscript >chcon -t texrel_shlib_t /usr/lib/php/modules/php_mapscript.so > >#to load as php module >echo "extension=php_mapscript.so" > /etc/php.d/mapscript.ini > >service httpd restart >------------------------- > >Any hint? > >Thanks in advanced. > > >Eduin Yesid Carrillo Vega >yecarrillo@yahoo.com >COLOMBIA > >__________________________________________________ >Correo Yahoo! >Espacio para todos tus mensajes, antivirus y antispam ?gratis! >Reg?strate ya - http://correo.espanol.yahoo.com/ From woodbri at SWOODBRIDGE.COM Fri Aug 19 10:27:30 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:07:56 2008 Subject: Wishing we had COLORRAMPs or something In-Reply-To: Message-ID: Hi Pierre, I was not working on this code, but I too need this capability. I have put together a thematic mapping demo at http://imaptools.com/~woodbri/thematic/thematic.cgi http://imaptools.com/~woodbri/thematic/thematic.cgi?name=ThemeMap&cmd=Map&debug=&location=MA&method=kmeans&numclasses=10&demographic=DP40063 but is suffers because some of these features are not present in mapserver. -Steve W. Pierre Racine wrote: > Stephen, > > This is EXACTLY what I would need right now. This would help making > MapServer a much better cartographic product, event better than ArcMap. It > is harrassing to define so many CLASSes right now, mostly when we want to > assign SIZE and COLOR to a symbol. A COLORRAMP would do the job perfectly. > > Is this going to be available soon? > > We also need to fix bug #1398 to allow SIZEITEM to control the size of > point data type. It would be great to allow the construction of SIZEBREAK > similar to what you described for COLORRAMP. > To define COLORRAMP we would have: > > COLORRANGE 0 0 0 255 255 0 255 0 0 #black to yellow to red > UNDERCOLOR 0 255 0 #green > OVERCOLOR 0 0 255 #blue > DATARANGE 0.0 100.0 #with this range, -10..0 would be mapped to green, > 0.0001 to black, 50.0 to yellow, 100.0 to red and 100.0001... to blue > RANGEITEM "foobar" > > Or > > COLORBREAK 0 0 0 255 255 0 255 0 0 #black to yellow to red > UNDERCOLOR 0 255 0 #green > OVERCOLOR 0 0 255 #blue > DATABREAK 0.0 30.0 90.0 100.0 #instead of DATARANGE. The number of > break-1 must match the number of COLORBREAK. x<=0.0 = green, x<=30.0 = > black, x<=90.0 = yellow, x<=100.0 = red and x>100.0 = blue > RANGEITEM "foobar" > > In this last example we could use COLORRANGE instead of COLORBREAK. This > would imply that the values between 0.0 and 30.0 would be mapped to a color > between black and yellow. This makes clear the difference betweem using a > RANGE and a BREAK. A range implies interpolation and a BREAK implies exact > color. In this case the number of color must match the number of breaks. > Example: > > COLORRANGE 0 0 0 255 255 0 255 0 0 0 255 255 #black to yellow to red > to cyan > UNDERCOLOR 0 255 0 #green > OVERCOLOR 0 0 255 #blue > DATABREAK 0.0 30.0 90.0 100.0 #The number of break must match the > number of color in COLORRANGE. x<=0.0 = green, x<=30.0 = interpolation > between black and yellow, x<=90.0 = interpolation between yellow and blue, > x<=100.0 = interpolation between red and cyan, x>100.0 = blue > RANGEITEM "foobar" > > ________________________________________________ > Similarly for SIZE we would have something like: > > SIZERANGE 1 100 > UNDERSIZE 1 #omitting this parameter would default undersized value to > the first value of SIZERANGE > OVERSIZE 100 #idem to the last value > DATARANGE 0.0 1456.0 #this would keep the determination of symbology in > the map file instead of having to compute a value for SIZEITEM in Postgres > for example. (which is the data side. "Keep data and their representation > separated") > SIZEITEM "foobar" > > Or with breaks: > > SIZEBREAK 1 10 100 > UNDERSIZE 0 > OVERSIZE 100 > DATABREAK 0.0 300.0 900.0 1456.0 #instead of DATARANGE. The number of > break-1 must match the number of SIZEBREAKs. x<=0.0 = 0, x<=30.0 = 1, > x<=90.0 = 10, x<=100.0 = 100 and x>100.0 = 100 > SIZEITEM "foobar" > > Or > > SIZERANGE 1 10 20 100 > UNDERSIZE 0 > OVERSIZE 100 > DATABREAK 0.0 300.0 900.0 1456.0 #instead of DATARANGE. The number of > break must match the number of SIZEBREAKs. Value 150.0 is mapped to 4.5, > value 900 to 20, etc... > SIZEITEM "foobar" > > It is important to make the distinction between RANGEs and BREAKs. > > Pierre Racine > From jerl.simpso at GMAIL.COM Fri Aug 19 11:33:16 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri Feb 8 15:07:56 2008 Subject: US overview Message-ID: Hello, I'm looking for a shapefile that outlines each state, but does not have an outline at the shoreline. This way I can put up a dotted line to show state borders, but not have that line running around the oceans. Or if someone could tell me how to go about doing this I would greatly appreciate it. Thanks, Jerl From abe.gillespie at GMAIL.COM Fri Aug 19 11:38:13 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: Message-ID: Placing the depended-on DLLs into the bin dir will do nothing. I assume you're on a windows box. Therefore the easiest way to take care of this is by placing all the DLLs (except for map_script) into \system32 where is the system windows directory (c:\winnt, c:\windows, etc.). With that said, you're entering a world of pain by using C# map_script in ASP.NET. Much of the map_script DLL is thread unsafe, that combined with ASP.NET's supremely weird threading model (e.g. virtual threads), you're going to encounter a plethora of problems. This is why you almost never see MapServer + ASP.NET discussion threads. To get more info, search the archives. You should find ten or so messages about this topic. -Abe On 8/18/05, Mike Boos wrote: > Hello > > I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET > server. I compiled the 4.6.0 version of MapServer and have placed what I > believe to be the appropriate dependencies (mapscript_csharp.dll, > mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin > directory on my server. It is appears to be finding > mapscript_csharp.dll, but is having trouble finding mapscript.dll or one > of its dependencies. I am seeing the following error message: > > > Server Error in '/' Application. > > > /Unable to load DLL (mapscript)./ > > * Description: *An unhandled exception occurred during the execution of > the current web request. Please review the stack trace for more > information about the error and where it originated in the code. > > * Exception Details: *System.DllNotFoundException: Unable to load DLL > (mapscript). > > Am I missing a dependency? Or do I need to set some configuration option > or place the files elsewhere? > > Thanks! > Mike Boos > From mboos at AUGSIGNALS.COM Fri Aug 19 11:53:54 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: Message-ID: I tried moving the dlls to the system32 directory, but that doesn't have any effect (am I missing any other dependencies?) Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest of the site relies upon. I'm trying to improve the present setup which involves sending a request to a C++ CGI program which writes a map file to the hard disk and forwards the request to mapserv.exe. If you'd ask me, that's a bit of a kluge, and without Mapscript, all I could do to improve on that would be to take out the C++ program and have the map file generated from within the ASP.NET program itself. Can you think of a better way to accomplish the same task? Mike Abe Gillespie wrote: >Placing the depended-on DLLs into the bin dir will do nothing. I >assume you're on a windows box. Therefore the easiest way to take >care of this is by placing all the DLLs (except for map_script) into >\system32 where is the system windows directory >(c:\winnt, c:\windows, etc.). > >With that said, you're entering a world of pain by using C# map_script >in ASP.NET. Much of the map_script DLL is thread unsafe, that >combined with ASP.NET's supremely weird threading model (e.g. virtual >threads), you're going to encounter a plethora of problems. This is >why you almost never see MapServer + ASP.NET discussion threads. > >To get more info, search the archives. You should find ten or so >messages about this topic. > >-Abe > >On 8/18/05, Mike Boos wrote: > > >>Hello >> >>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>server. I compiled the 4.6.0 version of MapServer and have placed what I >>believe to be the appropriate dependencies (mapscript_csharp.dll, >>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin >>directory on my server. It is appears to be finding >>mapscript_csharp.dll, but is having trouble finding mapscript.dll or one >>of its dependencies. I am seeing the following error message: >> >> >> Server Error in '/' Application. >> >> >> /Unable to load DLL (mapscript)./ >> >>* Description: *An unhandled exception occurred during the execution of >>the current web request. Please review the stack trace for more >>information about the error and where it originated in the code. >> >>* Exception Details: *System.DllNotFoundException: Unable to load DLL >>(mapscript). >> >>Am I missing a dependency? Or do I need to set some configuration option >>or place the files elsewhere? >> >>Thanks! >>Mike Boos >> >> >> > > > > > From fredlucca at GMAIL.COM Fri Aug 19 12:06:30 2005 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Fri Feb 8 15:07:56 2008 Subject: Caching query result? In-Reply-To: <42F8C5A6000A0F05@ms003msg.mail.fw> Message-ID: Lorenzo, I have a source in java. It's important when you invoke, to set the scale as the same you are in the map. It works fine. public shapeObj getInfo(String name, double x, double y, int range){ shapeObj shape = null; pointObj point = new pointObj(x,y,0); layerObj layer = map.getLayerByName(name); layer.setTemplate("whatever"); layer.setSizeunits(mapscript.MS_METERS); layer.setToleranceunits(mapscript.MS_METERS); layer.setTolerance(range); if(layer.queryByPoint(map, point, mapscript.MS_SINGLE, -1)==mapscript.MS_SUCCESS){ resultCacheObj results = layer.getResults(); if (results.getNumresults()>0){ layer.open(); resultCacheMemberObj result = results.getResult(0); shape=new shapeObj(layer.getType()); layer.getShape(shape,result.getTileindex(),result.getShapeindex()); layer.close(); } } return shape; } On 8/19/05, Dott. Lorenzo Panarello - ZENIT S.A. wrote: > Hi Listers, > > I have a trouble with query results. My application works with 4.7 version > of mapserver in a frame layout: query results in a query frame and map > drawing in a map frame. When I fire a query the first time all works fine > but the following queries always return the same result even if I query > another feature in the same map. It seems I have to zoom or pan to another > map area to make queries work again. I also noticed a strange behaviour of > TOLERANCE and TOLERANCEUNITS directives: I catch too many "Search returned > no results" errors also clicking exactly on the queried feature... maybe > the > 2 problems are correlated?? Anyone can help me? > Does anyone know if there is some query caching process or initialize > method?? > > Thanks in advance... > > Lorenzo > > Dott. Lorenzo Panarello > lorenzo.panarello@zenit-sa.com > ----------------------------------------------------------------------- > Studio Associato Zenit > Cartografia e Sistemi Informativi per l'Ambiente ed il Territorio > Vicolo Molino 2, Busto Arsizio (VA) > web - www.zenit-sa.com > mail - info@zenit-sa.com > ---------------------------------------------------------------------------- > ------------- > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.338 / Virus Database: 267.10.12/77 - Release Date: 18/08/2005 > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From fredlucca at GMAIL.COM Fri Aug 19 12:13:45 2005 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Fri Feb 8 15:07:56 2008 Subject: libmapscript.so: undefined symbol: msOWSGetSchemasLocation Message-ID: Hello list! I'm having problems building mapserver 4.6.0 --with-gdal --with-ogr I can build mapserver, but when I try to access libmapscript.so from java I get this error: libmapscript.so: undefined symbol: msOWSGetSchemasLocation What can I do? What is the problem? Thanks in advance, Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From fredlucca at GMAIL.COM Fri Aug 19 12:19:07 2005 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Fri Feb 8 15:07:56 2008 Subject: SDE querybypoint no results In-Reply-To: Message-ID: Juan Antonio, I don't know SDE, but I think the query is the same in every format. How are you trying this? Can you post the code? Best regards, Fred On 8/18/05, Juan Antonio Fernandez Prada wrote: > Hello everbody! > > I'm trying to make querys to a shape in SDE. I've got some shapes in > ArcSDE; the mapserver works fine with them, but when I make querybypoint, > there in not any results. I think that should be have any form to make > this, but I don?t know than. > > Does anybody know how to make this? Or, does anybody if I can or can't do > this? > > An other question: Can I work with MapServer and ArcGis FeatureClass? > > Thanks a lot and regards, > Juan Antonio. > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From LESSARDST at DFO-MPO.GC.CA Fri Aug 19 12:31:55 2005 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Fri Feb 8 15:07:56 2008 Subject: WFS Line layer: Missing last point Message-ID: Bart, That did the trick. Thanks for the pointers. I also had to modify my query template, to add "myns:" before every field name. (Was "ID", now is "myns:ID"). Thanks again. Stephane > -----Message d'origine----- > De : Bart van den Eijnden [mailto:BEN@SYNCERA-ITSOLUTIONS.NL] > Envoy? : 19 ao?t 2005 02:22 > ? : MAPSERVER-USERS@LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] WFS Line layer: Missing last point > > > I'm using Mapserver 4.3 to generate the WFS service. > > Can you upgrade to 4.6 and try again? Make you sure you do > include the following METADATA then for your LAYER: > > gml_include_items "all" > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > >>> Stephane Lessard 08/18/05 17:39 PM >>> > Greatings, > > I have defined a WFS Line layer for a MID / MIF file. All > seems to be working well, except that the last point is missing. > > The MID / MIF is properly defined, and is displayed properly > when I access it directly. Ogrinfo gives me the following > (relevant parts only): > > //////// > Feature Count: 1 > Extent: (-67.366667, 48.666667) - (-62.000000, 49.516667) .... > OGRFeature(route53):1 > .... > LINESTRING (-67.36666667 49.21666667,-66.95000000 > 49.38333333,-65.00000000 49. > 51666667,-62.00000000 48.66666667) > //////// > > As you can see, there are 4 points in this line. But here is > the result of the WFS request, extracted from the ".tmp.gml" file: > > //////// > > > > > -67.366667,48.666667 > -62.000000,49.516667 > > > > > > -67.366667,49.216667 > -66.950000,49.383333 > -65.000000,49.516667 > > > //////// > > The last point is missing! And the same thing happens with > all my routes. I have included my MID and MIF file. If > someone wants to test that or just investigate the source > code, I would be very grateful. > > Mapfile layer (WFS Server): > > /////// > LAYER > NAME ROUTE_WFS > DUMP TRUE > TYPE LINE > STATUS ON > CONNECTIONTYPE OGR > TILEINDEX "D:\Marinfo\Glaces\Officielles\Shape\IceRoute.shp" > CLASS > STYLE > SYMBOL "mapinfo_59" > END > END > METADATA > "wfs_title" "ROUTE_WFS" > "wfs_srs" "EPSG:4269" > "wfs_abstract" "" > "wfs_keywordlist" "" > END > END # Layer > /////// > > I'm using Mapserver 4.3 to generate the WFS service. > > Thank you! > > > St?phane Lessard, ing. jr. > Ing?nieur Syst?mes Ordin?s > Syst?mes ?lectroniques et Informatiques > Garde C?ti?re Canadienne > R?gion du Qu?bec > 101, boul. Champlain, Qu?bec, QC G1K 7Y7 > T?l.: (418) 649-6351 > T?l?copieur : (418) 649-6876 > Courriel : lessardst@dfo-mpo.gc.ca > D?couvrez MARINFO ? > l'adresse : www.marinfo.gc.ca > <> <> > From abe.gillespie at GMAIL.COM Fri Aug 19 12:37:11 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: <43060092.10904@augsignals.com> Message-ID: Did you move mapscript.dll to system32 as well? The only DLL that should be in your bin dir is mapscript_csharp.dll. Suggestions: 1. Write the mapfile by hand with the file streaming objects? 2. Wrap the MapServer CGI executable with ASP.NET (I think someone did just this some time ago). 3. If this is all you're doing, you *might* be able to get away with it in ASP.NET. See if there's a way to protect a section of ASP.NET code with a semaphore or similar construct. Is there something that protects in the virtual thread environment? -Abe On 8/19/05, Mike Boos wrote: > I tried moving the dlls to the system32 directory, but that doesn't have > any effect (am I missing any other dependencies?) > > Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest > of the site relies upon. I'm trying to improve the present setup which > involves sending a request to a C++ CGI program which writes a map file > to the hard disk and forwards the request to mapserv.exe. If you'd ask > me, that's a bit of a kluge, and without Mapscript, all I could do to > improve on that would be to take out the C++ program and have the map > file generated from within the ASP.NET program itself. Can you think of > a better way to accomplish the same task? > > Mike > Abe Gillespie wrote: > > >Placing the depended-on DLLs into the bin dir will do nothing. I > >assume you're on a windows box. Therefore the easiest way to take > >care of this is by placing all the DLLs (except for map_script) into > >\system32 where is the system windows directory > >(c:\winnt, c:\windows, etc.). > > > >With that said, you're entering a world of pain by using C# map_script > >in ASP.NET. Much of the map_script DLL is thread unsafe, that > >combined with ASP.NET's supremely weird threading model (e.g. virtual > >threads), you're going to encounter a plethora of problems. This is > >why you almost never see MapServer + ASP.NET discussion threads. > > > >To get more info, search the archives. You should find ten or so > >messages about this topic. > > > >-Abe > > > >On 8/18/05, Mike Boos wrote: > > > > > >>Hello > >> > >>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET > >>server. I compiled the 4.6.0 version of MapServer and have placed what I > >>believe to be the appropriate dependencies (mapscript_csharp.dll, > >>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin > >>directory on my server. It is appears to be finding > >>mapscript_csharp.dll, but is having trouble finding mapscript.dll or one > >>of its dependencies. I am seeing the following error message: > >> > >> > >> Server Error in '/' Application. > >> > >> > >> /Unable to load DLL (mapscript)./ > >> > >>* Description: *An unhandled exception occurred during the execution of > >>the current web request. Please review the stack trace for more > >>information about the error and where it originated in the code. > >> > >>* Exception Details: *System.DllNotFoundException: Unable to load DLL > >>(mapscript). > >> > >>Am I missing a dependency? Or do I need to set some configuration option > >>or place the files elsewhere? > >> > >>Thanks! > >>Mike Boos > >> > >> > >> > > > > > > > > > > > > From ierickson at ANALYGIS.COM Fri Aug 19 12:47:45 2005 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: Message-ID: Following this thread, I had to ask the following question: I know the mapping (and non-mapping) world is wrapped up in Google. Is there any effort on the part of this community to write a pure Javascript library that mirrors the functionality present in the Google API? I am aware of the ka-Map project but have not investigated it to the level to know whether or not a simple
element is enough to encapsulate the mapping interface. Any hints or references to ongoing projects to this end would be appreciated! A simple browser-generic Javascript API that leverages the capabilities of MapServer (rather than Google) could go a great distance in winning even wider support for the MapServer project. Abe Gillespie wrote: >Did you move mapscript.dll to system32 as well? The only DLL that >should be in your bin dir is mapscript_csharp.dll. > >Suggestions: >1. Write the mapfile by hand with the file streaming objects? >2. Wrap the MapServer CGI executable with ASP.NET (I think someone >did just this some time ago). >3. If this is all you're doing, you *might* be able to get away with >it in ASP.NET. See if there's a way to protect a section of ASP.NET >code with a semaphore or similar construct. Is there something that >protects in the virtual thread environment? > >-Abe > >On 8/19/05, Mike Boos wrote: > > >>I tried moving the dlls to the system32 directory, but that doesn't have >>any effect (am I missing any other dependencies?) >> >>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest >>of the site relies upon. I'm trying to improve the present setup which >>involves sending a request to a C++ CGI program which writes a map file >>to the hard disk and forwards the request to mapserv.exe. If you'd ask >>me, that's a bit of a kluge, and without Mapscript, all I could do to >>improve on that would be to take out the C++ program and have the map >>file generated from within the ASP.NET program itself. Can you think of >>a better way to accomplish the same task? >> >>Mike >>Abe Gillespie wrote: >> >> >> >>>Placing the depended-on DLLs into the bin dir will do nothing. I >>>assume you're on a windows box. Therefore the easiest way to take >>>care of this is by placing all the DLLs (except for map_script) into >>>\system32 where is the system windows directory >>>(c:\winnt, c:\windows, etc.). >>> >>>With that said, you're entering a world of pain by using C# map_script >>>in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>combined with ASP.NET's supremely weird threading model (e.g. virtual >>>threads), you're going to encounter a plethora of problems. This is >>>why you almost never see MapServer + ASP.NET discussion threads. >>> >>>To get more info, search the archives. You should find ten or so >>>messages about this topic. >>> >>>-Abe >>> >>>On 8/18/05, Mike Boos wrote: >>> >>> >>> >>> >>>>Hello >>>> >>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>>>server. I compiled the 4.6.0 version of MapServer and have placed what I >>>>believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin >>>>directory on my server. It is appears to be finding >>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or one >>>>of its dependencies. I am seeing the following error message: >>>> >>>> >>>> Server Error in '/' Application. >>>> >>>> >>>> /Unable to load DLL (mapscript)./ >>>> >>>>* Description: *An unhandled exception occurred during the execution of >>>>the current web request. Please review the stack trace for more >>>>information about the error and where it originated in the code. >>>> >>>>* Exception Details: *System.DllNotFoundException: Unable to load DLL >>>>(mapscript). >>>> >>>>Am I missing a dependency? Or do I need to set some configuration option >>>>or place the files elsewhere? >>>> >>>>Thanks! >>>>Mike Boos >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >> >> > > > -- Ian Erickson AnalyGIS, LLC http:// www.analygis.com From carsten.dewey at ENDOXON.COM Fri Aug 19 12:25:24 2005 From: carsten.dewey at ENDOXON.COM (Carsten Dewey) Date: Fri Feb 8 15:07:56 2008 Subject: Mismatch transforming WGS84 to CH1903 using shp2img Message-ID: Dear list, the transformation from WGS84 to CH1903 Swiss Grid seems not to work accurately (shp2img). I have created a map file combining a raster image (Swiss Grid) and a MapInfo *.tab file (WGS84) The output projection is set inside the MAP object as follows: PROJECTION "proj=somerc" "ellps=bessel" "lat_0=46.95240555555556" "lon_0=7.439583333333333" "x_0=600000" "y_0=200000" END The input projection of the tab file (LAYER object): PROJECTION #"proj=longlat" #"ellps=WGS84" END As you may see looking at the result (attached image) there is a slight mismatch. I've tried already to use epsg code ("init=epsg:21781") to specify the projection, but then I get the following error message using shp2img: "msProcessProjection(): Projection library error. lat_0 = 0 or 90 or alpha = 90" Using "init=world:ch1903" works fine exept from producing still a mismatch. Using cs2cs with epsg code produces the same error message. Transforming single points using cs2cs seems to result in mismatches as well. My mapserver installation includes gdaldata, gdalplugins and proj. All relevant paths and variables are set. Any ideas, suggestions, solutions? Thanks carsten -------------- next part -------------- A non-text attachment was scrubbed... Name: mismatch.jpg Type: image/jpeg Size: 42548 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050819/8e0420ef/mismatch.jpg From abe.gillespie at GMAIL.COM Fri Aug 19 13:00:39 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: <43060D31.7080903@analygis.com> Message-ID: Hah, you wrote "simple" & "javascript" in the same sentence! :) Joking aside, you mentioned ka-Map ... I assume you've looked into Chameleon? -Abe On 8/19/05, Ian Erickson wrote: > Following this thread, I had to ask the following question: > > I know the mapping (and non-mapping) world is wrapped up in Google. Is > there any effort on the part of this community to write a pure > Javascript library that mirrors the functionality present in the Google > API? I am aware of the ka-Map project but have not investigated it to > the level to know whether or not a simple
element is enough to > encapsulate the mapping interface. Any hints or references to ongoing > projects to this end would be appreciated! > > A simple browser-generic Javascript API that leverages the capabilities > of MapServer (rather than Google) could go a great distance in winning > even wider support for the MapServer project. > > Abe Gillespie wrote: > > >Did you move mapscript.dll to system32 as well? The only DLL that > >should be in your bin dir is mapscript_csharp.dll. > > > >Suggestions: > >1. Write the mapfile by hand with the file streaming objects? > >2. Wrap the MapServer CGI executable with ASP.NET (I think someone > >did just this some time ago). > >3. If this is all you're doing, you *might* be able to get away with > >it in ASP.NET. See if there's a way to protect a section of ASP.NET > >code with a semaphore or similar construct. Is there something that > >protects in the virtual thread environment? > > > >-Abe > > > >On 8/19/05, Mike Boos wrote: > > > > > >>I tried moving the dlls to the system32 directory, but that doesn't have > >>any effect (am I missing any other dependencies?) > >> > >>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest > >>of the site relies upon. I'm trying to improve the present setup which > >>involves sending a request to a C++ CGI program which writes a map file > >>to the hard disk and forwards the request to mapserv.exe. If you'd ask > >>me, that's a bit of a kluge, and without Mapscript, all I could do to > >>improve on that would be to take out the C++ program and have the map > >>file generated from within the ASP.NET program itself. Can you think of > >>a better way to accomplish the same task? > >> > >>Mike > >>Abe Gillespie wrote: > >> > >> > >> > >>>Placing the depended-on DLLs into the bin dir will do nothing. I > >>>assume you're on a windows box. Therefore the easiest way to take > >>>care of this is by placing all the DLLs (except for map_script) into > >>>\system32 where is the system windows directory > >>>(c:\winnt, c:\windows, etc.). > >>> > >>>With that said, you're entering a world of pain by using C# map_script > >>>in ASP.NET. Much of the map_script DLL is thread unsafe, that > >>>combined with ASP.NET's supremely weird threading model (e.g. virtual > >>>threads), you're going to encounter a plethora of problems. This is > >>>why you almost never see MapServer + ASP.NET discussion threads. > >>> > >>>To get more info, search the archives. You should find ten or so > >>>messages about this topic. > >>> > >>>-Abe > >>> > >>>On 8/18/05, Mike Boos wrote: > >>> > >>> > >>> > >>> > >>>>Hello > >>>> > >>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET > >>>>server. I compiled the 4.6.0 version of MapServer and have placed what I > >>>>believe to be the appropriate dependencies (mapscript_csharp.dll, > >>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin > >>>>directory on my server. It is appears to be finding > >>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or one > >>>>of its dependencies. I am seeing the following error message: > >>>> > >>>> > >>>> Server Error in '/' Application. > >>>> > >>>> > >>>> /Unable to load DLL (mapscript)./ > >>>> > >>>>* Description: *An unhandled exception occurred during the execution of > >>>>the current web request. Please review the stack trace for more > >>>>information about the error and where it originated in the code. > >>>> > >>>>* Exception Details: *System.DllNotFoundException: Unable to load DLL > >>>>(mapscript). > >>>> > >>>>Am I missing a dependency? Or do I need to set some configuration option > >>>>or place the files elsewhere? > >>>> > >>>>Thanks! > >>>>Mike Boos > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>> > >> > >> > > > > > > > > -- > Ian Erickson > AnalyGIS, LLC > http:// www.analygis.com > > > From ierickson at ANALYGIS.COM Fri Aug 19 13:12:24 2005 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: Message-ID: Alright, Perhaps "simple" and "Javascript" are not best paired together like that. I have not looked at Chameleon, except to say that I installed it once and had issues with browser compatibility - it had the look and feel of a "simple Javascript" issue. So no. I'm looking for a little education as to what is available out there to quickly and easily meet the needs of those persons or institutions who would like to migrate from a "Google" solution to an internal one, with little to no software rewrites. One thing the Google API does reall well, is simplify map delivery. The backend server stuff - people don't care. But a mediocre web designer should be able to use the "MapServer Javascript API" to build a mapping site in a few minutes. Some would argue that Google does not subscribe to OGC standards, and it's not flexible enough, but given their ( - what seems to me - ) overnight success, Google is setting the standard in many ways. I have considered such an effort on my own, and the ka-Map interface is really very nice (very "Googleesque") but I don't want to re-invent the wheel.... Abe Gillespie wrote: >Hah, you wrote "simple" & "javascript" in the same sentence! :) > >Joking aside, you mentioned ka-Map ... I assume you've looked into Chameleon? > >-Abe > >On 8/19/05, Ian Erickson wrote: > > >>Following this thread, I had to ask the following question: >> >>I know the mapping (and non-mapping) world is wrapped up in Google. Is >>there any effort on the part of this community to write a pure >>Javascript library that mirrors the functionality present in the Google >>API? I am aware of the ka-Map project but have not investigated it to >>the level to know whether or not a simple
element is enough to >>encapsulate the mapping interface. Any hints or references to ongoing >>projects to this end would be appreciated! >> >>A simple browser-generic Javascript API that leverages the capabilities >>of MapServer (rather than Google) could go a great distance in winning >>even wider support for the MapServer project. >> >>Abe Gillespie wrote: >> >> >> >>>Did you move mapscript.dll to system32 as well? The only DLL that >>>should be in your bin dir is mapscript_csharp.dll. >>> >>>Suggestions: >>>1. Write the mapfile by hand with the file streaming objects? >>>2. Wrap the MapServer CGI executable with ASP.NET (I think someone >>>did just this some time ago). >>>3. If this is all you're doing, you *might* be able to get away with >>>it in ASP.NET. See if there's a way to protect a section of ASP.NET >>>code with a semaphore or similar construct. Is there something that >>>protects in the virtual thread environment? >>> >>>-Abe >>> >>>On 8/19/05, Mike Boos wrote: >>> >>> >>> >>> >>>>I tried moving the dlls to the system32 directory, but that doesn't have >>>>any effect (am I missing any other dependencies?) >>>> >>>>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest >>>>of the site relies upon. I'm trying to improve the present setup which >>>>involves sending a request to a C++ CGI program which writes a map file >>>>to the hard disk and forwards the request to mapserv.exe. If you'd ask >>>>me, that's a bit of a kluge, and without Mapscript, all I could do to >>>>improve on that would be to take out the C++ program and have the map >>>>file generated from within the ASP.NET program itself. Can you think of >>>>a better way to accomplish the same task? >>>> >>>>Mike >>>>Abe Gillespie wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Placing the depended-on DLLs into the bin dir will do nothing. I >>>>>assume you're on a windows box. Therefore the easiest way to take >>>>>care of this is by placing all the DLLs (except for map_script) into >>>>>\system32 where is the system windows directory >>>>>(c:\winnt, c:\windows, etc.). >>>>> >>>>>With that said, you're entering a world of pain by using C# map_script >>>>>in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>>>combined with ASP.NET's supremely weird threading model (e.g. virtual >>>>>threads), you're going to encounter a plethora of problems. This is >>>>>why you almost never see MapServer + ASP.NET discussion threads. >>>>> >>>>>To get more info, search the archives. You should find ten or so >>>>>messages about this topic. >>>>> >>>>>-Abe >>>>> >>>>>On 8/18/05, Mike Boos wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello >>>>>> >>>>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>>>>>server. I compiled the 4.6.0 version of MapServer and have placed what I >>>>>>believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin >>>>>>directory on my server. It is appears to be finding >>>>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or one >>>>>>of its dependencies. I am seeing the following error message: >>>>>> >>>>>> >>>>>>Server Error in '/' Application. >>>>>> >>>>>> >>>>>> /Unable to load DLL (mapscript)./ >>>>>> >>>>>>* Description: *An unhandled exception occurred during the execution of >>>>>>the current web request. Please review the stack trace for more >>>>>>information about the error and where it originated in the code. >>>>>> >>>>>>* Exception Details: *System.DllNotFoundException: Unable to load DLL >>>>>>(mapscript). >>>>>> >>>>>>Am I missing a dependency? Or do I need to set some configuration option >>>>>>or place the files elsewhere? >>>>>> >>>>>>Thanks! >>>>>>Mike Boos >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >>> >>-- >>Ian Erickson >>AnalyGIS, LLC >>http:// www.analygis.com >> >> >> >> >> > > > -- Ian Erickson AnalyGIS, LLC http:// www.analygis.com From mboos at AUGSIGNALS.COM Fri Aug 19 13:23:38 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: Message-ID: mapscript_csharp.dll is present in the bin directory. All the others are in system32. gdal12.dll is in both as I'm somehow invoking a function from it from elsewhere and not having the slightest bit of trouble with that part (I'm using a direct DllImport attribute). So maybe I will have to try one of the alternatives. Oh well. Mike Abe Gillespie wrote: >Did you move mapscript.dll to system32 as well? The only DLL that >should be in your bin dir is mapscript_csharp.dll. > >Suggestions: >1. Write the mapfile by hand with the file streaming objects? >2. Wrap the MapServer CGI executable with ASP.NET (I think someone >did just this some time ago). >3. If this is all you're doing, you *might* be able to get away with >it in ASP.NET. See if there's a way to protect a section of ASP.NET >code with a semaphore or similar construct. Is there something that >protects in the virtual thread environment? > >-Abe > >On 8/19/05, Mike Boos wrote: > > >>I tried moving the dlls to the system32 directory, but that doesn't have >>any effect (am I missing any other dependencies?) >> >>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest >>of the site relies upon. I'm trying to improve the present setup which >>involves sending a request to a C++ CGI program which writes a map file >>to the hard disk and forwards the request to mapserv.exe. If you'd ask >>me, that's a bit of a kluge, and without Mapscript, all I could do to >>improve on that would be to take out the C++ program and have the map >>file generated from within the ASP.NET program itself. Can you think of >>a better way to accomplish the same task? >> >>Mike >>Abe Gillespie wrote: >> >> >> >>>Placing the depended-on DLLs into the bin dir will do nothing. I >>>assume you're on a windows box. Therefore the easiest way to take >>>care of this is by placing all the DLLs (except for map_script) into >>>\system32 where is the system windows directory >>>(c:\winnt, c:\windows, etc.). >>> >>>With that said, you're entering a world of pain by using C# map_script >>>in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>combined with ASP.NET's supremely weird threading model (e.g. virtual >>>threads), you're going to encounter a plethora of problems. This is >>>why you almost never see MapServer + ASP.NET discussion threads. >>> >>>To get more info, search the archives. You should find ten or so >>>messages about this topic. >>> >>>-Abe >>> >>>On 8/18/05, Mike Boos wrote: >>> >>> >>> >>> >>>>Hello >>>> >>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>>>server. I compiled the 4.6.0 version of MapServer and have placed what I >>>>believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin >>>>directory on my server. It is appears to be finding >>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or one >>>>of its dependencies. I am seeing the following error message: >>>> >>>> >>>> Server Error in '/' Application. >>>> >>>> >>>> /Unable to load DLL (mapscript)./ >>>> >>>>* Description: *An unhandled exception occurred during the execution of >>>>the current web request. Please review the stack trace for more >>>>information about the error and where it originated in the code. >>>> >>>>* Exception Details: *System.DllNotFoundException: Unable to load DLL >>>>(mapscript). >>>> >>>>Am I missing a dependency? Or do I need to set some configuration option >>>>or place the files elsewhere? >>>> >>>>Thanks! >>>>Mike Boos >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >> >> > > > > > From armin.burger at GMX.NET Fri Aug 19 13:31:22 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Fri Feb 8 15:07:56 2008 Subject: Mismatch transforming WGS84 to CH1903 using shp2img In-Reply-To: <20050819161604.577C232AF9@hermes.endoxon.com> Message-ID: Both projections use a different geographic datum (WGS 84 and CH 1903). By default Mapserver based on the Proj4 engine does not perform a datum shift. This results in a difference between projections after re-projection up to some 10's meters. I don't know if with the addition of the -towgs84 parameter Mapserver can perform now a correct datum shift. Also I don't know where one could get the 3 or 7 shift parameters for -towgs84. Armin Carsten Dewey wrote: >Dear list, > >the transformation from WGS84 to CH1903 Swiss Grid seems not to work >accurately (shp2img). >I have created a map file combining a raster image (Swiss Grid) and a >MapInfo *.tab file (WGS84) >The output projection is set inside the MAP object as follows: >PROJECTION > "proj=somerc" > "ellps=bessel" > "lat_0=46.95240555555556" > "lon_0=7.439583333333333" > "x_0=600000" > "y_0=200000" >END >The input projection of the tab file (LAYER object): >PROJECTION > #"proj=longlat" > #"ellps=WGS84" >END > >As you may see looking at the result (attached image) there is a slight >mismatch. > >I've tried already to use epsg code ("init=epsg:21781") to specify the >projection, but then I get the following error message using shp2img: >"msProcessProjection(): Projection library error. lat_0 = 0 or 90 or alpha = >90" >Using "init=world:ch1903" works fine exept from producing still a mismatch. > >Using cs2cs with epsg code produces the same error message. >Transforming single points using cs2cs seems to result in mismatches as >well. > >My mapserver installation includes gdaldata, gdalplugins and proj. >All relevant paths and variables are set. > >Any ideas, suggestions, solutions? >Thanks >carsten > > > > > > ------------------------------------------------------------------------ > From arnulf.christl at CCGIS.DE Fri Aug 19 14:23:52 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri Feb 8 15:07:56 2008 Subject: Security Risks?? In-Reply-To: <817c0101050815122567fedfcd@mail.gmail.com> Message-ID: Jennifer Zeisloft wrote: > Hello All- > > We have been working locally with ms4w but would like to "go public". > My understanding is that there are some security risks involved in using > the ms4w installation as opposed to the Map Server installation. Our > network administrator would like to know exactly what are the security > and other issues with using ms4w before we switch to Map Server. If > someone could explain this or point me to the documentation that > explains it, I would be very appreciative. Thanks in advance! > > Jennifer Zeisloft > > Hey, none answered you yet? Thats strange. MS4W basically *is* MapServer - no better or worse , but it includes loads of additinal goodies that you might or might not need. Regarding security issues, all that your admin has to do is close the doors on her system as she would in any security environment. That enough? Best, From gerry.creager at TAMU.EDU Fri Aug 19 15:28:05 2005 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Fri Feb 8 15:07:56 2008 Subject: Security Risks?? In-Reply-To: <430623B8.7020604@ccgis.de> Message-ID: Arnulf Christl wrote: > Jennifer Zeisloft wrote: > >> Hello All- >> >> We have been working locally with ms4w but would like to "go public". >> My understanding is that there are some security risks involved in using >> the ms4w installation as opposed to the Map Server installation. Our >> network administrator would like to know exactly what are the security >> and other issues with using ms4w before we switch to Map Server. If >> someone could explain this or point me to the documentation that >> explains it, I would be very appreciative. Thanks in advance! >> >> Jennifer Zeisloft >> >> > Hey, > none answered you yet? Thats strange. > > MS4W basically *is* MapServer - no better or worse , but it includes > loads of additinal goodies that you might or might not need. Regarding > security issues, all that your admin has to do is close the doors on her > system as she would in any security environment. That enough? As I no longer administer Windows systems, I really can't speak to MS4W security save in sweeping terms. Using it with Apache should be pretty safe, if, as noted above, your adiminstrator has taken care to close known problem holes... stuff common to Apache installs. All of our security exercises have strongly suggested that a knowledgable intruder can readily take over most Windows systems. Please note: This isn't a Windows slam, but that's what we're seeing on our campus with our network security exercises. One of the primary vectors we've seen exploited (ignoring mail trojans, etc) were IIS exploits. We've seen very few Apache exploits on well-patched/well-protected WinXP systems. So I echo the sentiment above: Patch it all, close as many holes as possible, make sure there are security logging mechanisms to allow you to detect an intrusion, and you've probably done a good job. At least in the source-version, implemented on Linux and Solaris, I've not seen any vulnerabilities reach out and scream at me. Gerry -- Gerry Creager -- gerry.creager@tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From szekeres.tamas at FREEMAIL.HU Fri Aug 19 15:54:46 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL Message-ID: Have you tried SysInternals's filemon or a similar program to monitor the expected location of theese files? On Fri, 19 Aug 2005 13:23:38 -0400, Mike Boos wrote: >mapscript_csharp.dll is present in the bin directory. All the others are >in system32. gdal12.dll is in both as I'm somehow invoking a function >from it from elsewhere and not having the slightest bit of trouble with >that part (I'm using a direct DllImport attribute). So maybe I will have >to try one of the alternatives. Oh well. > >Mike > >Abe Gillespie wrote: > >>Did you move mapscript.dll to system32 as well? The only DLL that >>should be in your bin dir is mapscript_csharp.dll. >> >>Suggestions: >>1. Write the mapfile by hand with the file streaming objects? >>2. Wrap the MapServer CGI executable with ASP.NET (I think someone >>did just this some time ago). >>3. If this is all you're doing, you *might* be able to get away with >>it in ASP.NET. See if there's a way to protect a section of ASP.NET >>code with a semaphore or similar construct. Is there something that >>protects in the virtual thread environment? >> >>-Abe >> >>On 8/19/05, Mike Boos wrote: >> >> >>>I tried moving the dlls to the system32 directory, but that doesn't have >>>any effect (am I missing any other dependencies?) >>> >>>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest >>>of the site relies upon. I'm trying to improve the present setup which >>>involves sending a request to a C++ CGI program which writes a map file >>>to the hard disk and forwards the request to mapserv.exe. If you'd ask >>>me, that's a bit of a kluge, and without Mapscript, all I could do to >>>improve on that would be to take out the C++ program and have the map >>>file generated from within the ASP.NET program itself. Can you think of >>>a better way to accomplish the same task? >>> >>>Mike >>>Abe Gillespie wrote: >>> >>> >>> >>>>Placing the depended-on DLLs into the bin dir will do nothing. I >>>>assume you're on a windows box. Therefore the easiest way to take >>>>care of this is by placing all the DLLs (except for map_script) into >>>>\system32 where is the system windows directory >>>>(c:\winnt, c:\windows, etc.). >>>> >>>>With that said, you're entering a world of pain by using C# map_script >>>>in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>>combined with ASP.NET's supremely weird threading model (e.g. virtual >>>>threads), you're going to encounter a plethora of problems. This is >>>>why you almost never see MapServer + ASP.NET discussion threads. >>>> >>>>To get more info, search the archives. You should find ten or so >>>>messages about this topic. >>>> >>>>-Abe >>>> >>>>On 8/18/05, Mike Boos wrote: >>>> >>>> >>>> >>>> >>>>>Hello >>>>> >>>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>>>>server. I compiled the 4.6.0 version of MapServer and have placed what I >>>>>believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin >>>>>directory on my server. It is appears to be finding >>>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or one >>>>>of its dependencies. I am seeing the following error message: >>>>> >>>>> >>>>> Server Error in '/' Application. >>>>> >>>>> >>>>> /Unable to load DLL (mapscript)./ >>>>> >>>>>* Description: *An unhandled exception occurred during the execution of >>>>>the current web request. Please review the stack trace for more >>>>>information about the error and where it originated in the code. >>>>> >>>>>* Exception Details: *System.DllNotFoundException: Unable to load DLL >>>>>(mapscript). >>>>> >>>>>Am I missing a dependency? Or do I need to set some configuration option >>>>>or place the files elsewhere? >>>>> >>>>>Thanks! >>>>>Mike Boos >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >> >> >> >> >> From robert.g.brundage at US.ARMY.MIL Fri Aug 19 16:07:40 2005 From: robert.g.brundage at US.ARMY.MIL (Brundage, Robert G) Date: Fri Feb 8 15:07:56 2008 Subject: Python mapscript Message-ID: Hello: I am new Mapserver and following along in the 'Web Mapping Illustrated' book by Tyler Mitchell. I cannot get the basic python script to run. Import mapscript mapfile = "Bob.map" mapobect = mapscript.mapObj(mapfile) The above code gives an error: AttributeError: 'module' object has not attribute 'mapObj'. I am using Python Active build 245 Robert Brundage GIS Coordinator Department Public Works Fort Campbell, KY PH: 270-798-9571 FAX: 270-798-2232 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050819/1cd82841/attachment.html From szekeres.tamas at FREEMAIL.HU Fri Aug 19 16:36:24 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:56 2008 Subject: Handling multiple maps hierarchically Message-ID: Is there any way to join multiple maps in one map. In my case I have a map of the country and a large number of maps (~400) of the cities and villages. It would be desirable if the proper map could be drawn over the map of the country if the map is zoomed to the location of the city or village. This should be extended to more levels in hierarchy, eg. using a map for the whole continent and ensuring to draw the map of the country over the map of the continent after zooming to the appropriate area. I think it would give a solution if a map could be drawn as a raster layer in other map, and a tileindex file could contain the .map files for the given locations. Any suggestions would be appreciated, Tamas Szekeres From mboos at AUGSIGNALS.COM Fri Aug 19 16:58:00 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: Message-ID: Thank you for that advice! I ran filemon and discovered that it was trying (unsuccessfully) to find libcurl.dll - which somehow didn't show up in my dependency tracking tool. It's now in my system path. I'm now running into new trouble. When I try to create a mapObj with "mapObj m_obj = new mapObj(mapfile);" I get the following error: /Object reference not set to an instance of an object./ * Description: *An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. * Exception Details: *System.NullReferenceException: Object reference not set to an instance of an object. Any suggestions? Mike Tamas Szekeres wrote: >Have you tried SysInternals's filemon or a similar program to monitor the >expected location of theese files? > > > >On Fri, 19 Aug 2005 13:23:38 -0400, Mike Boos wrote: > > > >>mapscript_csharp.dll is present in the bin directory. All the others are >>in system32. gdal12.dll is in both as I'm somehow invoking a function >> >> >>from it from elsewhere and not having the slightest bit of trouble with > > >>that part (I'm using a direct DllImport attribute). So maybe I will have >>to try one of the alternatives. Oh well. >> >>Mike >> >>Abe Gillespie wrote: >> >> >> >>>Did you move mapscript.dll to system32 as well? The only DLL that >>>should be in your bin dir is mapscript_csharp.dll. >>> >>>Suggestions: >>>1. Write the mapfile by hand with the file streaming objects? >>>2. Wrap the MapServer CGI executable with ASP.NET (I think someone >>>did just this some time ago). >>>3. If this is all you're doing, you *might* be able to get away with >>>it in ASP.NET. See if there's a way to protect a section of ASP.NET >>>code with a semaphore or similar construct. Is there something that >>>protects in the virtual thread environment? >>> >>>-Abe >>> >>>On 8/19/05, Mike Boos wrote: >>> >>> >>> >>> >>>>I tried moving the dlls to the system32 directory, but that doesn't have >>>>any effect (am I missing any other dependencies?) >>>> >>>>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest >>>>of the site relies upon. I'm trying to improve the present setup which >>>>involves sending a request to a C++ CGI program which writes a map file >>>>to the hard disk and forwards the request to mapserv.exe. If you'd ask >>>>me, that's a bit of a kluge, and without Mapscript, all I could do to >>>>improve on that would be to take out the C++ program and have the map >>>>file generated from within the ASP.NET program itself. Can you think of >>>>a better way to accomplish the same task? >>>> >>>>Mike >>>>Abe Gillespie wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Placing the depended-on DLLs into the bin dir will do nothing. I >>>>>assume you're on a windows box. Therefore the easiest way to take >>>>>care of this is by placing all the DLLs (except for map_script) into >>>>>\system32 where is the system windows directory >>>>>(c:\winnt, c:\windows, etc.). >>>>> >>>>>With that said, you're entering a world of pain by using C# map_script >>>>>in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>>>combined with ASP.NET's supremely weird threading model (e.g. virtual >>>>>threads), you're going to encounter a plethora of problems. This is >>>>>why you almost never see MapServer + ASP.NET discussion threads. >>>>> >>>>>To get more info, search the archives. You should find ten or so >>>>>messages about this topic. >>>>> >>>>>-Abe >>>>> >>>>>On 8/18/05, Mike Boos wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello >>>>>> >>>>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>>>>>server. I compiled the 4.6.0 version of MapServer and have placed >>>>>> >>>>>> >what I > > >>>>>>believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin >>>>>>directory on my server. It is appears to be finding >>>>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or >>>>>> >>>>>> >one > > >>>>>>of its dependencies. I am seeing the following error message: >>>>>> >>>>>> >>>>>>Server Error in '/' Application. >>>>>> >>>>>> >>>>>> /Unable to load DLL (mapscript)./ >>>>>> >>>>>>* Description: *An unhandled exception occurred during the execution >>>>>> >>>>>> >of > > >>>>>>the current web request. Please review the stack trace for more >>>>>>information about the error and where it originated in the code. >>>>>> >>>>>>* Exception Details: *System.DllNotFoundException: Unable to load DLL >>>>>>(mapscript). >>>>>> >>>>>>Am I missing a dependency? Or do I need to set some configuration >>>>>> >>>>>> >option > > >>>>>>or place the files elsewhere? >>>>>> >>>>>>Thanks! >>>>>>Mike Boos >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >>> >>> >>> > > > > > From szekeres.tamas at FREEMAIL.HU Fri Aug 19 19:40:03 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL Message-ID: Are you sure this error happens at the row you have mentioned? It seems that you are using an object instance without calling "new" previously. However Mapserver errors will result in an exception passed back through the SWIG interface. You should try to insantiate mapObj in a Windows test application. The improper security context of aspnet_wp may also be a problem. Tamas On Fri, 19 Aug 2005 16:58:00 -0400, Mike Boos wrote: >Thank you for that advice! I ran filemon and discovered that it was >trying (unsuccessfully) to find libcurl.dll - which somehow didn't show >up in my dependency tracking tool. It's now in my system path. > >I'm now running into new trouble. When I try to create a mapObj with >"mapObj m_obj = new mapObj(mapfile);" I get the following error: > > > /Object reference not set to an instance of an object./ > >* Description: *An unhandled exception occurred during the execution of >the current web request. Please review the stack trace for more >information about the error and where it originated in the code. > >* Exception Details: *System.NullReferenceException: Object reference >not set to an instance of an object. > >Any suggestions? >Mike > >Tamas Szekeres wrote: > >>Have you tried SysInternals's filemon or a similar program to monitor the >>expected location of theese files? >> >> >> >>On Fri, 19 Aug 2005 13:23:38 -0400, Mike Boos wrote: >> >> >> >>>mapscript_csharp.dll is present in the bin directory. All the others are >>>in system32. gdal12.dll is in both as I'm somehow invoking a function >>> >>> >>>from it from elsewhere and not having the slightest bit of trouble with >> >> >>>that part (I'm using a direct DllImport attribute). So maybe I will have >>>to try one of the alternatives. Oh well. >>> >>>Mike >>> >>>Abe Gillespie wrote: >>> >>> >>> >>>>Did you move mapscript.dll to system32 as well? The only DLL that >>>>should be in your bin dir is mapscript_csharp.dll. >>>> >>>>Suggestions: >>>>1. Write the mapfile by hand with the file streaming objects? >>>>2. Wrap the MapServer CGI executable with ASP.NET (I think someone >>>>did just this some time ago). >>>>3. If this is all you're doing, you *might* be able to get away with >>>>it in ASP.NET. See if there's a way to protect a section of ASP.NET >>>>code with a semaphore or similar construct. Is there something that >>>>protects in the virtual thread environment? >>>> >>>>-Abe >>>> >>>>On 8/19/05, Mike Boos wrote: >>>> >>>> >>>> >>>> >>>>>I tried moving the dlls to the system32 directory, but that doesn't have >>>>>any effect (am I missing any other dependencies?) >>>>> >>>>>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest >>>>>of the site relies upon. I'm trying to improve the present setup which >>>>>involves sending a request to a C++ CGI program which writes a map file >>>>>to the hard disk and forwards the request to mapserv.exe. If you'd ask >>>>>me, that's a bit of a kluge, and without Mapscript, all I could do to >>>>>improve on that would be to take out the C++ program and have the map >>>>>file generated from within the ASP.NET program itself. Can you think of >>>>>a better way to accomplish the same task? >>>>> >>>>>Mike >>>>>Abe Gillespie wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Placing the depended-on DLLs into the bin dir will do nothing. I >>>>>>assume you're on a windows box. Therefore the easiest way to take >>>>>>care of this is by placing all the DLLs (except for map_script) into >>>>>>\system32 where is the system windows directory >>>>>>(c:\winnt, c:\windows, etc.). >>>>>> >>>>>>With that said, you're entering a world of pain by using C# map_script >>>>>>in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>>>>combined with ASP.NET's supremely weird threading model (e.g. virtual >>>>>>threads), you're going to encounter a plethora of problems. This is >>>>>>why you almost never see MapServer + ASP.NET discussion threads. >>>>>> >>>>>>To get more info, search the archives. You should find ten or so >>>>>>messages about this topic. >>>>>> >>>>>>-Abe >>>>>> >>>>>>On 8/18/05, Mike Boos wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Hello >>>>>>> >>>>>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>>>>>>server. I compiled the 4.6.0 version of MapServer and have placed >>>>>>> >>>>>>> >>what I >> >> >>>>>>>believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the bin >>>>>>>directory on my server. It is appears to be finding >>>>>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or >>>>>>> >>>>>>> >>one >> >> >>>>>>>of its dependencies. I am seeing the following error message: >>>>>>> >>>>>>> >>>>>>>Server Error in '/' Application. >>>>>>> >>>>>>> >>>>>>> /Unable to load DLL (mapscript)./ >>>>>>> >>>>>>>* Description: *An unhandled exception occurred during the execution >>>>>>> >>>>>>> >>of >> >> >>>>>>>the current web request. Please review the stack trace for more >>>>>>>information about the error and where it originated in the code. >>>>>>> >>>>>>>* Exception Details: *System.DllNotFoundException: Unable to load DLL >>>>>>>(mapscript). >>>>>>> >>>>>>>Am I missing a dependency? Or do I need to set some configuration >>>>>>> >>>>>>> >>option >> >> >>>>>>>or place the files elsewhere? >>>>>>> >>>>>>>Thanks! >>>>>>>Mike Boos >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >> >> >> >> >> From sgillies at FRII.COM Sat Aug 20 10:03:37 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri Feb 8 15:07:56 2008 Subject: Python mapscript In-Reply-To: Message-ID: On Aug 19, 2005, at 2:07 PM, Brundage, Robert G wrote: > This message is in MIME format. Since your mail reader does not > understand > this format, some or all of this message may not be legible. > > ------_=_NextPart_001_01C5A4F9.A6F92066 > Content-Type: text/plain > > Hello: > I am new Mapserver and following along in the 'Web Mapping > Illustrated' book > by Tyler Mitchell. > > I cannot get the basic python script to run. > > Import mapscript > mapfile = "Bob.map" > mapobect = mapscript.mapObj(mapfile) > > The above code gives an error: AttributeError: 'module' object has > not > attribute 'mapObj'. > > I am using Python Active build 245 > mapscript is not a standard Python module, and is not included with ActivePython. You will need to build it, or download a binary. Frank Warmerdam's FWTools contains mapscript for Python 2.3 http://fwtools.maptools.org and Howard Butler is doing something similar for Python 2.4 http://hobu.biz/software/hobutools cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From jmoehle at WEB.DE Sun Aug 21 07:52:52 2005 From: jmoehle at WEB.DE (=?ISO-8859-1?Q?Jan_M=F6hle?=) Date: Fri Feb 8 15:07:56 2008 Subject: gmap75 demo - query problem Message-ID: Hi all, i have a problem with the gmap75-demo. I`m using the original files, i only changed the map-file for displaying my data. Everything works fine, but when i`m zooming in and then query a point i get all the results, but after the refresh of the site my map-image is showing the full extent and doesn`t keep the extent from the former zooming. Does sombody has a hint for solving that kind of problem? When i switch to the origin map-file (gmap75.map) everything works fine. thanks Jan From sergiodlopez at YAHOO.COM Sun Aug 21 17:36:57 2005 From: sergiodlopez at YAHOO.COM (Sergio Lopez) Date: Fri Feb 8 15:07:56 2008 Subject: phpmapscript - examples on queries Message-ID: I?m new to mapserver, and i?m trying to figure out something as simple as making a simple query, using a click on the map and showing some layers attributes, but I couldn?t find some simple example in phpmapscript on how to do this. I?ve managed to view the map, make zoom in and out and pan, get the click point in image and geographic coordinates, etc, but I couldn?t solve how to identify the feature I clicked on, and how to view its attributes. Can anyone help me guiding me to some examples? Thanks in advance. Sergio. From lists at WEBMAPIT.COM.BR Sun Aug 21 20:45:11 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Fri Feb 8 15:07:56 2008 Subject: a mapserver framework for flexibility Message-ID: Hi folks, I'm currently looking for a MapServer *framework* to build MapScript applications inside another application : MamboServer. Just to clarify, MamboServer ( www.mamboserver.com ) is a free CMS software written in PHP and have a lot of great features. Now, we want to integrate MapServer inside Mambo as a mambo component. I was thinking to use Chameleon as preffered mapping framework, but is my suggestion right? Can I do it? Or chameleon can just work alone? I mean, can I use Chameleon widgets to load MapFiles, draw maps but inside another PHP application? ( because, we need to validate user rights, etc...) another idea I was thinking about is to develop OGC maps, to be used with desktop applications (JUMP,uDig,ArcGIS OGC,...) and also a set of "mirror" maps using NON-ogc access , to be used by PHP/MapScript applications. I was thinking in doing things this way to get some "speed" on web applications. But, is this really necessary? Or OGC maps should be enough to feed web MapServer clients and desktop clients? thanks in advance. best regards. -- Eduardo Patto Kanegae From bill at BINKO.NET Sun Aug 21 23:20:27 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri Feb 8 15:07:56 2008 Subject: Generating a table & map sharing identifiers Message-ID: Hi everyone, I have a problem that I'd like some feedback on. I'm certain it can be done, but would like to know how others have solved it in the past. I need to generate several tables with "nearest X items" to a location. For example, "Nearest 5 Schools" to a location. I then want to generate a map showing the area that includes the X items and show the items on the map using the id's from the table. Here's an example: Table: Map ID |School Name |Students | Teachers -------------------------------------------- (A) |Main St. Elem. |100 | 10 (B) |Pinewood Elem. |2500 | 20 (C) |Forrest Lakes |800 | 20 Map: ------------------ | (A) | | (B) | | (C) | ------------------ So, what approaches are people using for this when using PostGIS and Mapserver? I will probably use PHP/Mapscript as that's what I'm most familiar with. I have two approaches that I think are doable... 1) I use PHP/Mapscript to make the base map 2) I connect to PostGIS and grab the data including the points/shapes I'm interested in (OGC WKT format?) 3) I use PHP/Mapscript to create a layer and add the points to the base map OR 1) I connect to PostGIS and create a temporary sequence (one that is local to the connection) 2) I select the data with shapes and attributes + the sequence into a temporary table (one that is local to the connection) 3) I have PHP/Mapscript draw the map using that temporary table 4) I use the temporary table to generate the HTML I'm pretty sure everyone will tell me to use approach #1, but of course I've started #2 :) I think I'm having problems because PHP/Mapscript opens its own connection to Postgresql, so it won't see my temporary table. Does anyone have any advice? Bill From tylermitchell at SHAW.CA Sun Aug 21 23:23:30 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:56 2008 Subject: Python mapscript In-Reply-To: Message-ID: On August 19, 2005 01:07 pm, Brundage, Robert G wrote: > Hello: > I am new Mapserver and following along in the 'Web Mapping Illustrated' > book by Tyler Mitchell. > > I cannot get the basic python script to run. > > Import mapscript > mapfile = "Bob.map" > mapobect = mapscript.mapObj(mapfile) > > The above code gives an error: AttributeError: 'module' object has not > attribute 'mapObj'. > > I am using Python Active build 245 Hi Robert, Sorry to hear you are having trouble. I assume you are running this as a script and not interactively in the Python shell. Further to Sean's note, how did you install MapScript? Did you use one of the MapScript binary sources listed on page 277? If so, please let us know. All the best, Tyler From leopold.schefcik at MULTIMEDIAPLAN.AT Mon Aug 22 05:54:38 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:56 2008 Subject: Layer on/off - Legend line/polygon In-Reply-To: Message-ID: Hi list, 2 questions: 1. Below there are the definitions of two layers. I want the second one to be shown at start, the first not. So I put once STATUS OFF and once STATUS ON. But both layers are shown. 2. In the legend there are the polygon layers shown correctly (if they have a fill color). But the TYPE LINE layers-signature aren't shown in the legend. Why?3 thx Leopold the user-interface: http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=centrope_test&n ame=centrope_test_user&password=test -------------------------------------- the layers: LAYER NAME "gewaesser_noe" STATUS OFF DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Gewaesser_Noe" "DESCRIPTION" "Wasser" "WMS_SRS" "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467" END CLASS NAME "gewaesser_noe" STYLE SYMBOL 0 COLOR 199 195 240 OUTLINECOLOR 106 105 199 SIZE 1 MINSIZE 1 MAXSIZE 100 END STYLE SYMBOL 0 COLOR 0 0 255 BACKGROUNDCOLOR 251 148 112 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END LAYER NAME "flora_fauna_habitat" STATUS ON DATA "AT_NO_LEGAL_NATUR_NATURA2000FFH_2003" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Flora_Fauna_Habitat" "DESCRIPTION" "Natura_2000_Gebiete" "WMS_SRS" "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467" END CLASS NAME "flora_fauna_habitat" STYLE SYMBOL 0 COLOR 0 209 0 BACKGROUNDCOLOR 251 148 112 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END From adams at TERRESTRIS.DE Mon Aug 22 06:41:07 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri Feb 8 15:07:56 2008 Subject: Layer on/off - Legend line/polygon In-Reply-To: Message-ID: Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote: > Hi list, > > 2 questions: > > 1. Below there are the definitions of two layers. I want the second one to > be shown at start, the first not. > So I put once STATUS OFF and once STATUS ON. But both layers are shown. > > 2. In the legend there are the polygon layers shown correctly (if they have > a fill color). But the TYPE LINE layers-signature aren't shown in the > legend. Why?3 > > thx Leopold > > > the user-interface: > http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=centrope_test&n > ame=centrope_test_user&password=test > > -------------------------------------- > the layers: > > LAYER > NAME "gewaesser_noe" > STATUS OFF > DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000" > TYPE LINE > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > METADATA > "wms_title" "Gewaesser_Noe" > "DESCRIPTION" "Wasser" > "WMS_SRS" "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467" > END > CLASS > NAME "gewaesser_noe" > STYLE > SYMBOL 0 > COLOR 199 195 240 > OUTLINECOLOR 106 105 199 > SIZE 1 > MINSIZE 1 > MAXSIZE 100 > END > STYLE > SYMBOL 0 > COLOR 0 0 255 > BACKGROUNDCOLOR 251 148 112 > SIZE 1 > MINSIZE 1 > MAXSIZE 100 > END > END > END > LAYER > NAME "flora_fauna_habitat" > STATUS ON > DATA "AT_NO_LEGAL_NATUR_NATURA2000FFH_2003" > TYPE POLYGON > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > METADATA > "wms_title" "Flora_Fauna_Habitat" > "DESCRIPTION" "Natura_2000_Gebiete" > "WMS_SRS" "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467" > END > CLASS > NAME "flora_fauna_habitat" > STYLE > SYMBOL 0 > COLOR 0 209 0 > BACKGROUNDCOLOR 251 148 112 > SIZE 1 > MINSIZE 1 > MAXSIZE 100 > END > END > END Leopold, use the mapbender module "Edit GUI WMS" to disable/enable the layer initially. Just set a click to "sel_default" to enable ;-) Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info@terrestris.de * http://www.terrestris.de From lsnagu at YAHOO.COM Mon Aug 22 08:06:57 2005 From: lsnagu at YAHOO.COM (vdharan) Date: Fri Feb 8 15:07:56 2008 Subject: Projection Need Help Message-ID: Hi Iam using MapServer (php mapscript)for Online vehicle tracking system.Iam also using rosa applet to show online movement of multiple vehicles on the map. The application is going to be used in Midddle East. While designing the system I have used some sample shape files for that region with lat long projection. Now are trying to get shape files with all road level details. The map vendor has got maps with WGS84 UTM and WGS84 DLTM(Dubai Local Transverse Mercator) projections. I dont know which projection to select for my application. I have used lat long projection and developed the application.I need to pinpoint the vehicle location based lat & long. If I go for UTM will that involve changs in the mapping codes?. Iam from electronics background, I could not understand much on projection. Please Help me. Best Regards, vdharan From David.Fawcett at STATE.MN.US Mon Aug 22 09:47:51 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:56 2008 Subject: a mapserver framework for flexibility Message-ID: Eduardo, I am sure that Sean or Howard may jump in, but this sounds similar to some of the functionality in Plone. Not exactly, but sort of... I don't know if it would help you with your project, but you may want to take a look at it. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Eduardo Patto Kanegae Sent: Sunday, August 21, 2005 7:45 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] a mapserver framework for flexibility Hi folks, I'm currently looking for a MapServer *framework* to build MapScript applications inside another application : MamboServer. Just to clarify, MamboServer ( www.mamboserver.com ) is a free CMS software written in PHP and have a lot of great features. Now, we want to integrate MapServer inside Mambo as a mambo component. I was thinking to use Chameleon as preffered mapping framework, but is my suggestion right? Can I do it? Or chameleon can just work alone? I mean, can I use Chameleon widgets to load MapFiles, draw maps but inside another PHP application? ( because, we need to validate user rights, etc...) another idea I was thinking about is to develop OGC maps, to be used with desktop applications (JUMP,uDig,ArcGIS OGC,...) and also a set of "mirror" maps using NON-ogc access , to be used by PHP/MapScript applications. I was thinking in doing things this way to get some "speed" on web applications. But, is this really necessary? Or OGC maps should be enough to feed web MapServer clients and desktop clients? thanks in advance. best regards. -- Eduardo Patto Kanegae From mboos at AUGSIGNALS.COM Mon Aug 22 10:07:35 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: Message-ID: I am certain the error occurs on that line - I even commented out all the other lines and ran it again to be sure. It is also the very first line in which I use the MapScript interface in the file. I have also tried invoking the MapScript code from a command line app and it runs successfully. Mike Tamas Szekeres wrote: >Are you sure this error happens at the row you have mentioned? It seems >that you are using an object instance without calling "new" previously. >However Mapserver errors will result in an exception passed back through >the SWIG interface. > >You should try to insantiate mapObj in a Windows test application. The >improper security context of aspnet_wp may also be a problem. > >Tamas > > >On Fri, 19 Aug 2005 16:58:00 -0400, Mike Boos wrote: > > > >>Thank you for that advice! I ran filemon and discovered that it was >>trying (unsuccessfully) to find libcurl.dll - which somehow didn't show >>up in my dependency tracking tool. It's now in my system path. >> >>I'm now running into new trouble. When I try to create a mapObj with >>"mapObj m_obj = new mapObj(mapfile);" I get the following error: >> >> >> /Object reference not set to an instance of an object./ >> >>* Description: *An unhandled exception occurred during the execution of >>the current web request. Please review the stack trace for more >>information about the error and where it originated in the code. >> >>* Exception Details: *System.NullReferenceException: Object reference >>not set to an instance of an object. >> >>Any suggestions? >>Mike >> >>Tamas Szekeres wrote: >> >> >> >>>Have you tried SysInternals's filemon or a similar program to monitor the >>>expected location of theese files? >>> >>> >>> >>>On Fri, 19 Aug 2005 13:23:38 -0400, Mike Boos >>> >>> >wrote: > > >>> >>> >>> >>>>mapscript_csharp.dll is present in the bin directory. All the others are >>>>in system32. gdal12.dll is in both as I'm somehow invoking a function >>>> >>>> >>>> >>>> >>>>from it from elsewhere and not having the slightest bit of trouble with >>> >>> >>> >>> >>>>that part (I'm using a direct DllImport attribute). So maybe I will have >>>>to try one of the alternatives. Oh well. >>>> >>>>Mike >>>> >>>>Abe Gillespie wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Did you move mapscript.dll to system32 as well? The only DLL that >>>>>should be in your bin dir is mapscript_csharp.dll. >>>>> >>>>>Suggestions: >>>>>1. Write the mapfile by hand with the file streaming objects? >>>>>2. Wrap the MapServer CGI executable with ASP.NET (I think someone >>>>>did just this some time ago). >>>>>3. If this is all you're doing, you *might* be able to get away with >>>>>it in ASP.NET. See if there's a way to protect a section of ASP.NET >>>>>code with a semaphore or similar construct. Is there something that >>>>>protects in the virtual thread environment? >>>>> >>>>>-Abe >>>>> >>>>>On 8/19/05, Mike Boos wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>I tried moving the dlls to the system32 directory, but that doesn't >>>>>> >>>>>> >have > > >>>>>>any effect (am I missing any other dependencies?) >>>>>> >>>>>>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest >>>>>>of the site relies upon. I'm trying to improve the present setup which >>>>>>involves sending a request to a C++ CGI program which writes a map >>>>>> >>>>>> >file > > >>>>>>to the hard disk and forwards the request to mapserv.exe. If you'd ask >>>>>>me, that's a bit of a kluge, and without Mapscript, all I could do to >>>>>>improve on that would be to take out the C++ program and have the map >>>>>>file generated from within the ASP.NET program itself. Can you think >>>>>> >>>>>> >of > > >>>>>>a better way to accomplish the same task? >>>>>> >>>>>>Mike >>>>>>Abe Gillespie wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Placing the depended-on DLLs into the bin dir will do nothing. I >>>>>>>assume you're on a windows box. Therefore the easiest way to take >>>>>>>care of this is by placing all the DLLs (except for map_script) into >>>>>>>\system32 where is the system windows directory >>>>>>>(c:\winnt, c:\windows, etc.). >>>>>>> >>>>>>>With that said, you're entering a world of pain by using C# >>>>>>> >>>>>>> >map_script > > >>>>>>>in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>>>>>combined with ASP.NET's supremely weird threading model (e.g. virtual >>>>>>>threads), you're going to encounter a plethora of problems. This is >>>>>>>why you almost never see MapServer + ASP.NET discussion threads. >>>>>>> >>>>>>>To get more info, search the archives. You should find ten or so >>>>>>>messages about this topic. >>>>>>> >>>>>>>-Abe >>>>>>> >>>>>>>On 8/18/05, Mike Boos wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>Hello >>>>>>>> >>>>>>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>>>>>>>server. I compiled the 4.6.0 version of MapServer and have placed >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>what I >>> >>> >>> >>> >>>>>>>>believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>>>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the >>>>>>>> >>>>>>>> >bin > > >>>>>>>>directory on my server. It is appears to be finding >>>>>>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>one >>> >>> >>> >>> >>>>>>>>of its dependencies. I am seeing the following error message: >>>>>>>> >>>>>>>> >>>>>>>>Server Error in '/' Application. >>>>>>>> >>>>>>>> >>>>>>>> /Unable to load DLL (mapscript)./ >>>>>>>> >>>>>>>>* Description: *An unhandled exception occurred during the execution >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>of >>> >>> >>> >>> >>>>>>>>the current web request. Please review the stack trace for more >>>>>>>>information about the error and where it originated in the code. >>>>>>>> >>>>>>>>* Exception Details: *System.DllNotFoundException: Unable to load >>>>>>>> >>>>>>>> >DLL > > >>>>>>>>(mapscript). >>>>>>>> >>>>>>>>Am I missing a dependency? Or do I need to set some configuration >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>option >>> >>> >>> >>> >>>>>>>>or place the files elsewhere? >>>>>>>> >>>>>>>>Thanks! >>>>>>>>Mike Boos >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>> >>> >>> >>> >>> > > > > > From jdport at VERITIME.COM Mon Aug 22 10:23:30 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri Feb 8 15:07:56 2008 Subject: US overview Message-ID: I didn't see any responses to Jerl's question, but I'm actually having the same problem. I like to use a thick line to indicate state borders, but I don't like the thick line along the coast of the country.. especially in the Rhode Island area where there are a lot of small bays and inlets and such, half the state gets obscured by the border line :-) Is there any solution to this? I have seen maps that didn't show state boundries along the coastline before , but I don't know how it was done. -Jeff ----- Original Message ----- From: "Jerl Simpson" To: Sent: Friday, August 19, 2005 11:33 AM Subject: [UMN_MAPSERVER-USERS] US overview Hello, I'm looking for a shapefile that outlines each state, but does not have an outline at the shoreline. This way I can put up a dotted line to show state borders, but not have that line running around the oceans. Or if someone could tell me how to go about doing this I would greatly appreciate it. Thanks, Jerl From nhv at CAPE.COM Mon Aug 22 10:49:12 2005 From: nhv at CAPE.COM (Norman Vine) Date: Fri Feb 8 15:07:56 2008 Subject: US overview In-Reply-To: <094e01c5a725$23f8bea0$5ff2fbd0@solo> Message-ID: This question comes up a lot and my usually advice is ""One can utilize the fact that the line segments for the coastline are probably only referenced once whereas the internal boundaries are referenced twice and thin a dataset appropriately"" or just use this shapefile where this has been done for you :-) http://coastalmap.marine.usgs.gov/GISdata/basemaps/boundaries/state_bounds/state_bounds.htm Cheers Norman > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On > Behalf Of Jeff Portwine > Sent: Monday, August 22, 2005 10:24 AM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] US overview > > > I didn't see any responses to Jerl's question, but I'm actually having the > same problem. I like to use a thick line to indicate state borders, but I > don't like the thick line along the coast of the country.. especially in the > Rhode Island area where there are a lot of small bays and inlets and such, > half the state gets obscured by the border line :-) > > Is there any solution to this? I have seen maps that didn't show state > boundries along the coastline before , but I don't know how it was done. > > -Jeff > > ----- Original Message ----- > From: "Jerl Simpson" > To: > Sent: Friday, August 19, 2005 11:33 AM > Subject: [UMN_MAPSERVER-USERS] US overview > > > Hello, > > I'm looking for a shapefile that outlines each state, but does not > have an outline at the shoreline. This way I can put up a dotted line > to show state borders, but not have that line running around the > oceans. > Or if someone could tell me how to go about doing this I would greatly > appreciate it. > > Thanks, > > Jerl > From stevem at SPATIALMAPPING.COM Mon Aug 22 11:21:43 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Fri Feb 8 15:07:56 2008 Subject: Handling multiple maps hierarchically Message-ID: Tamas: MapServer has both WMS server and client capabilities. Therefore, if you configure your maps as WMS services, you can create an "overview" map that composes those services as raster layers, much as you suggest. The idea of having a tileindex of maps won't work though, since tileindexes only work for local rasters or shapefiles (AFAIK). Hope this helps, -SM -- On Fri, 19 Aug 2005 15:36:24 -0500, Tamas Szekeres wrote: >Is there any way to join multiple maps in one map. >In my case I have a map of the country and a large number of maps (~400) >of the cities and villages. It would be desirable if the proper map could >be drawn over the map of the country if the map is zoomed to the location >of the city or village. This should be extended to more levels in >hierarchy, eg. using a map for the whole continent and ensuring to draw >the map of the country over the map of the continent after zooming to the >appropriate area. > >I think it would give a solution if a map could be drawn as a raster layer >in other map, and a tileindex file could contain the .map files for the >given locations. > >Any suggestions would be appreciated, > > >Tamas Szekeres From sgillies at FRII.COM Mon Aug 22 11:23:17 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri Feb 8 15:07:56 2008 Subject: Python mapscript In-Reply-To: Message-ID: Robert, Howard is packaging the Python modules differently, and I approve of his choice. Try the following: from mapscript import mapscript mapfile = "Bob.map" map_bob = mapscript.mapObj(mapfile) Sean On Aug 22, 2005, at 8:57 AM, Brundage, Robert G wrote: > Sean: > I installed the HoBu Python. > > I still get the same error. > > The whole error is: > > Traceback (most recent call last): > File > "C:\Python24\Lib\site-packages\pythonwin\framework\scriptutils.py", > line 310, in RunScript > exec codeObject in__main__.__dict__ > File "C:\ms4w\Apache\htdocs\map1.py", line 11 in ? > Mapobject - mapscript.mapObj(mapfile) > AttributeError: 'module' object has no attribute 'mapObj' > > Below is mapfile > >> Import mapscript >> mapfile = "Bob.map" >> mapobect = mapscript.mapObj(mapfile) >> > > > Robert Brundage > GIS Coordinator > Department Public Works > Fort Campbell, KY > PH: 270-798-9571 > FAX: 270-798-2232 > > > > -----Original Message----- > From: Sean Gillies [mailto:sgillies@frii.com] > Sent: Saturday, August 20, 2005 9:04 AM > To: Brundage, Robert G > Cc: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: Re: Python mapscript > > > On Aug 19, 2005, at 2:07 PM, Brundage, Robert G wrote: > >> This message is in MIME format. Since your mail reader does not >> understand >> this format, some or all of this message may not be legible. >> >> ------_=_NextPart_001_01C5A4F9.A6F92066 >> Content-Type: text/plain >> >> Hello: >> I am new Mapserver and following along in the 'Web Mapping >> Illustrated' book >> by Tyler Mitchell. >> >> I cannot get the basic python script to run. >> >> Import mapscript >> mapfile = "Bob.map" >> mapobect = mapscript.mapObj(mapfile) >> >> The above code gives an error: AttributeError: 'module' object has >> not >> attribute 'mapObj'. >> >> I am using Python Active build 245 >> > > mapscript is not a standard Python module, and is not included with > ActivePython. You will need to build it, or download a binary. Frank > Warmerdam's FWTools contains mapscript for Python 2.3 > > http://fwtools.maptools.org > > and Howard Butler is doing something similar for Python 2.4 > > http://hobu.biz/software/hobutools > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > From ed at TOPOZONE.COM Mon Aug 22 11:38:21 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri Feb 8 15:07:56 2008 Subject: Projection Need Help Message-ID: Vdharan - Use of the lat/lon projection is, IMHO, generally a very bad idea. It can create important distortion and makes it impossible to do something as simple as put a meaningful scalebar on the map. The UTM and DLTM projections are both Transverse Mercator projections, with similar properties. In your case, you would have data in UTM Zone 39, with a central meridian of 57 degrees East. The DLTM is exactly the same projection, with the central meridian at 55 degrees 20 minutes East. This is a very small difference, and most non-technical users will never notice the difference. The choice of projection depends on the area you need to cover. If you are only going to be mapping Dubai, or only the UAE, then I'd recommend you choose the DLTM projection. That would be the standard projection in use for official Dubai or UAE data sets, and might make it easier to integrate future data from those sources. If, however, you intend to cover a larger area, the UTM would be a better choice. The DLTM projection would not be used outside of the UAE, and if you're covering several independent countries there's no particular reason to choose one "national" projection over another. A "regional" projection such as UTM would probably be a better choice. There is really very little practical difference between these two projections; it's just a matter of where your application will be used. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of vdharan Sent: Monday, August 22, 2005 8:07 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Projection Need Help Hi Iam using MapServer (php mapscript)for Online vehicle tracking system.Iam also using rosa applet to show online movement of multiple vehicles on the map. The application is going to be used in Midddle East. While designing the system I have used some sample shape files for that region with lat long projection. Now are trying to get shape files with all road level details. The map vendor has got maps with WGS84 UTM and WGS84 DLTM(Dubai Local Transverse Mercator) projections. I dont know which projection to select for my application. I have used lat long projection and developed the application.I need to pinpoint the vehicle location based lat & long. If I go for UTM will that involve changs in the mapping codes?. Iam from electronics background, I could not understand much on projection. Please Help me. Best Regards, vdharan From tim at COMMENSPACE.ORG Mon Aug 22 11:47:55 2005 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Fri Feb 8 15:07:56 2008 Subject: phpmapscript - examples on queries Message-ID: > I?m new to mapserver, and i?m trying to figure out something > as simple as making a simple query, using a click on the map > and showing some layers attributes, but I couldn?t find some > simple example in phpmapscript on how to do this. You should be able to start with something like: // assuming you have a point ($mapX, $mapY) $queryPoint = ms_newpointobj(); $queryPoint->setxy($mapX, $mapY); // assuming you want to query $queryLayer and return a single result if(@$queryLayer->queryByPoint($queryPoint, MS_SINGLE, -1) == MS_FAILURE) { exit("The point you selected did not intersect any features."); } // get the shape that was intersected $aQueryResult = $queryLayer->getResult(0); $aShapeIndex = $aQueryResult->shapeindex; $aTileIndex = $aQueryResult->tileindex; if($queryLayer->open() == MS_FAILURE) { exit("Can't open ".$queryLayer->name); } $aShape = $queryLayer->getShape($aTileIndex, $aShapeIndex); $queryLayer->close(); // get some value from a field named $fieldName $aValue = $aShape->values[$fieldName]; Tim Schaub www.commenspace.org From stigmata_blackangel at YAHOO.COM Mon Aug 22 12:16:48 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Fri Feb 8 15:07:56 2008 Subject: WMS and Google Maps? Message-ID: Someone informed me today that CubeWerx has created an OGC connector for Google Maps. Neat. I was wondering whether there has been any open-source progress towards using Google Maps via WMS, or otherwise within Mapserver? -- Gregor Mosheh System Administrator and Head Programmer HostGIS, GIS Hosting Solutions for the Global Community http://www.hostgis.com/ ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From dylan at IICI.NO-IP.ORG Mon Aug 22 14:59:31 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri Feb 8 15:07:56 2008 Subject: point within polygon Message-ID: Greetings, I am currently looking for a way to test if a point is within a polygon, without using PostGIS. The first method I have tried, and which works but not well, is with a simple comparison within MySQL: point at x,y polygon extent: min_x,min_y,max_x,max_y if x >= min_x and x <= max_x and y >= min_y and y <= max_y then OK however, most of my polygons are not rectangular, and thus many point may seemingly be in multiple polygons when rectangular extents overlap... is there a better way to do this within mapserver, or phpmapscript? or is there a postGIS-like patch for MySQL ? thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From steve.lime at DNR.STATE.MN.US Mon Aug 22 15:41:16 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:56 2008 Subject: point within polygon Message-ID: MapServer has that capability within MapScript. shapeObj's have a contains method that will tell you if a point is contained in a polygon. E.g.: $status = $polygon->contains($point); The behaviour of the MapServer point-in-polygon algorithm is indeterminent if the point lies exactly on the edge of the polygon. The return value is consistent though. I guess the point is that contains really means contains. Steve >>> Dylan Beaudette 08/22/05 1:59 PM >>> Greetings, I am currently looking for a way to test if a point is within a polygon, without using PostGIS. The first method I have tried, and which works but not well, is with a simple comparison within MySQL: point at x,y polygon extent: min_x,min_y,max_x,max_y if x >= min_x and x <= max_x and y >= min_y and y <= max_y then OK however, most of my polygons are not rectangular, and thus many point may seemingly be in multiple polygons when rectangular extents overlap... is there a better way to do this within mapserver, or phpmapscript? or is there a postGIS-like patch for MySQL ? thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From szekeres.tamas at FREEMAIL.HU Mon Aug 22 17:10:36 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:56 2008 Subject: Handling multiple maps hierarchically Message-ID: Dear Steven, Thank you for your suggestions. I haven't work too much with WMS yet, but as far as I know if I have 400 maps (WMS layers), mapserver will start downloading all of the maps as a raster image regardless of that only some of the maps will be drawn at the same time (using proper MAXSCALE settings). Another performance issue is that the high number of maps will appear in the filesystem as temporary image file. With tileindex the filtering of the maps falling out of the display area takes place earlier than drawing of those maps. I think it would be considerable to support drawing raster layers given a .map file as the data source, so tileindex support would come into account automatically. Worthy of note that with the current Mapserver release (4.6.0) there is a minor bug I've run into that the 2.nd WMS layer is created with ambiguous temporary file name, see Bug #1312 Tamas Szekeres On Mon, 22 Aug 2005 10:21:43 -0500, Steven Monai wrote: >Tamas: > >MapServer has both WMS server and client capabilities. Therefore, if you >configure your maps as WMS services, you can create an "overview" map that >composes those services as raster layers, much as you suggest. The idea of >having a tileindex of maps won't work though, since tileindexes only work >for local rasters or shapefiles (AFAIK). > >Hope this helps, >-SM >-- > >On Fri, 19 Aug 2005 15:36:24 -0500, Tamas Szekeres > wrote: > >>Is there any way to join multiple maps in one map. >>In my case I have a map of the country and a large number of maps (~400) >>of the cities and villages. It would be desirable if the proper map could >>be drawn over the map of the country if the map is zoomed to the location >>of the city or village. This should be extended to more levels in >>hierarchy, eg. using a map for the whole continent and ensuring to draw >>the map of the country over the map of the continent after zooming to the >>appropriate area. >> >>I think it would give a solution if a map could be drawn as a raster layer >>in other map, and a tileindex file could contain the .map files for the >>given locations. >> >>Any suggestions would be appreciated, >> >> >>Tamas Szekeres From hfl at HOME.NL Tue Aug 23 03:00:38 2005 From: hfl at HOME.NL (hfl) Date: Fri Feb 8 15:07:56 2008 Subject: use a wfs reponse for gml input Message-ID: Hi List, I have experimented with WFS server en client and wms client for a GML datasource I get a GML from WFS and i can get an WMS image from a GML datasource But how can I define a wfs_client layer as an input for the OGR/GML layer (i'd like also to filter the GML by wfs_filter) I was looking at variants of CONNECTIONTYPE OGR CONNECION "http://server?map=map.map&service=wfs&version=1.0.0&request=getfeature&featuretype=wfs_parks" but nothing i tried worked I assume it can be done. Does anyone know how? Regards, Huub From szekeres.tamas at FREEMAIL.HU Mon Aug 22 18:04:26 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:56 2008 Subject: ASP.NET and mapscript - unable to load DLL Message-ID: Mike, I've tried this code and worked for me: private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here using (mapObj map = new mapObj(@"C:\Maps\MapFiles\mif1.map")) { using(imageObj image = map.draw()) { byte[] img = image.getBytes(); Response.BinaryWrite(img); } } } I suspect you have some kind of security problem in ASP. Tamas Szekeres PS: To make image.getBytes work you should apply a patch described in http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1389 On Mon, 22 Aug 2005 10:07:35 -0400, Mike Boos wrote: >I am certain the error occurs on that line - I even commented out all >the other lines and ran it again to be sure. It is also the very first >line in which I use the MapScript interface in the file. > >I have also tried invoking the MapScript code from a command line app >and it runs successfully. > >Mike > >Tamas Szekeres wrote: > >>Are you sure this error happens at the row you have mentioned? It seems >>that you are using an object instance without calling "new" previously. >>However Mapserver errors will result in an exception passed back through >>the SWIG interface. >> >>You should try to insantiate mapObj in a Windows test application. The >>improper security context of aspnet_wp may also be a problem. >> >>Tamas >> >> >>On Fri, 19 Aug 2005 16:58:00 -0400, Mike Boos wrote: >> >> >> >>>Thank you for that advice! I ran filemon and discovered that it was >>>trying (unsuccessfully) to find libcurl.dll - which somehow didn't show >>>up in my dependency tracking tool. It's now in my system path. >>> >>>I'm now running into new trouble. When I try to create a mapObj with >>>"mapObj m_obj = new mapObj(mapfile);" I get the following error: >>> >>> >>> /Object reference not set to an instance of an object./ >>> >>>* Description: *An unhandled exception occurred during the execution of >>>the current web request. Please review the stack trace for more >>>information about the error and where it originated in the code. >>> >>>* Exception Details: *System.NullReferenceException: Object reference >>>not set to an instance of an object. >>> >>>Any suggestions? >>>Mike >>> >>>Tamas Szekeres wrote: >>> >>> >>> >>>>Have you tried SysInternals's filemon or a similar program to monitor the >>>>expected location of theese files? >>>> >>>> >>>> >>>>On Fri, 19 Aug 2005 13:23:38 -0400, Mike Boos >>>> >>>> >>wrote: >> >> >>>> >>>> >>>> >>>>>mapscript_csharp.dll is present in the bin directory. All the others are >>>>>in system32. gdal12.dll is in both as I'm somehow invoking a function >>>>> >>>>> >>>>> >>>>> >>>>>from it from elsewhere and not having the slightest bit of trouble with >>>> >>>> >>>> >>>> >>>>>that part (I'm using a direct DllImport attribute). So maybe I will have >>>>>to try one of the alternatives. Oh well. >>>>> >>>>>Mike >>>>> >>>>>Abe Gillespie wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Did you move mapscript.dll to system32 as well? The only DLL that >>>>>>should be in your bin dir is mapscript_csharp.dll. >>>>>> >>>>>>Suggestions: >>>>>>1. Write the mapfile by hand with the file streaming objects? >>>>>>2. Wrap the MapServer CGI executable with ASP.NET (I think someone >>>>>>did just this some time ago). >>>>>>3. If this is all you're doing, you *might* be able to get away with >>>>>>it in ASP.NET. See if there's a way to protect a section of ASP.NET >>>>>>code with a semaphore or similar construct. Is there something that >>>>>>protects in the virtual thread environment? >>>>>> >>>>>>-Abe >>>>>> >>>>>>On 8/19/05, Mike Boos wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>I tried moving the dlls to the system32 directory, but that doesn't >>>>>>> >>>>>>> >>have >> >> >>>>>>>any effect (am I missing any other dependencies?) >>>>>>> >>>>>>>Unfortunately, I'm kind of stuck with ASP.NET, as that's what the rest >>>>>>>of the site relies upon. I'm trying to improve the present setup which >>>>>>>involves sending a request to a C++ CGI program which writes a map >>>>>>> >>>>>>> >>file >> >> >>>>>>>to the hard disk and forwards the request to mapserv.exe. If you'd ask >>>>>>>me, that's a bit of a kluge, and without Mapscript, all I could do to >>>>>>>improve on that would be to take out the C++ program and have the map >>>>>>>file generated from within the ASP.NET program itself. Can you think >>>>>>> >>>>>>> >>of >> >> >>>>>>>a better way to accomplish the same task? >>>>>>> >>>>>>>Mike >>>>>>>Abe Gillespie wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>Placing the depended-on DLLs into the bin dir will do nothing. I >>>>>>>>assume you're on a windows box. Therefore the easiest way to take >>>>>>>>care of this is by placing all the DLLs (except for map_script) into >>>>>>>>\system32 where is the system windows directory >>>>>>>>(c:\winnt, c:\windows, etc.). >>>>>>>> >>>>>>>>With that said, you're entering a world of pain by using C# >>>>>>>> >>>>>>>> >>map_script >> >> >>>>>>>>in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>>>>>>combined with ASP.NET's supremely weird threading model (e.g. virtual >>>>>>>>threads), you're going to encounter a plethora of problems. This is >>>>>>>>why you almost never see MapServer + ASP.NET discussion threads. >>>>>>>> >>>>>>>>To get more info, search the archives. You should find ten or so >>>>>>>>messages about this topic. >>>>>>>> >>>>>>>>-Abe >>>>>>>> >>>>>>>>On 8/18/05, Mike Boos wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>Hello >>>>>>>>> >>>>>>>>>I'm trying to run Mapscript using the SWIG C# bindings on an ASP.NET >>>>>>>>>server. I compiled the 4.6.0 version of MapServer and have placed >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>what I >>>> >>>> >>>> >>>> >>>>>>>>>believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>>>>>>mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in the >>>>>>>>> >>>>>>>>> >>bin >> >> >>>>>>>>>directory on my server. It is appears to be finding >>>>>>>>>mapscript_csharp.dll, but is having trouble finding mapscript.dll or >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>one >>>> >>>> >>>> >>>> >>>>>>>>>of its dependencies. I am seeing the following error message: >>>>>>>>> >>>>>>>>> >>>>>>>>>Server Error in '/' Application. >>>>>>>>> >>>>>>>>> >>>>>>>>> /Unable to load DLL (mapscript)./ >>>>>>>>> >>>>>>>>>* Description: *An unhandled exception occurred during the execution >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>of >>>> >>>> >>>> >>>> >>>>>>>>>the current web request. Please review the stack trace for more >>>>>>>>>information about the error and where it originated in the code. >>>>>>>>> >>>>>>>>>* Exception Details: *System.DllNotFoundException: Unable to load >>>>>>>>> >>>>>>>>> >>DLL >> >> >>>>>>>>>(mapscript). >>>>>>>>> >>>>>>>>>Am I missing a dependency? Or do I need to set some configuration >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>option >>>> >>>> >>>> >>>> >>>>>>>>>or place the files elsewhere? >>>>>>>>> >>>>>>>>>Thanks! >>>>>>>>>Mike Boos >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>>> >>>> >>>> >>>> >> >> >> >> >> From dylan at IICI.NO-IP.ORG Mon Aug 22 18:22:57 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri Feb 8 15:07:57 2008 Subject: point within polygon In-Reply-To: Message-ID: Thanks Steve, this was exactly what I was looking for. Next question in a new thread... Cheers, Dylan On Monday 22 August 2005 12:41 pm, Steve Lime wrote: > MapServer has that capability within MapScript. shapeObj's have a contains > method that will tell you if a point is contained in a polygon. E.g.: > > $status = $polygon->contains($point); > > The behaviour of the MapServer point-in-polygon algorithm is indeterminent > if the point lies exactly on the edge of the polygon. The return value is > consistent though. I guess the point is that contains really means > contains. > > Steve > > >>> Dylan Beaudette 08/22/05 1:59 PM >>> > > Greetings, > > I am currently looking for a way to test if a point is within a polygon, > without using PostGIS. The first method I have tried, and which works but > not well, is with a simple comparison within MySQL: > > point at x,y > > polygon extent: min_x,min_y,max_x,max_y > > if x >= min_x and x <= max_x and y >= min_y and y <= max_y then OK > > however, most of my polygons are not rectangular, and thus many point may > seemingly be in multiple polygons when rectangular extents overlap... > > is there a better way to do this within mapserver, or phpmapscript? > > or is there a postGIS-like patch for MySQL ? > > thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From dylan at IICI.NO-IP.ORG Mon Aug 22 18:42:07 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Fri Feb 8 15:07:57 2008 Subject: phpmapscript attributes from ShapefileObj Message-ID: Greetings, Currently I am only able to get attributes for a shape stored within a shapfile through a 2 step process: 1. lookup a shape based on the 'contains' method and a for() loop, giving me a shape index: $num_shapes = $shapefile->numshapes; for($i=0; $i < $num_shapes ; $i++) { //now extract a single shape $this_shape= $shapefile->getShape($i); //test to see if our point is within the polygon SSURGO bound $is_point_in_poly = $this_shape->contains($user_point); //test for a positive match ($var == 1) if($is_point_in_poly == 1) { //look-up the associated survey name from the shape index //can only use that method if getShape is called from a layer object... $found_matching_survey_area = true; break; //and break loop } } //end for loop 2. open a MAP file, open the layer that cooresponds to the previously openend shape file, and lookup the attributes associated with a shape id: $a_layer = $map->getLayerByName('survey-areas'); $a_layer ->open(); $a_shape = $a_layer ->getShape(-1, $index); $a_shape _attribute= $a_shape ->getvalue($a_layer, 'areasymbol'); $a_layer ->close(); While this works, it is a little bit awkward - but here is the logic: 1. i am only able to get the number of shapes in a shapfile object... doesn't seem to be a method numShapes method for a layer object 2. i am only able to lookup values (attributes) for a shape when getShape is called from a layer object. 3. there fore i have to first get a shape id via a shapefile object, then lookup the attributes for that shape id via a layer object. is there a cleaner way to do this, possibly without having to create a MAP file? thanks in advance, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From hfl at HOME.NL Tue Aug 23 12:47:36 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: use a wfs reponse for gml input In-Reply-To: <430AC996.70804@home.nl> Message-ID: Hi List, http://ms.gis.umn.edu/docs/howto/wfs_client 1 Introduction <#table-of-contents> A WFS ( Web Feature Service ) publishes feature-level geospatial data to the web. This means that it is possible to use this data as a data source to render a map. In effect, this is not unlike having a shapefile accessible over the web, only it's not a shapefile, it's XML-Encoded geospatial data (GML to be exact Well, i guess i'm oke now. :-) Regards, Huub hfl wrote: > Hi List, > > I have experimented with WFS server en client and wms client for a GML > datasource > I get a GML from WFS and i can get an WMS image from a GML datasource > > But how can I define a wfs_client layer as an input for the OGR/GML > layer > (i'd like also to filter the GML by wfs_filter) > > I was looking at variants of > > CONNECTIONTYPE OGR > CONNECION > "http://server?map=map.map&service=wfs&version=1.0.0&request=getfeature&featuretype=wfs_parks" > > > but nothing i tried worked > > I assume it can be done. > Does anyone know how? > > Regards, > Huub > From fsozzi at INTERCAD.CH Tue Aug 23 05:18:30 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Fri Feb 8 15:07:57 2008 Subject: oracle layers: php sometime crashes Message-ID: Hi All, It works!!! The problem is on Windows XP Service Pack: after updating it to version 2 the problem is not exposed any more. This is the story (may be it could be useful for somebody). Before updating Service Pack, I tried to compile Mapserver 4.6 with both MSVC 6 and 7 but the result did not change: what I got worked fine with several PC (several Windows XP Professional and one Windows 2003 Server). But on that PC failed: the strange thing is that it worked on QueryByRectangle (or QueryByShape), but failed on DrawMap: changing version from 4.4 to 4.6 the problem moved from one group of functions to another group. And another very strange thing is that PHP crashed only on one specific Oracle Spatial layer; it worked fine with all other layers (Oracle, SHP, raster, ecc...). Best regards Francesco ----- Original Message ----- From: "Fernando Siimon" To: "Bart van den Eijnden" Cc: ; Sent: Thursday, August 18, 2005 6:15 PM Subject: Re: [UMN_MAPSERVER-USERS] oracle layers: php sometime crashes > Hi, > Is it right the "," before FROM clause? > As Bart, I suggest to use the 4.6 version, it's more stable and > contains some improves in the code that can help with this problem. > Thanks. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > Bart van den Eijnden wrote: > >>Are you able to upgrade to Mapserver/Mapscript 4.6 and see if the problem >>is still there? >> >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera IT Solutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN@Syncera-ITSolutions.nl >> >> >>>>>Francesco Sozzi 08/18/05 05:20pm >>> >>>>> >>Hi all, >> >>I have a trouble in using QueryByAttributes or QueryByShape on an Oracle >>Spatial layer: PHP sometime crashes. >>The strange thing is that it happens only on some layer and on some PC. >>I have a test installation with exactly the same php code, Apache version, >>Mapserver version, Oracle Version, OS version (Windows XP Professional) >>and on one machine works fine and on another php crashes (and only on one >>oracle layer, for the other oracle layers it works fine). >> >>Has anybody already experimented a problem like this?.... >> >>Bets regards >> >> >> >>I use: >>- PHP 4.3.10 >>- Mapserver 4.4.1 >>- Apache 2 >>- Windows XP >> >>The test code is: >>> >>$gMap = ms_newMapObj("C:/App/QueryMapWEB/data/AIL/gas.map"); >>$gLayer = $gMap->getLayerByName("Condotte"); >> >>$rectDrawnedMapCoord = ms_newrectObj(); >>$rectDrawnedMapCoord->setextent(716765.866548, >> 89471.4128114 , >> 717831.590747, >> 87732.5996441); >> >>$qresult = $gLayer->queryByRect($rectDrawnedMapCoord); >>$layer->open(); >> >>?> >> >>The layer definition is: >># ------------------------------------------------------------------------ >># Condotte >># ------------------------------------------------------------------------ >>LAYER >> NAME "Condotte" >> TYPE LINE CONNECTIONTYPE oraclespatial >> CONNECTION "ail_gas/avs@tb" >> DATA "GEOM FROM (SELECT fid,geom,FROM ga_strang WHERE geom is not null >> AND DELETED=0) USING UNIQUE fid NONE" >> STATUS DEFAULT SYMBOLSCALE 200 >> CLASS NAME "nessuna" >> COLOR 0 0 0 >> SYMBOL 1 >> SIZE 8 >> TEMPLATE "templates/default.html" >> END >> END >> >> > > > From mn at BLOMINFO.DK Tue Aug 23 05:42:39 2005 From: mn at BLOMINFO.DK (Morten Nielsen) Date: Fri Feb 8 15:07:57 2008 Subject: ASP.NET and mapscript - unable to load DLL Message-ID: >Placing the depended-on DLLs into the bin dir will do nothing. I >assume you're on a windows box. Therefore the easiest way to take >care of this is by placing all the DLLs (except for map_script) into >\system32 where is the system windows directory >(c:\winnt, c:\windows, etc.). Actually this is not correct. You can just put all of them in the bin directory. I did this when I was playing with swig in v. 4.4.something. This worked, but I had the threading issues as well, so often the app crashed. I tried playing with the 4.6.0 version as well (this time in a win app) and at one point I seem to recall that I actually got the same error as you describe. I can't remember what libraries there should be available, but I think there should be some more? If you're using the default swig setup, you should see three *_csharp.dll files (although they can be combined to one single dll), as well as Anyway, I finally gave up on trying combining Mapserver and .NET, and started writing my own mapengine from scratch in .NET :-) Let me know if you should be interested in the code. >With that said, you're entering a world of pain by using C# map_script >in ASP.NET. Much of the map_script DLL is thread unsafe, that >combined with ASP.NET's supremely weird threading model (e.g. virtual >threads), you're going to encounter a plethora of problems. I sure did :-) Best regards /Morten From piero.cavalieri at HEIDI.IT Tue Aug 23 07:10:59 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri Feb 8 15:07:57 2008 Subject: ASP.NET and mapscript - unable to load DLL Message-ID: >Anyway, I finally gave up on trying combining Mapserver and .NET, and >started writing my own mapengine from scratch in .NET :-) Let me know if >you should be interested in the code. > I write simple app with .NET, using cgi mode and template files. It uses HttpWebRequest to make request to cgi and HttpWebResponse to read response. I use an xml template file like this: Parse, put template keyword value in protected variables, and then use them in the Page (all code is in code-behind .cs files). Same thing for query templates (but don't have xml template files, used instead a custom syntax, for now). At client side uses rosa applet (also tried dbox). Probably not the best way, but (seems) functional. Result is very similar to dm solutions gmap application (I can't publish at the moment, due to layers rights...) Cheers Piero From LVN at HVENEGAARD.DK Tue Aug 23 07:43:10 2005 From: LVN at HVENEGAARD.DK (Lars V. Nielsen (Hvenegaard)) Date: Fri Feb 8 15:07:57 2008 Subject: Filter layer with MS/SQL based attribute ? Message-ID: I have an OGR based polygon table with just a numeric ID attached. I'm displaying this in the map, it's working fine. A non-geographical table in MS/SQL has a table with this ID as key, and an attribute to tell whether the entry is active or not (null if active). I've tried to use a JOIN and a FILTER in my layer to implement the filtering, but I'm somehow not getting it right. And the docs are rather scarce on examples. Can anyone give a fast rundown on how to do this ? Is JOIN+FILTER even the way to accomplish this ? I have looked at past posts on the list, but I've failed to apply them to my case :-( Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S, Odense http://www.hvenegaard.dk From hfl at HOME.NL Tue Aug 23 07:55:23 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: wfs attribute filtering Message-ID: Hi List I'm happily getting images from a wfs_filtered WFS client layer from my map-WFS-server and i was accumulating the following questions. 1. Why are there no attributes in the response to http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&version=1.0.0&service=wfs&request=getfeature&typename=park http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&version=1.0.0&service=wfs&request=getfeature&typename=park&Filter=PARK_10 2. I'm trying variable substitution in the to but the expression % + variable + % is interpreted litterally http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/wfs_park.map&PARK_=10&service=wms&request=getmap&version=1.1.1&layers=wfs_park&styles=&srs=EPSG:42304&bbox=-2600000,-700000,3500000,3840000&width=610&height=450&format=png&transparent=true&exceptions=text/xml&bgcolor=0xffffff 3. How can I filter dynamically? Regards, Huub === WFS Server layerdefinition LAYER NAME park DUMP TRUE METADATA DESCRIPTION "Park" END TYPE POLYGON STATUS ON DATA park CLASS NAME "Parks" COLOR 200 255 0 OUTLINECOLOR 120 120 120 END TOLERANCE 5 END # Layer WFS Client layerdefinition LAYER NAME wfs_park TYPE POLYGON STATUS ON CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map" #adding a Filterkeyword works, but also not applicable to variable substitution #&Filter=PARK_%PARK_%" METADATA "wfs_typename" "park" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "50" "wfs_filter" "PARK_%PARK_%" # "wfs_filter" "PARK_10" END PROJECTION "init=epsg:42304" END CLASS STYLE COLOR 0 255 0 END END END From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Aug 23 08:01:02 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:57 2008 Subject: attribut values In-Reply-To: Message-ID: Hi list, I have a database for a layer conisting of 5 files: test_bevdichte3.dbf test_bevdichte3.sbn test_bevdichte3.sbx test_bevdichte3.shp test_bevdichte3.shx In my map file I can give the path to the dbf file to clasify the data. CLASSITEM "EWKM2" but still oll the polygones have the same color. Somehow I want to configurate how many classes are build and with stile every class has. Somebody can give my a hint? best regards - Leopold -------------- next part -------------- A non-text attachment was scrubbed... Name: centrope_wms_bevdichte.map Type: application/octet-stream Size: 2252 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050823/fa68b15d/centrope_wms_bevdichte.obj From fwarmerdam at GMAIL.COM Tue Aug 23 08:50:36 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:57 2008 Subject: Filter layer with MS/SQL based attribute ? In-Reply-To: <006201c5a7d7$ecb6d720$4e01a8c0@odin> Message-ID: On 8/23/05, Lars V. Nielsen (Hvenegaard) wrote: > I have an OGR based polygon table with just a numeric ID attached. I'm > displaying this in the map, it's working fine. > > A non-geographical table in MS/SQL has a table with this ID as key, and an > attribute to tell whether the entry is active or not (null if active). > > I've tried to use a JOIN and a FILTER in my layer to implement the > filtering, but I'm somehow not getting it right. And the docs are rather > scarce on examples. > > Can anyone give a fast rundown on how to do this ? > > Is JOIN+FILTER even the way to accomplish this ? Lars, Are you accessing your MS/SQL non-geographical table through OGR as well? Are you using an OGR SQL JOIN or a MapServer JOIN? OGR SQL joins do not permit WHERE queries on joined fields. The WHERE clause is currently evaluated on the primary table before the join is done. I *suspect* that is the problem you are running into though you haven't really provided enough details to make it clear. If your polygon data is in MS/SQL too then I suspect the best way to organize things is executing a custom SQL query doing the join and WHERE all within MS/SQL. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From christian.schaffer at MUENCHEN.DE Tue Aug 23 08:36:08 2005 From: christian.schaffer at MUENCHEN.DE (Christian Schaffer) Date: Fri Feb 8 15:07:57 2008 Subject: Solaris 10: libgdal.so.1 Message-ID: Hi all, I?m working on establishing a mapserver environment for our intranet. Since I?m pretty new to UMN mapserver, I?d like to apologize in advance for any stupid questions I might ask. Here?s my problem: I?m on an AMD Opteron based server, Solaris 10 installed with perl 5.8.7, freetype 2.1.10, gd 2.0.33, proj4 4.4.8, curl 7.14.0 and a couple more packages (gcc, bison, binutils, apache, apache2, several libs...) installed from blastwave.org. I compiled GDAL 1.3.0.0 from source: # ./configure \ --prefix=/usr/local \ --without-python \ --with-ogr \ --with-gif=internal \ --with-jpeg=internal \ --without-jasper \ --with-geotiff=internal \ --with-libtiff=internal \ --with-libz=internal # make # make install # /usr/local/bin/gdal-config --version 1.3.0 # I then compiled mapserver 4.6.0: # ./configure \ --without-pdf \ --with-httpd=/opt/csw/apache2/sbin/httpd \ --with-curl-config=/opt/csw/bin/curl-config \ --with-wmsclient \ --with-wfs \ --with-wfsclient \ --without-tiff \ --with-zlib=/opt/csw \ --with-jpeg=/opt/csw \ --with-png=/opt/csw \ --with-gif \ --with-freetype=/opt/csw \ --with-threads \ --with-gd=/opt/csw \ --with-gdal=/usr/local/bin/gdal-config \ --with-ogr=/usr/local/bin/gdal-config \ --with-proj=/opt/csw \ --with-postgis=/opt/csw/postgresql/bin/pg_config \ --with-oraclespatial=/opt/oracle \ --with-php=/usr/local \ --enable-debug # make # /data/build/mapserver/mapserver-4.6.0/mapserv This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. Seems to be alright up to here, but as soon as I try to call the mapserv binary via http, it won?t work. The message in my apache?s error_log reads: [Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] ld.so.1: /data/www/faithless/cgi-bin/mapserv: fatal: libgdal.so.1: open failed: No such file or directory [Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] Premature end of script headers: mapserv The libgdal.so.1 can be found in /usr/local/lib: # ll /usr/local/lib/libgdal.so.1 lrwxrwxrwx 1 root root 16 Aug 23 11:32 /usr/local/lib/libgdal.so.1 -> libgdal.so.1.8.0 My apache gets the following LD_LIBRARY_PATH as environment variable: /opt/csw/apache2/lib:/opt/csw/lib:/opt/csw/gcc3/lib:/opt/csw/include:/opt/csw/kde-gcc/lib: /opt/csw/kde-gcc/include:/usr/local/lib:/usr/local/qt/lib:/opt/sfw/lib:/usr/sfw/lib: /usr/local/pgsql/lib:/opt/oracle/lib I tried with apache 1.3.x as well as with apache 2.0.x, changed the LD_LIBRARY_PATH to any variation, I could imagine. But no success yet. As far as I know, there?s no construction similar to Linux?s /etc/ld.so.conf and ldconfig on Solaris. So LD_LIBRARY_PATH seems the only way for me to change the behaviour. I?d appreciate any suggestion! Thank you very much for helping and best regards, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050823/4c8223a7/attachment.html From mboos at AUGSIGNALS.COM Tue Aug 23 09:35:06 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:57 2008 Subject: ASP.NET and mapscript - unable to load DLL In-Reply-To: <4309DC27.2030102@augsignals.com> Message-ID: This isn't really a 'fix', but I found it would actually work after I restarted IIS. So the problem is no longer reproducable, and I'm not sure what is causing it. Thanks for the advice though. Mike Mike Boos wrote: > I am certain the error occurs on that line - I even commented out all > the other lines and ran it again to be sure. It is also the very first > line in which I use the MapScript interface in the file. > > I have also tried invoking the MapScript code from a command line app > and it runs successfully. > > Mike > > Tamas Szekeres wrote: > >> Are you sure this error happens at the row you have mentioned? It seems >> that you are using an object instance without calling "new" previously. >> However Mapserver errors will result in an exception passed back through >> the SWIG interface. >> >> You should try to insantiate mapObj in a Windows test application. The >> improper security context of aspnet_wp may also be a problem. >> >> Tamas >> >> >> On Fri, 19 Aug 2005 16:58:00 -0400, Mike Boos >> wrote: >> >> >> >>> Thank you for that advice! I ran filemon and discovered that it was >>> trying (unsuccessfully) to find libcurl.dll - which somehow didn't show >>> up in my dependency tracking tool. It's now in my system path. >>> >>> I'm now running into new trouble. When I try to create a mapObj with >>> "mapObj m_obj = new mapObj(mapfile);" I get the following error: >>> >>> >>> /Object reference not set to an instance of an object./ >>> >>> * Description: *An unhandled exception occurred during the execution of >>> the current web request. Please review the stack trace for more >>> information about the error and where it originated in the code. >>> >>> * Exception Details: *System.NullReferenceException: Object reference >>> not set to an instance of an object. >>> >>> Any suggestions? >>> Mike >>> >>> Tamas Szekeres wrote: >>> >>> >>> >>>> Have you tried SysInternals's filemon or a similar program to >>>> monitor the >>>> expected location of theese files? >>>> >>>> >>>> >>>> On Fri, 19 Aug 2005 13:23:38 -0400, Mike Boos >>>> >>> >> wrote: >> >> >>>> >>>> >>>> >>>>> mapscript_csharp.dll is present in the bin directory. All the >>>>> others are >>>>> in system32. gdal12.dll is in both as I'm somehow invoking a function >>>>> >>>>> >>>>> >>>>> from it from elsewhere and not having the slightest bit of trouble >>>>> with >>>> >>>> >>>> >>>> >>>> >>>>> that part (I'm using a direct DllImport attribute). So maybe I >>>>> will have >>>>> to try one of the alternatives. Oh well. >>>>> >>>>> Mike >>>>> >>>>> Abe Gillespie wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Did you move mapscript.dll to system32 as well? The only DLL that >>>>>> should be in your bin dir is mapscript_csharp.dll. >>>>>> >>>>>> Suggestions: >>>>>> 1. Write the mapfile by hand with the file streaming objects? >>>>>> 2. Wrap the MapServer CGI executable with ASP.NET (I think someone >>>>>> did just this some time ago). >>>>>> 3. If this is all you're doing, you *might* be able to get away >>>>>> with >>>>>> it in ASP.NET. See if there's a way to protect a section of ASP.NET >>>>>> code with a semaphore or similar construct. Is there something that >>>>>> protects in the virtual thread environment? >>>>>> >>>>>> -Abe >>>>>> >>>>>> On 8/19/05, Mike Boos wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> I tried moving the dlls to the system32 directory, but that doesn't >>>>>>> >>>>>> >> have >> >> >>>>>>> any effect (am I missing any other dependencies?) >>>>>>> >>>>>>> Unfortunately, I'm kind of stuck with ASP.NET, as that's what >>>>>>> the rest >>>>>>> of the site relies upon. I'm trying to improve the present setup >>>>>>> which >>>>>>> involves sending a request to a C++ CGI program which writes a map >>>>>>> >>>>>> >> file >> >> >>>>>>> to the hard disk and forwards the request to mapserv.exe. If >>>>>>> you'd ask >>>>>>> me, that's a bit of a kluge, and without Mapscript, all I could >>>>>>> do to >>>>>>> improve on that would be to take out the C++ program and have >>>>>>> the map >>>>>>> file generated from within the ASP.NET program itself. Can you >>>>>>> think >>>>>>> >>>>>> >> of >> >> >>>>>>> a better way to accomplish the same task? >>>>>>> >>>>>>> Mike >>>>>>> Abe Gillespie wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Placing the depended-on DLLs into the bin dir will do nothing. I >>>>>>>> assume you're on a windows box. Therefore the easiest way to take >>>>>>>> care of this is by placing all the DLLs (except for map_script) >>>>>>>> into >>>>>>>> \system32 where is the system windows directory >>>>>>>> (c:\winnt, c:\windows, etc.). >>>>>>>> >>>>>>>> With that said, you're entering a world of pain by using C# >>>>>>>> >>>>>>> >> map_script >> >> >>>>>>>> in ASP.NET. Much of the map_script DLL is thread unsafe, that >>>>>>>> combined with ASP.NET's supremely weird threading model (e.g. >>>>>>>> virtual >>>>>>>> threads), you're going to encounter a plethora of problems. >>>>>>>> This is >>>>>>>> why you almost never see MapServer + ASP.NET discussion threads. >>>>>>>> >>>>>>>> To get more info, search the archives. You should find ten or so >>>>>>>> messages about this topic. >>>>>>>> >>>>>>>> -Abe >>>>>>>> >>>>>>>> On 8/18/05, Mike Boos wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Hello >>>>>>>>> >>>>>>>>> I'm trying to run Mapscript using the SWIG C# bindings on an >>>>>>>>> ASP.NET >>>>>>>>> server. I compiled the 4.6.0 version of MapServer and have placed >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>> what I >>>> >>>> >>>> >>>> >>>>>>>>> believe to be the appropriate dependencies (mapscript_csharp.dll, >>>>>>>>> mapscript.dll, libmap.dll, bgd.dll, gdal12.dll, pdflib.dll) in >>>>>>>>> the >>>>>>>>> >>>>>>>> >> bin >> >> >>>>>>>>> directory on my server. It is appears to be finding >>>>>>>>> mapscript_csharp.dll, but is having trouble finding >>>>>>>>> mapscript.dll or >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>> one >>>> >>>> >>>> >>>> >>>>>>>>> of its dependencies. I am seeing the following error message: >>>>>>>>> >>>>>>>>> >>>>>>>>> Server Error in '/' Application. >>>>>>>>> >>>>>>>>> >>>>>>>>> /Unable to load DLL (mapscript)./ >>>>>>>>> >>>>>>>>> * Description: *An unhandled exception occurred during the >>>>>>>>> execution >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>> of >>>> >>>> >>>> >>>> >>>>>>>>> the current web request. Please review the stack trace for more >>>>>>>>> information about the error and where it originated in the code. >>>>>>>>> >>>>>>>>> * Exception Details: *System.DllNotFoundException: Unable to load >>>>>>>>> >>>>>>>> >> DLL >> >> >>>>>>>>> (mapscript). >>>>>>>>> >>>>>>>>> Am I missing a dependency? Or do I need to set some configuration >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>> option >>>> >>>> >>>> >>>> >>>>>>>>> or place the files elsewhere? >>>>>>>>> >>>>>>>>> Thanks! >>>>>>>>> Mike Boos >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> >>>> >>> >> >> >> >> >> > > > From tsfu at HKUCS.ORG Tue Aug 23 10:03:18 2005 From: tsfu at HKUCS.ORG (Jason FU) Date: Fri Feb 8 15:07:57 2008 Subject: Indexing Message-ID: If I've got a spatial table like the following, ============================================================ CREATE TABLE 0803_200401_reprint_all_p ( gid serial NOT NULL, recno int8, elevation float8, dataflags int8, dispx float8, dispy float8, size float8, angle float8, scale int8, keyword varchar, usernum int8, fcode varchar, datatype int4, descflags int8, themenum int8, indexkey varchar, superflags int8, sourceid varchar, the_geom geometry, CONSTRAINT hk0803_200401_reprint_all_p_pkey PRIMARY KEY (gid), CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2), CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS NULL), CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) ) WITH OIDS; ============================================================ what do I do if I need to use the column called usernum in my where clause? Should I simply create an index as follows: create index usernum_idx on 0803_200401_reprint_all_p (usernum); ? Please advise. Thanks. Jason From dave.mitchell at NEWGROVE.COM Tue Aug 23 10:03:22 2005 From: dave.mitchell at NEWGROVE.COM (Dave Mitchell) Date: Fri Feb 8 15:07:57 2008 Subject: OGR Problem Message-ID: Hi, I am trying to display point data from a SQL Server Database. So far all I'm getting is the following error: "Error rendering Map Image: a fatal error occured drawing the map." ------------------------------------------ I have the Layer defined in my map file thus:- LAYER GROUP "Post Offices" NAME "podemo" TYPE POINT CONNECTIONTYPE OGR CONNECTION "C:\webmap\chameleon-2.0\samples\map\postoffice.ovf" DATA "mylayer" # the name of the OGRVrtLayer STATUS ON CLASSITEM "GID" CLASS EXPRESSION /./ COLOR 0 0 255 # dummy color OUTLINECOLOR 0 0 0 SYMBOL 4 SIZE 8 END END ------------------------------------------ This is my ovf file:- ODBC:MapServerTest podemo wkbPoint --------------------------------------------- I am running a Chameleon/PHPMapscript under IIS MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Can anyone suggest how I might fix this, or at least determine more accurately what is going wrong. Best regards, Dave From buysse at SOCSCI.UMN.EDU Tue Aug 23 10:19:35 2005 From: buysse at SOCSCI.UMN.EDU (Joshua Buysse) Date: Fri Feb 8 15:07:57 2008 Subject: Solaris 10: libgdal.so.1 In-Reply-To: <430B1838.9090208@muenchen.de> Message-ID: Christian Schaffer wrote: > Hi all, > > I?m working on establishing a mapserver environment for our intranet. > Since I?m pretty new to UMN mapserver, I?d like to apologize in > advance for any stupid questions I might ask. > > Here?s my problem: > I?m on an AMD Opteron based server, Solaris 10 installed with perl > 5.8.7, freetype 2.1.10, gd 2.0.33, proj4 4.4.8, curl 7.14.0 and a > couple more packages (gcc, bison, binutils, apache, apache2, several > libs...) installed from blastwave.org. [munch] > Seems to be alright up to here, but as soon as I try to call the > mapserv binary via http, it won?t work. > The message in my apache?s error_log reads: > [Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] ld.so.1: > /data/www/faithless/cgi-bin/mapserv: fatal: libgdal.so.1: open failed: > No such file or directory > [Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] Premature end > of script headers: mapserv > > The libgdal.so.1 can be found in /usr/local/lib: > # ll /usr/local/lib/libgdal.so.1 > lrwxrwxrwx 1 root root 16 Aug 23 11:32 > /usr/local/lib/libgdal.so.1 -> libgdal.so.1.8.0 > My apache gets the following LD_LIBRARY_PATH as environment variable: > /opt/csw/apache2/lib:/opt/csw/lib:/opt/csw/gcc3/lib:/opt/csw/include:/opt/csw/kde-gcc/lib: > /opt/csw/kde-gcc/include:/usr/local/lib:/usr/local/qt/lib:/opt/sfw/lib:/usr/sfw/lib: > /usr/local/pgsql/lib:/opt/oracle/lib > > I tried with apache 1.3.x as well as with apache 2.0.x, changed the > LD_LIBRARY_PATH to any variation, I could imagine. But no success yet. > > As far as I know, there?s no construction similar to Linux?s > /etc/ld.so.conf and ldconfig on Solaris. So LD_LIBRARY_PATH seems the > only way for me to change the behaviour. Actually, there is an equivalent to ld.so.conf -- but it's not something that you really want to use if you can avoid it. It's not really supported or well documented, as far as I can tell. The best way to handle this is to either set LD_OPTIONS or LD_RUN_PATH. An example setting that I use (as a blastwave.org maintainer) is this: LD_OPTIONS='-R/opt/csw/lib -L/opt/csw/lib -R/usr/local/lib -L/usr/local/lib' export LD_OPTIONS This example assumes that you're using the Sun compilers -- I have not tested it with GCC, but I think it should work. If it fails to compile, you may need to change it (depending on the way that it's linking) to look more like this: LD_OPTIONS='-Wl,--rpath -Wl,/opt/csw/lib -L/opt/csw/lib' To check the generated binary and see if it can find the libraries, you can run 'ldd -s mapserv' and look over the output. It will show the library search path embedded in the binary and will tell you which libraries it's linking against -- handy for things like libz.so that exist in both /usr/lib and /opt/csw/lib (hint: you probably want the /opt/csw version). Email me if you're trying to use optimized sparcv8plusb or sparcv9 binaries or libraries. It gets more complicated then. One last thing -- if you're trying to link any C++ code against libraries (that are written in C++, like geos) in /opt/csw, you will need to use the Sun compilers. No way around it. > I?d appreciate any suggestion! > > Thank you very much for helping and best regards, > Chris -Josh (aka buysse@blastwave.org) From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 23 10:54:14 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: wfs attribute filtering Message-ID: Huub, 1: add gml_include_items "all" to your LAYER's METADATA section 2: I don't expect this to work with variable subsitution 3: You can set the wfs_filter METADATA with Mapscript, I don't think you can do this with normal CGI Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Huub Fleuren 08/23/05 1:55 pm >>> Hi List I'm happily getting images from a wfs_filtered WFS client layer from my map-WFS-server and i was accumulating the following questions. 1. Why are there no attributes in the response to http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&version=1.0.0&service=wfs&request=getfeature&typename=park http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&version=1.0.0&service=wfs&request=getfeature&typename=park&Filter=PARK_10 2. I'm trying variable substitution in the to but the expression % + variable + % is interpreted litterally http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/wfs_park.map&PARK_=10&service=wms&request=getmap&version=1.1.1&layers=wfs_park&styles=&srs=EPSG:42304&bbox=-2600000,-700000,3500000,3840000&width=610&height=450&format=png&transparent=true&exceptions=text/xml&bgcolor=0xffffff 3. How can I filter dynamically? Regards, Huub === WFS Server layerdefinition LAYER NAME park DUMP TRUE METADATA DESCRIPTION "Park" END TYPE POLYGON STATUS ON DATA park CLASS NAME "Parks" COLOR 200 255 0 OUTLINECOLOR 120 120 120 END TOLERANCE 5 END # Layer WFS Client layerdefinition LAYER NAME wfs_park TYPE POLYGON STATUS ON CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map" #adding a Filterkeyword works, but also not applicable to variable substitution #&Filter=PARK_%PARK_%" METADATA "wfs_typename" "park" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "50" "wfs_filter" "PARK_%PARK_%" # "wfs_filter" "PARK_10" END PROJECTION "init=epsg:42304" END CLASS STYLE COLOR 0 255 0 END END END From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 23 10:56:36 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: OGR Problem Message-ID: Does your ovf file work with ogrinfo? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Dave Mitchell 08/23/05 4:03 pm >>> Hi, I am trying to display point data from a SQL Server Database. So far all I'm getting is the following error: "Error rendering Map Image: a fatal error occured drawing the map." ------------------------------------------ I have the Layer defined in my map file thus:- LAYER GROUP "Post Offices" NAME "podemo" TYPE POINT CONNECTIONTYPE OGR CONNECTION "C:\webmap\chameleon-2.0\samples\map\postoffice.ovf" DATA "mylayer" # the name of the OGRVrtLayer STATUS ON CLASSITEM "GID" CLASS EXPRESSION /./ COLOR 0 0 255 # dummy color OUTLINECOLOR 0 0 0 SYMBOL 4 SIZE 8 END END ------------------------------------------ This is my ovf file:- ODBC:MapServerTest podemo wkbPoint --------------------------------------------- I am running a Chameleon/PHPMapscript under IIS MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Can anyone suggest how I might fix this, or at least determine more accurately what is going wrong. Best regards, Dave From dave.mitchell at NEWGROVE.COM Tue Aug 23 11:30:08 2005 From: dave.mitchell at NEWGROVE.COM (Dave Mitchell) Date: Fri Feb 8 15:07:57 2008 Subject: OGR Problem Message-ID: At a good suggestion from Mapserver-User Bart, I have tried running my ovf file from a command prompt with ogrinfo, which seems to work fine. This is what my command prompt says: Had to open data source read-only. INFO: Open of `postoffice.ovf' using driver `VRT' successful. 1: mylayer (Point) However, I understand that the ODBC drivers may need environment variables to be set to function correctly through mapserver, can anyone tell me what I need to do for this. Also is there a way I can tell whether my PHPMapscript/Chameleon setup is actually calling the right ogr dlls in Winnt/systrem 32? Best regards, Dave From hfl at HOME.NL Tue Aug 23 12:01:27 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: wfs attribute filtering In-Reply-To: Message-ID: I see. Thanks . I might experiment with gml_include_items "all" to retrieve all data with a proxy that i use for the CONNECTION if that's not too mapserverspecific, and filter it in there with XSL, but that would be quite a workaround variable substitution would be good though! let's see... mapserv.c ln. 274 in *loadMap /* check for any %variable% substitutions here, also do any map_ changes, we do this here so WMS/WFS */ /* services can take advantage of these "vendor specific" extensions */ for(i=0;irequest->NumParams;i++) { if(strncasecmp(msObj->request->ParamNames[i],"map_",4) == 0) { /* check to see if there are any additions to the mapfile */ if(msLoadMapString(map, msObj->request->ParamNames[i], msObj->request->ParamValues[i]) == -1) writeError(); } Seems to me that it should work. Maybe file a bug. Huub Bart van den Eijnden wrote: >Huub, > >1: add gml_include_items "all" to your LAYER's METADATA section >2: I don't expect this to work with variable subsitution >3: You can set the wfs_filter METADATA with Mapscript, I don't think you can do this with normal CGI > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > > >>>>Huub Fleuren 08/23/05 1:55 pm >>> >>>> >>>> >Hi List > >I'm happily getting images from a wfs_filtered WFS client layer from my >map-WFS-server and i was accumulating the following questions. > >1. Why are there no attributes in the response to > > http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&version=1.0.0&service=wfs&request=getfeature&typename=park > http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&version=1.0.0&service=wfs&request=getfeature&typename=park&Filter=PARK_10 > >2. I'm trying variable substitution in the to but the >expression % + variable + % is interpreted litterally > > http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/wfs_park.map&PARK_=10&service=wms&request=getmap&version=1.1.1&layers=wfs_park&styles=&srs=EPSG:42304&bbox=-2600000,-700000,3500000,3840000&width=610&height=450&format=png&transparent=true&exceptions=text/xml&bgcolor=0xffffff > >3. How can I filter dynamically? > >Regards, Huub >=== > >WFS Server layerdefinition >LAYER > NAME park > DUMP TRUE > METADATA > DESCRIPTION "Park" > END > TYPE POLYGON > STATUS ON > DATA park > CLASS > NAME "Parks" > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > TOLERANCE 5 >END # Layer > > >WFS Client layerdefinition > >LAYER > NAME wfs_park > TYPE POLYGON > STATUS ON > CONNECTIONTYPE WFS > CONNECTION >"http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map" > #adding a Filterkeyword works, but also not applicable to variable >substitution > >#&Filter=PARK_%PARK_%" > METADATA > "wfs_typename" "park" > "wfs_version" "1.0.0" > "wfs_request_method" "GET" > "wfs_connectiontimeout" "60" > "wfs_maxfeatures" "50" > "wfs_filter" >"PARK_%PARK_%" ># "wfs_filter" >"PARK_10" > > END > PROJECTION > "init=epsg:42304" > END > CLASS > STYLE > COLOR 0 255 0 > END > END >END > > > > > From mapserver at GISMAP.CH Tue Aug 23 13:36:45 2005 From: mapserver at GISMAP.CH (Roman Meier) Date: Fri Feb 8 15:07:57 2008 Subject: Postgis/Mapserver-Problem: Tablenames with dots... Message-ID: Dear List I?m having a problem with Postgis/Postgresql and Mapserver. I searched the archives but found no solution. The error-message in Mapserver shows the following: *************************************************** msDrawMap(): Image handling error. Failed to draw layer named 'test22_gr.planrahmen.koordinatenlinie'. prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID::text from test22_gr.planrahmen.koordinatenlinie WHERE wkb_geometry && setSRID('BOX3D(699649.975666667 261476.466,700649.975666667 262476.466)'::BOX3D, find_srid('','test22_gr.planrahmen.koordinatenlinie','wkb_geometry') )' Postgresql reports the error as 'ERROR: cross-database references are not implemented: "test22_gr.planrahmen.koordinatenlinie" ' More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation.php Mappostgis.c - version of Jan 23/2004. The mapfile contains: ********************* LAYER NAME 'test22_gr.planrahmen.koordinatenlinie' GROUP Linie TYPE LINE STATUS ON CONNECTIONTYPE postgis CONNECTION 'user=test dbname=test host=127.0.0.1' DATA "wkb_geometry from test22_gr.planrahmen.koordinatenlinie" CLASS NAME 'test22_gr.planrahmen.koordinatenlinie' TEMPLATE 'template/test22_gr.planrahmen.koordinatenlinie.html' SYMBOL 'circle' SIZE 1 COLOR 256 236 169 END TOLERANCE 5 END Analysis: ********* I get the same error-message if I query the table 'test22_gr.planrahmen.koordinatenlinie' using PSQL: Select * from test22_gr.planrahmen.koordinatenlinie --> 520=# ERROR: cross-database references are not implemented: ?test22_gr.planrahmen.koordinatenlinie? If I query the table by adding quotation marks everything works fine: Select * from "test22_gr.planrahmen.koordinatenlinie" Remark: the dots are part of the tablename! I tried to do analog changes to the mapfile by changing the following line: DATA "wkb_geometry from test22_gr.planrahmen.koordinatenlinie" Into DATA "wkb_geometry from 'test22_gr.planrahmen.koordinatenlinie'" Well - this doesn?t work and I can?t solve the problem. Any ideas...? Thanks in advance Roman From mapserver at GISMAP.CH Tue Aug 23 13:38:54 2005 From: mapserver at GISMAP.CH (Roman Meier) Date: Fri Feb 8 15:07:57 2008 Subject: Extent of map created with itemquerymap Message-ID: Dear list I use Mapserver 4.0 as a CGI. I?m able to create a map, zoomed to a selected shape using itemquerymap. That is exactly what I want and it is working fine. The URL looks like: http://localhost/cgi-bin/mapserv?map=bla.map&qitem=nr&qstring=43&mode=itemquerymap&mapext=shapes&qlayer=Layer3&layers=Layer1+Layer2 For my Javascript-Application to work, I need the extents (minx, maxx, etc.) of that map too. How can I get these parameters? A similar question has been asked before, but I couldn?t find an answer. Any ideas? Thanks in advance. Roman From stevem at SPATIALMAPPING.COM Tue Aug 23 13:51:03 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Fri Feb 8 15:07:57 2008 Subject: phpmapscript attributes from ShapefileObj Message-ID: Dylan: You can obtain a shape's attributes directly from the dbf file with PHP's 'dBase' extension. The shapes in a shp file correspond one-to-one with the records in the dbf file, so once you know the index of the shape you want, the index to its attribute record in the dbf file is easily derived. The shapefile record array is zero-based, while the dBase record array is 1-based (in PHP, anyway), so just add one to the shape index to get the dBase index. Here's a quick'n'dirty example (no guarantee it'll work without modification, since I just banged it out here without any testing): /* load extensions as/if necessary */ dl("php_mapscript.dll"); dl("php_dbase.dll"); /* Configuration variables */ $shpfile_name = "/path/to/myfile"; // shapefile pathname, without .shp $shpfile_mode = -1; // -1 == read-only, -2 == update $dbase_mode = 0; // 0 == read-only, 1 == read/write /* Open the .shp file */ $shape_file = ms_newShapefileObj($shpfile_name, $shpfile_mode); /* Open the .dbf file */ $dbase_file = dbase_open($shpfile_name . ".dbf", $dbase_mode); /* Code here to determine the index of the shape you want */ $shape_index = $shape_file->numshapes - 1; // this is the last shape /* Obtain the shape's corresponding dBase record index $dbase_index = $shape_index + 1; // adjust for the dBase 1-based index /* Obtain the shape's attributes as an associative array */ $attrs_array = dbase_get_record_with_names($dbase_file, $dbase_index); /* Do stuff with the attributes */ echo "ID=" . $attrs_array['ID'] . "\n"; // assume an 'ID' field exists /* Clean up */ dbase_close($dbase_file); $dbase_file = NULL; $shape_file->free(); $shape_file = NULL; Hope this helps, -SM -- On Mon, 22 Aug 2005 15:42:07 -0700, Dylan Beaudette wrote: >Greetings, > >Currently I am only able to get attributes for a shape stored within a >shapfile through a 2 step process: > >1. lookup a shape based on the 'contains' method and a for() loop, giving me a >shape index: >$num_shapes = $shapefile->numshapes; >for($i=0; $i < $num_shapes ; $i++) > { > //now extract a single shape > $this_shape= $shapefile->getShape($i); > > //test to see if our point is within the polygon SSURGO bound > $is_point_in_poly = $this_shape->contains($user_point); > > //test for a positive match ($var == 1) > if($is_point_in_poly == 1) > { > //look-up the associated survey name from the shape index > //can only use that method if getShape is called from a layer object... > $found_matching_survey_area = true; > break; //and break loop > } > > } //end for loop > > >2. open a MAP file, open the layer that cooresponds to the previously openend >shape file, and lookup the attributes associated with a shape id: >$a_layer = $map->getLayerByName('survey-areas'); > $a_layer ->open(); > $a_shape = $a_layer ->getShape(-1, $index); > $a_shape _attribute= $a_shape ->getvalue($a_layer, 'areasymbol'); > $a_layer ->close(); > >While this works, it is a little bit awkward - but here is the logic: >1. i am only able to get the number of shapes in a shapfile object... doesn't >seem to be a method numShapes method for a layer object >2. i am only able to lookup values (attributes) for a shape when getShape is >called from a layer object. >3. there fore i have to first get a shape id via a shapefile object, then >lookup the attributes for that shape id via a layer object. > >is there a cleaner way to do this, possibly without having to create a MAP >file? > >thanks in advance, > >-- >Dylan Beaudette >Soils and Biogeochemistry Graduate Group >University of California at Davis >530.754.7341 From bill at BINKO.NET Tue Aug 23 14:11:47 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri Feb 8 15:07:57 2008 Subject: Postgis/Mapserver-Problem: Tablenames with dots... In-Reply-To: <1124818605.430b5ead59a3f@www.mail2web.ch> Message-ID: On Tue, 23 Aug 2005, Roman Meier wrote: ... > Analysis: > ********* > I get the same error-message if I query the table > 'test22_gr.planrahmen.koordinatenlinie' using PSQL: > > Select * from test22_gr.planrahmen.koordinatenlinie > --> 520=# ERROR: cross-database references are not implemented: > ?test22_gr.planrahmen.koordinatenlinie? > > If I query the table by adding quotation marks everything works fine: > Select * from "test22_gr.planrahmen.koordinatenlinie" > Remark: the dots are part of the tablename! > > I tried to do analog changes to the mapfile by changing the following line: > DATA "wkb_geometry from test22_gr.planrahmen.koordinatenlinie" > Into DATA "wkb_geometry from 'test22_gr.planrahmen.koordinatenlinie'" > > Well - this doesn?t work and I can?t solve the problem. > > Any ideas...? > Roman, First: quoting is a problem in mapfiles. There is a bug on it, and it is inconsistent. However, you probably cannot wait for a solution. How about this (from PSQL): CREATE VIEW mapserv_view AS SELECT oid, * from "test22_gr.planrahmen.koordinatenlinie"; Then you'll need to use the other form of the DATA statement since you won't have the SRID in geometry_columns table anymore: DATA "wkb_geometry from (select wkb_geometry from mapserv_view) as innerQ using SRID=12345" Where 12345 is is the SRID of your geometry. That should get you around this. Hope this helps Bill From hfl at HOME.NL Tue Aug 23 14:27:05 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: variable substitution Message-ID: I found a discussion of a year or so ago on variable substitution http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0401/msg00102.html?line=143#hilite Per Henrik solved his own problem in the lexer I was wondering. It's not that there are explicit excludes for certain substitutes; is there a policy on it? how can a 'find and replace' procedure on %names% be so wicked. I know it's not all that simple.Well if you do that just before the mapfile goes into the lexer? Now it's like lines of mapfile where it's likely to work and other lines probably not? Is this behaviour to be considered a bug? Regards,Huub From hfl at HOME.NL Tue Aug 23 15:33:58 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: wfs attribute filtering In-Reply-To: <430B4857.3050008@home.nl> Message-ID: I found that i can now (gml_include_items all on de WFS serverlayer) use FILTERITEM and FILTER using the literal spelling of the column in the temporary GML file CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&" FILTERITEM "myns:PARK_" FILTER "%PARK_%" METADATA "wfs_typename" "park" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "50" END i also found that there actually *i*s a policy on variable substitution : it works on DATA CONNECTION and FILTER maybe it should be elaborated for wfs_filtering strings mapserv.c line 285 if(map->layers[j].data && (strstr(map->layers[j].data, tmpstr) != NULL)) map->layers[j].data = gsub(map->layers[j].data, tmpstr, msObj->request->ParamValues[i]); if(map->layers[j].connection && (strstr(map->layers[j].connection, tmpstr) != NULL)) map->layers[j].connection = gsub(map->layers[j].connection, tmpstr, msObj->request->ParamValues[i]); if(map->layers[j].filter.string && (strstr(map->layers[j].filter.string, tmpstr) != NULL)) map->layers[j].filter.string = gsub(map->layers[j].filter.string, tmpstr, msObj->request->ParamValues[i]); Regards, Huub Huub Fleuren wrote: > I see. Thanks . > > I might experiment with > > gml_include_items "all" > > to retrieve all data with a proxy that i use for the CONNECTION if > that's not too mapserverspecific, and filter it in there with XSL, but > that would be quite a workaround > > variable substitution would be good though! > > let's see... > mapserv.c ln. 274 in *loadMap > > /* check for any %variable% substitutions here, also do any map_ > changes, we do this here so WMS/WFS */ > /* services can take advantage of these "vendor specific" extensions */ > for(i=0;irequest->NumParams;i++) { > if(strncasecmp(msObj->request->ParamNames[i],"map_",4) == 0) { /* > check to see if there are any additions to the mapfile */ > if(msLoadMapString(map, msObj->request->ParamNames[i], > msObj->request->ParamValues[i]) == -1) writeError(); > } > > Seems to me that it should work. > Maybe file a bug. > > > > Huub > > > Bart van den Eijnden wrote: > >> Huub, >> >> 1: add gml_include_items "all" to your LAYER's METADATA section >> 2: I don't expect this to work with variable subsitution >> 3: You can set the wfs_filter METADATA with Mapscript, I don't think >> you can do this with normal CGI >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN@Syncera-ITSolutions.nl >> >> >> >>>>> Huub Fleuren 08/23/05 1:55 pm >>> >>>>> >>>> >> Hi List >> >> I'm happily getting images from a wfs_filtered WFS client layer from >> my map-WFS-server and i was accumulating the following questions. >> >> 1. Why are there no attributes in the response to >> >> http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&version=1.0.0&service=wfs&request=getfeature&typename=park >> http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&version=1.0.0&service=wfs&request=getfeature&typename=park&Filter=PARK_10 >> >> >> 2. I'm trying variable substitution in the to but the >> expression % + variable + % is interpreted litterally >> >> http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/wfs_park.map&PARK_=10&service=wms&request=getmap&version=1.1.1&layers=wfs_park&styles=&srs=EPSG:42304&bbox=-2600000,-700000,3500000,3840000&width=610&height=450&format=png&transparent=true&exceptions=text/xml&bgcolor=0xffffff >> >> 3. How can I filter dynamically? >> >> Regards, Huub >> === >> >> WFS Server layerdefinition >> LAYER >> NAME park >> DUMP TRUE >> METADATA >> DESCRIPTION "Park" >> END >> TYPE POLYGON >> STATUS ON >> DATA park >> CLASS >> NAME "Parks" >> COLOR 200 255 0 >> OUTLINECOLOR 120 120 120 >> END >> TOLERANCE 5 >> END # Layer >> >> >> WFS Client layerdefinition >> >> LAYER >> NAME wfs_park >> TYPE POLYGON >> STATUS ON >> CONNECTIONTYPE WFS >> CONNECTION >> "http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map" >> >> #adding a Filterkeyword works, but also not applicable to variable >> substitution >> >> #&Filter=PARK_%PARK_%" >> >> METADATA >> "wfs_typename" "park" >> "wfs_version" "1.0.0" >> "wfs_request_method" "GET" >> "wfs_connectiontimeout" "60" >> "wfs_maxfeatures" "50" >> "wfs_filter" >> "PARK_%PARK_%" >> >> # "wfs_filter" >> "PARK_10" >> >> >> END >> PROJECTION >> "init=epsg:42304" >> END >> CLASS >> STYLE >> COLOR 0 255 0 >> END >> END >> END >> >> >> >> >> > > From hfl at HOME.NL Tue Aug 23 15:46:46 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: variable substitution In-Reply-To: <430B6A79.5030906@home.nl> Message-ID: > > I was wondering. It's not that there are explicit excludes for certain > substitutes; is there a policy on it? so there is a policy (mapserv.c) if(map->layers[j].data && (strstr(map->layers[j].data, tmpstr) != NULL)) map->layers[j].data = gsub(map->layers[j].data, tmpstr, msObj->request->ParamValues[i]); if(map->layers[j].connection && (strstr(map->layers[j].connection, tmpstr) != NULL)) map->layers[j].connection = gsub(map->layers[j].connection, tmpstr, msObj->request->ParamValues[i]); if(map->layers[j].filter.string && (strstr(map->layers[j].filter.string, tmpstr) != NULL)) map->layers[j].filter.string = gsub(map->layers[j].filter.string, tmpstr, msObj->request->ParamValues[i]); since wfs_filter is a filter, whereof the parts are the variable substitute candidates, i would eloborate this for the wfs filter the only possibility now is http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/wfs_park.map&service=wms&request=getmap&version=1.1.1&layers=wfs_park&styles=&srs=EPSG:42304&bbox=-2600000,-700000,3500000,3840000&width=610&height=450&format=png&transparent=true&exceptions=text/xml&bgcolor=0xffffff&PARK_=10&wfsfilter=PARK_10 (still only 413 characters) for a: CONNECTION "http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&filter=%wfsfilter%" > Regards,Huub > > From carloseduardo at COSTARRICENSE.CR Tue Aug 23 16:14:07 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Fri Feb 8 15:07:57 2008 Subject: print option Message-ID: Hi list. I'm using mapserver with php mapscript in suse 9.1. All the options are working fine. But now i need your help because i want to add a print function in my application, but i'm not sure how to do that with php. My application is based in the gmap example (http://www2.dmsolutions.ca/gmap/gmap75.phtml) I need to create a new browser window only with the map, leyend, scale and reference map. Is important to say that the map could be a zoom of the original map. Could somebody give me some ideas. Thanks From pykacz1 at YAHOO.COM Tue Aug 23 17:17:08 2005 From: pykacz1 at YAHOO.COM (Robert Nowak) Date: Fri Feb 8 15:07:57 2008 Subject: SWF Maps Message-ID: I need to make simple SWF map images of new york city. Where Can I find a good library of gis files of the area. I did couple of searches but did not find anything useful. From James.Browne at LIU.EDU Tue Aug 23 21:48:28 2005 From: James.Browne at LIU.EDU (James Browne) Date: Fri Feb 8 15:07:57 2008 Subject: More Linux, Mapserver and ECW SDK Message-ID: First, thanks for bug fixes and past help. I almost have the ecwsdk built, with patches and fixes, but I can't get libNCSEcw to link to libNCSUtil. All the *.o are there for both and the paths work, but I get: undefined reference to NCSMutexTryBegin and several each of undefined reference to CNCSEvent::CNCSEvent[in-charge](bool, bool, char*) and undefined reference to CNCSEvent::~CNCSEvent[in-charge]() even though mutex.c and NCSEvent.cpp compile and link into libNCSUtil. Any hints? Jim From as.khadkikar at NCL.RES.IN Wed Aug 24 00:34:51 2005 From: as.khadkikar at NCL.RES.IN (Aniruddha S. Khadkikar) Date: Fri Feb 8 15:07:57 2008 Subject: Need help in installing and configuring mapserver for oracle support Message-ID: Hi all. I am new to the installation of Mapserver with Oracle Spatial support. I have downloaded the Oracle related binaries (for Oracle 9.2). Could anyone please give me a guide to configuring and installing Mapserver? I want to document the process step by step and create a guide for future reference. Thanks Aniruddha ***************************************************************** This email is virus free by TrendMicro Inter Scan Security Suite. ***************************************************************** From Craig.Feuerherdt at DSE.VIC.GOV.AU Wed Aug 24 00:49:11 2005 From: Craig.Feuerherdt at DSE.VIC.GOV.AU (Craig Feuerherdt) Date: Fri Feb 8 15:07:57 2008 Subject: unable to get mapserver demo (itasca) working Message-ID: I have installed mapserver 4.4.1 under apache 2.0.54 I downloaded the itasca3.5 demo and edited all the files as required. I go to the initialization page (http://localhost/itasca/demo_init.html) which works fine. When I click on the initalize button an error is return - getString(): Symbol definition error. Duplicate item (NAME):(line 381) In the demo.map file I noticed that the LAYER definition for the mcd90py2_anno is incorrect as there are two references to NAME. Looking at other LAYER definitions I deterime that the second reference to NAME should be changed to GROUP. I make the change and attempt to start the application once more, but when clicking the initialize button again an error is returned mapserv.exe - Application Error The instruction at "0x77f88216" referenced memory at "0x00000010". The memory could not be "written". This error is also returned if I attempt to remove the whole LAYER definition. Can someone please tell me what I am doing wrong and why the application error is being returned. Thanks in advance. Craig Feuerherdt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/537c7350/attachment.html From sgillies at FRII.COM Wed Aug 24 02:03:32 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri Feb 8 15:07:57 2008 Subject: Attention C# mapscripters Message-ID: Tamas Szekeres is working on a very useful enhancement for mapscript, and we could use a few more testers. Please check out http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1389 as soon as possible, add yourself to the cc list, and let us know if the new code works for you. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From mikereilly2 at GMAIL.COM Wed Aug 24 02:53:34 2005 From: mikereilly2 at GMAIL.COM (Mike Reilly) Date: Fri Feb 8 15:07:57 2008 Subject: php_mapscript - showing polygon and point/annotation layers Message-ID: I have mostly completed a cgi mapserver application and am now trying to convert parts of it over to php_mapscript. I found it fairly simple to draw a map from a mapfile using php, but now am starting to learn a few more features and ran across the following stumbling block: If I use map->draw() I get an image created with all of the features in the mapfile (all 68 layers, whee!). This is expected behaviour. Because I want ot be able to select individual layers depending on users preferences, I have been experimenting with map->prepareimage() and then a series of layer->draw($image) - one of these for each layer. I then do a map->drawLabelCache() to ensure labels are drawn on the map and finally save the map to temp and echo out the html to display it. The problem is that while the labels are displaying jsut fine, any polygon or point/annotation data does not get displayed. What am I missing here (by the way, I get the impression I haven't done a great job of formatting the map file - please feel free to point out any errors and make suggestions). Here's the php code: $mymap=ms_newmapobj('php.map'); $image=$mymap->prepareImage(); $currentlayer=$mymap->getLayerByName("landpl"); $a=$currentlayer->draw($image); $currentlayer=$mymap->getLayerByName("boundary"); $a=$currentlayer->draw($image); $currentlayer=$mymap->getLayerByName("lakespl"); $a=$currentlayer->draw($image); $currentlayer=$mymap->getLayerByName("coastln"); $a=$currentlayer->draw($image); $currentlayer=$mymap->getlayerbyname("tusnotavailable"); $a=$currentlayer->draw($image); ; $a=$mymap->drawLabelCache($image); $imageurl=$image->saveWebImage(); echo ""; The landpl, boundary, lakespl and coastln all work fine, but tusnotavailable and a number of other layers similar to it don't. Here's the tusnotavailable layer (I'll put the other 3 working layers at the end). LAYER NAME tusnotavailable DATA "tus points" STATUS ON MAXSCALE 5000000000 TYPE ANNOTATION LABELITEM "USE1" CLASSITEM "USE1" LABELMAXSCALE 500000000 TOLERANCE 3 CLASS EXPRESSION "not available" SYMBOL 7 SIZE 6 TEMPLATE "templates/pointdata_query.html" COLOR 255 0 0 LABEL COLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 12 POSITION CC PARTIALS FALSE BUFFER 2 END END END Here are the layers that are being displayed correctly: LAYER NAME "coastln" DATA "coastln" STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 200 OUTLINECOLOR 0 0 200 END END LAYER #land polygons NAME "landpl" DATA "landpl" STATUS DEFAULT TYPE POLYGON CLASS COLOR 211 255 190 OUTLINECOLOR 211 255 190 END END LAYER #Creeks NAME "streamln" DATA "streamln" STATUS ON TYPE LINE CLASS COLOR 0 70 230 OUTLINECOLOR 0 70 230 END END LAYER #lakes polygons NAME "lakespl" DATA "lakespl" STATUS DEFAULT TYPE POLYGON CLASS COLOR 207 245 255 OUTLINECOLOR 100 100 255 END END From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 24 03:16:48 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:57 2008 Subject: AW: [UMN_MAPSERVER-USERS] attribut values In-Reply-To: Message-ID: Hi Travis, thank you for your advice to make a map file for several classes. I tried to make some for my file of inhabitant-density with two classes >200 and <200. (Mapfile in the Attachement) But I get the error message 'msDrawMap(): Failed to draw layer named 'Bev_Density' '. Is it right, that you don't have the line 'CLASSITEM "EWKM2"' in you map file? best regards - Leopold -----Urspr?ngliche Nachricht----- Von: Travis Kirstine GIS Tech [mailto:tkirstine@jdbarnes.com] Gesendet: Dienstag, 23. August 2005 14:32 An: Leopold Schefcik (MULTIMEDIAPLAN.AT) Betreff: RE: [UMN_MAPSERVER-USERS] attribut values Leopold If you are trying to display a layer with several classes you can try something like this: LAYER DATA mattamy/road_web NAME roads METADATA DESCRIPTION "Roads" END TYPE LINE STATUS ON MAXSCALE 150000 MINSCALE 40001 LABELMAXSCALE 120000 LABELMINSCALE 500 LABELITEM "STREETNAME" CLASS # HIGHWAYS/MAJOR ROADS MAXSCALE 120000 MINSCALE 500 EXPRESSION ([RD_CLASS]=1) #if it is a string ('[FIELD]'='value') SYMBOL 1 COLOR 75 75 75 SIZE 1 END CLASS # SECONDARY ROADS MAXSCALE 120000 MINSCALE 40001 EXPRESSION ([RD_CLASS]=2) SYMBOL 1 COLOR 100 100 100 SIZE 1 END CLASS # LOCAL ROADS MAXSCALE 80000 MINSCALE 40001 EXPRESSION ([RD_CLASS]=3) SYMBOL 1 COLOR 150 150 150 SIZE 1 END END You can also check out http://ms.gis.umn.edu/docs/reference/mapfile Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Leopold Schefcik (MULTIMEDIAPLAN.AT) Sent: Tuesday, August 23, 2005 8:01 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] attribut values Hi list, I have a database for a layer conisting of 5 files: test_bevdichte3.dbf test_bevdichte3.sbn test_bevdichte3.sbx test_bevdichte3.shp test_bevdichte3.shx In my map file I can give the path to the dbf file to clasify the data. CLASSITEM "EWKM2" but still oll the polygones have the same color. Somehow I want to configurate how many classes are build and with stile every class has. Somebody can give my a hint? best regards - Leopold -------------- next part -------------- A non-text attachment was scrubbed... Name: centrope_wms_bevdichte.map Type: application/octet-stream Size: 2377 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/ddda0af3/centrope_wms_bevdichte.obj From robert-fritz at WEB.DE Wed Aug 24 03:19:00 2005 From: robert-fritz at WEB.DE (robert fritz) Date: Fri Feb 8 15:07:57 2008 Subject: php_mapscript - showing polygon and point/annotation layers Message-ID: Hi Mike, If you want to draw some specific layers you can try this :: 1) Switch off all Layers function setAllLayerOff($MapObject) { $layers = $MapObject->getAllLayerNames(); for($a=0;$agetlayerbyname($layers[$a]); $tmp->set("status",0); } } 2) Switch on the layers you want to see in your map .... $layer_on = $MapObject->getlayerbyname($layername); $layer_on->set("status",1); ...... 3) Draw the map and save it $objImage=$objMap->draw(); $image_url=$objImage->saveWebImage(); Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/0ad4983f/attachment.html From mikereilly2 at GMAIL.COM Wed Aug 24 03:24:14 2005 From: mikereilly2 at GMAIL.COM (Mike Reilly) Date: Fri Feb 8 15:07:57 2008 Subject: php_mapscript - showing polygon and point/annotation layers In-Reply-To: <1921191871@web.de> Message-ID: Robert: Thanks for your prompt reply. I'd tried something similar: /* for($a=0;$agetLayerByName($layers[$a]); $currentlayer->status=MS_OFF; echo $currentlayer->status."
"; echo } */ but for some reason I still got all the layers displayed. I'll give it another run and double check tho! On 8/24/05, robert fritz wrote: > > Hi Mike, > > If you want to draw some specific layers you can try this :: > > 1) Switch off all Layers > function setAllLayerOff($MapObject) > { > $layers = $MapObject->getAllLayerNames(); > for($a=0;$a { > $tmp = $MapObject->getlayerbyname($layers[$a]); > $tmp->set("status",0); > } > } > > 2) Switch on the layers you want to see in your map > > .... > $layer_on = $MapObject->getlayerbyname($layername); > $layer_on->set("status",1); > > ...... > > > 3) Draw the map and save it > > $objImage=$objMap->draw(); > $image_url=$objImage->saveWebImage(); > > > Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine > SMS an alle > Freunde gleichzeitig schicken: *http://freemail.web.de/features/?mc=021179 > * > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/73c47dff/attachment.html From piero.cavalieri at HEIDI.IT Wed Aug 24 03:42:29 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri Feb 8 15:07:57 2008 Subject: print option Message-ID: Carlos Eduardo Sibaja Salazar wrote: >Hi list. > >I'm using mapserver with php mapscript in suse 9.1. All the options are >working fine. >But now i need your help because i want to add a print function in my >application, >but i'm not sure how to do that with php. My application is based in the >gmap example >(http://www2.dmsolutions.ca/gmap/gmap75.phtml) > >I need to create a new browser window only with the map, leyend, scale and >reference map. >Is important to say that the map could be a zoom of the original map. > >Could somebody give me some ideas. >Thanks > If you use pdflib to print, something like this (should do better ...): 1)gmap75.phtml: print 2)printSetup.php: print
Titolo: 
Formato:
3) File print.php: "; $map = ms_newMapObj("gmap75.map"); if(array_key_exists("PATH_TRANSLATED", $_SERVER)) { $map->set("shapepath", str_replace($thisFileName, "data", str_replace("\\", "/", $_SERVER["PATH_TRANSLATED"])));} $map->set("width", $MapWidth); $map->set("height", $MapHeight); $map->set("resolution", $MapResolution); //localizeMapLabels($map); //adjustScalebar($map); /*extensions*/ $ext = unserialize($_REQUEST['ext']); $map->setextent($ext[0],$ext[1],$ext[2],$ext[3]); /*Attivo i Layers*/ $layerNums = unserialize($_REQUEST['layerNums']); //setto tutti a false for($i=0; $i < $map->numlayers; $i++) { $iLayer = $map->getLayer($i); $iLayer->set("status", MS_OFF); } //ciclo su $layerNums ed attivo. for($i=0; $i < count($layerNums); $i++) { $iLayer = $map->getLayer($layerNums[$i]); $iLayer->set("status", MS_ON); // printf("%s\n", $iLayer->name); } // change layer scales to ensure pdf image still shows the same extent as the web image $map_width = $map->width; $pdf_ratio = ($map_width/$MapWidth); $allLayernames = $map->getAllLayerNames(); $numb = count($allLayernames); for ($i = 0; $i<$numb-1; $i++) { $oLayer = $map->getLayerByName($allLayernames[$i]); $old_min_scale = $oLayer->minscale; $new_min_scale = ($old_min_scale*$pdf_ratio); $oLayer->set('minscale', $new_min_scale); $old_max_scale = $oLayer->maxscale; $new_max_scale = ($old_max_scale*$pdf_ratio); $oLayer->set('maxscale', $new_max_scale); } /*Immagine mappa*/ $mapObj=$map->draw(); $image_url=$mapObj->saveWebImage(); //$image_map = PDF_load_image($p, "auto", "D:/11b2.jpg", ""); $image_map = PDF_load_image($p, "auto", "C:/tmp".$image_url, ""); if (!$image_map) { die("Error: " . PDF_get_errmsg($p)); } /* Immagine ScaleBar */ $imageScaleBar=$map->drawScaleBar(); $scaleBar_url=$imageScaleBar->saveWebImage(); $image_scaleBar = PDF_load_image($p, "auto", "C:/tmp".$scaleBar_url, ""); if (!$image_scaleBar) { die("Error: " . PDF_get_errmsg($p)); } /* Immagine Leggenda*/ $legendObj=$map->drawLegend(); $legend_url=$legendObj->saveWebImage(); $image_legend = PDF_load_image($p, "auto", "C:/tmp".$legend_url, ""); if (!$image_legend) { die("Error: " . PDF_get_errmsg($p)); } /* Immagine RegerenceMap */ $referenceObj=$map->drawReferenceMap(); $reference_url=$referenceObj->saveWebImage(); $image_reference = PDF_load_image($p, "auto", "C:/tmp".$reference_url, ""); if (!$image_reference) { die("Error: " . PDF_get_errmsg($p)); } /*Legend template*/ $legendWidth = $legendObj->width; $legendWidth += 50; $legendHeight = $legendObj->height; $templateLegend = PDF_begin_template($p, $legendWidth, $legendHeight) ; PDF_fit_image($p, $image_legend, 0, 0, "boxsize {".($legendWidth)." ".($legendHeight)."} fitmethod meet"); PDF_rect($p, 0, 0, $legendWidth, $legendHeight); PDF_stroke($p); PDF_end_template($p); /* Map template */ $templateMap = PDF_begin_template($p, $MapWidth, $MapHeight) ; PDF_fit_image($p, $image_map, 0, 0, "boxsize {".($MapWidth)." ". ($MapHeight)."} fitmethod meet"); PDF_rect($p, 0, 0, $MapWidth , $MapHeight ); PDF_stroke($p); PDF_end_template($p); /* Arrow template */ $templateArrow = PDF_begin_template($p, $ArrowWidth, $ArrowHeight) ; //northarrow pdf_setcolor($p, "fill", "rgb", 0, 0, 0, 0); $x_bild = 0; $y_bild = 0; $font = PDF_findfont($p, "Helvetica", "host", 0); pdf_setlinewidth($p, 0.8); pdf_circle($p, $x_bild+30, $y_bild+27, 11.2); pdf_stroke($p); pdf_setlinewidth($p, 1); pdf_moveto($p, $x_bild+30, $y_bild+60); pdf_lineto($p, $x_bild+23, $y_bild+8); pdf_lineto($p, $x_bild+30, $y_bild+11); pdf_lineto($p, $x_bild+37, $y_bild+8); pdf_closepath_fill_stroke($p); pdf_setfont($p, $font, 20); // N pdf_setlinewidth($p, 3.5); pdf_setcolor($p, "fill", "rgb", 0, 0, 0, 0); pdf_moveto($p, $x_bild+25, $y_bild+20); pdf_lineto($p, $x_bild+25, $y_bild+34); pdf_moveto($p, $x_bild+35, $y_bild+20); pdf_lineto($p, $x_bild+35, $y_bild+34); pdf_stroke($p); pdf_setcolor($p, "stroke","rgb", 0.9, 0.9, 0.9, 0); pdf_setlinewidth($p, 3.0); pdf_moveto($p, $x_bild+25.5, $y_bild+20.9); pdf_lineto($p, $x_bild+25.5, $y_bild+33.1); pdf_moveto($p, $x_bild+25.5, $y_bild+32.15); pdf_lineto($p, $x_bild+34.3, $y_bild+21.85); pdf_moveto($p, $x_bild+34.5, $y_bild+20.9); pdf_lineto($p, $x_bild+34.5, $y_bild+33.1); pdf_stroke($p); PDF_end_template($p); /* Reference template */ $referenceWidth = $referenceObj->width; $referenceHeight = $referenceObj->height; $templateReference = PDF_begin_template($p, $referenceWidth, $referenceHeight) ; PDF_fit_image($p, $image_reference, 0, 0, "boxsize {".($referenceWidth)." ".($referenceHeight)."} fitmethod meet"); PDF_rect($p, 0, 0, $referenceWidth , $referenceHeight); PDF_stroke($p); PDF_end_template($p); /* Dispongo i template e le scritte */ PDF_begin_page_ext($p, $width, $height, ""); $delta = $width * 0.007; PDF_rect($p, $delta, $delta, $width - 2 * $delta, $height - 2 * $delta); PDF_stroke($p); /*title*/ $font = PDF_load_font ($p, "Verdana", "host",""); if ($font) { pdf_setfont($p, $font, $fontWidth); pdf_fit_textline($p, $title, $width/85, $height/110, "boxsize {".($width/13)." ". ($height/1.05)."} orientate ".$mapOrientation." fitmethod meet position {50 50}"); } PDF_fit_image($p, $templateMap, $width/6.5, $height/110, "boxsize {".($width/1.2)." ". ($height)."} orientate ".$mapOrientation." fitmethod meet"); PDF_fit_image($p, $templateArrow, $width - $width/8 , $height - $height/1.01, "boxsize {".($width/10)." ". ($height/10)."} orientate ".$mapOrientation." fitmethod meet"); PDF_fit_image($p, $image_scaleBar, $width * 0.95, $height * 0.5, "boxsize {".($ScaleBarWidth)." ".($ScaleBarHeight)."} orientate ".$mapOrientation." fitmethod meet"); PDF_fit_image($p, $templateReference, $width/6.5, $height * 0.65, "boxsize {".($width/5)." ".($height/5)."} orientate ".$mapOrientation." fitmethod meet"); PDF_fit_image($p, $templateLegend, $width/6.5 + $width/5 + $width/20, $height * 0.65, "boxsize {".($width/5)." ".($height/5)."} orientate ".$mapOrientation." fitmethod meet"); //PDF_close_image($p, $image_map); //PDF_close_image($p, $image_legend); //PDF_close_image($p, $image_scaleBar); PDF_end_page_ext($p, ""); PDF_end_document($p, ""); $buf = PDF_get_buffer($p); $len = strlen($buf); header("Content-type: application/pdf"); header("Content-Length: ".$len); header("Content-Disposition: inline; filename=image.pdf"); print $buf; PDF_delete($p); ?> From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 24 03:36:16 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:57 2008 Subject: satellite-picture In-Reply-To: Message-ID: Hi list, I have a satellite-picture conisting of 4 files: wienumgebung.aux wienumgebung.rrd wienumgebung.tfw wienumgebung.tif 1. How can I make it shown? I tried to put it in a map file like this (attachement) but for example I don't know what to put in 'TYPE ????' 2. The whole database is a file about 1,7 GB. My testfile wienumgebung.tif has only about 60 MB. - I think the Gis programm makes the files aux and rrd to split the big file in a tree of files with different solutions for different zoom faktors. How can I intergrate them to let my whole satellite picture be shown in each zoom/solution? best regards - Leopold -------------- next part -------------- A non-text attachment was scrubbed... Name: centrope_wms_sat_wien.map Type: application/octet-stream Size: 2240 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/cb00f946/centrope_wms_sat_wien.obj From listuser at HERZSYS.DE Wed Aug 24 03:50:08 2005 From: listuser at HERZSYS.DE (listuser H.) Date: Fri Feb 8 15:07:57 2008 Subject: Need help in installing and configuring mapserver for oracle support In-Reply-To: <430BF8EB.3030606@ncl.res.in> Message-ID: On Wednesday 24 August 2005 06:34, Aniruddha S. Khadkikar wrote: > Hi all. > I am new to the installation of Mapserver with Oracle Spatial support. I > have downloaded the Oracle related binaries (for Oracle 9.2). Could > anyone please give me a guide to configuring and installing Mapserver? I > want to document the process step by step and create a guide for future > reference. > Thanks > Aniruddha > > ***************************************************************** > This email is virus free by TrendMicro Inter Scan Security Suite. > ***************************************************************** Hi Aniruddha, there is already a guide in the mapserver wiki (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial) but some more details will help others. I don't know on which system you are but I can give you some hints for the linux installation. if you haven't already installed the oracle client you should do this first. You can have look at: http://www.puschitz.com/InstallingOracle9i.shtml After this install there should be a folder with OraHome or however you named it. This folder must be given to the configure script of mapserver (e.g. ./configure --with-oraclespatial=/opt/oracle/OraHome1/). After running this you should check the output. If it is OK you can "make" the mapserver. If all is done you can test the binary "./mapserv -v". Then you only have to copy the mapserv to the cgi-bin folder of apache and set the paths if not done for the instalation e.g. in the /etc/bash.bashrc: export ORACLE_BASE=/opt/oracle export ORACLE_HOME=/opt/oracle/OraHome1 export ORACLE_SID=testdb PATH=$PATH:$ORACLE_HOME/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib You have to set up a TNS in e.g. /opt/oracle/OraHome1/network/admin/tnsnames.ora To see if the TNS and the client works you can make a test with sqlplus e.g. sqlplus usr/pwd@testdb Then you can set up a test .map file with an oracle layer e.g.: LAYER NAME "ORA_TestLayer" TYPE LINE CONNECTIONTYPE oraclespatial CONNECTION "usr/pwd@testdb" DATA GEOM FROM A_TABLE USING SRID 82027" STATUS DEFAULT PROJECTION "init=epsg:31467" END CLASS COLOR 80 130 220 END END If this fails then you can try set the environment to the httpd.conf file and restart your apache e.g.: SetEnv ORACLE_BASE "/opt/oracle" SetEnv ORACLE_HOME "/opt/oracle/OraHome1" SetEnv ORACLE_SID "testdb" I hope this helps. Regards, Norbert From Silke.Reimer at INTEVATION.DE Wed Aug 24 03:48:42 2005 From: Silke.Reimer at INTEVATION.DE (Silke Reimer) Date: Fri Feb 8 15:07:57 2008 Subject: Need help in installing and configuring mapserver for oracle support In-Reply-To: <430BF8EB.3030606@ncl.res.in> Message-ID: Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/3dae9f73/attachment.bin From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 24 03:55:26 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: satellite-picture Message-ID: Hi Leopold, I can partially answer your question. Use TYPE RASTER and DATA "wienumgebung.tif". Make you sure you include the right path to your tif file. I don't know if Mapserver (GDAL) can read the rrd files which are Erdas files if I am not mistaken for pyramids, but if you are worried about performance you can always make internal overviews in your tiff file using gdaladdo. gdaladdo -r average abc.tif 2 4 8 16 I would suggest looking at the Raster HOWTO: http://mapserver.gis.umn.edu/doc46/raster-howto.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/24/05 09:45 AM >>> Hi list, I have a satellite-picture conisting of 4 files: wienumgebung.aux wienumgebung.rrd wienumgebung.tfw wienumgebung.tif 1. How can I make it shown? I tried to put it in a map file like this (attachement) but for example I don't know what to put in 'TYPE ????' 2. The whole database is a file about 1,7 GB. My testfile wienumgebung.tif has only about 60 MB. - I think the Gis programm makes the files aux and rrd to split the big file in a tree of files with different solutions for different zoom faktors. How can I intergrate them to let my whole satellite picture be shown in each zoom/solution? best regards - Leopold From listuser at HERZSYS.DE Wed Aug 24 04:04:49 2005 From: listuser at HERZSYS.DE (listuser H.) Date: Fri Feb 8 15:07:57 2008 Subject: AW: [UMN_MAPSERVER-USERS] attribut values In-Reply-To: Message-ID: On Wednesday 24 August 2005 09:16, Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote: > Hi Travis, thank you for your advice to make a map file for several > classes. > > I tried to make some for my file of inhabitant-density with two classes > >200 and <200. (Mapfile in the Attachement) > > But I get the error message 'msDrawMap(): Failed to draw layer named > 'Bev_Density' '. > > Is it right, that you don't have the line 'CLASSITEM "EWKM2"' in you map > file? > > best regards - Leopold > > > > -----Urspr?ngliche Nachricht----- > Von: Travis Kirstine GIS Tech [mailto:tkirstine@jdbarnes.com] > Gesendet: Dienstag, 23. August 2005 14:32 > An: Leopold Schefcik (MULTIMEDIAPLAN.AT) > Betreff: RE: [UMN_MAPSERVER-USERS] attribut values > > > Leopold > If you are trying to display a layer with several classes you can try > something like this: > > > LAYER > DATA mattamy/road_web > NAME roads > METADATA > DESCRIPTION "Roads" > END > TYPE LINE > STATUS ON > MAXSCALE 150000 > MINSCALE 40001 > LABELMAXSCALE 120000 > LABELMINSCALE 500 > LABELITEM "STREETNAME" > CLASS # HIGHWAYS/MAJOR ROADS > MAXSCALE 120000 > MINSCALE 500 > EXPRESSION ([RD_CLASS]=1) #if it is a string ('[FIELD]'='value') > SYMBOL 1 > COLOR 75 75 75 > SIZE 1 > END > > CLASS # SECONDARY ROADS > MAXSCALE 120000 > MINSCALE 40001 > EXPRESSION ([RD_CLASS]=2) > SYMBOL 1 > COLOR 100 100 100 > SIZE 1 > END > CLASS # LOCAL ROADS > MAXSCALE 80000 > MINSCALE 40001 > EXPRESSION ([RD_CLASS]=3) > SYMBOL 1 > COLOR 150 150 150 > SIZE 1 > > END > END > You can also check out http://ms.gis.umn.edu/docs/reference/mapfile > Travis > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On > Behalf Of Leopold Schefcik (MULTIMEDIAPLAN.AT) > Sent: Tuesday, August 23, 2005 8:01 AM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] attribut values > > > > Hi list, > > I have a database for a layer conisting of 5 files: > test_bevdichte3.dbf > test_bevdichte3.sbn > test_bevdichte3.sbx > test_bevdichte3.shp > test_bevdichte3.shx > > In my map file I can give the path to the dbf file to clasify the data. > > CLASSITEM "EWKM2" > > but still oll the polygones have the same color. > > Somehow I want to configurate how many classes are build and with stile > every class has. > > Somebody can give my a hint? > > best regards - Leopold Leopold, you don't need the classitem because you give it within the EXPRESSION. Are the values in your dbf numbers or strings? You should look in the dbf for the exact name of the field. http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#class If you want to serve WMS you have to put in the projection in the layer definition. Regards, Norbert From LVN at HVENEGAARD.DK Wed Aug 24 04:14:19 2005 From: LVN at HVENEGAARD.DK (Lars V. Nielsen (HVM)) Date: Fri Feb 8 15:07:57 2008 Subject: Filter layer with MS/SQL based attribute ? b=SMftptmlbsr0DT00M4m7daF/51hDTSm35WHy/94yZIRDphDM0FPGm2tkV1LmtdgbMd5Vk1cBJixCTDeM2f2H/VzIAA9atB3PtyMnroddAltBA7JFses2z3tneVcXv7BSmrrfwOvY116jp4A09d2p0c6uc3Z20p/gGI39T Message-ID: Hi Frank, Thanks for your response. The reason I didn't provide more detail was that I didn't know which way I was heading, and even how to proceed :-) I got a little further by myself before calling it a day yesterday. I did get some sort of OGR JOIN to work, but have a couple of remaning problems : - it only works on tables, not on views, so then it's a little difficult to use MS/SQL to filter the content - besides, OGR always perform a LEFT JOIN (apparently adding random values if none are found), so it doesn't filter anything anyway - OGR definitely doesn't like non-A-Z characters in the table and column name, I get an SQL parse error if such are used I've tried to filter my layer content with both a LAYER/FILTER or a CLASS/EXPRESSION, but how to I test for the value NULL ? Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S http://www.hvenegaard.dk ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Tuesday, August 23, 2005 2:50 PM Subject: Re: [UMN_MAPSERVER-USERS] Filter layer with MS/SQL based attribute ? b=SMftptmlbsr0DT00M4m7daF/51hDTSm35WHy/94yZIRDphDM0FPGm2tkV1LmtdgbMd5Vk1cBJixCTDeM2f2H/VzIAA9atB3PtyMnroddAltBA7JFses2z3tneVcXv7BSmr rfwOvY116jp4A09d2p0c6uc3Z20p/gGI39TJA/u6A= On 8/23/05, Lars V. Nielsen (Hvenegaard) wrote: > I have an OGR based polygon table with just a numeric ID attached. I'm > displaying this in the map, it's working fine. > > A non-geographical table in MS/SQL has a table with this ID as key, and an > attribute to tell whether the entry is active or not (null if active). > > I've tried to use a JOIN and a FILTER in my layer to implement the > filtering, but I'm somehow not getting it right. And the docs are rather > scarce on examples. > > Can anyone give a fast rundown on how to do this ? > > Is JOIN+FILTER even the way to accomplish this ? Lars, Are you accessing your MS/SQL non-geographical table through OGR as well? Are you using an OGR SQL JOIN or a MapServer JOIN? OGR SQL joins do not permit WHERE queries on joined fields. The WHERE clause is currently evaluated on the primary table before the join is done. I *suspect* that is the problem you are running into though you haven't really provided enough details to make it clear. If your polygon data is in MS/SQL too then I suspect the best way to organize things is executing a custom SQL query doing the join and WHERE all within MS/SQL. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From armin.burger at GMX.NET Wed Aug 24 04:40:31 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Fri Feb 8 15:07:57 2008 Subject: WMS and layer STATUS DEFAULT Message-ID: Hi everybody, I have a question regarding MapServer WMS Server and the STATUS DEFAULT setting for a layer in the map file. I would need to place a logo always on top of the requested image (using a raster layer or a point layer with pixmap symbol). One can define a layer as 'default' and it is always drawn. But if it is not explicitely requested via the GET URL it will be drawn *before* the requested layers and will therefore be hidden by the latter, even if the 'logo layer' is the last one in the map file and should be on top of all others. The strange thing is that if I define a layer as type 'annotation' and status 'default', it will always correctly be drawn in the order of the map file, but not if the logo layer is of type 'raster' or 'point' with pixmap symbol. Any ideas why this happens? Is this behaviour intended? The tested Mapserver version is 4.6 and 4.7. Thanks for any help Armin -- GMX DSL = Maximale Leistung zum minimalen Preis! 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 24 04:48:41 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:57 2008 Subject: AW: satellite-picture In-Reply-To: Message-ID: Hi Bart, I made the first step and changed the settings as you said. Now I don't have a error message anymore (so path should be ok), but I also don't see the satellite picture. http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=pgo_centrope&na me=centrope_user&password=pgo (the satellite layer is the last one and should be about over Vienna in the middle of the map) Best regards, Leopold (map-file in attachement) -----Ursprungliche Nachricht----- Von: Bart van den Eijnden [mailto:BEN@Syncera-ITSolutions.NL] Gesendet: Mittwoch, 24. August 2005 09:55 An: MAPSERVER-USERS@LISTS.UMN.EDU; leopold.schefcik@MULTIMEDIAPLAN.AT Betreff: Re: [UMN_MAPSERVER-USERS] satellite-picture Hi Leopold, I can partially answer your question. Use TYPE RASTER and DATA "wienumgebung.tif". Make you sure you include the right path to your tif file. I don't know if Mapserver (GDAL) can read the rrd files which are Erdas files if I am not mistaken for pyramids, but if you are worried about performance you can always make internal overviews in your tiff file using gdaladdo. gdaladdo -r average abc.tif 2 4 8 16 I would suggest looking at the Raster HOWTO: http://mapserver.gis.umn.edu/doc46/raster-howto.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/24/05 09:45 AM >>> Hi list, I have a satellite-picture conisting of 4 files: wienumgebung.aux wienumgebung.rrd wienumgebung.tfw wienumgebung.tif 1. How can I make it shown? I tried to put it in a map file like this (attachement) but for example I don't know what to put in 'TYPE ????' 2. The whole database is a file about 1,7 GB. My testfile wienumgebung.tif has only about 60 MB. - I think the Gis programm makes the files aux and rrd to split the big file in a tree of files with different solutions for different zoom faktors. How can I intergrate them to let my whole satellite picture be shown in each zoom/solution? best regards - Leopold -------------- next part -------------- A non-text attachment was scrubbed... Name: centrope_wms_sat_wien.map Type: application/octet-stream Size: 2244 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/3a852212/centrope_wms_sat_wien.obj From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 24 04:54:18 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: AW: satellite-picture Message-ID: Can you run gdalinfo over the file and post its output to the list? Check out FWtools: http://fwtools.maptools.org/ Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/24/05 10:50 AM >>> Hi Bart, I made the first step and changed the settings as you said. Now I don't have a error message anymore (so path should be ok), but I also don't see the satellite picture. http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=pgo_centrope&na me=centrope_user&password=pgo (the satellite layer is the last one and should be about over Vienna in the middle of the map) Best regards, Leopold (map-file in attachement) -----Ursprungliche Nachricht----- Von: Bart van den Eijnden [mailto:BEN@Syncera-ITSolutions.NL] Gesendet: Mittwoch, 24. August 2005 09:55 An: MAPSERVER-USERS@LISTS.UMN.EDU; leopold.schefcik@MULTIMEDIAPLAN.AT Betreff: Re: [UMN_MAPSERVER-USERS] satellite-picture Hi Leopold, I can partially answer your question. Use TYPE RASTER and DATA "wienumgebung.tif". Make you sure you include the right path to your tif file. I don't know if Mapserver (GDAL) can read the rrd files which are Erdas files if I am not mistaken for pyramids, but if you are worried about performance you can always make internal overviews in your tiff file using gdaladdo. gdaladdo -r average abc.tif 2 4 8 16 I would suggest looking at the Raster HOWTO: http://mapserver.gis.umn.edu/doc46/raster-howto.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/24/05 09:45 AM >>> Hi list, I have a satellite-picture conisting of 4 files: wienumgebung.aux wienumgebung.rrd wienumgebung.tfw wienumgebung.tif 1. How can I make it shown? I tried to put it in a map file like this (attachement) but for example I don't know what to put in 'TYPE ????' 2. The whole database is a file about 1,7 GB. My testfile wienumgebung.tif has only about 60 MB. - I think the Gis programm makes the files aux and rrd to split the big file in a tree of files with different solutions for different zoom faktors. How can I intergrate them to let my whole satellite picture be shown in each zoom/solution? best regards - Leopold From dave.mitchell at NEWGROVE.COM Wed Aug 24 05:31:21 2005 From: dave.mitchell at NEWGROVE.COM (Dave Mitchell) Date: Fri Feb 8 15:07:57 2008 Subject: OGR Problem Message-ID: Hi, I have got part of the way to solving my problem, as I am able to plot points now. This link was very useful: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData My other findings have been that for SQL Server ODBC connections, you cannot use Windows Authentication, you must use SQL Server authentication. i.e. ODBC:username/password@odbcDataSourceName OGR seems to work like an x,y event theme, I don't think it is actually using the well known binary specification at all. So far I have been unable to apply this to polygons. Best regards, Dave From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 24 05:37:40 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: OGR Problem Message-ID: How are you trying to apply this to polygons? Using a column which stores the geometry as WKT (because that's what OGR expects)? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Dave Mitchell 08/24/05 11:31 AM >>> Hi, I have got part of the way to solving my problem, as I am able to plot points now. This link was very useful: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData My other findings have been that for SQL Server ODBC connections, you cannot use Windows Authentication, you must use SQL Server authentication. i.e. ODBC:username/password@odbcDataSourceName OGR seems to work like an x,y event theme, I don't think it is actually using the well known binary specification at all. So far I have been unable to apply this to polygons. Best regards, Dave From info at E-GEODATA.GR Wed Aug 24 05:44:09 2005 From: info at E-GEODATA.GR (Stathis Stergou) Date: Fri Feb 8 15:07:57 2008 Subject: buffer function in php/mapscript Message-ID: Dear list, I'm new to mapserver and all of its concepts, so please forgive any mistakes. I would like to develop an application using php/mapscript. Basic demand for this application is : the user must select features from an existing layer using a spatial query e.g. "find the all the buildings that are 100 meters away from a street (or any other shape)", the user must have the ability to add or remove features to the current selection using a spatial or a non spatial query e.g. "from all these buildings select only those which are more than 10 meters high". Is it possible to do this ? Do i have to use postgis? I have read that mapserver 4.6 uses geos library, but i cannot find any documentation about the new function made available in php/mapscript. Thanks in advance. Stathis Stergou From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 24 06:01:47 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: buffer function in php/mapscript Message-ID: Hi, buffer operations are possible even without using GEOS, and don't require PostGIS. Look at queryByShape and then set a TOLERANCE on your layer and TOLERANCEUNITS to meters. With Mapscript you should be able I think to remove stuff from your selection. PostGIS could come in handy though, and could give you a better performance I think. With respect to GEOS, look here: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1327 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=770 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Stathis Stergou 08/24/05 11:54 AM >>> Dear list, I'm new to mapserver and all of its concepts, so please forgive any mistakes. I would like to develop an application using php/mapscript. Basic demand for this application is : the user must select features from an existing layer using a spatial query e.g. "find the all the buildings that are 100 meters away from a street (or any other shape)", the user must have the ability to add or remove features to the current selection using a spatial or a non spatial query e.g. "from all these buildings select only those which are more than 10 meters high". Is it possible to do this ? Do i have to use postgis? I have read that mapserver 4.6 uses geos library, but i cannot find any documentation about the new function made available in php/mapscript. Thanks in advance. Stathis Stergou From Dejan.Gambin at PULA.HR Wed Aug 24 06:26:23 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri Feb 8 15:07:57 2008 Subject: Benchmarking mapserver by simulating visitors Message-ID: Hi, I am preparing to move my mapserver web site to faster Internet link. I would like to do some benchmarking that would simulate a number of simultaneous visitors doing the map actions (zooming, panning, activating/deactivating layers, querying, etc.) and save the results (I suppose some bandwidth and time consuming values) somewhere. The thing is, I would like to analyse the results that would help me decide on what hardware to buy and especially how much Internet bandwidth to lease from my ISP. Is it possible? Any suggestions on how to do it? Do you consider it valuable? thanks very much regards dejan From JamesP at ESDM.CO.UK Wed Aug 24 06:30:34 2005 From: JamesP at ESDM.CO.UK (James Perrins) Date: Fri Feb 8 15:07:57 2008 Subject: "best" data format for attribute searches Message-ID: Frank, Would you mind elaborating on shape files supporting indexed attribute queries in OGR ? I was under the impression from all that I had read that Mapserver didn't use dbf indexes for shape files - (I know it can use spatial indexes) - or is the difference here that it does if you go via OGR - or am I missing the point ! I would be very grateful if you could point me at an example / documentation of how to use indexed attribute queries in mapserver without an RDBMS. What should you use to create the dbf indexes ? Will indexes still work if accessed via an indexed layer created using tile4ms.exe ? It would be great if I can use indexed attribute queries as I'm starting to hit performance issues with large data volumes and am trying for a variety of reasons to delay the move to something like PostGIS Many Thanks James -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam@GMAIL.COM] Sent: 18 July 2005 15:15 To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] "best" data format for attribute searches On 7/18/05, Bart van den Eijnden wrote: > Hi list, > > AFAIK Mapserver does not use the Mapinfo attribute indexes. > > I am trying to perform attribute searches on a 25 Mb Mapinfo file and am worried about performance, since the indexes won't be used which will mean scanning the whole data file for every attribute search. > > What would be a wise format to shift to for this type of operation? Or doesn't it make any sense to shift to eg PostGIS because of the way Mapserver does queries to RDBMS's? > > Thanks in advance for any insight on this. Bart, The only non-RDBMS driver in OGR that supports indexed attribute queries is Shapefiles, and there only exact lookups are indexable. If you don't want the hassle of setting up a complex RDBMS like PostGIS you might consider a lightweight equivelent like SQLite but I do think Postgresql/PostGIS would be the ideal option. PS. I do have a vague intention of implementing indexed attribute query support for mapinfo tab files at some point, and the underlying MITAB does support the index files so it shouldn't be too hard. But no timeline on such work. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 24 06:39:09 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: "best" data format for attribute searches Message-ID: Although I am not Frank I'll take the opportunity to answer :-) OGR can use Mapinfo attribute index files on shapefiles, it can't use dbf indexes. See here: http://ogr.maptools.org/drv_shapefile.html Currently the OGR Shapefile driver only supports attribute indexes for looking up specific values in a unique key column. To create a spatial index for a column issue an SQL command of the form "CREATE INDEX ON tablename USING fieldname". To drop the attribute indexes issue a command of the form "DROP INDEX ON tablename". The attribute index will accelerate WHERE clause searches of the form "fieldname = value". The attribute index is actually stored as a mapinfo format index and is not compatible with any other shapefile applications. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> James Perrins 08/24/05 12:34 PM >>> Frank, Would you mind elaborating on shape files supporting indexed attribute queries in OGR ? I was under the impression from all that I had read that Mapserver didn't use dbf indexes for shape files - (I know it can use spatial indexes) - or is the difference here that it does if you go via OGR - or am I missing the point ! I would be very grateful if you could point me at an example / documentation of how to use indexed attribute queries in mapserver without an RDBMS. What should you use to create the dbf indexes ? Will indexes still work if accessed via an indexed layer created using tile4ms.exe ? It would be great if I can use indexed attribute queries as I'm starting to hit performance issues with large data volumes and am trying for a variety of reasons to delay the move to something like PostGIS Many Thanks James -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam@GMAIL.COM] Sent: 18 July 2005 15:15 To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] "best" data format for attribute searches On 7/18/05, Bart van den Eijnden wrote: > Hi list, > > AFAIK Mapserver does not use the Mapinfo attribute indexes. > > I am trying to perform attribute searches on a 25 Mb Mapinfo file and am worried about performance, since the indexes won't be used which will mean scanning the whole data file for every attribute search. > > What would be a wise format to shift to for this type of operation? Or doesn't it make any sense to shift to eg PostGIS because of the way Mapserver does queries to RDBMS's? > > Thanks in advance for any insight on this. Bart, The only non-RDBMS driver in OGR that supports indexed attribute queries is Shapefiles, and there only exact lookups are indexable. If you don't want the hassle of setting up a complex RDBMS like PostGIS you might consider a lightweight equivelent like SQLite but I do think Postgresql/PostGIS would be the ideal option. PS. I do have a vague intention of implementing indexed attribute query support for mapinfo tab files at some point, and the underlying MITAB does support the index files so it shouldn't be too hard. But no timeline on such work. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From JamesP at ESDM.CO.UK Wed Aug 24 07:02:26 2005 From: JamesP at ESDM.CO.UK (James Perrins) Date: Fri Feb 8 15:07:57 2008 Subject: "best" data format for attribute searches In-Reply-To: Message-ID: Thanks Bart, But I think I must be being dim - I still haven't quite grasped it... "OGR can use Mapinfo attribute index files on shapefiles" Do you really mean this ? or should shapefiles really be read as MapInfo tab files ? I think I'm confused by the interchangeable way you are referring to shapefile drivers reading MapInfo files etc ? A) If I have a mapinfo tab file layer with mapinfo indexes (.ind) on the attribute file (.DAT / .DBF) are you saying that mapserver can make use of these ? B) When you say create an index by: "CREATE INDEX ON tablename USING fieldname" - is this a MapInfo command ? c) My issue is similar to yours I think - I don't really care if I use MapInfo tab files or shape files - but I have some large data files and am concerned about the speed of attribute queries and would rather avoid going to an RDBMS if I can. I can live with attribute indexes only supporting exact matches - and under some circumstances I could live with just unique indexes working, but in others it would be good if exact matches on non unique indexes (i.e. returning multiple records) could also be supported. Am I best off using MapInfo indexed tab files ? Sorry for all the questions - but I've read various posts about attribute indexes not being supported for dbf files in Mapserver - but in none of them did anyone suggest using OGR and Tab files as an alternative ? Many Thanks James -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden Sent: 24 August 2005 11:39 To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] "best" data format for attribute searches Although I am not Frank I'll take the opportunity to answer :-) OGR can use Mapinfo attribute index files on shapefiles, it can't use dbf indexes. See here: http://ogr.maptools.org/drv_shapefile.html Currently the OGR Shapefile driver only supports attribute indexes for looking up specific values in a unique key column. To create a spatial index for a column issue an SQL command of the form "CREATE INDEX ON tablename USING fieldname". To drop the attribute indexes issue a command of the form "DROP INDEX ON tablename". The attribute index will accelerate WHERE clause searches of the form "fieldname = value". The attribute index is actually stored as a mapinfo format index and is not compatible with any other shapefile applications. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> James Perrins 08/24/05 12:34 PM >>> Frank, Would you mind elaborating on shape files supporting indexed attribute queries in OGR ? I was under the impression from all that I had read that Mapserver didn't use dbf indexes for shape files - (I know it can use spatial indexes) - or is the difference here that it does if you go via OGR - or am I missing the point ! I would be very grateful if you could point me at an example / documentation of how to use indexed attribute queries in mapserver without an RDBMS. What should you use to create the dbf indexes ? Will indexes still work if accessed via an indexed layer created using tile4ms.exe ? It would be great if I can use indexed attribute queries as I'm starting to hit performance issues with large data volumes and am trying for a variety of reasons to delay the move to something like PostGIS Many Thanks James -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam@GMAIL.COM] Sent: 18 July 2005 15:15 To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] "best" data format for attribute searches On 7/18/05, Bart van den Eijnden wrote: > Hi list, > > AFAIK Mapserver does not use the Mapinfo attribute indexes. > > I am trying to perform attribute searches on a 25 Mb Mapinfo file and am worried about performance, since the indexes won't be used which will mean scanning the whole data file for every attribute search. > > What would be a wise format to shift to for this type of operation? Or doesn't it make any sense to shift to eg PostGIS because of the way Mapserver does queries to RDBMS's? > > Thanks in advance for any insight on this. Bart, The only non-RDBMS driver in OGR that supports indexed attribute queries is Shapefiles, and there only exact lookups are indexable. If you don't want the hassle of setting up a complex RDBMS like PostGIS you might consider a lightweight equivelent like SQLite but I do think Postgresql/PostGIS would be the ideal option. PS. I do have a vague intention of implementing indexed attribute query support for mapinfo tab files at some point, and the underlying MITAB does support the index files so it shouldn't be too hard. But no timeline on such work. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From BEN at SYNCERA-ITSOLUTIONS.NL Wed Aug 24 07:19:01 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: "best" data format for attribute searches Message-ID: Hi James, A): No, for MapInfo TAB files the attribute index files are not used. This is not implemented. B): this is an OGR command. Use something like: ogr2ogr -f "ESRI Shapefile" mynewshp.shp myshp.shp -sql "CREATE INDEX ON tablename USING fieldname" C): so use CONNECTIONTYPE OGR and CONNECTION "path to your shapefile" in your MAP file. Hope this helps. Keep us posted. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> JamesP@esdm.co.uk 08/24/05 13:02 PM >>> Thanks Bart, But I think I must be being dim - I still haven't quite grasped it... "OGR can use Mapinfo attribute index files on shapefiles" Do you really mean this ? or should shapefiles really be read as MapInfo tab files ? I think I'm confused by the interchangeable way you are referring to shapefile drivers reading MapInfo files etc ? A) If I have a mapinfo tab file layer with mapinfo indexes (.ind) on the attribute file (.DAT / .DBF) are you saying that mapserver can make use of these ? B) When you say create an index by: "CREATE INDEX ON tablename USING fieldname" - is this a MapInfo command ? c) My issue is similar to yours I think - I don't really care if I use MapInfo tab files or shape files - but I have some large data files and am concerned about the speed of attribute queries and would rather avoid going to an RDBMS if I can. I can live with attribute indexes only supporting exact matches - and under some circumstances I could live with just unique indexes working, but in others it would be good if exact matches on non unique indexes (i.e. returning multiple records) could also be supported. Am I best off using MapInfo indexed tab files ? Sorry for all the questions - but I've read various posts about attribute indexes not being supported for dbf files in Mapserver - but in none of them did anyone suggest using OGR and Tab files as an alternative ? Many Thanks James -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden Sent: 24 August 2005 11:39 To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] "best" data format for attribute searches Although I am not Frank I'll take the opportunity to answer :-) OGR can use Mapinfo attribute index files on shapefiles, it can't use dbf indexes. See here: http://ogr.maptools.org/drv_shapefile.html Currently the OGR Shapefile driver only supports attribute indexes for looking up specific values in a unique key column. To create a spatial index for a column issue an SQL command of the form "CREATE INDEX ON tablename USING fieldname". To drop the attribute indexes issue a command of the form "DROP INDEX ON tablename". The attribute index will accelerate WHERE clause searches of the form "fieldname = value". The attribute index is actually stored as a mapinfo format index and is not compatible with any other shapefile applications. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> James Perrins 08/24/05 12:34 PM >>> Frank, Would you mind elaborating on shape files supporting indexed attribute queries in OGR ? I was under the impression from all that I had read that Mapserver didn't use dbf indexes for shape files - (I know it can use spatial indexes) - or is the difference here that it does if you go via OGR - or am I missing the point ! I would be very grateful if you could point me at an example / documentation of how to use indexed attribute queries in mapserver without an RDBMS. What should you use to create the dbf indexes ? Will indexes still work if accessed via an indexed layer created using tile4ms.exe ? It would be great if I can use indexed attribute queries as I'm starting to hit performance issues with large data volumes and am trying for a variety of reasons to delay the move to something like PostGIS Many Thanks James -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam@GMAIL.COM] Sent: 18 July 2005 15:15 To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] "best" data format for attribute searches On 7/18/05, Bart van den Eijnden wrote: > Hi list, > > AFAIK Mapserver does not use the Mapinfo attribute indexes. > > I am trying to perform attribute searches on a 25 Mb Mapinfo file and am worried about performance, since the indexes won't be used which will mean scanning the whole data file for every attribute search. > > What would be a wise format to shift to for this type of operation? Or doesn't it make any sense to shift to eg PostGIS because of the way Mapserver does queries to RDBMS's? > > Thanks in advance for any insight on this. Bart, The only non-RDBMS driver in OGR that supports indexed attribute queries is Shapefiles, and there only exact lookups are indexable. If you don't want the hassle of setting up a complex RDBMS like PostGIS you might consider a lightweight equivelent like SQLite but I do think Postgresql/PostGIS would be the ideal option. PS. I do have a vague intention of implementing indexed attribute query support for mapinfo tab files at some point, and the underlying MITAB does support the index files so it shouldn't be too hard. But no timeline on such work. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From James.Browne at LIU.EDU Wed Aug 24 07:59:09 2005 From: James.Browne at LIU.EDU (James Browne) Date: Fri Feb 8 15:07:57 2008 Subject: More Linux, Mapserver and ECW file - woops Message-ID: Scratch that last problem, there was an old version of libNCSUtil.so in the path. Thanks anyway, Jim From hfl at HOME.NL Wed Aug 24 08:05:11 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: WFS and Oracle Message-ID: Hi WFS experiments continue today on a Oracle 9 database. I'm using a compile against Oracle 92 OCI in mapserver as well as gdal1.3 A wfs request on a test layer (SHP) give me all the data. A WMS request still runs fine on this Oracle layer, but on Oracle mapserver crashes, even if i FILTER for only one record. WFS requests on Oracle Layers should work i think. So what am i missing. Regards, Huub LAYER METADATA wfs_type "gebouw" wfs_title "gebouw" gml_include_items "all" END FILTERITEM ID FILTER "id=623898" DEBUG ON DUMP TRUE STATUS OFF CONNECTIONTYPE oraclespatial CONNECTION "gv/gv@gv" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "GEOMETRIE FROM KBK.KBK_gebouw USING UNIQUE ID SRID 90112" NAME "gebouw" TYPE POLYGON CLASS STYLE SYMBOL "circle" SIZE 1 COLOR 255 0 0 OUTLINECOLOR 255 0 0 END END END From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 24 08:11:49 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:57 2008 Subject: gdalinfo output In-Reply-To: Message-ID: gdalinfo: Ok, after an error message I get this output: for the test satellite-picture: Driver: GTiff/GeoTIFF Size is 5658, 4620 Coordinate System is `' Origin = (579746.968285,518814.947445) Pixel Size = (15.00000000,-15.00000000) Metadata: TIFFTAG_XRESOLUTION=72 TIFFTAG_YRESOLUTION=72 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 579746.968, 518814.947) Lower Left ( 579746.968, 449514.947) Upper Right ( 664616.968, 518814.947) Lower Right ( 664616.968, 449514.947) Center ( 622181.968, 484164.947) Band 1 Block=5658x1 Type=Byte, ColorInterp=Red Band 2 Block=5658x1 Type=Byte, ColorInterp=Green Band 3 Block=5658x1 Type=Byte, ColorInterp=Blue ---------------------------------------------------- for the big satellite picture: Driver: GTiff/GeoTIFF Size is 23617, 24614 Coordinate System is `' Origin = (419276.968285,646869.947445) Pixel Size = (15.00000000,-15.00000000) Metadata: TIFFTAG_SOFTWARE=Adobe Photoshop Elements 2.0 TIFFTAG_DATETIME=2005:07:12 09:44:02 TIFFTAG_XRESOLUTION=72 TIFFTAG_YRESOLUTION=72 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 419276.968, 646869.947) Lower Left ( 419276.968, 277659.947) Upper Right ( 773531.968, 646869.947) Lower Right ( 773531.968, 277659.947) Center ( 596404.468, 462264.947) Band 1 Block=23617x1 Type=Byte, ColorInterp=Red Band 2 Block=23617x1 Type=Byte, ColorInterp=Green Band 3 Block=23617x1 Type=Byte, ColorInterp=Blue -----Ursprungliche Nachricht----- Von: Bart van den Eijnden [mailto:BEN@Syncera-ITSolutions.NL] Gesendet: Mittwoch, 24. August 2005 10:54 An: MAPSERVER-USERS@LISTS.UMN.EDU; leopold.schefcik@MULTIMEDIAPLAN.AT Betreff: Re: [UMN_MAPSERVER-USERS] AW: satellite-picture Can you run gdalinfo over the file and post its output to the list? Check out FWtools: http://fwtools.maptools.org/ Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/24/05 10:50 AM >>> Hi Bart, I made the first step and changed the settings as you said. Now I don't have a error message anymore (so path should be ok), but I also don't see the satellite picture. http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=pgo_centrope&na me=centrope_user&password=pgo (the satellite layer is the last one and should be about over Vienna in the middle of the map) Best regards, Leopold (map-file in attachement) -----Ursprungliche Nachricht----- Von: Bart van den Eijnden [mailto:BEN@Syncera-ITSolutions.NL] Gesendet: Mittwoch, 24. August 2005 09:55 An: MAPSERVER-USERS@LISTS.UMN.EDU; leopold.schefcik@MULTIMEDIAPLAN.AT Betreff: Re: [UMN_MAPSERVER-USERS] satellite-picture Hi Leopold, I can partially answer your question. Use TYPE RASTER and DATA "wienumgebung.tif". Make you sure you include the right path to your tif file. I don't know if Mapserver (GDAL) can read the rrd files which are Erdas files if I am not mistaken for pyramids, but if you are worried about performance you can always make internal overviews in your tiff file using gdaladdo. gdaladdo -r average abc.tif 2 4 8 16 I would suggest looking at the Raster HOWTO: http://mapserver.gis.umn.edu/doc46/raster-howto.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 08/24/05 09:45 AM >>> Hi list, I have a satellite-picture conisting of 4 files: wienumgebung.aux wienumgebung.rrd wienumgebung.tfw wienumgebung.tif 1. How can I make it shown? I tried to put it in a map file like this (attachement) but for example I don't know what to put in 'TYPE ????' 2. The whole database is a file about 1,7 GB. My testfile wienumgebung.tif has only about 60 MB. - I think the Gis programm makes the files aux and rrd to split the big file in a tree of files with different solutions for different zoom faktors. How can I intergrate them to let my whole satellite picture be shown in each zoom/solution? best regards - Leopold From hfl at HOME.NL Wed Aug 24 08:17:58 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: Antw: [UMN_MAPSERVER-USERS] WFS and Oracle Message-ID: remarkable is the fact that DescribeFeatureType works great. proves xerces and gdal are OK isn't it? http://localhost/cgi-bin/92/mapserv.exe?map=wfs.map&service=wfs&version=1.0.0&typename=gebouw&request=DescribeFeatureType > > WFS requests on Oracle Layers should work i think. > So what am i missing. From Dejan.Gambin at PULA.HR Wed Aug 24 08:38:34 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri Feb 8 15:07:57 2008 Subject: msautotest/regression testing question Message-ID: Hi, I suppose this question is mostly intended to Frank but maybe someone else can answer too. I would like how this thing is working and can it be used (at least partially) to help me implement some kind of benchmarking that would simulate a number of simultaneous visitors doing the map actions (zooming, panning, activating/deactivating layers, querying, etc.). This would help me decide on hardware requirements and especially the Internet bandwidth that I need to lease form my ISP. thanks very much regards dejan From j.cook at OXFORDARCH.CO.UK Wed Aug 24 08:41:44 2005 From: j.cook at OXFORDARCH.CO.UK (joanne cook) Date: Fri Feb 8 15:07:57 2008 Subject: multiple legends revisited Message-ID: Hi List, A few weeks ago I enquired about how to get multiple legends from a single map, so that I can have a html legend on my main map and a standard legend on my print-friendly map. Someone kindly suggested that I use the wms getlegendgraphic request, and that works, but only up to a point, which is probably my limited understanding rather than a problem with the method! As far as I can tell, since the getlegendgraphic request only refers to a single layer, so I need to call it separately for each layer, and it will show regardless of whether the layer is on or off, OR I have to write in some more complicated code adding in some conditional statements about what should be displayed. However, I notice in my temp file that a standard legend is being created anyway- so my question is, how do I reference that? Thanks Jo ------------------------------------------- Joanne Cook Information Systems Coordinator Oxford Archaeology North ------------------------------------------- This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com From dave.mitchell at NEWGROVE.COM Wed Aug 24 08:49:04 2005 From: dave.mitchell at NEWGROVE.COM (Dave Mitchell) Date: Fri Feb 8 15:07:57 2008 Subject: OGR Problem Message-ID: Hi List, I have been investigating the GDAL/OGR with the ODBC connection. I have been using virtual data files (See the link below) http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData My understanding is as follows: 1. Non-spatial data It is possible to plot x,y data from a SQL Server table quite easily as follows:- ODBC:mapserver/mapserver@MapServerTest SELECT * FROM tblWhatever 2. WKT Spatial Data If you have an OGC compliant WKT database with a GEOMETRY_COLUMNS table, it is possible to plot points, Lines, polygons etc. (It picks up the required columns automatically) ODBC:mapserver/mapserver@MapServerTest UK_Counties_FEA wkbPolygon 3. WKB Spatial Data However the database I am using holds data in the WKB (Well Known Binary) format and I am not clear whether this is supported by the current OGR library as the documentations says: "it is currently a hardcoded assumption that the geometry is in WKT format." http://www.gdal.org/ogr/drv_odbc.html ------------------------------- My questions are these:- 1. Have I understood this correctly? 2. Is there a workaround for OGR with a WKB database? 3. Are there any plans to implement this functionality by GDAL/ Mapserver and if so when? 4. If no, then who might do this custom development for a fee? From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 24 09:00:41 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:57 2008 Subject: how to cut a big raster gis In-Reply-To: Message-ID: hi list, a general question: How can I cut a big raster gis (satellite picture) to many small ones with different quality for different zoom factors? Leopold e.g. zoom factor: 1 -> 1 file zoom factor: 10 -> 4 files zoom factor: 100 -> 16 files zoom factor: 1000 -> 64 files zoom factor: 10000 -> 256 files zoom factor: 100000 -> 1024 files .... all files shoult have the same size. From fwarmerdam at GMAIL.COM Wed Aug 24 09:06:45 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:57 2008 Subject: OGR Problem In-Reply-To: Message-ID: On 8/24/05, Dave Mitchell wrote: > 2. WKT Spatial Data > If you have an OGC compliant WKT database with a GEOMETRY_COLUMNS table, it > is possible to plot points, Lines, polygons etc. > (It picks up the required columns automatically) > > > > ODBC:mapserver/mapserver@MapServerTest > UK_Counties_FEA > wkbPolygon > > Dave, To clarify, the ODBC driver looks for a geometry_columns table, and if it finds it, uses the f_geometry_column column to identify which column in the target table is the geometry column. As noted, it is assumed to be WKT format. I would add that in the above configuration, you don't really need the "virtual" layer at all. You could just directly address the ODBC table. > My questions are these:- > > 1. Have I understood this correctly? yes > 2. Is there a workaround for OGR with a WKB database? not currently. > 3. Are there any plans to implement this functionality by GDAL/ Mapserver and if so when? there are no fixed plans to do so. > 4. If no, then who might do this custom development for a fee? Amoung others, I would be prepared to do the work. There are a couple of approaches. One would be to build the WKB support into the ODBC driver, and to have it auto-detect WKB based on column type. Currently I have no BLOB handling in the ODBC driver, so some additional work would need to be implemented for binary columns as well as changes to translate the WKB. I can prepare a quote if you wish. The more general approach would be to have the VRT layer support WKB. This would be easy, but would still mean that the ODBC driver would need to be changed to support binary columns. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed Aug 24 09:13:20 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:57 2008 Subject: msautotest/regression testing question In-Reply-To: Message-ID: On 8/24/05, Gambin Dejan wrote: > Hi, > > I suppose this question is mostly intended to Frank but maybe someone > else can answer too. > > I would like how this thing is working and can it be used (at least > partially) to help me implement some kind of benchmarking that would > simulate a number of simultaneous visitors doing the map actions > (zooming, panning, activating/deactivating layers, querying, etc.). > > This would help me decide on hardware requirements and especially the > Internet bandwidth that I need to lease form my ISP. Dejan, I don't think the msautotest provides a very good example of how to simulate use loading. It mostly uses shp2img, avoiding some of the issues related to mapserv running as a cgi, bandwidth issues, etc. If you have your application working already, and you just want to test it under load, I would suggest operating it interactively, and capturing the set of requests from the Apache logfile. You can then play back the request series, perhaps with several parallel streams of requests to simulate load. I'm not sure what the best way is to determine bandwidth requirements. A rough estimate could be collected from the byte counts reported in the apache log file for a given series of requests. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From nbarker at RSINC.COM Wed Aug 24 09:24:31 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Fri Feb 8 15:07:57 2008 Subject: msautotest/regression testing question Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Frank Warmerdam Sent: Wednesday, August 24, 2005 2:13 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] msautotest/regression testing question On 8/24/05, Gambin Dejan wrote: > Hi, > > I suppose this question is mostly intended to Frank but maybe someone > else can answer too. > > I would like how this thing is working and can it be used (at least > partially) to help me implement some kind of benchmarking that would > simulate a number of simultaneous visitors doing the map actions > (zooming, panning, activating/deactivating layers, querying, etc.). > > This would help me decide on hardware requirements and especially the > Internet bandwidth that I need to lease form my ISP. Dejan, I don't think the msautotest provides a very good example of how to simulate use loading. It mostly uses shp2img, avoiding some of the issues related to mapserv running as a cgi, bandwidth issues, etc. If you have your application working already, and you just want to test it under load, I would suggest operating it interactively, and capturing the set of requests from the Apache logfile. You can then play back the request series, perhaps with several parallel streams of requests to simulate load. I'm not sure what the best way is to determine bandwidth requirements. A rough estimate could be collected from the byte counts reported in the apache log file for a given series of requests. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent Hi, I use JMeter when I want to test a server application, mainly because it is simple :-), and it gives you a nice pretty picture to show the boss :-) , this is summarised here http://jakarta.apache.org/jmeter/usermanual/boss.html I like it because it gives a repeatable test against a series of URL queries, and you can test concurrent users which is the test that breaks most servers if the hardware is incorrectly specified. Norman From sgillies at FRII.COM Wed Aug 24 10:26:28 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri Feb 8 15:07:57 2008 Subject: Benchmarking mapserver by simulating visitors In-Reply-To: Message-ID: On Aug 24, 2005, at 4:26 AM, Gambin Dejan wrote: > Hi, > > I am preparing to move my mapserver web site to faster Internet link. I > would like to do some benchmarking that would simulate a number of > simultaneous visitors doing the map actions (zooming, panning, > activating/deactivating layers, querying, etc.) and save the results (I > suppose some bandwidth and time consuming values) somewhere. The thing > is, I would like to analyse the results that would help me decide on > what hardware to buy and especially how much Internet bandwidth to > lease > from my ISP. > > Is it possible? Any suggestions on how to do it? Do you consider it > valuable? > > thanks very much > > regards > > dejan > > Dejan, See Apache JMeter cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From steve_benzo at YAHOO.COM Wed Aug 24 12:09:42 2005 From: steve_benzo at YAHOO.COM (Steve Benzo) Date: Fri Feb 8 15:07:57 2008 Subject: PHP Mapscript Query Help Needed Message-ID: Hi, I have the following PHP mapscript query which is working well, with one exception. Instead of returning column headings (ie FID, Name) I am getting item numbers (ie 0, 1). So, I would like to be able to get those headings, and not the numbers. Can someone please take a look at my code below and see what needs to be addressed..... Thanks in advance. ///////////////////////////////////code below if(@$layer->queryByPoint($point, MS_SINGLE, -1) == MS_SUCCESS) { $layer->open(); $items=$layer->getitems(); $a = $layer->getNumResults(); echo "Features: $a
"; //outputs 1 feature $oShape = $layer->getShape($oResult->tileindex,$oResult->shapeindex); $data = $oShape->values; foreach($items as $key => $valX) { echo $key . ": " . $data[$items[$key]] . "
"; //outputs 0: 0.35241699 //outputs 1: 3.61586343 } ////////////////////////////// ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From albrecht at FIELAX.DE Wed Aug 24 12:54:16 2005 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Fri Feb 8 15:07:57 2008 Subject: PHP/Mapscript as WMS server Message-ID: Hello, in the mailinglist archives in 2003 I found a thread called "OGC compliant WMS server delivering dynamic layers". It was about a PHP/Mapscript script used as some kind of proxy WMS server. Requests like GetCapabilities were directly forwarded to the local mapserv cgi-bin using Header('Location: http://...?REQUEST=') while the GetMap request was processed in the PHP script itself for loading dynamic layers depending on the scale or sth. Are there any current projects which are based on the idea of using Mapscript to build up a more dynamic WMS server component? Best regards, Sebastian PS: Will I have to use sth. like Deegree for having more dynamic at the backend (f. e. for loading dynamic data, filters or expressions depending on the scale)? From xavan18 at HOTMAIL.COM Wed Aug 24 13:39:10 2005 From: xavan18 at HOTMAIL.COM (Xavier Vanderstukken) Date: Fri Feb 8 15:07:57 2008 Subject: Benchmarking mapserver by simulating visitors In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/c30a2fd8/attachment.html From nate at SEASTAR.JPL.NASA.GOV Wed Aug 24 13:41:04 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Fri Feb 8 15:07:57 2008 Subject: PHP/Mapscript as WMS server (fwd) Message-ID: Good question, we would like to do a similar thing. I would be interested in any replies to this; please be sure to respond to this list. On Wed, 24 Aug 2005, Sebastian Albrecht wrote: > Hello, > > in the mailinglist archives in 2003 I found a thread called > "OGC compliant WMS server delivering dynamic layers". > > It was about a PHP/Mapscript script used as some kind of proxy WMS > server. Requests like GetCapabilities were directly forwarded to the > local mapserv cgi-bin using Header('Location: http://...?REQUEST=') > while the GetMap request was processed in the PHP script itself for > loading dynamic layers depending on the scale or sth. > > Are there any current projects which are based on the idea of using > Mapscript to build up a more dynamic WMS server component? > > Best regards, > Sebastian > > > PS: Will I have to use sth. like Deegree for having more dynamic at > the backend (f. e. for loading dynamic data, filters or expressions > depending on the scale)? > -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate@seastar.jpl.nasa.gov From bartvde at XS4ALL.NL Wed Aug 24 13:55:44 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: WFS and Oracle In-Reply-To: Message-ID: Huub, which Visual Studio version did you compile with? If 6, which SP? Does a WMS GetFeatureInfo request work? Best regards, Bart On Wed, 24 Aug 2005 14:05:11 +0200, Huub Fleuren wrote: > Hi > > WFS experiments continue today on a Oracle 9 database. > I'm using a compile against Oracle 92 OCI in mapserver as well as gdal1.3 > A wfs request on a test layer (SHP) give me all the data. > > A WMS request still runs fine on this Oracle layer, but > on Oracle mapserver crashes, even if i FILTER for only one record. > > WFS requests on Oracle Layers should work i think. > So what am i missing. > > Regards, Huub > > LAYER > METADATA > wfs_type "gebouw" > wfs_title "gebouw" > gml_include_items "all" > END > > FILTERITEM ID > FILTER "id=623898" > DEBUG ON > DUMP TRUE > STATUS OFF > CONNECTIONTYPE oraclespatial > CONNECTION "gv/gv@gv" > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA "GEOMETRIE FROM KBK.KBK_gebouw USING UNIQUE ID SRID 90112" > NAME "gebouw" > TYPE POLYGON > CLASS > STYLE > SYMBOL "circle" > SIZE 1 > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > END > END > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From mikereilly2 at GMAIL.COM Wed Aug 24 15:36:07 2005 From: mikereilly2 at GMAIL.COM (Mike Reilly) Date: Fri Feb 8 15:07:57 2008 Subject: php_mapscript - showing polygon and point/annotation layers In-Reply-To: <1270fea0508240024179db46e@mail.gmail.com> Message-ID: Confirming for posterity that I subsequently tried this again to no avail. Still getting no symbol drawn on the map, just the label. I also tried with $currentlayer->set("status",MS_OFF) and then turning selected layers on with set("status",MS_ON) with no joy. I wonder if there's something to do with my symbol path that is a problem when using mapscript that doesn't show up when using cgi-mapserver? On 8/24/05, Mike Reilly wrote: > > Robert: > > Thanks for your prompt reply. I'd tried something similar: > > /* for($a=0;$a echo $layers[$a]; > $currentlayer=$mymap->getLayerByName($layers[$a]); > $currentlayer->status=MS_OFF; > echo $currentlayer->status."
"; > echo > } > */ > > but for some reason I still got all the layers displayed. I'll give it > another run and double check tho! > > On 8/24/05, robert fritz wrote: > > > > Hi Mike, > > > > If you want to draw some specific layers you can try this :: > > > > 1) Switch off all Layers > > function setAllLayerOff($MapObject) > > { > > $layers = $MapObject->getAllLayerNames(); > > for($a=0;$a > { > > $tmp = $MapObject->getlayerbyname($layers[$a]); > > $tmp->set("status",0); > > } > > } > > > > 2) Switch on the layers you want to see in your map > > > > .... > > $layer_on = $MapObject->getlayerbyname($layername); > > $layer_on->set("status",1); > > > > ...... > > > > > > 3) Draw the map and save it > > > > $objImage=$objMap->draw(); > > $image_url=$objImage->saveWebImage(); > > > > > > Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine > > SMS an alle > > Freunde gleichzeitig schicken: *http://freemail.web.de/features/?mc=021179 > > * > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/a9eb51a3/attachment.html From perrygeo at GMAIL.COM Wed Aug 24 15:44:01 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri Feb 8 15:07:57 2008 Subject: how to cut a big raster gis In-Reply-To: Message-ID: Leopold, On 8/24/05, Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote: > How can I cut a big raster gis (satellite picture) to many small ones with > different quality for different zoom factors? > The best way to deal with large rasters at multiple zoom levels is to create overviews (aka pyramids) using the gdaladdo utility that comes with gdal. These are essentially reduced resolution versions of the original image stored in a single file. When mapserver accesses the raster, it will use the overview "layers" depending on the scale of the image, reducing the need to resample on the fly. This speeds things up immensely if you have rasters that are being viewed at widely variable scales. check out http://gdal.maptools.org/gdal_utilities.html#gdaladdo for the details. -- Matt Perry perrygeo@gmail.com http://www.perrygeo.net From RMcCulley at COUNTY24.COM Wed Aug 24 16:14:26 2005 From: RMcCulley at COUNTY24.COM (Rob McCulley) Date: Fri Feb 8 15:07:57 2008 Subject: Indexed Shapefile vs. PostGIS Message-ID: I have a polygon layer with about a million polygons. The maxscale of the layer will be such that only about two dozen of the polygons will be visible at any one time. I'm trying to decide on the best method to store this data. What will be more efficient? - Have the polygon layer split into smaller shapefiles and then use an index file. - Have the polygon layer in a single table in PostGIS. I'm leaning towards the index file setup, but if any of you have experience with large datasets in PostGIS, will it perform as well as using index shapefile? It will take a lot less work on my part if I can simply import the shapefile into PostGIS. Thanks, Rob McCulley From bill at BINKO.NET Wed Aug 24 16:44:15 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri Feb 8 15:07:57 2008 Subject: Indexed Shapefile vs. PostGIS In-Reply-To: <1E095D48112D90428817CB417AECDB62082981@vermilion.county24.local> Message-ID: On Wed, 24 Aug 2005, Rob McCulley wrote: > I have a polygon layer with about a million polygons. The maxscale of the layer will be such that only about two dozen of the polygons will be visible at any one time. I'm trying to decide on the best method to store this data. What will be more efficient? > > - Have the polygon layer split into smaller shapefiles and then use an index file. > > - Have the polygon layer in a single table in PostGIS. > > I'm leaning towards the index file setup, but if any of you have experience with large datasets in PostGIS, will it perform as well as using index shapefile? It will take a lot less work on my part if I can simply import the shapefile into PostGIS. > > Thanks, > Rob McCulley I think the big question is are you doing dynamic work with it. If you're going to be doing analysis or other dynamic stuff ("Find all the properties bordering this one who's price is < $400K"), you will probably be better off with PostGIS over tiled shapefiles and OGR (FrankW would know better on this). If you're mainly going to be displaying the data, you're almost certainly going to be faster with tiled shapefiles. Also, backup/restore is much simpler! I have found that I must use a hybrid approach. I have some things that are just plain dynamic: I have to use spatial SQL on every display. For these, I use PostGIS. I also have pure static data, which I leave in shapefiles (tiled or not). When I find that I can, I will use PostGIS to do analysis and manipulation to get a dataset that works well. Then, I will export it to shapefiles using psql2shp and just update the map file. Hope this helps. Bill From schuyler at NOCAT.NET Wed Aug 24 16:37:45 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri Feb 8 15:07:57 2008 Subject: Indexed Shapefile vs. PostGIS In-Reply-To: <1E095D48112D90428817CB417AECDB62082981@vermilion.county24.local> Message-ID: * On 24-Aug-2005 at 1:25PM PDT, Rob McCulley said: > > I'm leaning towards the index file setup, but if any of you have > experience with large datasets in PostGIS, will it perform as well > as using index shapefile? It will take a lot less work on my part > if I can simply import the shapefile into PostGIS. My experience is that PostGIS is slower for operations like that, because of the way it has to traverse the index. I recommend using Steve Woodbridge's shp2tile with the -q option -- it'll take you about five minutes to get working -- and then create a tile index. PostGIS is great if you need to do indexed spatial operations, but if you're just showing vectors on a map based on their locations, I think Shapefiles on disk are faster *if* there aren't too many shapes per file. SDE From woodbri at SWOODBRIDGE.COM Wed Aug 24 16:45:35 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:07:57 2008 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] Indexed Shapefile vs. PostGIS] Message-ID: cc the list for archive. -------- Original Message -------- Subject: Re: [UMN_MAPSERVER-USERS] Indexed Shapefile vs. PostGIS Date: Wed, 24 Aug 2005 16:44:53 -0400 From: Stephen Woodbridge To: Rob McCulley References: <1E095D48112D90428817CB417AECDB62082981@vermilion.county24.local> Rob, I love PostGIS for somethings, but from what you discribe I would start with a tileindex. You can download shp2tile from http://imaptools.com/?tab=4 build it an run it like: mkdir tiledata ./shp2tile -q 8000 polygon.shp tiledata find tiledata -name "*.shp" -exec shptree {} \; find tiledata -name "*.shp" > tiledata.in tile4ms tiledata.in tiledata-idx shptree tiledata-idx and modify your mapfile to use the tileindex. -Steve Rob McCulley wrote: > I have a polygon layer with about a million polygons. The maxscale > of the layer will be such that only about two dozen of the polygons > will be visible at any one time. I'm trying to decide on the best > method to store this data. What will be more efficient? > > - Have the polygon layer split into smaller shapefiles and then use > an index file. > > - Have the polygon layer in a single table in PostGIS. > > I'm leaning towards the index file setup, but if any of you have > experience with large datasets in PostGIS, will it perform as well as > using index shapefile? It will take a lot less work on my part if I > can simply import the shapefile into PostGIS. > > Thanks, Rob McCulley > From ealpert at DIGITALGLOBE.COM Wed Aug 24 16:46:18 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri Feb 8 15:07:57 2008 Subject: Indexed Shapefile vs. PostGIS Message-ID: You can also use shptree to generate a spatial index file (QIX) which mapserver will use to fairly efficiently display the data. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@lists.umn.edu] On Behalf Of Rob McCulley Sent: Wednesday, August 24, 2005 2:14 PM To: MAPSERVER-USERS@lists.umn.edu Subject: [UMN_MAPSERVER-USERS] Indexed Shapefile vs. PostGIS I have a polygon layer with about a million polygons. The maxscale of the layer will be such that only about two dozen of the polygons will be visible at any one time. I'm trying to decide on the best method to store this data. What will be more efficient? - Have the polygon layer split into smaller shapefiles and then use an index file. - Have the polygon layer in a single table in PostGIS. I'm leaning towards the index file setup, but if any of you have experience with large datasets in PostGIS, will it perform as well as using index shapefile? It will take a lot less work on my part if I can simply import the shapefile into PostGIS. Thanks, Rob McCulley From fwarmerdam at GMAIL.COM Wed Aug 24 16:59:25 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:57 2008 Subject: Filter layer with MS/SQL based attribute ? b=SMftptmlbsr0DT00M4m7daF/51hDTSm35WHy/94yZIRDphDM0FPGm2tkV1LmtdgbMd5Vk1cBJixCTDeM2f2H/VzIAA9atB3PtyMnroddAltBA7JFses2z3tneVcXv7BSmrrfwOvY116jp4A09d2p0c6uc3Z20p/gGI39T In-Reply-To: <004701c5a883$e3f91060$c801a8c0@odin> Message-ID: On 8/24/05, Lars V. Nielsen (HVM) wrote: > - besides, OGR always perform a LEFT JOIN (apparently adding random values if none are found), so it doesn't filter anything anyway Lars, It should be leaving the extra fields NULL if the join lookup fails. If that is not the case, I would appreciate your filing a bug report sufficient for me to reproduce the problem. > - OGR definitely doesn't like non-A-Z characters in the table and column name, I get an SQL parse error if such are used Generally speaking OGR does allow numbers in table names. It should also allow stuff like underscores, but it may be too harsh in it's parsing logic. Could you be more specific about what does not work? I just created a shapefile called p2.shp and the following worked: ogrinfo -ro -sql 'select * from p2' p2.shp > I've tried to filter my layer content with both a LAYER/FILTER or a CLASS/EXPRESSION, but how to I test for the value NULL ? I don't think that MapServer has a concept of NULL values for items, though I could be wrong. You may have to filter the items against the empty string to simulate NULLness. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From schuyler at NOCAT.NET Wed Aug 24 18:04:57 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri Feb 8 15:07:57 2008 Subject: Indexed Shapefile vs. PostGIS In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CCE9@COMAIL01.digitalglobe.com> Message-ID: * On 24-Aug-2005 at 1:46PM PDT, Ethan Alpert said: > You can also use shptree to generate a spatial index file (QIX) which > mapserver will use to fairly efficiently display the data. I've found that the QIX support isn't sufficient to speed up access to really large shapefiles, especially if you're doing any kind of attribute filtering. I'd love to know why this is. SDE From jzeisloft at GMAIL.COM Wed Aug 24 18:13:22 2005 From: jzeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Fri Feb 8 15:07:57 2008 Subject: Making a WMS layer queryable Message-ID: Hello All- I am attempting to serve a WMS layer that I would like to be queryable (using the identify feature button/Query widget from Chameleon). The layer appears as it should when brought into a map, but is not queryable, despite what it says in the layer information popup window. Other layers brought into the same map through other servers are queryable. I have searched the documentation and lists, but haven't been able to find any answers. Do I need to add something extra to the mapfile (layer portion is pasted below)? Both the context and capabilities xml files show that the layer is queryable (=1) and I have increased the tolerance ridiculously just to make sure a click hits on the point. Any suggestions would be greatly appreciated! Thanks in advance for your help. Jennifer Zeisloft UW Sea Grant ------------------------------------- LAYER NAME Bluff_Profile STATUS ON TYPE POINT DATA bluffg TEMPLATE "ttt_query.html" TOLERANCE 500 TOLERANCEUNITS PIXELS MAXSCALE 300000 PROJECTION "init=epsg:4326" END METADATA "wms_srs" "EPSG:4326" "wms_name" "Bluff_Profile" "wms_title" "Bluff Profiles" "wms_abstract" "TBA" "wms_keywordlist" "Lake Superior" "wms_server_version" "1.1.1" "wms_formatlist" "image/png,image/jpeg,image/wbmp" "wms_format" "image/png" "wms_onlineresource" " http://144.92.46.35/cgi-bin/mapserv.exe?map=C:\ms4w\apps\chameleon\lscmp\map\wlscmp_wms.map& " END CLASS SYMBOL 'circle' COLOR 255 166 0 SIZE 6 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/78814eb0/attachment.html From mikereilly2 at GMAIL.COM Wed Aug 24 18:53:13 2005 From: mikereilly2 at GMAIL.COM (Mike Reilly) Date: Fri Feb 8 15:07:57 2008 Subject: php_mapscript - showing polygon and point/annotation layers In-Reply-To: <1921191871@web.de> Message-ID: Robert and list: I think I've got this worked out. My original cgi-mapserver application used a hack to get both point and polygon data able to be filtered based on some extra data in their respective dbf files - namely site usage (USE1). As a result I had 3 layers with the same name as each other. While the cgi handled this fine, it appears that php is less forgiving. I started a .map file over again for my php application and have renamed the layers and everything seems to be much happier now. Next major task on my list - create an interface to allow the creation of polygons to add to polygon shapefiles - whee! Thanks again for your help. Regards, Mike On 8/24/05, robert fritz wrote: > > Hi Mike, > > If you want to draw some specific layers you can try this :: > > 1) Switch off all Layers > function setAllLayerOff($MapObject) > { > $layers = $MapObject->getAllLayerNames(); > for($a=0;$a { > $tmp = $MapObject->getlayerbyname($layers[$a]); > $tmp->set("status",0); > } > } > > 2) Switch on the layers you want to see in your map > > .... > $layer_on = $MapObject->getlayerbyname($layername); > $layer_on->set("status",1); > > ...... > > > 3) Draw the map and save it > > $objImage=$objMap->draw(); > $image_url=$objImage->saveWebImage(); > > > Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine > SMS an alle > Freunde gleichzeitig schicken: *http://freemail.web.de/features/?mc=021179 > * > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/c49fb396/attachment.html From ealpert at DIGITALGLOBE.COM Wed Aug 24 18:54:21 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri Feb 8 15:07:57 2008 Subject: Indexed Shapefile vs. PostGIS Message-ID: Ok I haven't done attribute filtering but I find that displaying is very fast. I have a 186,000 record extremely high res world admin shapefile and QIX saved the day. I only turn this layer on at a resonable scale (similar to what the original poster said) and it's very fast. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@lists.umn.edu] On Behalf Of Schuyler Erle Sent: Wednesday, August 24, 2005 4:05 PM To: MAPSERVER-USERS@lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Indexed Shapefile vs. PostGIS * On 24-Aug-2005 at 1:46PM PDT, Ethan Alpert said: > You can also use shptree to generate a spatial index file (QIX) which > mapserver will use to fairly efficiently display the data. I've found that the QIX support isn't sufficient to speed up access to really large shapefiles, especially if you're doing any kind of attribute filtering. I'd love to know why this is. SDE From ealpert at DIGITALGLOBE.COM Wed Aug 24 18:55:11 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri Feb 8 15:07:57 2008 Subject: Making a WMS layer queryable Message-ID: You need WFS for querying feature attributes. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Jennifer Zeisloft Sent: Wednesday, August 24, 2005 4:13 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Making a WMS layer queryable Hello All- I am attempting to serve a WMS layer that I would like to be queryable (using the identify feature button/Query widget from Chameleon). The layer appears as it should when brought into a map, but is not queryable, despite what it says in the layer information popup window. Other layers brought into the same map through other servers are queryable. I have searched the documentation and lists, but haven't been able to find any answers. Do I need to add something extra to the mapfile (layer portion is pasted below)? Both the context and capabilities xml files show that the layer is queryable (=1) and I have increased the tolerance ridiculously just to make sure a click hits on the point. Any suggestions would be greatly appreciated! Thanks in advance for your help. Jennifer Zeisloft UW Sea Grant ------------------------------------- LAYER NAME Bluff_Profile STATUS ON TYPE POINT DATA bluffg TEMPLATE "ttt_query.html" TOLERANCE 500 TOLERANCEUNITS PIXELS MAXSCALE 300000 PROJECTION "init=epsg:4326" END METADATA "wms_srs" "EPSG:4326" "wms_name" "Bluff_Profile" "wms_title" "Bluff Profiles" "wms_abstract" "TBA" "wms_keywordlist" "Lake Superior" "wms_server_version" "1.1.1" "wms_formatlist" "image/png,image/jpeg,image/wbmp" "wms_format" "image/png" "wms_onlineresource" "http://144.92.46.35/cgi-bin/mapserv.exe?map=C:\ms4w\apps\chameleon\lscm p\map\wlscmp_wms.map& " END CLASS SYMBOL 'circle' COLOR 255 166 0 SIZE 6 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050824/cecf52df/attachment.html From woodbri at SWOODBRIDGE.COM Wed Aug 24 19:53:26 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:07:57 2008 Subject: Indexed Shapefile vs. PostGIS In-Reply-To: <20050824220457.GC2963@vishnu.tridity.org> Message-ID: Schuyler Erle wrote: > * On 24-Aug-2005 at 1:46PM PDT, Ethan Alpert said: > >>You can also use shptree to generate a spatial index file (QIX) which >>mapserver will use to fairly efficiently display the data. > > > I've found that the QIX support isn't sufficient to speed up access to > really large shapefiles, especially if you're doing any kind of > attribute filtering. I'd love to know why this is. > > SDE > Well, the QIX is a spatial index, not an attribute index. But someone might want to check the source code and see if attribute filtering makes use of the subset of spatial objects or just dumbly scans all the attributes then rejects based on spatial criteria. -Steve W. From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 25 03:08:42 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: Making a WMS layer queryable Message-ID: This is not true, WMS has GetFeatureInfo which shows attribute info for a feature. Jennifer, have you tried adding DUMP TRUE? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Ethan Alpert 08/25/05 12:55 am >>> You need WFS for querying feature attributes. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Jennifer Zeisloft Sent: Wednesday, August 24, 2005 4:13 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Making a WMS layer queryable Hello All- I am attempting to serve a WMS layer that I would like to be queryable (using the identify feature button/Query widget from Chameleon). The layer appears as it should when brought into a map, but is not queryable, despite what it says in the layer information popup window. Other layers brought into the same map through other servers are queryable. I have searched the documentation and lists, but haven't been able to find any answers. Do I need to add something extra to the mapfile (layer portion is pasted below)? Both the context and capabilities xml files show that the layer is queryable (=1) and I have increased the tolerance ridiculously just to make sure a click hits on the point. Any suggestions would be greatly appreciated! Thanks in advance for your help. Jennifer Zeisloft UW Sea Grant ------------------------------------- LAYER NAME Bluff_Profile STATUS ON TYPE POINT DATA bluffg TEMPLATE "ttt_query.html" TOLERANCE 500 TOLERANCEUNITS PIXELS MAXSCALE 300000 PROJECTION "init=epsg:4326" END METADATA "wms_srs" "EPSG:4326" "wms_name" "Bluff_Profile" "wms_title" "Bluff Profiles" "wms_abstract" "TBA" "wms_keywordlist" "Lake Superior" "wms_server_version" "1.1.1" "wms_formatlist" "image/png,image/jpeg,image/wbmp" "wms_format" "image/png" "wms_onlineresource" "http://144.92.46.35/cgi-bin/mapserv.exe?map=C:\ms4w\apps\chameleon\lscm p\map\wlscmp_wms.map& " END CLASS SYMBOL 'circle' COLOR 255 166 0 SIZE 6 END END From christian.schaffer at MUENCHEN.DE Thu Aug 25 04:19:54 2005 From: christian.schaffer at MUENCHEN.DE (Christian Schaffer) Date: Fri Feb 8 15:07:57 2008 Subject: Solaris 10: libgdal.so.1 In-Reply-To: <430B3077.4090505@socsci.umn.edu> Message-ID: Hi Josh, thanks a lot for the advice. I recompiled mapserver with LD_OPTIONS set in my environment. Calling it via browser now works perfectly. Thanks once again, Chris Joshua Buysse schrieb: > Christian Schaffer wrote: > >> Hi all, >> >> I?m working on establishing a mapserver environment for our intranet. >> Since I?m pretty new to UMN mapserver, I?d like to apologize in >> advance for any stupid questions I might ask. >> >> Here?s my problem: >> I?m on an AMD Opteron based server, Solaris 10 installed with perl >> 5.8.7, freetype 2.1.10, gd 2.0.33, proj4 4.4.8, curl 7.14.0 and a >> couple more packages (gcc, bison, binutils, apache, apache2, several >> libs...) installed from blastwave.org. > > > [munch] > >> Seems to be alright up to here, but as soon as I try to call the >> mapserv binary via http, it won?t work. >> The message in my apache?s error_log reads: >> [Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] ld.so.1: >> /data/www/faithless/cgi-bin/mapserv: fatal: libgdal.so.1: open >> failed: No such file or directory >> [Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] Premature end >> of script headers: mapserv >> >> The libgdal.so.1 can be found in /usr/local/lib: >> # ll /usr/local/lib/libgdal.so.1 >> lrwxrwxrwx 1 root root 16 Aug 23 11:32 >> /usr/local/lib/libgdal.so.1 -> libgdal.so.1.8.0 >> My apache gets the following LD_LIBRARY_PATH as environment variable: >> /opt/csw/apache2/lib:/opt/csw/lib:/opt/csw/gcc3/lib:/opt/csw/include:/opt/csw/kde-gcc/lib: >> >> /opt/csw/kde-gcc/include:/usr/local/lib:/usr/local/qt/lib:/opt/sfw/lib:/usr/sfw/lib: >> >> /usr/local/pgsql/lib:/opt/oracle/lib >> >> I tried with apache 1.3.x as well as with apache 2.0.x, changed the >> LD_LIBRARY_PATH to any variation, I could imagine. But no success yet. >> >> As far as I know, there?s no construction similar to Linux?s >> /etc/ld.so.conf and ldconfig on Solaris. So LD_LIBRARY_PATH seems the >> only way for me to change the behaviour. > > > Actually, there is an equivalent to ld.so.conf -- but it's not > something that you really want to use if you can avoid it. It's not > really supported or well documented, as far as I can tell. The best > way to handle this is to either set LD_OPTIONS or LD_RUN_PATH. > An example setting that I use (as a blastwave.org maintainer) is this: > > LD_OPTIONS='-R/opt/csw/lib -L/opt/csw/lib -R/usr/local/lib > -L/usr/local/lib' > export LD_OPTIONS > > This example assumes that you're using the Sun compilers -- I have not > tested it with GCC, but I think it should work. If it fails to > compile, you may need to change it (depending on the way that it's > linking) to look more like this: > > LD_OPTIONS='-Wl,--rpath -Wl,/opt/csw/lib -L/opt/csw/lib' > > To check the generated binary and see if it can find the libraries, > you can run 'ldd -s mapserv' and look over the output. It will show > the library search path embedded in the binary and will tell you which > libraries it's linking against -- handy for things like libz.so that > exist in both /usr/lib and /opt/csw/lib (hint: you probably want the > /opt/csw version). > > Email me if you're trying to use optimized sparcv8plusb or sparcv9 > binaries or libraries. It gets more complicated then. > One last thing -- if you're trying to link any C++ code against > libraries (that are written in C++, like geos) in /opt/csw, you will > need to use the Sun compilers. No way around it. > >> I?d appreciate any suggestion! >> >> Thank you very much for helping and best regards, >> Chris > > > -Josh > (aka buysse@blastwave.org) > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050825/76e03054/attachment.html From LVN at HVENEGAARD.DK Thu Aug 25 04:25:38 2005 From: LVN at HVENEGAARD.DK (Lars V. Nielsen (Hvenegaard)) Date: Fri Feb 8 15:07:57 2008 Subject: Filter layer with MS/SQL based attribute ? b=SMftptmlbsr0DT00M4m7daF/51hDTSm35WHy/94yZIRDphDM0FPGm2tkV1LmtdgbMd5Vk1cBJixCTDeM2f2H/VzIAA9atB3PtyMnroddAltBA7JFses2z3tneVcXv7BSmrrfwOvY116jp4A09d2p0c6uc3Z20p/gGI39T b=IWJCkvYh35 Message-ID: Hi Frank, My point about the left join was that a failed lookup didn't remove the feature, it just added (random/null/arbitrary) values. I was looking for it to filter. It's not a bug as I see it, just a clarification of it's purpose. However, I do see some random values being added, that may be a bug. The non A-Z character I was referring to was not digits but Danish characters (??????). I.e. ascii values from the 128-255 range. They're valid in MS/SQL, but apparently the OGR SQL parser doesn't support them. You didn't comment on this item: does the OGR SQL Parser support views and not just tables ? It seems to report "not found" whenever I try to enter a view instead of a table. About the bug reports, I just want to be sure whether it's a bug and not (just) an absent/missing feature. If it's a bug, I'll be happy to file all the reports you want ;-) Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk ----- Original Message ----- From: "Frank Warmerdam" To: "Lars V. Nielsen (HVM)" Cc: Sent: Wednesday, August 24, 2005 10:59 PM Subject: Re: [UMN_MAPSERVER-USERS] Filter layer with MS/SQL based attribute ? b=SMftptmlbsr0DT00M4m7daF/51hDTSm35WHy/94yZIRDphDM0FPGm2tkV1LmtdgbMd5Vk1cBJi xCTDeM2f2H/VzIAA9atB3PtyMnroddAltBA7JFses2z3tneVcXv7BSmrrfwOvY116jp4A09d2p0c 6uc3Z20p/gGI39T b=IWJCkvYh35Gy6GMN83fa/xUK0VzPZmoe75rA7guuZG/zCcEwKSk29KAdbHiVeJkTB9D2r0hlKy MWzBPUYDh18CO4NWUJiysiT1nly92PhnVHIub/J1DV91TJkNPy2CIz95gtzKsrlUwzsMPJfVO+N6 9bpwe2ig8xRoHr9fFQqOM= On 8/24/05, Lars V. Nielsen (HVM) wrote: > - besides, OGR always perform a LEFT JOIN (apparently adding random values if none are found), so it doesn't filter anything anyway Lars, It should be leaving the extra fields NULL if the join lookup fails. If that is not the case, I would appreciate your filing a bug report sufficient for me to reproduce the problem. > - OGR definitely doesn't like non-A-Z characters in the table and column name, I get an SQL parse error if such are used Generally speaking OGR does allow numbers in table names. It should also allow stuff like underscores, but it may be too harsh in it's parsing logic. Could you be more specific about what does not work? I just created a shapefile called p2.shp and the following worked: ogrinfo -ro -sql 'select * from p2' p2.shp > I've tried to filter my layer content with both a LAYER/FILTER or a CLASS/EXPRESSION, but how to I test for the value NULL ? I don't think that MapServer has a concept of NULL values for items, though I could be wrong. You may have to filter the items against the empty string to simulate NULLness. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From hfl at HOME.NL Thu Aug 25 07:13:37 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: WFS and Oracle In-Reply-To: Message-ID: All compiling goes with vc6, no sp ((i think: i use a copy of the vc98 directory :-), what happens there if i should run a service pack?) Are you guessing it would be nessacary to run the sevice pack before gdal succeeds in converting the retrieved dataset to GML? Running an SP is something i can do of course. Results on monday. My guessing. There are different stages in this: Oracle must be accessed by mapserver, this goes oke, because it needs to do that for WMS too, this goes OK, because the same dataset shows up in the map. It takes some time for mapserver to crash. I guess the dataset is retrieved. How can i be sure? If the dataset really was retrieved by mapserver GDAL 1.3 might not be able GMLizes it? On the other hand: the SHP was GMLized correctly (by GDAL?). Maybe someone who really knows which components do what for which connectiontype could make a better guess. A DescribeFeatureType works, GetFeatureInfo will be tried next monday. Regards, Huub Bart van den Eijnden wrote: > Huub, > > which Visual Studio version did you compile with? If 6, which SP? > > Does a WMS GetFeatureInfo request work? > > Best regards, > Bart > > On Wed, 24 Aug 2005 14:05:11 +0200, Huub Fleuren wrote: > >> Hi >> >> WFS experiments continue today on a Oracle 9 database. >> I'm using a compile against Oracle 92 OCI in mapserver as well as >> gdal1.3 >> A wfs request on a test layer (SHP) give me all the data. >> >> A WMS request still runs fine on this Oracle layer, but >> on Oracle mapserver crashes, even if i FILTER for only one record. >> >> WFS requests on Oracle Layers should work i think. >> So what am i missing. >> >> Regards, Huub >> >> LAYER >> METADATA >> wfs_type "gebouw" >> wfs_title "gebouw" >> gml_include_items "all" >> END >> >> FILTERITEM ID >> FILTER "id=623898" >> DEBUG ON >> DUMP TRUE >> STATUS OFF >> CONNECTIONTYPE oraclespatial >> CONNECTION "gv/gv@gv" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> DATA "GEOMETRIE FROM KBK.KBK_gebouw USING UNIQUE ID SRID 90112" >> NAME "gebouw" >> TYPE POLYGON >> CLASS >> STYLE >> SYMBOL "circle" >> SIZE 1 >> COLOR 255 0 0 >> OUTLINECOLOR 255 0 0 >> END >> END >> END >> > > > From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 25 07:19:52 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: WFS and Oracle Message-ID: Huub, you need to compile mapserv with VC6, SP3 or SP4 minimal (one of the two, I can't remember exactly). Otherwise you get crashes on GetFeatureInfo or GetFeature with maporaclespatial. VC7 also does the trick. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Huub Fleuren 08/25/05 1:13 pm >>> All compiling goes with vc6, no sp ((i think: i use a copy of the vc98 directory :-), what happens there if i should run a service pack?) Are you guessing it would be nessacary to run the sevice pack before gdal succeeds in converting the retrieved dataset to GML? Running an SP is something i can do of course. Results on monday. My guessing. There are different stages in this: Oracle must be accessed by mapserver, this goes oke, because it needs to do that for WMS too, this goes OK, because the same dataset shows up in the map. It takes some time for mapserver to crash. I guess the dataset is retrieved. How can i be sure? If the dataset really was retrieved by mapserver GDAL 1.3 might not be able GMLizes it? On the other hand: the SHP was GMLized correctly (by GDAL?). Maybe someone who really knows which components do what for which connectiontype could make a better guess. A DescribeFeatureType works, GetFeatureInfo will be tried next monday. Regards, Huub Bart van den Eijnden wrote: > Huub, > > which Visual Studio version did you compile with? If 6, which SP? > > Does a WMS GetFeatureInfo request work? > > Best regards, > Bart > > On Wed, 24 Aug 2005 14:05:11 +0200, Huub Fleuren wrote: > >> Hi >> >> WFS experiments continue today on a Oracle 9 database. >> I'm using a compile against Oracle 92 OCI in mapserver as well as >> gdal1.3 >> A wfs request on a test layer (SHP) give me all the data. >> >> A WMS request still runs fine on this Oracle layer, but >> on Oracle mapserver crashes, even if i FILTER for only one record. >> >> WFS requests on Oracle Layers should work i think. >> So what am i missing. >> >> Regards, Huub >> >> LAYER >> METADATA >> wfs_type "gebouw" >> wfs_title "gebouw" >> gml_include_items "all" >> END >> >> FILTERITEM ID >> FILTER "id=623898" >> DEBUG ON >> DUMP TRUE >> STATUS OFF >> CONNECTIONTYPE oraclespatial >> CONNECTION "gv/gv@gv" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> DATA "GEOMETRIE FROM KBK.KBK_gebouw USING UNIQUE ID SRID 90112" >> NAME "gebouw" >> TYPE POLYGON >> CLASS >> STYLE >> SYMBOL "circle" >> SIZE 1 >> COLOR 255 0 0 >> OUTLINECOLOR 255 0 0 >> END >> END >> END >> > > > From hfl at HOME.NL Thu Aug 25 07:20:36 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:57 2008 Subject: WFS and Oracle In-Reply-To: Message-ID: oke results on monday. Regards, Huub Bart van den Eijnden wrote: >Huub, > >you need to compile mapserv with VC6, SP3 or SP4 minimal (one of the two, I can't remember exactly). Otherwise you get crashes on GetFeatureInfo or GetFeature with maporaclespatial. VC7 also does the trick. > > From fsimon at UNIVALI.BR Thu Aug 25 07:40:16 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri Feb 8 15:07:57 2008 Subject: WFS and Oracle In-Reply-To: Message-ID: Hi folks, The Oracle support for Mapserver need the Oracle Call Interfaces (OCI) libraries. Mapserver access Oracle Spatial directly by OCI, don't use ODBC. Using this way is more quickly to receive the results and the performance of the (maporaclespatial.c) is better. I recomment to compile Mapserver with Oracle Spatial using the VC6 with SP4, here I compiled using SP6 and didn't see problems. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Bart van den Eijnden wrote: >Huub, > >you need to compile mapserv with VC6, SP3 or SP4 minimal (one of the two, I can't remember exactly). Otherwise you get crashes on GetFeatureInfo or GetFeature with maporaclespatial. VC7 also does the trick. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > > >>>>Huub Fleuren 08/25/05 1:13 pm >>> >>>> >>>> >All compiling goes with vc6, no sp ((i think: i use a copy of the vc98 >directory :-), what happens there if i should run a service pack?) >Are you guessing it would be nessacary to run the sevice pack before >gdal succeeds in converting the retrieved dataset to GML? >Running an SP is something i can do of course. Results on monday. > >My guessing. > There are different stages in this: > Oracle must be accessed by mapserver, this goes oke, because it >needs to do that for WMS too, > this goes OK, because the same dataset shows up in the map. > It takes some time for mapserver to crash. I guess the dataset is >retrieved. How can i be sure? > If the dataset really was retrieved by mapserver GDAL 1.3 might not >be able GMLizes it? > On the other hand: the SHP was GMLized correctly (by GDAL?). > Maybe someone who really knows which components do what for which >connectiontype could make a better guess. > >A DescribeFeatureType works, GetFeatureInfo will be tried next monday. > >Regards, >Huub > >Bart van den Eijnden wrote: > > > >>Huub, >> >>which Visual Studio version did you compile with? If 6, which SP? >> >>Does a WMS GetFeatureInfo request work? >> >>Best regards, >>Bart >> >>On Wed, 24 Aug 2005 14:05:11 +0200, Huub Fleuren wrote: >> >> >> >>>Hi >>> >>>WFS experiments continue today on a Oracle 9 database. >>>I'm using a compile against Oracle 92 OCI in mapserver as well as >>>gdal1.3 >>>A wfs request on a test layer (SHP) give me all the data. >>> >>>A WMS request still runs fine on this Oracle layer, but >>>on Oracle mapserver crashes, even if i FILTER for only one record. >>> >>>WFS requests on Oracle Layers should work i think. >>>So what am i missing. >>> >>>Regards, Huub >>> >>>LAYER >>> METADATA >>> wfs_type "gebouw" >>> wfs_title "gebouw" >>> gml_include_items "all" >>> END >>> >>>FILTERITEM ID >>>FILTER "id=623898" >>> DEBUG ON >>> DUMP TRUE >>> STATUS OFF >>> CONNECTIONTYPE oraclespatial >>> CONNECTION "gv/gv@gv" >>> PROCESSING "CLOSE_CONNECTION=DEFER" >>> DATA "GEOMETRIE FROM KBK.KBK_gebouw USING UNIQUE ID SRID 90112" >>> NAME "gebouw" >>> TYPE POLYGON >>> CLASS >>> STYLE >>> SYMBOL "circle" >>> SIZE 1 >>> COLOR 255 0 0 >>> OUTLINECOLOR 255 0 0 >>> END >>> END >>>END >>> >>> >>> >> >> >> > > > From oubinny at HOTMAIL.COM Thu Aug 25 10:29:25 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:57 2008 Subject: wfs server problem Message-ID: Hi, I have a problem with my WFS server, i tried to configure it. My MapFile is correct : MAP NAME "Pays_nee_de_la_mer" DEBUG on SIZE 600 400 STATUS ON EXTENT 310559.98 2147175.0 335547.03 2176659.97 FONTSET "../data/fonts.txt" UNITS METERS SHAPEPATH "../data/data_map/" WEB IMAGEPATH 'C:/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' METADATA "wfs_title" "wfs Pays Ne de La Mer" "wfs_onlineresource" "http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" "wfs_srs" "epsg:27582" "wfs_feature_info_mime_type" "text/html" END END LAYER CONNECTIONTYPE OGR CONNECTION "../data/data_map/Parcelles.TAB" NAME "Parcelles" TYPE POLYGON STATUS ON #STYLEITEM "AUTO" CLASS NAME "Parcelles" TEMPLATE "ttt.html" STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 2 END END METADATA "wfs_title" "Parcelles" "wfs_srs" "epsg:27582" END PROJECTION "init=epsg:27582" END END And when i make a GetCapabilities, i have this kind of error for each layer : What's wrong with my server ? Thanks Mehdi From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 25 10:34:53 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: wfs server problem Message-ID: When you are doing a GetCapabilities, what is your URL? Do you add &service=WFS&request=GetCapabilities&version=1.0.0 ? otherwise probably the default is the WMS capabilities and you miss "wms_title" METADATA for that. If you want to be shorter, use the more general ows_title and leave out wfs_title and wms_title. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Mehdi Kiman 08/25/05 4:29 pm >>> Hi, I have a problem with my WFS server, i tried to configure it. My MapFile is correct : MAP NAME "Pays_nee_de_la_mer" DEBUG on SIZE 600 400 STATUS ON EXTENT 310559.98 2147175.0 335547.03 2176659.97 FONTSET "../data/fonts.txt" UNITS METERS SHAPEPATH "../data/data_map/" WEB IMAGEPATH 'C:/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' METADATA "wfs_title" "wfs Pays Ne de La Mer" "wfs_onlineresource" "http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" "wfs_srs" "epsg:27582" "wfs_feature_info_mime_type" "text/html" END END LAYER CONNECTIONTYPE OGR CONNECTION "../data/data_map/Parcelles.TAB" NAME "Parcelles" TYPE POLYGON STATUS ON #STYLEITEM "AUTO" CLASS NAME "Parcelles" TEMPLATE "ttt.html" STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 2 END END METADATA "wfs_title" "Parcelles" "wfs_srs" "epsg:27582" END PROJECTION "init=epsg:27582" END END And when i make a GetCapabilities, i have this kind of error for each layer : What's wrong with my server ? Thanks Mehdi From oubinny at HOTMAIL.COM Thu Aug 25 10:51:27 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:57 2008 Subject: wfs server problem In-Reply-To: Message-ID: I can have the same MapFile for using both WFS and WFS serveur ? >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Thu, 25 Aug 2005 16:34:53 +0200 > >When you are doing a GetCapabilities, what is your URL? > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 >? > >otherwise probably the default is the WMS capabilities and you miss >"wms_title" METADATA for that. If you want to be shorter, use the more >general ows_title and leave out wfs_title and wms_title. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> >Hi, > >I have a problem with my WFS server, i tried to configure it. >My MapFile is correct : >MAP >NAME "Pays_nee_de_la_mer" >DEBUG on >SIZE 600 400 >STATUS ON > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 >FONTSET "../data/fonts.txt" >UNITS METERS >SHAPEPATH "../data/data_map/" > >WEB > IMAGEPATH 'C:/tmp/ms_tmp/' > IMAGEURL '/ms_tmp/' > METADATA > "wfs_title" "wfs Pays Ne de La Mer" > "wfs_onlineresource" >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" > "wfs_srs" "epsg:27582" > "wfs_feature_info_mime_type" "text/html" > END >END > >LAYER > CONNECTIONTYPE OGR > CONNECTION "../data/data_map/Parcelles.TAB" > > NAME "Parcelles" > > TYPE POLYGON > STATUS ON > #STYLEITEM "AUTO" > > CLASS > NAME "Parcelles" > TEMPLATE "ttt.html" > STYLE > COLOR 255 255 0 > OUTLINECOLOR 0 0 2 > END > END > METADATA > "wfs_title" "Parcelles" > "wfs_srs" "epsg:27582" > END > PROJECTION > "init=epsg:27582" > END >END > >And when i make a GetCapabilities, i have this kind of error for each layer > : > > > >What's wrong with my server ? > > >Thanks >Mehdi > From carloseduardo at COSTARRICENSE.CR Thu Aug 25 10:52:29 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Fri Feb 8 15:07:57 2008 Subject: print option Message-ID: Thanks to everyone for your help about the print option. I'm using the example sent by Piero Cavalieri. It works fine but i have a problem with the library pdflib, because when i print a map, a message showing this "www.pdflib.com" is printed over the map crossing the page. I found this explanation in www.pdflib.com: "PDFlib, PDFlib+PDI, and PPS are distributed as one single binary package which is fully functional, but displays a demo stamp across all generated pages unless a valid license key is applied." I'm not sure if i have to buy the license key or there are some free options. Please tell me what i have to do.? From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 25 10:53:08 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: wfs server problem Message-ID: Yes, the same MAP file can serve both WMS and WFS. Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Mehdi Kiman 08/25/05 4:51 pm >>> I can have the same MapFile for using both WFS and WFS serveur ? >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Thu, 25 Aug 2005 16:34:53 +0200 > >When you are doing a GetCapabilities, what is your URL? > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 >? > >otherwise probably the default is the WMS capabilities and you miss >"wms_title" METADATA for that. If you want to be shorter, use the more >general ows_title and leave out wfs_title and wms_title. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> >Hi, > >I have a problem with my WFS server, i tried to configure it. >My MapFile is correct : >MAP >NAME "Pays_nee_de_la_mer" >DEBUG on >SIZE 600 400 >STATUS ON > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 >FONTSET "../data/fonts.txt" >UNITS METERS >SHAPEPATH "../data/data_map/" > >WEB > IMAGEPATH 'C:/tmp/ms_tmp/' > IMAGEURL '/ms_tmp/' > METADATA > "wfs_title" "wfs Pays Ne de La Mer" > "wfs_onlineresource" >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" > "wfs_srs" "epsg:27582" > "wfs_feature_info_mime_type" "text/html" > END >END > >LAYER > CONNECTIONTYPE OGR > CONNECTION "../data/data_map/Parcelles.TAB" > > NAME "Parcelles" > > TYPE POLYGON > STATUS ON > #STYLEITEM "AUTO" > > CLASS > NAME "Parcelles" > TEMPLATE "ttt.html" > STYLE > COLOR 255 255 0 > OUTLINECOLOR 0 0 2 > END > END > METADATA > "wfs_title" "Parcelles" > "wfs_srs" "epsg:27582" > END > PROJECTION > "init=epsg:27582" > END >END > >And when i make a GetCapabilities, i have this kind of error for each layer > : > > > >What's wrong with my server ? > > >Thanks >Mehdi > From d.huisman at INGBCC.NL Thu Aug 25 11:03:44 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Fri Feb 8 15:07:57 2008 Subject: print option Message-ID: Hi, Is used freeware pdflib from http://www.fpdf.org/ I never make a complete print function. Only draw a map. I haven't got time work it out. But there is enough information on http://www.fpdf.org/ best regards -----Oorspronkelijk bericht----- Van: Carlos Eduardo Sibaja Salazar [mailto:carloseduardo@COSTARRICENSE.CR] Verzonden: donderdag 25 augustus 2005 16:52 Aan: MAPSERVER-USERS@LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] print option Thanks to everyone for your help about the print option. I'm using the example sent by Piero Cavalieri. It works fine but i have a problem with the library pdflib, because when i print a map, a message showing this "www.pdflib.com" is printed over the map crossing the page. I found this explanation in www.pdflib.com: "PDFlib, PDFlib+PDI, and PPS are distributed as one single binary package which is fully functional, but displays a demo stamp across all generated pages unless a valid license key is applied." I'm not sure if i have to buy the license key or there are some free options. Please tell me what i have to do.? ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post@ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 25 11:07:05 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: wfs server problem Message-ID: You should add DUMP TRUE to your LAYER. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Mehdi Kiman" 08/25/05 5:04 pm >>> Now getCapabilities is ok. But when i make a http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles The WFS server output is msWFSGetFeature(): WFS server error. TYPENAME 'Parcelles' doesn't exist in this server. Please check the capabilities and reformulate your request. I'm so surprised beacause my getCapabilities return is correct. >From: "Bart van den Eijnden" >To: >CC: >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Thu, 25 Aug 2005 16:53:08 +0200 > >Yes, the same MAP file can serve both WMS and WFS. > >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/25/05 4:51 pm >>> >I can have the same MapFile for using both WFS and WFS serveur ? > > > > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Thu, 25 Aug 2005 16:34:53 +0200 > > > >When you are doing a GetCapabilities, what is your URL? > > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 > >? > > > >otherwise probably the default is the WMS capabilities and you miss > >"wms_title" METADATA for that. If you want to be shorter, use the more > >general ows_title and leave out wfs_title and wms_title. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> > >Hi, > > > >I have a problem with my WFS server, i tried to configure it. > >My MapFile is correct : > >MAP > >NAME "Pays_nee_de_la_mer" > >DEBUG on > >SIZE 600 400 > >STATUS ON > > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 > >FONTSET "../data/fonts.txt" > >UNITS METERS > >SHAPEPATH "../data/data_map/" > > > >WEB > > IMAGEPATH 'C:/tmp/ms_tmp/' > > IMAGEURL '/ms_tmp/' > > METADATA > > "wfs_title" "wfs Pays Ne de La Mer" > > "wfs_onlineresource" > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" > > "wfs_srs" "epsg:27582" > > "wfs_feature_info_mime_type" "text/html" > > END > >END > > > >LAYER > > CONNECTIONTYPE OGR > > CONNECTION "../data/data_map/Parcelles.TAB" > > > > NAME "Parcelles" > > > > TYPE POLYGON > > STATUS ON > > #STYLEITEM "AUTO" > > > > CLASS > > NAME "Parcelles" > > TEMPLATE "ttt.html" > > STYLE > > COLOR 255 255 0 > > OUTLINECOLOR 0 0 2 > > END > > END > > METADATA > > "wfs_title" "Parcelles" > > "wfs_srs" "epsg:27582" > > END > > PROJECTION > > "init=epsg:27582" > > END > >END > > > >And when i make a GetCapabilities, i have this kind of error for each >layer > > : > > > > > > > >What's wrong with my server ? > > > > > >Thanks > >Mehdi > > > From oubinny at HOTMAIL.COM Thu Aug 25 11:14:22 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:57 2008 Subject: wfs server problem In-Reply-To: Message-ID: Sorry i do that but i have always the same problem >From: "Bart van den Eijnden" >To: >CC: >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Thu, 25 Aug 2005 17:07:05 +0200 > >You should add DUMP TRUE to your LAYER. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> "Mehdi Kiman" 08/25/05 5:04 pm >>> >Now getCapabilities is ok. But when i make a >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles > >The WFS server output is >msWFSGetFeature(): WFS server error. TYPENAME 'Parcelles' >doesn't exist in this server. Please check the capabilities and reformulate >your request. > >I'm so surprised beacause my getCapabilities return is correct. > > >From: "Bart van den Eijnden" > >To: > >CC: > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Thu, 25 Aug 2005 16:53:08 +0200 > > > >Yes, the same MAP file can serve both WMS and WFS. > > > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> Mehdi Kiman 08/25/05 4:51 pm >>> > >I can have the same MapFile for using both WFS and WFS serveur ? > > > > > > > > > > >From: "Bart van den Eijnden" > > >To: , > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > > >Date: Thu, 25 Aug 2005 16:34:53 +0200 > > > > > >When you are doing a GetCapabilities, what is your URL? > > > > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 > > >? > > > > > >otherwise probably the default is the WMS capabilities and you miss > > >"wms_title" METADATA for that. If you want to be shorter, use the more > > >general ows_title and leave out wfs_title and wms_title. > > > > > >Best regards, > > >Bart > > > > > >Bart van den Eijnden > > >Syncera IT Solutions > > >Postbus 270 > > >2600 AG DELFT > > > > > >tel.nr.: 015-7512436 > > >email: BEN@Syncera-ITSolutions.nl > > > > > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> > > >Hi, > > > > > >I have a problem with my WFS server, i tried to configure it. > > >My MapFile is correct : > > >MAP > > >NAME "Pays_nee_de_la_mer" > > >DEBUG on > > >SIZE 600 400 > > >STATUS ON > > > > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 > > >FONTSET "../data/fonts.txt" > > >UNITS METERS > > >SHAPEPATH "../data/data_map/" > > > > > >WEB > > > IMAGEPATH 'C:/tmp/ms_tmp/' > > > IMAGEURL '/ms_tmp/' > > > METADATA > > > "wfs_title" "wfs Pays Ne de La Mer" > > > "wfs_onlineresource" > > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" > > > "wfs_srs" "epsg:27582" > > > "wfs_feature_info_mime_type" "text/html" > > > END > > >END > > > > > >LAYER > > > CONNECTIONTYPE OGR > > > CONNECTION "../data/data_map/Parcelles.TAB" > > > > > > NAME "Parcelles" > > > > > > TYPE POLYGON > > > STATUS ON > > > #STYLEITEM "AUTO" > > > > > > CLASS > > > NAME "Parcelles" > > > TEMPLATE "ttt.html" > > > STYLE > > > COLOR 255 255 0 > > > OUTLINECOLOR 0 0 2 > > > END > > > END > > > METADATA > > > "wfs_title" "Parcelles" > > > "wfs_srs" "epsg:27582" > > > END > > > PROJECTION > > > "init=epsg:27582" > > > END > > >END > > > > > >And when i make a GetCapabilities, i have this kind of error for each > >layer > > > : > > > > > > > > > > > >What's wrong with my server ? > > > > > > > > >Thanks > > >Mehdi > > > > > > > > From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 25 11:14:13 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: print option Message-ID: There is also a very extended print functionality in Chameleon based on PHP/Mapscript. See www.maptools.org/chameleon Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Dirk-Jan Huisman 08/25/05 5:03 pm >>> Hi, Is used freeware pdflib from http://www.fpdf.org/ I never make a complete print function. Only draw a map. I haven't got time work it out. But there is enough information on http://www.fpdf.org/ best regards -----Oorspronkelijk bericht----- Van: Carlos Eduardo Sibaja Salazar [mailto:carloseduardo@COSTARRICENSE.CR] Verzonden: donderdag 25 augustus 2005 16:52 Aan: MAPSERVER-USERS@LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] print option Thanks to everyone for your help about the print option. I'm using the example sent by Piero Cavalieri. It works fine but i have a problem with the library pdflib, because when i print a map, a message showing this "www.pdflib.com" is printed over the map crossing the page. I found this explanation in www.pdflib.com: "PDFlib, PDFlib+PDI, and PPS are distributed as one single binary package which is fully functional, but displays a demo stamp across all generated pages unless a valid license key is applied." I'm not sure if i have to buy the license key or there are some free options. Please tell me what i have to do.? ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post@ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From carloseduardo at COSTARRICENSE.CR Thu Aug 25 11:16:41 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Fri Feb 8 15:07:57 2008 Subject: To Frank Barrett Message-ID: Hi Frank. I'll try to explain you what did i do. 1) I didn't work with the Apache provided by default in suse. I downloaded the source of the Apache 2.0.52 version. I install apache with somethig like this: ./configure --prefix=/usr/local/apache make make install 2) Then i installed php 5.0.3 with: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-regex=system --with-mysql --with-pgsql --with-gd=/usr/local/gd --with-jpeg-dir=/usr/local/jpeg --with-zlib-dir=/home/carloseduardo/Servidor/php5/php-5.0.3/ext/zlib --with-freetype-dir=/usr/local/freetype make make install You need to read the Readme files in the source of php to be sure that is installed good. 3) Then i installed mapserver 4.4.1 with something like this: ./configure --with-wmsclient --with-gd --with-freetype --with-png --with-proj --with-gdal --with-tiff --with-postgis --with-php=/home/carloseduardo/Servidor/php5/php-5.0.3/ make make install Then i copied the mapserv file to /usr/local/apache/cgi-bin/ and the php_mapscript.so to the extensions directory established in the php.ini file. In my case is /usr/local/php/extensions/ To be sure that php_mapscript is installed fine, you need to execute a php file with this code: One of the tables showed in the page have to be about Mapscript. I hope this can help you. And excuse me for my poor english. Carlos From BEN at SYNCERA-ITSOLUTIONS.NL Thu Aug 25 11:17:25 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:57 2008 Subject: wfs server problem Message-ID: Is this typename in your WFS GetCapabilities response (can you post it to the list)? Try also adding TEMPLATE "blank.html" to your LAYER. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Mehdi Kiman 08/25/05 5:14 pm >>> Sorry i do that but i have always the same problem >From: "Bart van den Eijnden" >To: >CC: >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Thu, 25 Aug 2005 17:07:05 +0200 > >You should add DUMP TRUE to your LAYER. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> "Mehdi Kiman" 08/25/05 5:04 pm >>> >Now getCapabilities is ok. But when i make a >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles > >The WFS server output is >msWFSGetFeature(): WFS server error. TYPENAME 'Parcelles' >doesn't exist in this server. Please check the capabilities and reformulate >your request. > >I'm so surprised beacause my getCapabilities return is correct. > > >From: "Bart van den Eijnden" > >To: > >CC: > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Thu, 25 Aug 2005 16:53:08 +0200 > > > >Yes, the same MAP file can serve both WMS and WFS. > > > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> Mehdi Kiman 08/25/05 4:51 pm >>> > >I can have the same MapFile for using both WFS and WFS serveur ? > > > > > > > > > > >From: "Bart van den Eijnden" > > >To: , > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > > >Date: Thu, 25 Aug 2005 16:34:53 +0200 > > > > > >When you are doing a GetCapabilities, what is your URL? > > > > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 > > >? > > > > > >otherwise probably the default is the WMS capabilities and you miss > > >"wms_title" METADATA for that. If you want to be shorter, use the more > > >general ows_title and leave out wfs_title and wms_title. > > > > > >Best regards, > > >Bart > > > > > >Bart van den Eijnden > > >Syncera IT Solutions > > >Postbus 270 > > >2600 AG DELFT > > > > > >tel.nr.: 015-7512436 > > >email: BEN@Syncera-ITSolutions.nl > > > > > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> > > >Hi, > > > > > >I have a problem with my WFS server, i tried to configure it. > > >My MapFile is correct : > > >MAP > > >NAME "Pays_nee_de_la_mer" > > >DEBUG on > > >SIZE 600 400 > > >STATUS ON > > > > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 > > >FONTSET "../data/fonts.txt" > > >UNITS METERS > > >SHAPEPATH "../data/data_map/" > > > > > >WEB > > > IMAGEPATH 'C:/tmp/ms_tmp/' > > > IMAGEURL '/ms_tmp/' > > > METADATA > > > "wfs_title" "wfs Pays Ne de La Mer" > > > "wfs_onlineresource" > > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" > > > "wfs_srs" "epsg:27582" > > > "wfs_feature_info_mime_type" "text/html" > > > END > > >END > > > > > >LAYER > > > CONNECTIONTYPE OGR > > > CONNECTION "../data/data_map/Parcelles.TAB" > > > > > > NAME "Parcelles" > > > > > > TYPE POLYGON > > > STATUS ON > > > #STYLEITEM "AUTO" > > > > > > CLASS > > > NAME "Parcelles" > > > TEMPLATE "ttt.html" > > > STYLE > > > COLOR 255 255 0 > > > OUTLINECOLOR 0 0 2 > > > END > > > END > > > METADATA > > > "wfs_title" "Parcelles" > > > "wfs_srs" "epsg:27582" > > > END > > > PROJECTION > > > "init=epsg:27582" > > > END > > >END > > > > > >And when i make a GetCapabilities, i have this kind of error for each > >layer > > > : > > > > > > > > > > > >What's wrong with my server ? > > > > > > > > >Thanks > > >Mehdi > > > > > > > > From fwarmerdam at GMAIL.COM Thu Aug 25 11:21:55 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:58 2008 Subject: Filter layer with MS/SQL based attribute ? b=SMftptmlbsr0DT00M4m7daF/51hDTSm35WHy/94yZIRDphDM0FPGm2tkV1LmtdgbMd5Vk1cBJixCTDeM2f2H/VzIAA9atB3PtyMnroddAltBA7JFses2z3tneVcXv7BSmrrfwOvY116jp4A09d2p0c6uc3Z20p/gGI39T b=IWJCkvYh35 In-Reply-To: <001201c5a94e$be327c10$5101a8c0@odin> Message-ID: On 8/25/05, Lars V. Nielsen (Hvenegaard) wrote: > Hi Frank, > > My point about the left join was that a failed lookup didn't remove the > feature, it just added (random/null/arbitrary) values. I was looking for it > to filter. It's not a bug as I see it, just a clarification of it's purpose. > However, I do see some random values being added, that may be a bug. Lars, Ah right. This is by design, so no point in filing a bug. I realize it isn't necessarily correct according to the SQL spec. Um, well if you do see random values that sounds like a bug and is worth a bug if you think you can provide a demonstration case I can reproduce fairly easily. > The non A-Z character I was referring to was not digits but Danish > characters (??????). I.e. ascii values from the 128-255 range. They're valid > in MS/SQL, but apparently the OGR SQL parser doesn't support them. Ah, that makes sense. Indeed now that I think about it my OGR SQL tokenizer is far to restrictive. If you file a bug against OGR about this, I will fix it. > You didn't comment on this item: does the OGR SQL Parser support views and > not just tables ? It seems to report "not found" whenever I try to enter a > view instead of a table. The OGR SQL allows table-like access to anything already identified by the underlying OGR driver as a layer. If "ogrinfo" doesn't see it as a layer, then it won't be accessable from OGR SQL. So the question might instead be does the OGR ODBC driver show treat views as tables. I'm afraid I am not sure of the answer to this. I think I tried list to views as well, but I am pretty sure that you can operate on views if you list the view name in the "table list" in the connection string. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From piero.cavalieri at HEIDI.IT Thu Aug 25 11:22:35 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri Feb 8 15:07:58 2008 Subject: print option Message-ID: PdfLib isn't free. You have to buy a license if you want to remove the banner. There should be also a Lite version, which as some limitations respect full version (no .NET bindings for example). This version is free under certain circustances (and don't have the banner). If you can't use pdflib, in php manual, when talking about pdf, there are links to other free pdflib libraries (of course you will have to rewrite code from scratch). I think you could try them too, and then decide what's the best option for you. Cheers Piero Carlos Eduardo Sibaja Salazar wrote: >Thanks to everyone for your help about the print option. >I'm using the example sent by Piero Cavalieri. It works fine but i have a >problem with the library pdflib, because when i print a map, a message >showing this "www.pdflib.com" is printed over the map crossing the page. > >I found this explanation in www.pdflib.com: >"PDFlib, PDFlib+PDI, and PPS are distributed as one single binary package >which is fully functional, but displays a demo stamp across all generated >pages unless a valid license key is applied." > >I'm not sure if i have to buy the license key or there are some free >options. > >Please tell me what i have to do.? > From oubinny at HOTMAIL.COM Thu Aug 25 11:36:12 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: i have a TEMPLATE "ttt.html" for each layer of my MapFile, and the getCapabilities response is : ]> OGC:WMS WFS Pays Ne de La Mer application/vnd.ogc.wms_xml image/gif image/png image/jpeg image/wbmp image/tiff text/plain text/html application/vnd.ogc.gml text/xml image/gif image/png image/jpeg image/wbmp application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank Pays_nee_de_la_mer WFS Pays Ne de La Mer epsg:27582 BD_ortho BD_ortho epsg:27582 Contours_de_communes Contours_de_communes epsg:27582 Parcelles Parcelles epsg:27582 Routes Routes epsg:27582 Sections_cadastrales SectionsCadastrales epsg:27582 >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Thu, 25 Aug 2005 17:17:25 +0200 > >Is this typename in your WFS GetCapabilities response (can you post it to >the list)? > >Try also adding TEMPLATE "blank.html" to your LAYER. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/25/05 5:14 pm >>> >Sorry i do that but i have always the same problem > > >From: "Bart van den Eijnden" > >To: > >CC: > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Thu, 25 Aug 2005 17:07:05 +0200 > > > >You should add DUMP TRUE to your LAYER. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> "Mehdi Kiman" 08/25/05 5:04 pm >>> > >Now getCapabilities is ok. But when i make a > >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles > > > >The WFS server output is > >msWFSGetFeature(): WFS server error. TYPENAME >'Parcelles' > >doesn't exist in this server. Please check the capabilities and >reformulate > >your request. > > > >I'm so surprised beacause my getCapabilities return is correct. > > > > >From: "Bart van den Eijnden" > > >To: > > >CC: > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > > >Date: Thu, 25 Aug 2005 16:53:08 +0200 > > > > > >Yes, the same MAP file can serve both WMS and WFS. > > > > > >Bart > > > > > >Bart van den Eijnden > > >Syncera IT Solutions > > >Postbus 270 > > >2600 AG DELFT > > > > > >tel.nr.: 015-7512436 > > >email: BEN@Syncera-ITSolutions.nl > > > > > > >>> Mehdi Kiman 08/25/05 4:51 pm >>> > > >I can have the same MapFile for using both WFS and WFS serveur ? > > > > > > > > > > > > > > > >From: "Bart van den Eijnden" > > > >To: , > > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > > > >Date: Thu, 25 Aug 2005 16:34:53 +0200 > > > > > > > >When you are doing a GetCapabilities, what is your URL? > > > > > > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 > > > >? > > > > > > > >otherwise probably the default is the WMS capabilities and you miss > > > >"wms_title" METADATA for that. If you want to be shorter, use the >more > > > >general ows_title and leave out wfs_title and wms_title. > > > > > > > >Best regards, > > > >Bart > > > > > > > >Bart van den Eijnden > > > >Syncera IT Solutions > > > >Postbus 270 > > > >2600 AG DELFT > > > > > > > >tel.nr.: 015-7512436 > > > >email: BEN@Syncera-ITSolutions.nl > > > > > > > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> > > > >Hi, > > > > > > > >I have a problem with my WFS server, i tried to configure it. > > > >My MapFile is correct : > > > >MAP > > > >NAME "Pays_nee_de_la_mer" > > > >DEBUG on > > > >SIZE 600 400 > > > >STATUS ON > > > > > > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 > > > >FONTSET "../data/fonts.txt" > > > >UNITS METERS > > > >SHAPEPATH "../data/data_map/" > > > > > > > >WEB > > > > IMAGEPATH 'C:/tmp/ms_tmp/' > > > > IMAGEURL '/ms_tmp/' > > > > METADATA > > > > "wfs_title" "wfs Pays Ne de La Mer" > > > > "wfs_onlineresource" > > > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" > > > > "wfs_srs" "epsg:27582" > > > > "wfs_feature_info_mime_type" "text/html" > > > > END > > > >END > > > > > > > >LAYER > > > > CONNECTIONTYPE OGR > > > > CONNECTION "../data/data_map/Parcelles.TAB" > > > > > > > > NAME "Parcelles" > > > > > > > > TYPE POLYGON > > > > STATUS ON > > > > #STYLEITEM "AUTO" > > > > > > > > CLASS > > > > NAME "Parcelles" > > > > TEMPLATE "ttt.html" > > > > STYLE > > > > COLOR 255 255 0 > > > > OUTLINECOLOR 0 0 2 > > > > END > > > > END > > > > METADATA > > > > "wfs_title" "Parcelles" > > > > "wfs_srs" "epsg:27582" > > > > END > > > > PROJECTION > > > > "init=epsg:27582" > > > > END > > > >END > > > > > > > >And when i make a GetCapabilities, i have this kind of error for each > > >layer > > > > : > > > > > > > > > > > > > > > >What's wrong with my server ? > > > > > > > > > > > >Thanks > > > >Mehdi > > > > > > > > > > > > > From jzeisloft at GMAIL.COM Thu Aug 25 11:39:58 2005 From: jzeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Fri Feb 8 15:07:58 2008 Subject: Making a WMS layer queryable In-Reply-To: Message-ID: Hi Bart- I added DUMP TRUE to the map file. I do get some sort of result for that layer: *Bluff Profiles* Feature: Bluff_Profile_feature but it isn't the result I'm looking for - it doesn't seem to be accessing the attribute table at all. Do I need to add something else, perhaps to the Layer Metadata? I guess I'm wondering how MapServer knows that GetFeatureInfo is being requested. Perhaps this is also a Chameleon issue? (I am also looking into WFS to see if that might be a practical route.) I really appreciate the help. Thanks! Jennifer Zeisloft UW Sea Grant On 8/25/05, Bart van den Eijnden wrote: > > This is not true, WMS has GetFeatureInfo which shows attribute info for a > feature. > > Jennifer, have you tried adding DUMP TRUE? > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > > >>> Ethan Alpert 08/25/05 12:55 am >>> > You need WFS for querying feature attributes. > > -e > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Jennifer Zeisloft > Sent: Wednesday, August 24, 2005 4:13 PM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Making a WMS layer queryable > > > Hello All- > > I am attempting to serve a WMS layer that I would like to be > queryable (using the identify feature button/Query widget from > Chameleon). The layer appears as it should when brought into a map, but > is not queryable, despite what it says in the layer information popup > window. Other layers brought into the same map through other servers > are queryable. I have searched the documentation and lists, but haven't > been able to find any answers. Do I need to add something extra to the > mapfile (layer portion is pasted below)? Both the context and > capabilities xml files show that the layer is queryable (=1) and I have > increased the tolerance ridiculously just to make sure a click hits on > the point. Any suggestions would be greatly appreciated! Thanks in > advance for your help. > > Jennifer Zeisloft > UW Sea Grant > > ------------------------------------- > > LAYER > NAME Bluff_Profile > STATUS ON > TYPE POINT > DATA bluffg > TEMPLATE "ttt_query.html" > TOLERANCE 500 > TOLERANCEUNITS PIXELS > MAXSCALE 300000 > PROJECTION > "init=epsg:4326" > END > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "Bluff_Profile" > "wms_title" "Bluff Profiles" > "wms_abstract" "TBA" > "wms_keywordlist" "Lake Superior" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/png,image/jpeg,image/wbmp" > "wms_format" "image/png" > "wms_onlineresource" > "http://144.92.46.35/cgi-bin/mapserv.exe?map=C:\ms4w\apps\chameleon\lscm > p\map\wlscmp_wms.map& " > END > CLASS > SYMBOL 'circle' > COLOR 255 166 0 > SIZE 6 > END > END > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050825/3528c777/attachment.html From rcolwell at WILLCOUNTYILLINOIS.COM Thu Aug 25 12:04:48 2005 From: rcolwell at WILLCOUNTYILLINOIS.COM (Rebecca Colwell) Date: Fri Feb 8 15:07:58 2008 Subject: Multiple Layer Queries Message-ID: Hi Everybody, I'm working on a new mapserver app after a long hiatus. I'd like to query two layers (Parcels and Zoning Districts)and have their attributes shown in the QueryResults_template.html. I'm using NQUERY, but am still only getting results from one layer in the results table. I know this is not a new question, but I'm having a hard time deciphering all the necessary steps from the tutorial, and haven't found the answers on previous list posts. I don?t understand header/footer files. In case that?s part of the answer, please share their significance in the process. Any help would be most appreciated. I'll post my queryResults_template.html below in case that'll help unlock the mystery. Thanks! ~Becky Airport Query Results 2005 Will County Regional Airport




Parcel # [PIN]
Owner(s) [OWNER_1]
Address [STREET]
City/State/Zip [CITY], [ZIP1]
Township [TWP_NAME]
Zowning District [ZONE_TYPE]

Sale Date
Sale Amount
Acreage [ACREAGE] acres

From luca.casagrande at GMAIL.COM Thu Aug 25 12:14:07 2005 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Fri Feb 8 15:07:58 2008 Subject: freegis-wiki.it UP..Need help! Message-ID: Hi to all guys! Today i have put up my site, a resources for all italian gis user. Is there any one that can contribute to the mapserver section? All the material will be forward to the main MAPSERVER site (no italian doc inside :( )... Ceck the site www.freegis-wiki.it/wiki/index.php Luca Casagrande -- "Il vero svantaggio del matrimonio ? che rende altruisti. E le persone altruiste sono insignificanti. Mancano di individualit?" Utente Linux 373965 ICQ 54327636 From bartvde at XS4ALL.NL Thu Aug 25 13:45:00 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: These are WMS Capabilities, not WFS capabilities. Add &service=WMS to your GetCapabilities URL. Bart On Thu, 25 Aug 2005 17:36:12 +0200, Mehdi Kiman wrote: > i have a TEMPLATE "ttt.html" for each layer of my MapFile, and the > getCapabilities response is : > > > > "http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd" > [ > > ]> > > > > > > > OGC:WMS > WFS Pays Ne de La Mer > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > > Service> > > > > > application/vnd.ogc.wms_xml > > > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > > > > > image/gif > image/png > image/jpeg > image/wbmp > image/tiff > > > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > > > > > text/plain > text/html > application/vnd.ogc.gml > > > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > > > > > text/xml > > > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > > > > > image/gif > image/png > image/jpeg > image/wbmp > > > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> > > > > > > application/vnd.ogc.se_xml > application/vnd.ogc.se_inimage > application/vnd.ogc.se_blank > > > RemoteWFS="0"/> > > Pays_nee_de_la_mer > WFS Pays Ne de La Mer > epsg:27582 > maxy="46.5377" /> > minx="310560" miny="2.14718e+006" maxx="335547" > maxy="2.17666e+006" /> > > BD_ortho > BD_ortho > epsg:27582 > > > > Contours_de_communes > Contours_de_communes > epsg:27582 > maxy="46.4928" /> > minx="314402" miny="2.14868e+006" maxx="330976" > maxy="2.17185e+006" /> > > > > Parcelles > Parcelles > epsg:27582 > maxx="-1.15476" maxy="46.4732" /> > minx="308900" miny="2.1478e+006" maxx="330948" > maxy="2.16968e+006" /> > > > > Routes > Routes > epsg:27582 > maxx="-1.09479" maxy="46.5377" /> > minx="310560" miny="2.14718e+006" maxx="335547" > maxy="2.17666e+006" /> > > > > Sections_cadastrales > SectionsCadastrales > epsg:27582 > maxx="-1.15657" maxy="46.4733" /> > minx="320761" miny="2.15157e+006" maxx="330976" > maxy="2.16969e+006" /> > > > > > > > > >> From: "Bart van den Eijnden" >> To: , >> Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >> Date: Thu, 25 Aug 2005 17:17:25 +0200 >> >> Is this typename in your WFS GetCapabilities response (can you post it >> to the list)? >> >> Try also adding TEMPLATE "blank.html" to your LAYER. >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN@Syncera-ITSolutions.nl >> >> >>> Mehdi Kiman 08/25/05 5:14 pm >>> >> Sorry i do that but i have always the same problem >> >> >From: "Bart van den Eijnden" >> >To: >> >CC: >> >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >> >Date: Thu, 25 Aug 2005 17:07:05 +0200 >> > >> >You should add DUMP TRUE to your LAYER. >> > >> >Best regards, >> >Bart >> > >> >Bart van den Eijnden >> >Syncera IT Solutions >> >Postbus 270 >> >2600 AG DELFT >> > >> >tel.nr.: 015-7512436 >> >email: BEN@Syncera-ITSolutions.nl >> > >> > >>> "Mehdi Kiman" 08/25/05 5:04 pm >>> >> >Now getCapabilities is ok. But when i make a >> >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles >> > >> >The WFS server output is >> >msWFSGetFeature(): WFS server error. TYPENAME >> 'Parcelles' >> >doesn't exist in this server. Please check the capabilities and >> reformulate >> >your request. >> > >> >I'm so surprised beacause my getCapabilities return is correct. >> > >> > >From: "Bart van den Eijnden" >> > >To: >> > >CC: >> > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >> > >Date: Thu, 25 Aug 2005 16:53:08 +0200 >> > > >> > >Yes, the same MAP file can serve both WMS and WFS. >> > > >> > >Bart >> > > >> > >Bart van den Eijnden >> > >Syncera IT Solutions >> > >Postbus 270 >> > >2600 AG DELFT >> > > >> > >tel.nr.: 015-7512436 >> > >email: BEN@Syncera-ITSolutions.nl >> > > >> > > >>> Mehdi Kiman 08/25/05 4:51 pm >>> >> > >I can have the same MapFile for using both WFS and WFS serveur ? >> > > >> > > >> > > >> > > >> > > >From: "Bart van den Eijnden" >> > > >To: , >> > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >> > > >Date: Thu, 25 Aug 2005 16:34:53 +0200 >> > > > >> > > >When you are doing a GetCapabilities, what is your URL? >> > > > >> > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 >> > > >? >> > > > >> > > >otherwise probably the default is the WMS capabilities and you miss >> > > >"wms_title" METADATA for that. If you want to be shorter, use the >> more >> > > >general ows_title and leave out wfs_title and wms_title. >> > > > >> > > >Best regards, >> > > >Bart >> > > > >> > > >Bart van den Eijnden >> > > >Syncera IT Solutions >> > > >Postbus 270 >> > > >2600 AG DELFT >> > > > >> > > >tel.nr.: 015-7512436 >> > > >email: BEN@Syncera-ITSolutions.nl >> > > > >> > > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> >> > > >Hi, >> > > > >> > > >I have a problem with my WFS server, i tried to configure it. >> > > >My MapFile is correct : >> > > >MAP >> > > >NAME "Pays_nee_de_la_mer" >> > > >DEBUG on >> > > >SIZE 600 400 >> > > >STATUS ON >> > > > >> > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 >> > > >FONTSET "../data/fonts.txt" >> > > >UNITS METERS >> > > >SHAPEPATH "../data/data_map/" >> > > > >> > > >WEB >> > > > IMAGEPATH 'C:/tmp/ms_tmp/' >> > > > IMAGEURL '/ms_tmp/' >> > > > METADATA >> > > > "wfs_title" "wfs Pays Ne de La Mer" >> > > > "wfs_onlineresource" >> > > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" >> > > > "wfs_srs" "epsg:27582" >> > > > "wfs_feature_info_mime_type" "text/html" >> > > > END >> > > >END >> > > > >> > > >LAYER >> > > > CONNECTIONTYPE OGR >> > > > CONNECTION "../data/data_map/Parcelles.TAB" >> > > > >> > > > NAME "Parcelles" >> > > > >> > > > TYPE POLYGON >> > > > STATUS ON >> > > > #STYLEITEM "AUTO" >> > > > >> > > > CLASS >> > > > NAME "Parcelles" >> > > > TEMPLATE "ttt.html" >> > > > STYLE >> > > > COLOR 255 255 0 >> > > > OUTLINECOLOR 0 0 2 >> > > > END >> > > > END >> > > > METADATA >> > > > "wfs_title" "Parcelles" >> > > > "wfs_srs" "epsg:27582" >> > > > END >> > > > PROJECTION >> > > > "init=epsg:27582" >> > > > END >> > > >END >> > > > >> > > >And when i make a GetCapabilities, i have this kind of error for >> each >> > >layer >> > > > : >> > > > >> > > > >> > > > >> > > >What's wrong with my server ? >> > > > >> > > > >> > > >Thanks >> > > >Mehdi >> > > > >> > > >> > >> > >> > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Thu Aug 25 13:46:00 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:58 2008 Subject: Making a WMS layer queryable In-Reply-To: <817c010105082508394732b81c@mail.gmail.com> Message-ID: Try adding gml_include_items "all" to your LAYER's METADATA. Best regards, Bart On Thu, 25 Aug 2005 17:39:58 +0200, Jennifer Zeisloft wrote: > Hi Bart- > > I added DUMP TRUE to the map file. I do get some sort of result for that > layer: > > *Bluff Profiles* > Feature: > > Bluff_Profile_feature > but it isn't the result I'm looking for - it doesn't seem to be accessing > the attribute table at all. Do I need to add something else, perhaps to > the > Layer Metadata? I guess I'm wondering how MapServer knows that > GetFeatureInfo is being requested. > > Perhaps this is also a Chameleon issue? (I am also looking into WFS to > see > if that might be a practical route.) > > I really appreciate the help. Thanks! > > Jennifer Zeisloft > UW Sea Grant > > On 8/25/05, Bart van den Eijnden wrote: >> >> This is not true, WMS has GetFeatureInfo which shows attribute info for >> a >> feature. >> >> Jennifer, have you tried adding DUMP TRUE? >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera IT Solutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr .: 015-7512436 >> email: BEN@Syncera-ITSolutions.nl >> >> >>> Ethan Alpert 08/25/05 12:55 am >>> >> You need WFS for querying feature attributes. >> >> -e >> >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Jennifer Zeisloft >> Sent: Wednesday, August 24, 2005 4:13 PM >> To: MAPSERVER-USERS@LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Making a WMS layer queryable >> >> >> Hello All- >> >> I am attempting to serve a WMS layer that I would like to be >> queryable (using the identify feature button/Query widget from >> Chameleon). The layer appears as it should when brought into a map, but >> is not queryable, despite what it says in the layer information popup >> window. Other layers brought into the same map through other servers >> are queryable. I have searched the documentation and lists, but haven't >> been able to find any answers. Do I need to add something extra to the >> mapfile (layer portion is pasted below)? Both the context and >> capabilities xml files show that the layer is queryable (=1) and I have >> increased the tolerance ridiculously just to make sure a click hits on >> the point. Any suggestions would be greatly appreciated! Thanks in >> advance for your help. >> >> Jennifer Zeisloft >> UW Sea Grant >> >> ------------------------------------- >> >> LAYER >> NAME Bluff_Profile >> STATUS ON >> TYPE POINT >> DATA bluffg >> TEMPLATE "ttt_query.html" >> TOLERANCE 500 >> TOLERANCEUNITS PIXELS >> MAXSCALE 300000 >> PROJECTION >> "init=epsg:4326" >> END >> METADATA >> "wms_srs" "EPSG:4326" >> "wms_name" "Bluff_Profile" >> "wms_title" "Bluff Profiles" >> "wms_abstract" "TBA" >> "wms_keywordlist" "Lake Superior" >> "wms_server_version" "1.1.1" >> "wms_formatlist" "image/png,image/jpeg,image/wbmp" >> "wms_format" "image/png" >> "wms_onlineresource" >> "http://144.92.46.35/cgi-bin/mapserv.exe?map=C:\ms4w\apps\chameleon\lscm >> p\map\wlscmp_wms.map& " >> END >> CLASS >> SYMBOL 'circle' >> COLOR 255 166 0 >> SIZE 6 >> END >> END >> >> -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Thu Aug 25 13:51:52 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: Ofcourse I meant: Add &service=WFS to your GetCapabilities URL. :-) Bart On Thu, 25 Aug 2005 19:45:00 +0200, Bart van den Eijnden wrote: > These are WMS Capabilities, not WFS capabilities. > > Add &service=WMS to your GetCapabilities URL. > > Bart > > On Thu, 25 Aug 2005 17:36:12 +0200, Mehdi Kiman > wrote: > >> i have a TEMPLATE "ttt.html" for each layer of my MapFile, and the >> getCapabilities response is : >> >> >> >> > "http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd" >> [ >> >> ]> >> >> >> >> >> >> >> OGC:WMS >> WFS Pays Ne de La Mer >> > xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> > >> Service> >> >> >> >> >> application/vnd.ogc.wms_xml >> >> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> image/gif >> image/png >> image/jpeg >> image/wbmp >> image/tiff >> >> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> text/plain >> text/html >> application/vnd.ogc.gml >> >> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> text/xml >> >> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> image/gif >> image/png >> image/jpeg >> image/wbmp >> >> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> > xmlns:xlink="http://www.w3.org/1999/xlink" >> xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> >> application/vnd.ogc.se_xml >> application/vnd.ogc.se_inimage >> application/vnd.ogc.se_blank >> >> >> > RemoteWFS="0"/> >> >> Pays_nee_de_la_mer >> WFS Pays Ne de La Mer >> epsg:27582 >> > maxy="46.5377" /> >> > minx="310560" miny="2.14718e+006" maxx="335547" >> maxy="2.17666e+006" /> >> >> BD_ortho >> BD_ortho >> epsg:27582 >> >> >> >> Contours_de_communes >> Contours_de_communes >> epsg:27582 >> > maxx="-1.1549" maxy="46.4928" /> >> > minx="314402" miny="2.14868e+006" maxx="330976" >> maxy="2.17185e+006" /> >> >> >> >> Parcelles >> Parcelles >> epsg:27582 >> > maxx="-1.15476" maxy="46.4732" /> >> > minx="308900" miny="2.1478e+006" maxx="330948" >> maxy="2.16968e+006" /> >> >> >> >> Routes >> Routes >> epsg:27582 >> > maxx="-1.09479" maxy="46.5377" /> >> > minx="310560" miny="2.14718e+006" maxx="335547" >> maxy="2.17666e+006" /> >> >> >> >> Sections_cadastrales >> SectionsCadastrales >> epsg:27582 >> > maxx="-1.15657" maxy="46.4733" /> >> > minx="320761" miny="2.15157e+006" maxx="330976" >> maxy="2.16969e+006" /> >> >> >> >> >> >> >> >> >>> From: "Bart van den Eijnden" >>> To: , >>> Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> Date: Thu, 25 Aug 2005 17:17:25 +0200 >>> >>> Is this typename in your WFS GetCapabilities response (can you post it >>> to the list)? >>> >>> Try also adding TEMPLATE "blank.html" to your LAYER. >>> >>> Best regards, >>> Bart >>> >>> Bart van den Eijnden >>> Syncera IT Solutions >>> Postbus 270 >>> 2600 AG DELFT >>> >>> tel.nr.: 015-7512436 >>> email: BEN@Syncera-ITSolutions.nl >>> >>> >>> Mehdi Kiman 08/25/05 5:14 pm >>> >>> Sorry i do that but i have always the same problem >>> >>> >From: "Bart van den Eijnden" >>> >To: >>> >CC: >>> >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> >Date: Thu, 25 Aug 2005 17:07:05 +0200 >>> > >>> >You should add DUMP TRUE to your LAYER. >>> > >>> >Best regards, >>> >Bart >>> > >>> >Bart van den Eijnden >>> >Syncera IT Solutions >>> >Postbus 270 >>> >2600 AG DELFT >>> > >>> >tel.nr.: 015-7512436 >>> >email: BEN@Syncera-ITSolutions.nl >>> > >>> > >>> "Mehdi Kiman" 08/25/05 5:04 pm >>> >>> >Now getCapabilities is ok. But when i make a >>> >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles >>> > >>> >The WFS server output is >>> >msWFSGetFeature(): WFS server error. TYPENAME >>> 'Parcelles' >>> >doesn't exist in this server. Please check the capabilities and >>> reformulate >>> >your request. >>> > >>> >I'm so surprised beacause my getCapabilities return is correct. >>> > >>> > >From: "Bart van den Eijnden" >>> > >To: >>> > >CC: >>> > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> > >Date: Thu, 25 Aug 2005 16:53:08 +0200 >>> > > >>> > >Yes, the same MAP file can serve both WMS and WFS. >>> > > >>> > >Bart >>> > > >>> > >Bart van den Eijnden >>> > >Syncera IT Solutions >>> > >Postbus 270 >>> > >2600 AG DELFT >>> > > >>> > >tel.nr.: 015-7512436 >>> > >email: BEN@Syncera-ITSolutions.nl >>> > > >>> > > >>> Mehdi Kiman 08/25/05 4:51 pm >>> >>> > >I can have the same MapFile for using both WFS and WFS serveur ? >>> > > >>> > > >>> > > >>> > > >>> > > >From: "Bart van den Eijnden" >>> > > >To: , >>> > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> > > >Date: Thu, 25 Aug 2005 16:34:53 +0200 >>> > > > >>> > > >When you are doing a GetCapabilities, what is your URL? >>> > > > >>> > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 >>> > > >? >>> > > > >>> > > >otherwise probably the default is the WMS capabilities and you >>> miss >>> > > >"wms_title" METADATA for that. If you want to be shorter, use the >>> more >>> > > >general ows_title and leave out wfs_title and wms_title. >>> > > > >>> > > >Best regards, >>> > > >Bart >>> > > > >>> > > >Bart van den Eijnden >>> > > >Syncera IT Solutions >>> > > >Postbus 270 >>> > > >2600 AG DELFT >>> > > > >>> > > >tel.nr.: 015-7512436 >>> > > >email: BEN@Syncera-ITSolutions.nl >>> > > > >>> > > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> >>> > > >Hi, >>> > > > >>> > > >I have a problem with my WFS server, i tried to configure it. >>> > > >My MapFile is correct : >>> > > >MAP >>> > > >NAME "Pays_nee_de_la_mer" >>> > > >DEBUG on >>> > > >SIZE 600 400 >>> > > >STATUS ON >>> > > > >>> > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 >>> > > >FONTSET "../data/fonts.txt" >>> > > >UNITS METERS >>> > > >SHAPEPATH "../data/data_map/" >>> > > > >>> > > >WEB >>> > > > IMAGEPATH 'C:/tmp/ms_tmp/' >>> > > > IMAGEURL '/ms_tmp/' >>> > > > METADATA >>> > > > "wfs_title" "wfs Pays Ne de La Mer" >>> > > > "wfs_onlineresource" >>> > > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" >>> > > > "wfs_srs" "epsg:27582" >>> > > > "wfs_feature_info_mime_type" "text/html" >>> > > > END >>> > > >END >>> > > > >>> > > >LAYER >>> > > > CONNECTIONTYPE OGR >>> > > > CONNECTION "../data/data_map/Parcelles.TAB" >>> > > > >>> > > > NAME "Parcelles" >>> > > > >>> > > > TYPE POLYGON >>> > > > STATUS ON >>> > > > #STYLEITEM "AUTO" >>> > > > >>> > > > CLASS >>> > > > NAME "Parcelles" >>> > > > TEMPLATE "ttt.html" >>> > > > STYLE >>> > > > COLOR 255 255 0 >>> > > > OUTLINECOLOR 0 0 2 >>> > > > END >>> > > > END >>> > > > METADATA >>> > > > "wfs_title" "Parcelles" >>> > > > "wfs_srs" "epsg:27582" >>> > > > END >>> > > > PROJECTION >>> > > > "init=epsg:27582" >>> > > > END >>> > > >END >>> > > > >>> > > >And when i make a GetCapabilities, i have this kind of error for >>> each >>> > >layer >>> > > > : >>> > > > >>> > > > >>> > > > >>> > > >What's wrong with my server ? >>> > > > >>> > > > >>> > > >Thanks >>> > > >Mehdi >>> > > > >>> > > >>> > >>> > >>> > >> > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From mboos at AUGSIGNALS.COM Thu Aug 25 14:01:41 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 Message-ID: Hello I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am facing some hurdles. The map files work fine in version 4.1, but are all generating blank white images for me in 4.6.0. From reading the mailing lists and the documentation, I can't seem to find what's wrong with the map files. Here's an example: #epsg:32611 NAME AUG21234542.map SIZE 400 400 EXTENT 0 0 576 432 WEB TEMPLATE ../mapServerTemplateVis.html IMAGEPATH "" IMAGEURL "" END LAYER TYPE RASTER STATUS DEFAULT DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" PROJECTION "init=epsg:32611" END TRANSPARENCY 100 END END Does anyone know what changes I need to make to have the image appear on my map? Thanks Mike Boos From matt0177 at GMAIL.COM Thu Aug 25 14:12:10 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 In-Reply-To: <430E0785.1020703@augsignals.com> Message-ID: Try setting the Transparency lower then 100 Matt Edmondson On 8/25/05, Mike Boos wrote: > Hello > > I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am > facing some hurdles. The map files work fine in version 4.1, but are all > generating blank white images for me in 4.6.0. From reading the mailing > lists and the documentation, I can't seem to find what's wrong with the > map files. Here's an example: > > #epsg:32611 > NAME AUG21234542.map > SIZE 400 400 > EXTENT 0 0 576 432 > WEB > TEMPLATE ../mapServerTemplateVis.html > IMAGEPATH "" > IMAGEURL "" > END > LAYER > TYPE RASTER > STATUS DEFAULT > DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" > PROJECTION > "init=epsg:32611" > END > TRANSPARENCY 100 > END > END > > Does anyone know what changes I need to make to have the image appear on > my map? > > Thanks > Mike Boos > From vendors at TPSOFT.COM Thu Aug 25 14:05:00 2005 From: vendors at TPSOFT.COM (Barry Demchak) Date: Fri Feb 8 15:07:58 2008 Subject: MapServer and MrSID Message-ID: Hi, all -- I am just getting going with MapServer and GIS in general. Please pardon the naive question: I have been offered the use of a very large aerial photograph that's currently accessible by ESRI software. I'm told that the photo is provided under MrSID compression. Can MapServer take slices from a photo in this form?? If not, what do I have to do to the photo to make it accessible. (I have been reading up on MrSID, and I can see that it's a method for amalgamating tiled photos ... so I can't really see how "unpacking" a MrSID file would be a good thing for MapServer. So that leads me to believe that either MapServer supports a MrSID file or it doesn't. True?? MrSID looks patented, which leads me to think that maybe MapServer won't do it.) Good advice needed ... Thanks! From mboos at AUGSIGNALS.COM Thu Aug 25 14:17:06 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 In-Reply-To: Message-ID: Thanks, but neither changing the colour nor the transparency did anything. Mike Hydock,Shaun T. wrote: >I ran into something similar, adding a class to set the color in the >layer generated a viewable image for me: > > CLASS > COLOR 0 100 200 > END > >Good luck! > >Shaun > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On >Behalf Of Mike Boos >Sent: Thursday, August 25, 2005 2:02 PM >To: MAPSERVER-USERS@LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > >Hello > >I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am >facing some hurdles. The map files work fine in version 4.1, but are all > >generating blank white images for me in 4.6.0. From reading the mailing >lists and the documentation, I can't seem to find what's wrong with the >map files. Here's an example: > >#epsg:32611 >NAME AUG21234542.map >SIZE 400 400 >EXTENT 0 0 576 432 >WEB >TEMPLATE ../mapServerTemplateVis.html >IMAGEPATH "" >IMAGEURL "" >END >LAYER >TYPE RASTER >STATUS DEFAULT >DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" >PROJECTION >"init=epsg:32611" >END >TRANSPARENCY 100 >END >END > >Does anyone know what changes I need to make to have the image appear on > >my map? > >Thanks >Mike Boos > > > > > From David.Fawcett at STATE.MN.US Thu Aug 25 14:23:11 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 Message-ID: Do you have an issue with your extent matching the projection specified in your layer? David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Mike Boos Sent: Thursday, August 25, 2005 1:02 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 Hello I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am facing some hurdles. The map files work fine in version 4.1, but are all generating blank white images for me in 4.6.0. From reading the mailing lists and the documentation, I can't seem to find what's wrong with the map files. Here's an example: #epsg:32611 NAME AUG21234542.map SIZE 400 400 EXTENT 0 0 576 432 WEB TEMPLATE ../mapServerTemplateVis.html IMAGEPATH "" IMAGEURL "" END LAYER TYPE RASTER STATUS DEFAULT DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" PROJECTION "init=epsg:32611" END TRANSPARENCY 100 END END Does anyone know what changes I need to make to have the image appear on my map? Thanks Mike Boos From jerl.simpso at GMAIL.COM Thu Aug 25 14:25:56 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri Feb 8 15:07:58 2008 Subject: US overview In-Reply-To: Message-ID: Thank you very much, that's exactly what I needed. Jerl On 8/22/05, Norman Vine wrote: > This question comes up a lot and my usually advice is > > ""One can utilize the fact that the line segments for the > coastline are probably only referenced once whereas > the internal boundaries are referenced twice and thin > a dataset appropriately"" > > or just use this shapefile where this has been done for you :-) > > http://coastalmap.marine.usgs.gov/GISdata/basemaps/boundaries/state_bounds/state_bounds.htm > > Cheers > > Norman > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On > > Behalf Of Jeff Portwine > > Sent: Monday, August 22, 2005 10:24 AM > > To: MAPSERVER-USERS@LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] US overview > > > > > > I didn't see any responses to Jerl's question, but I'm actually having the > > same problem. I like to use a thick line to indicate state borders, but I > > don't like the thick line along the coast of the country.. especially in the > > Rhode Island area where there are a lot of small bays and inlets and such, > > half the state gets obscured by the border line :-) > > > > Is there any solution to this? I have seen maps that didn't show state > > boundries along the coastline before , but I don't know how it was done. > > > > -Jeff > > > > ----- Original Message ----- > > From: "Jerl Simpson" > > To: > > Sent: Friday, August 19, 2005 11:33 AM > > Subject: [UMN_MAPSERVER-USERS] US overview > > > > > > Hello, > > > > I'm looking for a shapefile that outlines each state, but does not > > have an outline at the shoreline. This way I can put up a dotted line > > to show state borders, but not have that line running around the > > oceans. > > Or if someone could tell me how to go about doing this I would greatly > > appreciate it. > > > > Thanks, > > > > Jerl > > > From mboos at AUGSIGNALS.COM Thu Aug 25 14:26:43 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 In-Reply-To: Message-ID: I'm not sure. I assumed that because the map worked before in the older version that the extent should match up - unless something has changed in the way Mapserver handles things. Mike Fawcett, David wrote: >Do you have an issue with your extent matching the projection specified in your layer? > >David. > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett@moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On >Behalf Of Mike Boos >Sent: Thursday, August 25, 2005 1:02 PM >To: MAPSERVER-USERS@LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > > >Hello > >I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am >facing some hurdles. The map files work fine in version 4.1, but are all >generating blank white images for me in 4.6.0. From reading the mailing >lists and the documentation, I can't seem to find what's wrong with the >map files. Here's an example: > >#epsg:32611 >NAME AUG21234542.map >SIZE 400 400 >EXTENT 0 0 576 432 >WEB >TEMPLATE ../mapServerTemplateVis.html >IMAGEPATH "" >IMAGEURL "" >END >LAYER >TYPE RASTER >STATUS DEFAULT >DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" >PROJECTION >"init=epsg:32611" >END >TRANSPARENCY 100 >END >END > >Does anyone know what changes I need to make to have the image appear on >my map? > >Thanks >Mike Boos > > > > > From bfraser at GEOANALYTIC.COM Thu Aug 25 14:35:34 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 Message-ID: Mike, You don't have a PROJECTION definition for your map (the target image to be created by mapserver). And your EXTENT coordinates look like pixel values instead of world coordinates (e.g. meters or degrees). Try changing EXTENT 0 0 576 432 to EXTENT 300000 5000000 700000 6000000 or better yet, get the world extents of your input jpg file by using: gdalinfo C:\inetpub\ftproot\input_images\AUG162454635.jpg You might want to add PROJECTION "init=epsg:32611" END after the EXTENT entry as well. Brent Fraser GeoAnalytic Inc. Calgary, Alberta, Canada ----- Original Message ----- From: "Mike Boos" To: Sent: Thursday, August 25, 2005 12:17 PM Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > Thanks, but neither changing the colour nor the transparency did anything. > > Mike > > Hydock,Shaun T. wrote: > > >I ran into something similar, adding a class to set the color in the > >layer generated a viewable image for me: > > > > CLASS > > COLOR 0 100 200 > > END > > > >Good luck! > > > >Shaun > > > >-----Original Message----- > >From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On > >Behalf Of Mike Boos > >Sent: Thursday, August 25, 2005 2:02 PM > >To: MAPSERVER-USERS@LISTS.UMN.EDU > >Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > > > >Hello > > > >I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am > >facing some hurdles. The map files work fine in version 4.1, but are all > > > >generating blank white images for me in 4.6.0. From reading the mailing > >lists and the documentation, I can't seem to find what's wrong with the > >map files. Here's an example: > > > >#epsg:32611 > >NAME AUG21234542.map > >SIZE 400 400 > >EXTENT 0 0 576 432 > >WEB > >TEMPLATE ../mapServerTemplateVis.html > >IMAGEPATH "" > >IMAGEURL "" > >END > >LAYER > >TYPE RASTER > >STATUS DEFAULT > >DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" > >PROJECTION > >"init=epsg:32611" > >END > >TRANSPARENCY 100 > >END > >END > > > >Does anyone know what changes I need to make to have the image appear on > > > >my map? > > > >Thanks > >Mike Boos > > > > > > > > > > From David.Fawcett at STATE.MN.US Thu Aug 25 14:34:23 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 Message-ID: Does your image really fall in a 576 meter by 432 meter spot in the origin corner of UTM Zone 11? You could run gdalinfo on image file to find out it's extent. I haven't done a lot of image work, but is there a world file associated with this image? David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Mike Boos Sent: Thursday, August 25, 2005 1:27 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 I'm not sure. I assumed that because the map worked before in the older version that the extent should match up - unless something has changed in the way Mapserver handles things. Mike Fawcett, David wrote: >Do you have an issue with your extent matching the projection specified in your layer? > >David. > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett@moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On >Behalf Of Mike Boos >Sent: Thursday, August 25, 2005 1:02 PM >To: MAPSERVER-USERS@LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > > >Hello > >I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am >facing some hurdles. The map files work fine in version 4.1, but are all >generating blank white images for me in 4.6.0. From reading the mailing >lists and the documentation, I can't seem to find what's wrong with the >map files. Here's an example: > >#epsg:32611 >NAME AUG21234542.map >SIZE 400 400 >EXTENT 0 0 576 432 >WEB >TEMPLATE ../mapServerTemplateVis.html >IMAGEPATH "" >IMAGEURL "" >END >LAYER >TYPE RASTER >STATUS DEFAULT >DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" >PROJECTION >"init=epsg:32611" >END >TRANSPARENCY 100 >END >END > >Does anyone know what changes I need to make to have the image appear on >my map? > >Thanks >Mike Boos > > > > > From mboos at AUGSIGNALS.COM Thu Aug 25 14:41:30 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 In-Reply-To: <10d601c5a9a3$c80c2650$160002c0@shark> Message-ID: This is the output I get from gdalinfo: Driver: JPEG/JPEG JFIF Size is 576, 432 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 432.0) Upper Right ( 576.0, 0.0) Lower Right ( 576.0, 432.0) Center ( 288.0, 216.0) Band 1 Block=576x1 Type=Byte, ColorInterp=Red Band 2 Block=576x1 Type=Byte, ColorInterp=Green Band 3 Block=576x1 Type=Byte, ColorInterp=Blue I tried adding projection information to the map, no result. Mike Brent Fraser wrote: >Mike, > > You don't have a PROJECTION definition for your map (the target image to >be created by mapserver). And your EXTENT coordinates look like pixel >values instead of world coordinates (e.g. meters or degrees). > > Try changing >EXTENT 0 0 576 432 > to >EXTENT 300000 5000000 700000 6000000 > or better yet, get the world extents of your input jpg file by using: > gdalinfo C:\inetpub\ftproot\input_images\AUG162454635.jpg > > >You might want to add > >PROJECTION > "init=epsg:32611" >END > >after the EXTENT entry as well. > >Brent Fraser >GeoAnalytic Inc. >Calgary, Alberta, Canada > > >----- Original Message ----- >From: "Mike Boos" >To: >Sent: Thursday, August 25, 2005 12:17 PM >Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > > > > >>Thanks, but neither changing the colour nor the transparency did anything. >> >>Mike >> >>Hydock,Shaun T. wrote: >> >> >> >>>I ran into something similar, adding a class to set the color in the >>>layer generated a viewable image for me: >>> >>> CLASS >>> COLOR 0 100 200 >>> END >>> >>>Good luck! >>> >>>Shaun >>> >>>-----Original Message----- >>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On >>>Behalf Of Mike Boos >>>Sent: Thursday, August 25, 2005 2:02 PM >>>To: MAPSERVER-USERS@LISTS.UMN.EDU >>>Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 >>> >>>Hello >>> >>>I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am >>>facing some hurdles. The map files work fine in version 4.1, but are all >>> >>>generating blank white images for me in 4.6.0. From reading the mailing >>>lists and the documentation, I can't seem to find what's wrong with the >>>map files. Here's an example: >>> >>>#epsg:32611 >>>NAME AUG21234542.map >>>SIZE 400 400 >>>EXTENT 0 0 576 432 >>>WEB >>>TEMPLATE ../mapServerTemplateVis.html >>>IMAGEPATH "" >>>IMAGEURL "" >>>END >>>LAYER >>>TYPE RASTER >>>STATUS DEFAULT >>>DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" >>>PROJECTION >>>"init=epsg:32611" >>>END >>>TRANSPARENCY 100 >>>END >>>END >>> >>>Does anyone know what changes I need to make to have the image appear on >>> >>>my map? >>> >>>Thanks >>>Mike Boos >>> >>> >>> >>> >>> >>> >>> > > > > > From David.Fawcett at STATE.MN.US Thu Aug 25 14:56:57 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 Message-ID: Mike, It appears that your image is not geo-referenced. Was there a jpeg world file in the same directory with this .jpg under your old setup? Try commenting out all projection info just to see if you can get the image to appear, that may do the trick. Of course, if you want to use this photo with other data, you will have to get it georeferenced again. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett@moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On Behalf Of Mike Boos Sent: Thursday, August 25, 2005 1:42 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 This is the output I get from gdalinfo: Driver: JPEG/JPEG JFIF Size is 576, 432 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 432.0) Upper Right ( 576.0, 0.0) Lower Right ( 576.0, 432.0) Center ( 288.0, 216.0) Band 1 Block=576x1 Type=Byte, ColorInterp=Red Band 2 Block=576x1 Type=Byte, ColorInterp=Green Band 3 Block=576x1 Type=Byte, ColorInterp=Blue I tried adding projection information to the map, no result. Mike Brent Fraser wrote: >Mike, > > You don't have a PROJECTION definition for your map (the target image to >be created by mapserver). And your EXTENT coordinates look like pixel >values instead of world coordinates (e.g. meters or degrees). > > Try changing >EXTENT 0 0 576 432 > to >EXTENT 300000 5000000 700000 6000000 > or better yet, get the world extents of your input jpg file by using: > gdalinfo C:\inetpub\ftproot\input_images\AUG162454635.jpg > > >You might want to add > >PROJECTION > "init=epsg:32611" >END > >after the EXTENT entry as well. > >Brent Fraser >GeoAnalytic Inc. >Calgary, Alberta, Canada > > >----- Original Message ----- >From: "Mike Boos" >To: >Sent: Thursday, August 25, 2005 12:17 PM >Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > > > > >>Thanks, but neither changing the colour nor the transparency did anything. >> >>Mike >> >>Hydock,Shaun T. wrote: >> >> >> >>>I ran into something similar, adding a class to set the color in the >>>layer generated a viewable image for me: >>> >>> CLASS >>> COLOR 0 100 200 >>> END >>> >>>Good luck! >>> >>>Shaun >>> >>>-----Original Message----- >>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On >>>Behalf Of Mike Boos >>>Sent: Thursday, August 25, 2005 2:02 PM >>>To: MAPSERVER-USERS@LISTS.UMN.EDU >>>Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 >>> >>>Hello >>> >>>I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am >>>facing some hurdles. The map files work fine in version 4.1, but are all >>> >>>generating blank white images for me in 4.6.0. From reading the mailing >>>lists and the documentation, I can't seem to find what's wrong with the >>>map files. Here's an example: >>> >>>#epsg:32611 >>>NAME AUG21234542.map >>>SIZE 400 400 >>>EXTENT 0 0 576 432 >>>WEB >>>TEMPLATE ../mapServerTemplateVis.html >>>IMAGEPATH "" >>>IMAGEURL "" >>>END >>>LAYER >>>TYPE RASTER >>>STATUS DEFAULT >>>DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" >>>PROJECTION >>>"init=epsg:32611" >>>END >>>TRANSPARENCY 100 >>>END >>>END >>> >>>Does anyone know what changes I need to make to have the image appear on >>> >>>my map? >>> >>>Thanks >>>Mike Boos >>> >>> >>> >>> >>> >>> >>> > > > > > From mboos at AUGSIGNALS.COM Thu Aug 25 15:07:02 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 In-Reply-To: Message-ID: In this case, no it does not. gdalinfo reveals no coordinate system - this is the system our mapfile-generating script provides when no coordinate system is available. (I didn't develop it, just maintaining it, so I'm not sure why it chooses that one) The way our server is supposed to work is that if the image has coordinate system info to it, it will project and display it appropriately according to that information. If there is no information, we still need to display the image, so it generates the extent data based on the image size. This particular image has no world file or any other georeferencing info associated with it. The image is displayed on its own, so I could take out the projection information. However, this does not cause the image to appear. Mike Fawcett, David wrote: >Does your image really fall in a 576 meter by 432 meter spot in the origin corner of UTM Zone 11? You could run gdalinfo on image file to find out it's extent. > >I haven't done a lot of image work, but is there a world file associated with this image? > >David. > >David Fawcett >Minnesota Office of Environmental Assistance >david.fawcett@moea.state.mn.us >651.215.0200 > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On >Behalf Of Mike Boos >Sent: Thursday, August 25, 2005 1:27 PM >To: MAPSERVER-USERS@LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > > >I'm not sure. I assumed that because the map worked before in the older >version that the extent should match up - unless something has changed >in the way Mapserver handles things. > >Mike > >Fawcett, David wrote: > > > >>Do you have an issue with your extent matching the projection specified in your layer? >> >>David. >> >>David Fawcett >>Minnesota Office of Environmental Assistance >>david.fawcett@moea.state.mn.us >>651.215.0200 >> >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]On >>Behalf Of Mike Boos >>Sent: Thursday, August 25, 2005 1:02 PM >>To: MAPSERVER-USERS@LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 >> >> >>Hello >> >>I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am >>facing some hurdles. The map files work fine in version 4.1, but are all >>generating blank white images for me in 4.6.0. From reading the mailing >>lists and the documentation, I can't seem to find what's wrong with the >>map files. Here's an example: >> >>#epsg:32611 >>NAME AUG21234542.map >>SIZE 400 400 >>EXTENT 0 0 576 432 >>WEB >>TEMPLATE ../mapServerTemplateVis.html >>IMAGEPATH "" >>IMAGEURL "" >>END >>LAYER >>TYPE RASTER >>STATUS DEFAULT >>DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" >>PROJECTION >>"init=epsg:32611" >>END >>TRANSPARENCY 100 >>END >>END >> >>Does anyone know what changes I need to make to have the image appear on >>my map? >> >>Thanks >>Mike Boos >> >> >> >> >> >> >> > > > > > From bfraser at GEOANALYTIC.COM Thu Aug 25 15:19:43 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 Message-ID: Mike, Well, this is getting interesting. In theory, your original map file should work. Even though the coordinates you give are pixels, not world coordinates, MapServer doesn't know that. I tried the following map file with 4.6: #epsg:32611 NAME AUG21234542.map SIZE 400 400 EXTENT 0 0 576 432 WEB TEMPLATE Template.html IMAGEPATH "" IMAGEURL "" END LAYER TYPE RASTER STATUS DEFAULT DATA "test.jpg" PROJECTION "init=epsg:32611" END # TRANSPARENCY 100 END END This actually causes mapserv.exe to crash! And un-commenting the TRANSPARENCY 100 stops the crashing. shp2img doesn't crash, but it spits out a GIF stream to stdout even though I used "-o test.gif" for an output file. I'll have to step through this in the debugger.... Brent Fraser GeoAnalytic Inc. Calgary, Alberta, Canada ----- Original Message ----- From: "Mike Boos" To: Sent: Thursday, August 25, 2005 12:41 PM Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > This is the output I get from gdalinfo: > Driver: JPEG/JPEG JFIF > Size is 576, 432 > Coordinate System is `' > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 432.0) > Upper Right ( 576.0, 0.0) > Lower Right ( 576.0, 432.0) > Center ( 288.0, 216.0) > Band 1 Block=576x1 Type=Byte, ColorInterp=Red > Band 2 Block=576x1 Type=Byte, ColorInterp=Green > Band 3 Block=576x1 Type=Byte, ColorInterp=Blue > > I tried adding projection information to the map, no result. > > Mike > > Brent Fraser wrote: > > >Mike, > > > > You don't have a PROJECTION definition for your map (the target image to > >be created by mapserver). And your EXTENT coordinates look like pixel > >values instead of world coordinates (e.g. meters or degrees). > > > > Try changing > >EXTENT 0 0 576 432 > > to > >EXTENT 300000 5000000 700000 6000000 > > or better yet, get the world extents of your input jpg file by using: > > gdalinfo C:\inetpub\ftproot\input_images\AUG162454635.jpg > > > > > >You might want to add > > > >PROJECTION > > "init=epsg:32611" > >END > > > >after the EXTENT entry as well. > > > >Brent Fraser > >GeoAnalytic Inc. > >Calgary, Alberta, Canada > > > > > >----- Original Message ----- > >From: "Mike Boos" > >To: > >Sent: Thursday, August 25, 2005 12:17 PM > >Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > > > > > > > > > >>Thanks, but neither changing the colour nor the transparency did anything. > >> > >>Mike > >> > >>Hydock,Shaun T. wrote: > >> > >> > >> > >>>I ran into something similar, adding a class to set the color in the > >>>layer generated a viewable image for me: > >>> > >>> CLASS > >>> COLOR 0 100 200 > >>> END > >>> > >>>Good luck! > >>> > >>>Shaun > >>> > >>>-----Original Message----- > >>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On > >>>Behalf Of Mike Boos > >>>Sent: Thursday, August 25, 2005 2:02 PM > >>>To: MAPSERVER-USERS@LISTS.UMN.EDU > >>>Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0 > >>> > >>>Hello > >>> > >>>I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am > >>>facing some hurdles. The map files work fine in version 4.1, but are all > >>> > >>>generating blank white images for me in 4.6.0. From reading the mailing > >>>lists and the documentation, I can't seem to find what's wrong with the > >>>map files. Here's an example: > >>> > >>>#epsg:32611 > >>>NAME AUG21234542.map > >>>SIZE 400 400 > >>>EXTENT 0 0 576 432 > >>>WEB > >>>TEMPLATE ../mapServerTemplateVis.html > >>>IMAGEPATH "" > >>>IMAGEURL "" > >>>END > >>>LAYER > >>>TYPE RASTER > >>>STATUS DEFAULT > >>>DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg" > >>>PROJECTION > >>>"init=epsg:32611" > >>>END > >>>TRANSPARENCY 100 > >>>END > >>>END > >>> > >>>Does anyone know what changes I need to make to have the image appear on > >>> > >>>my map? > >>> > >>>Thanks > >>>Mike Boos > >>> > >>> > >>> > >>> > >>> > >>> > >>> > > > > > > > > > > From kucpittetp at AGR.GC.CA Thu Aug 25 15:26:35 2005 From: kucpittetp at AGR.GC.CA (Peter Kuc-Pittet) Date: Fri Feb 8 15:07:58 2008 Subject: Odd Layer Cutoff Message-ID: I had shapefiles of grids which I used shp2pgsql.exe to import into my Postgres database. They worked and were displayed properly. Then I noticed that the grid was off by 10000m (it is in UTM). The original shapefile was created 10000m further north than it should have been, so this was simply an error in the initial creation of the shapefile. In order to move the grid into the proper position, I ran the following query in postgres. update geom_mapbooksheet set the_geom = translate(the_geom, 0, -10000, 0); The grid shifted down 10000m as expected, but now the layer is not displayed if it is within 10000m of the top of the viewable area. Here is a poorly rendered ascii picture of the problem. ( = means image border, - and | are gridlines. Before ========================================== = | | | | | | | | | | = = | | | | | | | | | | = =----------------------------------------= = | | | | | | | | | | = = | | | | | | | | | | = = | | | | | | | | | | = = | | | | | | | | | | = =----------------------------------------= = | | | | | | | | | | = = | | | | | | | | | | = = | | | | | | | | | | = = | | | | | | | | | | = =----------------------------------------= = | | | | | | | | | | = ========================================== After ========================================== = = = = =----------------------------------------= = | | | | | | | | | | = = | | | | | | | | | | = = | | | | | | | | | | = = | | | | | | | | | | = =----------------------------------------= = | | | | | | | | | | = = | | | | | | | | | | = = | | | | | | | | | | = = | | | | | | | | | | = =----------------------------------------= = | | | | | | | | | | = ========================================== Note that the grid up top in the 'after' pic exists, and if I pan upwards it will be drawn. But the next section of grid that would be within 10000m of the top of the images is now cut off. If I shift it up 10000m the exact same behavior is repeated, except now the botton is cut off. I have no ideas, and hope that someone here does. -- Peter From oubinny at HOTMAIL.COM Thu Aug 25 16:27:48 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: You mean to Add &service=WFS to my GetCapabilities URL ? >From: Bart van den Eijnden >Reply-To: Bart van den Eijnden >To: MAPSERVER-USERS@LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Thu, 25 Aug 2005 19:45:00 +0200 > >These are WMS Capabilities, not WFS capabilities. > >Add &service=WMS to your GetCapabilities URL. > >Bart > >On Thu, 25 Aug 2005 17:36:12 +0200, Mehdi Kiman >wrote: > >>i have a TEMPLATE "ttt.html" for each layer of my MapFile, and the >>getCapabilities response is : >> >> >> >>>"http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd" >>[ >> >>]> >> >> >> >> >> >> >> OGC:WMS >> WFS Pays Ne de La Mer >> >xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >>> >>Service> >> >> >> >> >> application/vnd.ogc.wms_xml >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> image/gif >> image/png >> image/jpeg >> image/wbmp >> image/tiff >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> text/plain >> text/html >> application/vnd.ogc.gml >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> text/xml >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> image/gif >> image/png >> image/jpeg >> image/wbmp >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> >> application/vnd.ogc.se_xml >> application/vnd.ogc.se_inimage >> application/vnd.ogc.se_blank >> >> >> >RemoteWFS="0"/> >> >> Pays_nee_de_la_mer >> WFS Pays Ne de La Mer >> epsg:27582 >> >maxy="46.5377" /> >> > minx="310560" miny="2.14718e+006" maxx="335547" >>maxy="2.17666e+006" /> >> >> BD_ortho >> BD_ortho >> epsg:27582 >> >> >> >> Contours_de_communes >> Contours_de_communes >> epsg:27582 >> >maxy="46.4928" /> >> > minx="314402" miny="2.14868e+006" maxx="330976" >>maxy="2.17185e+006" /> >> >> >> >> Parcelles >> Parcelles >> epsg:27582 >> >maxx="-1.15476" maxy="46.4732" /> >> > minx="308900" miny="2.1478e+006" maxx="330948" >>maxy="2.16968e+006" /> >> >> >> >> Routes >> Routes >> epsg:27582 >> >maxx="-1.09479" maxy="46.5377" /> >> > minx="310560" miny="2.14718e+006" maxx="335547" >>maxy="2.17666e+006" /> >> >> >> >> Sections_cadastrales >> SectionsCadastrales >> epsg:27582 >> >maxx="-1.15657" maxy="46.4733" /> >> > minx="320761" miny="2.15157e+006" maxx="330976" >>maxy="2.16969e+006" /> >> >> >> >> >> >> >> >> >>>From: "Bart van den Eijnden" >>>To: , >>>Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>>Date: Thu, 25 Aug 2005 17:17:25 +0200 >>> >>>Is this typename in your WFS GetCapabilities response (can you post it >>>to the list)? >>> >>>Try also adding TEMPLATE "blank.html" to your LAYER. >>> >>>Best regards, >>>Bart >>> >>>Bart van den Eijnden >>>Syncera IT Solutions >>>Postbus 270 >>>2600 AG DELFT >>> >>>tel.nr.: 015-7512436 >>>email: BEN@Syncera-ITSolutions.nl >>> >>> >>> Mehdi Kiman 08/25/05 5:14 pm >>> >>>Sorry i do that but i have always the same problem >>> >>> >From: "Bart van den Eijnden" >>> >To: >>> >CC: >>> >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> >Date: Thu, 25 Aug 2005 17:07:05 +0200 >>> > >>> >You should add DUMP TRUE to your LAYER. >>> > >>> >Best regards, >>> >Bart >>> > >>> >Bart van den Eijnden >>> >Syncera IT Solutions >>> >Postbus 270 >>> >2600 AG DELFT >>> > >>> >tel.nr.: 015-7512436 >>> >email: BEN@Syncera-ITSolutions.nl >>> > >>> > >>> "Mehdi Kiman" 08/25/05 5:04 pm >>> >>> >Now getCapabilities is ok. But when i make a >>> >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles >>> > >>> >The WFS server output is >>> >msWFSGetFeature(): WFS server error. TYPENAME >>>'Parcelles' >>> >doesn't exist in this server. Please check the capabilities and >>>reformulate >>> >your request. >>> > >>> >I'm so surprised beacause my getCapabilities return is correct. >>> > >>> > >From: "Bart van den Eijnden" >>> > >To: >>> > >CC: >>> > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> > >Date: Thu, 25 Aug 2005 16:53:08 +0200 >>> > > >>> > >Yes, the same MAP file can serve both WMS and WFS. >>> > > >>> > >Bart >>> > > >>> > >Bart van den Eijnden >>> > >Syncera IT Solutions >>> > >Postbus 270 >>> > >2600 AG DELFT >>> > > >>> > >tel.nr.: 015-7512436 >>> > >email: BEN@Syncera-ITSolutions.nl >>> > > >>> > > >>> Mehdi Kiman 08/25/05 4:51 pm >>> >>> > >I can have the same MapFile for using both WFS and WFS serveur ? >>> > > >>> > > >>> > > >>> > > >>> > > >From: "Bart van den Eijnden" >>> > > >To: , >>> > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> > > >Date: Thu, 25 Aug 2005 16:34:53 +0200 >>> > > > >>> > > >When you are doing a GetCapabilities, what is your URL? >>> > > > >>> > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 >>> > > >? >>> > > > >>> > > >otherwise probably the default is the WMS capabilities and you miss >>> > > >"wms_title" METADATA for that. If you want to be shorter, use the >>>more >>> > > >general ows_title and leave out wfs_title and wms_title. >>> > > > >>> > > >Best regards, >>> > > >Bart >>> > > > >>> > > >Bart van den Eijnden >>> > > >Syncera IT Solutions >>> > > >Postbus 270 >>> > > >2600 AG DELFT >>> > > > >>> > > >tel.nr.: 015-7512436 >>> > > >email: BEN@Syncera-ITSolutions.nl >>> > > > >>> > > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> >>> > > >Hi, >>> > > > >>> > > >I have a problem with my WFS server, i tried to configure it. >>> > > >My MapFile is correct : >>> > > >MAP >>> > > >NAME "Pays_nee_de_la_mer" >>> > > >DEBUG on >>> > > >SIZE 600 400 >>> > > >STATUS ON >>> > > > >>> > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 >>> > > >FONTSET "../data/fonts.txt" >>> > > >UNITS METERS >>> > > >SHAPEPATH "../data/data_map/" >>> > > > >>> > > >WEB >>> > > > IMAGEPATH 'C:/tmp/ms_tmp/' >>> > > > IMAGEURL '/ms_tmp/' >>> > > > METADATA >>> > > > "wfs_title" "wfs Pays Ne de La Mer" >>> > > > "wfs_onlineresource" >>> > > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" >>> > > > "wfs_srs" "epsg:27582" >>> > > > "wfs_feature_info_mime_type" "text/html" >>> > > > END >>> > > >END >>> > > > >>> > > >LAYER >>> > > > CONNECTIONTYPE OGR >>> > > > CONNECTION "../data/data_map/Parcelles.TAB" >>> > > > >>> > > > NAME "Parcelles" >>> > > > >>> > > > TYPE POLYGON >>> > > > STATUS ON >>> > > > #STYLEITEM "AUTO" >>> > > > >>> > > > CLASS >>> > > > NAME "Parcelles" >>> > > > TEMPLATE "ttt.html" >>> > > > STYLE >>> > > > COLOR 255 255 0 >>> > > > OUTLINECOLOR 0 0 2 >>> > > > END >>> > > > END >>> > > > METADATA >>> > > > "wfs_title" "Parcelles" >>> > > > "wfs_srs" "epsg:27582" >>> > > > END >>> > > > PROJECTION >>> > > > "init=epsg:27582" >>> > > > END >>> > > >END >>> > > > >>> > > >And when i make a GetCapabilities, i have this kind of error for >>>each >>> > >layer >>> > > > : >>> > > > >>> > > > >>> > > > >>> > > >What's wrong with my server ? >>> > > > >>> > > > >>> > > >Thanks >>> > > >Mehdi >>> > > > >>> > > >>> > >>> > >>> > >> > > > >-- >Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From ryan_boyles at NCSU.EDU Thu Aug 25 16:59:44 2005 From: ryan_boyles at NCSU.EDU (Ryan Boyles) Date: Fri Feb 8 15:07:58 2008 Subject: Continuous grids using OGR and OpenDAP Message-ID: This one is probably for Frank W. - Is there a way to display continuous grids in Mapserver via a GDAL/OGR connection to an OpenDAP server? I have gridded precipitation observations available through a OpenDAP server http://gulfstream.meas.ncsu.edu:9090/dods/mpe/ I found a reference on the Mapserver Wiki to display the gridded values as points, and I've made this work - no problem. But I need to display as a continuous grid or raster, not as thousands of discrete points. Searching the listserve archives, there doesn't seem to be a success story available for guidance. I'd be appreciative of any help from the community... Ryan Boyles NC State University From jiri.cajthaml at FSV.CVUT.CZ Thu Aug 25 17:33:42 2005 From: jiri.cajthaml at FSV.CVUT.CZ (Jirka Cajthaml) Date: Fri Feb 8 15:07:58 2008 Subject: Mouse position - coords Message-ID: Hi, I use mapserver on my web page. The map is generated as image by CGI mapserver and I want to show coordinates on mouse over this map. So I need pixel coordinates of image (it is part of a page - table). Do you know how to solve this in Javacript? I solved this for IE, but I dont know how to solve this for Mozilla... my script: function MYS() { if (navigator.appName == 'Netscape') { document.captureEvents(Event.MOUSEMOVE); document.onmousemove = NNMouseMove(e); } if (document.all) { MSMouseMove(); } } function NNMouseMove(e) { document.mapserv.X.value = e.pageX; document.mapserv.Y.value = e.pageY; } function MSMouseMove() { document.mapserv.X.value = event.offsetX; document.mapserv.Y.value = event.offsetY; } and in HTML there is ... .... It works for IE - it shows pixel coords of image, but in Mozilla it shows coords of page (I dont know how can I get coords of upperleft corner of image realtive to page...) Thanks for any reaction Jiri Cajthaml From fwarmerdam at GMAIL.COM Thu Aug 25 17:34:00 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:58 2008 Subject: Continuous grids using OGR and OpenDAP In-Reply-To: <430E3140.7050905@ncsu.edu> Message-ID: On 8/25/05, Ryan Boyles wrote: > This one is probably for Frank W. - > > Is there a way to display continuous grids in Mapserver via a GDAL/OGR > connection to an OpenDAP server? > > I have gridded precipitation observations available through a OpenDAP server > http://gulfstream.meas.ncsu.edu:9090/dods/mpe/ > > I found a reference on the Mapserver Wiki to display the gridded values > as points, and I've made this work - no problem. > > But I need to display as a continuous grid or raster, not as thousands > of discrete points. Searching the listserve archives, there doesn't seem > to be a success story available for guidance. Ryan, Instead of accessing the grid via OGR, instead you can use a TYPE RASTER layer, and use the corresponding GDAL access. I tried: gdalinfo 'http://gulfstream.meas.ncsu.edu:9090/dods/mpe/200201.01h?apcpsfc[0][x][y]' Unfortunately, this isn't working for me. But I'm not sure if this is due to my recent upgrade to a more recent DODS version or if it is something about the server. I don't really have time to dig into this just now, but I can come back to it you can't get things working. PS. I would encourage you to use GDAL 1.3.0 if you aren't already. PPS. DODS GDAL access info is at: http://www.gdal.org/frmt_dods.html Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bob.basques at CI.STPAUL.MN.US Thu Aug 25 17:39:06 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. Message-ID: Does anyone know of a good way to make a donut symbol. I need to be able to resize a symbol that is basically a donut. Where the donut part is semi-opaque, and the center is open. It's basically a min/max distance from a point overlay. I have the dynamic handing off of the sizing handled already, but haven't figured out a good way to make a filled donut symbol. I did mange to make a stacked symbol, but I would really like to have the center no be filled in, only the area between the MIN/MAX distance from the point picked. Thanks bobb From nate at SEASTAR.JPL.NASA.GOV Thu Aug 25 17:45:11 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Fri Feb 8 15:07:58 2008 Subject: Mouse position - coords In-Reply-To: <430E3936.5060805@fsv.cvut.cz> Message-ID: If I understand correctly, this is a two-part question, how to get the cursor coordinates and how to get the position of the image. Getting the position of an element on the page is kind of tricky. See: http://www.quirksmode.org/js/findpos.html offsetLeft and offsetTop will give you the position relative to the element's parent container. This is implemented differently in different browsers. So, you have to find the position of the parent container and add that to the offsets. The above link explains and provides some functions to find position. For the mouse coordinates I use: if (e.pageX) { newx = e.pageX; newy = e.pageY; } else { newx = e.clientX + document.body.scrollLeft newy = e.clientY + document.body.scrollTop } Nate On Thu, 25 Aug 2005, Jirka Cajthaml wrote: > Hi, > > I use mapserver on my web page. The map is generated as image by CGI > mapserver > and I want to show coordinates on mouse over this map. So I need pixel > coordinates > of image (it is part of a page - table). Do you know how to solve this > in Javacript? > > I solved this for IE, but I dont know how to solve this for Mozilla... > > my script: > > function MYS() { > if (navigator.appName == 'Netscape') { > document.captureEvents(Event.MOUSEMOVE); > document.onmousemove = NNMouseMove(e); > } > if (document.all) { > MSMouseMove(); > } > } > > function NNMouseMove(e) { > document.mapserv.X.value = e.pageX; > document.mapserv.Y.value = e.pageY; > } > > function MSMouseMove() { > document.mapserv.X.value = event.offsetX; > document.mapserv.Y.value = event.offsetY; > } > > and in HTML there is > .. > border="0" onmousemove=MYS();> > ... > > > It works for IE - it shows pixel coords of image, but in Mozilla it > shows coords of page (I dont know how > can I get coords of upperleft corner of image realtive to page...) > > Thanks for any reaction > > Jiri Cajthaml > -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate@seastar.jpl.nasa.gov From fwarmerdam at GMAIL.COM Thu Aug 25 17:44:59 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 In-Reply-To: <430E16D6.2030609@augsignals.com> Message-ID: On 8/25/05, Mike Boos wrote: > In this case, no it does not. gdalinfo reveals no coordinate system - > this is the system our mapfile-generating script provides when no > coordinate system is available. (I didn't develop it, just maintaining > it, so I'm not sure why it chooses that one) The way our server is > supposed to work is that if the image has coordinate system info to it, > it will project and display it appropriately according to that > information. If there is no information, we still need to display the > image, so it generates the extent data based on the image size. This > particular image has no world file or any other georeferencing info > associated with it. > > The image is displayed on its own, so I could take out the projection > information. However, this does not cause the image to appear. Mike, I assume there has been some subtle breakdown in the handling of ungeoreferenced images in the MapServer raster support. I'll try this out myself and see what can be done. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Thu Aug 25 17:53:10 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:58 2008 Subject: MapServer and MrSID In-Reply-To: <6.2.0.14.2.20050825110454.03332e80@mail.tpsoft.com> Message-ID: On 8/25/05, Barry Demchak wrote: > Hi, all -- > > I am just getting going with MapServer and GIS in general. Please pardon > the naive question: > > I have been offered the use of a very large aerial photograph that's > currently accessible by ESRI software. I'm told that the photo is provided > under MrSID compression. > > Can MapServer take slices from a photo in this form?? If not, what do I > have to do to the photo to make it accessible. > > (I have been reading up on MrSID, and I can see that it's a method for > amalgamating tiled photos ... so I can't really see how "unpacking" a MrSID > file would be a good thing for MapServer. So that leads me to believe that > either MapServer supports a MrSID file or it doesn't. True?? MrSID looks > patented, which leads me to think that maybe MapServer won't do it.) Barry, MapServer can display MrSID images, but only if the GDAL it is using is built with MrSID support. The MrSID support depends on use of the MrSID SDK from Lizardtech. This is free in the sense of no-cost (but not open source) but can be a bit involved to build in properly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Thu Aug 25 18:12:24 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 In-Reply-To: <931f8ea90508251444138343a0@mail.gmail.com> Message-ID: On 8/25/05, Frank Warmerdam wrote: > Mike, > > I assume there has been some subtle breakdown in the handling > of ungeoreferenced images in the MapServer raster support. I'll > try this out myself and see what can be done. Mike, I have confirmed that things changed due to a behavioral change in GDAL and/or changes in the MapServer raster logic for ungeoreferenced files. I have applied a patch in MapServer CVS (head and the 4.6 branch) but was only an hour or so late to get into MapServer 4.6.1. You can replace the msGetGDALGeoTransform code in mapdrawgdal.c with the following to fix your own source tree. /************************************************************************/ /* msGetGDALGeoTransform() */ /* */ /* Cover function that tries GDALGetGeoTransform(), a world */ /* file or OWS extents. */ /************************************************************************/ int msGetGDALGeoTransform( GDALDatasetH hDS, mapObj *map, layerObj *layer, double *padfGeoTransform ) { rectObj rect; /* -------------------------------------------------------------------- */ /* some GDAL drivers (ie. GIF) don't set geotransform on failure. */ /* -------------------------------------------------------------------- */ padfGeoTransform[0] = 0.0; padfGeoTransform[1] = 1.0; padfGeoTransform[2] = 0.0; padfGeoTransform[3] = GDALGetRasterYSize(hDS); padfGeoTransform[4] = 0.0; padfGeoTransform[5] = -1.0; /* -------------------------------------------------------------------- */ /* Try GDAL. */ /* */ /* Make sure that ymax is always at the top, and ymin at the */ /* bottom ... that is flip any files without the usual */ /* orientation. This is intended to enable display of "raw" */ /* files with no coordinate system otherwise they break down in */ /* many ways. */ /* -------------------------------------------------------------------- */ if (GDALGetGeoTransform( hDS, padfGeoTransform ) == CE_None ) { if( padfGeoTransform[5] == 1.0 && padfGeoTransform[3] == 0.0 ) { padfGeoTransform[5] = -1.0; padfGeoTransform[3] = GDALGetRasterYSize(hDS); } return MS_SUCCESS; } /* -------------------------------------------------------------------- */ /* Try worldfile. */ /* -------------------------------------------------------------------- */ else if( GDALGetDescription(hDS) != NULL && GDALReadWorldFile(GDALGetDescription(hDS), "wld", padfGeoTransform) ) { return MS_SUCCESS; } /* -------------------------------------------------------------------- */ /* Try OWS extent metadata. */ /* -------------------------------------------------------------------- */ #if defined(USE_WMS_SVR) || defined (USE_WFS_SVR) else if( msOWSGetLayerExtent( map, layer, "MFCO", &rect ) == MS_SUCCESS ) { padfGeoTransform[0] = rect.minx; padfGeoTransform[1] = (rect.maxx - rect.minx) / (double) GDALGetRasterXSize( hDS ); padfGeoTransform[2] = 0; padfGeoTransform[3] = rect.maxy; padfGeoTransform[4] = 0; padfGeoTransform[5] = (rect.miny - rect.maxy) / (double) GDALGetRasterYSize( hDS ); return MS_SUCCESS; } #endif /* -------------------------------------------------------------------- */ /* We didn't find any info ... use the default. */ /* Reset our default geotransform. GDALGetGeoTransform() may */ /* have altered it even if GDALGetGeoTransform() failed. */ /* -------------------------------------------------------------------- */ else { padfGeoTransform[0] = 0.0; padfGeoTransform[1] = 1.0; padfGeoTransform[2] = 0.0; padfGeoTransform[3] = GDALGetRasterYSize(hDS); padfGeoTransform[4] = 0.0; padfGeoTransform[5] = -1.0; return MS_FAILURE; } } Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From vincent.troisi at COLORADO.EDU Thu Aug 25 18:42:13 2005 From: vincent.troisi at COLORADO.EDU (Vincent J. Troisi) Date: Fri Feb 8 15:07:58 2008 Subject: Missing javascript in the source Message-ID: We are having a problem replicating the client functions that were developed on another server. The application uses a shpfile index to locate the .tiff files and renders the files as png or jpeg in the 800x800 window and renders a smaller scale version in an adjacent 400x400 window. Below is the "source" obtained from the MAC/OS server that operates correctly. Notice the java script imbedded in the file. Well, on the linux server (on which we just installed the mapserver, Version 4.6.0), the javascript does not appear in the source. The 800x800 image map is blank but 400x400 reference image appears. The applications uses gdal_tindex to generate a shpfile containing the location of the tiff files; however, only the initial default tiff file is processed, and as stated above, only the 400x400 reference map appears. Any ideas what may be causing the ill behavior by the client in the linux environment? Is there an environment variable or path which needs to be integrated into the apache server or the owner of the apache server? Thanks V Source from the correctly functioning application... MapServer Demo Interface
 NSIDC/University of Colorado - EOS/University of New Hampshire

Zoom

In Pan Out

Size

Select Layer[s] to Display:

documentation

From kenlord at GMAIL.COM Thu Aug 25 20:27:32 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri Feb 8 15:07:58 2008 Subject: Multiple Layer Queries In-Reply-To: Message-ID: Hi Rebecca, It appears you are using the CGI flavour of MapServer, which is also how I use MapServer. The header / footer and results templates work as follows: (at least the way I do it) 1. you submit your query to mapserver, by clicking on the map (or sending query information via URL parameters). 2. MapServer parses together the results webpage, starting with the main Header file, which you use to layout the structure of the page, such as a title, the start of a table to show the results, whatever else you want at the top of your page, etc. 3. For the first layer containing query results, MapServer parses the Header template you've made that is specific to that map layer, the HEADER "xxx" parameter within a layer in your mapfile. This header can be used to add the layer name, attribute names etc for that layer, and to layout the table structure specifically for the data that is retrieved for this layer. 4. MapServer parses through the TEMPLATE "xxx" file for the first layer that has results. think of this as a 'results' template. This file is processed once for each result found for that layer by the query, if you've set it up as a table, this template adds rows of results into the resulting webpage. 5. steps 3 and 4 are repeated for any other layers that returned results. 6. MapServer closes off the webpage with the Footer template, where you can close off the html table, or add whatever you want to be shown beneath the results. You list your main Header and Footer template files in the WEB section of your mapfile. Every layer for which you want to show query results must have its own Header and Template files. I find it convenient to name them to match the name of your layer, with a _header or _results appended to the end, such as soilassay_header.htm and soilassay_results.htm. The CGI values in your result templates need to be [UPPER_CASE] for shapefile layers, and [lower_case] for postgis layers. It is a good idea to include a TOLERANCE and TOLERANCEUNITS for each layer being queried, some versions of mapserver have some funny quirks if you leave them out. I would suggest that you take your existing queryresults_template file, and split it out into the main Header and Footer files, and a header and template file for that first layer, then copy and modify the header and template files to suit the other layers for which you want results. You can view how this system works for me at the following mapserver website: http://24.87.220.99/ms/iwafs.html ... Click on the 'Highlights' tab at the top right of the page, and then view map number 3. Query the map with the ' i ' tool in a spot where there's lots of big and small point symbols close together. You should end up with a list of Soil Geochem and Drill Hole query results. Good luck, Ken Lord Vancouver BC On 8/25/05, Rebecca Colwell wrote: > > Hi Everybody, > > I'm working on a new mapserver app after a long hiatus. I'd like to query > two layers (Parcels and Zoning Districts)and have their attributes shown > in > the QueryResults_template.html. I'm using NQUERY, but am still only > getting > results from one layer in the results table. > > I know this is not a new question, but I'm having a hard time deciphering > all the necessary steps from the tutorial, and haven't found the answers > on > previous list posts. I don't understand header/footer files. In case > that's part of the answer, please share their significance in the process. > Any help would be most appreciated. I'll post my > queryResults_template.html > below in case that'll help unlock the mystery. > > Thanks! > > ~Becky > > > > Airport Query Results > > > 2005 > Will > County Regional Airport
>
> > > > >

face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
> > src="/cgi-bin/mapserv?map=/home/colwell/public_html/Airport2/Map2.map&mapsize=300+225&mapxy=[shpmidx]+[shpmidy]&mapext=[shpext_esc]&scale=50000&state=[PIN]&mode=map" > border="1">

>
>
> height="167"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Parcel #[PIN]
Owner(s)[OWNER_1]
Address[STREET]
City/State/Zip[CITY], [ZIP1]
Township[TWP_NAME]
Zowning District[ZONE_TYPE]
>

> > > > > > > > > > > > > > > > > >
Sale Date
Sale Amount
Acreage[ACREAGE] acres
>

> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050825/6a33ce47/attachment.html From Craig.Feuerherdt at DSE.VIC.GOV.AU Thu Aug 25 21:19:13 2005 From: Craig.Feuerherdt at DSE.VIC.GOV.AU (Craig Feuerherdt) Date: Fri Feb 8 15:07:58 2008 Subject: unable to get mapserver demo (workshop) working - application error Message-ID: I have installed mapserver 4.4.1 under apache 2.0.54 I downloaded the workshop demo and edited the index.html file as required. I go to the initialization page (http://localhost/workshop) which works fine. When I click on the initalize button an error is return mapserv.exe - Application Error The instruction at "0x77f88216" referenced memory at "0x00000010". The memory could not be "written". Can someone please tell me why the application error is being returned. Thanks in advance. Craig Feuerherdt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050826/5aad114f/attachment.html From oubinny at HOTMAIL.COM Fri Aug 26 03:51:55 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: Sorry, now i have the right GetCapabilities WFS response : - - - MapServer WFS WFS Pays Ne de La Mer http://emir:8080/cgi-bin/myows.exe?config_wfs.map& - - - - - - - - - - - - - - - - - - - - - - Contours_de_communes Contours_de_communes epsg:27582 - Parcelles Parcelles epsg:27582 - Routes Routes epsg:27582 - Sections_cadastrales SectionsCadastrales epsg:27582 - - - - - But i have errors in my GetFeature request : http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes version="1.0" encoding="ISO-8859-1" ?> - - - 310559.988523,2147175.004190 335547.035982,2176659.969948 - - - - 328391.152717,2160988.975126 330870.048750,2167145.028208 - - 330870.048750,2167145.028208 330644.007160,2166700.964751 330568.048937,2166309.946026 330678.950234,2165020.947585 330538.032264,2164136.945099 330214.035500,2163551.619969 330027.863385,2163201.845528 329999.565223,2163138.833427 329829.890822,2162669.908832 329800.332419,2162608.615244 329613.129196,2162388.760297 329546.450937,2162262.621528 329461.785588,2162084.010865 329417.677117,2162022.946412 329358.445743,2161948.592133 329327.397963,2161888.444219 329291.652916,2161839.523915 329176.856326,2161766.315311 329081.077933,2161668.474705 328952.304114,2161525.494520 328919.308686,2161505.788918 328775.526530,2161396.720700 328658.896860,2161307.358085 328554.525908,2161224.640382 328469.975126,2161143.870326 328430.449354,2161110.874899 328412.576831,2161037.551728 - D?partementale - - - - 328346.471409,2160988.975126 328391.152717,2161002.379519 - - 328346.471409,2161002.379519 - D?partementale - - - - 328391.152717,2159404.965488 332910.036861,2160988.975126 - - 328391.152717,2160988.975126 328480.515332,2160963.082882 328527.373421,2160951.855271 328588.437875,2160920.234653 328639.420393,2160882.656528 328698.422632,2160826.633042 328762.580407,2160765.454021 328785.035629,2160736.926725 328821.697214,2160662.572446 328872.679732,2160581.114985 328910.257857,2160541.360078 329159.900343,2160367.217546 329446.204414,2160199.490791 329495.010150,2160183.909617 329657.925071,2160132.927100 329678.318078,2160119.637275 329958.435507,2160076.903614 330171.301839,2160042.304242 330268.111339,2160027.983310 330310.845000,2160020.880128 330372.024021,2160032.107739 330442.253871,2160050.438532 330492.205282,2160042.304242 330563.007969,2160004.955252 331795.982924,2159610.041233 332170.045666,2159690.009317 - D?partementale - - - - 332910.036861,2159223.948908 333846.969511,2159492.953294 - - 332910.036861,2159404.965488 333359.943258,2159492.953294 - D?partementale - - - - 333846.969511,2158741.047084 335547.035982,2159223.948908 - - 333846.969511,2159223.948908 334215.991285,2159198.973203 335164.953518,2158773.011404 - D?partementale - - - - 327565.006796,2173650.053760 328649.960599,2176485.025444 - - 327565.006796,2176485.025444 - D?partementale - - - - 330009.990862,2173289.968247 331784.984449,2174279.945629 - - 331784.984449,2174279.945629 331049.003115,2173992.037614 330494.954901,2174196.998792 330107.029497,2174234.004080 330009.990862,2174074.984452 - D?partementale - - - - 327190.027514,2173170.016121 328649.960599,2173650.053760 - - 328649.960599,2173650.053760 328202.001848,2173480.952195 327842.030903,2173170.016121 - Sans objet - - - - 328649.960599,2172509.993011 329095.055163,2173650.053760 - - 328649.960599,2173650.053760 - D?partementale - - - - 329095.055163,2172509.993011 330100.040882,2173289.968247 - - 330100.040882,2173289.968247 329898.974998,2173094.974438 329533.046545,2173010.996493 - D?partementale - - - - 331654.950387,2167374.965091 331665.032323,2167724.968668 - - 331665.032323,2167724.968668 - D?partementale - - - - 330609.980626,2167724.968668 331665.032323,2168655.027271 - - 330609.980626,2168655.027271 331198.971914,2168350.965244 331356.960435,2168431.964435 331600.989115,2168284.974390 - Sans objet - - - - 327093.905419,2168010.012497 329710.053264,2170563.606511 - - - 327093.905419,2170563.606511327135.035136,2170538.630805327197.245264,2170496.928252327225.543425,2170481.576213327268.620789,2170470.921439327346.182956,2170454.652860327422.255746,2170431.510234327511.847497,2170385.568685327645.891419,2170330.805441327688.968783,2170290.935967327703.404282,2170265.845694327785.090878,2170126.646236327886.253941,2169989.394424327922.915527,2169960.523425327953.963307,2169941.963497327998.988317,2169923.518137328172.443444,2169771.257989328257.337929,2169691.519040328309.809824,2169631.141991328358.959262,2169550.486502328447.176203,2169416.328012328476.390904,2169384.363692328507.896954,2169359.731689328605.852128,2169292.480593328643.888524,2169243.789424328700.484847,2169129.680239328714.347509,2169105.506505 - 328721.794393,2169085.571768328727.866468,2169072.969348328733.823976,2169038.255409328732.907436,2168978.336630328767.277673,2168924.146224328827.540155,2168878.662944328903.154675,2168812.328387329696.992574,2168195.955477329710.053264,2168010.012497 - D?partementale - - - - 326803.476920,2168838.106065 327093.905419,2170563.606511 - - - 326817.225014,2170084.829114326806.226539,2170039.574970326803.476920,2170003.486221326824.786466,2169909.999177326842.315287,2169843.320918326886.309190,2169708.933293326922.741641,2169531.697440326951.612640,2169393.529088326962.954818,2169343.233975327043.381171,2169154.770511327069.731686,2169061.856305327076.032896,2168997.698530327063.545044,2168865.831389327062.284802,2168838.106065 - 327093.905419,2170563.606511327072.939575,2170539.089075327049.109544,2170505.062541327041.662660,2170480.545105327032.840965,2170431.510234327019.207438,2170394.734081326978.994261,2170329.430632326961.350873,2170292.654479326838.878263,2170123.896617326822.838820,2170095.369320 - D?partementale - - - - 330354.953470,2169069.990594 330450.044458,2169310.009413 - - 330354.953470,2169310.009413 - D?partementale - - - - 330450.044458,2168655.027271 330609.980626,2169069.990594 - - - 330450.044458,2169069.990594330575.037552,2168755.044659 - 330575.037552,2168755.044659330609.980626,2168655.027271 - D?partementale - - - - 327062.284802,2168010.012497 329710.053264,2168838.106065 - - 327062.284802,2168838.106065 >From: Bart van den Eijnden >Reply-To: Bart van den Eijnden >To: MAPSERVER-USERS@LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Thu, 25 Aug 2005 19:45:00 +0200 > >These are WMS Capabilities, not WFS capabilities. > >Add &service=WMS to your GetCapabilities URL. > >Bart > >On Thu, 25 Aug 2005 17:36:12 +0200, Mehdi Kiman >wrote: > >>i have a TEMPLATE "ttt.html" for each layer of my MapFile, and the >>getCapabilities response is : >> >> >> >>>"http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd" >>[ >> >>]> >> >> >> >> >> >> >> OGC:WMS >> WFS Pays Ne de La Mer >> >xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >>> >>Service> >> >> >> >> >> application/vnd.ogc.wms_xml >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> image/gif >> image/png >> image/jpeg >> image/wbmp >> image/tiff >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> text/plain >> text/html >> application/vnd.ogc.gml >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> text/xml >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> image/gif >> image/png >> image/jpeg >> image/wbmp >> >> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >xmlns:xlink="http://www.w3.org/1999/xlink" >>xlink:href="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&"/> >> >> >> >> >> >> application/vnd.ogc.se_xml >> application/vnd.ogc.se_inimage >> application/vnd.ogc.se_blank >> >> >> >RemoteWFS="0"/> >> >> Pays_nee_de_la_mer >> WFS Pays Ne de La Mer >> epsg:27582 >> >maxy="46.5377" /> >> > minx="310560" miny="2.14718e+006" maxx="335547" >>maxy="2.17666e+006" /> >> >> BD_ortho >> BD_ortho >> epsg:27582 >> >> >> >> Contours_de_communes >> Contours_de_communes >> epsg:27582 >> >maxy="46.4928" /> >> > minx="314402" miny="2.14868e+006" maxx="330976" >>maxy="2.17185e+006" /> >> >> >> >> Parcelles >> Parcelles >> epsg:27582 >> >maxx="-1.15476" maxy="46.4732" /> >> > minx="308900" miny="2.1478e+006" maxx="330948" >>maxy="2.16968e+006" /> >> >> >> >> Routes >> Routes >> epsg:27582 >> >maxx="-1.09479" maxy="46.5377" /> >> > minx="310560" miny="2.14718e+006" maxx="335547" >>maxy="2.17666e+006" /> >> >> >> >> Sections_cadastrales >> SectionsCadastrales >> epsg:27582 >> >maxx="-1.15657" maxy="46.4733" /> >> > minx="320761" miny="2.15157e+006" maxx="330976" >>maxy="2.16969e+006" /> >> >> >> >> >> >> >> >> >>>From: "Bart van den Eijnden" >>>To: , >>>Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>>Date: Thu, 25 Aug 2005 17:17:25 +0200 >>> >>>Is this typename in your WFS GetCapabilities response (can you post it >>>to the list)? >>> >>>Try also adding TEMPLATE "blank.html" to your LAYER. >>> >>>Best regards, >>>Bart >>> >>>Bart van den Eijnden >>>Syncera IT Solutions >>>Postbus 270 >>>2600 AG DELFT >>> >>>tel.nr.: 015-7512436 >>>email: BEN@Syncera-ITSolutions.nl >>> >>> >>> Mehdi Kiman 08/25/05 5:14 pm >>> >>>Sorry i do that but i have always the same problem >>> >>> >From: "Bart van den Eijnden" >>> >To: >>> >CC: >>> >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> >Date: Thu, 25 Aug 2005 17:07:05 +0200 >>> > >>> >You should add DUMP TRUE to your LAYER. >>> > >>> >Best regards, >>> >Bart >>> > >>> >Bart van den Eijnden >>> >Syncera IT Solutions >>> >Postbus 270 >>> >2600 AG DELFT >>> > >>> >tel.nr.: 015-7512436 >>> >email: BEN@Syncera-ITSolutions.nl >>> > >>> > >>> "Mehdi Kiman" 08/25/05 5:04 pm >>> >>> >Now getCapabilities is ok. But when i make a >>> >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Parcelles >>> > >>> >The WFS server output is >>> >msWFSGetFeature(): WFS server error. TYPENAME >>>'Parcelles' >>> >doesn't exist in this server. Please check the capabilities and >>>reformulate >>> >your request. >>> > >>> >I'm so surprised beacause my getCapabilities return is correct. >>> > >>> > >From: "Bart van den Eijnden" >>> > >To: >>> > >CC: >>> > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> > >Date: Thu, 25 Aug 2005 16:53:08 +0200 >>> > > >>> > >Yes, the same MAP file can serve both WMS and WFS. >>> > > >>> > >Bart >>> > > >>> > >Bart van den Eijnden >>> > >Syncera IT Solutions >>> > >Postbus 270 >>> > >2600 AG DELFT >>> > > >>> > >tel.nr.: 015-7512436 >>> > >email: BEN@Syncera-ITSolutions.nl >>> > > >>> > > >>> Mehdi Kiman 08/25/05 4:51 pm >>> >>> > >I can have the same MapFile for using both WFS and WFS serveur ? >>> > > >>> > > >>> > > >>> > > >>> > > >From: "Bart van den Eijnden" >>> > > >To: , >>> > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >>> > > >Date: Thu, 25 Aug 2005 16:34:53 +0200 >>> > > > >>> > > >When you are doing a GetCapabilities, what is your URL? >>> > > > >>> > > >Do you add &service=WFS&request=GetCapabilities&version=1.0.0 >>> > > >? >>> > > > >>> > > >otherwise probably the default is the WMS capabilities and you miss >>> > > >"wms_title" METADATA for that. If you want to be shorter, use the >>>more >>> > > >general ows_title and leave out wfs_title and wms_title. >>> > > > >>> > > >Best regards, >>> > > >Bart >>> > > > >>> > > >Bart van den Eijnden >>> > > >Syncera IT Solutions >>> > > >Postbus 270 >>> > > >2600 AG DELFT >>> > > > >>> > > >tel.nr.: 015-7512436 >>> > > >email: BEN@Syncera-ITSolutions.nl >>> > > > >>> > > > >>> Mehdi Kiman 08/25/05 4:29 pm >>> >>> > > >Hi, >>> > > > >>> > > >I have a problem with my WFS server, i tried to configure it. >>> > > >My MapFile is correct : >>> > > >MAP >>> > > >NAME "Pays_nee_de_la_mer" >>> > > >DEBUG on >>> > > >SIZE 600 400 >>> > > >STATUS ON >>> > > > >>> > > >EXTENT 310559.98 2147175.0 335547.03 2176659.97 >>> > > >FONTSET "../data/fonts.txt" >>> > > >UNITS METERS >>> > > >SHAPEPATH "../data/data_map/" >>> > > > >>> > > >WEB >>> > > > IMAGEPATH 'C:/tmp/ms_tmp/' >>> > > > IMAGEURL '/ms_tmp/' >>> > > > METADATA >>> > > > "wfs_title" "wfs Pays Ne de La Mer" >>> > > > "wfs_onlineresource" >>> > > >"http://emir:8080/cgi-bin/mywfs.exe?config_wfs.map&" >>> > > > "wfs_srs" "epsg:27582" >>> > > > "wfs_feature_info_mime_type" "text/html" >>> > > > END >>> > > >END >>> > > > >>> > > >LAYER >>> > > > CONNECTIONTYPE OGR >>> > > > CONNECTION "../data/data_map/Parcelles.TAB" >>> > > > >>> > > > NAME "Parcelles" >>> > > > >>> > > > TYPE POLYGON >>> > > > STATUS ON >>> > > > #STYLEITEM "AUTO" >>> > > > >>> > > > CLASS >>> > > > NAME "Parcelles" >>> > > > TEMPLATE "ttt.html" >>> > > > STYLE >>> > > > COLOR 255 255 0 >>> > > > OUTLINECOLOR 0 0 2 >>> > > > END >>> > > > END >>> > > > METADATA >>> > > > "wfs_title" "Parcelles" >>> > > > "wfs_srs" "epsg:27582" >>> > > > END >>> > > > PROJECTION >>> > > > "init=epsg:27582" >>> > > > END >>> > > >END >>> > > > >>> > > >And when i make a GetCapabilities, i have this kind of error for >>>each >>> > >layer >>> > > > : >>> > > > >>> > > > >>> > > > >>> > > >What's wrong with my server ? >>> > > > >>> > > > >>> > > >Thanks >>> > > >Mehdi >>> > > > >>> > > >>> > >>> > >>> > >> > > > >-- >Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ w From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 26 03:57:34 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem Message-ID: The warnings or errors are because of the fact that your GIS attributes contain special characters, like ?, and this is not allowed for XML element names. I think the only thing you could do is rename your GIS attributes, so Categorie instead of Cat?gorie. Maybe something else is possible with Steve's new GML3 output, which is more flexible, but I don't have enough knowledge of that. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Mehdi Kiman 08/26/05 9:51 am >>> Sorry, now i have the right GetCapabilities WFS response : - - - MapServer WFS WFS Pays Ne de La Mer http://emir:8080/cgi-bin/myows.exe?config_wfs.map& - - - - - - - - - - - - - - - - - - - - - - Contours_de_communes Contours_de_communes epsg:27582 - Parcelles Parcelles epsg:27582 - Routes Routes epsg:27582 - Sections_cadastrales SectionsCadastrales epsg:27582 - - - - - But i have errors in my GetFeature request : http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes version="1.0" encoding="ISO-8859-1" ?> - - - 310559.988523,2147175.004190 335547.035982,2176659.969948 - - - - 328391.152717,2160988.975126 330870.048750,2167145.028208 - - 330870.048750,2167145.028208 330644.007160,2166700.964751 330568.048937,2166309.946026 330678.950234,2165020.947585 330538.032264,2164136.945099 330214.035500,2163551.619969 330027.863385,2163201.845528 329999.565223,2163138.833427 329829.890822,2162669.908832 329800.332419,2162608.615244 329613.129196,2162388.760297 329546.450937,2162262.621528 329461.785588,2162084.010865 329417.677117,2162022.946412 329358.445743,2161948.592133 329327.397963,2161888.444219 329291.652916,2161839.523915 329176.856326,2161766.315311 329081.077933,2161668.474705 328952.304114,2161525.494520 328919.308686,2161505.788918 328775.526530,2161396.720700 328658.896860,2161307.358085 328554.525908,2161224.640382 328469.975126,2161143.870326 328430.449354,2161110.874899 328412.576831,2161037.551728 - D?partementale From oubinny at HOTMAIL.COM Fri Aug 26 05:03:16 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: I tested my wfs server with MapInfo WFS client but a i have a error POST BODY IS SHORT error What do is it mean ? Cordialement >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Fri, 26 Aug 2005 09:57:34 +0200 > >The warnings or errors are because of the fact that your GIS attributes >contain special characters, like ?, and this is not allowed for XML element >names. > >I think the only thing you could do is rename your GIS attributes, so >Categorie instead of Cat?gorie. Maybe something else is possible with >Steve's new GML3 output, which is more flexible, but I don't have enough >knowledge of that. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/26/05 9:51 am >>> >Sorry, now i have the right GetCapabilities WFS response : > > >- xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >xsi:schemaLocation="http://www.opengis.net/wfs >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-capabilities.xsd"> >- >- > MapServer WFS > WFS Pays Ne de La Mer > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map& > >- >- >- >- >- > /> > > >- >- > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" >/> > > > >- >- > > >- >- > /> > > >- >- > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" >/> > > > >- >- > > >- >- > /> > > >- >- > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" >/> > > > > > >- >- > > >- > Contours_de_communes > Contours_de_communes > epsg:27582 > maxy="46.4928" /> > >- > Parcelles > Parcelles > epsg:27582 > maxy="46.4732" /> > >- > Routes > Routes > epsg:27582 > maxy="46.5377" /> > >- > Sections_cadastrales > SectionsCadastrales > epsg:27582 > maxy="46.4733" /> > > >- >- >- > > > > > >- > >- > > > > > > > > >But i have errors in my GetFeature request : >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes > >version="1.0" encoding="ISO-8859-1" ?> >- xmlns:myns="http://www.ttt.org/myns" xmlns:wfs="http://www.opengis.net/wfs" >xmlns:gml="http://www.opengis.net/gml" >xmlns:ogc="http://www.opengis.net/ogc" >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >xsi:schemaLocation="http://www.opengis.net/wfs >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd >http://www.ttt.org/myns >http://emir:8080/cgi-bin/myows.exe?config_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=Routes"> >- >- > 310559.988523,2147175.004190 >335547.035982,2176659.969948 > > >- >- >- >- > 328391.152717,2160988.975126 >330870.048750,2167145.028208 > > >- >- > 330870.048750,2167145.028208 >330644.007160,2166700.964751 >330568.048937,2166309.946026 330678.950234,2165020.947585 >330538.032264,2164136.945099 330214.035500,2163551.619969 >330027.863385,2163201.845528 329999.565223,2163138.833427 >329829.890822,2162669.908832 329800.332419,2162608.615244 >329613.129196,2162388.760297 329546.450937,2162262.621528 >329461.785588,2162084.010865 329417.677117,2162022.946412 >329358.445743,2161948.592133 329327.397963,2161888.444219 >329291.652916,2161839.523915 329176.856326,2161766.315311 >329081.077933,2161668.474705 328952.304114,2161525.494520 >328919.308686,2161505.788918 328775.526530,2161396.720700 >328658.896860,2161307.358085 328554.525908,2161224.640382 >328469.975126,2161143.870326 328430.449354,2161110.874899 >328412.576831,2161037.551728 > > >- > D?partementale > > > From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 26 05:06:21 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem Message-ID: I don't think Mapinfo WFS client can talk to Mapserver. What I know of it, MapInfo WFS client does not send the map= parameter when doing a request. Check with a better WFS client like Cadcorp SIS Mapbrowser, which is also free. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Mehdi Kiman 08/26/05 11:03 am >>> I tested my wfs server with MapInfo WFS client but a i have a error POST BODY IS SHORT error What do is it mean ? Cordialement >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Fri, 26 Aug 2005 09:57:34 +0200 > >The warnings or errors are because of the fact that your GIS attributes >contain special characters, like ?, and this is not allowed for XML element >names. > >I think the only thing you could do is rename your GIS attributes, so >Categorie instead of Cat?gorie. Maybe something else is possible with >Steve's new GML3 output, which is more flexible, but I don't have enough >knowledge of that. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/26/05 9:51 am >>> >Sorry, now i have the right GetCapabilities WFS response : > > >- xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >xsi:schemaLocation="http://www.opengis.net/wfs >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-capabilities.xsd"> >- >- > MapServer WFS > WFS Pays Ne de La Mer > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map& > >- >- >- >- >- > /> > > >- >- > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" >/> > > > >- >- > > >- >- > /> > > >- >- > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" >/> > > > >- >- > > >- >- > /> > > >- >- > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" >/> > > > > > >- >- > > >- > Contours_de_communes > Contours_de_communes > epsg:27582 > maxy="46.4928" /> > >- > Parcelles > Parcelles > epsg:27582 > maxy="46.4732" /> > >- > Routes > Routes > epsg:27582 > maxy="46.5377" /> > >- > Sections_cadastrales > SectionsCadastrales > epsg:27582 > maxy="46.4733" /> > > >- >- >- > > > > > >- > >- > > > > > > > > >But i have errors in my GetFeature request : >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes > >version="1.0" encoding="ISO-8859-1" ?> >- xmlns:myns="http://www.ttt.org/myns" xmlns:wfs="http://www.opengis.net/wfs" >xmlns:gml="http://www.opengis.net/gml" >xmlns:ogc="http://www.opengis.net/ogc" >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >xsi:schemaLocation="http://www.opengis.net/wfs >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd >http://www.ttt.org/myns >http://emir:8080/cgi-bin/myows.exe?config_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=Routes"> >- >- > 310559.988523,2147175.004190 >335547.035982,2176659.969948 > > >- >- >- >- > 328391.152717,2160988.975126 >330870.048750,2167145.028208 > > >- >- > 330870.048750,2167145.028208 >330644.007160,2166700.964751 >330568.048937,2166309.946026 330678.950234,2165020.947585 >330538.032264,2164136.945099 330214.035500,2163551.619969 >330027.863385,2163201.845528 329999.565223,2163138.833427 >329829.890822,2162669.908832 329800.332419,2162608.615244 >329613.129196,2162388.760297 329546.450937,2162262.621528 >329461.785588,2162084.010865 329417.677117,2162022.946412 >329358.445743,2161948.592133 329327.397963,2161888.444219 >329291.652916,2161839.523915 329176.856326,2161766.315311 >329081.077933,2161668.474705 328952.304114,2161525.494520 >328919.308686,2161505.788918 328775.526530,2161396.720700 >328658.896860,2161307.358085 328554.525908,2161224.640382 >328469.975126,2161143.870326 328430.449354,2161110.874899 >328412.576831,2161037.551728 > > >- > D?partementale > > > From oubinny at HOTMAIL.COM Fri Aug 26 05:11:21 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: MapInfo WFS/WMS client is ok. I used it for testing my WFS server, and it send all good parameters. I will test Cadcorp SIS Mapbrowser, and i will reply to the list Cordialement >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Fri, 26 Aug 2005 11:06:21 +0200 > >I don't think Mapinfo WFS client can talk to Mapserver. > >What I know of it, MapInfo WFS client does not send the map= parameter when >doing a request. > >Check with a better WFS client like Cadcorp SIS Mapbrowser, which is also >free. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/26/05 11:03 am >>> >I tested my wfs server with MapInfo WFS client but a i have a error POST >BODY IS SHORT error >What do is it mean ? >Cordialement > > > > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Fri, 26 Aug 2005 09:57:34 +0200 > > > >The warnings or errors are because of the fact that your GIS attributes > >contain special characters, like ?, and this is not allowed for XML >element > >names. > > > >I think the only thing you could do is rename your GIS attributes, so > >Categorie instead of Cat?gorie. Maybe something else is possible with > >Steve's new GML3 output, which is more flexible, but I don't have enough > >knowledge of that. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> Mehdi Kiman 08/26/05 9:51 am >>> > >Sorry, now i have the right GetCapabilities WFS response : > > > > > >- >xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >xsi:schemaLocation="http://www.opengis.net/wfs > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-capabilities.xsd"> > >- > >- > > MapServer WFS > > WFS Pays Ne de La Mer > > > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map& > > > >- > >- > >- > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > >- > >- > > > > > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > >- > >- > > > > > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > > > > > >- > >- > > > > > >- > > Contours_de_communes > > Contours_de_communes > > epsg:27582 > > >maxy="46.4928" /> > > > >- > > Parcelles > > Parcelles > > epsg:27582 > > >maxy="46.4732" /> > > > >- > > Routes > > Routes > > epsg:27582 > > >maxy="46.5377" /> > > > >- > > Sections_cadastrales > > SectionsCadastrales > > epsg:27582 > > >maxy="46.4733" /> > > > > > >- > >- > >- > > > > > > > > > > > >- > > > >- > > > > > > > > > > > > > > > > > >But i have errors in my GetFeature request : > >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes > > > >version="1.0" encoding="ISO-8859-1" ?> > >- >xmlns:myns="http://www.ttt.org/myns" >xmlns:wfs="http://www.opengis.net/wfs" > >xmlns:gml="http://www.opengis.net/gml" > >xmlns:ogc="http://www.opengis.net/ogc" > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >xsi:schemaLocation="http://www.opengis.net/wfs > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > >http://www.ttt.org/myns > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=Routes"> > >- > >- > > 310559.988523,2147175.004190 > >335547.035982,2176659.969948 > > > > > >- > >- > >- > >- > > 328391.152717,2160988.975126 > >330870.048750,2167145.028208 > > > > > >- > >- > > 330870.048750,2167145.028208 > >330644.007160,2166700.964751 > >330568.048937,2166309.946026 330678.950234,2165020.947585 > >330538.032264,2164136.945099 330214.035500,2163551.619969 > >330027.863385,2163201.845528 329999.565223,2163138.833427 > >329829.890822,2162669.908832 329800.332419,2162608.615244 > >329613.129196,2162388.760297 329546.450937,2162262.621528 > >329461.785588,2162084.010865 329417.677117,2162022.946412 > >329358.445743,2161948.592133 329327.397963,2161888.444219 > >329291.652916,2161839.523915 329176.856326,2161766.315311 > >329081.077933,2161668.474705 328952.304114,2161525.494520 > >328919.308686,2161505.788918 328775.526530,2161396.720700 > >328658.896860,2161307.358085 328554.525908,2161224.640382 > >328469.975126,2161143.870326 328430.449354,2161110.874899 > >328412.576831,2161037.551728 > > > > > >- > > D?partementale > > > > > > From oubinny at HOTMAIL.COM Fri Aug 26 05:34:58 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: Everything works with Cadcorp SIS Mapbrowser, with GET METHOD. My WFS server seems to not support the POST METHOD, how i can configure it for that ? Thanks >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Fri, 26 Aug 2005 11:06:21 +0200 > >I don't think Mapinfo WFS client can talk to Mapserver. > >What I know of it, MapInfo WFS client does not send the map= parameter when >doing a request. > >Check with a better WFS client like Cadcorp SIS Mapbrowser, which is also >free. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/26/05 11:03 am >>> >I tested my wfs server with MapInfo WFS client but a i have a error POST >BODY IS SHORT error >What do is it mean ? >Cordialement > > > > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Fri, 26 Aug 2005 09:57:34 +0200 > > > >The warnings or errors are because of the fact that your GIS attributes > >contain special characters, like ?, and this is not allowed for XML >element > >names. > > > >I think the only thing you could do is rename your GIS attributes, so > >Categorie instead of Cat?gorie. Maybe something else is possible with > >Steve's new GML3 output, which is more flexible, but I don't have enough > >knowledge of that. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> Mehdi Kiman 08/26/05 9:51 am >>> > >Sorry, now i have the right GetCapabilities WFS response : > > > > > >- >xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >xsi:schemaLocation="http://www.opengis.net/wfs > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-capabilities.xsd"> > >- > >- > > MapServer WFS > > WFS Pays Ne de La Mer > > > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map& > > > >- > >- > >- > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > >- > >- > > > > > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > >- > >- > > > > > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > > > > > >- > >- > > > > > >- > > Contours_de_communes > > Contours_de_communes > > epsg:27582 > > >maxy="46.4928" /> > > > >- > > Parcelles > > Parcelles > > epsg:27582 > > >maxy="46.4732" /> > > > >- > > Routes > > Routes > > epsg:27582 > > >maxy="46.5377" /> > > > >- > > Sections_cadastrales > > SectionsCadastrales > > epsg:27582 > > >maxy="46.4733" /> > > > > > >- > >- > >- > > > > > > > > > > > >- > > > >- > > > > > > > > > > > > > > > > > >But i have errors in my GetFeature request : > >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes > > > >version="1.0" encoding="ISO-8859-1" ?> > >- >xmlns:myns="http://www.ttt.org/myns" >xmlns:wfs="http://www.opengis.net/wfs" > >xmlns:gml="http://www.opengis.net/gml" > >xmlns:ogc="http://www.opengis.net/ogc" > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >xsi:schemaLocation="http://www.opengis.net/wfs > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > >http://www.ttt.org/myns > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=Routes"> > >- > >- > > 310559.988523,2147175.004190 > >335547.035982,2176659.969948 > > > > > >- > >- > >- > >- > > 328391.152717,2160988.975126 > >330870.048750,2167145.028208 > > > > > >- > >- > > 330870.048750,2167145.028208 > >330644.007160,2166700.964751 > >330568.048937,2166309.946026 330678.950234,2165020.947585 > >330538.032264,2164136.945099 330214.035500,2163551.619969 > >330027.863385,2163201.845528 329999.565223,2163138.833427 > >329829.890822,2162669.908832 329800.332419,2162608.615244 > >329613.129196,2162388.760297 329546.450937,2162262.621528 > >329461.785588,2162084.010865 329417.677117,2162022.946412 > >329358.445743,2161948.592133 329327.397963,2161888.444219 > >329291.652916,2161839.523915 329176.856326,2161766.315311 > >329081.077933,2161668.474705 328952.304114,2161525.494520 > >328919.308686,2161505.788918 328775.526530,2161396.720700 > >328658.896860,2161307.358085 328554.525908,2161224.640382 > >328469.975126,2161143.870326 328430.449354,2161110.874899 > >328412.576831,2161037.551728 > > > > > >- > > D?partementale > > > > > > From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 26 05:38:14 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem Message-ID: This is a "bug" in Mapbrowser, don't worry about it, see: http://mail.opengeospatial.org/pipermail/wfs-dev/2005-March/000215.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Mehdi Kiman 08/26/05 11:34 am >>> Everything works with Cadcorp SIS Mapbrowser, with GET METHOD. My WFS server seems to not support the POST METHOD, how i can configure it for that ? Thanks >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Fri, 26 Aug 2005 11:06:21 +0200 > >I don't think Mapinfo WFS client can talk to Mapserver. > >What I know of it, MapInfo WFS client does not send the map= parameter when >doing a request. > >Check with a better WFS client like Cadcorp SIS Mapbrowser, which is also >free. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/26/05 11:03 am >>> >I tested my wfs server with MapInfo WFS client but a i have a error POST >BODY IS SHORT error >What do is it mean ? >Cordialement > > > > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Fri, 26 Aug 2005 09:57:34 +0200 > > > >The warnings or errors are because of the fact that your GIS attributes > >contain special characters, like ?, and this is not allowed for XML >element > >names. > > > >I think the only thing you could do is rename your GIS attributes, so > >Categorie instead of Cat?gorie. Maybe something else is possible with > >Steve's new GML3 output, which is more flexible, but I don't have enough > >knowledge of that. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> Mehdi Kiman 08/26/05 9:51 am >>> > >Sorry, now i have the right GetCapabilities WFS response : > > > > > >- >xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >xsi:schemaLocation="http://www.opengis.net/wfs > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-capabilities.xsd"> > >- > >- > > MapServer WFS > > WFS Pays Ne de La Mer > > > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map& > > > >- > >- > >- > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > >- > >- > > > > > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > >- > >- > > > > > >- > >- > > onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > >- > >- > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > >/> > > > > > > > > > > > >- > >- > > > > > >- > > Contours_de_communes > > Contours_de_communes > > epsg:27582 > > >maxy="46.4928" /> > > > >- > > Parcelles > > Parcelles > > epsg:27582 > > >maxy="46.4732" /> > > > >- > > Routes > > Routes > > epsg:27582 > > >maxy="46.5377" /> > > > >- > > Sections_cadastrales > > SectionsCadastrales > > epsg:27582 > > >maxy="46.4733" /> > > > > > >- > >- > >- > > > > > > > > > > > >- > > > >- > > > > > > > > > > > > > > > > > >But i have errors in my GetFeature request : > >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes > > > >version="1.0" encoding="ISO-8859-1" ?> > >- >xmlns:myns="http://www.ttt.org/myns" >xmlns:wfs="http://www.opengis.net/wfs" > >xmlns:gml="http://www.opengis.net/gml" > >xmlns:ogc="http://www.opengis.net/ogc" > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >xsi:schemaLocation="http://www.opengis.net/wfs > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > >http://www.ttt.org/myns > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=Routes"> > >- > >- > > 310559.988523,2147175.004190 > >335547.035982,2176659.969948 > > > > > >- > >- > >- > >- > > 328391.152717,2160988.975126 > >330870.048750,2167145.028208 > > > > > >- > >- > > 330870.048750,2167145.028208 > >330644.007160,2166700.964751 > >330568.048937,2166309.946026 330678.950234,2165020.947585 > >330538.032264,2164136.945099 330214.035500,2163551.619969 > >330027.863385,2163201.845528 329999.565223,2163138.833427 > >329829.890822,2162669.908832 329800.332419,2162608.615244 > >329613.129196,2162388.760297 329546.450937,2162262.621528 > >329461.785588,2162084.010865 329417.677117,2162022.946412 > >329358.445743,2161948.592133 329327.397963,2161888.444219 > >329291.652916,2161839.523915 329176.856326,2161766.315311 > >329081.077933,2161668.474705 328952.304114,2161525.494520 > >328919.308686,2161505.788918 328775.526530,2161396.720700 > >328658.896860,2161307.358085 328554.525908,2161224.640382 > >328469.975126,2161143.870326 328430.449354,2161110.874899 > >328412.576831,2161037.551728 > > > > > >- > > D?partementale > > > > > > From oubinny at HOTMAIL.COM Fri Aug 26 05:41:44 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem In-Reply-To: Message-ID: MapServer works with POST METHOD ? it seems that the problem with MapInfo Client Mehdi >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Fri, 26 Aug 2005 11:38:14 +0200 > >This is a "bug" in Mapbrowser, don't worry about it, see: > >http://mail.opengeospatial.org/pipermail/wfs-dev/2005-March/000215.html > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/26/05 11:34 am >>> >Everything works with Cadcorp SIS Mapbrowser, with GET METHOD. >My WFS server seems to not support the POST METHOD, how i can configure >it >for that ? > >Thanks > > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Fri, 26 Aug 2005 11:06:21 +0200 > > > >I don't think Mapinfo WFS client can talk to Mapserver. > > > >What I know of it, MapInfo WFS client does not send the map= parameter >when > >doing a request. > > > >Check with a better WFS client like Cadcorp SIS Mapbrowser, which is also > >free. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> Mehdi Kiman 08/26/05 11:03 am >>> > >I tested my wfs server with MapInfo WFS client but a i have a error POST > >BODY IS SHORT error > >What do is it mean ? > >Cordialement > > > > > > > > > > >From: "Bart van den Eijnden" > > >To: , > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > > >Date: Fri, 26 Aug 2005 09:57:34 +0200 > > > > > >The warnings or errors are because of the fact that your GIS attributes > > >contain special characters, like ?, and this is not allowed for XML > >element > > >names. > > > > > >I think the only thing you could do is rename your GIS attributes, so > > >Categorie instead of Cat?gorie. Maybe something else is possible with > > >Steve's new GML3 output, which is more flexible, but I don't have >enough > > >knowledge of that. > > > > > >Best regards, > > >Bart > > > > > >Bart van den Eijnden > > >Syncera IT Solutions > > >Postbus 270 > > >2600 AG DELFT > > > > > >tel.nr.: 015-7512436 > > >email: BEN@Syncera-ITSolutions.nl > > > > > > >>> Mehdi Kiman 08/26/05 9:51 am >>> > > >Sorry, now i have the right GetCapabilities WFS response : > > > > > > > > >- > >xmlns="http://www.opengis.net/wfs" >xmlns:ogc="http://www.opengis.net/ogc" > > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > >xsi:schemaLocation="http://www.opengis.net/wfs > > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-capabilities.xsd"> > > >- > > >- > > > MapServer WFS > > > WFS Pays Ne de La Mer > > > > > > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map& > > > > > >- > > >- > > >- > > >- > > >- > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > >- > > >- > > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > > > > >- > > >- > > > > > > > > >- > > >- > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > >- > > >- > > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > > > > >- > > >- > > > > > > > > >- > > >- > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > >- > > >- > > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > > > > > > > > > > >- > > >- > > > > > > > > >- > > > Contours_de_communes > > > Contours_de_communes > > > epsg:27582 > > > > >maxy="46.4928" /> > > > > > >- > > > Parcelles > > > Parcelles > > > epsg:27582 > > > > >maxy="46.4732" /> > > > > > >- > > > Routes > > > Routes > > > epsg:27582 > > > > >maxy="46.5377" /> > > > > > >- > > > Sections_cadastrales > > > SectionsCadastrales > > > epsg:27582 > > > > >maxy="46.4733" /> > > > > > > > > >- > > >- > > >- > > > > > > > > > > > > > > > > > >- > > > > > >- > > > > > > > > > > > > > > > > > > > > > > > > > > >But i have errors in my GetFeature request : > > > >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes > > > > > >version="1.0" encoding="ISO-8859-1" ?> > > >- > >xmlns:myns="http://www.ttt.org/myns" > >xmlns:wfs="http://www.opengis.net/wfs" > > >xmlns:gml="http://www.opengis.net/gml" > > >xmlns:ogc="http://www.opengis.net/ogc" > > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > >xsi:schemaLocation="http://www.opengis.net/wfs > > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > >http://www.ttt.org/myns > > > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=Routes"> > > >- > > >- > > > 310559.988523,2147175.004190 > > >335547.035982,2176659.969948 > > > > > > > > >- > > >- > > >- > > >- > > > 328391.152717,2160988.975126 > > >330870.048750,2167145.028208 > > > > > > > > >- > > >- > > > 330870.048750,2167145.028208 > > >330644.007160,2166700.964751 > > >330568.048937,2166309.946026 330678.950234,2165020.947585 > > >330538.032264,2164136.945099 330214.035500,2163551.619969 > > >330027.863385,2163201.845528 329999.565223,2163138.833427 > > >329829.890822,2162669.908832 329800.332419,2162608.615244 > > >329613.129196,2162388.760297 329546.450937,2162262.621528 > > >329461.785588,2162084.010865 329417.677117,2162022.946412 > > >329358.445743,2161948.592133 329327.397963,2161888.444219 > > >329291.652916,2161839.523915 329176.856326,2161766.315311 > > >329081.077933,2161668.474705 328952.304114,2161525.494520 > > >328919.308686,2161505.788918 328775.526530,2161396.720700 > > >328658.896860,2161307.358085 328554.525908,2161224.640382 > > >328469.975126,2161143.870326 328430.449354,2161110.874899 > > >328412.576831,2161037.551728 > > > > > > > > >- > > > D?partementale > > > > > > > > > From BEN at SYNCERA-ITSOLUTIONS.NL Fri Aug 26 05:43:20 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:58 2008 Subject: wfs server problem Message-ID: Yes, Mapserver can accept HTTP POST for WFS, no problem. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> "Mehdi Kiman" 08/26/05 11:41 am >>> MapServer works with POST METHOD ? it seems that the problem with MapInfo Client Mehdi >From: "Bart van den Eijnden" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem >Date: Fri, 26 Aug 2005 11:38:14 +0200 > >This is a "bug" in Mapbrowser, don't worry about it, see: > >http://mail.opengeospatial.org/pipermail/wfs-dev/2005-March/000215.html > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > >>> Mehdi Kiman 08/26/05 11:34 am >>> >Everything works with Cadcorp SIS Mapbrowser, with GET METHOD. >My WFS server seems to not support the POST METHOD, how i can configure >it >for that ? > >Thanks > > > >From: "Bart van den Eijnden" > >To: , > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > >Date: Fri, 26 Aug 2005 11:06:21 +0200 > > > >I don't think Mapinfo WFS client can talk to Mapserver. > > > >What I know of it, MapInfo WFS client does not send the map= parameter >when > >doing a request. > > > >Check with a better WFS client like Cadcorp SIS Mapbrowser, which is also > >free. > > > >Best regards, > >Bart > > > >Bart van den Eijnden > >Syncera IT Solutions > >Postbus 270 > >2600 AG DELFT > > > >tel.nr.: 015-7512436 > >email: BEN@Syncera-ITSolutions.nl > > > > >>> Mehdi Kiman 08/26/05 11:03 am >>> > >I tested my wfs server with MapInfo WFS client but a i have a error POST > >BODY IS SHORT error > >What do is it mean ? > >Cordialement > > > > > > > > > > >From: "Bart van den Eijnden" > > >To: , > > >Subject: Re: [UMN_MAPSERVER-USERS] wfs server problem > > >Date: Fri, 26 Aug 2005 09:57:34 +0200 > > > > > >The warnings or errors are because of the fact that your GIS attributes > > >contain special characters, like ?, and this is not allowed for XML > >element > > >names. > > > > > >I think the only thing you could do is rename your GIS attributes, so > > >Categorie instead of Cat?gorie. Maybe something else is possible with > > >Steve's new GML3 output, which is more flexible, but I don't have >enough > > >knowledge of that. > > > > > >Best regards, > > >Bart > > > > > >Bart van den Eijnden > > >Syncera IT Solutions > > >Postbus 270 > > >2600 AG DELFT > > > > > >tel.nr.: 015-7512436 > > >email: BEN@Syncera-ITSolutions.nl > > > > > > >>> Mehdi Kiman 08/26/05 9:51 am >>> > > >Sorry, now i have the right GetCapabilities WFS response : > > > > > > > > >- > >xmlns="http://www.opengis.net/wfs" >xmlns:ogc="http://www.opengis.net/ogc" > > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > >xsi:schemaLocation="http://www.opengis.net/wfs > > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-capabilities.xsd"> > > >- > > >- > > > MapServer WFS > > > WFS Pays Ne de La Mer > > > > > > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map& > > > > > >- > > >- > > >- > > >- > > >- > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > >- > > >- > > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > > > > >- > > >- > > > > > > > > >- > > >- > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > >- > > >- > > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > > > > >- > > >- > > > > > > > > >- > > >- > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > >- > > >- > > > > >onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" > > >/> > > > > > > > > > > > > > > > > > >- > > >- > > > > > > > > >- > > > Contours_de_communes > > > Contours_de_communes > > > epsg:27582 > > > > >maxy="46.4928" /> > > > > > >- > > > Parcelles > > > Parcelles > > > epsg:27582 > > > > >maxy="46.4732" /> > > > > > >- > > > Routes > > > Routes > > > epsg:27582 > > > > >maxy="46.5377" /> > > > > > >- > > > Sections_cadastrales > > > SectionsCadastrales > > > epsg:27582 > > > > >maxy="46.4733" /> > > > > > > > > >- > > >- > > >- > > > > > > > > > > > > > > > > > >- > > > > > >- > > > > > > > > > > > > > > > > > > > > > > > > > > >But i have errors in my GetFeature request : > > > >http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes > > > > > >version="1.0" encoding="ISO-8859-1" ?> > > >- > >xmlns:myns="http://www.ttt.org/myns" > >xmlns:wfs="http://www.opengis.net/wfs" > > >xmlns:gml="http://www.opengis.net/gml" > > >xmlns:ogc="http://www.opengis.net/ogc" > > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > >xsi:schemaLocation="http://www.opengis.net/wfs > > >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > >http://www.ttt.org/myns > > > >http://emir:8080/cgi-bin/myows.exe?config_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=Routes"> > > >- > > >- > > > 310559.988523,2147175.004190 > > >335547.035982,2176659.969948 > > > > > > > > >- > > >- > > >- > > >- > > > 328391.152717,2160988.975126 > > >330870.048750,2167145.028208 > > > > > > > > >- > > >- > > > 330870.048750,2167145.028208 > > >330644.007160,2166700.964751 > > >330568.048937,2166309.946026 330678.950234,2165020.947585 > > >330538.032264,2164136.945099 330214.035500,2163551.619969 > > >330027.863385,2163201.845528 329999.565223,2163138.833427 > > >329829.890822,2162669.908832 329800.332419,2162608.615244 > > >329613.129196,2162388.760297 329546.450937,2162262.621528 > > >329461.785588,2162084.010865 329417.677117,2162022.946412 > > >329358.445743,2161948.592133 329327.397963,2161888.444219 > > >329291.652916,2161839.523915 329176.856326,2161766.315311 > > >329081.077933,2161668.474705 328952.304114,2161525.494520 > > >328919.308686,2161505.788918 328775.526530,2161396.720700 > > >328658.896860,2161307.358085 328554.525908,2161224.640382 > > >328469.975126,2161143.870326 328430.449354,2161110.874899 > > >328412.576831,2161037.551728 > > > > > > > > >- > > > D?partementale > > > > > > > > > From philippe.gregoire at BOREAL-IS.COM Fri Aug 26 08:35:31 2005 From: philippe.gregoire at BOREAL-IS.COM (Philippe Gr=?ISO-8859-1?Q?=E9goire?=) Date: Fri Feb 8 15:07:58 2008 Subject: Installation Problem Message-ID: Hi I am having a problem installing MapServer on my Mandrake system. I know there is supposed to be step by step installation for this particular system but I can't find it. Can I have a link to that documentation please? Thanks From fclaudel at CSIR.CO.ZA Fri Aug 26 08:44:35 2005 From: fclaudel at CSIR.CO.ZA (Frederic Claudel) Date: Fri Feb 8 15:07:58 2008 Subject: serving WMS true color maps Message-ID: I'm using Mapserver to serve RBG satellite images as WMS. They are stored as RGB GeoTIFFs. This proves to be a very efficient solution. Unfortunately, most of the client applications accessing the data don't allow the user to choose the format, and I end up with 8-bit data beeing displayed. It looks like you cannot restrict formats available in the WMS GetCapabilities document. You always have image/png, image/gif (I tried with Mapserver 4.4 and 4.7 from FWTools.) Is there a way around that issue? I'd like to serve only image/jpeg and maybe image/png;mode=24bits. I tried to set my layers to opaque (since jpeg doesn't support transparency), but it doesn't help with the clients. The clients I'd like to use are: - Udig 1.0.0 (not beta) - ESRI ArcMap 8.3 + OGC plugin If you can help, it will be most welcome. thanks, Frederic Claudel PS: I actually think the WMS spec needs a way for a client to explicitly ask for an indexed / or truecolor map. -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to HelpDesk@csir.co.za. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. From mapserver at METEOLOGICA.ES Fri Aug 26 09:07:32 2005 From: mapserver at METEOLOGICA.ES (=?ISO-8859-1?Q?Paco_Regod=F3n?=) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. In-Reply-To: <430E3A7A.2030908@ci.stpaul.mn.us> Message-ID: Try to make a "closed U". Something like: SYMBOL NAME "donut" TYPE vector POINTS 0 0 0 3 1 3 1 1 2 1 2 2 1 2 1 3 3 3 3 0 0 0 END END Bob Basques wrote: > Does anyone know of a good way to make a donut symbol. > > I need to be able to resize a symbol that is basically a donut. Where > the donut part is semi-opaque, and the center is open. It's basically > a min/max distance from a point overlay. I have the dynamic handing > off of the sizing handled already, but haven't figured out a good way > to make a filled donut symbol. > > I did mange to make a stacked symbol, but I would really like to have > the center no be filled in, only the area between the MIN/MAX distance > from the point picked. > > Thanks > > bobb > -- ---------------------------------------------------------------- Francisco Regod?n Garc?a Meteologica S.A. Email: http://www.meteologica.com/ Phone: +34 914561001 Fax: +34 914561002 ---------------------------------------------------------------- From tkirstine at JDBARNES.COM Fri Aug 26 09:30:48 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Fri Feb 8 15:07:58 2008 Subject: TIN support Message-ID: I was wondering if there are any future plans for TIN support with mapserver or GDAL (eg gdal_contour) Travis Kirstine First Base Solutions Limited From fwarmerdam at GMAIL.COM Fri Aug 26 09:51:18 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:58 2008 Subject: serving WMS true color maps In-Reply-To: Message-ID: On 8/26/05, Frederic Claudel wrote: > It looks like you cannot restrict formats available in the WMS GetCapabilities document. You always have image/png, image/gif (I tried with Mapserver 4.4 and 4.7 from FWTools.) > Is there a way around that issue? Frederic, You are correct that currently I don't think there is a way to restrict the builtin formats from being offered for WMS. However, you can override the built-ins if you use the same name for an outputformat. So you could create an outputformat called GIF, but set all the parameters up as png24 or jpeg. It is a very small change to the code to comment out some of the default formats, but if you are using pre-built binaries I can see that would not be convenient. There has been some discussion of a mechanism (perhaps WEB object level metadata) to control the list of formats offered for WMS but nothing has been done on that. If you are willing you could try and promote that activity on mapserver-dev. I would likely be willing to implement such a feature if you took care of bringing forward a proposal and getting it approved by the TSC. Something like: METADATA "wms_formats" "gif,png,png24" END in the web section. If not found, the default output format list will be used (as now). I think there is also an open bug report on this issue, mostly related to excluding non-raster formats like pdf, html and so forth in capabilities reports. > The clients I'd like to use are: > - Udig 1.0.0 (not beta) I would also encourage you to advocate greater user control for formats with the uDig team. > PS: I actually think the WMS spec needs a way for a client to explicitly ask for an indexed / or truecolor map. I concur. The opaqueness of format features in WMS is a frustration to me as well. > This message has been scanned for viruses and dangerous content by MailScanner, > and is believed to be clean. MailScanner thanks Transtec Computers for their support. Ah, but has the email been scanned for thought-crime? Perhaps that is a new area of potential in the mail scanning business. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From matthew.garrish at SYMPATICO.CA Fri Aug 26 09:41:22 2005 From: matthew.garrish at SYMPATICO.CA (Matt Garrish) Date: Fri Feb 8 15:07:58 2008 Subject: Mapserver demo crash Message-ID: I'm just getting started with mapserver and was hoping to be able to play around with the demo (http://mapserver.gis.umn.edu/dload.html). I'm reasonably certain that my system (XP Pro SP2) is configured correctly, because I can run some of the other simple examples I've found on the Mapserver home page (I downloaded the 4.4.1 binary and set it up according to the readme file). When I tried to run the demo (from the index.html page), however, IIS crashed with a 502 error, so I went to the command line and tried the following: C:\Inetpub\Scripts>mapserv "QUERY_STRING=map=c:/inetpub/wwwroot/workshop/itasca. map&layer=lakespy2&layer=dlgstln2&zoomsize=1&program=http://localhost/cgi-bin/ma pserv.exe&root=http://localhost/workshop&map_web_imagepath=c:/inetpub/wwwroot/tm p&map_web_imageurl=http://localhost/tmp&map_web_template=itasca_basic.html" As soon as I run the command, however, an error window pops up with the following error signature: AppName: mapserv.exe AppVer: 0.0.0.0 ModName: ntdll.dll ModVer: 5.1.2600.2180 Offset: 00018fea which I have to assume is the cause of the 502 error. Has anyone run into this problem before? Or know what the cause might be? Or know if I'm just doing something wrong? (If you don't have XP or can't reproduce the problem I can post the stack dump.) Thanks in advance, Matt From jdport at VERITIME.COM Fri Aug 26 10:27:24 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. Message-ID: I haven't tried this , so it may not work, I've always used filled in shapes.. but couldn't you just use a non-filled in circle: SYMBOL NAME "circle" TYPE ellipse FILLED false POINTS 1 1 END END and then set its size appropriately? I'm not sure if there is a good way to affect the thickness though, other than stacking several of them with varying sizes. -Jeff ----- Original Message ----- From: "Bob Basques" To: Sent: Thursday, August 25, 2005 5:39 PM Subject: [UMN_MAPSERVER-USERS] Donut Symbol. > Does anyone know of a good way to make a donut symbol. > > I need to be able to resize a symbol that is basically a donut. Where the > donut part is semi-opaque, and the center is open. It's basically a > min/max distance from a point overlay. I have the dynamic handing off of > the sizing handled already, but haven't figured out a good way to make a > filled donut symbol. > > I did mange to make a stacked symbol, but I would really like to have the > center no be filled in, only the area between the MIN/MAX distance from > the point picked. > > Thanks > > bobb > From ealpert at DIGITALGLOBE.COM Fri Aug 26 10:48:00 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri Feb 8 15:07:58 2008 Subject: Mapserver demo crash Message-ID: I'm not a windows user but the most common problem when mapserv runs fine at the command line but dies running in the webserver space is it can't find one or more shared library. Check the IIS's equivalent of LD_SEARCH_PATH. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Matt Garrish Sent: Friday, August 26, 2005 7:41 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver demo crash I'm just getting started with mapserver and was hoping to be able to play around with the demo (http://mapserver.gis.umn.edu/dload.html). I'm reasonably certain that my system (XP Pro SP2) is configured correctly, because I can run some of the other simple examples I've found on the Mapserver home page (I downloaded the 4.4.1 binary and set it up according to the readme file). When I tried to run the demo (from the index.html page), however, IIS crashed with a 502 error, so I went to the command line and tried the following: C:\Inetpub\Scripts>mapserv "QUERY_STRING=map=c:/inetpub/wwwroot/workshop/itasca. map&layer=lakespy2&layer=dlgstln2&zoomsize=1&program=http://localhost/cg i-bin/ma pserv.exe&root=http://localhost/workshop&map_web_imagepath=c:/inetpub/ww wroot/tm p&map_web_imageurl=http://localhost/tmp&map_web_template=itasca_basic.ht ml" As soon as I run the command, however, an error window pops up with the following error signature: AppName: mapserv.exe AppVer: 0.0.0.0 ModName: ntdll.dll ModVer: 5.1.2600.2180 Offset: 00018fea which I have to assume is the cause of the 502 error. Has anyone run into this problem before? Or know what the cause might be? Or know if I'm just doing something wrong? (If you don't have XP or can't reproduce the problem I can post the stack dump.) Thanks in advance, Matt From mboos at AUGSIGNALS.COM Fri Aug 26 10:49:03 2005 From: mboos at AUGSIGNALS.COM (Mike Boos) Date: Fri Feb 8 15:07:58 2008 Subject: Blank image being created in MS 4.6.0 In-Reply-To: <931f8ea905082515124bd9437@mail.gmail.com> Message-ID: Thank you very much, I applied the patch, recompiled, and everything worked! Thanks for finding and fixing the problem so quickly. Mike Frank Warmerdam wrote: >On 8/25/05, Frank Warmerdam wrote: > > >>Mike, >> >>I assume there has been some subtle breakdown in the handling >>of ungeoreferenced images in the MapServer raster support. I'll >>try this out myself and see what can be done. >> >> > >Mike, > >I have confirmed that things changed due to a behavioral >change in GDAL and/or changes in the MapServer raster logic >for ungeoreferenced files. I have applied a patch in MapServer >CVS (head and the 4.6 branch) but was only an hour or so late >to get into MapServer 4.6.1. You can replace the msGetGDALGeoTransform >code in mapdrawgdal.c with the following to fix your own source tree. > >/************************************************************************/ >/* msGetGDALGeoTransform() */ >/* */ >/* Cover function that tries GDALGetGeoTransform(), a world */ >/* file or OWS extents. */ >/************************************************************************/ > >int msGetGDALGeoTransform( GDALDatasetH hDS, mapObj *map, layerObj *layer, > double *padfGeoTransform ) > >{ > rectObj rect; > >/* -------------------------------------------------------------------- */ >/* some GDAL drivers (ie. GIF) don't set geotransform on failure. */ >/* -------------------------------------------------------------------- */ > padfGeoTransform[0] = 0.0; > padfGeoTransform[1] = 1.0; > padfGeoTransform[2] = 0.0; > padfGeoTransform[3] = GDALGetRasterYSize(hDS); > padfGeoTransform[4] = 0.0; > padfGeoTransform[5] = -1.0; > >/* -------------------------------------------------------------------- */ >/* Try GDAL. */ >/* */ >/* Make sure that ymax is always at the top, and ymin at the */ >/* bottom ... that is flip any files without the usual */ >/* orientation. This is intended to enable display of "raw" */ >/* files with no coordinate system otherwise they break down in */ >/* many ways. */ >/* -------------------------------------------------------------------- */ > if (GDALGetGeoTransform( hDS, padfGeoTransform ) == CE_None ) > { > if( padfGeoTransform[5] == 1.0 && padfGeoTransform[3] == 0.0 ) > { > padfGeoTransform[5] = -1.0; > padfGeoTransform[3] = GDALGetRasterYSize(hDS); > } > > return MS_SUCCESS; > } > >/* -------------------------------------------------------------------- */ >/* Try worldfile. */ >/* -------------------------------------------------------------------- */ > else if( GDALGetDescription(hDS) != NULL > && GDALReadWorldFile(GDALGetDescription(hDS), "wld", > padfGeoTransform) ) > { > return MS_SUCCESS; > } > >/* -------------------------------------------------------------------- */ >/* Try OWS extent metadata. */ >/* -------------------------------------------------------------------- */ >#if defined(USE_WMS_SVR) || defined (USE_WFS_SVR) > else if( msOWSGetLayerExtent( map, layer, "MFCO", &rect ) == MS_SUCCESS ) > { > padfGeoTransform[0] = rect.minx; > padfGeoTransform[1] = (rect.maxx - rect.minx) / > (double) GDALGetRasterXSize( hDS ); > padfGeoTransform[2] = 0; > padfGeoTransform[3] = rect.maxy; > padfGeoTransform[4] = 0; > padfGeoTransform[5] = (rect.miny - rect.maxy) / > (double) GDALGetRasterYSize( hDS ); > > return MS_SUCCESS; > } >#endif > >/* -------------------------------------------------------------------- */ >/* We didn't find any info ... use the default. */ >/* Reset our default geotransform. GDALGetGeoTransform() may */ >/* have altered it even if GDALGetGeoTransform() failed. */ >/* -------------------------------------------------------------------- */ > else > { > padfGeoTransform[0] = 0.0; > padfGeoTransform[1] = 1.0; > padfGeoTransform[2] = 0.0; > padfGeoTransform[3] = GDALGetRasterYSize(hDS); > padfGeoTransform[4] = 0.0; > padfGeoTransform[5] = -1.0; > > return MS_FAILURE; > } >} > >Best regards, > > From matthew.garrish at SYMPATICO.CA Fri Aug 26 11:36:23 2005 From: matthew.garrish at SYMPATICO.CA (Matt Garrish) Date: Fri Feb 8 15:07:58 2008 Subject: Mapserver demo crash Message-ID: It only dies in IIS when I run the demo (so far, anyway). I am, for example, able to run the "Hello World" example on the recipes page (http://www.mobilegeographics.com/mapserver/). Aside from the parameters that get passed from the index.html page (reproduced below), I've set the following in the itasca.map file: SHAPEPATH "c:/inetpub/wwwroot/workshop/data" WMS_ONLINERESOURCE "http://localhost/workshop/index.html" I'm going to try running the example on a win2k box and see if it's something specific to XP (I've tried a couple of different XP boxes with the same result). Matt > > From: Ethan Alpert > Date: 2005/08/26 Fri AM 10:48:00 EST > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver demo crash > > I'm not a windows user but the most common problem when mapserv runs > fine at the command line but dies running in the webserver space is it > can't find one or more shared library. Check the IIS's equivalent of > LD_SEARCH_PATH. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On > Behalf Of Matt Garrish > Sent: Friday, August 26, 2005 7:41 AM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver demo crash > > > I'm just getting started with mapserver and was hoping to be able to > play > around with the demo (http://mapserver.gis.umn.edu/dload.html). I'm > reasonably certain that my system (XP Pro SP2) is configured correctly, > because I can run some of the other simple examples I've found on the > Mapserver home page (I downloaded the 4.4.1 binary and set it up > according > to the readme file). When I tried to run the demo (from the index.html > page), however, IIS crashed with a 502 error, so I went to the command > line > and tried the following: > > C:\Inetpub\Scripts>mapserv > "QUERY_STRING=map=c:/inetpub/wwwroot/workshop/itasca. > map&layer=lakespy2&layer=dlgstln2&zoomsize=1&program=http://localhost/cg > i-bin/ma > pserv.exe&root=http://localhost/workshop&map_web_imagepath=c:/inetpub/ww > wroot/tm > p&map_web_imageurl=http://localhost/tmp&map_web_template=itasca_basic.ht > ml" > > As soon as I run the command, however, an error window pops up with the > following error signature: > > AppName: mapserv.exe AppVer: 0.0.0.0 ModName: ntdll.dll > ModVer: 5.1.2600.2180 Offset: 00018fea > > which I have to assume is the cause of the 502 error. > > Has anyone run into this problem before? Or know what the cause might > be? Or > know if I'm just doing something wrong? (If you don't have XP or can't > reproduce the problem I can post the stack dump.) > > Thanks in advance, > > Matt > From nicolas.fortin at EC.GC.CA Fri Aug 26 11:43:40 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Fri Feb 8 15:07:58 2008 Subject: [UMN_MAPSERVER-USERS] Mapserver demo crash Message-ID: Hi I didn't follow all the conversation but as a windows user, I can tell you that 90% of the problem with mapserver and IIS come from permission problem. Run filemon (http://www.sysinternals.com/Utilities/Filemon.html) while loading the page and check the result to see if there's any ACCESS DENIED or suspicious FILE NOT FOUND. Hope this helps Nicolas Fortin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] De la part de Matt Garrish Envoy? : 26 ao?t 2005 11:36 ? : MAPSERVER-USERS@LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Mapserver demo crash It only dies in IIS when I run the demo (so far, anyway). I am, for example, able to run the "Hello World" example on the recipes page (http://www.mobilegeographics.com/mapserver/). Aside from the parameters that get passed from the index.html page (reproduced below), I've set the following in the itasca.map file: SHAPEPATH "c:/inetpub/wwwroot/workshop/data" WMS_ONLINERESOURCE "http://localhost/workshop/index.html" I'm going to try running the example on a win2k box and see if it's something specific to XP (I've tried a couple of different XP boxes with the same result). Matt > > From: Ethan Alpert > Date: 2005/08/26 Fri AM 10:48:00 EST > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver demo crash > > I'm not a windows user but the most common problem when mapserv runs > fine at the command line but dies running in the webserver space is it > can't find one or more shared library. Check the IIS's equivalent of > LD_SEARCH_PATH. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] > On Behalf Of Matt Garrish > Sent: Friday, August 26, 2005 7:41 AM > To: MAPSERVER-USERS@LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver demo crash > > > I'm just getting started with mapserver and was hoping to be able to > play around with the demo (http://mapserver.gis.umn.edu/dload.html). > I'm reasonably certain that my system (XP Pro SP2) is configured > correctly, because I can run some of the other simple examples I've > found on the Mapserver home page (I downloaded the 4.4.1 binary and > set it up according > to the readme file). When I tried to run the demo (from the index.html > page), however, IIS crashed with a 502 error, so I went to the command > line > and tried the following: > > C:\Inetpub\Scripts>mapserv > "QUERY_STRING=map=c:/inetpub/wwwroot/workshop/itasca. > map&layer=lakespy2&layer=dlgstln2&zoomsize=1&program=http://localhost/cg > i-bin/ma > pserv.exe&root=http://localhost/workshop&map_web_imagepath=c:/inetpub/ww > wroot/tm > p&map_web_imageurl=http://localhost/tmp&map_web_template=itasca_basic.ht > ml" > > As soon as I run the command, however, an error window pops up with > the > following error signature: > > AppName: mapserv.exe AppVer: 0.0.0.0 ModName: ntdll.dll > ModVer: 5.1.2600.2180 Offset: 00018fea > > which I have to assume is the cause of the 502 error. > > Has anyone run into this problem before? Or know what the cause might > be? Or know if I'm just doing something wrong? (If you don't have XP > or can't reproduce the problem I can post the stack dump.) > > Thanks in advance, > > Matt > From pramsey at REFRACTIONS.NET Fri Aug 26 11:55:48 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri Feb 8 15:07:58 2008 Subject: TIN support In-Reply-To: Message-ID: Travis, If you want to generate surfaces and contours, check out GMT, very nice toolkit... if you want to read things like ESRI TIN files... hm. Pay Frank some money! :) Paul On Aug 26, 2005, at 6:30 AM, Travis Kirstine GIS Tech wrote: > I was wondering if there are any future plans for TIN support with > mapserver > or GDAL (eg gdal_contour) > > Travis Kirstine > First Base Solutions Limited > From fwarmerdam at GMAIL.COM Fri Aug 26 12:06:28 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:58 2008 Subject: TIN support In-Reply-To: Message-ID: On 8/26/05, Travis Kirstine GIS Tech wrote: > I was wondering if there are any future plans for TIN support with mapserver > or GDAL (eg gdal_contour) Travis, There are no currently plans to try and generate TINs with gdal_contour or GDAL/OGR in general. As Paul mentions, GMT may be useful, and you can gdal_translate data to GMT raster fromat using the GMT driver. GRASS also has quite a bit of DEM modelling and may include TIN handling. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jachym.cepicky at CENTRUM.CZ Fri Aug 26 12:11:09 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Fri Feb 8 15:07:58 2008 Subject: TIN support In-Reply-To: <931f8ea905082609067cae411@mail.gmail.com> Message-ID: hallo, GRASS support for TIN is very limited. It can generate tins from point vector, but it can not be used as DTM for further analysis. Jachym On Fri, Aug 26, 2005 at 12:06:28PM -0400, Frank Warmerdam wrote: > On 8/26/05, Travis Kirstine GIS Tech wrote: > > I was wondering if there are any future plans for TIN support with mapserver > > or GDAL (eg gdal_contour) > > Travis, > > There are no currently plans to try and generate TINs with gdal_contour > or GDAL/OGR in general. > > As Paul mentions, GMT may be useful, and you can gdal_translate > data to GMT raster fromat using the GMT driver. > > GRASS also has quite a bit of DEM modelling and may include TIN > handling. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent -- Jachym Cepicky e-mail: jachym.cepicky@centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ From bob.basques at CI.STPAUL.MN.US Fri Aug 26 12:39:13 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. In-Reply-To: Message-ID: Paco, That a slick idea, I may use that in the end. But I couldn't use an outline then because there would be a line going from the outsude edge to the inside edge somehwere. bobb Paco Regod?n wrote: >Try to make a "closed U". > >Something like: > > SYMBOL > NAME "donut" > TYPE vector > POINTS > 0 0 0 3 1 3 1 1 2 1 2 2 1 2 1 3 3 3 3 0 0 0 > END > END > > > > >Bob Basques wrote: > > > >>Does anyone know of a good way to make a donut symbol. >> >>I need to be able to resize a symbol that is basically a donut. Where >>the donut part is semi-opaque, and the center is open. It's basically >>a min/max distance from a point overlay. I have the dynamic handing >>off of the sizing handled already, but haven't figured out a good way >>to make a filled donut symbol. >> >>I did mange to make a stacked symbol, but I would really like to have >>the center no be filled in, only the area between the MIN/MAX distance >>from the point picked. >> >>Thanks >> >>bobb >> >> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050826/ab7f98a2/attachment.html From bob.basques at CI.STPAUL.MN.US Fri Aug 26 12:46:58 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. In-Reply-To: Message-ID: Jeff, I tried that already. What I'm basically after is a sysmbol that is a empty circle with a thickness aplied to the line. Ideally it would be a symbol like anyother that I could apply a COLOR and OUTLINECOLOR to. Paco's idea of the close "u" shap would work if I didn't need to outline it. I also ran into another slight problem as well (may Paco has some ideas about this too.) I was trying to use this symbol as a distance measuring tool. but seemed to run into a snag with a size limit. I couldn't get the symbol to go over a certain pixel size. The circle is supposed to represent a distance buffer in miles (ground units). If I zoom in too close, the symbol won't get any larger than a certain size, about 500 pixels I would guess. I actually have three of these symbols stacked on top of each other for different distances. But the size of the symbol grow as I zoom in, but once I hit this max pixel size, the sysbol stop growing at this approx 500 pixel size. Thanks bobb Jeff Portwine wrote: >I haven't tried this , so it may not work, I've always used filled in >shapes.. but couldn't you just use a non-filled in circle: > >SYMBOL > NAME "circle" > TYPE ellipse > FILLED false > POINTS > 1 1 > END >END > >and then set its size appropriately? I'm not sure if there is a good way >to affect the thickness though, other than stacking several of them with >varying sizes. > >-Jeff > >----- Original Message ----- >From: "Bob Basques" >To: >Sent: Thursday, August 25, 2005 5:39 PM >Subject: [UMN_MAPSERVER-USERS] Donut Symbol. > > > > >>Does anyone know of a good way to make a donut symbol. >> >>I need to be able to resize a symbol that is basically a donut. Where the >>donut part is semi-opaque, and the center is open. It's basically a >>min/max distance from a point overlay. I have the dynamic handing off of >>the sizing handled already, but haven't figured out a good way to make a >>filled donut symbol. >> >>I did mange to make a stacked symbol, but I would really like to have the >>center no be filled in, only the area between the MIN/MAX distance from >>the point picked. >> >>Thanks >> >>bobb >> >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050826/252c64ce/attachment.html From steve.lime at DNR.STATE.MN.US Fri Aug 26 14:43:38 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. Message-ID: A dynamic donut is not possible given the way MapServer currently works. The way point symbols work is that a raster marker image is rendered based on the properties of the symbol and a SINGLE style. So this has to be accomplished within the context of a symbol definition or a style definition. Multiple styles will not help you because the base circle would already obscure anything underneath it. We could change the way an ELLIPSE symbol is rendered so that if you have additional second set of radii defined then that defines the hole. But the problem still remains that you need to specify sizes for the inner and outer ring which would involve changes to the style object- yuck. One could look at rendering all styles at once as well rather then in turn. You'd just define the hole somehow as a style. Nice idea but not doable at the moment. I wonder if a better approach would be to think about this particular problem as an exercise in combining a couple of maps. You certainly can use MapServer to build the base image, and you can also use MapServer to draw the rings in a seperate images (draw the big ring, and then draw the hole using the background color for the whole image). You just need to figure out how to combine them. You could use DHTML or MapScript to do this. I bet there's a way to do it using straight CGI (draw the rings as a raster layer in the second map) if we knew more about the application. For example, you might create the ring image and then refer to it as a layer in the base image. With AJAX you could do that using the CGI. Steve >>> Blammo 08/26/05 11:46 AM >>> Jeff, I tried that already. What I'm basically after is a sysmbol that is a empty circle with a thickness aplied to the line. Ideally it would be a symbol like anyother that I could apply a COLOR and OUTLINECOLOR to. Paco's idea of the close "u" shap would work if I didn't need to outline it. I also ran into another slight problem as well (may Paco has some ideas about this too.) I was trying to use this symbol as a distance measuring tool. but seemed to run into a snag with a size limit. I couldn't get the symbol to go over a certain pixel size. The circle is supposed to represent a distance buffer in miles (ground units). If I zoom in too close, the symbol won't get any larger than a certain size, about 500 pixels I would guess. I actually have three of these symbols stacked on top of each other for different distances. But the size of the symbol grow as I zoom in, but once I hit this max pixel size, the sysbol stop growing at this approx 500 pixel size. Thanks bobb Jeff Portwine wrote: >I haven't tried this , so it may not work, I've always used filled in >shapes.. but couldn't you just use a non-filled in circle: > >SYMBOL > NAME "circle" > TYPE ellipse > FILLED false > POINTS > 1 1 > END >END > >and then set its size appropriately? I'm not sure if there is a good way >to affect the thickness though, other than stacking several of them with >varying sizes. > >-Jeff > >----- Original Message ----- >From: "Bob Basques" >To: >Sent: Thursday, August 25, 2005 5:39 PM >Subject: [UMN_MAPSERVER-USERS] Donut Symbol. > > > > >>Does anyone know of a good way to make a donut symbol. >> >>I need to be able to resize a symbol that is basically a donut. Where the >>donut part is semi-opaque, and the center is open. It's basically a >>min/max distance from a point overlay. I have the dynamic handing off of >>the sizing handled already, but haven't figured out a good way to make a >>filled donut symbol. >> >>I did mange to make a stacked symbol, but I would really like to have the >>center no be filled in, only the area between the MIN/MAX distance from >>the point picked. >> >>Thanks >> >>bobb >> >> >> > > > > From bill at BINKO.NET Fri Aug 26 15:08:46 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri Feb 8 15:07:58 2008 Subject: Generating a table & map sharing identifiers In-Reply-To: Message-ID: So, after getting nothing back but comments on my ASCII-art (mostly positive, amazingly :), I banged on this a while and have come up with a fairly simple solution. I thought I'd post it back to the list, so it's below (after the problem statement)... On Sun, 21 Aug 2005, Bill Binko wrote: > Hi everyone, > > I have a problem that I'd like some feedback on. I'm certain it can be > done, but would like to know how others have solved it in the past. > > I need to generate several tables with "nearest X items" to a location. > For example, "Nearest 5 Schools" to a location. I then want to generate a > map showing the area that includes the X items and show the items on the > map using the id's from the table. > > Here's an example: > > Table: > Map ID |School Name |Students | Teachers > -------------------------------------------- > (A) |Main St. Elem. |100 | 10 > (B) |Pinewood Elem. |2500 | 20 > (C) |Forrest Lakes |800 | 20 > > Map: > ------------------ > | (A) | > | (B) | > | (C) | > ------------------ So, I found that you can indeed solve this with a strictly PostGIS solution. It still might not be the best, but since it works I thought I'd post it. The trick is to write a PL/PGSQL function that returns a counter that is unique to the current session, but that doesn't involve any setup ahead of time (like createing a sequence). Once you have that, you have to sort your shapes, and then add the counter to the results before they go back to mapserver. If you add the counter and then sort, you won't get the results you want. So, here's an example: The original Layer showed the nearest 10 sinkholes to a point (if they were within 3 miles). The POINT() below was actually found dynamically): DATA "hole from (select oid, hole from FROM all_sinkholes_km \ WHERE hole && buffer(pointfromtext('POINT(249895.731374337 1349408.0255176)', 26759),3*5280) ORDER BY distance(hole, pointfromtext('POINT(249895.731374337 1349408.0255176)', 26759)) limit 10) as innerQ using unique oid using SRID=26759" The code that generated the HTML table used a query with the same WHERE clause, but selecting different info for the table. However, it had the same ORDER BY and LIMIT, so they were returned in the right order. The goal was to add a column to the HTML table that had "MAP ID" as the header and "A", "B", etc. as the column values, and then to put "A","B", etc as the labels on the points returned on the map. The DATA section was changed to this: DATA "hole from (select oid, mapCounter('sinkhole', 'A') as label, hole FROM (select hole from all_sinkholes_km WHERE hole && buffer(pointfromtext('POINT(249895.731374337 1349408.0255176)', 26759), 3*5280) ORDER BY distance(hole, pointfromtext('POINT(249895.731374337 1349408.0255176)', 26759)) limit 10) as innerQ) as outerQ using unique oid using SRID=26759" This returns the same holes, but with a field named 'label' that has "A", "B", etc to use in the mapfile LABELITEM. Here's the code to mapCounter() CREATE OR REPLACE FUNCTION mapCounter(text, char) RETURNS text AS ' DECLARE seqName ALIAS FOR $1; startChar ALIAS FOR $2; seqAvail integer; result text; BEGIN seqAvail := count(*) from pg_class where relname = seqName AND pg_table_is_visible(oid); IF seqAvail = 0 THEN EXECUTE '' CREATE TEMPORARY SEQUENCE '' || seqName; END IF ; result := chr((ascii(startChar) - 1 + nextval(seqName))::integer); return result; END; ' LANGUAGE plpgsql; The function takes two parameters, a unique identifier that must be a valid PostgreSQL sequence name, and a starting character. It checks to see if there's already a temporary sequence of that name in the current session, and creates one if not, then it just returns the sequence. I have found this very helpful for adding labels to CGI-type Mapserver apps, and think it would help in WMS/WFS services as well. I hope this helps someone. Bill From bill at BINKO.NET Fri Aug 26 15:19:32 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. In-Reply-To: Message-ID: Another approach is to handle this on the data side: either in Mapscript or in the database if your data is in PostGIS (and perhaps through OGR: Frank?) What I do for this is simply have the data set return a buffer() around the point and then display the layer as a POLYGON rather than a point. So, if your original data was in PostGIS and your DATA line was: DATA "myPoint from (SELECT oid, myPoint from myTable WHERE someField = 'someValue') as foo using unique oid using SRID=1234" You could just change that to: DATA "myPoint from (SELECT oid, buffer(myPoint, myRingsize) from myTable WHERE someField = 'someValue') as foo using unique oid using SRID=1234" and change your layer from POINT to POLYGON I don't know if OGR can do buffer(), but certainly you could look into it. Bill On Fri, 26 Aug 2005, Steve Lime wrote: > A dynamic donut is not possible given the way MapServer currently works. > > The way point symbols work is that a raster marker image is rendered based > on the properties of the symbol and a SINGLE style. So this has to be accomplished > within the context of a symbol definition or a style definition. Multiple styles will not > help you because the base circle would already obscure anything underneath it. > > We could change the way an ELLIPSE symbol is rendered so that if you have > additional second set of radii defined then that defines the hole. But the problem > still remains that you need to specify sizes for the inner and outer ring which would > involve changes to the style object- yuck. > > One could look at rendering all styles at once as well rather then in turn. You'd just > define the hole somehow as a style. Nice idea but not doable at the moment. > > I wonder if a better approach would be to think about this particular problem as > an exercise in combining a couple of maps. You certainly can use MapServer to build > the base image, and you can also use MapServer to draw the rings in a seperate > images (draw the big ring, and then draw the hole using the background color for > the whole image). You just need to figure out how to combine them. > > You could use DHTML or MapScript to do this. I bet there's a way to do it using straight > CGI (draw the rings as a raster layer in the second map) if we knew more about the > application. For example, you might create the ring image and then refer to it as a > layer in the base image. With AJAX you could do that using the CGI. > > Steve > > >>> Blammo 08/26/05 11:46 AM >>> > Jeff, > > I tried that already. > > What I'm basically after is a sysmbol that is a empty circle with a > thickness aplied to the line. Ideally it would be a symbol like > anyother that I could apply a COLOR and OUTLINECOLOR to. > > Paco's idea of the close "u" shap would work if I didn't need to outline it. > > I also ran into another slight problem as well (may Paco has some ideas > about this too.) > > I was trying to use this symbol as a distance measuring tool. but > seemed to run into a snag with a size limit. I couldn't get the symbol > to go over a certain pixel size. The circle is supposed to represent > a distance buffer in miles (ground units). > > If I zoom in too close, the symbol won't get any larger than a certain > size, about 500 pixels I would guess. I actually have three of these > symbols stacked on top of each other for different distances. But the > size of the symbol grow as I zoom in, but once I hit this max pixel > size, the sysbol stop growing at this approx 500 pixel size. > > Thanks > > bobb > > > > Jeff Portwine wrote: > > >I haven't tried this , so it may not work, I've always used filled in > >shapes.. but couldn't you just use a non-filled in circle: > > > >SYMBOL > > NAME "circle" > > TYPE ellipse > > FILLED false > > POINTS > > 1 1 > > END > >END > > > >and then set its size appropriately? I'm not sure if there is a good way > >to affect the thickness though, other than stacking several of them with > >varying sizes. > > > >-Jeff > > > >----- Original Message ----- > >From: "Bob Basques" > >To: > >Sent: Thursday, August 25, 2005 5:39 PM > >Subject: [UMN_MAPSERVER-USERS] Donut Symbol. > > > > > > > > > >>Does anyone know of a good way to make a donut symbol. > >> > >>I need to be able to resize a symbol that is basically a donut. Where the > >>donut part is semi-opaque, and the center is open. It's basically a > >>min/max distance from a point overlay. I have the dynamic handing off of > >>the sizing handled already, but haven't figured out a good way to make a > >>filled donut symbol. > >> > >>I did mange to make a stacked symbol, but I would really like to have the > >>center no be filled in, only the area between the MIN/MAX distance from > >>the point picked. > >> > >>Thanks > >> > >>bobb > >> > >> > >> > > > > > > > > > > From bob.basques at CI.STPAUL.MN.US Fri Aug 26 15:16:24 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. In-Reply-To: Message-ID: All, The need: This is for locating points that Photographs were taken at around the ( few hundred thousand of them) city. The idea is for the user to pick a point on a map, along with a MIN & MAX distance (in ground units) away from the point picked. This Donut shaped area is where all the photo's that were taken and generally looking in the direction of the point picked, wihin 20-30 degrees for example (did I mention the photo data is all in a database, complete with a compass heading for the direction of view) and these are listed out for review by the users in a film strip fashion. Like walking around the point in the field. We have the selection and outputting working for the photography, but I can't seem to figure out a way to display this donut shape, in the map. I'm using two circles on top of one another at the moment for this, but the inner area is currently filled in. I was just trying to get to a point where only the donut area is filled in. The closed Donut symbol shape that Paco came up with is the closest so far to what I'm looking for, and will do for our needs. I don't know that this is a big enough deal to reprogram anything at this point. I was just wondering if there were a way to handle it. The Symbol method would be the best choice for this application as the View can be zoomed into and out of. at will by the users, so the donut shape can scale in relation to the view size. (see other problem below.) ----------- On a related item. Is there some sort of Symbol (PIXEL) size limit in place? I can't seem to make a Symbol generate any bigger than around 500 pixels? If I zoom into a spot too close for example, the symbol for this buffer area stops getting any bigger. There is no error generated, the symbol is just rendered at this max setting after a certain zoom level is reached. Some more info, I'm using multiple circles in my example, all statically sized (in ground units) so as I zoom in they should all stay the same ratio in size to each other as they grow, but when the outer circle hits this limit, it just stops growing, and the inner circle continue to grow until they reach this limit. bobb Steve Lime wrote: >A dynamic donut is not possible given the way MapServer currently works. > >The way point symbols work is that a raster marker image is rendered based >on the properties of the symbol and a SINGLE style. So this has to be = >accomplished >within the context of a symbol definition or a style definition. Multiple = >styles will not >help you because the base circle would already obscure anything underneath = >it. > >We could change the way an ELLIPSE symbol is rendered so that if you = >have=20 >additional second set of radii defined then that defines the hole. But the = >problem >still remains that you need to specify sizes for the inner and outer ring = >which would >involve changes to the style object- yuck.=20 > >One could look at rendering all styles at once as well rather then in = >turn. You'd just >define the hole somehow as a style. Nice idea but not doable at the = >moment. > >I wonder if a better approach would be to think about this particular = >problem as >an exercise in combining a couple of maps. You certainly can use MapServer = >to build >the base image, and you can also use MapServer to draw the rings in a = >seperate >images (draw the big ring, and then draw the hole using the background = >color for >the whole image). You just need to figure out how to combine them. > >You could use DHTML or MapScript to do this. I bet there's a way to do it = >using straight >CGI (draw the rings as a raster layer in the second map) if we knew more = >about the >application. For example, you might create the ring image and then refer = >to it as a >layer in the base image. With AJAX you could do that using the CGI. > >Steve > > > From bob.basques at CI.STPAUL.MN.US Fri Aug 26 15:21:37 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri Feb 8 15:07:58 2008 Subject: Donut Symbol. In-Reply-To: Message-ID: Hmm, sounds like overkill for my needs, but it does give me another idea. Using Paco's method of a closed "U" shap symbol, I could stack two circle outlines on top of the closed Ushape and use those for the outline colors of the filled donut area. It's not pretty, but I won't tell anyone if you don't. The sizing of the radius for offset is dynamic and being sent to the sever, so your thoughts are certainly relevent. Thanks for the ideas. I had thought about drawing a PolyShape with a HOLE in it as well. But this even seemed like overkill. As a matter of fact, I've probably put to much into it already at this point :c) bobb Bill Binko wrote: >Another approach is to handle this on the data side: either in Mapscript >or in the database if your data is in PostGIS (and perhaps through OGR: >Frank?) > >What I do for this is simply have the data set return a buffer() around >the point and then display the layer as a POLYGON rather than a point. > >So, if your original data was in PostGIS and your DATA line was: > >DATA "myPoint from (SELECT oid, myPoint from myTable WHERE someField = > 'someValue') as foo using unique oid using SRID=1234" > >You could just change that to: > >DATA "myPoint from (SELECT oid, buffer(myPoint, myRingsize) from myTable > WHERE someField = 'someValue') as foo using unique oid using SRID=1234" > >and change your layer from POINT to POLYGON > >I don't know if OGR can do buffer(), but certainly you could look into it. > >Bill > > > >On Fri, 26 Aug 2005, Steve Lime wrote: > > > >>A dynamic donut is not possible given the way MapServer currently works. >> >>The way point symbols work is that a raster marker image is rendered based >>on the properties of the symbol and a SINGLE style. So this has to be accomplished >>within the context of a symbol definition or a style definition. Multiple styles will not >>help you because the base circle would already obscure anything underneath it. >> >>We could change the way an ELLIPSE symbol is rendered so that if you have >>additional second set of radii defined then that defines the hole. But the problem >>still remains that you need to specify sizes for the inner and outer ring which would >>involve changes to the style object- yuck. >> >>One could look at rendering all styles at once as well rather then in turn. You'd just >>define the hole somehow as a style. Nice idea but not doable at the moment. >> >>I wonder if a better approach would be to think about this particular problem as >>an exercise in combining a couple of maps. You certainly can use MapServer to build >>the base image, and you can also use MapServer to draw the rings in a seperate >>images (draw the big ring, and then draw the hole using the background color for >>the whole image). You just need to figure out how to combine them. >> >>You could use DHTML or MapScript to do this. I bet there's a way to do it using straight >>CGI (draw the rings as a raster layer in the second map) if we knew more about the >>application. For example, you might create the ring image and then refer to it as a >>layer in the base image. With AJAX you could do that using the CGI. >> >>Steve >> >> >> >>>>>Blammo 08/26/05 11:46 AM >>> >>>>> >>>>> >>Jeff, >> >>I tried that already. >> >>What I'm basically after is a sysmbol that is a empty circle with a >>thickness aplied to the line. Ideally it would be a symbol like >>anyother that I could apply a COLOR and OUTLINECOLOR to. >> >>Paco's idea of the close "u" shap would work if I didn't need to outline it. >> >>I also ran into another slight problem as well (may Paco has some ideas >>about this too.) >> >>I was trying to use this symbol as a distance measuring tool. but >>seemed to run into a snag with a size limit. I couldn't get the symbol >>to go over a certain pixel size. The circle is supposed to represent >>a distance buffer in miles (ground units). >> >>If I zoom in too close, the symbol won't get any larger than a certain >>size, about 500 pixels I would guess. I actually have three of these >>symbols stacked on top of each other for different distances. But the >>size of the symbol grow as I zoom in, but once I hit this max pixel >>size, the sysbol stop growing at this approx 500 pixel size. >> >>Thanks >> >>bobb >> >> >> >>Jeff Portwine wrote: >> >> >> >>>I haven't tried this , so it may not work, I've always used filled in >>>shapes.. but couldn't you just use a non-filled in circle: >>> >>>SYMBOL >>> NAME "circle" >>> TYPE ellipse >>> FILLED false >>> POINTS >>> 1 1 >>> END >>>END >>> >>>and then set its size appropriately? I'm not sure if there is a good way >>>to affect the thickness though, other than stacking several of them with >>>varying sizes. >>> >>>-Jeff >>> >>>----- Original Message ----- >>>From: "Bob Basques" >>>To: >>>Sent: Thursday, August 25, 2005 5:39 PM >>>Subject: [UMN_MAPSERVER-USERS] Donut Symbol. >>> >>> >>> >>> >>> >>> >>>>Does anyone know of a good way to make a donut symbol. >>>> >>>>I need to be able to resize a symbol that is basically a donut. Where the >>>>donut part is semi-opaque, and the center is open. It's basically a >>>>min/max distance from a point overlay. I have the dynamic handing off of >>>>the sizing handled already, but haven't figured out a good way to make a >>>>filled donut symbol. >>>> >>>>I did mange to make a stacked symbol, but I would really like to have the >>>>center no be filled in, only the area between the MIN/MAX distance from >>>>the point picked. >>>> >>>>Thanks >>>> >>>>bobb >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050826/d53f655b/attachment.html From bill at BINKO.NET Fri Aug 26 16:01:10 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri Feb 8 15:07:59 2008 Subject: Donut Symbol. In-Reply-To: <430F6BC1.2010804@ci.stpaul.mn.us> Message-ID: Bob, If your points are stored in PostGIS, there are ways of getting this perfect. It's not always pretty, and can require some Nasty SQL, , but I'd be happy to work with you offline on this (and you can post the results back to the list). Bill bill@binko.net On Fri, 26 Aug 2005, Blammo wrote: > Hmm, sounds like overkill for my needs, but it does give me another idea. > > Using Paco's method of a closed "U" shap symbol, I could stack two > circle outlines on top of the closed Ushape and use those for the > outline colors of the filled donut area. > > It's not pretty, but I won't tell anyone if you don't. > > The sizing of the radius for offset is dynamic and being sent to the > sever, so your thoughts are certainly relevent. > > Thanks for the ideas. I had thought about drawing a PolyShape with a > HOLE in it as well. But this even seemed like overkill. As a matter > of fact, I've probably put to much into it already at this point :c) > > bobb > > Bill Binko wrote: > > >Another approach is to handle this on the data side: either in Mapscript > >or in the database if your data is in PostGIS (and perhaps through OGR: > >Frank?) > > > >What I do for this is simply have the data set return a buffer() around > >the point and then display the layer as a POLYGON rather than a point. > > > >So, if your original data was in PostGIS and your DATA line was: > > > >DATA "myPoint from (SELECT oid, myPoint from myTable WHERE someField = > > 'someValue') as foo using unique oid using SRID=1234" > > > >You could just change that to: > > > >DATA "myPoint from (SELECT oid, buffer(myPoint, myRingsize) from myTable > > WHERE someField = 'someValue') as foo using unique oid using SRID=1234" > > > >and change your layer from POINT to POLYGON > > > >I don't know if OGR can do buffer(), but certainly you could look into it. > > > >Bill > > > > > > > >On Fri, 26 Aug 2005, Steve Lime wrote: > > > > > > > >>A dynamic donut is not possible given the way MapServer currently works. > >> > >>The way point symbols work is that a raster marker image is rendered based > >>on the properties of the symbol and a SINGLE style. So this has to be accomplished > >>within the context of a symbol definition or a style definition. Multiple styles will not > >>help you because the base circle would already obscure anything underneath it. > >> > >>We could change the way an ELLIPSE symbol is rendered so that if you have > >>additional second set of radii defined then that defines the hole. But the problem > >>still remains that you need to specify sizes for the inner and outer ring which would > >>involve changes to the style object- yuck. > >> > >>One could look at rendering all styles at once as well rather then in turn. You'd just > >>define the hole somehow as a style. Nice idea but not doable at the moment. > >> > >>I wonder if a better approach would be to think about this particular problem as > >>an exercise in combining a couple of maps. You certainly can use MapServer to build > >>the base image, and you can also use MapServer to draw the rings in a seperate > >>images (draw the big ring, and then draw the hole using the background color for > >>the whole image). You just need to figure out how to combine them. > >> > >>You could use DHTML or MapScript to do this. I bet there's a way to do it using straight > >>CGI (draw the rings as a raster layer in the second map) if we knew more about the > >>application. For example, you might create the ring image and then refer to it as a > >>layer in the base image. With AJAX you could do that using the CGI. > >> > >>Steve > >> > >> > >> > >>>>>Blammo 08/26/05 11:46 AM >>> > >>>>> > >>>>> > >>Jeff, > >> > >>I tried that already. > >> > >>What I'm basically after is a sysmbol that is a empty circle with a > >>thickness aplied to the line. Ideally it would be a symbol like > >>anyother that I could apply a COLOR and OUTLINECOLOR to. > >> > >>Paco's idea of the close "u" shap would work if I didn't need to outline it. > >> > >>I also ran into another slight problem as well (may Paco has some ideas > >>about this too.) > >> > >>I was trying to use this symbol as a distance measuring tool. but > >>seemed to run into a snag with a size limit. I couldn't get the symbol > >>to go over a certain pixel size. The circle is supposed to represent > >>a distance buffer in miles (ground units). > >> > >>If I zoom in too close, the symbol won't get any larger than a certain > >>size, about 500 pixels I would guess. I actually have three of these > >>symbols stacked on top of each other for different distances. But the > >>size of the symbol grow as I zoom in, but once I hit this max pixel > >>size, the sysbol stop growing at this approx 500 pixel size. > >> > >>Thanks > >> > >>bobb > >> > >> > >> > >>Jeff Portwine wrote: > >> > >> > >> > >>>I haven't tried this , so it may not work, I've always used filled in > >>>shapes.. but couldn't you just use a non-filled in circle: > >>> > >>>SYMBOL > >>> NAME "circle" > >>> TYPE ellipse > >>> FILLED false > >>> POINTS > >>> 1 1 > >>> END > >>>END > >>> > >>>and then set its size appropriately? I'm not sure if there is a good way > >>>to affect the thickness though, other than stacking several of them with > >>>varying sizes. > >>> > >>>-Jeff > >>> > >>>----- Original Message ----- > >>>From: "Bob Basques" > >>>To: > >>>Sent: Thursday, August 25, 2005 5:39 PM > >>>Subject: [UMN_MAPSERVER-USERS] Donut Symbol. > >>> > >>> > >>> > >>> > >>> > >>> > >>>>Does anyone know of a good way to make a donut symbol. > >>>> > >>>>I need to be able to resize a symbol that is basically a donut. Where the > >>>>donut part is semi-opaque, and the center is open. It's basically a > >>>>min/max distance from a point overlay. I have the dynamic handing off of > >>>>the sizing handled already, but haven't figured out a good way to make a > >>>>filled donut symbol. > >>>> > >>>>I did mange to make a stacked symbol, but I would really like to have the > >>>>center no be filled in, only the area between the MIN/MAX distance from > >>>>the point picked. > >>>> > >>>>Thanks > >>>> > >>>>bobb > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >> > >> > > > > > > > > > > From steve.lime at DNR.STATE.MN.US Fri Aug 26 16:04:17 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri Feb 8 15:07:59 2008 Subject: Donut Symbol. Message-ID: There is a max symbol size defined in map.h. Just bump that value and recompile. Steve >>> Bob Basques 08/26/05 2:10 PM >>> The need: This is for locating point that Photographs were taken around a city. The idea is for the user to pick a point on a map, along with a MIN & MAX distance (in ground units) away from the point picked. This Donut shaped area is where all the photo's that were taken and generally looking in the direction of the point picked (did I mention the photo data is all in a database, complete with a compass heading for the direction of view) will be listed out. We have the selection and outputting working for the photography, but I can't seem to figure out a way to display this donut shape, in the map. I'm using two circles on top of one another at the moment for this, but the inner area is currenly filled in. I was just trying to get to a point where only the donut area is filled in. The closed Donut symbol shape that Paco came up with is the closest so far to what I'm looking for, and will do for our needs. I don't know that this is a big enough deal to reprogram anything at this point. I was just wondering if there were a way to handle it. The Symbol method would be the best choice for this application as the View can be zoomed into and out of. at will by the users, to the donut shape can scale in relation to the view size. (see otherproblem below.) ----------- On a related item. Is there some sort of Symbol (PIXEL) size limit in place? I can't seem to make a Symbol generate any bigger than around 500 pixels? If I zoom into too close above for example, the symbol for this buffer area stops getting any bigger. There is no error generated, the symbol is just rendered at this max setting after a certain zoom level is reached. Some more info, I'm using mutiple circles in my example, all static sized (in ground units) so as I zoom in they should all stay the same ratio in size to each other as they grow, but when the outer circle hits this limit, it just stops growing, and the inner circle continue to grow until they reach this limit. bobb Steve Lime wrote: >A dynamic donut is not possible given the way MapServer currently works. > >The way point symbols work is that a raster marker image is rendered based >on the properties of the symbol and a SINGLE style. So this has to be accomplished >within the context of a symbol definition or a style definition. Multiple styles will not >help you because the base circle would already obscure anything underneath it. > >We could change the way an ELLIPSE symbol is rendered so that if you have >additional second set of radii defined then that defines the hole. But the problem >still remains that you need to specify sizes for the inner and outer ring which would >involve changes to the style object- yuck. > >One could look at rendering all styles at once as well rather then in turn. You'd just >define the hole somehow as a style. Nice idea but not doable at the moment. > >I wonder if a better approach would be to think about this particular problem as >an exercise in combining a couple of maps. You certainly can use MapServer to build >the base image, and you can also use MapServer to draw the rings in a seperate >images (draw the big ring, and then draw the hole using the background color for >the whole image). You just need to figure out how to combine them. > >You could use DHTML or MapScript to do this. I bet there's a way to do it using straight >CGI (draw the rings as a raster layer in the second map) if we knew more about the >application. For example, you might create the ring image and then refer to it as a >layer in the base image. With AJAX you could do that using the CGI. > >Steve > > > >>>>Blammo 08/26/05 11:46 AM >>> >>>> >>>> >Jeff, > >I tried that already. > >What I'm basically after is a sysmbol that is a empty circle with a >thickness aplied to the line. Ideally it would be a symbol like >anyother that I could apply a COLOR and OUTLINECOLOR to. > >Paco's idea of the close "u" shap would work if I didn't need to outline it. > >I also ran into another slight problem as well (may Paco has some ideas >about this too.) > >I was trying to use this symbol as a distance measuring tool. but >seemed to run into a snag with a size limit. I couldn't get the symbol >to go over a certain pixel size. The circle is supposed to represent >a distance buffer in miles (ground units). > >If I zoom in too close, the symbol won't get any larger than a certain >size, about 500 pixels I would guess. I actually have three of these >symbols stacked on top of each other for different distances. But the >size of the symbol grow as I zoom in, but once I hit this max pixel >size, the sysbol stop growing at this approx 500 pixel size. > >Thanks > >bobb > > > >Jeff Portwine wrote: > > > >>I haven't tried this , so it may not work, I've always used filled in >>shapes.. but couldn't you just use a non-filled in circle: >> >>SYMBOL >> NAME "circle" >> TYPE ellipse >> FILLED false >> POINTS >> 1 1 >> END >>END >> >>and then set its size appropriately? I'm not sure if there is a good way >>to affect the thickness though, other than stacking several of them with >>varying sizes. >> >>-Jeff >> >>----- Original Message ----- >>From: "Bob Basques" >>To: >>Sent: Thursday, August 25, 2005 5:39 PM >>Subject: [UMN_MAPSERVER-USERS] Donut Symbol. >> >> >> >> >> >> >>>Does anyone know of a good way to make a donut symbol. >>> >>>I need to be able to resize a symbol that is basically a donut. Where the >>>donut part is semi-opaque, and the center is open. It's basically a >>>min/max distance from a point overlay. I have the dynamic handing off of >>>the sizing handled already, but haven't figured out a good way to make a >>>filled donut symbol. >>> >>>I did mange to make a stacked symbol, but I would really like to have the >>>center no be filled in, only the area between the MIN/MAX distance from >>>the point picked. >>> >>>Thanks >>> >>>bobb >>> >>> >>> >>> >>> >> >> >> >> > > > > > > From JPodleski at PREINNEWHOF.COM Fri Aug 26 16:11:42 2005 From: JPodleski at PREINNEWHOF.COM (Podleski, Jeremiah) Date: Fri Feb 8 15:07:59 2008 Subject: No subject Message-ID: Hello, I'm totally new with MapServer and I'm ready to create the .map, "container" web page, and initialization html file, but I don't know where to put them or how to tell mapserver where to look for them. Is there a special place that MapServer looks for these files? Thanks, jeremiah -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050826/557812b9/attachment.html From fwarmerdam at GMAIL.COM Fri Aug 26 16:52:23 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:59 2008 Subject: Donut Symbol. In-Reply-To: Message-ID: On 8/26/05, Bill Binko wrote: > Another approach is to handle this on the data side: either in Mapscript > or in the database if your data is in PostGIS (and perhaps through OGR: > Frank?) > > What I do for this is simply have the data set return a buffer() around > the point and then display the layer as a POLYGON rather than a point. > > So, if your original data was in PostGIS and your DATA line was: > > DATA "myPoint from (SELECT oid, myPoint from myTable WHERE someField = > 'someValue') as foo using unique oid using SRID=1234" > > You could just change that to: > > DATA "myPoint from (SELECT oid, buffer(myPoint, myRingsize) from myTable > WHERE someField = 'someValue') as foo using unique oid using SRID=1234" > > and change your layer from POINT to POLYGON > > I don't know if OGR can do buffer(), but certainly you could look into it. Folks, I just wanted to mention that OGR SQL does not do geometric operations like buffer. It is also very simplistic in the sorts of SELECT statements it supports, so generally when you want to do this sort of cool stuff you need a real RDBMS. Of course, OGR does support passing sophisticated SQL through to the RDBMS when operating against an RDBMS. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From matthew.garrish at SYMPATICO.CA Fri Aug 26 17:04:53 2005 From: matthew.garrish at SYMPATICO.CA (Matt Garrish) Date: Fri Feb 8 15:07:59 2008 Subject: [UMN_MAPSERVER-USERS] Mapserver demo crash Message-ID: I've had slightly better luck with Win2k, but still can't get the demo running. When I try to initialize the demo, filemon shows that mapserv.exe is reporting success reading C:\inetpub\wwwroot\workshop\symbols\ctyhwy.png, but then immediately calls Dr. Watson to generate an event in the application log and promptly times out. The error reported is as follows: Event Type: Information Event Source: DrWatson Event Category: None Event ID: 4097 Date: 8/3/2005 Time: 4:32:48 PM User: N/A Computer: MGARRISH Description: The application, , generated an application error The error occurred on 08/03/2005 @ 16:32:48.859 The exception generated was c0000005 at address 77F8F281 (RtlpWaitForCriticalSection) The only other suspicious thing I see is that before trying to open ctyhwy.png mapserv.exe tries and fails to open the location c:\usr\local\lib - which I assume is hard-coded into the executable, because I can't find that path anywhere in the demo files. Does anyone know if the demo is backward compatible with older versions of mapserver? I'm running the 4.4.1 Windows binary, but grabbed the demo from the 4.6 release. Matt > > From: "Fortin,Nicolas [SteFoy]" > Date: 2005/08/26 Fri AM 11:43:40 EST > To: , > > Subject: RE : [UMN_MAPSERVER-USERS] Mapserver demo crash > > Hi > > I didn't follow all the conversation but as a windows user, I can tell you that 90% of the problem with mapserver and IIS come from permission problem. Run filemon (http://www.sysinternals.com/Utilities/Filemon.html) while loading the page and check the result to see if there's any ACCESS DENIED or suspicious FILE NOT FOUND. > > Hope this helps > Nicolas Fortin > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] De la part de Matt Garrish > Envoy? : 26 ao?t 2005 11:36 > ? : MAPSERVER-USERS@LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] Mapserver demo crash > > > It only dies in IIS when I run the demo (so far, anyway). I am, for example, able to run the "Hello World" example on the recipes page (http://www.mobilegeographics.com/mapserver/). Aside from the parameters that get passed from the index.html page (reproduced below), I've set the following in the itasca.map file: > > SHAPEPATH "c:/inetpub/wwwroot/workshop/data" > > WMS_ONLINERESOURCE "http://localhost/workshop/index.html" > > I'm going to try running the example on a win2k box and see if it's something specific to XP (I've tried a couple of different XP boxes with the same result). > > Matt > > > > > From: Ethan Alpert > > Date: 2005/08/26 Fri AM 10:48:00 EST > > To: MAPSERVER-USERS@LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver demo crash > > > > I'm not a windows user but the most common problem when mapserv runs > > fine at the command line but dies running in the webserver space is it > > can't find one or more shared library. Check the IIS's equivalent of > > LD_SEARCH_PATH. > > > > -e > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] > > On Behalf Of Matt Garrish > > Sent: Friday, August 26, 2005 7:41 AM > > To: MAPSERVER-USERS@LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Mapserver demo crash > > > > > > I'm just getting started with mapserver and was hoping to be able to > > play around with the demo (http://mapserver.gis.umn.edu/dload.html). > > I'm reasonably certain that my system (XP Pro SP2) is configured > > correctly, because I can run some of the other simple examples I've > > found on the Mapserver home page (I downloaded the 4.4.1 binary and > > set it up according > > to the readme file). When I tried to run the demo (from the index.html > > page), however, IIS crashed with a 502 error, so I went to the command > > line > > and tried the following: > > > > C:\Inetpub\Scripts>mapserv > > "QUERY_STRING=map=c:/inetpub/wwwroot/workshop/itasca. > > map&layer=lakespy2&layer=dlgstln2&zoomsize=1&program=http://localhost/cg > > i-bin/ma > > pserv.exe&root=http://localhost/workshop&map_web_imagepath=c:/inetpub/ww > > wroot/tm > > p&map_web_imageurl=http://localhost/tmp&map_web_template=itasca_basic.ht > > ml" > > > > As soon as I run the command, however, an error window pops up with > > the > > following error signature: > > > > AppName: mapserv.exe AppVer: 0.0.0.0 ModName: ntdll.dll > > ModVer: 5.1.2600.2180 Offset: 00018fea > > > > which I have to assume is the cause of the 502 error. > > > > Has anyone run into this problem before? Or know what the cause might > > be? Or know if I'm just doing something wrong? (If you don't have XP > > or can't reproduce the problem I can post the stack dump.) > > > > Thanks in advance, > > > > Matt > > > From bob.basques at CI.STPAUL.MN.US Fri Aug 26 17:17:05 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri Feb 8 15:07:59 2008 Subject: Donut Symbol. In-Reply-To: Message-ID: The points are in Oracle right now, but as I indicated earlier, I think the ideas already presented will suffice for now. Thanks for the offer though. bobb Bill Binko wrote: >Bob, > >If your points are stored in PostGIS, there are ways of getting this >perfect. It's not always pretty, and can require some Nasty SQL, , but >I'd be happy to work with you offline on this (and you can post the >results back to the list). > >Bill >bill@binko.net > >On Fri, 26 Aug 2005, Blammo wrote: > > > >>Hmm, sounds like overkill for my needs, but it does give me another idea. >> >>Using Paco's method of a closed "U" shap symbol, I could stack two >>circle outlines on top of the closed Ushape and use those for the >>outline colors of the filled donut area. >> >>It's not pretty, but I won't tell anyone if you don't. >> >>The sizing of the radius for offset is dynamic and being sent to the >>sever, so your thoughts are certainly relevent. >> >>Thanks for the ideas. I had thought about drawing a PolyShape with a >>HOLE in it as well. But this even seemed like overkill. As a matter >>of fact, I've probably put to much into it already at this point :c) >> >>bobb >> >>Bill Binko wrote: >> >> >> >>>Another approach is to handle this on the data side: either in Mapscript >>>or in the database if your data is in PostGIS (and perhaps through OGR: >>>Frank?) >>> >>>What I do for this is simply have the data set return a buffer() around >>>the point and then display the layer as a POLYGON rather than a point. >>> >>>So, if your original data was in PostGIS and your DATA line was: >>> >>>DATA "myPoint from (SELECT oid, myPoint from myTable WHERE someField = >>> 'someValue') as foo using unique oid using SRID=1234" >>> >>>You could just change that to: >>> >>>DATA "myPoint from (SELECT oid, buffer(myPoint, myRingsize) from myTable >>> WHERE someField = 'someValue') as foo using unique oid using SRID=1234" >>> >>>and change your layer from POINT to POLYGON >>> >>>I don't know if OGR can do buffer(), but certainly you could look into it. >>> >>>Bill >>> >>> >>> >>>On Fri, 26 Aug 2005, Steve Lime wrote: >>> >>> >>> >>> >>> >>>>A dynamic donut is not possible given the way MapServer currently works. >>>> >>>>The way point symbols work is that a raster marker image is rendered based >>>>on the properties of the symbol and a SINGLE style. So this has to be accomplished >>>>within the context of a symbol definition or a style definition. Multiple styles will not >>>>help you because the base circle would already obscure anything underneath it. >>>> >>>>We could change the way an ELLIPSE symbol is rendered so that if you have >>>>additional second set of radii defined then that defines the hole. But the problem >>>>still remains that you need to specify sizes for the inner and outer ring which would >>>>involve changes to the style object- yuck. >>>> >>>>One could look at rendering all styles at once as well rather then in turn. You'd just >>>>define the hole somehow as a style. Nice idea but not doable at the moment. >>>> >>>>I wonder if a better approach would be to think about this particular problem as >>>>an exercise in combining a couple of maps. You certainly can use MapServer to build >>>>the base image, and you can also use MapServer to draw the rings in a seperate >>>>images (draw the big ring, and then draw the hole using the background color for >>>>the whole image). You just need to figure out how to combine them. >>>> >>>>You could use DHTML or MapScript to do this. I bet there's a way to do it using straight >>>>CGI (draw the rings as a raster layer in the second map) if we knew more about the >>>>application. For example, you might create the ring image and then refer to it as a >>>>layer in the base image. With AJAX you could do that using the CGI. >>>> >>>>Steve >>>> >>>> >>>> >>>> >>>> >>>>>>>Blammo 08/26/05 11:46 AM >>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>Jeff, >>>> >>>>I tried that already. >>>> >>>>What I'm basically after is a sysmbol that is a empty circle with a >>>>thickness aplied to the line. Ideally it would be a symbol like >>>>anyother that I could apply a COLOR and OUTLINECOLOR to. >>>> >>>>Paco's idea of the close "u" shap would work if I didn't need to outline it. >>>> >>>>I also ran into another slight problem as well (may Paco has some ideas >>>>about this too.) >>>> >>>>I was trying to use this symbol as a distance measuring tool. but >>>>seemed to run into a snag with a size limit. I couldn't get the symbol >>>>to go over a certain pixel size. The circle is supposed to represent >>>>a distance buffer in miles (ground units). >>>> >>>>If I zoom in too close, the symbol won't get any larger than a certain >>>>size, about 500 pixels I would guess. I actually have three of these >>>>symbols stacked on top of each other for different distances. But the >>>>size of the symbol grow as I zoom in, but once I hit this max pixel >>>>size, the sysbol stop growing at this approx 500 pixel size. >>>> >>>>Thanks >>>> >>>>bobb >>>> >>>> >>>> >>>>Jeff Portwine wrote: >>>> >>>> >>>> >>>> >>>> >>>>>I haven't tried this , so it may not work, I've always used filled in >>>>>shapes.. but couldn't you just use a non-filled in circle: >>>>> >>>>>SYMBOL >>>>>NAME "circle" >>>>>TYPE ellipse >>>>>FILLED false >>>>>POINTS >>>>> 1 1 >>>>>END >>>>>END >>>>> >>>>>and then set its size appropriately? I'm not sure if there is a good way >>>>>to affect the thickness though, other than stacking several of them with >>>>>varying sizes. >>>>> >>>>>-Jeff >>>>> >>>>>----- Original Message ----- >>>>>From: "Bob Basques" >>>>>To: >>>>>Sent: Thursday, August 25, 2005 5:39 PM >>>>>Subject: [UMN_MAPSERVER-USERS] Donut Symbol. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Does anyone know of a good way to make a donut symbol. >>>>>> >>>>>>I need to be able to resize a symbol that is basically a donut. Where the >>>>>>donut part is semi-opaque, and the center is open. It's basically a >>>>>>min/max distance from a point overlay. I have the dynamic handing off of >>>>>>the sizing handled already, but haven't figured out a good way to make a >>>>>>filled donut symbol. >>>>>> >>>>>>I did mange to make a stacked symbol, but I would really like to have the >>>>>>center no be filled in, only the area between the MIN/MAX distance from >>>>>>the point picked. >>>>>> >>>>>>Thanks >>>>>> >>>>>>bobb >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050826/a70739db/attachment.html From matthew.garrish at SYMPATICO.CA Fri Aug 26 20:49:39 2005 From: matthew.garrish at SYMPATICO.CA (Matt Garrish) Date: Fri Feb 8 15:07:59 2008 Subject: [UMN_MAPSERVER-USERS] Mapserver demo crash Message-ID: Well, I was finally able to get the demo working. I had to remove two layers from the map file to do so, but c'est la vie. If anyone could shed some light on why this would make a difference, I'd certainly appreciate it (I thought maybe a corrupt png file at first, but that doesn't appear to be the case). Anyway, in case any other Windows users run into this problem, removing the following layers from the itasca.map file got the demo working: LAYER NAME ctyrdln3_anno LAYER NAME majrdln3_anno (For complete layer source, please refer to the itasca.map file included with the demo.) Matt ----- Original Message ----- From: "Matt Garrish" To: Sent: Friday, August 26, 2005 5:04 PM Subject: Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Mapserver demo crash I've had slightly better luck with Win2k, but still can't get the demo running. When I try to initialize the demo, filemon shows that mapserv.exe is reporting success reading C:\inetpub\wwwroot\workshop\symbols\ctyhwy.png, but then immediately calls Dr. Watson to generate an event in the application log and promptly times out. The error reported is as follows: Event Type: Information Event Source: DrWatson Event Category: None Event ID: 4097 Date: 8/3/2005 Time: 4:32:48 PM User: N/A Computer: MGARRISH Description: The application, , generated an application error The error occurred on 08/03/2005 @ 16:32:48.859 The exception generated was c0000005 at address 77F8F281 (RtlpWaitForCriticalSection) The only other suspicious thing I see is that before trying to open ctyhwy.png mapserv.exe tries and fails to open the location c:\usr\local\lib - which I assume is hard-coded into the executable, because I can't find that path anywhere in the demo files. Does anyone know if the demo is backward compatible with older versions of mapserver? I'm running the 4.4.1 Windows binary, but grabbed the demo from the 4.6 release. Matt > > From: "Fortin,Nicolas [SteFoy]" > Date: 2005/08/26 Fri AM 11:43:40 EST > To: , > > Subject: RE : [UMN_MAPSERVER-USERS] Mapserver demo crash > > Hi > > I didn't follow all the conversation but as a windows user, I can tell you > that 90% of the problem with mapserver and IIS come from permission > problem. Run filemon (http://www.sysinternals.com/Utilities/Filemon.html) > while loading the page and check the result to see if there's any ACCESS > DENIED or suspicious FILE NOT FOUND. > > Hope this helps > Nicolas Fortin > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] De la > part de Matt Garrish > Envoy? : 26 ao?t 2005 11:36 > ? : MAPSERVER-USERS@LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] Mapserver demo crash > > > It only dies in IIS when I run the demo (so far, anyway). I am, for > example, able to run the "Hello World" example on the recipes page > (http://www.mobilegeographics.com/mapserver/). Aside from the parameters > that get passed from the index.html page (reproduced below), I've set the > following in the itasca.map file: > > SHAPEPATH "c:/inetpub/wwwroot/workshop/data" > > WMS_ONLINERESOURCE "http://localhost/workshop/index.html" > > I'm going to try running the example on a win2k box and see if it's > something specific to XP (I've tried a couple of different XP boxes with > the same result). > > Matt > > > > > From: Ethan Alpert > > Date: 2005/08/26 Fri AM 10:48:00 EST > > To: MAPSERVER-USERS@LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver demo crash > > > > I'm not a windows user but the most common problem when mapserv runs > > fine at the command line but dies running in the webserver space is it > > can't find one or more shared library. Check the IIS's equivalent of > > LD_SEARCH_PATH. > > > > -e > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] > > On Behalf Of Matt Garrish > > Sent: Friday, August 26, 2005 7:41 AM > > To: MAPSERVER-USERS@LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Mapserver demo crash > > > > > > I'm just getting started with mapserver and was hoping to be able to > > play around with the demo (http://mapserver.gis.umn.edu/dload.html). > > I'm reasonably certain that my system (XP Pro SP2) is configured > > correctly, because I can run some of the other simple examples I've > > found on the Mapserver home page (I downloaded the 4.4.1 binary and > > set it up according > > to the readme file). When I tried to run the demo (from the index.html > > page), however, IIS crashed with a 502 error, so I went to the command > > line > > and tried the following: > > > > C:\Inetpub\Scripts>mapserv > > "QUERY_STRING=map=c:/inetpub/wwwroot/workshop/itasca. > > map&layer=lakespy2&layer=dlgstln2&zoomsize=1&program=http://localhost/cg > > i-bin/ma > > pserv.exe&root=http://localhost/workshop&map_web_imagepath=c:/inetpub/ww > > wroot/tm > > p&map_web_imageurl=http://localhost/tmp&map_web_template=itasca_basic.ht > > ml" > > > > As soon as I run the command, however, an error window pops up with > > the > > following error signature: > > > > AppName: mapserv.exe AppVer: 0.0.0.0 ModName: ntdll.dll > > ModVer: 5.1.2600.2180 Offset: 00018fea > > > > which I have to assume is the cause of the 502 error. > > > > Has anyone run into this problem before? Or know what the cause might > > be? Or know if I'm just doing something wrong? (If you don't have XP > > or can't reproduce the problem I can post the stack dump.) > > > > Thanks in advance, > > > > Matt > > > = From lsnagu at YAHOO.COM Sat Aug 27 09:18:40 2005 From: lsnagu at YAHOO.COM (Rep Xxxxxxxx) Date: Fri Feb 8 15:07:59 2008 Subject: Projection Need Help Message-ID: Hello Ed McNierney, Thanks for your valuable suggestions. As you have mentioned, DLTM will be a best choice for my application. Best Regards, vdharan On Mon, 22 Aug 2005 11:38:21 -0400, Ed McNierney wrote: >Vdharan - > >Use of the lat/lon projection is, IMHO, generally a very bad idea. It >can create important distortion and makes it impossible to do something >as simple as put a meaningful scalebar on the map. > >The UTM and DLTM projections are both Transverse Mercator projections, >with similar properties. In your case, you would have data in UTM Zone >39, with a central meridian of 57 degrees East. The DLTM is exactly the >same projection, with the central meridian at 55 degrees 20 minutes >East. This is a very small difference, and most non-technical users >will never notice the difference. > >The choice of projection depends on the area you need to cover. If you >are only going to be mapping Dubai, or only the UAE, then I'd recommend >you choose the DLTM projection. That would be the standard projection >in use for official Dubai or UAE data sets, and might make it easier to >integrate future data from those sources. > >If, however, you intend to cover a larger area, the UTM would be a >better choice. The DLTM projection would not be used outside of the >UAE, and if you're covering several independent countries there's no >particular reason to choose one "national" projection over another. A >"regional" projection such as UTM would probably be a better choice. > >There is really very little practical difference between these two >projections; it's just a matter of where your application will be used. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed@topozone.com >(978) 251-4242 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On >Behalf Of vdharan >Sent: Monday, August 22, 2005 8:07 AM >To: MAPSERVER-USERS@LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Projection Need Help > >Hi > >Iam using MapServer (php mapscript)for Online vehicle tracking >system.Iam also using rosa applet to show online movement of multiple >vehicles on the map. > >The application is going to be used in Midddle East. While designing the >system I have used some sample shape files for that region with lat long >projection. Now are trying to get shape files with all road level >details. >The map vendor has got maps with WGS84 UTM and WGS84 DLTM(Dubai Local >Transverse Mercator) projections. I dont know which projection to select >for my application. I have used lat long projection and developed the >application.I need to pinpoint the vehicle location based lat & long. If >I go for UTM will that involve changs in the mapping codes?. Iam from >electronics background, I could not understand much on projection. >Please Help me. > >Best Regards, >vdharan From rsosnowski at CABLEONE.NET Sun Aug 28 02:09:03 2005 From: rsosnowski at CABLEONE.NET (Rob Sosnowski) Date: Fri Feb 8 15:07:59 2008 Subject: Highlight Features Message-ID: Hello All, Using PHP/Mapscript 4.4. Trying to highlight feature in polygon layer, such as subdivisions. I use: $layer->setFilter(""); $sFilter = "('[subdivname]' = '$sSubDivsion')"; $layer->setFilter($sFilter); PROBLEM: ONLY THAT SPECIFIC FEATURE IS DRAWN. If I use: $sFilter = "('[subdivname]' != '$sSubDivsion')"; PROBLEM: ALL FEATURES DRAWN EXCEPT ONE OF INTEREST, WHICH IS OK EXCEPT IN PLACES WHERE THE BOUNDARY OF THE FEATURE OF INTEREST HAS NO SURROUNDING POLYGONS. WHEN THIS IS THE CASE, THE BOUNDARY OF FEATURE IS NOT SHOWN. QUESTION: HOW DO I DRAW ALL FEATURES WITHIN POLYGON LAYER AND ALSO HIGHLIGHT THE FEATURE(S) OF INTEREST IN A DIFFERENT COLOR Thanks, Rob From sc0rp10nau at YAHOO.COM.AU Sun Aug 28 10:00:45 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Fri Feb 8 15:07:59 2008 Subject: dynamic data source Message-ID: Hello Everybody, Here's something that I'm stuck with. I have a program that automatically generates a WBMP file. These get generated automatically every time a certain request is done, and then needs to be used as a normal data source for that user. I'm currently using mapserver (cgi-style) to display some dynamic points on a bunch of base layers, and I would like to use this generated WBMP as a base layer as well. Now my question is, how can i do this dynamic include of the generated WBMP. I have a distinct feeling I'll have to use mapscript. BTW, i'm using Java/JSP for my web-app. Any help in this would be greatly appritiated. cheers guyz, Ajay From armin.burger at GMX.NET Sun Aug 28 10:10:39 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Fri Feb 8 15:07:59 2008 Subject: Highlight Features In-Reply-To: Message-ID: Rob, the easiest way would be using the querymap function like ... // Execute a query (here an attribute query) $queryString = "('[subdivname]' = '$sSubDivsion')"; $your_layer->queryByAttributes('subdivname', $queryString, MS_MULTIPLE); // Draw map $mapImg = $map->drawQuery(); // instead of $map->draw() ... You can specify colors for highlighting in a QUERYMAP tag in the map file. A more flexible solution (but more complex) is to add an additional layer containing only the selected feature and add this layer to the map on top of the base layer: 1) create a new layer 2) get the shape index of the feature to be drawn and then add it to the new layer 3) define the styles/colors etc for this feature If you're interested I can send you some code for this latter version. Armin Rob Sosnowski wrote: > Hello All, > > Using PHP/Mapscript 4.4. Trying to highlight feature in polygon layer, > such as subdivisions. I use: > > $layer->setFilter(""); > $sFilter = "('[subdivname]' = '$sSubDivsion')"; > $layer->setFilter($sFilter); > > PROBLEM: ONLY THAT SPECIFIC FEATURE IS DRAWN. If I use: > > $sFilter = "('[subdivname]' != '$sSubDivsion')"; > > PROBLEM: ALL FEATURES DRAWN EXCEPT ONE OF INTEREST, WHICH IS OK EXCEPT IN > PLACES WHERE THE BOUNDARY OF THE FEATURE OF INTEREST HAS NO SURROUNDING > POLYGONS. WHEN THIS IS THE CASE, THE BOUNDARY OF FEATURE IS NOT SHOWN. > > > QUESTION: HOW DO I DRAW ALL FEATURES WITHIN POLYGON LAYER AND ALSO > HIGHLIGHT THE FEATURE(S) OF INTEREST IN A DIFFERENT COLOR > > Thanks, Rob > > From pieroce at INTERFREE.IT Sun Aug 28 15:30:07 2005 From: pieroce at INTERFREE.IT (piero cecchi) Date: Fri Feb 8 15:07:59 2008 Subject: legend non working property Message-ID: Uso legend per rappresentare le simbologie dei layers di un file map. Purtroppo, e non riesco a capirne il motivo, che sicuramente sara' banale, il risultato e' semplicemente una immagine vuota, o meglio con il solo sfondo trasparente (96 bytes) Sto utilizzando MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE su sistema operativo Linux Chiedo un aiuto, se possibile, scusate la lingua ma purtroppo non conosco l'inglese.. Piero From mikereilly2 at GMAIL.COM Sun Aug 28 16:21:47 2005 From: mikereilly2 at GMAIL.COM (Mike Reilly) Date: Fri Feb 8 15:07:59 2008 Subject: In-Reply-To: Message-ID: When calling mapserver to create the map using a template html file, you use a URL that contains the initial information in ot - namely the path to the map file itself. The mapfile contains the path to the template file and all of the other information mapserver needs to render the page. Here's an example of a URL: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apache/htdocs/mymaps/test.map&mode=browse The test.map file would contain a TEMPLATE line in the WEB section as well as many other basic configuration options. On 8/26/05, Podleski, Jeremiah wrote: > > > Hello, > > I'm totally new with MapServer and I'm ready to create the .map, "container" > web page, and initialization html file, but I don't know where to put them > or how to tell mapserver where to look for them. > > Is there a special place that MapServer looks for these files? > > Thanks, > > jeremiah From dpinte at ITAE.BE Mon Aug 29 02:25:42 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Fri Feb 8 15:07:59 2008 Subject: using mappoint as layer provider Message-ID: Hi, I'm currently building an application that need to have a worldwide map background. The only provider I have found at this moment is Mappoint. Has someone already used Mappoint as WMS provider for MapServer ? Or with php-mapscript ? If yes, I would be very interested in some explanation or sample code. Thank you all in advance, Didrik From stefano.bonnin at COMAI.TO Mon Aug 29 03:07:11 2005 From: stefano.bonnin at COMAI.TO (Stefano B.) Date: Fri Feb 8 15:07:59 2008 Subject: mapserver 4.6 and php5.1RC1 Message-ID: Hi all, has anyone compiled mapserver 4.6 with PHP 5.1 RC1? I tried this but mapserver crashes at any map request. ./configure --with-proj=../proj-4.4.9/ --with-php=../php-5.0.4 --with-postgis=/usr/local/pgsql8/bin/pg_config --with-freetype=/usr/local/include/freetype2/ --with-gd=/usr/local --without-tiff --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-httpd=/usr/www/bin/httpd --with-wmsclient --with-wfsclient --with-curl-config=/usr/local/bin/curl-config --with-libiconv=/usr/local Any suggestion? Thanks in advance. Stefano Bonnin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050829/f7626391/attachment.html From BEN at SYNCERA-ITSOLUTIONS.NL Mon Aug 29 03:08:41 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:59 2008 Subject: Highlight Features Message-ID: Use 2 LAYERs. Draw the selection on top of the normal layer with a different color. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Rob Sosnowski 08/28/05 8:09 am >>> Hello All, Using PHP/Mapscript 4.4. Trying to highlight feature in polygon layer, such as subdivisions. I use: $layer->setFilter(""); $sFilter = "('[subdivname]' = '$sSubDivsion')"; $layer->setFilter($sFilter); PROBLEM: ONLY THAT SPECIFIC FEATURE IS DRAWN. If I use: $sFilter = "('[subdivname]' != '$sSubDivsion')"; PROBLEM: ALL FEATURES DRAWN EXCEPT ONE OF INTEREST, WHICH IS OK EXCEPT IN PLACES WHERE THE BOUNDARY OF THE FEATURE OF INTEREST HAS NO SURROUNDING POLYGONS. WHEN THIS IS THE CASE, THE BOUNDARY OF FEATURE IS NOT SHOWN. QUESTION: HOW DO I DRAW ALL FEATURES WITHIN POLYGON LAYER AND ALSO HIGHLIGHT THE FEATURE(S) OF INTEREST IN A DIFFERENT COLOR Thanks, Rob From robert-fritz at WEB.DE Mon Aug 29 03:28:56 2005 From: robert-fritz at WEB.DE (robert fritz) Date: Fri Feb 8 15:07:59 2008 Subject: Highlight Features Message-ID: Hello Rob, to hilite a single feature you can try this : - create a new class based on an existing class - set an expression for this class, something like:: $strExpression = "('[".$DBaseFieldname."]' = '".$ObjectID."')"; - set a style for the new class - and then move the new class on top Ex.: $objLayer = $objMap->getLayerByName($hlLayer); $objClass0 = $objLayer->getclass(0); //create a new class based on a existing one:: $objClass1 = ms_newclassobj($objLayer,$objClass0); $objClass1->setExpression($strExpression); //create a style object for the new class $objStyle = $objClass1->getStyle(0); $objStyle->color->setRGB(255,255,0); $objStyle->outlinecolor->setRGB(0,0,0); //move the new class on top $numClasses = $objLayer->numclasses; for($i=0;$i<$numClasses;$i++) { $objLayer->moveclassup($numClasses-$i); } draw the map .... $objImage=$objMap->draw(); Robert Hello All,Using PHP/Mapscript 4.4. Trying to highlight feature in polygon layer,such as subdivisions. I use: $layer->setFilter(""); $sFilter = "('[subdivname]' = '$sSubDivsion')"; $layer->setFilter($sFilter);PROBLEM: ONLY THAT SPECIFIC FEATURE IS DRAWN. If I use: $sFilter = "('[subdivname]' != '$sSubDivsion')";PROBLEM: ALL FEATURES DRAWN EXCEPT ONE OF INTEREST, WHICH IS OK EXCEPT INPLACES WHERE THE BOUNDARY OF THE FEATURE OF INTEREST HAS NO SURROUNDINGPOLYGONS. WHEN THIS IS THE CASE, THE BOUNDARY OF FEATURE IS NOT SHOWN.QUESTION: HOW DO I DRAW ALL FEATURES WITHIN POLYGON LAYER AND ALSOHIGHLIGHT THE FEATURE(S) OF INTEREST IN A DIFFERENT COLORThanks, Rob Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050829/a86044c5/attachment.html From Dejan.Gambin at PULA.HR Mon Aug 29 05:45:01 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri Feb 8 15:07:59 2008 Subject: Indexed Shapefile vs. PostGIS Message-ID: Thanks to everyone suggesting me the possible solutions. Stephen, do you maybe know why siege on my debian machine gives me "segmentation fault" whenever I run it (and whatever option I choose, even -C)?? thanks very much dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Thursday, August 25, 2005 1:53 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Indexed Shapefile vs. PostGIS Schuyler Erle wrote: > * On 24-Aug-2005 at 1:46PM PDT, Ethan Alpert said: > >>You can also use shptree to generate a spatial index file (QIX) which >>mapserver will use to fairly efficiently display the data. > > > I've found that the QIX support isn't sufficient to speed up access to > really large shapefiles, especially if you're doing any kind of > attribute filtering. I'd love to know why this is. > > SDE > Well, the QIX is a spatial index, not an attribute index. But someone might want to check the source code and see if attribute filtering makes use of the subset of spatial objects or just dumbly scans all the attributes then rejects based on spatial criteria. -Steve W. From Dejan.Gambin at PULA.HR Mon Aug 29 05:47:59 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri Feb 8 15:07:59 2008 Subject: Indexed Shapefile vs. PostGIS Message-ID: Sorry, I posted it in a wrong thread, my intention was to reply on "Benchmarking mapserver by simulating visitors" subject sorry again dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Monday, August 29, 2005 11:45 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Indexed Shapefile vs. PostGIS Thanks to everyone suggesting me the possible solutions. Stephen, do you maybe know why siege on my debian machine gives me "segmentation fault" whenever I run it (and whatever option I choose, even -C)?? thanks very much dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Thursday, August 25, 2005 1:53 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Indexed Shapefile vs. PostGIS Schuyler Erle wrote: > * On 24-Aug-2005 at 1:46PM PDT, Ethan Alpert said: > >>You can also use shptree to generate a spatial index file (QIX) which >>mapserver will use to fairly efficiently display the data. > > > I've found that the QIX support isn't sufficient to speed up access to > really large shapefiles, especially if you're doing any kind of > attribute filtering. I'd love to know why this is. > > SDE > Well, the QIX is a spatial index, not an attribute index. But someone might want to check the source code and see if attribute filtering makes use of the subset of spatial objects or just dumbly scans all the attributes then rejects based on spatial criteria. -Steve W. From Dejan.Gambin at PULA.HR Mon Aug 29 05:54:03 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri Feb 8 15:07:59 2008 Subject: msautotest/regression testing question Message-ID: I have successfully run siege without the ssl support. Thanks regards dejan -----Original Message----- From: Stephen Woodbridge [mailto:woodbri@swoodbridge.com] Sent: Wednesday, August 24, 2005 3:06 PM To: Gambin Dejan Subject: Re: [UMN_MAPSERVER-USERS] msautotest/regression testing question I highly recommend Siege from http://www.joedog.org/ I have used this extensively for testing mapserver and mapfiles with good results. It is easy to set up can use. I use a perl script to generate urls for it, but I think there is a tool the will scan you web logs and convert them into input files for Siege depending on how your application generates urls. -Steve W. Gambin Dejan wrote: > Hi, > > I suppose this question is mostly intended to Frank but maybe someone > else can answer too. > > I would like how this thing is working and can it be used (at least > partially) to help me implement some kind of benchmarking that would > simulate a number of simultaneous visitors doing the map actions > (zooming, panning, activating/deactivating layers, querying, etc.). > > This would help me decide on hardware requirements and especially the > Internet bandwidth that I need to lease form my ISP. > > thanks very much > > regards > > dejan > From stefano.bonnin at COMAI.TO Mon Aug 29 06:27:10 2005 From: stefano.bonnin at COMAI.TO (Stefano B.) Date: Fri Feb 8 15:07:59 2008 Subject: mapserver 4.6 and php5.1RC1 Message-ID: ops, the configure command is ./configure --with-proj=../proj-4.4.9/ --with-php=../php-5.1 --with-postgis=/usr/local/pgsql8/bin/pg_config --with-freetype=/usr/local/include/freetype2/ --with-gd=/usr/local --without-tiff --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-httpd=/usr/www/bin/httpd --with-wmsclient --with-wfsclient --with-curl-config=/usr/local/bin/curl-config --with-libiconv=/usr/local and not ./configure --with-proj=../proj-4.4.9/ --with-php=../php-5.0.4 --with-postgis=/usr/local/pgsql8/bin/pg_config --with-freetype=/usr/local/include/freetype2/ --with-gd=/usr/local --without-tiff --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-httpd=/usr/www/bin/httpd --with-wmsclient --with-wfsclient --with-curl-config=/usr/local/bin/curl-config --with-libiconv=/usr/local obviously. Thanks ----- Original Message ----- From: Stefano B. To: MAPSERVER-USERS@LISTS.UMN.EDU Sent: Monday, August 29, 2005 9:07 AM Subject: [UMN_MAPSERVER-USERS] mapserver 4.6 and php5.1RC1 Hi all, has anyone compiled mapserver 4.6 with PHP 5.1 RC1? I tried this but mapserver crashes at any map request. ./configure --with-proj=../proj-4.4.9/ --with-php=../php-5.0.4 --with-postgis=/usr/local/pgsql8/bin/pg_config --with-freetype=/usr/local/include/freetype2/ --with-gd=/usr/local --without-tiff --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-httpd=/usr/www/bin/httpd --with-wmsclient --with-wfsclient --with-curl-config=/usr/local/bin/curl-config --with-libiconv=/usr/local Any suggestion? Thanks in advance. Stefano Bonnin ------------------------------------------------------------------------------ No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050829/6c484c23/attachment.html From raphael.teixeira at GMAIL.COM Mon Aug 29 08:48:00 2005 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Fri Feb 8 15:07:59 2008 Subject: Mapstorer Message-ID: Hello All, Is there anybody using mapstorer (www.mapstorer.org)?? Any tutorial already made? Thanks -- Raphael da Silva Teixeira From steve_benzo at YAHOO.COM Mon Aug 29 09:19:25 2005 From: steve_benzo at YAHOO.COM (Steve Benzo) Date: Fri Feb 8 15:07:59 2008 Subject: mapscript polygon hightlighting feature Message-ID: Hello, I am wanting to write a function so that when a user clicks on a polygon, that polygon has its outer border changed to a different color with perhaps a greater line thickness. Ideally a refresh wouldn't be required for this. My question is twofold, a) whether this is possible b) if anyone has suggestions/code to get me started on this. Thanks in advance. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From murilo.yoshida at AGX.COM.BR Mon Aug 29 10:23:19 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Fri Feb 8 15:07:59 2008 Subject: unsubscribe? Message-ID: Hi all, I tried to unsubscribe me from the list in the http://lists.umn.edu/archives/mapserver-announce.html link, but it didn't work ... Probably because I didn't join the list by this link .. How do I unsubscribe me? Thank you guys for all the support you've gave me during this time ... I'd like to say that this is probably the best list for support that I've found on the net ... Thanks again, Murilo From cvhackel at YAHOO.COM Mon Aug 29 11:23:05 2005 From: cvhackel at YAHOO.COM (Chris Hackel) Date: Fri Feb 8 15:07:59 2008 Subject: Coordinate conversion (EXTENT) Message-ID: Hello. Recently I switched from a latlong proj shapefile to Lambert Conformal Canonic. I'm having trouble converting my EXTENT with cs2cs. Based on the ogrinfo below, I tried this in cs2cs: cvhackel% cs2cs +proj=latlong +ellps=GRS80 +datum=NAD83 +to +proj=lcc +datum=NAD83 +units=ft +lon_0=-74.0 +lat_0=40.16666 +lat_1=40.1666666 +lat_2=41.033333 +x_0=984250.0 +y_0=0 -73.994992 40.717690 3230554.89 200744.22 0.00 This doesn't look right (again, based on the ogrinfo). Can someone help? Thanks, Chris Layer name: street_centerline Geometry: Line String Feature Count: 123866 Extent: (910057.005249, 120827.652033) - (1067494.180516, 274629.837850) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_New_York_Long_Island_FIPS_3104_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["False_Easting",984250.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-74.0], PARAMETER["Standard_Parallel_1",40.66666666666666], PARAMETER["Standard_Parallel_2",41.03333333333333], PARAMETER["Latitude_Of_Origin",40.16666666666666], UNIT["Foot_US",0.3048006096012192]] From carloseduardo at COSTARRICENSE.CR Mon Aug 29 11:57:43 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Fri Feb 8 15:07:59 2008 Subject: fpdf Message-ID: Hi list. I need to know if someone has an example code using fpdf with php_mapscript to create a pdf document when i want to print a map. thanks From piero.cavalieri at HEIDI.IT Mon Aug 29 12:18:04 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri Feb 8 15:07:59 2008 Subject: fpdf Message-ID: Carlos Eduardo Sibaja Salazar ha scritto: >Hi list. >I need to know if someone has an example code using fpdf with >php_mapscript to create a pdf document when i want to print a map. > >thanks > Don't remember if worked or not... set("shapepath", str_replace("pdfPrint.php", "data", str_replace("\\", "/", $_SERVER["PATH_TRANSLATED"])));} $map->set("width", 650); $map->set("height", 450); localizeMapLabels($map); adjustScalebar($map); $map->setextent($_REQUEST["minx"],$_REQUEST["miny"], $_REQUEST["maxx"],$_REQUEST["maxy"]); $glrLayer = $map->getLayerByName("AreaOfInterest"); $glrLayer->setFilter ("id = ".$_SESSION["WorkorderID"]); $glrLayer->set("status", MS_ON); $glrLayer = $map->getLayerByName("Maintenance"); $glrLayer->set("status", MS_OFF); showLayers($map, $_SESSION); $image=$map->draw(); $image_url=$image->saveWebImage(); $legend_img = $map->drawLegend(); $legend_url = $legend_img->saveWebImage(); $key_img = $map->drawreferencemap(); $keymap_url = $key_img->saveWebImage(); /* PDF Stuff */ define('FPDF_FONTPATH','fpdf/font/'); require('fpdf/fpdf.php'); $pdf=new FPDF("L", "pt", "A4" ); $pdf->AddPage(); //$pdf->SetFont('Arial','B',16); $pdf->Image("C:/tmp$image_url",5, 20, 600, 400 ); $pdf->Image("C:/tmp$keymap_url",655,20 ); $pdf->Image("C:/tmp$legend_url",655,150 ); $pdf->Output(); ?> This will not work for you, however key is to use $image=$map->draw(); $image_url=$image->saveWebImage(); (and similar for reference, scalebar, legend) Then when you have the image url, use the pdf library functions to include images in pdf. If png format give you problems with fpdf, it's due to alpha channel => try jpg format. Ciao Piero From sergiodlopez at YAHOO.COM Mon Aug 29 12:35:39 2005 From: sergiodlopez at YAHOO.COM (Sergio Lopez) Date: Fri Feb 8 15:07:59 2008 Subject: problem with truetype symbols and typeimage Message-ID: Hi there: I?m using mapserver 4.6 within MS4W 1.2.1. I have a problem with truetype symbols. I?m using several TT fonts to symbolize point layers, but when I use IMAGETYPE= JPEG, the points are symbolized as filled rectangles, not the corresponding font. The issue is solved when I switch IMAGETYPE to PNG, but then when I zoom the colors change,(I know is because the 256 colors palette issue)even though my map is quite far from using 256 colors. so, in order to summarize: 1)Why the TT font symbols appear filled with IMAGETYPE= JPEG? 2)I?ve read in MS web page that PNG is a recommended output format for maps, but how come if this format shifts colors even though you use less than 256 colors in a map? Sergio. From gribas at CPQD.COM.BR Mon Aug 29 11:03:12 2005 From: gribas at CPQD.COM.BR (Gustavo Henrique Sberze Ribas) Date: Fri Feb 8 15:07:59 2008 Subject: mapscript polygon hightlighting feature Message-ID: > Hello, > > I am wanting to write a function so that when a user > clicks on a polygon, that polygon has its outer border > changed to a different color with perhaps a greater > line thickness. Ideally a refresh wouldn't be required > for this. My question is twofold, a) whether this is > possible b) if anyone has suggestions/code to get me > started on this. Thanks in advance. Hi, a) Yes. b1) You can pass an SLD to mapserv to highlight the desired Polygon. That will require another request to the server though. http://mapserver.gis.umn.edu/doc/sld-howto.html b2) You can use SVG. http://maps.dnr.state.mn.us/cgi-bin/mapserv40?map=/usr/local/www/docs/testing/svg/test.map&mode=itemnquery&qitem=cty_name&qstring=/./&qlayer=county http://lists.gis.umn.edu/pipermail/mapserver-users/2003-December/008640.html http://mapserver.gis.umn.edu/doc/svg-howto.html b3) You can do it with ImageMaps, JavaScript and DOM. Use the ImageMap generated by Mapserver as a guide to draw the Polygon's border with JavaScript... sounds crazy but might work, and it wouldn't require a refresh or additional plugins :) http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap HTH, Gustavo From Philip.Chau at EC.GC.CA Mon Aug 29 13:32:13 2005 From: Philip.Chau at EC.GC.CA (Chau,Philip [PYR]) Date: Fri Feb 8 15:07:59 2008 Subject: Rendering and EPSG problem? Message-ID: Hi there, I'm getting an error when I add a Demis layer with a EPSG 4326 to a map with layers in EPSG 42102 The error is : "ERROR Rendering map image: a fatal error occurred drawing the map" However if I remove the Demis layer it renders fine. I have tried to just add the Demis layer in Map mode by itself and it renders fine. Is there a list of things which I can try? Cheers, Phil Philip Chau, PMP Aquatic and Atmospheric Sciences Division Environmental Conservation Branch Environment Canada 201-401 Burrard Street Vancouver, BC V6C 3S5 Tel: 604.664.4066 Fax: 604.664.9126 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050829/8a9f897e/attachment.html From rparsons at TAPPUBLISHING.COM Mon Aug 29 13:38:01 2005 From: rparsons at TAPPUBLISHING.COM (Robert Parsons) Date: Fri Feb 8 15:07:59 2008 Subject: Problem with Perl script and image maps Message-ID: Can anyone offer any insight for this problem? I get "Segmentation Fault" any time I attempt to call $map->draw() for any map that is set to output via the "imagemap" driver. It's quite easy for me to reproduce and it even happens when simply opening a .map file from within a perl script. For example, this simple script throw a Seg Fault during the draw(). #!/usr/bin/perl use mapscript; my $msmap = mapscript::mapObj->new('test.map'); my $image=$msmap->draw(); $image->save('test'); Here's the test.map file: MAP EXTENT -14023070.10627 1859777.927636 -7135266.299414 7255753.260196 IMAGECOLOR 0 0 0 IMAGETYPE imagemap SHAPEPATH "/wxhub/common/shapefiles" SIZE 868 680 STATUS ON UNITS METERS NAME "TEST" OUTPUTFORMAT NAME "imagemap" MIMETYPE "text/html" DRIVER "imagemap" END PROJECTION "proj=merc" "lat_0=0" "lon_0=0" "datum=WGS84" END WEB IMAGEPATH "" IMAGEURL "" METADATA END QUERYFORMAT text/html END LAYER DATA "statesp020" METADATA END NAME "mylayer" PROJECTION "proj=latlong" END SIZEUNITS PIXELS STATUS ON TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS METADATA END STYLE ANGLE 360 COLOR 255 255 255 SIZE 1 SYMBOL 0 END END END END The same code will work fine if I change the .map file to output to a GIF instead of an imagemap. Any help would be appreciated. - R. Parsons From cvhackel at YAHOO.COM Mon Aug 29 15:11:07 2005 From: cvhackel at YAHOO.COM (Chris Hackel) Date: Fri Feb 8 15:07:59 2008 Subject: Calling all PROJ4 genuises Message-ID: I'm having trouble with coordinate conversion (latlong to Lambert/lcc). I'm using cs2cs in the following way, drawing data from orginfo (below): cs2cs +proj=latlong +ellps=GRS80 +datum=NAD83 +to +proj=lcc +datum=NAD83 +units=ft +lon_0=-74.0 +lat_0=40.16666 +lat_1=40.1666666 +lat_2=41.033333 +x_0=984250.0 +y_0=0 -73.994992 40.717690 3230554.89 200744.22 0.00 These numbers are definitely not what I'm looking for. (Extent of data: (910057.005249, 120827.652033) - (1067494.180516, 274629.837850)) Please help! Thank you! -Chris PROJCS["NAD_1983_StatePlane_New_York_Long_Island_FIPS_3104_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["False_Easting",984250.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-74.0], PARAMETER["Standard_Parallel_1",40.66666666666666], PARAMETER["Standard_Parallel_2",41.03333333333333], PARAMETER["Latitude_Of_Origin",40.16666666666666], UNIT["Foot_US",0.3048006096012192]] From tylermitchell at SHAW.CA Mon Aug 29 15:27:47 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:59 2008 Subject: Calling all PROJ4 genuises Message-ID: Hi Chris, After looking up the EPSG code for a similar sounding projection, this gives results closer to what you are looking for: cs2cs +proj=latlong +ellps=GRS80 +datum=NAD83 +to +proj=lcc +lat_1=40.66666666666666 +lat_2=41.03333333333333 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 Input: -73.994992 40.717690 Output: 985638.25 200750.38 0.00 Where did you get cs2cs and your proj environment from? Depending on this, you may have a shorthand way of calling this, if you put a couple lines into your epsg code file. Follow up with us to get that done if you are interested. That would result in a much shorter cs2cs line: cs2cs +init=epsg:4326 +to +init=102718 A bit easier to read ;) Hope that helps! Tyler From cvhackel at YAHOO.COM Mon Aug 29 15:40:27 2005 From: cvhackel at YAHOO.COM (Chris Hackel) Date: Fri Feb 8 15:07:59 2008 Subject: Calling all PROJ4 genuises In-Reply-To: <4f3f4e24f3b4cb.4f3b4cb4f3f4e2@shaw.ca> Message-ID: Tyler, thank you *very* much. I'll have to try to parse through that and learn the parameters better. My cs2cs is from the proj-4.4.9 release. I'm getting an error for the 2nd init: cs2cs +init=epsg:4326 +to +init=102718 Using to definition: init=102718 Rel. 4.4.9, 29 Oct 2004 : projection initialization failure cause: no colon in init= string program abnormally terminated I'm very interested in getting the proper proj environment in order to user the simplified version. Do you know where I could find it? -Chris --- Tyler Mitchell wrote: > Hi Chris, > After looking up the EPSG code for a similar > sounding projection, this gives results closer to > what you are looking for: > cs2cs +proj=latlong +ellps=GRS80 +datum=NAD83 +to > +proj=lcc +lat_1=40.66666666666666 > +lat_2=41.03333333333333 +lat_0=40.16666666666666 > +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 > +datum=NAD83 +to_meter=0.3048006096012192 > > Input: -73.994992 40.717690 > Output: 985638.25 200750.38 0.00 > > Where did you get cs2cs and your proj environment > from? Depending on this, you may have a shorthand > way of calling this, if you put a couple lines into > your epsg code file. Follow up with us to get that > done if you are interested. That would result in a > much shorter cs2cs line: > > cs2cs +init=epsg:4326 +to +init=102718 > > A bit easier to read ;) > Hope that helps! > > Tyler > > From FWTools\proj_lib\esri: > # NAD 1983 StatePlane New York Long Island FIPS 3104 > Feet > <102718> +proj=lcc +lat_1=40.66666666666666 > +lat_2=41.03333333333333 +lat_0=40.16666666666666 > +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 > +datum=NAD83 +to_meter=0.3048006096012192 no_defs > <> > > ----- Original Message ----- > From: Chris Hackel > Date: Monday, August 29, 2005 12:11 pm > Subject: [UMN_MAPSERVER-USERS] Calling all PROJ4 > genuises > > > I'm having trouble with coordinate conversion > (latlong > > to Lambert/lcc). > > > > I'm using cs2cs in the following way, drawing data > > from orginfo (below): > > cs2cs +proj=latlong +ellps=GRS80 +datum=NAD83 +to > > +proj=lcc +datum=NAD83 +units=ft +lon_0=-74.0 > > +lat_0=40.16666 +lat_1=40.1666666 +lat_2=41.033333 > > +x_0=984250.0 +y_0=0 > > -73.994992 40.717690 > > 3230554.89 200744.22 0.00 > > > > These numbers are definitely not what I'm looking > for. > > (Extent of data: (910057.005249, 120827.652033) - > > (1067494.180516, 274629.837850)) > > > > Please help! Thank you! > > -Chris > > > > > > > > > PROJCS["NAD_1983_StatePlane_New_York_Long_Island_FIPS_3104_Feet", > > GEOGCS["GCS_North_American_1983", > > DATUM["North_American_Datum_1983", > > > > SPHEROID["GRS_1980",6378137.0,298.257222101]], > > PRIMEM["Greenwich",0.0], > > UNIT["Degree",0.0174532925199433]], > > PROJECTION["Lambert_Conformal_Conic_2SP"], > > PARAMETER["False_Easting",984250.0], > > PARAMETER["False_Northing",0.0], > > PARAMETER["Central_Meridian",-74.0], > > > > > PARAMETER["Standard_Parallel_1",40.66666666666666], > > > > > PARAMETER["Standard_Parallel_2",41.03333333333333], > > > PARAMETER["Latitude_Of_Origin",40.16666666666666], > > UNIT["Foot_US",0.3048006096012192]] > > > From SHYDOCK at MITRE.ORG Mon Aug 29 15:43:05 2005 From: SHYDOCK at MITRE.ORG (Hydock,Shaun T.) Date: Fri Feb 8 15:07:59 2008 Subject: Compiling Php_MapScript with SDE support Message-ID: All - Does anyone have a php_mapscript.dll with SDE support enabled for win32? It is not included in the HOBU kitchen sink and everytime I try to build it on my own I get the following error: php_mapscript_util.c php_mapscript_util.h(64) : fatal error C1083: Cannot open include file: 'php.h': No such f ile or directory NMAKE : fatal error U1077: 'cl' : return code '0x2' Any suggestions or work arounds are greatly appreciated. I have built mapserv.exe with SDE support, but can't seem to get the mapscript build to work. Thanks! Shaun -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050829/d37302d6/attachment.html From tylermitchell at SHAW.CA Mon Aug 29 15:59:05 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri Feb 8 15:07:59 2008 Subject: Calling all PROJ4 genuises Message-ID: > Tyler, thank you *very* much. I'll have to try to > parse through that and learn the parameters better. > > My cs2cs is from the proj-4.4.9 release. I'm getting > an error for the 2nd init: > cs2cs +init=epsg:4326 +to +init=102718 Oops, I should have written "+init=epsg:102718" When +init=epsg: is used, it looks up all the parameters from a proj4 text file called 'epsg'. Find that on your system and then add these two lines at the end: # NAD 1983 StatePlane New York Long Island FIPS 3104 Feet <102718> +proj=lcc +lat_1=40.66666666666666 +lat_2=41.03333333333333 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 no_defs <> Then you should be able to use the syntax I provided. Hope that helps! Tyler From tibben at OCF.BERKELEY.EDU Mon Aug 29 16:57:24 2005 From: tibben at OCF.BERKELEY.EDU (Tim Norris) Date: Fri Feb 8 15:07:59 2008 Subject: layer->queryByFeatures strangeness Message-ID: Hi all I have discovered a strange difference between mapServer 4.4.2 and mapServer 4.6.0. - particularly with the $layer->queryByFeatures() method under PHP/Mapscript. Currently I have two machines configured as below Machine #1 Fedora Core 3 PHP 5.0.3 :: './configure' '--enable-shared' '--with-regex=system' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib' '--with-gd=/usr/local' '--with-freetype-dir=/usr' '--enable-force-cgi-redirect' '--enable-dbase' '--with-pdflib' '--with-mysql' '--with-config-file-path=/usr/local/php/' '--prefix=/usr/local/php' MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Machine #2 Fedora Core 4 PHP 5.0.3 :: './configure' '--enable-shared' '--with-regex-system' '--with-png-dir=/usr' '--with-zlib' '--with-gd=/usr/local' '--with-freetype-dir=/usr' '--enable-force-cgi-redirect' '--enable-dbase' '--with-pdflib' '--with-mysql' '--with-config-file-path=/usr/local/php/' '--prefix=/usr/local/php' MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE There is no relevant part of the map file - both layers that are relevant are dynamically loaded depending on the request. The relevant script is as follows (PHP): // this is a dynamically loaded point layer - MapInfo format $lyr_currentLink = ms_newLayerObj($ms_map); $lyr_currentLink->set('name',$my_link_name); $lyr_currentLink->set('type',MS_LAYER_POINT); $lyr_currentLink->set('status',MS_ON); $lyr_currentLink->set('connection',"myLocationData.TAB"); $lyr_currentLink->set('connectiontype',MS_OGR); $lyr_currentLink->setProjection("proj=latlong"); $obj_linkClass = ms_newClassObj($lyr_currentLink); $obj_linkClass->set('template','NULL'); // there is more script defining colors etc. . . . // this is a dynamically loaded polygon district layer - MapInfo format $lyr_districts = ms_newLayerObj($ms_map); $lyr_districts->set('name',$my_districts); $lyr_districts->set('type',MS_LAYER_POLYGON); $lyr_districts->set('connection',"myDistricts.TAB"); $lyr_districts->set('connectiontype',MS_OGR); $lyr_districts->setProjection("proj=latlong"); $obj_districtsClass = ms_newClassObj($lyr_districts); $obj_districtsClass->set('template','NULL'); // more script defining colors etc. . . . // get the correct district based on the request - querying against the field "DN" with the $my_district_number from the request. $b_qRes=$lyr_districts->queryByAttributes("DN",$my_district_number,"MS_SINGLE"); $obj_district = $lyr_districts->getResult(0); // NOTE: I open the layer and get the feature for drawing later - perhaps this is part of the problem and there is a better way to draw the particular district? using the layer->drawQuery() method? would this make a difference? $lyr_districts->open(); $ftr_district=$lyr_districts->getShape($obj_district->tileindex,$obj_district->shapeindex); // then I create a new layer and add the $ftr_district to the new layer with all of its colors etc. . . . // now for the problem query - specificially to count the point data within the district $lyr_currentLink->queryByFeatures($lyr_districts->index); $str_locationCount = $lyr_currentLink->getNumResults(); now for the wierdness: on both machines the code executes without error, BUT on the 4.4.2 version I get the correct number and on the 4.6.0 version I get an incorrect count (it is way to high). As an aside - I have tried using the $layer->queryByShape($ftr_district) method and keep getting errors (either mapServer crashes entirely with no visible error message in 4.4.2 or, once again the wrong count in 4.6.0 - incidentally it is the SAME wrong count) - this includes the reprojection of the $ftr_district->project($inProj,$outProj) to make sure that there are no projection problems/conflicts. any help on this would be great - I would like to use the 4.6.0 version, but right now I cannot get it to return the correct result - perhaps a bug??? or perhaps I am doing something wrong??? and another aside - which documentation set is current???? http://ms.gis.umn.edu/ OR http://mapserver.gis.umn.edu/ or is http://ms.gis.umn.edu/ for 4.6.0 and http://mapserver.gis.umn.edu/ for 4.2.? and finally in the mapscript documentation at http://ms.gis.umn.edu/ it shows using $layer->queryByFeatures as follows: queryByFeatures( mapObj map, int slayer ) but when I include the mapObj in the parameters I get a "invalid _handle_ property" error - even on the machine with 4.6.0. Is there some explanation for this? Could it be related to the previously noted bugs with queries on dynamically loaded layers? Should I be including the mapObj parameter? It seems to function (but with the wrong count as noted above) without the mapObj parameter. I will continue to play with this . . . perhaps make the districts layer part of the map file and see what happens on the 4.6.0 machine. thanks tim Tim Norris UC Industry-University Cooperative Research Program Berkeley CA From Mark.Andrle at NEWBRIGHTONMN.GOV Mon Aug 29 17:21:33 2005 From: Mark.Andrle at NEWBRIGHTONMN.GOV (Mark Andrle) Date: Fri Feb 8 15:07:59 2008 Subject: Problem Querying Points Message-ID: Hello, I'm new to MapServer and I'm having trouble querying my points layer. When I try to do so I receive the following error message: mapserv(): Web application error. No way to generate a valid map extent from selected shapes The query function works fine with my polygon layers. Below is the code I'm using for the point layer I'm tyring to query. LAYER NAME '2005 crime' DATA "2005 crime" STATUS OFF TOLERANCE 20 TYPE POINT CLASS STYLE SYMBOL 'circle' SIZE 8 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END TEMPLATE "crime.html" END END Any assistance would be much appreciated. Thanks. From jzeisloft at GMAIL.COM Tue Aug 30 00:09:28 2005 From: jzeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Fri Feb 8 15:07:59 2008 Subject: Two Keymaps?? Message-ID: Hello All- I am playing with including two keymaps in my application (one that is more useful when zoomed in, and one when zoomed out). They would be displayed simultaneously. I am having some trouble doing this, though it doesn't seem like it should be too tough. I am also using Chameleon (the Keymap DHTML widget). However, I think my first task towards accomplishing this would be on the MapServer end. When I place a second Reference object in the mapfile, I receive the error that there is a dupilcate item: *Warning*: [MapServer Error]: getString(): Duplicate item (IMAGE):(line 49) in *C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php* on line * 215* *Warning*: Failed to open map file C:\ms4w\apps\chameleon\lscmp\htdocs/../map/wlscmp.map in * C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php* on line *215* *Fatal error*: Call to a member function on a non-object in * C:\ms4w\apps\chameleon\htdocs\widgets\KeyMapDHTML\KeyMapDHTML.widget.php* on line *115 * Might there be a simple solution? Or would I need to rewrite a bunch of code somewhere (if so, where?)? I would really appreciate any hints you can pass along. Thanks in advance for your help! Jennifer Zeisloft UW Sea Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050829/136a0b0d/attachment.html From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 30 05:21:27 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:59 2008 Subject: legend image does not take into account transparency? Message-ID: Hi list, am I correct that the legend image does not incorporate the TRANSPARENCY which is set on a LAYER, so that there is a discrepancy between MAP and LEGEND? Or am I missing some kind of setting? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl From artur.skalski at ACXIOM.COM Tue Aug 30 06:04:34 2005 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Fri Feb 8 15:07:59 2008 Subject: Application and data server Message-ID: Hi All! Could You give me some advice? I need to set up a commercial map site based on the mapserver, I know a bit mapserver but I'd like to ask You about efficiency and security issues. I'm planning to base this service on two servers: first - application server, with www server and mapserver, and second database server with vector data in a database like PostgreSQL, so the first question is: Is this approache correct?, maybe it's not needed to separate the application server from database server, and what about the efficiency and data security in both cases? And another thing: if I choose to separate application and www server from database server is it nessesary to deal with WMS and WFS Mapserver or maybe regular Mapserver can comunicate with a database placed on database server? Many Thanks for Your advice! Best Regards Artur From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Aug 30 06:10:11 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:59 2008 Subject: 3 little Questions Message-ID: Hi list, Question 1 (of 3): maybe a simple question: How in general can I change the width of a line(vectordata)? Maybe not with 'SIZE' because regardless of which SIZE 1 or SIZE 50 or SIZE 100 there is allways a fine line. CLASS NAME "XC_Rivers" STYLE SYMBOL 0 COLOR 72 0 254 SIZE 100 MINSIZE 1 MAXSIZE 100 END END --------------------------------------- Question 2 (of 3): I'd like to show a layer (polygones) with the population density in 5 clases (in different colors). I made the map file like in centrope_wms_bevdichte_2.map in the attachement is shown. e.g. with this: CLASS # Low Density MAXSCALE 120000 MINSCALE 500 EXPRESSION ([Bev_class]=1) #if it is a string ('[FIELD]'='value') SYMBOL 1 COLOR 248 147 147 SIZE 1 END CLASS # High Density MAXSCALE 120000 MINSCALE 500 EXPRESSION ([Bev_class]=2) SYMBOL 1 COLOR 249 36 36 SIZE 1 END But I only get this message: msDrawMap():Failed to draw layer named `Bev_Density'. Someone has an idea about this? -------------------------------------------- Question 3 (of 3): I have a satellite tif for my background. It is in color. But in my client it is only shown in black and white. Do I have to change some command line here? (map file for satellite picture is also in attachement: centrope_wms_sat.map) --------------------------------------------- Thanks a lot for everybody, who is trying to help me here a little bit. Best regards, Leopold -------------- next part -------------- A non-text attachment was scrubbed... Name: centrope_wms_bevdichte_2.map Type: application/octet-stream Size: 2744 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/d4d6b452/centrope_wms_bevdichte_2.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: centrope_wms_sat.map Type: application/octet-stream Size: 2152 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/d4d6b452/centrope_wms_sat.obj From mschulz at WEBGIS.DE Tue Aug 30 07:40:17 2005 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Fri Feb 8 15:07:59 2008 Subject: 3 little Questions In-Reply-To: Message-ID: Hi Leopold, Q1: you will need to use a style that uses a vector symbol, e.g. SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END then you can use the SIZE parameter in the mapfile on that symbol. Q2: Are you sre mapserver finds your shapefile in ./data? Did you try to use an absolute path to your data directory? Q3: Not sure, but did you try using a 24-bit output format, e.g. png24 ? Cheers, Michael Leopold Schefcik (MULTIMEDIAPLAN.AT) schrieb: > > Hi list, > > Question 1 (of 3): > maybe a simple question: How in general can I change the width of a > line(vectordata)? > > Maybe not with 'SIZE' because regardless of which SIZE 1 or SIZE 50 or SIZE > 100 there is allways a fine line. > > CLASS > NAME "XC_Rivers" > STYLE > SYMBOL 0 > COLOR 72 0 254 > SIZE 100 > MINSIZE 1 > MAXSIZE 100 > END > END > > --------------------------------------- > Question 2 (of 3): > I'd like to show a layer (polygones) with the population density in 5 clases > (in different colors). > > I made the map file like in centrope_wms_bevdichte_2.map in the attachement > is shown. e.g. with this: > > CLASS # Low Density > MAXSCALE 120000 > MINSCALE 500 > EXPRESSION ([Bev_class]=1) #if it is a string ('[FIELD]'='value') > SYMBOL 1 > COLOR 248 147 147 > SIZE 1 > END > > CLASS # High Density > MAXSCALE 120000 > MINSCALE 500 > EXPRESSION ([Bev_class]=2) > SYMBOL 1 > COLOR 249 36 36 > SIZE 1 > END > > But I only get this message: > msDrawMap():Failed to draw layer named `Bev_Density'. > > Someone has an idea about this? > -------------------------------------------- > > Question 3 (of 3): > I have a satellite tif for my background. It is in color. But in my client > it is only shown in black and white. > > Do I have to change some command line here? > (map file for satellite picture is also in attachement: > centrope_wms_sat.map) > > --------------------------------------------- > > Thanks a lot for everybody, who is trying to help me here a little bit. > > Best regards, > Leopold > > > > -- ----------------------------------------------------------- Michael Schulz mschulz@webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 Tel +49 (0)761 556959-5 79108 Freiburg Fax +49 (0)761 556959-6 www.webgis.de / www.zopecms.de ----------------------------------------------------------- NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU ----------------------------------------------------------- From tomas.novotny at TMAPY.CZ Tue Aug 30 07:44:39 2005 From: tomas.novotny at TMAPY.CZ (Tomas Novotny) Date: Fri Feb 8 15:07:59 2008 Subject: WFS DescribeFeatureType in mapserv4.6 Message-ID: Hi all, after I moved from MapServer 4.4.1 to 4.6.0 I have problem using WFS DescribeFeatureType request. I normally used mapserv 4.4.1 for getting information about layer attributes. But 4.6.0 returns no attribute information at all. Here are examples that ilustrate my problem: DescribeFeatureType response on 4.4.1: And DescribeFeatureType response on 4.6.0 (with the same data source): Maybe the problem is in bad compilation. I will appreciate every reaction. Tomas From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 30 08:23:02 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:59 2008 Subject: WFS DescribeFeatureType in mapserv4.6 Message-ID: Use gml_include_items "all" in your LAYER's METADATA section. Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Tomas Novotny 08/30/05 1:44 pm >>> Hi all, after I moved from MapServer 4.4.1 to 4.6.0 I have problem using WFS DescribeFeatureType request. I normally used mapserv 4.4.1 for getting information about layer attributes. But 4.6.0 returns no attribute information at all. Here are examples that ilustrate my problem: DescribeFeatureType response on 4.4.1: And DescribeFeatureType response on 4.6.0 (with the same data source): Maybe the problem is in bad compilation. I will appreciate every reaction. Tomas From tomas.novotny at TMAPY.CZ Tue Aug 30 08:27:46 2005 From: tomas.novotny at TMAPY.CZ (Tomas Novotny) Date: Fri Feb 8 15:07:59 2008 Subject: WFS DescribeFeatureType in mapserv4.6 In-Reply-To: Message-ID: That's it! Thank you really much Bart Bart van den Eijnden wrote: >Use gml_include_items "all" in your LAYER's METADATA section. > >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN@Syncera-ITSolutions.nl > > > >>>>Tomas Novotny 08/30/05 1:44 pm >>> >>>> >>>> >Hi all, > >after I moved from MapServer 4.4.1 to 4.6.0 I have problem using WFS DescribeFeatureType request. >I normally used mapserv 4.4.1 for getting information about layer attributes. But 4.6.0 returns no attribute information at all. > >Here are examples that ilustrate my problem: > >DescribeFeatureType response on 4.4.1: > > >elementFormDefault="qualified" version="0.1"> >schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/> >substitutionGroup="gml:_Feature"/> > > > > > > > > > > > > > > > >And DescribeFeatureType response on 4.6.0 (with the same data source): > > >elementFormDefault="qualified" version="0.1"> >schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/> >substitutionGroup="gml:_Feature"/> > > > > >maxOccurs="1"/> > > > > > > >Maybe the problem is in bad compilation. >I will appreciate every reaction. > >Tomas > > > From ajfrank at ALICE.IT Tue Aug 30 08:52:38 2005 From: ajfrank at ALICE.IT (Gianfranco Brescia) Date: Fri Feb 8 15:07:59 2008 Subject: Linux and big ecw file Message-ID: Hi to all from Italy... I have a problem with ecw files...I've installed ecwsdk-3.1.25jan05-linux.tar.gz and gdal1.2.6. When I use a small ecw file (230 Mbyte) it works good but when I want see a big ecw file (9,8 GByte) I can see nothing... everything is in background color... Can somebody can help me, even if my English is not perfect? Thanks a lot! Bye. From jlacroix at DMSOLUTIONS.CA Tue Aug 30 09:31:40 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Fri Feb 8 15:07:59 2008 Subject: Application and data server In-Reply-To: Message-ID: Hi Artur! This is a tricky one. It really depends on the trafic you have on your website. For a moderate trafic website you only need a basic installation. One server with MapServer + PostGIS + Application. However if you get too much traffic for a single server, you may want to separate the Application and MapServer. MapServer is usually what takes the most ressource of a server. This is more true when it is poorly configured. So before doing that, make sure you have tuned your data, mapfile and server. The first things you should check are removing the PROJECTION blocks and the filters (For any other advice ask the list). Other than that, there's no real problem to put the database and MapServer on the same machine I think. In the case you decide to separate PostGIS and MapServer on 2 different machines, you don't need to use WFS or WMS. You can connect to PostGIS like usual I think. Best regards, Julien PS: There's information in the wiki about security issues. On 08/30/2005 06:04 AM, Artur Skalski wrote: > Hi All! > > Could You give me some advice? > > I need to set up a commercial map site based on the mapserver, I know a bit > mapserver but I'd like to ask You about efficiency and security issues. > > I'm planning to base this service on two servers: first - application > server, with www server and mapserver, and second database server with > vector data in a database like PostgreSQL, so the first question is: Is this > approache correct?, maybe it's not needed to separate the application server > from database server, and what about the efficiency and data security in > both cases? > > And another thing: if I choose to separate application and www server from > database server is it nessesary to deal with WMS and WFS Mapserver or maybe > regular Mapserver can comunicate with a database placed on database server? > > Many Thanks for Your advice! > > Best Regards > > Artur > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pspencer at DMSOLUTIONS.CA Tue Aug 30 09:35:38 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Fri Feb 8 15:07:59 2008 Subject: Two Keymaps?? In-Reply-To: <817c010105082921096bf1acb6@mail.gmail.com> Message-ID: Jennifer, you can't do this with stock MapServer as the mapfile structure will not permit it. With some mapscript intervention, you can replace the image in the reference object. I would probably approach it differently in Chameleon, but a simple solution would be to have metadata at the map object that contains sufficient information to replace the reference map image. I think you will need to know the following: 1. image 2. extents of the image 3. extents/scale to start using the image One of the problems that I percieve with this approach is that the purpose of having a second keymap would be to provide more detail when you zoom in. If you have one (or possibly many) pregenerated images then it will be possible for the user to zoom to an area that doesn't make sense for the keymap you have generated. You could make it extent-sensitive and divide up the 'zoomed in' keymaps : +----+----+ | | | +----+----+ | | | +----+----+ but then it would be possible to zoom in at the center of this and get poor results. An alternate approach would be to use a second map file to define how to draw a keymap image and have it render keymap images on the fly depending on scale. This would be my preferred approach. You would set scale thresholds for producing new keymaps and when they change, they would always start at the center of where the user is currently viewing. In Chameleon, I would add this as attributes of the keymap widgets to abstract it away from the mapfile structure, perhaps using subtags: The widget would then have to track scale changes as the user zooms and pans, refreshing the keymap image each time the user moves outside the current extents of the keymap or changes scale across a threshold. If you decide to attempt this, lemme know and I may have some time to help out as I think this would be a great improvement. Cheers Paul Jennifer Zeisloft wrote: > Hello All- > > I am playing with including two keymaps in my application (one that is > more useful when zoomed in, and one when zoomed out). They would be > displayed simultaneously. I am having some trouble doing this, though > it doesn't seem like it should be too tough. > > I am also using Chameleon (the Keymap DHTML widget). However, I think > my first task towards accomplishing this would be on the MapServer end. > When I place a second Reference object in the mapfile, I receive the > error that there is a dupilcate item: > > > *Warning*: [MapServer Error]: getString(): Duplicate item (IMAGE):(line > 49) in *C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php* on > line *215* > > *Warning*: Failed to open map file > C:\ms4w\apps\chameleon\lscmp\htdocs/../map/wlscmp.map in > *C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php* on line *215* > > *Fatal error*: Call to a member function on a non-object in > *C:\ms4w\apps\chameleon\htdocs\widgets\KeyMapDHTML\KeyMapDHTML.widget.php* > on line *115 > > > * > Might there be a simple solution? Or would I need to rewrite a bunch of > code somewhere (if so, where?)? I would really appreciate any hints you > can pass along. Thanks in advance for your help! > > Jennifer Zeisloft > UW Sea Grant -- +-----------------------------------------------------------------+ |Paul Spencer pspencer@dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From pauljame at GMAIL.COM Tue Aug 30 10:22:28 2005 From: pauljame at GMAIL.COM (Paul james) Date: Fri Feb 8 15:07:59 2008 Subject: zoomRectangle problem... Message-ID: Hi... My zoom box: rectObj rec = new rectObj(127,156,362,351,0); My map extent: rectObj extent = new rectObj(-79.67662,-34.2426, -24.5421, 6.87629, 0); and I called the zoomrect function: map.zoomRectangle(rec,map.width,map.height,extent,null); But I got the error: *Georeferenced coordinates miny <= maxy* Any ideas? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/a2e685a6/attachment.html From fwarmerdam at GMAIL.COM Tue Aug 30 11:31:04 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:59 2008 Subject: Linux and big ecw file In-Reply-To: Message-ID: On 8/30/05, Gianfranco Brescia wrote: > Hi to all from Italy... > I have a problem with ecw files...I've installed > ecwsdk-3.1.25jan05-linux.tar.gz and gdal1.2.6. > When I use a small ecw file (230 Mbyte) it works good but when I want see > a big ecw file (9,8 GByte) I can see nothing... everything is in > background color... > Can somebody can help me, even if my English is not perfect? Gianfranco, The ecwsdk-3.1.25jan05 build still had a variety of bugs. I would suggest you try the same file with the FWTools 0.9.9 for linux to see if it works better. I am also expecting a new ECW SDK release soon which should bundle a fair number of fixes, and an easier build mechanism for use with GDAL 1.3.0. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mgoncalves at DSI.UMINHO.PT Tue Aug 30 12:26:32 2005 From: mgoncalves at DSI.UMINHO.PT (=?ISO-8859-1?Q?Miguel_Gon=E7alves?=) Date: Fri Feb 8 15:07:59 2008 Subject: DWithin filter Message-ID: Hi Im am using MapServer 4.6.0 for windows. I am using the following WFS DWithin filter http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter= -8.418000,41.539600 1000 to get all the points in the layer cities in a range of 1000 meters. The Problem is that I am not obtaining accurate results. The points I am getting as result are in a range bigger than 1000 meters. Does somebody can help me? The mapfile file that I am using is: MAP SHAPEPATH "europe_1_data" WEB METADATA WFS_TITLE "Mapa da Europa" WFS_SRS "http://localhost/cgi-bin/mapserv.exe?" END END ############## LAYER cities LAYER NAME cities DATA cities TYPE line DUMP TRUE TOLERANCEUNITS METERS METADATA WFS_TITLE "cities layer" GML_INCLUDE_ITEMS "all" END END ############## LAYER mjroads LAYER NAME mjroads DATA mjroads TYPE line DUMP TRUE TOLERANCEUNITS METERS METADATA WFS_TITLE "mjroads layer" GML_INCLUDE_ITEMS "all" END END ##############LAYER country LAYER NAME countries DATA countries TYPE polygon DUMP TRUE TOLERANCEUNITS METERS METADATA WFS_TITLE "country layer" GML_INCLUDE_ITEMS "all" END END END Best regards. Miguel From fwarmerdam at GMAIL.COM Tue Aug 30 12:34:31 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:59 2008 Subject: Rendering and EPSG problem? In-Reply-To: Message-ID: On 8/29/05, Chau,Philip [PYR] wrote: > > > > Hi there, > > I'm getting an error when I add a Demis layer with a EPSG 4326 to a map with > layers in EPSG 42102 > > The error is : > "ERROR Rendering map image: a fatal error occurred drawing the map" > > However if I remove the Demis layer it renders fine. > > I have tried to just add the Demis layer in Map mode by itself and it > renders fine. > > Is there a list of things which I can try? Phil, I am suspecting that MapServer is having a hard time using EPSG:42102. Are you use it is listed in your epsg lookup file for PROJ.4? In cases where no reprojection is going on, declaring it might have cause no problem. I tried looking up 42102 with GDAL's EPSG lookup services and found it was a cubewerx addition for BC Albers but for some reason I had to comment out this particular coordinate system because it was causing problems. Perhaps this somehow relates to your problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Tue Aug 30 12:40:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:59 2008 Subject: Coordinate conversion (EXTENT) In-Reply-To: <20050829152305.8443.qmail@web30203.mail.mud.yahoo.com> Message-ID: On 8/29/05, Chris Hackel wrote: > Hello. > Recently I switched from a latlong proj shapefile to > Lambert Conformal Canonic. I'm having trouble > converting my EXTENT with cs2cs. > > Based on the ogrinfo below, I tried this in cs2cs: > cvhackel% cs2cs +proj=latlong +ellps=GRS80 > +datum=NAD83 +to +proj=lcc +datum=NAD83 +units=ft > +lon_0=-74.0 +lat_0=40.16666 +lat_1=40.1666666 > +lat_2=41.033333 +x_0=984250.0 +y_0=0 > -73.994992 40.717690 > 3230554.89 200744.22 0.00 > > This doesn't look right (again, based on the ogrinfo). > Can someone help? Chris, PROJ.4 +x_0 should be in meters, while it is in feet in WKT (for a foot PROJCS). Try: warmerda@gdal2200[35]% cs2cs +proj=latlong +ellps=GRS80 +datum=NAD83 +to +proj=lcc +datum=NAD83 +units=ft +lon_0=-74.0 +lat_0=40.16666 +lat_1=40.1666666 +lat_2=41.033333 +x_0=300000.0 +y_0=0 -73.994992 40.717690 985640.19 200744.22 0.00 -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From hfl at HOME.NL Tue Aug 30 12:46:56 2005 From: hfl at HOME.NL (Huub Fleuren) Date: Fri Feb 8 15:07:59 2008 Subject: WFS and Oracle In-Reply-To: <430DA984.4000700@home.nl> Message-ID: .. I' m sorry to say that the trick to use an upgraded vc6sp6 .\Common and .\vc98 did not yet do the trick. I'm thinking dependencies now. I will rebuild from scratch. A comforting thought is that we can use Howard Butler's fully featured Oracle92 compile. http://hobu.stat.iastate.edu/mapserver/ So, I'll keep on swimming for a while. Thank you for the responses Regards, Huub Huub Fleuren wrote: > oke > results on monday. > Regards, Huub > > Bart van den Eijnden wrote: > >> Huub, >> >> you need to compile mapserv with VC6, SP3 or SP4 minimal (one of the >> two, I can't remember exactly). Otherwise you get crashes on >> GetFeatureInfo or GetFeature with maporaclespatial. VC7 also does the >> trick. >> >> > > From fsimon at UNIVALI.BR Tue Aug 30 13:05:31 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri Feb 8 15:07:59 2008 Subject: WFS and Oracle In-Reply-To: <43148D80.4020806@home.nl> Message-ID: Hi Hubb, Since friday I worked in the maporaclespatial.c and found some problems: possible segmentation faults with handlers, memory errors (as Silke reported); and I updated it for a better multi-thread support. Now I'm testing the code with the updates, and after this I will commit the code in the cvs branch. I believe that you can use the Hobu bin without problems. Thanks again. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Huub Fleuren wrote: > .. > > I' m sorry to say that the trick to use an upgraded vc6sp6 .\Common > and .\vc98 did not yet do the trick. > I'm thinking dependencies now. I will rebuild from scratch. > > A comforting thought is that we can use Howard Butler's fully featured > Oracle92 compile. > http://hobu.stat.iastate.edu/mapserver/ > > So, I'll keep on swimming for a while. > > Thank you for the responses > > Regards, Huub > > > Huub Fleuren wrote: > >> oke >> results on monday. >> Regards, Huub >> >> Bart van den Eijnden wrote: >> >>> Huub, >>> >>> you need to compile mapserv with VC6, SP3 or SP4 minimal (one of the >>> two, I can't remember exactly). Otherwise you get crashes on >>> GetFeatureInfo or GetFeature with maporaclespatial. VC7 also does >>> the trick. >>> >>> >> >> > From SELFKEV at UK.IBM.COM Tue Aug 30 13:00:09 2005 From: SELFKEV at UK.IBM.COM (Kevin Self) Date: Fri Feb 8 15:07:59 2008 Subject: mapserver Windows Oracle Binaries Message-ID: hi, I'm looking to get hold of specific pre-compiled Mapserver binary that support (among others) for Windows: Oracle Spatial SWF PERL WCS, WFS I've tried many binaries on the web and to date i've found if they support Oracle they don't support PERL (eg MS4W - no oracle, otherwise would be perfect, HoBu - no perl, ..) anyone know of a version? (th eequivalent for Linux would also be useful) regards, K From lfilak at MEDINACO.ORG Tue Aug 30 13:11:36 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri Feb 8 15:07:59 2008 Subject: Problem with Perl script and image maps Message-ID: The following message was sent by Robert Parsons on Mon, 29 Aug 2005 12:38:01 -0500. > Can anyone offer any insight for this problem? I get "Segmentation Fault" > any time I attempt to call $map->draw() for any map that is set to output > via the "imagemap" driver. It's quite easy for me to reproduce and it even > happens when simply opening a .map file from within a perl script. For > example, this simple script throw a Seg Fault during the draw(). > > #!/usr/bin/perl > > use mapscript; > > my $msmap = mapscript::mapObj->new('test.map'); > my $image=$msmap->draw(); > $image->save('test'); > > > Here's the test.map file: > > MAP > EXTENT -14023070.10627 1859777.927636 -7135266.299414 7255753.260196 > IMAGECOLOR 0 0 0 > IMAGETYPE imagemap > SHAPEPATH "/wxhub/common/shapefiles" > SIZE 868 680 > STATUS ON > UNITS METERS > NAME "TEST" > > OUTPUTFORMAT > NAME "imagemap" > MIMETYPE "text/html" > DRIVER "imagemap" > END > > PROJECTION > "proj=merc" > "lat_0=0" > "lon_0=0" > "datum=WGS84" > END > > WEB > IMAGEPATH "" > IMAGEURL "" > METADATA > END > QUERYFORMAT text/html > END > > LAYER > DATA "statesp020" > METADATA > END > NAME "mylayer" > PROJECTION > "proj=latlong" > END > SIZEUNITS PIXELS > STATUS ON > TOLERANCEUNITS PIXELS > TYPE POLYGON > UNITS METERS > CLASS > METADATA > END > STYLE > ANGLE 360 > COLOR 255 255 255 > SIZE 1 > SYMBOL 0 > END > END > END > > END > > > The same code will work fine if I change the .map file to output to a GIF > instead of an imagemap. Robert, There appears to be something wrong with the mapfile. Running shp2img on the mapfile produces the same error (for imagemap)/success (for gif). At this point I'm not sure what the mapfile requires (particularly in the 'style' section) where the 'imagemap' seems to be blowing up. Lowell From bartvde at XS4ALL.NL Tue Aug 30 13:18:41 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:59 2008 Subject: DWithin filter In-Reply-To: <431488B8.4090001@dsi.uminho.pt> Message-ID: Try setting TOLERANCEUNITS METERS on your LAYER. There was a bug in Mapserver but it has been fixed in CVS, this should be a workaround. Best regards, Bart On Tue, 30 Aug 2005 18:26:32 +0200, Miguel Gon?alves wrote: > Hi > > Im am using MapServer 4.6.0 for windows. > I am using the following WFS DWithin filter > > http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter= > > > > -8.418000,41.539600 > > 1000 > > > > to get all the points in the layer cities in a range of 1000 meters. > The Problem is that I am not obtaining accurate results. > The points I am getting as result are in a range bigger than 1000 meters. > Does somebody can help me? > > The mapfile file that I am using is: > > > MAP > SHAPEPATH "europe_1_data" > > WEB > METADATA > WFS_TITLE "Mapa da Europa" > WFS_SRS "http://localhost/cgi-bin/mapserv.exe?" > END > END ############## LAYER cities > LAYER > NAME cities > DATA cities > TYPE line > DUMP TRUE TOLERANCEUNITS > METERS > METADATA > WFS_TITLE "cities layer" > GML_INCLUDE_ITEMS "all" > END > END > > ############## LAYER mjroads > LAYER > NAME mjroads > DATA mjroads > TYPE line > DUMP TRUE > TOLERANCEUNITS METERS > METADATA > WFS_TITLE "mjroads layer" > GML_INCLUDE_ITEMS "all" > END > END > > ##############LAYER country > LAYER > NAME countries > DATA countries > TYPE polygon > DUMP TRUE > TOLERANCEUNITS METERS > METADATA > WFS_TITLE "country layer" > GML_INCLUDE_ITEMS "all" > END > END > > END > > > Best regards. > > Miguel > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From sherman at MRCC.COM Tue Aug 30 13:14:15 2005 From: sherman at MRCC.COM (Gary Sherman) Date: Fri Feb 8 15:07:59 2008 Subject: WMS and ArcGIS In-Reply-To: Message-ID: Has anyone successfully displayed a MapServer WMS in ArcGIS 9.x? I am able to add the service to ArcMap. The list of layers shows up and I can zoom to the extent of a layer, however nothing is ever rendered. -gary -------------------------- Gary Sherman http://qgis.org http://mrcc.com From BEN at SYNCERA-ITSOLUTIONS.NL Tue Aug 30 13:30:25 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:59 2008 Subject: legend image does not take into account transparency? Message-ID: Hi Ken, thanks for your response. I am using a Mapserver 4.7 version on win32 (CVS head version from a few weeks ago). Did something break again :-) ? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN@Syncera-ITSolutions.nl >>> Ken Lord 08/30/05 19:10 PM >>> Hi Bart, I submitted the legend / transparancy issue as a bug some time ago ... and it was immediately fixed, If i remember correctly Sean Gilles had caught and fixed the problem just before my submission, making for a super fast turn around. MapServer 4.4.1 had the issue, I believe 4.4.2 had the fix, 4.6 definately is fixed. Cheers, Ken Lord Vancouver BC On 8/30/05, Bart van den Eijnden wrote: > > Hi list, > > am I correct that the legend image does not incorporate the TRANSPARENCY > which is set on a LAYER, so that there is a discrepancy between MAP and > LEGEND? > > Or am I missing some kind of setting? > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN@Syncera-ITSolutions.nl > From duchovni at GMAIL.COM Tue Aug 30 13:20:44 2005 From: duchovni at GMAIL.COM (Davi Duchovni) Date: Fri Feb 8 15:07:59 2008 Subject: oracle x mapserver Message-ID: please, i?m wonder if i can work with mapserver and oracle, not oracle spatial. Is there any way to visualize points stores in the base in two columns diferentes, one represent the X and the other one represent the Y. Both number are non-spatial. thaks Davi From fsimon at UNIVALI.BR Tue Aug 30 13:42:32 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri Feb 8 15:07:59 2008 Subject: oracle x mapserver In-Reply-To: <5c133b890508301020676b6552@mail.gmail.com> Message-ID: Hi Davi, You can do this using Mapscript, creating features on the fly. Here we did this using PHP to query the points (X and Y) in database and used Mapscript to create features from these points. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Davi Duchovni wrote: >please, > >i?m wonder if i can work with mapserver and oracle, not oracle spatial. > >Is there any way to visualize points stores in the base in two columns >diferentes, one represent the X and the other one represent the Y. >Both number are non-spatial. > > >thaks Davi > > > From fwarmerdam at GMAIL.COM Tue Aug 30 13:49:35 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri Feb 8 15:07:59 2008 Subject: oracle x mapserver In-Reply-To: <5c133b890508301020676b6552@mail.gmail.com> Message-ID: On 8/30/05, Davi Duchovni wrote: > please, > > i?m wonder if i can work with mapserver and oracle, not oracle spatial. > > Is there any way to visualize points stores in the base in two columns > diferentes, one represent the X and the other one represent the Y. > Both number are non-spatial. Davi, You could just connect to Oracle by ODBC and use the OGR VRT mechanism to treat the pair of columns as x/y point locations. There is discussion on how to do this in the wiki I believe. You could also use the OGR OCI driver to access a non-spatial oracle table but I think you would need to explicitly list the target table in the datasource since normally only spatial tables are treated as layers. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From duchovni at GMAIL.COM Tue Aug 30 13:54:14 2005 From: duchovni at GMAIL.COM (Davi Duchovni) Date: Fri Feb 8 15:07:59 2008 Subject: oracle x mapserver In-Reply-To: <43149A88.1090702@univali.br> Message-ID: thanks, Fernando!! Here we have never used mapscript, is it difficult??? Is there any other way that the file .map read this information??? thanks On 8/30/05, Fernando Simon wrote: > Hi Davi, > You can do this using Mapscript, creating features on the fly. > Here we did this using PHP to query the points (X and Y) in database > and used Mapscript to create features from these points. > Thanks. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Davi Duchovni wrote: > > >please, > > > >i?m wonder if i can work with mapserver and oracle, not oracle spatial. > > > >Is there any way to visualize points stores in the base in two columns > >diferentes, one represent the X and the other one represent the Y. > >Both number are non-spatial. > > > > > >thaks Davi > > > > > > > > From bartvde at XS4ALL.NL Tue Aug 30 13:56:51 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:07:59 2008 Subject: oracle x mapserver In-Reply-To: <43149A88.1090702@univali.br> Message-ID: Or you could use GDAL/OGR's virtual spatial data. You only need to compile OGR against the OCI libraries. http://www.gdal.org/ogr/drv_vrt.html Best regards, Bart On Tue, 30 Aug 2005 19:42:32 +0200, Fernando Simon wrote: > Hi Davi, > You can do this using Mapscript, creating features on the fly. > Here we did this using PHP to query the points (X and Y) in database > and used Mapscript to create features from these points. > Thanks. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Davi Duchovni wrote: > >> please, i?m wonder if i can work with mapserver and oracle, not oracle >> spatial. >> >> Is there any way to visualize points stores in the base in two columns >> diferentes, one represent the X and the other one represent the Y. >> Both number are non-spatial. >> >> >> thaks Davi >> >> > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From fsimon at UNIVALI.BR Tue Aug 30 13:59:00 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri Feb 8 15:07:59 2008 Subject: oracle x mapserver In-Reply-To: <5c133b890508301054f4601bd@mail.gmail.com> Message-ID: Hi Davi, My mistake, I forgot to add the hint to OGR, in your case I believe that is the best way. Thanks. Fernando Simon Davi Duchovni wrote: >thanks, Fernando!! > >Here we have never used mapscript, is it difficult??? > >Is there any other way that the file .map read this information??? > >thanks > >On 8/30/05, Fernando Simon wrote: > > >>Hi Davi, >> You can do this using Mapscript, creating features on the fly. >> Here we did this using PHP to query the points (X and Y) in database >>and used Mapscript to create features from these points. >> Thanks. >> >>------------------------------------------------------------------------ >>Fernando Simon >>Mapserver and Oracle Spatial developer >>G10 - Laboratorio de Computacao Aplicada - Brazil >>http://www.univali.br/g10 - UNIVALI/CTTMAR >>------------------------------------------------------------------------ >> >> >>Davi Duchovni wrote: >> >> >> >>>please, >>> >>>i?m wonder if i can work with mapserver and oracle, not oracle spatial. >>> >>>Is there any way to visualize points stores in the base in two columns >>>diferentes, one represent the X and the other one represent the Y. >>>Both number are non-spatial. >>> >>> >>>thaks Davi >>> >>> >>> >>> >>> >> >> > > > From kenlord at GMAIL.COM Tue Aug 30 14:04:38 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri Feb 8 15:07:59 2008 Subject: WMS and ArcGIS In-Reply-To: <20050830171415.GA13942@mrcc.com> Message-ID: Hi Gary, Usually the issue is due to the size of the image being requested by ArcGIS. MapServer by default can create no bigger than a 2500x2500 pixel image, so it is easy to exceed the size in a large ArcGIS map, or a small ArcGIS map with high resolution, and have nothing rendered. Try zooming in to a small area to see if it makes a difference. Also try changing your print settings ... it seems that the resolution in your print settings will affect it, a 600dpi print resolution will request more than mapserver can send and only cover about 4inches of paper. ... This got me for a long time, i was able to see the WMS layers, but not print them. ArcGIS isn't smart enough to request multiple tiles when it hits this problem, and ESRI has quietly buried the problem, last I checked I could find nothing about it on their support / forum pages. On one occasion I went through the pain of using the temp images from my mapserver website, importing them one by one to ArcGIS to get around the problem. Cheers, Ken Lord On 8/30/05, Gary Sherman wrote: > > Has anyone successfully displayed a MapServer WMS in ArcGIS 9.x? I am > able to add the service to ArcMap. The list of layers shows up and I can > zoom to the extent of a layer, however nothing is ever rendered. > > -gary > -------------------------- > Gary Sherman > http://qgis.org > http://mrcc.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/3b83c98e/attachment.html From bob.basques at CI.STPAUL.MN.US Tue Aug 30 15:14:40 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri Feb 8 15:07:59 2008 Subject: Mapserver and Oracle Forms Message-ID: All, General question about using MapServer (CGI) with Oracle Forms. Anyone else done any work with this? Specifically We're building a point Editor, moving the point and changing the Point attribute info. What I'm looking for is clues to adding in the CGI parameters to the Oracle Forms output and handling the persistance between views. I've always done my own CGI app's directly against Oracle, this is a new venture for me. The Attribute data is already acessible from the Oracle Forms interface, we would like to add in a Spatial aspect to the Web Interface. Thanks for any info. bobb From szekeres.tamas at FREEMAIL.HU Tue Aug 30 16:52:50 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri Feb 8 15:07:59 2008 Subject: More questions about legend Message-ID: Hi list, I've met with 3 more effects using embedded legend with ms 4.6.0 1. Items with the same color as legend IMAGECOLOR is displayed as transparent. 2. Items that have no features drawn in the map are displayed with no legend image 3. Annotations are displayed above the legend even if TRANSPARENT is OFF Is this behaviour expected or not? Best Regards Tamas Szekeres From tkirstine at JDBARNES.COM Tue Aug 30 17:01:20 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Fri Feb 8 15:07:59 2008 Subject: outputformat for printing Message-ID: Could anyone recommend the optimal outputformat for printing. Currently we're using jpg's but the images are rather grainy when printed. Travis Kirstine From matt0177 at GMAIL.COM Tue Aug 30 17:06:15 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Fri Feb 8 15:07:59 2008 Subject: outputformat for printing In-Reply-To: Message-ID: PNG24 works the best for me, that is also what I have my output format set at. Matt Edmondson On 8/30/05, Travis Kirstine GIS Tech wrote: > > Could anyone recommend the optimal outputformat for printing. Currently > we're using jpg's but the images are rather grainy when printed. > > Travis Kirstine > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/67d8c25f/attachment.html From miller_joseph at BAH.COM Tue Aug 30 17:30:38 2005 From: miller_joseph at BAH.COM (Miller Joseph) Date: Fri Feb 8 15:07:59 2008 Subject: Mode browse works but mode map and wms server do not? Message-ID: Problem: Mapserver 4.6 on IIS 6 (Windows 2003 Server)works in browse mode but when I need it to stream png files, either in mode=map or as a wms server, the browser only shows a broken link. In addition, the streamed output jpg files look extremely distorted, but it's definitely not a projection issue. (BTW, I had exactly the same issues with Apache on this machine) I have built mapserver 4.6 with the following capabilities: MapServer version 4.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=P ROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVE R SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI INPUT=SDE INPUT=OGR I NPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG My map file is below(the urls,username, and password have been altered): MAP NAME GISR STATUS ON UNITS DD IMAGETYPE PNG24 EXTENT -179 -90 179 83 Size 400 300 IMAGECOLOR 255 255 255 SHAPEPATH "d:\mapserver\" WEB LOG "d:\mapserver\logmapserver.txt" IMAGEPATH "d:\mapserver\" IMAGEURL "http://myserver.com/mapserver/" TEMPLATE "d:\mapserver\test1.htm" METADATA "wms_title" "GISR WMS Server" "wms_onlineresource" "http://myserver.com/mapserver/mapserv.exe?map=test1.map&" "wms_srs" "EPSG:4326" END # of metadata END # of Web PROJECTION "init=epsg:4326" END # of projection LAYER NAME World_Countries METADATA "wms_title" "World_Countries" END #of metadata TYPE POLYGON STATUS DEFAULT CONNECTION "10.0.0.19,port:5151,sde,username,password" CONNECTIONTYPE SDE DATA "ACSIM.CNTRY02,SHAPE,SDE.DEFAULT" PROJECTION "init=epsg:4326" END #of projection CLASS NAME "The Upper Great Lakes States" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END #of style END #of class END #of first sde layer END #of MAP Any ideas? Joe Miller From armin.burger at GMX.NET Tue Aug 30 18:10:30 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Fri Feb 8 15:07:59 2008 Subject: WMS and ArcGIS In-Reply-To: <20050830171415.GA13942@mrcc.com> Message-ID: Gary, I would recommend having a look at the web server log. You can see the request ArcGIS sent to the server and run the same request in a browser and see if you get an image back. In some test we made ArcGIS 9 SP 3 was able to retrieve the data from a Mapserver WMS. One problem that might occur is that ArcGIS by defalt wants to load the data in lat/lon. But you can modify the projection and select one of the advertised by the server once the layer is loaded in ArcMap. Armin Gary Sherman wrote: > Has anyone successfully displayed a MapServer WMS in ArcGIS 9.x? I am > able to add the service to ArcMap. The list of layers shows up and I can > zoom to the extent of a layer, however nothing is ever rendered. > > -gary > -------------------------- > Gary Sherman > http://qgis.org > http://mrcc.com > > From mapserver at DANA.ORG.UK Tue Aug 30 19:21:16 2005 From: mapserver at DANA.ORG.UK (Neil Hillard) Date: Fri Feb 8 15:07:59 2008 Subject: Best map editting tool... Message-ID: Hi, I've just started to look at MapServer in conjunction with ka-map and I'm impressed by what I've seen. I'm looking to create a map of our factory site and need some advice as to the best software to create the map. I have a raster drawing of the site that I'd like to take and draw a proper map on top of this and then lose the raster image. I'd need to create roads and buildings. I've been searching around in Google and haven't come up with anything yet. Does anyone know of a product that will do what I require? (Open Source preferred). Many thanks in advance, Neil. From gsw at GLOBEXPLORER.COM Tue Aug 30 19:41:43 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri Feb 8 15:07:59 2008 Subject: Best map editting tool... Message-ID: The JUMP (Java Unified Mapping Platform) ( allows you to load a vector image and draw point, lines and polygons on it, saving the results in shape files, postGIS and several other options. I'm sure theree are others, but I've used JUMP happily and it is reasonably cross platform. Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of Neil Hillard Sent: Tue 8/30/2005 4:21 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Best map editting tool... Hi, I've just started to look at MapServer in conjunction with ka-map and I'm impressed by what I've seen. I'm looking to create a map of our factory site and need some advice as to the best software to create the map. I have a raster drawing of the site that I'd like to take and draw a proper map on top of this and then lose the raster image. I'd need to create roads and buildings. I've been searching around in Google and haven't come up with anything yet. Does anyone know of a product that will do what I require? (Open Source preferred). Many thanks in advance, Neil. !DSPAM:4314ec5a101311559575213! From perrygeo at GMAIL.COM Tue Aug 30 19:42:44 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri Feb 8 15:07:59 2008 Subject: Best map editting tool... In-Reply-To: Message-ID: Neil, On 8/30/05, Neil Hillard wrote: > > I have a raster drawing of the site that I'd like to take and draw a > proper > map on top of this and then lose the raster image. I'd need to create > roads > and buildings. > I have found JUMP to be the best open vector editing tool available. There are lots of versions out there but I use the nightly snapshot of OpenJUMP ( http://openjump.org/wiki/show/HomePage). Unfortunately it doesn't have great raster support but I usually set up my raster image as a WMS using mapserver then use JUMP's WMS connector to bring it in as a base map to digitize from. There are other desktop GIS applications like QGis, OpenEV (search Google for FWTools), or UDig which also edit vector data but not nearly as well. OpenEV is probably my second choice it's a bit clunky but powerful and has great raster support so you can cut out the step of setting up the WMS first. Hope this helps, -- Matt Perry perrygeo@gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/25551e50/attachment.html From mapserver at DANA.ORG.UK Tue Aug 30 20:02:58 2005 From: mapserver at DANA.ORG.UK (Neil Hillard) Date: Fri Feb 8 15:07:59 2008 Subject: Best map editting tool... Message-ID: Thanks very much for those suggestions. I'll be giving JUMP a go later on today. Thanks once again, Neil. From rparsons at TAPPUBLISHING.COM Tue Aug 30 21:05:34 2005 From: rparsons at TAPPUBLISHING.COM (Rob Parsons) Date: Fri Feb 8 15:07:59 2008 Subject: Problem with Perl script and image maps Message-ID: In case anyone is interested, I did solve this mystery. After spending a couple of hours with gdb and examining the source, I tracked the Segmentation fault down to a realloc() instruction in the im_iprintf() function located in the mapimagemap.c file. This function appends new output onto the original string, allocating memory as necessary to accommodate the growth of the output. The SIGSEGV was occuring when memory needed to be reallocated, indicating that something was writing into non-allocated space. The source contains a compiler directive that checks for a #DEFINE that indicates the availability of a vsnprintf() command on the local platform. If it's not available, then the vsprintf() command is used instead. The difference between these two commands is that vsnprintf() has a safety stop that will end processing at a given number of bytes. vsprintf() has no such mechanism. It took me a while to find because I knew that my Debian Linux platform had vsnprintf(). Unfortunately, the Mapserver 'configure' script does not seem to contain a way to properly detect vsnprintf() and therefore the vsprintf() command was being used instead. This command has no safety stop and there was nothing in the code to prevent it from writing a few bytes past the end of allocated memory. In this state, executing this code on any platform that doesn't have vsprintf() will result in SIGSEGVs at best and corrupted memory at worst. This problem affects not only Mapscript code, but SHP2IMG and others as well. Fortunately there is an easy fix. If you know for sure that your platform has vsnprintf() available, then you can SET and EXPORT "CFLAGS=- DHAVE_VSNPRINTF" before invoking the 'configure' script. Alternately, or if you don't know whether vsnprintf() is available, you can edit the configure.in file and add the following line in the appropriate place: AC_CHECK_FUNC(vsnprintf, STRINGS="-DHAVE_VSNPRINTF $STRINGS") After editing the file, run the autoconf utility to build a new 'configure' script. Either of those solutions should fix this problem on affected platforms. - Rob Parsons From lfilak at MEDINACO.ORG Tue Aug 30 21:48:22 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri Feb 8 15:07:59 2008 Subject: Problem with Perl script and image maps Message-ID: The following message was sent by Rob Parsons on Tue, 30 Aug 2005 20:05:34 -0500. > In case anyone is interested, I did solve this mystery. > > After spending a couple of hours with gdb and examining the source, I > tracked the Segmentation fault down to a realloc() instruction in the > im_iprintf() function located in the mapimagemap.c file. This function > appends new output onto the original string, allocating memory as > necessary to accommodate the growth of the output. The SIGSEGV was > occuring when memory needed to be reallocated, indicating that something > was writing into non-allocated space. > > The source contains a compiler directive that checks for a #DEFINE that > indicates the availability of a vsnprintf() command on the local platform. > If it's not available, then the vsprintf() command is used instead. The > difference between these two commands is that vsnprintf() has a safety > stop that will end processing at a given number of bytes. vsprintf() has > no such mechanism. It took me a while to find because I knew that my > Debian Linux platform had vsnprintf(). Unfortunately, the > Mapserver 'configure' script does not seem to contain a way to properly > detect vsnprintf() and therefore the vsprintf() command was being used > instead. This command has no safety stop and there was nothing in the code > to prevent it from writing a few bytes past the end of allocated memory. > In this state, executing this code on any platform that doesn't have > vsprintf() will result in SIGSEGVs at best and corrupted memory at worst. > > This problem affects not only Mapscript code, but SHP2IMG and others as > well. Fortunately there is an easy fix. If you know for sure that your > platform has vsnprintf() available, then you can SET and EXPORT "CFLAGS=- > DHAVE_VSNPRINTF" before invoking the 'configure' script. Alternately, or > if you don't know whether vsnprintf() is available, you can edit the > configure.in file and add the following line in the appropriate place: > > AC_CHECK_FUNC(vsnprintf, STRINGS="-DHAVE_VSNPRINTF $STRINGS") > > After editing the file, run the autoconf utility to build a > new 'configure' script. Either of those solutions should fix this problem > on affected platforms. Rob, I beleive this needs to be filed as a bug. Can you add this to bugzilla? Lowell From thip at AIT.AC.TH Tue Aug 30 22:03:48 2005 From: thip at AIT.AC.TH (Thip) Date: Fri Feb 8 15:07:59 2008 Subject: postgis (INTERSECTION) Message-ID: Dear all, I need to create one layer on fly using intersection. (Layer name are twy_sec and twy_su, new layer name is twy_intersection) SO I write down in the map file which is not working. Does anyone have suggestion? LAYER CONNECTIONTYPE postgis CONNECTION "user=postgres password=pt dbname=apms host=localhost" DATA "intersection(twy_sec.the_geom, twy_su.the_geom) from twy_sec, twy_su as foo using gid using SRID=-1" NAME twy_intersection TYPE POLYGON STATUS ON # CLASSITEM "layer" #LABELITEM "no_id" #LABELMINSCALE 3000 LABELMAXSCALE 10000 TEMPLATE twy_su.html Do I have to put classitem? Thanks in advance. Thip -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050831/fe71df08/attachment.html From cavallini at FAUNALIA.IT Wed Aug 31 02:11:04 2005 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri Feb 8 15:07:59 2008 Subject: Best map editting tool... In-Reply-To: Message-ID: we use qgis as a frontend to grass, and it works very well. It produces clean topological vectors (no dangles etc). pc At 02:02, mercoled? 31 agosto 2005, Neil Hillard has probably written: > Thanks very much for those suggestions. I'll be giving JUMP a go later on > today. > > Thanks once again, > > > Neil. -- Paolo Cavallini cavallini@faunalia.it cavallini@jabber.org www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050831/32692fce/attachment.bin From perrygeo at GMAIL.COM Wed Aug 31 02:56:02 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri Feb 8 15:07:59 2008 Subject: postgis (INTERSECTION) In-Reply-To: <001401c5add0$39ee79a0$4f1d9fcb@acrors.ait.ac.th> Message-ID: Thip, On 8/30/05, Thip wrote: I need to create one layer on fly using intersection. (Layer name are twy_sec and twy_su, new layer name is twy_intersection) SO I write down in the map file which is not working. Does anyone have suggestion? At the minimum you'll need to include a CLASS item in your LAYER. CLASS COLOR 255 0 0 OUTLINECOLOR 0 0 0 END In addition you might want to check the postgis connection string. Three things that jump out at me are that 1) you must use "using UNIQUE gid" 2) you should probably rewrite it as nested selects like "SELECT geom from (SELECT intersect(...) as geom from ...) as table using unique gid using srid = -1" 3) be forewarned that intersections in postgis can be painfully slow. Depending on your users need and the size of the table, it may be worth it to pre-process this data if speed is a factor. Also remember to put indexes on the gid column, and gist indexes on geom. Check out the postgis docs for more details - http://postgis.refractions.net/docs/ Hope this helps, -- Matt Perry perrygeo@gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/7cb11f0b/attachment.html From perrygeo at GMAIL.COM Wed Aug 31 04:40:08 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri Feb 8 15:07:59 2008 Subject: postgis (INTERSECTION) In-Reply-To: <002a01c5ae01$8ff007c0$4f1d9fcb@acrors.ait.ac.th> Message-ID: Thip, On 8/31/05, Thip wrote: > > DATA " select intersection (twy_sec.the_geom, twy_su.the_geom) using > unique gid using SRID=-1" > Check this DATA statement against the example in the postgis docs. You may have to rewrite it a bit. http://postgis.refractions.net/docs/ch04.html#id2512784 -- Matt Perry perrygeo@gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050831/3474f7af/attachment.html From crazygecko at GMAIL.COM Wed Aug 31 04:35:04 2005 From: crazygecko at GMAIL.COM (Xin) Date: Fri Feb 8 15:07:59 2008 Subject: Installation Problem In-Reply-To: Message-ID: Hi Philippe, What problems are you having exactly? More details about your system and whatever error messages are produced will enable people to help you more. Here's a couple of things I've found. Go to rpmfind.net and do a search for mapserver. The latest version found is 4.2, slightly outdated but good to play around with. Also there's http://mapserver.gis.umn.edu/doc/unix-install-howto.html if you fancy compiling it yourself. Hope these helps. Cheers, Xin On 26/08/05, Philippe Gr?goire wrote: > > Hi > > I am having a problem installing MapServer on my Mandrake system. I know > there is supposed to be step by step installation for this particular > system > but I can't find it. Can I have a link to that documentation please? > > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050831/765b4ffb/attachment.html From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 31 04:58:45 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:59 2008 Subject: Sat-picture - no colors!? In-Reply-To: <431445A1.9080003@webgis.de> Message-ID: hi, My sat-picture has about 16,7 Mio colors but in the client only about 256 grew-colors. I tried to change PNG to PNG24, but it's still b/w. When I change IMAGEMODE PC256 to MAGEMODE "png24" or IMAGEMODE png24 my GetCapabilitiesRequest isn't accepted any more. Some other idea to get the colors displayed. best regards - Leopold The map-file: MAP NAME "mmp_wms" STATUS ON EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034 SIZE 800 600 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGECOLOR 255 255 226 UNITS METERS WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "WMS_SRS" "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467" "wms_title" "Centrope WMS sat Viertel NW" "wms_abstract" "Satellitenbild Centrope Region - Viertel NW" END END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:31287" END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP FONT "fritqat-italic" SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png24" MIMETYPE "image/png24" DRIVER "GD/PNG24" EXTENSION "png24" IMAGEMODE PC256 TRANSPARENT OFF END LAYER NAME "Centrope_Viertel_NW" STATUS ON DATA "testausschnitt_viertel.tif" TYPE RASTER UNITS METERS SIZEUNITS PIXELS MINSCALE 1 MAXSCALE 100000000 TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_title" "Centrope_Viertel_NW" "DESCRIPTION" "Centrope_Viertel_NW" "WMS_SRS" "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467" END CLASS NAME "Centrope_Viertel_NW" STYLE SYMBOL 0 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END END -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]Im Auftrag von Michael Schulz Gesendet: Dienstag, 30. August 2005 13:40 An: MAPSERVER-USERS@LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] 3 little Questions Hi Leopold, Q1: you will need to use a style that uses a vector symbol, e.g. SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END then you can use the SIZE parameter in the mapfile on that symbol. Q2: Are you sre mapserver finds your shapefile in ./data? Did you try to use an absolute path to your data directory? Q3: Not sure, but did you try using a 24-bit output format, e.g. png24 ? Cheers, Michael Leopold Schefcik (MULTIMEDIAPLAN.AT) schrieb: > > Hi list, > > Question 1 (of 3): > maybe a simple question: How in general can I change the width of a > line(vectordata)? > > Maybe not with 'SIZE' because regardless of which SIZE 1 or SIZE 50 or SIZE > 100 there is allways a fine line. > > CLASS > NAME "XC_Rivers" > STYLE > SYMBOL 0 > COLOR 72 0 254 > SIZE 100 > MINSIZE 1 > MAXSIZE 100 > END > END > > --------------------------------------- > Question 2 (of 3): > I'd like to show a layer (polygones) with the population density in 5 clases > (in different colors). > > I made the map file like in centrope_wms_bevdichte_2.map in the attachement > is shown. e.g. with this: > > CLASS # Low Density > MAXSCALE 120000 > MINSCALE 500 > EXPRESSION ([Bev_class]=1) #if it is a string ('[FIELD]'='value') > SYMBOL 1 > COLOR 248 147 147 > SIZE 1 > END > > CLASS # High Density > MAXSCALE 120000 > MINSCALE 500 > EXPRESSION ([Bev_class]=2) > SYMBOL 1 > COLOR 249 36 36 > SIZE 1 > END > > But I only get this message: > msDrawMap():Failed to draw layer named `Bev_Density'. > > Someone has an idea about this? > -------------------------------------------- > > Question 3 (of 3): > I have a satellite tif for my background. It is in color. But in my client > it is only shown in black and white. > > Do I have to change some command line here? > (map file for satellite picture is also in attachement: > centrope_wms_sat.map) > > --------------------------------------------- > > Thanks a lot for everybody, who is trying to help me here a little bit. > > Best regards, > Leopold > > > > -- ----------------------------------------------------------- Michael Schulz mschulz@webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 Tel +49 (0)761 556959-5 79108 Freiburg Fax +49 (0)761 556959-6 www.webgis.de / www.zopecms.de ----------------------------------------------------------- NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU ----------------------------------------------------------- From nhv at CAPE.COM Wed Aug 31 05:38:21 2005 From: nhv at CAPE.COM (Norman Vine) Date: Fri Feb 8 15:07:59 2008 Subject: Sat-picture - no colors!? In-Reply-To: Message-ID: Leopold Schefcik writes > > My sat-picture has about 16,7 Mio colors but in the client only about 256 > grew-colors. > > I tried to change PNG to PNG24, but it's still b/w. > > When I change IMAGEMODE PC256 to MAGEMODE "png24" or IMAGEMODE png24 my > GetCapabilitiesRequest isn't accepted any more. > > Some other idea to get the colors displayed. Try one of these for your output format OUTPUTFORMAT NAME "png24" MIMETYPE "image/png24" DRIVER "GD/PNG24" EXTENSION "png" IMAGEMODE RGB # TRANSPARENT OFF END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" # TRANSPARENT OFF END HTH Norman From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 31 05:54:21 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:59 2008 Subject: AW: Sat-picture - no colors!? [2] In-Reply-To: Message-ID: Thank you for your efforts, Norman! I tried both versions, but its still b/w. Do you have an other idea? Best regards, Leopold -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]Im Auftrag von Norman Vine Gesendet: Mittwoch, 31. August 2005 11:38 An: MAPSERVER-USERS@LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Sat-picture - no colors!? Leopold Schefcik writes > > My sat-picture has about 16,7 Mio colors but in the client only about 256 > grew-colors. > > I tried to change PNG to PNG24, but it's still b/w. > > When I change IMAGEMODE PC256 to MAGEMODE "png24" or IMAGEMODE png24 my > GetCapabilitiesRequest isn't accepted any more. > > Some other idea to get the colors displayed. Try one of these for your output format OUTPUTFORMAT NAME "png24" MIMETYPE "image/png24" DRIVER "GD/PNG24" EXTENSION "png" IMAGEMODE RGB # TRANSPARENT OFF END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" # TRANSPARENT OFF END HTH Norman From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Aug 31 05:55:44 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Fri Feb 8 15:07:59 2008 Subject: signature In-Reply-To: Message-ID: hi list, how can I get a signature (e.g. for streets) in my map? best regards, Leopold From pauljame at GMAIL.COM Wed Aug 31 08:20:16 2005 From: pauljame at GMAIL.COM (Paul james) Date: Fri Feb 8 15:07:59 2008 Subject: zoomRectangle problem... In-Reply-To: <33fad68805083007223fcfbbab@mail.gmail.com> Message-ID: No one can help-me? Ps.: The "extent" object is the map?s extent ... ---------- Forwarded message ---------- From: Paul james Date: Aug 30, 2005 11:22 AM Subject: zoomRectangle problem... To: MAPSERVER-USERS@lists.umn.edu Hi... My zoom box: rectObj rec = new rectObj(127,156,362,351,0); My map extent: rectObj extent = new rectObj(-79.67662,-34.2426, -24.5421, 6.87629, 0); and I called the zoomrect function: map.zoomRectangle(rec,map.width,map.height,extent,null); But I got the error: *Georeferenced coordinates miny <= maxy* Any ideas? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050831/e1beab9d/attachment.html From wesp at GDV.COM Wed Aug 31 08:42:03 2005 From: wesp at GDV.COM (Oliver Wesp) Date: Fri Feb 8 15:07:59 2008 Subject: zoomRectangle problem... In-Reply-To: <33fad68805083105202f4d32b1@mail.gmail.com> Message-ID: Hello Paul, I struggled with the exact same issue. Seems to be a problem with the different orientation of coordinate systems wether it's world coordinates or image coordinates. Try changing miny and maxy in your rec object. Something like double minY = rec.getMiny(); double maxY = rec.getMaxy(); rec.setMaxy(minY); rec.setMiny(maxY); That did the trick for me. Oliver Paul james schrieb: > > No one can help-me? > > Ps.: The "extent" object is the map?s extent ... > > ---------- Forwarded message ---------- > From: *Paul james* > > Date: Aug 30, 2005 11:22 AM > Subject: zoomRectangle problem... > To: MAPSERVER-USERS@lists.umn.edu > > > Hi... > My zoom box: > rectObj rec = new rectObj(127,156,362,351,0); > My map extent: > rectObj extent = new rectObj(-79.67662,-34.2426, -24.5421, 6.87629, 0); > > and I called the zoomrect function: > > map.zoomRectangle(rec,map.width,map.height,extent,null); > > But I got the error: > /Georeferenced coordinates miny <= maxy/ > > Any ideas? > > Thank you -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From Debbie.Pagurek at EC.GC.CA Wed Aug 31 09:15:03 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri Feb 8 15:07:59 2008 Subject: Mode browse works but mode map and wms server do not? Message-ID: You might be getting a broken link because IIS doesn't have permissions to write to the appropriate directories. Does d:\mapserver\ have write permissions? Can the IUSR guest account write to that directory? Is that directory mapped properly so it can be accessed at "http://myserver.com/mapserver/"? As for the distortion, It could be that you've set your extents as -179 -90 179 83 but you're forcing your map size to be 400x300, when really it should be 400x193 if you want to keep xy aspect correct. I haven't tested this but this is what I suspect might be happening. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Miller Joseph Sent: Tuesday, August 30, 2005 5:31 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mode browse works but mode map and wms server do not? Problem: Mapserver 4.6 on IIS 6 (Windows 2003 Server)works in browse mode but when I need it to stream png files, either in mode=map or as a wms server, the browser only shows a broken link. In addition, the streamed output jpg files look extremely distorted, but it's definitely not a projection issue. (BTW, I had exactly the same issues with Apache on this machine) I have built mapserver 4.6 with the following capabilities: MapServer version 4.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=P ROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVE R SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI INPUT=SDE INPUT=OGR I NPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG My map file is below(the urls,username, and password have been altered): MAP NAME GISR STATUS ON UNITS DD IMAGETYPE PNG24 EXTENT -179 -90 179 83 Size 400 300 IMAGECOLOR 255 255 255 SHAPEPATH "d:\mapserver\" WEB LOG "d:\mapserver\logmapserver.txt" IMAGEPATH "d:\mapserver\" IMAGEURL "http://myserver.com/mapserver/" TEMPLATE "d:\mapserver\test1.htm" METADATA "wms_title" "GISR WMS Server" "wms_onlineresource" "http://myserver.com/mapserver/mapserv.exe?map=test1.map&" "wms_srs" "EPSG:4326" END # of metadata END # of Web PROJECTION "init=epsg:4326" END # of projection LAYER NAME World_Countries METADATA "wms_title" "World_Countries" END #of metadata TYPE POLYGON STATUS DEFAULT CONNECTION "10.0.0.19,port:5151,sde,username,password" CONNECTIONTYPE SDE DATA "ACSIM.CNTRY02,SHAPE,SDE.DEFAULT" PROJECTION "init=epsg:4326" END #of projection CLASS NAME "The Upper Great Lakes States" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END #of style END #of class END #of first sde layer END #of MAP Any ideas? Joe Miller From ed at TOPOZONE.COM Wed Aug 31 09:32:08 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri Feb 8 15:07:59 2008 Subject: WMS and ArcGIS Message-ID: Gary - Yes, we've been providing WMS layers to ArcGIS 9.x without problems. There are a few little quirks of ArcGIS usage, but they shouldn't affect your ability to get something displayed. Exactly what version of ArcGIS are you using? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Gary Sherman Sent: Tuesday, August 30, 2005 1:14 PM To: MAPSERVER-USERS@LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS and ArcGIS Has anyone successfully displayed a MapServer WMS in ArcGIS 9.x? I am able to add the service to ArcMap. The list of layers shows up and I can zoom to the extent of a layer, however nothing is ever rendered. -gary -------------------------- Gary Sherman http://qgis.org http://mrcc.com From David.Fawcett at STATE.MN.US Wed Aug 31 09:47:30 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri Feb 8 15:07:59 2008 Subject: Installation Problem Message-ID: The FGS Linux installer by DM Solutions makes it quite easy to get MapServer and other opensource GIS tools installed on a Linux machine. http://www.maptools.org/fgs/ David. -----Original Message----- From: UMN MapServer Users List on behalf of Xin Sent: Wed 8/31/2005 3:35 AM To: MAPSERVER-USERS@LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] Installation Problem Hi Philippe, What problems are you having exactly? More details about your system and whatever error messages are produced will enable people to help you more. Here's a couple of things I've found. Go to rpmfind.net and do a search for mapserver. The latest version found is 4.2, slightly outdated but good to play around with. Also there's http://mapserver.gis.umn.edu/doc/unix-install-howto.html if you fancy compiling it yourself. Hope these helps. Cheers, Xin On 26/08/05, Philippe Gr?goire wrote: > > Hi > > I am having a problem installing MapServer on my Mandrake system. I know > there is supposed to be step by step installation for this particular > system > but I can't find it. Can I have a link to that documentation please? > > Thanks > From tibben at OCF.BERKELEY.EDU Wed Aug 31 09:55:39 2005 From: tibben at OCF.BERKELEY.EDU (Tim Norris) Date: Fri Feb 8 15:07:59 2008 Subject: layer->queryByFeatures strangeness Message-ID: Hi All did anyone get a chance to look at this?? thanks - tim >Hi all > >I have discovered a strange difference between mapServer 4.4.2 and mapServer >4.6.0. - particularly with the $layer->queryByFeatures() method under >PHP/Mapscript. > >Currently I have two machines configured as below > >Machine #1 >Fedora Core 3 >PHP 5.0.3 :: './configure' '--enable-shared' '--with-regex=system' >'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib' >'--with-gd=/usr/local' '--with-freetype-dir=/usr' >'--enable-force-cgi-redirect' '--enable-dbase' '--with-pdflib' >'--with-mysql' '--with-config-file-path=/usr/local/php/' >'--prefix=/usr/local/php' >MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL >INPUT=SHAPEFILE > >Machine #2 >Fedora Core 4 >PHP 5.0.3 :: './configure' '--enable-shared' '--with-regex-system' >'--with-png-dir=/usr' '--with-zlib' '--with-gd=/usr/local' >'--with-freetype-dir=/usr' '--enable-force-cgi-redirect' '--enable-dbase' >'--with-pdflib' '--with-mysql' '--with-config-file-path=/usr/local/php/' >'--prefix=/usr/local/php' >MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG >SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >SUPPORTS=WFS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL >INPUT=SHAPEFILE > >There is no relevant part of the map file - both layers that are relevant >are dynamically loaded depending on the request. > >The relevant script is as follows (PHP): > >// this is a dynamically loaded point layer - MapInfo format >$lyr_currentLink = ms_newLayerObj($ms_map); >$lyr_currentLink->set('name',$my_link_name); >$lyr_currentLink->set('type',MS_LAYER_POINT); >$lyr_currentLink->set('status',MS_ON); >$lyr_currentLink->set('connection',"myLocationData.TAB"); >$lyr_currentLink->set('connectiontype',MS_OGR); >$lyr_currentLink->setProjection("proj=latlong"); >$obj_linkClass = ms_newClassObj($lyr_currentLink); >$obj_linkClass->set('template','NULL'); >// there is more script defining colors etc. . . . > >// this is a dynamically loaded polygon district layer - MapInfo format >$lyr_districts = ms_newLayerObj($ms_map); >$lyr_districts->set('name',$my_districts); >$lyr_districts->set('type',MS_LAYER_POLYGON); >$lyr_districts->set('connection',"myDistricts.TAB"); >$lyr_districts->set('connectiontype',MS_OGR); >$lyr_districts->setProjection("proj=latlong"); >$obj_districtsClass = ms_newClassObj($lyr_districts); >$obj_districtsClass->set('template','NULL'); >// more script defining colors etc. . . . > >// get the correct district based on the request - querying against the >field "DN" with the $my_district_number from the request. >$b_qRes=$lyr_districts->queryByAttributes("DN",$my_district_number,"MS_SINGLE"); >$obj_district = $lyr_districts->getResult(0); >// NOTE: I open the layer and get the feature for drawing later - perhaps >this is part of the problem and there is a better way to draw the particular >district? using the layer->drawQuery() method? would this make a difference? >$lyr_districts->open(); >$ftr_district=$lyr_districts->getShape($obj_district->tileindex,$obj_district->shapeindex); >// then I create a new layer and add the $ftr_district to the new layer with >all of its colors etc. . . . > >// now for the problem query - specificially to count the point data within >the district >$lyr_currentLink->queryByFeatures($lyr_districts->index); >$str_locationCount = $lyr_currentLink->getNumResults(); > >now for the wierdness: on both machines the code executes without error, BUT >on the 4.4.2 version I get the correct number and on the 4.6.0 version I get >an incorrect count (it is way to high). > >As an aside - I have tried using the $layer->queryByShape($ftr_district) >method and keep getting errors (either mapServer crashes entirely with no >visible error message in 4.4.2 or, once again the wrong count in 4.6.0 - >incidentally it is the SAME wrong count) - this includes the reprojection of >the $ftr_district->project($inProj,$outProj) to make sure that there are no >projection problems/conflicts. > >any help on this would be great - I would like to use the 4.6.0 version, but >right now I cannot get it to return the correct result - perhaps a bug??? or >perhaps I am doing something wrong??? > >and another aside - which documentation set is current???? >http://ms.gis.umn.edu/ OR http://mapserver.gis.umn.edu/ >or is >http://ms.gis.umn.edu/ for 4.6.0 and >http://mapserver.gis.umn.edu/ for 4.2.? > >and finally in the mapscript documentation at http://ms.gis.umn.edu/ it >shows using $layer->queryByFeatures as follows: > >queryByFeatures( mapObj map, int slayer ) > >but when I include the mapObj in the parameters I get a "invalid _handle_ >property" error - even on the machine with 4.6.0. Is there some explanation >for this? Could it be related to the previously noted bugs with queries on >dynamically loaded layers? Should I be including the mapObj parameter? It >seems to function (but with the wrong count as noted above) without the >mapObj parameter. > >I will continue to play with this . . . perhaps make the districts layer >part of the map file and see what happens on the 4.6.0 machine. > >thanks >tim > >Tim Norris >UC Industry-University Cooperative Research Program >Berkeley CA From gavin.simpson at UCL.AC.UK Wed Aug 31 10:31:37 2005 From: gavin.simpson at UCL.AC.UK (Gavin Simpson) Date: Fri Feb 8 15:07:59 2008 Subject: mapscript, php, fedora core 4 problem Message-ID: Hi, I moved one of our servers from Fedora Core (FC) 2 to FC4 yesterday. I re-did everything I had done before with the old system to get mapserver/php_mapscript installed and working. I grab a new source tarball, configured it like: ./configure --with-php=/usr/include/php --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-geos=/usr/bin/geos-config -- with-proj and then compiled with make. I moved mapserv and php_mapscript.so to the required places and convinced php to load the .so, and then convinced apache to send .phpms files via the php cgi by adding some directive to httpd.conf pointing these files at cgi-bin/php.sh, which is: #!/bin/bash export SCRIPT_FILENAME=$PATH_TRANSLATED /usr/bin/php and it is no parsing these files. I installed the workshop demo and got it working. I then turned my attention to an existing .phpms file (a php page to draw a simple map and add some points from a MySQL database) that used to work just fine under FC2. When I view this page in my browser I get a 500 error. In the error_log I see: Premature end of script headers: php.sh Which I believe is a problem with my script, so I check this by sending it directly to the php cli - resulting in this error stream: PHP Notice: Undefined index: tool in - on line 87 PHP Warning: [MapServer Error]: msSaveImageGD(): Unable to open file /var/www/html/maps/tmp/112549634051221.gif for writing in - on line 106 PHP Fatal error: Failed writing image to /var/www/html/maps/tmp/112549634051221.gif in - on line 106 The directory that it is trying to open and save to/from is writeable by the httpd daemon as evidence by the workshop demo working correctly - I set the directory to be the same for both applications. I'm surprised by the .gif production, before I got png files - which I prefer - is this the cause of my problems? If anyone can offer any suggestions as to how to proceed? Ps: for other FC4 users, I did not experience any of the SELinux related problems posted earlier in the month using the latest selinux_policy_targeted update. All the best, Gavin -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% From djisgitt at SOUNDENERGY.COM Wed Aug 31 11:35:27 2005 From: djisgitt at SOUNDENERGY.COM (Don Isgitt) Date: Fri Feb 8 15:07:59 2008 Subject: mapserver use of epsg Message-ID: Hi, I am trying to use the mapserver Flash Maps extension, and have managed to compile and link everything (I think.). But when running the demo, i get the following error: msProcessProjection(): Projection library error. no system list, errno: 2 which I assume is because it cannot find the projection data. I have proj-4.4.9. Where does the epsg file belong? The projection that the map file is asking for is in the epsg file. I wandered through the mapserver reference manual, and several other documents, but could not find the answer. Just to try something, I put a copy in the directory with the map file, but no joy. Perhaps some environment variable? Thank you for any help. Don From piero.cavalieri at HEIDI.IT Wed Aug 31 11:48:00 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri Feb 8 15:07:59 2008 Subject: mapserver use of epsg Message-ID: On Win, I have env variable: PROJ_LIB C:\proj\nad and proj is in C: (C:\proj\) P. Don Isgitt ha scritto: > Hi, > > I am trying to use the mapserver Flash Maps extension, and have managed to compile and link everything (I think.). But when running the demo, i get the following error: > > msProcessProjection(): Projection library error. no system list, errno: 2 > > which I assume is because it cannot find the projection data. I have proj-4.4.9. Where does the epsg file belong? The projection that the map file is asking for is in the epsg file. I wandered through the mapserver reference manual, and several other documents, but could not find the answer. Just to try something, I put a copy in the directory with the map file, but no joy. Perhaps some environment variable? > > Thank you for any help. > > Don > From jmckenna at DMSOLUTIONS.CA Wed Aug 31 12:01:36 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri Feb 8 15:07:59 2008 Subject: mapserver use of epsg In-Reply-To: Message-ID: You can also set this variable in the mapfile, with the MAP object's "CONFIG" parameter (http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#map). jeff Piero Cavalieri wrote: > On Win, I have env variable: > PROJ_LIB C:\proj\nad > and proj is in C: (C:\proj\) > > P. > > Don Isgitt ha scritto: > > >>Hi, >> >>I am trying to use the mapserver Flash Maps extension, and have managed to > > compile and link everything (I think.). But when running the demo, i get the > following error: > >>msProcessProjection(): Projection library error. no system list, errno: 2 >> >>which I assume is because it cannot find the projection data. I have > > proj-4.4.9. Where does the epsg file belong? The projection that the map > file is asking for is in the epsg file. I wandered through the mapserver > reference manual, and several other documents, but could not find the > answer. Just to try something, I put a copy in the directory with the map > file, but no joy. Perhaps some environment variable? > >>Thank you for any help. >> >>Don >> > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From nate at SEASTAR.JPL.NASA.GOV Wed Aug 31 12:06:06 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Fri Feb 8 15:07:59 2008 Subject: databases (mysql vs. postgres) Message-ID: I'm wondering how MySql and Postgres compare with regard to MapServer feature support and compatibility. Seems like a lot of MapServer features are designed to work with Postgres. Can someone point me to a comparison or discussion of the databases supported in MapServer? Thanks, Nate -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate@seastar.jpl.nasa.gov From olivieri.leo at TISCALI.IT Wed Aug 31 12:40:46 2005 From: olivieri.leo at TISCALI.IT (Leonardo Globo) Date: Fri Feb 8 15:07:59 2008 Subject: Highlight Features Message-ID: Hello Armin, I also have the same problem. You could send the code to me to highlight entities after having made a query to select entities Thanks in advanced Leo Rob, the easiest way would be using the querymap function like ... // Execute a query (here an attribute query) $queryString =3D3D "('[subdivname]' =3D3D '$sSubDivsion')"; $your_layer->queryByAttributes('subdivname', $queryString, MS_MULTIPLE); // Draw map $mapImg =3D3D $map->drawQuery(); // instead of $map->draw() ... You can specify colors for highlighting in a QUERYMAP tag in the map =3D file. __________________________________________________________________ TISCALI ADSL 1.25 MEGA Solo con Tiscali Adsl navighi senza limiti e telefoni senza canone Telecom a partire da 19,95 Euro/mese. Attivala entro il 31 agosto, il primo MESE ? GRATIS! CLICCA QUI. http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/ From joanne.mcgraw at SYMPATICO.CA Wed Aug 31 12:21:12 2005 From: joanne.mcgraw at SYMPATICO.CA (Joanne Mcgraw) Date: Fri Feb 8 15:07:59 2008 Subject: unknown elliptical parameter name Message-ID: Hello everyone, I have a map with a projection defined in the map file as: PROJECTION "proj=lcc" "lat_1=43.83" "lat_2=59.17" "lon_0=-74" "ellps=clrk66" END The map displays fine in the browser. I am writing some code in which I am trying to reproject a point from the map's projection to lat long. But, in trying to instantiate a new ProjectionObj to act as input I get the following error: Fatal error: [MapServer Error]: msProcessProjection(): unknown elliptical parameter name The code is: $szMapProj = $oMap->getProjection(); // at this point, $szMapProj contains this string: // +proj=lcc +lat_1=43.83 +lat_2=59.17 +lon_0=-74 +ellps=clrk66 $oProjIn = ms_newprojectionobj($szMapProj); Anyone know what's wrong with 'clrk66'? I think I've seen it used in examples, but could be wrong there. And, as it's apparently incorrect, where I can find a list of the the correct identifiers? cheers, jtm From kenlord at GMAIL.COM Wed Aug 31 12:52:16 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri Feb 8 15:08:00 2008 Subject: postgis (INTERSECTION) In-Reply-To: <5383fa5e05083101401a881e1e@mail.gmail.com> Message-ID: Hi Thip, I recommend filling out your SQL statement much more, and using the 'intersection' within a sub-query. Here's an example that uses the 'crosses' test, it returns the features of a polygon table that cross the features of a line table. For my website, it is the data source of a layer that shows forest fire polygons that cross a pipeline, tested on the fly - requiring no pre-processing when new forest fires are added to the dataset. You could modify it for use with 'intersection'. My example checks for an overlap of the bounding boxes of the features before doing the exact 'crosses' test, which speeds up the analysis tremendously. DATA "the_geom FROM (SELECT layer1.* FROM layer1, layer2 WHERE layer1.the_geom && layer2.the_geom AND CROSSES(layer1.the_geom, layer2.the_geom) AS foo USING UNIQUE gid USING SRID=26910" Cheers, Ken Lord Vancouver BC On 8/31/05, Matthew Perry wrote: > > Thip, > > On 8/31/05, Thip wrote: > > > > DATA " select intersection (twy_sec.the_geom, twy_su.the_geom) using > > unique gid using SRID=-1" > > > Check this DATA statement against the example in the postgis docs. You may > have to rewrite it a bit. > > http://postgis.refractions.net/docs/ch04.html#id2512784 > > -- > Matt Perry > perrygeo@gmail.com > http://www.perrygeo.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050831/71c3f409/attachment.html From ale.pas at TISCALI.IT Wed Aug 31 12:21:53 2005 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri Feb 8 15:08:00 2008 Subject: PHP Mapscript: Call to undefined method ms_layer_obj::removeClass() Message-ID: Running $ /var/www/cgi-bin/mapserv -v MapServer version 4.6.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE $ /usr/bin/php -v PHP 5.0.4 (cgi-fcgi) (built: Aug 30 2005 14:25:17) The layer object exists and is correctedly instanciated with numclasses = 4 but I've got the am error. Is this a bug or something wrong with my installation? Regards -- Alessandro Pasotti ICQ# 245871392 Linux User #167502 From bartvde at XS4ALL.NL Wed Aug 31 13:31:09 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri Feb 8 15:08:00 2008 Subject: databases (mysql vs. postgres) In-Reply-To: Message-ID: There should be many emails on this in the archives. Basically, PostGIS is supported well, MySQL spatial extensions are not supported, only a thing called MyGIS which stores the geometries in a WKB or WKT field in MySQL. Mostly for point data (because of performance), OGR's Virtual Spatial Data could be used for MySQL (X and Y column in the database table). Hope this helps. Best regards, Bart On Wed, 31 Aug 2005 18:06:06 +0200, Nate Reed wrote: > I'm wondering how MySql and Postgres compare with regard to MapServer > feature support and compatibility. Seems like a lot of MapServer > features > are designed to work with Postgres. Can someone point me to a comparison > or discussion of the databases supported in MapServer? > > Thanks, > Nate > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From shussain at ATSINCORP.COM Tue Aug 30 09:17:44 2005 From: shussain at ATSINCORP.COM (Shaik A. Hussain) Date: Fri Feb 8 15:08:00 2008 Subject: Mapserver 24bit tiff display problem Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: original.png Type: image/png Size: 552351 bytes Desc: original.png Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/8f429631/original.png -------------- next part -------------- A non-text attachment was scrubbed... Name: demo.map Type: application/octet-stream Size: 2143 bytes Desc: demo.map Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/8f429631/demo.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver returned.png Type: image/png Size: 114251 bytes Desc: mapserver returned.png Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050830/8f429631/mapserverreturned.png From djisgitt at SOUNDENERGY.COM Wed Aug 31 14:15:40 2005 From: djisgitt at SOUNDENERGY.COM (Don Isgitt) Date: Fri Feb 8 15:08:00 2008 Subject: mapserver use of epsg In-Reply-To: <4315D460.9060006@dmsolutions.ca> Message-ID: Jeff McKenna wrote: > You can also set this variable in the mapfile, with the MAP object's > "CONFIG" parameter > (http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#map). > > > jeff > > > > > Piero Cavalieri wrote: > >> On Win, I have env variable: >> PROJ_LIB C:\proj\nad >> and proj is in C: (C:\proj\) >> >> P. >> >> Don Isgitt ha scritto: >> >> >>> Hi, >>> >>> I am trying to use the mapserver Flash Maps extension, and have >>> managed to >> >> >> compile and link everything (I think.). But when running the demo, i >> get the >> following error: >> >>> msProcessProjection(): Projection library error. no system list, >>> errno: 2 >>> >>> which I assume is because it cannot find the projection data. I have >> >> >> proj-4.4.9. Where does the epsg file belong? The projection that >> the map >> file is asking for is in the epsg file. I wandered through the >> mapserver >> reference manual, and several other documents, but could not find the >> answer. Just to try something, I put a copy in the directory with the >> map >> file, but no joy. Perhaps some environment variable? >> >>> Thank you for any help. >>> >>> Don >>> >> >> > > Thank you, Piero and Jeff. Your answers resolved that problem, and > allowed me to get to the next one! Don From perrygeo at GMAIL.COM Wed Aug 31 14:23:39 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri Feb 8 15:08:00 2008 Subject: Mapserver 24bit tiff display problem In-Reply-To: <248491BE875FBE40B765CC47E419144B84F81A@mosespa.ats.atsincorp.com> Message-ID: Shaik, On 8/30/05, Shaik A. Hussain wrote: > > I am having display problems with the Raster (24 bit) data. I am loosing > the display image quality. Please see the attached images and my map file. > Try setting your IMAGETYPE to PNG24 or JPEG. Default PNG output is 8-bit so you'll loose color information. -- Matt Perry perrygeo@gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050831/8e42dcf4/attachment.html From r0ss at SHAW.CA Wed Aug 31 14:31:08 2005 From: r0ss at SHAW.CA (ross s) Date: Fri Feb 8 15:08:00 2008 Subject: LRS ? databases (mysql vs. postgres) Message-ID: Hi, A bit of topic but do either of these database support linear referencing?? Anyone know of any options other than Oracle? Thanks Ross ----- Original Message ----- From: Bart van den Eijnden Date: Wednesday, August 31, 2005 11:31 am Subject: Re: [UMN_MAPSERVER-USERS] databases (mysql vs. postgres) > There should be many emails on this in the archives. > > Basically, PostGIS is supported well, MySQL spatial extensions are > not > supported, only a thing called MyGIS which stores the geometries > in a WKB > or WKT field in MySQL. > > Mostly for point data (because of performance), OGR's Virtual > Spatial Data > could be used for MySQL (X and Y column in the database table). > > Hope this helps. > > Best regards, > Bart > > On Wed, 31 Aug 2005 18:06:06 +0200, Nate Reed > > wrote: > > > I'm wondering how MySql and Postgres compare with regard to > MapServer> feature support and compatibility. Seems like a lot of > MapServer > > features > > are designed to work with Postgres. Can someone point me to a > comparison> or discussion of the databases supported in MapServer? > > > > Thanks, > > Nate > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From chrisg at BIOLOGY.USU.EDU Wed Aug 31 15:06:55 2005 From: chrisg at BIOLOGY.USU.EDU (Chris Garrard) Date: Fri Feb 8 15:08:00 2008 Subject: php mapscript isn't processing query templates correctly Message-ID: Hi, We are in the process of upgrading everything on our server, and so I just upgraded to MapServer 4.6.1 and am trying to get my old PHP MapScript code to run correctly. Unfortunately, the processquerytemplate method doesn't seem to be working right. It works fine if there is no substitution in the template, but as soon as I try to use any sort of substitution (any of the special substitution strings documented or an item in the attribute table) then PHP dies. Nothing shows up in the PHP error log, although I do get an "exit signal Segmentation fault (11)" notice in the Apache error log. The processlegendtemplate method seems to work fine with substitution. And my query templates work fine if I use CGI MapServer. I'm using MapServer 4.6.1 and PHP 4.4.0 on Solaris 10. Thanks, Chris From peter.kingsbury at GMAIL.COM Wed Aug 31 15:39:56 2005 From: peter.kingsbury at GMAIL.COM (Peter Kingsbury) Date: Fri Feb 8 15:08:00 2008 Subject: Legends not updating? Message-ID: Hello all, Grief once again with my legends. The symptom is that, if the Layer status in the .MAP file is set to OFF, the layer doesn't show up ... if set to ON, it shows up. This behavior so far is normal. However, when checking/unchecking layers from the LegendTemplate widget, then clicking Update, the page refreshes, and all layers listed in the LegendTemplate become unchecked! I've gone through the documentation numerous times, and I am unable to find anything that might be wrong with the code. I've also used the sample legend template HTML code, which results in much the same behavior. Not sure where to look at this point. Going to give it a go again tomorrow. I've included the legend_template.html and widget code below. Any insight is appreciated! Best regards, - Peter ---- legend_template.html ---- [leg_group_html] [leg_group_name] [/leg_group_html] [leg_layer_html order_metadata=legend_order opt_flag=15] [leg_layer_name] [/leg_layer_html] ---- end legend_template.html ---- ---- chameleon widget ---- ---- end chameleon widget ---- From woodbri at SWOODBRIDGE.COM Wed Aug 31 15:50:17 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri Feb 8 15:08:00 2008 Subject: 4.6.1 Perl Mapscript compile warning freeBSD Message-ID: Hi all, Compiling ms 4.6.1 Perl mapscript on freeBSD reports mapscript_wrap.c: In function `SWIG_Perl_ConvertPtr': mapscript_wrap.c:515: warning: cast to pointer from integer of different size I have no idea if this a problem or not. Guess I will find out if it crashes while running, but I'm not sure even what to test. ./configure --without-wms --with-postgis=yes --without-tiff --without-eppl --with-gd=/usr/local --with-freetype=/usr/local/bin/freetype-config --with-png=/usr/local --with-libiconv=/usr/local --with-proj=/usr/local -Steve From Ken.Boss at DNR.STATE.MN.US Wed Aug 31 16:22:33 2005 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Fri Feb 8 15:08:00 2008 Subject: Legends not updating? Message-ID: Peter-- It's been awhile since I've thought about this (so take the advice with some salt), but my approach to the checkbox portion of html legends has been more along these lines: HTH, --Ken >>> Peter Kingsbury 8/31/2005 2:39:56 PM >>> Hello all, Grief once again with my legends. The symptom is that, if the Layer status in the .MAP file is set to OFF, the layer doesn't show up ... if set to ON, it shows up. This behavior so far is normal. However, when checking/unchecking layers from the LegendTemplate widget, then clicking Update, the page refreshes, and all layers listed in the LegendTemplate become unchecked! I've gone through the documentation numerous times, and I am unable to find anything that might be wrong with the code. I've also used the sample legend template HTML code, which results in much the same behavior. Not sure where to look at this point. Going to give it a go again tomorrow. I've included the legend_template.html and widget code below. Any insight is appreciated! Best regards, - Peter ---- legend_template.html ---- [leg_group_html] [leg_group_name] [/leg_group_html] [leg_layer_html order_metadata=legend_order opt_flag=15] [leg_layer_name] [/leg_layer_html] ---- end legend_template.html ---- ---- chameleon widget ---- ---- end chameleon widget ---- From Philip.Chau at EC.GC.CA Wed Aug 31 17:21:43 2005 From: Philip.Chau at EC.GC.CA (Chau,Philip [PYR]) Date: Fri Feb 8 15:08:00 2008 Subject: WMS / PNG Problem? Message-ID: All of my local data is displayed without a hitch, however when I start to add WMS data I get this error: msHTTPExecuteRequests(): HTTP request error. Can't open output file c:\temp\ms_tmp\??1.img.tmp. -- Occassionally when I try just to display JUST the mode=map it will "occassionally" display correctly, however, most of the time I get the below error. msDrawMap(): WMS connection error. Failed to draw WMS layer named 'bathymetry'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. EPPL7 support is not available. Any help? Cheers, Phil Philip Chau, PMP Aquatic and Atmospheric Sciences Division Environmental Conservation Branch Environment Canada 201-401 Burrard Street Vancouver, BC V6C 3S5 Tel: 604.664.4066 Fax: 604.664.9126 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050831/4e3b8ba1/attachment.html From joanne.mcgraw at SYMPATICO.CA Wed Aug 31 17:37:05 2005 From: joanne.mcgraw at SYMPATICO.CA (Joanne Mcgraw) Date: Fri Feb 8 15:08:00 2008 Subject: unknown elliptical parameter name Message-ID: I found the list in this archive of the appropriate values and 'clrk66' is listed as a valid name. What else could this error message be referring to? Fatal error: [MapServer Error]: msProcessProjection(): unknown elliptical parameter name Cheers, jtm On Wed, 31 Aug 2005 11:21:12 -0500, Joanne Mcgraw wrote: >Hello everyone, > >I have a map with a projection defined in the map file as: > >PROJECTION > "proj=lcc" > "lat_1=43.83" > "lat_2=59.17" > "lon_0=-74" > "ellps=clrk66" >END > >The map displays fine in the browser. > >I am writing some code in which I am trying to reproject a point from the >map's projection to lat long. But, in trying to instantiate a new >ProjectionObj to act as input I get the following error: > >Fatal error: [MapServer Error]: msProcessProjection(): unknown elliptical >parameter name > >The code is: > >$szMapProj = $oMap->getProjection(); >// at this point, $szMapProj contains this string: >// +proj=lcc +lat_1=43.83 +lat_2=59.17 +lon_0=-74 +ellps=clrk66 >$oProjIn = ms_newprojectionobj($szMapProj); > >Anyone know what's wrong with 'clrk66'? I think I've seen it used in >examples, but could be wrong there. And, as it's apparently incorrect, >where I can find a list of the the correct identifiers? > >cheers, >jtm From steve_benzo at YAHOO.COM Wed Aug 31 17:55:41 2005 From: steve_benzo at YAHOO.COM (Steve Benzo) Date: Fri Feb 8 15:08:00 2008 Subject: installation woes - 256 character limit Message-ID: Hi, I'm trying to configure mapserver on solaris (via ssh to a remote machine). Anyway, I'm unable to add more parameters to the configure string after 256 characters on the command line. I also tried making a text file and piping it the input, but that didn't help either. Anyone have any suggestions? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com