From arthan at DSL.TTNET.NET.TR Sat Dec 1 11:04:10 2007 From: arthan at DSL.TTNET.NET.TR (Volkan Ulukut) Date: Sat, 1 Dec 2007 21:04:10 +0200 Subject: Querying and displaying sid files through php-mapscript In-Reply-To: <4738606A.2050705@pobox.com> Message-ID: Hey list, I've been working on a street map and when I begun to add a search function for it I bumped into the question how I could get the City-District-Street relation from sid file and show it to user so the user can choose where he wants to find step by step. Suppose I got a sid file named street.sid and these are the fields: City | DistrictName | StreetName I show this sid file on the map with street being the label. Now what I wish to do is putting 2 combobox' under advanced search and one of them would have the city names the other the district names. So when the user looks for a street in the city C and District D he could choose from comboboxes and type its name on the search field. It would be fairly easy if City - District - Street relation was in a table on mysql. But only data I got is this street.sid. My question is Can I get the Citynames, Districtnames and streetnames from the sid file into my php application? Hope I could be clear enough. Thanks in advance. From David.Fawcett at STATE.MN.US Sat Dec 1 11:52:09 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Sat, 1 Dec 2007 13:52:09 -0600 Subject: PostGIS Layer Failing Message-ID: I am testing out a new install of PostGIS and MapServer on OS X Leopard. I built a map file to display a simple ten point layer coming from PostGIS. I get the following error: msDrawMap(): Image handling error. Failed to draw layer named 'basemap'. prepare_database(): Query error. Couldnt recover from a bad query: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),the_geom::text from ten_points_layer WHERE the_geom && setSRID('BOX3D(146545.5 4814000,804891.5 5472346)'::BOX3D, find_srid('','ten_points_layer','the_geom') )' Here is the layer definition: LAYER NAME basemap STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=mydb user=myuser password=mypass port=5432" DATA "the_geom FROM ten_points_layer using unique the_geom" CLASS COLOR 255 255 255 OUTLINECOLOR 181 181 181 #An OUTLINECOLOR with no COLOR gives same effect as old POLYLINE END PROJECTION "init=epsg:26915" END END Any ideas? I am also having trouble getting QGIS to display the layer. Thanks, David. From woklist at KYNGCHAOS.COM Sat Dec 1 13:26:10 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Sat, 1 Dec 2007 15:26:10 -0600 Subject: PostGIS Layer Failing In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5015AD3E8@s-sp22.pca.state.mn.us> Message-ID: Which version of PostGIS are you using? There is a bug in PostGIS 1.3.1 and SVN that was fixed a few days ago that affects Leopard. PostGIS had a function with a commonly used name, and this function was added to the Leopard libSystem. This gets used in PostGIS instead of its own, causing Postgres to crash. Either install PostGIS from the latest SVN, or install my latest PostGIS if you are using my binaries. If that's not the problem, try looking in the console and system logs, as well as the Apache logs. A library problem may just appear as an unidentified error at the PHP level, and digging into system logs may be needed to identify the problem. On Dec 1, 2007, at 1:52 PM, Fawcett, David wrote: > I am testing out a new install of PostGIS and MapServer on OS X > Leopard. I built a map file to display a simple ten point layer > coming from PostGIS. > > I get the following error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'basemap'. prepare_database(): Query error. Couldnt recover from a > bad query: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),the_geom::text > from ten_points_layer WHERE the_geom && setSRID('BOX3D(146545.5 > 4814000,804891.5 5472346)'::BOX3D, > find_srid('','ten_points_layer','the_geom') )' > > Here is the layer definition: > LAYER > NAME basemap > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=mydb user=myuser > password=mypass port=5432" > DATA "the_geom FROM ten_points_layer using unique the_geom" > > CLASS > COLOR 255 255 255 > OUTLINECOLOR 181 181 181 #An OUTLINECOLOR with no COLOR > gives same effect as old POLYLINE > END > > PROJECTION > "init=epsg:26915" > END > END > > Any ideas? I am also having trouble getting QGIS to display the > layer. > > Thanks, > > David. ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From ivan.mincik at GMAIL.COM Sat Dec 1 15:02:59 2007 From: ivan.mincik at GMAIL.COM (=?ISO-8859-1?Q?ivan_minc=28=EDk?=) Date: Sun, 2 Dec 2007 00:02:59 +0100 Subject: PostGIS Layer Failing In-Reply-To: Message-ID: I think this line DATA "the_geom FROM ten_points_layer using unique the_geom" should be DATA "the_geom FROM ten_points_layer using unique gid" Ivan William Kyngesburye wrote: > Which version of PostGIS are you using? There is a bug in PostGIS > 1.3.1 and SVN that was fixed a few days ago that affects Leopard. > PostGIS had a function with a commonly used name, and this function > was added to the Leopard libSystem. This gets used in PostGIS instead > of its own, causing Postgres to crash. > > Either install PostGIS from the latest SVN, or install my latest > PostGIS if you are using my binaries. > > > If that's not the problem, try looking in the console and system logs, > as well as the Apache logs. A library problem may just appear as an > unidentified error at the PHP level, and digging into system logs may > be needed to identify the problem. > > > On Dec 1, 2007, at 1:52 PM, Fawcett, David wrote: > >> I am testing out a new install of PostGIS and MapServer on OS X >> Leopard. I built a map file to display a simple ten point layer >> coming from PostGIS. >> >> I get the following error: >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'basemap'. prepare_database(): Query error. Couldnt recover from a >> bad query: 'DECLARE mycursor BINARY CURSOR FOR SELECT >> asbinary(force_collection(force_2d(the_geom)),'NDR'),the_geom::text >> from ten_points_layer WHERE the_geom && setSRID('BOX3D(146545.5 >> 4814000,804891.5 5472346)'::BOX3D, >> find_srid('','ten_points_layer','the_geom') )' >> >> Here is the layer definition: >> LAYER >> NAME basemap >> STATUS DEFAULT >> TYPE POLYGON >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=localhost dbname=mydb user=myuser password=mypass >> port=5432" >> DATA "the_geom FROM ten_points_layer using unique the_geom" >> >> CLASS >> COLOR 255 255 255 >> OUTLINECOLOR 181 181 181 #An OUTLINECOLOR with no COLOR gives >> same effect as old POLYLINE >> END >> >> PROJECTION >> "init=epsg:26915" >> END >> END >> >> Any ideas? I am also having trouble getting QGIS to display the layer. >> >> Thanks, >> >> David. > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > From David.Fawcett at STATE.MN.US Sat Dec 1 20:36:31 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Sat, 1 Dec 2007 22:36:31 -0600 Subject: PostGIS Layer Failing Message-ID: William, Thanks for the quick response. I am using your binaries and I thought that I had the latest Postgre and PostGIS. I obviously didn't. Upgrading fixed the issues with both MapServer and QGIS. David. -----Original Message----- From: UMN MapServer Users List on behalf of William Kyngesburye Sent: Sat 12/1/2007 3:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PostGIS Layer Failing Which version of PostGIS are you using? There is a bug in PostGIS 1.3.1 and SVN that was fixed a few days ago that affects Leopard. PostGIS had a function with a commonly used name, and this function was added to the Leopard libSystem. This gets used in PostGIS instead of its own, causing Postgres to crash. Either install PostGIS from the latest SVN, or install my latest PostGIS if you are using my binaries. If that's not the problem, try looking in the console and system logs, as well as the Apache logs. A library problem may just appear as an unidentified error at the PHP level, and digging into system logs may be needed to identify the problem. On Dec 1, 2007, at 1:52 PM, Fawcett, David wrote: > I am testing out a new install of PostGIS and MapServer on OS X > Leopard. I built a map file to display a simple ten point layer > coming from PostGIS. > > I get the following error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'basemap'. prepare_database(): Query error. Couldnt recover from a > bad query: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),the_geom::text > from ten_points_layer WHERE the_geom && setSRID('BOX3D(146545.5 > 4814000,804891.5 5472346)'::BOX3D, > find_srid('','ten_points_layer','the_geom') )' > > Here is the layer definition: > LAYER > NAME basemap > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=mydb user=myuser > password=mypass port=5432" > DATA "the_geom FROM ten_points_layer using unique the_geom" > > CLASS > COLOR 255 255 255 > OUTLINECOLOR 181 181 181 #An OUTLINECOLOR with no COLOR > gives same effect as old POLYLINE > END > > PROJECTION > "init=epsg:26915" > END > END > > Any ideas? I am also having trouble getting QGIS to display the > layer. > > Thanks, > > David. ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From David.Fawcett at STATE.MN.US Sat Dec 1 20:40:32 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Sat, 1 Dec 2007 22:40:32 -0600 Subject: PostGIS Layer Failing Message-ID: Thanks Ivan. This line is now working for me: DATA "the_geom FROM ten_points_layer using srid=26915" -----Original Message----- From: UMN MapServer Users List on behalf of ivan minc(?k Sent: Sat 12/1/2007 5:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PostGIS Layer Failing I think this line DATA "the_geom FROM ten_points_layer using unique the_geom" should be DATA "the_geom FROM ten_points_layer using unique gid" Ivan William Kyngesburye wrote: > Which version of PostGIS are you using? There is a bug in PostGIS > 1.3.1 and SVN that was fixed a few days ago that affects Leopard. > PostGIS had a function with a commonly used name, and this function > was added to the Leopard libSystem. This gets used in PostGIS instead > of its own, causing Postgres to crash. > > Either install PostGIS from the latest SVN, or install my latest > PostGIS if you are using my binaries. > > > If that's not the problem, try looking in the console and system logs, > as well as the Apache logs. A library problem may just appear as an > unidentified error at the PHP level, and digging into system logs may > be needed to identify the problem. > > > On Dec 1, 2007, at 1:52 PM, Fawcett, David wrote: > >> I am testing out a new install of PostGIS and MapServer on OS X >> Leopard. I built a map file to display a simple ten point layer >> coming from PostGIS. >> >> I get the following error: >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'basemap'. prepare_database(): Query error. Couldnt recover from a >> bad query: 'DECLARE mycursor BINARY CURSOR FOR SELECT >> asbinary(force_collection(force_2d(the_geom)),'NDR'),the_geom::text >> from ten_points_layer WHERE the_geom && setSRID('BOX3D(146545.5 >> 4814000,804891.5 5472346)'::BOX3D, >> find_srid('','ten_points_layer','the_geom') )' >> >> Here is the layer definition: >> LAYER >> NAME basemap >> STATUS DEFAULT >> TYPE POLYGON >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=localhost dbname=mydb user=myuser password=mypass >> port=5432" >> DATA "the_geom FROM ten_points_layer using unique the_geom" >> >> CLASS >> COLOR 255 255 255 >> OUTLINECOLOR 181 181 181 #An OUTLINECOLOR with no COLOR gives >> same effect as old POLYLINE >> END >> >> PROJECTION >> "init=epsg:26915" >> END >> END >> >> Any ideas? I am also having trouble getting QGIS to display the layer. >> >> Thanks, >> >> David. > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > From friendvn2000 at YAHOO.COM Sun Dec 2 02:28:17 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Sun, 2 Dec 2007 04:28:17 -0600 Subject: Looking for an open source MapServer application that use PHPMapscrip Message-ID: Thanks sir, I have tried ka-map but it it difficult to setup custom map From gregor at HOSTGIS.COM Sun Dec 2 09:30:16 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 2 Dec 2007 10:30:16 -0700 Subject: Looking for an open source MapServer application that use PHPMapscrip In-Reply-To: Message-ID: Hei Jo wrote: > Thanks sir, > I have tried ka-map but it it difficult to setup custom map A lot of frameworks are written in PHP/MapScript. I'm fond of p.Mapper, for instance. Chameleon and MapLab may be up your alley as well, and they're in PHP/MapScript. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at HOSTGIS.COM Sun Dec 2 12:34:17 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 2 Dec 2007 13:34:17 -0700 Subject: Why does my WFS filter not work? In-Reply-To: <47508C52.8040802@dmsolutions.ca> Message-ID: Yewondwossen Assefa wrote: > Gregor, > I don't see anything wrong with the request. > I did have the expected result. Are you saying that when you run this URL, you get back a feature? http://69.59.158.15/cgi-bin/mapserv?map=/maps/spraywatch2/wms/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=parcels&Filter=gid2389524 I get a service exception: "msQueryByRect(): Search returned no results. No matching record(s) found." This is silly since the bbox search shows several matches, some of which would clearly match the filter. http://69.59.158.15/cgi-bin/mapserv?map=/maps/spraywatch2/wms/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=parcels&srs=EPSG:4326&bbox=168.011840820312,-46.9196395874023,168.127075195312,-46.896656036377 I tried filtering by other fields as well, but keep getting not found exceptions. The parcels layer (yes, it's PostGIS) is well over 1 GB, so I'm not sure what you want with it. This is MS 5.0.0, FYI -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From yassefa at DMSOLUTIONS.CA Sun Dec 2 13:27:40 2007 From: yassefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Sun, 2 Dec 2007 16:27:40 -0500 Subject: Why does my WFS filter not work? In-Reply-To: <475316C9.5080807@hostgis.com> Message-ID: Gregor Mosheh wrote: > Yewondwossen Assefa wrote: >> Gregor, >> I don't see anything wrong with the request. >> I did have the expected result. > > Are you saying that when you run this URL, you get back a feature? > No. All I meant was running the same kind of request on a local postgis layer on my machine was giving the expected result. > http://69.59.158.15/cgi-bin/mapserv?map=/maps/spraywatch2/wms/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=parcels&Filter=gid2389524 > > > I get a service exception: "msQueryByRect(): Search returned no results. > No matching record(s) found." This is silly since the bbox search shows > several matches, some of which would clearly match the filter. > > http://69.59.158.15/cgi-bin/mapserv?map=/maps/spraywatch2/wms/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=parcels&srs=EPSG:4326&bbox=168.011840820312,-46.9196395874023,168.127075195312,-46.896656036377 > > > I tried filtering by other fields as well, but keep getting not found > exceptions. > > The parcels layer (yes, it's PostGIS) is well over 1 GB, so I'm not sure > what you want with it. > > This is MS 5.0.0, FYI > Is it possible for you to check mapserver debug messages (set DEBUG true on the layer). There should be in the logs the sql statement that is supposed to be executed (in your case it would be something like ... WHERE (gid= 2389524) ... . Does this seem valid? Any other error messages in postgres log? The filter encoding is supposed to set the filter element of the layer : FILTER (gid = 2389524). I am using the latest Mapserver from svn when doing these tests, looking in th logs there is one bug fixed http://trac.osgeo.org/mapserver/ticket/2388 that should not impact this. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From boommonge at GMAIL.COM Sun Dec 2 14:02:32 2007 From: boommonge at GMAIL.COM (Luis Angel Monge De La Cruz) Date: Sun, 2 Dec 2007 23:02:32 +0100 Subject: Do Mapserver enables distributed processing spatial data? Message-ID: Hi! This is my question. Do Mapserver enables distributed processing spatial data? Information - Two computers - Each computer has a spatial database - What happen?. If I want to obtain a spatial data from the computer # 1 through mapserver and is not available this database. Can mapserver look so automatic that spatial data in the database from the computer computer # 2? -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Sun Dec 2 14:44:34 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sun, 2 Dec 2007 23:44:34 +0100 Subject: UPDATE Re: C# Mapscript ASP.NET Deployment Problem In-Reply-To: Message-ID: Bruno, I've added AllowPartiallyTrustedCallers in the trunk, but I haven't found any compilation issues. You can see the results at the mapserver buildbot: http://buildbot.osgeo.org:8504/waterfall The binaries for testing purposes can be downloaded from here: http://vbkto.dyndns.org:1080/mapserver/szekerest-vc71-full/package/bin.zip http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80-full/package/bin.zip http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80x64-full/package/bin.zip Notify me how it goes. Best regards, Tamas 2007/12/2, Bruno Gendron : > Tamas, > > I added to [assembly:AllowPartiallyTrustedCallers] to the assembly > configuration file, then tried to compile mapscript, with no success. SWIG > is still producing the following error: > > ..\..\mapserver.h(1393): Error: Syntax error in input(1) > > I'm using mapserver.h from CVS (attached to this message). > > I'm using VS 2003. > > > > > On Fri, 30 Nov 2007 19:41:00 +0100, Tamas Szekeres wrote: > > >Bruno, > > > >I guess your deployment configuration would require to add the following line: > > > >[assembly:AllowPartiallyTrustedCallers] > > > >in mapscript\csharp\config\AssemblyInfo.cs > > > >You can add this row and recompile the csharp bindings to see whether > >this fix solves the problem or not. > > > >However I've never run into this problem. Could you describe the steps > >in a ticket to reproduce this behaviour? > > > >http://trac.osgeo.org/mapserver/newticket > > > > > >Best regards, > > > >Tamas > > From schuermann at CITKOMM.DE Sun Dec 2 22:35:00 2007 From: schuermann at CITKOMM.DE (Matthias Sch=?ISO-8859-1?Q?=FCrmann?=) Date: Mon, 3 Dec 2007 00:35:00 -0600 Subject: legend not drawn with mapserver 5.0? Message-ID: Hi Thomas, hi Wim, thank you for yor answers. I'll wait for the next version 5.1 or 5.0.1. bye Matthias From arthan at DSL.TTNET.NET.TR Mon Dec 3 04:06:29 2007 From: arthan at DSL.TTNET.NET.TR (Volkan Ulukut) Date: Mon, 3 Dec 2007 14:06:29 +0200 Subject: Querying and displaying tab files through php-mapscript Message-ID: Just a quick correction, I'm using tab files not sid files. Sorry for the mistake. I'm still looking for a solution. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Volkan Ulukut Sent: Saturday, December 01, 2007 9:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Querying and displaying tab files through php-mapscript Hey list, I've been working on a street map and when I begun to add a search function for it I bumped into the question how I could get the City-District-Street relation from tab file and show it to user so the user can choose where he wants to find step by step. Suppose I got a tab file named street.tab and these are the fields: City | DistrictName | StreetName I show this tab file on the map with street being the label. Now what I wish to do is putting 2 combobox' under advanced search and one of them would have the city names the other the district names. So when the user looks for a street in the city C and District D he could choose from comboboxes and type its name on the search field. It would be fairly easy if City - District - Street relation was in a table on mysql. But only data I got is this street.tab. My question is Can I get the Citynames, Districtnames and streetnames from the tab file into my php application? Hope I could be clear enough. Thanks in advance. From anakreon at CSD.AUTH.GR Mon Dec 3 04:07:29 2007 From: anakreon at CSD.AUTH.GR (Anakreon Mentis) Date: Mon, 3 Dec 2007 14:07:29 +0200 Subject: Query layer based on fetures Message-ID: Hello all. I need to make a query on a layer based on features. The data of the layer are retrived from a mysql database using the OGR driver. I want to use some of the fields of the table for quering. The role of the template for the layer seems clear to me. Is there an example which queries a layer based on features? Thanks in advanced for your reply. Anakreon From anakreon at CSD.AUTH.GR Mon Dec 3 05:15:19 2007 From: anakreon at CSD.AUTH.GR (Anakreon Mentis) Date: Mon, 3 Dec 2007 15:15:19 +0200 Subject: Query layer based on fetures In-Reply-To: <18259.61825.60131.305885@mathind.csd.auth.gr> Message-ID: Anakreon Mentis writes: > Hello all. > > I need to make a query on a layer based on features. > The data of the layer are retrived from a mysql database > using the OGR driver. > > I want to use some of the fields of the table for quering. > The role of the template for the layer seems clear to me. > > Is there an example which queries a layer based on features? > > Thanks in advanced for your reply. > > Anakreon I can actually query the layer from the cgi interface using mode=ITEMNQUERY qitem=catch_code qstring=1020 There are two problems however. The first is the an error related to a metadata field called qstring_validation_pattern. If I set the value to "/\d+/", it fails. I tried "\d+" but it fails again even if the qstring value is a number. If I set it to ".*" it works but I'd like to know what is wrong if I set it to \d+. The second problem is that I want to query the layer based on many attributes, not just one. If I pass in the url multiple qitem and qstring parameteres, only the last one is used. From dnuttall at DNLT.COM Mon Dec 3 07:12:53 2007 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Mon, 3 Dec 2007 09:12:53 -0600 Subject: Using spatial data from MySQL? Message-ID: I have a couple of shapefiles from which I can produce a simple map using Mapserver5.x w/PHP Mapscript. I have converted the same couple of shapefiles to MySQL (5.0.48) where they become three tables resulting from using "shp2mysql.pl". I would like to learn how to use the MySQL database instead of the shapefiles. I'm not SURE, but from my reading of the limited tutorial/insights/how-to's, there doesn't seem to be a Layer|Connectiontype that allows PHP and MySQL to interact without OGR or Java. Is that a correct understanding? TIA. Dave Nuttall San Antonio, Texas From jbartol at MMM.COM Mon Dec 3 07:35:41 2007 From: jbartol at MMM.COM (Jim Bartol) Date: Mon, 3 Dec 2007 09:35:41 -0600 Subject: Mapscript C# 'Test Harness' for Mapserver 5.0 Message-ID: I have had great success using the Mapserver 4 and Mapscript C# binaries posted by David Lowther at http://www.coordinatesolutions.com/download/ (as referenced in the Mapscript C# compilation site http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile). I would now like to upgrade to Mapserver 5.0. Is there a link to a test harness for the latest version of Mapserver 5.0/Mapscript C# similar to what is available for Mapserver 4 in the coordinatesolutions link above? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Mon Dec 3 09:27:10 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 3 Dec 2007 10:27:10 -0700 Subject: Why does my WFS filter not work? In-Reply-To: <475435B8.1010100@dmsolutions.ca> Message-ID: >>> Is it possible for you to check mapserver debug messages (set DEBUG >>> true on the layer) > CONFIG "MS_ERRORFILE" "test.log" > DEBUG 5 > This should write all debug informations in the file. And you should set > DEBUG true on your postgis layer. Big question: This version of "enabling debugging" isn't on the website, as far as I can see. Or if it is, it's not mentioned from the debug and log directives in the mapfile reference. Is this new for MS4 or MS4.10, and/or should the docs be updated? BUT, now that the logging is working, it was somewhat informative: SELECT "featcode"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from parcels WHERE (gid= 2389524) and (the_geom && setSRID( 'BOX3D(-1 -1,-1 -1)'::BOX3D,find_srid('','parcels','the_geom') )); See that BOX3D() for intersection testing? If I so a manual SQL query, swapping in real coordinates such as BOX3D(168.011 -46.919,168.12 -46.89) then it finds the feature! So: What's with this spurious bbox when one was not specified in the URL? I tried the Subversion version as well, and got exactly the same results. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From mlinden at ZEELANDNET.NL Mon Dec 3 09:49:13 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 3 Dec 2007 18:49:13 +0100 Subject: Do Mapserver enables distributed processing spatial data? In-Reply-To: <390b64100712021402h10b1261cndade88b87037819@mail.gmail.com> Message-ID: No, mapserver cannot switch automatically unless you tell it to in a php script or something. But why put these databases on two computers? Why not use a single server that is always on and holds the database? There are many ways to achieve this, but that is basically no mapserver issue. First of all, storing gis data on a single computer always makes it stand alone. Storing it on a server makes it available to the server and to servers with rights on that particular server via the network. Best thing I would do if I where you: - Set up a postGIS spatial database and provide both workstations with access. If you use qGIS or openJump as the GIS client, this is a very workable situation. - If you want to do the same, but with a more commercial solution; consider MapInfo with SQL-server Spatialware or ArcView with SDE. Databases have the advantage that they are designed to be multi-user where as GIS data most of the time is not. Luis Angel Monge De La Cruz schreef: > Hi! > > This is my question. Do Mapserver enables distributed processing > spatial data? > > Information > - Two computers > - Each computer has a spatial database > - What happen?. If I want to obtain a spatial data from the computer # > 1 through mapserver and is not available this database. Can mapserver > look so automatic that spatial data in the database from the computer > computer # 2? -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at DMSOLUTIONS.CA Mon Dec 3 09:58:44 2007 From: yassefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 3 Dec 2007 12:58:44 -0500 Subject: Why does my WFS filter not work? In-Reply-To: <47543C6E.9080402@hostgis.com> Message-ID: Gregor Mosheh wrote: >>>> Is it possible for you to check mapserver debug messages (set DEBUG >>>> true on the layer) > >> CONFIG "MS_ERRORFILE" "test.log" >> DEBUG 5 >> This should write all debug informations in the file. And you should >> set DEBUG true on your postgis layer. > > Big question: > This version of "enabling debugging" isn't on the website, as far as I > can see. Or if it is, it's not mentioned from the debug and log > directives in the mapfile reference. Is this new for MS4 or MS4.10, > and/or should the docs be updated? > This is 5.0 (check http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28/). Not sure about official documentation. > BUT, now that the logging is working, it was somewhat informative: > > SELECT > "featcode"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from parcels WHERE (gid= 2389524) and (the_geom && setSRID( 'BOX3D(-1 > -1,-1 -1)'::BOX3D,find_srid('','parcels','the_geom') )); > > See that BOX3D() for intersection testing? If I so a manual SQL query, > swapping in real coordinates such as BOX3D(168.011 -46.919,168.12 > -46.89) then it finds the feature! > > So: What's with this spurious bbox when one was not specified in the > URL? I tried the Subversion version as well, and got exactly the same > results. > I think this comes from the fact that the extents in your map are not set. Please retry this by setting EXTENT to something valid. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From gregor at HOSTGIS.COM Mon Dec 3 10:18:28 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 3 Dec 2007 11:18:28 -0700 Subject: Why does my WFS filter not work? In-Reply-To: <475443D4.3030205@dmsolutions.ca> Message-ID: >> So: What's with this spurious bbox when one was not specified in the >> URL? I tried the Subversion version as well, and got exactly the same >> results. > I think this comes from the fact that the extents in your map are not > set. Please retry this by setting EXTENT to something valid. YES! Thanks a lot, Yew. That's exactly what it is. Now, to contact the appropriate folks about getting their documentation updated... -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From nospam420 at YAHOO.COM Mon Dec 3 11:48:43 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 3 Dec 2007 11:48:43 -0800 Subject: Color shifts using QUANTIZE_COLORS=256 In-Reply-To: <47507475.6000303@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > > Try using something liek this: > > OUTPUTFORMAT > NAME "agg/png24" > MIMETYPE "image/png; mode=24bit" > DRIVER "AGG/PNG" > EXTENSION "png" > FORMATOPTION "PALETTE_FORCE=TRUE" > FORMATOPTION "PALETTE=/u/data/maps/palette-google-agg.txt" > END > > where /u/data/maps/palette-google-agg.txt has something like this in it. > Obviously pick the colors that you want to quantize to: > I was worried that that would mean that I would have to by hand pick ALL of the colors, which, given antialiasing isn't really what I want. I want to specify that the reasonably small set of colors I specify in the map file get rendered precisely, and that's all I want to specify. I'm happy (and prefer) to have the "in between" colors chosen by antialiasing get chosen automatically, and they don't have to be so precise. Just to clarify for someone reading this message in the future, that is exactly how it seems to work. So all is well. - Rich -- View this message in context: http://www.nabble.com/Color-shifts-using-QUANTIZE_COLORS%3D256-tf2080351.html#a14137448 Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Mon Dec 3 11:53:41 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 3 Dec 2007 11:53:41 -0800 Subject: Color shifts using QUANTIZE_COLORS=256 In-Reply-To: Message-ID: tbonfort wrote: > > Mapserver relies on a gd library function to do the actual > quantization, so there's little we can do about the color shifting > you're experiencing > another solution is to use a precomputed palette > As I mentioned in another posting, your workaround (also suggested by Stephen Woodbridge) works fine for my needs. Nevertheless, do you feel that this is a GD bug that ought to be reported to them? I suppose it depends on your precise interpretation of what quantization should do under certain circumstances. But in this case as applied to image processing, I'm inclined to think that if I only request a single color and a quantization limit of 256 colors (or really any request <= 256 colors in this case), that the color(s) requested should be returned without modification. - Rich -- View this message in context: http://www.nabble.com/Color-shifts-using-QUANTIZE_COLORS%3D256-tf2080351.html#a14137470 Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at SWOODBRIDGE.COM Mon Dec 3 12:15:38 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 3 Dec 2007 15:15:38 -0500 Subject: Color shifts using QUANTIZE_COLORS=256 In-Reply-To: <14137448.post@talk.nabble.com> Message-ID: Rich, Right! Sorry, I wasn't more explicit on that point. The way I have used it is to create the file by grep COLOR mymapfile.map and edit that into the palette files. this way the primary colors defined in my mapfile are preallocated, so those do not shift. Then the rest of the color slots are filled with the antialiased colors. There is probably a better way of doing this so that the free slots are allocated across all the colors based on some N number of slots per color, but we don't have a way to do that yet. So the free slots are used on a first come, fist used basis. -Steve W rich.fromm wrote: > Stephen Woodbridge wrote: >> Try using something liek this: >> >> OUTPUTFORMAT >> NAME "agg/png24" >> MIMETYPE "image/png; mode=24bit" >> DRIVER "AGG/PNG" >> EXTENSION "png" >> FORMATOPTION "PALETTE_FORCE=TRUE" >> FORMATOPTION "PALETTE=/u/data/maps/palette-google-agg.txt" >> END >> >> where /u/data/maps/palette-google-agg.txt has something like this in it. >> Obviously pick the colors that you want to quantize to: >> > > I was worried that that would mean that I would have to by hand pick ALL of > the colors, which, given antialiasing isn't really what I want. I want to > specify that the reasonably small set of colors I specify in the map file > get rendered precisely, and that's all I want to specify. I'm happy (and > prefer) to have the "in between" colors chosen by antialiasing get chosen > automatically, and they don't have to be so precise. > > Just to clarify for someone reading this message in the future, that is > exactly how it seems to work. So all is well. > > - Rich > From nospam420 at YAHOO.COM Mon Dec 3 12:42:57 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 3 Dec 2007 12:42:57 -0800 Subject: MapServer 5.0 and enable-DEBUG In-Reply-To: <112787650@web.de> Message-ID: H. Porath wrote: > > afaik, in Mapserver 5 the "enable-debug" option is only for debug messages > while compiling mapserver. You do not need to use "enabel-debug" to > receive debug messages any more. > > See also: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28 > I was encountering a very similar situation and about to post to this list when I came across this previous question. I read the RFC at http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28 and think I mostly understand things, but I still have a couple of questions: 1) What's the best way that I could have found out about this change on my own? The documentation at http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj makes no mention of this change, and neither do the notes at http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT In retrospect, I do see this RFC referenced in the HISTORY.TXT file included with the mapserver distribution, but that seems a somewhat cumbersome way to find out which features matter with respect to user specification. Is it simply a minor documentation bug, and should the migration docs mention MS-RFC-28 ? 2) I have had several instances in which a small little mistake in my map file (like a typo in the name of another file being referenced) was much harder to track down than I would have hoped, because I get no meaningful error message from mapserver, even with DEBUG set to 5. All I get is the same, single generic error message in /var/log/apache2/error.log: [Mon Dec 03 11:38:14 2007] [error] [client 127.0.0.1] Premature end of script headers: mapserv And the webserver returns a 500 error. Is there any easy way to debug what's the problem when something like this occurs? I suppose one way might be to run mapserver via gdb, if indeed it is crashing, but the standalone mapserv binary doesn't look like it's capable of that: $ ./mapserv This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. and I don't see a C/C++ implementation of mapscript, so I'm not even sure exactly how I would go about doing that. (How do mapserver developers debug it? I'm not really sure if I were to run apache2 via gdb if that would do the right thing for a CGI application written in C.) - Rich Fromm -- View this message in context: http://www.nabble.com/MapServer-5.0-and-enable-DEBUG-tf4710307.html#a14138424 Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Mon Dec 3 12:53:58 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 3 Dec 2007 12:53:58 -0800 Subject: Color shifts using QUANTIZE_COLORS=256 In-Reply-To: Message-ID: tbonfort wrote: > > OUTPUTFORMAT > [... snip...] > FORMATOPTION "PALETTE_FORCE=TRUE" > FORMATOPTION "PALETTE=/path/to/my/palette.txt" > END > Sorry if I'm being repetitive, but this seems to be another example of the question that I raised earlier here: http://www.nabble.com/forum/ViewPost.jtp?post=13982316&framed=y Is ther some place (even if it's in the source code, that's fine) that I can easily find out what all of the list of FORMATOPTION's are that are available to me? I'm not looking for anything more in particular right now, but sometimes just knowing what all of the knobs are can help to solve a problem when one does arise. This mailing list is great, and I do truly appreciate the prompt and useful help that I've received to my queries, but it's also nice to not have to bug others and to be able to just find the information on my own. I see no mention of this as a valid FORMATOPTION in any of these locations: http://mapserver.gis.umn.edu/docs/reference/mapfile/outputformat http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics/view Or is the gist that the docs for this just aren't done yet? From this item in the HISTORY.TXT file with the mapserver distribution: - Use of static color Palette support for gd output (#2096) And the fact that this bug is still open: http://trac.osgeo.org/mapserver/ticket/2096 and says "only the doc part is remaining for this bug" maybe that's the case. -- View this message in context: http://www.nabble.com/Color-shifts-using-QUANTIZE_COLORS%3D256-tf2080351.html#a14138694 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Mon Dec 3 13:34:31 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Dec 2007 16:34:31 -0500 Subject: Color shifts using QUANTIZE_COLORS=256 In-Reply-To: <14138694.post@talk.nabble.com> Message-ID: rich.fromm wrote: > Sorry if I'm being repetitive, but this seems to be another example of the > question that I raised earlier here: > > http://www.nabble.com/forum/ViewPost.jtp?post=13982316&framed=y > > Is ther some place (even if it's in the source code, that's fine) that I can > easily find out what all of the list of FORMATOPTION's are that are > available to me? I'm not looking for anything more in particular right now, > but sometimes just knowing what all of the knobs are can help to solve a > problem when one does arise. Rich, Format options are used in a variety of places and there is no comprehensive listing. You can search the code with the command "grep -i formatoption" to find the bulk of MapServer specific format option values. But for GDAL drivers they are also passed through to GDAL and you would need to review the format driver documentation for each GDAL driver to find all possible options (format options are translated as GDAL creation options). I sympathize with the mysteriousness of this. It would be nice to have a summary of the MapServer specific format options in the docs. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From boommonge at GMAIL.COM Mon Dec 3 13:47:56 2007 From: boommonge at GMAIL.COM (Luis Angel Monge De La Cruz) Date: Mon, 3 Dec 2007 22:47:56 +0100 Subject: Do Mapserver enables distributed processing spatial data? In-Reply-To: <47544199.6010206@zeelandnet.nl> Message-ID: Thanks for the suggestions. These options sound good. But the reason to have the database in more than one computer, is that really so are available, it is unlikely that the information is integrated into a single site, the application is for risk management, where there are layers of information disseminated in several locations, including various sources, such as graphics files, dbf, and postgresql. I am currently studying for a master and my idea is to propose improvements to mapserver in this regard. ?how? Developing a mechanism to be included in the file. Map more than one source to a layer, so something like a mirror, and that the choice of the server is based not only on the availability of the source, also the bandwidth , reliability and others. On Dec 3, 2007 6:49 PM, Milo van der Linden wrote: > No, mapserver cannot switch automatically unless you tell it to in a php > script or something. > > But why put these databases on two computers? Why not use a single server > that is always on and holds the database? > > There are many ways to achieve this, but that is basically no mapserver > issue. > > First of all, storing gis data on a single computer always makes it stand > alone. Storing it on a server makes it available to the server and to > servers with rights on that particular server via the network. > > Best thing I would do if I where you: > > > - Set up a postGIS spatial database and provide both workstations with > access. If you use qGIS or openJump as the GIS client, this is a very > workable situation. > > - If you want to do the same, but with a more commercial solution; > consider MapInfo with SQL-server Spatialware or ArcView with SDE. > > Databases have the advantage that they are designed to be multi-user where > as GIS data most of the time is not. > > > > > Luis Angel Monge De La Cruz schreef: > > Hi! > > This is my question. Do Mapserver enables distributed processing spatial > data? > > Information > - Two computers > - Each computer has a spatial database > - What happen?. If I want to obtain a spatial data from the computer # 1 > through mapserver and is not available this database. Can mapserver look so > automatic that spatial data in the database from the computer computer # 2? > > > > -- > > > Milo van der Linden > skype: milovanderlinden > mlinden at zeelandnet.nl > milovanderlinden at gmail.com > milo at 3dsite.nl > http://www.3dsite.nl > > > De informatie in dit bericht reflecteert mijn persoonlijke mening en niet > die van een bedrijf of instantie. Aan de informatie kunnen geen rechten > worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list > of community dan gelden automatisch de bij het betreffende medium behorende > voorwaarden. The information in this message reflects my personal opinion > and not that of a company or public body. All rights reserved.If this > message is contained in a mailing-list or community, the rights on the > medium are automatically adapted. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbartol at MMM.COM Mon Dec 3 14:38:40 2007 From: jbartol at MMM.COM (Jim Bartol) Date: Mon, 3 Dec 2007 16:38:40 -0600 Subject: AccessViolationException coming from mapscript_csharp.dll Message-ID: I have been using Mapscript C# binaries that I obtained from http://www.coordinatesolutions.com/download/ in a WinForms application that I developed. On occasion I get an AccessViolationException error in Visual Studio 2005 in a method that calls the draw() method of an imageObj (see attached file). I have seen several references to memory problems in the LISTSERV archives (e.g., items 021776 and 018310) and am wondering whether this issue may have already been addressed? If it has been resolved, is a compiled set of binaries for Mapserver 5.0, similar the code in the link above, available for download? Thank you for any insight on this matter, jb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: AccessViolationException.jpg Type: image/jpeg Size: 57177 bytes Desc: not available URL: From szekerest at GMAIL.COM Mon Dec 3 15:56:27 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 4 Dec 2007 00:56:27 +0100 Subject: AccessViolationException coming from mapscript_csharp.dll In-Reply-To: Message-ID: Jim, I don't know much about this package, you should make a test with the recent version. For testing purposes you can download the recent builds for windows from here: http://vbkto.dyndns.org:1080/mapserver/szekerest-vc71-full/package/bin.zip http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80-full/package/bin.zip http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80x64-full/package/bin.zip The binaries of the current stable version are included in the latest ms4w release. Best regards, Tamas 2007/12/3, Jim Bartol : > > I have been using Mapscript C# binaries that I obtained from > http://www.coordinatesolutions.com/download/ in a WinForms > application that I developed. On occasion I get an AccessViolationException > error in Visual Studio 2005 in a method that calls the draw() method of an > imageObj (see attached file). I have seen several references to memory > problems in the LISTSERV archives (e.g., items 021776 and 018310) and am > wondering whether this issue may have already been addressed? If it has > been resolved, is a compiled set of binaries for Mapserver 5.0, similar the > code in the link above, available for download? > > Thank you for any insight on this matter, > jb > > > > From pal.kristensen at STATKART.NO Tue Dec 4 00:33:29 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 4 Dec 2007 00:33:29 -0800 Subject: Oracle spatial performance issue Message-ID: Hi! I have set up a mapfile with layers that uses oracle spatial data. The problem is that the performance is rather bad. This is how I have set up the connection in the LAYER object. LAYER NAME "N50Hoydekurver" STATUS ON CONNECTION "user/pass at KARTINNS_SKRIVDB06" CONNECTIONTYPE oraclespatial DATA "SHAPE FROM KARTDATA.N50_HoydeKontur USING UNIQUE OBJECTID VERSION 10g" When this layer is queried the resulting SQL that is submitted to the database typically looks like this: SELECT OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26711.6293,6726071.91,-14068.0091,6736415.72) ),'querytype=window') = 'TRUE' By adding the keyword /*+ ordered */ to the select statement considerably speeds up the quary. The resulting SQL statement the looks like this: SELECT /*+ ordered */OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26711.6293,6726071.91,-14068.0091,6736415.72) ),'querytype=window') = 'TRUE' This test is performed manually because I haven't find anywhere to insert the keyword in the mapfile. Anyone have any ideas on how I could accomplish to tell MapServer to insert the keyword before sending the SQL to the database? regards, P?l Kristensen -- View this message in context: http://www.nabble.com/Oracle-spatial-performance-issue-tf4941783.html#a14146626 Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at STATKART.NO Tue Dec 4 00:34:45 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 4 Dec 2007 00:34:45 -0800 Subject: Oracle spatial performance issue Message-ID: Hi! I have set up a mapfile with layers that uses oracle spatial data. The problem is that the performance is rather bad. This is how I have set up the connection in the LAYER object. LAYER NAME "N50Hoydekurver" STATUS ON CONNECTION "user/pass at KARTINNS_SKRIVDB06" CONNECTIONTYPE oraclespatial DATA "SHAPE FROM KARTDATA.N50_HoydeKontur USING UNIQUE OBJECTID VERSION 10g" When this layer is queried the resulting SQL that is submitted to the database typically looks like this: SELECT OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26711.6293,6726071.91,-14068.0091,6736415.72) ),'querytype=window') = 'TRUE' Adding the keyword /*+ ordered */ to the select statement considerably speeds up the quary. The resulting SQL statement the looks like this: SELECT /*+ ordered */OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26711.6293,6726071.91,-14068.0091,6736415.72) ),'querytype=window') = 'TRUE' This test is performed manually because I haven't find anywhere to insert the keyword in the mapfile. Anyone have any ideas on how I could accomplish to tell MapServer to insert the keyword before sending the SQL to the database? regards, P?l Kristensen -- View this message in context: http://www.nabble.com/Oracle-spatial-performance-issue-tf4941783.html#a14146626 Sent from the Mapserver - User mailing list archive at Nabble.com. From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Tue Dec 4 03:02:10 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Tue, 4 Dec 2007 03:02:10 -0800 Subject: Iso-8859-1 Message-ID: Hi, I?m working on an OL application and therefore i need a getFeatureInfo from my mapserver. This is my request: http://172.xx.xx.xx/cgi-bin/mapserv?map=/usr/share/ka-map-1.0-20070205/htdocs/geo.map&LAYERS=see&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31258&BBOX=462978.84987451,119472.99999999996,535227.6997490199,191721.8498745099&WIDTH=256&HEIGHT=256 The problem is, when i call it in the browser every special character (?,?,?,?,...) is displayed correctly because in the templatefile specified in the mapfile i set the caracter encoding to iso-8859-1. When I make the request within the OL application I only get ? for every special character. (the OL .php file is also specified in the head section as iso-8859-1) My question is, is there a posibility to tell the mapserver to translate the characters or tell the mapserver which characterset to use? In any configuration file or something? Thank you in anticipation! R. Ortner -- View this message in context: http://www.nabble.com/Iso-8859-1-tf4942477.html#a14148681 Sent from the Mapserver - User mailing list archive at Nabble.com. From fsimon at UNIVALI.BR Tue Dec 4 03:17:11 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 4 Dec 2007 09:17:11 -0200 Subject: Oracle spatial performance issue In-Reply-To: <14146626.post@talk.nabble.com> Message-ID: Hi, I believe that in the first version of the Oracle Spatial driver for Mapserver (sometime ago, in 2001/2002) the ordered was present in the SQL. But unfortunately I didn't remember why this token was remove. I will check about this token, but can you send the EXPLAIN for the two queries? How many rows are in your table? We can check the difference between both. You can try to do something like this for your data definition: DATA "SHAPE FROM (SELECT /*+ ordered */OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur) USING UNIQUE OBJECTID VERSION 10g" Best regards. Fernando Simon P?l Kristensen wrote: > Hi! > > I have set up a mapfile with layers that uses oracle spatial data. The > problem is that the performance is rather bad. This is how I have set up the > connection in the LAYER object. > > LAYER > NAME "N50Hoydekurver" > STATUS ON > CONNECTION "user/pass at KARTINNS_SKRIVDB06" > CONNECTIONTYPE oraclespatial > DATA "SHAPE FROM KARTDATA.N50_HoydeKontur USING UNIQUE OBJECTID > VERSION 10g" > > When this layer is queried the resulting SQL that is submitted to the > database typically looks like this: > > SELECT OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur > WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26711.6293,6726071.91,-14068.0091,6736415.72) > ),'querytype=window') = 'TRUE' > > Adding the keyword /*+ ordered */ to the select statement considerably > speeds up the quary. The resulting SQL statement the looks like this: > > SELECT /*+ ordered */OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur > WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26711.6293,6726071.91,-14068.0091,6736415.72) > ),'querytype=window') = 'TRUE' > > This test is performed manually because I haven't find anywhere to insert > the keyword in the mapfile. Anyone have any ideas on how I could accomplish > to tell MapServer to insert the keyword before sending the SQL to the > database? > > regards, > P?l Kristensen > From dlowther at COORDINATESOLUTIONS.COM Tue Dec 4 06:20:41 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Tue, 4 Dec 2007 09:20:41 -0500 Subject: Mapscript C# 'Test Harness' for Mapserver 5.0 Message-ID: Jim, I'm glad the previous test harness was useful. I went ahead and updated the application with the bin directory Tamas sent links for yesterday. You can download the files here: http://www.coordinatesolutions.com/download/MapserverTestVB_50.zip David Lowther Coordinate Solutions, Inc. 904.471.5528 (Voice) 405.210.1721 (Mobile) 904.471.5548 (Fax) www.coordinatesolutions.com _____ From: Jim Bartol [mailto:jbartol at MMM.COM] Sent: Monday, December 03, 2007 10:36 AM Subject: Mapscript C# 'Test Harness' for Mapserver 5.0 I have had great success using the Mapserver 4 and Mapscript C# binaries posted by David Lowther at http://www.coordinatesolutions.com/download/ (as referenced in the Mapscript C# compilation site http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile). I would now like to upgrade to Mapserver 5.0. Is there a link to a test harness for the latest version of Mapserver 5.0/Mapscript C# similar to what is available for Mapserver 4 in the coordinatesolutions link above? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Tue Dec 4 08:08:13 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Tue, 4 Dec 2007 11:08:13 -0500 Subject: Mapscript C# 'Test Harness' for Mapserver 5.0 Message-ID: As people seem to find these useful, I've gone ahead and uploaded an ASP.NET sample. This also uses the 5.0 bin folder Tamas provided. I've opened the folder in Visual Studio 2005 and 2008 and built it and run it both on ASP.NET 2.0 and 3.5. http://coordinatesolutions.com/download/ASPNET20Sample_50.zip David Lowther Coordinate Solutions, Inc. 904.471.5528 (Voice) 405.210.1721 (Mobile) 904.471.5548 (Fax) www.coordinatesolutions.com _____ From: Jim Bartol [mailto:jbartol at MMM.COM] Sent: Monday, December 03, 2007 10:36 AM Subject: Mapscript C# 'Test Harness' for Mapserver 5.0 I have had great success using the Mapserver 4 and Mapscript C# binaries posted by David Lowther at http://www.coordinatesolutions.com/download/ (as referenced in the Mapscript C# compilation site http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile). I would now like to upgrade to Mapserver 5.0. Is there a link to a test harness for the latest version of Mapserver 5.0/Mapscript C# similar to what is available for Mapserver 4 in the coordinatesolutions link above? -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at NETGIS.DE Tue Dec 4 08:48:21 2007 From: schroeter at NETGIS.DE (Sven Schroeter) Date: Tue, 4 Dec 2007 17:48:21 +0100 Subject: POSTGIS Query Message-ID: Hallo, in a mapserver-project I want to start a query for 2 postggis-layers: select a.id, b.nom from table_a as a, table_b as b where within (a.the_geom, b.the_geom)=true and nom='test'; now I want to delete all datasets from table_a I get as result. How can I set a delete statement in one sql-query with this selection? Thank you Sven From mlinden at ZEELANDNET.NL Tue Dec 4 11:36:20 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Tue, 4 Dec 2007 20:36:20 +0100 Subject: POSTGIS Query In-Reply-To: <002f01c83695$7b37ca60$1cb2a8c0@sven> Message-ID: delete from table_a where id in (select a.id b. from table_a as a, table_b as b where within (a.the_geom, b.the_geom)=true and b.nom='test') Sven Schroeter schreef: > Hallo, > in a mapserver-project I want to start a query for 2 postggis-layers: > > select a.id, b.nom from table_a as a, table_b as b where within > (a.the_geom, b.the_geom)=true and nom='test'; > > now I want to delete all datasets from table_a I get as result. How > can I set a delete statement in one sql-query with this selection? > > Thank you > Sven -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbartol at MMM.COM Tue Dec 4 12:27:02 2007 From: jbartol at MMM.COM (Jim Bartol) Date: Tue, 4 Dec 2007 14:27:02 -0600 Subject: AccessViolationException coming from mapscript_csharp.dll Message-ID: I have rebuilt my project using the updated dll files provided by David Lowther in his test harness application as provided in the link below, which uses the following version of the mapscript_csharp.dll: // Assembly mapscript_csharp, Version 1.0.2894.5796 My application runs OK most of the time, but on occasion I am still getting an AccessViolationException that is coming from the mapscript_csharp dll (see attached file) when I invoke the draw() method of a mapObj. Any insight on this problem would be much appreciated. Thanks, Jim Jim, I?m glad the previous test harness was useful. I went ahead and updated the application with the bin directory Tamas sent links for yesterday. You can download the files here: http://www.coordinatesolutions.com/download/MapserverTestVB_50.zip David Lowther Coordinate Solutions, Inc. 904.471.5528 (Voice) 405.210.1721 (Mobile) 904.471.5548 (Fax) www.coordinatesolutions.com Jim, I don't know much about this package, you should make a test with the recent version. For testing purposes you can download the recent builds for windows from here: http://vbkto.dyndns.org:1080/mapserver/szekerest-vc71-full/package/bin.zip http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80-full/package/bin.zip http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80x64-full/package/bin.zip The binaries of the current stable version are included in the latest ms4w release. Best regards, Tamas 2007/12/3, Jim Bartol : > > I have been using Mapscript C# binaries that I obtained from > http://www.coordinatesolutions.com/download/ in a WinForms > application that I developed. On occasion I get an AccessViolationException > error in Visual Studio 2005 in a method that calls the draw() method of a > mapObj (see attached file). I have seen several references to memory > problems in the LISTSERV archives (e.g., items 021776 and 018310) and am > wondering whether this issue may have already been addressed? If it has > been resolved, is a compiled set of binaries for Mapserver 5.0, similar the > code in the link above, available for download? > > Thank you for any insight on this matter, > jb > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ScreenShot.jpg Type: image/jpeg Size: 47450 bytes Desc: not available URL: From szekerest at GMAIL.COM Tue Dec 4 13:08:04 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 4 Dec 2007 22:08:04 +0100 Subject: AccessViolationException coming from mapscript_csharp.dll In-Reply-To: Message-ID: Jim, Could you extract a working example to reproduce this problem? Best regards, Tamas 2007/12/4, Jim Bartol : > > > I have rebuilt my project using the updated dll files provided by David > Lowther in his test harness application as provided in the link below, which > uses the following version of the mapscript_csharp.dll: > // Assembly *mapscript_csharp*, Version 1.0.2894.5796 > > My application runs OK most of the time, but on occasion I am still > getting an AccessViolationException that is coming from the mapscript_csharp > dll (see attached file) when I invoke the draw() method of a mapObj. Any > insight on this problem would be much appreciated. > > Thanks, > Jim > > > > > > > Jim, > > I'm glad the previous test harness was useful. I went ahead and updated > the application with the bin directory Tamas sent links for yesterday. You > can download the files here: > > *http://www.coordinatesolutions.com/download/MapserverTestVB_50.zip* > > David Lowther > > Coordinate Solutions, Inc. > 904.471.5528 (Voice) > 405.210.1721 (Mobile) > 904.471.5548 (Fax) > www.coordinatesolutions.com > > > > Jim, > > I don't know much about this package, you should make a test with the > recent version. > For testing purposes you can download the recent builds for windows from > here: > > http://vbkto.dyndns.org:1080/mapserver/szekerest-vc71-full/package/bin.zip > http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80-full/package/bin.zip > > http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80x64-full/package/bin.zip > > The binaries of the current stable version are included in the latest > ms4w release. > > Best regards, > > Tamas > > > 2007/12/3, Jim Bartol : > > > > I have been using Mapscript C# binaries that I obtained from > > http://www.coordinatesolutions.com/download/ in a WinForms > > application that I developed. On occasion I get an > AccessViolationException > > error in Visual Studio 2005 in a method that calls the draw() method of > a > > mapObj (see attached file). I have seen several references to memory > > problems in the LISTSERV archives (e.g., items 021776 and 018310) and am > > wondering whether this issue may have already been addressed? If it has > > been resolved, is a compiled set of binaries for Mapserver 5.0, similar > the > > code in the link above, available for download? > > > > Thank you for any insight on this matter, > > jb > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Tue Dec 4 13:24:57 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 4 Dec 2007 13:24:57 -0800 Subject: wrong filename in FORMATOPTION leads to mapserv segfault Message-ID: within the OUTPUTFORMAT directive within the MAP directive in my map file, if I have a reference to a palette file that does not exist: FORMATOPTION "PALETTE=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo" --- [rich at peyote mapserver-5.0.0-5 12:57:43]$ ls /ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo ls: /ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo: No such file or directory --- this causes mapserv to segfault: --- [rich at peyote mapserver-5.0.0-5 12:15:34]$ LD_LIBRARY_PATH=/usr/local/lib REQUEST_METHOD=GET QUERY_STRING="map=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.rich.map&mode=map" /ext/home/rich/wrk/mapserver/mapserver-5.0.0-5/mapserv Content-type: image/png; mode=24bit Segmentation fault --- i am hacking things a bit here to run mapserv directly, bypassing the normal CGI path, so that i can run this in gdb. if i run this normally through apache2, i get a 500 error. this is not the first time that i have had a typo in a filename cause a 500 error. i'm pretty sure i've seen it for something other than the palette file, but this is the instance that i'm choosing to track down further here. running via gdb, i can track this down to mapdg.c at line 3590, the palette format option gets read: --- int msSaveImageGDCtx( gdImagePtr img, gdIOCtx *ctx, outputFormatObj *format) /* ... */ const char *palette = msGetOutputFormatOption( format, "PALETTE", "palette.txt"); gdPImg = msImageCreateWithPaletteGD(img, palette, gdImageSX(img), gdImageSY(img)); --- and at line 3441, the palette file itself gets read: --- static gdImagePtr msImageCreateWithPaletteGD( gdImagePtr img24, const char *palette, int sx, int sy) { /* ... */ if(!palette) return NULL; /* ... */ stream = fopen(palette, "r"); if(!stream) { msSetError(MS_IOERR, "Error opening palette file %s.", "msImageCreateWithPaletteGD()", palette); return NULL; } --- looks good enough to me, if the fopen() call fails, then an error should be returned. yet when i run it, that's not what happens. i can see the format option being read properly: (gdb) p format $14 = (outputFormatObj *) 0x81052b8 (gdb) p format->formatoptions[1] $15 = 0x8105228 "PALETTE=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo" (gdb) n (gdb) p palette $16 = 0x8105230 "/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo" and passed to the routine: (gdb) step msImageCreateWithPaletteGD (img24=0x0, palette=0x8105230 "/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo", sx=1600, sy=1200) at mapgd.c:3435 (gdb) p palette $17 = 0x8105230 "/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo" but what happens is that fopen() does NOT return NULL. it does return a non-null FILE*, just one that happens to be bogus: (gdb) p stream $18 = (FILE *) 0x4b0 (gdb) p *stream Cannot access memory at address 0x4b0 which then ultimately causes a segfault some time later (within the GD library code). fopen(3) claims that a NULL should be returned on error: RETURN VALUE Upon successful completion fopen, fdopen and freopen return a FILE pointer. Otherwise, NULL is returned and the global variable errno is set to indicate the error. i was a bit stumped at this point, finding it very hard to believe that there's a bug in fopen. and if i write a simple test case: --- begin --- #include #include int main (int argc, char **argv) { const char *palette = "/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo"; FILE *stream=NULL; stream = fopen(palette, "r"); if(!stream) { fprintf(stderr, "Error opening palette file %s.\n", palette); } else { fprintf(stdout, "Success at opening palette file %s.\n", palette); fclose(stream); } exit (0); } --- end --- when i run it, i properly get an error: [rich at peyote tmp 13:02:03]$ gcc -o fopen-test fopen-test.c [rich at peyote tmp 13:02:14]$ ./fopen-test Error opening palette file /ext/home/rich/wrk/mapserver/freenavi/zoom0-5.palettefoo. [rich at peyote tmp 13:02:16]$ this isn't any kind of show stopper for me, since the short answer is to just not specify a file that doesn't exist. nevertheless, i thought this might be worthwhile to bring to the attention of the developers, to see if you can replicate this behavior, or if it's just me. my OS is debian sarge (3.1). some possibly relevant installed packages are: ii gcc 3.3.5-3 The GNU C compiler ii libc6 2.3.2.ds1-22sarge6 GNU C Library: Shared libraries and Timezone data ii libc6-dev 2.3.2.ds1-22sarge6 GNU C Library: Development Libraries and Header Files ii libc6-i686 2.3.2.ds1-22sarge6 GNU C Library: Shared libraries [i686 optimized] ii gdal-bin 1.2.6-1 Geospatial Data Abstraction Library - Utility programs ii libgdal-doc 1.2.6-1 Documentation for the Geospatial Data Abstraction Library ii libgdal1 1.2.6-1 Geospatial Data Abstraction Library ii libgdal1-dev 1.2.6-1 Geospatial Data Abstraction Library - Development files and i compiled mapserver-5.0.0 with locally compiled copies of gd-2.0.35 and agg-2.5 my mapserver configure line was as follows: ./configure --with-gd=/usr/local --with-postgis --with-png --with-proj --with-threads --with-agg=/usr/local --with-freetype --without-wms --without-eppl --enable-debug -- View this message in context: http://www.nabble.com/wrong-filename-in-FORMATOPTION-leads-to-mapserv-segfault-tf4945787.html#a14159805 Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Tue Dec 4 13:43:37 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 4 Dec 2007 13:43:37 -0800 Subject: MapServer 5.0 and enable-DEBUG In-Reply-To: <14138424.post@talk.nabble.com> Message-ID: rich.fromm wrote: > > 2) I have had several instances in which a small little mistake in my map > file > (like a typo in the name of another file being referenced) was much > harder to > track down than I would have hoped, because I get no meaningful error > message > from mapserver, even with DEBUG set to 5. All I get is the same, > single > generic error message in /var/log/apache2/error.log: > > [Mon Dec 03 11:38:14 2007] [error] [client 127.0.0.1] Premature end of > script headers: mapserv > > And the webserver returns a 500 error. Is there any easy way to debug > what's the problem when something like this occurs? I suppose one way > might be to run mapserver via gdb, if indeed it is crashing, but the > standalone mapserv binary doesn't look like it's capable of that: > > $ ./mapserv > This script can only be used to decode form results and > should be initiated as a CGI process via a httpd server. > > and I don't see a C/C++ implementation of mapscript, so I'm not even > sure > exactly how I would go about doing that. (How do mapserver developers > debug it? I'm not really sure if I were to run apache2 via gdb if that > would do the right thing for a CGI application written in C.) > i figured out how to do this on my own, so i'm replying here in case it helps anyone in the future. the mapserver code to parse the cgi input is located in cgiutil.c. pay particular attention to loadParams() there are a number of ways to do this, but the simplest is to just set the REQUEST_METHOD (to GET) and QUERY_STRING environment variables and then run the mapserv binary. for a URL of a form like: http://yourhost/cgi-bin/mapserv?foo1=bar1&foo2=bar2 you want to be setting QUERY_STRING as follows: QUERY_STRING="foo1=bar1&foo2=bar2" so, a more complete example of a successful run would be: --- [rich at peyote mapserver-5.0.0-5 12:08:05]$ REQUEST_METHOD=GET QUERY_STRING="map=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.rich.map&mode=map" ./mapserv Content-type: image/png; mode=24bit ?PNG <... lots of binary data follows ..,> --- now this isn't all that useful for a successful run, because the HTTP header and body are both going to the console, and you'd need to expend a little bit of effort to process that. but what i'm interested in here is duplicating unsuccessful cases, like the following: --- [rich at peyote mapserver-5.0.0-5 12:07:44]$ REQUEST_METHOD=GET QUERY_STRING="map=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.rich.map&mode=map" ./mapserv Content-type: image/png; mode=24bit Segmentation fault --- note that the reason the same line here is an error is because the .map file has been edited. for more details, see the following thread: http://www.nabble.com/wrong-filename-in-FORMATOPTION-leads-to-mapserv-segfault-tf4945787.html anyway, with apache/cgi, this just shows up as a 500 error. but now that i can run it standalone, i can debug it via gdb and find the source of the error. note that you may have to pass other environment variables if you find the need to be passing them to apache. for example, in my apache config (/etc/apache2/sites-available/default) i have: SetEnv LD_LIBRARY_PATH /usr/local/lib to pass LD_LIBRARY_PATH to apache. which means that i also must have that properly set when directly invoking mapserv. if you're going to run gdb from within emacs (and i can't personally productively use gdb any other way), you need to either: 1) properly set your environment when invoking gdb 2) properly set your environment from within emacs 3) properly set your environment before invoking emacs i'm sure (1) and (2) ought to be possible, but i wasn't able to get them to work with a little bit of effort, so i just chose (3) and started a new emacs just for this debugging session. (feel free to reply here if you are able to get (1) or (2) to work.) -- View this message in context: http://www.nabble.com/MapServer-5.0-and-enable-DEBUG-tf4710307.html#a14160178 Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at HOSTGIS.COM Tue Dec 4 18:18:19 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 4 Dec 2007 19:18:19 -0700 Subject: Weird behavior with TrueType icons under MS5+AGG Message-ID: Since the switch from MS4+GD to MS5+AGG every layer being rendered with a true type font for an icon is being displayed with the incorrect character. In the TTF file we use (which is definitely Unicode), the character code for the nuclear symbol is: Á The character that is actually being displayed when the AGG renderer is used is the one that is mapped to the AMPERSAND... the deer head. Shortening the character specification seems to read only the first character given. I've tried taking out the ampersand and it then displays the truck icon which is mapped to the POUND SIGN. If I take that out it displays the character that is mapped to the digit ONE. The nuclear symbol is mapped to A ACUTE. I've tried inserting that and it just renders the character mapped to the letter A. This same behavior occurs with other TTF files, as well, showing the first character in the string, as opposed to the one we intend. Has the behavior of TTF symbols changed in MS5, and if so could someone point out the new syntax to me? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From perrygeo at GMAIL.COM Tue Dec 4 18:21:32 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Tue, 4 Dec 2007 18:21:32 -0800 Subject: mapserver binaries for 64-bit windows In-Reply-To: <5383fa5e0712041404p23a768f6gf9a972e012dcd659@mail.gmail.com> Message-ID: Are there any brave souls out there who have successfully compiled mapserver binaries for a 64-bit windows server? Are there any pre-compiled binary packages out there similar to ms4w for a 64-bit windows platform? A quick google search revealed that some people have succeed in running 32-bit ms4w binaries under a 64bit win2003 server (http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg00173.html). Is this recommended? I'll be deploying under IIS if that makes a difference. Thanks for the advice, PS sorry for the cross post to the ms4w list. -- Matthew T. Perry http://www.perrygeo.net From thomas.bonfort at GMAIL.COM Tue Dec 4 23:52:24 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 5 Dec 2007 08:52:24 +0100 Subject: Weird behavior with TrueType icons under MS5+AGG In-Reply-To: <47560A6B.6010400@hostgis.com> Message-ID: Gregor, this is a known bug in 5.0, and recently fixed in SVN. It'll be included in 5.2. cheers, thomas On Dec 5, 2007 3:18 AM, Gregor Mosheh wrote: > Since the switch from MS4+GD to MS5+AGG every layer being rendered with > a true type font for an icon is being displayed with the incorrect > character. > > In the TTF file we use (which is definitely Unicode), the character code > for the nuclear symbol is: Á The character that is actually being > displayed when the AGG renderer is used is the one that is mapped to the > AMPERSAND... the deer head. > > Shortening the character specification seems to read only the first > character given. I've tried taking out the ampersand and it then > displays the truck icon which is mapped to the POUND SIGN. If I take > that out it displays the character that is mapped to the digit ONE. > > The nuclear symbol is mapped to A ACUTE. I've tried inserting that and > it just renders the character mapped to the letter A. > > This same behavior occurs with other TTF files, as well, showing the > first character in the string, as opposed to the one we intend. Has the > behavior of TTF symbols changed in MS5, and if so could someone point > out the new syntax to me? > > -- > Gregor Mosheh / Greg Allensworth > System Administrator, HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > From umn-ms at HYDROTEC.DE Wed Dec 5 00:38:43 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 5 Dec 2007 09:38:43 +0100 Subject: Antwort: [UMN_MAPSERVER-USERS] Oracle spatial performance issue In-Reply-To: <14146626.post@talk.nabble.com> Message-ID: Hi > By adding the keyword /*+ ordered */ to the select statement considerably > speeds up the quary. The resulting SQL statement the looks like this: > SELECT /*+ ordered */OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur > ... What about this? LAYER NAME "N50Hoydekurver" ... DATA "SHAPE FROM (SELECT /*+ ordered */ OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur) USING UNIQUE OBJECTID VERSION 10g" ... Benedikt Rothe UMN MapServer Users List schrieb am 04.12.2007 09:33:29: > Hi! > > I have set up a mapfile with layers that uses oracle spatial data. The > problem is that the performance is rather bad. This is how I have set up the > connection in the LAYER object. > > LAYER > NAME "N50Hoydekurver" > STATUS ON > CONNECTION "user/pass at KARTINNS_SKRIVDB06" > CONNECTIONTYPE oraclespatial > DATA "SHAPE FROM KARTDATA.N50_HoydeKontur USING UNIQUE OBJECTID > VERSION 10g" > > When this layer is queried the resulting SQL that is submitted to the > database typically looks like this: > > SELECT OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur > WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS. > SDO_ORDINATE_ARRAY(-26711.6293,6726071.91,-14068.0091,6736415.72) > ),'querytype=window') = 'TRUE' > > By adding the keyword /*+ ordered */ to the select statement considerably > speeds up the quary. The resulting SQL statement the looks like this: > > SELECT /*+ ordered */OBJECTID, OBJTYPE, SHAPE FROM KARTDATA.N50_HoydeKontur > WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS. > SDO_ORDINATE_ARRAY(-26711.6293,6726071.91,-14068.0091,6736415.72) > ),'querytype=window') = 'TRUE' > > This test is performed manually because I haven't find anywhere to insert > the keyword in the mapfile. Anyone have any ideas on how I could accomplish > to tell MapServer to insert the keyword before sending the SQL to the > database? > > regards, > P?l Kristensen > -- > View this message in context: http://www.nabble.com/Oracle-spatial- > performance-issue-tf4941783.html#a14146626 > Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Wed Dec 5 00:58:40 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 5 Dec 2007 09:58:40 +0100 Subject: temp directory remain empty Message-ID: Hello list, My mapserver is not running optimal. I serve a global bathymetry raster and the maps that users request are always based upon a fixed extent (country boundaries) - Somehow nothing happens in my map-temp directory, I see no temp files appear. - If I manage to get temp files into my map-temp, will mapserver use them as cache? - Are there other ways to set up caching with mapservers? Any tip at all will be highly appreciated. Kind regards, Milo van der Linden From Piero.Cavalieri at HEIDI.IT Wed Dec 5 01:22:36 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Wed, 5 Dec 2007 10:22:36 +0100 Subject: temp directory remain empty In-Reply-To: A<47566840.4010604@zeelandnet.nl> Message-ID: Maybe your IMAGEPATH and IMAGEURL options are not correct. However images in temp dir are not used by Mapserver for caching. The cgi is stateless, and u have to find some other way to have chaching, I think. Cheers Piero -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Milo van der Linden Sent: mercoled? 5 dicembre 2007 9.59 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] temp directory remain empty Hello list, My mapserver is not running optimal. I serve a global bathymetry raster and the maps that users request are always based upon a fixed extent (country boundaries) - Somehow nothing happens in my map-temp directory, I see no temp files appear. - If I manage to get temp files into my map-temp, will mapserver use them as cache? - Are there other ways to set up caching with mapservers? Any tip at all will be highly appreciated. Kind regards, Milo van der Linden From gregor at HOSTGIS.COM Wed Dec 5 03:02:51 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 5 Dec 2007 04:02:51 -0700 Subject: Weird behavior with TrueType icons under MS5+AGG In-Reply-To: Message-ID: thomas bonfort wrote: > this is a known bug in 5.0, and recently fixed in SVN. Why, thank you. That's very helpful. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From rdmailings at DUIF.NET Wed Dec 5 03:16:17 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Wed, 5 Dec 2007 12:16:17 +0100 Subject: temp directory remain empty In-Reply-To: <47566840.4010604@zeelandnet.nl> Message-ID: Hi Milo, it depends how you use mapserver: - as a cgi - using mapserver/php script (mapscript) Using it as a cgi (as you do), there will be no temporary images: upon creating the map-image the image is streamed to the client. Using mapscript, mapscript generates an image and a page in which there is an url to THIS image. This url is unique on every request: no caching either. Caching is rather difficult with current clients: every url/bbox is almost unique. IF the extent, and everything is always the same (as you say), you could try to arrange something with a webproxy/cache (in front of mapserver), this will then serve a cached version of your image. But this has not something to do with mapserver(s temp directory). OR you should use a tiling server, and a client which can use that. With tiles your are caching. Gr Richard Duivenvoorde Milo van der Linden wrote: > Hello list, > > My mapserver is not running optimal. > > I serve a global bathymetry raster and the maps that users request are > always based upon a fixed extent (country boundaries) > - Somehow nothing happens in my map-temp directory, I see no temp files > appear. > - If I manage to get temp files into my map-temp, will mapserver use > them as cache? > - Are there other ways to set up caching with mapservers? > > Any tip at all will be highly appreciated. > > Kind regards, > > Milo van der Linden From szekerest at GMAIL.COM Wed Dec 5 03:47:51 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 5 Dec 2007 12:47:51 +0100 Subject: mapserver binaries for 64-bit windows In-Reply-To: <5383fa5e0712041821n2a2ddcc9m62d31759054a1676@mail.gmail.com> Message-ID: Matthew, You can examine the x64 compilation in action at the buildbot: http://buildbot.osgeo.org:8504/waterfall All of the windows builders run on Windows Server 2003 R2 x64, but only the szekerest-vc80x64 buildslave compiles 64 bit images. The results of the recent build can be downloaded from here (for testing purposes): http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80x64-full/package/bin.zip It must be noted that not all of the dependencies were compiled in. Some of the libraries (like SDE) do not have have x64 support, but all of the dependent dll-s have to be 64 bit images as well. Best regards, Tamas 2007/12/5, Matthew Perry : > Are there any brave souls out there who have successfully compiled > mapserver binaries for a 64-bit windows server? Are there any > pre-compiled binary packages out there similar to ms4w for a 64-bit > windows platform? > > A quick google search revealed that some people have succeed in > running 32-bit ms4w binaries under a 64bit win2003 server > (http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg00173.html). > Is this recommended? > > I'll be deploying under IIS if that makes a difference. > > Thanks for the advice, > > PS sorry for the cross post to the ms4w list. > -- > Matthew T. Perry > http://www.perrygeo.net > From aberenyi at BURKEN.HU Wed Dec 5 04:10:44 2007 From: aberenyi at BURKEN.HU (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Wed, 5 Dec 2007 13:10:44 +0100 Subject: dgn to mysql Message-ID: Dear Folks, I've tried to convert a DGN drawing to MySQL with ogr2ogr, but I've got this error message: "ERROR 1: MySQL error message:Column 'SHAPE' cannot be null Description: INSERT INTO elements (SHAPE , type, level, graphicgroup, colorindex, weight, style) VALUES (GeometryFromText('LINESTRING (600 200 0,650 230 0)',-1) , 3, 1, 0, 0, 0, 0)" The appropriate command: "ogr2ogr -f MySQL MySQL:test,user=xxx,password=xxx drawing.dgn -overwrite -nlt GEOMETRY " I've edited the MySQL table, but no success at all. Any idea? Could be because of the 3 dimensional drawing? Thanks in advance, Attila From Markus.Weissmann at LGN.NIEDERSACHSEN.DE Wed Dec 5 04:51:44 2007 From: Markus.Weissmann at LGN.NIEDERSACHSEN.DE (=?iso-8859-1?Q?=22Wei=DFmann=2C_Markus=22?=) Date: Wed, 5 Dec 2007 13:51:44 +0100 Subject: 3D-Objekte =?iso-8859-1?Q?=FCber?= WFS Message-ID: Hallo Liste, ist es eigentlich m?glich, in einer PostgreSQL/PostGIS-DB gehaltene 3D-Objekte ?ber den UMN-Mapserver als WFS bereitzustellen? Den WFS habe ich erstellt, bisher bekomme ich aber per Request nur 2D-Koordinaten heraus. Mit Geoserver ist es das gleiche Problem. Mit freundlichem Gru? Markus Wei?mann -------------- next part -------------- An HTML attachment was scrubbed... URL: From arthan at DSL.TTNET.NET.TR Wed Dec 5 05:24:43 2007 From: arthan at DSL.TTNET.NET.TR (Volkan Ulukut) Date: Wed, 5 Dec 2007 15:24:43 +0200 Subject: temp directory remain empty In-Reply-To: <47566840.4010604@zeelandnet.nl> Message-ID: Hey, I'm using ka-map for caching and it works perfect. Ka-map uses mapscript to create tiles of the image you request and if that tile is created before it used the cached image so you don't have to recreate every image. You only create once which can also be done by precaching so your users will experience a very fast service. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Milo van der Linden Sent: Wednesday, December 05, 2007 10:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] temp directory remain empty Hello list, My mapserver is not running optimal. I serve a global bathymetry raster and the maps that users request are always based upon a fixed extent (country boundaries) - Somehow nothing happens in my map-temp directory, I see no temp files appear. - If I manage to get temp files into my map-temp, will mapserver use them as cache? - Are there other ways to set up caching with mapservers? Any tip at all will be highly appreciated. Kind regards, Milo van der Linden From David.Fawcett at STATE.MN.US Wed Dec 5 05:55:32 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 5 Dec 2007 07:55:32 -0600 Subject: temp directory remain empty In-Reply-To: A<47568881.6080706@duif.net> Message-ID: As Richard said, if you are using cgi with mode=map, no image is written to disk, it is just streamed to the client. If you are using cgi in mode=browse, the default mode, you will write images to the temp folder. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Duivenvoorde Sent: Wednesday, December 05, 2007 5:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] temp directory remain empty Hi Milo, it depends how you use mapserver: - as a cgi - using mapserver/php script (mapscript) Using it as a cgi (as you do), there will be no temporary images: upon creating the map-image the image is streamed to the client. Using mapscript, mapscript generates an image and a page in which there is an url to THIS image. This url is unique on every request: no caching either. Caching is rather difficult with current clients: every url/bbox is almost unique. IF the extent, and everything is always the same (as you say), you could try to arrange something with a webproxy/cache (in front of mapserver), this will then serve a cached version of your image. But this has not something to do with mapserver(s temp directory). OR you should use a tiling server, and a client which can use that. With tiles your are caching. Gr Richard Duivenvoorde Milo van der Linden wrote: > Hello list, > > My mapserver is not running optimal. > > I serve a global bathymetry raster and the maps that users request are > always based upon a fixed extent (country boundaries) > - Somehow nothing happens in my map-temp directory, I see no temp files > appear. > - If I manage to get temp files into my map-temp, will mapserver use > them as cache? > - Are there other ways to set up caching with mapservers? > > Any tip at all will be highly appreciated. > > Kind regards, > > Milo van der Linden From mlinden at ZEELANDNET.NL Wed Dec 5 05:53:40 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 5 Dec 2007 14:53:40 +0100 Subject: temp directory remain empty In-Reply-To: <20071205132445.VIGU2282.fep01.ttnet.net.tr@volkan> Message-ID: Thank you all for the responses! I am using Mapserver as cgi. Main purpose is to serve data through wms. The options mentioned are therefor not usable for me. Is there anyone out there that knows how to implement some sort of caching on webserver level that can interpret the request and say ah, I allready have this image on disk! and then returns the image instead of firing the request to mapserver again? Piero Cavalieri wrote: Maybe your IMAGEPATH and IMAGEURL options are not correct. However images in temp dir are not used by Mapserver for caching. The cgi is stateless, and u have to find some other way to have chaching, I think. Richard Duivenvoorde wrote: it depends how you use mapserver: - as a cgi - using mapserver/php script (mapscript) Using it as a cgi (as you do), there will be no temporary images: upon creating the map-image the image is streamed to the client. Using mapscript, mapscript generates an image and a page in which there is an url to THIS image. This url is unique on every request: no caching either. Caching is rather difficult with current clients: every url/bbox is almost unique. IF the extent, and everything is always the same (as you say), you could try to arrange something with a webproxy/cache (in front of mapserver), this will then serve a cached version of your image. But this has not something to do with mapserver(s temp directory). OR you should use a tiling server, and a client which can use that. With tiles your are caching. Volkan Ulukut wrote: > I'm using ka-map for caching and it works perfect. Ka-map uses > mapscript to > create tiles of the image you request and if that tile is created > before it > used the cached image so you don't have to recreate every image. You only > create once which can also be done by precaching so your users will > experience a very fast service. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Wed Dec 5 06:13:47 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 5 Dec 2007 15:13:47 +0100 Subject: temp directory remain empty In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB903@s-sp22.pca.state.mn.us> Message-ID: Mapserver is only requested as wms, so no mode=map or mode=browse is used. Is it possible to somehow implement mode=browse or mode=map with a wms server? And if this results in the images being written to disk; is there script available to transfer the request to a image that is allready on disk? my webserver had perl, python and asp.net a scripting languages available, so preferably a script would be in one of these languages. Any commercial suggestions would also be appreciated. Fawcett, David schreef: > As Richard said, if you are using cgi with mode=map, no image is written > to disk, it is just streamed to the client. > > If you are using cgi in mode=browse, the default mode, you will write > images to the temp folder. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Richard Duivenvoorde > Sent: Wednesday, December 05, 2007 5:16 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] temp directory remain empty > > > Hi Milo, > it depends how you use mapserver: > - as a cgi > - using mapserver/php script (mapscript) > > Using it as a cgi (as you do), there will be no temporary images: upon > creating the map-image the image is streamed to the client. Using > mapscript, mapscript generates an image and a page in which there > is an url to THIS image. This url is unique on every request: no caching > > either. > > Caching is rather difficult with current clients: every url/bbox is > almost unique. > IF the extent, and everything is always the same (as you say), you could > > try to arrange something with a webproxy/cache (in front of mapserver), > this will then serve a cached version of your image. But this has not > something to do with mapserver(s temp directory). > OR you should use a tiling server, and a client which can use that. With > > tiles your are caching. > > Gr Richard Duivenvoorde > > > Milo van der Linden wrote: > >> Hello list, >> >> My mapserver is not running optimal. >> >> I serve a global bathymetry raster and the maps that users request are >> always based upon a fixed extent (country boundaries) >> - Somehow nothing happens in my map-temp directory, I see no temp >> > files > >> appear. >> - If I manage to get temp files into my map-temp, will mapserver use >> them as cache? >> - Are there other ways to set up caching with mapservers? >> >> Any tip at all will be highly appreciated. >> >> Kind regards, >> >> Milo van der Linden >> > > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Wed Dec 5 06:39:42 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 5 Dec 2007 07:39:42 -0700 Subject: temp directory remain empty In-Reply-To: <4756B21B.7030908@zeelandnet.nl> Message-ID: Hi, Milo. :) Using Mapserver as a WMS server, it doesn't touch the temp directory. That's normal. The mapserv binary doesn't offer a way to force the image to be dumped to disk, nor will it look for a previous identical request and reuse the image. If you want generated images to be cached, have you considered using TileCache? It does exactly what you want, I think: it acts as a WMS proxy, saves the "tile" to disk, and will regurgitate that same tile later. I use TileCache extensively on a few projects, and it is a miracle for situations where the WMS requests are very expensive. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at HOSTGIS.COM Wed Dec 5 06:49:00 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 5 Dec 2007 07:49:00 -0700 Subject: temp directory remain empty In-Reply-To: <4756B82E.4050103@hostgis.com> Message-ID: Gregor Mosheh wrote: > mapserv binary doesn't offer a way to force the image > to be dumped to disk, nor will it look for a previous identical request > and reuse the image. On the other hand, Mapscript DOES allow you to do both of these. But why bother, when people far smarter than us invented TileCache and the WMS-C specification? :) -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From matt.pettis at THOMSON.COM Wed Dec 5 07:17:51 2007 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Wed, 5 Dec 2007 09:17:51 -0600 Subject: temp directory remain empty In-Reply-To: <4756B82E.4050103@hostgis.com> Message-ID: Can you point to some good TileCache examples? I've been trying to come up with a home-grown caching system, and I'd love to use one built by someone smarter than me who's already done the work... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh Sent: Wednesday, December 05, 2007 8:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] temp directory remain empty Hi, Milo. :) Using Mapserver as a WMS server, it doesn't touch the temp directory. That's normal. The mapserv binary doesn't offer a way to force the image to be dumped to disk, nor will it look for a previous identical request and reuse the image. If you want generated images to be cached, have you considered using TileCache? It does exactly what you want, I think: it acts as a WMS proxy, saves the "tile" to disk, and will regurgitate that same tile later. I use TileCache extensively on a few projects, and it is a miracle for situations where the WMS requests are very expensive. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at HOSTGIS.COM Wed Dec 5 07:23:54 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 5 Dec 2007 08:23:54 -0700 Subject: temp directory remain empty In-Reply-To: <89C159F45B13A24682D98BDEF58E451F13D28F3E@TLRUSMNEAGMBX28.ERF.THOMSON.COM> Message-ID: matt.pettis at thomson.com wrote: > Can you point to some good TileCache examples? I've been trying to come > up with a home-grown caching system, and I'd love to use one built by > someone smarter than me who's already done the work... Well, it's a bit off-topic, discussing TileCache examples, but okay... This one is still very much in progress. Expect it to be slow, as cache-seeding is still in progress. http://69.59.158.15/spraywatch2/ This one is still a pilot, not yet reviewed by the client. Go ahead and create an account and you'll see the mapping components inside. http://www.redwoodag.com/ TileCache's website is www.tilecache.org and as far as I know, it's still the only WMS-C server out there. It's made by the same folks who created OpenLayers, and I usually use it with OpenLayers, but as long as one has a map app contrived to only show certain zooms+scales (that is, "tiles") then it should work for those needs. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at HOSTGIS.COM Wed Dec 5 07:52:37 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 5 Dec 2007 08:52:37 -0700 Subject: temp directory remain empty In-Reply-To: <4756C81D.3020504@zeelandnet.nl> Message-ID: > Only problem is; specific client > software is accessing my wms and these clients do not support tilecache > or wms-c. Ahhh, I see. That's too bad then. > So the server will have to talk plain wms and some tricking > has to be done on the server to handle the request and pass it to the > cache when it is available. Fair enough. You'll have to use a Mapscript wrapper then (Python, Perl, PHP? up to you) which takes WMS-like arguments, checks for non-existence of an already-generated "tile", generates it if necessary, then serves up the tile in either case. Rolling your own, I guess, wouldn't be difficult at all. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From mlinden at ZEELANDNET.NL Wed Dec 5 07:47:41 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 5 Dec 2007 16:47:41 +0100 Subject: temp directory remain empty In-Reply-To: <4756BA5C.8040101@hostgis.com> Message-ID: Hello Gregor, With help from Richard Duivenvoorde I managed to set up tilecache a while a go and it worked like a charm. Only problem is; specific client software is accessing my wms and these clients do not support tilecache or wms-c. So the server will have to talk plain wms and some tricking has to be done on the server to handle the request and pass it to the cache when it is available. Gregor Mosheh schreef: > Gregor Mosheh wrote: >> mapserv binary doesn't offer a way to force the image to be dumped to >> disk, nor will it look for a previous identical request and reuse the >> image. > > On the other hand, Mapscript DOES allow you to do both of these. But > why bother, when people far smarter than us invented TileCache and the > WMS-C specification? :) > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at EDAC.UNM.EDU Wed Dec 5 07:34:23 2007 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Wed, 5 Dec 2007 08:34:23 -0700 Subject: Problems compiling Mapserver 5.0.0 Message-ID: Hello, I am trying to install Mapserver 5.0.0 on a machine running Suse Linux 10.1. I have used the following configure statement with no errors: ./configure --with-freetype=/usr/bin/freetype-config --with-zlib=/usr/local/zlib --with-png=/usr/local/png --with-jpeg=/usr/local/jpeg --with-gd=/usr/local --with-proj=/usr/local/proj --with-geos=/usr/local/geos/bin/geos-config --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/httpd2 --with-php=/usr/include/php5 When I try to run make, I get the following errors (I have only included the last few lines of the output): mappostgis.c:1647: error: ?PGresult? undeclared (first use in this function) mappostgis.c:1647: error: ?query_result? undeclared (first use in this function) mappostgis.c:1735: error: ?msPOSTGISLayerInfo? has no member named ?conn? mappostgis.c:1743: error: ?msPOSTGISLayerInfo? has no member named ?conn? mappostgis.c:1744: error: ?PGRES_TUPLES_OK? undeclared (first use in this function) mappostgis.c:1794: warning: passing argument 2 of ?strcpy? makes pointer from integer without a cast make: *** [mappostgis.o] Error 1 Any help would be appreciated, Bill From matt.pettis at THOMSON.COM Wed Dec 5 08:06:10 2007 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Wed, 5 Dec 2007 10:06:10 -0600 Subject: temp directory remain empty In-Reply-To: <4756C945.3020805@hostgis.com> Message-ID: Milo, I have some .php code that is fairly well documented that does zooming on a map and caches the map at the max extent. If you zoom in, you create a unique map, but if you request a map whose extent covers >80% of the max extent, it defaults to using the cached image of the max extent. Let me know if you are interested, and I'll send you the specific .php file... I think it is documented well enough to give you an idea of how I'm currently handling caching... matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh Sent: Wednesday, December 05, 2007 9:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] temp directory remain empty > Only problem is; specific client > software is accessing my wms and these clients do not support > tilecache or wms-c. Ahhh, I see. That's too bad then. > So the server will have to talk plain wms and some tricking has to be > done on the server to handle the request and pass it to the cache when > it is available. Fair enough. You'll have to use a Mapscript wrapper then (Python, Perl, PHP? up to you) which takes WMS-like arguments, checks for non-existence of an already-generated "tile", generates it if necessary, then serves up the tile in either case. Rolling your own, I guess, wouldn't be difficult at all. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From warmerdam at POBOX.COM Wed Dec 5 08:23:15 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 5 Dec 2007 11:23:15 -0500 Subject: Problems compiling Mapserver 5.0.0 In-Reply-To: <1196868863.4953.6.camel@localhost> Message-ID: William Hudspeth wrote: > Hello, > > I am trying to install Mapserver 5.0.0 on a machine running Suse Linux > 10.1. I have used the following configure statement with no errors: > > ./configure --with-freetype=/usr/bin/freetype-config > --with-zlib=/usr/local/zlib --with-png=/usr/local/png > --with-jpeg=/usr/local/jpeg --with-gd=/usr/local > --with-proj=/usr/local/proj --with-geos=/usr/local/geos/bin/geos-config > --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg-config --with-wfs --with-wcs > --with-wmsclient --with-wfsclient > --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/httpd2 > --with-php=/usr/include/php5 > > When I try to run make, I get the following errors (I have only included > the last few lines of the output): > > mappostgis.c:1647: error: ?PGresult? undeclared (first use in this > function) William, I'd suggest you look closely at what gets set for the following lines in your Makefile: # Optional PostGIS Support. See http://postgis.refractions.net/ POSTGIS= -DUSE_POSTGIS POSTGIS_LIB= -L/usr/lib/postgresql/8.0/lib -lpq POSTGIS_INC= -I/usr/include/postgresql Also, the most important thing to see is the compile line for mappostgis and the first few errors. I'd like to confirm that -DUSE_POSTGIS is on the compile line, and see if any include files are reporting as not found. I am guessing that pg-config is not returning appropriate configuration information for your setup, and that this is causing libpq-fe.h to not be found. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From bhudspeth at EDAC.UNM.EDU Wed Dec 5 08:56:16 2007 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Wed, 5 Dec 2007 09:56:16 -0700 Subject: Problems compiling Mapserver 5.0.0 Message-ID: William Hudspeth wrote: > Hello, > > I am trying to install Mapserver 5.0.0 on a machine running Suse Linux > 10.1. I have used the following configure statement with no errors: > > ./configure --with-freetype=/usr/bin/freetype-config > --with-zlib=/usr/local/zlib --with-png=/usr/local/png > --with-jpeg=/usr/local/jpeg --with-gd=/usr/local > --with-proj=/usr/local/proj --with-geos=/usr/local/geos/bin/geos-config > --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg-config --with-wfs --with-wcs > --with-wmsclient --with-wfsclient > --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/httpd2 > --with-php=/usr/include/php5 > > When I try to run make, I get the following errors (I have only included > the last few lines of the output): > > mappostgis.c:1647: error: ?PGresult? undeclared (first use in this > function) William, I'd suggest you look closely at what gets set for the following lines in your Makefile: # Optional PostGIS Support. See http://postgis.refractions.net/ POSTGIS= -DUSE_POSTGIS POSTGIS_LIB= -L/usr/lib/postgresql/8.0/lib -lpq POSTGIS_INC= -I/usr/include/postgresql Also, the most important thing to see is the compile line for mappostgis and the first few errors. I'd like to confirm that -DUSE_POSTGIS is on the compile line, and see if any include files are reporting as not found. I am guessing that pg-config is not returning appropriate configuration information for your setup, and that this is causing libpq-fe.h to not be found. Best regards, ------------------------------------------------------------------ Frank, Thanks for responding. You were right about pg-config not returning appropriate configuration information. I made the changes to the Makefile, pointing to the existing /lib and /include directories for my installation of postgresql (e.g. /usr/local/pgsql). When I run make again, it gets a little further along, and then throws the following errors: g++ -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/proj/include -I/usr/src/packages/BUILD/gdal-root//usr/include -I/usr/local/pgsql/include -I/usr/local/geos/include shp2img.o -L. -lmapserver -L/usr/local/lib -lgd -ljpeg -lfreetype -L/usr/local/png/lib -lpng -lz -ljpeg -lfreetype -L/usr/local/png/lib -lpng -lz -L/usr/local/proj/lib -lproj -ljpeg -L/usr/src/packages/BUILD/gdal-root//usr/lib -lgdal -L/usr/lib -lgeos -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lsqlite3 -L/usr/local/pgsql/lib -lpq -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/geos/lib -lgeos_c -lc -lz -lm -lstdc++ -o shp2img ./libmapserver.a(mapgeos.o): In function `msGEOSLength': mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' ./libmapserver.a(mapgeos.o): In function `msGEOSArea': mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 The Makefile reference to GEOS is: # Optional GEOS Support. # See http://geos.refractions.net/ GEOS= -DUSE_GEOS GEOS_LIB= -L/usr/local/geos/lib -lgeos_c GEOS_INC= -I/usr/local/geos/include Thank you, W From project10 at PROJECT10.NET Wed Dec 5 10:50:43 2007 From: project10 at PROJECT10.NET (Shawn Gervais) Date: Wed, 5 Dec 2007 12:50:43 -0600 Subject: Draw order of DEFAULT layers in WMS Message-ID: Greetings list, I noticed while playing with DEFAULT layers that they were being drawn behind all my other layers. After looking at the code, I found that mapwms.c will draw DEFAULT layers before any others, and does not respect the draw order that the WMS client provides. I think this violates the WMS 1.1.1 spec - 01-068r3 7.2.3.3 which states: "A WMS shall render the requested layers by drawing the leftmost in the list bottommost, the next one over that, and so on." From the WMS client's perspective, it has no idea what a layer's STATUS is. I have attached a patch which will respect the draw order for DEFAULT layers, if they are specified in the LAYERS parameter. If they are not specified, the old behavior is used. I would appreciate feedback, if anyone has, on whether this is worthy of submitting as a ticket. -Shawn -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mapwms-default_draworder.patch URL: From Bob.Basques at CI.STPAUL.MN.US Wed Dec 5 11:04:21 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 5 Dec 2007 13:04:21 -0600 Subject: Google-ish Cartography Message-ID: All, Anyone have a pointer to a Google-ish looking Mapfile. I would like to play around with this a bit. Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Wed Dec 5 12:19:20 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 5 Dec 2007 13:19:20 -0700 Subject: Rendering glitches with MS 5.1-devel Message-ID: I'm having some rendering glitches with Mapserver 5.1-dev Go to http://69.59.158.8/ and let the map load. There is no need to zoom in, nor to pan anywhere in particular, to see the issues. * Satellite: has that big black rectangle to the south, and the green corners of a rectangle. This doesn't happen under 5.0.0 * Interstate Highways: Some of the shields are faded and odd looking. This does happen under 5.0.0 I do notice that the shields are ones which corss tile boundaries, maybe that's the issue? * Base: There's a very visible rendering glitch over Minnesota and Michigan, and over New England. This doesn't happen under 5.0.0 The map is using AGG/PNG for all layers. I'm using the dev because this map uses TrueType symbols, and those are known not to work in MS 5.0.0 The svn version does fix that error, but seems to introduce these new ones. Any ideas? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From perrygeo at GMAIL.COM Wed Dec 5 13:16:27 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Wed, 5 Dec 2007 13:16:27 -0800 Subject: Google-ish Cartography In-Reply-To: Message-ID: On Dec 5, 2007 11:04 AM, Bob Basques wrote: > Anyone have a pointer to a Google-ish looking Mapfile. Take a look at http://boston.freemap.in/basemap.map -- Matthew T. Perry http://www.perrygeo.net From zhonghaiw at GMAIL.COM Wed Dec 5 14:15:27 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 5 Dec 2007 23:15:27 +0100 Subject: Google-ish Cartography In-Reply-To: <5383fa5e0712051316j42103cc5p9b43b60fb73f67e0@mail.gmail.com> Message-ID: Hi there, nice map! Are you using AGG for image rendering? Kind Regards Zhonghai On Dec 5, 2007 10:16 PM, Matthew Perry wrote: > On Dec 5, 2007 11:04 AM, Bob Basques wrote: > > Anyone have a pointer to a Google-ish looking Mapfile. > > Take a look at http://boston.freemap.in/basemap.map > > -- > Matthew T. Perry > http://www.perrygeo.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrygeo at GMAIL.COM Wed Dec 5 14:20:31 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Wed, 5 Dec 2007 14:20:31 -0800 Subject: Google-ish Cartography In-Reply-To: <2534c4120712051415i65616b73g92bd6bcef1f0a963@mail.gmail.com> Message-ID: That's a good question. You'll have to ask Chris or Schuyler (they made the map not me!). Their contacts are listed at the bottom-right of the boston.freemap.in website. - matt On Dec 5, 2007 2:15 PM, Zhonghai Wang wrote: > Hi there, > > nice map! Are you using AGG for image rendering? > > Kind Regards > > Zhonghai > > > > On Dec 5, 2007 10:16 PM, Matthew Perry wrote: > > > > On Dec 5, 2007 11:04 AM, Bob Basques < Bob.Basques at ci.stpaul.mn.us> wrote: > > > Anyone have a pointer to a Google-ish looking Mapfile. > > > > Take a look at http://boston.freemap.in/basemap.map > > > > -- > > Matthew T. Perry > > http://www.perrygeo.net > > > > -- Matthew T. Perry http://www.perrygeo.net "Never ascribe to malice, that which can be adequately explained by incompetence." From crschmidt at METACARTA.COM Wed Dec 5 14:27:19 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Wed, 5 Dec 2007 17:27:19 -0500 Subject: Google-ish Cartography In-Reply-To: <5383fa5e0712051420i377c44dev1998a763ef4165e@mail.gmail.com> Message-ID: On Wed, Dec 05, 2007 at 02:20:31PM -0800, Matthew Perry wrote: > That's a good question. You'll have to ask Chris or Schuyler (they > made the map not me!). Their contacts are listed at the bottom-right > of the boston.freemap.in website. As the mapfile says: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB extension "png" mimetype "image/png" TRANSPARENT OFF FORMATOPTION "INTERLACE=OFF" END It seems likely. (The answer is yes.) Regards, -- Christopher Schmidt MetaCarta From roedder at UNI-KOBLENZ.DE Wed Dec 5 15:56:10 2007 From: roedder at UNI-KOBLENZ.DE (=?ISO-8859-15?Q?Marc_R=F6dder?=) Date: Thu, 6 Dec 2007 00:56:10 +0100 Subject: Rotate Map with Mapserv Message-ID: Hi, is there currently a possibility to rotate a map via mapserv and return this as a jpeg? is there some kind of heading (from 0 to 360) i can give the server via $_GET? Help is highly appreciated. ;) Greets, Marc From nospam420 at YAHOO.COM Wed Dec 5 16:55:50 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Wed, 5 Dec 2007 16:55:50 -0800 Subject: Rotate Map with Mapserv In-Reply-To: <47573A9A.80005@uni-koblenz.de> Message-ID: Marc R?dder wrote: > > is there currently a possibility to rotate a map via mapserv and return > this as a jpeg? is there some kind of heading (from 0 to 360) i can give > the server via $_GET? > from http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj works fine for me with png, never tried jpg. - rich p.s. I think the second item (about mapscript) is a lie. i think i've gotten it working with CGI mode. ------------------------------------------------------------------------------- ANGLE [double] Angle, given in degrees, to rotate the map. Default is 0. The rendered map will rotate in a clockwise direction. The following are important notes: * Requires a PROJECTION object specified at the MAP level and for each LAYER object (even if all layers are in the same projection). * Requires MapScript (SWIG, PHPMapscript). Does not work with CGI mode. * If using the LABEL object's ANGLE or the LAYER object's LABELANGLEITEM parameters as well, these parameters are relative to the map's orientation (i.e. they are computed after the MAP object's ANGLE). For example, if you have specified an ANGLE for the map of 45, and then have a layer LABELANGLEITEM value of 45, the resulting label will not appear rotated (because the resulting map is rotated clockwise 45 degrees and the label is rotated counter-clockwise 45 degrees). * More information can be found on the MapRotation Wiki Page -- View this message in context: http://www.nabble.com/Rotate-Map-with-Mapserv-tf4953219.html#a14184238 Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at GEOANALYTIC.COM Wed Dec 5 17:01:13 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 5 Dec 2007 18:01:13 -0700 Subject: Rotate Map with Mapserv In-Reply-To: <47573A9A.80005@uni-koblenz.de> Message-ID: Marc, Sort of. Have a look at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapRotation Brent Fraser > Hi, > > is there currently a possibility to rotate a map via mapserv and return > this as a jpeg? is there some kind of heading (from 0 to 360) i can give > the server via $_GET? > > Help is highly appreciated. ;) > > Greets, > Marc > From nospam420 at YAHOO.COM Wed Dec 5 17:03:14 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Wed, 5 Dec 2007 17:03:14 -0800 Subject: Rotate Map with Mapserv In-Reply-To: <14184238.post@talk.nabble.com> Message-ID: rich.fromm wrote: > > p.s. I think the second item (about mapscript) is a lie. i think i've > gotten > it working with CGI mode. > indeed, i just tried a .map file where i have: MAP # ... ANGLE 0 and accessed it via cgi and appended '&map.angle=135' to the URL and it did the right thing - rich -- View this message in context: http://www.nabble.com/Rotate-Map-with-Mapserv-tf4953219.html#a14184429 Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at GMAIL.COM Wed Dec 5 23:28:15 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 6 Dec 2007 08:28:15 +0100 Subject: Rendering glitches with MS 5.1-devel In-Reply-To: <475707C8.4070707@hostgis.com> Message-ID: Gregor, quantization is poorly supported for rgba images, you'll have to use 24bit pngs in that case. thomas On Dec 5, 2007 9:19 PM, Gregor Mosheh wrote: > I'm having some rendering glitches with Mapserver 5.1-dev > > Go to http://69.59.158.8/ and let the map load. > There is no need to zoom in, nor to pan anywhere in particular, to see > the issues. > > * Satellite: has that big black rectangle to the south, and the green > corners of a rectangle. This doesn't happen under 5.0.0 > > * Interstate Highways: Some of the shields are faded and odd looking. > This does happen under 5.0.0 I do notice that the shields are ones which > corss tile boundaries, maybe that's the issue? > > * Base: There's a very visible rendering glitch over Minnesota and > Michigan, and over New England. This doesn't happen under 5.0.0 > > The map is using AGG/PNG for all layers. > > > I'm using the dev because this map uses TrueType symbols, and those are > known not to work in MS 5.0.0 The svn version does fix that error, but > seems to introduce these new ones. > > Any ideas? > > -- > Gregor Mosheh / Greg Allensworth > System Administrator, HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > From karsten at TERRAGIS.NET Thu Dec 6 00:00:47 2007 From: karsten at TERRAGIS.NET (karsten vennemann) Date: Thu, 6 Dec 2007 00:00:47 -0800 Subject: Do Mapserver enables distributed processing spatial data? Message-ID: If you want to use your data in may different clients and/or from a variety of distributed locations - you can look into serving them with as Web Mapping Services (WMS ? for raster output) or Web Feature Services WFS (for vector output) using an engine like mapserver or geoserver. The data can then be accessed over the web via a lot of different clients, mapserver itself, GGIS, Udig, ArcGIS etc. Take a look at Mapserver and WMS http://mapserver.gis.umn.edu/docs/howto/wms_server Mapserver and WFS http://mapserver.gis.umn.edu/docs/howto/wfs_server OGC web services workshop http://ms-ogc-workshop.maptools.org/ Practical ? mapfile sample snipplets http://mappinghacks.com/projects/mapscript/03_mapserver_wfs.html Karsten _____ From: Luis Angel Monge De La Cruz [mailto:boommonge at GMAIL.COM] Sent: Monday, December 03, 2007 13:48 Subject: Re: Do Mapserver enables distributed processing spatial data? Thanks for the suggestions. These options sound good. But the reason to have the database in more than one computer, is that really so are available, it is unlikely that the information is integrated into a single site, the application is for risk management, where there are layers of information disseminated in several locations, including various sources, such as graphics files, dbf, and postgresql. I am currently studying for a master and my idea is to propose improvements to mapserver in this regard. ?how? Developing a mechanism to be included in the file. Map more than one source to a layer, so something like a mirror, and that the choice of the server is based not only on the availability of the source, also the bandwidth , reliability and others. On Dec 3, 2007 6:49 PM, Milo van der Linden < mlinden at zeelandnet.nl > wrote: No, mapserver cannot switch automatically unless you tell it to in a php script or something. But why put these databases on two computers? Why not use a single server that is always on and holds the database? There are many ways to achieve this, but that is basically no mapserver issue. First of all, storing gis data on a single computer always makes it stand alone. Storing it on a server makes it available to the server and to servers with rights on that particular server via the network. Best thing I would do if I where you: - Set up a postGIS spatial database and provide both workstations with access. If you use qGIS or openJump as the GIS client, this is a very workable situation. - If you want to do the same, but with a more commercial solution; consider MapInfo with SQL-server Spatialware or ArcView with SDE. Databases have the advantage that they are designed to be multi-user where as GIS data most of the time is not. Luis Angel Monge De La Cruz schreef: Hi! This is my question. Do Mapserver enables distributed processing spatial data? Information - Two computers - Each computer has a spatial database - What happen?. If I want to obtain a spatial data from the computer # 1 through mapserver and is not available this database. Can mapserver look so automatic that spatial data in the database from the computer computer # 2? -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Thu Dec 6 00:34:18 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 6 Dec 2007 01:34:18 -0700 Subject: Rendering glitches with MS 5.1-devel In-Reply-To: Message-ID: thomas bonfort wrote: > quantization is poorly supported for rgba images, you'll have to use > 24bit pngs in that case. I'm sorry for not including the relevant section of mapfile. OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION png TRANSPARENT on FORMATOPTION "INTERLACE=no" END To reiterate, the map is: http://69.59.158.8/ The highways layer's shields, and the base layer's bleed-over from Canada into the USA (turn off satellite), are the most obvious bugs. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From mlinden at ZEELANDNET.NL Thu Dec 6 02:21:39 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 6 Dec 2007 11:21:39 +0100 Subject: mapscript: python24.dll not found (using python25) Message-ID: Hello list! I am trying to set up the mapserver py wrapper that is documented on the mapserver website. For this I unzipped the mapscript python files from the MS4W package. Then I run the test-cgi-mapscript.py. My machine is windows 2003. When running the script from the command line, a windows dialog pops up saying that the python24.dll is not found. My guess is that this has to do with the mapscript.dll trying to hook on to python24.dll Can I simply copy the python24.dll into my python25 installation? Can I run two pythons next to each other? Or is there a compiled version of mapscript available that hooks into the python25.dll? Kind regards, Milo van der Linden -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at EDAC.UNM.EDU Thu Dec 6 06:38:37 2007 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Thu, 6 Dec 2007 07:38:37 -0700 Subject: Problems with Compiling Mapserver 5.0 Message-ID: I am trying to install Mapserver 5.0.0 on a machine running Suse Linux 10.1. I have used the following configure statement with no errors: ./configure --with-freetype=/usr/bin/freetype-config --with-zlib=/usr/local/zlib --with-png=/usr/local/png --with-jpeg=/usr/local/jpeg --with-gd=/usr/local --with-proj=/usr/local/proj --with-geos=/usr/local/geos/bin/geos-config --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/httpd2 --with-php=/usr/include/php5 When I run make, I get the following errors: g++ -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/proj/include -I/usr/src/packages/BUILD/gdal-root//usr/include -I/usr/local/pgsql/include -I/usr/local/geos/include shp2img.o -L. -lmapserver -L/usr/local/lib -lgd -ljpeg -lfreetype -L/usr/local/png/lib -lpng -lz -ljpeg -lfreetype -L/usr/local/png/lib -lpng -lz -L/usr/local/proj/lib -lproj -ljpeg -L/usr/src/packages/BUILD/gdal-root//usr/lib -lgdal -L/usr/lib -lgeos -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lsqlite3 -L/usr/local/pgsql/lib -lpq -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/geos/lib -lgeos_c -lc -lz -lm -lstdc++ -o shp2img ./libmapserver.a(mapgeos.o): In function `msGEOSLength': mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' ./libmapserver.a(mapgeos.o): In function `msGEOSArea': mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 The Makefile reference to GEOS is: # Optional GEOS Support. # See http://geos.refractions.net/ GEOS= -DUSE_GEOS GEOS_LIB= -L/usr/local/geos/lib -lgeos_c GEOS_INC= -I/usr/local/geos/include Thank you, W From mgleahy at ALUMNI.UWATERLOO.CA Thu Dec 6 11:47:11 2007 From: mgleahy at ALUMNI.UWATERLOO.CA (Mike Leahy) Date: Thu, 6 Dec 2007 13:47:11 -0600 Subject: Scale-dependant symbols (using maxsize/minsize)? Message-ID: Hello List, I know this is a topic that comes up often, but I have a rivers layer that has hierarchical attributes assigned. I'd like to set this up in a mapfile where the size of the symbols used to draw the lines reflect the level that each river is in the hierarchy. I'd like when the map is at full extent that only the largest rivers are displayed, but with a small symbol...as the map is zoomed in, progressively smaller rivers should start to appear, while the symbols for the larger rivers increase in width. I know I can accomplish this by making a series of layers with classes/styles that apply to specific scales. However, I'm trying to understand the MAXSIZE/MINSIZE attributes that can be set for Style objects. Is there any way I can use this to simplify my mapfile (i.e., so I can have one layer with scale-dependant styles/classes)? I've tried using these attributes, but so far it only seems like MINSIZE really has any effect on the symbol size - I must be missing some other step to make this work... I should note that I'm using this map in a Chameleon setup...I don't know if that has any bearing on how the MINSIZE/MAXSIZE attributes are used. Does anyone have any suggestions, or maybe know of some documentation that explains how to use this? Regards, Mike From matthew.pettis at GMAIL.COM Thu Dec 6 13:03:27 2007 From: matthew.pettis at GMAIL.COM (Matthew Pettis) Date: Thu, 6 Dec 2007 15:03:27 -0600 Subject: CGI Mapserver: raw URL zooming manipulation Message-ID: Hi, I am trying to just do raw CGI calls to do some zooming (trying to see what the necessary raw CGI controls are to do certain functions, don't want to use templates to do zooming just yet until i understand this), but can't seem to do it. I try to pass a zoom parameter in, but I always get the map image of the extent set in my .map file. Can someone help me with the right incantation I need to pass in the address bar? here's what I have tried to no avail: relevant mapfile settings (what i think is relevant): --------------------------------------------------------------------------- ################ # Map attributes ################ IMAGETYPE PNG EXTENT 189775.375 4810000 761662.375 5472414.5 SIZE 660 495 --------------------------------------------------------------------------- ========================= url (no zoom) that works: ------------------------------------ http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map result: --------- the right map of full extent is displayed in my browser ... url: ---- http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=&189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map result: --------- msDrawMap(): Image handling error. Unable to initialize image. msCalculateScale(): General error message. Invalid image extent, minx=- 1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. msCalculateScale(): General error message. Invalid image extent, minx=- 1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. ========================= -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.pettis at GMAIL.COM Thu Dec 6 13:08:32 2007 From: matthew.pettis at GMAIL.COM (Matthew Pettis) Date: Thu, 6 Dec 2007 15:08:32 -0600 Subject: CGI Mapserver: raw URL zooming manipulation In-Reply-To: <82ba77b80712061303g6514816fs5359c376774512c5@mail.gmail.com> Message-ID: I had a typo in the 2nd URL... it should be: url: ---- http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map result: -------- map image of full extent from mapfile is returned... not the zoomed image. On Dec 6, 2007 3:03 PM, Matthew Pettis wrote: > Hi, > > I am trying to just do raw CGI calls to do some zooming (trying to see > what the necessary raw CGI controls are to do certain functions, don't want > to use templates to do zooming just yet until i understand this), but can't > seem to do it. I try to pass a zoom parameter in, but I always get the map > image of the extent set in my .map file. Can someone help me with the right > incantation I need to pass in the address bar? > > here's what I have tried to no avail: > > relevant mapfile settings (what i think is relevant): > > --------------------------------------------------------------------------- > ################ > # Map attributes > ################ > IMAGETYPE PNG > EXTENT 189775.375 4810000 761662.375 5472414.5 > SIZE 660 495 > > --------------------------------------------------------------------------- > > > ========================= > url (no zoom) that works: > ------------------------------------ > > http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map > result: > --------- > the right map of full extent is displayed in my browser > > ... > > url: > ---- > http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=&189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map > > > result: > --------- > msDrawMap(): Image handling error. Unable to initialize image. > msCalculateScale(): General error message. Invalid image extent, minx=- > 1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > msCalculateScale(): General error message. Invalid image extent, minx=- > 1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > > ========================= > > > -- > It is from the wellspring of our despair and the places that we are broken > that we come to repair the world. > -- Murray Waas -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgleahy at ALUMNI.UWATERLOO.CA Thu Dec 6 13:06:39 2007 From: mgleahy at ALUMNI.UWATERLOO.CA (Mike Leahy) Date: Thu, 6 Dec 2007 16:06:39 -0500 Subject: Scale-dependant symbols (using maxsize/minsize)? In-Reply-To: <475855E6.9020007@neogeo-online.net> Message-ID: Guillaume, That's exactly what I was missing. Thanks for the help. As an aside, I would suggest that mapfile reference include a note next to the definitions for MAXSIZE/MINSIZE that tells readers that they need to also define SYMBOLSCALE in the layer...at least in my case that would have solved my confusion. Alternatively, is it appropriate for me to add a comment on the STYLE page of the mapfile reference about this? Regards, Mike Guillaume Sueur wrote: > Hi Mike, > > I think you should use the SYMBOLSCALE item in the layer definition. It > sets the scale on which the symbol will by drawn at full size, i.e the > size defined into the CLASS section. Above it will appear automatically > smaller, and beyond il will appear bigger. Of course you can have some > issues when the ratio between the current scale and the SYMBOLSCALE is > not square, mostly for lines if you use more than one symbol (for roads > for instance). > But most of the times it does the job pretty well ! > > Good tests ! > > Guillaume > > Mike Leahy a ?crit : >> Hello List, >> >> I know this is a topic that comes up often, but I have a rivers layer that >> has hierarchical attributes assigned. I'd like to set this up in a mapfile >> where the size of the symbols used to draw the lines reflect the level that >> each river is in the hierarchy. I'd like when the map is at full extent >> that only the largest rivers are displayed, but with a small symbol...as the >> map is zoomed in, progressively smaller rivers should start to appear, while >> the symbols for the larger rivers increase in width. >> >> I know I can accomplish this by making a series of layers with >> classes/styles that apply to specific scales. However, I'm trying to >> understand the MAXSIZE/MINSIZE attributes that can be set for Style objects. >> Is there any way I can use this to simplify my mapfile (i.e., so I can have >> one layer with scale-dependant styles/classes)? I've tried using these >> attributes, but so far it only seems like MINSIZE really has any effect on >> the symbol size - I must be missing some other step to make this work... >> >> I should note that I'm using this map in a Chameleon setup...I don't know if >> that has any bearing on how the MINSIZE/MAXSIZE attributes are used. >> >> Does anyone have any suggestions, or maybe know of some documentation that >> explains how to use this? >> >> Regards, >> Mike >> > > From nospam420 at YAHOO.COM Thu Dec 6 15:20:37 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Thu, 6 Dec 2007 15:20:37 -0800 Subject: CGI Mapserver: raw URL zooming manipulation In-Reply-To: <82ba77b80712061308v58587e87y6c259a904b60d175@mail.gmail.com> Message-ID: Matthew.Pettis at gmail.com wrote: > > url: > ---- > http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map > result: > -------- > map image of full extent from mapfile is returned... not the zoomed image. > i'm not positive, but afaict, zoom is not relevant for map mode. and if you're just trying to do a simple request and response, the way to do this is to calculate the extent yourself. zoom in, smaller extent. zoom out, larger extent. i might be wrong on this, but this is how i'm doing things. - rich -- View this message in context: http://www.nabble.com/CGI-Mapserver%3A-raw-URL-zooming-manipulation-tf4958616.html#a14203503 Sent from the Mapserver - User mailing list archive at Nabble.com. From matthew.pettis at GMAIL.COM Thu Dec 6 22:09:04 2007 From: matthew.pettis at GMAIL.COM (Matthew Pettis) Date: Fri, 7 Dec 2007 00:09:04 -0600 Subject: CGI Mapserver: raw URL zooming manipulation In-Reply-To: <14203503.post@talk.nabble.com> Message-ID: Hi Rich, Thanks... the same problem persists when i use 'mode=browse' and use the resulting image... What might be related is the 'img' cgi control... can someone explain this to me? i read the documentation, but i don't get it... it doesn't show what value (if any)... here is the documentation entry: IMG > > The name associated with the inline map image used to record user clicks. > What actually is passed are two variables, img.x and img.y. > > For the CGI Applications this is an essential variable, see the examples > for sample usage. > there is no indication what type of value should be associated with it (like the other values in the reference indicate... like "ID [id-string]"), but it says it is essential and see the examples (which examples, i don't know...). can someone explain further how this control is used in a get statement issued to the mapserv binary? thanks, matt On Dec 6, 2007 5:20 PM, rich.fromm wrote: > Matthew.Pettis at gmail.com wrote: > > > > url: > > ---- > > > http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map > > result: > > -------- > > map image of full extent from mapfile is returned... not the zoomed > image. > > > > i'm not positive, but afaict, zoom is not relevant for map mode. and if > you're just trying to do a simple request and response, the way to do this > is to calculate the extent yourself. zoom in, smaller extent. zoom out, > larger extent. > > i might be wrong on this, but this is how i'm doing things. > > - rich > > -- > View this message in context: > http://www.nabble.com/CGI-Mapserver%3A-raw-URL-zooming-manipulation-tf4958616.html#a14203503 > Sent from the Mapserver - User mailing list archive at Nabble.com. > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at NEOGEO-ONLINE.NET Fri Dec 7 01:17:36 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Fri, 7 Dec 2007 10:17:36 +0100 Subject: Scale-dependant symbols (using maxsize/minsize)? In-Reply-To: <4758645F.9000703@alumni.uwaterloo.ca> Message-ID: Sure, I think a comment there could help. If any of our beloved mapserver developpers read me this leads me to a question : why is the symbolscale defined on the LAYER level and not on the CLASS level which would permit to play both with more than one scale range and define more precisely a complex behaviour of a symbol using several classes ? Thanks Guillaume Mike Leahy a ?crit : > Guillaume, > > That's exactly what I was missing. Thanks for the help. > > As an aside, I would suggest that mapfile reference include a note next > to the definitions for MAXSIZE/MINSIZE that tells readers that they need > to also define SYMBOLSCALE in the layer...at least in my case that would > have solved my confusion. > > Alternatively, is it appropriate for me to add a comment on the STYLE > page of the mapfile reference about this? > > Regards, > Mike > > Guillaume Sueur wrote: >> Hi Mike, >> >> I think you should use the SYMBOLSCALE item in the layer definition. It >> sets the scale on which the symbol will by drawn at full size, i.e the >> size defined into the CLASS section. Above it will appear automatically >> smaller, and beyond il will appear bigger. Of course you can have some >> issues when the ratio between the current scale and the SYMBOLSCALE is >> not square, mostly for lines if you use more than one symbol (for roads >> for instance). >> But most of the times it does the job pretty well ! >> >> Good tests ! >> >> Guillaume >> >> Mike Leahy a ?crit : >>> Hello List, >>> >>> I know this is a topic that comes up often, but I have a rivers layer that >>> has hierarchical attributes assigned. I'd like to set this up in a mapfile >>> where the size of the symbols used to draw the lines reflect the level that >>> each river is in the hierarchy. I'd like when the map is at full extent >>> that only the largest rivers are displayed, but with a small symbol...as the >>> map is zoomed in, progressively smaller rivers should start to appear, while >>> the symbols for the larger rivers increase in width. >>> >>> I know I can accomplish this by making a series of layers with >>> classes/styles that apply to specific scales. However, I'm trying to >>> understand the MAXSIZE/MINSIZE attributes that can be set for Style objects. >>> Is there any way I can use this to simplify my mapfile (i.e., so I can have >>> one layer with scale-dependant styles/classes)? I've tried using these >>> attributes, but so far it only seems like MINSIZE really has any effect on >>> the symbol size - I must be missing some other step to make this work... >>> >>> I should note that I'm using this map in a Chameleon setup...I don't know if >>> that has any bearing on how the MINSIZE/MAXSIZE attributes are used. >>> >>> Does anyone have any suggestions, or maybe know of some documentation that >>> explains how to use this? >>> >>> Regards, >>> Mike >>> >> > -- From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Fri Dec 7 02:46:38 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Fri, 7 Dec 2007 02:46:38 -0800 Subject: mapscript + Python Message-ID: Hi, does anyone know (when I install Python) if (how) I have to set some options to enable the mapserver for python? Or what I need to import mapscript for python? I?ve installed mapserver 4.10.2 and tried to call "import mapscript" from my python file but I get the following error in the apache error_log: [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] Traceback (most recent call last): [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] File "/var/www/htdocs/tc/tests/test.py", line 2, in [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] import mapscript [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] ImportError: No module named mapscript [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] Premature end of script headers: test.py -- View this message in context: http://www.nabble.com/mapscript-%2B-Python-tf4961230.html#a14209780 Sent from the Mapserver - User mailing list archive at Nabble.com. From jlf at ENIRO.DK Fri Dec 7 02:55:37 2007 From: jlf at ENIRO.DK (James Lindstorff) Date: Fri, 7 Dec 2007 11:55:37 +0100 Subject: mapscript + Python In-Reply-To: A<14209780.post@talk.nabble.com> Message-ID: If you installed from source you need to go to the mapscript/python catalog and follow the READ me. /james -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of R. Ortner Sent: 7. december 2007 11:47 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapscript + Python Hi, does anyone know (when I install Python) if (how) I have to set some options to enable the mapserver for python? Or what I need to import mapscript for python? I?ve installed mapserver 4.10.2 and tried to call "import mapscript" from my python file but I get the following error in the apache error_log: [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] Traceback (most recent call last): [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] File "/var/www/htdocs/tc/tests/test.py", line 2, in [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] import mapscript [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] ImportError: No module named mapscript [Fri Dec 07 10:49:12 2007] [error] [client 172.21.18.22] Premature end of script headers: test.py -- View this message in context: http://www.nabble.com/mapscript-%2B-Python-tf4961230.html#a14209780 Sent from the Mapserver - User mailing list archive at Nabble.com. From hanscastorp76 at YAHOO.ES Fri Dec 7 04:50:45 2007 From: hanscastorp76 at YAHOO.ES (Hans Castorp) Date: Fri, 7 Dec 2007 13:50:45 +0100 Subject: Google Earth Message-ID: Hi to all, It?s possible to visualize wms layers from mapserver using Google Earth?? I?m trying to do it but I?m always receiving an error saying that the wms server does not have layer that google earth could process. I think this could be something about my map file configuration. Is there any trick?? PD: I?m serving GeoTiff and shape layers. Thanks in advance. Hans Castorp No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: 06/12/2007 23:15 -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at GMAIL.COM Fri Dec 7 05:30:38 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Fri, 7 Dec 2007 08:30:38 -0500 Subject: Google Earth In-Reply-To: <005301c838cf$ca49d080$6601a8c0@signo3> Message-ID: Do you have the correct projection set in your metadata? METADATA "WMS_SRS" "EPSG:4326" END On 07/12/2007, Hans Castorp wrote: > > > > Hi to all, > > > > It's possible to visualize wms layers from mapserver using Google Earth?? > I'm trying to do it but I'm always receiving an error saying that the wms > server does not have layer that google earth could process. I think this > could be something about my map file configuration. Is there any trick?? > > > > PD: I'm serving GeoTiff and shape layers. > > > > Thanks in advance. > > > > > > > Hans Castorp > > > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: 06/12/2007 > 23:15 > -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From edspremolla at ANTEL.COM.UY Fri Dec 7 05:10:27 2007 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Fri, 7 Dec 2007 11:10:27 -0200 Subject: Converting a SHP file Message-ID: I have a polygon shapefile , generated from a postgis table with pgsql2shp that is on meter coordinates. The projection is +proj=tmerc +ellps=intl +lon_0=-55.8 +lat_0=-90 +x_0=500000 I need it on lat long, but pgsql2shp do not accept a SRID for exporting. Any opensource tool can do the job? I know that mapserver can re project on the fly, but for some reason this link: http://xx.xx.xx.xx/cgi-bin/mapserv?map=/srv/www/htdocs/gsm/muestro.map&imgxy=200.0 %20 200.0&mode=indexquery&qlayer=local&map_local_template=localidad2.html&shapeindex=106&mapext=shape goes ok if the query layer in on latlong and wrong otherwise. Thanks - Ing. Eduardo Spremolla Ger. Desarrollo Aplicado Antel Uruguay El presente e-mail y cualquier posible archivo adjunto est? dirigido ?nicamente al destinatario del mensaje y contiene informaci?n que puede ser confidencial. Si Ud. no es el destinatario correcto por favor notifique al remitente respondiendo anexando este mensaje y elimine inmediatamente el e-mail y los posibles archivos adjuntos al mismo de su sistema. Est? prohibida cualquier utilizaci?n, difusi?n o copia de este e-mail por cualquier persona o entidad que no sean las espec?ficas destinatarias del mensaje. ANTEL no acepta ninguna responsabilidad con respecto a cualquier comunicaci?n que haya sido emitida incumpliendo nuestra Pol?tica de Seguridad de la Informaci?n. . . . . . . . . . This e-mail and any attachment is confidential and is intended solely for the addressee(s). If you are not intended recipient please inform the sender immediately, answering this e-mail and delete it as well as the attached files. Any use, circulation or copy of this e-mail by any person or entity that is not the specific addressee(s) is prohibited. ANTEL is not responsible for any communication emitted without respecting our Information Security Policy. From jmckenna at DMSOLUTIONS.CA Fri Dec 7 06:38:47 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 7 Dec 2007 09:38:47 -0500 Subject: Converting a SHP file In-Reply-To: <1197033027.5957.14.camel@fly2.in.iantel.com.uy> Message-ID: Yes you can use the ogr2ogr utility to reproject your shapefile (http://www.gdal.org/ogr/ogr2ogr.html). e.g. ogr2ogr -f "ESRI Shapefile" -s_srs EPSG:42304 -t_srs "+proj=aea +ellps=GRS80 +datum=NAD83 +lat_0=42 +lon_0=-72 +lat_1=43 +lat_2=46 +x_0=0 +y_0=0 +units=m" destination.shp source.shp -jeff Eduardo Spremolla wrote: > > I need it on lat long, but pgsql2shp do not accept a SRID for exporting. > > Any opensource tool can do the job? -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From mlinden at ZEELANDNET.NL Fri Dec 7 06:40:44 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri, 7 Dec 2007 15:40:44 +0100 Subject: Google Earth In-Reply-To: <005301c838cf$ca49d080$6601a8c0@signo3> Message-ID: For wms layers to show up in Google Earth, you generate a groundoverlay. The projection of the mapfile or layers itself is not so important, as long as the wms service is able to publis in epsg:4326. This means that in your map metadata you need to have something like: METADATA "wms_title" "My WMS map" "wms_srs" "EPSG:4326 EPSG:28992" "wms_onlineresource" "http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map" END where you separate the supported projections with spaces. When you create a GroundOverlay, Google generates the following kml snippet: Make sure to add the STYLES= to the end of the request or mapserver will generate a wrong result (this is for my 5.0 installation) Terreincontouren adffffff http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&LAYERS=aLayer&TRANSPARENT=TRUE&FORMAT=image/png&STYLES=& onStop 52.43886219516767 52.19180808173348 5.137624941169889 4.652306951338773 It is also possible to show a mapserver legend in Google Earth with the following kml snippet: 1 Legenda - Percelen http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=aLayer&Format=image/png If you embed these snippets in a kml file, you can see what happens. Hans Castorp schreef: > > Hi to all, > > > > It's possible to visualize wms layers from mapserver using Google > Earth?? I'm trying to do it but I'm always receiving an error saying > that the wms server does not have layer that google earth could > process. I think this could be something about my map file > configuration. Is there any trick?? > > > > PD: I'm serving GeoTiff and shape layers. > > > > Thanks in advance. > > > > > > Hans Castorp > > > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: > 06/12/2007 23:15 > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at GMAIL.COM Fri Dec 7 07:46:26 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 7 Dec 2007 16:46:26 +0100 Subject: Google Earth In-Reply-To: <47595B6C.1000203@zeelandnet.nl> Message-ID: I have some data with projected in 31300, when I change my wms settings to 4326, there's quite some shift in Google Earth. Made a screenshot at: http://img516.imageshack.us/img516/1986/shiftex6.jpg Steven On Dec 7, 2007 3:40 PM, Milo van der Linden wrote: > For wms layers to show up in Google Earth, you generate a groundoverlay. > The projection of the mapfile or layers itself is not so important, as long > as the wms service is able to publis in epsg:4326. > > This means that in your map metadata you need to have something like: > > METADATA > "wms_title" "My WMS map" > "wms_srs" "EPSG:4326 EPSG:28992" > "wms_onlineresource" > "http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map" > END > > where you separate the supported projections with spaces. > > > When you create a GroundOverlay, Google generates the following kml > snippet: > > Make sure to add the STYLES= to the end of the request or mapserver will > generate a wrong result (this is for my 5.0 installation) > > > Terreincontouren > adffffff > > > http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&LAYERS=aLayer&TRANSPARENT=TRUE&FORMAT=image/png&STYLES=& > ; > onStop > > > 52.43886219516767 > 52.19180808173348 > 5.137624941169889 > 4.652306951338773 > > > > > > It is also possible to show a mapserver legend in Google Earth with the > following kml snippet: > > > 1 > Legenda - Percelen > > > http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=aLayer&Format=image/png > > > > > yunits="fraction"/> > > > > > If you embed these snippets in a kml file, you can see what happens. > > > Hans Castorp schreef: > > Hi to all, > > > > It's possible to visualize wms layers from mapserver using Google Earth?? > I'm trying to do it but I'm always receiving an error saying that the wms > server does not have layer that google earth could process. I think this > could be something about my map file configuration. Is there any trick?? > > > > PD: I'm serving GeoTiff and shape layers. > > > > Thanks in advance. > > > > > > Hans Castorp > > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: > 06/12/2007 23:15 > > > > -- > > > Milo van der Linden > skype: milovanderlinden > mlinden at zeelandnet.nl > milovanderlinden at gmail.com > milo at 3dsite.nl > http://www.3dsite.nl > > > De informatie in dit bericht reflecteert mijn persoonlijke mening en niet > die van een bedrijf of instantie. Aan de informatie kunnen geen rechten > worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list > of community dan gelden automatisch de bij het betreffende medium behorende > voorwaarden. The information in this message reflects my personal opinion > and not that of a company or public body. All rights reserved.If this > message is contained in a mailing-list or community, the rights on the > medium are automatically adapted. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aberenyi at BURKEN.HU Fri Dec 7 07:52:32 2007 From: aberenyi at BURKEN.HU (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Fri, 7 Dec 2007 16:52:32 +0100 Subject: google maps Message-ID: Hi, I'm just wondering if it's possible to display Google MAPS images somehow as raster layer in Mapserver. I've tried but not much success so far. :( Any idea? Attila From gregor at HOSTGIS.COM Fri Dec 7 07:55:54 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 7 Dec 2007 08:55:54 -0700 Subject: google maps In-Reply-To: <47596C40.4030804@burken.hu> Message-ID: Attila Ber?nyi wrote: > I'm just wondering if it's possible to display Google MAPS images > somehow as raster layer in Mapserver. I've tried but not much success so > far. :( Folks ask that all the time, and with good reason. The short answer is: No. The long answer is: Someone tried it once and had it somewhat working, then got a cease-and-desist order because it's a violation of Google's licensing. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From punk.kish at GMAIL.COM Fri Dec 7 08:04:50 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Fri, 7 Dec 2007 10:04:50 -0600 Subject: google maps In-Reply-To: <47596C40.4030804@burken.hu> Message-ID: On 12/7/07, Attila Ber?nyi wrote: > Hi, > > I'm just wondering if it's possible to display Google MAPS images > somehow as raster layer in Mapserver. > I've tried but not much success so far. :( > do the other way around... display MapServer layers in Google Maps. That way you don't violate Google's TOS, yet, get to use their imagery and their Maps API, so get the best of both worlds. From gregor at HOSTGIS.COM Fri Dec 7 08:08:31 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 7 Dec 2007 09:08:31 -0700 Subject: google maps In-Reply-To: Message-ID: P Kishor wrote: > do the other way around... display MapServer layers in Google Maps. > That way you don't violate Google's TOS, yet, get to use their imagery > and their Maps API, so get the best of both worlds. Oh definitely. I use this trick for displaying large amounts of vector data atop Google Maps imagery, when I know that the vector data is way too much to present as vector data. It does have the usual caveats, though: you're using Google's software and API, so you're subject to their terms. But if you can live with that, definitely a good move. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From hanscastorp76 at YAHOO.ES Fri Dec 7 08:16:05 2007 From: hanscastorp76 at YAHOO.ES (Hans Castorp) Date: Fri, 7 Dec 2007 17:16:05 +0100 Subject: Google Earth In-Reply-To: <681116190712070530n69662f7dm28ab4921c9f1454@mail.gmail.com> Message-ID: Thanks for fast replying, Do you mean set this metadata in every layer section??? I made it and had no success. PS. I have a projection section in this way: PROJECTION "init=epsg:23029" END -----Mensaje original----- De: Travis Kirstine [mailto:traviskirstine at gmail.com] Enviado el: viernes, 07 de diciembre de 2007 14:31 Para: Hans Castorp CC: MAPSERVER-USERS at lists.umn.edu Asunto: Re: [UMN_MAPSERVER-USERS] Google Earth Do you have the correct projection set in your metadata? METADATA "WMS_SRS" "EPSG:4326" END On 07/12/2007, Hans Castorp wrote: > > > > Hi to all, > > > > It's possible to visualize wms layers from mapserver using Google Earth?? > I'm trying to do it but I'm always receiving an error saying that the wms > server does not have layer that google earth could process. I think this > could be something about my map file configuration. Is there any trick?? > > > > PD: I'm serving GeoTiff and shape layers. > > > > Thanks in advance. > > > > > > > Hans Castorp > > > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: 06/12/2007 > 23:15 > -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: 06/12/2007 23:15 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: 06/12/2007 23:15 From traviskirstine at GMAIL.COM Fri Dec 7 08:17:23 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Fri, 7 Dec 2007 11:17:23 -0500 Subject: OGR - dgn Connection Lables Message-ID: Hi all Is there a trick to add lables to a .dgn file when using a ogr connection with STYLEITEM "AUTO"? -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From gregor at HOSTGIS.COM Fri Dec 7 08:18:36 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 7 Dec 2007 09:18:36 -0700 Subject: Google Earth In-Reply-To: <006d01c838ec$79a34680$6601a8c0@signo3> Message-ID: Hans Castorp wrote: > Do you mean set this metadata in every layer section??? > I made it and had no success. > PS. I have a projection section in this way: > PROJECTION > "init=epsg:23029" > END That's the layer's or map's data projection. This is as opposed to the wms_srs metadata, which specifies what SRSs the WMS server will allow for clients' requests. Have you gone through the "WMS Server HOWTO" on the Mapserver website? That will get you through the WMS end of it, then you'll only have to deal with Google's end... -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From aberenyi at BURKEN.HU Fri Dec 7 08:21:16 2007 From: aberenyi at BURKEN.HU (=?ISO-8859-1?Q?Attila_Ber=E9nyi?=) Date: Fri, 7 Dec 2007 17:21:16 +0100 Subject: google maps In-Reply-To: Message-ID: ok, but how? could someone send me a short description or howto? thanks in advance! P Kishor ?rta: > On 12/7/07, Attila Ber?nyi wrote: > >> Hi, >> >> I'm just wondering if it's possible to display Google MAPS images >> somehow as raster layer in Mapserver. >> I've tried but not much success so far. :( >> >> > > > do the other way around... display MapServer layers in Google Maps. > That way you don't violate Google's TOS, yet, get to use their imagery > and their Maps API, so get the best of both worlds. > > > From traviskirstine at GMAIL.COM Fri Dec 7 08:27:18 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Fri, 7 Dec 2007 11:27:18 -0500 Subject: Google Earth In-Reply-To: <006d01c838ec$79a34680$6601a8c0@signo3> Message-ID: Hans, You have to set the projection in the WEB object to let mapserver know what projections it can "broadcast". MAP NAME gearth_wms SIZE 500 600 STATUS OFF UNITS METERS EXTENT 606000 4824000 654000 4860001 SYMBOLSET "/var/www/html/wms/map_symbols/symbols.sym" IMAGECOLOR 155 203 231 FONTSET "/var/www/html/wms/map_symbols/fonts.txt" SHAPEPATH "/var/www/ge_data/" IMAGETYPE JPEG RESOLUTION 96 PROJECTION "init=epsg:26917" END LEGEND STATUS ON END WEB IMAGEPATH "/var/www/html/wms/map_images/" IMAGEURL "http://www.solutions.com/wms/map_images/" METADATA "WMS_ONLINERESOURCE" "http://www.solutions.com/cgi-bin/google_wms?" "WMS_SRS" "EPSG:26917 EPSG:4326 EPSG:900913" END END LAYER etc ..... n 07/12/2007, Hans Castorp wrote: > Thanks for fast replying, > > Do you mean set this metadata in every layer section??? > I made it and had no success. > > PS. I have a projection section in this way: > > PROJECTION > "init=epsg:23029" > END > > > -----Mensaje original----- > De: Travis Kirstine [mailto:traviskirstine at gmail.com] > Enviado el: viernes, 07 de diciembre de 2007 14:31 > Para: Hans Castorp > CC: MAPSERVER-USERS at lists.umn.edu > Asunto: Re: [UMN_MAPSERVER-USERS] Google Earth > > Do you have the correct projection set in your metadata? > > METADATA > "WMS_SRS" "EPSG:4326" > END > > > > On 07/12/2007, Hans Castorp wrote: > > > > > > > > Hi to all, > > > > > > > > It's possible to visualize wms layers from mapserver using Google Earth?? > > I'm trying to do it but I'm always receiving an error saying that the wms > > server does not have layer that google earth could process. I think this > > could be something about my map file configuration. Is there any trick?? > > > > > > > > PD: I'm serving GeoTiff and shape layers. > > > > > > > > Thanks in advance. > > > > > > > > > > > > > > Hans Castorp > > > > > > > > > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: > 06/12/2007 > > 23:15 > > > > > -- > Travis K. > > Toronto, Canada > ------------------------------------------------------------ > "She knows there's no success like failure > And that failure's no success at all." > -Bob Dylan- > ------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: 06/12/2007 > 23:15 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: 06/12/2007 > 23:15 > > > -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From punk.kish at GMAIL.COM Fri Dec 7 08:34:12 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Fri, 7 Dec 2007 10:34:12 -0600 Subject: google maps In-Reply-To: <475972FC.5070609@burken.hu> Message-ID: On 12/7/07, Attila Ber?nyi wrote: > ok, but how? > could someone send me a short description or howto? get your MapServer to serve WMS. Make sure to add the correct EPSG values (4326, I think). make your Google Maps. Add wms javascript http://chignik.berkeley.edu/google/wms236.js also see Mike Williams http://www.econym.demon.co.uk/googlemaps2/ Brian Flood http://www.spatialdatalogic.com/cs/blogs/brian_flood/archive/2005/07/11/39.aspx V1 WMS code * Kyle Mulka http://blog.kylemulka.com/?p=287 V1 WMS code modifications * http://search.cpan.org/src/RRWO/GPS-Lowrance-0.31/lib/Geo/Coordinates/MercatorMeters.pm etc. etc. > > thanks in advance! > > P Kishor ?rta: > > On 12/7/07, Attila Ber?nyi wrote: > > > >> Hi, > >> > >> I'm just wondering if it's possible to display Google MAPS images > >> somehow as raster layer in Mapserver. > >> I've tried but not much success so far. :( > >> > >> > > > > > > do the other way around... display MapServer layers in Google Maps. > > That way you don't violate Google's TOS, yet, get to use their imagery > > and their Maps API, so get the best of both worlds. > > > > > > > > From mlinden at ZEELANDNET.NL Fri Dec 7 08:56:00 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri, 7 Dec 2007 17:56:00 +0100 Subject: Google Earth In-Reply-To: <8d2ea9d70712070746g5b0149a1if1a3a58a9b30536@mail.gmail.com> Message-ID: I had a similar problem. It seems that by default; the parameters for the transformation from the bessel ellipsoid to WGS84 ellipsoid are not set correctly within the epsg definitions. I solved this by altering the definition for my projection in the EPSG definition file on my server. So you should determine if the projection you use (31300) has a ellipsoid definition other than WGS84 and then look to find what settings you have to use for "towgs84=" Steven De Vriendt schreef: > I have some data with projected in 31300, when I change my wms > settings to 4326, there's quite some shift in Google Earth. Made a > screenshot at: > > http://img516.imageshack.us/img516/1986/shiftex6.jpg > > > Steven > > > On Dec 7, 2007 3:40 PM, Milo van der Linden > wrote: > > For wms layers to show up in Google Earth, you generate a > groundoverlay. The projection of the mapfile or layers itself is > not so important, as long as the wms service is able to publis in > epsg:4326. > > This means that in your map metadata you need to have something like: > > METADATA > "wms_title" "My WMS map" > "wms_srs" "EPSG:4326 EPSG:28992" > "wms_onlineresource" > "http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map" > > END > > where you separate the supported projections with spaces. > > > When you create a GroundOverlay, Google generates the following > kml snippet: > > Make sure to add the STYLES= to the end of the request or > mapserver will generate a wrong result (this is for my 5.0 > installation) > > > Terreincontouren > adffffff > > > http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&LAYERS=aLayer&TRANSPARENT=TRUE&FORMAT=image/png&STYLES=& > ; > onStop > > > 52.43886219516767 > 52.19180808173348 > 5.137624941169889 > 4.652306951338773 > > > > > > It is also possible to show a mapserver legend in Google Earth > with the following kml snippet: > > > 1 > Legenda - Percelen > > > http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=aLayer&Format=image/png > > > yunits="fraction"/> > yunits="fraction"/> > yunits="fraction"/> > > > > > If you embed these snippets in a kml file, you can see what happens. > > > Hans Castorp schreef: >> >> Hi to all, >> >> >> >> It's possible to visualize wms layers from mapserver using Google >> Earth?? I'm trying to do it but I'm always receiving an error >> saying that the wms server does not have layer that google earth >> could process. I think this could be something about my map file >> configuration. Is there any trick?? >> >> >> >> PD: I'm serving GeoTiff and shape layers. >> >> >> >> Thanks in advance. >> >> >> >> >> >> Hans Castorp >> >> >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: >> 06/12/2007 23:15 >> > > > -- > > > > > Milo van der Linden > skype: milovanderlinden > mlinden at zeelandnet.nl > milovanderlinden at gmail.com > milo at 3dsite.nl > http://www.3dsite.nl > > > > De informatie in dit bericht reflecteert mijn persoonlijke mening > en niet die van een bedrijf of instantie. Aan de informatie kunnen > geen rechten worden ontleend. Indien dit bericht onderdeel is van > een forum, mailing-list of community dan gelden automatisch de bij > het betreffende medium behorende voorwaarden. The information in > this message reflects my personal opinion and not that of a > company or public body. All rights reserved.If this message is > contained in a mailing-list or community, the rights on the medium > are automatically adapted. > > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Fri Dec 7 08:59:27 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri, 7 Dec 2007 17:59:27 +0100 Subject: Google Earth In-Reply-To: <006d01c838ec$79a34680$6601a8c0@signo3> Message-ID: Hans Castorp schreef: > Thanks for fast replying, > > Do you mean set this metadata in every layer section??? > I made it and had no success. > No, it is the metadata set in the MAP's WEB section. There you have to alter it. > PS. I have a projection section in this way: > > PROJECTION > "init=epsg:23029" > END > That is correct. Every layer can only have one PROJECTION. The MAP itself can also only have one projection. But when you set more then one "wms_srs" for instance "EPSG:4326 EPSG:28992" then Mapserver will reproject before sending the image to the requestor. (I think this is an excellent function). It needs the PROJECTION sections to determine how to reproject. > > -----Mensaje original----- > De: Travis Kirstine [mailto:traviskirstine at gmail.com] > Enviado el: viernes, 07 de diciembre de 2007 14:31 > Para: Hans Castorp > CC: MAPSERVER-USERS at lists.umn.edu > Asunto: Re: [UMN_MAPSERVER-USERS] Google Earth > > Do you have the correct projection set in your metadata? > > METADATA > "WMS_SRS" "EPSG:4326" > END > > > > On 07/12/2007, Hans Castorp wrote: > >> >> Hi to all, >> >> >> >> It's possible to visualize wms layers from mapserver using Google Earth?? >> I'm trying to do it but I'm always receiving an error saying that the wms >> server does not have layer that google earth could process. I think this >> could be something about my map file configuration. Is there any trick?? >> >> >> >> PD: I'm serving GeoTiff and shape layers. >> >> >> >> Thanks in advance. >> >> >> >> >> >> >> Hans Castorp >> >> >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date: >> > 06/12/2007 > >> 23:15 >> >> > > > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigohaas at GMAIL.COM Fri Dec 7 10:05:53 2007 From: rodrigohaas at GMAIL.COM (Rodrigo Haas) Date: Fri, 7 Dec 2007 15:05:53 -0300 Subject: Rotate Map with Mapserv In-Reply-To: <14184429.post@talk.nabble.com> Message-ID: Hi, The angle rotate works in mapserver 4.10.3 version? In CGI mode and mapscript? Thank you, Rodrigo -------------- next part -------------- An HTML attachment was scrubbed... URL: From stevem at SPATIALMAPPING.COM Fri Dec 7 10:25:53 2007 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Fri, 7 Dec 2007 12:25:53 -0600 Subject: CGI Mapserver: raw URL zooming manipulation Message-ID: Matt: Looking at some of my old browse-mode, CGI-mapserver "play" files (circa 2003! how time flies...), my template files always seemed to have the following hidden variables within the form: Accordingly, to invoke the effect you're looking for (i.e. to zoom in from the full extent by some given zoom factor) I suggest including the following fragment in your URL: imgxy=330.0+247.5&imgbox=330.0+247.5+330.0+247.5&imgext=189775.375+4810000+761662.375+5472414.5&mapext=&mode=browse (Also, see the comment by Peter Slizik at the bottom of this page: http://mapserver.gis.umn.edu/docs/reference/cgi .) Hope this helps, -SM -- On Fri, 7 Dec 2007 00:09:04 -0600, Matthew Pettis wrote: >Hi Rich, > >Thanks... the same problem persists when i use 'mode=browse' and use the >resulting image... > >What might be related is the 'img' cgi control... can someone explain this >to me? i read the documentation, but i don't get it... it doesn't show what >value (if any)... here is the documentation entry: > >IMG >> >> The name associated with the inline map image used to record user clicks. >> What actually is passed are two variables, img.x and img.y. >> >> For the CGI Applications this is an essential variable, see the examples >> for sample usage. >> > >there is no indication what type of value should be associated with it (like >the other values in the reference indicate... like "ID [id-string]"), but it >says it is essential and see the examples (which examples, i don't >know...). can someone explain further how this control is used in a get >statement issued to the mapserv binary? > >thanks, >matt > >On Dec 6, 2007 5:20 PM, rich.fromm wrote: > >> Matthew.Pettis at gmail.com wrote: >> > >> > url: >> > ---- >> > >> http://localhost/cgi-bin/mapserv.exe?zoom=2&img.x=330&img.y=247.5&mapext=189775.375+4810000+761662.375+5472414.5&map=C:/ms4w/Apache/htdocs/tst/race.map&layer=county&mode=map >> > result: >> > -------- >> > map image of full extent from mapfile is returned... not the zoomed >> image. >> > >> >> i'm not positive, but afaict, zoom is not relevant for map mode. and if >> you're just trying to do a simple request and response, the way to do this >> is to calculate the extent yourself. zoom in, smaller extent. zoom out, >> larger extent. >> >> i might be wrong on this, but this is how i'm doing things. >> >> - rich >> >> -- >> View this message in context: >> http://www.nabble.com/CGI-Mapserver%3A-raw-URL-zooming-manipulation-tf4958616.html#a14203503 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > > >-- >It is from the wellspring of our despair and the places that we are broken >that we come to repair the world. >-- Murray Waas > From mgleahy at ALUMNI.UWATERLOO.CA Fri Dec 7 11:11:46 2007 From: mgleahy at ALUMNI.UWATERLOO.CA (Mike Leahy) Date: Fri, 7 Dec 2007 13:11:46 -0600 Subject: Scale-dependant symbols (using maxsize/minsize)? Message-ID: Unfortunately, when I try to leave a comment on the webpage, I get an error (146, 'Connection refused'). I guess it's not a big deal anyway, assuming that a user reading the Style reference has also recently read the relevant parts of the Layer reference (unlike me). Mike On Fri, 7 Dec 2007 10:17:36 +0100, Guillaume Sueur wrote: >Sure, I think a comment there could help. If any of our beloved >mapserver developpers read me this leads me to a question : >why is the symbolscale defined on the LAYER level and not on the CLASS >level which would permit to play both with more than one scale range and >define more precisely a complex behaviour of a symbol using several >classes ? > >Thanks > >Guillaume > From dmorissette at MAPGEARS.COM Fri Dec 7 13:52:32 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 7 Dec 2007 16:52:32 -0500 Subject: Problems with Compiling Mapserver 5.0 In-Reply-To: <1196951917.5026.1.camel@localhost> Message-ID: William Hudspeth wrote: > ./libmapserver.a(mapgeos.o): In function `msGEOSLength': > mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' > ./libmapserver.a(mapgeos.o): In function `msGEOSArea': > mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > Which version of GEOS are you using? I believe we version 2.2.3 or more recent is required and the configure script should look for that, but maybe for some reason the test failed? Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at DNR.STATE.MN.US Fri Dec 7 14:52:15 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 7 Dec 2007 16:52:15 -0600 Subject: Google-ish Cartography In-Reply-To: Message-ID: Bob: Here's another one. I did the roads and a few other feature classes for this OpenLayers interface in a Google-ish fashion: http://preview.dnr.state.mn.us/maps/compass.html Mapfile is at: http://maps.dnr.state.mn.us/compass/compass_full.map Steve >>> On 12/5/2007 at 1:04 PM, in message , Bob Basques wrote: > All, > > Anyone have a pointer to a Google-ish looking Mapfile. > > I would like to play around with this a bit. > > Thanks > > bobb > > From Bob.Basques at CI.STPAUL.MN.US Fri Dec 7 16:48:01 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 7 Dec 2007 18:48:01 -0600 Subject: Google-ish Cartography Message-ID: Thomas, That's actually not a bad setup either. If it's not too much trouble, I would like to look at the MAPFILE. I'm looking at things like color blindness and such in my new setup, so all options are of interest. I may even end up with optional displays for the same dataset. My anemic cartography can be seen here: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/ This was my first stab at things, so don't come down on me too hard :c) Anyway, it needs to be better, so I'm working on it. bobb >>> "thomas bonfort" wrote: if something like this suits you I can send you the mapfile http://motte.yi.org/~tom/maps/utah.html (the computer is off on european nightime) thomas On Dec 5, 2007 8:04 PM, Bob Basques wrote: > > > All, > > Anyone have a pointer to a Google-ish looking Mapfile. > > I would like to play around with this a bit. > > Thanks > > bobb > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Fri Dec 7 17:52:03 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Fri, 7 Dec 2007 17:52:03 -0800 Subject: Rotate Map with Mapserv In-Reply-To: <604f90420712071005x50d4848bu63cdab5805436e4@mail.gmail.com> Message-ID: Rodrigo Haas-2 wrote: > > The angle rotate works in mapserver 4.10.3 version? > In CGI mode and mapscript? > My only personal experience is with mapserver 5.0.0, so I can't speak for sure. Also, the docs at: http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj do not make it entirely clear to which version of mapserver they refer to. However, having found several instances of 5.0 features that are NOT accurately represented in the docs, I would guess that they more accurately represent 4.10. Also, I do not see anything about ANGLE being added as of 5.0 according to: http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT So I would guess that it would work. But you probably ought to just try. As I already mentioned, the docs claim it only works in mapscript, but my personal experience is that I have gotten it to work in CGI. However, if you go to the wiki page mentioned previously: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapRotation It seems that there is a caveat there, that the rotation is not preserved in browse mode (I think that's what the opposite of map mode is called, sorry if I have the name wrong). I use map mode, so that doesn't matter to me. Ymmv. Hope that helps, - Rich -- View this message in context: http://www.nabble.com/Rotate-Map-with-Mapserv-tf4953219.html#a14224362 Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Fri Dec 7 17:56:50 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Fri, 7 Dec 2007 17:56:50 -0800 Subject: Rotate Map with Mapserv In-Reply-To: <14224362.post@talk.nabble.com> Message-ID: rich.fromm wrote: > > > Rodrigo Haas-2 wrote: >> >> The angle rotate works in mapserver 4.10.3 version? >> In CGI mode and mapscript? >> > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapRotation > The wiki page states: MapServer 4.3 (as of May 25th, 2004) includes the experimental ability to render rotated maps implemented by FrankWarmerdam. -- View this message in context: http://www.nabble.com/Rotate-Map-with-Mapserv-tf4953219.html#a14224364 Sent from the Mapserver - User mailing list archive at Nabble.com. From rodrigohaas at GMAIL.COM Fri Dec 7 18:48:45 2007 From: rodrigohaas at GMAIL.COM (Rodrigo Haas) Date: Fri, 7 Dec 2007 23:48:45 -0300 Subject: Rotate Map with Mapserv In-Reply-To: <14224364.post@talk.nabble.com> Message-ID: Thanks a lot Rich! :) Rodrigo -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten at TERRAGIS.NET Fri Dec 7 22:14:19 2007 From: karsten at TERRAGIS.NET (karsten vennemann) Date: Fri, 7 Dec 2007 22:14:19 -0800 Subject: Converting a SHP file Message-ID: Or you can do it in postgis before exporting it with pgsql2shp: 1) add a second geometry column (the_geom2) to your postgis polyon layer select AddGeometryColumn('public','your_polylayer','the_geom2',4326,'MULTIPOLYGON', 2); 2) Transform the geometry and update new geometry column in one step: update your_polylayer set the_geom2 = transform(the_geom,4326); 3) export to shape with pgsql2shp using the_geom2 (instead of the_geom) Karsten -----Original Message----- From: Jeff McKenna [mailto:jmckenna at DMSOLUTIONS.CA] Sent: Friday, December 07, 2007 06:39 Subject: Re: Converting a SHP file Yes you can use the ogr2ogr utility to reproject your shapefile (http://www.gdal.org/ogr/ogr2ogr.html). e.g. ogr2ogr -f "ESRI Shapefile" -s_srs EPSG:42304 -t_srs "+proj=aea +ellps=GRS80 +datum=NAD83 +lat_0=42 +lon_0=-72 +lat_1=43 +lat_2=46 +x_0=0 +y_0=0 +units=m" destination.shp source.shp -jeff Eduardo Spremolla wrote: > > I need it on lat long, but pgsql2shp do not accept a SRID for exporting. > > Any opensource tool can do the job? -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From gagan.bansal at RELIANCEADA.COM Sat Dec 8 08:36:20 2007 From: gagan.bansal at RELIANCEADA.COM (Gagan Bansal) Date: Sat, 8 Dec 2007 10:36:20 -0600 Subject: labeling along the line Message-ID: Hi I am using MS4W - MapServer 4 Windows - version 2.2.5. placing labels on road with ANGLE FOLLOW option but a few of the labels only are placed along the road, rest are placed staright horizontal or slant. here is the label : LABEL COLOR 0 0 0 FONT "arial" TYPE truetype SIZE 9 ANTIALIAS true #PERCENTAGE 1.0 POSITION AUTO MINDISTANCE 200 PARTIALS FALSE ANGLE FOLLOW MINFEATURESIZE 20 OUTLINECOLOR 255 255 255 END is there any other option available or where is the mistake. Thanks & Regards Gagan From gregor at HOSTGIS.COM Sat Dec 8 08:42:01 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 8 Dec 2007 09:42:01 -0700 Subject: labeling along the line In-Reply-To: Message-ID: Gagan Bansal wrote: > I am using MS4W - MapServer 4 Windows - version 2.2.5. What MapServer version is that? "mapserv -v" I think that ANGLE FOLLOW was introduced in 4.10.3 but on our systems it never worked until 5.0.0 -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From matthew.pettis at GMAIL.COM Sat Dec 8 15:15:58 2007 From: matthew.pettis at GMAIL.COM (Matthew Pettis) Date: Sat, 8 Dec 2007 17:15:58 -0600 Subject: CGI Mapserver: raw URL zooming manipulation In-Reply-To: <5294574.1739731197065595986.JavaMail.nabble@isper.nabble.com> Message-ID: Hi, I think I have a solution... the zoom controls work on the extent passed in the control 'imgext', not on 'mapext'... here is a working example that zooms from the max extent: http://localhost/cgi-bin/mapserv.exe?mode=map&img.x=330&img.y=247.5&zoomdir=1&zoomsize=2&layer=county&imgext=189775.375+4810000+761662.375+5472414.5&map=c:/ms4w/apache/htdocs/tst/race2.map so, my question is: is there a more in-depth explanation of 'imgext' vs. 'mapext' than exists in the cgi documentation ( http://mapserver.gis.umn.edu/docs/reference/cgi/controls)? just really trying to understand the nuts and bolts of how the command line works... thanks, matt On Dec 7, 2007 4:13 PM, wrote: > Matthew.Pettis at gmail.com wrote: > > Thanks... the same problem persists when i use 'mode=browse' and use the > > resulting image... > > > > What might be related is the 'img' cgi control... > Quoted from: > > http://www.nabble.com/CGI-Mapserver%3A-raw-URL-zooming-manipulation-tf4958616.html#a14207417 > > sorry, i don't use mode=browse, and i've never used img. so i know no > more than you about this. > good luck, > - rich > > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From anakreon at CSD.AUTH.GR Sun Dec 9 03:36:17 2007 From: anakreon at CSD.AUTH.GR (Anakreon Mentis) Date: Sun, 9 Dec 2007 13:36:17 +0200 Subject: Display tooltip when mouse is over a point Message-ID: What I'm trying to achieve is to display a tooltip when the mouse is over a point (a location which comes from a layer). The tooltip would contain information retrieved from that layer. Is there a widget in the stable release which can do this? Also, I would like to listen to double click event when the target is a point from that layer. From mlinden at ZEELANDNET.NL Sun Dec 9 04:46:44 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Sun, 9 Dec 2007 13:46:44 +0100 Subject: Display tooltip when mouse is over a point In-Reply-To: <18267.54065.191148.889565@mathind.csd.auth.gr> Message-ID: Your question is all client side related. There are several clients out there that you can put on top of Mapserver WMS (and sometimes WFS) Projects that I think are active and stable are: - Google Maps: http://code.google.com/apis/maps/ - OpenLayers: http://www.openlayers.org/ - Flamingo MC: http://www.flamingo-mc.org/ Look in to them for details and select your client component of choice. Kind regards, Milo van der Linden http://www.3dsite.nl From anakreon at CSD.AUTH.GR Sun Dec 9 07:07:56 2007 From: anakreon at CSD.AUTH.GR (Anakreon Mentis) Date: Sun, 9 Dec 2007 17:07:56 +0200 Subject: Display tooltip when mouse is over a point In-Reply-To: <475BE3B4.30802@zeelandnet.nl> Message-ID: My apologies. I intended to send the mail tou mapbuilder mailing list and by mistake I sent it tou mapserver mailing list From joe.bussell at GMAIL.COM Sun Dec 9 07:11:32 2007 From: joe.bussell at GMAIL.COM (Joe Bussell) Date: Sun, 9 Dec 2007 07:11:32 -0800 Subject: Display tooltip when mouse is over a point In-Reply-To: <475BE3B4.30802@zeelandnet.nl> Message-ID: I solved this problem by using Perl Mapscript. I used a spatial query to find the relevant points in my view. I then iterated over that list and constructed a div element for each item. This allowed me to do the hover over using standard Javascript goodness, including allowing a click event. YMMV, Joe Bussell On Dec 9, 2007 4:46 AM, Milo van der Linden wrote: > Your question is all client side related. There are several clients out > there that you can put on top of Mapserver WMS (and sometimes WFS) > > Projects that I think are active and stable are: > > - Google Maps: http://code.google.com/apis/maps/ > - OpenLayers: http://www.openlayers.org/ > - Flamingo MC: http://www.flamingo-mc.org/ > > > Look in to them for details and select your client component of choice. > > Kind regards, > Milo van der Linden > http://www.3dsite.nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tara_athan at ALT2IS.COM Sun Dec 9 10:49:30 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Sun, 9 Dec 2007 10:49:30 -0800 Subject: [work] Re: [UMN_MAPSERVER-USERS] google maps In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From aberenyi at BURKEN.HU Sun Dec 9 10:52:09 2007 From: aberenyi at BURKEN.HU (=?ISO-8859-1?Q?Attila_Ber=E9nyi?=) Date: Sun, 9 Dec 2007 19:52:09 +0100 Subject: [work] Re: [UMN_MAPSERVER-USERS] google maps In-Reply-To: <475C38BA.8080507@alt2is.com> Message-ID: Thanks all! :) Tara Athan ?rta: > Another approach is to use Openlayers where you can bring in google or > various other options as baselayer, > and add wms, wfs, gml, markers, etc as overlays : see > http://openlayers.org/dev/examples/google.html > for a wms layer over google > http://openlayers.org/dev/examples/wfs.html > for a wfs layer > and lots of other examples available, also a very active user forum. > > Tara > > P Kishor wrote: >> On 12/7/07, Attila Ber?nyi wrote: >> >>> ok, but how? >>> could someone send me a short description or howto? >>> >> >> get your MapServer to serve WMS. Make sure to add the correct EPSG >> values (4326, I think). >> >> make your Google Maps. Add wms javascript >> http://chignik.berkeley.edu/google/wms236.js >> >> also see >> Mike Williams http://www.econym.demon.co.uk/googlemaps2/ >> Brian Flood http://www.spatialdatalogic.com/cs/blogs/brian_flood/archive/2005/07/11/39.aspx >> V1 >> WMS code >> * Kyle Mulka http://blog.kylemulka.com/?p=287 V1 WMS code modifications >> * http://search.cpan.org/src/RRWO/GPS-Lowrance-0.31/lib/Geo/Coordinates/MercatorMeters.pm >> >> etc. etc. >> >> >>> thanks in advance! >>> >>> P Kishor ?rta: >>> >>>> On 12/7/07, Attila Ber?nyi wrote: >>>> >>>> >>>>> Hi, >>>>> >>>>> I'm just wondering if it's possible to display Google MAPS images >>>>> somehow as raster layer in Mapserver. >>>>> I've tried but not much success so far. :( >>>>> >>>>> >>>>> >>>> do the other way around... display MapServer layers in Google Maps. >>>> That way you don't violate Google's TOS, yet, get to use their imagery >>>> and their Maps API, so get the best of both worlds. >>>> >>>> >>>> >>>> >>> >> >> >> > > > -- > My e-mail delivery has been unreliable lately, so I am asking for > return receipts from all my email messages. > OK'ing the return receipt lets me know that my message was delivered. > Thank you. > > Tara Athan > Principal, Alternatives to Invasive Species > tara_athan at alt2is.com > 707-485-1198 > PO Box 415 > Redwood Valley, CA 95470 From Gagan.Bansal at RELIANCEADA.COM Sun Dec 9 20:27:03 2007 From: Gagan.Bansal at RELIANCEADA.COM (Gagan Bansal) Date: Mon, 10 Dec 2007 09:57:03 +0530 Subject: labeling along the line In-Reply-To: <475AC959.4000307@hostgis.com> Message-ID: I am using 'MS4W - MapServer 4 Windows - version 2.2.5' OK I'll try in Mapserver 5 Thanks & regards Gagan Gregor Mosheh 12/08/2007 10:12 PM To Gagan Bansal cc MAPSERVER-USERS at LISTS.UMN.EDU Subject Re: [UMN_MAPSERVER-USERS] labeling along the line Gagan Bansal wrote: > I am using MS4W - MapServer 4 Windows - version 2.2.5. What MapServer version is that? "mapserv -v" I think that ANGLE FOLLOW was introduced in 4.10.3 but on our systems it never worked until 5.0.0 -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcos at BURKE.ATH.CX Mon Dec 10 02:37:47 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Mon, 10 Dec 2007 11:37:47 +0100 Subject: mapscript: python24.dll not found (using python25) In-Reply-To: <4757CD33.8000808@zeelandnet.nl> Message-ID: There should be no problems in running two pythons by each other (only one will be associated with .py files and so, but that should represent no problem...). El jue, 06-12-2007 a las 11:21 +0100, Milo van der Linden escribi?: > Hello list! > > I am trying to set up the mapserver py wrapper that is documented on > the mapserver website. For this I unzipped the mapscript python files > from the MS4W package. Then I run the test-cgi-mapscript.py. > > My machine is windows 2003. When running the script from the command > line, a windows dialog pops up saying that the python24.dll is not > found. My guess is that this has to do with the mapscript.dll trying > to hook on to python24.dll > > Can I simply copy the python24.dll into my python25 installation? > Can I run two pythons next to each other? > Or is there a compiled version of mapscript available that hooks into > the python25.dll? > > Kind regards, > > Milo van der Linden From mlinden at ZEELANDNET.NL Mon Dec 10 04:10:00 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 10 Dec 2007 13:10:00 +0100 Subject: Strange wms behaviour Message-ID: Hello list, I have a mapserver mapfile with two layers in it. Although I tell the client to explicitly load one layer, the other one also shows! I have been playing arround with STATUS ON, STATUS OFF and STATUS DEFAULT, but nothing helps... help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at GMAIL.COM Mon Dec 10 04:24:20 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Mon, 10 Dec 2007 13:24:20 +0100 Subject: Strange wms behaviour In-Reply-To: <475D2C98.7030105@zeelandnet.nl> Message-ID: Milo, a bit more info would be helpful :-) It could be that your MAP Object's NAME equals your LAYER NAME, or your WMS client requests the top level Layer (which is the Map's NAME). What would be helpful: -MAP file -GetCapabilities output -the URL that your WMS client uses. Best regards, Bart On Dec 10, 2007 1:10 PM, Milo van der Linden wrote: > Hello list, > > I have a mapserver mapfile with two layers in it. Although I tell the > client to explicitly load one layer, the other one also shows! > > I have been playing arround with STATUS ON, STATUS OFF and STATUS DEFAULT, > but nothing helps... > > help! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From boommonge at GMAIL.COM Mon Dec 10 05:51:32 2007 From: boommonge at GMAIL.COM (Luis Angel Monge De La Cruz) Date: Mon, 10 Dec 2007 14:51:32 +0100 Subject: Do Mapserver enables distributed processing spatial data? In-Reply-To: <47544199.6010206@zeelandnet.nl> Message-ID: Hello Milo van der Linden You know if any server maps (open source, freeware, license, etc.) can perform automatic search of alternative sources? On Dec 3, 2007 6:49 PM, Milo van der Linden wrote: No, mapserver cannot switch automatically unless you tell it to in a php > script or something. > > But why put these databases on two computers? Why not use a single server > that is always on and holds the database? > > There are many ways to achieve this, but that is basically no mapserver > issue. > > First of all, storing gis data on a single computer always makes it stand > alone. Storing it on a server makes it available to the server and to > servers with rights on that particular server via the network. > > Best thing I would do if I where you: > > > - Set up a postGIS spatial database and provide both workstations with > access. If you use qGIS or openJump as the GIS client, this is a very > workable situation. > > - If you want to do the same, but with a more commercial solution; > consider MapInfo with SQL-server Spatialware or ArcView with SDE. > > Databases have the advantage that they are designed to be multi-user where > as GIS data most of the time is not. > > > > > Luis Angel Monge De La Cruz schreef: > > Hi! > > This is my question. Do Mapserver enables distributed processing spatial > data? > > Information > - Two computers > - Each computer has a spatial database > - What happen?. If I want to obtain a spatial data from the computer # 1 > through mapserver and is not available this database. Can mapserver look so > automatic that spatial data in the database from the computer computer # 2? > > > > -- > > > Milo van der Linden > skype: milovanderlinden > mlinden at zeelandnet.nl > milovanderlinden at gmail.com > milo at 3dsite.nl > http://www.3dsite.nl > > > De informatie in dit bericht reflecteert mijn persoonlijke mening en niet > die van een bedrijf of instantie. Aan de informatie kunnen geen rechten > worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list > of community dan gelden automatisch de bij het betreffende medium behorende > voorwaarden. The information in this message reflects my personal opinion > and not that of a company or public body. All rights reserved.If this > message is contained in a mailing-list or community, the rights on the > medium are automatically adapted. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aberenyi at BURKEN.HU Mon Dec 10 07:06:41 2007 From: aberenyi at BURKEN.HU (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Mon, 10 Dec 2007 16:06:41 +0100 Subject: value dependent symbol size Message-ID: An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Mon Dec 10 07:07:27 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 10 Dec 2007 16:07:27 +0100 Subject: Strange wms behaviour In-Reply-To: <1ebb87870712100424t5f9ddab1n4a27493f47b9b0e7@mail.gmail.com> Message-ID: /It could be that your MAP Object's NAME equals your LAYER NAME,/ That was exactly the case! Thank you Bart for the quick response! Bart van den Eijnden schreef: > Milo, > > a bit more info would be helpful :-) > > It could be that your MAP Object's NAME equals your LAYER NAME, or > your WMS client requests the top level Layer (which is the Map's NAME). > > What would be helpful: > -MAP file > -GetCapabilities output > -the URL that your WMS client uses. > > Best regards, > Bart > > On Dec 10, 2007 1:10 PM, Milo van der Linden < mlinden at zeelandnet.nl > > wrote: > > Hello list, > > I have a mapserver mapfile with two layers in it. Although I tell > the client to explicitly load one layer, the other one also shows! > > I have been playing arround with STATUS ON, STATUS OFF and STATUS > DEFAULT, but nothing helps... > > help! > > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aberenyi at BURKEN.HU Mon Dec 10 07:16:57 2007 From: aberenyi at BURKEN.HU (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Mon, 10 Dec 2007 16:16:57 +0100 Subject: value dependent symbol size In-Reply-To: <475D5601.3090706@burken.hu> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Solved! :) LAYER GROUP "Point" NAME "Point" TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "point.ovf" DATA "point" CLASS STYLE SYMBOL 'Circle' COLOR 0 0 255 SIZE "" END END TOLERANCE 5 END # Layer Attila Attila Ber?nyi ?rta: > Hi, > > Is it possible to scale a symbol depending on a MySQL attribute or > any other expression? For example: LAYER GROUP "Point" NAME "Point" > TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "point.ovf" > DATA "point" CLASS STYLE SYMBOL 'Circle' COLOR 0 0 255 SIZE* [an > attribute dependent expression here]* END END TOLERANCE 5 END # > Layer > > or: > > LAYER NAME 'inline_circles' TYPE CIRCLE STATUS ON FEATURE POINTS * > [define the points from MySQL here somehow...]* END END CLASS STYLE > COLOR 0 0 255 END END END > > Thanks in advance, > > Attila -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHXVhp76iTSmN9z2ARAupRAJ0RKTDhd+gSpDri0KSL2CwtaqFO/QCeKgIi uSDRYZ+OMYFbXxo5cbWzSck= =NKE0 -----END PGP SIGNATURE----- From Toan.Tran at ONTARIO.CA Mon Dec 10 10:13:33 2007 From: Toan.Tran at ONTARIO.CA (Tran, Toan (MCYS)) Date: Mon, 10 Dec 2007 13:13:33 -0500 Subject: Data Plotted at Wrong Location Message-ID: Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img.GIF Type: image/gif Size: 7516 bytes Desc: img.GIF URL: From bfraser at GEOANALYTIC.COM Mon Dec 10 10:33:19 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 10 Dec 2007 11:33:19 -0700 Subject: Data Plotted at Wrong Location Message-ID: Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan From Toan.Tran at ONTARIO.CA Mon Dec 10 10:51:07 2007 From: Toan.Tran at ONTARIO.CA (Tran, Toan (MCYS)) Date: Mon, 10 Dec 2007 13:51:07 -0500 Subject: Data Plotted at Wrong Location In-Reply-To: <022101c83b5b$2302d4f0$140002c0@shark> Message-ID: Brent, Thank you for your help. I am new to Map Server... I have: PROJECTION "init=epsg:42304" END inside both my top-level MAP and LAYER definition. I try Adding/Changing (Is this what your meant?) inside my Layer definition... All the points that as plotted before are now gone. PROJECTION "init=epsg:4269" END The proper location is still not plotted. Something I am doing incorrectly? Thank you so much for your help. Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 1:33 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan From bfraser at GEOANALYTIC.COM Mon Dec 10 11:25:36 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 10 Dec 2007 12:25:36 -0700 Subject: Data Plotted at Wrong Location Message-ID: Toan, Looking at the snippet of the csv file you provided below, you've got some coordinates in a Geographic (decimal degrees of latitude and longitude) and some in a projected system (meters LCC?). Mapserver usually allows only one coordinate system definition per input file, so this is not valid. They need to be all Geographic coordinates or all projected. And check your extents in the map file. Would they cover the points in the csv file? It might be helpful if you included your map file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Brent, Thank you for your help. I am new to Map Server... I have: PROJECTION "init=epsg:42304" END inside both my top-level MAP and LAYER definition. I try Adding/Changing (Is this what your meant?) inside my Layer definition... All the points that as plotted before are now gone. PROJECTION "init=epsg:4269" END The proper location is still not plotted. Something I am doing incorrectly? Thank you so much for your help. Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 1:33 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan From Toan.Tran at ONTARIO.CA Mon Dec 10 11:57:28 2007 From: Toan.Tran at ONTARIO.CA (Tran, Toan (MCYS)) Date: Mon, 10 Dec 2007 14:57:28 -0500 Subject: Data Plotted at Wrong Location In-Reply-To: <030401c83b62$72ef7a70$140002c0@shark> Message-ID: Hi Brent, I have include the config.map and the .csv file I have thought if EXTENT could be an issue, but modifying the minX, minY, maxX, maxY doesn't seem to have any effect. Those large number in the .csv file are added because I wanted to test the plotted points... One thing that I find very puzzling is that we have tried the map-server using two different platform: - Windows XP - Solaris SPARC / UNIX Both platform use almost the exact config.map file and .csv file But for some reason, we did not have any problem on the Window Platform... All the points are plotted with little trouble... but then again, in Windows the map-server was package very nicely in a binary form. Also, I pay very close attention so case-sensitive issues (i.e. epsg V.S. EPSG). Could the problem be some other case sensitivity issue in Soalris/UNIX? Thank you so much for your help so far. Much appreciated Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 2:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, Looking at the snippet of the csv file you provided below, you've got some coordinates in a Geographic (decimal degrees of latitude and longitude) and some in a projected system (meters LCC?). Mapserver usually allows only one coordinate system definition per input file, so this is not valid. They need to be all Geographic coordinates or all projected. And check your extents in the map file. Would they cover the points in the csv file? It might be helpful if you included your map file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Brent, Thank you for your help. I am new to Map Server... I have: PROJECTION "init=epsg:42304" END inside both my top-level MAP and LAYER definition. I try Adding/Changing (Is this what your meant?) inside my Layer definition... All the points that as plotted before are now gone. PROJECTION "init=epsg:4269" END The proper location is still not plotted. Something I am doing incorrectly? Thank you so much for your help. Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 1:33 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan -------------- next part -------------- A non-text attachment was scrubbed... Name: config.map Type: application/octet-stream Size: 2901 bytes Desc: config.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: geo_code_phu.csv Type: application/octet-stream Size: 245 bytes Desc: geo_code_phu.csv URL: From bfraser at GEOANALYTIC.COM Mon Dec 10 12:26:15 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 10 Dec 2007 13:26:15 -0700 Subject: Data Plotted at Wrong Location Message-ID: Toan, In your connection string you've got: x='Y' y='X'. Try changing it to x='X' y='Y'. Although I don't know why it would work on Windows but not Solaris. You may want to confirm your Proj installation is working correctly on Solaris by converting a few coordinates using the proj command on the Solaris command line. I think you may need to ensure the PROJ_LIB environment variable is set to the location of the Proj epsg file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 12:57 PM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi Brent, I have include the config.map and the .csv file I have thought if EXTENT could be an issue, but modifying the minX, minY, maxX, maxY doesn't seem to have any effect. Those large number in the .csv file are added because I wanted to test the plotted points... One thing that I find very puzzling is that we have tried the map-server using two different platform: - Windows XP - Solaris SPARC / UNIX Both platform use almost the exact config.map file and .csv file But for some reason, we did not have any problem on the Window Platform... All the points are plotted with little trouble... but then again, in Windows the map-server was package very nicely in a binary form. Also, I pay very close attention so case-sensitive issues (i.e. epsg V.S. EPSG). Could the problem be some other case sensitivity issue in Soalris/UNIX? Thank you so much for your help so far. Much appreciated Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 2:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, Looking at the snippet of the csv file you provided below, you've got some coordinates in a Geographic (decimal degrees of latitude and longitude) and some in a projected system (meters LCC?). Mapserver usually allows only one coordinate system definition per input file, so this is not valid. They need to be all Geographic coordinates or all projected. And check your extents in the map file. Would they cover the points in the csv file? It might be helpful if you included your map file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Brent, Thank you for your help. I am new to Map Server... I have: PROJECTION "init=epsg:42304" END inside both my top-level MAP and LAYER definition. I try Adding/Changing (Is this what your meant?) inside my Layer definition... All the points that as plotted before are now gone. PROJECTION "init=epsg:4269" END The proper location is still not plotted. Something I am doing incorrectly? Thank you so much for your help. Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 1:33 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan From jsubei at YAHOO.FR Tue Dec 11 02:46:02 2007 From: jsubei at YAHOO.FR (JS Ubei) Date: Tue, 11 Dec 2007 11:46:02 +0100 Subject: problem with polar projection Message-ID: dear all mapserver users, I'm trying to display a map with the EPSG:3031 projection system. I use the GSHHS shape for shorelines and I want to see it centered on the antarctic continent. Below my map file and a link to the resulted image. As you can shown the problem is a big hole of data around the pole. In advance, thanks for your help. Jsubei ======== MAPFILE : ======== MAP NAME "test_projection" IMAGETYPE png SIZE 600 600 STATUS ON extent -10000000 -10000000 10000000 10000000 PROJECTION "init=epsg:3031" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=100" END LAYER NAME "GSHHS" DATA "/data/www/html/datashape/gshhs_land" STATUS DEFAULT TYPE LINE PROJECTION "init=epsg:4326" END CLASS COLOR 0 0 250 END END END ======== result : http://farm3.static.flickr.com/2417/2100124467_bd9021c724.jpg?v=0 ======== And what I want to obtain : http://nsidc.org/data/atlas/epsg_3031.html _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr From warmerdam at POBOX.COM Tue Dec 11 05:54:49 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 11 Dec 2007 08:54:49 -0500 Subject: problem with polar projection In-Reply-To: <428151.51010.qm@web26209.mail.ukl.yahoo.com> Message-ID: JS Ubei wrote: > dear all mapserver users, > > I'm trying to display a map with the EPSG:3031 > projection system. > > I use the GSHHS shape for shorelines and I want to see > it centered on the antarctic continent. > > Below my map file and a link to the resulted image. > As you can shown the problem is a big hole of data > around the pole. > > In advance, thanks for your help. Jsubei, The problem that occurs in cases like yours is that MapServer reprojects your map rectangle into lat/long (EPSG:4326) in order to do a spatial query on the vector features. But it reprojects the rectangle by reprojecting a bunch of points around the edge of the rectangle, and using the result to get a bounding rectangle in the target projection. But unfortunately none of the locations around the edge of your pole centered projection are very far north so the resulting bounding box query misses most of the data. My suggestion is to just reproject the shoreline vectors in advance into your polar projection. If you really want to do it the way you have it setup, then the code to look at to improve the rectangle reprojection logic is msProjectRect() in mapproject.c. You will see it first tries to reproject points around the edge. If any of those fail it will reproject a sampling of points within the rectangle to compute bounds. You could modify this to always sample in the box for your build for instance by initializing 'failure' to 1 instead of 0. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Toan.Tran at ONTARIO.CA Tue Dec 11 06:58:45 2007 From: Toan.Tran at ONTARIO.CA (Tran, Toan (MCYS)) Date: Tue, 11 Dec 2007 09:58:45 -0500 Subject: Data Plotted at Wrong Location In-Reply-To: <035101c83b6a$e9f63ca0$140002c0@shark> Message-ID: Hi Brent, Yeah... I was shuffling the X and Y around to see if it make a different, but either combination doesn't seem to work. I check the PROJ_LIB environment variable, it wasn't set. Setting the variable in Solaris and Apache to /usr/local/share/proj doesn't seem to work. Executing: # proj +proj=lcc 79.725 43.715 (input) 5619844.75 7781484.62 (output) 43.715 79.725 (input) 1266934.34 10025427.15 (output) Does that confirm Proj4 is working correctly? I been stuck here for awhile... This going to haunt me if I can't figure out what's wrong... Thanks a lot Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 3:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, In your connection string you've got: x='Y' y='X'. Try changing it to x='X' y='Y'. Although I don't know why it would work on Windows but not Solaris. You may want to confirm your Proj installation is working correctly on Solaris by converting a few coordinates using the proj command on the Solaris command line. I think you may need to ensure the PROJ_LIB environment variable is set to the location of the Proj epsg file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 12:57 PM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi Brent, I have include the config.map and the .csv file I have thought if EXTENT could be an issue, but modifying the minX, minY, maxX, maxY doesn't seem to have any effect. Those large number in the .csv file are added because I wanted to test the plotted points... One thing that I find very puzzling is that we have tried the map-server using two different platform: - Windows XP - Solaris SPARC / UNIX Both platform use almost the exact config.map file and .csv file But for some reason, we did not have any problem on the Window Platform... All the points are plotted with little trouble... but then again, in Windows the map-server was package very nicely in a binary form. Also, I pay very close attention so case-sensitive issues (i.e. epsg V.S. EPSG). Could the problem be some other case sensitivity issue in Soalris/UNIX? Thank you so much for your help so far. Much appreciated Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 2:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, Looking at the snippet of the csv file you provided below, you've got some coordinates in a Geographic (decimal degrees of latitude and longitude) and some in a projected system (meters LCC?). Mapserver usually allows only one coordinate system definition per input file, so this is not valid. They need to be all Geographic coordinates or all projected. And check your extents in the map file. Would they cover the points in the csv file? It might be helpful if you included your map file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Brent, Thank you for your help. I am new to Map Server... I have: PROJECTION "init=epsg:42304" END inside both my top-level MAP and LAYER definition. I try Adding/Changing (Is this what your meant?) inside my Layer definition... All the points that as plotted before are now gone. PROJECTION "init=epsg:4269" END The proper location is still not plotted. Something I am doing incorrectly? Thank you so much for your help. Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 1:33 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan From David.Fawcett at STATE.MN.US Tue Dec 11 07:27:40 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 11 Dec 2007 09:27:40 -0600 Subject: Data Plotted at Wrong Location In-Reply-To: A Message-ID: Have you tried setting the value of PROJ_LIB in your mapfile? Take a look at CONFIG in the Map File reference: http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tran, Toan (MCYS) Sent: Tuesday, December 11, 2007 8:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi Brent, Yeah... I was shuffling the X and Y around to see if it make a different, but either combination doesn't seem to work. I check the PROJ_LIB environment variable, it wasn't set. Setting the variable in Solaris and Apache to /usr/local/share/proj doesn't seem to work. Executing: # proj +proj=lcc 79.725 43.715 (input) 5619844.75 7781484.62 (output) 43.715 79.725 (input) 1266934.34 10025427.15 (output) Does that confirm Proj4 is working correctly? I been stuck here for awhile... This going to haunt me if I can't figure out what's wrong... Thanks a lot Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 3:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, In your connection string you've got: x='Y' y='X'. Try changing it to x='X' y='Y'. Although I don't know why it would work on Windows but not Solaris. You may want to confirm your Proj installation is working correctly on Solaris by converting a few coordinates using the proj command on the Solaris command line. I think you may need to ensure the PROJ_LIB environment variable is set to the location of the Proj epsg file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 12:57 PM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi Brent, I have include the config.map and the .csv file I have thought if EXTENT could be an issue, but modifying the minX, minY, maxX, maxY doesn't seem to have any effect. Those large number in the .csv file are added because I wanted to test the plotted points... One thing that I find very puzzling is that we have tried the map-server using two different platform: - Windows XP - Solaris SPARC / UNIX Both platform use almost the exact config.map file and .csv file But for some reason, we did not have any problem on the Window Platform... All the points are plotted with little trouble... but then again, in Windows the map-server was package very nicely in a binary form. Also, I pay very close attention so case-sensitive issues (i.e. epsg V.S. EPSG). Could the problem be some other case sensitivity issue in Soalris/UNIX? Thank you so much for your help so far. Much appreciated Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 2:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, Looking at the snippet of the csv file you provided below, you've got some coordinates in a Geographic (decimal degrees of latitude and longitude) and some in a projected system (meters LCC?). Mapserver usually allows only one coordinate system definition per input file, so this is not valid. They need to be all Geographic coordinates or all projected. And check your extents in the map file. Would they cover the points in the csv file? It might be helpful if you included your map file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Brent, Thank you for your help. I am new to Map Server... I have: PROJECTION "init=epsg:42304" END inside both my top-level MAP and LAYER definition. I try Adding/Changing (Is this what your meant?) inside my Layer definition... All the points that as plotted before are now gone. PROJECTION "init=epsg:4269" END The proper location is still not plotted. Something I am doing incorrectly? Thank you so much for your help. Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 1:33 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan From bfraser at GEOANALYTIC.COM Tue Dec 11 07:40:27 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 11 Dec 2007 08:40:27 -0700 Subject: Data Plotted at Wrong Location Message-ID: Toan, Well it's a good first step. You need to now test Proj with your epsg file (to confirm Proj can file and load the epsg file) and your coordinates (to confirm your EXTENT is set to cover the project coordinates). PROJ_LIB needs to be set to something like /usr/local/share/proj/nad (notice the nad at the end). This is the directory containing your "epsg" file. Then you need to test Proj with your EPSG coordinate definition and valid coordinates using Proj's cs2cs command: cs2cs +init=epsg:4326 +to +init=epsg:42304 -79 44 and compare the result to your EXTENTS. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Tuesday, December 11, 2007 7:58 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi Brent, Yeah... I was shuffling the X and Y around to see if it make a different, but either combination doesn't seem to work. I check the PROJ_LIB environment variable, it wasn't set. Setting the variable in Solaris and Apache to /usr/local/share/proj doesn't seem to work. Executing: # proj +proj=lcc 79.725 43.715 (input) 5619844.75 7781484.62 (output) 43.715 79.725 (input) 1266934.34 10025427.15 (output) Does that confirm Proj4 is working correctly? I been stuck here for awhile... This going to haunt me if I can't figure out what's wrong... Thanks a lot Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 3:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, In your connection string you've got: x='Y' y='X'. Try changing it to x='X' y='Y'. Although I don't know why it would work on Windows but not Solaris. You may want to confirm your Proj installation is working correctly on Solaris by converting a few coordinates using the proj command on the Solaris command line. I think you may need to ensure the PROJ_LIB environment variable is set to the location of the Proj epsg file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 12:57 PM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi Brent, I have include the config.map and the .csv file I have thought if EXTENT could be an issue, but modifying the minX, minY, maxX, maxY doesn't seem to have any effect. Those large number in the .csv file are added because I wanted to test the plotted points... One thing that I find very puzzling is that we have tried the map-server using two different platform: - Windows XP - Solaris SPARC / UNIX Both platform use almost the exact config.map file and .csv file But for some reason, we did not have any problem on the Window Platform... All the points are plotted with little trouble... but then again, in Windows the map-server was package very nicely in a binary form. Also, I pay very close attention so case-sensitive issues (i.e. epsg V.S. EPSG). Could the problem be some other case sensitivity issue in Soalris/UNIX? Thank you so much for your help so far. Much appreciated Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 2:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, Looking at the snippet of the csv file you provided below, you've got some coordinates in a Geographic (decimal degrees of latitude and longitude) and some in a projected system (meters LCC?). Mapserver usually allows only one coordinate system definition per input file, so this is not valid. They need to be all Geographic coordinates or all projected. And check your extents in the map file. Would they cover the points in the csv file? It might be helpful if you included your map file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Brent, Thank you for your help. I am new to Map Server... I have: PROJECTION "init=epsg:42304" END inside both my top-level MAP and LAYER definition. I try Adding/Changing (Is this what your meant?) inside my Layer definition... All the points that as plotted before are now gone. PROJECTION "init=epsg:4269" END The proper location is still not plotted. Something I am doing incorrectly? Thank you so much for your help. Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 1:33 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan From ibontama at GMAIL.COM Tue Dec 11 09:22:41 2007 From: ibontama at GMAIL.COM (Ibon Tamayo) Date: Tue, 11 Dec 2007 18:22:41 +0100 Subject: Where can I learn more? Message-ID: Hi, I am looking for a course or somebody to teach me Mapserver's secrets (paying). I have basics and a little bit advanced knowledge about it but I would like to get the full concept. Does anybody know about this kind of courses? Traveling isn't a problem. Thanks, Ibon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at MAINE.GOV Tue Dec 11 13:02:23 2007 From: Michael.Smith at MAINE.GOV (Smith, Michael) Date: Tue, 11 Dec 2007 16:02:23 -0500 Subject: issues with scale in wms raster layers Message-ID: I am trying to set up a WMS on MapServer to provide an image catalog to ArcGIS users (I am running latest release of MS4W on a Windows XP SP2 box). The problem I run into is odd behavior with setting scale thresholds. I see two issues: 1) When I set a MAXSCALEDENOM or MINSCALEDENOM property for my layer, the number I put it in there is not the actual min/max scale that is shown in ArcGIS. Instead the scale threshold shown in ArcGIS is 4/3 the number I have in my .map file. For example if I want my scale threshold in ArcGIS to be 50,000, I have to put 37,500 in my .map file. 2) I have 3 layers in my .map file, two are external overview images I created with gdalwarp (following the steps outlined in http://mapserver.gis.umn.edu/docs/howto/raster_data) and the third a raster catalog with a tile index. My .map file is below. The problem here is that if I use the MINSCALEDENOM and/or MAXSCALEDENOM in my layer property for the catalog, and I include the overview images, then my raster catalog does not render (it shows in the layer list in my client, but nothing but white draws. If I remove the overview layers from my .map file and try again, my catalog will work fine and honor the scale thresholds I set (once I adjust them as in #1 above). If I remove the catalog, the two overviews work correctly. Just not all 3. Clients I am using include ArcGIS 9.2 and Quantum GIS 0.9. I see the behavior in both. Any suggestions? Are there WMS-specific tags I should use in my METADATA section instead? *********** Michael Smith Maine DEP/OIT # # Start of GMAP map file # # NAME NW_DOQS STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT 396000 5093000 501000 5261000 UNITS METERS SHAPEPATH "../nw_doqs" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt OUTPUTFORMAT NAME JPEG DRIVER "GD/JPEG" IMAGEMODE RGB EXTENSION "jpeg" FORMATOPTION "QUALITY=75,PROGRESSIVE=TRUE" END OUTPUTFORMAT NAME PNG8 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE PC256 TRANSPARENT ON END # # Start of web interface definition # WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" # For WMS METADATA "wms_title" "nw_doqs" "wms_onlineresource" "http://csu-eia1pcgis2.som.w2k.state.me.us/cgi-bin/mapserv.exe?map=c:/ms 4w/apps/gmap/htdocs/nw_doqs.map&" "wms_srs" "EPSG:26919" END END # # Projection - required for WMS # PROJECTION "init=epsg:26919" END # # Start of layer definitions # LAYER NAME nw_doqs100m MINSCALEDENOM 375000 METADATA "wms_title" "NW DOQs 100m overview" END TYPE RASTER STATUS ON DATA overview100.jp2 PROJECTION "init=epsg:26919" END END LAYER NAME nw_doqs10m MINSCALEDENOM 37500 MAXSCALEDENOM 375000 METADATA "wms_title" "NW DOQs 10m overview" END TYPE RASTER STATUS ON DATA overview10.jp2 PROJECTION "init=epsg:26919" END END LAYER NAME nw_doqs MAXSCALEDENOM 37500 METADATA "wms_title" "NW DOQs" END TILEINDEX "nw_doqs_index.shp" TILEITEM "location" TYPE RASTER STATUS ON PROJECTION "init=epsg:26919" END END END # Map File From traviskirstine at GMAIL.COM Tue Dec 11 13:40:37 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Tue, 11 Dec 2007 16:40:37 -0500 Subject: issues with scale in wms raster layers In-Reply-To: <55D23C89537E434282BC1331F5A94D0F061D55@SOM-TEAQASMAIL6.som.w2k.state.me.us> Message-ID: Try setting your map resolution to 96 DPI the default is 72 RESOLUTION 96 Travis On 11/12/2007, Smith, Michael wrote: > I am trying to set up a WMS on MapServer to provide an image catalog to > ArcGIS users (I am running latest release of MS4W on a Windows XP SP2 > box). The problem I run into is odd behavior with setting scale > thresholds. I see two issues: > > 1) When I set a MAXSCALEDENOM or MINSCALEDENOM property for my layer, > the number I put it in there is not the actual min/max scale that is > shown in ArcGIS. Instead the scale threshold shown in ArcGIS is 4/3 the > number I have in my .map file. For example if I want my scale threshold > in ArcGIS to be 50,000, I have to put 37,500 in my .map file. > > 2) I have 3 layers in my .map file, two are external overview images I > created with gdalwarp (following the steps outlined in > http://mapserver.gis.umn.edu/docs/howto/raster_data) and the third a > raster catalog with a tile index. My .map file is below. The problem > here is that if I use the MINSCALEDENOM and/or MAXSCALEDENOM in my layer > property for the catalog, and I include the overview images, then my > raster catalog does not render (it shows in the layer list in my client, > but nothing but white draws. If I remove the overview layers from my > .map file and try again, my catalog will work fine and honor the scale > thresholds I set (once I adjust them as in #1 above). If I remove the > catalog, the two overviews work correctly. Just not all 3. > > Clients I am using include ArcGIS 9.2 and Quantum GIS 0.9. I see the > behavior in both. > > Any suggestions? Are there WMS-specific tags I should use in my > METADATA section instead? > > *********** > Michael Smith > Maine DEP/OIT > > # > # Start of GMAP map file > # > # > NAME NW_DOQS > STATUS ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT 396000 5093000 501000 5261000 > UNITS METERS > SHAPEPATH "../nw_doqs" > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > > OUTPUTFORMAT > NAME JPEG > DRIVER "GD/JPEG" > IMAGEMODE RGB > EXTENSION "jpeg" > FORMATOPTION "QUALITY=75,PROGRESSIVE=TRUE" > END > > OUTPUTFORMAT > NAME PNG8 > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > IMAGEMODE PC256 > TRANSPARENT ON > END > > # > # Start of web interface definition > # > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > # For WMS > METADATA > "wms_title" "nw_doqs" > "wms_onlineresource" > "http://csu-eia1pcgis2.som.w2k.state.me.us/cgi-bin/mapserv.exe?map=c:/ms > 4w/apps/gmap/htdocs/nw_doqs.map&" > "wms_srs" "EPSG:26919" > END > END > > # > # Projection - required for WMS > # > PROJECTION > "init=epsg:26919" > END > > # > # Start of layer definitions > # > > LAYER > NAME nw_doqs100m > MINSCALEDENOM 375000 > METADATA > "wms_title" "NW DOQs 100m overview" > END > TYPE RASTER > STATUS ON > DATA overview100.jp2 > PROJECTION > "init=epsg:26919" > END > END > > LAYER > NAME nw_doqs10m > MINSCALEDENOM 37500 > MAXSCALEDENOM 375000 > METADATA > "wms_title" "NW DOQs 10m overview" > END > TYPE RASTER > STATUS ON > DATA overview10.jp2 > PROJECTION > "init=epsg:26919" > END > END > > LAYER > NAME nw_doqs > MAXSCALEDENOM 37500 > METADATA > "wms_title" "NW DOQs" > END > TILEINDEX "nw_doqs_index.shp" > TILEITEM "location" > TYPE RASTER > STATUS ON > PROJECTION > "init=epsg:26919" > END > END > > END # Map File > -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From bhudspeth at EDAC.UNM.EDU Tue Dec 11 13:50:45 2007 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Tue, 11 Dec 2007 15:50:45 -0600 Subject: Problems with Compiling Mapserver 5.0 Message-ID: I had originally tried installing Mapserver with GEOS 3.0, giving me the error message below. I have since installed GEOS 2.2.3, and pointed my Mapserver 5.0 configure script at its installed location (e.g. /usr/local/geos2_2_3), and got exactly the same error message as you see below. Thanks, Bill Daniel Morisette wrote: > Which version of GEOS are you using? I believe we version 2.2.3 or more > recent is required and the configure script should look for that, but > maybe for some reason the test failed? > Daniel William Hudspeth wrote: > ./libmapserver.a(mapgeos.o): In function `msGEOSLength': > mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' > ./libmapserver.a(mapgeos.o): In function `msGEOSArea': > mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > -- From arndw at WTAL.DE Tue Dec 11 13:50:12 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Tue, 11 Dec 2007 22:50:12 +0100 Subject: AW: [UMN_MAPSERVER-USERS] problem with polar projection In-Reply-To: <475E96A9.8000704@pobox.com> Message-ID: Hi, It should be possible to retrieve the data: http://www.panoramio.com/photo/6431496. My mapfile have nothing special. I use OpenLayers, therefor the map is build from a couple of tiles and not a single image, but that should not cause any problems or is this the point of your hint. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Frank Warmerdam Gesendet: Dienstag, 11. Dezember 2007 14:55 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] problem with polar projection JS Ubei wrote: > dear all mapserver users, > > I'm trying to display a map with the EPSG:3031 projection system. > > I use the GSHHS shape for shorelines and I want to see it centered on > the antarctic continent. > > Below my map file and a link to the resulted image. > As you can shown the problem is a big hole of data around the pole. > > In advance, thanks for your help. Jsubei, The problem that occurs in cases like yours is that MapServer reprojects your map rectangle into lat/long (EPSG:4326) in order to do a spatial query on the vector features. But it reprojects the rectangle by reprojecting a bunch of points around the edge of the rectangle, and using the result to get a bounding rectangle in the target projection. But unfortunately none of the locations around the edge of your pole centered projection are very far north so the resulting bounding box query misses most of the data. My suggestion is to just reproject the shoreline vectors in advance into your polar projection. If you really want to do it the way you have it setup, then the code to look at to improve the rectangle reprojection logic is msProjectRect() in mapproject.c. You will see it first tries to reproject points around the edge. If any of those fail it will reproject a sampling of points within the rectangle to compute bounds. You could modify this to always sample in the box for your build for instance by initializing 'failure' to 1 instead of 0. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From James.Leveille at MTQ.GOUV.QC.CA Tue Dec 11 13:25:52 2007 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Tue, 11 Dec 2007 16:25:52 -0500 Subject: [UMN_MAPSERVER-USERS] Where can I learn more? In-Reply-To: A Message-ID: Ibon, I once contacted MapGears and was very pleased. We had support, developpement and training. Was a very good pick. Also DM Solution ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Ibon Tamayo Envoy? : 11 d?cembre 2007 12:23 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Where can I learn more? Hi, I am looking for a course or somebody to teach me Mapserver's secrets (paying). I have basics and a little bit advanced knowledge about it but I would like to get the full concept. Does anybody know about this kind of courses? Traveling isn't a problem. Thanks, Ibon -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil at ASDF.CO.NZ Tue Dec 11 15:23:06 2007 From: neil at ASDF.CO.NZ (Neil Fincham) Date: Wed, 12 Dec 2007 12:23:06 +1300 Subject: Something basic wrong with my querybyAttributes in PHP. Message-ID: Hi All, I am new to MapServer (And PHP) but I have found this list very useful as well as the page on the MapServer website http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample . I have already managed to get the examples running but to truly understand what I am doing I just need a bit of a pointer so I am doing what I normally doing and getting back to the basics. What I am trying to do is query a map layer and then draw what is there and display it. My current PHP code is;- ######################## PHP BIT ######################## getLayerByName($qLayer); $layer->querybyAttributes($map, $qField, $qSelect, MS_MULTIPLE); $image = $map->drawQuery(); // $image = $map->draw(); $image_url = $image->saveWebImage(); ?> Example 1: Displaying a map > ############################################################# Relevant part of my MapFile;- (Runs fine with the Demo code) ######################## Mapfile BIT ######################## LAYER NAME LandUnits METADATA "DESCRIPTION" "Land Units" "RESULT_FIELDS" "ForestCode Descriptio" END LabelItem "Descriptio" LABELMAXSCALE 100000 TYPE POLYGON STATUS ON DATA LU CLASS NAME "Land Units" COLOR 200 255 0 OUTLINECOLOR 120 120 120 TEMPLATE "ttt_query.html" NAME "Units" LABEL COLOR 255 0 0 FONT sans-italic TYPE truetype SIZE 8 POSITION AUTO PARTIALS FALSE OUTLINECOLOR 255 255 255 END END TOLERANCE 5 END # Layer ############################################################### Output from ogrinfo -al LU.dbf ######################## ShapeFile BIT ######################## INFO: Open of `LU.dbf' using driver `ESRI Shapefile' successful. Layer name: LU Geometry: Polygon Feature Count: 3043 Extent: (2074167.884855, 5401865.320725) - (2967971.360273, 6735847.095329) Layer SRS WKT: PROJCS["GD_1949_New_Zealand_Map_Grid", GEOGCS["GCS_New_Zealand_1949", DATUM["New_Zealand_Geodetic_Datum_1949", SPHEROID["International_1924",6378388.0,297.0]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["New_Zealand_Map_Grid"], PARAMETER["False_Easting",2510000.0], PARAMETER["False_Northing",6023150.0], PARAMETER["Longitude_Of_Origin",173.0], PARAMETER["Latitude_Of_Origin",-41.0], UNIT["Meter",1.0]] OBJECTID: Integer (9.0) Descriptio: String (25.0) ForestCode: String (4.0) CPT: Integer (9.0) Stand: String (3.0) SpeciesLab: String (25.0) YOE: Integer (4.0) StockedSta: String (20.0) ProdStatus: String (15.0) AreaHa: Real (19.11) Source: Integer (4.0) Source_Des: String (70.0) FSC_Class: String (70.0) Circa: String (4.0) Regen: String (6.0) RealForest: String (4.0) CreatedBy: String (8.0) CreatedDat: Date (10.0) ModifiedBy: String (8.0) ModifiedDa: Date (10.0) LandUnit: Integer (9.0) ParentLand: Integer (9.0) GeoUnit: Integer (9.0) GeoUnitTyp: Integer (4.0) GeoUnitSeq: Integer (4.0) Crop: Integer (9.0) LandClass: String (20.0) LandType: String (20.0) SourceOrig: String (20.0) SHAPE_Leng: Real (19.11) SHAPE_Area: Real (19.11) ############################################################### What I actually get to my browser is;- ######################## BrowserOutput ######################## Warning: [MapServer Error]: msDBFGetItemIndex(): Item 'Object' not found. in 2.php on line 13 Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'LandUnits'. in 2.php on line 15 Warning: [MapServer Error]: msDBFGetItemIndex(): Item 'Object' not found. in 2.php on line 15 Warning: [MapServer Error]: msDBFGetItemIndex(): Item 'Object' not found. in 2.php on line 15 Fatal error: Call to a member function saveWebImage() on a non-object in 2.php on line 19 ################################################################ Line 13 is: $layer->querybyAttributes($map, $qField, $qSelect, MS_MULTIPLE); Line 17 is: $image = $map->drawQuery(); Sorry about the info flood but I always find that the more info the better. I am quite sure that I am just missing something basic but any help would be appreciated. Thanks Neil From Neil.Atherton at LMAL.COM.AU Tue Dec 11 19:49:45 2007 From: Neil.Atherton at LMAL.COM.AU (Neil Atherton) Date: Wed, 12 Dec 2007 14:49:45 +1100 Subject: MAPSERVER: Implementation Question Message-ID: Hello All, I am currently part of a team developing a Task/Production Management/Work Flow Management application for a client here in Australia. The core of this application is the concept of a "task", which is basically a set of requirements that come in from customers (our client's customers) and are passed around the organisation. The result of a task is one or more "products", which are what is built in response to the customer requirements. Both tasks and products have a geospatial component, in that they have coordinates stored against them. We have been asked to use Oracle as the DBMS and to build our application on top of TRIM. I have requirements to build a map search interface. They want a map that they can draw a bounding box on and have the application return all tasks and products that fall within that area. That geospatial search can also be combined with a textual search (e.g. date ranges, product author etc). That should be enough background... One of the solutions I've been looking at is Mapserver. The web site says that data can be added via a delimited text file, and I think I've found examples of applications that use an index file to query against. I had envisioned something like the following implementation: * An index file (or files) is built when products/tasks are stored o This index file lists all products/tasks against a set of coordinates - it would be as simple as product/task number vs. coordinates. * The user draws a bounding box on the map search interface deployed via Mapserver * A query is made against the index file(s) * The returned product/task numbers are passed to TRIM * TRIM joins this search result with any other search criteria (e.g. date, author, title etc) * TRIM executes this joined query * The results can be returned to Mapserver somehow, so the user can see them graphically (e.g. a flag at each of the product/task locations) Does that sound sensible or is it too simplistic? Our application really is light-on when it comes to GIS content, and the other solutions I'm looking at (e.g. ArcIMS/ArcSDE, Dekho/ArcGIS Server) look to be overkill. Thank you for your time, Neil Neil Atherton Principal Engineer Lockheed Martin Australia Information Systems and Global Services (IS&GS), a division of Lockheed Martin Australia Pty Limited Ph: 0419 035 319 ________________________________ This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. They may contain sensitive and/or inconfidence information that is LMAL proprietary information -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Wed Dec 12 00:21:01 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 12 Dec 2007 10:21:01 +0200 Subject: issues with scale in wms raster layers In-Reply-To: A<55D23C89537E434282BC1331F5A94D0F061D55@SOM-TEAQASMAIL6.som.w2k.state.me.us> Message-ID: Hi, What happens if you change the order of your layers so that the vector layer is before overviews in the mapfile? -Jukka Rahkonen- > 2) I have 3 layers in my .map file, two are external > overview images I created with gdalwarp (following the steps > outlined in > http://mapserver.gis.umn.edu/docs/howto/raster_data) and the > third a raster catalog with a tile index. My .map file is > below. The problem here is that if I use the MINSCALEDENOM > and/or MAXSCALEDENOM in my layer property for the catalog, > and I include the overview images, then my raster catalog > does not render (it shows in the layer list in my client, but > nothing but white draws. If I remove the overview layers > from my .map file and try again, my catalog will work fine > and honor the scale thresholds I set (once I adjust them as > in #1 above). If I remove the catalog, the two overviews > work correctly. Just not all 3. > From umberto.nicoletti at GMAIL.COM Wed Dec 12 01:02:30 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 12 Dec 2007 10:02:30 +0100 Subject: MAPSERVER: Implementation Question In-Reply-To: <05E8119110AAA240A58D16A9CA9A091D069A09C71B@sac002.lmal.com.au> Message-ID: Neil, if you already have all of your data in an Oracle database and you have the license for oracle spatial then the simplest solution is to use the Oracle spatial extensions. In this way you can create spatial objects (points, polygons, lines, etc) out of your data and then query them with mapserver directly. Mapserver could first apply a filter (say what's that cost>3000 and cost<6000) and then run the spatial query (say what's inside a shape/rect drawn with the user interface). HTH, Umberto On Dec 12, 2007 4:49 AM, Neil Atherton wrote: > > > > > Hello All, > > > > I am currently part of a team developing a Task/Production Management/Work > Flow Management application for a client here in Australia. The core of > this application is the concept of a "task", which is basically a set of > requirements that come in from customers (our client's customers) and are > passed around the organisation. The result of a task is one or more > "products", which are what is built in response to the customer > requirements. Both tasks and products have a geospatial component, in that > they have coordinates stored against them. > > > > We have been asked to use Oracle as the DBMS and to build our application on > top of TRIM. > > > > I have requirements to build a map search interface. They want a map that > they can draw a bounding box on and have the application return all tasks > and products that fall within that area. That geospatial search can also be > combined with a textual search (e.g. date ranges, product author etc). > > > > That should be enough background? > > > > One of the solutions I've been looking at is Mapserver. The web site says > that data can be added via a delimited text file, and I think I've found > examples of applications that use an index file to query against. I had > envisioned something like the following implementation: > > > > ? An index file (or files) is built when products/tasks are stored > > o This index file lists all products/tasks against a set of coordinates ? > it would be as simple as product/task number vs. coordinates. > > ? The user draws a bounding box on the map search interface deployed > via Mapserver > > ? A query is made against the index file(s) > > ? The returned product/task numbers are passed to TRIM > > ? TRIM joins this search result with any other search criteria (e.g. > date, author, title etc) > > ? TRIM executes this joined query > > ? The results can be returned to Mapserver somehow, so the user can > see them graphically (e.g. a flag at each of the product/task locations) > > > > Does that sound sensible or is it too simplistic? Our application really is > light-on when it comes to GIS content, and the other solutions I'm looking > at (e.g. ArcIMS/ArcSDE, Dekho/ArcGIS Server) look to be overkill. > > > > Thank you for your time, > > Neil > > > > > > Neil Atherton > Principal Engineer > Lockheed Martin Australia Information Systems and Global Services (IS&GS), > a division of Lockheed Martin Australia Pty Limited > Ph: 0419 035 319 > > > > > > > ________________________________ > This email and any files transmitted with it are intended solely for the > use of the individual or entity to whom they are addressed. They may contain > sensitive and/or inconfidence information that is LMAL proprietary > information > From Neil.Atherton at LMAL.COM.AU Wed Dec 12 02:27:39 2007 From: Neil.Atherton at LMAL.COM.AU (Neil Atherton) Date: Wed, 12 Dec 2007 21:27:39 +1100 Subject: FW: [UMN_MAPSERVER-USERS] MAPSERVER: Implementation Question Message-ID: Does Mapserver work with Oracle Locator? -----Original Message----- From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] Sent: Wednesday, 12 December 2007 8:28 PM To: Neil Atherton Subject: Re: [UMN_MAPSERVER-USERS] MAPSERVER: Implementation Question I've used Spatial in the past, so that I'm sure it will work. Locator is the trimmed down version of Spatial shipped with XE, standard, etc. Dunno if it works with mapserver but I suspect it should. Umberto On Dec 12, 2007 10:22 AM, Neil Atherton wrote: > Do you need Oracle Spatial or is Locator enough? Locator comes standard with Oracle, but you pay extra for Spatial. > > > -----Original Message----- > From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] > Sent: Wednesday, 12 December 2007 8:03 PM > To: Neil Atherton > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MAPSERVER: Implementation Question > > Neil, > if you already have all of your data in an Oracle database and you > have the license for oracle spatial then the simplest solution is to > use the Oracle spatial extensions. > In this way you can create spatial objects (points, polygons, lines, > etc) out of your data and then query them with mapserver directly. > Mapserver could first apply a filter (say what's that cost>3000 and > cost<6000) and then run the spatial query (say what's inside a > shape/rect drawn with the user interface). > > HTH, > Umberto > > On Dec 12, 2007 4:49 AM, Neil Atherton wrote: > > > > > > > > > > Hello All, > > > > > > > > I am currently part of a team developing a Task/Production Management/Work > > Flow Management application for a client here in Australia. The core of > > this application is the concept of a "task", which is basically a set of > > requirements that come in from customers (our client's customers) and are > > passed around the organisation. The result of a task is one or more > > "products", which are what is built in response to the customer > > requirements. Both tasks and products have a geospatial component, in that > > they have coordinates stored against them. > > > > > > > > We have been asked to use Oracle as the DBMS and to build our application on > > top of TRIM. > > > > > > > > I have requirements to build a map search interface. They want a map that > > they can draw a bounding box on and have the application return all tasks > > and products that fall within that area. That geospatial search can also be > > combined with a textual search (e.g. date ranges, product author etc). > > > > > > > > That should be enough background... > > > > > > > > One of the solutions I've been looking at is Mapserver. The web site says > > that data can be added via a delimited text file, and I think I've found > > examples of applications that use an index file to query against. I had > > envisioned something like the following implementation: > > > > > > > > * An index file (or files) is built when products/tasks are stored > > > > o This index file lists all products/tasks against a set of coordinates - > > it would be as simple as product/task number vs. coordinates. > > > > * The user draws a bounding box on the map search interface deployed > > via Mapserver > > > > * A query is made against the index file(s) > > > > * The returned product/task numbers are passed to TRIM > > > > * TRIM joins this search result with any other search criteria (e.g. > > date, author, title etc) > > > > * TRIM executes this joined query > > > > * The results can be returned to Mapserver somehow, so the user can > > see them graphically (e.g. a flag at each of the product/task locations) > > > > > > > > Does that sound sensible or is it too simplistic? Our application really is > > light-on when it comes to GIS content, and the other solutions I'm looking > > at (e.g. ArcIMS/ArcSDE, Dekho/ArcGIS Server) look to be overkill. > > > > > > > > Thank you for your time, > > > > Neil > > > > > > > > > > > > Neil Atherton > > Principal Engineer > > Lockheed Martin Australia Information Systems and Global Services (IS&GS), > > a division of Lockheed Martin Australia Pty Limited > > Ph: 0419 035 319 > > > > > > > > > > > > > > ________________________________ > > This email and any files transmitted with it are intended solely for the > > use of the individual or entity to whom they are addressed. They may contain > > sensitive and/or inconfidence information that is LMAL proprietary > > information > > > > This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. They may contain sensitive and/or inconfidence information that is LMAL proprietary information > This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. They may contain sensitive and/or inconfidence information that is LMAL proprietary information From guillaume.sueur at NEOGEO-ONLINE.NET Wed Dec 12 02:29:39 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Wed, 12 Dec 2007 11:29:39 +0100 Subject: FW: [UMN_MAPSERVER-USERS] MAPSERVER: Implementation Question In-Reply-To: <05E8119110AAA240A58D16A9CA9A091D069A09C750@sac002.lmal.com.au> Message-ID: yes it does Neil Atherton a ?crit : > Does Mapserver work with Oracle Locator? > > > -----Original Message----- > From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] > Sent: Wednesday, 12 December 2007 8:28 PM > To: Neil Atherton > Subject: Re: [UMN_MAPSERVER-USERS] MAPSERVER: Implementation Question > > I've used Spatial in the past, so that I'm sure it will work. > Locator is the trimmed down version of Spatial shipped with XE, > standard, etc. Dunno if it works with mapserver but I suspect it > should. > > Umberto > > On Dec 12, 2007 10:22 AM, Neil Atherton wrote: >> Do you need Oracle Spatial or is Locator enough? Locator comes standard with Oracle, but you pay extra for Spatial. >> >> >> -----Original Message----- >> From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] >> Sent: Wednesday, 12 December 2007 8:03 PM >> To: Neil Atherton >> Cc: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] MAPSERVER: Implementation Question >> >> Neil, >> if you already have all of your data in an Oracle database and you >> have the license for oracle spatial then the simplest solution is to >> use the Oracle spatial extensions. >> In this way you can create spatial objects (points, polygons, lines, >> etc) out of your data and then query them with mapserver directly. >> Mapserver could first apply a filter (say what's that cost>3000 and >> cost<6000) and then run the spatial query (say what's inside a >> shape/rect drawn with the user interface). >> >> HTH, >> Umberto >> >> On Dec 12, 2007 4:49 AM, Neil Atherton wrote: >>> >>> >>> >>> Hello All, >>> >>> >>> >>> I am currently part of a team developing a Task/Production Management/Work >>> Flow Management application for a client here in Australia. The core of >>> this application is the concept of a "task", which is basically a set of >>> requirements that come in from customers (our client's customers) and are >>> passed around the organisation. The result of a task is one or more >>> "products", which are what is built in response to the customer >>> requirements. Both tasks and products have a geospatial component, in that >>> they have coordinates stored against them. >>> >>> >>> >>> We have been asked to use Oracle as the DBMS and to build our application on >>> top of TRIM. >>> >>> >>> >>> I have requirements to build a map search interface. They want a map that >>> they can draw a bounding box on and have the application return all tasks >>> and products that fall within that area. That geospatial search can also be >>> combined with a textual search (e.g. date ranges, product author etc). >>> >>> >>> >>> That should be enough background... >>> >>> >>> >>> One of the solutions I've been looking at is Mapserver. The web site says >>> that data can be added via a delimited text file, and I think I've found >>> examples of applications that use an index file to query against. I had >>> envisioned something like the following implementation: >>> >>> >>> >>> * An index file (or files) is built when products/tasks are stored >>> >>> o This index file lists all products/tasks against a set of coordinates - >>> it would be as simple as product/task number vs. coordinates. >>> >>> * The user draws a bounding box on the map search interface deployed >>> via Mapserver >>> >>> * A query is made against the index file(s) >>> >>> * The returned product/task numbers are passed to TRIM >>> >>> * TRIM joins this search result with any other search criteria (e.g. >>> date, author, title etc) >>> >>> * TRIM executes this joined query >>> >>> * The results can be returned to Mapserver somehow, so the user can >>> see them graphically (e.g. a flag at each of the product/task locations) >>> >>> >>> >>> Does that sound sensible or is it too simplistic? Our application really is >>> light-on when it comes to GIS content, and the other solutions I'm looking >>> at (e.g. ArcIMS/ArcSDE, Dekho/ArcGIS Server) look to be overkill. >>> >>> >>> >>> Thank you for your time, >>> >>> Neil >>> >>> >>> >>> >>> >>> Neil Atherton >>> Principal Engineer >>> Lockheed Martin Australia Information Systems and Global Services (IS&GS), >>> a division of Lockheed Martin Australia Pty Limited >>> Ph: 0419 035 319 >>> >>> >>> >>> >>> >>> >>> ________________________________ >>> This email and any files transmitted with it are intended solely for the >>> use of the individual or entity to whom they are addressed. They may contain >>> sensitive and/or inconfidence information that is LMAL proprietary >>> information >>> >> This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. They may contain sensitive and/or inconfidence information that is LMAL proprietary information >> > > This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. They may contain sensitive and/or inconfidence information that is LMAL proprietary information > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 65 58 88 82 Site web : http://www.neogeo-online.net From joseramonlopez at GMAIL.COM Wed Dec 12 04:08:52 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Wed, 12 Dec 2007 13:08:52 +0100 Subject: ECW Pyramid Message-ID: Hi List. I have populated a raster layer using a Tileindex made from ECW Files. This layer is visible 1:1000 scale with MAXSCALE parameter. As is not possible to create ECW pyramids. Whe have got another raster layer resampling these ECW files. We would like to populate a single raster layer that uses one tile index created from the resampled ECW, visible at 1:10000 scale (and smaller), and another tileindex from the original ECW files visible at bigger scales. Is it possible? If not, please tell me how could I do something similar. Tnaks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From boommonge at GMAIL.COM Wed Dec 12 04:32:42 2007 From: boommonge at GMAIL.COM (Luis Angel Monge De La Cruz) Date: Wed, 12 Dec 2007 13:32:42 +0100 Subject: I made table some WMS, I would like to know your opinion Message-ID: Hello, I made the following table some WMS, I would like to know your opinion I understand that this forum is aimed at Mapserver, but I also know that there are people who know enough on the issue of WMS and have used several, not only mapserver. The table that I did is related to the operation of maps server in a distributed environment without the need to implement code through PHP or any other language http://i8.photobucket.com/albums/a34/darkmoncho/mapsserver.jpg thanks Luis Angel Monge -------------- next part -------------- An HTML attachment was scrubbed... URL: From piero.cavalieri at GMAIL.COM Wed Dec 12 05:07:50 2007 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Wed, 12 Dec 2007 13:07:50 +0000 Subject: ECW Pyramid In-Reply-To: <7efce0ed0712120408q3f8fe7a0m5a52204543c696e0@mail.gmail.com> Message-ID: Why don't make the various raster layers (each with it's own tileindx) belong to the same GROUP (and reference the GROUP instead of the layers) ? Piero 2007/12/12, Jos? Ram?n L?pez : > > Hi List. > > I have populated a raster layer using a Tileindex made from ECW Files. > This layer is visible 1:1000 scale with MAXSCALE parameter. > As is not possible to create ECW pyramids. Whe have got another raster > layer resampling these ECW files. > We would like to populate a single raster layer that uses one tile index > created from the resampled ECW, visible at 1:10000 scale (and smaller), and > another tileindex from the original ECW files visible at bigger scales. > Is it possible? If not, please tell me how could I do something similar. > > Tnaks. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at GMAIL.COM Wed Dec 12 06:28:45 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Wed, 12 Dec 2007 15:28:45 +0100 Subject: Activate MrSid support using Gdal - Ubuntu Feisty Message-ID: Hi list, I have installed gdal-bin using the synaptic manager in ubuntu feisty. Yet, when I try to use gdalinfo on my sid-file, I get a format unsupported message. How can activate mrsid support ? Thanks ! Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Dec 12 07:39:11 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 12 Dec 2007 10:39:11 -0500 Subject: Activate MrSid support using Gdal - Ubuntu Feisty In-Reply-To: <8d2ea9d70712120628u5a067f01lcaea12ded3b13fa5@mail.gmail.com> Message-ID: Steven De Vriendt wrote: > Hi list, > > I have installed gdal-bin using the synaptic manager in ubuntu feisty. Yet, > when I try to use gdalinfo on my sid-file, I get a format unsupported > message. > How can activate mrsid support ? Steven, It is in theory possible to build the GDAL MrSID driver as a plugin and use it with your installed GDAL. But this is tricky, and it will only work if there is a MrSID DSDK available that is compatible with the OS/architecture and compiler version your GDAL is built for. If you want to pursue that path ... good luck. Alternatively, you could install FWTools and just use it for the specific translation of the mrsid's into something more generally useful. http://fwtools.maptools.org/ Because the MrSID DSDK is proprietary software, provided only in pre-compiled format it is challenging to offer it in free software distributions. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From gisaalter at GMAIL.COM Wed Dec 12 07:45:35 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Wed, 12 Dec 2007 16:45:35 +0100 Subject: Activate MrSid support using Gdal - Ubuntu Feisty In-Reply-To: <4760009F.20404@pobox.com> Message-ID: Thanks for clearing that up Frank ! I will try to convert my image as you suggest, do you have any suggestions of the format to use ? I have the experience when I try to convert my image (?258mb) that it just blows up the size of the image into gigabytes...Thanks for helping out ! Steven On Dec 12, 2007 4:39 PM, Frank Warmerdam wrote: > Steven De Vriendt wrote: > > Hi list, > > > > I have installed gdal-bin using the synaptic manager in ubuntu feisty. > Yet, > > when I try to use gdalinfo on my sid-file, I get a format unsupported > > message. > > How can activate mrsid support ? > > Steven, > > It is in theory possible to build the GDAL MrSID driver as a plugin and > use > it with your installed GDAL. But this is tricky, and it will only work if > there is a MrSID DSDK available that is compatible with the > OS/architecture > and compiler version your GDAL is built for. If you want to pursue that > path ... good luck. > > Alternatively, you could install FWTools and just use it for the specific > translation of the mrsid's into something more generally useful. > > http://fwtools.maptools.org/ > > Because the MrSID DSDK is proprietary software, provided only in > pre-compiled format it is challenging to offer it in free software > distributions. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Baas at SPEERIT.NL Wed Dec 12 07:13:04 2007 From: Baas at SPEERIT.NL (Jelmer Baas) Date: Wed, 12 Dec 2007 16:13:04 +0100 Subject: Multiple projection systems Message-ID: Hello List, I'm currently fighting with a lot of projection issues. I have background data in the WGS84 system. My main data is in some Belgian system, which MapInfo calls "Belgian National System (correct)". I would like to display these layers and still be able to choose what coords I get after running a query. Is this possible? For example: LAYER NAME Layer1 PROJECTION [Belgian National System (correct)] END END LAYER NAME Layer2 TEMPLATE "layer2.html" PROJECTION [WG84] END END In this case, I'd like the results of a query on Layer2 to be in RD (Dutch) system. Is this at all possible? Last but not least: I'm not quite sure what Projection "AUTO" means. Does this follow the "default" projection as stated in my map file, the projection of the last layer or simple the projection as the TAB file says? In case it's relevant: (Yes, I want to upgrade but version 5.x broke somehow -- Soon I'll try again). MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPO RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SH APEFILE DEBUG=MSDEBUG Any help would be greatly appreciated! Thanks in advance. With kind Regards, Jelmer Baas From warmerdam at POBOX.COM Wed Dec 12 07:56:11 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 12 Dec 2007 10:56:11 -0500 Subject: Multiple projection systems In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF2189712@batavia.Speerit.local> Message-ID: Jelmer Baas wrote: > I would like to display these layers and still be able to choose what > coords I get after running a query. Is this possible? Jelmer, Sorry, I don't know. > Last but not least: I'm not quite sure what Projection "AUTO" means. > Does this follow the "default" projection as stated in my map file, the > projection of the last layer or simple the projection as the TAB file > says? Projection "AUTO" means try and read the coordinate system definition from the file in question. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From jsubei at YAHOO.FR Wed Dec 12 08:07:42 2007 From: jsubei at YAHOO.FR (JS Ubei) Date: Wed, 12 Dec 2007 16:07:42 +0000 Subject: problem with polar projection : next step ! Message-ID: Hi all, Now, with your help, I ' succeed to correctly display a map with a polar projection from a shape file .... Now I need to overlay a raster data on the same map .... and occurs the same problem, I think. You can see the raster file here : http://farm3.static.flickr.com/2262/2105913678_4146b4cf58.jpg?v=0 And the result here : http://farm3.static.flickr.com/2033/2105913676_a612cd7d79.jpg?v=0 What is your opinion ? How I can correctly configure my map ? For information I use the java/mapscript API and the raster file come from a opendap data server trough the gdal library .... thank you Jsubei ----- Message d'origine ---- De : Arnd Wippermann ? : JS Ubei Cc : MAPSERVER-USERS at LISTS.UMN.EDU Envoy? le : Mardi, 11 D?cembre 2007, 22h40mn 00s Objet : AW: [UMN_MAPSERVER-USERS] problem with polar projection Hi, It should be possible to retrieve the data: http://www.panoramio.com/photo/6431496. My mapfile have nothing special. I use OpenLayers, therefor the map is build from a couple of tiles and not a single image, but that should not cause any problems. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von JS Ubei Gesendet: Dienstag, 11. Dezember 2007 11:46 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] problem with polar projection dear all mapserver users, I'm trying to display a map with the EPSG:3031 projection system. I use the GSHHS shape for shorelines and I want to see it centered on the antarctic continent. Below my map file and a link to the resulted image. As you can shown the problem is a big hole of data around the pole. In advance, thanks for your help. Jsubei ======== MAPFILE : ======== MAP NAME "test_projection" IMAGETYPE png SIZE 600 600 STATUS ON extent -10000000 -10000000 10000000 10000000 PROJECTION "init=epsg:3031" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=100" END LAYER NAME "GSHHS" DATA "/data/www/html/datashape/gshhs_land" STATUS DEFAULT TYPE LINE PROJECTION "init=epsg:4326" END CLASS COLOR 0 0 250 END END END ======== result : http://farm3.static.flickr.com/2417/2100124467_bd9021c724.jpg?v=0 ======== And what I want to obtain : http://nsidc.org/data/atlas/epsg_3031.html ____________________________________________________________________________ _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr From spoletto at ALICE.IT Wed Dec 12 08:31:28 2007 From: spoletto at ALICE.IT (Samuele Poletto) Date: Wed, 12 Dec 2007 17:31:28 +0100 Subject: MyGIS without shp2mysql.pl Message-ID: Hi, I would like to know if it is possible to use mygis layers without having to convert the data with shp2mysql.pl. That script creates 3 different tables for each layer, and for my application I need to have only 1 table per layer, having a gid and the geometric field... However, if I try to configure my layer in the map file in this way: CONNECTION "host:user:password:dbname:bin:" CONNECTIONTYPE mygis DATA "the_geom from table53" where table53 is like this: gid bigint(20) the_geom blob (stored in WKB format) mapserver crashes without any error message. thanks for you help... -------------- next part -------------- An HTML attachment was scrubbed... URL: From spoletto at ALICE.IT Wed Dec 12 08:30:09 2007 From: spoletto at ALICE.IT (Samuele Poletto) Date: Wed, 12 Dec 2007 17:30:09 +0100 Subject: MyGIS without shp2mysql.pl Message-ID: Hi, I would like to know if it is possible to use mygis layers without having to convert the data with shp2mysql.pl. That script creates 3 different tables for each layer, and for my application I need to have only 1 table per layer, having a gid and the geometric field... However, if I try to configure my layer in the map file in this way: CONNECTION "host:user:password:dbname:bin:" CONNECTIONTYPE mygis DATA "the_geom from table53" where table53 is like this: gid bigint(20) the_geom blob (stored in WKB format) mapserver crashes without any error message. thanks for you help... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at MAINE.GOV Wed Dec 12 08:56:09 2007 From: Michael.Smith at MAINE.GOV (Smith, Michael) Date: Wed, 12 Dec 2007 11:56:09 -0500 Subject: limit raster values in a layer In-Reply-To: A Message-ID: How can I make it so my layer does not show certain pixel values in my .map file? I.e. I want to mask out the black pixels (value 0 in 8-bit and 0,0,0 in 24-bit). *********** Michael Smith Maine DEP/OIT -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Wed Dec 12 09:12:50 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 12 Dec 2007 19:12:50 +0200 Subject: limit raster values in a layer Message-ID: Hi, How about trying Special processing directives. like SCALE or LUT? http://mapserver.gis.umn.edu/docs/howto/raster_data/#special-processing-directives Regards, -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: UMN MapServer Users List puolesta: Smith, Michael L?hetetty: ke 12.12.2007 18:56 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] limit raster values in a layer How can I make it so my layer does not show certain pixel values in my .map file? I.e. I want to mask out the black pixels (value 0 in 8-bit and 0,0,0 in 24-bit). *********** Michael Smith Maine DEP/OIT From MMaganti at ORIONGIS.COM Wed Dec 12 09:17:46 2007 From: MMaganti at ORIONGIS.COM (Murty Maganti) Date: Wed, 12 Dec 2007 12:17:46 -0500 Subject: Dynamic charting Message-ID: Hello All I am having a strange issue using 'Dynamic charting' in map server. All segments of the chart are displayed in same color for some of the charts. Map file definition looks like below CLASS Name "Col1" STYLE SIZE [COLUMN1] COLOR 255 0 0 OUTLINECOLOR 0 0 0 OFFSET 2 0 END #end style END # end class CLASS Name "Col2" STYLE SIZE [COLUMN2] COLOR 0 0 255 OUTLINECOLOR 0 0 0 OFFSET 2 0 END #end style END # end class CLASS Name "Col3" STYLE SIZE [COLUMN3] COLOR 0 255 0 OUTLINECOLOR 0 0 0 OFFSET 2 0 END #end style END # end class CLASS Name "Col4" STYLE SIZE [COLUMN4] COLOR 255 255 0 OUTLINECOLOR 0 0 0 OFFSET 2 0 END #end style END # end class I have attached how the output image looks like. As can be seen from the image, all segments of some of the charts are shown in the same color (yellow in this example). Another issue is chart symbols are drawn overlapping each other making hard to read some of the charts. I can't find how to define not to draw partial charts. Regards Murty Maganti -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: chart1.png Type: image/png Size: 27592 bytes Desc: chart1.png URL: From jmckenna at DMSOLUTIONS.CA Wed Dec 12 09:33:37 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 12 Dec 2007 12:33:37 -0500 Subject: limit raster values in a layer In-Reply-To: <55D23C89537E434282BC1331F5A94D0F061D6C@SOM-TEAQASMAIL6.som.w2k.state.me.us> Message-ID: I think you need to use the OFFSITE parameter in your raster layer (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer). -jeff Smith, Michael wrote: > How can I make it so my layer does not show certain pixel values in my > .map file? I.e. I want to mask out the black pixels (value 0 in 8-bit > and 0,0,0 in 24-bit). > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From thomas.bonfort at GMAIL.COM Wed Dec 12 10:13:35 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 12 Dec 2007 19:13:35 +0100 Subject: Dynamic charting In-Reply-To: Message-ID: are you using a paletted outputformat (i.e. gif) ? if so there's a bug that was found http://trac.osgeo.org/mapserver/changeset/7036/trunk/mapserver/mapchart.c you basically have to change all occurences of gdImageColorAllocate to gdImageColorResolve in mapchart.c cheers, tb On Dec 12, 2007 6:17 PM, Murty Maganti wrote: > > > > > Hello All > > > > I am having a strange issue using 'Dynamic charting' in map server. All > segments of the chart are displayed in same color for some of the charts. > Map file definition looks like below > > CLASS > > Name "Col1" > > STYLE > > SIZE > [COLUMN1] > > COLOR 255 0 > 0 > > OUTLINECOLOR > 0 0 0 > > OFFSET 2 0 > > END #end style > > END # end class > > CLASS > > Name "Col2" > > STYLE > > SIZE > [COLUMN2] > > COLOR 0 0 > 255 > > OUTLINECOLOR > 0 0 0 > > OFFSET 2 0 > > END #end style > > END # end class > > CLASS > > Name "Col3" > > STYLE > > SIZE > [COLUMN3] > > COLOR 0 255 > 0 > > OUTLINECOLOR > 0 0 0 > > OFFSET 2 0 > > END #end style > > END # end class > > CLASS > > Name "Col4" > > STYLE > > SIZE > [COLUMN4] > > COLOR 255 > 255 0 > > OUTLINECOLOR > 0 0 0 > > OFFSET 2 0 > > END #end style > > END # end class > > > > I have attached how the output image looks like. As can be seen from the > image, all segments of some of the charts are shown in the same color > (yellow in this example). > > Another issue is chart symbols are drawn overlapping each other making hard > to read some of the charts. I can't find how to define not to draw partial > charts. > > > > Regards > > Murty Maganti From Toan.Tran at ONTARIO.CA Wed Dec 12 12:06:38 2007 From: Toan.Tran at ONTARIO.CA (Tran, Toan (MCYS)) Date: Wed, 12 Dec 2007 15:06:38 -0500 Subject: Data Plotted at Wrong Location In-Reply-To: <00ec01c83c0c$28809a50$140002c0@shark> Message-ID: Brent, David, Thank you so much for your help so far. Sorry for the long email.... As mentioned by David, setting: CONFIG "PROJ_LIB" "/usr/local/share/proj" OR CONFIG "PROJ_LIB" "/usr/local/share/proj/nad" in the .map doesn't seem to work.... I didn't see a "nad" directory in /usr/local/share/proj All files including epsg are in /usr/local/share/proj I tried creating a "nad" directory in /usr/local/share/proj and copy all the files into "nad" like in Windows (C:\ms4w\proj and C:\ms4w\proj\nad). This doesn't help. Setting chmod 777 * to all these file doesn't work either. Copying the same file to the same directory with uppercase (i.e. epsg to EPSG) also doen'st work. I have check my EXTENT using both ogrinfo and cs2cs. I don't think the EXTENT is an issue, since I normally zoom/pan the map to look for the data. When I test PROJ4 using the proj and cs2cs utility, I did: # cs2cs +init=epsg:4269 +to +init=epsg:42304 or cs2cs +init=epsg:4326 +to +init=epsg:42304 -95 49 [input] 0.00 0.00 0.00 [output] -95 49 [input] 0.00 0.00 0.00 [output] -89.258496 48.402453 [input: Thunder Bay] 425456.38 -47590.64 [output] Double checking: # cs2cs +init=epsg:42304 +to +init=epsg:4269 425456.38 -47590.64 [input] 89d15'36"W 48d24'N 0.000 [output] The convesrion is correct and I was able to see the Thunder Bay plotted at the proper location using (425456.38,-47590.64) with this in my config.map file: #DATA: (425456.38,-47590.64) #MAP LEVEL [Output Projection] PROJECTION "init=EPSG:42304" END #LAYER LEVEL [Input Projection] PROJECTION "init=EPSG:42304" END The problem is that it still can't plot data in geocode (lat,long). This will not work (Cannot see Thunder Bay): #DATA: (-89.258496 48.40245) #MAP LEVEL [Output Projection] PROJECTION "init=EPSG:42304" END #LAYER LEVEL [Input Projection] PROJECTION "init=EPSG:4269" END It seems that it only work if I used init=epsg:42304 (proj=lcc). I cannot find the data in the map when using init=epsg:4269 or init=epsg:4326 Testing PROJ, I notice: #proj +proj=lcc --> Can enter input But... # proj +proj=longlat OR proj +proj=latlong --> error message Rel. 4.5.0, 22 Oct 2006 : +proj=latlong unsuitable for use with proj program. program abnormally terminated Why is it that init=epsg:4269 or init=epsg:4326 doesn't work? I check these value in the epsg file: # NAD83 <4269> +proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs no_defs <> # WGS 84 <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs <> Something I am doing wrong? Thanks Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 11, 2007 10:40 AM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, Well it's a good first step. You need to now test Proj with your epsg file (to confirm Proj can file and load the epsg file) and your coordinates (to confirm your EXTENT is set to cover the project coordinates). PROJ_LIB needs to be set to something like /usr/local/share/proj/nad (notice the nad at the end). This is the directory containing your "epsg" file. Then you need to test Proj with your EPSG coordinate definition and valid coordinates using Proj's cs2cs command: cs2cs +init=epsg:4326 +to +init=epsg:42304 -79 44 and compare the result to your EXTENTS. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Tuesday, December 11, 2007 7:58 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi Brent, Yeah... I was shuffling the X and Y around to see if it make a different, but either combination doesn't seem to work. I check the PROJ_LIB environment variable, it wasn't set. Setting the variable in Solaris and Apache to /usr/local/share/proj doesn't seem to work. Executing: # proj +proj=lcc 79.725 43.715 (input) 5619844.75 7781484.62 (output) 43.715 79.725 (input) 1266934.34 10025427.15 (output) Does that confirm Proj4 is working correctly? I been stuck here for awhile... This going to haunt me if I can't figure out what's wrong... Thanks a lot Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 3:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, In your connection string you've got: x='Y' y='X'. Try changing it to x='X' y='Y'. Although I don't know why it would work on Windows but not Solaris. You may want to confirm your Proj installation is working correctly on Solaris by converting a few coordinates using the proj command on the Solaris command line. I think you may need to ensure the PROJ_LIB environment variable is set to the location of the Proj epsg file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 12:57 PM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi Brent, I have include the config.map and the .csv file I have thought if EXTENT could be an issue, but modifying the minX, minY, maxX, maxY doesn't seem to have any effect. Those large number in the .csv file are added because I wanted to test the plotted points... One thing that I find very puzzling is that we have tried the map-server using two different platform: - Windows XP - Solaris SPARC / UNIX Both platform use almost the exact config.map file and .csv file But for some reason, we did not have any problem on the Window Platform... All the points are plotted with little trouble... but then again, in Windows the map-server was package very nicely in a binary form. Also, I pay very close attention so case-sensitive issues (i.e. epsg V.S. EPSG). Could the problem be some other case sensitivity issue in Soalris/UNIX? Thank you so much for your help so far. Much appreciated Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 2:26 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, Looking at the snippet of the csv file you provided below, you've got some coordinates in a Geographic (decimal degrees of latitude and longitude) and some in a projected system (meters LCC?). Mapserver usually allows only one coordinate system definition per input file, so this is not valid. They need to be all Geographic coordinates or all projected. And check your extents in the map file. Would they cover the points in the csv file? It might be helpful if you included your map file. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Brent, Thank you for your help. I am new to Map Server... I have: PROJECTION "init=epsg:42304" END inside both my top-level MAP and LAYER definition. I try Adding/Changing (Is this what your meant?) inside my Layer definition... All the points that as plotted before are now gone. PROJECTION "init=epsg:4269" END The proper location is still not plotted. Something I am doing incorrectly? Thank you so much for your help. Toan -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: December 10, 2007 1:33 PM To: Tran, Toan (MCYS); MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Toan, You haven't specified the coordinate system of the input data so MapServer assumes it's the same as the coordinate system for the output map (LCC). Add a PROJECTION object to the csv file's LAYER definition. For example, if the input data in the csv file is NAD83: LAYER csv PROJECTION "init=epsg:4269" END : Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Tran, Toan (MCYS)" To: Sent: Monday, December 10, 2007 11:13 AM Subject: [UMN_MAPSERVER-USERS] Data Plotted at Wrong Location Hi, I wish to plot several points in Ontario, Canada, but the problem is that the points are plotted at the wrong location. My data are in decimal degree stored in a CSV file. But when the map was draw, all the points are plotted very closed together. I suspect that for some reason, the map-server is plotting the data as meter/or any other unit instead of degree decimal. I used this PROJECTION in both my top-level MAP and proper layer, with UNITS METERS: PROJECTION "init=epsg:42304" END I added this for the /usr/local/share/proj/epsg file because it wasn't there after I installed the Projection Library: <42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> Is it enough to simple add the above epsg code??? Changing UNITS METERS to UNITS DD in my map file doesn't help either. Here are some sample DATA: <> Desc,,X,Y "5",79.725833,43.715361 "6",81.000107,43.368512 "7",-78.347276,44.301459 "8",,81.332038,48.47381 "9",79.68955,43.4662 ... "AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000 "AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000 This is what I see when I type ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help is much appreciated Thanks Toan From anhtin at GMAIL.COM Wed Dec 12 17:43:29 2007 From: anhtin at GMAIL.COM (Bui Anh Tin) Date: Thu, 13 Dec 2007 08:43:29 +0700 Subject: Raster Message-ID: Hi all I'm new on Mapserver. Does anyone know how to render the raster dataset in Mapserver? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From boedy1996 at GMAIL.COM Wed Dec 12 21:51:08 2007 From: boedy1996 at GMAIL.COM (Budi Hermansyah) Date: Thu, 13 Dec 2007 12:51:08 +0700 Subject: MAPSERVER-USERS Digest - 10 Dec 2007 to 11 Dec 2007 (#2007-338) In-Reply-To: Message-ID: dear all mapserver users, I'm trying to display a map with information from objek by mouse over event. Budi Hermansyah From listario at GMAIL.COM Wed Dec 12 23:38:48 2007 From: listario at GMAIL.COM (J. Parapar) Date: Thu, 13 Dec 2007 08:38:48 +0100 Subject: Raster In-Reply-To: Message-ID: Bui: http://mapserver.gis.umn.edu/docs/howto/raster_data Best regards Jorge 2007/12/13, Bui Anh Tin : > > > > Hi all > > I'm new on Mapserver. Does anyone know how to render the raster dataset in > Mapserver? > > Thanks in advance. From Jukka.Rahkonen at MMMTIKE.FI Wed Dec 12 23:47:05 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 13 Dec 2007 09:47:05 +0200 Subject: Raster In-Reply-To: A Message-ID: Hi, Perhaps a silly answer, but I recommend you to have a look at MapServer documentation. Starting point for rasters could be http://mapserver.gis.umn.edu/docs/howto/raster_data I promise you'll get more useful information by reading some other documents as well. -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Bui Anh Tin L?hetetty: 13. joulukuuta 2007 3:43 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Raster Hi all I'm new on Mapserver. Does anyone know how to render the raster dataset in Mapserver? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aberenyi at BURKEN.HU Wed Dec 12 23:57:29 2007 From: aberenyi at BURKEN.HU (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Thu, 13 Dec 2007 08:57:29 +0100 Subject: PrintProduction Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear All, Did anyone face the problem that the picture generated by the PrintProduction widget has a different name that the widget expects in the html code? To be clear: - - the picture generated by the widget is 4760e514_7d74_0.gif, and it contains the map, but - - in the html code it expects thus nothing appears but the canvas, the map name, the lower left and the upper right coordinates. Is it a bug in the widget or I did something wrong? I've reinstalled GD an PHP, but no success at all. Any help would be appreciated, Thanks in advance, Attila -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHYOXp76iTSmN9z2ARAmm1AJ47AtiYNTnGlTkyQ4xjULOWdp4abgCeMS9S W5h2hca1qyJ4MCEvPdPFqE8= =g2Mt -----END PGP SIGNATURE----- From anhtin at GMAIL.COM Thu Dec 13 00:44:28 2007 From: anhtin at GMAIL.COM (Bui Anh Tin) Date: Thu, 13 Dec 2007 15:44:28 +0700 Subject: Get All Attribute on Layer Message-ID: Hi all Some body show for me. How can i get all Name Filed, and Data in shapefile by Mapserver. I did try ShapLib but i dont like it. Because if i want to search data on file DBF i have get all record. -------------- next part -------------- An HTML attachment was scrubbed... URL: From anhtin at GMAIL.COM Thu Dec 13 00:51:14 2007 From: anhtin at GMAIL.COM (Bui Anh Tin) Date: Thu, 13 Dec 2007 15:51:14 +0700 Subject: Mapserver queryByRect in Layer Message-ID: Hi all I am deverloping my web map in asp.net and mapserver. But i have problem with queryByRect when i queryByPoint in the rectangle i got two result, but with queryByRect i haven't result. Some body show to me ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Dec 13 00:52:49 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 13 Dec 2007 10:52:49 +0200 Subject: ECW Pyramid In-Reply-To: A<7efce0ed0712120408q3f8fe7a0m5a52204543c696e0@mail.gmail.com> Message-ID: Hi, To my understandment and experience it is unnecessary to have anything like ECW pyramids if you mean by that the same thing as with Geotiffs, for example. That is, downsampled versions of individual image files. ECW has a wavelet based internal system for getting the same effect and it works fine. Another thing is that if you are looking your site through tile index and you have zoomed out very far then pyramid layers (or overviews or whatever they are called) do not help very much. In this case MapServer has to open a bunch of physical files from the file system, perhaps tens of image files, and that will ineviatably slow down the response time. What will help in this case is a separate, radically downsampled image that covers large area of your imagery. For example, we have often sites which are 50 km by 50 km in size and they hold 100 aerial images with 0.5 metre pixel size. Zooming to whole site through tile index means that all the 100 files must be opened and it is for sure always slow with any file format and whether we have fine internal pyramids or not. Pyramids do help a bit but the key to the speed is to avoin opening so many files from disk. What we use to do is to create a quick look image with something like 10 metre pixel size and use that until the user has zoomed in so close that the resolution is not good enough. At that moment only 1-4 original images must be opened through tileindex and that goes fast. A simple way to create a quick look image is to define Geotiff outputformat in the mapfile and ask MapServer to send the image with whole site extents with some reasonable width and height. -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Jos? Ram?n L?pez L?hetetty: 12. joulukuuta 2007 14:09 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] ECW Pyramid Hi List. I have populated a raster layer using a Tileindex made from ECW Files. This layer is visible 1:1000 scale with MAXSCALE parameter. As is not possible to create ECW pyramids. Whe have got another raster layer resampling these ECW files. We would like to populate a single raster layer that uses one tile index created from the resampled ECW, visible at 1:10000 scale (and smaller), and another tileindex from the original ECW files visible at bigger scales. Is it possible? If not, please tell me how could I do something similar. Tnaks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From carolin.latze at UNIFR.CH Thu Dec 13 01:26:15 2007 From: carolin.latze at UNIFR.CH (Carolin Latze) Date: Thu, 13 Dec 2007 10:26:15 +0100 Subject: Get All Attribute on Layer In-Reply-To: Message-ID: Well, there methods like getItems() and getShape() to retrieve the layer attributes. Shapelib is meant to be used to create shape files etc. To query layer data, it is better to use mapserver methods. Regards Bui Anh Tin wrote: > Hi all > Some body show for me. How can i get all Name Filed, and Data in > shapefile by Mapserver. > I did try ShapLib but i dont like it. Because if i want to search data > on file DBF i have get all record. From schroeter at NETGIS.DE Thu Dec 13 01:44:51 2007 From: schroeter at NETGIS.DE (Sven Schroeter) Date: Thu, 13 Dec 2007 10:44:51 +0100 Subject: style - pattern - Mapserver 5 Message-ID: Hallo list, till Mapserver 4.10 the style parameter in a symbol definition has been used to store dash patterns like the example below (railway). Now in version 5.0 it is recommend change STYLE to PATTERN, but regardless of which parameter there is no effect. Neither STYLE nor PATTERN produces a distance. SYMBOL NAME 'punkt' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'rechteck-bahn' TYPE VECTOR POINTS 0 0 0 0.6 1 0.6 1 0 0 0 END FILLED TRUE STYLE 8 12 8 12 END END any idea? thanx Sven From anhtin at GMAIL.COM Thu Dec 13 05:02:28 2007 From: anhtin at GMAIL.COM (Bui Anh Tin) Date: Thu, 13 Dec 2007 20:02:28 +0700 Subject: get all point in mapobj extent Message-ID: Thanks reply for me I have a question ex: My map have layer: "station ticket" type data is point And i want get all point in mapobj extent now. How can i do that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomlg at GMAIL.COM Thu Dec 13 05:51:30 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 13 Dec 2007 13:51:30 +0000 Subject: Layer reprojection in WFS Server Message-ID: Hi List. I'm trying to serve some point layers using mapserver as WFS server. I want to serve this layers in EPSG:4326, but my layers (stored in postgres) are in EPSG:22195. I tried several things (like setting EPSG:4326 PROJECTION at map level and EPSG:22195 at layer level, working with "wfs_srs" at map and layer level, etc) but I get always a missing as answer from server. I'm working on windows, and I tested it with different versions of ms4w (including the actual version), with the same result in all the tests. I also tried setting DEBUG ON in my map file, but no errors are reported in the error.log file. I followed the "WFS Servers with MapServer" howto and I get it working in EPSG:22195 coordinates but no in EPSG:4326. Is there something I'm missing? Somewere I read that Mapserver WFS Server can't reproject layers. Is that right? Thanks in advance. Rodrigo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomlg at GMAIL.COM Thu Dec 13 06:56:18 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 13 Dec 2007 14:56:18 +0000 Subject: Layer reprojection in WFS Server In-Reply-To: <10cf58b30712130551x6c493ef5p825477008be57b21@mail.gmail.com> Message-ID: Sorry people. Problem Solved. After several time trying to get it working I sent the mail to the list and after that I figure out what the problem was. I was setting wrong the EXTENT in my map... I was exchanging the lat and long so the map extent was wrong and there was no reprojected points in the map extent area. Sorry again. Rodrigo. On Dec 13, 2007 1:51 PM, Rodrigo Mart?n L?PEZ GREGORIO wrote: > Hi List. > > I'm trying to serve some point layers using mapserver as WFS server. I > want to serve this layers in EPSG:4326, but my layers (stored in postgres) > are in EPSG:22195. > > I tried several things (like setting EPSG:4326 PROJECTION at map level and > EPSG:22195 at layer level, working with "wfs_srs" at map and layer level, > etc) but I get always a missing as answer from server. > > I'm working on windows, and I tested it with different versions of ms4w > (including the actual version), with the same result in all the tests. > > I also tried setting DEBUG ON in my map file, but no errors are reported > in the error.log file. > > I followed the "WFS Servers with MapServer" howto and I get it working in > EPSG:22195 coordinates but no in EPSG:4326. > > Is there something I'm missing? Somewere I read that Mapserver WFS Server > can't reproject layers. Is that right? > > Thanks in advance. > > Rodrigo. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matteo.rossi at UNIROMA1.IT Thu Dec 13 07:58:39 2007 From: matteo.rossi at UNIROMA1.IT (matteo rossi) Date: Thu, 13 Dec 2007 16:58:39 +0100 Subject: Customizing layers in MapFile (kaMap) In-Reply-To: Message-ID: Hi list, i've a polygon LAYER added in my mapfile under a CLASS object. I'd like to try to set into the mapfile an "empty polygon" option in order to show in KaMap only its contour. With the COLOUR option of CLASS object i cannot do it cause it's only possible to manage the RGB otpions. What I've to do? Another attempt I made is to set a transparency for my layer but: 1) Using TRANSPARENCY + integer option the layer is still opaque and it's colour change (!); 2) Using TRANSAPRENCY + ALPHA option, nothing happens. Any suggest? Thanks a lot Matteo Rossi -- Dott.Ing. Matteo Rossi Phd in Environmental Engineering Dept. Hydraulics, Transportations and Roads Faculty of Engineering University "La Sapienza" of Rome tel: +39 0644585024 fax: +39 0644585016 web: http://geoingegneria.dits.uniroma1.it/ mailto: matteo.rossi at uniroma1.it From jim.dahl at MAIL.CO.DOUGLAS.MN.US Thu Dec 13 08:56:13 2007 From: jim.dahl at MAIL.CO.DOUGLAS.MN.US (Jim Dahl) Date: Thu, 13 Dec 2007 10:56:13 -0600 Subject: Mapserver Expressions Message-ID: I want to force all entries for a search to upper case even if user enters lower. I only read in the doc that it is case sensitive. Will mapserver use 'uCase, lCase' , etc. Jim Dahl, GISP GIS Coordinator Douglas County Public Works 509 3rd Ave W PO Box 398 Alexandria MN 56308 V 320-762-2933 320-763-6001 F 320-763-7955 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim.dahl at MAIL.CO.DOUGLAS.MN.US Thu Dec 13 08:56:32 2007 From: jim.dahl at MAIL.CO.DOUGLAS.MN.US (Jim Dahl) Date: Thu, 13 Dec 2007 10:56:32 -0600 Subject: Mapserver Expressions allowed Message-ID: I want to force all entries for a search to upper case even if user enters lower. I only read in the doc that it is case sensitive. Will mapserver use 'uCase, lCase' , etc. thanks, Jim From Toan.Tran at ONTARIO.CA Thu Dec 13 09:32:02 2007 From: Toan.Tran at ONTARIO.CA (Tran, Toan (MCYS)) Date: Thu, 13 Dec 2007 12:32:02 -0500 Subject: Data only projected in some region In-Reply-To: <00ec01c83c0c$28809a50$140002c0@shark> Message-ID: Hi, This is a little hard to describe, but are there any reason why when using epsg: 42304 in PROJECTION (both MAP and LAYER level), only the points in a specific area appear in the map? For example, I am viewing the Toronto area now on the map and I see 4 points (1,0 2,0 3,0 4,0). I know there are more points to the east (i.e. 5,0) based on the data store in a CSV file, but if I pan toward the east, these points (5,0) will now show up. Attached is the config.map file and image file. Thanks Toan -------------- next part -------------- A non-text attachment was scrubbed... Name: config.map Type: application/octet-stream Size: 2904 bytes Desc: config.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pic.doc Type: application/msword Size: 28160 bytes Desc: pic.doc URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Dec 13 10:20:47 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 13 Dec 2007 20:20:47 +0200 Subject: Customizing layers in MapFile (kaMap) Message-ID: Hi, Perhaps you could try with OUTLINECOLOR in layer STYLE section. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: UMN MapServer Users List puolesta: matteo rossi L?hetetty: to 13.12.2007 17:58 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Customizing layers in MapFile (kaMap) Hi list, i've a polygon LAYER added in my mapfile under a CLASS object. I'd like to try to set into the mapfile an "empty polygon" option in order to show in KaMap only its contour. With the COLOUR option of CLASS object i cannot do it cause it's only possible to manage the RGB otpions. What I've to do? Another attempt I made is to set a transparency for my layer but: 1) Using TRANSPARENCY + integer option the layer is still opaque and it's colour change (!); 2) Using TRANSAPRENCY + ALPHA option, nothing happens. Any suggest? Thanks a lot Matteo Rossi -- Dott.Ing. Matteo Rossi Phd in Environmental Engineering Dept. Hydraulics, Transportations and Roads Faculty of Engineering University "La Sapienza" of Rome tel: +39 0644585024 fax: +39 0644585016 web: http://geoingegneria.dits.uniroma1.it/ mailto: matteo.rossi at uniroma1.it From MMaganti at ORIONGIS.COM Thu Dec 13 14:52:58 2007 From: MMaganti at ORIONGIS.COM (Murty Maganti) Date: Thu, 13 Dec 2007 17:52:58 -0500 Subject: WMS with locale Message-ID: Question to all WMS experts Does WMS request take locale specific formatted numbers or WMS responses return locale specific formatted numbers. For example, for Spanish culture, decimal separator is ',' instead of '.'. If I run WMS service on a machine with current locale as Spain, is GetCapabilties going to return extents formatted to Spanish. Does it accept to send extents formatted to Spanish culture and specify the culture as part of request. I could not find any info in WMS cookbook. Thanks Murty Maganti -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Thu Dec 13 17:25:36 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Thu, 13 Dec 2007 17:25:36 -0800 Subject: style - pattern - Mapserver 5 In-Reply-To: <001d01c83d6c$cf39e7a0$1cb2a8c0@sven> Message-ID: NETGIS Schroeter wrote: > > Hallo list, > till Mapserver 4.10 the style parameter in a symbol definition has been > used > to store dash patterns like the example below (railway). Now in version > 5.0 > it is recommend change STYLE to PATTERN, but regardless of which parameter > there is no effect. Neither STYLE nor PATTERN produces a distance. > > SYMBOL > NAME 'punkt' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > SYMBOL > NAME 'rechteck-bahn' > TYPE VECTOR > POINTS > 0 0 > 0 0.6 > 1 0.6 > 1 0 > 0 0 > END > FILLED TRUE > STYLE > 8 12 8 12 > END > END > i don't know about combining STYLE/PATTTERN with TYPE VECTOR. in my only case, i defined exactly what i wanted repeated in the vector POINTS, and that pattern is repeated, with no gaps. in the case of a simple on/off pattern (which is i assume you're trying to do with the TYPE ELLIPSE), i think the gist is that you no longer need to use ellipses to draw lines. something like the following ought to suffice: SYMBOL NAME 'dashed1' TYPE SIMPLE PATTERN 1 1 END END - rich -- View this message in context: http://www.nabble.com/style---pattern----Mapserver-5-tp14312872p14328403.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ssteve52 at YAHOO.COM Thu Dec 13 18:50:54 2007 From: ssteve52 at YAHOO.COM (Steve Smith) Date: Thu, 13 Dec 2007 18:50:54 -0800 Subject: libdapserver.so.2 Message-ID: Since upgrading my server to Fedora 8, I have been having problems using mapserver. I know get a mapserver error, in the httpd log, informing me that the library libdapserver.so.2 can not be found. I checked and this file does not exist on my system. I have a more recent version of libdapserver.so. However, I was not aware that mapserver used this library. I recompiled mapserver, without errors, but still get the above error. I also recompile gdal, without errors, but still get the above error. How does Mapserver or related software (gdal) use libdapserver.so.2, and how do you configure them to use a more recent version? Thanks Jim --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Dec 13 18:57:16 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 13 Dec 2007 21:57:16 -0500 Subject: Data only projected in some region In-Reply-To: A Message-ID: Toan - Are you sure you're not also zooming at the same time, so you pan to a new center point AND zoom in far enough that you're "in between" the data points? - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tran, Toan (MCYS) Sent: Thursday, December 13, 2007 12:32 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Data only projected in some region Hi, This is a little hard to describe, but are there any reason why when using epsg: 42304 in PROJECTION (both MAP and LAYER level), only the points in a specific area appear in the map? For example, I am viewing the Toronto area now on the map and I see 4 points (1,0 2,0 3,0 4,0). I know there are more points to the east (i.e. 5,0) based on the data store in a CSV file, but if I pan toward the east, these points (5,0) will now show up. Attached is the config.map file and image file. Thanks Toan From bradley_mclain at DEBORTOLIWINES.COM Thu Dec 13 19:00:01 2007 From: bradley_mclain at DEBORTOLIWINES.COM (Bradley McLain) Date: Fri, 14 Dec 2007 14:00:01 +1100 Subject: HostGIS+OpenLayers WMS requests to mapserver problems Message-ID: I originally had an FGS setup installed and my OpenLayers page worked fine displaying both Google Maps layers and Mapserver layers which were retrieved by a WMS request. However I have now moved over to HostGIS as a base and the WMS requests have become really strange. Originally a standard WMS request statement looked like this: http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl However when running under HostGIS I kept getting mapserv errors and after satisfying all of the things it was whinging about, I got it to finally display again using the request shown below: http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&format=image/png&width=800&height=600&styles= Notice the really strange "styles=" Despite this I cannot get WMS requests out of OpenLayers to work at all, even adding all of the extra parameters it is asking for. I have no idea what's going on here, possibly different mapserver settings are present in the HostGIS setup. Any help with this would be much appreciated. Cheers Brad -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Thu Dec 13 19:26:09 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 13 Dec 2007 20:26:09 -0700 Subject: HostGIS+OpenLayers WMS requests to mapserver problems In-Reply-To: <3a1b1f1f0712131900m1b97880dyb1d93a725df19435@mail.gmail.com> Message-ID: Bradley McLain wrote: > I got it to > finally display again using the request shown below: http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&format=image/png&width=800&height=600&styles= Seems pretty normal to me. A styles param is optional, and it's normal for a WMS client to include a blank styles param. Don't worry about that. It's also very normal to require the width, height, bbox, and SRS, and format. If it was working before without them, defaulting to whatever was in the mapfile, then that was a lax enforcement of WMS standard and you should be glad it's been fixed. ;) > Despite this I cannot get WMS requests out of OpenLayers to work at all, > even adding all of the extra parameters it is asking for. Since WMS seems to be working, this must be an OpenLayers issue. Fortunately, I use OpenLayers and Mapserver-WMS all the time; MapServer is my favorite WMS server. :) So, you should probably take this up on the OpenLayers list (of which several of us are also members) as being OL failing to load an otherwise-functioning WMS layer. The first things I would ask from a OL perspective: * Have you tried OpenLayers.Layer.MapServer and gotten the same results? * Have you watched the webserver's access_log and then tried pasting those URLs into your browser? That's my #1 debugging method. And if you can make the server and the map accessible, that would go a long way towards us being able to guess what's going on. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From bradley_mclain at DEBORTOLIWINES.COM Thu Dec 13 19:36:22 2007 From: bradley_mclain at DEBORTOLIWINES.COM (Bradley McLain) Date: Fri, 14 Dec 2007 14:36:22 +1100 Subject: HostGIS+OpenLayers WMS requests to mapserver problems In-Reply-To: <4761F7D1.1070802@hostgis.com> Message-ID: So I have been using a lax enforcement of WMS for a while then lol. So if I have understood correctly then if I correctly specify these details in the mapfile itself then if a parameter is blank it should default to that? Thereby avoiding any errors? I am hoping that that will fix the problem since I don't have many of these things specified as I was using only the bare essentials before. I will try this and also try a mapserver layer too, to do some tests and get back to you. Where can I access the webserver's access_log? Cheers Brad PS: Question was posted to OpenLayers lists as well On 14/12/2007, Gregor Mosheh wrote: > > Bradley McLain wrote: > > I got it to > > finally display again using the request shown below: > > > http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&format=image/png&width=800&height=600&styles= > > > Seems pretty normal to me. A styles param is optional, and it's normal > for a WMS client to include a blank styles param. Don't worry about that. > > It's also very normal to require the width, height, bbox, and SRS, and > format. If it was working before without them, defaulting to whatever > was in the mapfile, then that was a lax enforcement of WMS standard and > you should be glad it's been fixed. ;) > > > > Despite this I cannot get WMS requests out of OpenLayers to work at all, > > even adding all of the extra parameters it is asking for. > > Since WMS seems to be working, this must be an OpenLayers issue. > Fortunately, I use OpenLayers and Mapserver-WMS all the time; MapServer > is my favorite WMS server. :) > > So, you should probably take this up on the OpenLayers list (of which > several of us are also members) as being OL failing to load an > otherwise-functioning WMS layer. > > The first things I would ask from a OL perspective: > * Have you tried OpenLayers.Layer.MapServer and gotten the same results? > * Have you watched the webserver's access_log and then tried pasting > those URLs into your browser? That's my #1 debugging method. > > And if you can make the server and the map accessible, that would go a > long way towards us being able to guess what's going on. > > -- > Gregor Mosheh / Greg Allensworth > System Administrator, HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bradley_mclain at DEBORTOLIWINES.COM Thu Dec 13 19:48:19 2007 From: bradley_mclain at DEBORTOLIWINES.COM (Bradley McLain) Date: Fri, 14 Dec 2007 14:48:19 +1100 Subject: HostGIS+OpenLayers WMS requests to mapserver problems In-Reply-To: <3a1b1f1f0712131936q26be565buded3befaddf294d0@mail.gmail.com> Message-ID: Update: Mapserver layer works correctly, albeit with some major alignment issues lol. On 14/12/2007, Bradley McLain wrote: > > So I have been using a lax enforcement of WMS for a while then lol. > > So if I have understood correctly then if I correctly specify these > details in the mapfile itself then if a parameter is blank it should default > to that? Thereby avoiding any errors? > > I am hoping that that will fix the problem since I don't have many of > these things specified as I was using only the bare essentials before. > > I will try this and also try a mapserver layer too, to do some tests and > get back to you. > > Where can I access the webserver's access_log? > > Cheers > > Brad > > PS: Question was posted to OpenLayers lists as well > > On 14/12/2007, Gregor Mosheh wrote: > > > > Bradley McLain wrote: > > > I got it to > > > finally display again using the request shown below: > > > > http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&format=image/png&width=800&height=600&styles= > > > > > > > > Seems pretty normal to me. A styles param is optional, and it's normal > > for a WMS client to include a blank styles param. Don't worry about > > that. > > > > It's also very normal to require the width, height, bbox, and SRS, and > > format. If it was working before without them, defaulting to whatever > > was in the mapfile, then that was a lax enforcement of WMS standard and > > you should be glad it's been fixed. ;) > > > > > > > Despite this I cannot get WMS requests out of OpenLayers to work at > > all, > > > even adding all of the extra parameters it is asking for. > > > > Since WMS seems to be working, this must be an OpenLayers issue. > > Fortunately, I use OpenLayers and Mapserver-WMS all the time; MapServer > > is my favorite WMS server. :) > > > > So, you should probably take this up on the OpenLayers list (of which > > several of us are also members) as being OL failing to load an > > otherwise-functioning WMS layer. > > > > The first things I would ask from a OL perspective: > > * Have you tried OpenLayers.Layer.MapServer and gotten the same results? > > * Have you watched the webserver's access_log and then tried pasting > > those URLs into your browser? That's my #1 debugging method. > > > > And if you can make the server and the map accessible, that would go a > > long way towards us being able to guess what's going on. > > > > -- > > Gregor Mosheh / Greg Allensworth > > System Administrator, HostGIS cartographic development & hosting > > services > > http://www.HostGIS.com/ > > > > "Remember that no one cares if you can back up, > > only if you can restore." - AMANDA > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at METACARTA.COM Thu Dec 13 20:08:50 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Thu, 13 Dec 2007 23:08:50 -0500 Subject: HostGIS+OpenLayers WMS requests to mapserver problems In-Reply-To: <4761F7D1.1070802@hostgis.com> Message-ID: On Thu, Dec 13, 2007 at 08:26:09PM -0700, Gregor Mosheh wrote: > Bradley McLain wrote: > >I got it to > >finally display again using the request shown below: > > http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&format=image/png&width=800&height=600&styles= > > > Seems pretty normal to me. A styles param is optional, A styles parameter is not optional according to the WMS 1.1 spec, nor is it optional in MapServer 5.0. (This is probably the single most "controversial" change in 5.0, and I believe it's going away in 5.0.1.) > It's also very normal to require the width, height, bbox, and SRS, and > format. If it was working before without them, defaulting to whatever > was in the mapfile, then that was a lax enforcement of WMS standard and > you should be glad it's been fixed. ;) I disagree with this statement, but I do agree that those parameters are required as part of the WMS spec, and if you're using MS 5.0, it seems likely that this is the change you are running into. Regards, -- Christopher Schmidt MetaCarta From gregor at HOSTGIS.COM Thu Dec 13 20:09:23 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 13 Dec 2007 21:09:23 -0700 Subject: HostGIS+OpenLayers WMS requests to mapserver problems In-Reply-To: <3a1b1f1f0712131936q26be565buded3befaddf294d0@mail.gmail.com> Message-ID: Bradley McLain wrote: > So I have been using a lax enforcement of WMS for a while then lol. Well, your WMS server, perhaps. Just saying, the requirement of size and bbox, and the presence of an empty styles param, are entirely typical. > So if I have understood correctly then if I correctly specify these > details in the mapfile itself then if a parameter is blank it should > default to that? Thereby avoiding any errors? No, the WMS client should be presenting these in the request. If the WMS server tries to guess them, it's misbehaving. :) I don't see your cross-post to the OpenLayers mailing list. Debugging it from a OL perspective, I'd ask whether your browser is in fact able to contact the WMS server to make a WMS request at all -- firewalls and DMZs are culprits in that regard, as are "localhost" or private IPs. If it can do that, then you'd want to "tail -f" your webserver's access log and hit reload on your browser's map, and see whether the browser is even trying and what it's trying to do. But hey, let's take that to the OL list. :) > Where can I access the webserver's access_log? If it's HostGIS Linux (there's a mailing list for that, too) then it's /var/log/apache/access_log I find it invaluable, to be able to find the exact request being made and to copy it into a browser. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at HOSTGIS.COM Thu Dec 13 20:11:44 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 13 Dec 2007 21:11:44 -0700 Subject: HostGIS+OpenLayers WMS requests to mapserver problems In-Reply-To: <20071214040850.GA1832@metacarta.com> Message-ID: Christopher Schmidt wrote: >> Seems pretty normal to me. A styles param is optional, > A styles parameter is not optional according to the WMS 1.1 spec I meant the value for it. Pardon my unclarity. >> It's also very normal to require the width, height, bbox, and SRS, and >> format. If it was working before without them, defaulting to whatever >> was in the mapfile, then that was a lax enforcement of WMS standard and >> you should be glad it's been fixed. ;) > I disagree with this statement, but I do agree that those parameters are > required as part of the WMS spec, and if you're using MS 5.0, it seems > likely that this is the change you are running into. With which part do you disagree? That it's a good thing that those required params are required? Or that he should be glad for it? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From crschmidt at METACARTA.COM Thu Dec 13 20:25:27 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Thu, 13 Dec 2007 23:25:27 -0500 Subject: HostGIS+OpenLayers WMS requests to mapserver problems In-Reply-To: <47620280.7030705@hostgis.com> Message-ID: On Thu, Dec 13, 2007 at 09:11:44PM -0700, Gregor Mosheh wrote: > With which part do you disagree? That it's a good thing that those > required params are required? Or that he should be glad for it? That he should be glad for it. Regards, -- Christopher Schmidt MetaCarta From gisaalter at GMAIL.COM Fri Dec 14 01:21:11 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 14 Dec 2007 10:21:11 +0100 Subject: Trouble orserving jp2 with mapserver Message-ID: I have converted a MrSid file using Fw_Tools to a jp2-file. When I use gdalinfo on my file, I get the following message: Driver: JPEG2000/JPEG-2000 part 1 (ISO/IEC 15444-1) Size is 58404, 51298 Coordinate System is `' Origin = (76836.250000000000000,202313.000000000000000) Pixel Size = (0.250000000000000,-0.250000000000000) Corner Coordinates: Upper Left ( 76836.250, 202313.000) Lower Left ( 76836.250, 189488.500) Upper Right ( 91437.250, 202313.000) Lower Right ( 91437.250, 189488.500) Center ( 84136.750, 195900.750) error: cannot decode code stream Band 1 Block=58404x51298 Type=Byte, ColorInterp=Undefined error: expecting signature box error: cannot get box Band 2 Block=58404x51298 Type=Byte, ColorInterp=Undefined error: cannot get box error: cannot get box Band 3 Block=58404x51298 Type=Byte, ColorInterp=Undefined error: cannot get box However, I can open the file using a jp2 viewer fine (well, I did encounter trouble using Irfanview). Now I want to serve it through Mapserver. Mapserver returns an error message MsDraw(Unable to access file) However, I can access this file just fine... I think the above messages may cause it. Anyone knows what's going on ? Thanks Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at STATKART.NO Fri Dec 14 01:33:57 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Fri, 14 Dec 2007 01:33:57 -0800 Subject: AGG output and WMS inimage error message bug? Message-ID: Hi! When using AGG renderer in output format and inimage as WMS error message type, mapserver does not return any error message when an error occurs, only the requested URL. And even more severe is that the returned information is a text string, and not an image. If I switch to GD output in the exact same service and the exact same mapfile, mapservere behaves correctly. Can anyone confirm this behavior/bug, or tell me if there is some parameters or keywords that needs to be set to correct the problem? Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/AGG-output-and-WMS-inimage-error-message-bug--tp14332634p14332634.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gisaalter at GMAIL.COM Fri Dec 14 01:35:10 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 14 Dec 2007 10:35:10 +0100 Subject: Can I install the additional http-driver in gdal Message-ID: Hi list, For now my gdal-version lacks a http driver. Is it possible to install this (http-)driver seperate ? Thanks Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From H.vanDorp at GORINCHEM.NL Fri Dec 14 01:37:14 2007 From: H.vanDorp at GORINCHEM.NL (Dorp, H. van) Date: Fri, 14 Dec 2007 10:37:14 +0100 Subject: PDF problem Message-ID: Hi list, I recently migrated from MapServer 4.0 to MapServer 4.8 with PHP4. Now when I try to make a PDF I get "Internal Server Error", and the apache error.log says: PDFlib exception (fatal): [1416] PDF_setdashpattern: Value 0 for option 'dasharray' is too small (minimum 1e-006)\r MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPO RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any ideas? Thanks, Hans **************************************************************************** Dit bericht is vertrouwelijk en uitsluitend bedoeld voor de persoon aan wie het is geadresseerd. Aan dit bericht kunnen geen rechten worden ontleend. **************************************************************************** From Piero.Cavalieri at HEIDI.IT Fri Dec 14 02:28:45 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 14 Dec 2007 11:28:45 +0100 Subject: ECW Pyramid In-Reply-To: A Message-ID: You could use gdal_translate (http://www.gdal.org/gdal_translate.html ) to decrease rasters resolution, and then gdal_merge (http://www.gdal.org/gdal_merge.html ) to create mosaic. The process could be scripted (but in Windows some gdal commands does not accept jolly characters). You iterate this process some times and at every step you create a tile index. Every tile index is a Mapserver LAYER, and all of the layers belong to the same GROUP, which will be used as "the" layer in the query to Mapserver. Does this help u ? Piero ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Rahkonen Jukka Sent: gioved? 13 dicembre 2007 9.53 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ECW Pyramid Hi, To my understandment and experience it is unnecessary to have anything like ECW pyramids if you mean by that the same thing as with Geotiffs, for example. That is, downsampled versions of individual image files. ECW has a wavelet based internal system for getting the same effect and it works fine. Another thing is that if you are looking your site through tile index and you have zoomed out very far then pyramid layers (or overviews or whatever they are called) do not help very much. In this case MapServer has to open a bunch of physical files from the file system, perhaps tens of image files, and that will ineviatably slow down the response time. What will help in this case is a separate, radically downsampled image that covers large area of your imagery. For example, we have often sites which are 50 km by 50 km in size and they hold 100 aerial images with 0.5 metre pixel size. Zooming to whole site through tile index means that all the 100 files must be opened and it is for sure always slow with any file format and whether we have fine internal pyramids or not. Pyramids do help a bit but the key to the speed is to avoin opening so many files from disk. What we use to do is to create a quick look image with something like 10 metre pixel size and use that until the user has zoomed in so close that the resolution is not good enough. At that moment only 1-4 original images must be opened through tileindex and that goes fast. A simple way to create a quick look image is to define Geotiff outputformat in the mapfile and ask MapServer to send the image with whole site extents with some reasonable width and height. -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Jos? Ram?n L?pez L?hetetty: 12. joulukuuta 2007 14:09 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] ECW Pyramid Hi List. I have populated a raster layer using a Tileindex made from ECW Files. This layer is visible 1:1000 scale with MAXSCALE parameter. As is not possible to create ECW pyramids. Whe have got another raster layer resampling these ECW files. We would like to populate a single raster layer that uses one tile index created from the resampled ECW, visible at 1:10000 scale (and smaller), and another tileindex from the original ECW files visible at bigger scales. Is it possible? If not, please tell me how could I do something similar. Tnaks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From H.vanDorp at GORINCHEM.NL Fri Dec 14 01:30:26 2007 From: H.vanDorp at GORINCHEM.NL (Dorp, H. van) Date: Fri, 14 Dec 2007 10:30:26 +0100 Subject: PDF problem Message-ID: **************************************************************************** Dit bericht is vertrouwelijk en uitsluitend bedoeld voor de persoon aan wie het is geadresseerd. Aan dit bericht kunnen geen rechten worden ontleend. **************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From gagan.bansal at RELIANCEADA.COM Fri Dec 14 02:52:58 2007 From: gagan.bansal at RELIANCEADA.COM (Gagan Bansal) Date: Fri, 14 Dec 2007 04:52:58 -0600 Subject: Too Many Symbols Message-ID: I am facing same problem. limit for sysmbol size. I have increased the limit 200 in mapsymbol.h file and recompiled. #define MS_MAXSYMBOLS 200 /* maximum number of symbols in a symbol file */ but after increasing symbols in symbol.sym from 64 to 74, there is still errro. I am using MapServer 5.0.0 OS : RHEL 4.6 AS x86_64 PHP: 5.2.5 in any other file also do i need to change? or what is the way around. thanks & regards Gagan From Gagan.Bansal at RELIANCEADA.COM Fri Dec 14 03:03:51 2007 From: Gagan.Bansal at RELIANCEADA.COM (Gagan Bansal) Date: Fri, 14 Dec 2007 16:33:51 +0530 Subject: labeling along the line In-Reply-To: <475AC959.4000307@hostgis.com> Message-ID: I have tested in Mapserver 5.0.0 It is not working at all in this version. If i include the ANGLE FOLLOW in map file then there is error. I have another problem also. Limitation for number of symbols 64, as i found in forum that it can be increased by changing in mapsymbol.h file and recompile #define MS_MAXSYMBOLS 200 /* maximum number of symbols in a symbol file */ but still the limit is 64 only, how can i overcome this limit. Thanks & Regards Gagan Gregor Mosheh 12/08/2007 10:12 PM To Gagan Bansal cc MAPSERVER-USERS at LISTS.UMN.EDU Subject Re: [UMN_MAPSERVER-USERS] labeling along the line Gagan Bansal wrote: > I am using MS4W - MapServer 4 Windows - version 2.2.5. What MapServer version is that? "mapserv -v" I think that ANGLE FOLLOW was introduced in 4.10.3 but on our systems it never worked until 5.0.0 -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Piero.Cavalieri at HEIDI.IT Fri Dec 14 03:49:01 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 14 Dec 2007 12:49:01 +0100 Subject: labeling along the line In-Reply-To: A Message-ID: For me it does work. I'm using binaries from MS4W. C:\Inetpub\Scripts>mapserv.exe -v MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS _SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPU T=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Cheers Piero ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gagan Bansal Sent: venerd? 14 dicembre 2007 12.04 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] labeling along the line I have tested in Mapserver 5.0.0 It is not working at all in this version. If i include the ANGLE FOLLOW in map file then there is error. I have another problem also. Limitation for number of symbols 64, as i found in forum that it can be increased by changing in mapsymbol.h file and recompile #define MS_MAXSYMBOLS 200 /* maximum number of symbols in a symbol file */ but still the limit is 64 only, how can i overcome this limit. Thanks & Regards Gagan Gregor Mosheh 12/08/2007 10:12 PM To Gagan Bansal cc MAPSERVER-USERS at LISTS.UMN.EDU Subject Re: [UMN_MAPSERVER-USERS] labeling along the line Gagan Bansal wrote: > I am using MS4W - MapServer 4 Windows - version 2.2.5. What MapServer version is that? "mapserv -v" I think that ANGLE FOLLOW was introduced in 4.10.3 but on our systems it never worked until 5.0.0 -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gagan.Bansal at RELIANCEADA.COM Fri Dec 14 03:57:27 2007 From: Gagan.Bansal at RELIANCEADA.COM (Gagan Bansal) Date: Fri, 14 Dec 2007 17:27:27 +0530 Subject: labeling along the line In-Reply-To: <4841F745477DF94A97C515658C91BB2F15562F@lan-exc-01.heidi.local> Message-ID: Yes It is working on widows version MS4W (MS4W - MapServer 4 Windows - version 2.2.5) but i am using OS : RHEL 4.6 AS x86_64 PHP: 5.2.5 MapServer 5.0.0 Regards Gagan "Piero Cavalieri" 12/14/2007 05:19 PM To , cc Subject RE: [UMN_MAPSERVER-USERS] labeling along the line For me it does work. I?m using binaries from MS4W. C:\Inetpub\Scripts>mapserv.exe -v MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS _SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPU T=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Cheers Piero From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gagan Bansal Sent: venerd? 14 dicembre 2007 12.04 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] labeling along the line I have tested in Mapserver 5.0.0 It is not working at all in this version. If i include the ANGLE FOLLOW in map file then there is error. I have another problem also. Limitation for number of symbols 64, as i found in forum that it can be increased by changing in mapsymbol.h file and recompile #define MS_MAXSYMBOLS 200 /* maximum number of symbols in a symbol file */ but still the limit is 64 only, how can i overcome this limit. Thanks & Regards Gagan Gregor Mosheh 12/08/2007 10:12 PM To Gagan Bansal cc MAPSERVER-USERS at LISTS.UMN.EDU Subject Re: [UMN_MAPSERVER-USERS] labeling along the line Gagan Bansal wrote: > I am using MS4W - MapServer 4 Windows - version 2.2.5. What MapServer version is that? "mapserv -v" I think that ANGLE FOLLOW was introduced in 4.10.3 but on our systems it never worked until 5.0.0 -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseramonlopez at GMAIL.COM Fri Dec 14 04:23:39 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Fri, 14 Dec 2007 13:23:39 +0100 Subject: ECW Pyramid In-Reply-To: <4841F745477DF94A97C515658C91BB2F15562E@lan-exc-01.heidi.local> Message-ID: Thxs for all. I will do the last reply of Piero Cavalieri. Thxs again. On Dec 14, 2007 11:28 AM, Piero Cavalieri wrote: > You could use gdal_translate (http://www.gdal.org/gdal_translate.html) to > decrease rasters resolution, and then gdal_merge ( > http://www.gdal.org/gdal_merge.html) to create mosaic. The process could > be scripted (but in Windows some gdal commands does not accept jolly > characters). > > You iterate this process some times and at every step you create a tile > index. Every tile index is a Mapserver LAYER, and all of the layers belong > to the same GROUP, which will be used as "the" layer in the query to > Mapserver. > > > > Does this help u ? > > Piero > > > ------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Rahkonen Jukka > *Sent:* gioved? 13 dicembre 2007 9.53 > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] ECW Pyramid > > > > Hi, > > > > To my understandment and experience it is unnecessary to have anything > like ECW pyramids if you mean by that the same thing as with Geotiffs, for > example. That is, downsampled versions of individual image files. > ECW has a wavelet based internal system for getting the same effect and it > works fine. > > > > Another thing is that if you are looking your site through tile index and > you have zoomed out very far then pyramid layers (or overviews or whatever > they are called) do not help very much. In this case MapServer has to open > a bunch of physical files from the file system, perhaps tens of image files, > and that will ineviatably slow down the response time. What will help in > this case is a separate, radically downsampled image that covers large area > of your imagery. For example, we have often sites which are 50 km by 50 km > in size and they hold 100 aerial images with 0.5 metre pixel size. > Zooming to whole site through tile index means that all the 100 files must > be opened and it is for sure always slow with any file format and whether we > have fine internal pyramids or not. Pyramids do help a bit but the key to > the speed is to avoin opening so many files from disk. What we use to do is > to create a quick look image with something like 10 metre pixel size and use > that until the user has zoomed in so close that the resolution is not good > enough. At that moment only 1-4 original images must be opened through > tileindex and that goes fast. > > > > A simple way to create a quick look image is to define Geotiff > outputformat in the mapfile and ask MapServer to send the image with whole > site extents with some reasonable width and height. > > > > -Jukka Rahkonen- > > > ------------------------------ > > *L?hett?j?:* UMN MapServer Users List [mailto: > MAPSERVER-USERS at LISTS.UMN.EDU] *Puolesta *Jos? Ram?n L?pez > *L?hetetty:* 12. joulukuuta 2007 14:09 > *Vastaanottaja:* MAPSERVER-USERS at LISTS.UMN.EDU > *Aihe:* [UMN_MAPSERVER-USERS] ECW Pyramid > > Hi List. > > I have populated a raster layer using a Tileindex made from ECW Files. > This layer is visible 1:1000 scale with MAXSCALE parameter. > As is not possible to create ECW pyramids. Whe have got another raster > layer resampling these ECW files. > We would like to populate a single raster layer that uses one tile index > created from the resampled ECW, visible at 1:10000 scale (and smaller), and > another tileindex from the original ECW files visible at bigger scales. > Is it possible? If not, please tell me how could I do something similar. > > Tnaks. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Fri Dec 14 04:36:18 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 14 Dec 2007 07:36:18 -0500 Subject: Too Many Symbols In-Reply-To: Message-ID: Gagan Bansal wrote: > I am facing same problem. limit for sysmbol size. > I have increased the limit 200 in mapsymbol.h file and recompiled. > #define MS_MAXSYMBOLS 200 /* maximum number of symbols in a symbol > file */ > > but after increasing symbols in symbol.sym from 64 to 74, there is still errro. > > I am using > MapServer 5.0.0 > OS : RHEL 4.6 AS x86_64 > PHP: 5.2.5 > Are you sure you are really using MapServer 5.0? In MapServer 5.0, there is no longer a limit to the number of symbols, so you should not get an error. Plus, the mapsymbol.h from MapServer 5.0 no longer has the MS_MAXSYMBOLS line that you quote above (obviously since the limit is gone). Maybe you have multiple installations on your machine and you are not using the version that you think you are using? Daniel -- Daniel Morissette http://www.mapgears.com/ From Tom.Kralidis at EC.GC.CA Fri Dec 14 04:36:03 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 14 Dec 2007 07:36:03 -0500 Subject: HostGIS+OpenLayers WMS requests to mapserver problems In-Reply-To: A<20071214040850.GA1832@metacarta.com> Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Christopher Schmidt > Sent: 13 December, 2007 11:09 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] HostGIS+OpenLayers WMS > requests to mapserver problems > > On Thu, Dec 13, 2007 at 08:26:09PM -0700, Gregor Mosheh wrote: > > Bradley McLain wrote: > > >I got it to > > >finally display again using the request shown below: > > > > > http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map > > > &service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,gr > > > cad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&for > > mat=image/png&width=800&height=600&styles= > > > > > > Seems pretty normal to me. A styles param is optional, > > A styles parameter is not optional according to the WMS 1.1 > spec, nor is it optional in MapServer 5.0. (This is probably > the single most "controversial" change in 5.0, and I believe > it's going away in 5.0.1.) > Correct. After much debate, STYLES is now optional again in trunk (and forthcoming 5.0.1). > > It's also very normal to require the width, height, bbox, > and SRS, and > > format. If it was working before without them, defaulting > to whatever > > was in the mapfile, then that was a lax enforcement of WMS standard > > and you should be glad it's been fixed. ;) > > I disagree with this statement, but I do agree that those > parameters are required as part of the WMS spec, and if > you're using MS 5.0, it seems likely that this is the change > you are running into. > More info can be found w.r.t. this in the FAQ entry at: http://mapserver.gis.umn.edu/docs/faq/ogc-wms-getmap-required-parameters From warmerdam at POBOX.COM Fri Dec 14 06:38:50 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 14 Dec 2007 09:38:50 -0500 Subject: Can I install the additional http-driver in gdal In-Reply-To: <8d2ea9d70712140135r3e6f78eauc38953d922a6d03f@mail.gmail.com> Message-ID: Steven De Vriendt wrote: > Hi list, > > For now my gdal-version lacks a http driver. > Is it possible to install this (http-)driver seperate ? Steven, That is very difficult because the HTTP driver depends on CURL being available wrapped as a GDAL low level service. You really need to build the core GDAL with curl support and then the http driver will be immediately available. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From project10 at PROJECT10.NET Fri Dec 14 07:52:30 2007 From: project10 at PROJECT10.NET (Shawn Gervais) Date: Fri, 14 Dec 2007 09:52:30 -0600 Subject: AGG output and WMS inimage error message bug? In-Reply-To: <14332634.post@talk.nabble.com> Message-ID: > When using AGG renderer in output format and inimage as WMS error message > type, mapserver does not return any error message when an error occurs, only > the requested URL. And even more severe is that the returned information is > a text string, and not an image. > > If I switch to GD output in the exact same service and the exact same > mapfile, mapservere behaves correctly. > > Can anyone confirm this behavior/bug, or tell me if there is some parameters > or keywords that needs to be set to correct the problem? Hi P?l, I had the same issue - the way that I fixed it was by ensuring that the OUTPUTFORMAT blocks for gd/png and gd/gif were defined in my mapfile. I believe that mapserver uses GD to do the error-in-image stuff, even if you normally use AGG to render your maps. By the way, the behavior you describe where mapserver returns the requested URL instead of an image is actually a byproduct of how Firefox handles broken images. MapServer does indeed return an image (or part of one), but it's broken. -Shawn From Jan.DeBelder at SADL.KULEUVEN.BE Fri Dec 14 08:05:56 2007 From: Jan.DeBelder at SADL.KULEUVEN.BE (Jan De Belder) Date: Fri, 14 Dec 2007 17:05:56 +0100 Subject: imagepath cleanup Message-ID: Dear list, Can someone direct me to more information about how I can tackle the problem of cleanup of my 'imagepath' folder ? Now the images generated by mapserver from my mapfiles are stored in my imagepath folder defined in the mapfile, but how can I keep this folder from growing too large (full of images) I don't know how to use (if at all possible) mapserver to manage this ? Or do I just schedule some batch file that cleans out the folder each week ? Regards Jan Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at DMSOLUTIONS.CA Fri Dec 14 08:24:27 2007 From: yassefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 14 Dec 2007 11:24:27 -0500 Subject: WMS with locale In-Reply-To: Message-ID: Murty Maganti wrote: > Question to all WMS experts > > > > Does WMS request take locale specific formatted numbers or WMS responses > return locale specific formatted numbers. For example, for Spanish > culture, decimal separator is ?,? instead of ?.?. If I run WMS service > on a machine with current locale as Spain, is GetCapabilties going to > return extents formatted to Spanish. Does it accept to send extents > formatted to Spanish culture and specify the culture as part of request. > I could not find any info in WMS cookbook. > > Murty, There is no such direct support in Mapserver. Maybe a way to approach this would be to use mapscript with the wxs support (http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript) to parse input requests and modify the output xml to fit your needs. Best Regards, > > Thanks > > Murty Maganti > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ivan.mincik at GMAIL.COM Fri Dec 14 08:32:27 2007 From: ivan.mincik at GMAIL.COM (=?ISO-8859-1?Q?ivan_minc=28=EDk?=) Date: Fri, 14 Dec 2007 17:32:27 +0100 Subject: imagepath cleanup In-Reply-To: <000f01c83e6b$360b9290$0202fea9@sadl.agr.ad10.intern.kuleuven.ac.be> Message-ID: Hi, on linux use cron to delete them. ivan Jan De Belder wrote: > Dear list, > > Can someone direct me to more information about how I can tackle the > problem of cleanup of my 'imagepath' folder ? > Now the images generated by mapserver from my mapfiles are stored in > my imagepath folder defined in the mapfile, but how can I keep this > folder from growing too large (full of images) > > I don't know how to use (if at all possible) mapserver to manage this > ? Or do I just schedule some batch file that cleans out the folder > each week ? > > Regards > Jan > > > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more > information. > From boolean10001 at YAHOO.COM Fri Dec 14 08:42:33 2007 From: boolean10001 at YAHOO.COM (Carlos Ruiz) Date: Fri, 14 Dec 2007 08:42:33 -0800 Subject: imagepath cleanup In-Reply-To: <000f01c83e6b$360b9290$0202fea9@sadl.agr.ad10.intern.kuleuven.ac.be> Message-ID: What i do is once the image has rendered, at the final of my PHP script, i delete the file in the disk. It works fine. Hope it helps you IC Carlos Ruiz --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kyle.Wilcox at NOAA.GOV Fri Dec 14 10:16:39 2007 From: Kyle.Wilcox at NOAA.GOV (Kyle Wilcox) Date: Fri, 14 Dec 2007 13:16:39 -0500 Subject: symbol rendering problem Message-ID: My symbol is defined as follows: Symbol Name 'arrow2' Type VECTOR Filled TRUE Points 1 3 1 -3 4 -3 0 -8 -4 -3 -1 -3 -1 3 1 3 END END When I rotate the symbol as follows, only the right half of the image is shown. This only happens when ANGLE is '0'. Because the actual values for ANGLE are being pulled from a database, I can't change a '0' appearing there often (when the wind is blowing true north). CLASS NAME "< 12.5 m/s" KEYIMAGE "images/legend/70.png" EXPRESSION ([wind_speed] <= 12.5) STYLE SYMBOL "arrow2" ANGLE 0 COLOR 255 52 0 OUTLINECOLOR 0 0 0 SIZE 3 END END Here is a link to a map that is showing the problem: http://155.206.18.162/mapping/map/map.phtml?dg=states,counties,nws&me=-74.172318568083,38.120309358963,-73.935856657745,38.298565260602&language=en -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov "It is from the wellspring of our despair and the places that we are broken that we come to repair the world." - Murray Waas From dmorissette at MAPGEARS.COM Fri Dec 14 10:35:20 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 14 Dec 2007 13:35:20 -0500 Subject: AGG output and WMS inimage error message bug? In-Reply-To: <4762A6BE.50908@project10.net> Message-ID: Sounds like a real bug that needs fixing. Could one of you please file a ticket in Trac about it? Daniel Shawn Gervais wrote: >> When using AGG renderer in output format and inimage as WMS error message >> type, mapserver does not return any error message when an error >> occurs, only >> the requested URL. And even more severe is that the returned >> information is >> a text string, and not an image. >> >> If I switch to GD output in the exact same service and the exact same >> mapfile, mapservere behaves correctly. >> >> Can anyone confirm this behavior/bug, or tell me if there is some >> parameters >> or keywords that needs to be set to correct the problem? > > Hi P?l, > > I had the same issue - the way that I fixed it was by ensuring that the > OUTPUTFORMAT blocks for gd/png and gd/gif were defined in my mapfile. I > believe that mapserver uses GD to do the error-in-image stuff, even if > you normally use AGG to render your maps. > > By the way, the behavior you describe where mapserver returns the > requested URL instead of an image is actually a byproduct of how Firefox > handles broken images. MapServer does indeed return an image (or part of > one), but it's broken. > > -Shawn -- Daniel Morissette http://www.mapgears.com/ From thomas.bonfort at GMAIL.COM Fri Dec 14 11:09:04 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Fri, 14 Dec 2007 20:09:04 +0100 Subject: symbol rendering problem In-Reply-To: <4762C887.4040207@Noaa.gov> Message-ID: I'm guessing this has to do with using negative values in your vector points. this looks like an agg rendering, what kind of output do you get using gd? could you file a bug report on this please? thanks, thomas On Dec 14, 2007 7:16 PM, Kyle Wilcox wrote: > My symbol is defined as follows: > > Symbol > Name 'arrow2' > Type VECTOR > Filled TRUE > Points > 1 3 > 1 -3 > 4 -3 > 0 -8 > -4 -3 > -1 -3 > -1 3 > 1 3 > END > END > > When I rotate the symbol as follows, only the right half of the image is > shown. This only happens when ANGLE is '0'. Because the actual values > for ANGLE are being pulled from a database, I can't change a '0' > appearing there often (when the wind is blowing true north). > > CLASS > NAME "< 12.5 m/s" > KEYIMAGE "images/legend/70.png" > EXPRESSION ([wind_speed] <= 12.5) > STYLE > SYMBOL "arrow2" > ANGLE 0 > COLOR 255 52 0 > OUTLINECOLOR 0 0 0 > SIZE 3 > END > END > > > Here is a link to a map that is showing the problem: > > http://155.206.18.162/mapping/map/map.phtml?dg=states,counties,nws&me=-74.172318568083,38.120309358963,-73.935856657745,38.298565260602&language=en > > -- > > Kyle Wilcox > NOAA Chesapeake Bay Office > 410 Severn Avenue > Suite 107A > Annapolis, MD 21403 > office: (410) 295-3151 > Kyle.Wilcox at noaa.gov > > "It is from the wellspring of our despair and the places > that we are broken that we come to repair the world." > - Murray Waas > From Steve.Lime at DNR.STATE.MN.US Fri Dec 14 11:23:32 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 14 Dec 2007 13:23:32 -0600 Subject: Mapserver Expressions Message-ID: There are case-insensitive versions of regex and string expressions. I believe you just tag an "i" to the end of the expression: EXPRESSION "foo"i or EXRESSION /foo/i I can't remember if those work within a logical expression although I would expect so. You could always do the force on the client before passing to MapServer. I should add some toupper and tolower methods to the logical expression support. Steve >>> Jim Dahl 12/13/07 10:56 AM >>> I want to force all entries for a search to upper case even if user enters lower. I only read in the doc that it is case sensitive. Will mapserver use 'uCase, lCase' , etc. Jim Dahl, GISP GIS Coordinator Douglas County Public Works 509 3rd Ave W PO Box 398 Alexandria MN 56308 V 320-762-2933 320-763-6001 F 320-763-7955 From Gagan.Bansal at RELIANCEADA.COM Fri Dec 14 23:22:37 2007 From: Gagan.Bansal at RELIANCEADA.COM (Gagan Bansal) Date: Sat, 15 Dec 2007 12:52:37 +0530 Subject: Fw: [UMN_MAPSERVER-USERS] Too Many Symbols Message-ID: We are using the mapserver 5.0.0, there is no multiple installation. Here is the snip from our mapsymbol.h file. We tried to increase the value MS_SYMBOL_ALLOCSIZE to 128, but no effect. The mapserver is not processing if the symbol is more than 64. enum MS_SYMBOL_TYPE {MS_SYMBOL_SIMPLE=1000, MS_SYMBOL_VECTOR, MS_SYMBOL_ELLIPSE, MS_SYMBOL_PIXMAP, MS_SYMBOL_TRUETYPE, MS_SYMBOL_CARTOLINE, MS_SYMBOL_HATCH}; #define MS_SYMBOL_ALLOCSIZE 64 /* number of symbolObj ptrs to allocate for a symbolset at once */ #define MS_MAXVECTORPOINTS 100 /* shade, marker and line symbol parameters */ #define MS_MAXPATTERNLENGTH 10 #define MS_IMAGECACHESIZE 6 Regards Gagan ----- Forwarded by Gagan Bansal/RCL/RelianceADA on 12/15/2007 12:46 PM ----- "Manav Sethi" 12/15/2007 11:38 AM To gagan.bansal at relianceada.com cc Subject Fwd: [UMN_MAPSERVER-USERS] Too Many Symbols ---------- Forwarded message ---------- From: Daniel Morissette Date: Dec 14, 2007 6:06 PM Subject: Re: [UMN_MAPSERVER-USERS] Too Many Symbols To: MAPSERVER-USERS at lists.umn.edu Gagan Bansal wrote: > I am facing same problem. limit for sysmbol size. > I have increased the limit 200 in mapsymbol.h file and recompiled. > #define MS_MAXSYMBOLS 200 /* maximum number of symbols in a symbol > file */ > > but after increasing symbols in symbol.sym from 64 to 74, there is still errro. > > I am using > MapServer 5.0.0 > OS : RHEL 4.6 AS x86_64 > PHP: 5.2.5 > Are you sure you are really using MapServer 5.0? In MapServer 5.0, there is no longer a limit to the number of symbols, so you should not get an error. Plus, the mapsymbol.h from MapServer 5.0 no longer has the MS_MAXSYMBOLS line that you quote above (obviously since the limit is gone). Maybe you have multiple installations on your machine and you are not using the version that you think you are using? Daniel -- Daniel Morissette http://www.mapgears.com/ The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From anhtin at GMAIL.COM Sun Dec 16 20:30:45 2007 From: anhtin at GMAIL.COM (Bui Anh Tin) Date: Mon, 17 Dec 2007 11:30:45 +0700 Subject: queryByRect Mapserver Message-ID: I have a question ex: My map have layer: "station ticket" type data is point And i want get all point in mapobj extent now. How can i do that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Sun Dec 16 23:14:10 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Sun, 16 Dec 2007 23:14:10 -0800 Subject: mapserver 5 parallel to mapserver 4? Message-ID: Hi, I have mapserver 4.10 on my system and I?d like to install mapserver 5. Is it possible to install the new version parallel to the old one? and if how? Is there a mapserver 5 binary for slackware linux available? thx -- View this message in context: http://www.nabble.com/mapserver-5-parallel-to-mapserver-4--tp14370113p14370113.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jsubei at YAHOO.FR Mon Dec 17 00:45:35 2007 From: jsubei at YAHOO.FR (JS Ubei) Date: Mon, 17 Dec 2007 08:45:35 +0000 Subject: [UMN_MAPSERVER-USERS] libdapserver.so.2 Message-ID: Hi steve, The libdapserver is used by gdal to acces to datagridded files like netCDF files or HDF files. If you dont'know then you don't need. You can enable the use of this library with the specific compilation directive of gdal : "--with-dods-root=" Jsubei ----- Message d'origine ---- De : Steve Smith ? : MAPSERVER-USERS at LISTS.UMN.EDU Envoy? le : Vendredi, 14 D?cembre 2007, 3h50mn 54s Objet : [UMN_MAPSERVER-USERS] libdapserver.so.2 Since upgrading my server to Fedora 8, I have been having problems using mapserver. I know get a mapserver error, in the httpd log, informing me that the library libdapserver.so.2 can not be found. I checked and this file does not exist on my system. I have a more recent version of libdapserver.so. However, I was not aware that mapserver used this library. I recompiled mapserver, without errors, but still get the above error. I also recompile gdal, without errors, but still get the above error. How does Mapserver or related software (gdal) use libdapserver.so.2, and how do you configure them to use a more recent version? Thanks Jim Looking for last minute shopping deals? Find them fast with Yahoo! Search. _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From Piero.Cavalieri at HEIDI.IT Mon Dec 17 01:27:49 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Mon, 17 Dec 2007 10:27:49 +0100 Subject: mapserver 5 parallel to mapserver 4? In-Reply-To: A<14370113.post@talk.nabble.com> Message-ID: I think, if you use mapserver in cgi mode, u could simply make calls to different paths, for example you could install mapsevrer 4 and 5 in different folders under the Scripts (or cgi-bin) directory, then make calls like: http://localhost/Scripts/mapserver4/mapserv.exe?map=.... http://localhost/Scripts/mapserver5/mapserv.exe?map=.... Maybe this works, eventually pay attention to environment variables (if u need for mapserver). Cheers Piero -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of R. Ortner Sent: luned? 17 dicembre 2007 8.14 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver 5 parallel to mapserver 4? Hi, I have mapserver 4.10 on my system and I?d like to install mapserver 5. Is it possible to install the new version parallel to the old one? and if how? Is there a mapserver 5 binary for slackware linux available? thx -- View this message in context: http://www.nabble.com/mapserver-5-parallel-to-mapserver-4--tp14370113p14370113.html Sent from the Mapserver - User mailing list archive at Nabble.com. From maurosa at IOL.IT Mon Dec 17 04:26:36 2007 From: maurosa at IOL.IT (maurosa@iol.it) Date: Mon, 17 Dec 2007 13:26:36 +0100 Subject: zooming and panning with dbox Message-ID: Hi list. I am trying to use ms4w-dbox 0.9a1 to draw a rectangle and to pan an image. Since my mapserver instance cannot be controlled by the client (it is hidden server side), the client should just return the pixel rectangle drawn by the user while zooming, and somehow the ?shift? meant by a dragging action. I found a way of doing it for zoom operations, but not for drag ones. I just need to understand from where to where the user dragged the image in pixel coordinates. This is my very simple example:

Thank you for any hint! Mauro Sartori From dmorissette at MAPGEARS.COM Mon Dec 17 05:15:39 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 17 Dec 2007 08:15:39 -0500 Subject: Fw: [UMN_MAPSERVER-USERS] Too Many Symbols In-Reply-To: Message-ID: Gagan Bansal wrote: > > We are using the mapserver 5.0.0, there is no multiple installation. > Here is the snip from our mapsymbol.h file. We tried to increase the > value MS_SYMBOL_ALLOCSIZE to 128, but no effect. The mapserver is not > processing if the symbol is more than 64. > What does "not processing" mean? What is the exact error message that you get? Are you using the mapserv CGI or MapScript? And if MapScript which language? Also if you could make your symbolset accessible somewhere for us to view that could help. Daniel -- Daniel Morissette http://www.mapgears.com/ From pal.kristensen at STATKART.NO Mon Dec 17 05:37:04 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Mon, 17 Dec 2007 05:37:04 -0800 Subject: AGG renderer in conjunction with WMS TRANSPARENT=true parameter Message-ID: Hi! I'm trying to use the AGG renderer and reduce the resulting 24bits image to 8bits by using the quantize method. This works quite well when the WMS parameter TRANSPARENT=false, but when set to true the BGCOLOR parameter seems to be ignored and the quality of the rendered vectors clearly degrades. When requesting 24bit images the TRANSPARENT parameter works correctly. See the examples below: 24bit png, transparent true -> OK: http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=true 24bit png, transparent false -> OK: http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=false 8bit png, transparent false -> OK: http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=false 8bit png, transparent true -> NOT OK: http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=true This is the output formats from the mapfile: ... OUTPUTFORMAT NAME "png8bit" DRIVER "AGG/PNG" MIMETYPE "image/png" EXTENSION "png" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_COLORS=256" FORMATOPTION INTERLACE=OFF END OUTPUTFORMAT NAME "png24bit" DRIVER "AGG/PNG" MIMETYPE "image/png; mode=24bit" EXTENSION "png" IMAGEMODE "RGB" FORMATOPTION INTERLACE=OFF END OUTPUTFORMAT NAME "jpeg24" DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" EXTENSION "jpg" FORMATOPTION "QUALITY=60" END ... Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14370293.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at STATKART.NO Mon Dec 17 05:59:44 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Mon, 17 Dec 2007 05:59:44 -0800 Subject: AGG output and WMS inimage error message bug? In-Reply-To: <4762CCE8.7080502@mapgears.com> Message-ID: Hi! OK, I'll do that tomorrow Regards, P?l Kristensen Daniel Morissette-2 wrote: > > Sounds like a real bug that needs fixing. Could one of you please file a > ticket in Trac about it? > > Daniel > > > > Shawn Gervais wrote: >>> When using AGG renderer in output format and inimage as WMS error >>> message >>> type, mapserver does not return any error message when an error >>> occurs, only >>> the requested URL. And even more severe is that the returned >>> information is >>> a text string, and not an image. >>> >>> If I switch to GD output in the exact same service and the exact same >>> mapfile, mapservere behaves correctly. >>> >>> Can anyone confirm this behavior/bug, or tell me if there is some >>> parameters >>> or keywords that needs to be set to correct the problem? >> >> Hi P?l, >> >> I had the same issue - the way that I fixed it was by ensuring that the >> OUTPUTFORMAT blocks for gd/png and gd/gif were defined in my mapfile. I >> believe that mapserver uses GD to do the error-in-image stuff, even if >> you normally use AGG to render your maps. >> >> By the way, the behavior you describe where mapserver returns the >> requested URL instead of an image is actually a byproduct of how Firefox >> handles broken images. MapServer does indeed return an image (or part of >> one), but it's broken. >> >> -Shawn > > > -- > Daniel Morissette > http://www.mapgears.com/ > > -- View this message in context: http://www.nabble.com/AGG-output-and-WMS-inimage-error-message-bug--tp14332634p14370303.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dnuttall at DNLT.COM Mon Dec 17 06:02:21 2007 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Mon, 17 Dec 2007 08:02:21 -0600 Subject: MS5 Tutorial example4-4_dhtml? Message-ID: The MS5 tutorial has been very helpful as a means of learning the basics. If I'm able to use MS in real-life, my view would be to avoid the Rosa applet but try for a JS/DHTML type of interface, especially for the rubber-band feature. The tutorial seems to have an ALMOST working example of the dbox/JS/DHTML concept, but I'm stumped by the absence of a map when running it. My guess is there is some local configuration required but I haven't located any related notes that tell me how to adjust the code so it displays the map like the examples 4-1, 4-2 or 4-3 do. Please post or email me directly if you can assist my learning! TIA. Dave Nuttall San Antonio, TX From Kyle.Wilcox at NOAA.GOV Mon Dec 17 07:38:10 2007 From: Kyle.Wilcox at NOAA.GOV (Kyle Wilcox) Date: Mon, 17 Dec 2007 10:38:10 -0500 Subject: symbol rendering problem In-Reply-To: Message-ID: The problem persists using AGG 24-bit PNG, AGG 8-bit PNG, GD PNG, GD GIF, GD JPEG. I will file a big report. thomas bonfort wrote: > I'm guessing this has to do with using negative values in your vector points. > this looks like an agg rendering, what kind of output do you get using gd? > > could you file a bug report on this please? > > thanks, > thomas > > On Dec 14, 2007 7:16 PM, Kyle Wilcox wrote: >> My symbol is defined as follows: >> >> Symbol >> Name 'arrow2' >> Type VECTOR >> Filled TRUE >> Points >> 1 3 >> 1 -3 >> 4 -3 >> 0 -8 >> -4 -3 >> -1 -3 >> -1 3 >> 1 3 >> END >> END >> >> When I rotate the symbol as follows, only the right half of the image is >> shown. This only happens when ANGLE is '0'. Because the actual values >> for ANGLE are being pulled from a database, I can't change a '0' >> appearing there often (when the wind is blowing true north). >> >> CLASS >> NAME "< 12.5 m/s" >> KEYIMAGE "images/legend/70.png" >> EXPRESSION ([wind_speed] <= 12.5) >> STYLE >> SYMBOL "arrow2" >> ANGLE 0 >> COLOR 255 52 0 >> OUTLINECOLOR 0 0 0 >> SIZE 3 >> END >> END >> >> >> Here is a link to a map that is showing the problem: >> >> http://155.206.18.162/mapping/map/map.phtml?dg=states,counties,nws&me=-74.172318568083,38.120309358963,-73.935856657745,38.298565260602&language=en >> >> -- >> >> Kyle Wilcox >> NOAA Chesapeake Bay Office >> 410 Severn Avenue >> Suite 107A >> Annapolis, MD 21403 >> office: (410) 295-3151 >> Kyle.Wilcox at noaa.gov >> >> "It is from the wellspring of our despair and the places >> that we are broken that we come to repair the world." >> - Murray Waas >> -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov "It is from the wellspring of our despair and the places that we are broken that we come to repair the world." - Murray Waas From Tim.Nolte at IPCSWIRELESSINC.COM Mon Dec 17 07:47:29 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 17 Dec 2007 10:47:29 -0500 Subject: Mapfile/Creating Vector Symbols on-the-fly... Message-ID: I'm wondering if it's possible to create vector symbols on-the-fly within the mapfile using data source values? Here's what I'm after I've got some data that has to do with wireless signals. I've got a lat/long, and azimuth, and a beam width. I'd like to be able to create these points a triangles pointing in the right direction based on it's azimuth and also have them with different widths on the big side of the triangle that would be based on the beam width. Does anyone know if this is possible? If I can't do it with symbols would I have to create polygons in my spatial database to accomplish it? Thanks. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From pal.kristensen at STATKART.NO Mon Dec 17 10:12:27 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Mon, 17 Dec 2007 10:12:27 -0800 Subject: AGG renderer in conjunction with WMS TRANSPARENT=true parameter Message-ID: Hi! Edit: Reposting because the first post was not accepted by the mailing-list for some reason. I'm trying to use the AGG renderer and reduce the resulting 24bits image to 8bits by using the quantize method. This works quite well when the WMS parameter TRANSPARENT=false, but when set to true the BGCOLOR parameter seems to be ignored and the quality of the rendered vectors clearly degrades. When requesting 24bit images the TRANSPARENT parameter works correctly. See the examples below: 24bit png, transparent true -> OK: http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=true 24bit png, transparent false -> OK: http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=false 8bit png, transparent false -> OK: http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=false 8bit png, transparent true -> NOT OK: http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=true This is the output formats from the mapfile: ... OUTPUTFORMAT NAME "png8bit" DRIVER "AGG/PNG" MIMETYPE "image/png" EXTENSION "png" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_COLORS=256" FORMATOPTION INTERLACE=OFF END OUTPUTFORMAT NAME "png24bit" DRIVER "AGG/PNG" MIMETYPE "image/png; mode=24bit" EXTENSION "png" IMAGEMODE "RGB" FORMATOPTION INTERLACE=OFF END OUTPUTFORMAT NAME "jpeg24" DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" EXTENSION "jpg" FORMATOPTION "QUALITY=60" END ... Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14370293.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Mon Dec 17 10:58:00 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 17 Dec 2007 10:58:00 -0800 Subject: labeling along the line In-Reply-To: Message-ID: gagan123 wrote: > > Yes It is working on widows version MS4W (MS4W - MapServer 4 Windows - > version 2.2.5) > but i am using > OS : RHEL 4.6 AS x86_64 > PHP: 5.2.5 > MapServer 5.0.0 > fwiw, ANGLE FOLLOW works fine for me: $ ./mapserv -v MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=POSTGIS INPUT=SHAPEFILE mapserver 5.0.0, compiled on debian sarge (3.1) with locally compiled versions of gd 2.0.35 and agg 2.5 - rich -- View this message in context: http://www.nabble.com/labeling-along-the-line-tp14230038p14373993.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Mon Dec 17 11:00:41 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 17 Dec 2007 11:00:41 -0800 Subject: labeling along the line In-Reply-To: <14373993.post@talk.nabble.com> Message-ID: rich.fromm wrote: > > fwiw, ANGLE FOLLOW works fine for me: > I should probably qualify that a little bit. It clearly is drawing text labels that follow lines. And sometimes it does this perfectly. But many times it's far from perfect. The text will somewhat follow the line (like if the line curves the text might not always curve with it). Worse, sometimes the general angle is correct, but there's a bit of an offset, and the text doesn't end up precisely where you'd want it. So while I think the underlying code is functioning, it does appear either a little buggy or could use some improvement in its placement algorithm. - Rich -- View this message in context: http://www.nabble.com/labeling-along-the-line-tp14230038p14373994.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at HOSTGIS.COM Mon Dec 17 11:27:19 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 17 Dec 2007 12:27:19 -0700 Subject: mapserver 5 parallel to mapserver 4? In-Reply-To: <4841F745477DF94A97C515658C91BB2F155632@lan-exc-01.heidi.local> Message-ID: Piero Cavalieri wrote: > in cgi mode, u could simply make calls to different paths > http://localhost/Scripts/mapserver4/mapserv.exe?map=.... > http://localhost/Scripts/mapserver5/mapserv.exe?map=.... That doesn't address the many other binaries, nor MapScripts. For instance, if you wanted shp2img or PHP/MapScript, you'd have to take some care about how to install them. But if you just wanted to try out the CGI for a trial, and not use MapScript, this trick should work A-OK. In fact, you wouldn't even need to install them to different paths, just different names, e.g. /cgi-bin/mapserv5 and /cgi-bin/mapserv -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From Steve.Lime at DNR.STATE.MN.US Mon Dec 17 14:24:13 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 17 Dec 2007 16:24:13 -0600 Subject: zooming and panning with dbox In-Reply-To: Message-ID: In dBox a drag is just a surrogate for a click. As you drag the image you are defining a the click necessary to produce the next map. That click coordinate is held in minx,miny and is accessible via the setbox handler just as you show below. The coordinate where the mouse up event is fired after a drag is started is not available through the dBox API. You could alter dbox.js to change that behavior pretty easily. Steve >>> On 12/17/2007 at 6:26 AM, in message , "maurosa at iol.it" wrote: > Hi list. > > I am trying to use ms4w-dbox 0.9a1 to draw a rectangle and to pan an image. > Since my mapserver instance cannot be controlled by the client (it is hidden > server side), the client should just return the pixel rectangle drawn by the > user while zooming, and somehow the ?shift? meant by a dragging action. > I found a way of doing it for zoom operations, but not for drag ones. > I just need to understand from where to where the user dragged the image in > pixel coordinates. > > This is my very simple example: > > > > > > > > > >

> > > > > > > Thank you for any hint! > > Mauro Sartori From nospam420 at YAHOO.COM Mon Dec 17 15:07:58 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 17 Dec 2007 15:07:58 -0800 Subject: [Java mapscript] int imageObj.getSize() does not work Message-ID: if i have a valid image in an imageObj object: - int imageObj.getWidth() returns the expected value - int imageObj.getHeight() returns the expected value - void imageObj.save(String, null) successfully writes the image to a file - byte[] imageObj.getBytes() successfully returns a byte array (whose length matches the size of the file above), containing the proper contents of the image (i can subsequently dump it to a file and verify). however: - int imageObj.getSize() always returns 0 this turns out to not be a big deal. at first i thought i would have to query the size with getSize(), then allocate a byte[] of the appropriate size, then populate the byte[] with getBytes(). however, it is sufficient to just write code like: byte[] bytes = img.getBytes(); if img is the imageObj containing the image. it's not necessary to directly query the size, and if i really want to know it, bytes.length will return the proper value. nevertheless, if i'm properly guessing the intention of imageObj.getSize() [maybe i'm wrong], this seems like a bug to me. i do notice the following in mapscript/doc/mapscript.txt within the mapserver-5.0.0 distribution: --- begin --- imageObj Attributes ------------------- <...> size : int I don't see where this is used. Anyone? --SG <...> imageObj Methods ---------------- [getSize() is not listed here] --- end --- so maybe it's just deprecated. - rich -- View this message in context: http://www.nabble.com/-Java-mapscript--int-imageObj.getSize%28%29-does-not-work-tp14375813p14375813.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rjames57 at YAHOO.COM Mon Dec 17 15:52:30 2007 From: rjames57 at YAHOO.COM (Randy James) Date: Mon, 17 Dec 2007 15:52:30 -0800 Subject: unsubscribe Message-ID: ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From fatmanyash at GMAIL.COM Mon Dec 17 23:18:51 2007 From: fatmanyash at GMAIL.COM (Yash Amin) Date: Tue, 18 Dec 2007 11:18:51 +0400 Subject: unsubscribe Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Tue Dec 18 00:37:58 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 18 Dec 2007 09:37:58 +0100 Subject: [Java mapscript] int imageObj.getSize() does not work In-Reply-To: <14375813.post@talk.nabble.com> Message-ID: Please file a bug at: http://trac.osgeo.org/mapserver Best regards, Umberto On Dec 18, 2007 12:07 AM, rich.fromm wrote: > if i have a valid image in an imageObj object: > - int imageObj.getWidth() returns the expected value > - int imageObj.getHeight() returns the expected value > - void imageObj.save(String, null) successfully writes the image to a file > - byte[] imageObj.getBytes() successfully returns a byte array (whose length > matches the size of the file above), containing the proper contents of the > image (i can subsequently dump it to a file and verify). > however: > - int imageObj.getSize() always returns 0 > > this turns out to not be a big deal. at first i thought i would have to > query > the size with getSize(), then allocate a byte[] of the appropriate size, > then > populate the byte[] with getBytes(). > > however, it is sufficient to just write code like: > > byte[] bytes = img.getBytes(); > > if img is the imageObj containing the image. it's not necessary to directly > query the size, and if i really want to know it, bytes.length will return > the > proper value. > > nevertheless, if i'm properly guessing the intention of imageObj.getSize() > [maybe i'm wrong], this seems like a bug to me. > > i do notice the following in mapscript/doc/mapscript.txt within the > mapserver-5.0.0 distribution: > > --- begin --- > imageObj Attributes > ------------------- > > <...> > > size : int > I don't see where this is used. Anyone? --SG > > <...> > > imageObj Methods > ---------------- > > [getSize() is not listed here] > --- end --- > > so maybe it's just deprecated. > > - rich > > -- > View this message in context: http://www.nabble.com/-Java-mapscript--int-imageObj.getSize%28%29-does-not-work-tp14375813p14375813.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Tue Dec 18 02:01:40 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Tue, 18 Dec 2007 02:01:40 -0800 Subject: ./configuration problem Message-ID: Hi, I?m trying to install mapserver 5 on my slackware linux. when I run the ./configuration without any optional settings, the jpeg support is -DUSE_JPEG. But when I try to add some options like: --with-postgis=/usr/bin/pg_config --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config \ the jpeg support is empty. when i try to add jpeg with --with-jpeg there is still no jpeg enabled the same with the png support how do I have to specify this settings for jpeg and png? thx for help regards R.Ortner -- View this message in context: http://www.nabble.com/.-configuration-problem-tp14389894p14389894.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jsubei at YAHOO.FR Tue Dec 18 02:37:31 2007 From: jsubei at YAHOO.FR (JS Ubei) Date: Tue, 18 Dec 2007 10:37:31 +0000 Subject: [UMN_MAPSERVER-USERS] ./configuration problem Message-ID: Do you have GD installed (Or AGG since mapserver 5) ? In my case, I dont need no another options, for my CENTOS 5 build of a nightbuild of mapserver 5 : #installation of GD library ... yum install gd-devel #[... here installation of proj4, gdal, swig, ...] #And mapserver : wget http://download.osgeo.org/mapserver/nightly.tar.gz tar xzf nightly.tar.gz cd mapserver_dev/ ln -s /usr/lib/libgif.so.4 /usr/lib/libgif.so ln -s /usr/lib/libpng.so.3 /usr/lib/libpng.so ./configure --with-wfs --with-wfsclient --with-wmsclient --with-wms --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-postgis --with-curl-config=/usr/bin/curl-config --with-geos=/usr/bin/geos-config --with-pdf=/usr/local --with-threads make [...] ----- Message d'origine ---- De : R. Ortner ? : MAPSERVER-USERS at LISTS.UMN.EDU Envoy? le : Mardi, 18 D?cembre 2007, 11h01mn 40s Objet : [UMN_MAPSERVER-USERS] ./configuration problem Hi, I?m trying to install mapserver 5 on my slackware linux. when I run the ./configuration without any optional settings, the jpeg support is -DUSE_JPEG. But when I try to add some options like: --with-postgis=/usr/bin/pg_config --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config \ the jpeg support is empty. when i try to add jpeg with --with-jpeg there is still no jpeg enabled the same with the png support how do I have to specify this settings for jpeg and png? thx for help regards R.Ortner -- View this message in context: http://www.nabble.com/.-configuration-problem-tp14389894p14389894.html Sent from the Mapserver - User mailing list archive at Nabble.com. _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Tue Dec 18 02:42:14 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Tue, 18 Dec 2007 02:42:14 -0800 Subject: ./configuration problem In-Reply-To: <14389894.post@talk.nabble.com> Message-ID: yes, gd is installed: gd GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.9 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled > Von: JS Ubei [mailto:jsubei at yahoo.fr] > Gesendet: Di 18.12.2007 11:37 > An: Ortner Reinhard; MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re : [UMN_MAPSERVER-USERS] ./configuration problem > > > Do you have GD installed (Or AGG since mapserver 5) ? > > In my case, I dont need no another options, for my CENTOS 5 build of a > nightbuild of mapserver 5 : > > #installation of GD library ... > yum install gd-devel > > #[... here installation of proj4, gdal, swig, ...] > > #And mapserver : > > wget http://download.osgeo.org/mapserver/nightly.tar.gz > tar xzf nightly.tar.gz > cd mapserver_dev/ > > ln -s /usr/lib/libgif.so.4 /usr/lib/libgif.so > ln -s /usr/lib/libpng.so.3 /usr/lib/libpng.so > > ./configure --with-wfs --with-wfsclient --with-wmsclient --with-wms > --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config > --with-gdal=/usr/local/bin/gdal-config --with-postgis > --with-curl-config=/usr/bin/curl-config --with-geos=/usr/bin/geos-config > --with-pdf=/usr/local --with-threads > > make > > [...] > > > > > author="R. Ortner"> > Hi, > > I?m trying to install mapserver 5 on my slackware linux. > > when I run the ./configuration without any optional settings, the jpeg > support is -DUSE_JPEG. > > But when I try to add some options like: --with-postgis=/usr/bin/pg_config > --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config \ > > the jpeg support is empty. > when i try to add jpeg with --with-jpeg there is still no jpeg enabled > the same with the png support > > how do I have to specify this settings for jpeg and png? > > thx for help > regards > R.Ortner > -- View this message in context: http://www.nabble.com/.-configuration-problem-tp14389894p14391876.html Sent from the Mapserver - User mailing list archive at Nabble.com. From guillaume.sueur at NEOGEO-ONLINE.NET Tue Dec 18 06:25:00 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Tue, 18 Dec 2007 15:25:00 +0100 Subject: queryByShape performance Message-ID: Hi list, I'm building a piece of software using a queryByShape to retrieve all administrative boundaries covered by a specific layer. I have severe performance issues when the layer's shape is spatially wide and geometrically precise (many coordinates). Is there a way to improve the performances ? I thought using shptree on both shapes could help, but apparently not. Any clue ? Thanks -- Guillaume SUEUR From gisaalter at GMAIL.COM Tue Dec 18 06:46:06 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Tue, 18 Dec 2007 15:46:06 +0100 Subject: Mobile client for Mapserver available ? Message-ID: Hi list, I'd like to know if there's a mobile client application available for MapServer ? If so, can someone point me out where to find it ? Thanks Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Tue Dec 18 06:42:41 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Tue, 18 Dec 2007 15:42:41 +0100 Subject: queryByShape performance In-Reply-To: <4767D83C.7010303@neogeo-online.net> Message-ID: Le Tuesday 18 December 2007 15:25:00 Guillaume Sueur, vous avez ?crit?: > Hi list, > > I'm building a piece of software using a queryByShape to retrieve all > administrative boundaries covered by a specific layer. I have severe > performance issues when the layer's shape is spatially wide and > geometrically precise (many coordinates). Is there a way to improve the > performances ? I thought using shptree on both shapes could help, but > apparently not. Any clue ? > > Thanks Why don't you use a simplified layer of administrative boundaries for your search? Or use a postgis table as you are using a huge layer data (Huge data is better and faster accessed in a postgis layer than in a shape file as the connection time is shorter than the request)? If you need great accuracy, I have no clue, sorry ;) Y. -- Yves Jacolin --- http://softlibre.gloobe.org From guillaume.sueur at NEOGEO-ONLINE.NET Tue Dec 18 07:10:17 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Tue, 18 Dec 2007 16:10:17 +0100 Subject: queryByShape performance In-Reply-To: <200712181542.41406.yjacolin@free.fr> Message-ID: both not. I need great accuracy and can't use postgis. Jacolin Yves a ?crit : > Le Tuesday 18 December 2007 15:25:00 Guillaume Sueur, vous avez ?crit : >> Hi list, >> >> I'm building a piece of software using a queryByShape to retrieve all >> administrative boundaries covered by a specific layer. I have severe >> performance issues when the layer's shape is spatially wide and >> geometrically precise (many coordinates). Is there a way to improve the >> performances ? I thought using shptree on both shapes could help, but >> apparently not. Any clue ? >> >> Thanks > > Why don't you use a simplified layer of administrative boundaries for your > search? Or use a postgis table as you are using a huge layer data (Huge data > is better and faster accessed in a postgis layer than in a shape file as the > connection time is shorter than the request)? > > If you need great accuracy, I have no clue, sorry ;) > > Y. -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 65 58 88 82 Site web : http://www.neogeo-online.net From piero.cavalieri at GMAIL.COM Tue Dec 18 07:39:11 2007 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Tue, 18 Dec 2007 15:39:11 +0000 Subject: mapserver 5 parallel to mapserver 4? In-Reply-To: <4766CD97.6070104@hostgis.com> Message-ID: For cgi, the dlls can be in the same mapserv.exe directory, so there shouldn't conflicts (maybe...).I remember I used a configuration in which I had mapserv.exe (with all the required dlls) in the Scripts directory, and in the same dir, another dir with another set of exe/dlls (the first one was from MS4Win, used for WMS with AGG output, the last one was from FWtools, used for WCS). For me this seemed to work (but I used this configuration ony a bit on my devel machine...). Why cgi should be used only for a trial ? Cheers Piero 2007/12/17, Gregor Mosheh : > > Piero Cavalieri wrote: > > in cgi mode, u could simply make calls to different paths > > http://localhost/Scripts/mapserver4/mapserv.exe?map=.... > > http://localhost/Scripts/mapserver5/mapserv.exe?map=.... > > That doesn't address the many other binaries, nor MapScripts. For > instance, if you wanted shp2img or PHP/MapScript, you'd have to take > some care about how to install them. > > But if you just wanted to try out the CGI for a trial, and not use > MapScript, this trick should work A-OK. > > In fact, you wouldn't even need to install them to different paths, just > different names, e.g. /cgi-bin/mapserv5 and /cgi-bin/mapserv > > -- > Gregor Mosheh / Greg Allensworth > System Administrator, HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Tue Dec 18 08:43:06 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 18 Dec 2007 11:43:06 -0500 Subject: ./configuration problem In-Reply-To: <14389894.post@talk.nabble.com> Message-ID: The -DUSE_JPEG flag refers to supporting JPEG as an *input* format and has nothing to do with generating map output to JPEG format. When you include GDAL then you do not need -DUSE_JPEG because GDAL already provides support for reading this format and more advanced raster processing features, that's why -DUSE_JPEG is disabled by the configure script. Daniel R. Ortner wrote: > Hi, > > I?m trying to install mapserver 5 on my slackware linux. > > when I run the ./configuration without any optional settings, the jpeg > support is -DUSE_JPEG. > > But when I try to add some options like: --with-postgis=/usr/bin/pg_config > --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config \ > > the jpeg support is empty. > when i try to add jpeg with --with-jpeg there is still no jpeg enabled > the same with the png support > > how do I have to specify this settings for jpeg and png? > > thx for help > regards > R.Ortner -- Daniel Morissette http://www.mapgears.com/ From kholbrook at GWI.NET Tue Dec 18 11:23:26 2007 From: kholbrook at GWI.NET (Kirk Holbrook) Date: Tue, 18 Dec 2007 14:23:26 -0500 Subject: Creating Google Tiles with MapServer? Message-ID: Hi, I want to create a cached base map from a large geographic area. The base map file on my MapServer contains about 100 GeoTIFFs of aorund 1GB each. And will be containing more in the near future. I want to tile the map at several scales for improving performance (although probably NOT at all scales!). It seems to me that using the Google Maps tiling scheme may be the best thing for long-term compatibility (who knows how I may want to use these later on). Does anyone have some code to slice and dice from MapServer to a local or server cache? I've seen bits and pieces scattered around, including tools to match up the maps, but most seem geared at smaller map sets. It would seem that Google Maps has an established Lat/Lon to x/y values for their tiles and that a tool like that would not be necessary coming from MapServer. Thanks a lot, Kirk From bartvde at GMAIL.COM Tue Dec 18 11:30:49 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Tue, 18 Dec 2007 20:30:49 +0100 Subject: Creating Google Tiles with MapServer? In-Reply-To: <47681E2E.1030908@gwi.net> Message-ID: Have a look at 1) TileCache, http://www.tilecache.org 2) gdal2tiles: http://www.gdal.org/gdal2tiles.html Best regards, Bart On Dec 18, 2007 8:23 PM, Kirk Holbrook wrote: > Hi, > > I want to create a cached base map from a large geographic area. > > The base map file on my MapServer contains about 100 GeoTIFFs of aorund > 1GB each. And will be containing more in the near future. > > I want to tile the map at several scales for improving performance > (although probably NOT at all scales!). > > It seems to me that using the Google Maps tiling scheme may be the best > thing for long-term compatibility (who knows how I may want to use these > later on). > > Does anyone have some code to slice and dice from MapServer to a local > or server cache? I've seen bits and pieces scattered around, including > tools to match up the maps, but most seem geared at smaller map sets. It > would seem that Google Maps has an established Lat/Lon to x/y values for > their tiles and that a tool like that would not be necessary coming from > MapServer. > > Thanks a lot, > Kirk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at GMAIL.COM Tue Dec 18 12:43:20 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Tue, 18 Dec 2007 15:43:20 -0500 Subject: AGG renderer in conjunction with WMS TRANSPARENT=true parameter In-Reply-To: <14370293.post@talk.nabble.com> Message-ID: Sorry Pal I have no advice just a comment. We were considering upgrading to ms 5.0 with agg but never did do to the statment on the mapserver site "The AGG driver only supports RGB output at this time." on the Support for Anti-Grain Geometry (AGG) Rendering Engine documents. http://mapserver.gis.umn.edu/development/rfc/ms-rfc-32 I guess this in not correct? Travis On 17/12/2007, P?l Kristensen wrote: > Hi! > > I'm trying to use the AGG renderer and reduce the resulting 24bits image to > 8bits by using the quantize method. This works quite well when the WMS > parameter TRANSPARENT=false, but when set to true the BGCOLOR parameter > seems to be ignored and the quality of the rendered vectors clearly > degrades. > > When requesting 24bit images the TRANSPARENT parameter works correctly. See > the examples below: > > 24bit png, transparent true -> OK: > http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=true > > 24bit png, transparent false -> OK: > http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=false > > 8bit png, transparent false -> OK: > http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=false > > 8bit png, transparent true -> NOT OK: > http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=true > > This is the output formats from the mapfile: > ... > OUTPUTFORMAT > NAME "png8bit" > DRIVER "AGG/PNG" > MIMETYPE "image/png" > EXTENSION "png" > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_COLORS=256" > FORMATOPTION INTERLACE=OFF > END > > OUTPUTFORMAT > NAME "png24bit" > DRIVER "AGG/PNG" > MIMETYPE "image/png; mode=24bit" > EXTENSION "png" > IMAGEMODE "RGB" > FORMATOPTION INTERLACE=OFF > END > > OUTPUTFORMAT > NAME "jpeg24" > DRIVER "AGG/JPEG" > MIMETYPE "image/jpeg" > EXTENSION "jpg" > FORMATOPTION "QUALITY=60" > END > ... > > Regards, > P?l Kristensen > -- > View this message in context: http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14370293.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From anhtin at GMAIL.COM Tue Dec 18 22:44:27 2007 From: anhtin at GMAIL.COM (Bui Anh Tin) Date: Wed, 19 Dec 2007 13:44:27 +0700 Subject: queryRect Message-ID: I have a question ex: My map have layer: "station ticket" type data is point And i want get all point in mapobj extent now. How can i do that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at STATKART.NO Tue Dec 18 23:26:24 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 18 Dec 2007 23:26:24 -0800 Subject: AGG renderer in conjunction with WMS TRANSPARENT=true parameter In-Reply-To: <681116190712181243r40ebeb82k1224470d4ac4a390@mail.gmail.com> Message-ID: Hi! The AGG renderer it self can not produce 8bit output, but as stated in the RFC GD is actually used to handle the images. The quantize method for reducing color depth from 24bits to 8bits works quite well with the AGG renderer, but not if the WMS parameter TRANSPARENT is set to true. I guess this has something to do withe the fact that GD interprets the alpha channel backwards, hence the resulting image is in some way "broken". But for some reason, I don't know why, this is not the case when 24bit images is delivered the transparency works perfectly well. Regards P?l Kristensen Travis Kirstine wrote: > > Sorry Pal I have no advice just a comment. We were considering > upgrading to ms 5.0 with agg but never did do to the statment on the > mapserver site "The AGG driver only supports RGB output at this time." > on the Support for Anti-Grain Geometry (AGG) Rendering Engine > documents. > > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-32 > > I guess this in not correct? > > Travis > > > > > > > > > > > > > On 17/12/2007, P?l Kristensen wrote: >> Hi! >> >> I'm trying to use the AGG renderer and reduce the resulting 24bits image >> to >> 8bits by using the quantize method. This works quite well when the WMS >> parameter TRANSPARENT=false, but when set to true the BGCOLOR parameter >> seems to be ignored and the quality of the rendered vectors clearly >> degrades. >> >> When requesting 24bit images the TRANSPARENT parameter works correctly. >> See >> the examples below: >> >> 24bit png, transparent true -> OK: >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=true >> >> 24bit png, transparent false -> OK: >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=false >> >> 8bit png, transparent false -> OK: >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=false >> >> 8bit png, transparent true -> NOT OK: >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=true >> >> This is the output formats from the mapfile: >> ... >> OUTPUTFORMAT >> NAME "png8bit" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> EXTENSION "png" >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_COLORS=256" >> FORMATOPTION INTERLACE=OFF >> END >> >> OUTPUTFORMAT >> NAME "png24bit" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png; mode=24bit" >> EXTENSION "png" >> IMAGEMODE "RGB" >> FORMATOPTION INTERLACE=OFF >> END >> >> OUTPUTFORMAT >> NAME "jpeg24" >> DRIVER "AGG/JPEG" >> MIMETYPE "image/jpeg" >> EXTENSION "jpg" >> FORMATOPTION "QUALITY=60" >> END >> ... >> >> Regards, >> P?l Kristensen >> -- >> View this message in context: >> http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14370293.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > > -- > Travis K. > > Toronto, Canada > ------------------------------------------------------------ > "She knows there's no success like failure > And that failure's no success at all." > -Bob Dylan- > ------------------------------------------------------------ > > -- View this message in context: http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14412307.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at STATKART.NO Tue Dec 18 23:27:50 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 18 Dec 2007 23:27:50 -0800 Subject: AGG renderer in conjunction with WMS TRANSPARENT=true parameter Message-ID: Hi! The AGG renderer it self can not produce 8bit output, but as stated in the RFC GD is actually used to handle the images. The quantize method for reducing color depth from 24bits to 8bits works quite well with the AGG renderer, but not if the WMS parameter TRANSPARENT is set to true. I guess this has something to do with the fact that GD interprets the alpha channel backwards, hence the resulting image is in some way "broken". But for some reason, I don't know why, this is not the case when 24bit images is delivered the transparency works perfectly well. Regards P?l Kristensen Travis Kirstine wrote: > > Sorry Pal I have no advice just a comment. We were considering > upgrading to ms 5.0 with agg but never did do to the statment on the > mapserver site "The AGG driver only supports RGB output at this time." > on the Support for Anti-Grain Geometry (AGG) Rendering Engine > documents. > > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-32 > > I guess this in not correct? > > Travis > > > > > > > > > > > > > On 17/12/2007, P?l Kristensen wrote: >> Hi! >> >> I'm trying to use the AGG renderer and reduce the resulting 24bits image >> to >> 8bits by using the quantize method. This works quite well when the WMS >> parameter TRANSPARENT=false, but when set to true the BGCOLOR parameter >> seems to be ignored and the quality of the rendered vectors clearly >> degrades. >> >> When requesting 24bit images the TRANSPARENT parameter works correctly. >> See >> the examples below: >> >> 24bit png, transparent true -> OK: >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=true >> >> 24bit png, transparent false -> OK: >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=false >> >> 8bit png, transparent false -> OK: >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=false >> >> 8bit png, transparent true -> NOT OK: >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=true >> >> This is the output formats from the mapfile: >> ... >> OUTPUTFORMAT >> NAME "png8bit" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> EXTENSION "png" >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_COLORS=256" >> FORMATOPTION INTERLACE=OFF >> END >> >> OUTPUTFORMAT >> NAME "png24bit" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png; mode=24bit" >> EXTENSION "png" >> IMAGEMODE "RGB" >> FORMATOPTION INTERLACE=OFF >> END >> >> OUTPUTFORMAT >> NAME "jpeg24" >> DRIVER "AGG/JPEG" >> MIMETYPE "image/jpeg" >> EXTENSION "jpg" >> FORMATOPTION "QUALITY=60" >> END >> ... >> >> Regards, >> P?l Kristensen >> -- >> View this message in context: >> http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14370293.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > > -- > Travis K. > > Toronto, Canada > ------------------------------------------------------------ > "She knows there's no success like failure > And that failure's no success at all." > -Bob Dylan- > ------------------------------------------------------------ > > -- View this message in context: http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14412307.html Sent from the Mapserver - User mailing list archive at Nabble.com. From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Wed Dec 19 00:36:54 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Wed, 19 Dec 2007 00:36:54 -0800 Subject: mapserver update Message-ID: Hi, I have Mapserver 4.10 installed and tried to install the mapserver 5.0.0. I?ve configured the mapserver with ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs --with-sos --with-php=/usr/include/php/main/ --with-threads and then executed the make command. after copying the mapserv file to my cgi-bin folder where the old one (from mapserver 4) was I thougtt that I now have mapserver 5 installed, but when I call the test.php which shows me what version is installed, it tells me still Mapserver 4.10. Is there something special to do to activate the mapserver 5 (i thought with installing the version 4 the old version should be either overwritten or working parallel by calling the new mapserv or the old mapserv (which I copied to a subfolder (mapserver4/mapserv). regards -- View this message in context: http://www.nabble.com/mapserver-update-tp14412963p14412963.html Sent from the Mapserver - User mailing list archive at Nabble.com. From umberto.nicoletti at GMAIL.COM Wed Dec 19 00:47:52 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 19 Dec 2007 09:47:52 +0100 Subject: mapserver update In-Reply-To: <14412963.post@talk.nabble.com> Message-ID: On Dec 19, 2007 9:36 AM, R. Ortner wrote: > Hi, > > I have Mapserver 4.10 installed and tried to install the mapserver 5.0.0. > > I?ve configured the mapserver with > > > ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj > --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs > --with-sos --with-php=/usr/include/php/main/ --with-threads > > and then executed the make command. > after copying the mapserv file to my cgi-bin folder where the old one (from > mapserver 4) was I thougtt that I now have mapserver 5 installed, but when I In fact now you have the *CGI* version of mapserver installed. But since you use php mapscript you need to configure, compile and install php mapscript. You should be able to do that just by: mapserver-5-source$ cd mapscript/php3 mapserver-5-source$ make and then replace with the new php_*.so the old ones picked up in php.ini HTH, Umberto > call the test.php which shows me what version is installed, it tells me > still Mapserver 4.10. > > Is there something special to do to activate the mapserver 5 (i thought with > installing the version 4 the old version should be either overwritten or > working parallel by calling the new mapserv or the old mapserv (which I > copied to a subfolder (mapserver4/mapserv). > > regards > -- > View this message in context: http://www.nabble.com/mapserver-update-tp14412963p14412963.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From guillaume.sueur at NEOGEO-ONLINE.NET Wed Dec 19 00:48:34 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Wed, 19 Dec 2007 09:48:34 +0100 Subject: mapserver update In-Reply-To: <14412963.post@talk.nabble.com> Message-ID: Hi, You are making a confusion between mapserver cgi and the php mapscript module. You have placed mapserv (cgi version) in cgi-bin, it is so the one which is used if you use cgi and it shoulb be version 5 The phpinfo() stuff tells you about which mapscript is installed. Obviously you didn't update that one by copying the mapscript/php3/php_mapscript.so from your mapserver build directory to your php extensions dir. Regards, Guillaume R. Ortner a ?crit : > Hi, > > I have Mapserver 4.10 installed and tried to install the mapserver 5.0.0. > > I?ve configured the mapserver with > > > ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj > --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs > --with-sos --with-php=/usr/include/php/main/ --with-threads > > and then executed the make command. > after copying the mapserv file to my cgi-bin folder where the old one (from > mapserver 4) was I thougtt that I now have mapserver 5 installed, but when I > call the test.php which shows me what version is installed, it tells me > still Mapserver 4.10. > > Is there something special to do to activate the mapserver 5 (i thought with > installing the version 4 the old version should be either overwritten or > working parallel by calling the new mapserv or the old mapserv (which I > copied to a subfolder (mapserver4/mapserv). > > regards From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Wed Dec 19 01:07:01 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Wed, 19 Dec 2007 01:07:01 -0800 Subject: mapserver update In-Reply-To: <14412963.post@talk.nabble.com> Message-ID: I tried to replace my /usr/lib/php/extensions/php_mapscript.so but in the mapserver5 folder (downloaded from http://mapserver.gis.umn.edu/download/current/) is no php_mapserver.so in the /mapserver/php3 folder!? Umberto wrote: > > > In fact now you have the *CGI* version of mapserver installed. But > since you use php mapscript you need to configure, compile and install > php mapscript. > You should be able to do that just by: > > mapserver-5-source$ cd mapscript/php3 > mapserver-5-source$ make > > and then replace with the new php_*.so the old ones picked up in php.ini > > HTH, > Umberto > > > > ---- > Hi, > > I have Mapserver 4.10 installed and tried to install the mapserver 5.0.0. > > I?ve configured the mapserver with > > > ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj > --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs > --with-sos --with-php=/usr/include/php/main/ --with-threads > > and then executed the make command. > after copying the mapserv file to my cgi-bin folder where the old one > (from mapserver 4) was I thougtt that I now have mapserver 5 installed, > but when I call the test.php which shows me what version is installed, it > tells me still Mapserver 4.10. > > Is there something special to do to activate the mapserver 5 (i thought > with installing the version 4 the old version should be either overwritten > or working parallel by calling the new mapserv or the old mapserv (which I > copied to a subfolder (mapserver4/mapserv). > > regards > -- View this message in context: http://www.nabble.com/mapserver-update-tp14412963p14413075.html Sent from the Mapserver - User mailing list archive at Nabble.com. From guillaume.sueur at NEOGEO-ONLINE.NET Wed Dec 19 01:11:36 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Wed, 19 Dec 2007 10:11:36 +0100 Subject: mapserver update In-Reply-To: <14413075.post@talk.nabble.com> Message-ID: maybe you should check the configure output as it can claims for php header files. do you have the php-devel package installed as well ? R. Ortner a ?crit : > I tried to replace my /usr/lib/php/extensions/php_mapscript.so but in the > mapserver5 folder (downloaded from > http://mapserver.gis.umn.edu/download/current/) is no php_mapserver.so in > the /mapserver/php3 folder!? > > > > Umberto wrote: >> >> In fact now you have the *CGI* version of mapserver installed. But >> since you use php mapscript you need to configure, compile and install >> php mapscript. >> You should be able to do that just by: >> >> mapserver-5-source$ cd mapscript/php3 >> mapserver-5-source$ make >> >> and then replace with the new php_*.so the old ones picked up in php.ini >> >> HTH, >> Umberto >> >> >> >> ---- >> Hi, >> >> I have Mapserver 4.10 installed and tried to install the mapserver 5.0.0. >> >> I?ve configured the mapserver with >> >> >> ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj >> --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs >> --with-sos --with-php=/usr/include/php/main/ --with-threads >> >> and then executed the make command. >> after copying the mapserv file to my cgi-bin folder where the old one >> (from mapserver 4) was I thougtt that I now have mapserver 5 installed, >> but when I call the test.php which shows me what version is installed, it >> tells me still Mapserver 4.10. >> >> Is there something special to do to activate the mapserver 5 (i thought >> with installing the version 4 the old version should be either overwritten >> or working parallel by calling the new mapserv or the old mapserv (which I >> copied to a subfolder (mapserver4/mapserv). >> >> regards >> > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 65 58 88 82 Site web : http://www.neogeo-online.net From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Wed Dec 19 01:26:26 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Wed, 19 Dec 2007 01:26:26 -0800 Subject: mapserver update In-Reply-To: <4768E048.9090208@neogeo-online.net> Message-ID: Sorry but I?ve never done something like installing mapserver before,... I even don?t know what the php-devel package is. If u mean the config.log file, there is something like: configure:11379: checking for PHP/MapScript module options... configure:11654: checking for location of config.h or php_config.h configure:11665: result: /usr/include/php/main//php_config.h configure:11677: checking whether we have PHP3 or PHP4 configure:11691: result: -DPHP4 configure:11694: checking whether we should use PHP's regex configure:11717: result: no configure:11740: result: PHP/MapScript module configured. configure:12018: checking if --enable-runpath requested configure:12028: result: no configure:12036: checking if --with-java-include-os-name specified configure:12057: result: no, autodetected linux configure:12208: creating ./config.status Guillaume Sueur-2 wrote: > > maybe you should check the configure output as it can claims for php > header files. do you have the php-devel package installed as well ? > > > R. Ortner a ?crit : >> I tried to replace my /usr/lib/php/extensions/php_mapscript.so but in the >> mapserver5 folder (downloaded from >> http://mapserver.gis.umn.edu/download/current/) is no php_mapserver.so in >> the /mapserver/php3 folder!? >> >> >> >> Umberto wrote: >>> >>> In fact now you have the *CGI* version of mapserver installed. But >>> since you use php mapscript you need to configure, compile and install >>> php mapscript. >>> You should be able to do that just by: >>> >>> mapserver-5-source$ cd mapscript/php3 >>> mapserver-5-source$ make >>> >>> and then replace with the new php_*.so the old ones picked up in php.ini >>> >>> HTH, >>> Umberto >>> >>> >>> >>> ---- >>> Hi, >>> >>> I have Mapserver 4.10 installed and tried to install the mapserver >>> 5.0.0. >>> >>> I?ve configured the mapserver with >>> >>> >>> ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj >>> --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs >>> --with-sos --with-php=/usr/include/php/main/ --with-threads >>> >>> and then executed the make command. >>> after copying the mapserv file to my cgi-bin folder where the old one >>> (from mapserver 4) was I thougtt that I now have mapserver 5 installed, >>> but when I call the test.php which shows me what version is installed, >>> it >>> tells me still Mapserver 4.10. >>> >>> Is there something special to do to activate the mapserver 5 (i thought >>> with installing the version 4 the old version should be either >>> overwritten >>> or working parallel by calling the new mapserv or the old mapserv (which >>> I >>> copied to a subfolder (mapserver4/mapserv). >>> >>> regards >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 65 58 88 82 > Site web : http://www.neogeo-online.net > > -- View this message in context: http://www.nabble.com/mapserver-update-tp14412963p14413553.html Sent from the Mapserver - User mailing list archive at Nabble.com. From guillaume.sueur at NEOGEO-ONLINE.NET Wed Dec 19 01:34:24 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Wed, 19 Dec 2007 10:34:24 +0100 Subject: mapserver update In-Reply-To: <14413553.post@talk.nabble.com> Message-ID: it looks ok. can you check your mapserver-5.0.0/mapscript/php3/ again and make sure php_mapscript.so is not in it ? If not, like Umberto said, try to type make in that directory and see what happen R. Ortner a ?crit : > Sorry but I?ve never done something like installing mapserver before,... > > I even don?t know what the php-devel package is. > If u mean the config.log file, there is something like: > > configure:11379: checking for PHP/MapScript module options... > configure:11654: checking for location of config.h or php_config.h > configure:11665: result: /usr/include/php/main//php_config.h > configure:11677: checking whether we have PHP3 or PHP4 > configure:11691: result: -DPHP4 > configure:11694: checking whether we should use PHP's regex > configure:11717: result: no > configure:11740: result: PHP/MapScript module configured. > configure:12018: checking if --enable-runpath requested > configure:12028: result: no > configure:12036: checking if --with-java-include-os-name specified > configure:12057: result: no, autodetected linux > configure:12208: creating ./config.status > > > > > Guillaume Sueur-2 wrote: >> maybe you should check the configure output as it can claims for php >> header files. do you have the php-devel package installed as well ? >> >> >> R. Ortner a ?crit : >>> I tried to replace my /usr/lib/php/extensions/php_mapscript.so but in the >>> mapserver5 folder (downloaded from >>> http://mapserver.gis.umn.edu/download/current/) is no php_mapserver.so in >>> the /mapserver/php3 folder!? >>> >>> >>> >>> Umberto wrote: >>>> In fact now you have the *CGI* version of mapserver installed. But >>>> since you use php mapscript you need to configure, compile and install >>>> php mapscript. >>>> You should be able to do that just by: >>>> >>>> mapserver-5-source$ cd mapscript/php3 >>>> mapserver-5-source$ make >>>> >>>> and then replace with the new php_*.so the old ones picked up in php.ini >>>> >>>> HTH, >>>> Umberto >>>> >>>> >>>> >>>> ---- >>>> Hi, >>>> >>>> I have Mapserver 4.10 installed and tried to install the mapserver >>>> 5.0.0. >>>> >>>> I?ve configured the mapserver with >>>> >>>> >>>> ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj >>>> --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs >>>> --with-sos --with-php=/usr/include/php/main/ --with-threads >>>> >>>> and then executed the make command. >>>> after copying the mapserv file to my cgi-bin folder where the old one >>>> (from mapserver 4) was I thougtt that I now have mapserver 5 installed, >>>> but when I call the test.php which shows me what version is installed, >>>> it >>>> tells me still Mapserver 4.10. >>>> >>>> Is there something special to do to activate the mapserver 5 (i thought >>>> with installing the version 4 the old version should be either >>>> overwritten >>>> or working parallel by calling the new mapserv or the old mapserv (which >>>> I >>>> copied to a subfolder (mapserver4/mapserv). >>>> >>>> regards >>>> >> -- >> Guillaume SUEUR >> Expert SIG et OpenSource >> NEOGEO >> 46 RUE MATABIAU >> 31000 TOULOUSE >> 06 65 58 88 82 >> Site web : http://www.neogeo-online.net >> >> > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 65 58 88 82 Site web : http://www.neogeo-online.net From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Wed Dec 19 01:39:10 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Wed, 19 Dec 2007 01:39:10 -0800 Subject: mapserver update In-Reply-To: <4768E5A0.5040105@neogeo-online.net> Message-ID: Checked again, no .so file: root at umnmapserver:/tmp/Mapserver5/mapserver-5.0.0/mapscript/php3# ls Makefile Makefile.vc README.WIN32 hashtable_i.c nmake.opt php_mapscript.h php_mapscript_util.h php_regex.c Makefile.in README examples mapscript_i.c php_mapscript.c php_mapscript_util.c php_proj.c if i type make in the php3 directory: (and thats only the very last part of the output) /usr/include/php/main/php_reentrancy.h:52: error: syntax error before "BEGIN_EXTERN_C" In file included from php_mapscript_util.c:33: php_mapscript_util.h:117: error: syntax error before '*' token php_mapscript_util.h:121: error: syntax error before '*' token php_mapscript_util.h:124: error: syntax error before '*' token php_mapscript_util.h:127: error: syntax error before '*' token php_mapscript_util.h:130: error: syntax error before '*' token php_mapscript_util.h:132: error: syntax error before '*' token php_mapscript_util.h:134: error: syntax error before '*' token php_mapscript_util.h:136: error: syntax error before '*' token php_mapscript_util.h:138: error: syntax error before '*' token php_mapscript_util.h:140: error: syntax error before '*' token php_mapscript_util.h:141: error: syntax error before '*' token php_mapscript_util.h:143: error: syntax error before '*' token php_mapscript_util.h:145: error: syntax error before '*' token php_mapscript_util.h:148: error: syntax error before '*' token In file included from php_mapscript_util.c:34: /tmp/Mapserver5/mapserver-5.0.0/maperror.h:101: warning: structure defined inside parms /tmp/Mapserver5/mapserver-5.0.0/maperror.h:101: error: storage class specified for parameter `errorObj' /tmp/Mapserver5/mapserver-5.0.0/maperror.h:106: error: syntax error before "errorObj" /tmp/Mapserver5/mapserver-5.0.0/maperror.h:114: error: syntax error before '*' token /tmp/Mapserver5/mapserver-5.0.0/maperror.h:115: error: syntax error before '*' token /tmp/Mapserver5/mapserver-5.0.0/maperror.h:117: error: syntax error before "errorObj" /tmp/Mapserver5/mapserver-5.0.0/maperror.h:119: warning: empty declaration /tmp/Mapserver5/mapserver-5.0.0/maperror.h:134: warning: enum defined inside parms /tmp/Mapserver5/mapserver-5.0.0/maperror.h:134: error: storage class specified for parameter `debugLevel' /tmp/Mapserver5/mapserver-5.0.0/maperror.h:143: warning: enum defined inside parms /tmp/Mapserver5/mapserver-5.0.0/maperror.h:143: error: storage class specified for parameter `debugMode' /tmp/Mapserver5/mapserver-5.0.0/maperror.h:147: error: syntax error before "debugLevel" /tmp/Mapserver5/mapserver-5.0.0/maperror.h:147: warning: no semicolon at end of struct or union /tmp/Mapserver5/mapserver-5.0.0/maperror.h:150: error: syntax error before "FILE" /tmp/Mapserver5/mapserver-5.0.0/maperror.h:154: error: syntax error before '}' token /tmp/Mapserver5/mapserver-5.0.0/maperror.h:162: error: syntax error before "debugLevel" php_mapscript_util.c:45: error: redefinition of parameter '_phpms_report_mapserver_error' php_mapscript_util.h:115: error: previous definition of '_phpms_report_mapserver_error' was here php_mapscript_util.c:45: error: syntax error before '{' token php_mapscript_util.c:71: error: parameter `retVal' is initialized php_mapscript_util.c:73: error: syntax error before "if" php_mapscript_util.c:122: error: parameter `retVal' is initialized php_mapscript_util.c:122: error: redefinition of parameter 'retVal' php_mapscript_util.c:71: error: previous definition of 'retVal' was here php_mapscript_util.c:125: error: syntax error before "if" php_mapscript_util.c:464: error: parameter `string_key' is initialized php_mapscript_util.c:466: error: parameter `i' is initialized php_mapscript_util.c:468: error: syntax error before "for" make: *** [php_mapscript_util.o] Error 1 Guillaume Sueur-2 wrote: > > it looks ok. > can you check your mapserver-5.0.0/mapscript/php3/ again and make sure > php_mapscript.so is not in it ? > If not, like Umberto said, try to type make in that directory and see > what happen > > R. Ortner a ?crit : >> Sorry but I?ve never done something like installing mapserver before,... >> >> I even don?t know what the php-devel package is. >> If u mean the config.log file, there is something like: >> >> configure:11379: checking for PHP/MapScript module options... >> configure:11654: checking for location of config.h or php_config.h >> configure:11665: result: /usr/include/php/main//php_config.h >> configure:11677: checking whether we have PHP3 or PHP4 >> configure:11691: result: -DPHP4 >> configure:11694: checking whether we should use PHP's regex >> configure:11717: result: no >> configure:11740: result: PHP/MapScript module configured. >> configure:12018: checking if --enable-runpath requested >> configure:12028: result: no >> configure:12036: checking if --with-java-include-os-name specified >> configure:12057: result: no, autodetected linux >> configure:12208: creating ./config.status >> >> >> >> >> Guillaume Sueur-2 wrote: >>> maybe you should check the configure output as it can claims for php >>> header files. do you have the php-devel package installed as well ? >>> >>> >>> R. Ortner a ?crit : >>>> I tried to replace my /usr/lib/php/extensions/php_mapscript.so but in >>>> the >>>> mapserver5 folder (downloaded from >>>> http://mapserver.gis.umn.edu/download/current/) is no php_mapserver.so >>>> in >>>> the /mapserver/php3 folder!? >>>> >>>> >>>> >>>> Umberto wrote: >>>>> In fact now you have the *CGI* version of mapserver installed. But >>>>> since you use php mapscript you need to configure, compile and install >>>>> php mapscript. >>>>> You should be able to do that just by: >>>>> >>>>> mapserver-5-source$ cd mapscript/php3 >>>>> mapserver-5-source$ make >>>>> >>>>> and then replace with the new php_*.so the old ones picked up in >>>>> php.ini >>>>> >>>>> HTH, >>>>> Umberto >>>>> >>>>> >>>>> >>>>> ---- >>>>> Hi, >>>>> >>>>> I have Mapserver 4.10 installed and tried to install the mapserver >>>>> 5.0.0. >>>>> >>>>> I?ve configured the mapserver with >>>>> >>>>> >>>>> ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj >>>>> --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs >>>>> --with-sos --with-php=/usr/include/php/main/ --with-threads >>>>> >>>>> and then executed the make command. >>>>> after copying the mapserv file to my cgi-bin folder where the old one >>>>> (from mapserver 4) was I thougtt that I now have mapserver 5 >>>>> installed, >>>>> but when I call the test.php which shows me what version is installed, >>>>> it >>>>> tells me still Mapserver 4.10. >>>>> >>>>> Is there something special to do to activate the mapserver 5 (i >>>>> thought >>>>> with installing the version 4 the old version should be either >>>>> overwritten >>>>> or working parallel by calling the new mapserv or the old mapserv >>>>> (which >>>>> I >>>>> copied to a subfolder (mapserver4/mapserv). >>>>> >>>>> regards >>>>> >>> -- >>> Guillaume SUEUR >>> Expert SIG et OpenSource >>> NEOGEO >>> 46 RUE MATABIAU >>> 31000 TOULOUSE >>> 06 65 58 88 82 >>> Site web : http://www.neogeo-online.net >>> >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 65 58 88 82 > Site web : http://www.neogeo-online.net > > -- View this message in context: http://www.nabble.com/mapserver-update-tp14412963p14413847.html Sent from the Mapserver - User mailing list archive at Nabble.com. From davidhmccoy at COX.NET Wed Dec 19 07:28:17 2007 From: davidhmccoy at COX.NET (David H. McCoy) Date: Wed, 19 Dec 2007 09:28:17 -0600 Subject: New to Mapserver Message-ID: Hello! I'm new to Mapserver and trying to understand something. I'm working for company that has an application with a mapping component. Currently, that component uses Google maps. I am replacing the Google Maps API with Openlayers and the mapping component with Mapserver. The goal is that while a customer can elect to use say Google maps, they can also host the maps internally, thus having no external dependencies. In additional to server maps, does Map server actually have maps available? Perhaps a better question would be are there any open source or freeware apps comparable to Google maps that I can retrieve for local use and utilize in Mapserver? Thanks for your time. From davidhmccoy at COX.NET Wed Dec 19 07:38:36 2007 From: davidhmccoy at COX.NET (David H. McCoy) Date: Wed, 19 Dec 2007 09:38:36 -0600 Subject: Does mapserver come with maps? Message-ID: Hello, I'm new to Mapserver so please excuse the nature of this question. I'm working for a company that currently uses Google maps in its application. However, we want to replace google maps with with openlayers and mapserver, ultimately allowing the user to swap between the two. Does mapserver come with maps that are comparable to Google maps? If not, is there a open source or freeware source for maps? If not, where would one get maps? Thanks for your time. David H. McCoy From bartvde at GMAIL.COM Wed Dec 19 07:46:56 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Wed, 19 Dec 2007 16:46:56 +0100 Subject: New to Mapserver In-Reply-To: Message-ID: No it does not come with maps or data, and that data is hard to find most of the times. 2 noteworthy initiatives: -Open Street Map, http://www.openstreetmap.org/ -Open Aerial Map, http://www.openaerialmap.org/ Best regards, Bart On Dec 19, 2007 4:28 PM, David H. McCoy wrote: > Hello! > I'm new to Mapserver and trying to understand something. I'm working for > company that has an application with a mapping component. Currently, that > component uses Google maps. I am replacing the Google Maps API with > Openlayers and the mapping component with Mapserver. The goal is that > while > a customer can elect to use say Google maps, they can also host the maps > internally, thus having no external dependencies. > > In additional to server maps, does Map server actually have maps > available? > Perhaps a better question would be are there any open source or freeware > apps comparable to Google maps that I can retrieve for local use and > utilize in > Mapserver? > > Thanks for your time. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at INTEVATION.DE Wed Dec 19 07:26:29 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Wed, 19 Dec 2007 16:26:29 +0100 Subject: MapServer RPMs for OpenSUSE Message-ID: Hallo Mapserver-list, I am seeking for MapServer-RPMs installable on OpenSUSE 10.x. Is anybody aware of packages? I browsed the net and could not find any. Thanks for any pointers in advance. Best Stephan From davidhmccoy at COX.NET Wed Dec 19 07:59:37 2007 From: davidhmccoy at COX.NET (David H. McCoy) Date: Wed, 19 Dec 2007 09:59:37 -0600 Subject: New to Mapserver Message-ID: Thanks for the reply Bart. It seems I misunderstood the part of the initiative. I thought that the customer wanted to try to do this with some kind of public domain maps, which is not the case. They are prepared to purchase the maps, after all. Well, I'll get to work and come up with some *real* questions. Thanks again! David H. McCoy From Steve.Lime at DNR.STATE.MN.US Wed Dec 19 08:07:48 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 19 Dec 2007 10:07:48 -0600 Subject: queryRect In-Reply-To: Message-ID: You can do a rect query. In mapscript that would be by using the queryByRect method of either a layerObj or a mapObj. Or you could use the CGI with a call like: http://.../cgi-bin/mapserv?map=my.map&qlayer=station_ticket&mapext=...&mode=nquery Steve >>> On 12/19/2007 at 12:44 AM, in message , Bui Anh Tin wrote: > I have a question > ex: My map have layer: "station ticket" type data is point > And i want get all point in mapobj extent now. > How can i do that? From ed at TOPOZONE.COM Wed Dec 19 08:34:07 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 19 Dec 2007 11:34:07 -0500 Subject: New to Mapserver In-Reply-To: A Message-ID: David - The answer to your question about data depends greatly on what portion of the Earth you are interested in. Is this a global mapping application, or limited to a smaller geography? - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy Sent: Wednesday, December 19, 2007 11:00 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver Thanks for the reply Bart. It seems I misunderstood the part of the initiative. I thought that the customer wanted to try to do this with some kind of public domain maps, which is not the case. They are prepared to purchase the maps, after all. Well, I'll get to work and come up with some *real* questions. Thanks again! David H. McCoy From davidhmccoy at COX.NET Wed Dec 19 08:47:44 2007 From: davidhmccoy at COX.NET (David H. McCoy) Date: Wed, 19 Dec 2007 10:47:44 -0600 Subject: New to Mapserver Message-ID: You are correct! The application will support maps and floor plans. The floorplans will definitely be supplied by the user of the application on a per need basis. However, I thought that the geographic maps were to be *only* public domain. In actuality, the user of the application would purchase geographic maps based, in a format supported by mapserver, based on whatever needs they are trying to fulfill. I'd thought that I was rebuffed when suggesting purchasing certain items in the past, put there is an understanding that a user of the application would at least potentially have to purchase maps. And there was my mistake. I thought purchasing data was off the table, but this isn't the case at all. On Wed, 19 Dec 2007 11:34:07 -0500, Ed McNierney wrote: >David - > >The answer to your question about data depends greatly on what portion of the Earth you are interested in. Is this a global mapping application, or limited to a smaller geography? > > - Ed > >Ed McNierney >Chief Mapmaker >Demand Media / TopoZone.com >73 Princeton Street, Suite 305 >North Chelmsford, MA? 01863 >ed at topozone.com >Phone: +1 (978) 251-4242 >Fax: +1 (978) 251-1396 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER- USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy >Sent: Wednesday, December 19, 2007 11:00 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver > >Thanks for the reply Bart. It seems I misunderstood the part of the initiative. >I thought that the customer wanted to try to do this with some kind of public >domain maps, which is not the case. They are prepared to purchase the maps, >after all. > > >Well, I'll get to work and come up with some *real* questions. > >Thanks again! > >David H. McCoy From aileen_heal at YAHOO.COM Wed Dec 19 09:20:54 2007 From: aileen_heal at YAHOO.COM (Aileen Heal) Date: Wed, 19 Dec 2007 09:20:54 -0800 Subject: corruption of image Message-ID: Hi I hope you can help. I am consuming another WMS server in my mapserver application which I am then also serving up as a WMS. I am using MapServer as an aggregration service. I am having a problem with the image being corrupted in very unique circumatances. Usually when I have a black filed polygon which is being overlayed with a simple polyline in s lighter colour. THis is what the image looks like in the original WMS This is what MapServer generates Any ideas how I can over come this. __________________________________________________________ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Wed Dec 19 09:49:48 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 19 Dec 2007 12:49:48 -0500 Subject: New to Mapserver In-Reply-To: A Message-ID: David - Well, I may be correct, but you didn't answer my question . The availability and sources of map data - whether free or not - varies widely by geography, and if you can tell us what geography you're interested in (floorplans in Antarctica?) we might be able to suggest good sources. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy Sent: Wednesday, December 19, 2007 11:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver You are correct! The application will support maps and floor plans. The floorplans will definitely be supplied by the user of the application on a per need basis. However, I thought that the geographic maps were to be *only* public domain. In actuality, the user of the application would purchase geographic maps based, in a format supported by mapserver, based on whatever needs they are trying to fulfill. I'd thought that I was rebuffed when suggesting purchasing certain items in the past, put there is an understanding that a user of the application would at least potentially have to purchase maps. And there was my mistake. I thought purchasing data was off the table, but this isn't the case at all. On Wed, 19 Dec 2007 11:34:07 -0500, Ed McNierney wrote: >David - > >The answer to your question about data depends greatly on what portion of the Earth you are interested in. Is this a global mapping application, or limited to a smaller geography? > > - Ed > >Ed McNierney >Chief Mapmaker >Demand Media / TopoZone.com >73 Princeton Street, Suite 305 >North Chelmsford, MA? 01863 >ed at topozone.com >Phone: +1 (978) 251-4242 >Fax: +1 (978) 251-1396 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER- USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy >Sent: Wednesday, December 19, 2007 11:00 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver > >Thanks for the reply Bart. It seems I misunderstood the part of the initiative. >I thought that the customer wanted to try to do this with some kind of public >domain maps, which is not the case. They are prepared to purchase the maps, >after all. > > >Well, I'll get to work and come up with some *real* questions. > >Thanks again! > >David H. McCoy From Bob.Basques at CI.STPAUL.MN.US Wed Dec 19 11:01:29 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 19 Dec 2007 13:01:29 -0600 Subject: New to Mapserver Message-ID: David, You asked a couple of questions here. One was the reuse of distributed mapping with Google Maps, a way of doing this is with a WMS overlay. Mapserver can generate this type of map image, which can be used in a number of opensource client frame works besides Google maps. It can be somewhat limiting though with regard to how much extra data you can add to the user experience, with our actaully usiong the Google API, which has it's own usage licenses. Your other question was related to individuals managing their own data. This is going to sound a lot like a plug for my project, but . . . I'm part of a group that builds a Client Framework that I think may answer that end of the equation for you. The Project is GeoMoose. It was built with the primary purpose of abstracting the data maintenance tasks out, so that individuals or smaller groups, which may or may not have a background in GIS, can manage and publish their own data without a systems administrator being involved. Every layer, and for that matter, tool or display option is considered a service of some sort, and these services are collected at start up by the GeoMoose client at start up for display. Thisis all controlled by a XML file we call a MapBook which describes the services and catalog items for use. More than one MapBook can be configured for a set of services, so many interfaces to the same data are possible, and even this level of control can be abstracted out of the Systems admins control if needed. One service that GeoMoose understands is a WMS service. It also can use MapServer as a image/data source for things like popups, and highlighting. Because everything is treated as a service, a broken service won't break the whole interface, only that service, so a service provider can't bring the whole system down. GeoMoose is built around the idea of a distributed publishing system. Hope some of that helps. bobb Your se >>> "David H. McCoy" wrote: Hello! I'm new to Mapserver and trying to understand something. I'm working for= =20 company that has an application with a mapping component. Currently, that= =20 component uses Google maps. I am replacing the Google Maps API with=20 Openlayers and the mapping component with Mapserver. The goal is that whi= le=20 a customer can elect to use say Google maps, they can also host the maps=20= internally, thus having no external dependencies.=20 In additional to server maps, does Map server actually have maps availabl= e?=20 Perhaps a better question would be are there any open source or freeware=20= apps comparable to Google maps that I can retrieve for local use and util= ize in=20 Mapserver? Thanks for your time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Wed Dec 19 11:03:27 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 19 Dec 2007 14:03:27 -0500 Subject: mapserver update In-Reply-To: <14413847.post@talk.nabble.com> Message-ID: Which version of PHP is installed on this system? I've never heard of this error, but it looks like php_mapscript doesn't like something in the headers. Can you please provide the full output from the make command in the mapscript/php3 directory and not just the end of it? Usually the explanation to a build problem is in the beginning of the output (i.e. the first warnings/errors), not in the end of it. Daniel R. Ortner wrote: > Checked again, no .so file: > > root at umnmapserver:/tmp/Mapserver5/mapserver-5.0.0/mapscript/php3# ls > > Makefile Makefile.vc README.WIN32 hashtable_i.c nmake.opt > php_mapscript.h php_mapscript_util.h php_regex.c > Makefile.in README examples mapscript_i.c php_mapscript.c > php_mapscript_util.c php_proj.c > > if i type make in the php3 directory: (and thats only the very last part of > the output) > > > /usr/include/php/main/php_reentrancy.h:52: error: syntax error before > "BEGIN_EXTERN_C" > In file included from php_mapscript_util.c:33: > php_mapscript_util.h:117: error: syntax error before '*' token > php_mapscript_util.h:121: error: syntax error before '*' token > php_mapscript_util.h:124: error: syntax error before '*' token > php_mapscript_util.h:127: error: syntax error before '*' token > php_mapscript_util.h:130: error: syntax error before '*' token > php_mapscript_util.h:132: error: syntax error before '*' token > php_mapscript_util.h:134: error: syntax error before '*' token > php_mapscript_util.h:136: error: syntax error before '*' token > php_mapscript_util.h:138: error: syntax error before '*' token > php_mapscript_util.h:140: error: syntax error before '*' token > php_mapscript_util.h:141: error: syntax error before '*' token > php_mapscript_util.h:143: error: syntax error before '*' token > php_mapscript_util.h:145: error: syntax error before '*' token > php_mapscript_util.h:148: error: syntax error before '*' token > In file included from php_mapscript_util.c:34: > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:101: warning: structure defined > inside parms > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:101: error: storage class > specified for parameter `errorObj' > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:106: error: syntax error before > "errorObj" > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:114: error: syntax error before > '*' token > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:115: error: syntax error before > '*' token > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:117: error: syntax error before > "errorObj" > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:119: warning: empty declaration > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:134: warning: enum defined inside > parms > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:134: error: storage class > specified for parameter `debugLevel' > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:143: warning: enum defined inside > parms > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:143: error: storage class > specified for parameter `debugMode' > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:147: error: syntax error before > "debugLevel" > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:147: warning: no semicolon at end > of struct or union > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:150: error: syntax error before > "FILE" > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:154: error: syntax error before > '}' token > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:162: error: syntax error before > "debugLevel" > php_mapscript_util.c:45: error: redefinition of parameter > '_phpms_report_mapserver_error' > php_mapscript_util.h:115: error: previous definition of > '_phpms_report_mapserver_error' was here > php_mapscript_util.c:45: error: syntax error before '{' token > php_mapscript_util.c:71: error: parameter `retVal' is initialized > php_mapscript_util.c:73: error: syntax error before "if" > php_mapscript_util.c:122: error: parameter `retVal' is initialized > php_mapscript_util.c:122: error: redefinition of parameter 'retVal' > php_mapscript_util.c:71: error: previous definition of 'retVal' was here > php_mapscript_util.c:125: error: syntax error before "if" > php_mapscript_util.c:464: error: parameter `string_key' is initialized > php_mapscript_util.c:466: error: parameter `i' is initialized > php_mapscript_util.c:468: error: syntax error before "for" > make: *** [php_mapscript_util.o] Error 1 > > > > > Guillaume Sueur-2 wrote: >> it looks ok. >> can you check your mapserver-5.0.0/mapscript/php3/ again and make sure >> php_mapscript.so is not in it ? >> If not, like Umberto said, try to type make in that directory and see >> what happen >> >> R. Ortner a ?crit : >>> Sorry but I?ve never done something like installing mapserver before,... >>> >>> I even don?t know what the php-devel package is. >>> If u mean the config.log file, there is something like: >>> >>> configure:11379: checking for PHP/MapScript module options... >>> configure:11654: checking for location of config.h or php_config.h >>> configure:11665: result: /usr/include/php/main//php_config.h >>> configure:11677: checking whether we have PHP3 or PHP4 >>> configure:11691: result: -DPHP4 >>> configure:11694: checking whether we should use PHP's regex >>> configure:11717: result: no >>> configure:11740: result: PHP/MapScript module configured. >>> configure:12018: checking if --enable-runpath requested >>> configure:12028: result: no >>> configure:12036: checking if --with-java-include-os-name specified >>> configure:12057: result: no, autodetected linux >>> configure:12208: creating ./config.status >>> >>> >>> >>> >>> Guillaume Sueur-2 wrote: >>>> maybe you should check the configure output as it can claims for php >>>> header files. do you have the php-devel package installed as well ? >>>> >>>> >>>> R. Ortner a ?crit : >>>>> I tried to replace my /usr/lib/php/extensions/php_mapscript.so but in >>>>> the >>>>> mapserver5 folder (downloaded from >>>>> http://mapserver.gis.umn.edu/download/current/) is no php_mapserver.so >>>>> in >>>>> the /mapserver/php3 folder!? >>>>> >>>>> >>>>> >>>>> Umberto wrote: >>>>>> In fact now you have the *CGI* version of mapserver installed. But >>>>>> since you use php mapscript you need to configure, compile and install >>>>>> php mapscript. >>>>>> You should be able to do that just by: >>>>>> >>>>>> mapserver-5-source$ cd mapscript/php3 >>>>>> mapserver-5-source$ make >>>>>> >>>>>> and then replace with the new php_*.so the old ones picked up in >>>>>> php.ini >>>>>> >>>>>> HTH, >>>>>> Umberto >>>>>> >>>>>> >>>>>> >>>>>> ---- >>>>>> Hi, >>>>>> >>>>>> I have Mapserver 4.10 installed and tried to install the mapserver >>>>>> 5.0.0. >>>>>> >>>>>> I?ve configured the mapserver with >>>>>> >>>>>> >>>>>> ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj >>>>>> --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs >>>>>> --with-sos --with-php=/usr/include/php/main/ --with-threads >>>>>> >>>>>> and then executed the make command. >>>>>> after copying the mapserv file to my cgi-bin folder where the old one >>>>>> (from mapserver 4) was I thougtt that I now have mapserver 5 >>>>>> installed, >>>>>> but when I call the test.php which shows me what version is installed, >>>>>> it >>>>>> tells me still Mapserver 4.10. >>>>>> >>>>>> Is there something special to do to activate the mapserver 5 (i >>>>>> thought >>>>>> with installing the version 4 the old version should be either >>>>>> overwritten >>>>>> or working parallel by calling the new mapserv or the old mapserv >>>>>> (which >>>>>> I >>>>>> copied to a subfolder (mapserver4/mapserv). >>>>>> >>>>>> regards >>>>>> >>>> -- >>>> Guillaume SUEUR >>>> Expert SIG et OpenSource >>>> NEOGEO >>>> 46 RUE MATABIAU >>>> 31000 TOULOUSE >>>> 06 65 58 88 82 >>>> Site web : http://www.neogeo-online.net >>>> >>>> >> -- >> Guillaume SUEUR >> Expert SIG et OpenSource >> NEOGEO >> 46 RUE MATABIAU >> 31000 TOULOUSE >> 06 65 58 88 82 >> Site web : http://www.neogeo-online.net >> >> > -- Daniel Morissette http://www.mapgears.com/ From dls at INFORMGIS.COM Wed Dec 19 11:06:55 2007 From: dls at INFORMGIS.COM (David Stajan) Date: Wed, 19 Dec 2007 13:06:55 -0600 Subject: Defining a projection for SetProjection() Message-ID: Hi, I'm trying to allow my website to change the projections of the map via a user control. Sounds simple enough using the SetProjection() function! The problem that I'm having is I can't figure out the proper projection defintion to define the projection in a PROJ.4 syntax For example I have this projection defined by a ESRI prj file: PROJCS["AGD_1966_AMG_Zone_55", GEOGCS["GCS_Australian_1966", DATUM["D_Australian_1966", SPHEROID["Australian",6378160,298.25]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",500000], PARAMETER["False_Northing",10000000], PARAMETER["Central_Meridian",147], PARAMETER["Scale_Factor",0.9996], PARAMETER["Latitude_Of_Origin",0], UNIT["Meter",1]] My best attempt to define this using the proj.4 syntax is: PROJECTION "proj=utm" "zone=55" "units=m" "ellps=aust_SA" "lat_0=0" "lon_0=147" "x_0=500000" "y_0=10000000" "k_0=0.9996" "a=6378160" "rf=298.25" "pm=greenwich" END Can anyone help me out? Thanks David From nospam420 at YAHOO.COM Wed Dec 19 11:24:58 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Wed, 19 Dec 2007 11:24:58 -0800 Subject: Defining a projection for SetProjection() In-Reply-To: Message-ID: is this a "standard" projection? if so, check out http://www.spatialreference.org/ even if not, there may be enough examples there to get the gist. - rich -- View this message in context: http://www.nabble.com/Defining-a-projection-for-SetProjection%28%29-tp14423281p14423429.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Wed Dec 19 11:41:58 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 19 Dec 2007 14:41:58 -0500 Subject: Defining a projection for SetProjection() In-Reply-To: Message-ID: David Stajan wrote: > PROJCS["AGD_1966_AMG_Zone_55", > GEOGCS["GCS_Australian_1966", > DATUM["D_Australian_1966", > SPHEROID["Australian",6378160,298.25]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.017453292519943295]], > PROJECTION["Transverse_Mercator"], > PARAMETER["False_Easting",500000], > PARAMETER["False_Northing",10000000], > PARAMETER["Central_Meridian",147], > PARAMETER["Scale_Factor",0.9996], > PARAMETER["Latitude_Of_Origin",0], > UNIT["Meter",1]] > > My best attempt to define this using the proj.4 syntax is: > > PROJECTION > "proj=utm" > "zone=55" > "units=m" > "ellps=aust_SA" > "lat_0=0" > "lon_0=147" > "x_0=500000" > "y_0=10000000" > "k_0=0.9996" > "a=6378160" > "rf=298.25" > "pm=greenwich" > END David, I would suggest "+proj=utm +zone=55 +south +ellps=aust_SA". The +pm=greenwich setting is unnecessary since this is the default. It is imprudent to specify settings like lat_0, lon_0, x_0, y_0 and +k_0 that are implied by proj=utm and a zone. It is imprudent to doubly define the earth model - using both +ellps and +a, +rf. I note you missed the important +south modifier on your utm projection. Note that the projection as defined does not know how to switch to the WGS84 datum (if that is an objective). PROJ 4.5.0 and earlier will do a change of ellipsoid which may introduce unexpected shifts. PROJ 4.6.0 will assume no datum shift is needed. Finally, I hate the old syntax for PROJECTION blocks of putting each parameter on it's own line. Furthermore there are some issues with parsing it in esoteric circumstanes. I'd encourage: PROJECTION "+proj=utm +zone=55 +south +ellps=aust_SA" END Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From gregor at HOSTGIS.COM Wed Dec 19 12:15:22 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 19 Dec 2007 13:15:22 -0700 Subject: Thanks a lot, everyone Message-ID: I was inspired by a posting of gratitude to the OpenLayers list, and thought I'd exercise my sincerity if not my originality, by thanking everybody. Steve, Frank, Bart, Eric, Ed, and the other developers whose names escape me at the moment -- THANK YOU. MapServer made it possible for HostGIS to enter the GIS market four years ago, and continues to be my software of choice for WMS and WFS service. And to the rest of the mailing list, thank you as well. Considering what I pay you for tech support, it's been worth double that. :) Seriously, though, you've helped me past the learning curve and through so many odd nuances and bugs over the years, that "I couldn't have done it without you" hardly expresses it. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dls at INFORMGIS.COM Wed Dec 19 14:48:35 2007 From: dls at INFORMGIS.COM (David Stajan) Date: Wed, 19 Dec 2007 16:48:35 -0600 Subject: Defining a projection for SetProjection() Message-ID: Thanks frank. However I'm not getting the right results when comparing the data with what it looks like in ArcMap. Maybe you can explain this to me!!! My data is in this projection +proj=goode +ellps=WGS84 +datum=WGS84 +units=m and mapserver renders an image that looks like the attached +image worldLayerAsGooode.png When I try the reproject the layer using this projection +proj=utm +zone=55 +units=m +ellps=aust_SA +south in the map file mapserver renders an +image that looks like worldLayerAsAussie.png. This is not what it should look like. If I reproject the data in ArcMap to use the Aussie projection you translated for me earlier it looks like worldLayerDataReprojected.png So I did one more test, If I export my data out of ArcMap using the Aussie projection and have my map file reference that data it displays the world as worldLayerDataReprojected.png. So the only conclusion that I can come up with is that Proj.4 definition of +proj=utm +zone=55 +units=m +ellps=aust_SA +south is not coorect. Any ideas? Thanks, DaviD -------------- next part -------------- A non-text attachment was scrubbed... Name: Z:\tfmLite\gfp\projectionProblem\worldLayerAsAussie.png Type: image/x-png Size: 10951 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Z:\tfmLite\gfp\projectionProblem\worldLayerAsGoode.png Type: image/x-png Size: 18236 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Z:\tfmLite\gfp\projectionProblem\worldLayerDataReprojected.png Type: image/x-png Size: 12349 bytes Desc: not available URL: From ben at REMOTEINFORMATION.COM.AU Wed Dec 19 22:42:55 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Thu, 20 Dec 2007 15:42:55 +0900 Subject: mapserver update In-Reply-To: Message-ID: G'day Reinhard, Notwithstanding anyone else's suggestions, I've had problems in the past trying up install php mapscript on FreeBSD. the fix that got me past it was (special thanks to Eric 'Lontong' for this fix) you need to edit Makefile in mapscript/php3 path. > vi mapscript/php3/Makefile change variable CFLAGS in the top to something else (e.g. CFLAGS1) then change : CFLAGS112 = $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC) $(PHP_REGEX_INC) to : CFLAGS112 = $(MS_DEFINE) $(MS_INC) $(PHP_INC) $(PHP_REGEX_INC) and add : CFLAGS = $(CFLAGS1) $(CFLAGS112) finally, scroll down to in compiler %.o: %.c php_mapscript_util.h php_mapscript.h $(CC) $(CFLAGS112) -c -o $@ $< change : $(CFLAGS112) to: $(CFLAGS) > make but as I said this was on FreeBSD with MapServer 4.10 In fact, it was so frustrating it encouraged me to document the whole process of installing! http://mapserver.gis.umn.edu/docs/howto/freebsd62mapserver410 which might help depending on your platform. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Thu Dec 20 02:11:53 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Thu, 20 Dec 2007 02:11:53 -0800 Subject: mapserver update In-Reply-To: <47696AFF.3080404@mapgears.com> Message-ID: PHP: Version 5.2.3 here?s the whole output from the make command in mapserver/php3: > root at umnmapserver:/tmp/Mapserver5/mapserver-5.0.0/mapscript/php3# make > gcc -fPIC -O2 -fPIC -Wall -DCOMPILE_DL=1 -DPHP4 > -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_SOS_SVR -DUSE_WCS_SVR > -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR > -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_PDF -DUSE_GD_GIF > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB > -I/tmp/Mapserver5/mapserver-5.0.0 -I/usr/include/libxml2 > -I/usr/include -I/usr/include -I/usr/include -I/usr/include > -I/usr/include/php/main/ -I/usr/include/php/main//dl > -I/usr/include/php/main//main -I/usr/include/php/main//Zend > -I/usr/include/php/main//include -I/usr/include/php/main//TSRM -c -o > php_mapscript_util.o php_mapscript_util.c > In file included from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php.h:34:18: zend.h: No such file or directory > /usr/include/php/main/php.h:35:24: zend_qsort.h: No such file or directory > /usr/include/php/main/php.h:38:22: zend_API.h: No such file or directory > In file included from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php.h:126: warning: return type defaults to `int' > /usr/include/php/main/php.h: In function `BEGIN_EXTERN_C': > /usr/include/php/main/php.h:127: error: syntax error before "END_EXTERN_C" > In file included from /usr/include/php/main/php.h:161, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/ctype.h:82: error: storage class specified for parameter > `__ctype_b_loc' > /usr/include/ctype.h:84: error: storage class specified for parameter > `__ctype_tolower_loc' > /usr/include/ctype.h:86: error: storage class specified for parameter > `__ctype_toupper_loc' > /usr/include/ctype.h:102: error: storage class specified for parameter > `isalnum' > /usr/include/ctype.h:103: error: storage class specified for parameter > `isalpha' > /usr/include/ctype.h:104: error: storage class specified for parameter > `iscntrl' > /usr/include/ctype.h:105: error: storage class specified for parameter > `isdigit' > /usr/include/ctype.h:106: error: storage class specified for parameter > `islower' > /usr/include/ctype.h:107: error: storage class specified for parameter > `isgraph' > /usr/include/ctype.h:108: error: storage class specified for parameter > `isprint' > /usr/include/ctype.h:109: error: storage class specified for parameter > `ispunct' > /usr/include/ctype.h:110: error: storage class specified for parameter > `isspace' > /usr/include/ctype.h:111: error: storage class specified for parameter > `isupper' > /usr/include/ctype.h:112: error: storage class specified for parameter > `isxdigit' > /usr/include/ctype.h:116: error: storage class specified for parameter > `tolower' > /usr/include/ctype.h:119: error: storage class specified for parameter > `toupper' > /usr/include/ctype.h:142: error: storage class specified for parameter > `isascii' > /usr/include/ctype.h:146: error: storage class specified for parameter > `toascii' > /usr/include/ctype.h:150: error: storage class specified for parameter > `_toupper' > /usr/include/ctype.h:151: error: storage class specified for parameter > `_tolower' > /usr/include/ctype.h:192: error: storage class specified for parameter > `tolower' > /usr/include/ctype.h:192: error: redefinition of parameter 'tolower' > /usr/include/ctype.h:116: error: previous definition of 'tolower' was here > /usr/include/ctype.h:192: error: syntax error before '{' token > In file included from /usr/include/php/main/php.h:163, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/unistd.h:243: error: storage class specified for parameter > `socklen_t' > /usr/include/unistd.h:256: error: storage class specified for parameter > `access' > /usr/include/unistd.h:287: error: storage class specified for parameter > `lseek' > /usr/include/unistd.h:305: error: storage class specified for parameter > `close' > /usr/include/unistd.h:312: error: storage class specified for parameter > `read' > /usr/include/unistd.h:318: error: storage class specified for parameter > `write' > /usr/include/unistd.h:369: error: storage class specified for parameter > `pipe' > /usr/include/unistd.h:378: error: storage class specified for parameter > `alarm' > /usr/include/unistd.h:390: error: storage class specified for parameter > `sleep' > /usr/include/unistd.h:398: error: storage class specified for parameter > `ualarm' > /usr/include/unistd.h:405: error: storage class specified for parameter > `usleep' > /usr/include/unistd.h:414: error: storage class specified for parameter > `pause' > /usr/include/unistd.h:419: error: storage class specified for parameter > `chown' > /usr/include/unistd.h:423: error: storage class specified for parameter > `fchown' > /usr/include/unistd.h:429: error: storage class specified for parameter > `lchown' > /usr/include/unistd.h:434: error: storage class specified for parameter > `chdir' > /usr/include/unistd.h:438: error: storage class specified for parameter > `fchdir' > /usr/include/unistd.h:448: error: storage class specified for parameter > `getcwd' > /usr/include/unistd.h:461: error: storage class specified for parameter > `getwd' > /usr/include/unistd.h:466: error: storage class specified for parameter > `dup' > /usr/include/unistd.h:469: error: storage class specified for parameter > `dup2' > /usr/include/unistd.h:472: error: storage class specified for parameter > `__environ' > /usr/include/unistd.h:481: error: storage class specified for parameter > `execve' > /usr/include/unistd.h:493: error: storage class specified for parameter > `execv' > /usr/include/unistd.h:498: error: storage class specified for parameter > `execle' > /usr/include/unistd.h:503: error: storage class specified for parameter > `execl' > /usr/include/unistd.h:508: error: storage class specified for parameter > `execvp' > /usr/include/unistd.h:514: error: storage class specified for parameter > `execlp' > /usr/include/unistd.h:519: error: storage class specified for parameter > `nice' > /usr/include/unistd.h:524: error: storage class specified for parameter > `_exit' > In file included from /usr/include/php/main/php.h:163, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/unistd.h:534: error: storage class specified for parameter > `pathconf' > /usr/include/unistd.h:537: error: storage class specified for parameter > `fpathconf' > /usr/include/unistd.h:540: error: storage class specified for parameter > `sysconf' > /usr/include/unistd.h:544: error: storage class specified for parameter > `confstr' > /usr/include/unistd.h:549: error: storage class specified for parameter > `getpid' > /usr/include/unistd.h:552: error: storage class specified for parameter > `getppid' > /usr/include/unistd.h:557: error: storage class specified for parameter > `getpgrp' > /usr/include/unistd.h:567: error: storage class specified for parameter > `__getpgid' > /usr/include/unistd.h:576: error: storage class specified for parameter > `setpgid' > /usr/include/unistd.h:593: error: storage class specified for parameter > `setpgrp' > /usr/include/unistd.h:610: error: storage class specified for parameter > `setsid' > /usr/include/unistd.h:618: error: storage class specified for parameter > `getuid' > /usr/include/unistd.h:621: error: storage class specified for parameter > `geteuid' > /usr/include/unistd.h:624: error: storage class specified for parameter > `getgid' > /usr/include/unistd.h:627: error: storage class specified for parameter > `getegid' > /usr/include/unistd.h:632: error: storage class specified for parameter > `getgroups' > /usr/include/unistd.h:643: error: storage class specified for parameter > `setuid' > /usr/include/unistd.h:648: error: storage class specified for parameter > `setreuid' > /usr/include/unistd.h:653: error: storage class specified for parameter > `seteuid' > /usr/include/unistd.h:660: error: storage class specified for parameter > `setgid' > /usr/include/unistd.h:665: error: storage class specified for parameter > `setregid' > /usr/include/unistd.h:670: error: storage class specified for parameter > `setegid' > /usr/include/unistd.h:695: error: storage class specified for parameter > `fork' > /usr/include/unistd.h:702: error: storage class specified for parameter > `vfork' > /usr/include/unistd.h:708: error: storage class specified for parameter > `ttyname' > /usr/include/unistd.h:713: error: storage class specified for parameter > `ttyname_r' > /usr/include/unistd.h:717: error: storage class specified for parameter > `isatty' > /usr/include/unistd.h:723: error: storage class specified for parameter > `ttyslot' > /usr/include/unistd.h:729: error: storage class specified for parameter > `link' > /usr/include/unistd.h:734: error: storage class specified for parameter > `symlink' > /usr/include/unistd.h:740: error: storage class specified for parameter > `readlink' > /usr/include/unistd.h:744: error: storage class specified for parameter > `unlink' > /usr/include/unistd.h:747: error: storage class specified for parameter > `rmdir' > /usr/include/unistd.h:751: error: storage class specified for parameter > `tcgetpgrp' > /usr/include/unistd.h:754: error: storage class specified for parameter > `tcsetpgrp' > /usr/include/unistd.h:761: error: storage class specified for parameter > `getlogin' > /usr/include/unistd.h:774: error: storage class specified for parameter > `setlogin' > In file included from /usr/include/unistd.h:783, > from /usr/include/php/main/php.h:163, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/getopt.h:59: error: storage class specified for parameter > `optarg' > /usr/include/getopt.h:73: error: storage class specified for parameter > `optind' > /usr/include/getopt.h:78: error: storage class specified for parameter > `opterr' > /usr/include/getopt.h:82: error: storage class specified for parameter > `optopt' > /usr/include/getopt.h:153: error: storage class specified for parameter > `getopt' > In file included from /usr/include/php/main/php.h:163, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/unistd.h:791: error: storage class specified for parameter > `gethostname' > /usr/include/unistd.h:799: error: storage class specified for parameter > `sethostname' > /usr/include/unistd.h:803: error: storage class specified for parameter > `sethostid' > /usr/include/unistd.h:810: error: storage class specified for parameter > `getdomainname' > /usr/include/unistd.h:812: error: storage class specified for parameter > `setdomainname' > /usr/include/unistd.h:818: error: storage class specified for parameter > `vhangup' > /usr/include/unistd.h:821: error: storage class specified for parameter > `revoke' > /usr/include/unistd.h:831: error: storage class specified for parameter > `profil' > /usr/include/unistd.h:837: error: storage class specified for parameter > `acct' > /usr/include/unistd.h:841: error: storage class specified for parameter > `getusershell' > /usr/include/unistd.h:842: error: storage class specified for parameter > `endusershell' > /usr/include/unistd.h:843: error: storage class specified for parameter > `setusershell' > /usr/include/unistd.h:849: error: storage class specified for parameter > `daemon' > /usr/include/unistd.h:856: error: storage class specified for parameter > `chroot' > /usr/include/unistd.h:860: error: storage class specified for parameter > `getpass' > /usr/include/unistd.h:869: error: storage class specified for parameter > `fsync' > /usr/include/unistd.h:876: error: storage class specified for parameter > `gethostid' > /usr/include/unistd.h:879: error: storage class specified for parameter > `sync' > /usr/include/unistd.h:884: error: storage class specified for parameter > `getpagesize' > /usr/include/unistd.h:889: error: storage class specified for parameter > `getdtablesize' > /usr/include/unistd.h:895: error: storage class specified for parameter > `truncate' > /usr/include/unistd.h:916: error: storage class specified for parameter > `ftruncate' > /usr/include/unistd.h:936: error: storage class specified for parameter > `brk' > /usr/include/unistd.h:942: error: syntax error before "__delta" > /usr/include/unistd.h:942: error: storage class specified for parameter > `sbrk' > /usr/include/unistd.h:957: error: storage class specified for parameter > `syscall' > /usr/include/unistd.h:980: error: storage class specified for parameter > `lockf' > /usr/include/unistd.h:1011: error: storage class specified for parameter > `fdatasync' > In file included from /usr/include/php/main/php.h:166, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/lib/gcc/i486-slackware-linux/3.4.6/include/stdarg.h:43: error: > storage class specified for parameter `__gnuc_va_list' > /usr/lib/gcc/i486-slackware-linux/3.4.6/include/stdarg.h:105: error: > storage class specified for parameter `__gnuc_va_list' > /usr/lib/gcc/i486-slackware-linux/3.4.6/include/stdarg.h:105: error: > conflicting types for '__gnuc_va_list' > /usr/lib/gcc/i486-slackware-linux/3.4.6/include/stdarg.h:43: error: > previous definition of '__gnuc_va_list' was here > /usr/lib/gcc/i486-slackware-linux/3.4.6/include/stdarg.h:105: error: > syntax error before "va_list" > /usr/include/php/main/php.h:174:23: zend_hash.h: No such file or directory > In file included from /usr/include/php/main/php.h:175, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php3_compat.h:24: warning: type defaults to `int' in > declaration of `zval' > /usr/include/php/main/php3_compat.h:24: error: storage class specified for > parameter `zval' > /usr/include/php/main/php3_compat.h:24: error: syntax error before "pval" > /usr/include/php/main/php.h:176:24: zend_alloc.h: No such file or > directory > /usr/include/php/main/php.h:177:24: zend_stack.h: No such file or > directory > In file included from /usr/include/php/main/php.h:190, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/safe_mode.h:39: error: syntax error before > "END_EXTERN_C" > /usr/include/php/main/php.h:197:31: regex/regex_extra.h: No such file or > directory > In file included from /usr/include/php/main/php.h:204, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/pwd.h:59: error: syntax error before '}' token > In file included from /usr/include/pwd.h:64, > from /usr/include/php/main/php.h:204, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/stdio.h:46: error: storage class specified for parameter > `FILE' > In file included from /usr/include/php/main/php.h:204, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/pwd.h:73: error: storage class specified for parameter > `setpwent' > /usr/include/pwd.h:79: error: storage class specified for parameter > `endpwent' > /usr/include/pwd.h:85: error: storage class specified for parameter > `getpwent' > /usr/include/pwd.h:95: error: syntax error before '*' token > /usr/include/pwd.h:95: error: storage class specified for parameter > `fgetpwent' > /usr/include/pwd.h:104: error: syntax error before "FILE" > /usr/include/pwd.h:104: error: storage class specified for parameter > `putpwent' > /usr/include/pwd.h:111: error: storage class specified for parameter > `getpwuid' > /usr/include/pwd.h:117: error: storage class specified for parameter > `getpwnam' > /usr/include/pwd.h:142: error: storage class specified for parameter > `getpwent_r' > /usr/include/pwd.h:148: error: storage class specified for parameter > `getpwuid_r' > /usr/include/pwd.h:153: error: storage class specified for parameter > `getpwnam_r' > /usr/include/pwd.h:164: error: syntax error before '*' token > /usr/include/pwd.h:167: error: storage class specified for parameter > `fgetpwent_r' > In file included from /usr/include/php/main/php.h:234, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/snprintf.h:77: warning: enum defined inside parms > /usr/include/php/main/snprintf.h:77: error: storage class specified for > parameter `boolean_e' > /usr/include/php/main/snprintf.h:80: error: syntax error before > "BEGIN_EXTERN_C" > /usr/include/php/main/snprintf.h:82: error: syntax error before "va_list" > /usr/include/php/main/snprintf.h:84: error: syntax error before "va_list" > /usr/include/php/main/snprintf.h:85: error: syntax error before > "ZEND_ATTRIBUTE_FORMAT" > /usr/include/php/main/snprintf.h:88: error: syntax error before > "boolean_e" > /usr/include/php/main/snprintf.h:142: error: storage class specified for > parameter `wide_int' > /usr/include/php/main/snprintf.h:143: error: storage class specified for > parameter `u_wide_int' > /usr/include/php/main/snprintf.h:145: warning: type defaults to `int' in > declaration of `wide_int' > /usr/include/php/main/snprintf.h:145: error: syntax error before "num" > /usr/include/php/main/snprintf.h:146: error: storage class specified for > parameter `ap_php_conv_10' > /usr/include/php/main/snprintf.h:148: warning: type defaults to `int' in > declaration of `u_wide_int' > /usr/include/php/main/snprintf.h:148: error: syntax error before "num" > /usr/include/php/main/snprintf.h:149: error: storage class specified for > parameter `ap_php_conv_p2' > In file included from /usr/include/php/main/php.h:236, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/spprintf.h:42: error: syntax error before "va_list" > In file included from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php.h:273: error: syntax error before "TSRMLS_DC" > /usr/include/php/main/php.h:274: error: syntax error before > "ZEND_ATTRIBUTE_FORMAT" > /usr/include/php/main/php.h:276: error: syntax error before "TSRMLS_DC" > /usr/include/php/main/php.h:277: error: syntax error before > "ZEND_ATTRIBUTE_FORMAT" > /usr/include/php/main/php.h:279: error: syntax error before "END_EXTERN_C" > /usr/include/php/main/php.h:293: error: syntax error before "va_list" > /usr/include/php/main/php.h:302: error: syntax error before "TSRMLS_DC" > /usr/include/php/main/php.h:304: error: syntax error before "TSRMLS_DC" > /usr/include/php/main/php.h:306: error: syntax error before "TSRMLS_DC" > /usr/include/php/main/php.h:325: error: syntax error before "TSRMLS_DC" > /usr/include/php/main/php.h:333: warning: parameter names (without types) > in function declaration > /usr/include/php/main/php.h:334: error: syntax error before "END_EXTERN_C" > /usr/include/php/main/php.h:387:29: main/php_output.h: No such file or > directory > In file included from /usr/include/php/main/php_streams.h:25, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/sys/time.h:60: error: syntax error before '}' token > /usr/include/sys/time.h:62: error: storage class specified for parameter > `__timezone_ptr_t' > /usr/include/sys/time.h:73: error: syntax error before "__timezone_ptr_t" > /usr/include/sys/time.h:73: error: storage class specified for parameter > `gettimeofday' > /usr/include/sys/time.h:79: error: storage class specified for parameter > `settimeofday' > /usr/include/sys/time.h:86: error: storage class specified for parameter > `adjtime' > /usr/include/sys/time.h:120: error: storage class specified for parameter > `__itimer_which_t' > /usr/include/sys/time.h:125: error: syntax error before "__which" > /usr/include/sys/time.h:126: error: storage class specified for parameter > `getitimer' > /usr/include/sys/time.h:131: error: syntax error before "__which" > /usr/include/sys/time.h:133: error: storage class specified for parameter > `setitimer' > /usr/include/sys/time.h:139: error: storage class specified for parameter > `utimes' > /usr/include/sys/time.h:144: error: storage class specified for parameter > `lutimes' > /usr/include/sys/time.h:147: error: storage class specified for parameter > `futimes' > In file included from /usr/include/php/main/php_streams.h:28, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/sys/stat.h:208: error: storage class specified for parameter > `stat' > /usr/include/sys/stat.h:212: error: storage class specified for parameter > `fstat' > /usr/include/sys/stat.h:236: error: storage class specified for parameter > `lstat' > /usr/include/sys/stat.h:257: error: storage class specified for parameter > `chmod' > /usr/include/sys/stat.h:264: error: storage class specified for parameter > `lchmod' > /usr/include/sys/stat.h:269: error: storage class specified for parameter > `fchmod' > /usr/include/sys/stat.h:275: error: storage class specified for parameter > `umask' > /usr/include/sys/stat.h:285: error: storage class specified for parameter > `mkdir' > /usr/include/sys/stat.h:292: error: storage class specified for parameter > `mknod' > /usr/include/sys/stat.h:298: error: storage class specified for parameter > `mkfifo' > /usr/include/sys/stat.h:325: error: storage class specified for parameter > `__fxstat' > /usr/include/sys/stat.h:327: error: storage class specified for parameter > `__xstat' > /usr/include/sys/stat.h:329: error: storage class specified for parameter > `__lxstat' > /usr/include/sys/stat.h:358: error: storage class specified for parameter > `__xmknod' > /usr/include/sys/stat.h:365: error: storage class specified for parameter > `stat' > /usr/include/sys/stat.h:365: error: redefinition of parameter 'stat' > /usr/include/sys/stat.h:208: error: previous definition of 'stat' was here > /usr/include/sys/stat.h:365: error: syntax error before '{' token > In file included from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php_streams.h:34: error: syntax error before > "END_EXTERN_C" > /usr/include/php/main/php_streams.h:99: error: storage class specified for > parameter `php_stream_wrapper' > /usr/include/php/main/php_streams.h:100: error: storage class specified > for parameter `php_stream_context' > /usr/include/php/main/php_streams.h:101: error: storage class specified > for parameter `php_stream_filter' > In file included from /usr/include/php/main/php_streams.h:103, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/streams/php_stream_context.h:24: error: syntax error > before '*' token > /usr/include/php/main/streams/php_stream_context.h:28: error: storage > class specified for parameter `php_stream_notification_func' > /usr/include/php/main/streams/php_stream_context.h:43: error: storage > class specified for parameter `php_stream_notifier' > /usr/include/php/main/streams/php_stream_context.h:46: error: syntax error > before "php_stream_notification_func" > /usr/include/php/main/streams/php_stream_context.h:46: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_context.h:47: error: syntax error > before '*' token > /usr/include/php/main/streams/php_stream_context.h:51: error: syntax error > before '}' token > /usr/include/php/main/streams/php_stream_context.h:54: error: syntax error > before "php_stream_notifier" > /usr/include/php/main/streams/php_stream_context.h:54: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_context.h:58: error: syntax error > before '}' token > /usr/include/php/main/streams/php_stream_context.h:63: error: syntax error > before '*' token > /usr/include/php/main/streams/php_stream_context.h:65: error: syntax error > before '*' token > /usr/include/php/main/streams/php_stream_context.h:68: error: syntax error > before '*' token > /usr/include/php/main/streams/php_stream_context.h:70: error: syntax error > before '*' token > /usr/include/php/main/streams/php_stream_context.h:72: error: syntax error > before '*' token > /usr/include/php/main/streams/php_stream_context.h:76: error: syntax error > before '*' token > In file included from /usr/include/php/main/php_streams.h:104, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/streams/php_stream_filter_api.h:42: error: storage > class specified for parameter `php_stream_bucket_brigade' > /usr/include/php/main/streams/php_stream_filter_api.h:45: error: syntax > error before "php_stream_bucket" > /usr/include/php/main/streams/php_stream_filter_api.h:45: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_filter_api.h:56: error: syntax > error before '}' token > /usr/include/php/main/streams/php_stream_filter_api.h:59: error: syntax > error before "php_stream_bucket" > /usr/include/php/main/streams/php_stream_filter_api.h:59: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_filter_api.h:66: warning: enum > defined inside parms > /usr/include/php/main/streams/php_stream_filter_api.h:66: error: storage > class specified for parameter `php_stream_filter_status_t' > /usr/include/php/main/streams/php_stream_filter_api.h:69: error: syntax > error before "BEGIN_EXTERN_C" > /usr/include/php/main/streams/php_stream_filter_api.h:71: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:72: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:74: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:75: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:76: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:95: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:95: error: > redefinition of parameter 'dtor' > /usr/include/php/main/streams/php_stream_context.h:47: error: previous > definition of 'dtor' was here > /usr/include/php/main/streams/php_stream_filter_api.h:99: error: syntax > error before '}' token > /usr/include/php/main/streams/php_stream_filter_api.h:102: error: syntax > error before "php_stream_filter" > /usr/include/php/main/streams/php_stream_filter_api.h:102: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_filter_api.h:109: error: syntax > error before "php_stream_filter_ops" > /usr/include/php/main/streams/php_stream_filter_api.h:109: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_filter_api.h:111: error: syntax > error before "php_stream_filter" > /usr/include/php/main/streams/php_stream_filter_api.h:113: error: > redefinition of parameter 'is_persistent' > /usr/include/php/main/streams/php_stream_filter_api.h:52: error: previous > definition of 'is_persistent' was here > /usr/include/php/main/streams/php_stream_filter_api.h:116: error: syntax > error before "php_stream_filter_chain" > /usr/include/php/main/streams/php_stream_filter_api.h:122: error: > redefinition of parameter 'rsrc_id' > /usr/include/php/main/streams/php_stream_context.h:57: error: previous > definition of 'rsrc_id' was here > /usr/include/php/main/streams/php_stream_filter_api.h:123: error: syntax > error before '}' token > /usr/include/php/main/streams/php_stream_filter_api.h:128: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:129: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:131: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_filter_api.h:148: error: syntax > error before "TSRMLS_DC" > /usr/include/php/main/streams/php_stream_filter_api.h:149: error: syntax > error before "php_stream_filter_factory" > In file included from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php_streams.h:113: warning: structure defined inside > parms > /usr/include/php/main/php_streams.h:113: error: storage class specified > for parameter `php_stream_dirent' > /usr/include/php/main/php_streams.h:118: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:119: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:120: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:121: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:126: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:127: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:128: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:129: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:130: warning: structure defined inside > parms > /usr/include/php/main/php_streams.h:130: error: storage class specified > for parameter `php_stream_ops' > /usr/include/php/main/php_streams.h:134: error: syntax error before > "php_stream" > /usr/include/php/main/php_streams.h:134: warning: no semicolon at end of > struct or union > /usr/include/php/main/php_streams.h:137: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:139: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:141: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:146: error: redefinition of parameter > 'label' > /usr/include/php/main/streams/php_stream_filter_api.h:97: error: previous > definition of 'label' was here > /usr/include/php/main/php_streams.h:149: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:149: error: redefinition of parameter > 'unlink' > /usr/include/unistd.h:744: error: previous definition of 'unlink' was here > /usr/include/php/main/php_streams.h:152: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:155: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:156: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:160: error: syntax error before > "php_stream_wrapper_ops" > /usr/include/php/main/php_streams.h:160: warning: no semicolon at end of > struct or union > /usr/include/php/main/php_streams.h:161: error: redefinition of parameter > 'abstract' > /usr/include/php/main/streams/php_stream_filter_api.h:110: error: previous > definition of 'abstract' was here > /usr/include/php/main/php_streams.h:167: error: syntax error before '}' > token > /usr/include/php/main/php_streams.h:185: error: syntax error before > "php_stream_ops" > /usr/include/php/main/php_streams.h:185: warning: no semicolon at end of > struct or union > /usr/include/php/main/php_streams.h:186: error: redefinition of parameter > 'abstract' > /usr/include/php/main/php_streams.h:161: error: previous definition of > 'abstract' was here > /usr/include/php/main/php_streams.h:188: error: syntax error before > "php_stream_filter_chain" > /usr/include/php/main/php_streams.h:192: error: syntax error before "zval" > /usr/include/php/main/php_streams.h:195: error: redefinition of parameter > 'is_persistent' > /usr/include/php/main/streams/php_stream_filter_api.h:113: error: previous > definition of 'is_persistent' was here > /usr/include/php/main/php_streams.h:197: error: redefinition of parameter > 'rsrc_id' > /usr/include/php/main/streams/php_stream_filter_api.h:122: error: previous > definition of 'rsrc_id' was here > /usr/include/php/main/php_streams.h:202: error: syntax error before "FILE" > /usr/include/php/main/php_streams.h:208: error: syntax error before > "php_stream_context" > /usr/include/php/main/php_streams.h:223: error: syntax error before '}' > token > /usr/include/php/main/php_streams.h:268: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:273: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:277: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:280: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:283: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:287: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:291: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:294: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:297: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:300: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:303: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:307: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:310: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:313: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:316: error: syntax error before > "php_stream_statbuf" > /usr/include/php/main/php_streams.h:320: error: syntax error before > "php_stream_context" > /usr/include/php/main/php_streams.h:323: error: syntax error before > "php_stream_context" > /usr/include/php/main/php_streams.h:336: error: syntax error before > "php_stream_context" > /usr/include/php/main/php_streams.h:337: error: `_php_stream_scandir' > declared as function returning a function > /usr/include/php/main/php_streams.h:337: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/php_streams.h:340: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:422: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:427: error: syntax error before '*' > token > In file included from /usr/include/sys/uio.h:29, > from /usr/include/sys/socket.h:27, > from > /usr/include/php/main/streams/php_stream_transport.h:22, > from /usr/include/php/main/php_streams.h:431, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/bits/uio.h:46: error: syntax error before '}' token > In file included from /usr/include/sys/socket.h:27, > from > /usr/include/php/main/streams/php_stream_transport.h:22, > from /usr/include/php/main/php_streams.h:431, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/sys/uio.h:40: error: storage class specified for parameter > `readv' > /usr/include/sys/uio.h:50: error: storage class specified for parameter > `writev' > In file included from /usr/include/bits/socket.h:142, > from /usr/include/sys/socket.h:35, > from > /usr/include/php/main/streams/php_stream_transport.h:22, > from /usr/include/php/main/php_streams.h:431, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/bits/sockaddr.h:29: error: storage class specified for > parameter `sa_family_t' > In file included from /usr/include/sys/socket.h:35, > from > /usr/include/php/main/streams/php_stream_transport.h:22, > from /usr/include/php/main/php_streams.h:431, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/bits/socket.h:147: error: syntax error before "sa_family_t" > /usr/include/bits/socket.h:149: error: syntax error before '}' token > /usr/include/bits/socket.h:164: error: syntax error before "sa_family_t" > /usr/include/bits/socket.h:167: error: syntax error before '}' token > /usr/include/bits/socket.h:218: error: syntax error before "socklen_t" > /usr/include/bits/socket.h:227: error: syntax error before '}' token > /usr/include/bits/socket.h:258: error: storage class specified for > parameter `__cmsg_nxthdr' > /usr/include/bits/socket.h:265: error: storage class specified for > parameter `__cmsg_nxthdr' > /usr/include/bits/socket.h:265: error: redefinition of parameter > '__cmsg_nxthdr' > /usr/include/bits/socket.h:258: error: previous definition of > '__cmsg_nxthdr' was here > /usr/include/bits/socket.h:265: error: syntax error before '{' token > In file included from > /usr/include/php/main/streams/php_stream_transport.h:22, > from /usr/include/php/main/php_streams.h:431, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/sys/socket.h:100: error: storage class specified for > parameter `socket' > /usr/include/sys/socket.h:107: error: storage class specified for > parameter `socketpair' > /usr/include/sys/socket.h:110: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:111: error: storage class specified for > parameter `bind' > /usr/include/sys/socket.h:115: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:115: error: storage class specified for > parameter `getsockname' > /usr/include/sys/socket.h:124: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:124: error: storage class specified for > parameter `connect' > /usr/include/sys/socket.h:129: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:129: error: storage class specified for > parameter `getpeername' > /usr/include/sys/socket.h:136: error: storage class specified for > parameter `send' > /usr/include/sys/socket.h:143: error: storage class specified for > parameter `recv' > /usr/include/sys/socket.h:152: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:152: error: storage class specified for > parameter `sendto' > /usr/include/sys/socket.h:163: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:163: error: storage class specified for > parameter `recvfrom' > /usr/include/sys/socket.h:172: error: storage class specified for > parameter `sendmsg' > /usr/include/sys/socket.h:179: error: storage class specified for > parameter `recvmsg' > /usr/include/sys/socket.h:187: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:187: error: storage class specified for > parameter `getsockopt' > /usr/include/sys/socket.h:193: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:193: error: storage class specified for > parameter `setsockopt' > /usr/include/sys/socket.h:199: error: storage class specified for > parameter `listen' > /usr/include/sys/socket.h:210: error: syntax error before "socklen_t" > /usr/include/sys/socket.h:210: error: storage class specified for > parameter `accept' > /usr/include/sys/socket.h:218: error: storage class specified for > parameter `shutdown' > /usr/include/sys/socket.h:231: error: storage class specified for > parameter `isfdtype' > In file included from /usr/include/php/main/php_streams.h:431, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/streams/php_stream_transport.h:25: warning: type > defaults to `int' in declaration of `php_stream' > /usr/include/php/main/streams/php_stream_transport.h:25: error: storage > class specified for parameter `php_stream' > /usr/include/php/main/streams/php_stream_transport.h:25: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:30: warning: type > defaults to `int' in declaration of `php_stream_transport_factory_func' > /usr/include/php/main/streams/php_stream_transport.h:30: error: storage > class specified for parameter `php_stream_transport_factory_func' > /usr/include/php/main/streams/php_stream_transport.h:30: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:34: error: syntax > error before "TSRMLS_DC" > /usr/include/php/main/streams/php_stream_transport.h:57: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:63: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:72: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:79: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:87: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:95: warning: enum > defined inside parms > /usr/include/php/main/streams/php_stream_transport.h:95: warning: empty > declaration > /usr/include/php/main/streams/php_stream_transport.h:99: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:105: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:112: warning: enum > defined inside parms > /usr/include/php/main/streams/php_stream_transport.h:112: error: storage > class specified for parameter `stream_shutdown_t' > /usr/include/php/main/streams/php_stream_transport.h:116: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:133: error: syntax > error before ':' token > /usr/include/php/main/streams/php_stream_transport.h:134: error: syntax > error before ':' token > /usr/include/php/main/streams/php_stream_transport.h:135: error: syntax > error before ':' token > /usr/include/php/main/streams/php_stream_transport.h:136: error: syntax > error before ':' token > /usr/include/php/main/streams/php_stream_transport.h:144: error: syntax > error before "socklen_t" > /usr/include/php/main/streams/php_stream_transport.h:144: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_transport.h:145: error: > redefinition of parameter 'buf' > /usr/include/php/main/streams/php_stream_filter_api.h:48: error: previous > definition of 'buf' was here > /usr/include/php/main/streams/php_stream_transport.h:146: error: > redefinition of parameter 'buflen' > /usr/include/php/main/streams/php_stream_filter_api.h:49: error: previous > definition of 'buflen' was here > /usr/include/php/main/streams/php_stream_transport.h:147: error: > conflicting types for 'flags' > /usr/include/php/main/php_streams.h:209: error: previous definition of > 'flags' was here > /usr/include/php/main/streams/php_stream_transport.h:148: error: syntax > error before '}' token > /usr/include/php/main/streams/php_stream_transport.h:150: error: syntax > error before "php_stream" > /usr/include/php/main/streams/php_stream_transport.h:150: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_transport.h:153: error: syntax > error before "socklen_t" > /usr/include/php/main/streams/php_stream_transport.h:159: error: syntax > error before '}' token > /usr/include/php/main/streams/php_stream_transport.h:173: warning: enum > defined inside parms > /usr/include/php/main/streams/php_stream_transport.h:173: error: storage > class specified for parameter `php_stream_xport_crypt_method_t' > /usr/include/php/main/streams/php_stream_transport.h:175: error: syntax > error before "BEGIN_EXTERN_C" > /usr/include/php/main/streams/php_stream_transport.h:177: error: syntax > error before '*' token > /usr/include/php/main/streams/php_stream_transport.h:187: error: syntax > error before "php_stream_xport_crypt_method_t" > /usr/include/php/main/streams/php_stream_transport.h:187: warning: no > semicolon at end of struct or union > /usr/include/php/main/streams/php_stream_transport.h:192: warning: > structure defined inside parms > /usr/include/php/main/streams/php_stream_transport.h:193: error: syntax > error before '}' token > In file included from /usr/include/php/main/php_streams.h:432, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/streams/php_stream_plain_wrapper.h:25: warning: type > defaults to `int' in declaration of `php_stream_wrapper' > /usr/include/php/main/streams/php_stream_plain_wrapper.h:25: error: > storage class specified for parameter `php_stream_wrapper' > /usr/include/php/main/streams/php_stream_plain_wrapper.h:25: error: > conflicting types for 'php_stream_wrapper' > /usr/include/php/main/php_streams.h:99: error: previous definition of > 'php_stream_wrapper' was here > /usr/include/php/main/streams/php_stream_plain_wrapper.h:25: error: syntax > error before "php_plain_files_wrapper" > In file included from /usr/include/php/main/php_streams.h:433, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/streams/php_stream_userspace.h:24: warning: type > defaults to `int' in declaration of `php_stream_ops' > /usr/include/php/main/streams/php_stream_userspace.h:24: error: storage > class specified for parameter `php_stream_ops' > /usr/include/php/main/streams/php_stream_userspace.h:24: error: > conflicting types for 'php_stream_ops' > /usr/include/php/main/php_streams.h:130: error: previous definition of > 'php_stream_ops' was here > /usr/include/php/main/streams/php_stream_userspace.h:24: error: syntax > error before "php_stream_userspace_dir_ops" > In file included from /usr/include/php/main/php_streams.h:434, > from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/streams/php_stream_mmap.h:39: warning: enum defined > inside parms > /usr/include/php/main/streams/php_stream_mmap.h:39: error: storage class > specified for parameter `php_stream_mmap_operation_t' > /usr/include/php/main/streams/php_stream_mmap.h:46: warning: enum defined > inside parms > /usr/include/php/main/streams/php_stream_mmap.h:46: error: storage class > specified for parameter `php_stream_mmap_access_t' > /usr/include/php/main/streams/php_stream_mmap.h:54: error: syntax error > before "php_stream_mmap_access_t" > /usr/include/php/main/streams/php_stream_mmap.h:54: warning: no semicolon > at end of struct or union > /usr/include/php/main/streams/php_stream_mmap.h:59: error: syntax error > before '}' token > /usr/include/php/main/streams/php_stream_mmap.h:72: error: syntax error > before '*' token > In file included from /usr/include/php/main/php.h:403, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php_streams.h:506: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/php_streams.h:507: warning: parameter names (without > types) in function declaration > /usr/include/php/main/php_streams.h:508: error: syntax error before > "ZEND_MODULE_DEACTIVATE_D" > /usr/include/php/main/php_streams.h:512: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/php_streams.h:513: error: syntax error before > "php_stream_wrapper" > /usr/include/php/main/php_streams.h:514: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/php_streams.h:517: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:529: error: syntax error before '*' > token > /usr/include/php/main/php_streams.h:540: error: syntax error before '*' > token > In file included from /usr/include/php/main/php.h:404, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php_memory_streams.h:45: error: syntax error before > '*' token > /usr/include/php/main/php_memory_streams.h:52: warning: type defaults to > `int' in declaration of `php_stream_ops' > /usr/include/php/main/php_memory_streams.h:52: error: storage class > specified for parameter `php_stream_ops' > /usr/include/php/main/php_memory_streams.h:52: error: redefinition of > parameter 'php_stream_ops' > /usr/include/php/main/streams/php_stream_userspace.h:24: error: previous > definition of 'php_stream_ops' was here > /usr/include/php/main/php_memory_streams.h:52: error: syntax error before > "php_stream_temp_ops" > /usr/include/php/main/php_memory_streams.h:53: warning: type defaults to > `int' in declaration of `php_stream_ops' > /usr/include/php/main/php_memory_streams.h:53: error: storage class > specified for parameter `php_stream_ops' > /usr/include/php/main/php_memory_streams.h:53: error: redefinition of > parameter 'php_stream_ops' > /usr/include/php/main/php_memory_streams.h:52: error: previous definition > of 'php_stream_ops' was here > /usr/include/php/main/php_memory_streams.h:53: error: syntax error before > "php_stream_rfc2397_ops" > /usr/include/php/main/php_memory_streams.h:54: warning: type defaults to > `int' in declaration of `php_stream_wrapper' > /usr/include/php/main/php_memory_streams.h:54: error: storage class > specified for parameter `php_stream_wrapper' > /usr/include/php/main/php_memory_streams.h:54: error: redefinition of > parameter 'php_stream_wrapper' > /usr/include/php/main/streams/php_stream_plain_wrapper.h:25: error: > previous definition of 'php_stream_wrapper' was here > /usr/include/php/main/php_memory_streams.h:54: error: syntax error before > "php_stream_rfc2397_wrapper" > In file included from /usr/include/php/main/fopen_wrappers.h:25, > from /usr/include/php/main/php.h:405, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php_globals.h:24:26: zend_globals.h: No such file or > directory > In file included from /usr/include/php/main/fopen_wrappers.h:25, > from /usr/include/php/main/php.h:405, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php_globals.h:33: error: storage class specified for > parameter `core_globals' > /usr/include/php/main/php_globals.h:45: warning: empty declaration > /usr/include/php/main/php_globals.h:50: warning: structure defined inside > parms > /usr/include/php/main/php_globals.h:50: error: storage class specified for > parameter `arg_separators' > /usr/include/php/main/php_globals.h:53: error: syntax error before > "zend_bool" > /usr/include/php/main/php_globals.h:53: warning: no semicolon at end of > struct or union > /usr/include/php/main/php_globals.h:65: error: syntax error before > "zend_bool" > /usr/include/php/main/php_globals.h:79: error: syntax error before > "zend_bool" > /usr/include/php/main/php_globals.h:84: error: syntax error before > "zend_bool" > /usr/include/php/main/php_globals.h:104: error: syntax error before > "arg_separators" > /usr/include/php/main/php_globals.h:108: error: syntax error before > "HashTable" > /usr/include/php/main/php_globals.h:115: error: syntax error before > "zend_llist" > /usr/include/php/main/php_globals.h:131: error: syntax error before > "zend_bool" > /usr/include/php/main/php_globals.h:136: error: syntax error before > "zend_bool" > /usr/include/php/main/php_globals.h:149: error: syntax error before > "error_handling_t" > /usr/include/php/main/php_globals.h:154: error: syntax error before > "zend_bool" > /usr/include/php/main/php_globals.h:159: error: syntax error before '}' > token > In file included from /usr/include/php/main/php.h:405, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/fopen_wrappers.h:27: error: syntax error before '*' > token > /usr/include/php/main/fopen_wrappers.h:28: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/fopen_wrappers.h:30: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/fopen_wrappers.h:31: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/fopen_wrappers.h:32: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/fopen_wrappers.h:34: error: syntax error before > "TSRMLS_DC" > /usr/include/php/main/fopen_wrappers.h:40: error: syntax error before > "END_EXTERN_C" > In file included from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php.h:409:30: tsrm_virtual_cwd.h: No such file or > directory > /usr/include/php/main/php.h:411:28: zend_constants.h: No such file or > directory > In file included from /usr/include/dirent.h:62, > from /usr/include/php/main/php_reentrancy.h:28, > from /usr/include/php/main/php.h:418, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/bits/dirent.h:35: error: syntax error before '}' token > In file included from /usr/include/php/main/php_reentrancy.h:28, > from /usr/include/php/main/php.h:418, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/dirent.h:128: error: storage class specified for parameter > `DIR' > /usr/include/dirent.h:135: error: storage class specified for parameter > `DIR' > /usr/include/dirent.h:135: error: conflicting types for 'DIR' > /usr/include/dirent.h:128: error: previous definition of 'DIR' was here > /usr/include/dirent.h:135: error: syntax error before '*' token > /usr/include/dirent.h:142: error: syntax error before '*' token > /usr/include/dirent.h:142: error: storage class specified for parameter > `closedir' > /usr/include/dirent.h:155: error: syntax error before '*' token > /usr/include/dirent.h:155: error: storage class specified for parameter > `readdir' > /usr/include/dirent.h:176: error: syntax error before '*' token > /usr/include/dirent.h:179: error: storage class specified for parameter > `readdir_r' > /usr/include/dirent.h:201: error: syntax error before '*' token > /usr/include/dirent.h:201: error: storage class specified for parameter > `rewinddir' > /usr/include/dirent.h:207: error: syntax error before '*' token > /usr/include/dirent.h:207: error: storage class specified for parameter > `seekdir' > /usr/include/dirent.h:210: error: syntax error before '*' token > /usr/include/dirent.h:210: error: storage class specified for parameter > `telldir' > /usr/include/dirent.h:216: error: syntax error before '*' token > /usr/include/dirent.h:216: error: storage class specified for parameter > `dirfd' > In file included from /usr/include/php/main/php_reentrancy.h:28, > from /usr/include/php/main/php.h:418, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/dirent.h:246: error: storage class specified for parameter > `scandir' > /usr/include/dirent.h:273: error: storage class specified for parameter > `alphasort' > /usr/include/dirent.h:319: error: storage class specified for parameter > `getdirentries' > In file included from /usr/include/time.h:42, > from /usr/include/php/main/php_reentrancy.h:30, > from /usr/include/php/main/php.h:418, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/bits/time.h:40: error: storage class specified for parameter > `__sysconf' > In file included from /usr/include/php/main/php_reentrancy.h:30, > from /usr/include/php/main/php.h:418, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/time.h:60: error: storage class specified for parameter > `clock_t' > /usr/include/time.h:181: error: storage class specified for parameter > `clock_t' > /usr/include/time.h:181: error: conflicting types for 'clock_t' > /usr/include/time.h:60: error: previous definition of 'clock_t' was here > /usr/include/time.h:181: error: syntax error before "clock" > /usr/include/time.h:184: error: storage class specified for parameter > `time' > /usr/include/time.h:188: error: storage class specified for parameter > `difftime' > /usr/include/time.h:191: error: storage class specified for parameter > `mktime' > /usr/include/time.h:199: error: storage class specified for parameter > `strftime' > /usr/include/time.h:229: error: storage class specified for parameter > `gmtime' > /usr/include/time.h:233: error: storage class specified for parameter > `localtime' > /usr/include/time.h:240: error: storage class specified for parameter > `gmtime_r' > /usr/include/time.h:245: error: storage class specified for parameter > `localtime_r' > /usr/include/time.h:251: error: storage class specified for parameter > `asctime' > /usr/include/time.h:254: error: storage class specified for parameter > `ctime' > /usr/include/time.h:263: error: storage class specified for parameter > `asctime_r' > /usr/include/time.h:267: error: storage class specified for parameter > `ctime_r' > /usr/include/time.h:272: error: storage class specified for parameter > `__tzname' > /usr/include/time.h:273: error: storage class specified for parameter > `__daylight' > /usr/include/time.h:274: error: storage class specified for parameter > `__timezone' > /usr/include/time.h:279: error: storage class specified for parameter > `tzname' > /usr/include/time.h:283: error: storage class specified for parameter > `tzset' > /usr/include/time.h:287: error: storage class specified for parameter > `daylight' > /usr/include/time.h:288: error: storage class specified for parameter > `timezone' > /usr/include/time.h:294: error: storage class specified for parameter > `stime' > /usr/include/time.h:309: error: storage class specified for parameter > `timegm' > /usr/include/time.h:312: error: storage class specified for parameter > `timelocal' > /usr/include/time.h:315: error: storage class specified for parameter > `dysize' > /usr/include/time.h:325: error: storage class specified for parameter > `nanosleep' > /usr/include/time.h:329: error: storage class specified for parameter > `clock_getres' > /usr/include/time.h:332: error: storage class specified for parameter > `clock_gettime' > /usr/include/time.h:336: error: storage class specified for parameter > `clock_settime' > /usr/include/time.h:355: error: storage class specified for parameter > `timer_create' > /usr/include/time.h:358: error: storage class specified for parameter > `timer_delete' > /usr/include/time.h:363: error: storage class specified for parameter > `timer_settime' > /usr/include/time.h:367: error: storage class specified for parameter > `timer_gettime' > /usr/include/time.h:370: error: storage class specified for parameter > `timer_getoverrun' > In file included from /usr/include/php/main/php.h:418, > from php_mapscript_util.h:34, > from php_mapscript_util.c:33: > /usr/include/php/main/php_reentrancy.h:52: error: syntax error before > "BEGIN_EXTERN_C" > In file included from php_mapscript_util.c:33: > php_mapscript_util.h:117: error: syntax error before '*' token > php_mapscript_util.h:121: error: syntax error before '*' token > php_mapscript_util.h:124: error: syntax error before '*' token > php_mapscript_util.h:127: error: syntax error before '*' token > php_mapscript_util.h:130: error: syntax error before '*' token > php_mapscript_util.h:132: error: syntax error before '*' token > php_mapscript_util.h:134: error: syntax error before '*' token > php_mapscript_util.h:136: error: syntax error before '*' token > php_mapscript_util.h:138: error: syntax error before '*' token > php_mapscript_util.h:140: error: syntax error before '*' token > php_mapscript_util.h:141: error: syntax error before '*' token > php_mapscript_util.h:143: error: syntax error before '*' token > php_mapscript_util.h:145: error: syntax error before '*' token > php_mapscript_util.h:148: error: syntax error before '*' token > In file included from php_mapscript_util.c:34: > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:101: warning: structure defined > inside parms > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:101: error: storage class > specified for parameter `errorObj' > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:106: error: syntax error before > "errorObj" > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:114: error: syntax error before > '*' token > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:115: error: syntax error before > '*' token > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:117: error: syntax error before > "errorObj" > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:119: warning: empty declaration > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:134: warning: enum defined > inside parms > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:134: error: storage class > specified for parameter `debugLevel' > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:143: warning: enum defined > inside parms > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:143: error: storage class > specified for parameter `debugMode' > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:147: error: syntax error before > "debugLevel" > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:147: warning: no semicolon at > end of struct or union > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:150: error: syntax error before > "FILE" > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:154: error: syntax error before > '}' token > /tmp/Mapserver5/mapserver-5.0.0/maperror.h:162: error: syntax error before > "debugLevel" > php_mapscript_util.c:45: error: redefinition of parameter > '_phpms_report_mapserver_error' > php_mapscript_util.h:115: error: previous definition of > '_phpms_report_mapserver_error' was here > php_mapscript_util.c:45: error: syntax error before '{' token > php_mapscript_util.c:71: error: parameter `retVal' is initialized > php_mapscript_util.c:73: error: syntax error before "if" > php_mapscript_util.c:122: error: parameter `retVal' is initialized > php_mapscript_util.c:122: error: redefinition of parameter 'retVal' > php_mapscript_util.c:71: error: previous definition of 'retVal' was here > php_mapscript_util.c:125: error: syntax error before "if" > php_mapscript_util.c:464: error: parameter `string_key' is initialized > php_mapscript_util.c:466: error: parameter `i' is initialized > php_mapscript_util.c:468: error: syntax error before "for" > make: *** [php_mapscript_util.o] Error 1 > > -- View this message in context: http://www.nabble.com/mapserver-update-tp14412963p14433736.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dave.weaver at ZEN.CO.UK Thu Dec 20 02:04:37 2007 From: dave.weaver at ZEN.CO.UK (Dave Weaver) Date: Thu, 20 Dec 2007 10:04:37 +0000 Subject: Symbols: cut-off and decluttering Message-ID: I'm trying to plot symbols on a map (US highway shields), but am experiencing problems. If I ask MapServer for two adjacent squares of map, on the northern square I get the top half a symbol (it is at the southern boundary) and on the southern square there is no sign of that symbol. When the squares are later put together to form a larger map, the effect is of half a symbol. Is there a way to prevent partial symbols? The PARTIALS directive only appears to apply to labels, not symbols. I also note that if I render an overlapping square containing half of the northern and half of the southern square, the symbol that is cut off in the northern square is nowhere to be seen. What happened? Is there some sort of decluttering going on? If so, how can this be controlled? Northern tile: http://www.screenshots.cc/view_image/9fb511255/1.png Southern tile: http://www.screenshots.cc/view_image/ee8631252/3.png Overlap tile (halfway between northern & southern): http://www.screenshots.cc/view_image/c0f0a1216/2.png Below is some relevant stuff from the map file: SYMBOL NAME "Interstate" TYPE PIXMAP IMAGE "/home/map/shapes/PB13/shields/INTERSTATE_ALPHA.PNG" END LAYER NAME us_interstate_symbols_level_8 DATA "/home/map/shapes/PB13/Interstate_symbols_level_8" STATUS OFF TYPE ANNOTATION LABELCACHE on LABELITEM "Route" MAXSCALE 2407465 MINSCALE 1203732 LABELMAXSCALE 2407465 LABELMINSCALE 1203732 TRANSPARENCY 90 PROJECTION "init=epsg:4326" END METADATA wms_title us_interstate_symbols "wms_onlineresource" "http://wxtile2.wsi.com:85/cgi-bin/mapserv?map=map/labeltest.map& " "wms_srs" "EPSG:4326 EPSG:900913" END CLASS STYLE SYMBOL "Interstate" END LABEL TYPE truetype FONT "tahoma" SIZE 7 #ANGLE auto POSITION cc COLOR 255 255 255 BACKGROUNDCOLOR 0 84 146 PARTIALS FALSE FORCE TRUE END END END Thanks, Dave. -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Thu Dec 20 02:34:20 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Thu, 20 Dec 2007 02:34:20 -0800 Subject: mapserver update In-Reply-To: <14433736.post@talk.nabble.com> Message-ID: fyi found the problem: I had the following path in the Makefile: PHP_SRC_DIR = /usr/include/php/main/ changed it to: PHP_SRC_DIR = /usr/include/php/ that worked out and created the php_mapscript.so, after replacing the old I have MapServer version 5.0.0 installed! thx for all your help! wish u all merry X-mas -- View this message in context: http://www.nabble.com/mapserver-update-tp14412963p14434016.html Sent from the Mapserver - User mailing list archive at Nabble.com. From davidhmccoy at COX.NET Thu Dec 20 10:14:44 2007 From: davidhmccoy at COX.NET (David H. McCoy) Date: Thu, 20 Dec 2007 12:14:44 -0600 Subject: New to Mapserver Message-ID: The customers will be expected to supply their own maps or floorplans from whatever source they deem appropriate. I need a map for development purposes. Somethng large enought to pan around, something that can be zoomed, something to which I can add marker, preferably something free that I can go grab. On Wed, 19 Dec 2007 12:49:48 -0500, Ed McNierney wrote: >David - > >Well, I may be correct, but you didn't answer my question . The availability and sources of map data - whether free or not - varies widely by geography, and if you can tell us what geography you're interested in (floorplans in Antarctica?) we might be able to suggest good sources. > > - Ed > >Ed McNierney >Chief Mapmaker >Demand Media / TopoZone.com >73 Princeton Street, Suite 305 >North Chelmsford, MA? 01863 >ed at topozone.com >Phone: +1 (978) 251-4242 >Fax: +1 (978) 251-1396 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER- USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy >Sent: Wednesday, December 19, 2007 11:48 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver > >You are correct! > >The application will support maps and floor plans. The floorplans will definitely >be supplied by the user of the application on a per need basis. However, I >thought that the geographic maps were to be *only* public domain. In >actuality, the user of the application would purchase geographic maps based, >in a format supported by mapserver, based on whatever needs they are trying >to fulfill. I'd thought that I was rebuffed when suggesting purchasing certain >items in the past, put there is an understanding that a user of the application >would at least potentially have to purchase maps. > >And there was my mistake. I thought purchasing data was off the table, but >this isn't the case at all. > >On Wed, 19 Dec 2007 11:34:07 -0500, Ed McNierney >wrote: > >>David - >> >>The answer to your question about data depends greatly on what portion of >the Earth you are interested in. Is this a global mapping application, or limited >to a smaller geography? >> >> - Ed >> >>Ed McNierney >>Chief Mapmaker >>Demand Media / TopoZone.com >>73 Princeton Street, Suite 305 >>North Chelmsford, MA? 01863 >>ed at topozone.com >>Phone: +1 (978) 251-4242 >>Fax: +1 (978) 251-1396 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER- >USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy >>Sent: Wednesday, December 19, 2007 11:00 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver >> >>Thanks for the reply Bart. It seems I misunderstood the part of the >initiative. >>I thought that the customer wanted to try to do this with some kind of >public >>domain maps, which is not the case. They are prepared to purchase the >maps, >>after all. >> >> >>Well, I'll get to work and come up with some *real* questions. >> >>Thanks again! >> >>David H. McCoy From Michael.Smith at MAINE.GOV Thu Dec 20 10:39:33 2007 From: Michael.Smith at MAINE.GOV (Smith, Michael) Date: Thu, 20 Dec 2007 13:39:33 -0500 Subject: width/height greater than 2048 pixels? Message-ID: I have MS4W installed and it works great. We envision using it as WMS for raster data. One issue I am running into is trying to print large maps in ArcGIS or MapInfo. I get the WMS error message WMS service exceptions:Service Error Description: msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels. I googled this and understand what's happening - but my question is how to remedy this so that WMS is usable as a printable layer? No clear answer that I could find to the solution. Can I increase the limit of 2048 pixels? If so, how, is it in some configuration file? What are the drawbacks of doing so? I have also decreased the resolution of my printout to 96dpi (matching the RESOLUTION in my map file) and that works. Can I change the RESOLUTION in my map file to 300 (matching the default of the printers and PDF writers)? *********** Michael Smith Maine DEP/OIT From gregor at HOSTGIS.COM Thu Dec 20 10:43:39 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 20 Dec 2007 11:43:39 -0700 Subject: width/height greater than 2048 pixels? In-Reply-To: <55D23C89537E434282BC1331F5A94D0F061DF3@SOM-TEAQASMAIL6.som.w2k.state.me.us> Message-ID: Smith, Michael wrote: > WIDTH and HEIGHT must be between 1 and 2048 pixels. If I recall, this is set in map.h in the source code. Get source, edit, recompile. If this changed in 5.0, that'd be nice. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dmorissette at MAPGEARS.COM Thu Dec 20 10:46:28 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 20 Dec 2007 13:46:28 -0500 Subject: width/height greater than 2048 pixels? In-Reply-To: <55D23C89537E434282BC1331F5A94D0F061DF3@SOM-TEAQASMAIL6.som.w2k.state.me.us> Message-ID: Smith, Michael wrote: > > WMS service exceptions:Service Error Description: > msWMSLoadGetMapParams(): WMS server error. Image size out of range, > WIDTH and HEIGHT must be between 1 and 2048 pixels. > [...] > > Can I increase the limit of 2048 pixels? If so, how, is it in some > configuration file? What are the drawbacks of doing so? > Look for MAXSIZE in http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj Daniel -- Daniel Morissette http://www.mapgears.com/ From gregor at HOSTGIS.COM Thu Dec 20 10:53:55 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 20 Dec 2007 11:53:55 -0700 Subject: width/height greater than 2048 pixels? In-Reply-To: <476AB884.2070501@mapgears.com> Message-ID: Daniel Morissette wrote: > Look for MAXSIZE in > http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj That's nice to know thanks Daniel. Is that new to 5, or 4.10? I recall the answer used to be "recompile" -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dmorissette at MAPGEARS.COM Thu Dec 20 11:00:53 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 20 Dec 2007 14:00:53 -0500 Subject: width/height greater than 2048 pixels? In-Reply-To: <476ABA43.6060501@hostgis.com> Message-ID: Gregor Mosheh wrote: > Daniel Morissette wrote: >> Look for MAXSIZE in >> http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj > > That's nice to know thanks Daniel. > Is that new to 5, or 4.10? > I recall the answer used to be "recompile" > MAXSIZE has been there for a while. According to HISTORY.TXT it would have been added in v4.2 (Ticket #435). Daniel -- Daniel Morissette http://www.mapgears.com/ From ed at TOPOZONE.COM Thu Dec 20 11:10:11 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 20 Dec 2007 14:10:11 -0500 Subject: New to Mapserver Message-ID: OK - I promise I'll only ask one more time, and then give up . For which countries do you need map data, whether it's free or not? If your customers are expected to supply them, what maps were you asking about when you asked for data? - Ed ________________________________ From: UMN MapServer Users List on behalf of David H. McCoy Sent: Thu 12/20/2007 1:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver The customers will be expected to supply their own maps or floorplans from whatever source they deem appropriate. I need a map for development purposes. Somethng large enought to pan around, something that can be zoomed, something to which I can add marker, preferably something free that I can go grab. On Wed, 19 Dec 2007 12:49:48 -0500, Ed McNierney wrote: >David - > >Well, I may be correct, but you didn't answer my question . The availability and sources of map data - whether free or not - varies widely by geography, and if you can tell us what geography you're interested in (floorplans in Antarctica?) we might be able to suggest good sources. > > - Ed > >Ed McNierney >Chief Mapmaker >Demand Media / TopoZone.com >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >Phone: +1 (978) 251-4242 >Fax: +1 (978) 251-1396 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER- USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy >Sent: Wednesday, December 19, 2007 11:48 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver > >You are correct! > >The application will support maps and floor plans. The floorplans will definitely >be supplied by the user of the application on a per need basis. However, I >thought that the geographic maps were to be *only* public domain. In >actuality, the user of the application would purchase geographic maps based, >in a format supported by mapserver, based on whatever needs they are trying >to fulfill. I'd thought that I was rebuffed when suggesting purchasing certain >items in the past, put there is an understanding that a user of the application >would at least potentially have to purchase maps. > >And there was my mistake. I thought purchasing data was off the table, but >this isn't the case at all. > >On Wed, 19 Dec 2007 11:34:07 -0500, Ed McNierney >wrote: > >>David - >> >>The answer to your question about data depends greatly on what portion of >the Earth you are interested in. Is this a global mapping application, or limited >to a smaller geography? >> >> - Ed >> >>Ed McNierney >>Chief Mapmaker >>Demand Media / TopoZone.com >>73 Princeton Street, Suite 305 >>North Chelmsford, MA 01863 >>ed at topozone.com >>Phone: +1 (978) 251-4242 >>Fax: +1 (978) 251-1396 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER- >USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy >>Sent: Wednesday, December 19, 2007 11:00 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver >> >>Thanks for the reply Bart. It seems I misunderstood the part of the >initiative. >>I thought that the customer wanted to try to do this with some kind of >public >>domain maps, which is not the case. They are prepared to purchase the >maps, >>after all. >> >> >>Well, I'll get to work and come up with some *real* questions. >> >>Thanks again! >> >>David H. McCoy -------------- next part -------------- An HTML attachment was scrubbed... URL: From hanscastorp76 at YAHOO.ES Thu Dec 20 10:26:41 2007 From: hanscastorp76 at YAHOO.ES (Hans Castorp) Date: Thu, 20 Dec 2007 19:26:41 +0100 Subject: CLASSITEM + EXPRESSION Message-ID: Hi to all, I?m trying to filter a postgis layer using the statement EXPRESSION. I think my configuration is fine but doesn?t works. Anyone of you detects any trouble on this LAYER statement: LAYER CONNECTION "host=localhost dbname=lalin user=??? password=??? port=5432" DATA "the_geom FROM usos_suelo" NAME 'USOS SUELO' GROUP 'USOS SUELO' TYPE polygon STATUS ON TRANSPARENCY 0 CLASSITEM 'clase' CLASS NAME 'USOS_ARBORES' MINSCALE 2500 MAXSCALE 200000 EXPRESSION ('[clase]' = 'ARBORES') STYLE ANTIALIAS false COLOR 162 204 155 END #end style END # end class CLASS NAME 'USOS_CULTIVOS' MINSCALE 2500 MAXSCALE 200000 EXPRESSION ('[clase]' = 'CULTIVOS') STYLE ANTIALIAS false COLOR 224 224 224 END #end style END # end class CLASS NAME 'USOS_ASENTAMENTOS' MINSCALE 2500 MAXSCALE 200000 EXPRESSION ('[clase]' = 'ASENTAMENTOS') STYLE ANTIALIAS false COLOR 204 204 204 END #end style END # end class END #end layer Thanks in advance. I think I?m going crazy with this piece of code. P.S. Of course, I?m sure that ?clase? is a column on ?usos_suelo? postgis table ;) Hans Castorp No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.5/1190 - Release Date: 19/12/2007 19:37 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Thu Dec 20 11:55:15 2007 From: bob.basques at CI.STPAUL.MN.US (bobb) Date: Thu, 20 Dec 2007 13:55:15 -0600 Subject: width/height greater than 2048 pixels? In-Reply-To: <476ABA43.6060501@hostgis.com> Message-ID: All, We did this as well, but you need to be aware that it can really tax your image service to build layers at this size in one request. We ran into a limit of how large even this setting could be as well, and still needed to tile in the end. bobb On Dec 20, 2007, at 12:53 PM, Gregor Mosheh wrote: > Daniel Morissette wrote: >> Look for MAXSIZE in http://mapserver.gis.umn.edu/docs/reference/ >> mapfile/mapObj > > That's nice to know thanks Daniel. > Is that new to 5, or 4.10? > I recall the answer used to be "recompile" > > -- > Gregor Mosheh / Greg Allensworth > System Administrator, HostGIS cartographic development & hosting > services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > From David.Renz at CITYOFMEDFORD.ORG Thu Dec 20 11:36:23 2007 From: David.Renz at CITYOFMEDFORD.ORG (David J. Renz) Date: Thu, 20 Dec 2007 11:36:23 -0800 Subject: FW: No color showing up in map Message-ID: Hello. I am just getting started with MapServer. I have created a map that connects to a test postGIS database. I also have an demo MapScript (C#) app that connects successfully to the map. The application is able to pull up the map and I can get around. The problem is that my map is only showing up in black and white. I have defined the layer classes through Quantum GIS (Titan) and the map was successfully exported (for the most part). Can anyone tell me why this map file is only drawing in color? See map file snippet below: LAYER NAME "citypoly" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=postgis password=xxxx user=xxx" DATA "the_geom FROM citypoly" METADATA 'wms_title' 'citypoly' END STATUS ON TRANSPARENCY 100 PROJECTION 'proj=aea' 'lat_1=50' 'lat_2=58.5' 'lat_0=45' 'lon_0=-126' 'x_0=1000000' 'y_0=0' 'ellps=GRS80' 'datum=NAD83' 'units=m' 'no_defs' END CLASS NAME "citypoly" STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 170 0 COLOR 144 50 207 END END END From davidhmccoy at COX.NET Thu Dec 20 12:34:57 2007 From: davidhmccoy at COX.NET (David H. McCoy) Date: Thu, 20 Dec 2007 14:34:57 -0600 Subject: New to Mapserver Message-ID: The application will probably need maps for the United States. I thought that I was to be tasked with supplying maps, but that isn't the case. I would be grateful for a list of any commerical or freeware maps the US that has detail down to the street level. The freeware would be used by me for development. My customer would no doubt use any free maps where they can and pay for what they must. I do appreciate your patience. I'm still assimilating the lingo franca. On Thu, 20 Dec 2007 14:10:11 -0500, Ed McNierney wrote: >OK - I promise I'll only ask one more time, and then give up . > >For which countries do you need map data, whether it's free or not? If your customers are expected to supply them, what maps were you asking about when you asked for data? > > - Ed > >________________________________ > >From: UMN MapServer Users List on behalf of David H. McCoy >Sent: Thu 12/20/2007 1:14 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver > > > >The customers will be expected to supply their own maps or floorplans from >whatever source they deem appropriate. > >I need a map for development purposes. Somethng large enought to pan >around, something that can be zoomed, something to which I can add marker, >preferably something free that I can go grab. > >On Wed, 19 Dec 2007 12:49:48 -0500, Ed McNierney >wrote: > >>David - >> >>Well, I may be correct, but you didn't answer my question . The >availability and sources of map data - whether free or not - varies widely by >geography, and if you can tell us what geography you're interested in >(floorplans in Antarctica?) we might be able to suggest good sources. >> >> - Ed >> >>Ed McNierney >>Chief Mapmaker >>Demand Media / TopoZone.com >>73 Princeton Street, Suite 305 >>North Chelmsford, MA 01863 >>ed at topozone.com >>Phone: +1 (978) 251-4242 >>Fax: +1 (978) 251-1396 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER- >USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy >>Sent: Wednesday, December 19, 2007 11:48 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver >> >>You are correct! >> >>The application will support maps and floor plans. The floorplans will >definitely >>be supplied by the user of the application on a per need basis. However, I >>thought that the geographic maps were to be *only* public domain. In >>actuality, the user of the application would purchase geographic maps >based, >>in a format supported by mapserver, based on whatever needs they are >trying >>to fulfill. I'd thought that I was rebuffed when suggesting purchasing certain >>items in the past, put there is an understanding that a user of the >application >>would at least potentially have to purchase maps. >> >>And there was my mistake. I thought purchasing data was off the table, but >>this isn't the case at all. >> >>On Wed, 19 Dec 2007 11:34:07 -0500, Ed McNierney >>wrote: >> >>>David - >>> >>>The answer to your question about data depends greatly on what portion >of >>the Earth you are interested in. Is this a global mapping application, or >limited >>to a smaller geography? >>> >>> - Ed >>> >>>Ed McNierney >>>Chief Mapmaker >>>Demand Media / TopoZone.com >>>73 Princeton Street, Suite 305 >>>North Chelmsford, MA 01863 >>>ed at topozone.com >>>Phone: +1 (978) 251-4242 >>>Fax: +1 (978) 251-1396 >>> >>>-----Original Message----- >>>From: UMN MapServer Users List [mailto:MAPSERVER- >>USERS at LISTS.UMN.EDU] On Behalf Of David H. McCoy >>>Sent: Wednesday, December 19, 2007 11:00 AM >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: Re: [UMN_MAPSERVER-USERS] New to Mapserver >>> >>>Thanks for the reply Bart. It seems I misunderstood the part of the >>initiative. >>>I thought that the customer wanted to try to do this with some kind of >>public >>>domain maps, which is not the case. They are prepared to purchase the >>maps, >>>after all. >>> >>> >>>Well, I'll get to work and come up with some *real* questions. >>> >>>Thanks again! >>> >>>David H. McCoy > > > From David.Renz at CITYOFMEDFORD.ORG Thu Dec 20 11:35:16 2007 From: David.Renz at CITYOFMEDFORD.ORG (David J. Renz) Date: Thu, 20 Dec 2007 11:35:16 -0800 Subject: No color showing up in map Message-ID: Hello. I am just getting started with MapServer. I have created a map that connects to a test postGIS database. I also have an demo MapScript (C#) app that connects successfully to the map. The application is able to pull up the map and I can get around. The problem is that my map is only showing up in black and white. I have defined the layer classes through Quantum GIS (Titan) and the map was successfully exported (for the most part). Can anyone tell me why this map file is only drawing in color? See map file snippet below: From nospam420 at YAHOO.COM Thu Dec 20 12:55:02 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Thu, 20 Dec 2007 12:55:02 -0800 Subject: CLASSITEM + EXPRESSION In-Reply-To: <009901c84335$df4a8630$6601a8c0@signo3> Message-ID: Hans Castorp wrote: > > I?m trying to filter a postgis layer using the statement EXPRESSION. I > think > my configuration is fine but doesn?t works. > I'm not sure about the proper use of EXPRESSION within CLASS, as I haven't used it before. However, to filter postgis queries, I use FILTER within LAYER. You might want to take a look at that as an alternative. It might even be more efficient to filter what's coming out of the database rather than later on, but I'm not sure. http://mapserver.gis.umn.edu/docs/reference/mapfile/layer - Rich -- View this message in context: http://www.nabble.com/CLASSITEM-%2B-EXPRESSION-tp14443055p14444993.html Sent from the Mapserver - User mailing list archive at Nabble.com. From siki at AGT.BME.HU Thu Dec 20 15:48:29 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 20 Dec 2007 22:48:29 -0100 Subject: libpdf {Scanned} Message-ID: Hi List, I compiled mapserver 5.0.0 on a debian box. MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Everything works fine except pdf output. Using shp2pdf or mapserv with pdf output I get error. ../shp2pdf -m test_pdf.map > xxx.pdf *** glibc detected *** malloc(): memory corruption: 0x08229c10 *** Aborted I have libpdf.so.6.0.2 Any idea? Thanks, Zoltan From Bob.Bruce at GOV.MB.CA Thu Dec 20 14:55:48 2007 From: Bob.Bruce at GOV.MB.CA (Bruce, Bob (CON)) Date: Thu, 20 Dec 2007 16:55:48 -0600 Subject: Setting Layer Transparency From CGI URL? Message-ID: Hi: I was wondering if there is a way to change the transparency of individual layers from form variables similar to the way that layers are turned on and off. thanks, Bob Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at REMOTEINFORMATION.COM.AU Thu Dec 20 17:20:57 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Fri, 21 Dec 2007 10:20:57 +0900 Subject: Zoom to location by name or other parameter using cgi mapserv Message-ID: G'day all, I have a list of small polygons spread out over about 2500 kms, and I want to be able to zoom to a polygon by choosing it from a list. The data is all in a postgis database, so I can get the polygon names, gid and centroid location. I had through I would put the names into a select list, and have the gid as the option value. My question is, can I set a centre based on a gid in a call to the cgi, or can I put the centroid of the polygon into the options value and append it to the cgi call. What is the appropriate format for this? It is only a small application, and I done similar for other projects in php/mapscript, but I would rather stick to the cgi for now. If someone can tell me I promise I will write a note for the website! cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Thu Dec 20 17:38:17 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 20 Dec 2007 18:38:17 -0700 Subject: Zoom to location by name or other parameter using cgi mapserv In-Reply-To: <8C63BA67-6EEC-4B57-A6DE-C6FB2D09DE28@remoteinformation.com.au> Message-ID: On Dec 20, 2007 6:20 PM, Ben Madin wrote: > G'day all, > > I have a list of small polygons spread out over about 2500 kms, and I want > to be able to zoom to a polygon by choosing it from a list. > > The data is all in a postgis database, so I can get the polygon names, gid > and centroid location. > > I had through I would put the names into a select list, and have the gid as > the option value. > > My question is, can I set a centre based on a gid in a call to the cgi, or > can I put the centroid of the polygon into the options value and append it > to the cgi call. What is the appropriate format for this? > > It is only a small application, and I done similar for other projects in > php/mapscript, but I would rather stick to the cgi for now. Using mode=itemnquery is a pretty standard way to do it. Several other parameters are required. e.g.: qitem=gid&qlayer=poly_layer&mapext=shapes&qstring=poly_gid Another way, with PostGIS, you can also query the extent of one or more polygons and then pass that extent to mapserv with mode=map. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From matthew.pettis at GMAIL.COM Thu Dec 20 18:07:17 2007 From: matthew.pettis at GMAIL.COM (Matthew Pettis) Date: Thu, 20 Dec 2007 20:07:17 -0600 Subject: Setting Layer Transparency From CGI URL? In-Reply-To: <2D7230119FDBCE4DB0984678195B920017586E@OC1EX04.ME.MBGOV.CA> Message-ID: Meant to send this to the whole list for posterity... Hi Bob, I think what you want is the 'Changing map file parameters via a form or a URL' section of: http://mapserver.gis.umn.edu/docs/reference/cgi/controls hth, matt On Dec 20, 2007 4:55 PM, Bruce, Bob (CON) wrote: > Hi: > > I was wondering if there is a way to change the transparency of individual > layers from form variables similar to the way that layers are turned on and > off. > > thanks, > > Bob Bruce > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From kko at NGI.BE Thu Dec 20 22:55:24 2007 From: kko at NGI.BE (=?windows-1252?Q?Kathrin_K=D6HL?=) Date: Fri, 21 Dec 2007 07:55:24 +0100 Subject: CLASSITEM + EXPRESSION In-Reply-To: <009901c84335$df4a8630$6601a8c0@signo3> Message-ID: Hi! I haven't worked with PostGIS yet but with my Shapefiles I use EXPRESSION like this: LAYER NAME admin DATA "/mypath/" TEMPLATE '../templates/' STATUS ON TYPE POLYGON CLASSITEM "NAT" CLASS NAME 'Belgium' EXPRESSION 'BE' STYLE COLOR 255 255 255 END END CLASS NAME 'Germany' EXPRESSION 'GM' STYLE COLOR 237 237 237 END END END I define CLASSITEM before in the LAYERobject with the name of the column in my data, so MapServer knows where to look for the expression. In the CLASSobject I use EXPRESSION with the value that is actually in the column for each object that I want to classify. I'm not sure if it's the same with PostGIS but I don't write the name of the column again in the CLASSobject. Just a guess Kathrin Hans Castorp wrote: > > Hi to all, > > I?m trying to filter a postgis layer using the statement EXPRESSION. I > think my configuration is fine but doesn?t works. > > Anyone of you detects any trouble on this LAYER statement: > > LAYER > > CONNECTION "host=localhost dbname=lalin user=??? password=??? port=5432" > > DATA "the_geom FROM usos_suelo" > > NAME 'USOS SUELO' > > GROUP 'USOS SUELO' > > TYPE polygon > > STATUS ON > > TRANSPARENCY 0 > > CLASSITEM 'clase' > > CLASS > > NAME 'USOS_ARBORES' > > MINSCALE 2500 > > MAXSCALE 200000 > > EXPRESSION ('[clase]' = 'ARBORES') > > STYLE > > ANTIALIAS false > > COLOR 162 204 155 > > END #end style > > END # end class > > CLASS > > NAME 'USOS_CULTIVOS' > > MINSCALE 2500 > > MAXSCALE 200000 > > EXPRESSION ('[clase]' = 'CULTIVOS') > > STYLE > > ANTIALIAS false > > COLOR 224 224 224 > > END #end style > > END # end class > > CLASS > > NAME 'USOS_ASENTAMENTOS' > > MINSCALE 2500 > > MAXSCALE 200000 > > EXPRESSION ('[clase]' = 'ASENTAMENTOS') > > STYLE > > ANTIALIAS false > > COLOR 204 204 204 > > END #end style > > END # end class > > END #end layer > > Thanks in advance. I think I?m going crazy with this piece of code. > > P.S. Of course, I?m sure that ?clase? is a column on ?usos_suelo? > postgis table ;) > > Hans Castorp > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.17.5/1190 - Release Date: > 19/12/2007 19:37 > From ben at REMOTEINFORMATION.COM.AU Fri Dec 21 05:18:08 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Fri, 21 Dec 2007 22:18:08 +0900 Subject: Zoom to location by name or other parameter using cgi mapserv In-Reply-To: Message-ID: Thanks for your help Richard, I think I am closer, but I haven't got it yet to the point I can write it up! After struggling to work out the validation thing, I can run the script, but as soon as I use mode=itemquery I return a list of locations, and a querymap, beautifully shrunk down to show only the polygon I am interested in. However, I was hoping to be able to use this function in the main window - as an example say I was looking for roadside stops by name, it could then "zoom" me to the one I wanted, and I could continue panning or zooming. http://remote.local/cgi-bin/mapserv? layer=coastline&layer=roads&layer=location &layer=stops&mode=itemquery&qlayer=stops&qstring=gid=342 &map=%2FLibrary%2FWebServer%2FDocuments%2Froads% 2Froads.map&mapext=shapes&iw=650&ih=550 but if I use mode=browse, I just get my normal interface, with a quarter of Australia to zoom in from! I'm guessing the better option may just be to make the select list with the extents of each object, queried from the database, so when the form is submitted that is the mapext value. cheers Ben On 21/12/2007, at 10:38 AM, Richard Greenwood wrote: > Using mode=itemnquery is a pretty standard way to do it. Several other > parameters are required. e.g.: > > qitem=gid&qlayer=poly_layer&mapext=shapes&qstring=poly_gid > > Another way, with PostGIS, you can also query the extent of one or > more polygons and then pass that extent to mapserv with mode=map. > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Fri Dec 21 06:02:48 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 21 Dec 2007 07:02:48 -0700 Subject: Zoom to location by name or other parameter using cgi mapserv In-Reply-To: <9C206BE7-AF0E-4BC6-A80B-994C3EC1E29D@remoteinformation.com.au> Message-ID: On Dec 21, 2007 6:18 AM, Ben Madin wrote: > Thanks for your help Richard, I think I am closer, but I haven't got it yet > to the point I can write it up! > > After struggling to work out the validation thing, I can run the script, but > as soon as I use mode=itemquery I return a list of locations, and a > querymap, beautifully shrunk down to show only the polygon I am interested > in. > > However, I was hoping to be able to use this function in the main window - > as an example say I was looking for roadside stops by name, it could then > "zoom" me to the one I wanted, and I could continue panning or zooming. > > > http://remote.local/cgi-bin/mapserv?layer=coastline&layer=roads&layer=location > &layer=stops&mode=itemquery&qlayer=stops&qstring=gid=342 > &map=%2FLibrary%2FWebServer%2FDocuments%2Froads%2Froads.map&mapext=shapes&iw=650&ih=550 > > but if I use mode=browse, I just get my normal interface, with a quarter of > Australia to zoom in from! > > I'm guessing the better option may just be to make the select list with the > extents of each object, queried from the database, so when the form is > submitted that is the mapext value. The trick to getting the query result into your main map is to make the TEMPLATE for the query layer be the main map. So in your map file the template for 'stops' should be whatever your main map html file is. A couple more tricks. Sometimes you will need to have two versions of your 'stops' layer with different templates. The first "stops" layer would have a template for displaying attribute data and the style of that layer would be the regular default style. Then the second layer, we'll call "stops_spatial" has the main map defined as the template, it has a FILTER %gid% so that it only shows the selected object(s) and the style ewould be something bright and bold to show the object. Another trick. If you want to display more than selected object in one map (as opposed to several maps each just showing one object) then instead of putting the main map html in the template, put it in the HEADER for your "stops" or "stops_spatial" layer, and define an empty html file for the template. You can see an example of this at: http://www2.tetonwyo.org/mapserver/ Select the "Property Search" link near the bottom of the page. In the "Search by Owner" "Last Name" enter 'Smith'. This will give you a list, click the "Map It" link. HTH, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From hanscastorp76 at YAHOO.ES Fri Dec 21 07:52:07 2007 From: hanscastorp76 at YAHOO.ES (Hans Castorp) Date: Fri, 21 Dec 2007 16:52:07 +0100 Subject: CLASSITEM + EXPRESSION In-Reply-To: <476B635C.10500@ngi.be> Message-ID: Thanks, It works using your syntax both with postgis and shape layers. Documentation is not enough clear with about this statement. Best regards. -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Kathrin K?HL Enviado el: viernes, 21 de diciembre de 2007 7:55 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] CLASSITEM + EXPRESSION Hi! I haven't worked with PostGIS yet but with my Shapefiles I use EXPRESSION like this: LAYER NAME admin DATA "/mypath/" TEMPLATE '../templates/' STATUS ON TYPE POLYGON CLASSITEM "NAT" CLASS NAME 'Belgium' EXPRESSION 'BE' STYLE COLOR 255 255 255 END END CLASS NAME 'Germany' EXPRESSION 'GM' STYLE COLOR 237 237 237 END END END I define CLASSITEM before in the LAYERobject with the name of the column in my data, so MapServer knows where to look for the expression. In the CLASSobject I use EXPRESSION with the value that is actually in the column for each object that I want to classify. I'm not sure if it's the same with PostGIS but I don't write the name of the column again in the CLASSobject. Just a guess Kathrin Hans Castorp wrote: > > Hi to all, > > I?m trying to filter a postgis layer using the statement EXPRESSION. I > think my configuration is fine but doesn?t works. > > Anyone of you detects any trouble on this LAYER statement: > > LAYER > > CONNECTION "host=localhost dbname=lalin user=??? password=??? port=5432" > > DATA "the_geom FROM usos_suelo" > > NAME 'USOS SUELO' > > GROUP 'USOS SUELO' > > TYPE polygon > > STATUS ON > > TRANSPARENCY 0 > > CLASSITEM 'clase' > > CLASS > > NAME 'USOS_ARBORES' > > MINSCALE 2500 > > MAXSCALE 200000 > > EXPRESSION ('[clase]' = 'ARBORES') > > STYLE > > ANTIALIAS false > > COLOR 162 204 155 > > END #end style > > END # end class > > CLASS > > NAME 'USOS_CULTIVOS' > > MINSCALE 2500 > > MAXSCALE 200000 > > EXPRESSION ('[clase]' = 'CULTIVOS') > > STYLE > > ANTIALIAS false > > COLOR 224 224 224 > > END #end style > > END # end class > > CLASS > > NAME 'USOS_ASENTAMENTOS' > > MINSCALE 2500 > > MAXSCALE 200000 > > EXPRESSION ('[clase]' = 'ASENTAMENTOS') > > STYLE > > ANTIALIAS false > > COLOR 204 204 204 > > END #end style > > END # end class > > END #end layer > > Thanks in advance. I think I?m going crazy with this piece of code. > > P.S. Of course, I?m sure that ?clase? is a column on ?usos_suelo? > postgis table ;) > > Hans Castorp > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.17.5/1190 - Release Date: > 19/12/2007 19:37 > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.5/1191 - Release Date: 20/12/2007 14:14 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.5/1191 - Release Date: 20/12/2007 14:14 From nospam420 at YAHOO.COM Fri Dec 21 15:09:48 2007 From: nospam420 at YAHOO.COM (rich.fromm) Date: Fri, 21 Dec 2007 15:09:48 -0800 Subject: inline FONTSET ? (and/or SYMBOLSET and/or PALETTE) Message-ID: I have a FONTSET declaration within the MAP object in my *.map file, like so: MAP # relative paths work okay here FONTSET "./fonts.list" But I'm only using a single TrueType font (in various sizes), so my fonts.list only contains a single entry: verdana verdana.ttf Is it possible to somehow inline this, or entirely remove the level of indirection and have the font directly specified instead of how it's done now? MAP LAYER CLASS LABEL TYPE TRUETYPE FONT verdana A similar question applies to SYMBOLSET and to FORMATOPTION for the PALETTE within the OUTPUTFORMAT. These both point to other files that do have a little bit more information in them: MAP # relative paths work okay here too SYMBOLSET "./zoom-all.sym" MAP OUTPUTFORMAT FORMATOPTION "PALETTE=/ext/home/rich/wrk/mapserver/navteq-test/zoom-all.palette" Nevertheless, if this information could be inlined, then a single *.map file could describe the entire configuration, rather than the 4 files currently (*.map, fonts list, symbol file, and palette). - Rich -- View this message in context: http://www.nabble.com/inline-FONTSET---%28and-or-SYMBOLSET-and-or-PALETTE%29-tp14464040p14464040.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at STATE.MN.US Fri Dec 21 21:34:36 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 21 Dec 2007 23:34:36 -0600 Subject: World Files - Defining Image Rotation Message-ID: After spending a lot of time with my friend Google, I have come to the conclusion that documentation on how to calculate the rotation parameters of a world file is very hard to find. I have an image that I would like to georeference and rotate using a world file. If I want to rotate the image 43 degrees counter-clockwise, how do I go about calculating the rotation parameters in the world file? Here are the params that I have already determined 0.177959962 pixel size x direction rotation x term rotation y term 0.177941345 pixel size y direction 583930.6469 ul xcoord 4895626.67 ul ycoord Thanks, David. From gagan.bansal at RELIANCEADA.COM Fri Dec 21 22:44:32 2007 From: gagan.bansal at RELIANCEADA.COM (Gagan Bansal) Date: Sat, 22 Dec 2007 00:44:32 -0600 Subject: symbol limit 64 ? Message-ID: I am not able include more than 64 image symbols in sysmbol.sym file. What could be the reason? I am using MapServer 5.0.0 PHP: 5.2.5 Oracle version: 10.2.0.2 OS : RHEL 4.6 AS x86_64 Gagan From gagan.bansal at RELIANCEADA.COM Fri Dec 21 22:56:18 2007 From: gagan.bansal at RELIANCEADA.COM (Gagan Bansal) Date: Sat, 22 Dec 2007 00:56:18 -0600 Subject: Precache image quality Message-ID: I am using precache.php to create the precache tiles. but the image quality is not as good when the tiles are generated on the fly. but it seems both are using same tile.php. How the quality improvement can be done of precache tile image ? I am using MapServer 5.0.0 PHP: 5.2.5 Oracle version: 10.2.0.2 OS : RHEL 4.6 AS x86_64 Gagan From flavio at TYDAC.CH Sat Dec 22 00:31:50 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Sat, 22 Dec 2007 09:31:50 +0100 Subject: World Files - Defining Image Rotation In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5015AD408@s-sp22.pca.state.mn.us> Message-ID: Hi David maybe this helps: http://en.wikipedia.org/wiki/World_file Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at 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: "Fawcett, David" To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Fri, 21 Dec 2007 23:34:36 -0600 Subject: [UMN_MAPSERVER-USERS] World Files - Defining Image Rotation > After spending a lot of time with my friend Google, I have come to > the conclusion that documentation on how to calculate the rotation > parameters of a world file is very hard to find. > > I have an image that I would like to georeference and rotate using a > world file. If I want to rotate the image 43 degrees > counter-clockwise, how do I go about calculating the rotation > parameters in the world file? > > Here are the params that I have already determined > > 0.177959962 pixel size x direction > rotation x term > rotation y term > 0.177941345 pixel size y direction > 583930.6469 ul xcoord > 4895626.67 ul ycoord > > Thanks, > > David. From bob.b at GRITECHNOLOGIES.COM Sat Dec 22 08:22:05 2007 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Sat, 22 Dec 2007 10:22:05 -0600 Subject: Zoom to location by name or other parameter using cgi mapserv In-Reply-To: Message-ID: Ben (and Richard), I know I've been sounding like a broken record on the list lately with regard to GeoMoose, but . . . :c) In one of the Demo datasets that is included with the Windows (MS4W) version of GeoMoose, there is a selection and highlighting example already set up for use with MapServer. The GeoMoose client framework utilizes the INCLUDE option for MapServer mapfiles to a rather high degree, and each of these capabilities have been included in the demo as MapFile template fragments that are used to achieve the (your) results, both for zooming and highlighting. There was even recently (within the last month) a how-to put together on the subject that was posted to the GeoMoose site. See: http://www.geomoose.org/moose/documentation/how-tos/how-to-add-a-text-box-search?searchterm=zoom+to This is a pretty good description of how MapServer works it's magic for lookups too. Further, if you still want go the route of pre-defining a zoom-to URL, GeoMoose has a facility for this as well, there is a tool for doing a Jump-to action that can be pre-populated, you can even include more than one if needed. You can get more info about setting this up in the MAPBOOK documentation at: http://www.geomoose.org/moose/documentation/configuration-guides/xml-mapbook-configuration/ Specifically, look at the tag set for details. bobb Richard Greenwood wrote: > On Dec 21, 2007 6:18 AM, Ben Madin wrote: > >> Thanks for your help Richard, I think I am closer, but I haven't got it yet >> to the point I can write it up! >> >> After struggling to work out the validation thing, I can run the script, but >> as soon as I use mode=itemquery I return a list of locations, and a >> querymap, beautifully shrunk down to show only the polygon I am interested >> in. >> >> However, I was hoping to be able to use this function in the main window - >> as an example say I was looking for roadside stops by name, it could then >> "zoom" me to the one I wanted, and I could continue panning or zooming. >> >> >> http://remote.local/cgi-bin/mapserv?layer=coastline&layer=roads&layer=location >> &layer=stops&mode=itemquery&qlayer=stops&qstring=gid=342 >> &map=%2FLibrary%2FWebServer%2FDocuments%2Froads%2Froads.map&mapext=shapes&iw=650&ih=550 >> >> but if I use mode=browse, I just get my normal interface, with a quarter of >> Australia to zoom in from! >> >> I'm guessing the better option may just be to make the select list with the >> extents of each object, queried from the database, so when the form is >> submitted that is the mapext value. >> > > The trick to getting the query result into your main map is to make > the TEMPLATE for the query layer be the main map. So in your map file > the template for 'stops' should be whatever your main map html file > is. > > A couple more tricks. Sometimes you will need to have two versions of > your 'stops' layer with different templates. The first "stops" layer > would have a template for displaying attribute data and the style of > that layer would be the regular default style. Then the second layer, > we'll call "stops_spatial" has the main map defined as the template, > it has a FILTER %gid% so that it only shows the selected object(s) and > the style ewould be something bright and bold to show the object. > > Another trick. If you want to display more than selected object in one > map (as opposed to several maps each just showing one object) then > instead of putting the main map html in the template, put it in the > HEADER for your "stops" or "stops_spatial" layer, and define an empty > html file for the template. > > You can see an example of this at: http://www2.tetonwyo.org/mapserver/ > Select the "Property Search" link near the bottom of the page. In the > "Search by Owner" "Last Name" enter 'Smith'. This will give you a > list, click the "Map It" link. > > HTH, > Rich > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at NEOGEO-ONLINE.NET Sat Dec 22 09:58:56 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Sat, 22 Dec 2007 18:58:56 +0100 Subject: World Files - Defining Image Rotation In-Reply-To: Message-ID: Hi, It doesn't help so much on the precise point of rotation parameters. I've had the same problem few days ago, and despite many tests I didn't manage to get a proper rotated image. I fixed that with a "solid" rotation, set into the image file. But I'm also interested by that approach. What are the units of rotation parameters ? I think it's radians, but maybe directly cos and sin of angle in radian which would be more adequate tu use in the six parameters transformation... Is it counter-clockwise (i.e. trigonometric) direction ? is the first one x or y rotation term ? The ESRI support page (http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=17489) is useless. the best info I've found are here : http://www.omg.unb.ca/~jonnyb/processing/geotiff_tifw_format.html but I haven't tried yet. Guillaume From ed at TOPOZONE.COM Sat Dec 22 12:46:48 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 22 Dec 2007 15:46:48 -0500 Subject: World Files - Defining Image Rotation In-Reply-To: A<6246727221874A4FB8D3F9BBC37D9BD5015AD408@s-sp22.pca.state.mn.us> Message-ID: David - Normally a georeferenced image uses a coordinate system such that every pixel on the top row, for example, has the same Y coordinate, and every pixel on the left column has the same X coordinate. Non-zero rotational parameters in the world file indicate that this is not correct, and show how to compute the X and Y coordinates of any pixel in the image starting from the top left (as usual). Remember that this is a calculation of what those coordinates ARE, not what you want them to be. This may be the opposite sense of the rotation angle from what you expect; you may be describing a "square" image that has been rotated 43 degrees CLOCKWISE, so the CCW rotation is performed as the file is read. But I have no real world experience with such files. The second and third lines should be the X and Y pixel resolutions times sin(angle), while the first and fourth should be the X and Y pixel resolutions times cos(angle). You will probably need to fiddle with the signs of the second and third lines to get things to work, assuming the software you're using reads them at all! And the fourth line is very likely to be a negative number (not positive, as you show below). Let us know what happens! - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Saturday, December 22, 2007 12:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] World Files - Defining Image Rotation After spending a lot of time with my friend Google, I have come to the conclusion that documentation on how to calculate the rotation parameters of a world file is very hard to find. I have an image that I would like to georeference and rotate using a world file. If I want to rotate the image 43 degrees counter-clockwise, how do I go about calculating the rotation parameters in the world file? Here are the params that I have already determined 0.177959962 pixel size x direction rotation x term rotation y term 0.177941345 pixel size y direction 583930.6469 ul xcoord 4895626.67 ul ycoord Thanks, David. From ed at TOPOZONE.COM Sat Dec 22 12:48:54 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 22 Dec 2007 15:48:54 -0500 Subject: World Files - Defining Image Rotation In-Reply-To: A Message-ID: David - I just read Flavio's note and I think the equations in the article he indicates should be very helpful! - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Flavio Hendry Sent: Saturday, December 22, 2007 3:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] World Files - Defining Image Rotation Hi David maybe this helps: http://en.wikipedia.org/wiki/World_file Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at 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: "Fawcett, David" To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Fri, 21 Dec 2007 23:34:36 -0600 Subject: [UMN_MAPSERVER-USERS] World Files - Defining Image Rotation > After spending a lot of time with my friend Google, I have come to > the conclusion that documentation on how to calculate the rotation > parameters of a world file is very hard to find. > > I have an image that I would like to georeference and rotate using a > world file. If I want to rotate the image 43 degrees > counter-clockwise, how do I go about calculating the rotation > parameters in the world file? > > Here are the params that I have already determined > > 0.177959962 pixel size x direction > rotation x term > rotation y term > 0.177941345 pixel size y direction > 583930.6469 ul xcoord > 4895626.67 ul ycoord > > Thanks, > > David. From dnuttall at DNLT.COM Sat Dec 22 18:38:15 2007 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Sat, 22 Dec 2007 20:38:15 -0600 Subject: How-to modify DATA in LAYER with PHP mapscript? Message-ID: I've been able to generate a map using the OGR CONNECTIONTYPE to pull data from a MySQL table. Each record contains the geometry and extents and I've figured out how to set the extents before drawing the map. However, if I could dynamically modify the DATA element of a layer's CONNECTION, the end result would be much better. When I dump the $map array, I don't see an element that corresponds to the CONNECTIONTYPE or the DATA string for the OGR connection. I'd be grateful if someone could post the equivalent to what I use to change the EXTENT for the current map. I use something like this: setExtent($row['x1'],$row['y1'],$row['x2'],$row['y2']); $image->$map->draw(); // then show the result ?> I'm terribly illiterate when it comes to O-O stuff, so if you care to help, the more explanation the better for me!!! Thanks in advance. Dave Nuttall San Antonio, Texas From ben at REMOTEINFORMATION.COM.AU Sun Dec 23 17:50:18 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Mon, 24 Dec 2007 10:50:18 +0900 Subject: Zoom to location by name or other parameter using cgi mapserv In-Reply-To: Message-ID: Thanks Richard (& Bob), On 21/12/2007, at 11:02 PM, Richard Greenwood wrote: > The trick to getting the query result into your main map is to make > the TEMPLATE for the query layer be the main map. So in your map file > the template for 'stops' should be whatever your main map html file > is. This was the trick I needed! A little bit of tweaking, and now it is nearly perfect - so I will endeavour to write something for the howto site. What would be an appropriate heading for this - "Reverse queries"? Some other issues that struck me during this process : Expressions - there used to be a page on this on the MapServer site, but I can't find it now - is it just me. Subsequent to this - Validation Patterns - the need for this this snuck past me - I confess I just installed William Kyngesbury's binaries for 5, without reading the changes. However, it deserves a special mention for the useful error message, which give me enough of a hint to be able to find out what I needed to do! METADATA layer_title "Farm Boundaries" qstring_validation_pattern '\d*' END cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From richard.greenwood at GMAIL.COM Sun Dec 23 21:09:33 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 23 Dec 2007 22:09:33 -0700 Subject: Zoom to location by name or other parameter using cgi mapserv In-Reply-To: <9105605F-9024-4AD0-BA71-FD407AB79E9B@remoteinformation.com.au> Message-ID: On Dec 23, 2007 6:50 PM, Ben Madin wrote: > Thanks Richard (& Bob), > > On 21/12/2007, at 11:02 PM, Richard Greenwood wrote: > > > The trick to getting the query result into your main map is to make > > the TEMPLATE for the query layer be the main map. So in your map file > > the template for 'stops' should be whatever your main map html file > > is. > > This was the trick I needed! A little bit of tweaking, and now it is > nearly perfect - so I will endeavour to write something for the howto > site. What would be an appropriate heading for this - "Reverse queries"? I think something like "zoom to selection" might be closer to a phrase that people would be searching for. > Some other issues that struck me during this process : Better start a new thread for that... > Expressions - there used to be a page on this on the MapServer site, > but I can't find it now - is it just me. Subsequent to this - > > Validation Patterns - the need for this this snuck past me - I > confess I just installed William Kyngesbury's binaries for 5, without > reading the changes. However, it deserves a special mention for the > useful error message, which give me enough of a hint to be able to > find out what I needed to do! > > METADATA > layer_title "Farm Boundaries" > qstring_validation_pattern '\d*' > END > > cheers > > Ben > > -- > > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > Out here, it pays to know... > > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From thomas.bonfort at GMAIL.COM Mon Dec 24 02:48:59 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Mon, 24 Dec 2007 11:48:59 +0100 Subject: AGG renderer in conjunction with WMS TRANSPARENT=true parameter In-Reply-To: <14412307.post@talk.nabble.com> Message-ID: hi bug http://trac.osgeo.org/mapserver/ticket/2436 addresses this issue and should be included in 5.2 regards, thomas On Dec 19, 2007 8:27 AM, P?l Kristensen wrote: > Hi! > > The AGG renderer it self can not produce 8bit output, but as stated in the > RFC GD is actually used to handle the images. The quantize method for > reducing color depth from 24bits to 8bits works quite well with the AGG > renderer, but not if the WMS parameter TRANSPARENT is set to true. I guess > this has something to do with the fact that GD interprets the alpha channel > > backwards, hence the resulting image is in some way "broken". But for some > reason, I don't know why, this is not the case when 24bit images is > delivered the transparency works perfectly well. > > Regards > P?l Kristensen > > > > Travis Kirstine wrote: > > > > Sorry Pal I have no advice just a comment. We were considering > > upgrading to ms 5.0 with agg but never did do to the statment on the > > mapserver site "The AGG driver only supports RGB output at this time." > > on the Support for Anti-Grain Geometry (AGG) Rendering Engine > > documents. > > > > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-32 > > > > I guess this in not correct? > > > > Travis > > > > > > > > > > > > > > > > > > > > > > > > > > On 17/12/2007, P?l Kristensen wrote: > >> Hi! > >> > >> I'm trying to use the AGG renderer and reduce the resulting 24bits image > >> to > >> 8bits by using the quantize method. This works quite well when the WMS > >> parameter TRANSPARENT=false, but when set to true the BGCOLOR parameter > >> seems to be ignored and the quality of the rendered vectors clearly > >> degrades. > >> > >> When requesting 24bit images the TRANSPARENT parameter works correctly. > >> See > >> the examples below: > >> > >> 24bit png, transparent true -> OK: > >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=true > >> > >> 24bit png, transparent false -> OK: > >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png;%20mode=24bit&BGCOLOR=0xffffff&TRANSPARENT=false > >> > >> 8bit png, transparent false -> OK: > >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=false > >> > >> 8bit png, transparent true -> NOT OK: > >> http://159.162.103.7/cgi-bin/NorgeTopo?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=62423.20,6794915.15,66383.94,6797147.88&LAYERS=Hoydekurver&STYLES=&WIDTH=926&HEIGHT=522&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=true > >> > >> This is the output formats from the mapfile: > >> ... > >> OUTPUTFORMAT > >> NAME "png8bit" > >> DRIVER "AGG/PNG" > >> MIMETYPE "image/png" > >> EXTENSION "png" > >> FORMATOPTION "QUANTIZE_FORCE=ON" > >> FORMATOPTION "QUANTIZE_COLORS=256" > >> FORMATOPTION INTERLACE=OFF > >> END > >> > >> OUTPUTFORMAT > >> NAME "png24bit" > >> DRIVER "AGG/PNG" > >> MIMETYPE "image/png; mode=24bit" > >> EXTENSION "png" > >> IMAGEMODE "RGB" > >> FORMATOPTION INTERLACE=OFF > >> END > >> > >> OUTPUTFORMAT > >> NAME "jpeg24" > >> DRIVER "AGG/JPEG" > >> MIMETYPE "image/jpeg" > >> EXTENSION "jpg" > >> FORMATOPTION "QUALITY=60" > >> END > >> ... > >> > >> Regards, > >> P?l Kristensen > >> -- > >> View this message in context: > >> http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14370293.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > > > > > > -- > > Travis K. > > > > Toronto, Canada > > ------------------------------------------------------------ > > "She knows there's no success like failure > > And that failure's no success at all." > > -Bob Dylan- > > ------------------------------------------------------------ > > > > > > -- > View this message in context: http://www.nabble.com/AGG-renderer-in-conjunction-with-WMS-TRANSPARENT%3Dtrue-parameter-tp14370293p14412307.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From dmorissette at MAPGEARS.COM Mon Dec 24 04:35:42 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 24 Dec 2007 07:35:42 -0500 Subject: How-to modify DATA in LAYER with PHP mapscript? In-Reply-To: Message-ID: Dave Nuttall wrote: > I've been able to generate a map using the OGR CONNECTIONTYPE to pull data > from a MySQL table. > > Each record contains the geometry and extents and I've figured out how to > set the extents before drawing the map. However, if I could dynamically > modify the DATA element of a layer's CONNECTION, the end result would be > much better. > > When I dump the $map array, I don't see an element that corresponds to the > CONNECTIONTYPE or the DATA string for the OGR connection. > The CONNECTIONTYPE, CONNECTION and DATA elements are members of the layerobject, not the map object. Try something like this:: $layer = $map->getLayerByName('yourlayername'); $layer->set('connectiontype', MS_OGR); $layer->set('connection', 'new value'); $layer->set('data', 'new value'); > I'd be grateful if someone could post the equivalent to what I use to change > the EXTENT for the current map. I use something like this: > $row=mysql_fetch_assoc($result); > $map->setExtent($row['x1'],$row['y1'],$row['x2'],$row['y2']); > $image->$map->draw(); > // then show the result > ?> > Using $map->setExtent() is the right way to go. Maybe I misunderstood the question or what you're trying to achieve? Daniel -- Daniel Morissette http://www.mapgears.com/ From aileen_heal at YAHOO.COM Mon Dec 24 05:41:33 2007 From: aileen_heal at YAHOO.COM (Aileen Heal) Date: Mon, 24 Dec 2007 05:41:33 -0800 Subject: Problems with gdaltindex Message-ID: Hi I have noticed that gdaltindex sometimes seems to locate my image in the wronge place. I have checked the georeference file and can't seem to find anything wrong with it. Any ideas? I am using ecw images in British Nation Grid projection. When using it with MrSID files in British Nation Grid projection I get errors saying the files are in a different projections - not sure why as they are all in the same projection. Could be a related problem. All help/suggestions gratefully received. -- View this message in context: http://www.nabble.com/Problems-with-gdaltindex-tp14487807p14487807.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dnuttall at DNLT.COM Wed Dec 26 04:17:33 2007 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Wed, 26 Dec 2007 06:17:33 -0600 Subject: How-to modify DATA in LAYER with PHP mapscript? Message-ID: That's VERY helpful, Daniel! Thanks! Would it be correct to think that if you need to maintain the changes the variables should become $_SESSION variables or is it better practice to create/maintain $GLOBALS for the portions of a static *.map file that get changed on-the-fly? Dave From guillaume.sueur at NEOGEO-ONLINE.NET Wed Dec 26 07:56:34 2007 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Wed, 26 Dec 2007 16:56:34 +0100 Subject: World Files - Defining Image Rotation In-Reply-To: <476D5060.40801@neogeo-online.net> Message-ID: Hi, After some test, I confirm the right way to write tfw files for rotated images is the one described here : http://www.omg.unb.ca/~jonnyb/processing/geotiff_tifw_format.html which I can sum up with : first line of tfw file : pixel resolution * cos(rotation angle in radians) 2nd line : -pixel resolution * sin(rotation angle) 3rd line : -pixel resolution * sin(rotation angle) 4th line : -pixel resolution * cos(rotation angle) 5th and 6th lines still x and y of top left corner. Hope that helps, Happy holidays to all mapserver-users lists readers Guillaume Sueur a ?crit : > Hi, > > It doesn't help so much on the precise point of rotation parameters. > I've had the same problem few days ago, and despite many tests I didn't > manage to get a proper rotated image. I fixed that with a "solid" > rotation, set into the image file. But I'm also interested by that approach. > > What are the units of rotation parameters ? I think it's radians, but > maybe directly cos and sin of angle in radian which would be more > adequate tu use in the six parameters transformation... > > Is it counter-clockwise (i.e. trigonometric) direction ? > > is the first one x or y rotation term ? The ESRI support page > (http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=17489) > is useless. > > the best info I've found are here : > http://www.omg.unb.ca/~jonnyb/processing/geotiff_tifw_format.html > > but I haven't tried yet. > > Guillaume > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 65 58 88 82 Site web : http://www.neogeo-online.net From nelson.guda at GMAIL.COM Wed Dec 26 14:04:48 2007 From: nelson.guda at GMAIL.COM (nelson guda) Date: Wed, 26 Dec 2007 16:04:48 -0600 Subject: WFS mapserver Message-ID: Hi all, I am trying to set up mapserver as a WFS server. I am getting the correct response from Get Capabilities, but when I try a sample call I keep getting a null result. All I want to be able to do is find the id (feature name "ID") of a polygon that contains a given point. I'll put all the relevant info below. I can't figure out what is wrong. Can anybody help out? thanks much in advance, nelson Here is the WFS call that I've been trying: This is the filter: Geometry-112.96142578125,45.521743896993634 This is the result I get: missing Here is the mapfile that I set up: ################# MAP NAME "roadless" STATUS ON SIZE 800 600 STATUS ON EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824 SHAPEPATH "../shapefiles" FONTSET ../fonts/fonts.txt PROJECTION "init=epsg:54004" END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" METADATA "wfs_version" "1.0.0" "wfs_title" "ira_wfs" "wfs_onlineresource" "http://thewildwoodstudios/cgi-bin/mapserv? map=../roadlessland/maps/ira_q.map&" "wfs_srs" "EPSG:4326 EPSG:54004" END END LAYER NAME "ira" TYPE POLYGON CONNECTIONTYPE WFS CONNECTION "http://thewildwoodstudios/cgi-bin/mapserv?map=../ roadlessland/maps/ira_q.map&" METADATA "wfs_version" "1.0.0" "wfs_title" "ira" "wfs_typename" "ira" "gml_include_items" "all" END PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD27" END DUMP TRUE DATA ira_by_name_nad83 STATUS ON CLASS STYLE COLOR 255 0 0 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhoward at AKIMEKATECH.COM Wed Dec 26 14:17:36 2007 From: mhoward at AKIMEKATECH.COM (Mark Howard) Date: Wed, 26 Dec 2007 12:17:36 -1000 Subject: ECW Pyramid In-Reply-To: A<7efce0ed0712120408q3f8fe7a0m5a52204543c696e0@mail.gmail.com> Message-ID: You should not need to pyramid ECW files - unless you have a lot of them in a viewable extent. While a single 25Gb ECW file for the world @25 meter resolution gives good performance, 1000 25Mb tiled files would perform poorly at a world view. You CAN create pyramids using a URL grabber in a script pointed to your WMS server. Mark ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jos? Ram?n L?pez Sent: Wednesday, December 12, 2007 2:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ECW Pyramid Hi List. I have populated a raster layer using a Tileindex made from ECW Files. This layer is visible 1:1000 scale with MAXSCALE parameter. As is not possible to create ECW pyramids. Whe have got another raster layer resampling these ECW files. We would like to populate a single raster layer that uses one tile index created from the resampled ECW, visible at 1:10000 scale (and smaller), and another tileindex from the original ECW files visible at bigger scales. Is it possible? If not, please tell me how could I do something similar. Tnaks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelson.guda at GMAIL.COM Wed Dec 26 14:50:57 2007 From: nelson.guda at GMAIL.COM (nelson guda) Date: Wed, 26 Dec 2007 16:50:57 -0600 Subject: WFS mapserver problem II Message-ID: Here is some more information on my problem: When I do a "GetCapabilities" (below), I get what looks like a good response except that feature type list is empty: request: When I to a "GetFeature" (below), I get this response: msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -6 downloading WFS layer ira msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 6 (Couldn't resolve host 'thewildwoodstudios') for http://thewildwoodstudios/cgi-bin/ mapserv?map=../roadlessland/maps/ira_q.map& request: I do have this mapserver set up and working for WMS (you can see an example here: Many thanks for any help that people can give me. nelson Hi all, I am trying to set up mapserver as a WFS server. I am getting the correct response from Get Capabilities, but when I try a sample call I keep getting a null result. All I want to be able to do is find the id (feature name "ID") of a polygon that contains a given point. I'll put all the relevant info below. I can't figure out what is wrong. Can anybody help out? thanks much in advance, nelson Here is the WFS call that I've been trying: This is the filter: Geometry-112.96142578125,45.521743896993634 This is the result I get: missing Here is the mapfile that I set up: ################# MAP NAME "roadless" STATUS ON SIZE 800 600 STATUS ON EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824 SHAPEPATH "../shapefiles" FONTSET ../fonts/fonts.txt PROJECTION "init=epsg:54004" END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" METADATA "wfs_version" "1.0.0" "wfs_title" "ira_wfs" "wfs_onlineresource" "http://thewildwoodstudios/cgi-bin/mapserv? map=../roadlessland/maps/ira_q.map&" "wfs_srs" "EPSG:4326 EPSG:54004" END END LAYER NAME "ira" TYPE POLYGON CONNECTIONTYPE WFS CONNECTION "http://thewildwoodstudios/cgi-bin/mapserv?map=../ roadlessland/maps/ira_q.map&" METADATA "wfs_version" "1.0.0" "wfs_title" "ira" "wfs_typename" "ira" "gml_include_items" "all" END PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD27" END DUMP TRUE DATA ira_by_name_nad83 STATUS ON CLASS STYLE COLOR 255 0 0 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu Dec 27 04:37:29 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 27 Dec 2007 07:37:29 -0500 Subject: WFS mapserver In-Reply-To: A<91CEF12E-4134-46AC-A613-D5B5D701E18A@gmail.com> Message-ID: Is the mapfile below meant to serve the WFS layers directly from the data? Or connect to remote WFS layers? If the former, then you need to define the data connection (i.e. shapefile, OGR, etc.). If the latter, then you need to correctly define your host in CONNECTION, which currently does not resolve. ..Tom ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of nelson guda Sent: 26 December, 2007 5:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WFS mapserver Hi all, I am trying to set up mapserver as a WFS server. I am getting the correct response from Get Capabilities, but when I try a sample call I keep getting a null result. All I want to be able to do is find the id (feature name "ID") of a polygon that contains a given point. I'll put all the relevant info below. I can't figure out what is wrong. Can anybody help out? thanks much in advance, nelson Here is the WFS call that I've been trying: This is the filter: Geometry-112.96142578125,45.521743896993634 This is the result I get: missing Here is the mapfile that I set up: ################# MAP NAME "roadless" STATUS ON SIZE 800 600 STATUS ON EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824 SHAPEPATH "../shapefiles" FONTSET ../fonts/fonts.txt PROJECTION "init=epsg:54004" END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" METADATA "wfs_version" "1.0.0" "wfs_title" "ira_wfs" "wfs_onlineresource" "http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_ q.map&" "wfs_srs" "EPSG:4326 EPSG:54004" END END LAYER NAME "ira" TYPE POLYGON CONNECTIONTYPE WFS CONNECTION "http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_ q.map&" METADATA "wfs_version" "1.0.0" "wfs_title" "ira" "wfs_typename" "ira" "gml_include_items" "all" END PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD27" END DUMP TRUE DATA ira_by_name_nad83 STATUS ON CLASS STYLE COLOR 255 0 0 END END END From David.Fawcett at STATE.MN.US Thu Dec 27 06:50:08 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 27 Dec 2007 08:50:08 -0600 Subject: World Files - Defining Image Rotation Message-ID: Wow Guillaume, thank you for the great source. This is exactly what I was looking for. Thanks to Ed and the others for providing info as well. As Ed said, I have square images that I need to rotate to the 'north-up' orientation. For example, the plane was flying to the south west and the camera orientation is fixed to the airplane. I have image centers and a scale, so I am calculating an original image upper-left corner. I am then using coordinate geometry to calculate where the upper-left corner will be when the image is rotated. That gives me lines 5 & 6. I plan to then use the info from the source that you provided to calculate the other lines of the world file. Most of the users will be viewing the images in a proprietary desktop GIS that supports rotation via world files. Thanks, David. -----Original Message----- From: UMN MapServer Users List on behalf of Guillaume Sueur Sent: Wed 12/26/2007 9:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] World Files - Defining Image Rotation Hi, After some test, I confirm the right way to write tfw files for rotated images is the one described here : http://www.omg.unb.ca/~jonnyb/processing/geotiff_tifw_format.html which I can sum up with : first line of tfw file : pixel resolution * cos(rotation angle in radians) 2nd line : -pixel resolution * sin(rotation angle) 3rd line : -pixel resolution * sin(rotation angle) 4th line : -pixel resolution * cos(rotation angle) 5th and 6th lines still x and y of top left corner. Hope that helps, Happy holidays to all mapserver-users lists readers Guillaume Sueur a ?crit : > Hi, > > It doesn't help so much on the precise point of rotation parameters. > I've had the same problem few days ago, and despite many tests I didn't > manage to get a proper rotated image. I fixed that with a "solid" > rotation, set into the image file. But I'm also interested by that approach. > > What are the units of rotation parameters ? I think it's radians, but > maybe directly cos and sin of angle in radian which would be more > adequate tu use in the six parameters transformation... > > Is it counter-clockwise (i.e. trigonometric) direction ? > > is the first one x or y rotation term ? The ESRI support page > (http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=17489) > is useless. > > the best info I've found are here : > http://www.omg.unb.ca/~jonnyb/processing/geotiff_tifw_format.html > > but I haven't tried yet. > > Guillaume > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 65 58 88 82 Site web : http://www.neogeo-online.net From marcos at BURKE.ATH.CX Thu Dec 27 06:52:10 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 27 Dec 2007 15:52:10 +0100 Subject: Reprojection issue (kind of solved) Message-ID: Hello I am using ms as packaged by ubuntu LTS simif at webdgb2:~/src/simif$ mapserv -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I use python mapscript to generate a map that needs to be served in different epsg numbers (32628,32629,32630). I have no problem with vector (postgis) layers, but I get incorrect results when I try to access a 32630 layer reprojected to 32629. It works fine the first time, but if I access this layer without reprojection, then the next time I ask for the 32629 reprojected layer it does not get reprojected. There is no problem with the 32628 layers (apparently some kind of no-reproject flag kicks in when the map proj is the same as the layer proj). I have found that I can avoid this behavior by re-setting the layer projection: #First, I set the map proj wms_map.setProjection(proj) for each layer: # Apparently a noop, but it works for me capaMS.setProjection(capaMS.getProjection()) I have tried to understand the C code, but I have given up, so I hope that someone finds this message useful to fix the C code or to use this trick herself. Cheers From Bob.Basques at CI.STPAUL.MN.US Thu Dec 27 15:05:02 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 27 Dec 2007 17:05:02 -0600 Subject: Legends and setting fonts for . . . Message-ID: All, I've been working on improving some legends and ran into a few problems. I managed to get through them, but figured I would send this little note to the list about a couple of items. It's not obvious from the LEGEND docs what the LABEL tag is supposed to do inside of the LEGEND tags. Suggested remedy, add a little more to the LEGEND doc's, or call the action something else besides LABEL, maybe LABELS or even plain old FONT would have worked better as a description while inside of the LEGEND tags. Can anyone go in there and edit things? Is there a way to add in a logo to a LEGEND? I thought about a few ways of tricking MapServer into doing it, but I would also like to have some control over where the logo ended up being positioned in the Legend, our use case would be to place a symbol, at a fairly large size in the Legend output, preferably to the right of the regular legend output. I think I could go another route with some of this and build the Logo image with a separate call to MapServer, but the LEGEND container is an obvious way to group a logo with a set of legend chip entries, which the next question will relates to. I know this is going to sound a bit left of field at first, but hang in here with me a for a couple of minutes, anyone know of a way to pass an Image Map back for a raster legend? Ideally I would like to be able to link to the legend chip and/or text for some Metadata URL's, having the same available for the logo would also be desirable for the same reason. Some of the above might be out there with respect to the operation of MapServer already in one form or another, but the grouping of these things inside of the LEGEND object has many benefits, one of them being, that a layer owner/publisher has all the cartogrphy config in one location vs building an additional logo image to place next to the Legend image. The ImageMap for Legends is sort of meant as a halfway point between HTML & Raster. Also, I think I may be describing a more generalized approach to the building of the Raster Legend, in that most, if not all, LAYER drawing capabilities (including imagemap generation) be implemented within the LEGEND object as well. What if one could include a Thumbnail of a map in the legend, all sorts of things I could do with something like that for example :c) I'm speaking to the use of MapServer CGI above, with a separate non-embedded image, so I shouldn't offend too many folks with my wild ideas, but I should also state that these ideas would also help with our GeoMoose framework client project considerably. The GeoMoose interface uses a separate Legend call for each Layer or group of layers, and the logo idea was squarely aimed at providing a feedback of informational link to a Publishing authority for a layer or group of layers in the interface. Thanks bobb P.S. BTW, I do have some funds available to do this work if it's deemed acceptable to try, even in a provisional way to begin with. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelsong at MAIL.UTEXAS.EDU Fri Dec 28 06:41:32 2007 From: nelsong at MAIL.UTEXAS.EDU (Nelson Guda) Date: Fri, 28 Dec 2007 08:41:32 -0600 Subject: MAPSERVER-USERS Digest - 26 Dec 2007 to 27 Dec 2007 (#2007-353) In-Reply-To: Message-ID: Hi Tom, Thanks for your reply. The mapfile is to serve the WFS layers directly from the data. I have the DATA connection defined in the layer as: DATA ira_by_name_nad83 where "ira_by_name_nad83" is the name of the shapefile. And I have the shapepath at the head of the mapfile as: SHAPEPATH "../shapefiles" As it is, the shapepath is relative to the mapfile. Should it be relative to the mapserv cgi? I also noticed that the CONNECTION was incorrectly defined and fixed it. After I did that, running the test query took a long time, but still returned a null result (for a point that should return something). Also, how do you define a bbox in a wfs query? Can you put it before the in standard wms query style? thanks much, nelson On Dec 28, 2007, at 12:01 AM, MAPSERVER-USERS automatic digest system wrote: > There are 4 messages totalling 436 lines in this issue. > > Topics of the day: > > 1. WFS mapserver > 2. World Files - Defining Image Rotation > 3. Reprojection issue (kind of solved) > 4. Legends and setting fonts for . . . > > ---------------------------------------------------------------------- > > Date: Thu, 27 Dec 2007 07:37:29 -0500 > From: "Kralidis,Tom [Burlington]" > Subject: Re: WFS mapserver > > Is the mapfile below meant to serve the WFS layers directly from the > data? Or connect to remote WFS layers? If the former, then you > need to > define the data connection (i.e. shapefile, OGR, etc.). If the > latter, > then you need to correctly define your host in CONNECTION, which > currently does not resolve. > > ..Tom > > From crystal.li at IDISIS.COM Fri Dec 28 12:56:38 2007 From: crystal.li at IDISIS.COM (Crystal Li) Date: Fri, 28 Dec 2007 13:56:38 -0700 Subject: PostgreSQl and PHP array Message-ID: Hello All, I have a question for array, I am using: - Apache version 2.0.58 - PHP version 4.4.3-dev - MapServer 4.8.3 CGI and MapScript (CSharp, Java, PHP, Python) In PostgreSQL database, I create a array called purchase_factor varchar[], this arrary should get data from checkbox. I tried the different scripts: 1) $purchase_factor = array ("clim" => "!isset($_POST['ChkHomeFactor_clim']? NULL: pg_escape_string($_POST ['ChkHomeFactor_clim']))","dist" => "!isset($_POST['ChkHomeFactor_dist']? NULL: pg_escape_string($_POST ['ChkHomeFactor_dist']))"); and foreach ($purchase_factor as $key => $value) { $result = pg_execute($db, purchase_factor($key, $value)); if (!$result) { die("Error in SQL query (country '$key'): " . pg_last_error()); } } 2) $purchase_factor = array(); array_push($purchase_factor, "!isset($_POST['ChkHomeFactor_clim']? NULL: pg_escape_string($_POST['ChkHomeFactor_clim']))", "!isset($_POST['ChkHomeFactor_dist']? NULL: pg_escape_string($_POST['ChkHomeFactor_dist']))", "!isset($_POST['ChkHomeFactor_atmo']? NULL: pg_escape_string($_POST['ChkHomeFactor_atmo']))", "!isset($_POST['ChkHomeFactor_recr']? NULL: pg_escape_string($_POST['ChkHomeFactor_recr']))", "!isset($_POST['ChkHomeFactor_fami']? NULL: pg_escape_string($_POST['ChkHomeFactor_fami']))", "!isset($_POST['ChkHomeFactor_priv']? NULL: pg_escape_string($_POST['ChkHomeFactor_priv']))", "!isset($_POST['ChkHomeFactor_envi']? NULL: pg_escape_string($_POST['ChkHomeFactor_envi']))", "!isset($_POST['ChkHomeFactor_cost']? NULL: pg_escape_string($_POST['ChkHomeFactor_cost']))", "!isset($_POST['ChkHomeFactor_area']? NULL: pg_escape_string($_POST['ChkHomeFactor_area']))", "!isset($_POST['ChkHomeFactor_inve']? NULL: pg_escape_string($_POST['ChkHomeFactor_inve']))", "!isset($_POST['ChkHomeFactor_othe']? NULL: pg_escape_string($_POST['ChkHomeFactor_othe']))"); both methods were not working....no error, but the data did not be writen into table.............. and I found online help: *Note: *A limitation of the present array implementation is that individual elements of an array cannot be SQL NULLs. The entire array can be set to NULL, but you can't have an array with some elements NULL and some not. Fixing this is on the to-do list. Since this array get data from a checkbox, it's element might be null. If anyone is familiar with this question and give me some suggest, I really appreciate your time and help. All the best wishes for you all in the new year! Crystal -- ========================= Crystal Li Systems Analyst Idisis, Inc. 430, 318 11th Avenue S.E. Calgary, Alberta T2G 0Y2 www.idisis.com E-mail: crystal.li at idisis.com Office: (403)670-7351 Fax: (403) 670-7359 -------------- next part -------------- An HTML attachment was scrubbed... URL: From giuseppe.derossi at EMAIL.IT Fri Dec 28 20:04:18 2007 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Sat, 29 Dec 2007 05:04:18 +0100 Subject: strange scalebar behaviour Message-ID: Hi to all, I don't understand how can I set the settings in order to have a linear standard scale which normalized measure. That is: If I change the value of the scale by typing it I obtain strange value for the scale bar and even if I set a steady measure in pixel in the map file the length(in pixel) can change. This is an example scale scalebar 10 1 100 10 1000 120 2000 240 4000 480 8000 970 10000 1200 12000 1400 14000 1700 15000 1800 20000 2400 24000 2900 28000 3400 30000 3600 32000 3700 33000 3700 I'd like to have a scalebar which takes 1 cm per interval for 10 interval that is 10 cm which can represent 1, 10, 100, 1000 meter according to the set value. How can I get this ?(The beaviour of scalebar is also affected by the mapsize) Thanks to everybody Giu -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Un prestito supertasso zero spese? Oggi con Finatel ? realt?. Puoi ottenere fino a 50.000 ? anche in 24 ore. Scopri Come Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7370&d=20071229 From lethanhx2k at GMAIL.COM Fri Dec 28 23:15:10 2007 From: lethanhx2k at GMAIL.COM (=?UTF-8?Q?L=C3=AA_Vi=E1=BA=BFt_Thanh?=) Date: Sat, 29 Dec 2007 14:15:10 +0700 Subject: Problem in render line symbol Message-ID: Hi all, with Mapserver 4, i use a ttf to symbol a line object. It render correctly. But in Mapserver 5, it does not work correctly, although i tried to use AGG driver (include the figure image). I dont understand why? Does anyone has experience in this problem? Thanks in advance. -- Best regards, Le Viet Thanh -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map5.png Type: image/png Size: 2073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map4.png Type: image/png Size: 1936 bytes Desc: not available URL: From friendvn2000 at YAHOO.COM Sat Dec 29 21:17:50 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Sat, 29 Dec 2007 23:17:50 -0600 Subject: imagepath cleanup Message-ID: Windows: In your image folder, make a bat file that delete all the image files in it Use Schedule Task to implement that bat file at the time you want. From thomas.bonfort at GMAIL.COM Sun Dec 30 01:45:33 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Sun, 30 Dec 2007 10:45:33 +0100 Subject: symbol rendering problem In-Reply-To: <476697E2.8080103@Noaa.gov> Message-ID: this bug was (hopefully) fixed in the mapserver trunk today. could you please confirm once you've been able to test this? regards, thomas On Dec 17, 2007 4:38 PM, Kyle Wilcox wrote: > The problem persists using AGG 24-bit PNG, AGG 8-bit PNG, GD PNG, GD > GIF, GD JPEG. I will file a big report. > > > thomas bonfort wrote: > > I'm guessing this has to do with using negative values in your vector points. > > this looks like an agg rendering, what kind of output do you get using gd? > > > > could you file a bug report on this please? > > > > thanks, > > thomas > > > > On Dec 14, 2007 7:16 PM, Kyle Wilcox wrote: > >> My symbol is defined as follows: > >> > >> Symbol > >> Name 'arrow2' > >> Type VECTOR > >> Filled TRUE > >> Points > >> 1 3 > >> 1 -3 > >> 4 -3 > >> 0 -8 > >> -4 -3 > >> -1 -3 > >> -1 3 > >> 1 3 > >> END > >> END > >> > >> When I rotate the symbol as follows, only the right half of the image is > >> shown. This only happens when ANGLE is '0'. Because the actual values > >> for ANGLE are being pulled from a database, I can't change a '0' > >> appearing there often (when the wind is blowing true north). > >> > >> CLASS > >> NAME "< 12.5 m/s" > >> KEYIMAGE "images/legend/70.png" > >> EXPRESSION ([wind_speed] <= 12.5) > >> STYLE > >> SYMBOL "arrow2" > >> ANGLE 0 > >> COLOR 255 52 0 > >> OUTLINECOLOR 0 0 0 > >> SIZE 3 > >> END > >> END > >> > >> > >> Here is a link to a map that is showing the problem: > >> > >> http://155.206.18.162/mapping/map/map.phtml?dg=states,counties,nws&me=-74.172318568083,38.120309358963,-73.935856657745,38.298565260602&language=en > >> > >> -- > >> > >> Kyle Wilcox > >> NOAA Chesapeake Bay Office > >> 410 Severn Avenue > >> Suite 107A > >> Annapolis, MD 21403 > >> office: (410) 295-3151 > >> Kyle.Wilcox at noaa.gov > >> > >> "It is from the wellspring of our despair and the places > >> that we are broken that we come to repair the world." > >> - Murray Waas > >> > > -- > > > Kyle Wilcox > NOAA Chesapeake Bay Office > 410 Severn Avenue > Suite 107A > Annapolis, MD 21403 > office: (410) 295-3151 > Kyle.Wilcox at noaa.gov > > "It is from the wellspring of our despair and the places > that we are broken that we come to repair the world." > - Murray Waas > From nelson.guda at GMAIL.COM Mon Dec 31 07:17:12 2007 From: nelson.guda at GMAIL.COM (nelson guda) Date: Mon, 31 Dec 2007 09:17:12 -0600 Subject: WFS problem solved - projection issue Message-ID: WFS problem solved - projection issue: I was having a problem with getting WFS to work correctly on mapserver. The mapserver WFS was functioning properly (returning the correct info from a GetCapabilities request. However the map did not function properly. Tom Kralidis helped me solve the problem by identifying that I had more than one projection definition in the WFS mapfile - WFS mapfiles will not function with more than one level of projection. Here are some snippets from our exchange: > The data from the shapefile is in NAD 27, GRS80. Which I think is > EPSG 4326. I had the epsg for the mapfile set to 54004, because I > created it for wms output to google maps which uses that projection. - I think it's EPSG:4269: http://spatialreference.org/ref/epsg/4269 > I just realized that I may have the projection wrong - it looks > as though that shapefile is in NAD83. How do I figure out the epsg > for that? - You have a .prj file, which, if exists, defines the coord sys for the data. Eyeballing the .prj file and checking http:// spatialreference.org/ tells me that EPSG:4269 corresponds to this. ********* Key Point ******** Remember, WFS can only output ONE SRS, usually the native SRS of the data. WMS can output MANY SRSs, hence MAP/WEB/METADATA/wms_srs. - Thanks, Tom. At the bottom of this message is the mapfile that Tom created. This is the original mapfile: ########################### MAP NAME "roadless" STATUS ON SIZE 800 600 STATUS ON EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824 SHAPEPATH "../shapefiles" FONTSET ../fonts/fonts.txt PROJECTION "init=epsg:54004" END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" METADATA "wfs_title" "ira_wfs" "wms_srs" "EPSG:4326" END END LAYER NAME "ira" TYPE POLYGON METADATA "wfs_title" "ira" "gml_include_items" "all" "wfs_featureid" "ID" END PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD27" END EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824 DUMP TRUE DATA ira_by_name_nad83 STATUS ON CLASS STYLE COLOR 255 0 0 END END END END ########################### MAP NAME test IMAGETYPE PNG STATUS ON EXTENT -124.409498 18.245724 -65.707153 49.001137 SIZE 500 300 SYMBOLSET "../../etc/symbols/symbols.sym" FONTSET "../../etc/fonts/fonts.txt" IMAGECOLOR 125 125 125 PROJECTION "init=epsg:4269" END DEBUG ON TRANSPARENT ON WEB HEADER "../../etc/templates/query_header.html" FOOTER "../../etc/templates/query_footer.html" IMAGEPATH "../../tmp/" IMAGEURL "/ms_tmp" METADATA "ows_title" "test Web Services" "ows_abstract" "test Web Services" "ows_keywordlist" "kw1,kw2" "ows_service_onlineresource" "http://www.example.org/" "ows_fees" "none" "ows_accessconstraints" "none" # OGC:WMS "wms_feature_info_mime_type" "text/html" "wms_addresstype" "postal" "wms_address" "867 Lakeshore Road" "wms_city" "Burlington" "wms_stateorprovince" "Ontario" "wms_postcode" "L7R-4A6" "wms_country" "Canada" "wms_contactelectronicmailaddress" "tom.kralidis at ec.gc.ca" "wms_contactvoicetelephone" "+01-905-336-4409" "wms_contactfacsimiletelephone" "+01-905-336-4499" "wms_contactperson" "Tom Kralidis" "wms_contactorganization" "Environment Canada" "wms_contactposition" "Senior Systems Scientist" "wms_srs" "EPSG:4326 EPSG:2294 EPSG:2295 EPSG:4267 EPSG:4269 EPSG: 26707 EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG: 26713 EPSG:26714 EPSG:26715 EPSG:26716 EPSG:26717 EPSG:26718 EPSG: 26719 EPSG:26720 EPSG:26721 EPSG:26722 EPSG:26907 EPSG:26908 EPSG: 26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914 EPSG: 26915 EPSG:26916 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920 EPSG: 26921 EPSG:26922 EPSG:42101 EPSG:42304" "wms_attribution_onlineresource" "http://www.example.org/" "wms_attribution_title" "Data from example.org" "wms_attribution_logourl_width" "439" "wms_attribution_logourl_height" "68" "wms_attribution_logourl_format" "image/jpeg" "wms_attribution_logourl_href" "http://mapserver.gis.umn.edu/ logo.jpg" END END QUERYMAP STATUS OFF SIZE 400 300 STYLE HILITE COLOR 255 255 0 END LEGEND LABEL SIZE 10 TYPE TRUETYPE FONT verdana COLOR 0 0 0 END END LAYER NAME "ira" STATUS ON DEBUG ON DATA "ira_by_name_nad83.shp" TYPE POLYGON DUMP TRUE HEADER "ttt.html" TEMPLATE "ttt.html" TOLERANCE 30 METADATA "ows_title" "ira" "ows_abstract" "ira" "ows_keywordlist" "kw1,kw2" "wms_opaque" "0" "ows_metadataurl_type" "FGDC" "wms_metadataurl_format" "text/html" "ows_metadataurl_href" "http://www.example.org/foo.fgdc" "wfs_metadataurl_format" "XML" "gml_include_items" "all" "wfs_featureid" "ID" END CLASS NAME " " COLOR 0 255 0 OUTLINECOLOR 0 0 0 STYLE SIZE 10 END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at CI.STPAUL.MN.US Mon Dec 31 10:56:10 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 31 Dec 2007 12:56:10 -0600 Subject: question about AGG Message-ID: All, Is the general consensus that all MapServers should move to AGG output, or is this considered more of an optional output at this time? I mean, will it at some point become the default output for MapServer? I'm asking mostly based on the differences in the mapfiles required between the two formats. It's a bit troublesome to keep options for both in a Mapfile, although, if the AGG output supercedes any older definitions in the same MapFile, that would help out considerably. I'm setting up some default MapFiles for cartography and wondering about what I should be promoting (or not). Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at CI.STPAUL.MN.US Mon Dec 31 11:04:38 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 31 Dec 2007 13:04:38 -0600 Subject: Google-ish cartography. Message-ID: All, I'm making good progress on my Google-ish cartography mapfile creation, see the attached links. I will be publishing it to the GeoMoose site as a mapfile once it's ready. It should be portable to use against the Census tiger centerlines as well, actually it should be fairly easy to apply to any centerline data set with the correct classifications available. I'm using a local data set though, so there are likely to be some differences. If anyone has a tiger data set available somewhere to try it out on, I would be interested in those results. I'm trying to add Documentation as I go in the MapFile as well. Why am I doing this, actually I'm just trying to get a jumping off point, where I can take this generic "Google-ish" version of a MapFile, and re-theme for my own uses, problably Link to screen shot of AGG sampled output: http://pwultra5.ci.stpaul.mn.us/cp_tiles/temp/agg_test2.png Link to screen shot of non-agg sampled output: http://pwultra5.ci.stpaul.mn.us/cp_tiles/temp/agg_test.png There are still some little things like the centering of the numbers in the highway shield, as in they moved a pixel or two to the left in the AGG output. Also, Google seems to use some sort of ADT (Traffic Counts) for it's classification of the roads, so I'll need to research that a bit I think. Some of the collectors are not highlighted in yellow like those in the Google output. I also took some liberty with their Interstate Shields and made them bigger. Also, here is a comparative Google link of the links from above : http://maps.google.com/maps?hl=en&ie=UTF8&ll=45.0011,-93.227014&spn=0.014232,0.030341&z=15&om=1 bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: