From erik.konijnenburg at E-TROPOLIS.NL Sat Oct 1 12:38:42 2005 From: erik.konijnenburg at E-TROPOLIS.NL (Erik Konijnenburg) Date: Sat, 1 Oct 2005 14:38:42 -0500 Subject: Obtaining attribute names Message-ID: Is it possible to obtain the attribute names from a shapeObj returned by the layer->getShape. I am able to obtain the attribute values but I want the attribute names. Is there a solution? From holmand24 at GMAIL.COM Sat Oct 1 16:15:20 2005 From: holmand24 at GMAIL.COM (=?ISO-8859-1?Q?Holmand_Dar=EDo_Villalba_Barajas?=) Date: Sat, 1 Oct 2005 18:15:20 -0500 Subject: itemnquery Message-ID: how I do to do a consultation with the itemnquery passing to him(her) as parameters a list, a vector or an arcivo of text. I am grateful for any commentary. Thank you. From jason.p.pickering at GMAIL.COM Sun Oct 2 02:54:38 2005 From: jason.p.pickering at GMAIL.COM (Jason Pickering) Date: Sun, 2 Oct 2005 16:24:38 +0630 Subject: Chloropleth maps with Mapserver Message-ID: I am currently evaluating the capabilities of MapServer to retrieve data from a Postgresql database and display it on a chlorpleth map. For instance, I have data like: Area IndicatorValue Area 1 10 Area 2 20 Area 3 15 Area 4 20 etc etc Each region will be represented by a color, depending on what the value is in the "IndicatorValue" column. The users need to be able to select (dynamically) how many color regions will be displayed on the map, and what the value range of each color is. I have searched high and low through the archives, and Google, but can't seem to find a definitive answer, or better yet, and example of how this can be done with Mapserver.Any pointers would be most welcome. Best regards, JPP From bill at BINKO.NET Sun Oct 2 03:19:27 2005 From: bill at BINKO.NET (Bill Binko) Date: Sun, 2 Oct 2005 06:19:27 -0400 Subject: Chloropleth maps with Mapserver In-Reply-To: <244b6a540510020254g5ad98ff4l72a993bcb9bf83a5@mail.gmail.com> Message-ID: I assume you mean Choropleth Maps like this article suggests: http://www.teachingideas.co.uk/geography/chlormap.htm Are you (like the article) starting with points and you want to group them? That is, you want the user to be able to specify how many groups to create, but there is underlying data? There may be a way to do this in Mapscript. Also, you might find gdal_contour of value (or something similar). Bill On Sun, 2 Oct 2005, Jason Pickering wrote: > I am currently evaluating the capabilities of MapServer to retrieve > data from a Postgresql database and display it on a chlorpleth map. > For instance, I have data like: > > Area IndicatorValue > > Area 1 10 > Area 2 20 > Area 3 15 > Area 4 20 > etc etc > > Each region will be represented by a color, depending on what the > value is in the "IndicatorValue" column. The users need to be able to > select (dynamically) how many color regions will be displayed on the > map, and what the value range of each color is. > > I have searched high and low through the archives, and Google, but > can't seem to find a definitive answer, or better yet, and example of > how this can be done with Mapserver.Any pointers would be most > welcome. > > Best regards, > JPP > > From weigel at ECOGIS.DE Sun Oct 2 05:16:38 2005 From: weigel at ECOGIS.DE (Johannes Weigel) Date: Sun, 2 Oct 2005 14:16:38 +0200 Subject: Mapscript installation problem Message-ID: Hi everybody, I' trying to run Mapserver 4.6.1 with apache 2.0.54 and PHP 5.0.5 on a Mandrake 10.0 linux machine. I followd the verbose linux install howto (http://ms.gis.umn.edu/docs/howto/verboselinuxinstall) which worked quite well, and finally I got everything installed. Apache with PHP are active, and Mapserver is working, as I get an answer to my cgi-request ("No query information to decode. QUERY_STRING is set, but empty.") Then I tried to run a demo application (hello.phtml from http://www.mobilegeographics.com/mapserver/) but I don't get a map display. Instead only a part of the php request is displayed: draw(); $image_url=$image->saveWebImage(); ?> (The HTML code starts as following: draw(); $image_url=$image->saveWebImage(); ?> ) Can anybody tell me what is the problem? I even copied the php_mapscript.so into the appropriate php extensions directory. To compile PHP and Mapserver I used the following options: PHP: ./configure \ --prefix=/usr/local/apache2/php \ --with-php-regex=/usr/local/apache2/php/include/php/regex \ --disable-cgi \ --with-config-file-path=/usr/local/apache2/php \ --with-openssl \ --with-kerberos \ --with-zlib \ --with-bz2 \ --with-curl \ --enable-dbase \ --enable-ftp \ --with-gd \ --with-pgsql \ --with-xsl \ --with-mysql \ --with-gettext Mapserver: ./configure \ --with-proj=/usr/local \ --with-geos=/usr/local/bin/geos-config \ --with-ogr=/usr/local/bin/gdal-config \ --with-gdal=/usr/local/bin/gdal-config \ --with-postgis=/usr/local/pgsql/bin/pg_config \ --with-curl-config=/usr/bin/curl-config \ --with-httpd=/usr/local/apache2/bin/httpd \ --with-gd=/usr/local \ --with-php=/usr/local/apache2/php \ --with-php-regex=/usr/local/apache2/php/include/php/regex \ --with-wms \ --with-wfs Best regards, Johannes -- Johannes Weigel ECOGIS Geomatics Bergstr. 36 D-53332 Bornheim http://www.ecogis.de weigel at ecogis.de From Tom.Kralidis at EC.GC.CA Sun Oct 2 05:56:59 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 2 Oct 2005 08:56:59 -0400 Subject: labelling from multiple columns Message-ID: Hi, Is it possible to assign a LABELITEM based on two fields? Thanks ..Tom From woodbri at SWOODBRIDGE.COM Sun Oct 2 06:01:12 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 2 Oct 2005 09:01:12 -0400 Subject: Chloropleth maps with Mapserver In-Reply-To: <244b6a540510020254g5ad98ff4l72a993bcb9bf83a5@mail.gmail.com> Message-ID: Jason, There has been a lot of discussion on this lately, search the archives for subject "Proposed RFC on COLORRAMP Support" on the mapserver-dev list. The issue of where or not there is a way to define the number of color regions dynamically has been an issue of debate. There is some feeling that this should be done using mapscript to dynamically generate N number of classes. -Steve W. Jason Pickering wrote: > I am currently evaluating the capabilities of MapServer to retrieve > data from a Postgresql database and display it on a chlorpleth map. > For instance, I have data like: > > Area IndicatorValue > > Area 1 10 > Area 2 20 > Area 3 15 > Area 4 20 > etc etc > > Each region will be represented by a color, depending on what the > value is in the "IndicatorValue" column. The users need to be able to > select (dynamically) how many color regions will be displayed on the > map, and what the value range of each color is. > > I have searched high and low through the archives, and Google, but > can't seem to find a definitive answer, or better yet, and example of > how this can be done with Mapserver.Any pointers would be most > welcome. > > Best regards, > JPP > From rjames57 at YAHOO.COM Sun Oct 2 06:56:37 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Sun, 2 Oct 2005 06:56:37 -0700 Subject: labelling from multiple columns In-Reply-To: <2576812186CDD411BF1500508B6DCE950B9D724D@ecnwri1.ontario.int.ec.gc.ca> Message-ID: I've done one way that may not be the correct way but it works. Use two layers, one that has the feature labeled and the other is defined as a annotation layer, using the other field. Randy --- "Kralidis,Tom [Burlington]" wrote: > Hi, > > Is it possible to assign a LABELITEM based on two fields? > > Thanks > > ..Tom > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From saengpole at YAHOO.COM Sun Oct 2 07:14:01 2005 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Sun, 2 Oct 2005 07:14:01 -0700 Subject: labelling from multiple columns In-Reply-To: <2576812186CDD411BF1500508B6DCE950B9D724D@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi Tom, use TEXT attribute in CLASS section eg. LAYER ... ... CLASS TEXT ([field1] [field2]) LABEL ... ... END # end label END # end class ... ... END # end layer HTH Krung. "Kralidis,Tom [Burlington]" wrote: Hi, Is it possible to assign a LABELITEM based on two fields? Thanks ..Tom --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at GMX.NET Sun Oct 2 07:14:51 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Sun, 2 Oct 2005 16:14:51 +0200 Subject: labelling from multiple columns In-Reply-To: <2576812186CDD411BF1500508B6DCE950B9D724D@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom I just know a workaround with PostGIS layers concatenating 2 fields, like DATA "the_geom from (select the_geom, oid, field1 ||' '|| field1 as label from yourtable) AS new_table USING UNIQUE oid USING SRID=4326" ... LABELITEM "label" Armin Kralidis,Tom [Burlington] wrote: > Hi, > > Is it possible to assign a LABELITEM based on two fields? > > Thanks > > ..Tom > > From woodbri at SWOODBRIDGE.COM Sun Oct 2 09:22:13 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 2 Oct 2005 12:22:13 -0400 Subject: Chloropleth maps with Mapserver In-Reply-To: <433FFE71.4030504@tamu.edu> Message-ID: Gerry, The dev-list discussion is at Item 21. at http://lists.umn.edu/cgi-bin/wa?A1=ind0509&L=mapserver-dev Posting to the list in case others are interested. If you have input that is not covered in the discussion you might want to post it on the regular list as the developers also monitor that list also. -Steve W. Gerry Creager N5JXS wrote: > Steve, > > Would it be possible to see some of this discussion? > > Thanks, > Gerry > > Stephen Woodbridge wrote: > >> Jason, >> >> There has been a lot of discussion on this lately, search the archives >> for subject "Proposed RFC on COLORRAMP Support" on the mapserver-dev >> list. The issue of where or not there is a way to define the number of >> color regions dynamically has been an issue of debate. There is some >> feeling that this should be done using mapscript to dynamically generate >> N number of classes. >> >> -Steve W. >> >> Jason Pickering wrote: >> >>> I am currently evaluating the capabilities of MapServer to retrieve >>> data from a Postgresql database and display it on a chlorpleth map. >>> For instance, I have data like: >>> >>> Area IndicatorValue >>> >>> Area 1 10 >>> Area 2 20 >>> Area 3 15 >>> Area 4 20 >>> etc etc >>> >>> Each region will be represented by a color, depending on what the >>> value is in the "IndicatorValue" column. The users need to be able to >>> select (dynamically) how many color regions will be displayed on the >>> map, and what the value range of each color is. >>> >>> I have searched high and low through the archives, and Google, but >>> can't seem to find a definitive answer, or better yet, and example of >>> how this can be done with Mapserver.Any pointers would be most >>> welcome. >>> >>> Best regards, >>> JPP >>> > From jason.p.pickering at GMAIL.COM Sun Oct 2 10:58:48 2005 From: jason.p.pickering at GMAIL.COM (Jason Pickering) Date: Sun, 2 Oct 2005 23:58:48 +0600 Subject: Chloropleth maps with Mapserver In-Reply-To: Message-ID: Hi Bill, Well, the end maps are more or less the same. I think the best examples of what I would like to do can be found at the KIDS website. http://kids.fao.org and then under "Application Examples". Another good example is at http://www.fao.org/landandwater/agll/agromaps/interactive/index.jsp I am not starting with individual points (well, maybe but the data has already been aggregated). The question for me is whether it would be easier to modify KIDS (also open source) or Mapserver to accomplish what I would like to be done. I agree, that it seems that it in principle should be able to be accomplished with Mapscript. It seems less obvious to me how to implement this functionality in KIDS, as it doesn't have the same sort of scripting support as Mapserver. I agree that there may be a way to do it, but I thought if someone has proven that it can be done, it would be good to start there instead of coding from scratch. I will checkout the developers mailing list as well to see what is there. Thanks for the tips. Best regards, JPP On 10/2/05, Bill Binko wrote: > I assume you mean Choropleth Maps like this article suggests: > > http://www.teachingideas.co.uk/geography/chlormap.htm > > Are you (like the article) starting with points and you want to group > them? That is, you want the user to be able to specify how many groups to > create, but there is underlying data? > > There may be a way to do this in Mapscript. Also, you might find > gdal_contour of value (or something similar). > > Bill > > On Sun, 2 Oct 2005, Jason Pickering wrote: > > > I am currently evaluating the capabilities of MapServer to retrieve > > data from a Postgresql database and display it on a chlorpleth map. > > For instance, I have data like: > > > > Area IndicatorValue > > > > Area 1 10 > > Area 2 20 > > Area 3 15 > > Area 4 20 > > etc etc > > > > Each region will be represented by a color, depending on what the > > value is in the "IndicatorValue" column. The users need to be able to > > select (dynamically) how many color regions will be displayed on the > > map, and what the value range of each color is. > > > > I have searched high and low through the archives, and Google, but > > can't seem to find a definitive answer, or better yet, and example of > > how this can be done with Mapserver.Any pointers would be most > > welcome. > > > > Best regards, > > JPP > > > > > From weigel at ECOGIS.DE Sun Oct 2 11:47:54 2005 From: weigel at ECOGIS.DE (Johannes Weigel) Date: Sun, 2 Oct 2005 20:47:54 +0200 Subject: Mapscript installation problem In-Reply-To: <433FCFA6.8020805@ecogis.de> Message-ID: Hi again! OK, I got it. Had to register the phtml file extension in Apache's mime types. Now everything works fine! Thx, Johannes Johannes Weigel wrote: > Hi everybody, > > I' trying to run Mapserver 4.6.1 with apache 2.0.54 and PHP 5.0.5 on a > Mandrake 10.0 linux machine. I followd the verbose linux install howto > (http://ms.gis.umn.edu/docs/howto/verboselinuxinstall) which worked > quite well, and finally I got everything installed. Apache with PHP are > active, and Mapserver is working, as I get an answer to my cgi-request > ("No query information to decode. QUERY_STRING is set, but empty.") > > Then I tried to run a demo application (hello.phtml from > http://www.mobilegeographics.com/mapserver/) but I don't get a map > display. Instead only a part of the php request is displayed: draw(); > $image_url=$image->saveWebImage(); ?> > > (The HTML code starts as following: > dl("php_mapscript.so"); > > $map_file="./hello.map"; > $map = ms_newMapObj($map_file); > $image=$map->draw(); > $image_url=$image->saveWebImage(); > > ?> > ) > > Can anybody tell me what is the problem? I even copied the > php_mapscript.so into the appropriate php extensions directory. To > compile PHP and Mapserver I used the following options: > PHP: > ./configure \ > --prefix=/usr/local/apache2/php \ > --with-php-regex=/usr/local/apache2/php/include/php/regex \ > --disable-cgi \ > --with-config-file-path=/usr/local/apache2/php \ > --with-openssl \ > --with-kerberos \ > --with-zlib \ > --with-bz2 \ > --with-curl \ > --enable-dbase \ > --enable-ftp \ > --with-gd \ > --with-pgsql \ > --with-xsl \ > --with-mysql \ > --with-gettext > > Mapserver: > ./configure \ > --with-proj=/usr/local \ > --with-geos=/usr/local/bin/geos-config \ > --with-ogr=/usr/local/bin/gdal-config \ > --with-gdal=/usr/local/bin/gdal-config \ > --with-postgis=/usr/local/pgsql/bin/pg_config \ > --with-curl-config=/usr/bin/curl-config \ > --with-httpd=/usr/local/apache2/bin/httpd \ > --with-gd=/usr/local \ > --with-php=/usr/local/apache2/php \ > --with-php-regex=/usr/local/apache2/php/include/php/regex \ > --with-wms \ > --with-wfs > > Best regards, > > Johannes > From bill at BINKO.NET Sun Oct 2 13:06:00 2005 From: bill at BINKO.NET (Bill Binko) Date: Sun, 2 Oct 2005 16:06:00 -0400 Subject: Chloropleth maps with Mapserver In-Reply-To: <244b6a540510021058n5b723c6ar451133d5c9e6811e@mail.gmail.com> Message-ID: On Sun, 2 Oct 2005, Jason Pickering wrote: > I am not starting with individual points (well, maybe but the data has > already been aggregated). So you have shapefiles or tables in PostGIS that have polygons with your data in them? I'll assume that for this discussion we're talking about a table with polygons with an attribute called "IndicatorValue" that holds your data value. To draw the maps you're looking for, you'll need to have a layer in your mapfile that looks something like this: LAYER ... CLASS EXPRESSION 'IndicatorValue < 10' COLOR 255 0 0 #whatever END CLASS EXPRESSION 'IndicatorValue < 20 AND IndicatorValue >= 10' COLOR 255 0 0 #whatever END ... END The EXPRESSIONs will vary depending on your source (PostGIS or Shapefiles, etc). Your issue is that you want the user to be able to set the number of classes, and the boundary values (10, 20, etc.). This is entirely doable right now in Mapserver using Mapscript. There is no need to wait for the COLORRANGE support that's being discussed on -devel. That is really being designed for people who want continuous color changes based on attributes, not just ranges. It's true that some of the possible approaches there might make this easier, so you might want to keep an eye on that, but I would not really recommend that you rely on it. At its most basic, Mapscript lets you edit a .map file at runtime programatically before it renders the image. It loads up the .map file into an object, lets you do stuff like change parameters, add classes, etc., and then lets you generate the map. That means that you could have a HTML form that asks them for the # of groups, and the high/low values and then your script (Python, PHP, Perl, etc.) could use those to modify your map. I'm not the Mapscript guru here (there are many), but it doesn't seem that your request would be much of a challenge. Now, if you were trying to aggregate points into areas, there would be other issues. However, it's still doable. So, choose your poison (PHP, Python, Java, Perl, Ruby, TCL, C#, C++, C) and ask the list for an example in that language. Someone will respond, and in a week or so (after you have Mapserver itself running), this should work. Hope this helps, Bill From w.blanken at GEON.NL Sun Oct 2 14:42:41 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Sun, 2 Oct 2005 23:42:41 +0200 Subject: labelling from multiple columns Message-ID: Hello Tom, As Steven told in a former question, You use text expressions within a class, for example: CLASS .. TEXT ([LAST_NAME], [FIRST_NAME]) END where LAST_NAME and FIRST_NAME are attributes. Note that you don't have to use a LABELITEM in this case. Regards, Wim Blanken ----- Original Message ----- From: "Kralidis,Tom [Burlington]" To: Sent: Sunday, October 02, 2005 2:56 PM Subject: [UMN_MAPSERVER-USERS] labelling from multiple columns > Hi, > > Is it possible to assign a LABELITEM based on two fields? > > Thanks > > ..Tom > > From jacob.delfos at MAUNSELL.COM Sun Oct 2 15:45:42 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Mon, 3 Oct 2005 06:45:42 +0800 Subject: Obtaining attribute names Message-ID: Erik, They are stored in an associative array. This is what I do to obtain attribute names: ----------------------------------------------------------------------------------------------------------------------------- $tmpshp = $oLayer->getShape(-1, 0); $fieldnames = array_keys ($tmpshp->values); for ($w=0; $w < count($fieldnames); $w++) { print array $fieldnames[$w]; } ----------------------------------------------------------------------------------------------------------------------------- regards, Jacob ? -----Original Message----- ? From: UMN MapServer Users List ? [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Erik Konijnenburg ? Sent: 2 October 2005 03:39 ? To: MAPSERVER-USERS at LISTS.UMN.EDU ? Subject: [UMN_MAPSERVER-USERS] Obtaining attribute names ? ? Is it possible to obtain the attribute names from a shapeObj ? returned by ? the layer->getShape. I am able to obtain the attribute values ? but I want ? the attribute names. Is there a solution? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Sun Oct 2 17:39:50 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 2 Oct 2005 20:39:50 -0400 Subject: Chloropleth maps with Mapserver In-Reply-To: <244b6a540510021058n5b723c6ar451133d5c9e6811e@mail.gmail.com> Message-ID: Jason Pickering wrote: > Hi Bill, > Well, the end maps are more or less the same. I think the best > examples of what I would like to do can be found at the KIDS website. > > http://kids.fao.org and then under "Application Examples". > Another good example is at > http://www.fao.org/landandwater/agll/agromaps/interactive/index.jsp > > I am not starting with individual points (well, maybe but the data has > already been aggregated). > > The question for me is whether it would be easier to modify KIDS (also > open source) or Mapserver to accomplish what I would like to be done. > I agree, that it seems that it in principle should be able to be > accomplished with Mapscript. It seems less obvious to me how to > implement this functionality in KIDS, as it doesn't have the same sort > of scripting support as Mapserver. I agree that there may be a way to > do it, but I thought if someone has proven that it can be done, it > would be good to start there instead of coding from scratch. Yes it can be done. I've done it without mapscript http://imaptools.com/~woodbri/thematic/thematic.cgi?name=ThemeMap&cmd=Map&debug=&location=MA&method=kmeans&numclasses=10&demographic=DP40063 It would be better with the COLORRAMP support or if I played a little more with mapscript or the mapfile. I does require using postGIS. -Steve W. > I will checkout the developers mailing list as well to see what is > there. Thanks for the tips. > > Best regards, > JPP > > > > > > > On 10/2/05, Bill Binko wrote: > >>I assume you mean Choropleth Maps like this article suggests: >> >>http://www.teachingideas.co.uk/geography/chlormap.htm >> >>Are you (like the article) starting with points and you want to group >>them? That is, you want the user to be able to specify how many groups to >>create, but there is underlying data? >> >>There may be a way to do this in Mapscript. Also, you might find >>gdal_contour of value (or something similar). >> >>Bill >> >>On Sun, 2 Oct 2005, Jason Pickering wrote: >> >> >>>I am currently evaluating the capabilities of MapServer to retrieve >>>data from a Postgresql database and display it on a chlorpleth map. >>>For instance, I have data like: >>> >>>Area IndicatorValue >>> >>>Area 1 10 >>>Area 2 20 >>>Area 3 15 >>>Area 4 20 >>>etc etc >>> >>>Each region will be represented by a color, depending on what the >>>value is in the "IndicatorValue" column. The users need to be able to >>>select (dynamically) how many color regions will be displayed on the >>>map, and what the value range of each color is. >>> >>>I have searched high and low through the archives, and Google, but >>>can't seem to find a definitive answer, or better yet, and example of >>>how this can be done with Mapserver.Any pointers would be most >>>welcome. >>> >>>Best regards, >>>JPP >>> >>> >> > From elshayal at SMARTWEBONLINE.COM Sun Oct 2 17:46:55 2005 From: elshayal at SMARTWEBONLINE.COM (Mohamed Elshayal) Date: Mon, 3 Oct 2005 02:46:55 +0200 Subject: your evaluation on my GIS software beta 1.16 http://www.smartwebonline.com/ Message-ID: Dear friends , Thank you for every one who evaluated My GIS Software : http://www.gismagazine.com/downloads/download.php?id=143 and send me their evaluations I promise to solve all the problems in the next version, I have not received any comments on the GPS function Kindly, please test the GPS performance Thank you in advance Awaiting for your reply Mohamed Elshayal From Jeroen.Ticheler at FAO.ORG Mon Oct 3 02:26:00 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Mon, 3 Oct 2005 11:26:00 +0200 Subject: gdaltindex & subdirectories Message-ID: Hi, I wanted to know if gdaltindex supports a "scanning" of a directory tree while building the index file? I haven't managed to get that to work yet. The next question than is if MapServer would be able to support such an index? Thanks, Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork From luca.casagrande at GMAIL.COM Mon Oct 3 02:40:51 2005 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Mon, 3 Oct 2005 11:40:51 +0200 Subject: Problem after initialising the template Message-ID: Hi to all guys! I am moving the first steps into mapserver... i have created the map file,the initialising HTML and the template. I got just one problem: after initializing the file, the browser got to the template file, but i still got missing image icon; in the tmp folder i see all the image file created by mapserver, also when i press zoom or similar button. What can be the matter? P.S. i tested the mapserver installation using the hello world example on "Beginning Mapserver" book Thx for all Luca -- Nel 1969, 2 commodore 64 sono riusciti a far andare l'uomo sulla Luna... oggi, nel 2005, un Athlon XP 3500+ fa fatica a far girare Windows XP!!! Come si suol dire... Utente Linux 373965 ICQ 54327636 skype : thedoktor78 From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 3 02:46:03 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 3 Oct 2005 11:46:03 +0200 Subject: gdaltindex & subdirectories Message-ID: Hi Jeroen, you can do this with for loops in DOS or on Linux. On DOS something like: for /R %i in (d:\myfiles\rasters\*.tif) do gdaltindex tile.shp %i On Linux for file in `ls *.tif`; do gdaltindex my.shp $file; done: ls *.tif you would have to replace with a proper find commando to search recursively for tiff files. This does not influence Mapserver, assuming your index will be generated once and then used (no runtime index). Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Jeroen Ticheler 3-10-2005 11:26:00 >>> Hi, I wanted to know if gdaltindex supports a "scanning" of a directory tree while building the index file? I haven't managed to get that to work yet. The next question than is if MapServer would be able to support such an index? Thanks, Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork From margottid at COMUNE.LUGO.RA.IT Mon Oct 3 03:41:50 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Mon, 3 Oct 2005 12:41:50 +0200 Subject: MAXTEMPLATE and MINTEMPLATE Message-ID: Hi list, how can I use MAXTEMPLATE and MINTEMPLATE in a .map file? When I set a MAXTEMPLATE parameter, in WEB section of a mapfile, I get an error when I browse a map out of max scale factor: [Mon Oct 03 12:06:39 2005] [error] [client 127.0.0.1] malformed header from script. Bad header=: mapserv, referer: http://localhost/cgi-bin/mapserv (The same thing happens with MINTEMPLATE). In my mapfile I tried to use the same template of the "normal" view: WEB ... MAXSCALE 150000 TEMPLATE "template.html" MAXTEMPLATE "template.html" ... END Is the template of MAXTEMPLATE structured as the one of TEMPLATE? Or are they differently structured? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Mon Oct 3 04:13:23 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 3 Oct 2005 07:13:23 -0400 Subject: tileindex format options Message-ID: Hi, We have a situation where we have a tileindex of satellite imagery and would like to have, as part of the tileindex, columns with metadata for each scene id. We then use the tileindex as a LAYER to depict scene outlines. A user could, via WMS query a scene to acquire metadata about that scene, from the tileindex. Having said this, do tileindexes specifically have to be shapefiles? For instance, can they be a PostGIS table? Cheers ..Tom From luca76 at GMAIL.COM Mon Oct 3 04:37:21 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Mon, 3 Oct 2005 13:37:21 +0200 Subject: Line tickness? Message-ID: I've seen the mailing list archives, but I've not found the solution of my problem. I defined this: LAYER NAME "aabbba" DATA "aaa" TYPE LINE STATUS OFF TEMPLATE void MINSCALE 500 CLASS NAME "aabbaa" STYLE SYMBOL 'circle' COLOR 0 255 255 SIZE 8 END END END (with circle definition in symbols.sym): SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END the result is in attachment. How can I have a line with tickness to 8 ? -------------- next part -------------- A non-text attachment was scrubbed... Name: Anonimo.jpg Type: image/jpeg Size: 2332 bytes Desc: not available URL: From as.khadkikar at NCL.RES.IN Mon Oct 3 04:33:38 2005 From: as.khadkikar at NCL.RES.IN (Aniruddha S. Khadkikar) Date: Mon, 3 Oct 2005 17:03:38 +0530 Subject: Can mapserver query user-defined data types in Oracle Spatial Message-ID: Dear All, I want to know if anyone has created a user defined data type in Oracle spatial based on the sdo_geometry data type to include an additional column for a non-spatial attribute (e.g. location name)? Are there any known issues with respect to mapserver connectivity? Aniruddha -- ANIRUDDHA S. KHADKIKAR Ph.D. ..................................................... Digital Information Resource Centre National Chemical Laboratory Dr. Homi Bhabha Road Pune 411008, INDIA ..................................................... Phone : 91 020 25893457 (Off) Fax : 91 020 25893973 Email : as.khadkikar at ncl.res.in Web : http://www.ncbi.org.in ..................................................... ***************************************************************** This email is virus free by TrendMicro Inter Scan Security Suite. ***************************************************************** From thomas.bonfort at GMAIL.COM Mon Oct 3 04:41:26 2005 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Mon, 3 Oct 2005 13:41:26 +0200 Subject: Line tickness? In-Reply-To: Message-ID: CLASS SYMBOL "circle" SIZE 8 STYLE ANTIALIAS TRUE OUTLINECOLOR 0 0 255 COLOR 0 0 255 END END From richard.greenwood at GMAIL.COM Mon Oct 3 05:55:45 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 3 Oct 2005 12:55:45 +0000 Subject: tileindex format options Message-ID: Kralidis,Tom [Burlington] EC.GC.CA> writes: > > Hi, > > We have a situation where we have a tileindex of satellite imagery and > would like to have, as part of the tileindex, columns with metadata for > each scene id. We then use the tileindex as a LAYER to depict scene > outlines. A user could, via WMS query a scene to acquire metadata about > that scene, from the tileindex. > > Having said this, do tileindexes specifically have to be shapefiles? > For instance, can they be a PostGIS table? > > Cheers > > ..Tom I do not know about using a PostGIS table, but Howard Butler and Sean Gilles presented a Python workshop this summer that included a script to build a tile index with additional, arbituary fields. The workshop overview and examples are here: http://hobu.biz/software/OSGIS_Hacks Rich From warmerdam at POBOX.COM Mon Oct 3 06:26:45 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Oct 2005 09:26:45 -0400 Subject: tileindex format options In-Reply-To: <2576812186CDD411BF1500508B6DCE950B9D725E@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On 10/3/05, Kralidis,Tom [Burlington] wrote: > Hi, > > We have a situation where we have a tileindex of satellite imagery and > would like to have, as part of the tileindex, columns with metadata for > each scene id. We then use the tileindex as a LAYER to depict scene > outlines. A user could, via WMS query a scene to acquire metadata about > that scene, from the tileindex. > > Having said this, do tileindexes specifically have to be shapefiles? > For instance, can they be a PostGIS table? Tom, My understanding is that now (as of 4.4 or 4.6?) tileindexes can be any feature data source that works as a layer. So PostGIS should be fine. However you would need to declare the tileindex as a distinct layer and then reference it from the target raster layer. However, I am less clear on how the WMS interaction would work. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From work at XWB.COM Mon Oct 3 06:28:22 2005 From: work at XWB.COM (Chip Taylor) Date: Mon, 3 Oct 2005 06:28:22 -0700 Subject: Shapefiles Message-ID: Is there an open source Shapefile creator that can take an excel file or csv file with XY (longitude/latitude) and output a shapefile? My searches of open source libraries (SourceForge, etc) have turned up nothing, but of course I could have missed it. Chip Taylor Prepared Response, Inc. 1127 Broadway Plaza, Suite 204 Tacoma, WA 98402 O 253.272.1730 M 253.948.2525 STATEMENT OF CONFIDENTIALITY The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify Prepared Response, Inc. immediately at (206) 223-5544 and destroy all copies of this message and any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Oct 3 06:35:48 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Oct 2005 09:35:48 -0400 Subject: Shapefiles In-Reply-To: Message-ID: On 10/3/05, Chip Taylor wrote: > > > Is there an open source Shapefile creator that can take an excel file or csv > file with XY (longitude/latitude) and output a shapefile? My searches of > open source libraries (SourceForge, etc) have turned up nothing, but of > course I could have missed it. Chip, This can be accomplished with OGR using the .csv (or ODBC) reader along with the VRT driver and the shapefile writer. The idea being that the.csv or ODBC reader can access non-spatial input tables, the VRT driver (along with an XML description file) indicates which columns to use for X and Y, and then the result is written with the shapefile writer. http://www.gdal.org/ogr/drv_csv.html http://www.gdal.org/ogr/drv_odbc.html http://www.gdal.org/ogr/drv_vrt.html http://www.gdal.org/ogr/drv_shapefile.html The only tricky part of this process is preparing the VRT file. Then use the ogr2ogr utility to do the translation. http://www.gdal.org/ogr/ogr2ogr.html Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From luca76 at GMAIL.COM Mon Oct 3 06:55:17 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Mon, 3 Oct 2005 15:55:17 +0200 Subject: MAXSIZE and MINSIZE: how to use them? Message-ID: Hi, the documentation of mapserver doesn't report an example of how to use these keywords. How can I use them for a point symbol? From carlo.calvino at EMAIL.IT Mon Oct 3 07:23:17 2005 From: carlo.calvino at EMAIL.IT (Carlo Calvino) Date: Mon, 3 Oct 2005 09:23:17 -0500 Subject: Problems with ArcInfo Binary grid... Message-ID: Hello everybody, i am having problems with loading of an arc/info binary grid in 32 bit floating point. The colors are too dark and inverted, anyone of you has experience with it? Second thing, it is possible to import a coloro schema (.lyr) file? Thank you very much From mhe at ITSC.UAH.EDU Mon Oct 3 06:53:02 2005 From: mhe at ITSC.UAH.EDU (He, Matt Yubin) Date: Mon, 3 Oct 2005 08:53:02 -0500 Subject: How to convert a GIF or TIF image into GeoTIFF Message-ID: I have some GIF/TIFF images and I know the projection and Lat Lon boundaries of these images. How to convert it into GeoTIFF? Are there some open source programs for this? Thanks. Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorn at SPACETEC.NO Mon Oct 3 07:38:52 2005 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Mon, 3 Oct 2005 16:38:52 +0200 Subject: How to convert a GIF or TIF image into GeoTIFF In-Reply-To: <2F55769F7A55B44AA64CF265547D97BF042C0D@zoot.itsc.uah.edu> Message-ID: I think gdal_translate can be used, but I don't have a howto for your case: http://www.gdal.org/gdal_utilities.html#gdal_translate Regards Joern On Monday 03 October 2005 15:53, He, Matt Yubin wrote: > I have some GIF/TIFF images and I know the projection and Lat Lon > boundaries of these images. How to convert it into GeoTIFF? Are there > some open source programs for this? > > > > > > Thanks. > > > > Matt From tkirstine at JDBARNES.COM Mon Oct 3 07:45:59 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Mon, 3 Oct 2005 10:45:59 -0400 Subject: How to convert a GIF or TIF image into GeoTIFF In-Reply-To: <2F55769F7A55B44AA64CF265547D97BF042C0D@zoot.itsc.uah.edu> Message-ID: Matt, I would try downloading FW Tools from http://fwtools.maptools.org/ Then you can use the gdal_translate utility from the command line http://www.remotesensing.org/gdal/gdal_utilities.html cheers Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of He, Matt Yubin Sent: Monday, October 03, 2005 9:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to convert a GIF or TIF image into GeoTIFF I have some GIF/TIFF images and I know the projection and Lat Lon boundaries of these images. How to convert it into GeoTIFF? Are there some open source programs for this? Thanks. Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Oct 3 07:58:15 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 3 Oct 2005 10:58:15 -0400 Subject: Problems with ArcInfo Binary grid... In-Reply-To: Message-ID: On 10/3/05, Carlo Calvino wrote: > Hello everybody, > i am having problems with loading of an arc/info binary grid in 32 bit > floating point. The colors are too dark and inverted, anyone of you has > experience with it? Carlo, Generally speaking when loading non-8bit data you will want to apply some sort of scaling. I would suggest you read the section of the Raster HOWTO on scaling non-8bit data, but the quick thing to test is to add: PROCESSING "SCALE=AUTO" in your layer definition. > Second thing, it is possible to import a coloro schema > (.lyr) file? No, there is no support for .lyr files. Generally speaking you will need to define a bunch of CLASSes with colors for different ranges of your field. This is also covered (briefly?) in the raster howto. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From oliver_ishmael at HOTMAIL.COM Mon Oct 3 08:30:11 2005 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Mon, 3 Oct 2005 16:30:11 +0100 Subject: Adding .TIFF support Message-ID: Hi all, I am currently running mapserver without support for .Tiff raster data and realise that i may need to recompile mapserver with improved Gdal support. (I already have Gdal installed). Can someone please explain how i do this....does it require me to uninstall the current mapserver installation or is there a simple 'upgrade' i could do?? Thanks in advance Olly _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters From oliver_ishmael at HOTMAIL.COM Mon Oct 3 08:35:41 2005 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Mon, 3 Oct 2005 16:35:41 +0100 Subject: IMGXY in html template Message-ID: Hi all, I have been progressing through the mapserver tutorial...upto section 2 and have tried adding support for Pan and Zoom functionality. Currently, whenever the map is refreshed i only see a blank screen! I think that this is because i am missing IMGXY variables. I am using a combination of .shp and .tiff data so how do i calculate the IMGXY ? Note: this is set in my html template. Cheers Olly _________________________________________________________________ MSN Messenger 7.5 is now out. Download it for FREE here. http://messenger.msn.co.uk From oliver_ishmael at HOTMAIL.COM Mon Oct 3 08:54:41 2005 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Mon, 3 Oct 2005 16:54:41 +0100 Subject: php template not displaying .map file Message-ID: Dear all, My final question is a little more troublesome, in fact i have been struggling with it for well over 6 months now... I currently have a webpage written in .php (embedded in html) that i am using as my .map web template. At the moment, when the php/html file is loaded this only displays the html formatting and an empty mapserv window, despite the .map file referencing the use of links1.1.php file as the template.: http://localhost/tm/links1.1.php When I include various extra map parameters in the browser address bar, it just displays the map in a new browser window: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/tm/World_TM.map&layer=Africa&mode=browse &program=/cgi-bin/mapserv.exe&web_map_template=links1.1.php If anyone could shed some light on the issues i am facing i would be very grateful! I could include the scripts as an attachment if it would help? Cheers Olly _________________________________________________________________ MSN Messenger 7.5 is now out. Download it for FREE here. http://messenger.msn.co.uk From matt0177 at GMAIL.COM Mon Oct 3 09:15:39 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Mon, 3 Oct 2005 09:15:39 -0700 Subject: WFS MApserver troubles Message-ID: I am using a ms4w install using mapserver 4.4 and 4.6 with Chameleon. I have a few layers set up as wfs served layers. When i do a http get features request, they work properly, no errors. However when I go to view the layers in mapserver (either via localhost or a different machine) my map fails to load whenever i add one of the layers. When using the expression builder in Chameleon, I can see the data in the shapefiles, but once again, if i try to view the layer, my map will not load, it doesn't give me an error, just the little red X in the top left corner. I really would like to get this working so that I can use the expression builder to tap local data sources with ad hoc query capabilities. Below are the relevant portions of my .map file. web imagepath "/tmp/ms_tmp" imageurl "/tmp/ms_tmp" METADATA "wms_title" "Tucson WMS Server" "wms_onlineresource" " http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map &" "wfs_title" "Tucson Sector WFS Server" "wfs_onlineresource" " http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map &" "wcs_label" "Tucson WCS Server" "wms_srs" "EPSG:4326" "wfs_srs" "EPSG:4326" END END .... NAME amtrak_stations TYPE POINT STATUS off DATA "C:/ms4w/apps/myApp/data/amtrakx020.shp" dump True TOLERANCE 3 CLASS name 'Amtrak Stations: Nationwide' TEMPLATE 'C:/ms4w/apps/myApp/htdocs/templates/qry_city_data.html' symbol "train" size 12 COLOR 255 0 0 END METADATA "wfs_title" "Amtrak Stations" "wfs_srs" "EPSG:4326" "wfs_abstract" "Obtained from the National Atlas: data from 09/05" END END .... LAYER NAME wfs_amtrak TYPE POINT STATUS off CONNECTIONTYPE WFS CONNECTION " http://127.0.0.1/cgi-bin/mapserv_44.exe?map=c:/ms4w/apps/myApp/map/test_douglas.map&typename=amtrak_stations &" class name "wfs amtrak" symbol 'train' color 250 250 0 outlinecolor 150 150 0 end METADATA gml_include_items "all" "wfs_typename" "amtrak_stations" "wfs_service" "WFS" "wfs_srs" "EPSG:4326" "wfs_version" "1.0.0" "wfs_request_method" "GET" END END Thanks for any help, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Oct 3 11:51:14 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 3 Oct 2005 14:51:14 -0400 Subject: Adding .TIFF support Message-ID: Oliver - GDAL is normally built with TIFF support, and provides it to MapServer. Are you sure you don't have TIFF support already through GDAL? Check your GDAL installation for TIFF support - it's probably already there. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Oliver Ishmael Sent: Monday, October 03, 2005 11:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Adding .TIFF support Hi all, I am currently running mapserver without support for .Tiff raster data and realise that i may need to recompile mapserver with improved Gdal support. (I already have Gdal installed). Can someone please explain how i do this....does it require me to uninstall the current mapserver installation or is there a simple 'upgrade' i could do?? Thanks in advance Olly _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters From erics at AMERI-TITLE.COM Mon Oct 3 16:59:23 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Mon, 3 Oct 2005 18:59:23 -0500 Subject: Tif won't display Message-ID: I am having a problem getting orthophotos to display via mapserver. There?s a previous thread similar to mine, which concluded that the path was the issue. In my case the image is in the same path as other data I use, which displays fine. If I add in other layers to my map file they will show up. No error messages ever are displayed. I have checked the map file using the shp2img tool and get a 159 byte image returned that is blank. The tiff works fine in ArcView and has the same projection as all my other data. Anyone have any ideas about what might be the issue?? Is the FGS install capable of handling tiffs out of the box? Thanks for the help! Eric # ************************************* # *********** MAP FILE ************ # ************************************* MAP NAME Test SIZE 750 690 IMAGETYPE PNG IMAGECOLOR 255 255 255 SHAPEPATH "../data" EXTENT 4523731 708810 5081065 996372 UNITS FEET PROJECTION Oregon SP South "init=epsg:32127" END WEB TEMPLATE "../htdocs/template.html" IMAGEPATH "/GIS/fgs/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER # PHOTO raster layer begins here NAME photo DATA "1712323.tif" TYPE RASTER STATUS default END END # ************************************* # *********** TIFF INFO ************ # ************************************* $ gdalinfo 1712323.tif Driver: GTiff/GeoTIFF Size is 5300, 5300 Coordinate System is: PROJCS["IMAGINE GeoTIFF Support Copyright 1991 - 2001 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: egtf.c $ $Revision: 1.9.2.9 $ $Date: 2002/10/28 15:14:13EST $ Projection Name = Deschutes County Units =", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree (supplier to define representation)",0.01745329251994328], AUTHORITY["EPSG","4269"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",43.00000000000005], PARAMETER["central_meridian",-121.2833333333335], PARAMETER["scale_factor",1.00016], PARAMETER["false_easting",1005840.03218688], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (1002578.640000,117637.560000) Pixel Size = (0.15240000,-0.15240000) Metadata: TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.9.1.3 $ $Date: 2002/07/29 15:39:06EDT $ TIFFTAG_XRESOLUTION=42.519691 TIFFTAG_YRESOLUTION=42.519691 TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm) Corner Coordinates: Upper Left ( 1002578.640, 117637.560) (121d19'26.51"W, 44d 3'31.10"N) Lower Left ( 1002578.640, 116829.840) (121d19'26.49"W, 44d 3'4.93"N) Upper Right ( 1003386.360, 117637.560) (121d18'50.22"W, 44d 3'31.11"N) Lower Right ( 1003386.360, 116829.840) (121d18'50.21"W, 44d 3'4.94"N) Center ( 1002982.500, 117233.700) (121d19'8.36"W, 44d 3'18.02"N) Band 1 Block=5300x1 Type=Byte, ColorInterp=Red Band 2 Block=5300x1 Type=Byte, ColorInterp=Green Band 3 Block=5300x1 Type=Byte, ColorInterp=Blue # ************************************* # *********** SERVER INFO *********** # ************************************* Fedora Core 3 using fgs-mapserver_phpmapscript_4.4.1-0.2.2-linux-i386.bin for the mapserver install $ fgs version cat: /GIS/fgs/etc/fgs/API_VERSION: No such file or directory * FGS API version : * NAME VERSION * apache-base 1.3.33 * curl-lib 7.12.2 * expat-base 1.95.8 * freetype-lib 2.1.9 * gdal-base 1.2.5 * gd-lib 2.0.33 * geos-lib 1.0.0 * jpeg-lib 6b * libgeotiff-lib 1.2.2 * libiconv-base 1.9.1 * libpng-lib 1.2.6 * libungif-base 4.1.3 * mapserver-base 4.4.1 * mapserver-php 4.4.1 * netcdf-lib 3.5.1 * openssl-lib 0.9.7d * php-base 4.3.10 * postgis-lib 1.0.0 * postgresql-lib 7.4.7 * postgresql-server 7.4.7 * proj4_epsg42xxx-support 1.0.0 * proj-lib 4.4.8 * tiff-lib 3.7.1 * unixODBC-base 2.2.10 * xerces_c-base 2_6_0 From saburq at GMAIL.COM Mon Oct 3 19:09:11 2005 From: saburq at GMAIL.COM (Shoaib Burq) Date: Mon, 3 Oct 2005 23:09:11 -0300 Subject: random maps Message-ID: Hi Anyone know of any software that generates random maps, city plans, road networks, any of these? thx Shoaib Burq From margottid at COMUNE.LUGO.RA.IT Mon Oct 3 23:33:08 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 4 Oct 2005 08:33:08 +0200 Subject: php template not displaying .map file In-Reply-To: Message-ID: CGI Mapscript takes the template, substitutes the [variables] with values that are calculated on basis of current map view, and output this new HTML to the browser. It does not process PHP files (or PHP instruction): this is only made by Apache (i.e.: if PHP page is requested to Apache, directly from the address bar of the web browser). Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Oliver Ishmael Sent: Monday, October 03, 2005 5:55 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] php template not displaying .map file Dear all, My final question is a little more troublesome, in fact i have been struggling with it for well over 6 months now... I currently have a webpage written in .php (embedded in html) that i am using as my .map web template. At the moment, when the php/html file is loaded this only displays the html formatting and an empty mapserv window, despite the .map file referencing the use of links1.1.php file as the template.: http://localhost/tm/links1.1.php When I include various extra map parameters in the browser address bar, it just displays the map in a new browser window: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/tm/World_TM .map&layer=Africa&mode=browse &program=/cgi-bin/mapserv.exe&web_map_template=links1.1.php If anyone could shed some light on the issues i am facing i would be very grateful! I could include the scripts as an attachment if it would help? Cheers Olly _________________________________________________________________ MSN Messenger 7.5 is now out. Download it for FREE here. http://messenger.msn.co.uk From bill at BINKO.NET Mon Oct 3 23:42:44 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 4 Oct 2005 02:42:44 -0400 Subject: php template not displaying .map file In-Reply-To: <001e01c5c8ad$7bfad260$041410ac@comune.lugo.ra.it> Message-ID: Absolutely correct: there are solutions around this though. I believe Apache can be configured to take the output from mapserver and send it through PHP. This kind of chaining is tricky, but it does work. I believe the trick is having the CGI (mapserv or a wrapper) return an appropriate MIME type althought I'm not sure how at the moment. Another alternative (that I've actually used) is to have the template go to a simple HTML pages that does a META refresh a full URL that includes the needed parameters for the PHP to work. That is, you make a template that just does a 302 forward. The client double-pumps and fetches your PHP file which Apache handles normally. This requires no reconfiguraiton of Apache and works without having to use Mapscript. Bill On Tue, 4 Oct 2005, Daniele Margotti wrote: > CGI Mapscript takes the template, substitutes the [variables] with > values that are calculated on basis of current map view, and output this > new HTML to the browser. > > It does not process PHP files (or PHP instruction): this is only made by > Apache (i.e.: if PHP page is requested to Apache, directly from the > address bar of the web browser). > > Daniele > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Oliver Ishmael > Sent: Monday, October 03, 2005 5:55 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] php template not displaying .map file > > > Dear all, > > My final question is a little more troublesome, in fact i have been > struggling with it for well over 6 months now... > > I currently have a webpage written in .php (embedded in html) that i am > using as my .map web template. > > At the moment, when the php/html file is loaded this only displays the > html > formatting and an empty mapserv window, despite the .map file > referencing > the use of links1.1.php file as the template.: > http://localhost/tm/links1.1.php > > When I include various extra map parameters in the browser address bar, > it > just displays the map in a new browser window: > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/tm/World_TM > .map&layer=Africa&mode=browse > &program=/cgi-bin/mapserv.exe&web_map_template=links1.1.php > > If anyone could shed some light on the issues i am facing i would be > very > grateful! I could include the scripts as an attachment if it would help? > > > Cheers > Olly > > _________________________________________________________________ > MSN Messenger 7.5 is now out. Download it for FREE here. > http://messenger.msn.co.uk > > From Jeroen.Ticheler at FAO.ORG Mon Oct 3 23:59:15 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Tue, 4 Oct 2005 01:59:15 -0500 Subject: tileindex format options Message-ID: I'm setting up some time series satellite data (WCS) and am using the gdaltindex tool. I'm working on a script that will automatically add a second column with the dates needed by mapserver, using the shapelib tools. Is there another way of adding such a column at present, using a regular expression for instance that extracts the date from the filenames? Ciao, Jeroen From axelm-mapserver at NONA.NET Tue Oct 4 01:35:01 2005 From: axelm-mapserver at NONA.NET (Alexander Mayrhofer) Date: Tue, 4 Oct 2005 10:35:01 +0200 Subject: TILEINDEX and overviews (gdaladdo) ? In-Reply-To: <931f8ea9050929070027f267d@mail.gmail.com> Message-ID: > On 9/29/05, Manfred Zerndl wrote: > >>I have 77300 TIFF-Files. Each of them has 2500x2500 Pixels and each is >>equivalent to one square kilometer >>(Ground-resolution is 0.4 meters per pixel (1000 meters / 2500 pixels)). >> Manfred, just out of curiousity: Are those files (i assume it's whole Bayern?) available for the public? cheers Alex Mayrhofer From taka_www at SINAMAN.COM Tue Oct 4 01:25:41 2005 From: taka_www at SINAMAN.COM (Taka Wong) Date: Tue, 4 Oct 2005 03:25:41 -0500 Subject: Can Mapserver 4..6.1 read GML3?? Message-ID: Hi, I am tring to use Mapserver to read GML3 file and then generate a image, does mapserver support reading GML3? As I know, mapserver can perform a GML3 writer and output a GML3 as a result of WFS. Best Regards, Taka Wong From bvanmeul at EBE.UCT.AC.ZA Tue Oct 4 02:34:40 2005 From: bvanmeul at EBE.UCT.AC.ZA (Bas Vanmeulebrouk) Date: Tue, 4 Oct 2005 11:34:40 +0200 Subject: Expressions in Java MapScript Message-ID: Hi list, I have defined classes in a layer using expressions as shown below. Using the MapServer cgi-executable, the layer draws fine. However, using Java MapScript I get an error "Failed to parse expression" when drawing the layer. When I remove the expression and use a single class instead, the layer draws fine. Does anyone know what I am doing wrong? Kind regards, Bas Vanmeulebrouk. CLASS NAME "100" EXPRESSION ([pct_piped_water] = 100) OUTLINECOLOR 110 110 110 COLOR 56 168 0 END CLASS NAME "95 - 100" EXPRESSION ([pct_piped_water] < 100 AND [pct_piped_water] >= 95) OUTLINECOLOR 110 110 110 COLOR 176 224 0 END CLASS NAME "90 - 95" EXPRESSION ([pct_piped_water] < 95 AND [pct_piped_water] ge 90) OUTLINECOLOR 110 110 110 COLOR 255 170 0 END CLASS NAME "< 90" EXPRESSION ([pct_piped_water] < 90) OUTLINECOLOR 110 110 110 COLOR 255 0 0 END END # End Piped water polygon layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From esujithk at YAHOO.CO.IN Tue Oct 4 03:44:46 2005 From: esujithk at YAHOO.CO.IN (Sujith kumar) Date: Tue, 4 Oct 2005 11:44:46 +0100 Subject: Oracle10g - OGC Services Message-ID: Hi All, I am a trying to run OGC Services(WMS-WFS) on Oracle10g. I have downloaded MS4W(MapServer For Windows). Unfortunately I don't understand how to make my Oracle accessible by MapServer and get the OGC Services running on the Database. Being a newbie I expect a descriptive and detailed steps on how to get OGC Services running on my Oracle10g. newbie. --------------------------------- Yahoo! India Matrimony: Find your partner now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Tue Oct 4 04:01:12 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 4 Oct 2005 13:01:12 +0200 Subject: Oracle10g - OGC Services Message-ID: Hi, Please note that what you are trying to do is not something to start with as a newbie. First setup a WMS/WFS server on a shapefile I would suggest. See the Mapserver WMS and WFS Server HOWTO documents for reference. M4W does not have Mapserver binaries which can connect to Oracle, so you would have to use the Hobu's kitchen sink binaries or compile your own binaries. http://hobu.stat.iastate.edu/mapserver/ For Mapserver-Oracle info check this site: http://ms.gis.umn.edu/docs/howto/oracle_spatial_howto/view?searchterm=oracle%20spatial Hope this helps. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Sujith kumar 4-10-2005 12:44 >>> Hi All, I am a trying to run OGC Services(WMS-WFS) on Oracle10g. I have downloaded MS4W(MapServer For Windows). Unfortunately I don't understand how to make my Oracle accessible by MapServer and get the OGC Services running on the Database. Being a newbie I expect a descriptive and detailed steps on how to get OGC Services running on my Oracle10g. newbie. --------------------------------- Yahoo! India Matrimony: Find your partner now. From eric at GOMOOS.ORG Tue Oct 4 05:59:13 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 4 Oct 2005 08:59:13 -0400 Subject: Obtaining attribute names In-Reply-To: Message-ID: On Sat, 2005-10-01 at 15:38, Erik Konijnenburg wrote: > Is it possible to obtain the attribute names from a shapeObj returned by > the layer->getShape. I am able to obtain the attribute values but I want > the attribute names. Is there a solution? I think you need to use layer->getItem(int i) E.g. in a query context: $qshape = $layer->getFeature($qid, $tid); for($i = 0; $i < $qshape->{numvalues}; $i++) { $val = $qshape->getValue($i); $name = $layer->getItem($i); } See also: http://zcologia.com/mapserver/querying-howto#resulting-features From warmerdam at POBOX.COM Tue Oct 4 06:23:18 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 4 Oct 2005 09:23:18 -0400 Subject: Can Mapserver 4..6.1 read GML3?? In-Reply-To: Message-ID: On 10/4/05, Taka Wong wrote: > Hi, > > I am tring to use Mapserver to read GML3 file and then generate a image, > does mapserver support reading GML3? As I know, mapserver can perform a > GML3 writer and output a GML3 as a result of WFS. Taka, MapServer uses OGR to read GML and it does not have any significant degree of GML 3 read support. So the answer is basically no, though it might work in some simple GML2-like cases. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Tue Oct 4 06:32:03 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 4 Oct 2005 09:32:03 -0400 Subject: tileindex format options In-Reply-To: Message-ID: On 10/4/05, Jeroen Ticheler wrote: > I'm setting up some time series satellite data (WCS) and am using the gdaltindex tool. I'm working on > a script that will automatically add a second column with the dates needed by mapserver, using the > shapelib tools. Is there another way of adding such a column at present, using a regular expression > for instance that extracts the date from the filenames? Jeroen, No, I don't think there is any such tool. The various scripting languages that support writing shapefiles might be easier to use for this task than Shapelib directly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From src176 at PSU.EDU Tue Oct 4 06:31:37 2005 From: src176 at PSU.EDU (Stephen Crawford) Date: Tue, 4 Oct 2005 09:31:37 -0400 Subject: Install problem Message-ID: All, I'm a MapServer newbie, though I know a bit about WMS and WFS, having used GeoServer and ArcIMS in some projects. On my desktop machine running XP I've installed Apache 2.0; downloaded MapServer 4.4.1 Windows binaries, and added "C:\MapServer" to Path and added the PATH_LIB variable to point to the appropriate place. When I try to go to localhost/cgi-bin/mapserv.exe I get "Internal Server Error", and the server error log gives me this: "Premature end of script headers: mapserv.exe" and "File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico" Apache itself seems to be working (get the welcome page for localhost). Any thoughts? Thanks, Steve Stephen Crawford Center for Environmental Informatics GeoVISTA Center The Pennsylvania State University 814.865.9905 src176 at psu.edu From holmand24 at GMAIL.COM Tue Oct 4 07:27:55 2005 From: holmand24 at GMAIL.COM (=?ISO-8859-1?Q?Holmand_Dar=EDo_Villalba_Barajas?=) Date: Tue, 4 Oct 2005 09:27:55 -0500 Subject: help with itemnquery Message-ID: Hi friends I need help to do a consultation com itemnquery spending(passing) several parameters in the consultation, for example that shows the records of the cities Cairo and Kampala. Thank you for any collaboration. From volverinn at LIBERO.IT Tue Oct 4 08:05:30 2005 From: volverinn at LIBERO.IT (volverinn@libero.it) Date: Tue, 4 Oct 2005 17:05:30 +0200 Subject: HELP-1! Message-ID: Hello all, I've a question for my problem. I want calculate a min route between two cities. I've idea to implement this (i've thin al. e.g. link state for the router), but i dont'know if the Mapscript does execute some operation. My intentions is: with a database for support, i calculate index of shape object that will be into new shape. Therefore i must read from a shape shapeobj by index and insert to my result shape and finally i draw it. With PHP/Mapscript can i do this? Thak for prospective response. Alessio. From tim at COMMENSPACE.ORG Tue Oct 4 08:11:55 2005 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Tue, 4 Oct 2005 08:11:55 -0700 Subject: Tif won't display Message-ID: > No error messages ever are displayed. I have checked the map > file using the shp2img tool and get a 159 byte image returned > that is blank. The tiff works fine in ArcView and has the > same projection as all my other data. Looks like your TIFF is in a different coordinate system (map: state plane feet, TIFF: UTM meters). Your map EXTENT and TIFF extent don't overlap. > EXTENT 4523731 708810 5081065 996372 > UNITS FEET > PROJECTION Oregon SP South > "init=epsg:32127" > END > PROJECTION["Transverse_Mercator"], > UNIT["metre",1, ... > Upper Left ( 1002578.640, 117637.560) (121d19'26.51"W, 44d > 3'31.10"N) Lower Left ( 1002578.640, 116829.840) > (121d19'26.49"W, 44d 3'4.93"N) Upper Right ( 1003386.360, > 117637.560) (121d18'50.22"W, 44d 3'31.11"N) Lower Right ( > 1003386.360, 116829.840) (121d18'50.21"W, 44d 3'4.94"N) Try specifying the PROJECTION for your TIFF. Tim From volverinn at LIBERO.IT Tue Oct 4 08:12:50 2005 From: volverinn at LIBERO.IT (volverinn@libero.it) Date: Tue, 4 Oct 2005 17:12:50 +0200 Subject: AIUTO-1! Message-ID: Ciao a tutti, Devo conoscere se Mapscript permette alcune operazioni. Devo calcolare il percorso pi? breve tra due citt? e per riuscirci ho pensato all'utilizzo di un alg. (il link state per i router) con l'ausilio delle informazioni archiviate in un db. Il problema ? sapere se ? fattibile per PHP/Mapscript: Creare un nuovo file shape da visualizzare come risultato. Ottenere le informazioni degli oggetti shape rilevati tramite il loro indice univoco dallo shapefile di origine, da poterli cosi inserire nello shapefile risultato. Fatto ci? visualizzare quest'ultimo. E' possibile realizzare questi passi? Grazie a tutti per un eventuale risposta. Alessio From daniel.faivre at CAMPTOCAMP.COM Tue Oct 4 08:35:37 2005 From: daniel.faivre at CAMPTOCAMP.COM (Daniel) Date: Tue, 4 Oct 2005 17:35:37 +0200 Subject: HELP-1! In-Reply-To: Message-ID: For routing, u can use the pgdijkstra extension written as a postgresql contrib by camptocamp. You can download it and consult documentation on cartoweb.org. With pgdijkstra, you can compute (for sample) the shortest path from one city to another, and define the result as a mapserver layer. In your mapfile, the shortest path layer will look like: LAYER [...] CONNECTIONTYPE postgis CONNECTION "user=webuser host=localhost dbname=geo" DATA "the_geom from (SELECT the_geom, gid from shortest_path_as_geometry('my_polyline_[table|query|view|tuples]', 2629, 10171)) as thing using unique gid using srid=-1" [...] You can also use mapscript to add a shortest path layer dynamically. In postgresql, you can directly compute a shortest path by a query like: SELECT shortest_path('SELECT source, id, target, cost FROM edges', 22791, 4816); Yours, dF volverinn at libero.it wrote: >Hello all, > >I've a question for my problem. >I want calculate a min route between two cities. >I've idea to implement this (i've thin al. e.g. link state for the router), but i dont'know if the Mapscript does execute some operation. >My intentions is: >with a database for support, i calculate index of shape object that will be into new shape. Therefore i must read from a shape shapeobj by index and insert to my result shape and finally i draw it. >With PHP/Mapscript can i do this? > >Thak for prospective response. > >Alessio. > > -------------- next part -------------- A non-text attachment was scrubbed... Name: daniel.faivre.vcf Type: text/x-vcard Size: 323 bytes Desc: not available URL: From willianrp at RC.UNESP.BR Tue Oct 4 08:23:05 2005 From: willianrp at RC.UNESP.BR (Willian Rampazzo) Date: Tue, 4 Oct 2005 12:23:05 -0300 Subject: MapServer Installation Problem Message-ID: *Hello Folks,* I'm installig mapserver on a linux server running Fedora Core 4, i have already installed the libraries i need, this is the list of libraries: - Freetype - GD - GDAL - JPEG - Proj-4 - TIFF - PNG But i'm still getting this error message with running configure: /configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/gd-2.0.33. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv)./ I checked the files it is asking for and they are on the directory needed: /[root mapserver-4.6.1]# locate gd.h /usr/local/gd-2.0.33/include/gd.h [root mapserver-4.6.1]# locate libgd.a /usr/local/gd-2.0.33/lib/libgd.a [root mapserver-4.6.1]# locate libgd.so /usr/lib/libgd.so.2.0.0 /usr/lib/libgd.so.2 /usr/local/gd-2.0.33/lib/libgd.so.2.0.0 /usr/local/gd-2.0.33/lib/libgd.so.2 /usr/local/gd-2.0.33/lib/libgd.so/ The configure command with argumets i'm using is this one: /[root mapserver-4.6.1]# ./configure --with-png=/usr/local --with-proj=/usr/local/proj-4.4.9 --with-gdal=/usr/local/gdal-1.3.0/bin/gdal-config --with-php=/usr/local/php-5.0.5 --with-gd=/usr/local/gd-2.0.33 --enable-force-freetype1 --with-freetype=/usr/local/freetype.2.1.10 --with-wmsclient --with-jpeg=/usr/local / Does any one have an idea of how can i solve this prolem ? Any help would be appreciated. Best regards, Willian Rampazzo -------------- next part -------------- An HTML attachment was scrubbed... URL: From taka_www at SINAMAN.COM Tue Oct 4 09:03:42 2005 From: taka_www at SINAMAN.COM (Taka Wong) Date: Tue, 4 Oct 2005 11:03:42 -0500 Subject: Can Mapserver 4..6.1 read GML3?? Message-ID: Hi, Frank As I know, there is a new version of OGR. Someting like OGR 1.3.1, which claims that it can support read and write GML3 Level0. Would it cause any possibility for GML 3 read support in current Mapserver 4.6.1? Since I am required to figure out if there is any possibility in reading GML3 files and then generating corresponding image as a Web Map Service. Thank you very much Best Regards Taka From warmerdam at POBOX.COM Tue Oct 4 09:14:19 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 4 Oct 2005 12:14:19 -0400 Subject: Can Mapserver 4..6.1 read GML3?? In-Reply-To: Message-ID: On 10/4/05, Taka Wong wrote: > Hi, Frank > > As I know, there is a new version of OGR. Someting like OGR 1.3.1, which > claims that it can support read and write GML3 Level0. Would it cause any > possibility for GML 3 read support in current Mapserver 4.6.1? Taka, I'm afraid when I claimed GML3L0 support in OGR I didn't realize some of the GML3 changes. So, it isn't really GML3 ready though as I mentioned some simple GML3 products might work. I would suggest you try out the files in question with the GDAL 1.3.1 ogrinfo and see if they work ok. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gavin.simpson at UCL.AC.UK Tue Oct 4 09:25:48 2005 From: gavin.simpson at UCL.AC.UK (Gavin Simpson) Date: Tue, 4 Oct 2005 17:25:48 +0100 Subject: MapServer Installation Problem In-Reply-To: <43429E59.5040702@rc.unesp.br> Message-ID: On Tue, 2005-10-04 at 12:23 -0300, Willian Rampazzo wrote: > Hello Folks, > > I'm installig mapserver on a linux server running Fedora Core 4, > i have already installed the libraries i need, this is the list of libraries: > > - Freetype > - GD > - GDAL > - JPEG > - Proj-4 > - TIFF > - PNG > > But i'm still getting this error message with running configure: > > configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/gd-2.0.33. > Make sure GD 2.0.16 or higher is compiled before calling configure. You may also > get this error if you didn't specify the appropriate location for one of GD's > dependencies (freetype, libpng, libjpeg or libiconv). > > I checked the files it is asking for and they are on the directory needed: > > [root mapserver-4.6.1]# locate gd.h > /usr/local/gd-2.0.33/include/gd.h ^^^^^^^^^ Perhaps this is the problem, gd.h is not in /usr/local/gd-2.0.33, but in /usr/local/gd-2.0.33/include/ Perhaps try those locations in your configure line. Also, I get: locate gd.h /usr/include/gd.h /usr/include/php/ext/gd/php_gd.h /usr/include/php/ext/gd/libgd/gd.h On a FC2 box and on a FC box: whereis gd.h gd: /usr/include/gd.h (locate is turned off by default on FC4 and I've not needed to re- enable). Did you install/compile these by hand? It would have been easier to grab as much as possible from from the YUM repositories. Also, you'll need the php-gd if you want to use php with mapserver (from you configure line). Perhaps my FC4 mapserver install page can be of some use? http://ecrc3.geog.ucl.ac.uk/dokuwiki/sysadmin/compile_mapserver HTH G > > [root mapserver-4.6.1]# locate libgd.a > /usr/local/gd-2.0.33/lib/libgd.a > > [root mapserver-4.6.1]# locate libgd.so > /usr/lib/libgd.so.2.0.0 > /usr/lib/libgd.so.2 > /usr/local/gd-2.0.33/lib/libgd.so.2.0.0 > /usr/local/gd-2.0.33/lib/libgd.so.2 > /usr/local/gd-2.0.33/lib/libgd.so > > The configure command with argumets i'm using is this one: > > [root mapserver-4.6.1]# ./configure --with-png=/usr/local --with-proj=/usr/local/proj-4.4.9 > --with-gdal=/usr/local/gdal-1.3.0/bin/gdal-config --with-php=/usr/local/php-5.0.5 > --with-gd=/usr/local/gd-2.0.33 --enable-force-freetype1 --with-freetype=/usr/local/freetype.2.1.10 > --with-wmsclient --with-jpeg=/usr/local > > Does any one have an idea of how can i solve this prolem ? > Any help would be appreciated. > > Best regards, > > Willian Rampazzo -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% From watry at COAPS.FSU.EDU Tue Oct 4 10:59:33 2005 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Tue, 4 Oct 2005 12:59:33 -0500 Subject: fontset.txt Message-ID: Hi could someone tell me the syntext or what goes inside of a fontset.txt so I can build one. Thanks From armin.burger at GMX.NET Tue Oct 4 11:02:13 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Tue, 4 Oct 2005 20:02:13 +0200 Subject: Behaviour of 'loadMapContext()' In-Reply-To: Message-ID: I have a question to the behaviour of the Mapscript function $map->loadMapContext() The Map Context XML has a mandatory entry "". When I use a map that has eg. a projection like Lambert Equal Area Azimuthal and I load a context file where the specified is and the SRS for the layers is EPSG:4326 then the map will automatically be reprojected to the SRS set in the of the loaded Map Context file. Also the map size changes from the original settings to the ones specified in the context file under and the map extent is set to the values of . Why is this behaviour intended to be like that? If one omits the then the WMS layers are loaded to the map but the original projection is kept. But a context file without it is not correct according to the context schema. Ok, I can reset the map parameters after loading the context file to the original settings. Armin From warmerdam at POBOX.COM Tue Oct 4 12:32:51 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 4 Oct 2005 15:32:51 -0400 Subject: GDAL/OGR 1.3.1 Released Message-ID: Folks, I am pleased to announce the release of GDAL/OGR 1.3.1. This is mostly a bug fix release, though there are a few new and improved drivers. Source: http://www.gdal.org/dl/gdal-1.3.1.tar.gz http://www.gdal.org/dl/gdal131.zip Docs / Web site: http://www.gdal.org/dl/gdal131doc.zip Test Suite: http://www.gdal.org/dl/gdalautotest-1.3.1.tar.gz The major news with this release is that the "Next Generation" Perl, Python and Ruby bindings are now considered ready to use, though I'm sure there will be some additional improvements to them in the coming months. I would like to give out a special thank you to Ari Jolma (perl), Charlie Savage (Ruby), Kevin Ruland (Python + overall NG work) and Howard Butler who have put in a huge amount of effort on these bindings. If we can get champions for Java, C# and PHP that are willing to brave the dark depths of SWIG, I'm sure we can make good progress on them too. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent GDAL 1.3.1 - Overview of Changes -------------------------------- Next Generation SWIG Wrappers (GDAL and OGR): - Python, Perl and Ruby bindings considered to be ready to use. - C#, Java, PHP are at best initial prototypes. - Added configure options for most NG options. PCRaster Driver: - libcsf is now included as part of GDAL. - PCRaster enabled by default on win32. - --with-pcraster=internal option now supported on unix (but not yet default) VSI Virtualization: - The "large file API" (VSI*L) has been re-engineered to allow installing additional file handlers at runtime. - Added "in memory" VSI handler so that now any driver using VSI*L functions for data access can operate on in-memory files. - PNG, JPEG and GeoTIFF drivers upgraded to work with in-memory support. Raster Attribute Tables: - Implemented new Raster Attribute Tables support. See the GDALRasterAttributeTable class for more information. Erdas Imagine Overviews: - Erdas Imagine driver upgraded to support building internal overviews. - Generic overview handler updated to support overviews in Erdas Imagine format for any file format. Set USE_RRD config option to YES to enable. gdalwarp: - Added proper support for "unified source nodata", so the -srcnodata switch works well. RIK Driver: - New Swedish format driver implemented by Daniel Wallner. JPEG Driver: - Substantial improvements to EXIF support. MrSID Driver: - Updated with proper JPEG2000 support as JP2MRSID driver, including encoding with ESDK. - Updated to support MrSID Version 5.x SDKs. PNG Driver: - Fixed serious bugs with 16bit file support. - Added NODATA_VALUES to identify RGB sets that indicate a nodata pixel. OGR 1.3.1 - Overview of Changes ------------------------------- Reference Counting: - OGRSpatialReference and OGRFeatureDefn now honour reference counting semantics. - Note that, especially for the OGRFeatureDefn, it is now critical that all drivers be careful with reference counting. Any OGR drivers not in the core distribution will likely crash if not updated. ESRI Personal Geodatabase Driver: - New driver implemented for ESRI Personal Geodatabase (.mdb) files. - Uses ODBC, enabled by default on win32. ODBC Driver: - Updated to support binary fields. - Updated to support WKB geometry fields. - Updated to support DSN-less connections. S57 Driver: - Added support for Inland Waterways, and Additional Military Layers profiles From dianajimena at GMAIL.COM Tue Oct 4 14:09:11 2005 From: dianajimena at GMAIL.COM (Diana Jimena Pacheco Solano) Date: Tue, 4 Oct 2005 16:09:11 -0500 Subject: qstring Message-ID: Hi!! Someone knows if it is posible to pass to the variable qstring a parameter as vector or a file (for example, *.txt) How I can do it? Thanks, Saludos, Diana Jimena Pacheco Solano -------------- next part -------------- An HTML attachment was scrubbed... URL: From erics at AMERI-TITLE.COM Tue Oct 4 14:46:27 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Tue, 4 Oct 2005 16:46:27 -0500 Subject: Tif won't display Message-ID: You are right, it was the projection. My Bad. Thanks for the help! From erics at AMERI-TITLE.COM Tue Oct 4 15:03:37 2005 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Tue, 4 Oct 2005 17:03:37 -0500 Subject: Sid complie Message-ID: It seems my install of mapserver (via FGS) doesn't support sid, and I have a large sid image that if converted to tiff will be over 20gigs in size. (I could tile it but it would still take up a lot of space) How hard is it to include sid? Will this cause problems with the FGS setup? What is the procedure? I'm fairly green when it comes to linux so if I could get the "For Dummies" explanation it would be helpful! Thanks, Eric * OS: FEDORA CORE 3 * FGS API version : * NAME VERSION * apache-base 1.3.33 * curl-lib 7.12.2 * expat-base 1.95.8 * freetype-lib 2.1.9 * gdal-base 1.2.5 * gd-lib 2.0.33 * geos-lib 1.0.0 * jpeg-lib 6b * libgeotiff-lib 1.2.2 * libiconv-base 1.9.1 * libpng-lib 1.2.6 * libungif-base 4.1.3 * mapserver-base 4.4.1 * mapserver-php 4.4.1 * netcdf-lib 3.5.1 * openssl-lib 0.9.7d * php-base 4.3.10 * postgis-lib 1.0.0 * postgresql-lib 7.4.7 * postgresql-server 7.4.7 * proj4_epsg42xxx-support 1.0.0 * proj-lib 4.4.8 * tiff-lib 3.7.1 * unixODBC-base 2.2.10 * xerces_c-base 2_6_0 From kumar at NEWFIELDS.COM Tue Oct 4 20:29:55 2005 From: kumar at NEWFIELDS.COM (Kumar) Date: Tue, 4 Oct 2005 23:29:55 -0400 Subject: fontset.txt In-Reply-To: Message-ID: I think its just alias name and the font file location. So if you have font file in the same directory it is fritqat fritqat.ttf fritqat-bold fritqtb0.ttf fritqat-italic fritqti0.ttf fritqat-bold-italic fritqtb2.ttf fritqat fritqat.ttf esri_801_env_an esri_801.ttf esri_9_trans esri_9.ttf Garamond GARA.ttf I just pasted my font.txt above. - kumar -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gary Watry Sent: Tuesday, October 04, 2005 2:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] fontset.txt Hi could someone tell me the syntext or what goes inside of a fontset.txt so I can build one. Thanks From kumar at NEWFIELDS.COM Tue Oct 4 20:34:26 2005 From: kumar at NEWFIELDS.COM (Kumar) Date: Tue, 4 Oct 2005 23:34:26 -0400 Subject: Install problem In-Reply-To: <200510041331.j94DVZZN188146@f05n03.cac.psu.edu> Message-ID: I am not sure where you set the favicon but you can try just putting a favicon in the directory. I had the same problem, even thou I didn't use favicon in the code it was looking for it (It maybe an apache setting somewhere). Anyways just get a favicon and try. Hopefully it will fix your problem. - kumar -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Crawford Sent: Tuesday, October 04, 2005 9:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Install problem All, I'm a MapServer newbie, though I know a bit about WMS and WFS, having used GeoServer and ArcIMS in some projects. On my desktop machine running XP I've installed Apache 2.0; downloaded MapServer 4.4.1 Windows binaries, and added "C:\MapServer" to Path and added the PATH_LIB variable to point to the appropriate place. When I try to go to localhost/cgi-bin/mapserv.exe I get "Internal Server Error", and the server error log gives me this: "Premature end of script headers: mapserv.exe" and "File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico" Apache itself seems to be working (get the welcome page for localhost). Any thoughts? Thanks, Steve Stephen Crawford Center for Environmental Informatics GeoVISTA Center The Pennsylvania State University 814.865.9905 src176 at psu.edu From taka_www at SINAMAN.COM Tue Oct 4 21:35:57 2005 From: taka_www at SINAMAN.COM (Taka Wong) Date: Tue, 4 Oct 2005 23:35:57 -0500 Subject: Are there any functional differences between Unix and Windows? Message-ID: HI, I am totally new on using Mapserver, now I am puzzle on using which platform as my Mapserver Web Map Server. May I know the functional differences betwwen Unix/Linux and Windows? If yes, are there any limitation or restriction on each of them? and what should I take a notice on? Best Regards, Taka Wong From higon_jos at GVA.ES Wed Oct 5 00:24:23 2005 From: higon_jos at GVA.ES (Jos=?ISO-8859-1?Q?=E9_Vte_Hig=F3n?=) Date: Wed, 5 Oct 2005 02:24:23 -0500 Subject: Reducing information Message-ID: Hi list, I have running mapserver with postgis and I want to serve a huge layer which original datasource is a shapefile with 1Gb size. If I try to get the layer with a full extent the request take long time to be visualized. In order to solve my problem, I have configured two layers, the first one can be visualized when the scale it's very small and the datasource is the original shapefile into postgis, the other one only can be visualized when the scale is bigger but I need a datasource smaller than the original. Finally I have a unique layer accesing both with a wms connection type (as wms client). How can I get a datasource smaller than the original shapefile (or postgis table)? Is my solution the correct approach to the problem? Thanks in advance. From BEN at SYNCERA-ITSOLUTIONS.NL Wed Oct 5 00:30:09 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 5 Oct 2005 09:30:09 +0200 Subject: Reducing information Message-ID: Hi, I think your approach is right. PostGIS has a function called Simplify which could simplify geometries, use that function to create a new simplified table. Simplify(geometry, tolerance) Returns a "simplified" version of the given geometry using the Douglas-Peuker algorithm. Will actually do something only with (multi)lines and (multi)polygons but you can safely call it with any kind of geometry. Since simplification occurs on a object-by-object basis you can also feed a GeometryCollection to this function. Note that returned geometry might loose its simplicity (see IsSimple) Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Jos? Vte Hig?n 10/05/05 9:24 AM >>> Hi list, I have running mapserver with postgis and I want to serve a huge layer which original datasource is a shapefile with 1Gb size. If I try to get the layer with a full extent the request take long time to be visualized. In order to solve my problem, I have configured two layers, the first one can be visualized when the scale it's very small and the datasource is the original shapefile into postgis, the other one only can be visualized when the scale is bigger but I need a datasource smaller than the original. Finally I have a unique layer accesing both with a wms connection type (as wms client). How can I get a datasource smaller than the original shapefile (or postgis table)? Is my solution the correct approach to the problem? Thanks in advance. From Jeroen.Ticheler at FAO.ORG Wed Oct 5 01:25:12 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Wed, 5 Oct 2005 10:25:12 +0200 Subject: Fwd: [gislist] Mxp -> map conversion Message-ID: > Hi, Posting this message (from the gislist) to the MapServer and GeoTools mailing lists as I think there may be interest within these communities for this tool. An earlier post a couple of months ago didn't generate a single reply, so I may be wrong :-) > I've developed a tool to export an MXD to an AXL (ArcIMS) > configuration file. It works on both ArcMap 8 and 9 and does > conversions of all (risky statement...) the symbology of ArcMap (both > for vector and raster & truetype symbols on most supported data > formats). > > I have tried to get someone interested in developing an XSL > transformation of these AXL files into MapServer map files (or > SLD), but no > one reacted unfortunately and I do not have the MapServer knowledge > required nor the time to develop these. However, if someone creates > such XSL (even starting with something fairly basic) I would be very > happy to incorporate the functionality as one of the export formats > of the tool. > > You can find the tool in the ArcScripts section on the > support.esri.com website . The tool's name is MXD2AXL > Greetings, > Jeroen > > On 26 Sep 2005, at 16:46, Ed Dowding wrote: > > >> Thanks, Jeff, for the useful reply. >> >> Would anyone be able to help with the conversion? I have just one >> file >> (about 450k) that needs converting from mxd to .map. >> >> I have no idea if this is a lengthy process or not, but if it is >> obviously >> there will be remuneration. >> >> Please contact me off list if you're interested. >> >> TIA, >> >> >> Ed. >> >> >> --------------------------------------------------------------------- >> Ed Dowding ed at usology.com >> Usology Ltd http://www.usology.com >> ===================================================================== >> [mob] +44 (0)7775 79 18 14 [sky] ed_usology >> [tel] +44 (0)20 7871 18 14 (c)2005 Usology Ltd >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> >> >> >> -----Original Message----- >> From: gislist-bounces at lists.geocomm.com >> [mailto:gislist-bounces at lists.geocomm.com] On Behalf Of Jeff McKenna >> Sent: 26 September 2005 13:50 >> To: gislist at lists.thinkburst.com >> Subject: Re: [gislist] Mxp -> map conversion >> >> Amein! is the mxd-to-map utility, Avein! is the apr-to-map >> utility...if >> you use ArcGIS 9 you should be able to use Amein! (same URL as you >> stated). >> >> Another good apr-to-mxd utility is Gix (http://gix.sourceforge.net/), >> but the mxd-to-map utility is in development (according to the >> website). >> >> Quantum GIS (QGIS, http://www.qgis.org/) does have an 'Export as >> MapServer mapfile) option, but the last time i tried it it was >> still not >> fully functional. >> >> jeff >> >> Ed Dowding wrote: >> >> >>> Hi ~ >>> >>> I'm using MapServer (http://mapserver.gis.umn.edu/) on a project, >>> and need >>> to show style data with the information from an .mxp file. >>> >>> Alas mapserver doesn't support this format. >>> >>> Can anyone help? >>> >>> Would it be possible either to: >>> >>> o Convert the mxd to a map file using ArcView and Avein! >>> (http://sourceforge.net/projects/avein/) >>> >>> o Give us some kind of human-readable version of the mxd file so >>> we can >>> code the map file ourselves >>> >>> >>> Thanks, gislist, >>> >>> >>> >>> Ed. >>> >>> >>> >> >> >> -- >> Jeff McKenna >> DM Solutions Group Inc. >> http://www.dmsolutions.ca >> >> _______________________________________________ >> gislist mailing list >> gislist at lists.geocomm.com >> http://lists.geocomm.com/mailman/listinfo/gislist >> >> _________________________________ >> This list is brought to you by >> The GeoCommunity >> http://www.geocomm.com/ >> >> >> _______________________________________________ >> gislist mailing list >> gislist at lists.geocomm.com >> http://lists.geocomm.com/mailman/listinfo/gislist >> >> _________________________________ >> This list is brought to you by >> The GeoCommunity >> http://www.geocomm.com/ >> >> > > _______________________________________________ > gislist mailing list > gislist at lists.geocomm.com > http://lists.geocomm.com/mailman/listinfo/gislist > > _________________________________ > This list is brought to you by > The GeoCommunity > http://www.geocomm.com/ > From adams at TERRESTRIS.DE Wed Oct 5 01:52:23 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 5 Oct 2005 10:52:23 +0200 Subject: Fwd: [gislist] Mxp -> map conversion In-Reply-To: Message-ID: Dear all, there is a tool which converts axl to mapfiles written by Primin Kelber (hello ;-)) who also was on the MUM this year. I'm not sure about the license ...?? Greets, Till >> Hi, > > > Posting this message (from the gislist) to the MapServer and GeoTools > mailing lists as I think there may be interest within these communities > for this tool. An earlier post a couple of months ago didn't generate a > single reply, so I may be wrong :-) > >> I've developed a tool to export an MXD to an AXL (ArcIMS) >> configuration file. It works on both ArcMap 8 and 9 and does >> conversions of all (risky statement...) the symbology of ArcMap (both >> for vector and raster & truetype symbols on most supported data >> formats). >> >> I have tried to get someone interested in developing an XSL >> transformation of these AXL files into MapServer map files (or SLD), >> but no >> one reacted unfortunately and I do not have the MapServer knowledge >> required nor the time to develop these. However, if someone creates >> such XSL (even starting with something fairly basic) I would be very >> happy to incorporate the functionality as one of the export formats >> of the tool. >> >> You can find the tool in the ArcScripts section on the >> support.esri.com website . The tool's name is MXD2AXL >> Greetings, >> Jeroen >> >> On 26 Sep 2005, at 16:46, Ed Dowding wrote: >> >> >>> Thanks, Jeff, for the useful reply. >>> >>> Would anyone be able to help with the conversion? I have just one file >>> (about 450k) that needs converting from mxd to .map. >>> >>> I have no idea if this is a lengthy process or not, but if it is >>> obviously >>> there will be remuneration. >>> >>> Please contact me off list if you're interested. >>> >>> TIA, >>> >>> >>> Ed. >>> >>> >>> --------------------------------------------------------------------- >>> Ed Dowding ed at usology.com >>> Usology Ltd http://www.usology.com >>> ===================================================================== >>> [mob] +44 (0)7775 79 18 14 [sky] ed_usology >>> [tel] +44 (0)20 7871 18 14 (c)2005 Usology Ltd >>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >>> >>> >>> >>> -----Original Message----- >>> From: gislist-bounces at lists.geocomm.com >>> [mailto:gislist-bounces at lists.geocomm.com] On Behalf Of Jeff McKenna >>> Sent: 26 September 2005 13:50 >>> To: gislist at lists.thinkburst.com >>> Subject: Re: [gislist] Mxp -> map conversion >>> >>> Amein! is the mxd-to-map utility, Avein! is the apr-to-map >>> utility...if >>> you use ArcGIS 9 you should be able to use Amein! (same URL as you >>> stated). >>> >>> Another good apr-to-mxd utility is Gix (http://gix.sourceforge.net/), >>> but the mxd-to-map utility is in development (according to the >>> website). >>> >>> Quantum GIS (QGIS, http://www.qgis.org/) does have an 'Export as >>> MapServer mapfile) option, but the last time i tried it it was >>> still not >>> fully functional. >>> >>> jeff >>> >>> Ed Dowding wrote: >>> >>> >>>> Hi ~ >>>> >>>> I'm using MapServer (http://mapserver.gis.umn.edu/) on a project, >>>> and need >>>> to show style data with the information from an .mxp file. >>>> >>>> Alas mapserver doesn't support this format. >>>> >>>> Can anyone help? >>>> >>>> Would it be possible either to: >>>> >>>> o Convert the mxd to a map file using ArcView and Avein! >>>> (http://sourceforge.net/projects/avein/) >>>> >>>> o Give us some kind of human-readable version of the mxd file so >>>> we can >>>> code the map file ourselves >>>> >>>> >>>> Thanks, gislist, >>>> >>>> >>>> >>>> Ed. >>>> >>>> >>>> >>> >>> >>> -- >>> Jeff McKenna >>> DM Solutions Group Inc. >>> http://www.dmsolutions.ca >>> >>> _______________________________________________ -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From watry at COAPS.FSU.EDU Wed Oct 5 04:23:41 2005 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Wed, 5 Oct 2005 07:23:41 -0400 Subject: fontset.txt In-Reply-To: Message-ID: Never mind, found it on one of the sites ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Gary Watry Sent: Tuesday, October 04, 2005 2:00 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] fontset.txt Hi could someone tell me the syntext or what goes inside of a fontset.txt so I can build one. Thanks From bryon at PEOPLEGIS.COM Wed Oct 5 06:32:50 2005 From: bryon at PEOPLEGIS.COM (Bryon Kenne) Date: Wed, 5 Oct 2005 06:32:50 -0700 Subject: Postgres 8+ & PostGIS under MS4W Message-ID: Does anybody know if there is a method to install PostgreSQL version 8+ with PostGIS back under MS4W, like 7.5? PeopleGIS, Inc. Bryon Kenne Project Director 917.671.6951 phone/cell bryon at peoplegis.com www.peoplegis.com "Its all about people..." -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Wed Oct 5 06:45:22 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 5 Oct 2005 15:45:22 +0200 Subject: Postgres 8+ & PostGIS under MS4W Message-ID: Hi, Just download the PostgreSQL 8.0.3 Windows installer (don't install the PostGIS version from that installer) and then run Mark Cave-Ayland's PostGIS 1.0.4 installer: http://www.webbased.co.uk/mca/ Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Bryon Kenne 10/05/05 3:32 PM >>> Does anybody know if there is a method to install PostgreSQL version 8+ with PostGIS back under MS4W, like 7.5? PeopleGIS, Inc. Bryon Kenne Project Director 917.671.6951 phone/cell bryon at peoplegis.com www.peoplegis.com "Its all about people..." From holmand24 at GMAIL.COM Wed Oct 5 06:49:28 2005 From: holmand24 at GMAIL.COM (=?ISO-8859-1?Q?Holmand_Dar=EDo_Villalba_Barajas?=) Date: Wed, 5 Oct 2005 08:49:28 -0500 Subject: help with qstring Message-ID: who has used someone qstring to do querys? I need help with it. Thank you. From carlo.calvino at EMAIL.IT Wed Oct 5 07:31:12 2005 From: carlo.calvino at EMAIL.IT (Carlo Calvino) Date: Wed, 5 Oct 2005 09:31:12 -0500 Subject: Problems with ArcInfo Binary grid... Message-ID: If the use of *.lyr is not possible, is there any other possibilities? For example, what about *.clr files? Is there a tool to convert from .clr/.lyr to a map file? From warmerdam at POBOX.COM Wed Oct 5 07:53:25 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 5 Oct 2005 10:53:25 -0400 Subject: Problems with ArcInfo Binary grid... In-Reply-To: Message-ID: On 10/5/05, Carlo Calvino wrote: > If the use of *.lyr is not possible, is there any other possibilities? > For example, what about *.clr files? Is there a tool to convert > from .clr/.lyr to a map file? Carlo, Yes, .clr files *should* work and mapserver should color the raster according to the .clr file if is present. You can check quickly whether the colortable is found by using gdalinfo on the binary grid. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gyetman at CIESIN.COLUMBIA.EDU Wed Oct 5 11:49:03 2005 From: gyetman at CIESIN.COLUMBIA.EDU (Gregory Yetman) Date: Wed, 5 Oct 2005 14:49:03 -0400 Subject: WMS: wrap past 180 East/West Message-ID: Hi, We've managed to get mapserver to serve a series of tiled images via WMS. However, when we request a portion of the data that crosses the date line, there is a large gap created in the output image. We've tried using different projections, but the gap appears regardless (in native projection -- mercator, and in geographic). A sample GetMap is below, but I've deleted the server name as it's not public yet. The data are properly georeferenced, they line up fine with other layers in commercial and open source GIS packages. Any suggestions as to why the image won't wrap properly? Greg http:///exe/mapserv?map=ldeo.map&service=WMS&version=1.1.1&request=GetMap&Layers=tile_wrapper&srs=epsg:4326&bbox=-195,0,0,90&format=png -- -------------------------------------------------------------------- Gregory Yetman Center for International Earth Science Information Network (CIESIN) Columbia University URL: http://www.ciesin.columbia.edu/ e-mail: gyetman (at) ciesin.columbia.edu tel: (845) 365-8982 -------------------------------------------------------------------- From pramsey at REFRACTIONS.NET Wed Oct 5 12:39:15 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 5 Oct 2005 12:39:15 -0700 Subject: Postgres 8+ & PostGIS under MS4W In-Reply-To: Message-ID: There are a couple things the installer does (create a postgres user, add startup as a service) which are not so consistent with the ms4w unzip'n'run approach. In theory though, you could probably take the installation from the installer, zip it back up, and do an unzip'n'run with it. There might be a few changes you need to make, but not many. P Bart van den Eijnden wrote: > Hi, > > Just download the PostgreSQL 8.0.3 Windows installer (don't install > the PostGIS version from that installer) and then run Mark > Cave-Ayland's PostGIS 1.0.4 installer: > > http://www.webbased.co.uk/mca/ > > Best regards, Bart > > Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT > > tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl > >>>> Bryon Kenne 10/05/05 3:32 PM >>> > > Does anybody know if there is a method to install PostgreSQL version > 8+ with PostGIS back under MS4W, like 7.5? > > > > > PeopleGIS, Inc. Bryon Kenne Project Director 917.671.6951 phone/cell > bryon at peoplegis.com www.peoplegis.com > > "Its all about people..." From oliver_ishmael at HOTMAIL.COM Wed Oct 5 15:22:10 2005 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Wed, 5 Oct 2005 23:22:10 +0100 Subject: php website 'Submit Query' error Message-ID: Hi all, I have written a web page in php/html and am trying to use it as a web template. Currently i can display the webpage but the Mapserver window simply states: Submit Query I realise i must be missing something fundamental but cannot pin it down. I have attached a copy with a sample dataset and would be very greatful if anyone could find the time to take a look at it. I am running it in MS4W v0.9 and have the 'tm' folder installed to D:\ms4w\Apache\htdocs\ ..perhaps i have not correctly configured it to pass all the necessary cgi variables?? Many thanks in advance Olly _________________________________________________________________ The new MSN Search Toolbar now includes Desktop search! http://toolbar.msn.co.uk/ -------------- next part -------------- A non-text attachment was scrubbed... Name: tm.zip Type: application/x-compressed Size: 2316557 bytes Desc: not available URL: From oliver_ishmael at HOTMAIL.COM Wed Oct 5 15:32:34 2005 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Wed, 5 Oct 2005 23:32:34 +0100 Subject: php website 'Submit Query' error Message-ID: Hi all, I have written a web page in php/html and am trying to use it as a web template. Currently i can display the webpage but the Mapserver window simply states: Submit Query I realise i must be missing something fundamental but cannot pin it down. I have attached a copy with a sample dataset and would be very greatful if anyone could find the time to take a look at it. I am running it in MS4W v0.9 and have the 'tm' folder installed to D:\ms4w\Apache\htdocs\ ..perhaps i have not correctly configured it to pass all the necessary cgi variables?? Many thanks in advance Olly _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters -------------- next part -------------- A non-text attachment was scrubbed... Name: tm.zip Type: application/x-compressed Size: 2316557 bytes Desc: not available URL: From steve at SIERRACLUB.BC.CA Wed Oct 5 17:02:00 2005 From: steve at SIERRACLUB.BC.CA (Steve Young) Date: Wed, 5 Oct 2005 17:02:00 -0700 Subject: Speed difference between 3.6.1 and 4.6.0 Message-ID: Hi folks, I have two mapserver sites running. One on Mapserver 3.6.1 and the other on 4.6.0 The 3.6 site is on a Duron 750 with 256Mb RAM and an IDE drive. Webserver is Apache 1.3x The 4.6 site is on a Celeron 1.7GHz with 256Mb RAM and a similar IDE drive. Webserver is Apache 2 Both sites use an identical interface and have the same datasets. The 4.6 has a few extra raster tiles in full colour. My issue is the 3.6 site is at least twice as fast at creating a map image as the 4.6 site. This is when they both have the same datasets and extents selected and the same (gif) output format. Speed difference appears to be the same for either raster or vector. I've used tileindexes, shptrees and sortshp to optimize speed on both sites so I'm starting to look beyond data any differences in how the data is presented to the the sites. Has anyone else had a similar experience or has any ideas? Currently I suspect it might be down to build differences. Is that feasible? Thanks for any help. Steve MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE From chris at NARX.NET Wed Oct 5 17:43:30 2005 From: chris at NARX.NET (Chris Tweedie) Date: Thu, 6 Oct 2005 08:43:30 +0800 Subject: Fwd: [gislist] Mxp -> map conversion In-Reply-To: <43439447.8040907@terrestris.de> Message-ID: I did up a short tutorial on how to use Amein! with arcmap 8.3 at http://chris.narx.net/?p=23 Unfortunately people seem to be running into problems using it with v9. IMO trying to do it with XLST would be a very long arduous task, but if you have had any success i'd be very interested. Quoting Till Adams : > Dear all, > > there is a tool which converts axl to mapfiles written by Primin Kelber > (hello ;-)) who also was on the MUM this year. I'm not sure about the > license ...?? > > Greets, Till > > > >> Hi, > > > > > > Posting this message (from the gislist) to the MapServer and GeoTools > > mailing lists as I think there may be interest within these communities > > for this tool. An earlier post a couple of months ago didn't generate a > > single reply, so I may be wrong :-) > > > >> I've developed a tool to export an MXD to an AXL (ArcIMS) > >> configuration file. It works on both ArcMap 8 and 9 and does > >> conversions of all (risky statement...) the symbology of ArcMap (both > >> for vector and raster & truetype symbols on most supported data > >> formats). > >> > >> I have tried to get someone interested in developing an XSL > >> transformation of these AXL files into MapServer map files (or SLD), > >> but no > >> one reacted unfortunately and I do not have the MapServer knowledge > >> required nor the time to develop these. However, if someone creates > >> such XSL (even starting with something fairly basic) I would be very > >> happy to incorporate the functionality as one of the export formats > >> of the tool. > >> > >> You can find the tool in the ArcScripts section on the > >> support.esri.com website . The tool's name is MXD2AXL > >> Greetings, > >> Jeroen > >> > >> On 26 Sep 2005, at 16:46, Ed Dowding wrote: > >> > >> > >>> Thanks, Jeff, for the useful reply. > >>> > >>> Would anyone be able to help with the conversion? I have just one file > >>> (about 450k) that needs converting from mxd to .map. > >>> > >>> I have no idea if this is a lengthy process or not, but if it is > >>> obviously > >>> there will be remuneration. > >>> > >>> Please contact me off list if you're interested. > >>> > >>> TIA, > >>> > >>> > >>> Ed. > >>> > >>> > >>> --------------------------------------------------------------------- > >>> Ed Dowding ed at usology.com > >>> Usology Ltd http://www.usology.com > >>> ===================================================================== > >>> [mob] +44 (0)7775 79 18 14 [sky] ed_usology > >>> [tel] +44 (0)20 7871 18 14 (c)2005 Usology Ltd > >>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > >>> > >>> > >>> > >>> -----Original Message----- > >>> From: gislist-bounces at lists.geocomm.com > >>> [mailto:gislist-bounces at lists.geocomm.com] On Behalf Of Jeff McKenna > >>> Sent: 26 September 2005 13:50 > >>> To: gislist at lists.thinkburst.com > >>> Subject: Re: [gislist] Mxp -> map conversion > >>> > >>> Amein! is the mxd-to-map utility, Avein! is the apr-to-map > >>> utility...if > >>> you use ArcGIS 9 you should be able to use Amein! (same URL as you > >>> stated). > >>> > >>> Another good apr-to-mxd utility is Gix (http://gix.sourceforge.net/), > >>> but the mxd-to-map utility is in development (according to the > >>> website). > >>> > >>> Quantum GIS (QGIS, http://www.qgis.org/) does have an 'Export as > >>> MapServer mapfile) option, but the last time i tried it it was > >>> still not > >>> fully functional. > >>> > >>> jeff > >>> > >>> Ed Dowding wrote: > >>> > >>> > >>>> Hi ~ > >>>> > >>>> I'm using MapServer (http://mapserver.gis.umn.edu/) on a project, > >>>> and need > >>>> to show style data with the information from an .mxp file. > >>>> > >>>> Alas mapserver doesn't support this format. > >>>> > >>>> Can anyone help? > >>>> > >>>> Would it be possible either to: > >>>> > >>>> o Convert the mxd to a map file using ArcView and Avein! > >>>> (http://sourceforge.net/projects/avein/) > >>>> > >>>> o Give us some kind of human-readable version of the mxd file so > >>>> we can > >>>> code the map file ourselves > >>>> > >>>> > >>>> Thanks, gislist, > >>>> > >>>> > >>>> > >>>> Ed. > >>>> > >>>> > >>>> > >>> > >>> > >>> -- > >>> Jeff McKenna > >>> DM Solutions Group Inc. > >>> http://www.dmsolutions.ca > >>> > >>> _______________________________________________ > > -- > > Mit freundlichen Gr?ssen aus Bonn, > > Till Adams > > ****************************************** > * released: AmeiN! ArcMap-Export-2-UMN * > * LiveLinux 'WebGIS on CD' * > * http://www.terrestris.de * > ****************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, H. Paulsen& T. Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * http://www.terrestris.de > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From m.vanexel at BRIDGIS.NL Wed Oct 5 23:27:55 2005 From: m.vanexel at BRIDGIS.NL (Martijn van Exel) Date: Thu, 6 Oct 2005 08:27:55 +0200 Subject: Overlapping symbols Message-ID: Dear MapServer users, I have a mapfile with which MapServer (4.4) produces a topographic base layer with thematic symbols on top. I have one layer containing all the thematic data (point features) which I represent with symbols through the use of classes. This works of course :-) The problem however is that the symbols regularly overlap. E.g. I have a class for Hotels and one for Restaurants. It is not uncommon for one address to have both. The result is a messy overlap of hotel and restaurant symbols. Not nice. Is there any way around this without touching the source data? Thanks i.a. for any pointers, Regards, Martijn van Exel ASP-ontwikkelaar Onze datadiensten nu ook online via Data Service Providing ------------------- www.bridgis.nl ------------------- Sint Walburgkerkpad 3 T: 0344 - 636 242 Postbus 71 F: 0344 - 636 246 4000 AB TIEL ----------------- m.vanexel at bridgis.nl --------------- From David.Fawcett at STATE.MN.US Thu Oct 6 06:08:06 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 6 Oct 2005 08:08:06 -0500 Subject: Question Message-ID: Holmanzinho, I am forwarding this to the MapServer-Users list. -----Original Message----- From: Holmanzinho . [mailto:hd_greennal at hotmail.com] Sent: Tuesday, October 04, 2005 11:03 AM To: David.Fawcett at state.mn.us Subject: Question I have the following question: How I do a consultation with several attributes using the itemnquery. ...holmanzinho... -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Oct 6 07:07:13 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 6 Oct 2005 09:07:13 -0500 Subject: Problem after initialising the template Message-ID: Luca, In the WEB object of your map file, there are entries for IMAGEPATH and IMAGEURL. It sounds like you have IMAGEPATH set properly because MapServer is placing the image in the proper spot. Make sure that IMAGEURL is the correct URL to your image files. It sounds like you may not have the correct URL and because of that, the html template can't find the image. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Luca Casagrande Sent: Monday, October 03, 2005 4:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem after initialising the template Hi to all guys! I am moving the first steps into mapserver... i have created the map file,the initialising HTML and the template. I got just one problem: after initializing the file, the browser got to the template file, but i still got missing image icon; in the tmp folder i see all the image file created by mapserver, also when i press zoom or similar button. What can be the matter? P.S. i tested the mapserver installation using the hello world example on "Beginning Mapserver" book Thx for all Luca -- Nel 1969, 2 commodore 64 sono riusciti a far andare l'uomo sulla Luna... oggi, nel 2005, un Athlon XP 3500+ fa fatica a far girare Windows XP!!! Come si suol dire... Utente Linux 373965 ICQ 54327636 skype : thedoktor78 From steve.lime at DNR.STATE.MN.US Thu Oct 6 07:30:09 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 6 Oct 2005 09:30:09 -0500 Subject: help with qstring Message-ID: I've used attribute queries. Qstring is simply a MapServer expression. What are you trying to do? Steve >>> Holmand Dar?o Villalba Barajas 10/05/05 8:49 AM >>> who has used someone qstring to do querys? I need help with it. Thank you. From szekeres.tamas at FREEMAIL.HU Thu Oct 6 07:36:27 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Thu, 6 Oct 2005 09:36:27 -0500 Subject: GDAL/OGR 1.3.1 Released Message-ID: Frank, Thank you for the release. However in order to compile SWIG with C# some modifications should be made in the makefile and some typemaps should be added. Tamas On Tue, 4 Oct 2005 15:32:51 -0400, Frank Warmerdam wrote: >Folks, > >I am pleased to announce the release of GDAL/OGR 1.3.1. This is mostly a >bug fix release, though there are a few new and improved drivers. > >Source: > http://www.gdal.org/dl/gdal-1.3.1.tar.gz > http://www.gdal.org/dl/gdal131.zip > >Docs / Web site: > http://www.gdal.org/dl/gdal131doc.zip > >Test Suite: > http://www.gdal.org/dl/gdalautotest-1.3.1.tar.gz > >The major news with this release is that the "Next Generation" Perl, Python >and Ruby bindings are now considered ready to use, though I'm sure there will >be some additional improvements to them in the coming months. I would like to >give out a special thank you to Ari Jolma (perl), Charlie Savage (Ruby), >Kevin Ruland (Python + overall NG work) and Howard Butler who have put in a >huge amount of effort on these bindings. If we can get champions for Java, >C# and PHP that are willing to brave the dark depths of SWIG, I'm sure we can >make good progress on them too. > >Best regards, >---------------------------------------+---------------------------------- ---- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent > > > >GDAL 1.3.1 - Overview of Changes >-------------------------------- > >Next Generation SWIG Wrappers (GDAL and OGR): > - Python, Perl and Ruby bindings considered to be ready to use. > - C#, Java, PHP are at best initial prototypes. > - Added configure options for most NG options. > >PCRaster Driver: > - libcsf is now included as part of GDAL. > - PCRaster enabled by default on win32. > - --with-pcraster=internal option now supported on unix (but not yet default) > >VSI Virtualization: > - The "large file API" (VSI*L) has been re-engineered to allow installing > additional file handlers at runtime. > - Added "in memory" VSI handler so that now any driver using VSI*L > functions for data access can operate on in-memory files. > - PNG, JPEG and GeoTIFF drivers upgraded to work with in-memory support. > >Raster Attribute Tables: > - Implemented new Raster Attribute Tables support. See the > GDALRasterAttributeTable class for more information. > >Erdas Imagine Overviews: > - Erdas Imagine driver upgraded to support building internal overviews. > - Generic overview handler updated to support overviews in Erdas Imagine > format for any file format. Set USE_RRD config option to YES to enable. > >gdalwarp: > - Added proper support for "unified source nodata", so the -srcnodata > switch works well. > >RIK Driver: > - New Swedish format driver implemented by Daniel Wallner. > >JPEG Driver: > - Substantial improvements to EXIF support. > >MrSID Driver: > - Updated with proper JPEG2000 support as JP2MRSID driver, including > encoding with ESDK. > - Updated to support MrSID Version 5.x SDKs. > >PNG Driver: > - Fixed serious bugs with 16bit file support. > - Added NODATA_VALUES to identify RGB sets that indicate a nodata pixel. > > >OGR 1.3.1 - Overview of Changes >------------------------------- > >Reference Counting: > - OGRSpatialReference and OGRFeatureDefn now honour reference counting > semantics. > - Note that, especially for the OGRFeatureDefn, it is now critical that > all drivers be careful with reference counting. Any OGR drivers not in > the core distribution will likely crash if not updated. > >ESRI Personal Geodatabase Driver: > - New driver implemented for ESRI Personal Geodatabase (.mdb) files. > - Uses ODBC, enabled by default on win32. > >ODBC Driver: > - Updated to support binary fields. > - Updated to support WKB geometry fields. > - Updated to support DSN-less connections. > >S57 Driver: > - Added support for Inland Waterways, and Additional Military Layers profiles From steve.lime at DNR.STATE.MN.US Thu Oct 6 07:37:23 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 6 Oct 2005 09:37:23 -0500 Subject: Overlapping symbols Message-ID: You'd have to switch from a point layer to an annotation layer. With annotation layers the symbol is tied to the text and both are used in computing label collisions. Now, if you don't have text you want to display you can just draw a whitespace (" ") using the class text parameter and this will still work. You may want to sort your datasource so that restraunts or hotels get precedence. Problem is though that you have to give up one or the other. One other idea might be to offset hotels and restraunt symbols in opposite directions just a bit so the can apprear side-by-side. Styles support an OFFSET parameter. You still might consider processing the data though. For example, if you could use TrueType markers then you could create an "ammenties" string for each address that could reference multiple business types. The string would be output as a series of symbols centered on a point. Steve >>> Martijn van Exel 10/06/05 1:27 AM >>> Dear MapServer users, I have a mapfile with which MapServer (4.4) produces a topographic base layer with thematic symbols on top. I have one layer containing all the thematic data (point features) which I represent with symbols through the use of classes. This works of course :-) The problem however is that the symbols regularly overlap. E.g. I have a class for Hotels and one for Restaurants. It is not uncommon for one address to have both. The result is a messy overlap of hotel and restaurant symbols. Not nice. Is there any way around this without touching the source data? Thanks i.a. for any pointers, Regards, Martijn van Exel ASP-ontwikkelaar Onze datadiensten nu ook online via Data Service Providing ------------------- www.bridgis.nl ------------------- Sint Walburgkerkpad 3 T: 0344 - 636 242 Postbus 71 F: 0344 - 636 246 4000 AB TIEL ----------------- m.vanexel at bridgis.nl --------------- From JEROEN.Ticheler at FAO.ORG Thu Oct 6 07:41:53 2005 From: JEROEN.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Thu, 6 Oct 2005 16:41:53 +0200 Subject: WCS configuration Message-ID: Hi! I would like to have some more background on some items of the map file used for a time series WCS. I ran into the element "wcs_nativeformat" that has the value "raw binary" in the WCS samples. Are the values for this item free text, or should they be a value from a restricted list. (Or should I dive straight into the OGC-WCS specs now?) Other elements listed also lack information on their use. Can I help to improve them or is anyone planning to update the page? Thanks in advance. Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork From davidtecher at YAHOO.FR Thu Oct 6 10:05:17 2005 From: davidtecher at YAHOO.FR (david techer) Date: Thu, 6 Oct 2005 21:05:17 +0400 Subject: GDAL/OGR 1.3.1 Released - Building failed on Windows with MinGW In-Reply-To: Message-ID: Tamas is right! I tryed myself to compil it on Windows using MinGW and Msys but without any success. BTW, is there someone who can give me the commands he used to compil on Windows with MinGW/Msys. There is GDAL FAQ and the mailing-list and I tryed from the archive but if someon can just give to me the commands he did... Since I'm used to compiling/building PostgreSQL/PostGIS/Geos/Proj on windows, if I do it for gdal it will be a great help... Thanks. Regards. David. --david; ------------------------------------------------- Jean David TECHER e-mail: davidtecher(at)yahoo(dot)fr site: http://techer.pascal.free.fr/postgis/ ------------------------------------------------- Tamas Szekeres a ?crit : >Frank, > >Thank you for the release. However in order to compile SWIG with C# some >modifications should be made in the makefile and some typemaps should be >added. > > >Tamas > > > > >On Tue, 4 Oct 2005 15:32:51 -0400, Frank Warmerdam >wrote: > > > >>Folks, >> >>I am pleased to announce the release of GDAL/OGR 1.3.1. This is mostly a >>bug fix release, though there are a few new and improved drivers. >> >>Source: >> http://www.gdal.org/dl/gdal-1.3.1.tar.gz >> http://www.gdal.org/dl/gdal131.zip >> >>Docs / Web site: >> http://www.gdal.org/dl/gdal131doc.zip >> >>Test Suite: >> http://www.gdal.org/dl/gdalautotest-1.3.1.tar.gz >> >>The major news with this release is that the "Next Generation" Perl, >> >> >Python > > >>and Ruby bindings are now considered ready to use, though I'm sure there >> >> >will > > >>be some additional improvements to them in the coming months. I would >> >> >like to > > >>give out a special thank you to Ari Jolma (perl), Charlie Savage (Ruby), >>Kevin Ruland (Python + overall NG work) and Howard Butler who have put in >> >> >a > > >>huge amount of effort on these bindings. If we can get champions for >> >> >Java, > > >>C# and PHP that are willing to brave the dark depths of SWIG, I'm sure we >> >> >can > > >>make good progress on them too. >> >>Best regards, >>---------------------------------------+---------------------------------- >> >> >---- > > >>I set the clouds in motion - turn up | Frank Warmerdam, >> >> >warmerdam at pobox.com > > >>light and sound - activate the windows | http://pobox.com/~warmerdam >>and watch the world go round - Rush | Geospatial Programmer for Rent >> >> >> >>GDAL 1.3.1 - Overview of Changes >>-------------------------------- >> >>Next Generation SWIG Wrappers (GDAL and OGR): >>- Python, Perl and Ruby bindings considered to be ready to use. >>- C#, Java, PHP are at best initial prototypes. >>- Added configure options for most NG options. >> >>PCRaster Driver: >>- libcsf is now included as part of GDAL. >>- PCRaster enabled by default on win32. >>- --with-pcraster=internal option now supported on unix (but not yet >> >> >default) > > >>VSI Virtualization: >>- The "large file API" (VSI*L) has been re-engineered to allow installing >> additional file handlers at runtime. >>- Added "in memory" VSI handler so that now any driver using VSI*L >> functions for data access can operate on in-memory files. >>- PNG, JPEG and GeoTIFF drivers upgraded to work with in-memory support. >> >>Raster Attribute Tables: >>- Implemented new Raster Attribute Tables support. See the >> GDALRasterAttributeTable class for more information. >> >>Erdas Imagine Overviews: >>- Erdas Imagine driver upgraded to support building internal overviews. >>- Generic overview handler updated to support overviews in Erdas Imagine >> format for any file format. Set USE_RRD config option to YES to >> >> >enable. > > >>gdalwarp: >>- Added proper support for "unified source nodata", so the -srcnodata >> switch works well. >> >>RIK Driver: >>- New Swedish format driver implemented by Daniel Wallner. >> >>JPEG Driver: >>- Substantial improvements to EXIF support. >> >>MrSID Driver: >>- Updated with proper JPEG2000 support as JP2MRSID driver, including >> encoding with ESDK. >>- Updated to support MrSID Version 5.x SDKs. >> >>PNG Driver: >>- Fixed serious bugs with 16bit file support. >>- Added NODATA_VALUES to identify RGB sets that indicate a nodata pixel. >> >> >>OGR 1.3.1 - Overview of Changes >>------------------------------- >> >>Reference Counting: >>- OGRSpatialReference and OGRFeatureDefn now honour reference counting >> semantics. >>- Note that, especially for the OGRFeatureDefn, it is now critical that >> all drivers be careful with reference counting. Any OGR drivers not in >> the core distribution will likely crash if not updated. >> >>ESRI Personal Geodatabase Driver: >>- New driver implemented for ESRI Personal Geodatabase (.mdb) files. >>- Uses ODBC, enabled by default on win32. >> >>ODBC Driver: >>- Updated to support binary fields. >>- Updated to support WKB geometry fields. >>- Updated to support DSN-less connections. >> >>S57 Driver: >>- Added support for Inland Waterways, and Additional Military Layers >> >> >profiles > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From linh200210 at YAHOO.COM Thu Oct 6 07:59:57 2005 From: linh200210 at YAHOO.COM (Lin Huang) Date: Thu, 6 Oct 2005 07:59:57 -0700 Subject: mapscript: $result->shapeindex returns 0 and querying failed Message-ID: Hi all, My mapserver application using PHP/mapscripts works great. But I got errors when doing a query and hope someone could point out where did I do wrong. The query part in my php code: ------------ $layer = $mMap->getLayerByName(sites); $layer->open(); //Querying one layer $res = $layer->getResult(0); //print shapeindex echo "shpaindex: {$oRes->shapeindex}"; $shape = $layer->getShape($res->tileindex,$res->shapeindex); $i=0; while (list($key,$val) = each($shape->values) ) { $fields[$i++] = $key; echo "Result: $key, $val"; if ($i>=4) break; } ------------- The output: --------------- shpaindex: 0 Warning: Variable passed to each() is not an array or object in /usr/local/ms/htdocs/net.inc.php on line 294 ------------- The querying layer in my map file ------------- LAYER CONNECTIONTYPE postgis NAME "sites" DEBUG on # Connect to a remote spatial database CONNECTION "user=net100 dbname=netbase host=localhost" DATA "location from (select cust_id, site_id,location, product_id, site_name from customer_obs) as new_table using unique site_id using srid=4326" STATUS ON TYPE POINT TOLERANCE 5 CLASSITEM "product_id" LABELITEM "site_name" CLASS NAME 'wxm' EXPRESSION /5/ STYLE COLOR 255 000 255 SYMBOL 'star' SIZE 9 END LABEL COLOR 255 000 255 SIZE small POSITION CL MINDISTANCE 100 END # end of label TEMPLATE 'templates/icao_query.html' END HEADER "templates/icao_header.html" FOOTER "templates/footer.html" END -------------------- Looks to me like the problem is in the shapeindex. Why it always returns 0? Thanks very much for any help! Lin __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From warmerdam at POBOX.COM Thu Oct 6 08:20:54 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 6 Oct 2005 11:20:54 -0400 Subject: WCS configuration In-Reply-To: Message-ID: On 10/6/05, Jeroen Ticheler wrote: > Hi! > I would like to have some more background on some items of the map > file used for a time series WCS. > > I ran into the element "wcs_nativeformat" that has the value "raw > binary" in the WCS samples. Are the values for this item free text, > or should they be a value from a restricted list. (Or should I dive > straight into the OGC-WCS specs now?) Jeroen, I had been treating the native format as free text but I am not sure that is proper. I suspect the intent was that it match one of the available formats, and allows clients to request things in the native format so as to preserve the truest form of the original data. I would appreciate hearing what it ought to be. > Other elements listed also lack information on their use. Can I help > to improve them or is anyone planning to update the page? Do you have a userid on ms.gis.umn.edu? I think I would be able to add you to the list of those able to edit the document if you would like to do some work on it. You should likely keep Steve abreast of significant changes as he is the primary author. http://ms.gis.umn.edu/docs/howto/wcs_server Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From sscott at GWI.NET Thu Oct 6 08:31:26 2005 From: sscott at GWI.NET (Shannon Scott) Date: Thu, 6 Oct 2005 11:31:26 -0400 Subject: TILEINDEX EXPRESSION = Seg Fault Message-ID: Hello, I am reposting this message because no one responded. Has anyone else experienced this issue? Recently we reorganized some data for map performance, and started using the TILEINDEX Layer parameter. I have noticed an issue with the EXPRESSION parameter when used with TILEINDEX. Here is the output from gdb ( debug enabled ): Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218562784 (LWP 4589)] 0x08065822 in msEvalExpression (expression=0x99f5b08, itemindex=0, items=0x0, numitems=161833360) at maputil.c:106 106 tmpstr = gsub(tmpstr, expression->items[i], items[expression->indexes[i]]); I'm not sure the best way to proceed from here. I have noticed when I switch the map file back to using a shapefile with the DATA Layer parameter, the problem goes away. Any help or pointers are greatly appreciated. Thank you for your time. Take Care. Shannon Linux RedHat ES Mapserver 4.6.1 Apache CGI LAYER NAME cities1 TILEINDEX cities TYPE POINT STATUS default MAXSCALE 500000 GROUP "cities" CLASS NAME "Villages" EXPRESSION ('[CNTYSEAT]' != 'Y' AND '[CAPITAL]' != 'Y') STYLE SYMBOL "circle" SIZE 3 color 255 255 255 END END # CLASS PROJECTION "proj=latlong" END END # cities1 LAYER LAYER NAME County1 TILEINDEX cities TYPE POINT STATUS default MAXSCALE 1000000 GROUP "cities" CLASS NAME "Counties" EXPRESSION ('[CNTYSEAT]' = 'Y' AND '[CAPITAL]' != 'Y') STYLE SYMBOL "circle" SIZE 7 COLOR 0 0 0 END END # CLASS PROJECTION "proj=latlong" END END # County1 LAYER LAYER NAME Capitals1 TILEINDEX cities TYPE POINT STATUS default MAXSCALE 20000000 GROUP "cities" CLASS NAME "Capitals" EXPRESSION ('[CAPITAL]' = 'Y') SYMBOL pntcapital SIZE 13 COLOR 168 0 132 END # CLASS PROJECTION "proj=latlong" END END # Capitals1 LAYER -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkirstine at JDBARNES.COM Thu Oct 6 08:59:19 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 6 Oct 2005 11:59:19 -0400 Subject: gdal_merge.py usage Message-ID: I've been trying without success to use gdal_merge.py. I've download the latest version of FW Tools and tried to use gdal_merge with the following command >"C:\Program Files\FWTools0.9.8\pymod\gdal_merge.py" tiff_merge_test orth176170475152002fbs.tif orth176170475202002fbs.tif orth176170475252002fbs.tif With this I received the message to "Select Program to open gdal_merge.py" I then checked any threads that could help http://list.maptools.org/pipermail/gdal_dev/2003-August/000985.html and tried to set my environmental variables to >set OPENEV_HOME="C:\Program Files\FWTools0.9.8" >set path=%OPENEV_HOME%\bin;%OPENEV_HOME%\python\Lib;\%PATH% >set PYTHONHOME=%OPENEV_HOME%\python >set PYTHONPATH=%OPENEV_HOME%\pymod;%PYTHONHOME%\include\Numeric;%PYTHONHOME%\Lib >"C:\Program Files\FWTools0.9.8\pymod\gdal_merge.py" tiff_merge_test orth176170475152002fbs.tif orth176170475202002fbs.tif orth176170475252002fbs.tif This didn't seem to do anything and I still received the message Select Program message, I then browsed to C:\Program Files\FWTools0.9.8\python\python.exe and received the error message "application has failed, python23.dll not found" Any help would be great Travis From warmerdam at POBOX.COM Thu Oct 6 08:50:01 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 6 Oct 2005 11:50:01 -0400 Subject: TILEINDEX EXPRESSION = Seg Fault In-Reply-To: <007601c5ca8b$04545df0$4dc8a8c0@sebois> Message-ID: On 10/6/05, Shannon Scott wrote: > > Hello, > > I am reposting this message because no one responded. Has anyone else > experienced this issue? > > Recently we reorganized some data for map performance, and started using the > TILEINDEX Layer parameter. I have noticed an issue with the EXPRESSION > parameter when used with TILEINDEX. > > Here is the output from gdb ( debug enabled ): ... > 0x08065822 in msEvalExpression (expression=0x99f5b08, itemindex=0, > items=0x0, numitems=161833360) Shannon, The "items" pointer is not supposed to be NULL. That is why things are crashing. I don't know why it is NULL though. I really think you may need to submit a bug report with all the information (map file, data, invocation, full traceback etc) to reproduce the problem so the developers can track it down and fix it properly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Thu Oct 6 09:05:02 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 6 Oct 2005 12:05:02 -0400 Subject: gdal_merge.py usage In-Reply-To: Message-ID: On 10/6/05, Travis Kirstine GIS Tech wrote: > I've been trying without success to use gdal_merge.py. I've download the > latest version of FW Tools and tried to use gdal_merge with the following > command > > >"C:\Program Files\FWTools0.9.8\pymod\gdal_merge.py" tiff_merge_test > orth176170475152002fbs.tif orth176170475202002fbs.tif > orth176170475252002fbs.tif > > With this I received the message to "Select Program to open gdal_merge.py" > I then checked any threads that could help > http://list.maptools.org/pipermail/gdal_dev/2003-August/000985.html > > and tried to set my environmental variables to > > >set OPENEV_HOME="C:\Program Files\FWTools0.9.8" > >set path=%OPENEV_HOME%\bin;%OPENEV_HOME%\python\Lib;\%PATH% > >set PYTHONHOME=%OPENEV_HOME%\python > >set > PYTHONPATH=%OPENEV_HOME%\pymod;%PYTHONHOME%\include\Numeric;%PYTHONHOME%\Lib > >"C:\Program Files\FWTools0.9.8\pymod\gdal_merge.py" tiff_merge_test > orth176170475152002fbs.tif orth176170475202002fbs.tif > orth176170475252002fbs.tif > > This didn't seem to do anything and I still received the message Select > Program message, I then browsed to > C:\Program Files\FWTools0.9.8\python\python.exe > and received the error message "application has failed, python23.dll not > found" Travis, This is really a MapServer question and would be better asked on the FWTools or gdal-dev lists. I would strongly encourage you to execute the gdal_merge.py script from the "FWTools Shell", or to call the same environment initialization bat file it uses (the setfw.bat file). Also, in the BIN directory of FWTools there is a gdal_merge.bat. If you use that, it will take care of calling the right python executable. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From banders at REFRACTIONS.NET Thu Oct 6 11:09:24 2005 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Thu, 6 Oct 2005 11:09:24 -0700 Subject: Compiling Mapserver and GD on Windows Message-ID: Hi List, I'm trying to compile mapserver 4.6.1 on windows, but I am getting linking errors with GD. I am using an old GD 2.0.15 because I happen to have a windows makefile that will compile it. Does Mapserver 4.6.1 require a newer version of GD? Does anyone have a windows makefile for a newer version of GD? Brock From wesoruto at YAHOO.COM Thu Oct 6 11:10:51 2005 From: wesoruto at YAHOO.COM (Mteya Kizman) Date: Thu, 6 Oct 2005 13:10:51 -0500 Subject: ogr connection to mssql Message-ID: i have connected ms4w and maplab and sql so am able to create a virtual layer.does anyone there know how i can obtain the standard format of the table to be used ie the structure of the databse and the rows and collumns From jerl.simpso at GMAIL.COM Thu Oct 6 11:23:04 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Thu, 6 Oct 2005 13:23:04 -0500 Subject: transparent overlay and alpha blending Message-ID: Hello, I'm not sure if I'm posting the right place or not,but here goes. I use Mapserver to generate maps (of course) I have another program that grabs these maps, adds some dynamic content, and spits them out to a browser. The other program is a C program and uses the GD library to manipulate the images. My output format is: OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGBA EXTENSION "gif" END So I should be able to support alpha blending. The problem, is when I add my layer to this gif, the area that should be blended is completely opaque. I can't seem to find anywhere where this reverts to a paletted image, so I'm lost. If anyone can help me, I'd be greatly appreciative. I realize there's not much information to go on, so I'll wait to hear from someone before sending specific information. Thanks, jerl -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Oct 6 11:43:09 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 6 Oct 2005 14:43:09 -0400 Subject: transparent overlay and alpha blending In-Reply-To: Message-ID: On 10/6/05, Jerl Simpson wrote: > Hello, > > I'm not sure if I'm posting the right place or not,but here goes. > > I use Mapserver to generate maps (of course) I have another program that > grabs these maps, adds some dynamic content, and spits them out to a > browser. The other program is a C program and uses the GD library to > manipulate the images. > > My output format is: > > OUTPUTFORMAT > NAME gif > DRIVER "GD/GIF" > MIMETYPE "image/gif" > IMAGEMODE RGBA > EXTENSION "gif" > END > > So I should be able to support alpha blending. > > The problem, is when I add my layer to this gif, the area that should be > blended is completely opaque. > I can't seem to find anywhere where this reverts to a paletted image, so > I'm lost. > > If anyone can help me, I'd be greatly appreciative. > > I realize there's not much information to go on, so I'll wait to hear from > someone before sending specific information. Jerl, There is no such thing as an RGBA (or RGB) GIF file. Ideally MapServer would realize this (sooner) and blow a gasket when it encounters your OUTPUTFORMAT declaration. If you submit a bug report and see that it is assigned to me I'll try and fix that. If you want RGB or RGBA output format use a format that supports it like PNG. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jdenovan at GEOREFERENCEONLINE.COM Thu Oct 6 12:08:57 2005 From: jdenovan at GEOREFERENCEONLINE.COM (Janice Denovan) Date: Thu, 6 Oct 2005 14:08:57 -0500 Subject: GDV Client Message-ID: Lester and List, I also thought the GDV Client worth exploring. I find: * Easy install (even with my 3 words of German) * Nice use of frames - maximizes the map area * Basic navigations tools - all working My only complaint is that on browser refresh (that's an F5 for IE or Ctrl-R for Mozilla) the application breaks with "getNumeric(): Incorrect data type." The GDV Client demo site at http://www.gdv- gis.de/mapserver/htmlviewer/html/viewer.html fails, Lester's site breaks and my site breaks. Any thoughts ? Regards, Janice On Thu, 19 May 2005 21:20:44 +0100, Lester Caine wrote: >I was getting tired of the original mapserver client so I've run up a >copy of the GDV Client > >http://home.lsces.co.uk/Maps/gdvclient/html/viewer.html > >Only four raster layers at the moment. Next step is to start doing some >overlays and data layers ;) > >I still have the odd bit of German on it, but things are comming. It >works nicely on Mozilla and Firefox - as long as you enable pop-up's > >-- >Lester Caine >----------------------------- >L.S.Caine Electronic Services From linh200210 at YAHOO.COM Thu Oct 6 12:57:29 2005 From: linh200210 at YAHOO.COM (Lin Huang) Date: Thu, 6 Oct 2005 12:57:29 -0700 Subject: mapscript: $result->shapeindex returns 0 and querying failed In-Reply-To: <20051006145958.37980.qmail@web30901.mail.mud.yahoo.com> Message-ID: Hi, I posted this question earlier today. Hope someone has seen this problem. One more thing is that the data I used for this layer is from a "view" instead of a "table" in the database. Would that cause query to fail? Thanks very much for any help. Lin --- Lin Huang wrote: > Hi all, > > My mapserver application using PHP/mapscripts works > great. But I got errors when doing a query and hope > someone could point out where did I do wrong. > > The query part in my php code: > ------------ > $layer = $mMap->getLayerByName(sites); > > $layer->open(); > > //Querying one layer > $res = $layer->getResult(0); > > //print shapeindex > echo "shpaindex: {$res->shapeindex}"; > > $shape = >$layer->getShape($res->tileindex,$res->shapeindex); > $i=0; > while (list($key,$val) = each($shape->values) ) > { > $fields[$i++] = $key; > echo "Result: $key, $val"; > if ($i>=4) break; > } > ------------- > > The output: > --------------- > shpaindex: 0 > Warning: Variable passed to each() is not an array > or > object > in /usr/local/ms/htdocs/net.inc.php on line 294 > > > ------------- > > The querying layer in my map file > > ------------- > LAYER > CONNECTIONTYPE postgis > NAME "sites" > DEBUG on > # Connect to a remote spatial database > CONNECTION "user=net100 dbname=netbase > host=localhost" > DATA "location from (select cust_id, > site_id,location, product_id, > site_name from customer_obs) as new_table using > unique > site_id using > srid=4326" > > STATUS ON > TYPE POINT > TOLERANCE 5 > > CLASSITEM "product_id" > LABELITEM "site_name" > CLASS > NAME 'wxm' > EXPRESSION /5/ > STYLE > COLOR 255 000 255 > SYMBOL 'star' > SIZE 9 > END > LABEL > COLOR 255 000 255 > SIZE small > POSITION CL > MINDISTANCE 100 > END # end of label > TEMPLATE 'templates/icao_query.html' > END > > > HEADER "templates/icao_header.html" > FOOTER "templates/footer.html" > END > -------------------- > > Looks to me like the problem is in the shapeindex. > Why > it always returns > 0? > > Thanks very much for any help! > > Lin > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From lester at LSCES.CO.UK Thu Oct 6 13:04:10 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Thu, 6 Oct 2005 21:04:10 +0100 Subject: GDV Client In-Reply-To: Message-ID: Janice Denovan wrote: > Lester and List, > > I also thought the GDV Client worth exploring. I find: > > * Easy install (even with my 3 words of German) > * Nice use of frames - maximizes the map area > * Basic navigations tools - all working > > My only complaint is that on browser refresh (that's an F5 for IE or Ctrl-R > for Mozilla) the application breaks with "getNumeric(): Incorrect data > type." The GDV Client demo site at http://www.gdv- > gis.de/mapserver/htmlviewer/html/viewer.html fails, Lester's site breaks > and my site breaks. Any thoughts ? I have moved on a bit http://home.lsces.co.uk/bitweaver/mapper/display_map.php has it integrated with the bitweaver framework ready for adding additional facilities. The refresh problem relates to the way the browser loads the last file accessed. If you use in Mozilla there is not a problem. -- Lester Caine ----------------------------- L.S.Caine Electronic Services Treasurer - Firebird Foundation Inc. From szekeres.tamas at FREEMAIL.HU Thu Oct 6 13:36:47 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Thu, 6 Oct 2005 15:36:47 -0500 Subject: GDAL/OGR 1.3.1 Released - Building failed on Windows with MinGW Message-ID: David, Without being concerned with MinGW/Msys the library successfully compiles on Windows using VS7. The only problem was with the compilation of the SWIG C# library that could finally be succeeded with the method described in: http://bugzilla.remotesensing.org/show_bug.cgi?id=949 Tamas Szekeres On Thu, 6 Oct 2005 21:05:17 +0400, david techer wrote: >Tamas is right! > >I tryed myself to compil it on Windows using MinGW and Msys but without any success. > >BTW, is there someone who can give me the commands he used to compil on Windows > >with MinGW/Msys. There is GDAL FAQ and the mailing-list and I tryed from the archive > >but if someon can just give to me the commands he did... > >Since I'm used to compiling/building PostgreSQL/PostGIS/Geos/Proj on windows, if I do it > >for gdal it will be a great help... > >Thanks. > >Regards. > >David. > >--david; >------------------------------------------------- >Jean David TECHER >e-mail: davidtecher(at)yahoo(dot)fr >site: http://techer.pascal.free.fr/postgis/ >------------------------------------------------- > > > >Tamas Szekeres a ?crit : > >>Frank, >> >>Thank you for the release. However in order to compile SWIG with C# some >>modifications should be made in the makefile and some typemaps should be >>added. >> >> >>Tamas >> >> >> >> >>On Tue, 4 Oct 2005 15:32:51 -0400, Frank Warmerdam >>wrote: >> >> >> >>>Folks, >>> >>>I am pleased to announce the release of GDAL/OGR 1.3.1. This is mostly a >>>bug fix release, though there are a few new and improved drivers. >>> >>>Source: >>> http://www.gdal.org/dl/gdal-1.3.1.tar.gz >>> http://www.gdal.org/dl/gdal131.zip >>> >>>Docs / Web site: >>> http://www.gdal.org/dl/gdal131doc.zip >>> >>>Test Suite: >>> http://www.gdal.org/dl/gdalautotest-1.3.1.tar.gz >>> >>>The major news with this release is that the "Next Generation" Perl, >>> >>> >>Python >> >> >>>and Ruby bindings are now considered ready to use, though I'm sure there >>> >>> >>will >> >> >>>be some additional improvements to them in the coming months. I would >>> >>> >>like to >> >> >>>give out a special thank you to Ari Jolma (perl), Charlie Savage (Ruby), >>>Kevin Ruland (Python + overall NG work) and Howard Butler who have put in >>> >>> >>a >> >> >>>huge amount of effort on these bindings. If we can get champions for >>> >>> >>Java, >> >> >>>C# and PHP that are willing to brave the dark depths of SWIG, I'm sure we >>> >>> >>can >> >> >>>make good progress on them too. >>> >>>Best regards, >>>---------------------------------------+-------------------------------- -- >>> >>> >>---- >> >> >>>I set the clouds in motion - turn up | Frank Warmerdam, >>> >>> >>warmerdam at pobox.com >> >> >>>light and sound - activate the windows | http://pobox.com/~warmerdam >>>and watch the world go round - Rush | Geospatial Programmer for Rent >>> >>> >>> >>>GDAL 1.3.1 - Overview of Changes >>>-------------------------------- >>> >>>Next Generation SWIG Wrappers (GDAL and OGR): >>>- Python, Perl and Ruby bindings considered to be ready to use. >>>- C#, Java, PHP are at best initial prototypes. >>>- Added configure options for most NG options. >>> >>>PCRaster Driver: >>>- libcsf is now included as part of GDAL. >>>- PCRaster enabled by default on win32. >>>- --with-pcraster=internal option now supported on unix (but not yet >>> >>> >>default) >> >> >>>VSI Virtualization: >>>- The "large file API" (VSI*L) has been re-engineered to allow installing >>> additional file handlers at runtime. >>>- Added "in memory" VSI handler so that now any driver using VSI*L >>> functions for data access can operate on in-memory files. >>>- PNG, JPEG and GeoTIFF drivers upgraded to work with in-memory support. >>> >>>Raster Attribute Tables: >>>- Implemented new Raster Attribute Tables support. See the >>> GDALRasterAttributeTable class for more information. >>> >>>Erdas Imagine Overviews: >>>- Erdas Imagine driver upgraded to support building internal overviews. >>>- Generic overview handler updated to support overviews in Erdas Imagine >>> format for any file format. Set USE_RRD config option to YES to >>> >>> >>enable. >> >> >>>gdalwarp: >>>- Added proper support for "unified source nodata", so the -srcnodata >>> switch works well. >>> >>>RIK Driver: >>>- New Swedish format driver implemented by Daniel Wallner. >>> >>>JPEG Driver: >>>- Substantial improvements to EXIF support. >>> >>>MrSID Driver: >>>- Updated with proper JPEG2000 support as JP2MRSID driver, including >>> encoding with ESDK. >>>- Updated to support MrSID Version 5.x SDKs. >>> >>>PNG Driver: >>>- Fixed serious bugs with 16bit file support. >>>- Added NODATA_VALUES to identify RGB sets that indicate a nodata pixel. >>> >>> >>>OGR 1.3.1 - Overview of Changes >>>------------------------------- >>> >>>Reference Counting: >>>- OGRSpatialReference and OGRFeatureDefn now honour reference counting >>> semantics. >>>- Note that, especially for the OGRFeatureDefn, it is now critical that >>> all drivers be careful with reference counting. Any OGR drivers not in >>> the core distribution will likely crash if not updated. >>> >>>ESRI Personal Geodatabase Driver: >>>- New driver implemented for ESRI Personal Geodatabase (.mdb) files. >>>- Uses ODBC, enabled by default on win32. >>> >>>ODBC Driver: >>>- Updated to support binary fields. >>>- Updated to support WKB geometry fields. >>>- Updated to support DSN-less connections. >>> >>>S57 Driver: >>>- Added support for Inland Waterways, and Additional Military Layers >>> >>> >>profiles >> >> >> > From davidtecher at YAHOO.FR Thu Oct 6 15:53:23 2005 From: davidtecher at YAHOO.FR (david techer) Date: Fri, 7 Oct 2005 02:53:23 +0400 Subject: GDAL/OGR 1.3.1 Released - Building failed on Windows with MinGW In-Reply-To: Message-ID: Ok Tamas thanks you By VS7 you mean Visual Studio 7? --david; ------------------------------------------------- Jean David TECHER e-mail: davidtecher(at)yahoo(dot)fr site: http://techer.pascal.free.fr/postgis/ ------------------------------------------------- Tamas Szekeres a ?crit : >David, > >Without being concerned with MinGW/Msys the library successfully compiles >on Windows using VS7. The only problem was with the compilation of the >SWIG C# library that could finally be succeeded with the method described >in: > >http://bugzilla.remotesensing.org/show_bug.cgi?id=949 > > >Tamas Szekeres > > > > > >On Thu, 6 Oct 2005 21:05:17 +0400, david techer >wrote: > > > >>Tamas is right! >> >>I tryed myself to compil it on Windows using MinGW and Msys but without >> >> >any success. > > >>BTW, is there someone who can give me the commands he used to compil on >> >> >Windows > > >>with MinGW/Msys. There is GDAL FAQ and the mailing-list and I tryed from >> >> >the archive > > >>but if someon can just give to me the commands he did... >> >>Since I'm used to compiling/building PostgreSQL/PostGIS/Geos/Proj on >> >> >windows, if I do it > > >>for gdal it will be a great help... >> >>Thanks. >> >>Regards. >> >>David. >> >>--david; >>------------------------------------------------- >>Jean David TECHER >>e-mail: davidtecher(at)yahoo(dot)fr >>site: http://techer.pascal.free.fr/postgis/ >>------------------------------------------------- >> >> >> >>Tamas Szekeres a ?crit : >> >> >> >>>Frank, >>> >>>Thank you for the release. However in order to compile SWIG with C# some >>>modifications should be made in the makefile and some typemaps should be >>>added. >>> >>> >>>Tamas >>> >>> >>> >>> >>>On Tue, 4 Oct 2005 15:32:51 -0400, Frank Warmerdam >>>wrote: >>> >>> >>> >>> >>> >>>>Folks, >>>> >>>>I am pleased to announce the release of GDAL/OGR 1.3.1. This is mostly >>>> >>>> >a > > >>>>bug fix release, though there are a few new and improved drivers. >>>> >>>>Source: >>>>http://www.gdal.org/dl/gdal-1.3.1.tar.gz >>>>http://www.gdal.org/dl/gdal131.zip >>>> >>>>Docs / Web site: >>>>http://www.gdal.org/dl/gdal131doc.zip >>>> >>>>Test Suite: >>>>http://www.gdal.org/dl/gdalautotest-1.3.1.tar.gz >>>> >>>>The major news with this release is that the "Next Generation" Perl, >>>> >>>> >>>> >>>> >>>Python >>> >>> >>> >>> >>>>and Ruby bindings are now considered ready to use, though I'm sure there >>>> >>>> >>>> >>>> >>>will >>> >>> >>> >>> >>>>be some additional improvements to them in the coming months. I would >>>> >>>> >>>> >>>> >>>like to >>> >>> >>> >>> >>>>give out a special thank you to Ari Jolma (perl), Charlie Savage (Ruby), >>>>Kevin Ruland (Python + overall NG work) and Howard Butler who have put >>>> >>>> >in > > >>>> >>>> >>>a >>> >>> >>> >>> >>>>huge amount of effort on these bindings. If we can get champions for >>>> >>>> >>>> >>>> >>>Java, >>> >>> >>> >>> >>>>C# and PHP that are willing to brave the dark depths of SWIG, I'm sure >>>> >>>> >we > > >>>> >>>> >>>can >>> >>> >>> >>> >>>>make good progress on them too. >>>> >>>>Best regards, >>>>---------------------------------------+-------------------------------- >>>> >>>> >-- > > >>>> >>>> >>>---- >>> >>> >>> >>> >>>>I set the clouds in motion - turn up | Frank Warmerdam, >>>> >>>> >>>> >>>> >>>warmerdam at pobox.com >>> >>> >>> >>> >>>>light and sound - activate the windows | http://pobox.com/~warmerdam >>>>and watch the world go round - Rush | Geospatial Programmer for Rent >>>> >>>> >>>> >>>>GDAL 1.3.1 - Overview of Changes >>>>-------------------------------- >>>> >>>>Next Generation SWIG Wrappers (GDAL and OGR): >>>>- Python, Perl and Ruby bindings considered to be ready to use. >>>>- C#, Java, PHP are at best initial prototypes. >>>>- Added configure options for most NG options. >>>> >>>>PCRaster Driver: >>>>- libcsf is now included as part of GDAL. >>>>- PCRaster enabled by default on win32. >>>>- --with-pcraster=internal option now supported on unix (but not yet >>>> >>>> >>>> >>>> >>>default) >>> >>> >>> >>> >>>>VSI Virtualization: >>>>- The "large file API" (VSI*L) has been re-engineered to allow >>>> >>>> >installing > > >>>> additional file handlers at runtime. >>>>- Added "in memory" VSI handler so that now any driver using VSI*L >>>> functions for data access can operate on in-memory files. >>>>- PNG, JPEG and GeoTIFF drivers upgraded to work with in-memory support. >>>> >>>>Raster Attribute Tables: >>>>- Implemented new Raster Attribute Tables support. See the >>>> GDALRasterAttributeTable class for more information. >>>> >>>>Erdas Imagine Overviews: >>>>- Erdas Imagine driver upgraded to support building internal overviews. >>>>- Generic overview handler updated to support overviews in Erdas Imagine >>>> format for any file format. Set USE_RRD config option to YES to >>>> >>>> >>>> >>>> >>>enable. >>> >>> >>> >>> >>>>gdalwarp: >>>>- Added proper support for "unified source nodata", so the -srcnodata >>>> switch works well. >>>> >>>>RIK Driver: >>>>- New Swedish format driver implemented by Daniel Wallner. >>>> >>>>JPEG Driver: >>>>- Substantial improvements to EXIF support. >>>> >>>>MrSID Driver: >>>>- Updated with proper JPEG2000 support as JP2MRSID driver, including >>>> encoding with ESDK. >>>>- Updated to support MrSID Version 5.x SDKs. >>>> >>>>PNG Driver: >>>>- Fixed serious bugs with 16bit file support. >>>>- Added NODATA_VALUES to identify RGB sets that indicate a nodata pixel. >>>> >>>> >>>>OGR 1.3.1 - Overview of Changes >>>>------------------------------- >>>> >>>>Reference Counting: >>>>- OGRSpatialReference and OGRFeatureDefn now honour reference counting >>>> semantics. >>>>- Note that, especially for the OGRFeatureDefn, it is now critical that >>>> all drivers be careful with reference counting. Any OGR drivers not >>>> >>>> >in > > >>>> the core distribution will likely crash if not updated. >>>> >>>>ESRI Personal Geodatabase Driver: >>>>- New driver implemented for ESRI Personal Geodatabase (.mdb) files. >>>>- Uses ODBC, enabled by default on win32. >>>> >>>>ODBC Driver: >>>>- Updated to support binary fields. >>>>- Updated to support WKB geometry fields. >>>>- Updated to support DSN-less connections. >>>> >>>>S57 Driver: >>>>- Added support for Inland Waterways, and Additional Military Layers >>>> >>>> >>>> >>>> >>>profiles >>> >>> >>> >>> >>> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekeres.tamas at FREEMAIL.HU Thu Oct 6 14:44:40 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Thu, 6 Oct 2005 16:44:40 -0500 Subject: GDAL/OGR 1.3.1 Released - Building failed on Windows with MinGW Message-ID: Yes, and using nmake. Tamas On Fri, 7 Oct 2005 02:53:23 +0400, david techer wrote: >Ok Tamas thanks you > >By VS7 you mean Visual Studio 7? > >--david; >------------------------------------------------- >Jean David TECHER >e-mail: davidtecher(at)yahoo(dot)fr >site: http://techer.pascal.free.fr/postgis/ >------------------------------------------------- > > > >Tamas Szekeres a ?crit : > >>David, >> >>Without being concerned with MinGW/Msys the library successfully compiles >>on Windows using VS7. The only problem was with the compilation of the >>SWIG C# library that could finally be succeeded with the method described >>in: >> >>http://bugzilla.remotesensing.org/show_bug.cgi?id=949 >> >> >>Tamas Szekeres >> >> >> >> >> >>On Thu, 6 Oct 2005 21:05:17 +0400, david techer >>wrote: >> >> >> >>>Tamas is right! >>> >>>I tryed myself to compil it on Windows using MinGW and Msys but without >>> >>> >>any success. >> >> >>>BTW, is there someone who can give me the commands he used to compil on >>> >>> >>Windows >> >> >>>with MinGW/Msys. There is GDAL FAQ and the mailing-list and I tryed from >>> >>> >>the archive >> >> >>>but if someon can just give to me the commands he did... >>> >>>Since I'm used to compiling/building PostgreSQL/PostGIS/Geos/Proj on >>> >>> >>windows, if I do it >> >> >>>for gdal it will be a great help... >>> >>>Thanks. >>> >>>Regards. >>> >>>David. >>> >>>--david; >>>------------------------------------------------- >>>Jean David TECHER >>>e-mail: davidtecher(at)yahoo(dot)fr >>>site: http://techer.pascal.free.fr/postgis/ >>>------------------------------------------------- >>> >>> >>> >>>Tamas Szekeres a ?crit : >>> >>> >>> >>>>Frank, >>>> >>>>Thank you for the release. However in order to compile SWIG with C# some >>>>modifications should be made in the makefile and some typemaps should be >>>>added. >>>> >>>> >>>>Tamas >>>> >>>> >>>> >>>> >>>>On Tue, 4 Oct 2005 15:32:51 -0400, Frank Warmerdam >>>>wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Folks, >>>>> >>>>>I am pleased to announce the release of GDAL/OGR 1.3.1. This is mostly >>>>> >>>>> >>a >> >> >>>>>bug fix release, though there are a few new and improved drivers. >>>>> >>>>>Source: >>>>>http://www.gdal.org/dl/gdal-1.3.1.tar.gz >>>>>http://www.gdal.org/dl/gdal131.zip >>>>> >>>>>Docs / Web site: >>>>>http://www.gdal.org/dl/gdal131doc.zip >>>>> >>>>>Test Suite: >>>>>http://www.gdal.org/dl/gdalautotest-1.3.1.tar.gz >>>>> >>>>>The major news with this release is that the "Next Generation" Perl, >>>>> >>>>> >>>>> >>>>> >>>>Python >>>> >>>> >>>> >>>> >>>>>and Ruby bindings are now considered ready to use, though I'm sure there >>>>> >>>>> >>>>> >>>>> >>>>will >>>> >>>> >>>> >>>> >>>>>be some additional improvements to them in the coming months. I would >>>>> >>>>> >>>>> >>>>> >>>>like to >>>> >>>> >>>> >>>> >>>>>give out a special thank you to Ari Jolma (perl), Charlie Savage (Ruby), >>>>>Kevin Ruland (Python + overall NG work) and Howard Butler who have put >>>>> >>>>> >>in >> >> >>>>> >>>>> >>>>a >>>> >>>> >>>> >>>> >>>>>huge amount of effort on these bindings. If we can get champions for >>>>> >>>>> >>>>> >>>>> >>>>Java, >>>> >>>> >>>> >>>> >>>>>C# and PHP that are willing to brave the dark depths of SWIG, I'm sure >>>>> >>>>> >>we >> >> >>>>> >>>>> >>>>can >>>> >>>> >>>> >>>> >>>>>make good progress on them too. >>>>> >>>>>Best regards, >>>>>---------------------------------------+------------------------------ -- >>>>> >>>>> >>-- >> >> >>>>> >>>>> >>>>---- >>>> >>>> >>>> >>>> >>>>>I set the clouds in motion - turn up | Frank Warmerdam, >>>>> >>>>> >>>>> >>>>> >>>>warmerdam at pobox.com >>>> >>>> >>>> >>>> >>>>>light and sound - activate the windows | http://pobox.com/~warmerdam >>>>>and watch the world go round - Rush | Geospatial Programmer for Rent >>>>> >>>>> >>>>> >>>>>GDAL 1.3.1 - Overview of Changes >>>>>-------------------------------- >>>>> >>>>>Next Generation SWIG Wrappers (GDAL and OGR): >>>>>- Python, Perl and Ruby bindings considered to be ready to use. >>>>>- C#, Java, PHP are at best initial prototypes. >>>>>- Added configure options for most NG options. >>>>> >>>>>PCRaster Driver: >>>>>- libcsf is now included as part of GDAL. >>>>>- PCRaster enabled by default on win32. >>>>>- --with-pcraster=internal option now supported on unix (but not yet >>>>> >>>>> >>>>> >>>>> >>>>default) >>>> >>>> >>>> >>>> >>>>>VSI Virtualization: >>>>>- The "large file API" (VSI*L) has been re-engineered to allow >>>>> >>>>> >>installing >> >> >>>>> additional file handlers at runtime. >>>>>- Added "in memory" VSI handler so that now any driver using VSI*L >>>>> functions for data access can operate on in-memory files. >>>>>- PNG, JPEG and GeoTIFF drivers upgraded to work with in-memory support. >>>>> >>>>>Raster Attribute Tables: >>>>>- Implemented new Raster Attribute Tables support. See the >>>>> GDALRasterAttributeTable class for more information. >>>>> >>>>>Erdas Imagine Overviews: >>>>>- Erdas Imagine driver upgraded to support building internal overviews. >>>>>- Generic overview handler updated to support overviews in Erdas Imagine >>>>> format for any file format. Set USE_RRD config option to YES to >>>>> >>>>> >>>>> >>>>> >>>>enable. >>>> >>>> >>>> >>>> >>>>>gdalwarp: >>>>>- Added proper support for "unified source nodata", so the -srcnodata >>>>> switch works well. >>>>> >>>>>RIK Driver: >>>>>- New Swedish format driver implemented by Daniel Wallner. >>>>> >>>>>JPEG Driver: >>>>>- Substantial improvements to EXIF support. >>>>> >>>>>MrSID Driver: >>>>>- Updated with proper JPEG2000 support as JP2MRSID driver, including >>>>> encoding with ESDK. >>>>>- Updated to support MrSID Version 5.x SDKs. >>>>> >>>>>PNG Driver: >>>>>- Fixed serious bugs with 16bit file support. >>>>>- Added NODATA_VALUES to identify RGB sets that indicate a nodata pixel. >>>>> >>>>> >>>>>OGR 1.3.1 - Overview of Changes >>>>>------------------------------- >>>>> >>>>>Reference Counting: >>>>>- OGRSpatialReference and OGRFeatureDefn now honour reference counting >>>>> semantics. >>>>>- Note that, especially for the OGRFeatureDefn, it is now critical that >>>>> all drivers be careful with reference counting. Any OGR drivers not >>>>> >>>>> >>in >> >> >>>>> the core distribution will likely crash if not updated. >>>>> >>>>>ESRI Personal Geodatabase Driver: >>>>>- New driver implemented for ESRI Personal Geodatabase (.mdb) files. >>>>>- Uses ODBC, enabled by default on win32. >>>>> >>>>>ODBC Driver: >>>>>- Updated to support binary fields. >>>>>- Updated to support WKB geometry fields. >>>>>- Updated to support DSN-less connections. >>>>> >>>>>S57 Driver: >>>>>- Added support for Inland Waterways, and Additional Military Layers >>>>> >>>>> >>>>> >>>>> >>>>profiles >>>> >>>> >>>> >>>> >>>> >> >> >> > From steve.lime at DNR.STATE.MN.US Thu Oct 6 20:30:24 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 6 Oct 2005 22:30:24 -0500 Subject: WCS configuration Message-ID: In the WCS schema it's just a string so I don't believe there's anyway to check the validity based on the schema definitions which is why the samples didn't break. It makes sense that native format *should* be one of the supported formats (the annotation in the schema says as much). That does cause a problem because it would mean any format the GDAL could not write could not be referenced as a native format- that's not good. I suppose you'd just ommit it in that case. The formats code list itself is created from the wcs_formats metadata which needsto match the names of the various output formats you define in the metadata. So, in short, wcs_nativeformat should match one of the formats listed in wcs_formats. It will not break anything if that is not true. Perhaps we should enforce this. The WCS how-to is not intended to exist apart from the implementation specifications, so you may at times need to refer to that document. Should you find errors or need more information then please contact me. Help enhancing documentation would be most welcome. Steve >>> Jeroen Ticheler 10/06/05 9:41 AM >>> Hi! I would like to have some more background on some items of the map file used for a time series WCS. I ran into the element "wcs_nativeformat" that has the value "raw binary" in the WCS samples. Are the values for this item free text, or should they be a value from a restricted list. (Or should I dive straight into the OGC-WCS specs now?) Other elements listed also lack information on their use. Can I help to improve them or is anyone planning to update the page? Thanks in advance. Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork From steve.lime at DNR.STATE.MN.US Thu Oct 6 20:40:10 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 6 Oct 2005 22:40:10 -0500 Subject: TILEINDEX EXPRESSION = Seg Fault Message-ID: Hmmmm.... There is something odd about your layer definitions. You're refering to the same tileindex (cities) for all 3 layers but have not used different tileitem values or set a value for data. That doesn't seem like that can be correct. I can't see why that would cause the segfault issue you mention but I can't see how it could work either. Is that how it's supposed to be? Steve >>> Shannon Scott 10/06/05 10:31 AM >>> Hello, I am reposting this message because no one responded. Has anyone else experienced this issue? Recently we reorganized some data for map performance, and started using the TILEINDEX Layer parameter. I have noticed an issue with the EXPRESSION parameter when used with TILEINDEX. Here is the output from gdb ( debug enabled ): Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218562784 (LWP 4589)] 0x08065822 in msEvalExpression (expression=0x99f5b08, itemindex=0, items=0x0, numitems=161833360) at maputil.c:106 106 tmpstr = gsub(tmpstr, expression->items[i], items[expression->indexes[i]]); I'm not sure the best way to proceed from here. I have noticed when I switch the map file back to using a shapefile with the DATA Layer parameter, the problem goes away. Any help or pointers are greatly appreciated. Thank you for your time. Take Care. Shannon Linux RedHat ES Mapserver 4.6.1 Apache CGI LAYER NAME cities1 TILEINDEX cities TYPE POINT STATUS default MAXSCALE 500000 GROUP "cities" CLASS NAME "Villages" EXPRESSION ('[CNTYSEAT]' != 'Y' AND '[CAPITAL]' != 'Y') STYLE SYMBOL "circle" SIZE 3 color 255 255 255 END END # CLASS PROJECTION "proj=latlong" END END # cities1 LAYER LAYER NAME County1 TILEINDEX cities TYPE POINT STATUS default MAXSCALE 1000000 GROUP "cities" CLASS NAME "Counties" EXPRESSION ('[CNTYSEAT]' = 'Y' AND '[CAPITAL]' != 'Y') STYLE SYMBOL "circle" SIZE 7 COLOR 0 0 0 END END # CLASS PROJECTION "proj=latlong" END END # County1 LAYER LAYER NAME Capitals1 TILEINDEX cities TYPE POINT STATUS default MAXSCALE 20000000 GROUP "cities" CLASS NAME "Capitals" EXPRESSION ('[CAPITAL]' = 'Y') SYMBOL pntcapital SIZE 13 COLOR 168 0 132 END # CLASS PROJECTION "proj=latlong" END END # Capitals1 LAYER From ram at RAMPAGE.NET Thu Oct 6 21:12:03 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 6 Oct 2005 21:12:03 -0700 Subject: LCC Projection Specification Message-ID: I'm trying to use some government map rasters (tifs) in Mapserver. The specs that come with the tif's list the projection information as: /Spatial_Reference_Information:/ /Horizontal_Coordinate_System_Definition:/ /Planar:/ /Map_Projection:/ /Map_Projection_Name:/ Lambert Conformal Conic /Lambert_Conformal_Conic:/ /Standard_Parallel:/ 38.666670 /Standard_Parallel:/ 33.333330 /Longitude_of_Central_Meridian:/ -121.466670 /Latitude_of_Projection_Origin:/ 38.333330 /False_Easting:/ 0.000000 /False_Northing:/ 0.000000 /Planar_Coordinate_Information:/ /Planar_Coordinate_Encoding_Method:/ row and column /Coordinate_Representation:/ /Abscissa_Resolution:/ 63.744612 /Ordinate_Resolution:/ 63.744612 /Planar_Distance_Units:/ meters /Geodetic_Model:/ /Horizontal_Datum_Name:/ North American Datum of 1983 /Ellipsoid_Name:/ Geodetic Reference System 80 /Semi-major_Axis:/ 6378137.000000 /Denominator_of_Flattening_Ratio:/ 298.257222 I'm trying understand how to translate that into the PROJECTION clause in a Mapserver layer specification in a .MAP file. My best guess (...and I am guessing...) is: PROJECTION proj=lcc lat_1=38.666670 lat_2=33.333330 lat_0=38.333330 lon_0=-121.466670 x_0=0.000000 y_0=0.000000 ellps=GRS80 units=m no_defs END That doesn't seem to work. Can anyone give me a clue as to what I did wrong? -- Richard / / // -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Oct 6 21:20:55 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 7 Oct 2005 00:20:55 -0400 Subject: LCC Projection Specification In-Reply-To: <4345F593.1030105@rampage.net> Message-ID: On 10/7/05, Richard A. Milewski wrote: > PROJECTION > proj=lcc > lat_1=38.666670 > lat_2=33.333330 > lat_0=38.333330 > lon_0=-121.466670 > x_0=0.000000 > y_0=0.000000 > ellps=GRS80 > units=m > no_defs > END Richard, Your definition looks right to me, but I would suggest changing ellps=GRS80 to datum=NAD83. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From perrygeo at GMAIL.COM Thu Oct 6 21:49:59 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Thu, 6 Oct 2005 21:49:59 -0700 Subject: LCC Projection Specification In-Reply-To: <4345F593.1030105@rampage.net> Message-ID: Richard, On 10/6/05, Richard A. Milewski wrote: > > I'm trying to use some government map rasters (tifs) in Mapserver. The > specs that come with the tif's list the projection information as: > *Map_Projection:* *Map_Projection_Name:* Lambert Conformal Conic I'm > trying understand how to translate that into the PROJECTION clause in a > Mapserver layer specification in a .MAP file. > My best guess (...and I am guessing...) is: > > PROJECTION > proj=lcc > lat_1=38.666670 > lat_2=33.333330 > lat_0=38.333330 > lon_0=-121.466670 > x_0=0.000000 > y_0=0.000000 > ellps=GRS80 > units=m > no_defs > END > > I believe there are two things that might help: 1. Try switching the lat_1 and lat_2 (lat_1 is the first standard parrallel which most likely means the southern-most parallel) 2. Add "datum=nad83" If that doesn't do it, check out http://www.remotesensing.org/geotiff/proj_list/lambert_conic_conformal_2sp.html. In general it's just a great resource for finding projection info. Hope this helps, -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Thu Oct 6 21:50:54 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 6 Oct 2005 21:50:54 -0700 Subject: LCC Projection Specification In-Reply-To: <931f8ea90510062120m216e10cn289473d3316068c9@mail.gmail.com> Message-ID: And if the below if your literal mapfile entry, add the syntactic sugar (double quote) which seems to be de rigeur... PROJECTION "proj=lcc" "lat_1=38.666666667" ...etc... END On 6-Oct-05, at 9:20 PM, Frank Warmerdam wrote: > On 10/7/05, Richard A. Milewski wrote: > >> PROJECTION >> proj=lcc >> lat_1=38.666670 >> lat_2=33.333330 >> lat_0=38.333330 >> lon_0=-121.466670 >> x_0=0.000000 >> y_0=0.000000 >> ellps=GRS80 >> units=m >> no_defs >> END >> > > Richard, > > Your definition looks right to me, but I would suggest changing > ellps=GRS80 to datum=NAD83. > > Best regards, > -- > --------------------------------------- > +-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for > Rent > From Jessica.Deegan at STATE.MN.US Thu Oct 6 22:04:18 2005 From: Jessica.Deegan at STATE.MN.US (Jessica Deegan) Date: Fri, 7 Oct 2005 00:04:18 -0500 Subject: MAPSERVER-USERS Digest - 5 Oct 2005 to 6 Oct 2005 (#2005-290) (out of office) Message-ID: I will be out of the office until Monday, October 17, 2005. **************************** Jessica Deegan Research Analyst Labor Market Information Office MN Dept of Employment and Economic Development 332 Minnesota Street, Saint Paul, MN 55101 (office) 651/296.3739 | (fax) 282.5429 http://www.deed.state.mn.us/lmi From jdenovan at GEOREFERENCEONLINE.COM Thu Oct 6 23:34:09 2005 From: jdenovan at GEOREFERENCEONLINE.COM (Janice Denovan) Date: Fri, 7 Oct 2005 01:34:09 -0500 Subject: ESRI Geography Network Message-ID: Hi List, I need to use ESRI data in a MapServ 4.1 environment. Today I found that ESRI_World service works as expected, ESRI_Elev service returns a blank image and ESRI_MODIS service does not work at all. Here are my URLs: ESRI_World - works http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap? ServiceName=ESRI_World&VERSION=1.0.0&REQUEST=map&BBOX=-180,- 70,180,70&Layers=Continents&Format=png&HEIGHT=200&WIDTH=200 ESRI_Elev - blank image http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap? ServiceName=ESRI_Elev&VERSION=1.0.0&REQUEST=map&BBOX=-180,- 70,180,70&Layers=Antarctica,Rivers&Format=png&HEIGHT=200&WIDTH=200 ESRI_MODIS - nothing (not even a capabilities document) http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap? ServiceName=ESRI_MODIS&VERSION=1.0.0&REQUEST=map&BBOX=-180,- 70,180,70&Layers=ESRI_MODIS&Format=png&HEIGHT=200&WIDTH=200 All these services were accessible with ArcGIS at the time I was trying to access them with MapServ. Thanks for listening. Regards, Janice PS: I really don't like ESRI image data - too Walt Disney for me. But the boss likes ESRI.... From wesp at GDV.COM Fri Oct 7 00:29:26 2005 From: wesp at GDV.COM (Oliver Wesp) Date: Fri, 7 Oct 2005 09:29:26 +0200 Subject: GDV Client In-Reply-To: <4345833A.5080105@lsces.co.uk> Message-ID: On browser refresh the calculation of the mapsize fails and is submitted to mapserser as NaN. I have no idea why the files are (most likely) loaded in a different order on browser refresh so that MapWidth and MapHeight are not calculateted when the mapserver form is first submitted. I will look into it and maybe there is a way around this error. Oliver Lester Caine schrieb: > Janice Denovan wrote: > >> Lester and List, >> >> I also thought the GDV Client worth exploring. I find: >> >> * Easy install (even with my 3 words of German) >> * Nice use of frames - maximizes the map area >> * Basic navigations tools - all working >> >> My only complaint is that on browser refresh (that's an F5 for IE or >> Ctrl-R >> for Mozilla) the application breaks with "getNumeric(): Incorrect data >> type." The GDV Client demo site at http://www.gdv- >> gis.de/mapserver/htmlviewer/html/viewer.html fails, Lester's site breaks >> and my site breaks. Any thoughts ? > > > I have moved on a bit > http://home.lsces.co.uk/bitweaver/mapper/display_map.php > has it integrated with the bitweaver framework ready for adding > additional facilities. > > The refresh problem relates to the way the browser loads the last file > accessed. If you use in Mozilla there is not a problem. > -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From car271 at TISCALI.IT Fri Oct 7 01:54:48 2005 From: car271 at TISCALI.IT (car271) Date: Fri, 7 Oct 2005 10:54:48 +0200 Subject: Proj php functions Message-ID: Hi all, where can I find PROJ php functions list? Thanks. Car. From nbarker at RSINC.COM Fri Oct 7 05:06:33 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 7 Oct 2005 13:06:33 +0100 Subject: WCS configuration Message-ID: Hi, really sorry I can?t send you a link but I am on a holiday terminal so perhaps someone will be kind. On the new MapServer CMS there is a WCS howto by myself and Gail Millin with a bit more information on how to do time series, credit to Steve Lime, he did it first! If you have any suggestions for improving the page please send them. thanks, Norman ________________________________ De: UMN MapServer Users List en nombre de Steve Lime Enviado el: vie 07/10/2005 4:30 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] WCS configuration In the WCS schema it's just a string so I don't believe there's anyway to check the validity based on the schema definitions which is why the samples didn't break. It makes sense that native format *should* be one of the supported formats (the annotation in the schema says as much). That does cause a problem because it would mean any format the GDAL could not write could not be referenced as a native format- that's not good. I suppose you'd just ommit it in that case. The formats code list itself is created from the wcs_formats metadata which needsto match the names of the various output formats you define in the metadata. So, in short, wcs_nativeformat should match one of the formats listed in wcs_formats. It will not break anything if that is not true. Perhaps we should enforce this. The WCS how-to is not intended to exist apart from the implementation specifications, so you may at times need to refer to that document. Should you find errors or need more information then please contact me. Help enhancing documentation would be most welcome. Steve >>> Jeroen Ticheler 10/06/05 9:41 AM >>> Hi! I would like to have some more background on some items of the map file used for a time series WCS. I ran into the element "wcs_nativeformat" that has the value "raw binary" in the WCS samples. Are the values for this item free text, or should they be a value from a restricted list. (Or should I dive straight into the OGC-WCS specs now?) Other elements listed also lack information on their use. Can I help to improve them or is anyone planning to update the page? Thanks in advance. Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at BARAHONA.CH Fri Oct 7 05:32:28 2005 From: mapserver at BARAHONA.CH (Mapserver Mailing-List) Date: Fri, 7 Oct 2005 14:32:28 +0200 Subject: PHP/MapScript: How to create annotations Message-ID: Hi List, I would like to add some legal text,image key, and copyright information onto a GeoTIFF images. I succeed to add static text by defining it in the mapfile. But I must also add some dynamic text, such as generated image's name. So how can I create and place annotations on a map with PHP/Mapscript ? Thanks in advance for your help. Regards. Richard Barahona -------------- next part -------------- An HTML attachment was scrubbed... URL: From Debbie.Pagurek at EC.GC.CA Fri Oct 7 06:31:39 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri, 7 Oct 2005 09:31:39 -0400 Subject: PHP Wrapper to hide mapfile location Message-ID: As a follow on to this post - we found that our first attempt at a PHP wrapper to use instead of an .asp wrapper wasn't adequate. Below is the PHP code that we are now testing. It covers responses for WMS and WFS requests. It would be great if others on the list could test this out or comment on the method. Any suggestions? $value) { $finalString.= "&$key=".urlencode($value); } return $finalString; } if($_GET) { $strRequest = $_GET; $theRequest = $_GET["request"]; $theMode = $_GET["mode"]; $theFormat = $_GET["format"]; $theExceptionFormat = $_GET["exceptions"]; $theGetFeatureInfoFormat = $_POST["info_format"]; } else { $strRequest = $_POST; $theRequest = $_POST["request"]; $theMode = $_GET["mode"]; $theFormat = $_POST["format"]; $theExceptionFormat = $_POST["exceptions"]; $theGetFeatureInfoFormat = $_POST["info_format"]; } // ------------------------------------------------------------------------ ------------------ if(!$theExceptionFormat) { $theExceptionFormat = "application/vnd.ogc.se_xml"; // default format for exceptions } if(!$theGetFeatureInfoFormat ) { $theGetFeatureInfoFormat = "application/vnd.ogc.gml"; // default format for getFeatureInfo } if(!$theFormat) { $theFormat = "image/gif"; // default to image/gif mime type } // if the request is for mode=legend and not request=??? then check if(strtoupper($theMode) == "LEGEND") { $theRequest = "SHOWIMAGE"; // show default image/gif } $handle = fopen($strURL.buildQueryString($strRequest), "r"); $contents = ''; if($handle) // if server url is alive and kicking { while (!feof($handle)) // not at end of file. { $contents .= fread($handle, 8192); if(stristr($contents,'ServiceExceptionReport')) // look for ServiceExceptionReport in content for WMS Exception { $theRequest = "FOUNDEXCEPTION"; } } fclose($handle); } switch(strtoupper($theRequest)) { case "FOUNDEXCEPTION": { header('Content-Type: '.$theExceptionFormat.';'); break; } case "GETMAP": { header('Content-Type: '.$theFormat.';'); break; } case "GETLEGENDGRAPHIC": { header('Content-Type: '.$theFormat.';'); break; } case "GETFEATUREINFO"; { header('Content-Type: '.$theGetFeatureInfoFormat.';'); break; } case "GETFEATURE"; { header('Content-Type: application/vnd.ogc.gml;'); break; } case "GETCAPABILITIES"; { header('Content-Type: application/vnd.ogc.wms_xml;'); break; } case "DESCRIBELAYER"; { header('Content-Type: text/xml;'); break; } case "SHOWIMAGE": { header('Content-Type: '.$theFormat.';'); break; } default: { header('Content-Type: text/plain;'); } } echo $contents; ?> -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pagurek,Debbie [NCR] Sent: Thursday, September 29, 2005 3:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PHP Wrapper to hide mapfile location Hi all, A developer at my office has written the following PHP wrapper to hide the location of mapfiles. I have seen .asp scripts to do this but no PHP scripts have been brought to attention until now so I thought I would present this to the community for feedback. I have tested this briefly. Any comments anyone? D. Pagurek $value) { $finalString.= "&$key=".urlencode($value); } return $finalString; } if($_GET) { $strRequest = $_GET; } else { $strRequest = $_POST; } $strURL = "http://theserver/cgi-bin/mapserv.exe?map=C:\ms4w\apps\chameleon\map\tes t.map&".buildQueryString($strRequest); ini_set('user_agent','MSIE 4\.0b2;'); // fake a browser request. $handle = fopen($strURL, "r"); $contents = ''; if($handle) { while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); } echo $contents; ?> From hugo.wetterberg at GMAIL.COM Fri Oct 7 06:37:31 2005 From: hugo.wetterberg at GMAIL.COM (Hugo Wetterberg) Date: Fri, 7 Oct 2005 15:37:31 +0200 Subject: Output attributes from shape-file in WFS/GML response Message-ID: How do I output the attributes from my shape-file in the WFS/GML response? As it is now I just get the geometry: ... 0.227246 0.349123 0.225847 0.488217 /Hugo Wetterberg From Tom.Kralidis at EC.GC.CA Fri Oct 7 06:51:52 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 7 Oct 2005 09:51:52 -0400 Subject: Output attributes from shape-file in WFS/GML response Message-ID: You have to set "gml_include_items" "all". This is a new feature of 4.6.0, which turns off field output if not explicitly specified in your mapfile. PS -- this should really get documented for WMS-Server and WFS-Server. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hugo Wetterberg > Sent: Friday, 07 October, 2005 09:38 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Output attributes from > shape-file in WFS/GML response > > > How do I output the attributes from my shape-file in the > WFS/GML response? As it is now I just get the geometry: > > > > ... > > > 0.227246 0.349123 > 0.225847 0.488217 > > > > > > /Hugo Wetterberg > From sweykam at TELELINE.ES Fri Oct 7 08:32:05 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Fri, 7 Oct 2005 17:32:05 +0200 Subject: WMS GetMap-Request and class expressions Message-ID: Hi list members, A while ago I developed a very simple mapserver application which I would now like to make available as WMS. I wonder if it is possible to modify the class expressions via the WMS GetMap-request ?? Or can this only be done by WFS? You can see the application here at: http://161.111.161.171/Atlas/ It contains maps of 3 thematic groups (species distribution maps, maps on biodiversity indices and environmental factors) and a query that allows to generate a list of species, biodiversity indices and environmental factors for each graticule. The species distribution maps are what I would like to make available as web map service but I can't figure out how to pass the parameter on that indicates the species code. The problem is the layer 'Dlyr', my species distribution layer. As for the application, the user selects a species name from a list and this variable is then used to render the map by modifying the predefined classes in the map file. $clObj0=$Dlyr->getClass(0); $clObj0->setExpression('(['.$sp.']=0)'); $clObj1=$Dlyr->getClass(1); $clObj1->setExpression('(['.$sp.']>0 AND ['.$sp.']<=20)'); $clObj2=$Dlyr->getClass(2); $clObj2->setExpression('(['.$sp.']>20 AND ['.$sp.']<=40)'); $clObj3=$Dlyr->getClass(3); $clObj3->setExpression('(['.$sp.']>40 AND ['.$sp.']<=60)'); $clObj4=$Dlyr->getClass(4); $clObj4->setExpression('(['.$sp.']>60 AND ['.$sp.']<=80)'); $clObj5=$Dlyr->getClass(5); $clObj5->setExpression('(['.$sp.']>80)'); The class ranges never change, no matter what species is selected. The species code $sp identifies a column in a PostgreSQL table, i.e. [DEMI]. Each species has its table column. I have already prepared a first version that you may try typing this in your browser: http://161.111.161.171/cgi-bin/AtlasAves.exe?service=WMS&request=GetCapabili ties You may retrieve a map composition, for example... http://161.111.161.171/cgi-bin/AtlasAves.exe?service=WMS&version=1.1.1&reque st=GetMap&layers=fondo,Dlyr,cuad50,cuad_anno&format=png&transparent First, the client has to have as well a species list that allows to select and pass on the species code (I will later make this list available). How is the species identifier added to the request string ? I guess, this calls for providing the layer as WFS instead (?). The client then creates his own classes and I don't have to modify my code at all? Is it possible to avoid that the whole data set is retrieved by a GetFeature-request? I tried by specifying 'wfs_maxfeatures', but it had no effect on the GetFeature response. I am using MapServer 4.4 and this layer is a PostGIS table. Thanks for your comments, Stefanie Weykam From aquiney at REFRACTIONS.NET Fri Oct 7 10:21:26 2005 From: aquiney at REFRACTIONS.NET (Adam Quiney) Date: Fri, 7 Oct 2005 10:21:26 -0700 Subject: WMS GetMap-Request and class expressions In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From gyetman at CIESIN.COLUMBIA.EDU Fri Oct 7 10:30:11 2005 From: gyetman at CIESIN.COLUMBIA.EDU (Gregory Yetman) Date: Fri, 7 Oct 2005 13:30:11 -0400 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] WMS: wrap past 180 East/West] Message-ID: Hi, Forgot to copy the list on my reply to Ed's post (see below). This issue has not yet been resolved but we've discovered that the issue seems to be related to missing tiles. The data are present but one of the tiles adjacent to the date line is not being included in the wrapped image. Oddly enough, the missing data seems to appear and dissapear as you change zoom level. The mapserver data are now public, if you go to: http://www.marine-geo.org/exe/mapserv?map=/system/link/server/apache/htdocs/marine-geo/gis/logs/gis.P-l-6oHsFHIAACa3g-YAAAAF.map&zoomsize=2&program=/exe/mapserv&map_web_imagepath=/tmp/&map_web_imageurl=/tmp/&layer=Coasts&layer=DEM&layer=Grid&layer=Tracks you can see what I'm talking about. Sorry for the long link, if it's mangled you can reproduce it by going to: http://www.marine-geo.org/link/search.php then click one of the entries on the left and choose 'map view'. Have a good weekend all, Greg -------------- next part -------------- An embedded message was scrubbed... From: Gregory Yetman Subject: Re: [UMN_MAPSERVER-USERS] WMS: wrap past 180 East/West Date: Thu, 06 Oct 2005 09:19:26 -0400 Size: 3961 URL: From bartvde at XS4ALL.NL Fri Oct 7 10:39:18 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 7 Oct 2005 19:39:18 +0200 Subject: WMS GetMap-Request and class expressions In-Reply-To: <4346AE96.9010308@refractions.net> Message-ID: Stefanie, you could use SLD to create dynamic classifications. Look at the Mapserver WMS SLD Howto. Best regards, Bart On Fri, 07 Oct 2005 19:21:26 +0200, Adam Quiney wrote: > Hi Stefanie, > > I recently finished something similar to your problem, that may or may > not be > helpful. In our situation, we needed to accept a normal incoming WMS > request, > and within that request, provide application specific variables (similar > to what > you need to provide) which are then substituted by mapserver to pull out > the > data dynamically. > > Mapserver can accept parameters following the standard WMS > specifications, as > well as providing extra functionality via the mapscript cgi interface. > Our end > result used a backend mapserver (which published a layer of data drawn > out of a > postgis database), and a front end pseudoWMS server. I wrote the pseudo > WMS > server as a simple java servlet. The PseudoWMSServer acts as the WMS > compliant > entry point to the mapserver, and as such *should* accept incoming > GetMap, and > GetCapabilities requests. Clients make a request to this WMS server in a > format > something like this: > > request: > http://www.refractions.net/PseudoWMSServer/PseudoWMSServer?request=GetMap&layers=layerName,variable1,variable2&etc. > > The PseudoWMSServer accepts this incoming request, parses it, and > creates a new > request to the mapserver instance. This new request uses the mapscript > CGI > interface to pass in the same request, along with the variables. In our > case, > the new request made to the mapserver instance looked like: > > mapserverURLStr = > http://www.refractions.net/cgi-bin/mapserv&map=/pathToMapFile&MODE=MAP&MINX=1&MINY=1&MAXX=2&MAXY=2&MAPSIZE=640+480&LAYERS=layerName&variable1=variable1Value > > In the mapserver instance's mapfile, we have a layer defined this way: > > LAYER > NAME "layerName" > TYPE LINE > STATUS ON > CONNECTIONTYPE postgis > CONNECTION "host=hostname dbname=dbname user=username" > DATA "the_geom from (SELECT * FROM tablename WHERE blah=%variable1%)" > > etc.. > > The PseudoWMSServer then opens up a stream to the mapserver, reads in > the bytes, > and spits them back out through the waiting http connection. Using this > technique, you can maintain the use of WMS specifications, as well as > making use > of mapserver's extra functionality. > > Hopefully that helps. I have some kind lying around here, let me know if > you > need any of it. > > --Adam > > > Stefanie Weykam wrote: > > Hi list members, > > A while ago I developed a very simple mapserver application which I would > now like to make available as WMS. I wonder if it is possible to modify > the > class expressions via the WMS GetMap-request ?? Or can this only be done > by > WFS? > > You can see the application here at: http://161.111.161.171/Atlas/ > It contains maps of 3 thematic groups (species distribution maps, maps on > biodiversity indices and environmental factors) and a query that allows > to > generate a list of species, biodiversity indices and environmental > factors > for each graticule. > > The species distribution maps are what I would like to make available as > web > map service but I can't figure out how to pass the parameter on that > indicates the species code. > > The problem is the layer 'Dlyr', my species distribution layer. > As for the application, the user selects a species name from a list and > this > variable is then used to render the map by modifying the predefined > classes > in the map file. > $clObj0=$Dlyr->getClass(0); > $clObj0->setExpression('(['.$sp.']=0)'); > $clObj1=$Dlyr->getClass(1); > $clObj1->setExpression('(['.$sp.']>0 AND ['.$sp.']<=20)'); > $clObj2=$Dlyr->getClass(2); > $clObj2->setExpression('(['.$sp.']>20 AND ['.$sp.']<=40)'); > $clObj3=$Dlyr->getClass(3); > $clObj3->setExpression('(['.$sp.']>40 AND ['.$sp.']<=60)'); > $clObj4=$Dlyr->getClass(4); > $clObj4->setExpression('(['.$sp.']>60 AND ['.$sp.']<=80)'); > $clObj5=$Dlyr->getClass(5); > $clObj5->setExpression('(['.$sp.']>80)'); > > The class ranges never change, no matter what species is selected. > The species code $sp identifies a column in a PostgreSQL table, i.e. > [DEMI]. > Each species has its table column. > > I have already prepared a first version that you may try typing this in > your > browser: > http://161.111.161.171/cgi-bin/AtlasAves.exe?service=WMS&request=GetCapabili > ties > > You may retrieve a map composition, for example... > http://161.111.161.171/cgi-bin/AtlasAves.exe?service=WMS&version=1.1.1&reque > st=GetMap&layers=fondo,Dlyr,cuad50,cuad_anno&format=png&transparent > > First, the client has to have as well a species list that allows to > select > and pass on the species code (I will later make this list available). > How is > the species identifier added to the request string ? > > I guess, this calls for providing the layer as WFS instead (?). The > client > then creates his own classes and I don't have to modify my code at all? > > Is it possible to avoid that the whole data set is retrieved by a > GetFeature-request? I tried by specifying 'wfs_maxfeatures', but it had > no > effect on the GetFeature response. > > I am using MapServer 4.4 and this layer is a PostGIS table. > > Thanks for your comments, > Stefanie Weykam > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lists at NABBLE.COM Fri Oct 7 13:55:59 2005 From: lists at NABBLE.COM (pgwillia (sent by Nabble.com)) Date: Fri, 7 Oct 2005 13:55:59 -0700 Subject: MapScript/PHP not compatible with PHP 5.0.5 Message-ID: I was trying to setup my Apache server to work with Mapscript 4.6.1 and my PHP 5.0.5 installation. Experimentation shows that php_mapscript_46.dll requires php4ts.dll. Is this correct? I have a installed a second version of PHP 4.4.0 and it works fine. Is this a common experience? Is there a work-around other than installing another version of PHP? Thanks, Tricia -- Sent from the Mapserver - User forum at Nabble.com: http://www.nabble.com/MapScript-PHP-not-compatible-with-PHP-5.0.5-t386382.html#a1066602 -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at GMX.NET Fri Oct 7 14:41:13 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Fri, 7 Oct 2005 23:41:13 +0200 Subject: MapScript/PHP not compatible with PHP 5.0.5 In-Reply-To: <1066602.post@talk.nabble.com> Message-ID: Tricia, there's a version of Mapscript for PHP 5.0.5 (mapserver-4.6.1-win32-php5.0.5.zip) at http://dl.maptools.org/dl/ Armin pgwillia (sent by Nabble.com) wrote: > I was trying to setup my Apache server to work with Mapscript 4.6.1 and > my PHP 5.0.5 installation. Experimentation shows that > php_mapscript_46.dll requires php4ts.dll. Is this correct? I have a > installed a second version of PHP 4.4.0 and it works fine. > > Is this a common experience? Is there a work-around other than > installing another version of PHP? > > Thanks, > Tricia > ------------------------------------------------------------------------ > Sent from the Mapserver - User > > forum at Nabble.com. From jachym.cepicky at CENTRUM.CZ Sat Oct 8 05:05:09 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Sat, 8 Oct 2005 14:05:09 +0200 Subject: mapscript - queryByAttributes: Aborted Message-ID: Hi, I work with perl-mapscript, after line with [...] $layerObj->queryByAttributes($mapObj, "n_leg", "2240",$mapscript::MS_SINGLE); [...] I get only $ ./mapscript.pl *** glibc detected *** double free or corruption (!prev): 0x083eb1a8 *** Aborted $ I would like to write application, which would enable to find map objects defined by attribut in database table, I suppose, queryByAttribute is the method, I'm looking for. I thing, I will have to do it like follows: 1) set up map extent to fulll extent 2) create layerObj 3) $layerObj->queryByAttributes($mapObj, "column name", "value",$mapscript::MS_SINGLE); 4) $resultCacheObj = $layerObj->getResults(); 5) new EXTENT = $resultCacheObj->{0}->{bounds}; is there some better way, how to do this? how does exactly drawQuery work -- are there any exaples? I'm following the documentation from http://zcologia.com/mapserver/mapscript, is there some better place, where to look? Thank you Jachym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ ----------------------------------------- OFFICE: Department of Geoinformation Technologies LDF MZLU v Brn? Zem?d?lsk? 3 613 00 Brno e-mail: xcepicky at node.mendelu.cz URL: http://mapserver.mendelu.cz Tel.: +420 545 134 514 From jachym.cepicky at CENTRUM.CZ Sun Oct 9 02:44:13 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Sun, 9 Oct 2005 11:44:13 +0200 Subject: mapscript - queryByAttributes: Aborted In-Reply-To: <20051008120509.GA28789@trava> Message-ID: Ok, I get this error no more. Anyway, it does not work, how I would expect: my $layerObj = $mapObj->getLayerByName("landuse"); $layerObj->queryByAttributes($mapObj, 'number', '10850', $mapscript::MS_SINGLE); my $resultCacheObj = $layerObj->getResults(); # but there is no $resultCacheObj defined print $resultCacheObj,"\n"; # Use of uninitialized value in print at ./mapserv2.pl line 70. How to perform the attribute query with mapscript? Thanks Jachym On Sat, Oct 08, 2005 at 02:05:09PM +0200, Jachym Cepicky wrote: > Hi, > > I work with perl-mapscript, after line with > > [...] > $layerObj->queryByAttributes($mapObj, "n_leg", "2240",$mapscript::MS_SINGLE); > [...] > > I get only > > $ ./mapscript.pl > *** glibc detected *** double free or corruption (!prev): 0x083eb1a8 *** > Aborted > $ > > I would like to write application, which would enable to find map > objects defined by attribut in database table, I suppose, > queryByAttribute is the method, I'm looking for. > > I thing, I will have to do it like follows: > > 1) set up map extent to fulll extent > 2) create layerObj > 3) $layerObj->queryByAttributes($mapObj, "column name", "value",$mapscript::MS_SINGLE); > 4) $resultCacheObj = $layerObj->getResults(); > 5) new EXTENT = $resultCacheObj->{0}->{bounds}; > > is there some better way, how to do this? > how does exactly drawQuery work -- are there any exaples? > > I'm following the documentation from > http://zcologia.com/mapserver/mapscript, is there some better place, > where to look? > > Thank you > > Jachym > > -- > Jachym Cepicky > e-mail: jachym.cepicky at centrum.cz > URL: http://les-ejk.cz > GPG: http://les-ejk.cz/gnupg_public_key/ > ----------------------------------------- > OFFICE: > Department of Geoinformation Technologies > LDF MZLU v Brn? > Zem?d?lsk? 3 > 613 00 Brno > e-mail: xcepicky at node.mendelu.cz > URL: http://mapserver.mendelu.cz > Tel.: +420 545 134 514 -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ ----------------------------------------- OFFICE: Department of Geoinformation Technologies LDF MZLU v Brn? Zem?d?lsk? 3 613 00 Brno e-mail: xcepicky at node.mendelu.cz URL: http://mapserver.mendelu.cz Tel.: +420 545 134 514 From marcello_benigno at HOTMAIL.COM Sun Oct 9 05:38:49 2005 From: marcello_benigno at HOTMAIL.COM (Marcello Benigno Borges de Barros Filho) Date: Sun, 9 Oct 2005 09:38:49 -0300 Subject: how the " itemquery mode" works? Message-ID: Hi all, Recently I made some tests with queries in mapserver using the "Beginning Mapserver" book examples , but i have some questions about the "itemquery mode". For example, i tested wiht .. When i try the same with radio buttons, the "itemquery mode" doesn?t works. .. Browse;
query
query by attributes
... The map file and the header and footer files are the same in my two examples. why will be? Some wrong CGI parameter? Best regards, Marcello -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Sun Oct 9 08:55:00 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Sun, 9 Oct 2005 09:55:00 -0600 Subject: mapscript - queryByAttributes: Aborted In-Reply-To: Message-ID: On Oct 9, 2005, at 3:44 AM, Jachym Cepicky wrote: > Ok, I get this error no more. Anyway, it does not work, how I would > expect: > > my $layerObj = $mapObj->getLayerByName("landuse"); > $layerObj->queryByAttributes($mapObj, 'number', '10850', > $mapscript::MS_SINGLE); > my $resultCacheObj = $layerObj->getResults(); > > > # but there is no $resultCacheObj defined > > print $resultCacheObj,"\n"; > # Use of uninitialized value in print at ./mapserv2.pl line 70. > > > How to perform the attribute query with mapscript? > > Thanks > > Jachym > Do you have a template set for your layer? See section 2.2 in http://zcologia.com/mapserver/querying-howto. This is one of mapscript's worst quirks. The second argument of queryByAttributes becomes a temporary layer filteritem, and the third argument becomes a temporary layer filter. See http://ms.gis.umn.edu/docs/howto/msexpressions/howto_view If you don't actually have a 'number' item in the layer, then the query will fail and getResults() will return NULL. Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From dps1 at UALBERTA.CA Sun Oct 9 11:51:01 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Sun, 9 Oct 2005 12:51:01 -0600 Subject: Producing dynamic classes within a layer Message-ID: Hello folks, What I want to do is produce a map of North America via map mode that will color code specific States or Provinces classes within a States/Provinces layer according to a list produced via a SQL Server query. I successfully created an OGR connection to SQL Server to display point data, but now I would really like to do something similar by filling in individual States or Provinces with one colour while the remaining States or Provinces do not receive the fill colour. These select States or Provinces must be chosen via a SQL Server query. Thanks for any ideas, David P. Shorthouse -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Sun Oct 9 15:52:51 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sun, 9 Oct 2005 15:52:51 -0700 Subject: Producing dynamic classes within a layer In-Reply-To: <000701c5cd02$652d6670$0402a8c0@shorthouse.com> Message-ID: On October 9, 2005 11:51 am, David Shorthouse wrote: > filling in > individual States or Provinces with one colour while the remaining States > or Provinces do not receive the fill colour. These select States or > Provinces must be chosen via a SQL Server query. Hi David, If I understand correctly what you need, all you want is to have multiple CLASS sections, asper the p. 161 example here: http://examples.oreilly.com/webmapping/ FYI - to all others, most of the map file code examples from my book (some still remaining) are on that website. Hope that helps. Tyler From dps1 at UALBERTA.CA Sun Oct 9 16:58:26 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Sun, 9 Oct 2005 17:58:26 -0600 Subject: Producing dynamic classes within a layer In-Reply-To: <200510091552.52333.tylermitchell@shaw.ca> Message-ID: >On October 9, 2005 11:51 am, David Shorthouse wrote: >> filling in >> individual States or Provinces with one colour while the >remaining States >> or Provinces do not receive the fill colour. These select States or >> Provinces must be chosen via a SQL Server query. > >Hi David, >If I understand correctly what you need, all you want is to >have multiple >CLASS sections, asper the p. 161 example here: >http://examples.oreilly.com/webmapping/ > >FYI - to all others, most of the map file code examples from >my book (some >still remaining) are on that website. > >Hope that helps. >Tyler This is certainly getting closer, but let me see if I understand this. The mapfile you pointed me to above looks like it has an Expression associated with the 'Bulgaria' class as: CLASS EXPRESSION ( ' [NAME] ' ne 'Bulgaria' ) STYLE OUTLINECOLOR 100 100 100 COLOR 200 200 200 END END Whereby I assume the [NAME] gets pulled from the URL such that 'Bulgaria' may or may not receive that color depending on what's in the URL. What I want to do is fill [NAME] from a recordset obtained from SQL Server. At the moment, I have a series of Classes associated with my State/Province layer. So, does this mean all I have to do is add expressions as you showed like [NAME1], [NAME2], ....., [NAMEx] for all the State/Province classes and somehow figure out how to fill these from a SQL Server recordset? Dave From dps1 at UALBERTA.CA Sun Oct 9 17:22:10 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Sun, 9 Oct 2005 18:22:10 -0600 Subject: Producing dynamic classes within a layer In-Reply-To: <000c01c5cd2d$571d7d60$0402a8c0@shorthouse.com> Message-ID: >>> filling in >>> individual States or Provinces with one colour while the >>remaining States >>> or Provinces do not receive the fill colour. These select States or >>> Provinces must be chosen via a SQL Server query. >> >>Hi David, >>If I understand correctly what you need, all you want is to >>have multiple >>CLASS sections, asper the p. 161 example here: >>http://examples.oreilly.com/webmapping/ >> >>FYI - to all others, most of the map file code examples from >>my book (some >>still remaining) are on that website. >> >>Hope that helps. >>Tyler > >This is certainly getting closer, but let me see if I >understand this. The >mapfile you pointed me to above looks like it has an >Expression associated >with the 'Bulgaria' class as: > >CLASS > EXPRESSION ( ' [NAME] ' ne 'Bulgaria' ) > STYLE > OUTLINECOLOR 100 100 100 > COLOR 200 200 200 > END >END > >Whereby I assume the [NAME] gets pulled from the URL such that >'Bulgaria' >may or may not receive that color depending on what's in the >URL. What I >want to do is fill [NAME] from a recordset obtained from SQL >Server. At the >moment, I have a series of Classes associated with my >State/Province layer. >So, does this mean all I have to do is add expressions as you >showed like >[NAME1], [NAME2], ....., [NAMEx] for all the State/Province classes and >somehow figure out how to fill these from a SQL Server recordset? OK, now I see that 'ne' above means not equal...my mistake. But, I think I can phrase my question more clearly now that I see what you have here. Can one use ORG to populate expressions associated with classes in a manner similar to what you can do with point data? Dave From tylermitchell at SHAW.CA Sun Oct 9 20:10:53 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sun, 9 Oct 2005 20:10:53 -0700 Subject: Producing dynamic classes within a layer In-Reply-To: <000d01c5cd30$a8082ec0$0402a8c0@shorthouse.com> Message-ID: > >somehow figure out how to fill these from a SQL Server recordset? > > OK, now I see that 'ne' above means not equal...my mistake. But, I think I > can phrase my question more clearly now that I see what you have here. Can > one use ORG to populate expressions associated with classes in a manner > similar to what you can do with point data? I'massuming you are using the 'normal' MapServer CGI version. I would say this is more of a job for MapScript. Can you script it up in PHP instead? Doing things via a URL start to get quite limiting when trying to do dynamic stuff like this, it's not always impossible though it sometimes can be. Tyler From gireddy at GMAIL.COM Sun Oct 9 21:45:38 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Sun, 9 Oct 2005 23:45:38 -0500 Subject: history of web maps??? Message-ID: It was easy to find the history of cartography? but I am struggling to find the history of web-maps... I found that of MapQuest.... those guys used to deliver directions on a hard copy to all the gas stations... and these gas-stations use to distribute for free....... and it became mapquest in 1996 after 5 years of research...... anybody knows any more such storries.....plz help me find out. More over I also want the history of Mapserver itself.. When did NASA funded UMN... where did NASA use this software...? Nasa has an application similar to google earth, did NASA use mapserver for this? Thank you, shashi. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Cell: 205-239-6655 From luca76 at GMAIL.COM Mon Oct 10 00:24:01 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Mon, 10 Oct 2005 09:24:01 +0200 Subject: How to make a symbol... Message-ID: ...with a continous line with dots inside? Like: -*-*-*-*- (see attachment...) -------------- next part -------------- A non-text attachment was scrubbed... Name: Anonimo.jpg Type: image/jpeg Size: 1192 bytes Desc: not available URL: From carlo.calvino at EMAIL.IT Mon Oct 10 00:47:44 2005 From: carlo.calvino at EMAIL.IT (Carlo Calvino) Date: Mon, 10 Oct 2005 02:47:44 -0500 Subject: Problems with ArcInfo Binary grid... Message-ID: On Wed, 5 Oct 2005 10:53:25 -0400, Frank Warmerdam wrote: >Yes, .clr files *should* work and mapserver should color the raster >according to the .clr file if is present. You can check quickly whether >the colortable is found by using gdalinfo on the binary grid. Thank you very much for your help. You are right, mapserver *seems* to support .clr files if present. I made such a file with ArcView8, and tested it both with gdalinfo and postgis. But when I view it as a mapserver map, only red colors are visible (but there are other colors!). Do you have any idea ? From sweykam at TELELINE.ES Mon Oct 10 01:18:31 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Mon, 10 Oct 2005 10:18:31 +0200 Subject: WMS GetMap-Request and class expressions Message-ID: Hi Adam and Bart and rest of the list, Thank you so much for your suggestions - sounds really interesting. I have not yet decided whether I want to provide the species distribution maps as WMS or WFS. On one hand WMS would make things easier for clients, on the other hand WFS has a lot more to offer. In THIS case the data are freely available but people are usually a bit more anxious about their data - so I am interested in both ways. I have my application running as usual, but this is NOT the one that receives requests from cascaded servers. For this purpose I have a second mapfile (I guess this is what Adam calls a pseudoserver). It makes use of a mapfile which is stripped down to the essential (no titles and no embedded legend) and has all the necessary metadata to be requested by clients. Anyway, for now the problem is how to tell which species (out of almost 200) is to be shown. I was hoping that the variable that identifies the species could be send somehow with the GetMap-request, like this: ..request=GetMap&layers=Dlyr&species=meap (this is the common Bee eater) or this way: ..request=GetMap&layers=Dlyr&meap But this is probably not understood, since the variable is not an expected element in this request. If I had a SQL statement with a filter I could perhaps use the Styled Layer Descriptor, as Bart suggested. But in my case I have no WHERE clause, instead I want to SELECT a determined column out of some 200 species columns. I wish I could get the column using an alias (AS spec), then the 6 class expressions would always refer to the same alias (column) and had not to be changed at all. A sub-query like this: SELECT %variable% AS spec FROM species; I tried this for to start with: DATA "the_geom from (select species.the_geom, species.chdp as spec from species)" But I get an error message (wrong subquery). I feel there must be more in it, perhaps I am missing something? So, I still needed to provide almost 200 SLD files, one for each species. Even though the value ranges never change - the species identifier in the class expression does. Perhaps Adam's solution is a better way - use a servlet that receives the GetMap request plus the variable that indicates the selected species and then create a new instance using the CGI interface and change the mapfile parameters via a URL (see MapServer CGI Reference). $sp is the variable we would receive from the client - for example 'demi'. This is how class 3 would be changed: &map_Dlyr_class_3_expression=(['.$sp.']>40 AND ['.$sp.']<=60) We would generate a URL like this: http://161.111.161.171/cgi-bin/AtlasAves.exe?layer=Dlyr&mode=map&map_Dlyr_cl assitem=demi&map_Dlyr_class_1_expression=([demi]>0%20AND%20[demi]<=20)&map_D lyr_class_2_expression=([demi]>20%20AND%20[demi]<=40)%20&map_Dlyr_class_3_ex pression=([demi]>40%20AND%20[demi]<=60)&map_Dlyr_class_4_expression=([demi]> 60%20AND%20[demi]<=80)&map_Dlyr_class_5_expression=([demi]>80%20AND%20[demi] <=100) Now I get curious how Adam makes his pseudoserver behave like a mediator, parse the incoming request, send the URL and return the result to the client. I have not yet configured my system for servlets, but If you don't mind, Adam, yes I would like to see such an example. Thanks for your comments, Stefanie From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 10 01:28:34 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 10 Oct 2005 10:28:34 +0200 Subject: How to make a symbol... Message-ID: See: http://mapserver.gis.umn.edu/doc46/cartographic-symbols.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Luca Manganelli 10-10-2005 9:24 >>> ...with a continous line with dots inside? Like: -*-*-*-*- (see attachment...) From Jeroen.Ticheler at FAO.ORG Mon Oct 10 06:20:23 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Mon, 10 Oct 2005 15:20:23 +0200 Subject: Map file from a URI instead of a filesystem!? Message-ID: Hi, A question that came up while discussing integration of MapServer with a catalog application (GeoNetwork opensource) was if mapserver in CGI mode could use a map file coming from another server; a URL (used for OGC-WMS services) would look like this: http://localhost/cgi-bin/mapserv?map=http://remotehost/mapfile.map or, in the way we were thinking of using it for example as: http://localhost/cgi-bin/mapserv?map=http://localhost/geonetwork/map? id=20 It would allow us to store map files in our catalog, with the metadata and run the W*S services straight out of the repository. In fact, we coud/would use the metadata information to generate a map file with all the required metadata & data elements set based on the metadata. SLD documents for different styles could also be stored with the metadata at that point. We would use XSL transformations to generate the (final) map files. Greetings, Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork 12.34327?N 12.34327?E From David.Fawcett at STATE.MN.US Mon Oct 10 06:26:37 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 10 Oct 2005 08:26:37 -0500 Subject: how the " itemquery mode" works? Message-ID: Marcello, Radio buttons should work just fine for telling MapServer what mode you want to use. I suggest posting the text of your template file so we can look at it. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marcello Benigno Borges de Barros Filho Sent: Sunday, October 09, 2005 7:39 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] how the " itemquery mode" works? Hi all, Recently I made some tests with queries in mapserver using the "Beginning Mapserver" book examples , but i have some questions about the "itemquery mode". For example, i tested wiht ... When i try the same with radio buttons, the "itemquery mode" doesn?t works. ... Browse;
query
query by attributes
.... The map file and the header and footer files are the same in my two examples. why will be? Some wrong CGI parameter? Best regards, Marcello -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at MALLIT.FR.UMN.EDU Mon Oct 10 07:03:29 2005 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Mon, 10 Oct 2005 09:03:29 -0500 Subject: history of web maps??? Message-ID: There is some historical MapServer information, including early papers, at . You'll find there that this initial project was funded by NASA in 1994. MapServer has been/is being used by many NASA funded projects; that's about the best that can be said in that regard. Tom >X-Umn-Remote-Mta: [N] lsv-m.tc.umn.edu [160.94.23.1] #+HF+LO+NM+TR >X-Umn-Remote-Mta: [N] xproxy.gmail.com [66.249.82.206] #+IX+NR+UF+CP (A,-) >X-Umn-Report-As-Spam: >DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version: content-type:content-transfer-encoding:content-disposition; b=nMs4+TtBYyYwLe/H69zmePCyymWL5dzMSamVbzBhnIDMqwb7WHJ6QVLYi7XF1un E4qWTljChGcb1Xq5T00eGOIHyFUujCjUSWY/gQeh4izf3WO2l/+PiiUSACl8Cr9uO xdOj80f/ZhZqvhiJE12CwhxZXeCu2zryt/n+ah4xDrw= >MIME-Version: 1.0 >Content-Disposition: inline >Date: Sun, 9 Oct 2005 23:45:38 -0500 >From: Shashi Gireddy >Subject: [UMN_MAPSERVER-USERS] history of web maps??? >To: MAPSERVER-USERS at lists.umn.edu >Content-Transfer-Encoding: 8bit >X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id j9A4j2Kj024451 > >It was easy to find the history of cartography? but I am struggling to >find the history of web-maps... > >I found that of MapQuest.... those guys used to deliver directions on >a hard copy to all the gas stations... and these gas-stations use to >distribute for free....... and it became mapquest in 1996 after 5 >years of research...... > >anybody knows any more such storries.....plz help me find out. More >over I also want the history of Mapserver itself.. When did NASA >funded UMN... where did NASA use this software...? Nasa has an >application similar to google earth, did NASA use mapserver for this? > >Thank you, >shashi. > >-- >Shashi Kiran Reddy. Gireddy, >Graduate Assistant, >CBER, University of Alabama. >http://www.cs.ua.edu/shashi >Cell: 205-239-6655 > > From annajip at GMAIL.COM Mon Oct 10 06:58:05 2005 From: annajip at GMAIL.COM (=?ISO-8859-1?Q?Anna_Jim=E9nez?=) Date: Mon, 10 Oct 2005 15:58:05 +0200 Subject: Temporal img name Message-ID: Hello, I need to understand the name that cgi mapserver puts to the temporal map images. For example: BCN112802994510780.png. What does the number after the name of the map (BCN) mean? Thanks. anna From David.Fawcett at STATE.MN.US Mon Oct 10 07:16:11 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 10 Oct 2005 09:16:11 -0500 Subject: Temporal img name Message-ID: Anna, The number is created to make the image name unique to ensure that the user receives the correct image that they are requesting. My understanding is that the number is derived from a combination of server time (seconds since start of Unix Epoch) and the server session ID. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Anna Jim?nez Sent: Monday, October 10, 2005 8:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Temporal img name Hello, I need to understand the name that cgi mapserver puts to the temporal map images. For example: BCN112802994510780.png. What does the number after the name of the map (BCN) mean? Thanks. anna From gyetman at CIESIN.COLUMBIA.EDU Mon Oct 10 07:24:35 2005 From: gyetman at CIESIN.COLUMBIA.EDU (Gregory Yetman) Date: Mon, 10 Oct 2005 10:24:35 -0400 Subject: history of web maps??? In-Reply-To: <5f447e350510092145i25b25442n757764aa8829d0e7@mail.gmail.com> Message-ID: Sashi, I don't know much about the history of mapserver, I'm sure that others on the list do. I've heard that the first web mapping application was in 1993, PARC by Xerox: http://pubweb.parc.xerox.com/ I know that Canada put out it's first version of it's National Atlas viewer in 1994, and that the first TIGER map service from the Census Bureau was in 1995. There was a flurry of questions about this back in 2002 because of a patent challenge on web mapping, not sure what happened with that. There's an article at: http://www.gismonitor.com/news/newsletter/archive/040402.php Are you only interested in interactive web mapping applications? I would imagine that the first static web maps put up follow very closely the introduction of images on the net. Greg Shashi Gireddy wrote: >It was easy to find the history of cartography? but I am struggling to >find the history of web-maps... > >I found that of MapQuest.... those guys used to deliver directions on >a hard copy to all the gas stations... and these gas-stations use to >distribute for free....... and it became mapquest in 1996 after 5 >years of research...... > >anybody knows any more such storries.....plz help me find out. More >over I also want the history of Mapserver itself.. When did NASA >funded UMN... where did NASA use this software...? Nasa has an >application similar to google earth, did NASA use mapserver for this? > >Thank you, >shashi. > >-- >Shashi Kiran Reddy. Gireddy, >Graduate Assistant, >CBER, University of Alabama. >http://www.cs.ua.edu/shashi >Cell: 205-239-6655 > > > -- -------------------------------------------------------------------- Gregory Yetman Center for International Earth Science Information Network (CIESIN) Columbia University URL: http://www.ciesin.columbia.edu/ e-mail: gyetman (at) ciesin.columbia.edu tel: (845) 365-8982 -------------------------------------------------------------------- From jachym.cepicky at CENTRUM.CZ Mon Oct 10 08:12:06 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Mon, 10 Oct 2005 17:12:06 +0200 Subject: Temporal img name In-Reply-To: <75bde9220510100658o511d3872x@mail.gmail.com> Message-ID: hi, On Mon, Oct 10, 2005 at 03:58:05PM +0200, Anna Jim?nez wrote: > Hello, > > I need to understand the name that cgi mapserver puts to the temporal > map images. > For example: BCN112802994510780.png. What does the number after the > name of the map (BCN) mean? > > Thanks. > > anna is that not the time (seconds since `00:00:00 1970-01-01 UT`)? J?chym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ ----------------------------------------- OFFICE: Department of Geoinformation Technologies LDF MZLU v Brn? Zem?d?lsk? 3 613 00 Brno e-mail: xcepicky at node.mendelu.cz URL: http://mapserver.mendelu.cz Tel.: +420 545 134 514 From dirk at ADVTECHME.COM Mon Oct 10 08:57:23 2005 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Mon, 10 Oct 2005 16:57:23 +0100 Subject: Map file from a URI instead of a filesystem!? In-Reply-To: Message-ID: --- Jeroen Ticheler wrote: > A question that came up while discussing integration of MapServer > with a catalog application (GeoNetwork opensource) was if mapserver > in CGI mode could use a map file coming from another server; a URL > (used for OGC-WMS services) would look like this: > > http://localhost/cgi-bin/mapserv?map=http://remotehost/mapfile.map Not directly. On a UNIX/Linux system you can easily do it by yourself: - Create a shell script that grabs the 'map' parameter from the paramter line. - Have wget, curl or a similar tool downloading the map file from the remote site and storing it into a local directory. - Have 'sed' or a similar tool replacing the mapfile link in the argument list - execute the real mapserver with the modified parameters Have fun, Dirk. From gireddy at GMAIL.COM Mon Oct 10 09:32:06 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Mon, 10 Oct 2005 11:32:06 -0500 Subject: Hi! Message-ID: Hi ! This is Shashi from university of Alabama. Actually i did my project on MapServer. So i need some information about the History of WebGIS for my project. So, can I please get infromation about the HIstory. Thanking you. Bye Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Cell: 205-239-6655 From pturner at CCALMR.OGI.EDU Mon Oct 10 09:36:02 2005 From: pturner at CCALMR.OGI.EDU (Paul Turner) Date: Mon, 10 Oct 2005 09:36:02 -0700 Subject: Need some help on WMS server. Message-ID: I'm bringing up a WMS server and I'm having problems serving different images from the same map file. It looks like only the last image of the 3 is being served. The server is at http://www.ccalmr.ogi.edu/cgi-bin/mapserv?map=/usr/local/apache/mapserver/wms.map There are 3 images served, one per layer, and each is different (I've verified this) but it seems that in every WMS client I use, the same image shows up no matter which layer I select (the last image). Any suggestions appreciated. Thx, --Paul Paul J Turner OHSU-OGI-CCALMR mapserver CGI is configured thusly: /usr/local/apache/cgi-bin) mapserv -v MapServer version 4.6.0 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 INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Here is the map file: MAP NAME "CORIE Dev Forecast" DEBUG ON # SIZE 550 450 # IMAGETYPE GIF UNITS DD EXTENT -125.300000 45.300000 -122.844754 47.299633 WEB LOG "/tmp/mapserver.log" IMAGEPATH "/usr/local/apache/htdocs/ms/tmp" IMAGEURL "/ms/tmp/" METADATA "wms_title" "CORIE WMS Service" "wms_onlineresource" "http://www.ccalmr.ogi.edu/cgi-bin/mapserv?map=/usr/local/apache/mapserver/wms.map&" ##required "wms_srs" "epsg:4326" "wms_format" "image/gif" END END PROJECTION "init=epsg:4326" END LAYER NAME "devforecast1" STATUS DEFAULT DUMP TRUE METADATA "wms_title" "DevForecast 1" ##required "wms_format" "image/gif" "gml_include_items" "all" END TYPE RASTER DATA "/usr/local/apache/mapserver/llcolsal_plume_surface_000090000.gif" PROJECTION "init=epsg:4326" ##recommended END END LAYER NAME "devforecast2" STATUS DEFAULT DUMP TRUE METADATA "wms_title" "DevForecast 2" ##required "wms_format" "image/gif" "gml_include_items" "all" END TYPE RASTER DATA "/usr/local/apache/mapserver/llcolsal_plume_surface_000093600.gif" PROJECTION "init=epsg:4326" ##recommended END END LAYER NAME "devforecast3" STATUS DEFAULT DUMP TRUE METADATA "wms_title" "DevForecast 3" ##required "wms_format" "image/gif" "gml_include_items" "all" END TYPE RASTER DATA "/usr/local/apache/mapserver/llcolsal_plume_surface_000097200.gif" PROJECTION "init=epsg:4326" ##recommended END END END The images can be seen at (warning, 2048x2048): http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000090000.gif http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000093600.gif http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000097200.gif From work at XWB.COM Mon Oct 10 10:59:42 2005 From: work at XWB.COM (Chip Taylor) Date: Mon, 10 Oct 2005 10:59:42 -0700 Subject: Confused about legends Message-ID: I have been reading up on legends and legend templates but remain confused. In my example I have three layers with named classes: Cities, Counties, States. Cities and States layers are always on. Counties display is controlled by a checkboxes. At all times I do NOT want the States layer to be included in the legend. If the Counties layer checkbox is selected then I want the legend to display the values in the Counties layer classes only. Otherwise if the Counties layer checkbox is not selected (layer is off) then I want the legend to display the values in the Cities layer classes only. How would I do this? Thanks in advance for your help. Chip Taylor Prepared Response, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Mon Oct 10 11:15:01 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 10 Oct 2005 13:15:01 -0500 Subject: Need some help on WMS server. Message-ID: Paul, I am guessing that you are getting the same image every time because you have all three layers STATUS set to default. Therefore, however you request it, all three layers are drawing and the last one in your map file is being drawn on top. I would suggest setting the layers STATUS to ON, and then using the layers parameter in your GetMap request to select the layer that you are interested in. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Turner Sent: Monday, October 10, 2005 11:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Need some help on WMS server. I'm bringing up a WMS server and I'm having problems serving different images from the same map file. It looks like only the last image of the 3 is being served. The server is at http://www.ccalmr.ogi.edu/cgi-bin/mapserv?map=/usr/local/apache/mapserve r/wms.map There are 3 images served, one per layer, and each is different (I've verified this) but it seems that in every WMS client I use, the same image shows up no matter which layer I select (the last image). Any suggestions appreciated. Thx, --Paul Paul J Turner OHSU-OGI-CCALMR mapserver CGI is configured thusly: /usr/local/apache/cgi-bin) mapserv -v MapServer version 4.6.0 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 INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Here is the map file: MAP NAME "CORIE Dev Forecast" DEBUG ON # SIZE 550 450 # IMAGETYPE GIF UNITS DD EXTENT -125.300000 45.300000 -122.844754 47.299633 WEB LOG "/tmp/mapserver.log" IMAGEPATH "/usr/local/apache/htdocs/ms/tmp" IMAGEURL "/ms/tmp/" METADATA "wms_title" "CORIE WMS Service" "wms_onlineresource" "http://www.ccalmr.ogi.edu/cgi-bin/mapserv?map=/usr/local/apache/mapserv er/wms.map&" ##required "wms_srs" "epsg:4326" "wms_format" "image/gif" END END PROJECTION "init=epsg:4326" END LAYER NAME "devforecast1" STATUS DEFAULT DUMP TRUE METADATA "wms_title" "DevForecast 1" ##required "wms_format" "image/gif" "gml_include_items" "all" END TYPE RASTER DATA "/usr/local/apache/mapserver/llcolsal_plume_surface_000090000.gif" PROJECTION "init=epsg:4326" ##recommended END END LAYER NAME "devforecast2" STATUS DEFAULT DUMP TRUE METADATA "wms_title" "DevForecast 2" ##required "wms_format" "image/gif" "gml_include_items" "all" END TYPE RASTER DATA "/usr/local/apache/mapserver/llcolsal_plume_surface_000093600.gif" PROJECTION "init=epsg:4326" ##recommended END END LAYER NAME "devforecast3" STATUS DEFAULT DUMP TRUE METADATA "wms_title" "DevForecast 3" ##required "wms_format" "image/gif" "gml_include_items" "all" END TYPE RASTER DATA "/usr/local/apache/mapserver/llcolsal_plume_surface_000097200.gif" PROJECTION "init=epsg:4326" ##recommended END END END The images can be seen at (warning, 2048x2048): http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000090000.gif http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000093600.gif http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000097200.gif From Jeff.Schmaltz at GSFC.NASA.GOV Mon Oct 10 11:22:32 2005 From: Jeff.Schmaltz at GSFC.NASA.GOV (Jeff Schmaltz) Date: Mon, 10 Oct 2005 13:22:32 -0500 Subject: Using WMS time dimension with rasters? Message-ID: Hello, I am exploring the possibility of using MapServer to serve up MODIS satellite imagery as a WMS. I have managed to create a working mapfile containing a single raster image for a single day. I need to to serve up a 2nd image which covers the same geographic extents but is from a different date. Ultimately, I want to serve up years of daily images, hence my desire to use the time dimension. Searching the MapServer documentation - in the "WMS Time Support HOWTO", I found the statement "wms_ timeitem: (Mandatory) this is the name of the field in the DB that contains the time values". I am surmising that "DB" refers to database and that PostGIS is the open source database one would use with MapServer. From the PostGIS Manual FAQ "You can store point, line, polygon, multipoint, multiline, multipolygon, and geometrycollections." Therefore, I have come to the conclusion that it is NOT currently possible to use the WMS time dimension for raster data. 1) If I am wrong, can someone please point in the right direction to use the time dimension in a WMS for rasters? 2) If I am right, can someone please tell me if support for time dimension for WMS rasters is coming anytime soon in MapServer? Thank you, Jeff Jeffrey E. Schmaltz (SSAI) MODIS Rapid Response Team NASA Goddard Space Flight Center Building 33 Room G108 Code 614.5 Greenbelt, MD 20771 - USA Voice: (+1) 301 614 5135 Fax: (+1) 301 614 6015 E-mail: Jeff.Schmaltz at gsfc.nasa.gov URL: http://rapidfire.sci.gsfc.nasa.gov From pturner at CCALMR.OGI.EDU Mon Oct 10 11:55:02 2005 From: pturner at CCALMR.OGI.EDU (Paul Turner) Date: Mon, 10 Oct 2005 11:55:02 -0700 Subject: Need some help on WMS server. In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5132D34@s-sp22.pca.state.mn.us> Message-ID: David, STATUS ON works for me, thx a heap! --Paul Paul J Turner Fawcett, David wrote: >Paul, > >I am guessing that you are getting the same image every time because you >have all three layers STATUS set to default. Therefore, however you >request it, all three layers are drawing and the last one in your map >file is being drawn on top. > >I would suggest setting the layers STATUS to ON, and then using the >layers parameter in your GetMap request to select the layer that you are >interested in. > >David. > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Paul Turner >Sent: Monday, October 10, 2005 11:36 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Need some help on WMS server. > > >I'm bringing up a WMS server and I'm having problems serving different >images from the same map file. It looks like only the last image of the >3 is being served. > >The server is at > >http://www.ccalmr.ogi.edu/cgi-bin/mapserv?map=/usr/local/apache/mapserve >r/wms.map > >There are 3 images served, one per layer, and each is different (I've >verified this) but it seems that in every WMS client I use, the same >image shows up no matter which layer I select (the last image). > >Any suggestions appreciated. > >Thx, > >--Paul > >Paul J Turner >OHSU-OGI-CCALMR > >mapserver CGI is configured thusly: > >/usr/local/apache/cgi-bin) mapserv -v >MapServer version 4.6.0 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 INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL >INPUT=SHAPEFILE > >Here is the map file: > >MAP > NAME "CORIE Dev Forecast" > DEBUG ON ># SIZE 550 450 ># IMAGETYPE GIF > UNITS DD > EXTENT -125.300000 45.300000 -122.844754 47.299633 > WEB > LOG "/tmp/mapserver.log" > IMAGEPATH "/usr/local/apache/htdocs/ms/tmp" > IMAGEURL "/ms/tmp/" > METADATA > "wms_title" "CORIE WMS Service" > "wms_onlineresource" >"http://www.ccalmr.ogi.edu/cgi-bin/mapserv?map=/usr/local/apache/mapserv >er/wms.map&" >##required > "wms_srs" "epsg:4326" > "wms_format" "image/gif" > END > END > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME "devforecast1" > STATUS DEFAULT > DUMP TRUE > METADATA > "wms_title" "DevForecast 1" ##required > "wms_format" "image/gif" > "gml_include_items" "all" > END > TYPE RASTER > DATA >"/usr/local/apache/mapserver/llcolsal_plume_surface_000090000.gif" > PROJECTION > "init=epsg:4326" ##recommended > END > END > > LAYER > NAME "devforecast2" > STATUS DEFAULT > DUMP TRUE > METADATA > "wms_title" "DevForecast 2" ##required > "wms_format" "image/gif" > "gml_include_items" "all" > END > TYPE RASTER > DATA >"/usr/local/apache/mapserver/llcolsal_plume_surface_000093600.gif" > PROJECTION > "init=epsg:4326" ##recommended > END > END > > LAYER > NAME "devforecast3" > STATUS DEFAULT > DUMP TRUE > METADATA > "wms_title" "DevForecast 3" ##required > "wms_format" "image/gif" > "gml_include_items" "all" > END > TYPE RASTER > DATA >"/usr/local/apache/mapserver/llcolsal_plume_surface_000097200.gif" > PROJECTION > "init=epsg:4326" ##recommended > END > END >END > >The images can be seen at (warning, 2048x2048): > >http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000090000.gif >http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000093600.gif >http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000097200.gif > > From bob.basques at CI.STPAUL.MN.US Mon Oct 10 12:40:38 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 10 Oct 2005 14:40:38 -0500 Subject: Expression in MAP file . . . Message-ID: All, I have a DBF with data that looks likes this for Highway Centerlines: INTERSTATE 94 INTERSTATE 35 INTERSTATE 35E INTERSTATE 35W INTERSTATE 494 INTERSTATE 694 Is there a way to use a filter on the above data to isolate the number on the end inside of the mapfile. I'm trying to apply some HWY Shields to my map without adding a column (this file is not owned by me, I would prefer not to have to add a column everytime I update it. Thanks bobb From szekeres.tamas at FREEMAIL.HU Mon Oct 10 13:48:34 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Mon, 10 Oct 2005 15:48:34 -0500 Subject: Confused about legends Message-ID: I think the legend might show the classes of those features that are really drawn on the map with a given setting. In addition the drawing of the legend item can be controlled manually by adding or removing the name of the corresponding class. Tamas On Mon, 10 Oct 2005 10:59:42 -0700, Chip Taylor wrote: >I have been reading up on legends and legend templates but remain confused. >In my example I have three layers with named classes: Cities, Counties, >States. Cities and States layers are always on. Counties display is >controlled by a checkboxes. At all times I do NOT want the States layer to >be included in the legend. If the Counties layer checkbox is selected then >I want the legend to display the values in the Counties layer classes only. >Otherwise if the Counties layer checkbox is not selected (layer is off) then >I want the legend to display the values in the Cities layer classes only. > >How would I do this? > >Thanks in advance for your help. > >Chip Taylor >Prepared Response, Inc. > > > From szekeres.tamas at FREEMAIL.HU Mon Oct 10 14:01:34 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Mon, 10 Oct 2005 16:01:34 -0500 Subject: Legend with scale dependent classes Message-ID: Hi list, Would it be feasible to have the drawing of the legend items aware of the minscale and maxscale setting if the class? Tamas From woodbri at SWOODBRIDGE.COM Mon Oct 10 14:20:27 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 10 Oct 2005 17:20:27 -0400 Subject: SCALEBAR aware of current scale Message-ID: It would be nice if the scalebar could be configured to with minscale/maxscale classes to you could configure it to change units like km -> m and mi -> ft when the scale gets smaller. Or better yet have an option for auto conversion of units. It would also be nice if someone would add a scalebar that displays BOTH English and Metric over/under style like 0 0.5 mi 1 mi | | | +-----------+--+-----+------+ | | | 0 0.5 km 1 km -Steve From lists at WEBMAPIT.COM.BR Mon Oct 10 14:25:07 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Mon, 10 Oct 2005 18:25:07 -0300 Subject: history of web maps??? In-Reply-To: <434A79A3.8050004@ciesin.columbia.edu> Message-ID: http://www.google.com/search?q=mapserver+history Should help you too. :-) Eduardo Patto Kanegae http://www.webmapit.com.br On Mon, 10 Oct 2005 10:24:35 -0400, Gregory Yetman escreveu: > De: Gregory Yetman > Data: Mon, 10 Oct 2005 10:24:35 -0400 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] history of web maps??? > > Sashi, > > I don't know much about the history of mapserver, I'm sure that others > on the list do. I've heard that the first web mapping application was in > 1993, PARC by Xerox: > > http://pubweb.parc.xerox.com/ > > I know that Canada put out it's first version of it's National Atlas > viewer in 1994, and that the first TIGER map service from the Census > Bureau was in 1995. > > There was a flurry of questions about this back in 2002 because of a > patent challenge on web mapping, not sure what happened with that. > There's an article at: > > http://www.gismonitor.com/news/newsletter/archive/040402.php > > Are you only interested in interactive web mapping applications? I would > imagine that the first static web maps put up follow very closely the > introduction of images on the net. > > Greg > > Shashi Gireddy wrote: > > >It was easy to find the history of cartography? but I am struggling to > >find the history of web-maps... > > > >I found that of MapQuest.... those guys used to deliver directions on > >a hard copy to all the gas stations... and these gas-stations use to > >distribute for free....... and it became mapquest in 1996 after 5 > >years of research...... > > > >anybody knows any more such storries.....plz help me find out. More > >over I also want the history of Mapserver itself.. When did NASA > >funded UMN... where did NASA use this software...? Nasa has an > >application similar to google earth, did NASA use mapserver for this? > > > >Thank you, > >shashi. > > > >-- > >Shashi Kiran Reddy. Gireddy, > >Graduate Assistant, > >CBER, University of Alabama. > >http://www.cs.ua.edu/shashi > >Cell: 205-239-6655 > > > > > > > > -- > -------------------------------------------------------------------- > Gregory Yetman > Center for International Earth Science Information Network (CIESIN) > Columbia University > URL: http://www.ciesin.columbia.edu/ > e-mail: gyetman (at) ciesin.columbia.edu > tel: (845) 365-8982 > -------------------------------------------------------------------- > > > From pramsey at REFRACTIONS.NET Mon Oct 10 14:53:35 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 10 Oct 2005 14:53:35 -0700 Subject: Using WMS time dimension with rasters? In-Reply-To: Message-ID: Jeff, Support for the time dimension in rasters exists, you just have to take a slight detour to get there. You want to use a "tile index" in your raster layer. This is a vector file that contains one record for each raster file. The shape should be the outline of the raster. It should have at least one attribute, which contains the file path to the raster file. For time based data, it will contain a second attribute, the date associated with the raster file. The vector "file" can be any of the Mapserver vector formats, so it can be shape file, or a postgis table, or an oracle table, etc. You can use the "tile4ms" (either part of mapserver or gdal, I am not sure) command to create a tile index from a directory of data, though it won't fill out a time stamp attribute for you. So, when mapserver is told to draw an image, it will (a) first look in the tile index to see what images fit the spatial and time extents being requested then (b) open up those images and draw them into the output image then (c) return the result. Yours, Paul Refractions Research www.refractions.net On 10-Oct-05, at 11:22 AM, Jeff Schmaltz wrote: > Hello, > > I am exploring the possibility of using MapServer to serve up MODIS > satellite imagery as a WMS. > > I have managed to create a working mapfile containing a single > raster image > for a single day. I need to to serve up a 2nd image which covers > the same > geographic extents but is from a different date. Ultimately, I > want to > serve up years of daily images, hence my desire to use the time > dimension. > > Searching the MapServer documentation - in the "WMS Time Support > HOWTO", I > found the statement "wms_ timeitem: (Mandatory) this is the name of > the > field in the DB that contains the time values". I am surmising > that "DB" > refers to database and that PostGIS is the open source database one > would > use with MapServer. From the PostGIS Manual FAQ "You can store > point, line, > polygon, multipoint, multiline, multipolygon, and > geometrycollections." > > Therefore, I have come to the conclusion that it is NOT currently > possible > to use the WMS time dimension for raster data. > > 1) If I am wrong, can someone please point in the right direction > to use the > time dimension in a WMS for rasters? > > 2) If I am right, can someone please tell me if support for time > dimension > for WMS rasters is coming anytime soon in MapServer? > > Thank you, > > Jeff > > Jeffrey E. Schmaltz (SSAI) > MODIS Rapid Response Team > NASA Goddard Space Flight Center > Building 33 Room G108 Code 614.5 > Greenbelt, MD 20771 - USA > Voice: (+1) 301 614 5135 > Fax: (+1) 301 614 6015 > E-mail: Jeff.Schmaltz at gsfc.nasa.gov > URL: http://rapidfire.sci.gsfc.nasa.gov > From steve.lime at DNR.STATE.MN.US Mon Oct 10 16:50:37 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 10 Oct 2005 18:50:37 -0500 Subject: Simple image mapping example... Message-ID: Hi all: Just thought I'd share a simple image mapping example that I've been tinkering with. I needed a simple tool to allow users to select multiple features with for use in a non-GIS application. Here's the simple tool for selecting counties: http://noah.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search.map&qlayer=county&mode=nquery&searchmap=true It uses the [shpxy ...] tag to output coordinates (in pixels) via normal query templates. The searchmap option may be new to folks. It's been around a long time and is documented but is typically overlooked. It tells map server to basically compute a normalized extent BEFORE querying. That is, use the extent for an image (after pan or zoom) as the query rectangle. It really only makes sense with mode=nquery. This example uses the default extent and map size in the mapfile. This example also hilites the ability to set class expressions dynamically. Works nice and fast, and provides a very simple UI. There is one mapfile and 3 templates driving this: http://noah.dnr.state.mn.us/eco/rsg/search/search.map http://noah.dnr.state.mn.us/eco/rsg/search/templates/county.html http://noah.dnr.state.mn.us/eco/rsg/search/templates/imagemap_header.html http://noah.dnr.state.mn.us/eco/rsg/search/templates/imagemap_footer.html Perhaps this will give other folks ideas (or not)... (There are also major watershed and ecological subsection versions, just substitute the right layer name in the first URL) Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at DNR.STATE.MN.US Mon Oct 10 16:53:55 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 10 Oct 2005 18:53:55 -0500 Subject: SCALEBAR aware of current scale Message-ID: Good ideas- the source is in mapscale.c... ;-) Please file as 2 seperate feature additions in Bugzilla so the ideas are not lost... Steve >>> Stephen Woodbridge 10/10/05 4:20 PM >>> It would be nice if the scalebar could be configured to with minscale/maxscale classes to you could configure it to change units like km -> m and mi -> ft when the scale gets smaller. Or better yet have an option for auto conversion of units. It would also be nice if someone would add a scalebar that displays BOTH English and Metric over/under style like 0 0.5 mi 1 mi | | | +-----------+--+-----+------+ | | | 0 0.5 km 1 km -Steve From goce.petrovski at IINTEGRATESYS.COM Mon Oct 10 20:36:35 2005 From: goce.petrovski at IINTEGRATESYS.COM (Goce Petrovski) Date: Mon, 10 Oct 2005 22:36:35 -0500 Subject: getfeature returns features from the first layer only Message-ID: Hi, I'm new to Map Server, and as expected I have few problems. When I submit GetFeature request (SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=layer1,layer2& ) in the response I only receive featureMember from the first layer (layer1). If I switch the layers than it returns featureMember only from layer2, but never from both. What I'm doing wrong? Also no fid is returned for the features ? the shapefiles used have been tested with other products and they do return fid (feature id) Thanks in advance! Goce From woodbri at SWOODBRIDGE.COM Mon Oct 10 21:50:24 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 11 Oct 2005 00:50:24 -0400 Subject: [OT] Canadian Data Question Message-ID: Hi all, I am looking for Canadian County, settlement and village polygons. Does anyone know where I might find shapefiles of these? My searching so far has come up empty. You can contact me off list to avoid list clutter. -Steve From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 10 22:00:34 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 11 Oct 2005 07:00:34 +0200 Subject: Legend with scale dependent classes Message-ID: Hi Tamasz, it would be feasible, but has not been done yet. See also the following bug report: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1009 "this will be of no real use until msDrawLegend() honours the minscale/maxscale settings of the classes". Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Tamas Szekeres 10-10-2005 23:01 >>> Hi list, Would it be feasible to have the drawing of the legend items aware of the minscale and maxscale setting if the class? Tamas From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 10 22:14:07 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 11 Oct 2005 07:14:07 +0200 Subject: getfeature returns features from the first layer only Message-ID: Are you repeating your filter for all layers/typenames? You need to repeat it for every typename you have. If this does not work, can you post your full GetFeature request? AFAIK, Mapserver WFS currently does no output a fid, see also: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1413 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Goce Petrovski 11-10-2005 5:36 >>> Hi, I'm new to Map Server, and as expected I have few problems. When I submit GetFeature request (SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=layer1,layer2&*) in the response I only receive featureMember from the first layer (layer1). If I switch the layers than it returns featureMember only from layer2, but never from both. What I'm doing wrong? Also no fid is returned for the features * the shapefiles used have been tested with other products and they do return fid (feature id) Thanks in advance! Goce From higon_jos at GVA.ES Mon Oct 10 23:52:39 2005 From: higon_jos at GVA.ES (Jos=?ISO-8859-1?Q?=E9_Vte_Hig=F3n?=) Date: Tue, 11 Oct 2005 01:52:39 -0500 Subject: Doubt about apache version Message-ID: Hi list, I want to install mapserver into a production server with 4 processors and 2 Gb RAM. I think I have to compile mapserver into apache 2, with thread safe and fast cgi in order to get the best performance. Am I wrong? What is the best configuration? Thaks in advance. From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 10 23:55:35 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 11 Oct 2005 08:55:35 +0200 Subject: Doubt about apache version Message-ID: It will depend on your use case. If you have a lot of database connections (especially ArcSDE or Oracle Spatial), fast CGI should bring you the best performance. Otherwise FastCGI won't bring you much performance gain I guess. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Jos? Vte Hig?n 11-10-2005 8:52:39 >>> Hi list, I want to install mapserver into a production server with 4 processors and 2 Gb RAM. I think I have to compile mapserver into apache 2, with thread safe and fast cgi in order to get the best performance. Am I wrong? What is the best configuration? Thaks in advance. From goce.petrovski at IINTEGRATESYS.COM Tue Oct 11 00:05:07 2005 From: goce.petrovski at IINTEGRATESYS.COM (Goce Petrovski) Date: Tue, 11 Oct 2005 02:05:07 -0500 Subject: getfeature returns features from the first layer only Message-ID: Try 1: http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. 0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad%2Cmajor_roads&FILTER=% 3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C%2FPropertyName%3E%3Cgml%3ABox% 3E%3Cgml%3Acoordinates%3E433417.138421%2C6491775.240702+433637.178978% 2C6491861.967867%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E% 3C%2FFilter%3E&Submit1=Submit Try 2 (repeated filter) http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. 0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad%2Cmajor_roads&FILTER=% 3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C%2FPropertyName%3E%3Cgml%3ABox% 3E%3Cgml%3Acoordinates%3E433417.138421%2C6491775.240702+433637.178978% 2C6491861.967867%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E% 3C%2FFilter%3E%2C%3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C% 2FPropertyName%3E%3Cgml%3ABox%3E%3Cgml%3Acoordinates%3E433417.138421% 2C6491775.240702+433637.178978%2C6491861.967867%3C%2Fgml%3Acoordinates%3E% 3C%2Fgml%3ABox%3E%3C%2FBBOX%3E%3C%2FFilter%3E&Submit1=Submit still same result... (this if I did the repeat right) From BEN at SYNCERA-ITSOLUTIONS.NL Tue Oct 11 00:07:39 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 11 Oct 2005 09:07:39 +0200 Subject: getfeature returns features from the first layer only Message-ID: Could you send this unencoded? At first sight it seems you are doing everything right and this could be a bug. You could switch to the HTTP POST interface in which I know for sure it works to request multiple layers. Btw which Mapserver version are you using? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Goce Petrovski 11-10-2005 9:05:07 >>> Try 1: http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. 0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad%2Cmajor_roads&FILTER=% 3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C%2FPropertyName%3E%3Cgml%3ABox% 3E%3Cgml%3Acoordinates%3E433417.138421%2C6491775.240702+433637.178978% 2C6491861.967867%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E% 3C%2FFilter%3E&Submit1=Submit Try 2 (repeated filter) http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. 0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad%2Cmajor_roads&FILTER=% 3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C%2FPropertyName%3E%3Cgml%3ABox% 3E%3Cgml%3Acoordinates%3E433417.138421%2C6491775.240702+433637.178978% 2C6491861.967867%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E% 3C%2FFilter%3E%2C%3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C% 2FPropertyName%3E%3Cgml%3ABox%3E%3Cgml%3Acoordinates%3E433417.138421% 2C6491775.240702+433637.178978%2C6491861.967867%3C%2Fgml%3Acoordinates%3E% 3C%2Fgml%3ABox%3E%3C%2FBBOX%3E%3C%2FFilter%3E&Submit1=Submit still same result... (this if I did the repeat right) From goce.petrovski at IINTEGRATESYS.COM Tue Oct 11 00:20:01 2005 From: goce.petrovski at IINTEGRATESYS.COM (Goce Petrovski) Date: Tue, 11 Oct 2005 02:20:01 -0500 Subject: getfeature returns features from the first layer only Message-ID: Thank you Bart, Version: 4.4.1 for Windows. http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. 0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad, major_roads&FILTER=*433417.138421,6491775.240702 433637.178978,6491861. 967867 http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. 0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad, major_roads&FILTER=*433417.138421,6491775.240702 433637.178978,6491861. 967867, *433417.138421,6491775.240702 433637.178978,6491861.967867 On Tue, 11 Oct 2005 09:07:39 +0200, Bart van den Eijnden wrote: >Could you send this unencoded? > >At first sight it seems you are doing everything right and this could be a bug. You could switch to the HTTP POST interface in which I know for sure it works to request multiple layers. > >Btw which Mapserver version are you using? > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Goce Petrovski 11-10-2005 9:05:07 >>> >Try 1: >http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. >0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad%2Cmajor_roads&FILTER=% >3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C%2FPropertyName%3E%3Cgml%3ABox% >3E%3Cgml%3Acoordinates%3E433417.138421%2C6491775.240702+433637.178978% >2C6491861.967867%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E% >3C%2FFilter%3E&Submit1=Submit > >Try 2 (repeated filter) >http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. >0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad%2Cmajor_roads&FILTER=% >3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C%2FPropertyName%3E%3Cgml%3ABox% >3E%3Cgml%3Acoordinates%3E433417.138421%2C6491775.240702+433637.178978% >2C6491861.967867%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E% >3C%2FFilter%3E%2C%3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C% >2FPropertyName%3E%3Cgml%3ABox%3E%3Cgml%3Acoordinates%3E433417.138421% >2C6491775.240702+433637.178978%2C6491861.967867%3C%2Fgml%3Acoordinates%3E% >3C%2Fgml%3ABox%3E%3C%2FBBOX%3E%3C%2FFilter%3E&Submit1=Submit > >still same result... (this if I did the repeat right) From flavio at TYDAC.CH Tue Oct 11 00:22:30 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 11 Oct 2005 09:22:30 +0200 Subject: [OT] Canadian Data Question In-Reply-To: <434B4490.3010304@swoodbridge.com> Message-ID: hi steve did you look at: http://geogratis.cgdi.gc.ca/clf/en?action=atlasvectors Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio 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: Stephen Woodbridge To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 11 Oct 2005 00:50:24 -0400 Subject: [UMN_MAPSERVER-USERS] [OT] Canadian Data Question > Hi all, > > I am looking for Canadian County, settlement and village polygons. > Does > anyone know where I might find shapefiles of these? My searching so > far > has come up empty. > > You can contact me off list to avoid list clutter. > > -Steve From BEN at SYNCERA-ITSOLUTIONS.NL Tue Oct 11 00:29:12 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 11 Oct 2005 09:29:12 +0200 Subject: getfeature returns features from the first layer only Message-ID: Hi, Can you try upgrading to 4.6.1? If you do try, don't forget to add the following metadata to your layers: gml_include_items "all" Also, change your propertyname from * to msGeometry. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Goce Petrovski 11-10-2005 9:20:01 >>> Thank you Bart, Version: 4.4.1 for Windows. http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. 0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad, major_roads&FILTER=*433417.138421,6491775.240702 433637.178978,6491861. 967867 http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. 0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad, major_roads&FILTER=*433417.138421,6491775.240702 433637.178978,6491861. 967867, *433417.138421,6491775.240702 433637.178978,6491861.967867 On Tue, 11 Oct 2005 09:07:39 +0200, Bart van den Eijnden wrote: >Could you send this unencoded? > >At first sight it seems you are doing everything right and this could be a bug. You could switch to the HTTP POST interface in which I know for sure it works to request multiple layers. > >Btw which Mapserver version are you using? > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Goce Petrovski 11-10-2005 9:05:07 >>> >Try 1: >http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. >0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad%2Cmajor_roads&FILTER=% >3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C%2FPropertyName%3E%3Cgml%3ABox% >3E%3Cgml%3Acoordinates%3E433417.138421%2C6491775.240702+433637.178978% >2C6491861.967867%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E% >3C%2FFilter%3E&Submit1=Submit > >Try 2 (repeated filter) >http://localhost/MapServer/cgi-bin/mapserv.exe?map=my.map&VERSION=1.0. >0&SERVICE=wfs&REQUEST=GETFEATURE&TYPENAME=mdgcad%2Cmajor_roads&FILTER=% >3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C%2FPropertyName%3E%3Cgml%3ABox% >3E%3Cgml%3Acoordinates%3E433417.138421%2C6491775.240702+433637.178978% >2C6491861.967867%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E% >3C%2FFilter%3E%2C%3CFilter%3E%3CBBOX%3E%3CPropertyName%3E*%3C% >2FPropertyName%3E%3Cgml%3ABox%3E%3Cgml%3Acoordinates%3E433417.138421% >2C6491775.240702+433637.178978%2C6491861.967867%3C%2Fgml%3Acoordinates%3E% >3C%2Fgml%3ABox%3E%3C%2FBBOX%3E%3C%2FFilter%3E&Submit1=Submit > >still same result... (this if I did the repeat right) From andrea.antonello at GMAIL.COM Tue Oct 11 00:18:40 2005 From: andrea.antonello at GMAIL.COM (Andrea Antonello) Date: Tue, 11 Oct 2005 09:18:40 +0200 Subject: floating point grass rasters and mapserver Message-ID: Hi folks, I trying to visualize grass rasters with mapserver. What I get are nice maps, but those that are floating point and numbers > 255 are visualized in one single color, usually yellow, which probably only means that the image is rendered at low resolution level. I read the documentation about rasters more than once, but I seem to miss a point. I use png24. If I normalize the map (i.e. map*maxvalue/255), it shows up correctly, but I don't want to double the maps and also I want to see changes on the grass location. Any hint is appreciated. Best regards, Andrea -- ____________________________________________________________________________ HydroloGIS - Environmental Open Source Solutions www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ____________________________________________________________________________ From cavallini at FAUNALIA.IT Tue Oct 11 00:33:16 2005 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Tue, 11 Oct 2005 09:33:16 +0200 Subject: floating point grass rasters and mapserver In-Reply-To: <200510110918.40950.andrea.antonello@gmail.com> Message-ID: This is a known limitation for grass rasters. Not much to do, unless someone will write the relevant code for gdal. pc At 09:18, marted? 11 ottobre 2005, Andrea Antonello has probably written: > Hi folks, > I trying to visualize grass rasters with mapserver. > > What I get are nice maps, but those that are floating point and numbers > > 255 are visualized in one single color, usually yellow, which probably only > means that the image is rendered at low resolution level. > > I read the documentation about rasters more than once, but I seem to miss a > point. > > I use png24. > > If I normalize the map (i.e. map*maxvalue/255), it shows up correctly, but > I don't want to double the maps and also I want to see changes on the grass > location. > > Any hint is appreciated. > > Best regards, > Andrea -- Paolo Cavallini cavallini at faunalia.it cavallini at jabber.org www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 From andrea.antonello at GMAIL.COM Tue Oct 11 00:53:07 2005 From: andrea.antonello at GMAIL.COM (Andrea Antonello) Date: Tue, 11 Oct 2005 09:53:07 +0200 Subject: floating point grass rasters and mapserver In-Reply-To: <200510110933.16703.cavallini@faunalia.it> Message-ID: Thanks Paolo, > This is a known limitation for grass rasters. Not much to do, unless > someone will write the relevant code for gdal. :) It's long time now from my last serious C effort. I suppose this would mean to add a part in the grass code dealing with gdal (the old libgrass?). Has anyone a clear idea about what exactly should be done? This would probably give me an idea whether to try or not :) Thanks, Andrea > pc > > At 09:18, marted? 11 ottobre 2005, Andrea Antonello has probably written: > > Hi folks, > > I trying to visualize grass rasters with mapserver. > > > > What I get are nice maps, but those that are floating point and numbers > > > 255 are visualized in one single color, usually yellow, which probably > > only means that the image is rendered at low resolution level. > > > > I read the documentation about rasters more than once, but I seem to miss > > a point. > > > > I use png24. > > > > If I normalize the map (i.e. map*maxvalue/255), it shows up correctly, > > but I don't want to double the maps and also I want to see changes on the > > grass location. > > > > Any hint is appreciated. > > > > Best regards, > > Andrea -- ____________________________________________________________________________ HydroloGIS - Environmental Open Source Solutions www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ____________________________________________________________________________ From jachym.cepicky at CENTRUM.CZ Tue Oct 11 01:23:15 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Tue, 11 Oct 2005 10:23:15 +0200 Subject: floating point grass rasters and mapserver In-Reply-To: <200510110918.40950.andrea.antonello@gmail.com> Message-ID: hi, I had that feeling, that mapserver is able to display *only* maps with <= 255 values.. I thing, there is no other way, than to double the maps :-/ Jachym On Tue, Oct 11, 2005 at 09:18:40AM +0200, Andrea Antonello wrote: > Hi folks, > I trying to visualize grass rasters with mapserver. > > What I get are nice maps, but those that are floating point and numbers > 255 > are visualized in one single color, usually yellow, which probably only means > that the image is rendered at low resolution level. > > I read the documentation about rasters more than once, but I seem to miss a > point. > > I use png24. > > If I normalize the map (i.e. map*maxvalue/255), it shows up correctly, but I > don't want to double the maps and also I want to see changes on the grass > location. > > Any hint is appreciated. > > Best regards, > Andrea > > > > > > -- > ____________________________________________________________________________ > HydroloGIS - Environmental Open Source Solutions > www.hydrologis.com > > Andrea Antonello > Environmental Engineer > mobile: +393288497722 > > "Let it be as much a great honour to take as to give learning, > if you want to be called wise." > Skuggsja' - The King's mirror - 1240 Reykjavik > ____________________________________________________________________________ -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ ----------------------------------------- OFFICE: Department of Geoinformation Technologies LDF MZLU v Brn? Zem?d?lsk? 3 613 00 Brno e-mail: xcepicky at node.mendelu.cz URL: http://mapserver.mendelu.cz Tel.: +420 545 134 514 From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Oct 11 04:30:33 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 11 Oct 2005 13:30:33 +0200 Subject: attributes, WFS? In-Reply-To: Message-ID: Hi list, how can I manage it, that a user can click on an element (e.g. a vektor or polygone) in the map and gets an attribut for it? (e.g. a street and the atrribute how many cars are driving there) Is this something with WFS? Best regards, Leopold From BEN at SYNCERA-ITSOLUTIONS.NL Tue Oct 11 04:33:08 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 11 Oct 2005 13:33:08 +0200 Subject: attributes, WFS? Message-ID: You can do it with WMS GetFeatureInfo (but also with Mapserver CGI). Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 11-10-2005 13:30:33 >>> Hi list, how can I manage it, that a user can click on an element (e.g. a vektor or polygone) in the map and gets an attribut for it? (e.g. a street and the atrribute how many cars are driving there) Is this something with WFS? Best regards, Leopold From karpi.lists at EMAIL.CZ Tue Oct 11 04:27:36 2005 From: karpi.lists at EMAIL.CZ (karpi) Date: Tue, 11 Oct 2005 13:27:36 +0200 Subject: legend object (newbie question) Message-ID: Hello, my "legend" part of map file looks that: # ------------------------------------------------------- # L E G E N D # ------------------------------------------------------- LEGEND STATUS ON KEYSIZE 10 20 IMAGECOLOR 255 255 255 LABEL TYPE BITMAP SIZE MEDIUM COLOR 10 20 30 END END # ---------------------------- but on the web appears only small empty rectangle: http://212.67.91.19/mwc2/mwc.php?template=template1&map=/var/www/localhost/htdocs/czrep/czrep_pracovni.map what is wrong, plz.. ? -- karpi from http://gismaster.liberix.cz From BEN at SYNCERA-ITSOLUTIONS.NL Tue Oct 11 04:49:11 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 11 Oct 2005 13:49:11 +0200 Subject: legend object (newbie question) Message-ID: Do you CLASSes have NAMEs? Only CLASSes with a NAME show up in the legend. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> karpi 11-10-2005 13:27:36 >>> Hello, my "legend" part of map file looks that: # ------------------------------------------------------- # L E G E N D # ------------------------------------------------------- LEGEND STATUS ON KEYSIZE 10 20 IMAGECOLOR 255 255 255 LABEL TYPE BITMAP SIZE MEDIUM COLOR 10 20 30 END END # ---------------------------- but on the web appears only small empty rectangle: http://212.67.91.19/mwc2/mwc.php?template=template1&map=/var/www/localhost/htdocs/czrep/czrep_pracovni.map what is wrong, plz.. ? -- karpi from http://gismaster.liberix.cz From karpi.lists at EMAIL.CZ Tue Oct 11 04:51:34 2005 From: karpi.lists at EMAIL.CZ (karpi) Date: Tue, 11 Oct 2005 13:51:34 +0200 Subject: legend object (newbie question) - solved In-Reply-To: <20051011112736.GA26663@klobouk.fsv.cvut.cz> Message-ID: 11/10/05 13:27, karpi.lists at email.cz napsal(a): > Hello, my "legend" part of map file looks that: > > # ------------------------------------------------------- > # L E G E N D > # ------------------------------------------------------- > > LEGEND > STATUS ON > KEYSIZE 10 20 > IMAGECOLOR 255 255 255 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 10 20 30 > END > END > > # ---------------------------- > > > but on the web appears only small empty rectangle: > http://212.67.91.19/mwc2/mwc.php?template=template1&map=/var/www/localhost/htdocs/czrep/czrep_pracovni.map > > what is wrong, plz.. ? > > thanx a much, that was it: I have to complete NAME into CLASS.. it works now. -- karpi from http://gismaster.liberix.cz From cavallini at FAUNALIA.IT Tue Oct 11 05:41:07 2005 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Tue, 11 Oct 2005 14:41:07 +0200 Subject: grass vectors in Mapserver Message-ID: Hi all. The announce has alreay been sent - sorry for the repetition, but somebody seems to have missed it. Now GRASS vectors can be read through GDAL by Mapserver and other programs. Details @: --------------------------------------------------------------------------------------------------------------- GRASS driver in OGR can read GRASS (version 6.0 and higher) vector maps. Details: http://ogr.maptools.org/drv_grass.html The driver is available in GDAL 1.3.1. The work was supported by Faunalia (www.faunalia.it). Frank, Radim, Paolo --------------------------------------------------------------------------------------------------------------- I will appreciate knowing if somebody is using it. All the best. -- Paolo Cavallini cavallini at faunalia.it cavallini at jabber.org www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 From jlacroix at DMSOLUTIONS.CA Tue Oct 11 06:51:04 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Tue, 11 Oct 2005 09:51:04 -0400 Subject: PHP/MapScript: How to create annotations In-Reply-To: <1128688348-be0898d60ac053b24b113905989f8268@barahona.ch> Message-ID: Hi, You can do this by drawing a point on the map image with an annotation layer. getLayerByName("annotation"); $pixLayer->set("status", MS_ON); $titleLocation = ms_newPointObj(); $titleLocation->setXY($gpoMap->width/2, 20); $img = $gpoMap->draw(); $titleLocation->draw($gpoMap, $pixLayer, $img, "MainTitle", "insert text here"); ?> Layer in mapfile: LAYER NAME "annotation" TYPE ANNOTATION TRANSFORM FALSE STATUS OFF LABELCACHE OFF CLASS NAME "MainTitle" COLOR -1 -1 -1 LABEL TYPE BITMAP SIZE GIANT COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION CC END END END # layer Cheers, Julien On 10/07/2005 08:32 AM, Mapserver Mailing-List wrote: > Hi List, > > I would like to add some legal text,image key, and copyright information > onto a GeoTIFF images. I succeed to add static text by defining it in > the mapfile. But I must also add some dynamic text, such as generated > image's name. > > So how can I create and place annotations on a map with PHP/Mapscript ? > > Thanks in advance for your help. Regards. > > Richard Barahona > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From warmerdam at POBOX.COM Tue Oct 11 07:03:15 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 11 Oct 2005 10:03:15 -0400 Subject: floating point grass rasters and mapserver In-Reply-To: <20051011082315.GB29188@trava> Message-ID: On 10/11/05, Jachym Cepicky wrote: > hi, > > I had that feeling, that mapserver is able to display *only* maps with > <= 255 values.. > > I thing, there is no other way, than to double the maps :-/ Jachym / Andrea, MapServer supports scaling non-8bit data to 8bit on the fly (see the SCALE processing option in the Raster howto) or to use classification on non-8bit images. Currently MapServer does not automatically create classes based on color rules established in grass, so you need to manually recreate the classes in the layer definition in the mapfile. I would suggest reviewing the Raster howto. http://ms.gis.umn.edu/docs/howto/raster_data Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at DNR.STATE.MN.US Tue Oct 11 07:13:34 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 11 Oct 2005 09:13:34 -0500 Subject: Expression in MAP file . . . Message-ID: Sorry Bob, but nope. There is no substr expression function. Steve >>> Bob Basques 10/10/05 2:40 PM >>> All, I have a DBF with data that looks likes this for Highway Centerlines: INTERSTATE 94 INTERSTATE 35 INTERSTATE 35E INTERSTATE 35W INTERSTATE 494 INTERSTATE 694 Is there a way to use a filter on the above data to isolate the number on the end inside of the mapfile. I'm trying to apply some HWY Shields to my map without adding a column (this file is not owned by me, I would prefer not to have to add a column everytime I update it. Thanks bobb From woklist at KYNGCHAOS.COM Tue Oct 11 07:18:06 2005 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Tue, 11 Oct 2005 09:18:06 -0500 Subject: floating point grass rasters and mapserver In-Reply-To: <20051011082315.GB29188@trava> Message-ID: I thought I heard that you could use a grass image group in mapserver. Have 3 bands in the group with 0-255 each for RGB. Never got around to trying it. Since MapServer doesn't doesn't use the GRASS color info, I guess it would only work for image-type data directly, you would have to manually transform something like elevation data into 3 bands. On Oct 11, 2005, at 3:23 AM, Jachym Cepicky wrote: > hi, > > I had that feeling, that mapserver is able to display *only* maps with > <= 255 values.. > > I thing, there is no other way, than to double the maps :-/ > > Jachym > > On Tue, Oct 11, 2005 at 09:18:40AM +0200, Andrea Antonello wrote: > >> Hi folks, >> I trying to visualize grass rasters with mapserver. >> >> What I get are nice maps, but those that are floating point and >> numbers > 255 >> are visualized in one single color, usually yellow, which probably >> only means >> that the image is rendered at low resolution level. >> >> I read the documentation about rasters more than once, but I seem >> to miss a >> point. >> >> I use png24. >> >> If I normalize the map (i.e. map*maxvalue/255), it shows up >> correctly, but I >> don't want to double the maps and also I want to see changes on >> the grass >> location. >> >> Any hint is appreciated. >> >> Best regards, >> Andrea ----- William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy From andrea.antonello at GMAIL.COM Tue Oct 11 07:46:01 2005 From: andrea.antonello at GMAIL.COM (Andrea Antonello) Date: Tue, 11 Oct 2005 16:46:01 +0200 Subject: floating point grass rasters and mapserver In-Reply-To: <931f8ea90510110703p17b91fe7rb15e60e76fd5b075@mail.gmail.com> Message-ID: Frank, > I would suggest reviewing the Raster howto. > > http://ms.gis.umn.edu/docs/howto/raster_data Yes, it's from there I'm coming. I don't if it's a language limit, but I didn't get it exactly. Or worse, I thought I had it, but instead I didn't. > MapServer supports scaling non-8bit data to 8bit on the fly > (see the SCALE processing option in the Raster howto) or > to use classification on non-8bit images. I tried to use it passing the min and the max, but my result is the yellow map. LAYER NAME bacino.rescaled.100 TYPE RASTER STATUS DEFAULT DATA "/centralgisenvironment/grassdb/liguria/def50m//cellhd/bacino.rescaled.100" PROCESSING "SCALE=1,229172" END where 1 and 229172 are min and max. Then I tried with PROCESSING "SCALE=AUTO" expecting the same to happen, but in that case I get a black layer. What is going on? Thanks, Andrea > > Best regards, > -- > ---------------------------------------+----------------------------------- >--- I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com light and sound - activate the windows | > http://pobox.com/~warmerdam and watch the world go round - Rush | > Geospatial Programmer for Rent -- ____________________________________________________________________________ HydroloGIS - Environmental Open Source Solutions www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ____________________________________________________________________________ From Daniel.Avramov at EC.GC.CA Tue Oct 11 08:55:12 2005 From: Daniel.Avramov at EC.GC.CA (Avramov,Daniel [Ontario]) Date: Tue, 11 Oct 2005 11:55:12 -0400 Subject: PROJ Problem Message-ID: How do we set up an Environment Variable in IIS 6 for the PROJ_LIB? The reason we are asking is that we are encountering problems with the projection library not being found. It is fixed when the the PROJ folder is sitting on the C: drive (Not a desired solution) OR It works when we have the CONFIG PROJ_LIB set in the MapFile (We do not want to have to do this all this time). We are using CWC2 which writes out a default.map file without our specific CONFIG PROJ_LIB statement/path. How would we write to the map file our CONFIG statement using php/php mapscript? Thanks in advance. Daniel and Debbie. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jeroen.Ticheler at FAO.ORG Tue Oct 11 10:20:58 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Tue, 11 Oct 2005 19:20:58 +0200 Subject: time series problem Message-ID: Hi, I have a problem with time series for WMS. I have used the following WMS attributes in my map file and I get the default image the first WMS map request. The moment I start requesting maps with the time variable set, I get an exception indicating that the time format used is not correct. The data is GeoTIFF I have an index shapefile with an imgdate column containing the dates in the same format Anyone an idea, I can't find an example that has a whole range of images with a specific time set for each image. Map file extract: At the map level (although I don't think this is supported/needed for GeoTIFF data!?) ____________________________ "wms_timeformat" "YYYY-MM-DD" ____________________________ At the layer level ____________________________ "wms_style_default_title" "default" "wms_format" "image/png" "wms_timedefault" "2005-09-11" "wms_timeextent" "2005-08-21,2005-09-01,2005-09-11" # also tried with spaces after each comma "wms_timeitem" "imgdate" END DUMP TRUE TILEINDEX 'ndvi_idx' TILEITEM "location" EXTENT -180.0 -90.0 180.0 90.0 PROJECTION "init=epsg:4326" END ____________________________ Thanks in advance, Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork 12.34327?N 12.34327?E From warmerdam at POBOX.COM Tue Oct 11 10:53:25 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 11 Oct 2005 13:53:25 -0400 Subject: Problems with ArcInfo Binary grid... In-Reply-To: Message-ID: On 10/10/05, Carlo Calvino wrote: > On Wed, 5 Oct 2005 10:53:25 -0400, Frank Warmerdam > wrote: > > > >Yes, .clr files *should* work and mapserver should color the raster > >according to the .clr file if is present. You can check quickly whether > >the colortable is found by using gdalinfo on the binary grid. > > Thank you very much for your help. You are right, mapserver *seems* to > support .clr files if present. I made such a file with ArcView8, and > tested it both with gdalinfo and postgis. But when I view it as a > mapserver map, only red colors are visible (but there are other colors!). > Do you have any idea ? Carlo, What does the "gdalinfo" report of the coverage look like? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bartvde at XS4ALL.NL Tue Oct 11 11:42:29 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 11 Oct 2005 20:42:29 +0200 Subject: PROJ Problem In-Reply-To: <9B09D75DF5B3494BA06E6FE478CE9CC14F4BF1@mgtserver3.ontario.int.ec.gc.ca> Message-ID: For IIS it *should* work with a system environment variable called PROJ_LIB. Best regards, Bart On Tue, 11 Oct 2005 17:55:12 +0200, Avramov,Daniel [Ontario] wrote: > How do we set up an Environment Variable in IIS 6 for the PROJ_LIB? > The reason we are asking is that we are encountering problems with the > projection library not being found. > It is fixed when the the PROJ folder is sitting on the C: drive (Not a > desired solution) > OR > It works when we have the CONFIG PROJ_LIB set in the MapFile (We do not > want to have to do this all this time). > We are using CWC2 which writes out a default.map file without our > specific CONFIG PROJ_LIB statement/path. > How would we write to the map file our CONFIG statement using php/php > mapscript? > Thanks in advance. > Daniel and Debbie. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From eric at GOMOOS.ORG Tue Oct 11 11:54:00 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 11 Oct 2005 14:54:00 -0400 Subject: Using WMS time dimension with rasters? In-Reply-To: Message-ID: Alternatively, you can use Mapserver's variable substituion. See: http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#variablesubstitution If you store your rasters with a time stamp as part of the name e.g. modis_YYYYMMDDTHHMM.jpg, you can use the following in your map file: DATA '/modis_files/%time%.jpg' Your users would then need to add the &time=YYYYMMDDTHHMM parameter to their GetMap requests. Eric On Mon, 2005-10-10 at 17:53, Paul Ramsey wrote: > Jeff, > > Support for the time dimension in rasters exists, you just have to > take a slight detour to get there. You want to use a "tile index" in > your raster layer. This is a vector file that contains one record > for each raster file. The shape should be the outline of the > raster. It should have at least one attribute, which contains the > file path to the raster file. For time based data, it will contain a > second attribute, the date associated with the raster file. > > The vector "file" can be any of the Mapserver vector formats, so it > can be shape file, or a postgis table, or an oracle table, etc. You > can use the "tile4ms" (either part of mapserver or gdal, I am not > sure) command to create a tile index from a directory of data, though > it won't fill out a time stamp attribute for you. > > So, when mapserver is told to draw an image, it will (a) first look > in the tile index to see what images fit the spatial and time extents > being requested then (b) open up those images and draw them into the > output image then (c) return the result. > > Yours, > Paul > > Refractions Research > www.refractions.net > > > > On 10-Oct-05, at 11:22 AM, Jeff Schmaltz wrote: > > > Hello, > > > > I am exploring the possibility of using MapServer to serve up MODIS > > satellite imagery as a WMS. > > > > I have managed to create a working mapfile containing a single > > raster image > > for a single day. I need to to serve up a 2nd image which covers > > the same > > geographic extents but is from a different date. Ultimately, I > > want to > > serve up years of daily images, hence my desire to use the time > > dimension. > > > > Searching the MapServer documentation - in the "WMS Time Support > > HOWTO", I > > found the statement "wms_ timeitem: (Mandatory) this is the name of > > the > > field in the DB that contains the time values". I am surmising > > that "DB" > > refers to database and that PostGIS is the open source database one > > would > > use with MapServer. From the PostGIS Manual FAQ "You can store > > point, line, > > polygon, multipoint, multiline, multipolygon, and > > geometrycollections." > > > > Therefore, I have come to the conclusion that it is NOT currently > > possible > > to use the WMS time dimension for raster data. > > > > 1) If I am wrong, can someone please point in the right direction > > to use the > > time dimension in a WMS for rasters? > > > > 2) If I am right, can someone please tell me if support for time > > dimension > > for WMS rasters is coming anytime soon in MapServer? > > > > Thank you, > > > > Jeff > > > > Jeffrey E. Schmaltz (SSAI) > > MODIS Rapid Response Team > > NASA Goddard Space Flight Center > > Building 33 Room G108 Code 614.5 > > Greenbelt, MD 20771 - USA > > Voice: (+1) 301 614 5135 > > Fax: (+1) 301 614 6015 > > E-mail: Jeff.Schmaltz at gsfc.nasa.gov > > URL: http://rapidfire.sci.gsfc.nasa.gov > > From tmelhuish at WEBINSIGHTSINC.COM Tue Oct 11 12:14:00 2005 From: tmelhuish at WEBINSIGHTSINC.COM (Tom Melhuish) Date: Tue, 11 Oct 2005 14:14:00 -0500 Subject: Problem with ShapeObj->{classindex} Message-ID: I'm creating a feature and need to change the colors for each one that is generated. I'm able to create the shapeObjs and associated text, but the classObj is always set to index=0. If I query the $layer->{numclasses} I get 2. for (0..1) { my $point = new mapscript::pointObj() or &AppletMsg('Unable to create point',"error"); my $line = new mapscript::lineObj() or &AppletMsg('Unable to create line',"error"); my $shape = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); $point->{x} = $QueryResultsmatrix[$_+100]->[1] or &AppletMsg('Unable to add x value to point',"error"); $point->{y} = $QueryResultsmatrix[$_+100]->[2] or &AppletMsg('Unable to add y value to point',"error"); $retval=$line->add($point); $retval=$shape->add($line); $shape->{classindex} = $_; #### Always set to 0 no matter what I enter. $shape->{text} =Test.$_; $retval=$layer->addFeature($shape); } Layer Information ------------------- LAYER NAME "GpsfeatPt" STATUS OFF TYPE POINT TEMPLATE "ttt.html" CLASS #COLOR 128 255 164 SYMBOL "cross" COLOR 254 0 0 SIZE 7 LABEL SIZE small POSITION UC COLOR 254 0 0 END END CLASS #COLOR 128 255 164 SYMBOL "cross" COLOR 254 0 200 SIZE 7 LABEL SIZE small POSITION UC COLOR 254 0 200 END END END From Daniel.Avramov at EC.GC.CA Tue Oct 11 13:04:18 2005 From: Daniel.Avramov at EC.GC.CA (Avramov,Daniel [Ontario]) Date: Tue, 11 Oct 2005 16:04:18 -0400 Subject: OGR/OVF Issues Message-ID: We have been experiencing some inconsistent behaviours using OGR/OVF to connect to MS SQL Server 2000 We are using MS Windows 2003 with IIS 6 Ogrinfo works with the ovf file without any issues, however, using the following url http://142.97.226.38/wms/air_test_wms.asp?service=wms&version=1.1.1&requ est=getmap&layers=testair Results in only sometimes seeing the proper results and mostly results in the following error: "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers." Any test suggestions would be a great help. For further info see the attached map file and the following ovf file ODBC:user/password at cesi_air_wms_dsn,air1_map_2005 select air1_map_2005.latitude,air1_map_2005.longitude, air1_map_2005.ozone2003_ppb,air1_map_2005.province_en,air1_map_2005.loca tion_type_en from air1_map_2005 wkbPoint WGS84 -------------- next part -------------- A non-text attachment was scrubbed... Name: air_map_2005_en.map Type: application/octet-stream Size: 8980 bytes Desc: air_map_2005_en.map URL: From warmerdam at POBOX.COM Tue Oct 11 13:19:28 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 11 Oct 2005 16:19:28 -0400 Subject: OGR/OVF Issues In-Reply-To: <9B09D75DF5B3494BA06E6FE478CE9CC1033EE3DD@mgtserver3.ontario.int.ec.gc.ca> Message-ID: On 10/11/05, Avramov,Daniel [Ontario] wrote: > > We have been experiencing some inconsistent behaviours using OGR/OVF to > connect to MS SQL Server 2000 Daniel, You didn't mention anything about the version of GDAL/OGR you are using. There was a problem on win32 platforms with the VRT (OVF) driver crashing on close sometimes. I am confident this was fixed in GDAL 1.3.0, and likely also in GDAL 1.2.6. If you are using an older version consider upgrading. If that isn't the issue, then I am not sure why you would be seeing intermittent failures. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Daniel.Avramov at EC.GC.CA Tue Oct 11 13:27:26 2005 From: Daniel.Avramov at EC.GC.CA (Avramov,Daniel [Ontario]) Date: Tue, 11 Oct 2005 16:27:26 -0400 Subject: OGR/OVF Issues Message-ID: Good to know. We have just discovered that things are working fine with MapServer 4.4. Furthermore, with 4.6.1 we did get a positive result with cgi mode (i.e. mode=map) still using the ovf file. Now, does MapServer need to be compiled with GDAL 1.3.0 for Windows? We have gdal12.dll (dated: 2005_07_19) in the cgi-bin directory. Will replacing this with gdal13.dll fix the issue or do we need a new compilation of MapServer for Windows and is it available? Peace, Daniel. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: October 11, 2005 4:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR/OVF Issues On 10/11/05, Avramov,Daniel [Ontario] wrote: > > We have been experiencing some inconsistent behaviours using OGR/OVF > to connect to MS SQL Server 2000 Daniel, You didn't mention anything about the version of GDAL/OGR you are using. There was a problem on win32 platforms with the VRT (OVF) driver crashing on close sometimes. I am confident this was fixed in GDAL 1.3.0, and likely also in GDAL 1.2.6. If you are using an older version consider upgrading. If that isn't the issue, then I am not sure why you would be seeing intermittent failures. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Jeroen.Ticheler at FAO.ORG Wed Oct 12 00:54:26 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Wed, 12 Oct 2005 09:54:26 +0200 Subject: time series problem 2 In-Reply-To: Message-ID: Further to my previous message, the exception I get is the following one: msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 given is invalid or outside the time extent defined (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05-01,2005- 05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01,2005-07-11, 2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005-09-11,2005-0 9-21), and default time set is invalid (2005-09-21) And the URL's I use are: For Capabilities: http://193.43.36.137/cgi-bin/spotveg? version=1.1.1&service=WMS&request=GetCapabilities For a working map without specifying the time: http://193.43.36.137/cgi-bin/spotveg? version=1.1.1&service=WMS&request=GetMap&srs=EPSG: 4326&bbox=-180,-90,180,90&format=image/ png&layers=spotndvi&transparent=true&width=400&height=200 For a request with a time, the exception is returned: http://193.43.36.137/cgi-bin/spotveg? version=1.1.1&service=WMS&request=GetMap&srs=EPSG: 4326&bbox=-180,-90,180,90&format=image/ png&layers=spotndvi&transparent=true&width=400&height=200&time=2005-09-2 1 These URL's can be reached from outside, so you can try this yourself. Thanks in advance for any help to a solution, Jeroen On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: > Hi, > I have a problem with time series for WMS. I have used the > following WMS attributes in my map file and I get the default image > the first WMS map request. The moment I start requesting maps with > the time variable set, I get an exception indicating that the time > format used is not correct. > > The data is GeoTIFF > I have an index shapefile with an imgdate column containing the > dates in the same format > > Anyone an idea, I can't find an example that has a whole range of > images with a specific time set for each image. > > Map file extract: > > At the map level (although I don't think this is supported/needed > for GeoTIFF data!?) > ____________________________ > "wms_timeformat" "YYYY-MM-DD" > ____________________________ > > > At the layer level > ____________________________ > > "wms_style_default_title" "default" > "wms_format" "image/png" > "wms_timedefault" "2005-09-11" > "wms_timeextent" > "2005-08-21,2005-09-01,2005-09-11" # also tried with > spaces after each comma > "wms_timeitem" "imgdate" > > END > DUMP TRUE > TILEINDEX 'ndvi_idx' > TILEITEM "location" > EXTENT -180.0 -90.0 180.0 90.0 > PROJECTION "init=epsg:4326" END > ____________________________ > > > Thanks in advance, > Jeroen > _______________________ > Jeroen Ticheler > FAO-UN > Tel: +39 06 57056041 > http://www.fao.org/geonetwork > 12.34327?N 12.34327?E > > > > From carlo.calvino at EMAIL.IT Wed Oct 12 01:08:36 2005 From: carlo.calvino at EMAIL.IT (Carlo Calvino) Date: Wed, 12 Oct 2005 03:08:36 -0500 Subject: Problems with ArcInfo Binary grid... Message-ID: On Tue, 11 Oct 2005 13:53:25 -0400, Frank Warmerdam wrote: >Carlo, > >What does the "gdalinfo" report of the coverage look like? > >Best regards, I run "gdalinfo w001001.adf" and this was the result: Driver: AIG/Arc/Info Binary Grid Size is 136, 191 Coordinate System is `' Origin = (2769559.195310,4504209.334252) Pixel Size = (59.99393750,-59.99393750) Corner Coordinates: Upper Left ( 2769559.195, 4504209.334) Lower Left ( 2769559.195, 4492750.492) Upper Right ( 2777718.371, 4504209.334) Lower Right ( 2777718.371, 4492750.492) Center ( 2773638.783, 4498479.913) Band 1 Block=256x4 Type=Int16, ColorInterp=Palette Min=-70.000 Max=3435.000 NoData Value=-32768 Color Table (RGB with 3436 entries) 0: 153,25,0,255 1: 153,25,0,255 2: 153,25,0,255 3: 153,25,0,255 4: 153,25,0,255 5: 153,25,0,255 6: 153,25,0,255 7: 153,25,0,255 8: 153,25,0,255 9: 153,25,0,255 10: 153,25,0,255 11: 153,25,0,255 12: 156,29,0,255 13: 156,29,0,255 ... 3432: 5,5,153,255 3433: 5,5,153,255 3434: 5,5,153,255 3435: 5,5,153,255 Thank you very much for your help. From sweykam at TELELINE.ES Wed Oct 12 03:21:47 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Wed, 12 Oct 2005 12:21:47 +0200 Subject: attributes, WFS? Message-ID: Leopold, Unless the user actually queries a wms or wfs layer, you may use MapScript and QueryByPoint (). $pt is your pountObj , the user click-point converted to map coordinates if (@$currentLayer->queryByPoint($pt, MS_SINGLE ,0)==MS_SUCCESS) { $result = $currentLayer->getResult(0); $currentLayer->open(); # get the names of the fields - only needed once per layer $items = $currentLayer->getitems(); # array with column names if (!empty($items)) { foreach($items as $j) { echo $j; # column names } ## get the shapeobj - each result has a shape-, tile- and classindex $data_shp=$currentLayer->getshape($result->tileindex,$result->shapeindex); ## get the values from the shapeobj $data_val = $data_shp->values; # array values } $currentLayer->close(); } best regards, Stefanie From szekeres.tamas at FREEMAIL.HU Wed Oct 12 03:39:36 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Wed, 12 Oct 2005 05:39:36 -0500 Subject: Need support to specify geom column and select list with OGR, ODBC Message-ID: Hi list, It would be greatly usable to support for specifying the geometry column when using OGR ODBC driver. The current implementation retrieves the geometry_columns table from the database in order to determine the geometry column of the table which causes an extra round trip to the server. For a suitable solution the geometry column name could be specified in the connection string as the table name. It would be also helpful to establish the ability to specify the list of the columns to select, what could restrict the amount of the data as the user's will. Theese features could provide similar opportunities as mapserver postgis driver has. Tamas Szekeres From Jeroen.Ticheler at FAO.ORG Wed Oct 12 03:51:27 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Wed, 12 Oct 2005 12:51:27 +0200 Subject: time series problem 3 (Bug!?) Message-ID: Hi, sorry for continuing this story, but I really want to solve this and hope my additional info helps to sort out the problems I face. I am using a shapefile with the imgdate column added to it. I use exactly the same index to work with a WCS on the same data, that one works perfectly fine. I have browsed through the mapServer sourcecode to see if I could discover something/ understand the problem better. I'm not familiar with C coding, so forgive my ignorance :-) What I could understand is that my request fails when the time string submitted in the request is compared to the timeextent given in the capabilities document. The exact section of the code is in between line 545 and line 569, apparently the msValidateTimeValue() procedure fails to find the requested date in the extent. I do not get an error when I change my extent to a range like "2005-09-11,2005-09-21/2005-09-21" or "2005-09-11,2005-09-11/2005-09-21", but it will only render the very last image, even when an earlier one is requested. So I guess I face a bug!? Thanks again, Jeroen Begin forwarded message: > From: Jeroen Ticheler > Date: 12 October 2005 09:54:26 GMT+02:00 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] time series problem 2 > Reply-To: Jeroen Ticheler > > > Further to my previous message, the exception I get is the > following one: > > > > msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 given is > invalid or outside the time extent defined > (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05-01,200 > 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01,2005-07 > -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005-09-11, > 2005-09-21), and default time set is invalid (2005-09-21) > > > > And the URL's I use are: > > For Capabilities: > > http://193.43.36.137/cgi-bin/spotveg? > version=1.1.1&service=WMS&request=GetCapabilities > > For a working map without specifying the time: > > http://193.43.36.137/cgi-bin/spotveg? > version=1.1.1&service=WMS&request=GetMap&srs=EPSG: > 4326&bbox=-180,-90,180,90&format=image/ > png&layers=spotndvi&transparent=true&width=400&height=200 > > For a request with a time, the exception is returned: > > http://193.43.36.137/cgi-bin/spotveg? > version=1.1.1&service=WMS&request=GetMap&srs=EPSG: > 4326&bbox=-180,-90,180,90&format=image/ > png&layers=spotndvi&transparent=true&width=400&height=200&time=2005-09 > -21 > > These URL's can be reached from outside, so you can try this yourself. > Thanks in advance for any help to a solution, > Jeroen > > On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: > > > >> Hi, >> I have a problem with time series for WMS. I have used the >> following WMS attributes in my map file and I get the default >> image the first WMS map request. The moment I start requesting >> maps with the time variable set, I get an exception indicating >> that the time format used is not correct. >> >> The data is GeoTIFF >> I have an index shapefile with an imgdate column containing the >> dates in the same format >> >> Anyone an idea, I can't find an example that has a whole range of >> images with a specific time set for each image. >> >> Map file extract: >> >> At the map level (although I don't think this is supported/needed >> for GeoTIFF data!?) >> ____________________________ >> "wms_timeformat" "YYYY-MM-DD" >> ____________________________ >> >> >> At the layer level >> ____________________________ >> >> "wms_style_default_title" "default" >> "wms_format" "image/png" >> "wms_timedefault" "2005-09-11" >> "wms_timeextent" >> "2005-08-21,2005-09-01,2005-09-11" # also tried with >> spaces after each comma >> "wms_timeitem" "imgdate" >> >> END >> DUMP TRUE >> TILEINDEX 'ndvi_idx' >> TILEITEM "location" >> EXTENT -180.0 -90.0 180.0 90.0 >> PROJECTION "init=epsg:4326" END >> ____________________________ >> >> >> Thanks in advance, >> Jeroen >> _______________________ >> Jeroen Ticheler >> FAO-UN >> Tel: +39 06 57056041 >> http://www.fao.org/geonetwork >> 12.34327?N 12.34327?E >> >> >> >> > From carloncho24pe at YAHOO.ES Wed Oct 12 04:57:24 2005 From: carloncho24pe at YAHOO.ES (Carlos Ruiz) Date: Wed, 12 Oct 2005 13:57:24 +0200 Subject: MS4W applications Message-ID: Hello, I am Carlos Ruiz Luna, studying at the School of Engineers of the Canton of Vaud (EIVD) in Switzerland. I would like to create a website with isochronous charts by using the data bases of Tel?Atlas (Shape format). I installed the OpenSource software MS4W v1.2.2 but I don't know wich application I must choose: 1) Is Chameleon only a set of scripts that i have to added to MapLap application? or this is an application who allows me to create layers like Maplab? 2) It seems that Gmap is an application similar to an application obtained with Maplab (GmapFactory) but I don't know how to use my own data base and layers. Could you tell me how to create the isochron function by my own in PHP Mapscript? Thanks in advance for your answers, and best regards. Carlos Ruiz Luna ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, m?s seguridad http://correo.yahoo.es From yvan.calcagni at VOILA.FR Wed Oct 12 05:37:56 2005 From: yvan.calcagni at VOILA.FR (SUBSCRIBE MAPSERVER-USERS Y. Calcagni) Date: Wed, 12 Oct 2005 07:37:56 -0500 Subject: layer->draw() method Message-ID: Hi everybody! Can someone explain me the goal of the phpmapscript layer->draw() method. I was trying to make code to display raster legend icon and thought this method should be useful. Indeed, I was thinking it should produce a single layer image but I saw in the doc that it returns an integer and requires an ImageObj as parameter. So, if anyone have sample handling this method... Thanks in advance. Yvan CALCAGNI From BEN at SYNCERA-ITSOLUTIONS.NL Wed Oct 12 05:44:18 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 12 Oct 2005 14:44:18 +0200 Subject: layer->draw() method Message-ID: Hi, Chameleon (http://www.maptools.org/chameleon) has a file called drawmap.php which will give you some examples. In short an example is: $oImage = $oMap->prepareimage(); $oLayer->draw($oImage); Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "SUBSCRIBE MAPSERVER-USERS Y. Calcagni" 10/12/05 2:37 PM >>> Hi everybody! Can someone explain me the goal of the phpmapscript layer->draw() method. I was trying to make code to display raster legend icon and thought this method should be useful. Indeed, I was thinking it should produce a single layer image but I saw in the doc that it returns an integer and requires an ImageObj as parameter. So, if anyone have sample handling this method... Thanks in advance. Yvan CALCAGNI From yvan.calcagni at VOILA.FR Wed Oct 12 05:55:52 2005 From: yvan.calcagni at VOILA.FR (SUBSCRIBE MAPSERVER-USERS Y. Calcagni) Date: Wed, 12 Oct 2005 07:55:52 -0500 Subject: layer->draw() method Message-ID: Thanks Bart for your rapid reply, it will be very useful. Yvan CALCAGNI From raxpl at ANGLESEY.GOV.UK Wed Oct 12 06:45:27 2005 From: raxpl at ANGLESEY.GOV.UK (Richard Alexander) Date: Wed, 12 Oct 2005 08:45:27 -0500 Subject: low quality image output Message-ID: hi list, I've seen a few other entries with a similar problem relating to jpeg outputs...mine relates to jpeg, tif, png, bmp: when accessing a 800kbyte aerial image (via world file & mapscript) the output image gets reconstructed to a very "blocky" output with few colours - tried playing around with imagemodes (e.g. MS_IMAGEMODE_RGB) but no improvement - I've noticed a difference in rendering using a tif source, but it's not better, just slightly different. thanks for any assistance. (just as a check i've opened the same image using PIL on it's own and it's up there with the best of them !) cheers Richard UK From jlacroix at DMSOLUTIONS.CA Wed Oct 12 06:48:05 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Wed, 12 Oct 2005 09:48:05 -0400 Subject: MS4W applications In-Reply-To: <20051012115724.91182.qmail@web26503.mail.ukl.yahoo.com> Message-ID: Hello, I will try to help you to sort this out. First there's MapServer. This the engine under all those applications. MapServer is a server application that takes your data and create a map image. To be able to do this, MapServer has a configuration file called mapfile. To understand the mapfile, you can take the MapServer tutorial: http://hypnos.cbs.umn.edu/tutorial/ To build more complex applications, MapServer has interface called MapScript. MapScript is simply the MapServer functionality integrated in the programming language of your choice. See the doc for more details: http://mapserver.gis.umn.edu/doc.html After that, MapLab, Chameleon and GMap are three application using MapServer and PHP/MapScript. GMap is an example application using PHP/MapScript. To understand how it works, you will have to look in the code (gmap75.php) and in the mapfile (gmap75.map). MapLab is a software to easily build a MapFile for MapServer. Optionally you can build an application like GMap using GMapFactory, but this is limited. See the website for more details: http://www.maptools.org/maplab/index.phtml Chameleon is a software to easily build advanced applications using MapServer and PHP/MapScript. It's a templating system so the use is simple. You provide it a mapfile and a template and it will give you a fully functional application. The template is a simple HTML page with special tags in it. This not really a tool to create a mapfile, but you can play with dynamic layers, creating and manipulating them. See the website for more details: http://chameleon.maptools.org/index.phtml Thanks Julien On 10/12/2005 07:57 AM, Carlos Ruiz wrote: > Hello, I am Carlos Ruiz Luna, studying at the School > of Engineers of the Canton of Vaud (EIVD) in > Switzerland. > I would like to create a website with isochronous > charts by using the data bases of Tel?Atlas (Shape > format). I installed the OpenSource software MS4W > v1.2.2 but I don't know wich application I must > choose: > 1) Is Chameleon only a set of scripts that i have to > added to MapLap application? or this is an application > who allows me to create layers like Maplab? > 2) It seems that Gmap is an application similar to an > application obtained with Maplab (GmapFactory) but I > don't know how to use my own data base and layers. > > Could you tell me how to create the isochron function > by my own in PHP Mapscript? > > Thanks in advance for your answers, and best regards. > Carlos Ruiz Luna > > > > ______________________________________________ > Renovamos el Correo Yahoo! > Nuevos servicios, m?s seguridad > http://correo.yahoo.es > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From matt0177 at GMAIL.COM Wed Oct 12 06:49:44 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Wed, 12 Oct 2005 06:49:44 -0700 Subject: low quality image output In-Reply-To: Message-ID: I get my best output using imagetype png24, you stated you tried png, but you may what to give that a try. Good luck, Matt On 10/12/05, Richard Alexander wrote: > > hi list, > I've seen a few other entries with a similar problem relating to jpeg > outputs...mine relates to jpeg, tif, png, bmp: when accessing a 800kbyte > aerial image (via world file & mapscript) the output image gets > reconstructed to a very "blocky" output with few colours - tried playing > around with imagemodes (e.g. MS_IMAGEMODE_RGB) but no improvement - I've > noticed a difference in rendering using a tif source, but it's not better, > just slightly different. thanks for any assistance. > (just as a check i've opened the same image using PIL on it's own and it's > up there with the best of them !) > cheers > Richard > UK > -------------- next part -------------- An HTML attachment was scrubbed... URL: From raxpl at ANGLESEY.GOV.UK Wed Oct 12 07:03:48 2005 From: raxpl at ANGLESEY.GOV.UK (Richard Alexander) Date: Wed, 12 Oct 2005 09:03:48 -0500 Subject: low quality image output Message-ID: thanks Matt, png24 makes no difference at my end... I have started on a work around - as i know the image is 1km square i can use the current scale to do an image chop on it and display this in the Tk placeholder (but this is painfull because you have to apply the same to neighbouring tiles which overlap the current view !...been here before I think, with an early version of arcview) Rich From giorgio.plazzotta at SARASRICERCHE.IT Wed Oct 12 07:17:00 2005 From: giorgio.plazzotta at SARASRICERCHE.IT (Giorgio Plazzotta) Date: Wed, 12 Oct 2005 16:17:00 +0200 Subject: Proj4 problem Message-ID: MAPSERVER-USERS Digest - 2 Oct 2005 to 3 Oct 2005 (#2005-285)hi all I have a problem probably with proj4. i am using 2 different mapserver installations, one works on a linux server and another one on a windows server (ms4w). i think that the proj4 version of the linux installation is 4.4.7 while on the windows version there is the last available for this system that is 4.4.6. The problem is that the same data and mapfile have a different behaviour when i have to display graticule grids. More specifically i just have set the projection of the environment in the top part of the mapfile. All the datasets are already in that same reference systems so they don't need any projection session. I inserted 3 layers representing 3 different geographic systems (italian, UTM and Geographical) as graticules. Of course in the graticules i expressed the Projection clause relative to each reference system. In the linux environment everything works fine but in the windows don't. Apart that i get a double label along the graticule lines, the utm system is shown with wrong values and the graticule is not perpendicular but rotated with an agle of maybe 40 degrees. The fact that on one system everything works fine makes me think that there is something wrong in the 4.4.6 installation for windows and maybe it involves the italian gauss-boaga reference system epsg:25691 that i use as a base for my project, any help? Giorgio -------------- next part -------------- An HTML attachment was scrubbed... URL: From johan.e.hallgren at WMDATA.SE Wed Oct 12 07:29:50 2005 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Wed, 12 Oct 2005 09:29:50 -0500 Subject: Query attribute Message-ID: Hello I have tried to find a way to query attribute in mapserver/mapscript. I have found the function queryByAttributes(). I miss some functions here. Is there ways to do regular ?SELECT fld FROM tbl WHERE id = xy? with MapServer? Similar question, is queries with LIKE and IN is supported? I have found out that it's possible to use regular expression but only on shapefiles. What is possible if data is stored in a database? Is there some documentation that I have missed, where can it be found? Any assistance is welcome. Regards Johan From j.briere at SASKTEL.NET Wed Oct 12 07:29:02 2005 From: j.briere at SASKTEL.NET (J Briere) Date: Wed, 12 Oct 2005 08:29:02 -0600 Subject: No Map?? Message-ID: Hello, here is our problem. We are using the Windows compiled version of the software. Using the examples in the software we attempted to load our own map. Everything appeared to load fine but there is no map in the display just the empty box. All the tools were present and no error messages were given. Any help would be much appreciated. Thanks in advance From ed at TOPOZONE.COM Wed Oct 12 07:45:19 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 12 Oct 2005 10:45:19 -0400 Subject: No Map?? Message-ID: This can easily happen if your requested map extents do not match the geographic extents of your data. Could you post your MAP file? And please let us know if you're getting a BLANK map (a valid image with nothing in it) or a MISSING map (no image at all, with a broken image link icon instead). That tells you the difference between a setup that's not making/retrieving maps correctly, and one that's just drawing valid maps with nothing on them. - Ed P.S. And please always reply to the whole list - thanks. Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of J Briere Sent: Wednesday, October 12, 2005 10:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] No Map?? Hello, here is our problem. We are using the Windows compiled version of the software. Using the examples in the software we attempted to load our own map. Everything appeared to load fine but there is no map in the display just the empty box. All the tools were present and no error messages were given. Any help would be much appreciated. Thanks in advance From jukka.sirvio at ARBONAUT.COM Wed Oct 12 07:37:27 2005 From: jukka.sirvio at ARBONAUT.COM (Jukka Sirvi=?ISO-8859-1?Q?=F6?=) Date: Wed, 12 Oct 2005 09:37:27 -0500 Subject: MapServer and Oracle Spatial Message-ID: Hello! I have exatly same situation, but I'm receiving the same errormessage even after setting the apache enviroment variables. MapServer is running on Win XP sp1 with Apache 2.0.54 (tested also on win NT 4.0 with apache 1.3.33) There is read / write access to oracle_home for anyone -user. From David.Fawcett at STATE.MN.US Wed Oct 12 07:48:51 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 12 Oct 2005 09:48:51 -0500 Subject: No Map?? Message-ID: There are several possibilities, but a common problem in this situation is that someone will add their data to a demo application, but not modify the EXTENT in the map file to reflect the area in which their data is located. In other words, if the EXTENT of original application is defined as a box around the continental US and you add a valid data layer of Italian wine regions, you will not see your new layer because it falls outside of the extent. You can get the extent of your data by downloading OGR from http://ogr.maptools.org/ and running ogrinfo on the data file. A second common issue is that if you are trying to add your data to an existing map file, your data may be in another projection. MapServer can handle on-the-fly reprojection, but that requires you to add a few projection blocks to your mapfile. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of J Briere Sent: Wednesday, October 12, 2005 9:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] No Map?? Hello, here is our problem. We are using the Windows compiled version of the software. Using the examples in the software we attempted to load our own map. Everything appeared to load fine but there is no map in the display just the empty box. All the tools were present and no error messages were given. Any help would be much appreciated. Thanks in advance From thomas.bonfort at GMAIL.COM Wed Oct 12 08:06:50 2005 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 12 Oct 2005 17:06:50 +0200 Subject: low quality image output In-Reply-To: Message-ID: hi. is your aerial photo a tif source? as far as I remember, mapserver uses closest neighbour interpolation for downsizing the original image, which results in poor quality. you should use the gdal utility gdaladdo to precompute downsized images (using the "average" filter), and make sure that the file is 24bit and not color indexed tb On 10/12/05, Richard Alexander wrote: > thanks Matt, png24 makes no difference at my end... > > I have started on a work around - as i know the image is 1km square i can > use the current scale to do an image chop on it and display this in the Tk > placeholder (but this is painfull because you have to apply the same to > neighbouring tiles which overlap the current view !...been here before I > think, with an early version of arcview) > > Rich > From matt0177 at GMAIL.COM Wed Oct 12 08:19:54 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Wed, 12 Oct 2005 08:19:54 -0700 Subject: Query attribute In-Reply-To: Message-ID: When using a OGR Virtual File (often extension .ovf) file to connect to a database, you can insert a SQL query and only pull certain data. I'm currently using a similar set up using a MySQL database. OGR Virtual Files are documented at: http://www.gdal.org/ogr/drv_vrt.html Good Luck, Matt On 10/12/05, Johan Hallgren wrote: > > Hello > > I have tried to find a way to query attribute in mapserver/mapscript. I > have found the function queryByAttributes(). I miss some functions here. > > Is there ways to do regular "SELECT fld FROM tbl WHERE id = xy" with > MapServer? > Similar question, is queries with LIKE and IN is supported? > I have found out that it's possible to use regular expression but only on > shapefiles. What is possible if data is stored in a database? > Is there some documentation that I have missed, where can it be found? > > Any assistance is welcome. > > Regards > Johan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Pascoe at EC.GC.CA Wed Oct 12 08:26:40 2005 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Wed, 12 Oct 2005 11:26:40 -0400 Subject: Query attribute Message-ID: I received this note from the list recently, regarding updates to the OGR/VRT drivers. I was asking about ways to query the OGR layer other than the dynamic SLD I'm using now, to reduce database overhead. "I know Frank added this capability very recently for the VRT driver, so it probably depends on which version of GDAL/OGR you use (you need 1.3 probably). This is the bug report: http://bugzilla.remotesensing.org/show_bug.cgi?id=900 I use WFS on MySQL Virtual Spatial Data, and Mapserver sets a FILTER on the OGR VRT LAYER, and OGR adds that to the WHERE CLAUSE which it sends to the database. You could use the same approach, setting a dynamic FILTER." Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Matthew Edmondson Sent: October 12, 2005 11:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Query attribute When using a OGR Virtual File (often extension .ovf) file to connect to a database, you can insert a SQL query and only pull certain data. I'm currently using a similar set up using a MySQL database. OGR Virtual Files are documented at: http://www.gdal.org/ogr/drv_vrt.html Good Luck, Matt On 10/12/05, Johan Hallgren wrote: Hello I have tried to find a way to query attribute in mapserver/mapscript. I have found the function queryByAttributes(). I miss some functions here. Is there ways to do regular "SELECT fld FROM tbl WHERE id = xy" with MapServer? Similar question, is queries with LIKE and IN is supported? I have found out that it's possible to use regular expression but only on shapefiles. What is possible if data is stored in a database? Is there some documentation that I have missed, where can it be found? Any assistance is welcome. Regards Johan -------------- next part -------------- An HTML attachment was scrubbed... URL: From mstangeh at GMAIL.COM Wed Oct 12 08:36:16 2005 From: mstangeh at GMAIL.COM (Mauricio Stange) Date: Wed, 12 Oct 2005 10:36:16 -0500 Subject: No Map?? Message-ID: hello, I'am new to this, but at first I have the same problem, no error, but an empty map. I check the extend and it was correct too. So, i ask you, do you have the class object with the style for the layer?? I add that thing and then i can see the map. --Atte. Mauricio Stange From jeff2005 at SVS.GSFC.NASA.GOV Wed Oct 12 09:52:29 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 12 Oct 2005 12:52:29 -0400 Subject: Using WMS time dimension with rasters? In-Reply-To: Message-ID: Eric Bridger wrote: > Alternatively, you can use Mapserver's variable substituion. > See: http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#variablesubstitution > If you store your rasters with a time stamp as part of the name e.g. > modis_YYYYMMDDTHHMM.jpg, you can use the following in your map file: > DATA '/modis_files/%time%.jpg' I have noticed a couple of problems (or undocumented limitations, at any rate), with the otherwise-useful variable substitution mechanism. Unless I'm missing something, (1) no substitution occurs in TILEINDEX entries in the mapfile. Example: the following substitution works perfectly DATA "/home/delabeau/wms/data/goes/%year%/%month%/%day%/%file%" but this one TILEINDEX "/home/delabeau/wms/data/modis/tc/%year%/%month%/%day%/%file%" complains msSHPOpenFile(): Unable to access file. (/home/delabeau/wms/data/modis/tc/%year%/%month%/%day%/%file%) I think the problem is in mapserv.c after line 281 (v4.6.1), where data, connection, filter and class are explicitly considered but tileitem is ignored. (2) It seems that the entire filename must be substituted, not just part: i.e, %file% works for me but %file%.tif does not. My GOES server has a single GeoTIFF for each full-disk image, so it uses a DATA statement and problem #1 is not an issue. http://map05.gsfc.nasa.gov/cgi-bin/goes?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities However, my MODIS Atlantic hurricane server creates a daily composite of individual granules using a TILEINDEX, so problem #1 causes me grief. I work around it by having my CGI front-end parse the TIME parameter and determine the appropriate date-specific layer name (e.g., 'layers=modis&time=2005-10-10' becomes 'layers=modis20051010' before Mapserv is called). http://map05.gsfc.nasa.gov/cgi-bin/modis?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > Your users would then need to add the &time=YYYYMMDDTHHMM parameter > to their GetMap requests. Note that for OGC WMS, the punctuated form of ISO 8601 time is required: time=yyyy-dd-ddThh:mm. Regards, Jeff DLB * All opinions my own, not my employer's. * From fsimon at UNIVALI.BR Wed Oct 12 10:57:54 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 12 Oct 2005 14:57:54 -0300 Subject: MapServer and Oracle Spatial In-Reply-To: Message-ID: Hi Jukka, I didn't understand the situation that you described, can you sent the error message that Mapserver returned? Thanks again. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jukka Sirvi? wrote: >Hello! >I have exatly same situation, but I'm receiving the same errormessage even >after setting the apache enviroment variables. MapServer is running on Win >XP sp1 with Apache 2.0.54 (tested also on win NT 4.0 with apache 1.3.33) > >There is read / write access to oracle_home for anyone -user. > > > From john.hagstrand at INTERAGERESEARCH.COM Wed Oct 12 11:25:02 2005 From: john.hagstrand at INTERAGERESEARCH.COM (John Hagstrand) Date: Wed, 12 Oct 2005 11:25:02 -0700 Subject: google maps projection Message-ID: Hello, I am using MapServer to generate maps that I then overlay on top of Google Maps. To get them to match up, I need to get the projections to match. I've been told the following: Google Maps uses the Mercator projection and the WGS 84 geodetic datum. The projection standard latitude is 0, and the projection standard longitude is -90. How can I translate that to a MapServer Projection block? Thanks John ___________________ John Hagstrand www.MapTeam.com 847 838 5371 From Danna.Dowdy at NOAA.GOV Wed Oct 12 11:38:22 2005 From: Danna.Dowdy at NOAA.GOV (Danna Dowdy) Date: Wed, 12 Oct 2005 14:38:22 -0400 Subject: newbie taking over Message-ID: I have recently been tasked to take over a sample web-gis application that was built by a former colleague. I have zero experience with post-gis and mapserver and was wondering if there were some good introductions out there that may be helpful to me. postgresql 8.0.2 postgis 1.0.0 mapserver 4.4.2 chameleon 2.0 what I currently have is a postgresql database table that contains 4 columns: north, south, east, west... I have created a polygon geometry column using: select AddGeometryColumn('collection', 'geom', 4326, 'POLYGON', 2 ); I populated the field using: update collection set geom = geomfromtext('POLYGON((' || public.collection.north::varchar || ' ' || public.collection.east::varchar || ',' || public.collection.north::varchar || ' ' || public.collection.west::varchar || ',' || public.collection.south::varchar || ' ' || public.collection.west::varchar || ',' || public.collection.south::varchar || ' ' || public.collection.east::varchar ||'))', 4326); The idea is to have a map that would display bounding boxes for all collections in that area where you could further choose those collections to get the data associated with them from the database.... Any help would be greatly appreciated..... From perrygeo at GMAIL.COM Wed Oct 12 13:17:17 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Wed, 12 Oct 2005 13:17:17 -0700 Subject: newbie taking over In-Reply-To: <434D581E.6070203@noaa.gov> Message-ID: Danna, Regarding the update function you used to create geom: you've got the right idea but coordinate pairs should be "x y". For example instead of "north || ' ' || east" you should use "east || ' ' || north". You can export the table as a shapefile using the pgsql2shp command ( http://postgis.refractions.net/docs/ch04.html#id2511474) then check it out in your favorite GIS viewer to make sure it's what you need. Once the data is set, you'll need to add the postgis table as a layer in your mapfile (see http://postgis.refractions.net/docs/ch04.html#id2512368) This will allow display the layer in your interface. Using mapserver CGI. In order to query the layer and link the selected feature to content, you can use mapserver's template feature ( http://mapserver.gis.umn.edu/doc46/template-reference.html). I'm not sure if this works with Chameleon so you might have to check the Chameleon docs on how to get that working. Hope this gives you enough to start with. Matt Perry On 10/12/05, Danna Dowdy wrote: > > I have recently been tasked to take over a sample web-gis application > that was built by a former colleague. I have zero experience with > post-gis and mapserver and was wondering if there were some good > introductions out there that may be helpful to me. > > postgresql 8.0.2 > postgis 1.0.0 > mapserver 4.4.2 > chameleon 2.0 > > what I currently have is a postgresql database table that contains 4 > columns: north, south, east, west... > I have created a polygon geometry column using: > select AddGeometryColumn('collection', 'geom', 4326, 'POLYGON', 2 ); > > I populated the field using: > update collection set geom = geomfromtext('POLYGON((' || > public.collection.north::varchar || ' ' || > public.collection.east::varchar || > ',' || public.collection.north::varchar || ' ' || > public.collection.west::varchar || > ',' || public.collection.south::varchar || ' ' || > public.collection.west::varchar || > ',' || public.collection.south::varchar || ' ' || > public.collection.east::varchar ||'))', 4326); > The idea is to have a map that would display bounding boxes for all > collections in that area where you could further choose those > collections to get the data associated with them from the database.... > > Any help would be greatly appreciated..... > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Wed Oct 12 13:17:39 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 12 Oct 2005 16:17:39 -0400 Subject: google maps projection Message-ID: John - All you have to do is make all your polygons appear to be the wrong size. And get rid of the scalebars, of course; you can replace them with rhumb lines for all the compass navigators out there . I'd suggest the following... proj=merc lat_ts=0.0 lon_0=-90.0 x_0=0.0 y_0=0.0 ellps=GRS80 units=m no_defs Although I haven't tested that projection myself, as I still prefer Brazil to look larger than Greenland. The uncommon "lat_ts" parameter is the latitude of "true scale" - i.e. the only spot on the map that's accurate... For more details check the PROJ page at http://www.remotesensing.org/geotiff/proj_list/mercator_1sp.html but that should get you off to a good start. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Hagstrand Sent: Wednesday, October 12, 2005 2:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] google maps projection Hello, I am using MapServer to generate maps that I then overlay on top of Google Maps. To get them to match up, I need to get the projections to match. I've been told the following: Google Maps uses the Mercator projection and the WGS 84 geodetic datum. The projection standard latitude is 0, and the projection standard longitude is -90. How can I translate that to a MapServer Projection block? Thanks John ___________________ John Hagstrand www.MapTeam.com 847 838 5371 From work at XWB.COM Wed Oct 12 13:28:40 2005 From: work at XWB.COM (Chip Taylor) Date: Wed, 12 Oct 2005 13:28:40 -0700 Subject: google maps projection In-Reply-To: Message-ID: Ok, you have piqued my interest! Had to go out and look at Google's map API. Way cool stuff. Anyway, how do you overlay a Mapserver map on top of a Google map? > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of John Hagstrand > Sent: Wednesday, October 12, 2005 11:25 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] google maps projection > > Hello, > > I am using MapServer to generate maps that I then overlay on top of Google > Maps. To get them to match up, I need to get the projections to match. > > I've been told the following: > Google Maps uses the Mercator projection and the WGS 84 geodetic datum. > The > projection standard latitude is 0, and the projection standard longitude > is > -90. > > How can I translate that to a MapServer Projection block? > > Thanks > John > > ___________________ > John Hagstrand > www.MapTeam.com > 847 838 5371 From tmelhuish at WEBINSIGHTSINC.COM Wed Oct 12 13:53:13 2005 From: tmelhuish at WEBINSIGHTSINC.COM (Tom Melhuish) Date: Wed, 12 Oct 2005 16:53:13 -0400 Subject: Problem with ShapeObj->{classindex} In-Reply-To: Message-ID: To add to my issue, I was able to generate a Legend with the classes I defined. The colors in the Legend where displayed as expected. It looks like the ShapeObj->{classindex} has no effect an the shapeObjs defined and defaults to the first classObj defined. I'm running: mapserver 4.2.2 Redhat 9.0 httpd-2.0.53 Thanks in advance for your help. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Tom Melhuish Sent: Tuesday, October 11, 2005 3:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with ShapeObj->{classindex} I'm creating a feature and need to change the colors for each one that is generated. I'm able to create the shapeObjs and associated text, but the classObj is always set to index=0. If I query the $layer->{numclasses} I get 2. for (0..1) { my $point = new mapscript::pointObj() or &AppletMsg('Unable to create point',"error"); my $line = new mapscript::lineObj() or &AppletMsg('Unable to create line',"error"); my $shape = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); $point->{x} = $QueryResultsmatrix[$_+100]->[1] or &AppletMsg('Unable to add x value to point',"error"); $point->{y} = $QueryResultsmatrix[$_+100]->[2] or &AppletMsg('Unable to add y value to point',"error"); $retval=$line->add($point); $retval=$shape->add($line); $shape->{classindex} = $_; #### Always set to 0 no matter what I enter. $shape->{text} =Test.$_; $retval=$layer->addFeature($shape); } Layer Information ------------------- LAYER NAME "GpsfeatPt" STATUS OFF TYPE POINT TEMPLATE "ttt.html" CLASS #COLOR 128 255 164 SYMBOL "cross" COLOR 254 0 0 SIZE 7 LABEL SIZE small POSITION UC COLOR 254 0 0 END END CLASS #COLOR 128 255 164 SYMBOL "cross" COLOR 254 0 200 SIZE 7 LABEL SIZE small POSITION UC COLOR 254 0 200 END END END From warmerdam at POBOX.COM Wed Oct 12 06:12:42 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 12 Oct 2005 09:12:42 -0400 Subject: Need support to specify geom column and select list with OGR, ODBC In-Reply-To: Message-ID: On 10/12/05, Tamas Szekeres wrote: > Hi list, > > It would be greatly usable to support for specifying the geometry column > when using OGR ODBC driver. > The current implementation retrieves the geometry_columns table from the > database in order to determine the geometry column of the table which > causes an extra round trip to the server. For a suitable solution the > geometry column name could be specified in the connection string as the > table name. Tamas, First, this question belongs on gdal-dev more than mapserver-users. Doing this would require some code changes but could be done. My concern though is that I hate making the connection string handling too complicated. Is the query of the geometry_columns table really a significant performance issue? > It would be also helpful to establish the ability to specify the list of > the columns to select, what could restrict the amount of the data as the > user's will. I am contemplating at some point extending the OGR API to allow indicating what record elements are desired (geometry? which fields?) as an optimization for performance. However, it isn't too likely to happen immediately. Note that you can accomplish similar effects by using a custom SQL SELECT statement in the DATA field in MapServer instead of using a predefined table name. There are downsides to this approach if you are using the query mechanism of mapserver though. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From perrygeo at GMAIL.COM Wed Oct 12 14:20:30 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Wed, 12 Oct 2005 14:20:30 -0700 Subject: google maps projection In-Reply-To: Message-ID: Chip, On 10/12/05, Chip Taylor wrote: Ok, you have piqued my interest! Had to go out and look at Google's map API. Way cool stuff. Anyway, how do you overlay a Mapserver map on top of a Google map? There was some great work (by Kyle Mulka which was later picked up by Just van den Broecke) that allows you to use Google Maps as a WMS client. With Mapserver on the backend and Google Maps on the front, you can put together some really sweet solutions.. all the data crunching power of mapserver with the usability of Google Maps: here's the javascript libs http://www.geoskating.com/gmap/gmap-wms.js and a decent example http://www.geoskating.com/gmap/nasa.html The source should be fairly self-explanatory. It's a neat solution since you can use your own base data yet still get Google/NavTeq roads overlay (check out http://salmonpeople.org ) -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at SIERRACLUB.BC.CA Wed Oct 12 14:28:00 2005 From: steve at SIERRACLUB.BC.CA (Steve Young) Date: Wed, 12 Oct 2005 14:28:00 -0700 Subject: Performance Difference between 3.6. and 4.6 Message-ID: Hi, This is a repost from a couple of weeks ago. I could still do with some advice/info so rephrasing. Can anyone tell me if I should expect a decrease in speed of image rendering moving from version 3.6 to 4.6? Currently when displaying tileindexed layer of approximately 200 shapefiles I get a big performance hit. With 3.6 images are drawn in 2s or less, with 4.6 its 4s or more depending on the number of arcs being displayed. Both datasets have been shptree'd and sortshp'd using their associated executables. There are hardware differences, they both have 256Mb RAM otherwise the 4.6 machine has a faster CPU and HD. 3.6 machine is running on RH Linux 7 Apache 1.3. 4.6 machine is running Suse 9.1, Apache2 Should I expect any performance differences between Apache 1.3 and 2? I've tried compiling 3.6.1 to run on the same machine as 4.6 version, but I'm getting an "undefined reference to `__gxx_personality_v0'" error message on make. Looks to be something to do with gcc and g++, but I haven't been able to find a solution. I'm not convinced I'm on the right path, so any advice the list can give is appreciated. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From adoyle at EOGEO.ORG Wed Oct 12 13:50:36 2005 From: adoyle at EOGEO.ORG (Allan Doyle) Date: Wed, 12 Oct 2005 16:50:36 -0400 Subject: google maps projection In-Reply-To: Message-ID: Some info about Google and WMS: http://radar.oreilly.com/archives/2005/07/where_20_first.html http://www.directionsmag.com/press.releases/index.php? duty=Show&id=12107&trv=1&PRSID=3c94e78bac0131f7633e8e42344f3adc There is a chance that using Google maps as a true WMS layer violates the terms of service of the Google maps license key. c.f. http:// gmerge.2ni.net/ Google for google wms... Allan On Oct 12, 2005, at 16:28, Chip Taylor wrote: > Ok, you have piqued my interest! Had to go out and look at > Google's map > API. Way cool stuff. Anyway, how do you overlay a Mapserver map > on top of > a Google map? > > >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On >> Behalf Of John Hagstrand >> Sent: Wednesday, October 12, 2005 11:25 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] google maps projection >> >> Hello, >> >> I am using MapServer to generate maps that I then overlay on top >> of Google >> Maps. To get them to match up, I need to get the projections to >> match. >> >> I've been told the following: >> Google Maps uses the Mercator projection and the WGS 84 geodetic >> datum. >> The >> projection standard latitude is 0, and the projection standard >> longitude >> is >> -90. >> >> How can I translate that to a MapServer Projection block? >> >> Thanks >> John >> >> ___________________ >> John Hagstrand >> www.MapTeam.com >> 847 838 5371 >> > > -- Allan Doyle +1.781.433.2695 adoyle at eogeo.org From warmerdam at POBOX.COM Wed Oct 12 07:10:46 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 12 Oct 2005 10:10:46 -0400 Subject: low quality image output In-Reply-To: Message-ID: On 10/12/05, Richard Alexander wrote: > hi list, > I've seen a few other entries with a similar problem relating to jpeg > outputs...mine relates to jpeg, tif, png, bmp: when accessing a 800kbyte > aerial image (via world file & mapscript) the output image gets > reconstructed to a very "blocky" output with few colours - tried playing > around with imagemodes (e.g. MS_IMAGEMODE_RGB) but no improvement - I've > noticed a difference in rendering using a tif source, but it's not better, > just slightly different. thanks for any assistance. > (just as a check i've opened the same image using PIL on it's own and it's > up there with the best of them !) Richard, I would be interested in seeing the LAYER definition you use, as well as the gdalinfo report on the input file and your IMAGETYPE and OUTPUTFORMAT declarations. Can you also supply a rendered result we could review to see the effect you mean? Normally the poor color quality issues only come up with converting to 8bit pseudocolored. But if you are really rendering to jpeg or png24 then that should not be an issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve at SIERRACLUB.BC.CA Wed Oct 12 15:39:00 2005 From: steve at SIERRACLUB.BC.CA (Steve Young) Date: Wed, 12 Oct 2005 15:39:00 -0700 Subject: FW: [UMN_MAPSERVER-USERS] Performance Difference between 3.6. and 4.6 Message-ID: Hi, Here's the -v. I recompiled v 4.6.1 with fewer options, but to no noticable difference. I can post its latest incarnation tomorrow. Steve MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ________________________________ From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: October 12, 2005 3:29 PM To: Steve Young Subject: RE: [UMN_MAPSERVER-USERS] Performance Difference between 3.6. and 4.6 It might be helpful to post the outputs of mapserv -v for 3.6 and 4.6 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Steve Young Sent: Wednesday, October 12, 2005 3:28 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] Performance Difference between 3.6. and 4.6 Hi, This is a repost from a couple of weeks ago. I could still do with some advice/info so rephrasing. Can anyone tell me if I should expect a decrease in speed of image rendering moving from version 3.6 to 4.6? Currently when displaying tileindexed layer of approximately 200 shapefiles I get a big performance hit. With 3.6 images are drawn in 2s or less, with 4.6 its 4s or more depending on the number of arcs being displayed. Both datasets have been shptree'd and sortshp'd using their associated executables. There are hardware differences, they both have 256Mb RAM otherwise the 4.6 machine has a faster CPU and HD. 3.6 machine is running on RH Linux 7 Apache 1.3. 4.6 machine is running Suse 9.1, Apache2 Should I expect any performance differences between Apache 1.3 and 2? I've tried compiling 3.6.1 to run on the same machine as 4.6 version, but I'm getting an "undefined reference to `__gxx_personality_v0'" error message on make. Looks to be something to do with gcc and g++, but I haven't been able to find a solution. I'm not convinced I'm on the right path, so any advice the list can give is appreciated. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Oct 12 06:31:48 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 12 Oct 2005 09:31:48 -0400 Subject: Problems with ArcInfo Binary grid... In-Reply-To: Message-ID: On 10/12/05, Carlo Calvino wrote: > On Tue, 11 Oct 2005 13:53:25 -0400, Frank Warmerdam > wrote: > > >Carlo, > > > >What does the "gdalinfo" report of the coverage look like? > > > >Best regards, > > I run "gdalinfo w001001.adf" and this was the result: > Driver: AIG/Arc/Info Binary Grid > Size is 136, 191 > Coordinate System is `' > Origin = (2769559.195310,4504209.334252) > Pixel Size = (59.99393750,-59.99393750) > Corner Coordinates: > Upper Left ( 2769559.195, 4504209.334) > Lower Left ( 2769559.195, 4492750.492) > Upper Right ( 2777718.371, 4504209.334) > Lower Right ( 2777718.371, 4492750.492) > Center ( 2773638.783, 4498479.913) > Band 1 Block=256x4 Type=Int16, ColorInterp=Palette > Min=-70.000 Max=3435.000 > NoData Value=-32768 > Color Table (RGB with 3436 entries) > 0: 153,25,0,255 > 1: 153,25,0,255 > 2: 153,25,0,255 > 3: 153,25,0,255 > 4: 153,25,0,255 > 5: 153,25,0,255 > 6: 153,25,0,255 > 7: 153,25,0,255 > 8: 153,25,0,255 > 9: 153,25,0,255 > 10: 153,25,0,255 > 11: 153,25,0,255 > 12: 156,29,0,255 > 13: 156,29,0,255 > ... > 3432: 5,5,153,255 > 3433: 5,5,153,255 > 3434: 5,5,153,255 > 3435: 5,5,153,255 Carlo, The problem here is that MapServer does not support color tables with more than 256 entries currently. It will scale the values (or clip) them to 8bit and then apply the first 256 color table entries. I would suggest you create your own CLASSes manually in the mapfile instead of trying to use the .clr table. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ealpert at DIGITALGLOBE.COM Wed Oct 12 15:49:51 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 12 Oct 2005 16:49:51 -0600 Subject: FW: [UMN_MAPSERVER-USERS] Performance Difference between 3.6. and 4.6 Message-ID: Are there any visual differences in your map output? The reason I ask is perhaps labels in 4.6 are being drawn with not vector fonts. Otherwise I don't see any reasons why 4.6 would be slower. 256MB of RAM is pretty tiny prehaps the SuSe distro is tieing up more system resources causing significant swapping. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Young Sent: Wednesday, October 12, 2005 4:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] FW: [UMN_MAPSERVER-USERS] Performance Difference between 3.6. and 4.6 Hi, Here's the -v. I recompiled v 4.6.1 with fewer options, but to no noticable difference. I can post its latest incarnation tomorrow. Steve MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ________________________________ From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: October 12, 2005 3:29 PM To: Steve Young Subject: RE: [UMN_MAPSERVER-USERS] Performance Difference between 3.6. and 4.6 It might be helpful to post the outputs of mapserv -v for 3.6 and 4.6 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Steve Young Sent: Wednesday, October 12, 2005 3:28 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] Performance Difference between 3.6. and 4.6 Hi, This is a repost from a couple of weeks ago. I could still do with some advice/info so rephrasing. Can anyone tell me if I should expect a decrease in speed of image rendering moving from version 3.6 to 4.6? Currently when displaying tileindexed layer of approximately 200 shapefiles I get a big performance hit. With 3.6 images are drawn in 2s or less, with 4.6 its 4s or more depending on the number of arcs being displayed. Both datasets have been shptree'd and sortshp'd using their associated executables. There are hardware differences, they both have 256Mb RAM otherwise the 4.6 machine has a faster CPU and HD. 3.6 machine is running on RH Linux 7 Apache 1.3. 4.6 machine is running Suse 9.1, Apache2 Should I expect any performance differences between Apache 1.3 and 2? I've tried compiling 3.6.1 to run on the same machine as 4.6 version, but I'm getting an "undefined reference to `__gxx_personality_v0'" error message on make. Looks to be something to do with gcc and g++, but I haven't been able to find a solution. I'm not convinced I'm on the right path, so any advice the list can give is appreciated. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgwillia at STUDENT.CS.UWATERLOO.CA Wed Oct 12 15:37:46 2005 From: pgwillia at STUDENT.CS.UWATERLOO.CA (Tricia Williams) Date: Wed, 12 Oct 2005 18:37:46 -0400 Subject: [get_layers] In-Reply-To: Message-ID: Hi, I noticed that the [get_layers] tag was deemed obsolete for the MapServer version 4.6 HTML template. Revision Number: 1.11 Date: 2004-11-11 Author: Daniel Morissette Removed obsolete [get_layers] tag. I was wondering what is meant to be used instead. I am trying to use this to fill in the layer parameters in a call to mapserv.exe to generate a static map in place. [layers] does not do the trick. Thanks, Tricia From m.tomko at PGRAD.UNIMELB.EDU.AU Wed Oct 12 22:23:20 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Thu, 13 Oct 2005 15:23:20 +1000 Subject: data export tool In-Reply-To: Message-ID: Hi All, this may be a bit out of topic, but I thought that the communicty could help me. Please, reply out directly if you think this is not relevant to the rest of the list. I am desperately seeking a tool/workflow o export vector data into text/tables with basically the arc/node topological description of my data. So If I export polygons, I need a table with the polygon IS and the IDs of all its arcs, without any coordinates. Does anyone know a way? I was thinking about postgress/postgis? Dump a shp in it and try an sql? Would ogr2ogr do it somehow? I did not find a way to include the IDs of the arcs of a polygon. Seems like export to CSV would help, but I need to get the arcs IDs somehow. Thanks Martin From flavio at TYDAC.CH Wed Oct 12 23:20:33 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 13 Oct 2005 08:20:33 +0200 Subject: data export tool In-Reply-To: <434DEF48.1000502@pgrad.unimelb.edu.au> Message-ID: Hi Martin FME would handle that (www.safe.com). they have a grant program for universities: http://www.safe.com/company/grant-program/index.php. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio 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 ---------------------------------------------------------------- From flavio at TYDAC.CH Wed Oct 12 23:38:51 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 13 Oct 2005 08:38:51 +0200 Subject: MS4W applications In-Reply-To: <434D1415.9010005@dmsolutions.ca> Message-ID: Hi Carlos for the isochrones I suggest to use RouteWare (www.routeware.dk). Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio 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 ---------------------------------------------------------------- From m.tomko at PGRAD.UNIMELB.EDU.AU Wed Oct 12 23:55:08 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Thu, 13 Oct 2005 16:55:08 +1000 Subject: data export tool In-Reply-To: Message-ID: Hi Flavio, thanks for the tip. Yes, I know FME. I just thought that it is a too heavy weight tool for this. Such a basic requirement, I am surprised that nobody needed this before... I am developping algorithms and I need a simple data structure, and need to import/generate data for it... I will try FME, but I wonder if edge ID are exported within shp or any other source format. Maybe you can recommend something? DXF/dgn/ whatever... Thanks MArtin ---------------------------------------------- Ing. Martin Tomko PhD. candidate CRC for Spatial Information Department of Geomatics University of Melbourne Victoria 3010 Australia phone +61 3 8344 9179 fax +61 3 9349 5185 email m.tomko at pgrad.unimelb.edu.au url http://www.geom.unimelb.edu.au/tomko url http://www.spatialinformationscience.org url http://www.crcsi.com.au ---------------------------------------------- Flavio Hendry wrote: > Hi Martin > > FME would handle that (www.safe.com). they have a grant program for > universities: http://www.safe.com/company/grant-program/index.php. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio 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 > ---------------------------------------------------------------- > > From killersmython at BIGPOND.COM Wed Oct 12 23:50:14 2005 From: killersmython at BIGPOND.COM (Andrew Smith) Date: Thu, 13 Oct 2005 16:50:14 +1000 Subject: WMS extent problems Message-ID: Hello List, I have been working with mapserver for a little while now. I currently have a Linux FC4 box with mapserv 4.6 connecting to a Postgres(8.0.1)/PostGIS(1.0) backend. I have had no trouble implementing all the componets, and I am even having success with implementing a HTTP front end and am enjoying the experience. The only issue I have had, and have neglected up until now, is the problem of extents concerning the dataset described in the mapfile. I have checked the projection (AMG zone 56) using ArcGIS to make sure that I have the correct epsg projection (epsg=20256), and it seems right. So where can I go from here. I have attached a screen shot of a MapInfo connection to my WMS, and the corresponding mapfile. Any suggestions, websites etc will be much appreciated. I have searched the archives of this list, and have found similar issues, though no solution has been posted. So in the spirit of this online community, i will post a complete solution when one is obtained, including links to resources that helped. Thanks in advance Andrew Smith Masters Candidate University of Wollongong /******************************************** MAPFILE NAME "WMS_TEST" STATUS ON UNITS METERS EXTENT 287899 6156549 304702 6171738 WEB IMAGEPATH "..." IMAGEURL "..." LOG "..." METADATA "wms_title" "WMS TEST BOX" "wms_onlineresource" "http://..." "wms_srs" "EPSG:20256" END PROJECTION "init=epsg:20256" END LAYER NAME Minamurra_Boundary METADATA "wms_title" "Minamurra Boundary" "wms_abstract" "This dataset describes the boundary of the Minamurra River Area" END PROJECTION "init=epsg:20256" END CONNECTIONTYPE postgis CONNECTION " " DATA "the_geom from coast" STATUS ON TYPE POLYGON CLASS OUTLINECOLOUR 0 0 0 COLOR 3 190 0 END END END ********************************************/ Find attached the screen shot of MapInfo WMS Connection -------------- next part -------------- A non-text attachment was scrubbed... Name: mapinfo_wms.jpg Type: image/jpeg Size: 67264 bytes Desc: not available URL: From warmerdam at POBOX.COM Tue Oct 11 15:04:36 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 11 Oct 2005 18:04:36 -0400 Subject: OGR/OVF Issues In-Reply-To: <9B09D75DF5B3494BA06E6FE478CE9CC1033EE3DF@mgtserver3.ontario.int.ec.gc.ca> Message-ID: On 10/11/05, Avramov,Daniel [Ontario] wrote: > Good to know. We have just discovered that things are working fine with > MapServer 4.4. Furthermore, with 4.6.1 we did get a positive result with > cgi mode (i.e. mode=map) still using the ovf file. Daniel, I am not aware of any reason the behavior would be different with MapServer 4.4 and 4.6. However, with memory corruption issues (a possibilty) unrelated changes can affect crashing. > Now, does MapServer need to be compiled with GDAL 1.3.0 for Windows? > > We have gdal12.dll (dated: 2005_07_19) in the cgi-bin directory. Will > replacing this with gdal13.dll fix the issue or do we need a new > compilation of MapServer for Windows and is it available? Well, it is hard to know from this what version the GDAL is, but it is certainly recently dated. You could try upgrading to GDAL 1.3.1 but it is somewhat of a long shot for fixing the problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fsimon at UNIVALI.BR Thu Oct 13 04:48:34 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 13 Oct 2005 08:48:34 -0300 Subject: MapServer and Oracle Spatial In-Reply-To: Message-ID: Hi Jukka, This error occur when the Mapserver can't access the ORACLE_HOME directory. When the Oracle Spatial connection return an empty error: "Error: .". It's relate with access to Oracle files. In your case I believe that if you set the same enviroments in console this error disappear. Can you set the Oracle enviroments in console (as System variables in Windows) instead of httpd env? Here, for Windows, I use the Hobu Mapserver binaries (http://hobu.stat.iastate.edu/mapserver/) with Oracle Spatial support. Thanks again. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jukka Sirvi? wrote: >Hello Fernando! >Sorry for not including the information from original threads to my >message, Below is the headers of earlier discussions, I face exatly same >kind of problems even after the proposed solutions.Wiki for MapServer + >Ora Spatial does not give any additional information >(http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial). > >Mapserver error is : >msDrawMap(): Image handling error. Failed to draw layer named 'xxxx'. >msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >Handlers. Connection failure. Check the connection string. Error: . > >My httpd.conf contains following: >SetEnv MS_ERRORFILE "D:\Apache2\logs\stderr_mapserver.log" >SetEnv ORACLE_SID UDIGTEST >SetEnv ORACLE_BASE "C:\Oracle\" >SetEnv ORACLE_HOME "C:\Oracle\10.1.0Client_1\" >SetEnv TNS_ADMIN "C:\Oracle\10.1.0Client_1\network\admin\" > >And my mapfile have following entry: >CONNECTIONTYPE oraclespatial >CONNECTION "xxx/xxx at UDIGTEST" >DATA "GEOLOC FROM METSIKKOKUVIOT" >TYPE POLYGON > >And my tnsnames.ora have following entry (works with sqlplus and tnsping): >UDIGTEST = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = (PROTOCOL = TCP)(HOST = jukka)(PORT = 1521)) > ) > (CONNECT_DATA = > (SERVICE_NAME = udigtest) > ) > ) > >I tried several mapserver binaries which include oracle support. Next I >will try different mapserver binaries against 10g database (currently >testing against 9.2.0.6 -release) > >-Jukka >:::::::::::::::::::::::::::::::::::: >:::::: THREAD1 :::::: >:::::::::::::::::::::::::::::::::::: >Date: Thu, 11 Aug 2005 08:49:31 +0200 >Reply-To: Fran?ois Prunayre >Sender: UMN MapServer Users List >From: Fran?ois Prunayre >Organization: Office International de l'Eau >Subject: Re: Oracle / OCI error >In-Reply-To: <42F7581A.4050505 at univali.br> >Content-Type: text/plain; charset="iso-8859-1" > >:::::::::::::::::::::::::::::::::::: >:::::: THREAD2 :::::: >:::::::::::::::::::::::::::::::::::: >Date: Wed, 26 Jan 2005 08:41:48 +0000 >Reply-To: "Fernando S." >Sender: UMN MapServer Users List >From: "Fernando S." >Subject: Re: MapServer and Oracle Spatial >In-Reply-To: <41F6DEDC.4070009 at alumni.sfu.ca> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > > > >Fernando Simon >12/10/2005 14:57 > > To: Jukka Sirvi? , >MAPSERVER-USERS at LISTS.UMN.EDU > cc: > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle >Spatial > > >Hi Jukka, > I didn't understand the situation that you described, can you sent >the error message that Mapserver returned? > Thanks again. > >------------------------------------------------------------------------ >Fernando Simon >Mapserver and Oracle Spatial developer >G10 - Laboratorio de Computacao Aplicada - Brazil >http://www.univali.br/g10 - UNIVALI/CTTMAR >------------------------------------------------------------------------ > > >Jukka Sirvi? wrote: > > > >>Hello! >>I have exatly same situation, but I'm receiving the same errormessage >> >> >even > > >>after setting the apache enviroment variables. MapServer is running on >> >> >Win > > >>XP sp1 with Apache 2.0.54 (tested also on win NT 4.0 with apache 1.3.33) >> >>There is read / write access to oracle_home for anyone -user. >> >> >> >> >> > > > > > > From alonsarp at UM.ES Wed Oct 12 13:36:49 2005 From: alonsarp at UM.ES (Francisco Alonso) Date: Wed, 12 Oct 2005 22:36:49 +0200 Subject: GRASS gdal and mapserver Message-ID: Hi all: I have some experience with grass but I'm a begginer with mapserver and I have run into a couple of problems with mapserver, gdal and grass and could not find a proper solution in the mailing list archives (although I have found the problem I have). I think I have everything properly compiled and installed: # ./shp2img -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE # gdalinfo --formats|grep GRASS GRASS (ro): GRASS Database Rasters (5.7+) # ogrinfo --formats|grep GRASS -> "GRASS" (readonly) # gdalinfo /var/www/grass5_mapserver/spearfish60/PERMANENT/cellhd/soils Driver: GRASS/GRASS Database Rasters (5.7+) Size is 950, 700 Coordinate System is `' Origin = (590000.000000,4928000.000000) Pixel Size = (20.00000000,-20.00000000) Corner Coordinates: Upper Left ( 590000.000, 4928000.000) Lower Left ( 590000.000, 4914000.000) ... ... but when I try to read the mapfile I have problems with the soils GRASS raster file: # ./shp2img -m mapserver.map -o map.png msDrawMap(): Image handling error. Failed to draw layer named 'soils'.
msDrawRaster(): Image handling error. Unrecognized or unsupported image format
drawEPP(): Image handling error. /var/www/grass5_mapserver/spearfish60/PERMANENT/cellhd/soils is not an EPPL file.
As far as I have read through the list there is nothing to do with EPP but a problem reading the file, but it is the spearfish soil map (just 8 bits color) so I think the problem is related with the way mapserver and gdal interacts in my computer but I'm not to sure. My configure line for mapserver was: # ./configure --with-proj --with-gdal --with-gd --with-tiff --with-png --with-php-regex-dir=../php4-4.3.10/regex --with-postgis=/usr/local/pgsql/bin/pg_config On the other hand I can not read GRASS vector files with OGR # ogrinfo /var/www/grass5_mapserver/spearfish60/PERMANENT/vector/streams/head Warning 1: GRASS warning: GISBASE enviroment variable was not set, using: /usr/local/grass-6.0.1 ogrinfo: relocation error: /usr/local/lib/gdalplugins/ogr_GRASS.so: undefined symbol: Vect_set_fatal_error I think here the problem is that I did some mistake with the gdal-grass package Could anyone give me some help? Thanks By the way, I'm working with a Debian Sarge distribution Paco -- Francisco Alonso Sarr?a Departamento de Geograf?a (Area de Geograf?a F?sica) Universidad de Murcia. Campus La Merced E-30001 Murcia Telfn: +34 968364357 www.um.es/geograf/sigmur From Jukka.Sirvio at ARBONAUT.COM Thu Oct 13 06:03:16 2005 From: Jukka.Sirvio at ARBONAUT.COM (Jukka =?iso-8859-1?Q?Sirvi=F6?=) Date: Thu, 13 Oct 2005 16:03:16 +0300 Subject: MapServer and Oracle Spatial In-Reply-To: <434E4992.3030601@univali.br> Message-ID: Ok, thank you for help, MapServer native support for oracle spatial seems to be working now. Could you (or probaply the author: Bart van den Eijnden, The Netherlands, bartvde at xs4all.nl) add following comments to Oracle Spatial MaopServerWiki: ========= For Windows users: Add following enviroment variables (under System) pointing to your actual oracle client home directory, these variables tell the MapServer where the oracle client binaries and tnsnames.ora information can be found. If you receive errormessage like "Error: .". It's related with access to Oracle files and you should check these enviroment variables! ORACLE_SID "database sid from tnsnames.ora" TNS_ADMIN "folder where the tnsnames.ora exist" ORACLE_HOME "oracle client home directory" ========= Yours: Jukka Fernando Simon 13/10/2005 08:48 To: Jukka Sirvi? cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle Spatial Hi Jukka, This error occur when the Mapserver can't access the ORACLE_HOME directory. When the Oracle Spatial connection return an empty error: "Error: .". It's relate with access to Oracle files. In your case I believe that if you set the same enviroments in console this error disappear. Can you set the Oracle enviroments in console (as System variables in Windows) instead of httpd env? Here, for Windows, I use the Hobu Mapserver binaries (http://hobu.stat.iastate.edu/mapserver/) with Oracle Spatial support. Thanks again. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jukka Sirvi? wrote: >Hello Fernando! >Sorry for not including the information from original threads to my >message, Below is the headers of earlier discussions, I face exatly same >kind of problems even after the proposed solutions.Wiki for MapServer + >Ora Spatial does not give any additional information >(http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial). > >Mapserver error is : >msDrawMap(): Image handling error. Failed to draw layer named 'xxxx'. >msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >Handlers. Connection failure. Check the connection string. Error: . > >My httpd.conf contains following: >SetEnv MS_ERRORFILE "D:\Apache2\logs\stderr_mapserver.log" >SetEnv ORACLE_SID UDIGTEST >SetEnv ORACLE_BASE "C:\Oracle\" >SetEnv ORACLE_HOME "C:\Oracle\10.1.0Client_1\" >SetEnv TNS_ADMIN "C:\Oracle\10.1.0Client_1\network\admin\" > >And my mapfile have following entry: >CONNECTIONTYPE oraclespatial >CONNECTION "xxx/xxx at UDIGTEST" >DATA "GEOLOC FROM METSIKKOKUVIOT" >TYPE POLYGON > >And my tnsnames.ora have following entry (works with sqlplus and tnsping): >UDIGTEST = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = (PROTOCOL = TCP)(HOST = jukka)(PORT = 1521)) > ) > (CONNECT_DATA = > (SERVICE_NAME = udigtest) > ) > ) > >I tried several mapserver binaries which include oracle support. Next I >will try different mapserver binaries against 10g database (currently >testing against 9.2.0.6 -release) > >-Jukka >:::::::::::::::::::::::::::::::::::: >:::::: THREAD1 :::::: >:::::::::::::::::::::::::::::::::::: >Date: Thu, 11 Aug 2005 08:49:31 +0200 >Reply-To: Fran?ois Prunayre >Sender: UMN MapServer Users List >From: Fran?ois Prunayre >Organization: Office International de l'Eau >Subject: Re: Oracle / OCI error >In-Reply-To: <42F7581A.4050505 at univali.br> >Content-Type: text/plain; charset="iso-8859-1" > >:::::::::::::::::::::::::::::::::::: >:::::: THREAD2 :::::: >:::::::::::::::::::::::::::::::::::: >Date: Wed, 26 Jan 2005 08:41:48 +0000 >Reply-To: "Fernando S." >Sender: UMN MapServer Users List >From: "Fernando S." >Subject: Re: MapServer and Oracle Spatial >In-Reply-To: <41F6DEDC.4070009 at alumni.sfu.ca> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > > > >Fernando Simon >12/10/2005 14:57 > > To: Jukka Sirvi? , >MAPSERVER-USERS at LISTS.UMN.EDU > cc: > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle >Spatial > > >Hi Jukka, > I didn't understand the situation that you described, can you sent >the error message that Mapserver returned? > Thanks again. > >------------------------------------------------------------------------ >Fernando Simon >Mapserver and Oracle Spatial developer >G10 - Laboratorio de Computacao Aplicada - Brazil >http://www.univali.br/g10 - UNIVALI/CTTMAR >------------------------------------------------------------------------ > > >Jukka Sirvi? wrote: > > > >>Hello! >>I have exatly same situation, but I'm receiving the same errormessage >> >> >even > > >>after setting the apache enviroment variables. MapServer is running on >> >> >Win > > >>XP sp1 with Apache 2.0.54 (tested also on win NT 4.0 with apache 1.3.33) >> >>There is read / write access to oracle_home for anyone -user. >> >> >> >> >> > > > > > > From BEN at SYNCERA-ITSOLUTIONS.NL Thu Oct 13 06:59:20 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 13 Oct 2005 15:59:20 +0200 Subject: MapServer and Oracle Spatial Message-ID: Hi Jukka, the Wiki is read-only because of spam so no new content can be added there. Please add the comments on the new Plone site, you can do it yourself there: http://ms.gis.umn.edu/docs/howto/oracle_spatial_howto/view?searchterm=oracle%20spatial First join the site, then you can add comments. Thanks in advance. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Jukka Sirvi? 13-10-2005 15:03:16 >>> Ok, thank you for help, MapServer native support for oracle spatial seems to be working now. Could you (or probaply the author: Bart van den Eijnden, The Netherlands, bartvde at xs4all.nl) add following comments to Oracle Spatial MaopServerWiki: ========= For Windows users: Add following enviroment variables (under System) pointing to your actual oracle client home directory, these variables tell the MapServer where the oracle client binaries and tnsnames.ora information can be found. If you receive errormessage like "Error: .". It's related with access to Oracle files and you should check these enviroment variables! ORACLE_SID "database sid from tnsnames.ora" TNS_ADMIN "folder where the tnsnames.ora exist" ORACLE_HOME "oracle client home directory" ========= Yours: Jukka Fernando Simon 13/10/2005 08:48 To: Jukka Sirvi? cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle Spatial Hi Jukka, This error occur when the Mapserver can't access the ORACLE_HOME directory. When the Oracle Spatial connection return an empty error: "Error: .". It's relate with access to Oracle files. In your case I believe that if you set the same enviroments in console this error disappear. Can you set the Oracle enviroments in console (as System variables in Windows) instead of httpd env? Here, for Windows, I use the Hobu Mapserver binaries (http://hobu.stat.iastate.edu/mapserver/) with Oracle Spatial support. Thanks again. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jukka Sirvi? wrote: >Hello Fernando! >Sorry for not including the information from original threads to my >message, Below is the headers of earlier discussions, I face exatly same >kind of problems even after the proposed solutions.Wiki for MapServer + >Ora Spatial does not give any additional information >(http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial). > >Mapserver error is : >msDrawMap(): Image handling error. Failed to draw layer named 'xxxx'. >msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >Handlers. Connection failure. Check the connection string. Error: . > >My httpd.conf contains following: >SetEnv MS_ERRORFILE "D:\Apache2\logs\stderr_mapserver.log" >SetEnv ORACLE_SID UDIGTEST >SetEnv ORACLE_BASE "C:\Oracle\" >SetEnv ORACLE_HOME "C:\Oracle\10.1.0Client_1\" >SetEnv TNS_ADMIN "C:\Oracle\10.1.0Client_1\network\admin\" > >And my mapfile have following entry: >CONNECTIONTYPE oraclespatial >CONNECTION "xxx/xxx at UDIGTEST" >DATA "GEOLOC FROM METSIKKOKUVIOT" >TYPE POLYGON > >And my tnsnames.ora have following entry (works with sqlplus and tnsping): >UDIGTEST = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = (PROTOCOL = TCP)(HOST = jukka)(PORT = 1521)) > ) > (CONNECT_DATA = > (SERVICE_NAME = udigtest) > ) > ) > >I tried several mapserver binaries which include oracle support. Next I >will try different mapserver binaries against 10g database (currently >testing against 9.2.0.6 -release) > >-Jukka >:::::::::::::::::::::::::::::::::::: >:::::: THREAD1 :::::: >:::::::::::::::::::::::::::::::::::: >Date: Thu, 11 Aug 2005 08:49:31 +0200 >Reply-To: Fran?ois Prunayre >Sender: UMN MapServer Users List >From: Fran?ois Prunayre >Organization: Office International de l'Eau >Subject: Re: Oracle / OCI error >In-Reply-To: <42F7581A.4050505 at univali.br> >Content-Type: text/plain; charset="iso-8859-1" > >:::::::::::::::::::::::::::::::::::: >:::::: THREAD2 :::::: >:::::::::::::::::::::::::::::::::::: >Date: Wed, 26 Jan 2005 08:41:48 +0000 >Reply-To: "Fernando S." >Sender: UMN MapServer Users List >From: "Fernando S." >Subject: Re: MapServer and Oracle Spatial >In-Reply-To: <41F6DEDC.4070009 at alumni.sfu.ca> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > > > >Fernando Simon >12/10/2005 14:57 > > To: Jukka Sirvi? , >MAPSERVER-USERS at LISTS.UMN.EDU > cc: > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle >Spatial > > >Hi Jukka, > I didn't understand the situation that you described, can you sent >the error message that Mapserver returned? > Thanks again. > >------------------------------------------------------------------------ >Fernando Simon >Mapserver and Oracle Spatial developer >G10 - Laboratorio de Computacao Aplicada - Brazil >http://www.univali.br/g10 - UNIVALI/CTTMAR >------------------------------------------------------------------------ > > >Jukka Sirvi? wrote: > > > >>Hello! >>I have exatly same situation, but I'm receiving the same errormessage >> >> >even > > >>after setting the apache enviroment variables. MapServer is running on >> >> >Win > > >>XP sp1 with Apache 2.0.54 (tested also on win NT 4.0 with apache 1.3.33) >> >>There is read / write access to oracle_home for anyone -user. >> >> >> >> >> > > > > > > From work at XWB.COM Thu Oct 13 07:04:08 2005 From: work at XWB.COM (Chip Taylor) Date: Thu, 13 Oct 2005 07:04:08 -0700 Subject: Query to map parts of shapefiles In-Reply-To: <434E03A6.2040600@bigpond.com> Message-ID: I apologize if the title is somewhat misleading. What I am trying to do should be pretty common but I have not found a solution. Environment: Mapserver 4.6 running under Apache on Windows (soon to be changed to IIS on Windows) No database. PostGIS or MySQL to be added later. Little experience with PHP, MapScript in learning process Data: Shapefiles of US, states, counties (all polygons) Desired result: 1. User brings up map of US and sees outlines of states. (have that working - no problem). 2. User selects a state by clicking somewhere within the state polygon OR enters state name in text box (user choice - either is valid option) 3. MapServer redraws map with desired state as extents 4. User selects county from state by clicking somewhere within the county boundary polygon or enters county name in text box (user choice - either is valid option) 5. Mapserver redraws map with desired county as extents. 6. All this should be accomplished using the same base mapfile defining layers, etc. Any help with 2-6 would be most helpful. Thanks in advance. Chip Taylor Prepared Response, Inc. From warmerdam at POBOX.COM Thu Oct 13 07:48:12 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Oct 2005 10:48:12 -0400 Subject: GRASS gdal and mapserver In-Reply-To: <200510122236.49786.alonsarp@um.es> Message-ID: On 10/12/05, Francisco Alonso wrote: > but when I try to read the mapfile I have problems with the soils GRASS raster > file: > > # ./shp2img -m mapserver.map -o map.png > msDrawMap(): Image handling error. Failed to draw layer named 'soils'.
> msDrawRaster(): Image handling error. Unrecognized or unsupported image format >
> drawEPP(): Image handling error. > /var/www/grass5_mapserver/spearfish60/PERMANENT/cellhd/soils is not an EPPL > file.
Paco, You didn't show your layer definition in your mapfile, but it would appear that shp2img isn't getting the GRASS plugin or isn't even using the same version of libgdal.so as gdalinfo. I would suggest: o Use "ldd" to determine which versions of the libgdal.so are being used by shp2img and gdalinfo. o Set CPL_DEBUG=ON in your environment to see if there are messages from shp2img about loading the grass plugin. > On the other hand I can not read GRASS vector files with OGR > > # ogrinfo /var/www/grass5_mapserver/spearfish60/PERMANENT/vector/streams/head > Warning 1: GRASS warning: GISBASE enviroment variable was not set, using: > /usr/local/grass-6.0.1 > ogrinfo: relocation error: /usr/local/lib/gdalplugins/ogr_GRASS.so: undefined > symbol: Vect_set_fatal_error > > I think here the problem is that I did some mistake with the gdal-grass > package Likely reasons for this are that your GRASS is a bit old or that your GDAL is a bit old. What versions of GRASS and GDAL are you using? The vector driver is very new and may have some poorly understood dependencies. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From work at XWB.COM Thu Oct 13 08:20:24 2005 From: work at XWB.COM (Chip Taylor) Date: Thu, 13 Oct 2005 08:20:24 -0700 Subject: WMS Legends In-Reply-To: Message-ID: When retrieving a Layer from a WMS (such as a USGS server) is there a way to retrieve legend information? Chip Taylor Prepared Response, Inc. From Tom.Kralidis at EC.GC.CA Thu Oct 13 08:27:27 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 13 Oct 2005 11:27:27 -0400 Subject: WMS Legends Message-ID: The WMS has to support the GetLegendGraphic operation. You can find this out by checking out a GetCapabilities XML response. If GetLegendGraphic is supported, you can invoke a request via: http://host/wms?version=1.1.1&service=WMS&request=GetLegendGraphic&forma t=$imageFormat&layer=$layerName ..where $format is your desired format MIME type, and $layer is the layername you are interested in. Note that this operation returns graphic icons for a single layer. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chip Taylor > Sent: Thursday, 13 October, 2005 11:20 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WMS Legends > > > When retrieving a Layer from a WMS (such as a USGS server) is > there a way to retrieve legend information? > > Chip Taylor > Prepared Response, Inc. > From BEN at SYNCERA-ITSOLUTIONS.NL Thu Oct 13 08:27:50 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 13 Oct 2005 17:27:50 +0200 Subject: WMS Legends Message-ID: Yes but not through Mapserver WMS client. You can directly query a remote WMS server for this though through your application. There are 2 options for this in the WMS interface: 1) LegendURL from the WMS Capabilities 2) a GetLegendGraphic request, but this is only supported by SLD WMS servers. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Chip Taylor 13-10-2005 17:20 >>> When retrieving a Layer from a WMS (such as a USGS server) is there a way to retrieve legend information? Chip Taylor Prepared Response, Inc. From warmerdam at POBOX.COM Thu Oct 13 08:31:42 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Oct 2005 11:31:42 -0400 Subject: data export tool In-Reply-To: <434DEF48.1000502@pgrad.unimelb.edu.au> Message-ID: On 10/13/05, Martin Tomko wrote: > I am desperately seeking a tool/workflow o export vector data into > text/tables with basically the arc/node topological description of my data. > > So If I export polygons, I need a table with the polygon IS and the IDs > of all its arcs, without any coordinates. Does anyone know a way? > > I was thinking about postgress/postgis? Dump a shp in it and try an sql? > Would ogr2ogr do it somehow? I did not find a way to include the IDs of > the arcs of a polygon. Seems like export to CSV would help, but I need > to get the arcs IDs somehow. Martin, You didn't mention what data you are starting with. Is it a shapefile? If so, part of your problems is that you need to build the topology from a non-topological structure. As Flavio mentioned, FME would be a good choice for that. GRASS also has support for converting non-topological dataset to topological. If you are already starting with a topological Arc/Info binary vector coverage, then you will see from the ogrinfo reports that the topology information is available as attributes. OGRFeature(PAL):2 ArcIds (IntegerList) = (1:-349) AREA (Real) = 0.92814 PERIMETER (Real) = 5.35872 COUNTRYD# (Integer) = 2 COUNTRYD-ID (Integer) = 3027 POLYGON ((-153.022781372070312 57.383213043212891,... OGRFeature(ARC):1 UserId (Integer) = 1394 FNODE# (Integer) = 1 TNODE# (Integer) = 2 LPOLY# (Integer) = 24 RPOLY# (Integer) = 26 LINESTRING (56.360397338867188 25.983451843261719,... The ArcIds on the polygons and the node/poly information on the arcs is enough to establish the topological relationships. With a script or C++ program written on OGR you could get that information out into a text format of some kind. If you use GRASS to export to E00 you could use avcimport to convert to a binary coverage for use with OGR. FME can write binary coverages directly. Of course, both FME and GRASS offer other mechanisms to interact with the topology that might be more direct. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From dgadoury at DMSOLUTIONS.CA Thu Oct 13 08:35:02 2005 From: dgadoury at DMSOLUTIONS.CA (Dean Gadoury) Date: Thu, 13 Oct 2005 11:35:02 -0400 Subject: WMS Legends In-Reply-To: Message-ID: I assume you want to get a legend graphic. If so, you can use the GETLEGENDGRAPHIC request to retrieve legend graphics from servers that support it. Support for that request is optional so you should check the capabilities document of the server you are accessing to see if you can use it. You can find information on this in the WMS spec from the OGC website at: http://www.opengeospatial.org/specs/. Chip Taylor wrote: > When retrieving a Layer from a WMS (such as a USGS server) is there a way to > retrieve legend information? > > Chip Taylor > Prepared Response, Inc. > From j.briere at SASKTEL.NET Thu Oct 13 09:09:27 2005 From: j.briere at SASKTEL.NET (J Briere) Date: Thu, 13 Oct 2005 10:09:27 -0600 Subject: no map?? plus new prob. Message-ID: Thanks to everyone who replied with help to my problem. It turned out that forgot to put in the style type once this was entered the map displayed properly. Our new problem is we got the map to display. All the tools work except the identify. The identify will not bring up any attributes from the shape file. We have tried turning on the query and populating various fields under that but to no avail. Any ideas? Remember we are very new to this. PS using Windows compiled version MS4W Thanks in advance From assefa at DMSOLUTIONS.CA Thu Oct 13 11:03:38 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 13 Oct 2005 14:03:38 -0400 Subject: time series problem 3 (Bug!?) In-Reply-To: <3B60B9DD-A324-4281-8007-4CBD5320B952@fao.org> Message-ID: Hi There, Sorry for the late answer. From what I can see in your examples, you are running into a limitation of mapserver and it's support for the time extent values. Currently the time extent can only be defined as a range value and only one range value is valid (so something like is the only thing valid 2005-09-11/2005-09-21) You should update your "wms_timeextent" and try it with only one range. I will enter documentation bug so that this limitation is clearly defined. Give it a try and let me know. Later, Jeroen Ticheler wrote: > Hi, sorry for continuing this story, but I really want to solve this > and hope my additional info helps to sort out the problems I face. > > I am using a shapefile with the imgdate column added to it. I use > exactly the same index to work with a WCS on the same data, that one > works perfectly fine. > > I have browsed through the mapServer sourcecode to see if I could > discover something/ understand the problem better. I'm not familiar > with C coding, so forgive my ignorance :-) What I could understand is > that my request fails when the time string submitted in the request is > compared to the timeextent given in the capabilities document. > > The exact section of the code is in between line 545 and line 569, > apparently the msValidateTimeValue() procedure fails to find the > requested date in the extent. I do not get an error when I change my > extent to a range like "2005-09-11,2005-09-21/2005-09-21" or > "2005-09-11,2005-09-11/2005-09-21", but it will only render the very > last image, even when an earlier one is requested. > > So I guess I face a bug!? > > Thanks again, > Jeroen > > Begin forwarded message: > >> From: Jeroen Ticheler >> Date: 12 October 2005 09:54:26 GMT+02:00 >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] time series problem 2 >> Reply-To: Jeroen Ticheler >> >> >> Further to my previous message, the exception I get is the following >> one: >> >> >> >> msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 given is >> invalid or outside the time extent defined >> (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05-01,200 >> 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01,2005-07 >> -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005-09-11, >> 2005-09-21), and default time set is invalid (2005-09-21) >> >> >> >> And the URL's I use are: >> >> For Capabilities: >> >> http://193.43.36.137/cgi-bin/spotveg? >> version=1.1.1&service=WMS&request=GetCapabilities >> >> For a working map without specifying the time: >> >> http://193.43.36.137/cgi-bin/spotveg? >> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >> 4326&bbox=-180,-90,180,90&format=image/ >> png&layers=spotndvi&transparent=true&width=400&height=200 >> >> For a request with a time, the exception is returned: >> >> http://193.43.36.137/cgi-bin/spotveg? >> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >> 4326&bbox=-180,-90,180,90&format=image/ >> png&layers=spotndvi&transparent=true&width=400&height=200&time=2005-09 >> -21 >> >> These URL's can be reached from outside, so you can try this yourself. >> Thanks in advance for any help to a solution, >> Jeroen >> >> On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: >> >> >> >>> Hi, >>> I have a problem with time series for WMS. I have used the following >>> WMS attributes in my map file and I get the default image the first >>> WMS map request. The moment I start requesting maps with the time >>> variable set, I get an exception indicating that the time format >>> used is not correct. >>> >>> The data is GeoTIFF >>> I have an index shapefile with an imgdate column containing the >>> dates in the same format >>> >>> Anyone an idea, I can't find an example that has a whole range of >>> images with a specific time set for each image. >>> >>> Map file extract: >>> >>> At the map level (although I don't think this is supported/needed >>> for GeoTIFF data!?) >>> ____________________________ >>> "wms_timeformat" "YYYY-MM-DD" >>> ____________________________ >>> >>> >>> At the layer level >>> ____________________________ >>> >>> "wms_style_default_title" "default" >>> "wms_format" "image/png" >>> "wms_timedefault" "2005-09-11" >>> "wms_timeextent" >>> "2005-08-21,2005-09-01,2005-09-11" # also tried with spaces >>> after each comma >>> "wms_timeitem" "imgdate" >>> >>> END >>> DUMP TRUE >>> TILEINDEX 'ndvi_idx' >>> TILEITEM "location" >>> EXTENT -180.0 -90.0 180.0 90.0 >>> PROJECTION "init=epsg:4326" END >>> ____________________________ >>> >>> >>> Thanks in advance, >>> Jeroen >>> _______________________ >>> Jeroen Ticheler >>> FAO-UN >>> Tel: +39 06 57056041 >>> http://www.fao.org/geonetwork >>> 12.34327?N 12.34327?E >>> >>> >>> >>> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From j.briere at SASKTEL.NET Thu Oct 13 11:11:54 2005 From: j.briere at SASKTEL.NET (J Briere) Date: Thu, 13 Oct 2005 12:11:54 -0600 Subject: ref map Message-ID: Another problem. We are trying to get the referance map to work using the modify refrence map button. But everytime we try it brings up an error. "WARNING! wrong parameter count for saveimage" Any ideas on how to get referance map working? From assefa at DMSOLUTIONS.CA Thu Oct 13 11:36:41 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 13 Oct 2005 14:36:41 -0400 Subject: Using WMS time dimension with rasters? In-Reply-To: <434D3F4D.1060901@svs.gsfc.nasa.gov> Message-ID: Hi There, I added the substitution for tileindex. I was a minor change I could not figure why it was not added. I added a bug to track the change if any problem (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1497). Later > (1) no substitution occurs in TILEINDEX entries in the mapfile. > Example: the following substitution works perfectly > DATA "/home/delabeau/wms/data/goes/%year%/%month%/%day%/%file%" > but this one > TILEINDEX "/home/delabeau/wms/data/modis/tc/%year%/%month%/%day%/%file%" > complains > msSHPOpenFile(): Unable to access file. > (/home/delabeau/wms/data/modis/tc/%year%/%month%/%day%/%file%) > > I think the problem is in mapserv.c after line 281 (v4.6.1), where data, > connection, filter and class are explicitly considered but tileitem is > ignored. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From kenlord at GMAIL.COM Thu Oct 13 11:43:45 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 13 Oct 2005 11:43:45 -0700 Subject: google maps projection In-Reply-To: <4B009625-755F-4999-81C0-D410AE2B8BAE@eogeo.org> Message-ID: Of course MapServer works well as a WMS source for Google Earth ... Place the code below into a xxx.kml file. To modify it for your own datasets: --Change the link the in the tag to a known working WMS source, such as your own MapServer setup set to output in the projection that Google Earth uses. --Make sure your .map file has useful extents set, and a good map size, this will control what part of the world is shown in Google Earth and at what resolution. --Change the so that when you load the layer in Google Earth, it will automatically pan to the right view (or dont, and just pan to the right spot manually) --Set the coordinates below to match the extents of the image used in your .map file **** Very Important --> The URL used in the tag ... all & symbols must be changed to & as they have been in my example. In my example, google earth pulls data from my mapserver WMS. My mapserver WMS is retrieving data from the Terra weather satellite WMS (updates daily) and the Modis forest fire WMS (updates twice a day), combining them into one image, then sending it back to Google Earth. I made it to watch the recent hurricanes. It is not dynamic, it loads once and doesnt refresh unless you remove the layer and add it again or restart Google Earth ... but there are ways of making that happen. BGC MapServer Test Large-scale overlay on terrain -86 25 3000000 15 0 1 http://www.bgcengineering.info/MapTest/Scripts/mapserv.exe?map_web_template=JAVA_template.html&mode=map&imgext=-101+20+-71+35&map=c%3A%2FProjects%2FDemos%2FMapTest%2Fweb%2FMapServer%2FMapTest.map&program=..%2FScripts%2Fmapserv.exe&map_web_imagepath=c%3A%2FProjects%2FDemos%2FMapTest%2Fweb%2Ftemp%2F&map_web_imageurl=%2FDemos%2FMapTest%2Fweb%2Ftemp%2F&mapext=-101+20+-71+35&layer=Terra_WeatherSat_WMS&layer=Forest_Fires_Live 300 35 20 -71 -101 0 Cheers, Ken Lord Vancouver BC On 10/12/05, Allan Doyle wrote: > Some info about Google and WMS: > > http://radar.oreilly.com/archives/2005/07/where_20_first.html > > http://www.directionsmag.com/press.releases/index.php? > duty=Show&id=12107&trv=1&PRSID=3c94e78bac0131f7633e8e42344f3adc > > There is a chance that using Google maps as a true WMS layer violates > the terms of service of the Google maps license key. c.f. http:// > gmerge.2ni.net/ > > Google for google wms... > > Allan > > On Oct 12, 2005, at 16:28, Chip Taylor wrote: > > > Ok, you have piqued my interest! Had to go out and look at > > Google's map > > API. Way cool stuff. Anyway, how do you overlay a Mapserver map > > on top of > > a Google map? > > > > > >> -----Original Message----- > >> From: UMN MapServer Users List [mailto:MAPSERVER- > >> USERS at LISTS.UMN.EDU] On > >> Behalf Of John Hagstrand > >> Sent: Wednesday, October 12, 2005 11:25 AM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] google maps projection > >> > >> Hello, > >> > >> I am using MapServer to generate maps that I then overlay on top > >> of Google > >> Maps. To get them to match up, I need to get the projections to > >> match. > >> > >> I've been told the following: > >> Google Maps uses the Mercator projection and the WGS 84 geodetic > >> datum. > >> The > >> projection standard latitude is 0, and the projection standard > >> longitude > >> is > >> -90. > >> > >> How can I translate that to a MapServer Projection block? > >> > >> Thanks > >> John > >> > >> ___________________ > >> John Hagstrand > >> www.MapTeam.com > >> 847 838 5371 > >> > > > > > > -- > Allan Doyle > +1.781.433.2695 > adoyle at eogeo.org > From work at XWB.COM Thu Oct 13 12:34:26 2005 From: work at XWB.COM (Chip Taylor) Date: Thu, 13 Oct 2005 12:34:26 -0700 Subject: Querying the extents of a layer (shapefile) In-Reply-To: <434E7EA6.7030104@dmsolutions.ca> Message-ID: If I have a shapefile as a layer can I query the extents of that shapefile from MapServer or MapScript? Thanks for all the help you give to us poor newbies. Chip Taylor Prepared Response, Inc. From David.Fawcett at STATE.MN.US Thu Oct 13 13:12:21 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 13 Oct 2005 15:12:21 -0500 Subject: Querying the extents of a layer (shapefile) Message-ID: You can run ogrinfo on it and get the extents http://ogr.maptools.org/ogr_utilities.html -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chip Taylor Sent: Thursday, October 13, 2005 2:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Querying the extents of a layer (shapefile) If I have a shapefile as a layer can I query the extents of that shapefile from MapServer or MapScript? Thanks for all the help you give to us poor newbies. Chip Taylor Prepared Response, Inc. From fsimon at UNIVALI.BR Thu Oct 13 14:05:30 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 13 Oct 2005 18:05:30 -0300 Subject: MapServer and Oracle Spatial In-Reply-To: Message-ID: Hi Bart and Jukka, I updated the Oracle Spatial howto in Mapserver site (http://ms.gis.umn.edu/docs/howto/oracle_spatial_howto) with the last information about the Oracle Spatial connection. Regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Bart van den Eijnden wrote: >Hi Jukka, > >the Wiki is read-only because of spam so no new content can be added there. > >Please add the comments on the new Plone site, you can do it yourself there: > >http://ms.gis.umn.edu/docs/howto/oracle_spatial_howto/view?searchterm=oracle%20spatial > >First join the site, then you can add comments. Thanks in advance. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > > >>>>Jukka Sirvi? 13-10-2005 15:03:16 >>> >>>> >>>> >Ok, thank you for help, >MapServer native support for oracle spatial seems to be working now. > >Could you (or probaply the author: Bart van den Eijnden, The Netherlands, >bartvde at xs4all.nl) add following comments to Oracle Spatial >MaopServerWiki: > >========= >For Windows users: >Add following enviroment variables (under System) pointing to your actual >oracle client home directory, these variables tell the MapServer where the >oracle client binaries and tnsnames.ora information can be found. If you >receive errormessage like "Error: .". It's related with access to Oracle >files and you should check these enviroment variables! >ORACLE_SID "database sid from tnsnames.ora" >TNS_ADMIN "folder where the tnsnames.ora exist" >ORACLE_HOME "oracle client home directory" >========= > > >Yours: >Jukka > > > > > > >Fernando Simon >13/10/2005 08:48 > > To: Jukka Sirvi? > cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle >Spatial > > >Hi Jukka, > This error occur when the Mapserver can't access the ORACLE_HOME >directory. > When the Oracle Spatial connection return an empty error: "Error: >.". It's relate with access to Oracle files. > In your case I believe that if you set the same enviroments in >console this error disappear. > Can you set the Oracle enviroments in console (as System variables >in Windows) instead of httpd env? > Here, for Windows, I use the Hobu Mapserver binaries >(http://hobu.stat.iastate.edu/mapserver/) with Oracle Spatial support. > Thanks again. > >------------------------------------------------------------------------ >Fernando Simon >Mapserver and Oracle Spatial developer >G10 - Laboratorio de Computacao Aplicada - Brazil >http://www.univali.br/g10 - UNIVALI/CTTMAR >------------------------------------------------------------------------ > > > > >Jukka Sirvi? wrote: > > > >>Hello Fernando! >>Sorry for not including the information from original threads to my >>message, Below is the headers of earlier discussions, I face exatly same >>kind of problems even after the proposed solutions.Wiki for MapServer + >>Ora Spatial does not give any additional information >>(http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial). >> >>Mapserver error is : >>msDrawMap(): Image handling error. Failed to draw layer named 'xxxx'. >>msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >>Handlers. Connection failure. Check the connection string. Error: . >> >>My httpd.conf contains following: >>SetEnv MS_ERRORFILE "D:\Apache2\logs\stderr_mapserver.log" >>SetEnv ORACLE_SID UDIGTEST >>SetEnv ORACLE_BASE "C:\Oracle\" >>SetEnv ORACLE_HOME "C:\Oracle\10.1.0Client_1\" >>SetEnv TNS_ADMIN "C:\Oracle\10.1.0Client_1\network\admin\" >> >>And my mapfile have following entry: >>CONNECTIONTYPE oraclespatial >>CONNECTION "xxx/xxx at UDIGTEST" >>DATA "GEOLOC FROM METSIKKOKUVIOT" >>TYPE POLYGON >> >>And my tnsnames.ora have following entry (works with sqlplus and >> >> >tnsping): > > >>UDIGTEST = >> (DESCRIPTION = >> (ADDRESS_LIST = >> (ADDRESS = (PROTOCOL = TCP)(HOST = jukka)(PORT = 1521)) >> ) >> (CONNECT_DATA = >> (SERVICE_NAME = udigtest) >> ) >> ) >> >>I tried several mapserver binaries which include oracle support. Next I >>will try different mapserver binaries against 10g database (currently >>testing against 9.2.0.6 -release) >> >>-Jukka >>:::::::::::::::::::::::::::::::::::: >>:::::: THREAD1 :::::: >>:::::::::::::::::::::::::::::::::::: >>Date: Thu, 11 Aug 2005 08:49:31 +0200 >>Reply-To: Fran?ois Prunayre >>Sender: UMN MapServer Users List >>From: Fran?ois Prunayre >>Organization: Office International de l'Eau >>Subject: Re: Oracle / OCI error >>In-Reply-To: <42F7581A.4050505 at univali.br> >>Content-Type: text/plain; charset="iso-8859-1" >> >>:::::::::::::::::::::::::::::::::::: >>:::::: THREAD2 :::::: >>:::::::::::::::::::::::::::::::::::: >>Date: Wed, 26 Jan 2005 08:41:48 +0000 >>Reply-To: "Fernando S." >>Sender: UMN MapServer Users List >>From: "Fernando S." >>Subject: Re: MapServer and Oracle Spatial >>In-Reply-To: <41F6DEDC.4070009 at alumni.sfu.ca> >>Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> >> >> >> >> >>Fernando Simon >>12/10/2005 14:57 >> >> To: Jukka Sirvi? , >>MAPSERVER-USERS at LISTS.UMN.EDU >> cc: >> Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle >>Spatial >> >> >>Hi Jukka, >> I didn't understand the situation that you described, can you sent >>the error message that Mapserver returned? >> Thanks again. >> >>------------------------------------------------------------------------ >>Fernando Simon >>Mapserver and Oracle Spatial developer >>G10 - Laboratorio de Computacao Aplicada - Brazil >>http://www.univali.br/g10 - UNIVALI/CTTMAR >>------------------------------------------------------------------------ >> >> >>Jukka Sirvi? wrote: >> >> >> >> >> >>>Hello! >>>I have exatly same situation, but I'm receiving the same errormessage >>> >>> >>> >>> >>even >> >> >> >> >>>after setting the apache enviroment variables. MapServer is running on >>> >>> >>> >>> >>Win >> >> >> >> >>>XP sp1 with Apache 2.0.54 (tested also on win NT 4.0 with apache 1.3.33) >>> >>>There is read / write access to oracle_home for anyone -user. >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> > > > From steve.lime at DNR.STATE.MN.US Thu Oct 13 14:15:55 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 13 Oct 2005 16:15:55 -0500 Subject: Performance Difference between 3.6. and 4.6 Message-ID: It would be helpful to compare apples to apples. To get around the compile error try this: Edit your Makefile and add "-lstdc++" as shown below to the end of the variable named "STATIC_LIBS" STATIC_LIBS= $(GD_STATIC) $(OGR_STATIC) -lstdc++ and rebuild. 4.x should be a bit slower than 3.6 simply due to the amount of abstraction added to support new input and output sources. You shouldn't see the type of hit you're hinting at though. Try and get 'em running on the same box and report back. Steve >>> Steve Young 10/12/05 4:28 PM >>> Hi, This is a repost from a couple of weeks ago. I could still do with some advice/info so rephrasing. Can anyone tell me if I should expect a decrease in speed of image rendering moving from version 3.6 to 4.6? Currently when displaying tileindexed layer of approximately 200 shapefiles I get a big performance hit. With 3.6 images are drawn in 2s or less, with 4.6 its 4s or more depending on the number of arcs being displayed. Both datasets have been shptree'd and sortshp'd using their associated executables. There are hardware differences, they both have 256Mb RAM otherwise the 4.6 machine has a faster CPU and HD. 3.6 machine is running on RH Linux 7 Apache 1.3. 4.6 machine is running Suse 9.1, Apache2 Should I expect any performance differences between Apache 1.3 and 2? I've tried compiling 3.6.1 to run on the same machine as 4.6 version, but I'm getting an "undefined reference to `__gxx_personality_v0'" error message on make. Looks to be something to do with gcc and g++, but I haven't been able to find a solution. I'm not convinced I'm on the right path, so any advice the list can give is appreciated. Steve From tibben at OCF.BERKELEY.EDU Thu Oct 13 14:31:32 2005 From: tibben at OCF.BERKELEY.EDU (Tim Norris) Date: Thu, 13 Oct 2005 16:31:32 -0500 Subject: queryByPoint accuracy/confusion Message-ID: I am trying to query all point objects in a layer within a certain radius. The layer is a dynamically loaded OGR (MapInfo) point layer in which I set the 'toleranceunits' to MS_MILES and the 'tolerance' to my specific radius. Then I simply run a $lyr_myLayer->queryByPoint($point,MS_MULTIPLE,0) and get the count of the results $lyr_myLayer->getNumResults (all in PHP MapScript). I am having trouble getting correct queryByPoint results. For some reason the radius seems to be smaller than it should. I have even drawn the query and then manually checked the query radius on a paper map (it is small). After a search through the list archives I could not find any similar problems . . . [I have also tried $lyr_myLayer->queryByPoint($point,MS_MULTIPLE,$radius) and I have also tried using meters and simply converting the miles radius to meters - all the same results] Perhaps I am not using the queryByPoint method correctly? Is there something extra I should know about the 'tolerance' parameter in the layer??? My map projection is: PROJECTION "proj=merc" # Mercator "lat_0=0" # latitude of natural origin "lon_0=0" # longitude of natural origin (central longitude) "x_0=0" # false easting in meters "y_0=0" # false northing in meters END and all the MapInfo data is stored in a Lat/Long projection - would this configuration cause an error???? Do I need to draw the layer before performing the query???? (I tried this on one layer and there was no noticable difference). One solution I have thought of is to manually create a layer with the correct circles to use for the radius queries, but this seems clumsy and hard to change in the future (for dynamic queries) - or perhaps create a circle feature with the correct radius and use queryByShape or queryByFeatures . . . any help would be greatly appreciated thanks tim tibben at ocf.berkeley.edu p.s. as an aside, I can use my radius as (with toleranceunits as meters OR miles): $int_queryRadius += $int_queryRadius/4.3 and I get approximately the correct results - but this is really odd!! I must be doing something incorrectly . . . From work at XWB.COM Thu Oct 13 14:39:45 2005 From: work at XWB.COM (Chip Taylor) Date: Thu, 13 Oct 2005 14:39:45 -0700 Subject: Querying the extents of a layer (shapefile) In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5132D54@s-sp22.pca.state.mn.us> Message-ID: Thanks, I have done that before but I can only do that manually. I need a method either inside of Mapserver, in VBScript in an ASPX page, in Javascript in the Template page, or PHP to do this and then pass it to Mapserver to render the next map. Chip Taylor Prepared Response, Inc. > -----Original Message----- > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Thursday, October 13, 2005 1:12 PM > To: work at XWB.COM; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] Querying the extents of a layer > (shapefile) > > You can run ogrinfo on it and get the extents > > http://ogr.maptools.org/ogr_utilities.html > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Chip Taylor > Sent: Thursday, October 13, 2005 2:34 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Querying the extents of a layer > (shapefile) > > > If I have a shapefile as a layer can I query the extents of that > shapefile from MapServer or MapScript? > > Thanks for all the help you give to us poor newbies. > > Chip Taylor > Prepared Response, Inc. From Jeroen.Ticheler at FAO.ORG Thu Oct 13 14:55:49 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Thu, 13 Oct 2005 23:55:49 +0200 Subject: time series problem 3 (Bug!?) In-Reply-To: <434EA17A.8030304@dmsolutions.ca> Message-ID: Thanks for that! Is it a complex thing to add such support? I had the impression from the code that it was virtually there already, just that it first checked for a range and does not proceed to check for ranges? The problem is that a range doesn't work for this series. Data comes in at three 10 daily periods a month, which is not exactly true as a month does not always have 30 days. Still the images are always dated with a 01, 11 and 21 for the day (or 1,2 or 3 for a dekad). Ciao, Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork 42.07436?N 12.34327?E On 13 Oct 2005, at 20:03, Yewondwossen Assefa wrote: > Hi There, > > Sorry for the late answer. > > From what I can see in your examples, you are running into a > limitation of mapserver and it's support for the time extent > values. Currently the time extent can only be defined as a range > value and only one range value is valid (so something like is the > only thing valid 2005-09-11/2005-09-21) > > You should update your "wms_timeextent" and try it with only one > range. I will enter documentation bug so that this limitation is > clearly defined. Give it a try and let me know. > > Later, > > Jeroen Ticheler wrote: > >> Hi, sorry for continuing this story, but I really want to solve >> this and hope my additional info helps to sort out the problems I >> face. >> I am using a shapefile with the imgdate column added to it. I use >> exactly the same index to work with a WCS on the same data, that >> one works perfectly fine. >> I have browsed through the mapServer sourcecode to see if I could >> discover something/ understand the problem better. I'm not >> familiar with C coding, so forgive my ignorance :-) What I could >> understand is that my request fails when the time string >> submitted in the request is compared to the timeextent given in >> the capabilities document. >> The exact section of the code is in between line 545 and line >> 569, apparently the msValidateTimeValue() procedure fails to find >> the requested date in the extent. I do not get an error when I >> change my extent to a range like >> "2005-09-11,2005-09-21/2005-09-21" or >> "2005-09-11,2005-09-11/2005-09-21", but it will only render the >> very last image, even when an earlier one is requested. >> So I guess I face a bug!? >> Thanks again, >> Jeroen >> Begin forwarded message: >> >>> From: Jeroen Ticheler >>> Date: 12 October 2005 09:54:26 GMT+02:00 >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: [UMN_MAPSERVER-USERS] time series problem 2 >>> Reply-To: Jeroen Ticheler >>> >>> >>> Further to my previous message, the exception I get is the >>> following one: >>> >>> >>> >>> msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 given >>> is invalid or outside the time extent defined >>> (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05-01,2 >>> 00 >>> 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01,2005- >>> 07 >>> -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005-09-1 >>> 1, 2005-09-21), and default time set is invalid (2005-09-21) >>> >>> >>> >>> And the URL's I use are: >>> >>> For Capabilities: >>> >>> http://193.43.36.137/cgi-bin/spotveg? >>> version=1.1.1&service=WMS&request=GetCapabilities >>> >>> For a working map without specifying the time: >>> >>> http://193.43.36.137/cgi-bin/spotveg? >>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>> 4326&bbox=-180,-90,180,90&format=image/ >>> png&layers=spotndvi&transparent=true&width=400&height=200 >>> >>> For a request with a time, the exception is returned: >>> >>> http://193.43.36.137/cgi-bin/spotveg? >>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>> 4326&bbox=-180,-90,180,90&format=image/ >>> png&layers=spotndvi&transparent=true&width=400&height=200&time=2005- >>> 09 -21 >>> >>> These URL's can be reached from outside, so you can try this >>> yourself. >>> Thanks in advance for any help to a solution, >>> Jeroen >>> >>> On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: >>> >>> >>> >>> >>>> Hi, >>>> I have a problem with time series for WMS. I have used the >>>> following WMS attributes in my map file and I get the default >>>> image the first WMS map request. The moment I start requesting >>>> maps with the time variable set, I get an exception indicating >>>> that the time format used is not correct. >>>> >>>> The data is GeoTIFF >>>> I have an index shapefile with an imgdate column containing the >>>> dates in the same format >>>> >>>> Anyone an idea, I can't find an example that has a whole range >>>> of images with a specific time set for each image. >>>> >>>> Map file extract: >>>> >>>> At the map level (although I don't think this is supported/ >>>> needed for GeoTIFF data!?) >>>> ____________________________ >>>> "wms_timeformat" "YYYY-MM-DD" >>>> ____________________________ >>>> >>>> >>>> At the layer level >>>> ____________________________ >>>> >>>> "wms_style_default_title" "default" >>>> "wms_format" "image/png" >>>> "wms_timedefault" "2005-09-11" >>>> "wms_timeextent" >>>> "2005-08-21,2005-09-01,2005-09-11" # also tried with >>>> spaces after each comma >>>> "wms_timeitem" "imgdate" >>>> >>>> END >>>> DUMP TRUE >>>> TILEINDEX 'ndvi_idx' >>>> TILEITEM "location" >>>> EXTENT -180.0 -90.0 180.0 90.0 >>>> PROJECTION "init=epsg:4326" END >>>> ____________________________ >>>> >>>> >>>> Thanks in advance, >>>> Jeroen >>>> _______________________ >>>> Jeroen Ticheler >>>> FAO-UN >>>> Tel: +39 06 57056041 >>>> http://www.fao.org/geonetwork >>>> 12.34327?N 12.34327?E >>>> >>>> >>>> >>>> >>>> >>> >>> > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > From armin.burger at GMX.NET Thu Oct 13 15:05:08 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Fri, 14 Oct 2005 00:05:08 +0200 Subject: queryByPoint accuracy/confusion In-Reply-To: Message-ID: Tim I made similar experiences with the tolerance settings. I don't know if the standard behaviour is intended like this or if it's a bug. I wanted to use pixel values because they make more sense to me than absolute distance values. With absolute values you will often find nothing for very small scales because you rarely come close enough to the point. After some trials I found out that the pixel tolerances applied by queryByPoint() seem to be valid only for the initial extent (and hence scale) specified in the map file. If you eg. zoom in, the pixel values are not valid any more. So I set the map extent before queryByPoint() to the extent of the current zoom level like $map->setExtent($minx, $miny, $maxx, $maxy); $map->queryByPoint(...); with min/max values taken from the current map extent (I take the values from the session id). This way it really takes the tolerances in pixels and the query produces the expected results. Armin Tim Norris wrote: > I am trying to query all point objects in a layer within a certain radius. > The layer is a dynamically loaded OGR (MapInfo) point layer in which I set > the 'toleranceunits' to MS_MILES and the 'tolerance' to my specific radius. > Then I simply run a $lyr_myLayer->queryByPoint($point,MS_MULTIPLE,0) and get > the count of the results $lyr_myLayer->getNumResults (all in PHP MapScript). > > I am having trouble getting correct queryByPoint results. For some reason > the radius seems to be smaller than it should. I have even drawn the query > and then manually checked the query radius on a paper map (it is small). > After a search through the list archives I could not find any similar > problems . . . > > [I have also tried $lyr_myLayer->queryByPoint($point,MS_MULTIPLE,$radius) > and I have also tried using meters and simply converting the miles radius to > meters - all the same results] > > Perhaps I am not using the queryByPoint method correctly? Is there something > extra I should know about the 'tolerance' parameter in the layer??? > > My map projection is: > PROJECTION > "proj=merc" # Mercator > "lat_0=0" # latitude of natural origin > "lon_0=0" # longitude of natural origin (central longitude) > "x_0=0" # false easting in meters > "y_0=0" # false northing in meters > END > > and all the MapInfo data is stored in a Lat/Long projection - would this > configuration cause an error???? > > Do I need to draw the layer before performing the query???? (I tried this on > one layer and there was no noticable difference). > > One solution I have thought of is to manually create a layer with the > correct circles to use for the radius queries, but this seems clumsy and > hard to change in the future (for dynamic queries) - or perhaps create a > circle feature with the correct radius and use queryByShape or > queryByFeatures . . . > > any help would be greatly appreciated > thanks > tim > tibben at ocf.berkeley.edu > > p.s. as an aside, I can use my radius as (with toleranceunits as meters OR > miles): > $int_queryRadius += $int_queryRadius/4.3 > and I get approximately the correct results - but this is really odd!! I > must be doing something incorrectly . . . > > From assefa at DMSOLUTIONS.CA Thu Oct 13 15:37:43 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 13 Oct 2005 18:37:43 -0400 Subject: time series problem 3 (Bug!?) In-Reply-To: <48DA6731-0191-43F1-8179-BDFD249DD646@FAO.ORG> Message-ID: From the specs (wms 1.1 annex c c.3), the extent could be defined in 4 ways : 1) value : A single value. This is not directly supported in Mapserver but there is an easy workwound by specifying the same value as min and max 2) value1,value2,value3,... a A list of multiple values. This is not supported in Mapserver. 3) min/max/resolution An interval defined by its lower and upper bounds and its resolution. This is supported in Mapserver (Note that the resolution is not supported) 4) min1/max1/res1,min2/max2/res2,... a A list of multiple intervals. Not supported I am willing to add the support for number 4) if you are willing to do additional testing. I am not sure if 2) is is a must have at this point. Le me know what you think and then we can proceed with the impentation. Later, Jeroen Ticheler wrote: > Thanks for that! Is it a complex thing to add such support? I had the > impression from the code that it was virtually there already, just that > it first checked for a range and does not proceed to check for ranges? > The problem is that a range doesn't work for this series. Data comes in > at three 10 daily periods a month, which is not exactly true as a month > does not always have 30 days. Still the images are always dated with a > 01, 11 and 21 for the day (or 1,2 or 3 for a dekad). > > Ciao, > Jeroen > _______________________ > Jeroen Ticheler > FAO-UN > Tel: +39 06 57056041 > http://www.fao.org/geonetwork > 42.07436?N 12.34327?E > > > On 13 Oct 2005, at 20:03, Yewondwossen Assefa wrote: > >> Hi There, >> >> Sorry for the late answer. >> >> From what I can see in your examples, you are running into a >> limitation of mapserver and it's support for the time extent values. >> Currently the time extent can only be defined as a range value and >> only one range value is valid (so something like is the only thing >> valid 2005-09-11/2005-09-21) >> >> You should update your "wms_timeextent" and try it with only one >> range. I will enter documentation bug so that this limitation is >> clearly defined. Give it a try and let me know. >> >> Later, >> >> Jeroen Ticheler wrote: >> >>> Hi, sorry for continuing this story, but I really want to solve >>> this and hope my additional info helps to sort out the problems I >>> face. >>> I am using a shapefile with the imgdate column added to it. I use >>> exactly the same index to work with a WCS on the same data, that >>> one works perfectly fine. >>> I have browsed through the mapServer sourcecode to see if I could >>> discover something/ understand the problem better. I'm not familiar >>> with C coding, so forgive my ignorance :-) What I could understand >>> is that my request fails when the time string submitted in the >>> request is compared to the timeextent given in the capabilities >>> document. >>> The exact section of the code is in between line 545 and line 569, >>> apparently the msValidateTimeValue() procedure fails to find the >>> requested date in the extent. I do not get an error when I change >>> my extent to a range like "2005-09-11,2005-09-21/2005-09-21" or >>> "2005-09-11,2005-09-11/2005-09-21", but it will only render the >>> very last image, even when an earlier one is requested. >>> So I guess I face a bug!? >>> Thanks again, >>> Jeroen >>> Begin forwarded message: >>> >>>> From: Jeroen Ticheler >>>> Date: 12 October 2005 09:54:26 GMT+02:00 >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: [UMN_MAPSERVER-USERS] time series problem 2 >>>> Reply-To: Jeroen Ticheler >>>> >>>> >>>> Further to my previous message, the exception I get is the >>>> following one: >>>> >>>> >>>> >>>> msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 given >>>> is invalid or outside the time extent defined >>>> (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05-01,2 >>>> 00 >>>> 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01,2005- >>>> 07 >>>> -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005-09-1 >>>> 1, 2005-09-21), and default time set is invalid (2005-09-21) >>>> >>>> >>>> >>>> And the URL's I use are: >>>> >>>> For Capabilities: >>>> >>>> http://193.43.36.137/cgi-bin/spotveg? >>>> version=1.1.1&service=WMS&request=GetCapabilities >>>> >>>> For a working map without specifying the time: >>>> >>>> http://193.43.36.137/cgi-bin/spotveg? >>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>> 4326&bbox=-180,-90,180,90&format=image/ >>>> png&layers=spotndvi&transparent=true&width=400&height=200 >>>> >>>> For a request with a time, the exception is returned: >>>> >>>> http://193.43.36.137/cgi-bin/spotveg? >>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>> 4326&bbox=-180,-90,180,90&format=image/ >>>> png&layers=spotndvi&transparent=true&width=400&height=200&time=2005- >>>> 09 -21 >>>> >>>> These URL's can be reached from outside, so you can try this yourself. >>>> Thanks in advance for any help to a solution, >>>> Jeroen >>>> >>>> On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: >>>> >>>> >>>> >>>> >>>>> Hi, >>>>> I have a problem with time series for WMS. I have used the >>>>> following WMS attributes in my map file and I get the default >>>>> image the first WMS map request. The moment I start requesting >>>>> maps with the time variable set, I get an exception indicating >>>>> that the time format used is not correct. >>>>> >>>>> The data is GeoTIFF >>>>> I have an index shapefile with an imgdate column containing the >>>>> dates in the same format >>>>> >>>>> Anyone an idea, I can't find an example that has a whole range of >>>>> images with a specific time set for each image. >>>>> >>>>> Map file extract: >>>>> >>>>> At the map level (although I don't think this is supported/ needed >>>>> for GeoTIFF data!?) >>>>> ____________________________ >>>>> "wms_timeformat" "YYYY-MM-DD" >>>>> ____________________________ >>>>> >>>>> >>>>> At the layer level >>>>> ____________________________ >>>>> >>>>> "wms_style_default_title" "default" >>>>> "wms_format" "image/png" >>>>> "wms_timedefault" "2005-09-11" >>>>> "wms_timeextent" >>>>> "2005-08-21,2005-09-01,2005-09-11" # also tried with >>>>> spaces after each comma >>>>> "wms_timeitem" "imgdate" >>>>> >>>>> END >>>>> DUMP TRUE >>>>> TILEINDEX 'ndvi_idx' >>>>> TILEITEM "location" >>>>> EXTENT -180.0 -90.0 180.0 90.0 >>>>> PROJECTION "init=epsg:4326" END >>>>> ____________________________ >>>>> >>>>> >>>>> Thanks in advance, >>>>> Jeroen >>>>> _______________________ >>>>> Jeroen Ticheler >>>>> FAO-UN >>>>> Tel: +39 06 57056041 >>>>> http://www.fao.org/geonetwork >>>>> 12.34327?N 12.34327?E >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >> >> -- >> ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email: assefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 (ext 14) >> Fax: (613) 565-0925 >> ---------------------------------------------------------------- >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From gthompson at LIZARDTECH.COM Thu Oct 13 15:58:47 2005 From: gthompson at LIZARDTECH.COM (Glen Thompson) Date: Thu, 13 Oct 2005 17:58:47 -0500 Subject: Problem trying to serve large .tif dataset Message-ID: Hi, I am having difficulties with mapserver 4.6 generating output with a large .tif dataset. I'm attempting to setup a large dataset to be served up via WMS. I have a .tif dataset of approximately 2000 .tif files totalling around 160k pixels by 375k pixels. Each tif image is 5000 x 5000 pixels. My workflow is as follows: create overviews for each .tif image. for each image in dataset addtiffo "file.tif" 2 4 8 16 32 64 Now, I have used gdaltindex to create a shapefile containing all of the .tif files for quickly identfying which tiles need to be accessed for a given bbox. gdaltindex shapefile.shp "path_to_tiffs/*.tif" So far, so good. I'm having good luck using getMap requests to retrieve subsets of the entire bbox. A request for a bbox that is the extent for 1 tile works great, as do larger bbox's. Based on the amount of data read by the mapserver.exe process, I can tell that it's using the overviews properly and not reading the entire source .tif file(s). When I request the entire bbox for the dataset, the mapserver.exe process runs for about 8 minutes and then seems to crash or error out or something. I don't know nor can't find any logfiles to see what is happening. Has anyone had any success dealing with datasets of this size? If so, how have you implemented them? Any help/advise would be greatly appreciated. Thank you, Glen Thompson From warmerdam at POBOX.COM Thu Oct 13 16:46:36 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 13 Oct 2005 19:46:36 -0400 Subject: Problem trying to serve large .tif dataset In-Reply-To: Message-ID: On 10/13/05, Glen Thompson wrote: > When I request the entire bbox for the dataset, the mapserver.exe process > runs for about 8 minutes and then seems to crash or error out or > something. I don't know nor can't find any logfiles to see what is > happening. Glenn, I'm not sure why it is failing in such an ugly way. However, you really don't want mapserver to have to open 2000 TIFF files to build a single map result. The normal approach is to have two layers, one with the tileindexed set of full data. The other with a low res overview in one file. Use MINSCALE and MAXSCALE to make the low res overview kick in at some point. There are various techniques to generate the low res overview. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bill at BINKO.NET Thu Oct 13 17:36:16 2005 From: bill at BINKO.NET (Bill Binko) Date: Thu, 13 Oct 2005 20:36:16 -0400 Subject: Problem trying to serve large .tif dataset In-Reply-To: <931f8ea90510131646u683fb41eya418f20247712bd@mail.gmail.com> Message-ID: > On 10/13/05, Glen Thompson wrote: > > When I request the entire bbox for the dataset, the mapserver.exe process > > runs for about 8 minutes and then seems to crash or error out or > > something. I don't know nor can't find any logfiles to see what is > > happening. > > Glenn, > > I'm not sure why it is failing in such an ugly way. However, > you really don't want mapserver to have to open 2000 TIFF > files to build a single map result. The normal approach is to > have two layers, one with the tileindexed set of full data. The > other with a low res overview in one file. Use MINSCALE and > MAXSCALE to make the low res overview kick in at some point. > > There are various techniques to generate the low res overview. Also, as Frank and I just realized, there can be a significant penalty for having the raster LAYER projection different from the MAP projection. Recent (last night) changes improve this, but are not in any released mapserver versions. So, if possible make your raster projection your output projection. Bill From shawn at SYNACK-HOSTING.COM Thu Oct 13 17:39:45 2005 From: shawn at SYNACK-HOSTING.COM (Shawn Wallbridge) Date: Thu, 13 Oct 2005 19:39:45 -0500 Subject: Problem trying to serve large .tif dataset In-Reply-To: Message-ID: On 13-Oct-05, at 5:58 PM, Glen Thompson wrote: > Hi, > > I am having difficulties with mapserver 4.6 generating output with a > large .tif dataset. I'm attempting to setup a large dataset to be > served > up via WMS. > > I have a .tif dataset of approximately 2000 .tif files totalling around > 160k pixels by 375k pixels. Each tif image is 5000 x 5000 pixels. > > > When I request the entire bbox for the dataset, the mapserver.exe > process > runs for about 8 minutes and then seems to crash or error out or > something. I don't know nor can't find any logfiles to see what is > happening. > > Has anyone had any success dealing with datasets of this size? If so, > how > have you implemented them? > > Any help/advise would be greatly appreciated. > > Thank you, > Glen Thompson > Any chance you are hitting 2GB of memory and then it's crashing? From the sounds of it you are using Windows, and in Windows 2000 a single process can't access more than 2GB of memory. For anything higher than 2GB, you either need Win2K AS or WinXP with the /3GB memory tunning. But with each, you need to run a small binary called (IIRC) imagecfg.exe against the executable file that is being run. That will enable what's called '3GB memory tuning'. Their is a knowledge base article about Windows and Memory... http://www.microsoft.com/whdc/system/platform/server/PAE/PAEmem.mspx shawn From m.tomko at PGRAD.UNIMELB.EDU.AU Thu Oct 13 17:44:24 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Fri, 14 Oct 2005 10:44:24 +1000 Subject: data export tool In-Reply-To: <931f8ea90510130831s51a74bc6o100b46f643af74d1@mail.gmail.com> Message-ID: Thank you Frank (I was hoping for your reply, seems like you are always the person to ask things like this :)) I need to create my dataset (fast vectorization), and I am ready to chose whatever format is best to do this as fast as possible. I need a topology top test with my functional programming environment, but because I am NOT a full strength programmer, compiling c++ stuff and so one sounds more like a nightmare to me :) A bit of scripting or SQL is ok :). So, you reckon that ArcINFO binary vectors would be best? ok, I will give it a try! Oh, I thing we should have such an extraction function in OGR by default!! (at least for the poor scientists trying to tune up algorithms :) Thanks Martin ---------------------------------------------- Ing. Martin Tomko PhD. candidate CRC for Spatial Information Department of Geomatics University of Melbourne Victoria 3010 Australia phone +61 3 8344 9179 fax +61 3 9349 5185 email m.tomko at pgrad.unimelb.edu.au url http://www.geom.unimelb.edu.au/tomko url http://www.spatialinformationscience.org url http://www.crcsi.com.au ---------------------------------------------- Frank Warmerdam wrote: > On 10/13/05, Martin Tomko wrote: > >>I am desperately seeking a tool/workflow o export vector data into >>text/tables with basically the arc/node topological description of my data. >> >>So If I export polygons, I need a table with the polygon IS and the IDs >>of all its arcs, without any coordinates. Does anyone know a way? >> >>I was thinking about postgress/postgis? Dump a shp in it and try an sql? >>Would ogr2ogr do it somehow? I did not find a way to include the IDs of >>the arcs of a polygon. Seems like export to CSV would help, but I need >>to get the arcs IDs somehow. > > > Martin, > > You didn't mention what data you are starting with. Is it a shapefile? > If so, part of your problems is that you need to build the topology from > a non-topological structure. As Flavio mentioned, FME would be a > good choice for that. GRASS also has support for converting > non-topological dataset to topological. > > If you are already starting with a topological Arc/Info binary vector > coverage, then you will see from the ogrinfo reports that the topology > information is available as attributes. > > OGRFeature(PAL):2 > ArcIds (IntegerList) = (1:-349) > AREA (Real) = 0.92814 > PERIMETER (Real) = 5.35872 > COUNTRYD# (Integer) = 2 > COUNTRYD-ID (Integer) = 3027 > POLYGON ((-153.022781372070312 57.383213043212891,... > > OGRFeature(ARC):1 > UserId (Integer) = 1394 > FNODE# (Integer) = 1 > TNODE# (Integer) = 2 > LPOLY# (Integer) = 24 > RPOLY# (Integer) = 26 > LINESTRING (56.360397338867188 25.983451843261719,... > > The ArcIds on the polygons and the node/poly information on the > arcs is enough to establish the topological relationships. With a > script or C++ program written on OGR you could get that information > out into a text format of some kind. > > If you use GRASS to export to E00 you could use avcimport to > convert to a binary coverage for use with OGR. FME can write > binary coverages directly. Of course, both FME and GRASS offer > other mechanisms to interact with the topology that might be more > direct. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From cresques at GMAIL.COM Thu Oct 13 17:40:41 2005 From: cresques at GMAIL.COM (Luis W. Sevilla) Date: Fri, 14 Oct 2005 02:40:41 +0200 Subject: time series problem 3 (Bug!?) In-Reply-To: <434EE1B7.3030408@dmsolutions.ca> Message-ID: Hi, Yewondwossen Assefa wrote: > From the specs (wms 1.1 annex c c.3), the extent could be defined in 4 > ways : > 1) value : A single value. This is not directly supported in > Mapserver but there is an easy workwound by specifying the same value > as min and max > > 2) value1,value2,value3,... a A list of multiple values. This is > not supported in Mapserver. > > 3) min/max/resolution An interval defined by its lower and upper > bounds and its resolution. This is supported in Mapserver (Note > that the resolution is not supported) It sounds quite strange: how do you specify the ammount of time-slices, without giving the resolution? > > 4) min1/max1/res1,min2/max2/res2,... a A list of multiple > intervals. Not supported > > > I am willing to add the support for number 4) if you are willing to > do additional testing. We may do some testing too. we're on the way of developping a new WMS cliente with time parameter support, and also interested in publising multitemporal data on the same way. > > I am not sure if 2) is is a must have at this point. > > Le me know what you think and then we can proceed with the impentation. > > Later, > > > Jeroen Ticheler wrote: > >> Thanks for that! Is it a complex thing to add such support? I had >> the impression from the code that it was virtually there already, >> just that it first checked for a range and does not proceed to check >> for ranges? >> The problem is that a range doesn't work for this series. Data comes >> in at three 10 daily periods a month, which is not exactly true as a >> month does not always have 30 days. Still the images are always >> dated with a 01, 11 and 21 for the day (or 1,2 or 3 for a dekad). >> >> Ciao, >> Jeroen >> _______________________ >> Jeroen Ticheler >> FAO-UN >> Tel: +39 06 57056041 >> http://www.fao.org/geonetwork >> 42.07436?N 12.34327?E >> >> >> On 13 Oct 2005, at 20:03, Yewondwossen Assefa wrote: >> >>> Hi There, >>> >>> Sorry for the late answer. >>> >>> From what I can see in your examples, you are running into a >>> limitation of mapserver and it's support for the time extent >>> values. Currently the time extent can only be defined as a range >>> value and only one range value is valid (so something like is the >>> only thing valid 2005-09-11/2005-09-21) >>> >>> You should update your "wms_timeextent" and try it with only one >>> range. I will enter documentation bug so that this limitation is >>> clearly defined. Give it a try and let me know. >>> >>> Later, >>> >>> Jeroen Ticheler wrote: >>> >>>> Hi, sorry for continuing this story, but I really want to solve >>>> this and hope my additional info helps to sort out the problems I >>>> face. >>>> I am using a shapefile with the imgdate column added to it. I use >>>> exactly the same index to work with a WCS on the same data, that >>>> one works perfectly fine. >>>> I have browsed through the mapServer sourcecode to see if I could >>>> discover something/ understand the problem better. I'm not >>>> familiar with C coding, so forgive my ignorance :-) What I could >>>> understand is that my request fails when the time string >>>> submitted in the request is compared to the timeextent given in >>>> the capabilities document. >>>> The exact section of the code is in between line 545 and line >>>> 569, apparently the msValidateTimeValue() procedure fails to find >>>> the requested date in the extent. I do not get an error when I >>>> change my extent to a range like >>>> "2005-09-11,2005-09-21/2005-09-21" or >>>> "2005-09-11,2005-09-11/2005-09-21", but it will only render the >>>> very last image, even when an earlier one is requested. >>>> So I guess I face a bug!? >>>> Thanks again, >>>> Jeroen >>>> Begin forwarded message: >>>> >>>>> From: Jeroen Ticheler >>>>> Date: 12 October 2005 09:54:26 GMT+02:00 >>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>> Subject: [UMN_MAPSERVER-USERS] time series problem 2 >>>>> Reply-To: Jeroen Ticheler >>>>> >>>>> >>>>> Further to my previous message, the exception I get is the >>>>> following one: >>>>> >>>>> >>>>> >>>>> msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 given >>>>> is invalid or outside the time extent defined >>>>> (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05-01,2 >>>>> 00 >>>>> 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01,2005- >>>>> 07 >>>>> -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005-09-1 >>>>> 1, 2005-09-21), and default time set is invalid (2005-09-21) >>>>> >>>>> >>>>> >>>>> And the URL's I use are: >>>>> >>>>> For Capabilities: >>>>> >>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>> version=1.1.1&service=WMS&request=GetCapabilities >>>>> >>>>> For a working map without specifying the time: >>>>> >>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>> png&layers=spotndvi&transparent=true&width=400&height=200 >>>>> >>>>> For a request with a time, the exception is returned: >>>>> >>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>> png&layers=spotndvi&transparent=true&width=400&height=200&time=2005- >>>>> 09 -21 >>>>> >>>>> These URL's can be reached from outside, so you can try this >>>>> yourself. >>>>> Thanks in advance for any help to a solution, >>>>> Jeroen >>>>> >>>>> On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Hi, >>>>>> I have a problem with time series for WMS. I have used the >>>>>> following WMS attributes in my map file and I get the default >>>>>> image the first WMS map request. The moment I start requesting >>>>>> maps with the time variable set, I get an exception indicating >>>>>> that the time format used is not correct. >>>>>> >>>>>> The data is GeoTIFF >>>>>> I have an index shapefile with an imgdate column containing the >>>>>> dates in the same format >>>>>> >>>>>> Anyone an idea, I can't find an example that has a whole range >>>>>> of images with a specific time set for each image. >>>>>> >>>>>> Map file extract: >>>>>> >>>>>> At the map level (although I don't think this is supported/ >>>>>> needed for GeoTIFF data!?) >>>>>> ____________________________ >>>>>> "wms_timeformat" "YYYY-MM-DD" >>>>>> ____________________________ >>>>>> >>>>>> >>>>>> At the layer level >>>>>> ____________________________ >>>>>> >>>>>> "wms_style_default_title" "default" >>>>>> "wms_format" "image/png" >>>>>> "wms_timedefault" "2005-09-11" >>>>>> "wms_timeextent" >>>>>> "2005-08-21,2005-09-01,2005-09-11" # also tried with >>>>>> spaces after each comma >>>>>> "wms_timeitem" "imgdate" >>>>>> >>>>>> END >>>>>> DUMP TRUE >>>>>> TILEINDEX 'ndvi_idx' >>>>>> TILEITEM "location" >>>>>> EXTENT -180.0 -90.0 180.0 90.0 >>>>>> PROJECTION "init=epsg:4326" END >>>>>> ____________________________ >>>>>> >>>>>> >>>>>> Thanks in advance, >>>>>> Jeroen >>>>>> _______________________ >>>>>> Jeroen Ticheler >>>>>> FAO-UN >>>>>> Tel: +39 06 57056041 >>>>>> http://www.fao.org/geonetwork >>>>>> 12.34327?N 12.34327?E >>>>> >>> ---------------------------------------------------------------- >>> Assefa Yewondwossen >>> Software Analyst >>> >>> Email: assefa at dmsolutions.ca >>> http://www.dmsolutions.ca/ >>> >>> Phone: (613) 565-5056 (ext 14) >>> Fax: (613) 565-0925 >>> ---------------------------------------------------------------- >> gvSIG development Team www.gvsig.gva.es From cresques at GMAIL.COM Thu Oct 13 17:53:28 2005 From: cresques at GMAIL.COM (Luis W. Sevilla) Date: Fri, 14 Oct 2005 02:53:28 +0200 Subject: Problem trying to serve large .tif dataset In-Reply-To: Message-ID: Bill Binko wrote: > Also, as Frank and I just realized, there can be a significant penalty > for > having the raster LAYER projection different from the MAP projection. > Recent (last night) changes improve this, but are not in any released > mapserver versions. So, if possible make your raster projection your > output projection. Referring to trying to get raster data on a differente projection than layer's one, we've being having problems trying to get together 3 raster layers, with a couple of MrSID Landsat Mosaics each one. Layers are on UTM on 3 different but contiguous zones, south hemisphere, and we tryed to get them on EPSG:4326 : It doesn't worked at all. Each one by itshelf reprojects well, but together we got nothing. We're tryed same but with north hemisphere mosaics and everything worked fine. Any clues or may be a king of strange bug? Thanks in advance Luis From assefa at DMSOLUTIONS.CA Thu Oct 13 19:43:55 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 13 Oct 2005 22:43:55 -0400 Subject: time series problem 3 (Bug!?) In-Reply-To: <434EFE89.2040206@gmail.com> Message-ID: Luis W. Sevilla wrote: > Hi, > Yewondwossen Assefa wrote: > >> From the specs (wms 1.1 annex c c.3), the extent could be defined in 4 >> ways : >> 1) value : A single value. This is not directly supported in >> Mapserver but there is an easy workwound by specifying the same value >> as min and max >> >> 2) value1,value2,value3,... a A list of multiple values. This is >> not supported in Mapserver. >> >> 3) min/max/resolution An interval defined by its lower and upper >> bounds and its resolution. This is supported in Mapserver (Note >> that the resolution is not supported) > > > It sounds quite strange: how do you specify the ammount of time-slices, > without giving the resolution? > You can specify the resolutions in your setting of the wms_timeextent parameter. It should be dumped as is in the capabilities document. It just won't be used when validating the time value passed in the request to see if the value fits in the time extents defined. The validation will only use the min max values. >> >> 4) min1/max1/res1,min2/max2/res2,... a A list of multiple >> intervals. Not supported >> >> >> I am willing to add the support for number 4) if you are willing to >> do additional testing. > > > We may do some testing too. we're on the way of developping a new WMS > cliente with time parameter support, and also interested in publising > multitemporal data on the same way. > ' I have entred a bug on this issue so discussions/testing can be done through this bug. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1498 >> >> I am not sure if 2) is is a must have at this point. >> >> Le me know what you think and then we can proceed with the impentation. >> >> Later, >> >> >> Jeroen Ticheler wrote: >> >>> Thanks for that! Is it a complex thing to add such support? I had >>> the impression from the code that it was virtually there already, >>> just that it first checked for a range and does not proceed to check >>> for ranges? >>> The problem is that a range doesn't work for this series. Data comes >>> in at three 10 daily periods a month, which is not exactly true as a >>> month does not always have 30 days. Still the images are always >>> dated with a 01, 11 and 21 for the day (or 1,2 or 3 for a dekad). >>> >>> Ciao, >>> Jeroen >>> _______________________ >>> Jeroen Ticheler >>> FAO-UN >>> Tel: +39 06 57056041 >>> http://www.fao.org/geonetwork >>> 42.07436?N 12.34327?E >>> >>> >>> On 13 Oct 2005, at 20:03, Yewondwossen Assefa wrote: >>> >>>> Hi There, >>>> >>>> Sorry for the late answer. >>>> >>>> From what I can see in your examples, you are running into a >>>> limitation of mapserver and it's support for the time extent >>>> values. Currently the time extent can only be defined as a range >>>> value and only one range value is valid (so something like is the >>>> only thing valid 2005-09-11/2005-09-21) >>>> >>>> You should update your "wms_timeextent" and try it with only one >>>> range. I will enter documentation bug so that this limitation is >>>> clearly defined. Give it a try and let me know. >>>> >>>> Later, >>>> >>>> Jeroen Ticheler wrote: >>>> >>>>> Hi, sorry for continuing this story, but I really want to solve >>>>> this and hope my additional info helps to sort out the problems I >>>>> face. >>>>> I am using a shapefile with the imgdate column added to it. I use >>>>> exactly the same index to work with a WCS on the same data, that >>>>> one works perfectly fine. >>>>> I have browsed through the mapServer sourcecode to see if I could >>>>> discover something/ understand the problem better. I'm not >>>>> familiar with C coding, so forgive my ignorance :-) What I could >>>>> understand is that my request fails when the time string >>>>> submitted in the request is compared to the timeextent given in >>>>> the capabilities document. >>>>> The exact section of the code is in between line 545 and line >>>>> 569, apparently the msValidateTimeValue() procedure fails to find >>>>> the requested date in the extent. I do not get an error when I >>>>> change my extent to a range like >>>>> "2005-09-11,2005-09-21/2005-09-21" or >>>>> "2005-09-11,2005-09-11/2005-09-21", but it will only render the >>>>> very last image, even when an earlier one is requested. >>>>> So I guess I face a bug!? >>>>> Thanks again, >>>>> Jeroen >>>>> Begin forwarded message: >>>>> >>>>>> From: Jeroen Ticheler >>>>>> Date: 12 October 2005 09:54:26 GMT+02:00 >>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>> Subject: [UMN_MAPSERVER-USERS] time series problem 2 >>>>>> Reply-To: Jeroen Ticheler >>>>>> >>>>>> >>>>>> Further to my previous message, the exception I get is the >>>>>> following one: >>>>>> >>>>>> >>>>>> >>>>>> msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 given >>>>>> is invalid or outside the time extent defined >>>>>> (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05-01,2 >>>>>> 00 >>>>>> 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01,2005- >>>>>> 07 >>>>>> -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005-09-1 >>>>>> 1, 2005-09-21), and default time set is invalid (2005-09-21) >>>>>> >>>>>> >>>>>> >>>>>> And the URL's I use are: >>>>>> >>>>>> For Capabilities: >>>>>> >>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>> version=1.1.1&service=WMS&request=GetCapabilities >>>>>> >>>>>> For a working map without specifying the time: >>>>>> >>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>>> png&layers=spotndvi&transparent=true&width=400&height=200 >>>>>> >>>>>> For a request with a time, the exception is returned: >>>>>> >>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>>> png&layers=spotndvi&transparent=true&width=400&height=200&time=2005- >>>>>> 09 -21 >>>>>> >>>>>> These URL's can be reached from outside, so you can try this >>>>>> yourself. >>>>>> Thanks in advance for any help to a solution, >>>>>> Jeroen >>>>>> >>>>>> On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi, >>>>>>> I have a problem with time series for WMS. I have used the >>>>>>> following WMS attributes in my map file and I get the default >>>>>>> image the first WMS map request. The moment I start requesting >>>>>>> maps with the time variable set, I get an exception indicating >>>>>>> that the time format used is not correct. >>>>>>> >>>>>>> The data is GeoTIFF >>>>>>> I have an index shapefile with an imgdate column containing the >>>>>>> dates in the same format >>>>>>> >>>>>>> Anyone an idea, I can't find an example that has a whole range >>>>>>> of images with a specific time set for each image. >>>>>>> >>>>>>> Map file extract: >>>>>>> >>>>>>> At the map level (although I don't think this is supported/ >>>>>>> needed for GeoTIFF data!?) >>>>>>> ____________________________ >>>>>>> "wms_timeformat" "YYYY-MM-DD" >>>>>>> ____________________________ >>>>>>> >>>>>>> >>>>>>> At the layer level >>>>>>> ____________________________ >>>>>>> >>>>>>> "wms_style_default_title" "default" >>>>>>> "wms_format" "image/png" >>>>>>> "wms_timedefault" "2005-09-11" >>>>>>> "wms_timeextent" >>>>>>> "2005-08-21,2005-09-01,2005-09-11" # also tried with >>>>>>> spaces after each comma >>>>>>> "wms_timeitem" "imgdate" >>>>>>> >>>>>>> END >>>>>>> DUMP TRUE >>>>>>> TILEINDEX 'ndvi_idx' >>>>>>> TILEITEM "location" >>>>>>> EXTENT -180.0 -90.0 180.0 90.0 >>>>>>> PROJECTION "init=epsg:4326" END >>>>>>> ____________________________ >>>>>>> >>>>>>> >>>>>>> Thanks in advance, >>>>>>> Jeroen >>>>>>> _______________________ >>>>>>> Jeroen Ticheler >>>>>>> FAO-UN >>>>>>> Tel: +39 06 57056041 >>>>>>> http://www.fao.org/geonetwork >>>>>>> 12.34327?N 12.34327?E >>>>>> >>>>>> >>>> ---------------------------------------------------------------- >>>> Assefa Yewondwossen >>>> Software Analyst >>>> >>>> Email: assefa at dmsolutions.ca >>>> http://www.dmsolutions.ca/ >>>> >>>> Phone: (613) 565-5056 (ext 14) >>>> Fax: (613) 565-0925 >>>> ---------------------------------------------------------------- >>> >>> > gvSIG development Team > www.gvsig.gva.es > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Jukka.Sirvio at ARBONAUT.COM Thu Oct 13 19:17:49 2005 From: Jukka.Sirvio at ARBONAUT.COM (Jukka =?iso-8859-1?Q?Sirvi=F6?=) Date: Fri, 14 Oct 2005 05:17:49 +0300 Subject: MapServer and Oracle Spatial In-Reply-To: <434ECC1A.7010706@univali.br> Message-ID: Hello! Thanks Fernando, this how-to is more exact now. It should be a bit easier to combine the great powers of Oracle spatial and MapServer. Jukka ps. I was not able to modify the mentioned page myself even after I registered and logged in. Fernando Simon 13/10/2005 18:05 To: Bart van den Eijnden cc: MAPSERVER-USERS at LISTS.UMN.EDU, Jukka.Sirvio at ARBONAUT.COM Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle Spatial Hi Bart and Jukka, I updated the Oracle Spatial howto in Mapserver site (http://ms.gis.umn.edu/docs/howto/oracle_spatial_howto) with the last information about the Oracle Spatial connection. Regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Bart van den Eijnden wrote: >Hi Jukka, > >the Wiki is read-only because of spam so no new content can be added there. > >Please add the comments on the new Plone site, you can do it yourself there: > >http://ms.gis.umn.edu/docs/howto/oracle_spatial_howto/view?searchterm=oracle%20spatial > >First join the site, then you can add comments. Thanks in advance. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > > >>>>Jukka Sirvi? 13-10-2005 15:03:16 >>> >>>> >>>> >Ok, thank you for help, >MapServer native support for oracle spatial seems to be working now. > >Could you (or probaply the author: Bart van den Eijnden, The Netherlands, >bartvde at xs4all.nl) add following comments to Oracle Spatial >MaopServerWiki: > >========= >For Windows users: >Add following enviroment variables (under System) pointing to your actual >oracle client home directory, these variables tell the MapServer where the >oracle client binaries and tnsnames.ora information can be found. If you >receive errormessage like "Error: .". It's related with access to Oracle >files and you should check these enviroment variables! >ORACLE_SID "database sid from tnsnames.ora" >TNS_ADMIN "folder where the tnsnames.ora exist" >ORACLE_HOME "oracle client home directory" >========= > > >Yours: >Jukka > > > > > > >Fernando Simon >13/10/2005 08:48 > > To: Jukka Sirvi? > cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle >Spatial > > >Hi Jukka, > This error occur when the Mapserver can't access the ORACLE_HOME >directory. > When the Oracle Spatial connection return an empty error: "Error: >.". It's relate with access to Oracle files. > In your case I believe that if you set the same enviroments in >console this error disappear. > Can you set the Oracle enviroments in console (as System variables >in Windows) instead of httpd env? > Here, for Windows, I use the Hobu Mapserver binaries >(http://hobu.stat.iastate.edu/mapserver/) with Oracle Spatial support. > Thanks again. > >------------------------------------------------------------------------ >Fernando Simon >Mapserver and Oracle Spatial developer >G10 - Laboratorio de Computacao Aplicada - Brazil >http://www.univali.br/g10 - UNIVALI/CTTMAR >------------------------------------------------------------------------ > > > > >Jukka Sirvi? wrote: > > > >>Hello Fernando! >>Sorry for not including the information from original threads to my >>message, Below is the headers of earlier discussions, I face exatly same >>kind of problems even after the proposed solutions.Wiki for MapServer + >>Ora Spatial does not give any additional information >>(http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial). >> >>Mapserver error is : >>msDrawMap(): Image handling error. Failed to draw layer named 'xxxx'. >>msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI >>Handlers. Connection failure. Check the connection string. Error: . >> >>My httpd.conf contains following: >>SetEnv MS_ERRORFILE "D:\Apache2\logs\stderr_mapserver.log" >>SetEnv ORACLE_SID UDIGTEST >>SetEnv ORACLE_BASE "C:\Oracle\" >>SetEnv ORACLE_HOME "C:\Oracle\10.1.0Client_1\" >>SetEnv TNS_ADMIN "C:\Oracle\10.1.0Client_1\network\admin\" >> >>And my mapfile have following entry: >>CONNECTIONTYPE oraclespatial >>CONNECTION "xxx/xxx at UDIGTEST" >>DATA "GEOLOC FROM METSIKKOKUVIOT" >>TYPE POLYGON >> >>And my tnsnames.ora have following entry (works with sqlplus and >> >> >tnsping): > > >>UDIGTEST = >> (DESCRIPTION = >> (ADDRESS_LIST = >> (ADDRESS = (PROTOCOL = TCP)(HOST = jukka)(PORT = 1521)) >> ) >> (CONNECT_DATA = >> (SERVICE_NAME = udigtest) >> ) >> ) >> >>I tried several mapserver binaries which include oracle support. Next I >>will try different mapserver binaries against 10g database (currently >>testing against 9.2.0.6 -release) >> >>-Jukka >>:::::::::::::::::::::::::::::::::::: >>:::::: THREAD1 :::::: >>:::::::::::::::::::::::::::::::::::: >>Date: Thu, 11 Aug 2005 08:49:31 +0200 >>Reply-To: Fran?ois Prunayre >>Sender: UMN MapServer Users List >>From: Fran?ois Prunayre >>Organization: Office International de l'Eau >>Subject: Re: Oracle / OCI error >>In-Reply-To: <42F7581A.4050505 at univali.br> >>Content-Type: text/plain; charset="iso-8859-1" >> >>:::::::::::::::::::::::::::::::::::: >>:::::: THREAD2 :::::: >>:::::::::::::::::::::::::::::::::::: >>Date: Wed, 26 Jan 2005 08:41:48 +0000 >>Reply-To: "Fernando S." >>Sender: UMN MapServer Users List >>From: "Fernando S." >>Subject: Re: MapServer and Oracle Spatial >>In-Reply-To: <41F6DEDC.4070009 at alumni.sfu.ca> >>Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> >> >> >> >> >>Fernando Simon >>12/10/2005 14:57 >> >> To: Jukka Sirvi? , >>MAPSERVER-USERS at LISTS.UMN.EDU >> cc: >> Subject: Re: [UMN_MAPSERVER-USERS] MapServer and Oracle >>Spatial >> >> >>Hi Jukka, >> I didn't understand the situation that you described, can you sent >>the error message that Mapserver returned? >> Thanks again. >> >>------------------------------------------------------------------------ >>Fernando Simon >>Mapserver and Oracle Spatial developer >>G10 - Laboratorio de Computacao Aplicada - Brazil >>http://www.univali.br/g10 - UNIVALI/CTTMAR >>------------------------------------------------------------------------ >> >> >>Jukka Sirvi? wrote: >> >> >> >> >> >>>Hello! >>>I have exatly same situation, but I'm receiving the same errormessage >>> >>> >>> >>> >>even >> >> >> >> >>>after setting the apache enviroment variables. MapServer is running on >>> >>> >>> >>> >>Win >> >> >> >> >>>XP sp1 with Apache 2.0.54 (tested also on win NT 4.0 with apache 1.3.33) >>> >>>There is read / write access to oracle_home for anyone -user. >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> > > > From john.hagstrand at INTERAGERESEARCH.COM Fri Oct 14 00:21:31 2005 From: john.hagstrand at INTERAGERESEARCH.COM (John Hagstrand) Date: Fri, 14 Oct 2005 02:21:31 -0500 Subject: google maps projection Message-ID: Thanks, Ed. You were right. It works great. Thanks also to Stephen Woodbridge who supplied the projection information. John >On Wed, 12 Oct 2005, Ed McNierney wrote: >I'd suggest the following... > > proj=merc > lat_ts=0.0 > lon_0=-90.0 > x_0=0.0 > y_0=0.0 > ellps=GRS80 > units=m > no_defs > >>-----Original Message----- >> >>I've been told that: >>Google Maps uses the Mercator projection and the WGS 84 geodetic datum. >>The projection standard latitude is 0, and the projection standard >>longitude is -90. >> >>How can I translate that to a MapServer Projection block? From crazygecko at GMAIL.COM Fri Oct 14 01:34:09 2005 From: crazygecko at GMAIL.COM (Xin) Date: Fri, 14 Oct 2005 09:34:09 +0100 Subject: Query to map parts of shapefiles In-Reply-To: Message-ID: Perhaps this tutorial will be of help: http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_persistent/test.map&program=/cgi-bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/local/www/docs_maps/tmp/&map_web_imageurl=/tmp/ Xin On 13/10/05, Chip Taylor wrote: > > I apologize if the title is somewhat misleading. What I am trying to do > should be pretty common but I have not found a solution. > > Environment: > Mapserver 4.6 running under Apache on Windows (soon to be changed to IIS > on Windows) > No database. PostGIS or MySQL to be added later. > Little experience with PHP, MapScript in learning process > > Data: > Shapefiles of US, states, counties (all polygons) > > Desired result: > 1. User brings up map of US and sees outlines of states. (have that > working - no problem). > 2. User selects a state by clicking somewhere within the state polygon OR > enters state name in text box (user choice - either is valid option) > 3. MapServer redraws map with desired state as extents > 4. User selects county from state by clicking somewhere within the county > boundary polygon or enters county name in text box (user choice - either > is > valid option) > 5. Mapserver redraws map with desired county as extents. > 6. All this should be accomplished using the same base mapfile defining > layers, etc. > > Any help with 2-6 would be most helpful. Thanks in advance. > > Chip Taylor > Prepared Response, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dirk at ADVTECHME.COM Fri Oct 14 03:11:08 2005 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Fri, 14 Oct 2005 14:11:08 +0400 Subject: Problem trying to serve large .tif dataset In-Reply-To: Message-ID: On Thu, Oct 13, 2005 at 05:58:47PM -0500, Glen Thompson wrote: > When I request the entire bbox for the dataset, the mapserver.exe process > runs for about 8 minutes and then seems to crash or error out or > something. I don't know nor can't find any logfiles to see what is > happening. > > Has anyone had any success dealing with datasets of this size? If so, how > have you implemented them? We have been having a similar problem. We used PHP/Mapscript to deal with TIFF images. Both for the generation as well as for the reading we sometimes hit PHP's maximum-execution time. The maximum configured value is 2 minutes, but since most proper renderings are done after a few seconds rendering time this huge ammount does not appear resonable. We suspect a bug in either mapserver or one of the associated libraries, but we haven't hunted it down yet. Our temporary workaround has been to convert the TIFF images to georeferenced PNGs and then using these. Dirk Tilger Advanced Technologies ME FZ LLC Tel +971 4 367 1071 Fax +971 4 367 2529 Mob +971 50 8809132 +966 55 1650025 From alonsarp at UM.ES Thu Oct 13 11:56:03 2005 From: alonsarp at UM.ES (Francisco Alonso) Date: Thu, 13 Oct 2005 20:56:03 +0200 Subject: [GRASSLIST:8620] Re: GRASS, gdal and mapserver In-Reply-To: <340505ef0510140238x398906cy2ebdef2ed7ac982@mail.gmail.com> Message-ID: > On 10/13/05, Francisco Alonso wrote: > > El Viernes, 14 de Octubre de 2005 10:25, Radim Blazek escribi?: > > > On 10/12/05, Francisco Alonso wrote: > > > > # ogrinfo > > > > /var/www/grass5_mapserver/spearfish60/PERMANENT/vector/streams/head > > > > Warning 1: GRASS warning: GISBASE enviroment variable was not set, > > > > using: /usr/local/grass-6.0.1 > > > > ogrinfo: relocation error: /usr/local/lib/gdalplugins/ogr_GRASS.so: > > > > undefined symbol: Vect_set_fatal_error > > > Ok I have it. After realizing that # ldd ogr_GRASS.so didn't mention the grass vector library I remembered that I had linked just the grass libraries needed by gdal. On the other hand the makefile I obtained with: ./configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/local/grass-6.0.1 doesn't include any -lgrass_vect, so I put it myself just to try. After that ldd ogr_GRASS .so did complain about libgrass_vect. I linked it, and after some more links and incluiding -lgrass_dbmidriver in the LIBS line of the Makefile I have ogrinfo working properly: # ogrinfo /var/www/grass5_mapserver/spearfish60/PERMANENT/vector/streams/head Warning 1: GRASS warning: GISBASE enviroment variable was not set, using: /usr/local/grass-6.0.1 INFO: Open of `/var/www/grass5_mapserver/spearfish60/PERMANENT/vector/streams/head' using driver `GRASS' successful. 1: 0 2: 1 Thanks a lot for your suggestions. I am still working on my other problem (mapserver not showing GRASS raster files that gdal can read) I tried to gdal_translate the spearfish soils layer to pcraster and reading it with mapserver (ugly colours but it worked) so it seem that grass-gdal connection works and mapserver-gdal also works. And now I have changed the roads layer definition in the map file to read the roads grass layer instead of shape (I'm workig with spearfish demo): LAYER NAME roads TYPE LINE STATUS DEFAULT DATA /var/www/grass5_mapserver/spearfish60/PERMANENT/vector/roads/head TOLERANCE 5 LABELITEM CAT_ID TEMPLATE /var/www/grass5_mapserver/spearfish/roads.html # OFFSITE 0 CLASS NAME "Road" COLOR 80 80 80 LABEL POSITION CC SIZE SMALL COLOR 0 0 225 END END END but I have a prettty similar error message # /usr/local/mapserver-4.6.1/shp2img -m /var/www/grass5_mapserver/map-script/mapserver.map -o mapa.png msDrawMap(): Image handling error. Failed to draw layer named 'roads'.
msSHPOpenFile(): Unable to access file. (/var/www/grass5_mapserver/spearfish60/PERMANENT/vector/roads/head)
msSHPOpenFile(): Unable to access file. (/var/www/grass5_mapserver/spearfish60/PERMANENT/vector/roads/head)
but the file DO exist, do I need to specify in any way that it is a GRASS file? Do you know where you can download the files of the demo 2 accesible from http://grass.itc.it/start.html ? I will continue trying, but if anyone has suggestions .... Paco -- Francisco Alonso Sarr?a Departamento de Geograf?a (Area de Geograf?a F?sica) Universidad de Murcia. Campus La Merced E-30001 Murcia Telfn: +34 968364357 www.um.es/geograf/sigmur From anthes at IVE-MBH.DE Fri Oct 14 05:03:31 2005 From: anthes at IVE-MBH.DE (Ralph Anthes) Date: Fri, 14 Oct 2005 14:03:31 +0200 Subject: PHP/MapScript: WRAP failed In-Reply-To: <434BC348.6070105@dmsolutions.ca> Message-ID: Hi, the wrap in PHP/Mapscript is not working with a label-object. $label->set("wrap"," "); I want to wrap at whitespaces of a description. When I use the wrap in the map file it works fine. Thank you for your help. Regards Ralph -- Dipl.-Ing. Ralph Anthes Ingenieurgesellschaft f?r Verkehrs- und Eisenbahnwesen mbH http://www.ive-mbh.de From alonsarp at UM.ES Thu Oct 13 13:07:29 2005 From: alonsarp at UM.ES (Francisco Alonso) Date: Thu, 13 Oct 2005 22:07:29 +0200 Subject: [GRASSLIST:8620] Re: GRASS, gdal and mapserver In-Reply-To: <340505ef0510140238x398906cy2ebdef2ed7ac982@mail.gmail.com> Message-ID: Hi all: May be I have mised some step: 1- I compiled gdal without grass 2- I compiled grass with gdal (v.in.ogr, v.out.ogr, etc. work fine) 3- I compile the gdal-grass package (fixing some problems in the Makefile to access grass vector libraries) 4- I stored ogr_GRASS.so and gdal_GRASS.so a in /usr/local/lib/gdalplugins/ Now ogrinfo and gdalinfo can read GRASS files because they load the plugins # gdalinfo --formats|grep GRASS GRASS (ro): GRASS Database Rasters (5.7+) # ogrinfo --formats|grep GRASS -> "GRASS" (readonly) but gdal-config is a script created before the plugins and aparently doesn't know about them # gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf rik bsb gif jpeg png pcraster probably the same problem with libgdal.so and when I compile mapserver it doesn't think he can read GRASS files. I think I missed something, I'm not to sure about what ldconfig does but I have run it each time I made a change ;-) Any idea Thanks in advance PAco > Vector library is obviously missing. > > Radim > > On 10/13/05, Francisco Alonso wrote: > > El Viernes, 14 de Octubre de 2005 10:25, Radim Blazek escribi?: > > > On 10/12/05, Francisco Alonso wrote: > > > > # ogrinfo > > > > /var/www/grass5_mapserver/spearfish60/PERMANENT/vector/streams/head > > > > Warning 1: GRASS warning: GISBASE enviroment variable was not set, > > > > using: /usr/local/grass-6.0.1 > > > > ogrinfo: relocation error: /usr/local/lib/gdalplugins/ogr_GRASS.so: > > > > undefined symbol: Vect_set_fatal_error > > > > > > ldd /usr/local/lib/gdalplugins/ogr_GRASS.so ? > > > > > > Radim > > > > # ldd /usr/local/lib/gdalplugins/ogr_GRASS.so > > libgrass_I.so => /usr/lib/libgrass_I.so (0x40014000) > > libgrass_vask.so => /usr/lib/libgrass_vask.so (0x40026000) > > libgrass_gmath.so => /usr/lib/libgrass_gmath.so (0x4002c000) > > libgrass_gis.so => /usr/lib/libgrass_gis.so (0x40032000) > > libgrass_datetime.so => /usr/lib/libgrass_datetime.so > > (0x400b9000) libgrass_gproj.so => /usr/lib/libgrass_gproj.so (0x400c1000) > > libgdal.so.1 => /usr/lib/libgdal.so.1 (0x400c9000) > > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40493000) > > libm.so.6 => /lib/tls/libm.so.6 (0x4054d000) > > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4056f000) > > libc.so.6 => /lib/tls/libc.so.6 (0x40578000) > > libfftw.so.2 => /usr/lib/libfftw.so.2 (0x406ad000) > > libz.so.1 => /usr/lib/libz.so.1 (0x406e1000) > > libncurses.so.5 => /lib/libncurses.so.5 (0x406f4000) > > libproj.so.0 => /usr/lib/libproj.so.0 (0x40733000) > > libgeos.so.2 => /usr/lib/libgeos.so.2 (0x40768000) > > libpq.so.3 => /usr/lib/libpq.so.3 (0x4085b000) > > librt.so.1 => /lib/tls/librt.so.1 (0x40876000) > > libdl.so.2 => /lib/tls/libdl.so.2 (0x4087c000) > > libodbc.so.1 => /usr/lib/libodbc.so.1 (0x40880000) > > libxerces-c.so.26 => /usr/lib/libxerces-c.so.26 (0x408f8000) > > libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 > > (0x40c42000) libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0x40c8f000) > > libdf.so.4 => /usr/lib/libdf.so.4 (0x40cb1000) > > libungif.so.4 => /usr/lib/libungif.so.4 (0x40d50000) > > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40d59000) > > libtiff.so.4 => /usr/lib/libtiff.so.4 (0x40d77000) > > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40dc7000) > > libnetcdf.so.3 => /usr/lib/libnetcdf.so.3 (0x40dec000) > > libcfitsio.so.2 => /usr/lib/libcfitsio.so.2 (0x40e0f000) > > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40f7d000) > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 > > (0x40f8d000) libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 > > (0x40fbe000) > > libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x410bd000) > > libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0x41125000) > > libresolv.so.2 => /lib/tls/libresolv.so.2 (0x41152000) > > libnsl.so.1 => /lib/tls/libnsl.so.1 (0x41164000) > > libltdl.so.3 => /usr/lib/libltdl.so.3 (0x41179000) > > libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x41180000) > > libcom_err.so.2 => /lib/libcom_err.so.2 (0x411a3000) > > -- Francisco Alonso Sarr?a Departamento de Geograf?a (Area de Geograf?a F?sica) Universidad de Murcia. Campus La Merced E-30001 Murcia Telfn: +34 968364357 www.um.es/geograf/sigmur From dirk at ADVTECHME.COM Fri Oct 14 06:01:03 2005 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Fri, 14 Oct 2005 17:01:03 +0400 Subject: PHP/MapScript: WRAP failed In-Reply-To: <434F9E93.4060108@ive-mbh.de> Message-ID: On Fri, Oct 14, 2005 at 02:03:31PM +0200, Ralph Anthes wrote: > $label->set("wrap"," "); > > I want to wrap at whitespaces of a description. When I use the wrap in > the map file it works fine. I've never used label objects. I had a quick look at mapscript and I would give... | $label->set("wrap",32); ... a try. Dirk. From David.Fawcett at STATE.MN.US Fri Oct 14 06:17:53 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 14 Oct 2005 08:17:53 -0500 Subject: Querying the extents of a layer (shapefile) Message-ID: I would suggest that you give us a little more info. Lay out what you are trying to do, most likely, someone will have an idea of how to get you there. David. -----Original Message----- From: work at XWB.COM [mailto:work at XWB.COM] Sent: Thursday, October 13, 2005 4:40 PM To: 'Fawcett, David'; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Querying the extents of a layer (shapefile) Thanks, I have done that before but I can only do that manually. I need a method either inside of Mapserver, in VBScript in an ASPX page, in Javascript in the Template page, or PHP to do this and then pass it to Mapserver to render the next map. Chip Taylor Prepared Response, Inc. > -----Original Message----- > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Thursday, October 13, 2005 1:12 PM > To: work at XWB.COM; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] Querying the extents of a layer > (shapefile) > > You can run ogrinfo on it and get the extents > > http://ogr.maptools.org/ogr_utilities.html > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Chip Taylor > Sent: Thursday, October 13, 2005 2:34 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Querying the extents of a layer > (shapefile) > > > If I have a shapefile as a layer can I query the extents of that > shapefile from MapServer or MapScript? > > Thanks for all the help you give to us poor newbies. > > Chip Taylor > Prepared Response, Inc. From jeff2005 at SVS.GSFC.NASA.GOV Fri Oct 14 06:26:25 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Fri, 14 Oct 2005 09:26:25 -0400 Subject: time series problem 3 (Bug!?) In-Reply-To: <434EE1B7.3030408@dmsolutions.ca> Message-ID: Yewondwossen Assefa wrote: > From the specs (wms 1.1 annex c c.3), the extent could be defined in 4 > ways : [most of which are not directly supported in Mapserver. If you write a CGI script that does a bit of preprocessing and then calls Mapserver, you can support all forms of the type extent (and support additional dimensions if desired). Parse the TIME argument, then include parameters in the QUERY_STRING that correspond to replaceable values (%value%) in your mapfile. Your mapfile will need to specify an appropriate value for METADATA wms_timeextent so that the GetCapabilities response will include the proper extent, but as far as I can tell that value is just a string that is sent as-is by GetCapabilities and does not suffer from the same limitations as the TIME value in the GetMap request parameter. Regarding data every 01, 11 and 21 day of the month: because many WMS clients have poor support for time[*], you might have best success enumerating each value explicitly in a comma separated list. 2005-01-01,2005-01-11,2005-01-21,...,2005-10-11 It would also be legal to say 2005-01-01/2005-10-01/P1M,2005-01-11/2005-10-11/P1M,2005-01-21/2005-09-21/P1M but many clients might choke on that list of interleaved ranges. -Jeff DLB [*] We should have made it more clear in the specification that "optional for dataset" does not equal "optional for client." -Ed. From anthes at IVE-MBH.DE Fri Oct 14 06:42:25 2005 From: anthes at IVE-MBH.DE (Ralph Anthes) Date: Fri, 14 Oct 2005 15:42:25 +0200 Subject: PHP/MapScript: WRAP failed In-Reply-To: <20051014130103.GA7727@advtechme.com> Message-ID: Hi Dirk, thank you for response. That matches the problem. What is the 32 for? Is this the Ascii-Code? I have the same problem with a "-". Is there a number available too? Best regards Ralph Dirk Tilger schrieb: >On Fri, Oct 14, 2005 at 02:03:31PM +0200, Ralph Anthes wrote: > > >>$label->set("wrap"," "); >> >>I want to wrap at whitespaces of a description. When I use the wrap in >>the map file it works fine. >> >> > >I've never used label objects. I had a quick look at mapscript and I >would give... > >| $label->set("wrap",32); > >... a try. > >Dirk. > > > -- Dipl.-Ing. Ralph Anthes Ingenieurgesellschaft f?r Verkehrs- und Eisenbahnwesen mbH Vahrenwalder Platz 3, 30165 Hannover Telefon: 0511/984228-18 Fax: 0511/984228-29 http://www.ive-mbh.de From dirk at ADVTECHME.COM Fri Oct 14 07:17:10 2005 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Fri, 14 Oct 2005 18:17:10 +0400 Subject: PHP/MapScript: WRAP failed In-Reply-To: <434FB5C1.7020905@ive-mbh.de> Message-ID: On Fri, Oct 14, 2005 at 03:42:25PM +0200, Ralph Anthes wrote: > thank you for response. That matches the problem. What is the 32 for? Is > this the Ascii-Code? > > I have the same problem with a "-". Is there a number available too? 'wrap' is implemented as an integer value. 32 is the character code for ' ' in most of the ENCODINGs. For UTF-8 and US-ASCII the following table might help you: http://www.fileformat.info/info/unicode/block/basic_latin/utf8test.htm The code for '-' would be 0x2d. I guess | $layer->set('wrap',0x2d); should do. Dirk Tilger Advanced Technologies ME FZ LLC Tel +971 4 367 1071 Fax +971 4 367 2529 Mob +971 50 8809132 +966 55 1650025 From work at XWB.COM Fri Oct 14 07:27:24 2005 From: work at XWB.COM (Chip Taylor) Date: Fri, 14 Oct 2005 07:27:24 -0700 Subject: Query to map parts of shapefiles In-Reply-To: Message-ID: Thanks for the reply. What the tutorial does NOT do is return the map zoomed to the selected county's extents. That is a critical part of what I need to do. Chip Taylor Prepared Response, Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Xin > Sent: Friday, October 14, 2005 1:34 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Query to map parts of shapefiles > > Perhaps this tutorial will be of help: > http://maps.dnr.state.mn.us/cgi- > bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_p > ersistent/test.map&program=/cgi- > bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/loc > al/www/docs_maps/tmp/&map_web_imageurl=/tmp/ > bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_p > ersistent/test.map&program=/cgi- > bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/loc > al/www/docs_maps/tmp/&map_web_imageurl=/tmp/> > > Xin > > > On 13/10/05, Chip Taylor wrote: > > I apologize if the title is somewhat misleading. What I am trying > to do > should be pretty common but I have not found a solution. > > Environment: > Mapserver 4.6 running under Apache on Windows (soon to be changed > to IIS > on Windows) > No database. PostGIS or MySQL to be added later. > Little experience with PHP, MapScript in learning process > > Data: > Shapefiles of US, states, counties (all polygons) > > Desired result: > 1. User brings up map of US and sees outlines of states. (have > that > working - no problem). > 2. User selects a state by clicking somewhere within the state > polygon OR > enters state name in text box (user choice - either is valid option) > 3. MapServer redraws map with desired state as extents > 4. User selects county from state by clicking somewhere within the > county > boundary polygon or enters county name in text box (user choice - > either is > valid option) > 5. Mapserver redraws map with desired county as extents. > 6. All this should be accomplished using the same base mapfile > defining > layers, etc. > > Any help with 2-6 would be most helpful. Thanks in advance. > > Chip Taylor > Prepared Response, Inc. > > From Tom.Kralidis at EC.GC.CA Fri Oct 14 07:29:09 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 14 Oct 2005 10:29:09 -0400 Subject: Perl mapscript pointObj distanceToLine Message-ID: Hi, Has this method been removed from the Perl mapscript bindings? We're trying to use Steve's thin.pl (http://mapserver.gis.umn.edu/user_utilities/thin.pl), which includes a distanceToLine method, to which our (latest CVS) Perl mapscript is choking on: $ perl thin.pl -input=ddd -output=dkd -tolerance=30 Can't locate auto/mapscript/pointObj/distanceToL.al in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.7/mach /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl /usr/loca l/lib/perl5/5.8.7/BSDPAN /usr/local/lib/perl5/5.8.7/mach /usr/local/lib/perl5/5.8.7 .) at thin.pl line 82 Thanks ..Tom From work at XWB.COM Fri Oct 14 07:37:33 2005 From: work at XWB.COM (Chip Taylor) Date: Fri, 14 Oct 2005 07:37:33 -0700 Subject: Querying the extents of a layer (shapefile) In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5132D56@s-sp22.pca.state.mn.us> Message-ID: Here is what we want to do: 1. Map is of US, showing boundaries of the states 2. User selects a point within a state 3. Map redraws, centered on state with extents changed to match that of the state layer (state shapefile) with all other layers disabled. Chip Taylor Prepared Response, Inc. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Fawcett, David > Sent: Friday, October 14, 2005 6:18 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Querying the extents of a layer > (shapefile) > > I would suggest that you give us a little more info. Lay out what you > are trying to do, most likely, someone will have an idea of how to get > you there. > > David. > > -----Original Message----- > From: work at XWB.COM [mailto:work at XWB.COM] > Sent: Thursday, October 13, 2005 4:40 PM > To: 'Fawcett, David'; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] Querying the extents of a layer > (shapefile) > > > Thanks, > I have done that before but I can only do that manually. I need a > method either inside of Mapserver, in VBScript in an ASPX page, in > Javascript in the Template page, or PHP to do this and then pass it to > Mapserver to render the next map. > > Chip Taylor > Prepared Response, Inc. > > > -----Original Message----- > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > Sent: Thursday, October 13, 2005 1:12 PM > > To: work at XWB.COM; MAPSERVER-USERS at lists.umn.edu > > Subject: RE: [UMN_MAPSERVER-USERS] Querying the extents of a layer > > (shapefile) > > > > You can run ogrinfo on it and get the extents > > > > http://ogr.maptools.org/ogr_utilities.html > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Chip Taylor > > Sent: Thursday, October 13, 2005 2:34 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Querying the extents of a layer > > (shapefile) > > > > > > If I have a shapefile as a layer can I query the extents of that > > shapefile from MapServer or MapScript? > > > > Thanks for all the help you give to us poor newbies. > > > > Chip Taylor > > Prepared Response, Inc. From bfraser at GEOANALYTIC.COM Fri Oct 14 07:50:02 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 14 Oct 2005 08:50:02 -0600 Subject: Problem trying to serve large .tif dataset Message-ID: Glen, As Frank has pointed out in his reply (and Ed has said for several years), the answer is to pyramid your data. This means constructing layers at different resolutions, then setting MINSCALE MAXSCALE for each of the layers in the map file. The goal is to improve the performance of Mapserver by limiting the number of files it has to open to render a requested image. For example, I've set up a site to render the NASA's Geocover global Landsat mosaic. To handle the range of requests from full resolution (14 meters per pixel) to full world-wide coverage (20km per pixel), I set up six levels (and I may add one more) of the pyramid (view in a fixed-pitched font such as Courier): Largest Number of Tile Lvl: Map Scale: Resolution: Tile Size: Pixels: Tiles Size Total Size: Format: ---- ---------- ----------- --------------------------- ---- ---- ---------- ----- ----------- ------ 6 1: 50k 14 meters 1:250k-ish (1/16 of 5x6 deg) 10k x 10k 14064 26mb = 338 gb ECW 5 250k 50 meters 1:250k 1 deg H x 2 deg W 2k x 2k 14921 3mb = 38.4 gb ECW 4 1m 200 meters ~1:1m 5 deg H x 6 deg W 3k x 2k 36x60 = 2160 20mb = 26.1 gb TIFF 3 5m 30 sec ( 1km) 15 deg H x 30 deg W 2k x 3k 12x12 = 144 20mb = 2.4 gb TIFF 2 20m 2 min ( 4km) 45 deg H x 90 deg W 1k x 2k 4x 4 = 16 10mb = 0.167 gb TIFF 1 100m 10 min (20km) 180 deg H x360 deg W 1k x 2k 1 = 1 7mb = 0.007 gb TIFF Disclaimer: The above is just an example of pyramiding a large raster dataset (tuning by adding levels or adjusting scale will likely be required). And I've broken Ed's Rule #3 ("For best performance, don't compress your data") since levels 5 and 6 are ECW, and Rule #4 ("Don't re-project your data on-the-fly") since levels 4,5,6 are in UTM. Brent Fraser GeoAnalytic Inc. Calgary, Alberta > I am having difficulties with mapserver 4.6 generating output with a > large .tif dataset. I'm attempting to setup a large dataset to be served > up via WMS. > > I have a .tif dataset of approximately 2000 .tif files totalling around > 160k pixels by 375k pixels. Each tif image is 5000 x 5000 pixels. > > Has anyone had any success dealing with datasets of this size? If so, how > have you implemented them? > > Any help/advise would be greatly appreciated. > > Thank you, > Glen Thompson From alexander.gabriel at DIGITAL-INFINITY.DE Fri Oct 14 05:28:42 2005 From: alexander.gabriel at DIGITAL-INFINITY.DE (Alexander Gabriel) Date: Fri, 14 Oct 2005 14:28:42 +0200 Subject: Querying the extents of a layer (shapefile) In-Reply-To: Message-ID: Hi, use $oLayer->getExtent() in PHP. http://mapserver.gis.umn.edu/doc46/phpmapscript-class-guide.html#LayerObj Alexander On Thu, 13 Oct 2005 23:39:45 +0200, Chip Taylor wrote: > Thanks, > I have done that before but I can only do that manually. I need a > method > either inside of Mapserver, in VBScript in an ASPX page, in Javascript in > the Template page, or PHP to do this and then pass it to Mapserver to > render > the next map. > > Chip Taylor > Prepared Response, Inc. > >> -----Original Message----- >> From: Fawcett, David [mailto:David.Fawcett at state.mn.us] >> Sent: Thursday, October 13, 2005 1:12 PM >> To: work at XWB.COM; MAPSERVER-USERS at lists.umn.edu >> Subject: RE: [UMN_MAPSERVER-USERS] Querying the extents of a layer >> (shapefile) >> >> You can run ogrinfo on it and get the extents >> >> http://ogr.maptools.org/ogr_utilities.html >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Chip Taylor >> Sent: Thursday, October 13, 2005 2:34 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Querying the extents of a layer >> (shapefile) >> >> >> If I have a shapefile as a layer can I query the extents of that >> shapefile from MapServer or MapScript? >> >> Thanks for all the help you give to us poor newbies. >> >> Chip Taylor >> Prepared Response, Inc. From gthompson at LIZARDTECH.COM Fri Oct 14 11:40:18 2005 From: gthompson at LIZARDTECH.COM (Glen Thompson) Date: Fri, 14 Oct 2005 11:40:18 -0700 Subject: MINSCALE MAXSCALE USE in grouped layers Message-ID: I'm having a hard time understanding what they mean. I'm using them in mapserver in a WMS implemention. I have a layer of highres data in a tileindex and an additional lowres layer. These layers are grouped together and I'm using minscale/maxscale to determine which layer the server should use to service the request. Here is a snippet from config.map : These are the values I used for the lowres LAYER NAME SeattleOverview GROUP "Imagery" MINSCALE 100000 MAXSCALE 1000000000000 ..... These are the values I used for the highres tileindex LAYER NAME SeattleTiledHighres GROUP "Imagery" MINSCALE 0 MAXSCALE 100000 These values seem to be working ok but I want to understand their meaning. many thanks, Glen Thompson From Tim.Pascoe at EC.GC.CA Fri Oct 14 11:47:03 2005 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Fri, 14 Oct 2005 14:47:03 -0400 Subject: Upgrade Problems Message-ID: I recently upgraded a server to PHP 5.0.5, Mapserver/Mapscript4.6.1, and Chameleon 2.2. The upgrade was done using the supplied binaries from PHP and Maptools.org. The system is a Windows Server2000 box running IIS. After the upgrade, I have had two major problems. 1. In Chameleon, I get no map returned, and supplying the resulting URL for the image directly to a browser results in a "PHP Access Violation....." error. I have PHP permissions set on all of the appropriate directories, as far as I can tell. 2. When accessing a WMS I have running on the server, I get an XML error: msxml3.dll error '80072ee2' The operation timed out /cabin_ows.asp, line 8 The WMS is hidden by an ASP wrapper, but a direct call to the WMS through mapserver reveals the same time out message. The source for the layer in the WMS is a virtual layer generated by OGR. I ran OGRInfo against it, and it is returning information, although it seems slow; however, I have no benchmark from my previous installation to compare against either - it always worked fine.\ Does anyone have any suggestions for what to look for? I'm stumped. I posted a message to the Chameleon list a couple of days ago, but have had no response. Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Fri Oct 14 11:55:41 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 14 Oct 2005 13:55:41 -0500 Subject: Twin City MapServer Users Group (TCMUG) Meeting. Message-ID: MapServer Users, We're hosting the next Meeting on Tues the 18th of Oct. (next week) We've planned out a demo at the City of Saint Paul of our latest incarnation of MapServer Based Web Services/Data distribution application. * The application is XML/DHTML based with an emphasis on allowing the dataset owners free rain over their repective datasets with regard to updating. * Each layer in the interface has it's own administrator and each admin can edit the data as frequently or infrequently as they like. * Each data layer also uses it's own layer config and Map file which each admin has control over. The look and feel of the layer can be edited by each admin with this configuration. * No one layer being mis-configured can bring down the whole of the service as a result of this type of architecture. * Since the datalayers are seperated and called seperately, they can be used for other Clients besides a Web Browser. The plan now is to start around 5:00 PM. and go for an hour or so. Someone on the List suggested heading out afterwards to socialize. We can pick a place now, or wait till then. The location will be the 7th floor of the City Hall Annex. in Downtown Saint Paul, across 4th street from City Hall. 7th Floor (Computer Services) 25 West 4th Street, City Hall Annex. Saint Paul, Mn. 55102 The door to the building locks automatically around 5:00 pm. So showing up a little early might be best. If you do get stuck outside, just call me at 612.598.9210 Bob Basques. Map Links: http://maps.google.com/maps?q=25+4th+St+W,+St+Paul,+MN+55102&spn=0.007892,0.018489&iwloc=A&hl=en http://maps.google.com/maps?q=25+4th+St+W,+St+Paul,+MN+55102&spn=0.003946,0.009245&t=h&iwloc=A&hl=en (hybrid map) Parking locations: http://maps.google.com/maps?q=25+5th+St+W,+St+Paul,+MN+55102&spn=0.007892,0.018489&iwloc=A&hl=en (Lawson Ramp) http://maps.google.com/maps?q=121+Kellogg+Blvd+W,+St+Paul,+MN+55102&iwloc=A&hl=en (Underground Ramp - Access from West Bound Kellogg only) http://maps.google.com/maps?q=132+Kellogg+Blvd+W,+St+Paul,+MN+55102&iwloc=A&hl=en (RiverCentre Parking Ramp) There is also on-street Parking. After 4:30 PM. the Meters are free. bobb From Tim.Pascoe at EC.GC.CA Fri Oct 14 12:08:02 2005 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Fri, 14 Oct 2005 15:08:02 -0400 Subject: Upgrade Problems - Additional Info Message-ID: Wierd. Even this works: http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints And even this works: http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&styles=&bbox=-150,40,-50,80&format=image/png&srs=EPSG:4326&width=500&height=300 But this don't: http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&styles=&bbox=-141.0000000021858,35.18749999863386,-51.99999999781418,90.81250000136613&format=image/png&srs=EPSG:4326&width=500&height=300 ??? ...the only difference between the last two requests is the coordinates. You may want to pass this to the list as a follow up to your thread. ..Tom -----Original Message----- From: Pascoe,Tim [Burlington] Sent: Friday, 14 October, 2005 14:43 To: Kralidis,Tom [Burlington] Subject: Huh? Tom, Why is it this works, and not the other request? http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&sld=http%3A%2F%2Fcabin.cciw.ca%2Fcabin%2Fmaps%2Fstudy_sld_script.php%3FSLDFilterValue%3D108%26SLDParameter%3Dstudyid Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. From Tom.Kralidis at EC.GC.CA Fri Oct 14 12:13:27 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 14 Oct 2005 15:13:27 -0400 Subject: Perl mapscript pointObj distanceToLine Message-ID: Looks like this was renamed to distanceToSegment: http://mapserver.gis.umn.edu/doc/perlmapscript-main.html#pointobj Sorry for the fuss. I read stuff once in awhile -- really I do :) ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: Friday, 14 October, 2005 10:29 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Perl mapscript pointObj distanceToLine > > > Hi, > > Has this method been removed from the Perl mapscript bindings? > > We're trying to use Steve's thin.pl > (http://mapserver.gis.umn.edu/user_utilities/thin.pl), which > includes a distanceToLine method, to which our (latest CVS) > Perl mapscript is choking on: > > $ perl thin.pl -input=ddd -output=dkd -tolerance=30 > Can't locate auto/mapscript/pointObj/distanceToL.al in @INC (@INC > contains: /usr/local/lib/perl5/site_perl/5.8.7/mach > /usr/local/lib/perl5/site_perl/5.8.7 > /usr/local/lib/perl5/site_perl /usr/loca > l/lib/perl5/5.8.7/BSDPAN /usr/local/lib/perl5/5.8.7/mach > /usr/local/lib/perl5/5.8.7 .) at thin.pl line 82 > > Thanks > > ..Tom > From Tim.Pascoe at EC.GC.CA Fri Oct 14 12:13:54 2005 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Fri, 14 Oct 2005 15:13:54 -0400 Subject: Upgrade Problems Message-ID: I recently upgraded a server to PHP 5.0.5, Mapserver/Mapscript4.6.1, and Chameleon 2.2. The upgrade was done using the supplied binaries from PHP and Maptools.org. The system is a Windows Server2000 box running IIS. After the upgrade, I have had two major problems. 1. In Chameleon, I get no map returned, and supplying the resulting URL for the image directly to a browser results in a "PHP Access Violation....." error. I have PHP permissions set on all of the appropriate directories, as far as I can tell. 2. When accessing a WMS I have running on the server, I get an XML error: msxml3.dll error '80072ee2' The operation timed out /cabin_ows.asp, line 8 The WMS is hidden by an ASP wrapper, but a direct call to the WMS through mapserver reveals the same time out message. The source for the layer in the WMS is a virtual layer generated by OGR. I ran OGRInfo against it, and it is returning information, although it seems slow; however, I have no benchmark from my previous installation to compare against either - it always worked fine.\ Does anyone have any suggestions for what to look for? I'm stumped. I posted a message to the Chameleon list a couple of days ago, but have had no response. Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gyetman at CIESIN.COLUMBIA.EDU Fri Oct 14 12:19:37 2005 From: gyetman at CIESIN.COLUMBIA.EDU (Gregory Yetman) Date: Fri, 14 Oct 2005 15:19:37 -0400 Subject: MINSCALE MAXSCALE USE in grouped layers In-Reply-To: Message-ID: Hi Glen, I had issues with this setting up a series of image layers as well. MINSCALE is the largest scale that the layer will be rendered at, MAXSCALE is the smallest scale that it will be rendered at. This is a bit confusing if you are used to cartographic conventions (i.e., MINSCALE would be the smallest scale). There was a good post by Ed McNierney on how the scale is calculated based on the display at little while ago, it helped us calculate what scales to use (a belated thanks to Ed). Ed's posts are available at: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0208/msg00056.html http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0211/msg00186.html Greg ---------------------------- From ed at TOPOZONE.COM Fri Oct 14 12:27:28 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 14 Oct 2005 15:27:28 -0400 Subject: Problem trying to serve large .tif dataset Message-ID: Brent - It's OK to break the rules - just as long as you know you're doing it . Frank made another point which is also important, but less-often discussed. At a certain point pyramids/overviews begin to break down because a large image requested at a small scale ends up reading a large number of very small files. If you're opening more than a few files to serve an image request, things will slow down, and if you start reading from hundreds of files you're in trouble. The time to render the image will be dominated by the raw file-to-file seek time of your disk subsystem. Since finding a new file and opening it is one of the slowest things you can do in an application server, your performance gets very bad very quickly. At a certain point you need to take your tiled overview files and merge them, creating a smaller number of larger files. Very broadly speaking, it's probably a good idea to strive for image files whose extents are in the range of several times the size of the output images generated. If you're making 1,000x1,000 output images, and your files are 4,000x4,000 pixels, then (a) most image requests will be served by only opening one file, (b) a reasonable chunk of any file opened is used, and (c) you'll never need to open more than 4 files to render an image. If your files are shrunken overviews that are 100 pixels each, then your 1,000x1,000 image may require up to 121 files being opened, and will never require fewer than 100! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Friday, October 14, 2005 10:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem trying to serve large .tif dataset Glen, As Frank has pointed out in his reply (and Ed has said for several years), the answer is to pyramid your data. This means constructing layers at different resolutions, then setting MINSCALE MAXSCALE for each of the layers in the map file. The goal is to improve the performance of Mapserver by limiting the number of files it has to open to render a requested image. For example, I've set up a site to render the NASA's Geocover global Landsat mosaic. To handle the range of requests from full resolution (14 meters per pixel) to full world-wide coverage (20km per pixel), I set up six levels (and I may add one more) of the pyramid (view in a fixed-pitched font such as Courier): Largest Number of Tile Lvl: Map Scale: Resolution: Tile Size: Pixels: Tiles Size Total Size: Format: ---- ---------- ----------- --------------------------- ---- ---- ---------- ----- ----------- ------ 6 1: 50k 14 meters 1:250k-ish (1/16 of 5x6 deg) 10k x 10k 14064 26mb = 338 gb ECW 5 250k 50 meters 1:250k 1 deg H x 2 deg W 2k x 2k 14921 3mb = 38.4 gb ECW 4 1m 200 meters ~1:1m 5 deg H x 6 deg W 3k x 2k 36x60 = 2160 20mb = 26.1 gb TIFF 3 5m 30 sec ( 1km) 15 deg H x 30 deg W 2k x 3k 12x12 = 144 20mb = 2.4 gb TIFF 2 20m 2 min ( 4km) 45 deg H x 90 deg W 1k x 2k 4x 4 = 16 10mb = 0.167 gb TIFF 1 100m 10 min (20km) 180 deg H x360 deg W 1k x 2k 1 = 1 7mb = 0.007 gb TIFF Disclaimer: The above is just an example of pyramiding a large raster dataset (tuning by adding levels or adjusting scale will likely be required). And I've broken Ed's Rule #3 ("For best performance, don't compress your data") since levels 5 and 6 are ECW, and Rule #4 ("Don't re-project your data on-the-fly") since levels 4,5,6 are in UTM. Brent Fraser GeoAnalytic Inc. Calgary, Alberta > I am having difficulties with mapserver 4.6 generating output with a > large .tif dataset. I'm attempting to setup a large dataset to be > served up via WMS. > > I have a .tif dataset of approximately 2000 .tif files totalling > around 160k pixels by 375k pixels. Each tif image is 5000 x 5000 pixels. > > Has anyone had any success dealing with datasets of this size? If so, > how have you implemented them? > > Any help/advise would be greatly appreciated. > > Thank you, > Glen Thompson From mstangeh at GMAIL.COM Fri Oct 14 12:48:39 2005 From: mstangeh at GMAIL.COM (Mauricio Stange H.) Date: Fri, 14 Oct 2005 16:48:39 -0300 Subject: connecting to mysql spatial Message-ID: hi, I need to connect mapserver to an spatial database in mysql, for now I'am trying it with a simple table with name, and a location (type POINT). So, how can I access this data from mapserver and display it in a layer?, I think that I have to use OGR, but how. Thank you, Mauricio Stange From fklotz at AXYS.NET Fri Oct 14 12:26:25 2005 From: fklotz at AXYS.NET (Farley Klotz) Date: Fri, 14 Oct 2005 13:26:25 -0600 Subject: Mapserver/Mapscript and Apache 2.x In-Reply-To: <435004C9.6020305@ciesin.columbia.edu> Message-ID: I have heard that there have been issues in the past with Apache 2.x and Mapserver/Mapscript on Linux. Is this still true, or would this be a stable combination at this time? Farley *********************************************************************** Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message plus any attachments. *********************************************************************** From chris at CENTRALFRONTENAC.COM Fri Oct 14 12:48:08 2005 From: chris at CENTRALFRONTENAC.COM (Chris Matheson) Date: Fri, 14 Oct 2005 15:48:08 -0400 Subject: Php mapscript - shapeObj indexes Message-ID: Hello list, I'm having problems retrieving attribute data from a layer in a php mapscript. The layer data is from a PostGIS query. The data query uses the "USING gid AS oid" clause. My spatial data results from the layer displays fine. When I try to get the attribute data using the getShape function of the layer, I run into a problem, I don't know what the indexes of the shapeObj(ects) are. Is there a way to retrieve a list of all of the shapeObj indexes for a layer? Chris M. From jared at IDTSERVICES.COM Fri Oct 14 13:02:29 2005 From: jared at IDTSERVICES.COM (Jared Plunkett) Date: Fri, 14 Oct 2005 15:02:29 -0500 Subject: Point layer not displaying Message-ID: I have two layers in a map file, a point layer and a line layer. If I am zoomed out to the full extent of the point layer it shows up, however if I zoom in at all, the point layer will no longer display. I am not having this problem with the line layer at all. I have not defined any min or max scale for either layer. Any help at all would be greatly appreciated. From bfraser at GEOANALYTIC.COM Fri Oct 14 13:32:46 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 14 Oct 2005 14:32:46 -0600 Subject: Problem trying to serve large .tif dataset Message-ID: Ed, Yep. My layers in the map file are set up (using MIN/MAX SCALE) so no more than 4 to 6 image files are opened for any given map request (usually only one or two files are opened), regardless of the scale. Performance is about 2 to 4 seconds per request (for a 1k x 1k image). Brent ----- Original Message ----- From: "Ed McNierney" To: Sent: Friday, October 14, 2005 1:27 PM Subject: Re: [UMN_MAPSERVER-USERS] Problem trying to serve large .tif dataset Brent - It's OK to break the rules - just as long as you know you're doing it . Frank made another point which is also important, but less-often discussed. At a certain point pyramids/overviews begin to break down because a large image requested at a small scale ends up reading a large number of very small files. If you're opening more than a few files to serve an image request, things will slow down, and if you start reading from hundreds of files you're in trouble. The time to render the image will be dominated by the raw file-to-file seek time of your disk subsystem. Since finding a new file and opening it is one of the slowest things you can do in an application server, your performance gets very bad very quickly. At a certain point you need to take your tiled overview files and merge them, creating a smaller number of larger files. Very broadly speaking, it's probably a good idea to strive for image files whose extents are in the range of several times the size of the output images generated. If you're making 1,000x1,000 output images, and your files are 4,000x4,000 pixels, then (a) most image requests will be served by only opening one file, (b) a reasonable chunk of any file opened is used, and (c) you'll never need to open more than 4 files to render an image. If your files are shrunken overviews that are 100 pixels each, then your 1,000x1,000 image may require up to 121 files being opened, and will never require fewer than 100! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Friday, October 14, 2005 10:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem trying to serve large .tif dataset Glen, As Frank has pointed out in his reply (and Ed has said for several years), the answer is to pyramid your data. This means constructing layers at different resolutions, then setting MINSCALE MAXSCALE for each of the layers in the map file. The goal is to improve the performance of Mapserver by limiting the number of files it has to open to render a requested image. For example, I've set up a site to render the NASA's Geocover global Landsat mosaic. To handle the range of requests from full resolution (14 meters per pixel) to full world-wide coverage (20km per pixel), I set up six levels (and I may add one more) of the pyramid (view in a fixed-pitched font such as Courier): Largest Number of Tile Lvl: Map Scale: Resolution: Tile Size: Pixels: Tiles Size Total Size: Format: ---- ---------- ----------- --------------------------- ---- ---- ---------- ----- ----------- ------ 6 1: 50k 14 meters 1:250k-ish (1/16 of 5x6 deg) 10k x 10k 14064 26mb = 338 gb ECW 5 250k 50 meters 1:250k 1 deg H x 2 deg W 2k x 2k 14921 3mb = 38.4 gb ECW 4 1m 200 meters ~1:1m 5 deg H x 6 deg W 3k x 2k 36x60 = 2160 20mb = 26.1 gb TIFF 3 5m 30 sec ( 1km) 15 deg H x 30 deg W 2k x 3k 12x12 = 144 20mb = 2.4 gb TIFF 2 20m 2 min ( 4km) 45 deg H x 90 deg W 1k x 2k 4x 4 = 16 10mb = 0.167 gb TIFF 1 100m 10 min (20km) 180 deg H x360 deg W 1k x 2k 1 = 1 7mb = 0.007 gb TIFF Disclaimer: The above is just an example of pyramiding a large raster dataset (tuning by adding levels or adjusting scale will likely be required). And I've broken Ed's Rule #3 ("For best performance, don't compress your data") since levels 5 and 6 are ECW, and Rule #4 ("Don't re-project your data on-the-fly") since levels 4,5,6 are in UTM. Brent Fraser GeoAnalytic Inc. Calgary, Alberta > I am having difficulties with mapserver 4.6 generating output with a > large .tif dataset. I'm attempting to setup a large dataset to be > served up via WMS. > > I have a .tif dataset of approximately 2000 .tif files totalling > around 160k pixels by 375k pixels. Each tif image is 5000 x 5000 pixels. > > Has anyone had any success dealing with datasets of this size? If so, > how have you implemented them? > > Any help/advise would be greatly appreciated. > > Thank you, > Glen Thompson From ed at TOPOZONE.COM Fri Oct 14 13:49:07 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 14 Oct 2005 16:49:07 -0400 Subject: Mapserver/Mapscript and Apache 2.x Message-ID: Farley - (rehash of a message I just posted to the GDAL list) I do not know who the "intended recipient" is, and since I can't divine your intentions, I don't want to risk "unauthorized review" of your message. Concerning such "confidential" disclaimers, I have been advised by attorneys that if one labels EVERYTHING "confidential" but you don't treat it as such, you are putting your REALLY confidential material at significant risk. Someone who disclosed information you really meant to keep confidential could reasonably argue that your "confidential" labels are meaningless and no one can figure out which information is confidential and which is not. You should pass that comment on to the folks who are labeling every email as "private and confidential".... - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Farley Klotz Sent: Friday, October 14, 2005 3:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver/Mapscript and Apache 2.x I have heard that there have been issues in the past with Apache 2.x and Mapserver/Mapscript on Linux. Is this still true, or would this be a stable combination at this time? Farley *********************************************************************** Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message plus any attachments. *********************************************************************** From rco at OSMOGIS.COM Fri Oct 14 21:06:42 2005 From: rco at OSMOGIS.COM (Richard Orth - osmoGIS Incorporated) Date: Sat, 15 Oct 2005 00:06:42 -0400 Subject: Upgrade Problems - Additional Info In-Reply-To: <2576812186CDD411BF1500508B6DCE950C09A53D@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Do you have to use 13 or 14 decimal places (16 numerals)? I got it down to 8 decimals before it stopped working. This would suggest the use of a float variable instead of a double (sorry I had to use a JAVA example). This does work (8 decimal): http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&styles=&bbox=-141.00000000,35.18749999,-51.99999999,90.81250000&format=image/png&srs=EPSG:4326&width=500&height=300 This does not work (9 decimals): http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&styles=&bbox=-141.000000002,35.187499998,-51.999999997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 Even this does not work (11 numerals each): http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&styles=&bbox=-141.00000000,35.187499998,-51.999999997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 Hope this helps you Richard C Orth Pascoe,Tim [Burlington] wrote: >Wierd. Even this works: > >http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints > >And even this works: > >http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&styles=&bbox=-150,40,-50,80&format=image/png&srs=EPSG:4326&width=500&height=300 > >But this don't: > >http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&styles=&bbox=-141.0000000021858,35.18749999863386,-51.99999999781418,90.81250000136613&format=image/png&srs=EPSG:4326&width=500&height=300 > >??? > >...the only difference between the last two requests is the coordinates. You may want to pass this to the list as a follow up to your thread. > >..Tom > > > > > -----Original Message----- > From: Pascoe,Tim [Burlington] > Sent: Friday, 14 October, 2005 14:43 > To: Kralidis,Tom [Burlington] > Subject: Huh? > > Tom, > > Why is it this works, and not the other request? > > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=GetMap&layers=CABINPoints&sld=http%3A%2F%2Fcabin.cciw.ca%2Fcabin%2Fmaps%2Fstudy_sld_script.php%3FSLDFilterValue%3D108%26SLDParameter%3Dstudyid > > Timothy Pascoe > > Environment Canada / Environnement Canada > Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures > 867 Lakeshore Road / 867, chemin Lakeshore > Burlington, Ontario / Burlington (Ontario) > L7R 4A6 > > Tel/T?l: (905) 336-6239 > Fax/T?l?c: (905) 336-4699 > E-mail/C. ?lec: tim.pascoe at ec.gc.ca > Government of Canada/Gouvernement du Canada > This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. > > > From jbarong at HOTMAIL.COM Sat Oct 15 05:08:27 2005 From: jbarong at HOTMAIL.COM (=?iso-8859-1?B?SnVhbiBCYXLzbg==?=) Date: Sat, 15 Oct 2005 12:08:27 +0000 Subject: problem with postgis Message-ID: An HTML attachment was scrubbed... URL: From dirk at ADVTECHME.COM Sat Oct 15 05:15:58 2005 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Sat, 15 Oct 2005 16:15:58 +0400 Subject: problem with postgis In-Reply-To: Message-ID: On Sat, Oct 15, 2005 at 12:08:27PM +0000, Juan Bar?n wrote: > Error reported was 'could not translate host name "127.0.0.1" to > address: Unknown host '. It says it: it tries to translate the hostname "127.0.0.1" into an address. Give "localhost" instead of "127.0.0.1". Dirk Tilger From jbarong at HOTMAIL.COM Sat Oct 15 10:09:33 2005 From: jbarong at HOTMAIL.COM (Juan Baron) Date: Sat, 15 Oct 2005 12:09:33 -0500 Subject: problem with postgis Message-ID: Hello list, I am using mapserver 4.4.1 and postgresql 8.0 with postgis. I have a layer in the map file: LAYER CONNECTIONTYPE postgis NAME callejero CONNECTION "user=postgres dbname=pruebapostgis host=localhost port=5432" DATA "the_geom from tablacallejero" STATUS DEFAULT TYPE LINE CLASS COLOR 255 0 0 END END and when I execute the application, the layer doesn't appear me and the result is a message for screen: msDrawMap(): Image handling error. Failed to draw layer named 'callejero'. msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'user=postgres dbname=pruebapostgis host=localhost port=5432'. Error reported was 'could not translate host name "localhost" to address: Unknown host '. This error occured when trying to make a connection to the specified postgresql server. Most commonly this is caused by (1) incorrect connection string (2) you didnt specify a 'user=...' in your connection string (3) the postmaster (postgresql server) isnt running (4) you are not allowing TCP/IP connection to the postmaster (5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' (6) the security on your system does not allow the webserver (usually user 'nobody') to make socket connections to the postmaster (7) you forgot to specify a 'host=...' if the postmaster is on a different machine (8) you made a typo I have proven to change localhost for 127.0.0.1, but the result is the same one. postgresql this being executed, because if I put netstat - na appears: TCP 127.0.0.1:5432 LISTENING I don't know which is the problem. Thank's From Jeroen.Ticheler at FAO.ORG Sat Oct 15 12:53:40 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Sat, 15 Oct 2005 21:53:40 +0200 Subject: time series problem 3 (Bug!?) In-Reply-To: <434F1B6B.6050000@dmsolutions.ca> Message-ID: Thanks! At least I now know I didn't just do things wrong and understand why some things worked and others not. From the website this is not at all clear as it gives the impression time series as in point 2 can be served... It would be really great if option 2 is supported. Very much in line with what Jeff wrote, I foresee problems with our map client as well as with others when I start specifying the time series following option 4, although it would be an elegant way of describing the time series :-) Option 2 will be excellent for many of our temporal data series. I'll be happy to test, but have to add that I'm traveling in the coming two weeks, so its hard to reply directly. Looking forward to a solution! On one more note: I noted the way time series in WMS and WCS are defined is different (according to the samples I used). WCS uses an index file that is added as a separate LAYER, while WMS can directly use the index shape file. I'm not sure (yet) a WCS time series can be defined in the same way a WMS can be, but it might be once solution 2 works for WMS!? Otherwise, would there be a way to hide a LAYER completely from a WMS so one map file can be used for both WCS and WMS? If my description is not clear, I can post a more detailed explanation later when back in the office. Thanks very much in advance! Jeroen On 14 Oct 2005, at 04:43, Yewondwossen Assefa wrote: > > > Luis W. Sevilla wrote: > > >> Hi, >> Yewondwossen Assefa wrote: >> >> >>> From the specs (wms 1.1 annex c c.3), the extent could be defined >>> in 4 ways : >>> 1) value : A single value. This is not directly supported in >>> Mapserver but there is an easy workwound by specifying the same >>> value as min and max >>> >>> 2) value1,value2,value3,... a A list of multiple values. This >>> is not supported in Mapserver. >>> >>> 3) min/max/resolution An interval defined by its lower and upper >>> bounds and its resolution. This is supported in Mapserver >>> (Note that the resolution is not supported) >>> >>> >> It sounds quite strange: how do you specify the ammount of time- >> slices, without giving the resolution? >> >> > > You can specify the resolutions in your setting of the > wms_timeextent parameter. It should be dumped as is in the > capabilities document. It just won't be used when validating the > time value passed in the request to see if the value fits in the > time extents defined. The validation will only use the min max values. > > > > >>> >>> 4) min1/max1/res1,min2/max2/res2,... a A list of multiple >>> intervals. Not supported >>> >>> >>> I am willing to add the support for number 4) if you are willing >>> to do additional testing. >>> >>> >> We may do some testing too. we're on the way of developping a new >> WMS cliente with time parameter support, and also interested in >> publising multitemporal data on the same way. >> ' >> >> > > I have entred a bug on this issue so discussions/testing can be > done through this bug. > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1498 > > > >>> >>> I am not sure if 2) is is a must have at this point. >>> >>> Le me know what you think and then we can proceed with the >>> impentation. >>> >>> Later, >>> >>> >>> Jeroen Ticheler wrote: >>> >>> >>> >>>> Thanks for that! Is it a complex thing to add such support? I >>>> had the impression from the code that it was virtually there >>>> already, just that it first checked for a range and does not >>>> proceed to check for ranges? >>>> The problem is that a range doesn't work for this series. Data >>>> comes in at three 10 daily periods a month, which is not >>>> exactly true as a month does not always have 30 days. Still the >>>> images are always dated with a 01, 11 and 21 for the day (or >>>> 1,2 or 3 for a dekad). >>>> >>>> Ciao, >>>> Jeroen >>>> _______________________ >>>> Jeroen Ticheler >>>> FAO-UN >>>> Tel: +39 06 57056041 >>>> http://www.fao.org/geonetwork >>>> 42.07436?N 12.34327?E >>>> >>>> >>>> On 13 Oct 2005, at 20:03, Yewondwossen Assefa wrote: >>>> >>>> >>>> >>>>> Hi There, >>>>> >>>>> Sorry for the late answer. >>>>> >>>>> From what I can see in your examples, you are running into a >>>>> limitation of mapserver and it's support for the time extent >>>>> values. Currently the time extent can only be defined as a >>>>> range value and only one range value is valid (so something >>>>> like is the only thing valid 2005-09-11/2005-09-21) >>>>> >>>>> You should update your "wms_timeextent" and try it with only >>>>> one range. I will enter documentation bug so that this >>>>> limitation is clearly defined. Give it a try and let me know. >>>>> >>>>> Later, >>>>> >>>>> Jeroen Ticheler wrote: >>>>> >>>>> >>>>> >>>>>> Hi, sorry for continuing this story, but I really want to >>>>>> solve this and hope my additional info helps to sort out the >>>>>> problems I face. >>>>>> I am using a shapefile with the imgdate column added to it. I >>>>>> use exactly the same index to work with a WCS on the same >>>>>> data, that one works perfectly fine. >>>>>> I have browsed through the mapServer sourcecode to see if I >>>>>> could discover something/ understand the problem better. I'm >>>>>> not familiar with C coding, so forgive my ignorance :-) What >>>>>> I could understand is that my request fails when the time >>>>>> string submitted in the request is compared to the >>>>>> timeextent given in the capabilities document. >>>>>> The exact section of the code is in between line 545 and >>>>>> line 569, apparently the msValidateTimeValue() procedure >>>>>> fails to find the requested date in the extent. I do not get >>>>>> an error when I change my extent to a range like >>>>>> "2005-09-11,2005-09-21/2005-09-21" or >>>>>> "2005-09-11,2005-09-11/2005-09-21", but it will only render >>>>>> the very last image, even when an earlier one is requested. >>>>>> So I guess I face a bug!? >>>>>> Thanks again, >>>>>> Jeroen >>>>>> Begin forwarded message: >>>>>> >>>>>> >>>>>> >>>>>>> From: Jeroen Ticheler >>>>>>> Date: 12 October 2005 09:54:26 GMT+02:00 >>>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>>> Subject: [UMN_MAPSERVER-USERS] time series problem 2 >>>>>>> Reply-To: Jeroen Ticheler >>>>>>> >>>>>>> >>>>>>> Further to my previous message, the exception I get is the >>>>>>> following one: >>>>>>> >>>>>>> >>>>>>> >>>>>>> msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 >>>>>>> given is invalid or outside the time extent defined >>>>>>> (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05- >>>>>>> 01,2 00 >>>>>>> 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01,2 >>>>>>> 005- 07 >>>>>>> -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005- >>>>>>> 09-1 1, 2005-09-21), and default time set is invalid >>>>>>> (2005-09-21) >>>>>>> >>>>>>> >>>>>>> >>>>>>> And the URL's I use are: >>>>>>> >>>>>>> For Capabilities: >>>>>>> >>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>> version=1.1.1&service=WMS&request=GetCapabilities >>>>>>> >>>>>>> For a working map without specifying the time: >>>>>>> >>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>>>> png&layers=spotndvi&transparent=true&width=400&height=200 >>>>>>> >>>>>>> For a request with a time, the exception is returned: >>>>>>> >>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>>>> png&layers=spotndvi&transparent=true&width=400&height=200&time=2 >>>>>>> 005- 09 -21 >>>>>>> >>>>>>> These URL's can be reached from outside, so you can try this >>>>>>> yourself. >>>>>>> Thanks in advance for any help to a solution, >>>>>>> Jeroen >>>>>>> >>>>>>> On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi, >>>>>>>> I have a problem with time series for WMS. I have used the >>>>>>>> following WMS attributes in my map file and I get the >>>>>>>> default image the first WMS map request. The moment I >>>>>>>> start requesting maps with the time variable set, I get an >>>>>>>> exception indicating that the time format used is not >>>>>>>> correct. >>>>>>>> >>>>>>>> The data is GeoTIFF >>>>>>>> I have an index shapefile with an imgdate column containing >>>>>>>> the dates in the same format >>>>>>>> >>>>>>>> Anyone an idea, I can't find an example that has a whole >>>>>>>> range of images with a specific time set for each image. >>>>>>>> >>>>>>>> Map file extract: >>>>>>>> >>>>>>>> At the map level (although I don't think this is supported/ >>>>>>>> needed for GeoTIFF data!?) >>>>>>>> ____________________________ >>>>>>>> "wms_timeformat" "YYYY-MM-DD" >>>>>>>> ____________________________ >>>>>>>> >>>>>>>> >>>>>>>> At the layer level >>>>>>>> ____________________________ >>>>>>>> >>>>>>>> "wms_style_default_title" "default" >>>>>>>> "wms_format" "image/png" >>>>>>>> "wms_timedefault" "2005-09-11" >>>>>>>> "wms_timeextent" >>>>>>>> "2005-08-21,2005-09-01,2005-09-11" # also tried >>>>>>>> with spaces after each comma >>>>>>>> "wms_timeitem" "imgdate" >>>>>>>> >>>>>>>> END >>>>>>>> DUMP TRUE >>>>>>>> TILEINDEX 'ndvi_idx' >>>>>>>> TILEITEM "location" >>>>>>>> EXTENT -180.0 -90.0 180.0 90.0 >>>>>>>> PROJECTION "init=epsg:4326" END >>>>>>>> ____________________________ >>>>>>>> >>>>>>>> >>>>>>>> Thanks in advance, >>>>>>>> Jeroen >>>>>>>> _______________________ >>>>>>>> Jeroen Ticheler >>>>>>>> FAO-UN >>>>>>>> Tel: +39 06 57056041 >>>>>>>> http://www.fao.org/geonetwork >>>>>>>> 12.34327?N 12.34327?E >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> ---------------------------------------------------------------- >>>>> Assefa Yewondwossen >>>>> Software Analyst >>>>> >>>>> Email: assefa at dmsolutions.ca >>>>> http://www.dmsolutions.ca/ >>>>> >>>>> Phone: (613) 565-5056 (ext 14) >>>>> Fax: (613) 565-0925 >>>>> ---------------------------------------------------------------- >>>>> >>>>> >>>> >>>> >>>> >>>> >> gvSIG development Team >> www.gvsig.gva.es >> >> > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > From ed at TOPOZONE.COM Sat Oct 15 13:40:33 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 15 Oct 2005 16:40:33 -0400 Subject: Mapserver/Mapscript and Apache 2.x Message-ID: Farley - I (and others, I'm sure) have been running MapServer 4.x on Apache 2.x on Linux without trouble, and I use it quite heavily. I suspect you may be thinking of issues around PHP MapScript and Apache involving PHP 5 (as opposed to PHP 4, which is well-supported). I'm not a MapScript user, so I can't give more detailed comments, but the "issues" I think you're thinking of are limited to a fairly narrow subset of the scenario described. MapServer and MapScript with Apache on Linux configurations are pretty well-used across the board. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Farley Klotz Sent: Friday, October 14, 2005 3:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver/Mapscript and Apache 2.x I have heard that there have been issues in the past with Apache 2.x and Mapserver/Mapscript on Linux. Is this still true, or would this be a stable combination at this time? From philip.donaghy at GMAIL.COM Sat Oct 15 14:00:00 2005 From: philip.donaghy at GMAIL.COM (Philip Mark Donaghy) Date: Sat, 15 Oct 2005 14:00:00 -0700 Subject: Compiling on SUSE 9.2 Message-ID: Hello everybody, I am compiling mapserver and all its dependencies on SUSE 9.2 and the version of gcc is 3.3.4-11. For some reason which is beyond the scope of my knowledge g++ is not installed. Does someone know how to fix this? Thanks, Philip -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.donaghy at GMAIL.COM Sat Oct 15 14:33:01 2005 From: philip.donaghy at GMAIL.COM (Philip Mark Donaghy) Date: Sat, 15 Oct 2005 14:33:01 -0700 Subject: collect2: ld returned 1 exit status Message-ID: Hello again, I resolved my g++ installation. Now the following is happening and I don't know why. Any clues? I should add that I am compiling mapserver 4.6.1 with gd 2.0.33 (freetype 2.1.10, jpeg-6b, libpng-1.2.8-config, zlib 1.2.3) and gcc is version 3.3.4-11 from SUSE. gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/local/include shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -lc -lz -lm -o shp2img ./libmap.a(mapogr.o)(.gnu.linkonce.d.DW.ref.__gxx_personality_v0+0x0): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Regards, Philip -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.donaghy at GMAIL.COM Sat Oct 15 14:59:15 2005 From: philip.donaghy at GMAIL.COM (Philip Mark Donaghy) Date: Sat, 15 Oct 2005 14:59:15 -0700 Subject: Linking problems Message-ID: Thanks Pram, My last problem was resolved by rerunning ./configure Now that mapserv is built I tried it out and the gd library is not getting linked. opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd mapserv linux-gate.so.1 => (0xffffe000) libgd.so.2 => not found libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4002b000) libpng.so.3 => /usr/lib/libpng.so.3 (0x40093000) libc.so.6 => /lib/tls/libc.so.6 (0x400c1000) libm.so.6 => /lib/tls/libm.so.6 (0x401d7000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x401fa000) libz.so.1 => /lib/libz.so.1 (0x402b7000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x402c9000) The LD_LIBRARY_PATH environment variable solves this... opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> export LD_LIBRARY_PATH=/usr/local/lib opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd mapserv linux-gate.so.1 => (0xffffe000) libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40018000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40065000) libpng.so.3 => /usr/local/lib/libpng.so.3 (0x400cd000) libc.so.6 => /lib/tls/libc.so.6 (0x40110000) libm.so.6 => /lib/tls/libm.so.6 (0x40226000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40249000) libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x40306000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40338000) Apache is having the same problem but the environment variable does not resolve this. error_log... [Sat Oct 15 23:59:22 2005] [error] [client ::1] /home/opensource/soft/bin/httpd-2.0.54/cgi-bin/mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory Thanks for any hints, Philip -------------- next part -------------- An HTML attachment was scrubbed... URL: From pram123 at GMAIL.COM Sat Oct 15 15:12:52 2005 From: pram123 at GMAIL.COM (Prashanth Ram) Date: Sat, 15 Oct 2005 18:12:52 -0400 Subject: Linking problems In-Reply-To: Message-ID: Philip: Create a link to that file (from /usr/lib or /usr/local/), and everything should work. In order to find the file you can either do whereis libgd.so.2or locate libgd.so.2. -Prashanth -- HTMLX.com Mapserver Hosting, Mapscript Hosting, PHP Hosting PostgreSQL w/PostGIS extension enabled Hosting On 10/15/05, Philip Mark Donaghy wrote: > > Thanks Pram, > > My last problem was resolved by rerunning ./configure > > Now that mapserv is built I tried it out and the gd library is not getting > linked. > > opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd > mapserv > linux-gate.so.1 => (0xffffe000) > libgd.so.2 => not found > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4002b000) > libpng.so.3 => /usr/lib/libpng.so.3 (0x40093000) > libc.so.6 => /lib/tls/libc.so.6 (0x400c1000) > libm.so.6 => /lib/tls/libm.so.6 (0x401d7000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x401fa000) > libz.so.1 => /lib/libz.so.1 (0x402b7000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x402c9000) > > The LD_LIBRARY_PATH environment variable solves this... > > opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> export > LD_LIBRARY_PATH=/usr/local/lib > > opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd > mapserv > linux-gate.so.1 => (0xffffe000) > libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40018000) > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40065000) > libpng.so.3 => /usr/local/lib/libpng.so.3 (0x400cd000) > libc.so.6 => /lib/tls/libc.so.6 (0x40110000) > libm.so.6 => /lib/tls/libm.so.6 (0x40226000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40249000) > libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x40306000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40338000) > > Apache is having the same problem but the environment variable does not > resolve this. error_log... > > [Sat Oct 15 23:59:22 2005] [error] [client ::1] > /home/opensource/soft/bin/httpd-2.0.54/cgi-bin/mapserv: error while > loading shared libraries: libgd.so.2: cannot open shared object file: No > such file or directory > > Thanks for any hints, > Philip > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.donaghy at GMAIL.COM Sat Oct 15 15:26:07 2005 From: philip.donaghy at GMAIL.COM (Philip Mark Donaghy) Date: Sat, 15 Oct 2005 15:26:07 -0700 Subject: Linking problems In-Reply-To: <7f64deb50510151512s15814194m14d39ef299fd5acc@mail.gmail.com> Message-ID: Thanks Prashanth, that did it! ln -s /usr/local/lib/libgd.so /usr/lib/libgd.so.2 Philip On 10/15/05, Prashanth Ram wrote: > > Philip: > Create a link to that file (from /usr/lib or /usr/local/), and everything > should work. In order to find the file you can either do whereis > libgd.so.2 or locate libgd.so.2. > > -Prashanth > > -- > HTMLX.com > Mapserver Hosting, Mapscript Hosting, PHP Hosting > PostgreSQL w/PostGIS extension enabled Hosting > > On 10/15/05, Philip Mark Donaghy wrote: > > > > Thanks Pram, > > > > My last problem was resolved by rerunning ./configure > > > > Now that mapserv is built I tried it out and the gd library is not > > getting linked. > > > > opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd > > mapserv > > linux-gate.so.1 => (0xffffe000) > > libgd.so.2 => not found > > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4002b000) > > libpng.so.3 => /usr/lib/libpng.so.3 (0x40093000) > > libc.so.6 => /lib/tls/libc.so.6 (0x400c1000) > > libm.so.6 => /lib/tls/libm.so.6 (0x401d7000) > > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x401fa000) > > libz.so.1 => /lib/libz.so.1 (0x402b7000) > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x402c9000) > > > > The LD_LIBRARY_PATH environment variable solves this... > > > > opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> export > > LD_LIBRARY_PATH=/usr/local/lib > > > > opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd > > mapserv > > linux-gate.so.1 => (0xffffe000) > > libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40018000) > > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40065000) > > libpng.so.3 => /usr/local/lib/libpng.so.3 (0x400cd000) > > libc.so.6 => /lib/tls/libc.so.6 (0x40110000) > > libm.so.6 => /lib/tls/libm.so.6 (0x40226000) > > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40249000) > > libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x40306000) > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40338000) > > > > Apache is having the same problem but the environment variable does not > > resolve this. error_log... > > > > [Sat Oct 15 23:59:22 2005] [error] [client ::1] > > /home/opensource/soft/bin/httpd-2.0.54/cgi-bin/mapserv: error while > > loading shared libraries: libgd.so.2: cannot open shared object file: No > > such file or directory > > > > Thanks for any hints, > > Philip > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby at LKJH.WANADOO.CO.UK Sun Oct 16 02:34:34 2005 From: kirby at LKJH.WANADOO.CO.UK (Kirby James) Date: Sun, 16 Oct 2005 10:34:34 +0100 Subject: Windows XP Installation - How to Debug? Message-ID: Hi, I've tried to install Mapserver on Windows XP SP2 using the IIS server. When I interrogate Mapserver using http://my_machine/Scripts/mapserv.exe I get a web page containing the message "No query information to decode. QUERY_STRING not set." Which I guess implies that much of the configuration is OK. I've tried to install the Itasca example - I can correctly see the index page "http://my_machine/mapserver/workshop/index.html" but when I "Initialize" the "Basic Application" option (which delivers a URL of http://my_machine/Scripts/mapserv.exe?layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2FInetpub%2Fwwwroot%2Fmapserver%2Fworkshop%2Fitasca.map&program=%2FInetpub%2FScripts%2Fmapserv.exe&root=%2FInetpub%2Fwwwroot%2Fmapserver%2Fworkshop&map_web_imagepath=%2FInetpub%2Fwwwroot%2Fmapserver%2Fworkshop%2Ftmp&map_web_imageurl=mapserver%2Fworkshop%2Ftmp&map_web_template=itasca_basic.html I get the response "CGI Error - The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:" - with no text following. I've tried various combinations of paths in the MAP file (latest version shown below) - but keep getting the same result. I'd appreciate any suggestions as to how I can identify the cause of the problem, Regards Kirby WEB HEADER templates/header.html TEMPLATE "set in index.html" FOOTER templates/footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in index.html" IMAGEURL "set in index.html" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is a UMN MapServer application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS "none" # change this value to match your setup WMS_ONLINERESOURCE "http://my_machine/mapserver/workshop/index.html" WMS_SRS "EPSG:26915" END END From andrea.antonello at GMAIL.COM Sun Oct 16 03:35:14 2005 From: andrea.antonello at GMAIL.COM (Andrea Antonello) Date: Sun, 16 Oct 2005 12:35:14 +0200 Subject: floating point grass rasters and mapserver - a resume Message-ID: Some time ago I was dealing with mapserver getting maps from a GRASS location. The maps are all floating point maps and as you (whoever interested) probably followed in a few mails, the result of most of my maps simply resulted in a single color layer (in my case it was yellow). Frank Warmerdam helped me to solve what was solvable and workaround what was "workaroundable". The following is an extract and resume of the mails exchange. Any reply and correction is appreciated. Alright, the problem was not only one, but a bunch concurring: 1) GRASS novalues are not supported and give problems Running gdalinfo -mm on the map, we find that part of the problem is that nodata values are being treated as "nan" (not a number). GDAL and mapserver do not know how to excluse "nan" nodata values from the min/max calculation so the autoscaling gets all screwed up. Here we can see it in the gdalinfo output: Band 1 Block=385x1 Type=Float64, ColorInterp=Palette Min=0.000 Max=229172.410 Computed Min/Max=nan,nan NoData Value=nan Therefore the min and max have to ge defined and supplied to the map file with the following: PROCESSING SCALE=min max 2) There is a problem with the creation of color ramps in the case of a big number of not homogeneous distributed values: Color Table (RGB with 100001 entries) 0: 0,0,0,0 1: 255,255,0,255 2: 255,255,0,255 3: 255,255,0,255 ... This is why I had a yellow map. The first 256 values of the color table were used by MapServer for the after-scaling values. Effectively the first 256 entries of the color table are all shades of yellow. 3) MapServer does not support the GRASS color rules metadata Metadata: COLOR_TABLE_RULES_COUNT=5 COLOR_TABLE_RULE_RGB_0=1.000000e+00 4.583448e+04 255 255 0 0 255 0 COLOR_TABLE_RULE_RGB_1=4.583448e+04 9.166896e+04 0 255 0 0 255 255 COLOR_TABLE_RULE_RGB_2=9.166896e+04 1.375034e+05 0 255 255 0 0 255 COLOR_TABLE_RULE_RGB_3=1.375034e+05 1.833379e+05 0 0 255 255 0 255 COLOR_TABLE_RULE_RGB_4=1.833379e+05 2.291724e+05 255 0 255 255 0 0 The metadata contains the coloring rules that should be applied. However, mapserver does not currently know how to use this sort of color rule metadata. For now the only solution is to recreate classes that are value similar. One problem though is that MapServer classes don't allow applying a range of color to a range of values like GRASS (or QGIS). Applying own CLASSes in the LAYER makes mapserver ignore the color table. The CLASSes option has two main drawbacks: a) The CLASS does not allow color ranges. There is no big solution (only workarounds), if not to wait on the new range based class coloring that Bill Binko has been working on. An implementation of that is available in 4.6.x but it is under revision. b) If we decide to create a set of CLASS rules to get the map drawn "as if" it was interpolated, you will need to create a lot of rules, which gives big big performance problems in drawing the map. This can however be solved with a PROCESSING command. Here the explanation: The problem is that the class lookup is done once for each "bucket" in the lookup table and that by default there are 65536 buckets. It helps a lot to add the following line in the LAYER definition: PROCESSING "SCALE_BUCKETS=200" This basically alters the resolution of the lookup table but substantially accelerates things. After some testing on what would be the best to do for now, I'm now letting the following bash script snippet for automated creation of the raster part mapfile. It contains the solutions and workarounds reported in this document: # the path to the grass cellheader file absolutepath=$mapsetpath/cellhd/$i echo "LAYER" > rastertmpfile echo " NAME $i" >> rastertmpfile echo " TYPE RASTER" >> rastertmpfile echo " STATUS ON" >> rastertmpfile echo " DATA \"$absolutepath\"" >> rastertmpfile # extract the min and max minmax=`gdalinfo -mm $absolutepath | grep Min | awk -F "=" '{print $2, $3}' | awk '{print $1, $3}'` # extract the gdal computed min and max gdalrange=`gdalinfo -mm $absolutepath | grep "Computed Min" |awk -F "Computed Min/Max=" '{print $2}' | awk -F "," '{print $1}'` # if gdal has problems with colortables and novalues, it is not able to compute the range, # therefore we have to supply it and create a set of ad hoc colorrules if [ "$gdalrange" == "nan" ] then # minmax has the format "123 234", so just extract them min=`echo $minmax | awk '{print $1}' | awk -F "." '{print $1}'` max=`echo $minmax | awk '{print $2}' | awk -F "." '{print $1}'` # define a default colortable, rainbow of grass, but with "bin + 1" number of rules, # to get more colors and give the sensation to be interpolated bins=19 delta=$((($max-$min)/$bins)) if [ $delta -ne 0 ] then colors[1]="255 255 0" colors[2]="195 255 0" colors[3]="130 255 0" colors[4]="65 255 0" colors[5]="0 255 0" colors[6]="0 255 65" colors[7]="0 255 130" colors[8]="0 255 195" colors[9]="0 255 255" colors[10]="0 195 255" colors[11]="0 130 255" colors[12]="0 65 255" colors[13]="0 0 255" colors[14]="65 0 255" colors[15]="130 0 255" colors[16]="195 0 255" colors[17]="255 0 255" colors[18]="255 0 195" colors[19]="255 0 130" colors[20]="255 0 65" # add the processing commands echo " PROCESSING \"SCALE=$min $max\"" >> rastertmpfile echo " PROCESSING \"SCALE_BUCKETS=100\"" >> rastertmpfile # create the CLASSes, labeling them with the pixel value first=$min second=$(($min+$delta)) for j in `seq 1 $bins` do echo " CLASS " >> rastertmpfile echo " NAME \"$first\"" >> rastertmpfile echo " EXPRESSION ([pixel] >= $first and[pixel] < $second)" >> rastertmpfile echo " COLOR ${colors[$j]}" >> rastertmpfile echo " END" >> rastertmpfile first=$(($first+$delta)) second=$(($second+$delta)) done # add a last CLASSes, due to bash maths limitations echo " CLASS " >> rastertmpfile echo " NAME \"$max\"" >> rastertmpfile echo " EXPRESSION ([pixel] >= $first and[pixel] < $max)" >> rastertmpfile echo " COLOR ${colors[20]}" >> rastertmpfile echo " END" >> rastertmpfile fi fi Hope this helps someone, the script is not very stylistic, but at least it does the job for me. :) Ciao, Andrea -- ____________________________________________________________________________ HydroloGIS - Environmental Open Source Solutions www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ____________________________________________________________________________ From jachym.cepicky at CENTRUM.CZ Sun Oct 16 03:43:44 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Sun, 16 Oct 2005 12:43:44 +0200 Subject: floating point grass rasters and mapserver - a resume In-Reply-To: <200510161235.14312.andrea.antonello@gmail.com> Message-ID: very well! I did it by hand till now (well I do not have so many raster in GRASS and ... how often do one need to change the color table?) could you post this script on GRASS-Addons site? (http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassAddOns) J?chym On Sun, Oct 16, 2005 at 12:35:14PM +0200, Andrea Antonello wrote: > Some time ago I was dealing with mapserver getting maps from a GRASS location. > The maps are all floating point maps and as you (whoever interested) probably > followed in a few mails, the result of most of my maps simply resulted in a > single color layer (in my case it was yellow). > Frank Warmerdam helped me to solve what was solvable and workaround what was > "workaroundable". > The following is an extract and resume of the mails exchange. > Any reply and correction is appreciated. > > Alright, the problem was not only one, but a bunch concurring: > 1) GRASS novalues are not supported and give problems > > Running gdalinfo -mm on the map, we find that part of the problem is that > nodata values are being treated as "nan" (not a number). GDAL and mapserver > do not know how to excluse "nan" nodata values from the min/max calculation > so the autoscaling gets all screwed up. > > Here we can see it in the gdalinfo output: > > Band 1 Block=385x1 Type=Float64, ColorInterp=Palette > Min=0.000 Max=229172.410 Computed Min/Max=nan,nan > NoData Value=nan > > > Therefore the min and max have to ge defined and supplied to the map file with > the following: > PROCESSING SCALE=min max > > 2) There is a problem with the creation of color ramps in the case of a big > number of not homogeneous distributed values: > > > Color Table (RGB with 100001 entries) > 0: 0,0,0,0 > 1: 255,255,0,255 > 2: 255,255,0,255 > 3: 255,255,0,255 > ... > > > This is why I had a yellow map. The first 256 values of the color table were > used by MapServer for the after-scaling values. Effectively the first 256 > entries of the color table are all shades of yellow. > > 3) MapServer does not support the GRASS color rules metadata > > > Metadata: > COLOR_TABLE_RULES_COUNT=5 > COLOR_TABLE_RULE_RGB_0=1.000000e+00 4.583448e+04 255 255 0 0 255 0 > COLOR_TABLE_RULE_RGB_1=4.583448e+04 9.166896e+04 0 255 0 0 255 255 > COLOR_TABLE_RULE_RGB_2=9.166896e+04 1.375034e+05 0 255 255 0 0 255 > COLOR_TABLE_RULE_RGB_3=1.375034e+05 1.833379e+05 0 0 255 255 0 255 > COLOR_TABLE_RULE_RGB_4=1.833379e+05 2.291724e+05 255 0 255 255 0 0 > > > The metadata contains the coloring rules that should be applied. However, > mapserver does not currently know how to use this sort of color rule > metadata. For now the only solution is to recreate classes that are value > similar. One problem though is that MapServer classes don't allow applying a > range of color to a range of values like GRASS (or QGIS). Applying own > CLASSes in the LAYER makes mapserver ignore the color table. > > The CLASSes option has two main drawbacks: > > a) The CLASS does not allow color ranges. There is no big solution (only > workarounds), if not to wait on the new range based class coloring that Bill > Binko has been working on. An implementation of that is available in 4.6.x > but it is under revision. > > b) If we decide to create a set of CLASS rules to get the map drawn "as if" it > was interpolated, you will need to create a lot of rules, which gives big big > performance problems in drawing the map. This can however be solved with a > PROCESSING command. Here the explanation: > The problem is that the class lookup is done once for each "bucket" in the > lookup table and that by default there are 65536 buckets. It helps a lot to > add the following line in the LAYER definition: > > PROCESSING "SCALE_BUCKETS=200" > > This basically alters the resolution of the lookup table but substantially > accelerates things. > > > > After some testing on what would be the best to do for now, I'm now letting > the following bash script snippet for automated creation of the raster part > mapfile. It contains the solutions and workarounds reported in this document: > > # the path to the grass cellheader file > absolutepath=$mapsetpath/cellhd/$i > > echo "LAYER" > rastertmpfile > echo " NAME $i" >> rastertmpfile > echo " TYPE RASTER" >> rastertmpfile > echo " STATUS ON" >> rastertmpfile > echo " DATA \"$absolutepath\"" >> rastertmpfile > > # extract the min and max > minmax=`gdalinfo -mm $absolutepath | grep Min | awk -F "=" '{print $2, > $3}' | awk '{print $1, $3}'` > # extract the gdal computed min and max > gdalrange=`gdalinfo -mm $absolutepath | grep "Computed Min" |awk -F > "Computed Min/Max=" '{print $2}' | awk -F "," '{print $1}'` > > > # if gdal has problems with colortables and novalues, it is not able to > compute the range, > # therefore we have to supply it and create a set of ad hoc colorrules > if [ "$gdalrange" == "nan" ] > then > # minmax has the format "123 234", so just extract them > min=`echo $minmax | awk '{print $1}' | awk -F "." '{print $1}'` > max=`echo $minmax | awk '{print $2}' | awk -F "." '{print $1}'` > > # define a default colortable, rainbow of grass, but with "bin + 1" > number of rules, > # to get more colors and give the sensation to be interpolated > bins=19 > delta=$((($max-$min)/$bins)) > > if [ $delta -ne 0 ] > then > colors[1]="255 255 0" > > colors[2]="195 255 0" > colors[3]="130 255 0" > colors[4]="65 255 0" > > colors[5]="0 255 0" > > colors[6]="0 255 65" > colors[7]="0 255 130" > colors[8]="0 255 195" > > colors[9]="0 255 255" > > colors[10]="0 195 255" > colors[11]="0 130 255" > colors[12]="0 65 255" > > colors[13]="0 0 255" > > colors[14]="65 0 255" > colors[15]="130 0 255" > colors[16]="195 0 255" > > colors[17]="255 0 255" > colors[18]="255 0 195" > colors[19]="255 0 130" > colors[20]="255 0 65" > > > # add the processing commands > echo " PROCESSING \"SCALE=$min $max\"" >> rastertmpfile > echo " PROCESSING \"SCALE_BUCKETS=100\"" >> rastertmpfile > > > # create the CLASSes, labeling them with the pixel value > first=$min > second=$(($min+$delta)) > for j in `seq 1 $bins` > do > echo " CLASS " >> rastertmpfile > echo " NAME \"$first\"" >> rastertmpfile > echo " EXPRESSION ([pixel] >= $first and[pixel] < > $second)" >> rastertmpfile > echo " COLOR ${colors[$j]}" >> rastertmpfile > echo " END" >> rastertmpfile > first=$(($first+$delta)) > second=$(($second+$delta)) > done > > # add a last CLASSes, due to bash maths limitations > echo " CLASS " >> rastertmpfile > echo " NAME \"$max\"" >> rastertmpfile > echo " EXPRESSION ([pixel] >= $first and[pixel] < $max)" >> > rastertmpfile > echo " COLOR ${colors[20]}" >> rastertmpfile > echo " END" >> rastertmpfile > fi > fi > > > > Hope this helps someone, the script is not very stylistic, but at least it > does the job for me. :) > > Ciao, > Andrea > > > > > -- > ____________________________________________________________________________ > HydroloGIS - Environmental Open Source Solutions > www.hydrologis.com > > Andrea Antonello > Environmental Engineer > mobile: +393288497722 > > "Let it be as much a great honour to take as to give learning, > if you want to be called wise." > Skuggsja' - The King's mirror - 1240 Reykjavik > ____________________________________________________________________________ -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ ----------------------------------------- OFFICE: Department of Geoinformation Technologies LDF MZLU v Brn? Zem?d?lsk? 3 613 00 Brno e-mail: xcepicky at node.mendelu.cz URL: http://mapserver.mendelu.cz Tel.: +420 545 134 514 From kenlord at GMAIL.COM Sun Oct 16 20:52:34 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Sun, 16 Oct 2005 20:52:34 -0700 Subject: Windows XP Installation - How to Debug? In-Reply-To: <43521EAA.6090906@lkjh.wanadoo.co.uk> Message-ID: Hi Kirby, That error is usually a DLL problem. at the command line, run mapserver ... C:\..\..\mapserv.exe If there are any missing dll's, it will tell you. If it does not, then restart your computer. WinXP Pro SP2 seems to be a little more fussy than older versions. Restarting after a fresh install has fixed that problem for me a couple times. If that doesnt help, then use the version of MapServer from maptools.org/dl Cheers, Ken Lord Vancouver BC On 10/16/05, Kirby James wrote: > Hi, > > I've tried to install Mapserver on Windows XP SP2 using the IIS server. > > When I interrogate Mapserver using http://my_machine/Scripts/mapserv.exe > I get a web page containing the message "No query information to decode. > QUERY_STRING not set." Which I guess implies that much of the > configuration is OK. > > I've tried to install the Itasca example - I can correctly see the index > page "http://my_machine/mapserver/workshop/index.html" but when I > "Initialize" the "Basic Application" option (which delivers a URL of > http://my_machine/Scripts/mapserv.exe?layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2FInetpub%2Fwwwroot%2Fmapserver%2Fworkshop%2Fitasca.map&program=%2FInetpub%2FScripts%2Fmapserv.exe&root=%2FInetpub%2Fwwwroot%2Fmapserver%2Fworkshop&map_web_imagepath=%2FInetpub%2Fwwwroot%2Fmapserver%2Fworkshop%2Ftmp&map_web_imageurl=mapserver%2Fworkshop%2Ftmp&map_web_template=itasca_basic.html > > I get the response "CGI Error - The specified CGI application misbehaved > by not returning a complete set of HTTP headers. The headers it did > return are:" - with no text following. > > I've tried various combinations of paths in the MAP file (latest version > shown below) - but keep getting the same result. > > I'd appreciate any suggestions as to how I can identify the cause of the > problem, > > Regards > > Kirby > > WEB > HEADER templates/header.html > TEMPLATE "set in index.html" > FOOTER templates/footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in index.html" > IMAGEURL "set in index.html" > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is a UMN MapServer application for Itasca County > located in north central Minnesota." > WMS_ACCESSCONSTRAINTS "none" > > # change this value to match your setup > > WMS_ONLINERESOURCE "http://my_machine/mapserver/workshop/index.html" > > WMS_SRS "EPSG:26915" > END > END > From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 17 00:25:06 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 17 Oct 2005 09:25:06 +0200 Subject: connecting to mysql spatial Message-ID: You can't use the MySQL Spatial extensions with Mapserver unfortunately. OGR does not have a connector for the MySQL spatial extensions as well. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Mauricio Stange H." 14-10-2005 21:48 >>> hi, I need to connect mapserver to an spatial database in mysql, for now I'am trying it with a simple table with name, and a location (type POINT). So, how can I access this data from mapserver and display it in a layer?, I think that I have to use OGR, but how. Thank you, Mauricio Stange From info at POGGENSEE.NET Mon Oct 17 03:45:47 2005 From: info at POGGENSEE.NET (Martin Poggensee) Date: Mon, 17 Oct 2005 05:45:47 -0500 Subject: mySQL Message-ID: I want to change the database from PostGIS to mySQL. Anything worked fine, but my ms4w-installation does not support mySQL. I get the message: "msDrawMap(): Image handling error. Failed to draw layer named 'MLINES'. msMYGISLayerOpen(): Query error. msMYGISLayerOpen called but unimplemented! (mapserver not compiled with MYGIS support) " How can I get a win32-MapServer with mySQL-Support ??? From info at POGGENSEE.NET Mon Oct 17 03:51:19 2005 From: info at POGGENSEE.NET (Martin Poggensee) Date: Mon, 17 Oct 2005 05:51:19 -0500 Subject: connecting to mysql spatial Message-ID: If there is no mySQL-Support, then why did I get this message ??? "msDrawMap(): Image handling error. Failed to draw layer named 'MLINES'. msMYGISLayerOpen(): Query error. msMYGISLayerOpen called but unimplemented! (mapserver not compiled with MYGIS support) " From eros.agosto at POLITO.IT Mon Oct 17 04:00:54 2005 From: eros.agosto at POLITO.IT (Eros Agosto) Date: Mon, 17 Oct 2005 13:00:54 +0200 Subject: Tileindex problem Message-ID: Hi List, I have a problem in using tileindex I mean: if I display a raster file (tiff+tfw) it shows: OK DATA "IGN_50000/psc_3124.tif" TYPE RASTER if I display a group of rasters (including the previous one) with tileindex: Nothing is showed (except the class name in the legend) TILEINDEX 'IGN_50000/IGN_50000.shp' TILEITEM 'location' TYPE RASTER I checked the 'location' field in the tileindex file, I checked the position of raster files, but it seems OK Any idea? Thanks a lot Eros ----- Original Message ----- From: "Ethan Alpert" To: Sent: Friday, May 20, 2005 12:19 AM Subject: Re: [UMN_MAPSERVER-USERS] Image Tiling I use imagemagick and gdal_translate to split and build tiles from large images. Then I build a tile index with gdaltindex. As long as you tile index layers MIN/MAX scales are set right you get a pretty big performance gain. However if you're rendering many of the tiles in the same image it slows down. I create overviews for large scales and display those and have the tile index only come on at lower scales. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Taylor Sent: Thursday, May 19, 2005 1:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image Tiling What kind of programs/scripts do most of you use to tile .tif images? I'd be interested in playing with this. Do any of you that use tiled images notice an improvement in performance? From killersmython at BIGPOND.COM Mon Oct 17 04:39:32 2005 From: killersmython at BIGPOND.COM (Andrew Smith) Date: Mon, 17 Oct 2005 21:39:32 +1000 Subject: WMS extent problems In-Reply-To: <200510140847.02100.steveb@bundaberg.qld.gov.au> Message-ID: Thanks to Steve Bowden for this solution to my little problem. All that was required was the following to be added within the METADATA tag of each layer definition, i.e. LAYER NAME ... STATUS .... METADATA "wms_title" "sewerage_lines" *"wms_extent" "422822.62475305 7241085.61869966 444489.23175759 7256085.52572127"* END CONNECTIONTYPE .... DATA .... END Thanks again Steve ORIGINAL MESSAGE POST with screen shot >>Hello List, >> I have been working with mapserver for a little while now. I >>currently have a Linux FC4 box with mapserv 4.6 connecting to a >>Postgres(8.0.1)/PostGIS(1.0) backend. I have had no trouble >>implementing all the componets, and I am even having success with >>implementing a HTTP front end and am enjoying the experience. The only >>issue I have had, and have neglected up until now, is the problem of >>extents concerning the dataset described in the mapfile. I have checked >>the projection (AMG zone 56) using ArcGIS to make sure that I have the >>correct epsg projection (epsg=20256), and it seems right. So where can >>I go from here. I have attached a screen shot of a MapInfo connection >>to my WMS, and the corresponding mapfile. Any suggestions, websites etc >>will be much appreciated. >> >>I have searched the archives of this list, and have found similar >>issues, though no solution has been posted. So in the spirit of this >>online community, i will post a complete solution when one is obtained, >>including links to resources that helped. >> >>Thanks in advance >> >>Andrew Smith >>Masters Candidate >>University of Wollongong >> >> >>/******************************************** >>MAPFILE >> >>NAME "WMS_TEST" >>STATUS ON >>UNITS METERS >>EXTENT 287899 6156549 304702 6171738 >> >> WEB >> IMAGEPATH "..." >> IMAGEURL "..." >> LOG "..." >> METADATA >> "wms_title" "WMS TEST BOX" >> "wms_onlineresource" "http://..." >> "wms_srs" "EPSG:20256" >> END >> >> PROJECTION >> "init=epsg:20256" >> END >> >> LAYER >> NAME Minamurra_Boundary >> METADATA >> "wms_title" "Minamurra Boundary" >> "wms_abstract" "This dataset describes the boundary of the >>Minamurra River Area" >> END >> >> PROJECTION >> "init=epsg:20256" >> END >> >> CONNECTIONTYPE postgis >> CONNECTION " " >> DATA "the_geom from coast" >> >> STATUS ON >> TYPE POLYGON >> >> CLASS >> OUTLINECOLOUR 0 0 0 >> COLOR 3 190 0 >> END >> END >>END >>********************************************/ >> >>Find attached the screen shot of MapInfo WMS Connection >> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapinfo_wms.jpg Type: image/jpeg Size: 67264 bytes Desc: not available URL: From mstangeh at GMAIL.COM Mon Oct 17 05:27:52 2005 From: mstangeh at GMAIL.COM (Mauricio Stange H.) Date: Mon, 17 Oct 2005 09:27:52 -0300 Subject: connecting to mysql spatial In-Reply-To: Message-ID: So, in conclusion, is there any support for mysql??. Can you write the connection that you have tried to use with mysql, to get this message? --Atte. Mauricio Stange. Martin Poggensee wrote: >If there is no mySQL-Support, then why did I get this message ??? > >"msDrawMap(): Image handling error. Failed to draw layer named 'MLINES'. >msMYGISLayerOpen(): Query error. msMYGISLayerOpen called but unimplemented! >(mapserver not compiled with MYGIS support) " > > > From stigmata_blackangel at YAHOO.COM Mon Oct 17 05:36:50 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Mon, 17 Oct 2005 05:36:50 -0700 Subject: connecting to mysql spatial In-Reply-To: <435398C8.6000100@gmail.com> Message-ID: MyGIS is not the same as MySQL spatial. See the following web page for a description of how to use MyGIS (which works with MySQL well before 4.1 and spatial): http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL > So, in conclusion, is there any support for mysql??. > Can you write the connection that you have tried to > use with mysql, to > get this message? > >If there is no mySQL-Support, then why did I get > this message ??? > >"msDrawMap(): Image handling error. Failed to draw > layer named 'MLINES'. > >msMYGISLayerOpen(): Query error. msMYGISLayerOpen > called but unimplemented! > >(mapserver not compiled with MYGIS support) " -- Gregor Mosheh System Administrator and Head Programmer HostGIS, GIS Hosting Solutions for the Global Community http://www.hostgis.com/ __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ From fsc7mail at GMAIL.COM Mon Oct 17 05:48:54 2005 From: fsc7mail at GMAIL.COM (Felipe Costa) Date: Mon, 17 Oct 2005 07:48:54 -0500 Subject: problem with postgis Message-ID: Hello, I don't know if will write something useless to you but, let's try. This message happens to me usually when I don't start PostgreSQL, be sure it's working, try to connect it by command line. I don't like to use the postgre user, try to create another user for your application and give him permission to access your database. Hope it helps! Felipe Costa From fclaudel at CSIR.CO.ZA Mon Oct 17 06:56:29 2005 From: fclaudel at CSIR.CO.ZA (Frederic Claudel) Date: Mon, 17 Oct 2005 15:56:29 +0200 Subject: Tileindex problem Message-ID: Have you checked your SHAPEPATH tag in the MAP object?: MAP NAME "MyMap" SHAPEPATH "/home/mydata" the path will be preprended to the tiles' paths listed in the shapefile hope it helps, Frederic >>> Eros Agosto 17/10/2005 13:00 >>> Hi List, I have a problem in using tileindex I mean: if I display a raster file (tiff+tfw) it shows: OK DATA "IGN_50000/psc_3124.tif" TYPE RASTER if I display a group of rasters (including the previous one) with tileindex: Nothing is showed (except the class name in the legend) TILEINDEX 'IGN_50000/IGN_50000.shp' TILEITEM 'location' TYPE RASTER I checked the 'location' field in the tileindex file, I checked the position of raster files, but it seems OK Any idea? Thanks a lot Eros ----- Original Message ----- From: "Ethan Alpert" To: Sent: Friday, May 20, 2005 12:19 AM Subject: Re: [UMN_MAPSERVER-USERS] Image Tiling I use imagemagick and gdal_translate to split and build tiles from large images. Then I build a tile index with gdaltindex. As long as you tile index layers MIN/MAX scales are set right you get a pretty big performance gain. However if you're rendering many of the tiles in the same image it slows down. I create overviews for large scales and display those and have the tile index only come on at lower scales. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Taylor Sent: Thursday, May 19, 2005 1:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image Tiling What kind of programs/scripts do most of you use to tile .tif images? I'd be interested in playing with this. Do any of you that use tiled images notice an improvement in performance? -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to HelpDesk at csir.co.za. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. From ed at TOPOZONE.COM Mon Oct 17 07:08:20 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 17 Oct 2005 10:08:20 -0400 Subject: Windows XP Installation - How to Debug? Message-ID: And for some reason an incorrectly installed/missing ZLIB.DLL seems to usually be the culprit.... - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Sunday, October 16, 2005 11:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Windows XP Installation - How to Debug? Hi Kirby, That error is usually a DLL problem. at the command line, run mapserver ... C:\..\..\mapserv.exe If there are any missing dll's, it will tell you. If it does not, then restart your computer. WinXP Pro SP2 seems to be a little more fussy than older versions. Restarting after a fresh install has fixed that problem for me a couple times. If that doesnt help, then use the version of MapServer from maptools.org/dl Cheers, Ken Lord Vancouver BC On 10/16/05, Kirby James wrote: > Hi, > > I've tried to install Mapserver on Windows XP SP2 using the IIS server. > > When I interrogate Mapserver using > http://my_machine/Scripts/mapserv.exe > I get a web page containing the message "No query information to decode. > QUERY_STRING not set." Which I guess implies that much of the > configuration is OK. > > I've tried to install the Itasca example - I can correctly see the > index page "http://my_machine/mapserver/workshop/index.html" but when > I "Initialize" the "Basic Application" option (which delivers a URL of > http://my_machine/Scripts/mapserv.exe?layer=lakespy2&layer=dlgstln2&zo > omsize=2&map=%2FInetpub%2Fwwwroot%2Fmapserver%2Fworkshop%2Fitasca.map& > program=%2FInetpub%2FScripts%2Fmapserv.exe&root=%2FInetpub%2Fwwwroot%2 > Fmapserver%2Fworkshop&map_web_imagepath=%2FInetpub%2Fwwwroot%2Fmapserv > er%2Fworkshop%2Ftmp&map_web_imageurl=mapserver%2Fworkshop%2Ftmp&map_we > b_template=itasca_basic.html > > I get the response "CGI Error - The specified CGI application > misbehaved by not returning a complete set of HTTP headers. The > headers it did return are:" - with no text following. > > I've tried various combinations of paths in the MAP file (latest > version shown below) - but keep getting the same result. > > I'd appreciate any suggestions as to how I can identify the cause of > the problem, > > Regards > > Kirby > > WEB > HEADER templates/header.html > TEMPLATE "set in index.html" > FOOTER templates/footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in index.html" > IMAGEURL "set in index.html" > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is a UMN MapServer application for Itasca > County located in north central Minnesota." > WMS_ACCESSCONSTRAINTS "none" > > # change this value to match your setup > > WMS_ONLINERESOURCE "http://my_machine/mapserver/workshop/index.html" > > WMS_SRS "EPSG:26915" > END > END > From ed at TOPOZONE.COM Mon Oct 17 07:10:21 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 17 Oct 2005 10:10:21 -0400 Subject: Tileindex problem Message-ID: Eros - You checked the location field, but you didn't tell us what you found . As was suggested, this is likely to be a problem in misunderstanding paths and how relative paths work in MapServer. If possible, using absolute paths is a good idea and prevents that sort of problem. At least for debugging, try creating your TILEINDEX with absolute paths in the 'location' field; if that fixes it, you know where the problem is. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eros Agosto Sent: Monday, October 17, 2005 7:01 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Tileindex problem Hi List, I have a problem in using tileindex I mean: if I display a raster file (tiff+tfw) it shows: OK DATA "IGN_50000/psc_3124.tif" TYPE RASTER if I display a group of rasters (including the previous one) with tileindex: Nothing is showed (except the class name in the legend) TILEINDEX 'IGN_50000/IGN_50000.shp' TILEITEM 'location' TYPE RASTER I checked the 'location' field in the tileindex file, I checked the position of raster files, but it seems OK Any idea? Thanks a lot Eros ----- Original Message ----- From: "Ethan Alpert" To: Sent: Friday, May 20, 2005 12:19 AM Subject: Re: [UMN_MAPSERVER-USERS] Image Tiling I use imagemagick and gdal_translate to split and build tiles from large images. Then I build a tile index with gdaltindex. As long as you tile index layers MIN/MAX scales are set right you get a pretty big performance gain. However if you're rendering many of the tiles in the same image it slows down. I create overviews for large scales and display those and have the tile index only come on at lower scales. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Taylor Sent: Thursday, May 19, 2005 1:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image Tiling What kind of programs/scripts do most of you use to tile .tif images? I'd be interested in playing with this. Do any of you that use tiled images notice an improvement in performance? From eros.agosto at POLITO.IT Mon Oct 17 07:27:55 2005 From: eros.agosto at POLITO.IT (Eros Agosto) Date: Mon, 17 Oct 2005 16:27:55 +0200 Subject: Tileindex problem Message-ID: Ed, Frederic... that's it, thanks!! Using absolute paths it works! :O) thanks again... I didn't know where to search for the problem.. ----- Original Message ----- From: "Ed McNierney" To: "Eros Agosto" ; Sent: Monday, October 17, 2005 4:10 PM Subject: RE: [UMN_MAPSERVER-USERS] Tileindex problem Eros - You checked the location field, but you didn't tell us what you found . As was suggested, this is likely to be a problem in misunderstanding paths and how relative paths work in MapServer. If possible, using absolute paths is a good idea and prevents that sort of problem. At least for debugging, try creating your TILEINDEX with absolute paths in the 'location' field; if that fixes it, you know where the problem is. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eros Agosto Sent: Monday, October 17, 2005 7:01 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Tileindex problem Hi List, I have a problem in using tileindex I mean: if I display a raster file (tiff+tfw) it shows: OK DATA "IGN_50000/psc_3124.tif" TYPE RASTER if I display a group of rasters (including the previous one) with tileindex: Nothing is showed (except the class name in the legend) TILEINDEX 'IGN_50000/IGN_50000.shp' TILEITEM 'location' TYPE RASTER I checked the 'location' field in the tileindex file, I checked the position of raster files, but it seems OK Any idea? Thanks a lot Eros ----- Original Message ----- From: "Ethan Alpert" To: Sent: Friday, May 20, 2005 12:19 AM Subject: Re: [UMN_MAPSERVER-USERS] Image Tiling I use imagemagick and gdal_translate to split and build tiles from large images. Then I build a tile index with gdaltindex. As long as you tile index layers MIN/MAX scales are set right you get a pretty big performance gain. However if you're rendering many of the tiles in the same image it slows down. I create overviews for large scales and display those and have the tile index only come on at lower scales. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Taylor Sent: Thursday, May 19, 2005 1:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image Tiling What kind of programs/scripts do most of you use to tile .tif images? I'd be interested in playing with this. Do any of you that use tiled images notice an improvement in performance? From Tom.Kralidis at EC.GC.CA Mon Oct 17 07:46:54 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 17 Oct 2005 10:46:54 -0400 Subject: Upgrade Problems - Additional Info Message-ID: All, We've been using clients with these types of precision coordinates for quite some time now with no issues whatsoever. I did some testing further to this, and I have no problems giving a similar request (coord precision wise), to another WMS: http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?version=1.1.1&service=WMS&request=GetMap&layers=naps&styles=&bbox=-141.00000000,35.187499998,-51.999999997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 ...since this one's mine, I know that the underlying data in this case is a shapefile. Tim's example underlying data is coming as a result of an .ovf definition connection. Infact, I have received another email this morning with the exact same issue, and same setup/environment. Is or has something happened to the way the .ovf or underlying OGR process handles precision of coordinates when doing spatial filters? ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard > Orth - osmoGIS Incorporated > Sent: Saturday, 15 October, 2005 00:07 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info > > > Do you have to use 13 or 14 decimal places (16 numerals)? I > got it down > to 8 decimals before it stopped working. This would suggest > the use of a > float variable instead of a double (sorry I had to use a JAVA > example). > > This does work (8 decimal): > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&r equest=GetMap&layers=CABINPoints&styles=&bbox=-> 141.00000000,35.18749999,-51.99999999,90.81250000&format=image /png&srs=EPSG:4326&width=500&height=300 > > This does not work (9 decimals): > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&r equest=GetMap&layers=CABINPoints&styles=&bbox=-> 141.000000002,35.187499998,-51.999999997,90.812500001&format=i mage/png&srs=EPSG:4326&width=500&height=300 > > Even this does not work (11 numerals each): > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&r equest=GetMap&layers=CABINPoints&styles=&bbox=-> 141.00000000,35.187499998,-51.999999997,90.812500001&format=im age/png&srs=EPSG:4326&width=500&height=300 > > Hope this helps you > > Richard C Orth > > > Pascoe,Tim [Burlington] wrote: > > >Wierd. Even this works: > > > >http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS& > request=Ge > >tMap&layers=CABINPoints > > > >And even this works: > > > >http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS& > request=Ge > >tMap&layers=CABINPoints&styles=&bbox=-150,40,-50,80&format=im > age/png&sr > >s=EPSG:4326&width=500&height=300 > > > >But this don't: > > > >http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS& > request=Ge > >tMap&layers=CABINPoints&styles=&bbox=-141.0000000021858,35.18 > 7499998633 > >86,-51.99999999781418,90.81250000136613&format=image/png&srs= > EPSG:4326& > >width=500&height=300 > > > >??? > > > >...the only difference between the last two requests is the > >coordinates. You may want to pass this to the list as a > follow up to > >your thread. > > > >..Tom > > > > > > > > > > -----Original Message----- > > From: Pascoe,Tim [Burlington] > > Sent: Friday, 14 October, 2005 14:43 > > To: Kralidis,Tom [Burlington] > > Subject: Huh? > > > > Tom, > > > > Why is it this works, and not the other request? > > > > > >http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS& request=Ge >tMap&layers=CABINPoints&sld=http%3A%2F%2Fcabin.cciw.ca%2Fcabin%2Fmaps%2 >Fstudy_sld_script.php%3FSLDFilterValue%3D108%26SLDParameter%3Dstudyid > > Timothy Pascoe > > Environment Canada / Environnement Canada > Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures > 867 Lakeshore Road / 867, chemin Lakeshore > Burlington, Ontario / Burlington (Ontario) > L7R 4A6 > > Tel/T?l: (905) 336-6239 > Fax/T?l?c: (905) 336-4699 > E-mail/C. ?lec: tim.pascoe at ec.gc.ca > Government of Canada/Gouvernement du Canada > This e-mail represents the opinions and views solely held by its >author and in no manner may be considered as representing those of >his/her employer. > > > From warmerdam at POBOX.COM Mon Oct 17 08:02:35 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 17 Oct 2005 11:02:35 -0400 Subject: Upgrade Problems - Additional Info In-Reply-To: <2576812186CDD411BF1500508B6DCE950C09A5D2@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On 10/17/05, Kralidis,Tom [Burlington] wrote: > Is or has something happened to the way the .ovf or underlying OGR process handles precision of coordinates when doing spatial filters? Tom, I haven't dug through the previous emails closely to see what is going on, but I thought I should answer this. There has been a substantial improvement in the amount of precision OGR maintains for WKT and GML encodings of geometries. The changes were applied a couple months ago. They are definately in GDAL/OGR 1.3.1 and might be in 1.3.0. OGR spatial filtering will also now use GEOS if built-in. It is possible that some "on the edge" situations would give different results now compared to in the past. I'm not sure if any of this relates to the problem you are seeing though. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Tom.Kralidis at EC.GC.CA Mon Oct 17 09:29:27 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 17 Oct 2005 12:29:27 -0400 Subject: Upgrade Problems - Additional Info Message-ID: > > > On 10/17/05, Kralidis,Tom [Burlington] wrote: > > Is or has something happened to the way the .ovf or underlying OGR > > process handles precision of coordinates when doing spatial filters? > > Tom, > > I haven't dug through the previous emails closely to see what > is going on, but I thought I should answer this. > > There has been a substantial improvement in the amount of > precision OGR maintains for WKT and GML encodings of > geometries. The changes were applied a couple months ago. > They are definately in GDAL/OGR 1.3.1 and might be in 1.3.0. > > OGR spatial filtering will also now use GEOS if built-in. It > is possible that some "on the edge" situations would give > different results now compared to in the past. > > I'm not sure if any of this relates to the problem you are > seeing though. Thanks for the info. I don't think these instances are using WKT/GML as input or output, if that's what you mean. Basic .ovf connection to provide WMS output. Is there anything we can do on our end to help with this issue? The problem is basically: ENVIRONMENT =========== OS: Win32 MapServer: 4.6.1 windows dist (non ms4w package from http://maptools.org/dl) Layer Data connection: OGR .ovf connection to M$ SQL Server 2000 SCENARIO 1 ========== - invoke OGC:WMS GetMap request against said layer with coordinates formatted with 8 decimals http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=Get Map&layers=CABINPoints&styles=&bbox=-141.00000000,35.18749999,-51.999999 99,90.81250000&format=image/png&srs=EPSG:4326&width=500&height=300 Result: works SCENARIO 2 ========== - invoke OGC:WMS GetMap request against said layer with coordinates formatted with 9 decimals http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=Get Map&layers=CABINPoints&styles=&bbox=-141.000000002,35.187499998,-51.9999 99997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 Result: watch server timeout ensue NOTES ===== - this does not exist when the layer data connection is a shapefile, for example ..Tom From kenlord at GMAIL.COM Mon Oct 17 09:30:09 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 17 Oct 2005 09:30:09 -0700 Subject: mySQL In-Reply-To: Message-ID: Hi Martin, Im just curious ... why would you want to switch to MySQL when you already use PostGIS? My understanding is that MySQL doesn't have hardly any of the spatial functions that PostGIS has. Cheers, Ken Lord Vancouver BC On 10/17/05, Martin Poggensee wrote: > I want to change the database from PostGIS to mySQL. Anything worked fine, > but my ms4w-installation does not support mySQL. I get the message: > > "msDrawMap(): Image handling error. Failed to draw layer named 'MLINES'. > msMYGISLayerOpen(): Query error. msMYGISLayerOpen called but unimplemented! > (mapserver not compiled with MYGIS support) " > > How can I get a win32-MapServer with mySQL-Support ??? > From stevem at SPATIALMAPPING.COM Mon Oct 17 09:56:40 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Mon, 17 Oct 2005 11:56:40 -0500 Subject: PHP Wrapper to hide mapfile location Message-ID: I have had some measure of success creating a URL wrapper in PHP for use with the MapServer CGI. My script uses a different approach than the previous poster's example. Since it appears there might be some demand for it, I have decided to "open source" my script, and see if it can be of use to others. The script is available under an "MIT-like" license, which basically means you can use it however you like (with only minor conditions). The "wrap_url" script, as I call it, is very easily configured. In most cases, one need only specify the MapServer URL with the "map" parameter, e.g. "http://localhost/cgi-bin/mapserv?map=/path/to/my/map.map". For more general-purpose uses, wrap_url understands relative URLs and also handles redirects. Basic Authorization is also (somewhat) supported (e.g. "http://myname:mypass at localhost/"). Anyone who is interested in a copy of "wrap_url.php" can contact me via email. Regards, -SM -- From Debbie.Pagurek at EC.GC.CA Mon Oct 17 10:30:52 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 17 Oct 2005 13:30:52 -0400 Subject: OGR/OVF Issues Message-ID: Further to the problem that we were having on our windows server, using OVF to connect to SQL Server... For the record, I copied an older version of gdal12.dll (dated 3/23/2005) into the cgi-bin directory and everything works fine. Seems to me that something funky is going on with gdal12.dll dated 7/19/2005. Just thought I'd let everyone know. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, October 11, 2005 6:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR/OVF Issues On 10/11/05, Avramov,Daniel [Ontario] wrote: > Good to know. We have just discovered that things are working fine > with MapServer 4.4. Furthermore, with 4.6.1 we did get a positive > result with cgi mode (i.e. mode=map) still using the ovf file. Daniel, I am not aware of any reason the behavior would be different with MapServer 4.4 and 4.6. However, with memory corruption issues (a possibilty) unrelated changes can affect crashing. > Now, does MapServer need to be compiled with GDAL 1.3.0 for Windows? > > We have gdal12.dll (dated: 2005_07_19) in the cgi-bin directory. Will > replacing this with gdal13.dll fix the issue or do we need a new > compilation of MapServer for Windows and is it available? Well, it is hard to know from this what version the GDAL is, but it is certainly recently dated. You could try upgrading to GDAL 1.3.1 but it is somewhat of a long shot for fixing the problem. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From j.briere at SASKTEL.NET Mon Oct 17 10:38:50 2005 From: j.briere at SASKTEL.NET (Jeff A. Briere) Date: Mon, 17 Oct 2005 12:38:50 -0500 Subject: MapLab/Geocoding/Deploying Message-ID: We are new to Mapserver, however we have been successful at developing a MapLab application using the MS4W installation on a stand alone computer. We are wondering if there are any Geocoding capabilities within MapServer? Any source code or examples would be appreciated. Also, now that we have completed development using the basic tools provided within Maplab, we are wondering if we could enhance this application further outside of MapLab - has anyone had any success on this - any advice on how to proceed would be great. Finally, from a deployment perspective (this may be a dumb question), I am not sure were to begin. Do MapLab applications rely on an underlying Mapserver or are they driven entirely by PHP? The real question here is how do I take an application developed on a stand alone and get it working on my webpage when I'm not sure about all of the software dependancies? Again any advice would be great? Thanks, Jeff From Tom.Kralidis at EC.GC.CA Mon Oct 17 10:48:56 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 17 Oct 2005 13:48:56 -0400 Subject: MapLab/Geocoding/Deploying Message-ID: > > > We are new to Mapserver, however we have been successful at > developing a MapLab application using the MS4W installation > on a stand alone computer. > > We are wondering if there are any Geocoding capabilities > within MapServer? Any source code or examples would be appreciated. > Not that I know of. You may want to check out: http://imaptools.com/?tab=2 http://www.geocoder.us/ http://dan.egnor.name/google.html As far as example implementations of geocoding approaches. ..Tom From tibben at OCF.BERKELEY.EDU Mon Oct 17 12:36:26 2005 From: tibben at OCF.BERKELEY.EDU (Tim Norris) Date: Mon, 17 Oct 2005 14:36:26 -0500 Subject: queryByPoint accuracy/confusion Message-ID: Perhaps this is not the place for these questions and I should be posting this observation to the PROJ4 list . . . in any case input would be appreciated. Sorry in advance if this observation is out of place. So now that I have reminded myself that measuring distance on maps is a difficult matter, I have a further question regarding the distance measuring tools in mapServer (in particular with the use of the Mercator projection). After a little research, the problem regarding measuring distances when using the standard Mercator projection would be a variable issue based on lattitude. This is fairly obvious if we think about the way the Mercator projection works, and perhaps my best solution is to choose a better projection for my area of interest (California - perhaps a version of UTM would give me better measurments - in fact I am reasonably certain it would). But the big questions for me is - since there are errors within the distance measuring tools, do the same errors exist in the scalebar tools?? After measuring a few scalebars and comparing them to paper maps of California it would seem that the answer is yes. All of the scalebars drawn through mapServer are short (using the Standard Mercator between lattitudes 33 and 38). Even though the answer is that there is an error using distances with the Standard Mercator with my system, I am, to say the least, unclear as to where this problem lies . . . PROJ4 problem?? . . . a compile problem?? . . . a GDAL problem?? some other issue??? I am sure that I can fudge a workaround for this, but at the same time . . . any guidance for an eleant solution would be greatly appreciated . . . for reference the following were my build steps: for Proj4 [root at maps proj-4.4.9]# ./configure [root at maps proj-4.4.9]# make [root at maps proj-4.4.9]# make install [root at maps proj-4.4.9]# cp ~/epsg /usr/local/share/proj/epsg for GDAL [root at maps gdal-1.2.6]# make clean [root at maps gdal-1.2.6]# ./configure --with-ogr --without-python --with-xerces [root at maps gdal-1.2.6]# make [root at maps gdal-1.2.6]# make install [root at maps gdal-1.2.6]# /sbin/ldconfig for mapserver [root at tuna mapserver4.4.2]# rm -f config.cache [root at tuna mapserver4.4.2]# ./configure --without-tiff --with-threads --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-php=../php-5.0.4 --with-gd=/usr/local --with-freetype=/usr/bin --with-pdf --with-wmsclient --with-wfs --with-wfsclient [root at tuna mapserver4.4.2]# make clean [root at tuna mapserver4.4.2]# make [root at tuna mapserver4.4.2]# cp mapserv /var/www/cgi-bin/mapserv_40 [root at tuna mapserver4.4.2]# cp mapscript/php3/php_mapscript.so /usr/local/php/extensions/php_mapscript_40.so as noted in the earlier post, I am using mapServer with PHP mapscript on a Fedora/apache system and all my data is MapInfo (through OGR) - other than this problem, mapServer has performed much better than commercial software that I have used in the past. thanks tim Tim Norris ps: this has also been posted to the PROJ4 listserv From warmerdam at POBOX.COM Mon Oct 17 12:47:42 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 17 Oct 2005 15:47:42 -0400 Subject: Upgrade Problems - Additional Info In-Reply-To: <2576812186CDD411BF1500508B6DCE950C09A5FE@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On 10/17/05, Kralidis,Tom [Burlington] wrote: > Thanks for the info. I don't think these instances are using WKT/GML as > input or output, if that's what you mean. Basic .ovf connection to > provide WMS output. Is there anything we can do on our end to help with > this issue? The problem is basically: Tom / Tim, If you can reproduce the problem at the commandline with mapserv.exe from FWTools then just bundle up the minimum data required to reproduce it along with the commandlne required to invoke it and submit that as a mapserver bug, reassigned to me. If you can't reproduce it under those circumstances then perhaps we can work out a clue as to what is going from that. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From tibben at OCF.BERKELEY.EDU Mon Oct 17 14:08:13 2005 From: tibben at OCF.BERKELEY.EDU (tim) Date: Mon, 17 Oct 2005 16:08:13 -0500 Subject: Upgrade Problems - Additional Info In-Reply-To: <931f8ea90510171247s34d1e114me23942819d3a84b8@mail.gmail.co m> Message-ID: Hi Frank, I appreciate your interest on this, but perhaps taking a closer look at the Mercator first would be more fruitful. I got a number of replies from the PROJ4 list that indicate the problem is related to the Mercator characteristics, i.e. From: Clifford J Mugnier >Computing distances is a folly on the Normal Aspect >Mercator. With two endpoints, just compute the inverse of the cartesian >coordinates back into latitude and longitude and then compute the correct >distance with a geodesic inverse. From: Paul Ramsey >For a Mercator map of all of California, there is no *right* scale >bar. The scale at the top will be different from the scale at the >bottom. This is true of any Mercator map, just actually visible on >maps of larger areas. So the scale bar Mapserver is generating is >probably right for *one* part of the map (perhaps the top or bottom?) >and the scale bar from your paper map is right for *one* part of the >map (the middle, maybe? or maybe for right where it is?). >For interactive things, like desktop user interfaces, it is possible >to quietly cheat. The measuring tool in uDig, for example, projects >back into geographic coordinates, and does length calculations on the >spheroid, rather than naively returning the length in the projected >plane. In this way it is possible to measure distances in meters >while looking at a map in geographics, or get correct distances from >a map in mercator. From: "Craig Miller" >To get correct distances, you will need to calculated great-circle distance. I am almost sure that I can implement one of these solutions through php mapscript, but it will mean circumventing the usual measuring tools . . . If you are still interested, I will try to re-create the visible differences from the command line mapserv.exe as you suggest . . . thanks again for the interest tim Tim Norris At 02:47 PM 10/17/2005, Frank Warmerdam wrote: >On 10/17/05, Kralidis,Tom [Burlington] wrote: > > Thanks for the info. I don't think these instances are using WKT/GML as > > input or output, if that's what you mean. Basic .ovf connection to > > provide WMS output. Is there anything we can do on our end to help with > > this issue? The problem is basically: > >Tom / Tim, > >If you can reproduce the problem at the commandline with mapserv.exe >from FWTools then just bundle up the minimum data required to reproduce >it along with the commandlne required to invoke it and submit that as a >mapserver bug, reassigned to me. > >If you can't reproduce it under those circumstances then perhaps we can >work out a clue as to what is going from that. > >Best regards, >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent From ed at TOPOZONE.COM Mon Oct 17 15:00:49 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 17 Oct 2005 18:00:49 -0400 Subject: Upgrade Problems - Additional Info Message-ID: Tim - I think you're confusing a few issues and only partially understanding the properties of the Mercator projection. As Cliff pointed out, if you are interested in measuring distances, a Mercator projection is just the wrong choice of projection. Different projections have different properties; none are perfect, and all sacrifice doing some things poorly in order to do other things well. Again, Cliff pointed out the one prominent reason to choose a Mercator projection - it lets you draw lines of constant compass declination (rhumb lines) as straight lines. Unless you're a marine navigator with a defective GPS receiver, that is probably not useful to you. I have occasionally vented my frustration at the rampant proliferation of the "geographic" projection these days, in which latitude and longitude are used X/Y coordinates. This isn't the same as the Mercator projection, but it's very nearly as useless. You *cannot* create a generalized scale bar for such a map. That's not MapServer's fault, and has nothing to do with a MapServer configuration. You just cannot do it because the linear scale on such a map varies with both the latitude and with the angle of the line measured. It is just plain impossible to create an accurate scale bar. The fact that some maps display a scale bar next to a Mercator projection doesn't mean that scale bar is accurate (although the more honest ones will footnote the scale bar indicating the one place on the map where it's correct). Fortunately, there are many projections in the world to choose from . The UTM family of projections was defined (in part) to provide relatively uniform distance measurements. That's why each UTM zone is only 6 degrees wide; the projection math works fine beyond that range, but the distortion increases to an unacceptable level. That's also why US states have adopted State Plane Coordinate Systems (SPCS). They are designed to cover a smaller area than UTM, but with a smaller degree of distortion, suitable for use in surveying and other professional applications. Many states are divided into several "zones", each of which uses a different (but related) projection, to further minimize the distortion. If you are specifically interested in the State of California, the State GIS program uses an Albers projection for managing statewide data. While nothing's perfect, this projection is probably a good candidate for use in displaying California statewide data sets in a manner that allows distance and area measurements (and scale bars) with a reasonable degree of accuracy over a relatively large area like California. You can find information about it at http://gis.ca.gov/albers.epl - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of tim Sent: Monday, October 17, 2005 5:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info Hi Frank, I appreciate your interest on this, but perhaps taking a closer look at the Mercator first would be more fruitful. I got a number of replies from the PROJ4 list that indicate the problem is related to the Mercator characteristics, i.e. From: Clifford J Mugnier >Computing distances is a folly on the Normal Aspect >Mercator. With two endpoints, just compute the inverse of the cartesian >coordinates back into latitude and longitude and then compute the correct >distance with a geodesic inverse. From: Paul Ramsey >For a Mercator map of all of California, there is no *right* scale >bar. The scale at the top will be different from the scale at the >bottom. This is true of any Mercator map, just actually visible on >maps of larger areas. So the scale bar Mapserver is generating is >probably right for *one* part of the map (perhaps the top or bottom?) >and the scale bar from your paper map is right for *one* part of the >map (the middle, maybe? or maybe for right where it is?). >For interactive things, like desktop user interfaces, it is possible >to quietly cheat. The measuring tool in uDig, for example, projects >back into geographic coordinates, and does length calculations on the >spheroid, rather than naively returning the length in the projected >plane. In this way it is possible to measure distances in meters >while looking at a map in geographics, or get correct distances from >a map in mercator. From: "Craig Miller" >To get correct distances, you will need to calculated great-circle distance. I am almost sure that I can implement one of these solutions through php mapscript, but it will mean circumventing the usual measuring tools . . . If you are still interested, I will try to re-create the visible differences from the command line mapserv.exe as you suggest . . . thanks again for the interest tim Tim Norris At 02:47 PM 10/17/2005, Frank Warmerdam wrote: >On 10/17/05, Kralidis,Tom [Burlington] wrote: > > Thanks for the info. I don't think these instances are using > > WKT/GML as input or output, if that's what you mean. Basic .ovf > > connection to provide WMS output. Is there anything we can do on > > our end to help with this issue? The problem is basically: > >Tom / Tim, > >If you can reproduce the problem at the commandline with mapserv.exe >from FWTools then just bundle up the minimum data required to reproduce >it along with the commandlne required to invoke it and submit that as a >mapserver bug, reassigned to me. > >If you can't reproduce it under those circumstances then perhaps we can >work out a clue as to what is going from that. > >Best regards, >-- >---------------------------------------+------------------------------- >---------------------------------------+------- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent From info at POGGENSEE.NET Mon Oct 17 22:15:15 2005 From: info at POGGENSEE.NET (Martin Poggensee) Date: Tue, 18 Oct 2005 00:15:15 -0500 Subject: mySQL Message-ID: mySQL has some spatial functionality. It?s sufficient for me. But the performance of mySQL is much better than from PostGIS. With PostGIS any INSERT of a MULTILINESTRING lasts 6 times longer. From adams at TERRESTRIS.DE Mon Oct 17 23:59:01 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 18 Oct 2005 08:59:01 +0200 Subject: mySQL In-Reply-To: Message-ID: > mySQL has some spatial functionality. It?s sufficient for me. But the > performance of mySQL is much better than from PostGIS. With PostGIS any > INSERT of a MULTILINESTRING lasts 6 times longer. Dear Martin, as I understand MyGIS and the spatial functions of Mysql 4.1 are two pair of shoes. MyGIS is an older implementaton of spatial functions in mysql but not implemented in the main stream of mysql. We have a project where we fetched x/y data from a mysql database via odbc driver on a debian box (horrable to get the driver runing) but as far as I know there is no way to read mysql 4.1 spatial data directly. I tried to upload the manual to the new mapserver page, but it didn't work - maybe I did something wrong. If that'll help you plese send an email. Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From higon_jos at GVA.ES Tue Oct 18 01:43:09 2005 From: higon_jos at GVA.ES (Jos=?ISO-8859-1?Q?=E9_Vte_Hig=F3n?=) Date: Tue, 18 Oct 2005 03:43:09 -0500 Subject: WCS: server fails with a small coverage Message-ID: Hi list, I'am using mapserver wcs 4.6.0, when I request a coverage with a small size (an extent quite big), the server returns this error: msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. mapserv(): Web application error. No way to generate map extent. This is the request: http://gruposigp2/cgi-bin/wcs?COVERAGE=quickbird3&CRS=EPSG:32630 &BBOX=742806.4,4264938.3,753600.4,4268018.3 &bands=1,2,3&FORMAT=GEOTIFF_INT16&WIDTH=18&HEIGHT=5 In order to prevent this error, I have tried to filter this layer when the scale is bigger than 1000000 meters: ... UNITS METERS MAXSCALE 1000000 ... but, the error is still happening! What I am doing wrong? Thanks in advance From biz.king at MAC.COM Tue Oct 18 03:33:33 2005 From: biz.king at MAC.COM (Biz King) Date: Tue, 18 Oct 2005 05:33:33 -0500 Subject: WGS84 co-ordinates to shapefile points Message-ID: Hi All I have a system (running beautifully and quickly on OS X.4 servers) with a complete GIS/GRASS installation (courtesy of kyngchaos.com - thanks fo that). I have a complete mapping system and planning system based on internal GIS data derived from shape files, so all data is in meters and has relevant Extents values and is derived from shapefile details, not WGS84 co-ordinates. The problem I have is that I am being given GPS (WGS84) co-ordinates and need to convert them for use within the same data sets. Please could someone give me an idea of how to write a process that will handle this, or give me some pointers (or tutorials) that will assist me to develop a solution for myself (I need to understand this, not just to find a solution as I need to find a 'world' solution not just a 'local' one.) Some cut-down map file info is below plus a single coordinate that is similar to the ones I need to translate. Can anyone help me with this? Thanks in advance. cheers Biz ---------------------------------------------- Lat/Lon details: WGS84 Latitude: 1.234567 WGS84 Longtitude: -8.234567 Mapfile details: ---------------------------------------------- MAP STATUS ON # Extent -50000 -50000 655619 1220290 Extent -150000 -150000 655619 1220290 SIZE 900 900 SHAPEPATH "/xxxxxxxxxxxx/osdata/export_wgs84/" FONTSET "/xxxxxxxxxxxx/book_src/fontset.txt" IMAGECOLOR 128 128 200 WEB IMAGEPATH "/xxxxxxxxxxxx/osdata/tmp/" IMAGEURL "/xxxxxxxxxxxx/osdata/tmp/" END PROJECTION "init=epsg:4326" END LAYER NAME "Pointers" EXTENT -50000 -50000 655619 1220290 STATUS on # TRANSFORM FALSE PROJECTION "proj=latlong" END TYPE point LABELITEM "NAME0" CLASS NAME "Pointers" STYLE SYMBOL "PointerBlob" SIZE 12 COLOR 255 128 0 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "eurostyle" SIZE 9 OUTLINECOLOR 255 255 255 COLOR 0 0 0 POSITION auto END END END END From webloper at INFOGEO.CH Tue Oct 18 05:45:48 2005 From: webloper at INFOGEO.CH (R Baud) Date: Tue, 18 Oct 2005 14:45:48 +0200 Subject: Isochrones maps with Mapserver Message-ID: I all, I'm searching a way to do some isochrone maps with mapserver. I believe that no capabilities were implemented in mapserver to do that yet. So I suppose use mapserver and my web page only for the request and for drawing the result (am I wrong?). What must be done between, calculations, requests and polygons drawing should be done by another program. Perhaps with PhP & Mapscript or with special CGI routine or perhaps anything else ?? My datas contain many informations such as speed, vehicles, weight limitations etc... For this development the environment must be able to do database queriing and also spacial queriing (into shape files, etc..) I know that a firm created a application with mapserver to do that, but they didn't explain a little how. Do someone experienced a little in this subject? Any hint would be very appreciated! Thanks in advance, regards. R?my -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Tue Oct 18 06:25:41 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 18 Oct 2005 09:25:41 -0400 Subject: Isochrones maps with Mapserver In-Reply-To: <1129639548-3156be92a2ad40a3175c07d493f55678@infogeo.ch> Message-ID: R Baud wrote: > I all, > I'm searching a way to do some isochrone maps with mapserver. I believe > that no capabilities were implemented in mapserver to do that yet. So I > suppose use mapserver and my web page only for the request and for > drawing the result (am I wrong?). What must be done between, > calculations, requests and polygons drawing should be done by another > program. Perhaps with PhP & Mapscript or with special CGI routine or > perhaps anything else ?? > My datas contain many informations such as speed, vehicles, > weight limitations etc... For this development the environment must be > able to do database queriing and also spacial queriing (into shape > files, etc..) > I know that a firm created a application with mapserver to do that, but > they didn't explain a little how. > Do someone experienced a little in this subject? Any hint would be very > appreciated! You can do it but it requires you to pre-calculate the data and then use mapserver to render it. I have a drive time analysis that displays isochrone maps you can see it here http://imaptools.com/demos1/?tab=3 This works by computing the isochrones and writing a shapefile with nested overlapping polygons. Each polygon has an attribute that is then used as a CLASSITEM in the mapfile to render it, and I use PHP in this demo to glue everything together. There is some prototype support for color ramps being added to mapserver that would make it easier to define the isochrone color ramps in the mapfile. Do a search on the archives for COLORRAMP should reveal more on that. Hope this helps, -Steve W. From flavio at TYDAC.CH Tue Oct 18 07:16:30 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 18 Oct 2005 16:16:30 +0200 Subject: Isochrones maps with Mapserver In-Reply-To: <1129639548-3156be92a2ad40a3175c07d493f55678@infogeo.ch> Message-ID: hi r?my you could use routeware: www.routeware.dk. it does isochrones and is compatible with mapserver. as far as I know there is no open source alternative that does a decent job. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio 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 ---------------------------------------------------------------- From j.briere at SASKTEL.NET Tue Oct 18 07:44:56 2005 From: j.briere at SASKTEL.NET (Jeff A. Briere) Date: Tue, 18 Oct 2005 09:44:56 -0500 Subject: Chameleon Enhanced Sample Message-ID: Does anyone know why none of the navigation tools work on the Chameleon Enhanced Sample? What do I have to do to fix this? There seems to be a lot of problems with it? Thanks Jeff From temiz at DEPREM.GOV.TR Tue Oct 18 07:21:57 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 18 Oct 2005 17:21:57 +0300 Subject: problem in running java-mapscript Message-ID: hello I am new to java I am trying to run a javamapscript. But I am receiving an error message : import edu.umn.gis.mapscript.*; public class jeo2 { public static void main(String[] args) { try { System.loadLibrary("libmapscript.so"); } catch(UnsatisfiedLinkError ule) { System.err.println(ule); System.exit(-1); } java.lang.UnsatisfiedLinkError: no libmapscript.so in java.library.path what should library path be ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From fsimon at UNIVALI.BR Tue Oct 18 12:08:40 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 18 Oct 2005 13:08:40 -0600 Subject: problem in running java-mapscript In-Reply-To: <43550505.7000600@deprem.gov.tr> Message-ID: Hi Orkun, The Java will read the lib from classpath. So you need to put your lib in path that java can read, or in the lib system path (if it's appear in classpath). Regards ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ orkun wrote: > hello > > I am new to java > > I am trying to run a javamapscript. > But I am receiving an error message : > > import edu.umn.gis.mapscript.*; > > public class jeo2 { > > public static void main(String[] args) { > try > { > System.loadLibrary("libmapscript.so"); > } > catch(UnsatisfiedLinkError ule) > { > System.err.println(ule); > System.exit(-1); > } > > java.lang.UnsatisfiedLinkError: no libmapscript.so in java.library.path > what should library path be ? > > regards > > Ahmet Temiz > > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the > sender's own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > From warmerdam at POBOX.COM Tue Oct 18 08:27:38 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 18 Oct 2005 11:27:38 -0400 Subject: WCS: server fails with a small coverage In-Reply-To: Message-ID: On 10/18/05, Jos? Vte Hig?n wrote: > Hi list, > I'am using mapserver wcs 4.6.0, when I request a coverage with a small size > (an extent quite big), > the server returns this error: > > msDrawMap(): Image handling error. Unable to initialize image. > msPrepareImage(): General error message. Image dimensions not specified. > msCalculateScale(): General error message. Invalid image extent, > minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > mapserv(): Web application error. No way to generate map extent. > > This is the request: > http://gruposigp2/cgi-bin/wcs?COVERAGE=quickbird3&CRS=EPSG:32630 > &BBOX=742806.4,4264938.3,753600.4,4268018.3 > &bands=1,2,3&FORMAT=GEOTIFF_INT16&WIDTH=18&HEIGHT=5 > > In order to prevent this error, I have tried to filter this layer when the > scale is bigger than 1000000 meters: > ... > UNITS METERS > MAXSCALE 1000000 > ... > but, the error is still happening! Jos?, This error is typically reported when the computed internal WIDTH or HEIGHT are zero. This might be happening in your case if the BBOX is substantially larger than the extents of the data, such that the final result HEIGHT would less than 1. BTW, I don't think it is legal according to the WCS protocol to request data beyond the extents of the coverage. Are you doing that? However, I am not sure of this analysis. For us to really dig into this I think you will need to provide everything we need to reproduce the problem. o Map file (cut down to just what is needed for this problem). o Data file(s). o the QUERY_STRING we can pass on the commandline to reproduce the problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From umberto.nicoletti at GMAIL.COM Tue Oct 18 08:28:56 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 18 Oct 2005 17:28:56 +0200 Subject: problem in running java-mapscript In-Reply-To: <43550505.7000600@deprem.gov.tr> Message-ID: On 10/18/05, orkun wrote: > hello > > I am new to java > > I am trying to run a javamapscript. > But I am receiving an error message : > > import edu.umn.gis.mapscript.*; > > public class jeo2 { > > public static void main(String[] args) { > try > { > System.loadLibrary("libmapscript.so"); it is "mapscript", not "libmapscript.so". > } > catch(UnsatisfiedLinkError ule) > { > System.err.println(ule); > System.exit(-1); > } > > java.lang.UnsatisfiedLinkError: no libmapscript.so in java.library.path > what should library path be ? > > regards > > Ahmet Temiz > > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > From tmelhuish at WEBINSIGHTSINC.COM Tue Oct 18 08:48:13 2005 From: tmelhuish at WEBINSIGHTSINC.COM (Tom Melhuish) Date: Tue, 18 Oct 2005 11:48:13 -0400 Subject: Problem with ShapeObj->{classindex} In-Reply-To: Message-ID: I have been watching the list and have not seen any response to my problen yet. I have used the $class->insertStyle(style, index) method to define and retrieve an index for the styleObj but don't see anything comparable for the ClassObj when looking in the mapscript.pm file. I am successful in defining my classes and see them appear in the Legend. I tried using class index 1,2,3..5 to set the ShapeObj->{classindex}, but it always used the first classObj defined for all of the shapeObjs I create. Can someone please help. I hate to have to create a separate layer for each feature I need to define. Please let me know if I need to provide more information to define my problem. Thanks again. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Tom Melhuish Sent: Wednesday, October 12, 2005 4:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem with ShapeObj->{classindex} To add to my issue, I was able to generate a Legend with the classes I defined. The colors in the Legend where displayed as expected. It looks like the ShapeObj->{classindex} has no effect an the shapeObjs defined and defaults to the first classObj defined. I'm running: mapserver 4.2.2 Redhat 9.0 httpd-2.0.53 Thanks in advance for your help. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Tom Melhuish Sent: Tuesday, October 11, 2005 3:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with ShapeObj->{classindex} I'm creating a feature and need to change the colors for each one that is generated. I'm able to create the shapeObjs and associated text, but the classObj is always set to index=0. If I query the $layer->{numclasses} I get 2. for (0..1) { my $point = new mapscript::pointObj() or &AppletMsg('Unable to create point',"error"); my $line = new mapscript::lineObj() or &AppletMsg('Unable to create line',"error"); my $shape = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); $point->{x} = $QueryResultsmatrix[$_+100]->[1] or &AppletMsg('Unable to add x value to point',"error"); $point->{y} = $QueryResultsmatrix[$_+100]->[2] or &AppletMsg('Unable to add y value to point',"error"); $retval=$line->add($point); $retval=$shape->add($line); $shape->{classindex} = $_; #### Always set to 0 no matter what I enter. $shape->{text} =Test.$_; $retval=$layer->addFeature($shape); } Layer Information ------------------- LAYER NAME "GpsfeatPt" STATUS OFF TYPE POINT TEMPLATE "ttt.html" CLASS #COLOR 128 255 164 SYMBOL "cross" COLOR 254 0 0 SIZE 7 LABEL SIZE small POSITION UC COLOR 254 0 0 END END CLASS #COLOR 128 255 164 SYMBOL "cross" COLOR 254 0 200 SIZE 7 LABEL SIZE small POSITION UC COLOR 254 0 200 END END END From Debbie.Pagurek at EC.GC.CA Tue Oct 18 08:49:32 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Tue, 18 Oct 2005 11:49:32 -0400 Subject: OVF select statement - problem querying a WMS layer Message-ID: Running into minor issues with the Chameleon query for a French WMS that we're serving. The ovf file has an sql statement that includes something like: Select city as "l'emplacement_de_la_station" etc. Chameleon Query widget (or Mapserver WMS) is choking on that apostrophe. This sort of thing works fine for characters with french accents (e.g. select air1_map_2005.id as "num?ro_de_la_station"), but it's not working with this apostrophe situation. Our solution would be to do something like using another sequence of characters and doing a search and replace in the query widget to get the proper thing. But does anyone know how to fix this properly? Or how to test where the error is occuring? The query works fine in SQL, so I know it's a mapserver or chameleon thing - it doesn't like this character (') in a fieldname. I've tried escaping it (in the .ovf file) using 2 apostrophes '' and I also tried \' but the chameleon query keeps showing No results for the layer. Sorry for crossposting. D. Pagurek -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Tue Oct 18 09:19:28 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 18 Oct 2005 10:19:28 -0600 Subject: Problem with ShapeObj->{classindex} In-Reply-To: Message-ID: Tom, There is a recent bug in the tracker which may be relevant: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1494 Although it doesn't appear in the comments, I seem to recall that this may have been related to legend rendering. cheers, Sean On Oct 18, 2005, at 9:48 AM, Tom Melhuish wrote: > I have been watching the list and have not seen any response to my > problen > yet. I have used the $class->insertStyle(style, index) method to > define and > retrieve an index for the styleObj but don't see anything comparable > for the > ClassObj when looking in the mapscript.pm file. I am successful in > defining > my classes and see them appear in the Legend. I tried using class index > 1,2,3..5 to set the ShapeObj->{classindex}, but it always used the > first > classObj defined for all of the shapeObjs I create. > > Can someone please help. I hate to have to create a separate layer for > each > feature I need to define. > Please let me know if I need to provide more information to define my > problem. > Thanks again. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Tom Melhuish > Sent: Wednesday, October 12, 2005 4:53 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Problem with ShapeObj->{classindex} > > > To add to my issue, I was able to generate a Legend with the classes I > defined. The colors in the Legend where displayed as expected. It > looks like > the ShapeObj->{classindex} has no effect an the shapeObjs defined and > defaults to the first classObj defined. I'm running: > mapserver 4.2.2 > Redhat 9.0 > httpd-2.0.53 > > Thanks in advance for your help. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Tom Melhuish > Sent: Tuesday, October 11, 2005 3:14 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Problem with ShapeObj->{classindex} > > > I'm creating a feature and need to change the colors for each one that > is > generated. I'm able to create the shapeObjs and associated text, but > the > classObj is always set to index=0. If I query the $layer->{numclasses} > I get > 2. > > for (0..1) { > my $point = new mapscript::pointObj() or &AppletMsg('Unable to > create > point',"error"); > my $line = new mapscript::lineObj() or &AppletMsg('Unable to create > line',"error"); > my $shape = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); > $point->{x} = $QueryResultsmatrix[$_+100]->[1] or > &AppletMsg('Unable to > add x value to point',"error"); > $point->{y} = $QueryResultsmatrix[$_+100]->[2] or > &AppletMsg('Unable to > add y value to point',"error"); > $retval=$line->add($point); > $retval=$shape->add($line); > $shape->{classindex} = $_; #### Always set to 0 no matter what I > enter. > $shape->{text} =Test.$_; > $retval=$layer->addFeature($shape); > } > > Layer Information > ------------------- > LAYER > NAME "GpsfeatPt" > STATUS OFF > TYPE POINT > TEMPLATE "ttt.html" > CLASS > #COLOR 128 255 164 > SYMBOL "cross" > COLOR 254 0 0 > SIZE 7 > LABEL > SIZE small > POSITION UC > COLOR 254 0 0 > END > END > CLASS > #COLOR 128 255 164 > SYMBOL "cross" > COLOR 254 0 200 > SIZE 7 > LABEL > SIZE small > POSITION UC > COLOR 254 0 200 > END > END > END > > -- Sean Gillies sgillies at frii dot com http://zcologia.com From perrygeo at GMAIL.COM Tue Oct 18 09:30:53 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Tue, 18 Oct 2005 09:30:53 -0700 Subject: WGS84 co-ordinates to shapefile points In-Reply-To: Message-ID: Biz On 10/18/05, Biz King wrote: > > The problem I have is that I am being given GPS (WGS84) co-ordinates and > need to convert them > for use within the same data sets. > Are these WGS84 coordinates in a shapefile or some GIS data format already? If so, Mapserver can handle data in disparate projections by reprojecting "on-the-fly": 1. Your MAP's projection ("init=epsg:4326") will be the common output projection. 2. Your LAYER's projection will define the actual native coordinate system of the dataset (One would be UTM the other latlong, etc) If the layer projection differs from the map projection, it will be reprojected everytime you request an image. The reprojection is pretty fast but keep in mind that reprojecting HUGE datasets will slow things down so it's best to preprocess them in that case. A tool like ogr2ogr (http://gdal.maptools.org/ogr/ogr2ogr.html) can reproject vector data. Hope this helps, -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From dn at HDDESIGN.COM Tue Oct 18 09:20:40 2005 From: dn at HDDESIGN.COM (David Niergarth) Date: Tue, 18 Oct 2005 11:20:40 -0500 Subject: Problems translating map file layers to mapscript Message-ID: I have a map file layer with the following class: CLASS COLOR 255 0 0 LABEL FONT "arial" TYPE TRUETYPE POSITION CC SIZE 8 ANTIALIAS TRUE FORCE TRUE OFFSET 0 0 COLOR 0 0 255 PARTIALS TRUE END END When I try to add this layer using the mapscript API (rather than including it in the map file), I get labels with an opaque (black) background color and outline color. I can change the background color but I can't figure out how to make it transparent, which is the effect I effect I get when including the above in the map file. In other words, I just want to see the type overlayed on top of the map. Can anyone suggest why this isn't working? Here my Python mapscript translation of the above: c = mapscript.classObj(layer) s = mapscript.styleObj(c) s.color = mapscript.colorObj(255, 0, 0) c.label = mapscript.labelObj() c.label.font = 'arial' c.label.type = mapscript.MS_TRUETYPE c.label.position = mapscript.MS_CC c.label.size = 8 c.label.minsize = 8 c.label.maxsize = 8 c.label.antialias = mapscript.MS_TRUE c.label.force = mapscript.MS_TRUE c.label.offsetx = 0 c.label.offsety = 0 c.label.color = mapscript.colorObj(0, 0, 255) c.label.partials = mapscript.MS_TRUE # Should I have to set these? Can they be made tranparent? #c.label.backgroundcolor = mapscript.colorObj(255, 255, 255) #c.label.outlinecolor = mapscript.colorObj(255, 255, 255) I'm also having to specify c.label.minsize and c.label.maxsize, otherwise the labels come out just one or two pixels tall. It's like there are some defaults that are assumed in the map file but that need to be made explicit in the mapscript version. Any insights appreciated, --David Niergarth P.S. I wonder if anyone has ever written a code generator that could translate map file fragments (like a layer) to mapscript API calls? I'm discovering doing it by hand is pretty tedious. From kichi at REDIFFMAIL.COM Tue Oct 18 10:29:52 2005 From: kichi at REDIFFMAIL.COM (krishnaa sridharan) Date: Tue, 18 Oct 2005 17:29:52 -0000 Subject: Spatial Database Message-ID: Hi all, I would like to know if i could you spatial dabase like POstGIS to draw polygons. Is there any how too document available regarding this. Thanks Krishnaa -------------- next part -------------- An HTML attachment was scrubbed... URL: From damon at HDDESIGN.COM Tue Oct 18 10:21:02 2005 From: damon at HDDESIGN.COM (Damon Butler) Date: Tue, 18 Oct 2005 12:21:02 -0500 Subject: Problems translating map file layers to mapscript In-Reply-To: <435520D8.1020906@hddesign.com> Message-ID: > # Should I have to set these? Can they be made tranparent? Yes. And Yes. > #c.label.backgroundcolor = mapscript.colorObj(255, 255, 255) > #c.label.outlinecolor = mapscript.colorObj(255, 255, 255) They can be made transparent by supplying negative numbers for the R, G, and B values. c.label.backgroundcolor = mapscript.colorObj(-1, -1, -1) c.label.outlinecolor = mapscript.colorObj(-1, -1, -1) But I'm afraid that I don't have any insights into your other queries (repeated below). --Damon > I'm also having to specify c.label.minsize and c.label.maxsize, > otherwise the labels come out just one or two pixels tall. It's like > there are some defaults that are assumed in the map file but that need > to be made explicit in the mapscript version. > > Any insights appreciated, > > --David Niergarth > > P.S. I wonder if anyone has ever written a code generator that could > translate map file fragments (like a layer) to mapscript API calls? I'm > discovering doing it by hand is pretty tedious. =-=-=-= "Hey, sexy mama. Wanna kill all the humans?" -Bender From bartvde at XS4ALL.NL Tue Oct 18 10:32:49 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 18 Oct 2005 19:32:49 +0200 Subject: Spatial Database In-Reply-To: <20051018172952.31319.qmail@webmail30.rediffmail.com> Message-ID: Yes you can. See the following URL for tutorials/workshops: http://ms.gis.umn.edu/community/conferences/MUM3/ Best regards, Bart On Tue, 18 Oct 2005 19:29:52 +0200, krishnaa sridharan wrote: > Hi all, > I would like to know if i could you spatial dabase like POstGIS to draw > polygons. Is there any how too document available regarding this. Thanks > Krishnaa > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From dylan at IICI.NO-IP.ORG Tue Oct 18 11:15:59 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Tue, 18 Oct 2005 11:15:59 -0700 Subject: legend does not render with DHTML example Message-ID: Greetings, After moving a working mapserver application from one server to another, i noticed that my html legends are no longer rendered in its respective dbox: instead i see this text in its place: /cgi-bin/mapserv?map=/data1/website/mapserver/dhtml/mapunit.map&mode=legend&....blah,blah,blah when pasted in a new browser window, this prints the legend as expected... any ideas on why this might be happening? Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From bob.basques at CI.STPAUL.MN.US Tue Oct 18 11:23:13 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 18 Oct 2005 13:23:13 -0500 Subject: [Reminder - Tonight] Twin City MapServer Users Group (TCMUG) Meeting. Message-ID: MapServer Users, We're hosting the next Meeting on Tues the 18th of Oct. (next week) We've planned out a demo at the City of Saint Paul of our latest incarnation of MapServer Based Web Services/Data distribution application. * The application is XML/DHTML based with an emphasis on allowing the dataset owners free rain over their repective datasets with regard to updating. * Each layer in the interface has it's own administrator and each admin can edit the data as frequently or infrequently as they like. * Each data layer also uses it's own layer config and Map file which each admin has control over. The look and feel of the layer can be edited by each admin with this configuration. * No one layer being mis-configured can bring down the whole of the service as a result of this type of architecture. * Since the datalayers are seperated and called seperately, they can be used for other Clients besides a Web Browser. The plan now is to start around 5:00 PM. and go for an hour or so. Someone on the List suggested heading out afterwards to socialize. We can pick a place now, or wait till then. The location will be the 7th floor of the City Hall Annex. in Downtown Saint Paul, across 4th street from City Hall. 7th Floor (Computer Services) 25 West 4th Street, City Hall Annex. Saint Paul, Mn. 55102 The door to the building locks automatically around 5:00 pm. So showing up a little early might be best. If you do get stuck outside, just call me at 612.598.9210 Bob Basques. Map Links: http://maps.google.com/maps?q=25+4th+St+W,+St+Paul,+MN+55102&spn=0.007892,0.018489&iwloc=A&hl=en http://maps.google.com/maps?q=25+4th+St+W,+St+Paul,+MN+55102&spn=0.003946,0.009245&t=h&iwloc=A&hl=en (hybrid map) Parking locations: http://maps.google.com/maps?q=25+5th+St+W,+St+Paul,+MN+55102&spn=0.007892,0.018489&iwloc=A&hl=en (Lawson Ramp) http://maps.google.com/maps?q=121+Kellogg+Blvd+W,+St+Paul,+MN+55102&iwloc=A&hl=en (Underground Ramp - Access from West Bound Kellogg only) http://maps.google.com/maps?q=132+Kellogg+Blvd+W,+St+Paul,+MN+55102&iwloc=A&hl=en (RiverCentre Parking Ramp) There is also on-street Parking. After 4:30 PM. the Meters are free. bobb From sgillies at FRII.COM Tue Oct 18 11:49:31 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 18 Oct 2005 12:49:31 -0600 Subject: Problems translating map file layers to mapscript In-Reply-To: Message-ID: Comments inline ... On Oct 18, 2005, at 11:21 AM, Damon Butler wrote: >> # Should I have to set these? Can they be made tranparent? > > Yes. And Yes. > >> #c.label.backgroundcolor = mapscript.colorObj(255, 255, 255) >> #c.label.outlinecolor = mapscript.colorObj(255, 255, 255) > > They can be made transparent by supplying negative numbers for the R, > G, > and B values. > > c.label.backgroundcolor = mapscript.colorObj(-1, -1, -1) > c.label.outlinecolor = mapscript.colorObj(-1, -1, -1) > Never done must this be! Proper usage is c.label.backgroundcolor.setRGB(-1, -1, -1) c.label.outlinecolor.setRGB(-1, -1, -1) Otherwise the previously defined colors will be dereferenced improperly and never cleaned up by Python's garbage collector. Anyhow, these attributes begin with default values (-1, -1, -1), so no need to alter them if you want the no-background default. > But I'm afraid that I don't have any insights into your other queries > (repeated below). > > --Damon > >> I'm also having to specify c.label.minsize and c.label.maxsize, >> otherwise the labels come out just one or two pixels tall. It's like >> there are some defaults that are assumed in the map file but that need >> to be made explicit in the mapscript version. >> >> Any insights appreciated, >> No, the defaults are fine with mapscript. If you have turned on auto label scaling, then you will need to set minsize and maxsize. Otherwise, class.label.size controls all. >> --David Niergarth >> >> P.S. I wonder if anyone has ever written a code generator that could >> translate map file fragments (like a layer) to mapscript API calls? >> I'm >> discovering doing it by hand is pretty tedious. David, define all this boilerplate in a mapfile, and then modify that configuration with mapscript: m = mapscript.mapObj('template.map') l = m.getLayer(0) l.status = mapscript.MS_ON l.name = 'activated layer' ... cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From John.C.Cartwright at NOAA.GOV Tue Oct 18 12:29:35 2005 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Tue, 18 Oct 2005 13:29:35 -0600 Subject: using oraclespatial data in map Message-ID: Hello All, I'm trying to use oracle spatial table (geographic WGS84 coords) as a layer in a map and seem to be having trouble w/ the projection. The layer is defined as: LAYER NAME admin2 CONNECTIONTYPE oraclespatial CONNECTION "dbuser/dbpass at oraclehost" DATA "SHAPE FROM ESRI.COUNTRY_TSQA" STATUS off TYPE polygon CLASS OUTLINECOLOR 0 0 255 END PROJECTION "init=epsg:4326" END END However, mapserver seems to be generating an SQL query w/ a NULL SRID: ORA-13208: internal error while evaluating [window SRID does not match layer SRID] operator ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 281 ORA-06512: at line 1 . Query statement: SELECT rownum, SHAPE FROM ESRI.COUNTRY_TSQA WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179.75,-89.875,179.75,89.875) ),'querytype=window') = 'TRUE' . Check your data statement. Can anyone help me with the proper mapfile syntax? Thanks! -- john From damon at HDDESIGN.COM Tue Oct 18 12:58:25 2005 From: damon at HDDESIGN.COM (Damon Butler) Date: Tue, 18 Oct 2005 14:58:25 -0500 Subject: Problems translating map file layers to mapscript In-Reply-To: Message-ID: [...] >> They can be made transparent by supplying negative numbers for the R, G, >> and B values. >> >> c.label.backgroundcolor = mapscript.colorObj(-1, -1, -1) >> c.label.outlinecolor = mapscript.colorObj(-1, -1, -1) > > Never done must this be! Proper usage is > > c.label.backgroundcolor.setRGB(-1, -1, -1) > c.label.outlinecolor.setRGB(-1, -1, -1) > > Otherwise the previously defined colors will be dereferenced improperly > and never cleaned up by Python's garbage collector. Anyhow, these > attributes begin with default values (-1, -1, -1), so no need to alter > them if you want the no-background default. I (we, actually) tried your syntax, but neither the backgroundcolor nor the outlinecolor attributes on the label object are color objects, and so attempting to call the setRGB method on them fails with an AttributeError. According to the mapscript API, and introspection of a mapscript-parsed map file in a Python interpreter, those attributes must be set with mapscript color objects. Hence the code I previously listed. I should note that the layer in question is being generated entirely from scratch with mapscript. It is not being modified from a layer that has been read in from a map file. We have learned that this means we have to set all kinds of default values that otherwise appear to be assumed. Having no background, for example, is not the default behavior for a layer generated entirely using mapscript commands. (It is, in fact, a solid black rectangle.) Your suggestion to specify basic values for our layers in a map file and then merely modify them via mapscript commands is an excellent one, however, and definitely would simplify what we're trying to do. For workflow considerations, we hadn't considered it, let alone thought it possible. Thanks! --Damon From mstangeh at GMAIL.COM Tue Oct 18 13:02:34 2005 From: mstangeh at GMAIL.COM (Mauricio Stange H.) Date: Tue, 18 Oct 2005 17:02:34 -0300 Subject: mapserver legend Message-ID: Hello, I want to know if it is posible to "reflect" the layer groups in the legend. For example that appears something like this: -Group -layer 1 -layer 2 Or if it possible with the classes of a layer. (I think this is most possible) thanks... Mauricio Stange From fsimon at UNIVALI.BR Tue Oct 18 13:04:41 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 18 Oct 2005 18:04:41 -0200 Subject: using oraclespatial data in map In-Reply-To: <43554D1F.1080200@noaa.gov> Message-ID: Hi, This error occur when you define the SRID for you data in the database but don't define for you Oracle Spatial access in you layer. In your case the correct way how to define the SRID is: DATA "SHAPE FROM ESRI.COUNTRY_TSQA USING SRID #yoursrid" You can see the SRID for your spatial data in Oracle Spatial using this command: SELECT srid FROM USER_SDO_GEOM_METADAT WHERE table_name = 'COUNTRY_TSQA'; Another way how to retrive the SRID is query a simple SQL to retrieve the spatial data: "SELECT shape FROM ESRI.COUNTRY_TSQA" You can se the complete documentation about Mapserver and Oracle in this link: http://ms.gis.umn.edu/docs/howto/oracle_spatial_howto Regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Citando John Cartwright : > Hello All, > > I'm trying to use oracle spatial table (geographic WGS84 coords) > as a > layer in a map and seem to be having trouble w/ the projection. > The > layer is defined as: > LAYER > NAME admin2 > CONNECTIONTYPE oraclespatial > CONNECTION "dbuser/dbpass at oraclehost" > DATA "SHAPE FROM ESRI.COUNTRY_TSQA" > STATUS off > TYPE polygon > > CLASS > OUTLINECOLOR 0 0 255 > END > PROJECTION > "init=epsg:4326" > END > END > > > However, mapserver seems to be generating an SQL query w/ a NULL > SRID: > > ORA-13208: internal error while evaluating [window SRID does not > match > layer SRID] operator > ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 281 > ORA-06512: at line 1 > . Query statement: SELECT rownum, SHAPE FROM ESRI.COUNTRY_TSQA > WHERE > SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179.75,-89.875,179.75,89.875) > > ),'querytype=window') = 'TRUE' . Check your data > statement. > > > Can anyone help me with the proper mapfile syntax? > > Thanks! > > -- john > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From dn at HDDESIGN.COM Tue Oct 18 13:18:18 2005 From: dn at HDDESIGN.COM (David Niergarth) Date: Tue, 18 Oct 2005 15:18:18 -0500 Subject: Problems translating map file layers to mapscript In-Reply-To: Message-ID: Hi Sean, > No, the defaults are fine with mapscript. If you have turned on auto > label scaling, then you will need to set minsize and maxsize. Otherwise, > class.label.size controls all. When I set class.label.size = 8, I get one-pixel-tall labels. When I set both class.label.minsize and class.label.maxsize to 8, I the labels I expect (but I have to set both max and min values). Is this perhaps because I'm building the whole layer from scratch in mapscript and there are no initial values for those attributes? (This is similar to Damon's response.) We've been using ipython (a huge help) and the API docs to figure out how to create our custom layers. > David, define all this boilerplate in a mapfile, and then modify that > configuration with mapscript: > > m = mapscript.mapObj('template.map') > l = m.getLayer(0) > l.status = mapscript.MS_ON > l.name = 'activated layer' > ... I think I'd rather have the code for a layer all in one place, rather than part in a map file and part in a Python script. We've got a base map file that contains the layers all our customers need but we'll have to make additional layers fairly regularly and it seems simpler to keep the customer-specific layers in one place (Python mapscript code) so we can render them selectively. If it's just an issue of figuring out what defaults have to be provided, I think we can work through it. Does this seem like a bad idea for other reasons? Thanks again for your suggestions, --David From cplist at EARTHLINK.NET Tue Oct 18 13:44:38 2005 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Tue, 18 Oct 2005 16:44:38 -0400 Subject: classitem variable substitution In-Reply-To: <4355588A.5060407@hddesign.com> Message-ID: Hi, folks: I poked around on the archives and couldn't find a post related to this. I'm sure it's there, and I apologize for not laying my finger on it. But is a variable substitution on a CLASSITEM not allowed? Var. sub. works fine elsewhere, just not here. I am trying to hit a .shp and have the CLASSITEM be dependant on one of its columns or whatever they're called in the .shp world. Error . . . msDBFGetItemIndex(): DBASE file error. Item '%TARGETTIME%' not found. .map excerpt . . . LAYER NAME elevation PROJECTION "proj=latlong" END DATA "/home/cpurvis/scoop/adcirc/SADCec95-UNC_WNAHNOPR-NCP_%STARTTIME%_20051017T1 300_20051022T1200_elev_ZGIS-ele" TYPE POLYGON STATUS DEFAULT CLASSITEM "%TARGETTIME%" CLASS STYLE END OUTLINECOLOR 0 0 0 END END I have tried playing around w/ single and double quotes, but no luck. I'm used to PostGIS, and I could jolly well do this on the DATA line as an alias, but staying w/i the shapefile world for this project is probably the way to go. Thanks! Charlton From sgillies at FRII.COM Tue Oct 18 14:31:47 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 18 Oct 2005 15:31:47 -0600 Subject: Problems translating map file layers to mapscript In-Reply-To: Message-ID: On Oct 18, 2005, at 1:58 PM, Damon Butler wrote: > [...] >>> They can be made transparent by supplying negative numbers for the >>> R, G, >>> and B values. >>> >>> c.label.backgroundcolor = mapscript.colorObj(-1, -1, -1) >>> c.label.outlinecolor = mapscript.colorObj(-1, -1, -1) >> >> Never done must this be! Proper usage is >> >> c.label.backgroundcolor.setRGB(-1, -1, -1) >> c.label.outlinecolor.setRGB(-1, -1, -1) >> >> Otherwise the previously defined colors will be dereferenced >> improperly >> and never cleaned up by Python's garbage collector. Anyhow, these >> attributes begin with default values (-1, -1, -1), so no need to alter >> them if you want the no-background default. > > I (we, actually) tried your syntax, but neither the backgroundcolor nor > the outlinecolor attributes on the label object are color objects, and > so attempting to call the setRGB method on them fails with an > AttributeError. According to the mapscript API, and introspection of a > mapscript-parsed map file in a Python interpreter, those attributes > must > be set with mapscript color objects. Hence the code I previously > listed. > What MapServer and SWIG versions are you using? My experience is otherwise. Here's a sample session using mapscript from MapServer 4.4, generated using SWIG 1.3.25: Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript >>> c = mapscript.classObj() >>> c.label.backgroundcolor >>> bg = c.label.backgroundcolor >>> bg.red, bg.green, bg.blue (-1, -1, -1) Now with a mapfile: >>> m = mapscript.mapObj('/Volumes/lenny/projects/ms_HEAD/mapserver/tests/ test.map') >>> l = m.getLayer(1) >>> c = l.getClass(0) >>> bg = c.label.backgroundcolor >>> bg >>> bg.red, bg.green, bg.blue (-1, -1, -1) > I should note that the layer in question is being generated entirely > from scratch with mapscript. It is not being modified from a layer that > has been read in from a map file. We have learned that this means we > have to set all kinds of default values that otherwise appear to be > assumed. Having no background, for example, is not the default behavior > for a layer generated entirely using mapscript commands. (It is, in > fact, a solid black rectangle.) > Nothing in this area has changed significantly between 4.4 and 4.6, the labels above would be rendered with no background. Could you write back and show the relevant lines of your program? > Your suggestion to specify basic values for our layers in a map file > and > then merely modify them via mapscript commands is an excellent one, > however, and definitely would simplify what we're trying to do. For > workflow considerations, we hadn't considered it, let alone thought it > possible. > > Thanks! > --Damon > BTW, Damon, I'm also collaborating with other Python users on a new web programming package http://zcologia.org/pcl The goal is to have all the capabilities of mapscript (because we use MapServer for rendering), but a more natural and safer API. If you are starting from scratch and don't need to reuse existing mapfiles, PCL may be worth a look. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From sgillies at FRII.COM Tue Oct 18 14:52:56 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 18 Oct 2005 15:52:56 -0600 Subject: Problems translating map file layers to mapscript In-Reply-To: Message-ID: David, On Oct 18, 2005, at 2:18 PM, David Niergarth wrote: > Hi Sean, > >> No, the defaults are fine with mapscript. If you have turned on auto >> label scaling, then you will need to set minsize and maxsize. >> Otherwise, >> class.label.size controls all. > > When I set class.label.size = 8, I get one-pixel-tall labels. When I > set > both class.label.minsize and class.label.maxsize to 8, I the labels I > expect (but I have to set both max and min values). Is this perhaps > because I'm building the whole layer from scratch in mapscript and > there > are no initial values for those attributes? (This is similar to Damon's > response.) > > We've been using ipython (a huge help) and the API docs to figure out > how to create our custom layers. I suspect that you might be doing something like this: class.label = mapscript.labelObj() right? This could be your problem. Instances of mapscript.classObj are **complete**. There is no need to create new attributes for them. A new instance of classObj already has a properly initialized labelObj as a "label" attribute. New instances of labelObj (as above) won't be properly initialized. That's just the way MapServer/mapscript is. Underneath the Python wrapper is a lot of C code which still presumes that we're parsing a mapfile. Here's an example session: Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript >>> c = mapscript.classObj() >>> c.label.minsize 4 >>> c.label.maxsize 256 those are the normal defaults, and will give you working labels. Now, the problematic usage: >>> l = mapscript.labelObj() >>> l.minsize 0 >>> l.maxsize 0 >>> this label is going to fail. Rule of thumb: whenever an object has another object attribute with a single value (such as the label attribute of a classObj), that attribute will be created and initialize by the parent's constructor. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From bruce.tonkin at GOV.BC.CA Tue Oct 18 16:02:35 2005 From: bruce.tonkin at GOV.BC.CA (Bruce Tonkin) Date: Tue, 18 Oct 2005 18:02:35 -0500 Subject: MapServer GetFeatureInfo Message-ID: I have a map service and would like to use the GetFeatureInfo command. I find that I can get a result in text but not GML. Works: http://slkapps2.env.gov.bc.ca/mapserver/libcwms?service=wms&request=getFeatureInfo&version=1.1.1&layers=NTS_BC_COASTLINE_POLYS_125M&query_layers=NTS_BC_COASTLINE_POLYS_125M&width=500&height=500&bbox=300000,300000,1400000,1400000&x=200&y=200&info_format=text/plain Fails: http://slkapps2.env.gov.bc.ca/mapserver/libcwms?service=wms&request=getFeatureInfo&version=1.1.1&layers=NTS_BC_COASTLINE_POLYS_125M&query_layers=NTS_BC_COASTLINE_POLYS_125M&width=500&height=500&bbox=300000,300000,1400000,1400000&x=200&y=200&format=application/vnd.ogc.gml Any suggestions as to how I can get this to work? From halmueller at GMAIL.COM Tue Oct 18 18:47:26 2005 From: halmueller at GMAIL.COM (Hal Mueller) Date: Tue, 18 Oct 2005 18:47:26 -0700 Subject: Speed difference between 3.6.1 and 4.6.0 In-Reply-To: <7815696F92E60C4CA436E8E71BA7552995C612@exchange.scbc.dyndns.org> Message-ID: I just (rather involuntarily) was "upgraded" from Apache 1.3 to 2.0 (no hardware changes). Had to reinstall Mapserver, and upgraded that from 4.4 to 4.6. I have seen performance plummet. A setup that was easily moving 1 GB/day is now struggling to move 150 MB/day. Am still investigating, but Apache 2.0'/PHP interface is my prime suspect. Hal On 10/5/05, Steve Young wrote: > Hi folks, > > I have two mapserver sites running. One on Mapserver 3.6.1 and the other > on 4.6.0 > > The 3.6 site is on a Duron 750 with 256Mb RAM and an IDE drive. > Webserver is Apache 1.3x > The 4.6 site is on a Celeron 1.7GHz with 256Mb RAM and a similar IDE > drive. Webserver is Apache 2 ... > My issue is the 3.6 site is at least twice as fast at creating a map > image as the 4.6 site. From cplist at EARTHLINK.NET Tue Oct 18 19:03:34 2005 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Tue, 18 Oct 2005 22:03:34 -0400 Subject: classitem variable substitution In-Reply-To: Message-ID: Goodness bless open source. mapserv.c after line 1615 (MapServer version 4.6.1) added if(map->layers[j].classitem && (strstr(map->layers[j].classitem, tmpstr) != NULL)) map->layers[j].classitem = gsub(map->layers[j].classitem, tmpstr, msObj->request->ParamValues[i]); It didn't seem to break anything and DID seem to work! Charlton > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Charlton Purvis > Sent: Tuesday, October 18, 2005 4:45 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] classitem variable substitution > > Hi, folks: > > I poked around on the archives and couldn't find a post related to this. > I'm sure it's there, and I apologize for not laying my finger on it. > > But is a variable substitution on a CLASSITEM not allowed? Var. sub. > works > fine elsewhere, just not here. > > I am trying to hit a .shp and have the CLASSITEM be dependant on one of > its > columns or whatever they're called in the .shp world. > > Error . . . > > msDBFGetItemIndex(): DBASE file error. Item '%TARGETTIME%' not found. > > .map excerpt . . . > > LAYER > NAME elevation > PROJECTION > "proj=latlong" > END > DATA > "/home/cpurvis/scoop/adcirc/SADCec95-UNC_WNAHNOPR- > NCP_%STARTTIME%_20051017T1 > 300_20051022T1200_elev_ZGIS-ele" > TYPE POLYGON > STATUS DEFAULT > CLASSITEM "%TARGETTIME%" > CLASS > STYLE END > OUTLINECOLOR 0 0 0 > END > END > > I have tried playing around w/ single and double quotes, but no luck. > > I'm used to PostGIS, and I could jolly well do this on the DATA line as an > alias, but staying w/i the shapefile world for this project is probably > the > way to go. > > Thanks! > > Charlton From dn at HDDESIGN.COM Tue Oct 18 19:30:04 2005 From: dn at HDDESIGN.COM (David Niergarth) Date: Tue, 18 Oct 2005 21:30:04 -0500 Subject: Problems translating map file layers to mapscript In-Reply-To: Message-ID: Hi Sean, > I suspect that you might be doing something like this: > > class.label = mapscript.labelObj() > > right? This could be your problem. Yes, that's exactly it. > Instances of mapscript.classObj are **complete**. There is no need to > create new attributes for them. A new instance of classObj already has a > properly initialized labelObj as a "label" attribute. New instances of > labelObj (as above) won't be properly initialized. That's just the way > MapServer/mapscript is. Underneath the Python wrapper is a lot of C code > which still presumes that we're parsing a mapfile. Ok, I see now how it works now. > Here's an example session: > > Python 2.3 (#1, Sep 13 2003, 00:49:11) > [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import mapscript > >>> c = mapscript.classObj() > >>> c.label.minsize > 4 > >>> c.label.maxsize > 256 > > those are the normal defaults, and will give you working labels. Now, > the problematic usage: > > >>> l = mapscript.labelObj() > >>> l.minsize > 0 > >>> l.maxsize > 0 > >>> > > this label is going to fail. You have x-ray vision, I see! ;) > Rule of thumb: whenever an object has another object attribute with a > single value (such as the label attribute of a classObj), that attribute > will be created and initialize by the parent's constructor. Thanks for your help, --David From bartvde at XS4ALL.NL Tue Oct 18 22:30:53 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 19 Oct 2005 07:30:53 +0200 Subject: MapServer GetFeatureInfo In-Reply-To: Message-ID: Hi Bruce, use info_format and not format. http://slkapps2.env.gov.bc.ca/mapserver/libcwms?service=wms&request=getFeatureInfo&version=1.1.1&layers=NTS_BC_COASTLINE_POLYS_125M&query_layers=NTS_BC_COASTLINE_POLYS_125M&width=500&height=500&bbox=300000,300000,1400000,1400000&x=200&y=200&info_format=application/vnd.ogc.gml Your output is empty then, so you most likely need to add DUMP TRUE to your LAYER definition. Hope this helps. Best regards, Bart > I have a map service and would like to use the GetFeatureInfo command. I > find that I can get a result in text but not GML. > > Works: > http://slkapps2.env.gov.bc.ca/mapserver/libcwms?service=wms&request=getFeatureInfo&version=1.1.1&layers=NTS_BC_COASTLINE_POLYS_125M&query_layers=NTS_BC_COASTLINE_POLYS_125M&width=500&height=500&bbox=300000,300000,1400000,1400000&x=200&y=200&info_format=text/plain > > Fails: > http://slkapps2.env.gov.bc.ca/mapserver/libcwms?service=wms&request=getFeatureInfo&version=1.1.1&layers=NTS_BC_COASTLINE_POLYS_125M&query_layers=NTS_BC_COASTLINE_POLYS_125M&width=500&height=500&bbox=300000,300000,1400000,1400000&x=200&y=200&format=application/vnd.ogc.gml > > Any suggestions as to how I can get this to work? > From fclaudel at CSIR.CO.ZA Tue Oct 18 23:09:03 2005 From: fclaudel at CSIR.CO.ZA (Frederic Claudel) Date: Wed, 19 Oct 2005 08:09:03 +0200 Subject: MapServer GetFeatureInfo Message-ID: Hi Bruce, sorry to rebound on your topic, but how do you enable your WMS Layers to be queried with GetFeatureInfo ? I'm using POSTGIS as a data source for my vector points, and my layers are automatically marked with the attribue : queryable="0" (using Mapserver 4.6.1 on Linux) thanks, Frederic Claudel -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to HelpDesk at csir.co.za. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. From bartvde at XS4ALL.NL Tue Oct 18 23:29:53 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 19 Oct 2005 08:29:53 +0200 Subject: MapServer GetFeatureInfo In-Reply-To: Message-ID: Use the following in your LAYER definition: TEMPLATE "blank.html" DUMP TRUE (which you most likely already have) blank.html does not have to exist btw, it's just a dummy value. TEMPLATE will make sure your layers get queryable="1". Btw also use: METADATA .. gml_include_items "all" .. END to get attributes exported (needed for Mapserver 4.6 and above). Best regards, Bart > Hi Bruce, > sorry to rebound on your topic, but how do you enable your WMS Layers to > be queried with GetFeatureInfo ? > I'm using POSTGIS as a data source for my vector points, and my layers are > automatically marked with the attribue : queryable="0" > (using Mapserver 4.6.1 on Linux) > > thanks, > Frederic Claudel > > > > -- > This message is subject to the CSIR's copyright, terms and conditions and > e-mail legal notice. Views expressed herein do not necessarily represent > the > views of the CSIR. > > CSIR E-mail Legal Notice > http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html > > CSIR Copyright, Terms and Conditions > http://mail.csir.co.za/CSIR_Copyright.html > > For electronic copies of the CSIR Copyright, Terms and Conditions and the > CSIR > Legal Notice send a blank message with REQUEST LEGAL in the subject line > to > HelpDesk at csir.co.za. > > > This message has been scanned for viruses and dangerous content by > MailScanner, > and is believed to be clean. MailScanner thanks Transtec Computers for > their support. > > From Jukka.Sirvio at ARBONAUT.COM Tue Oct 18 22:50:25 2005 From: Jukka.Sirvio at ARBONAUT.COM (Jukka =?iso-8859-1?Q?Sirvi=F6?=) Date: Wed, 19 Oct 2005 08:50:25 +0300 Subject: using oraclespatial data in map Message-ID: Hello! Try this in your DATA -clause DATA "SHAPE FROM ESRI.COUNTRY_TSQA USING SRID 8307" -Jukka Hello All, I'm trying to use oracle spatial table (geographic WGS84 coords) as a layer in a map and seem to be having trouble w/ the projection. The layer is defined as: LAYER NAME admin2 CONNECTIONTYPE oraclespatial CONNECTION "dbuser/dbpass at oraclehost" DATA "SHAPE FROM ESRI.COUNTRY_TSQA" STATUS off TYPE polygon CLASS OUTLINECOLOR 0 0 255 END PROJECTION "init=epsg:4326" END END From wesp at GDV.COM Wed Oct 19 00:37:10 2005 From: wesp at GDV.COM (Oliver Wesp) Date: Wed, 19 Oct 2005 09:37:10 +0200 Subject: using oraclespatial data in map In-Reply-To: <43554D1F.1080200@noaa.gov> Message-ID: Try changing your data statement to DATA "SHAPE FROM ESRI.COUNTRY_TSQA USING SRID xxxxx" Change xxxxx to whatever SRID your spatial table has. You can lookup the SRID in MDSYS.ALL_SDO_GEOM_METADATA Oliver John Cartwright schrieb: > Hello All, > > I'm trying to use oracle spatial table (geographic WGS84 coords) as a > layer in a map and seem to be having trouble w/ the projection. The > layer is defined as: > LAYER > NAME admin2 > CONNECTIONTYPE oraclespatial > CONNECTION "dbuser/dbpass at oraclehost" > DATA "SHAPE FROM ESRI.COUNTRY_TSQA" > STATUS off > TYPE polygon > > CLASS > OUTLINECOLOR 0 0 255 > END > PROJECTION > "init=epsg:4326" > END > END > > > However, mapserver seems to be generating an SQL query w/ a NULL SRID: > > ORA-13208: internal error while evaluating [window SRID does not > match layer SRID] operator > ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 281 > ORA-06512: at line 1 > . Query statement: SELECT rownum, SHAPE FROM ESRI.COUNTRY_TSQA WHERE > SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179.75,-89.875,179.75,89.875) > ),'querytype=window') = 'TRUE' . Check your data > statement. > > > Can anyone help me with the proper mapfile syntax? > > Thanks! > > -- john > > > -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From temiz at DEPREM.GOV.TR Wed Oct 19 02:15:27 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Wed, 19 Oct 2005 12:15:27 +0300 Subject: problem in running java-mapscript In-Reply-To: <43554838.2050605@univali.br> Message-ID: Fernando Simon wrote: > Hi Orkun, > The Java will read the lib from classpath. > So you need to put your lib in path that java can read, or in the > lib system path (if it's appear in classpath). > Regards > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > orkun wrote: > >> hello >> >> I am new to java >> >> I am trying to run a javamapscript. >> But I am receiving an error message : >> >> import edu.umn.gis.mapscript.*; >> >> public class jeo2 { >> >> public static void main(String[] args) { >> try >> { >> System.loadLibrary("libmapscript.so"); >> } >> catch(UnsatisfiedLinkError ule) >> { >> System.err.println(ule); >> System.exit(-1); >> } >> >> java.lang.UnsatisfiedLinkError: no libmapscript.so in java.library.path >> what should library path be ? >> >> regards >> >> Ahmet Temiz >> >> >> ______________________________________ >> XamimeLT - installed on mailserver for domain @deprem.gov.tr >> Queries to: postmaster at deprem.gov.tr >> ______________________________________ >> The views and opinions expressed in this e-mail message are the >> sender's own >> and do not necessarily represent the views and the opinions of >> Earthquake Research Dept. >> of General Directorate of Disaster Affairs. >> >> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >> olarak T.C. >> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >> nitelikte degildir. >> > > thank you I checked CLASSPATH again. mapscript resides in /usr/local/ and classpath as in Eclipse : for instance postgresql.jar works well but mapscript does not. there might be another problem ? regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From higon_jos at GVA.ES Wed Oct 19 04:57:24 2005 From: higon_jos at GVA.ES (Jos=?ISO-8859-1?Q?=E9_Vte_Hig=F3n?=) Date: Wed, 19 Oct 2005 06:57:24 -0500 Subject: WCS: server fails with a small coverage Message-ID: Hi,thanks for yours answers. We are investigating about this problem.Our client must treat this issue. But... why doesn't work MAXSCALE? This is the mapfile: MAP NAME 'prueba_wcs' EXTENT 742806.4 4264938.3 753600.4 4268018.3 DEBUG ON IMAGETYPE PNG #IMAGECOLOR 0 0 0 UNITS METERS OUTPUTFORMAT NAME GEOTIFF_INT16 DRIVER "GDAL/GTiff" IMAGEMODE INT16 EXTENSION "tif" END WEB TEMPLATE "." MAXSCALE 1000000 METADATA "wcs_label" "Servidor pruebas wcs" "wcs_keywordlist" "WCS" "wcs_onlineresource" "http://gruposigp2/cgi-bin/wcs" END LOG "/usr/local/mapserver/wcs.log" IMAGEURL "/usr/local/mapserver/tmp/" IMAGEPATH "/usr/local/mapserver/tmp/" END PROJECTION "init=epsg:32630" END LAYER NAME "quickbird3" STATUS ON TYPE RASTER PROCESSING "SCALE=AUTO" PROCESSING "BANDS=1,2,3" UNITS METERS MAXSCALE 500000 METADATA wcs_name "quickbird3" wcs_label "Quickbird R2C2" ows_srs "EPSG:32630" ows_extent "742806.4 4264938.3 753600.4 4268018.3" wcs_resolution "0.7 0.7" wcs_formats "GEOTIFF_INT16" wcs_nativeformat "raw_binary" wcs_rangeset_axes "bands" wcs_rangeset_label "bands" wcs_rangeset_name "bands" wcs_bandcount "3" END PROJECTION "init=epsg:32630" END DUMP TRUE DATA '/home/data/quickbird/221_r2c2_zona.tif' END END #map From sgillies at FRII.COM Wed Oct 19 06:54:48 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 19 Oct 2005 07:54:48 -0600 Subject: Problems translating map file layers to mapscript In-Reply-To: Message-ID: On Oct 18, 2005, at 8:30 PM, David Niergarth wrote: > Hi Sean, > >> I suspect that you might be doing something like this: >> >> class.label = mapscript.labelObj() >> >> right? This could be your problem. > > Yes, that's exactly it. > >> Instances of mapscript.classObj are **complete**. There is no need to >> create new attributes for them. A new instance of classObj already >> has a >> properly initialized labelObj as a "label" attribute. New instances of >> labelObj (as above) won't be properly initialized. That's just the way >> MapServer/mapscript is. Underneath the Python wrapper is a lot of C >> code >> which still presumes that we're parsing a mapfile. > > Ok, I see now how it works now. > >> Here's an example session: >> >> Python 2.3 (#1, Sep 13 2003, 00:49:11) >> [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin >> Type "help", "copyright", "credits" or "license" for more information. >>>>> import mapscript >>>>> c = mapscript.classObj() >>>>> c.label.minsize >> 4 >>>>> c.label.maxsize >> 256 >> >> those are the normal defaults, and will give you working labels. Now, >> the problematic usage: >> >>>>> l = mapscript.labelObj() >>>>> l.minsize >> 0 >>>>> l.maxsize >> 0 >>>>> >> >> this label is going to fail. > > You have x-ray vision, I see! ;) > >> Rule of thumb: whenever an object has another object attribute with a >> single value (such as the label attribute of a classObj), that >> attribute >> will be created and initialize by the parent's constructor. > > Thanks for your help, > > --David > You're welcome, David, I hope you haven't been struggling too long with this problem. Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From tibben at OCF.BERKELEY.EDU Wed Oct 19 07:19:14 2005 From: tibben at OCF.BERKELEY.EDU (tim) Date: Wed, 19 Oct 2005 09:19:14 -0500 Subject: queryByPoint accuracy/confusion In-Reply-To: Message-ID: This is just a follow up post regarding my confusion with the measurement tools when using the Standard Mercator projection. After poking around in the source code for mapServer (particularly the parts using and distance calculations) it became obvious that mapServer uses cartesian coordinates within the framework of the projection for these purposes - hence when using a projection such as the Standard Mercator there will be distance measuring problems . . . Since then I have found a fudge that works for my application, but it is just a hack in PHP mapScript that gives results close enough to what I need. Since mapServer does not try to be a 'GIS' program perhaps this issue will never be addressed . . . I would still appreciate any thoughts on this issue . . . thanks tim Tim Norris At 02:36 PM 10/17/2005, Tim Norris wrote: >Perhaps this is not the place for these questions and I should be posting >this observation to the PROJ4 list . . . in any case input would be >appreciated. Sorry in advance if this observation is out of place. > >So now that I have reminded myself that measuring distance on maps is a >difficult matter, I have a further question regarding the distance measuring >tools in mapServer (in particular with the use of the Mercator projection). > >After a little research, the problem regarding measuring distances when >using the standard Mercator projection would be a variable issue based on >lattitude. This is fairly obvious if we think about the way the Mercator >projection works, and perhaps my best solution is to choose a better >projection for my area of interest (California - perhaps a version of UTM >would give me better measurments - in fact I am reasonably certain it would). > >But the big questions for me is - since there are errors within the distance >measuring tools, do the same errors exist in the scalebar tools?? > >After measuring a few scalebars and comparing them to paper maps of >California it would seem that the answer is yes. All of the scalebars drawn >through mapServer are short (using the Standard Mercator between lattitudes >33 and 38). > >Even though the answer is that there is an error using distances with the >Standard Mercator with my system, I am, to say the least, unclear as to >where this problem lies . . . PROJ4 problem?? . . . a compile problem?? . . >. a GDAL problem?? some other issue??? > >I am sure that I can fudge a workaround for this, but at the same time . . . >any guidance for an eleant solution would be greatly appreciated . . . > >for reference the following were my build steps: > >for Proj4 >[root at maps proj-4.4.9]# ./configure >[root at maps proj-4.4.9]# make >[root at maps proj-4.4.9]# make install > >[root at maps proj-4.4.9]# cp ~/epsg /usr/local/share/proj/epsg > >for GDAL >[root at maps gdal-1.2.6]# make clean >[root at maps gdal-1.2.6]# ./configure --with-ogr --without-python --with-xerces >[root at maps gdal-1.2.6]# make >[root at maps gdal-1.2.6]# make install >[root at maps gdal-1.2.6]# /sbin/ldconfig > >for mapserver >[root at tuna mapserver4.4.2]# rm -f config.cache >[root at tuna mapserver4.4.2]# ./configure --without-tiff --with-threads >--with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr >--with-php=../php-5.0.4 --with-gd=/usr/local --with-freetype=/usr/bin >--with-pdf --with-wmsclient --with-wfs --with-wfsclient >[root at tuna mapserver4.4.2]# make clean >[root at tuna mapserver4.4.2]# make >[root at tuna mapserver4.4.2]# cp mapserv /var/www/cgi-bin/mapserv_40 >[root at tuna mapserver4.4.2]# cp mapscript/php3/php_mapscript.so >/usr/local/php/extensions/php_mapscript_40.so > >as noted in the earlier post, I am using mapServer with PHP mapscript on a >Fedora/apache system and all my data is MapInfo (through OGR) - other than >this problem, mapServer has performed much better than commercial software >that I have used in the past. > >thanks >tim > >Tim Norris > >ps: this has also been posted to the PROJ4 listserv From work at XWB.COM Wed Oct 19 07:19:00 2005 From: work at XWB.COM (Chip Taylor) Date: Wed, 19 Oct 2005 07:19:00 -0700 Subject: ESRI Layer Files Message-ID: I have a fairly complex ESRI Layer file (.lyr) that I would like to use in a Mapserver application. Is there a way for Mapserver to use the .lyr file, or failing that, convert the .lyr file to a shapefile? I have ESRI ArcMap and ArcCatalog but haven't found anything there either. Chip Taylor Prepared Response, Inc. 1127 Broadway Plaza, Suite 204 Tacoma, WA 98402 O 253.272.1730 M 253.948.2525 STATEMENT OF CONFIDENTIALITY The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify Prepared Response, Inc. immediately at (206) 223-5544 and destroy all copies of this message and any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce.tonkin at GOV.BC.CA Wed Oct 19 08:26:19 2005 From: bruce.tonkin at GOV.BC.CA (Bruce Tonkin) Date: Wed, 19 Oct 2005 10:26:19 -0500 Subject: MapServer GetFeatureInfo Message-ID: Thanks for your help Bart. So my observations are: 1. Layer must be queryable="1" using TEMPLATE "foo.html" to use GetFeatureInfo with the info_format=text/plain. This provides all the attributes for the feature queried. 2. To use the info_format=application/vnd.ogc.gml and extract GML only, you need to set DUMP to True. 3. To expand on 2 above, if you add the METADATA tag gml_include_items "all", the GML includes all the other attribution for the feature. In all cases, it appears as if only one feature is returned. Bruce Tonkin Province of British Columbia Canada From pramsey at REFRACTIONS.NET Wed Oct 19 08:34:16 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 19 Oct 2005 08:34:16 -0700 Subject: ESRI Layer Files In-Reply-To: Message-ID: Chip, I have often thought the same thing. Hexdumpping the files, it is really hard to see the structure at all. The best explanation I have heard is that the lyr is a serialized COM object, which means it will be next to impossible to reverse engineer. It makes one miss the old .avl files and ArcView 3. Paul On Oct 19, 2005, at 7:19 AM, Chip Taylor wrote: > I have a fairly complex ESRI Layer file (.lyr) that I would like to > use in a Mapserver application. Is there a way for Mapserver to > use the .lyr file, or failing that, convert the .lyr file to a > shapefile? I have ESRI ArcMap and ArcCatalog but haven?t found > anything there either. > > Chip Taylor > > Prepared Response, Inc. > > 1127 Broadway Plaza, Suite 204 > > Tacoma, WA 98402 > > O 253.272.1730 > > M 253.948.2525 > > STATEMENT OF CONFIDENTIALITY > > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of > the addressee(s) and may contain confidential or privileged > information. If you are not the intended recipient, please notify > Prepared Response, Inc. immediately at (206) 223-5544 and destroy > all copies of this message and any attachments. > > From williampaul28 at YAHOO.COM Wed Oct 19 08:41:27 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 19 Oct 2005 08:41:27 -0700 Subject: GDAL with Mr SID Message-ID: Hello Does anyone has a GDAL compiled with mr SID support? can he(she) share it? Thank you in advance William --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Wed Oct 19 09:24:01 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 19 Oct 2005 11:24:01 -0500 Subject: WCS: server fails with a small coverage Message-ID: The WCS server doesn't (I'm pretty sure) honor MAXSCALE or MINSCALE. I'm trying to think of how it even could- WCS is supposed to provide unfiltered access to raster data (unless resampling is explicitly requested). I can compute a display scale for an image of a certain size but that's a generally meaningless number used for turning stuff on and off. I don't think it is a good way to control the production of large datasets. Is that what you're hoping to use it for? If so I think maximum image dimensions are a better alternative. Steve >>> Jos? Vte Hig?n 10/19/05 6:57 AM >>> Hi,thanks for yours answers. We are investigating about this problem.Our client must treat this issue. But... why doesn't work MAXSCALE? This is the mapfile: MAP NAME 'prueba_wcs' EXTENT 742806.4 4264938.3 753600.4 4268018.3 DEBUG ON IMAGETYPE PNG #IMAGECOLOR 0 0 0 UNITS METERS OUTPUTFORMAT NAME GEOTIFF_INT16 DRIVER "GDAL/GTiff" IMAGEMODE INT16 EXTENSION "tif" END WEB TEMPLATE "." MAXSCALE 1000000 METADATA "wcs_label" "Servidor pruebas wcs" "wcs_keywordlist" "WCS" "wcs_onlineresource" "http://gruposigp2/cgi-bin/wcs" END LOG "/usr/local/mapserver/wcs.log" IMAGEURL "/usr/local/mapserver/tmp/" IMAGEPATH "/usr/local/mapserver/tmp/" END PROJECTION "init=epsg:32630" END LAYER NAME "quickbird3" STATUS ON TYPE RASTER PROCESSING "SCALE=AUTO" PROCESSING "BANDS=1,2,3" UNITS METERS MAXSCALE 500000 METADATA wcs_name "quickbird3" wcs_label "Quickbird R2C2" ows_srs "EPSG:32630" ows_extent "742806.4 4264938.3 753600.4 4268018.3" wcs_resolution "0.7 0.7" wcs_formats "GEOTIFF_INT16" wcs_nativeformat "raw_binary" wcs_rangeset_axes "bands" wcs_rangeset_label "bands" wcs_rangeset_name "bands" wcs_bandcount "3" END PROJECTION "init=epsg:32630" END DUMP TRUE DATA '/home/data/quickbird/221_r2c2_zona.tif' END END #map From steve.lime at DNR.STATE.MN.US Wed Oct 19 09:26:00 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 19 Oct 2005 11:26:00 -0500 Subject: classitem variable substitution Message-ID: If you want to replace the whole item name you could do something like: map_elevation_classitem=xxxx with the same effect. Steve >>> Charlton Purvis 10/18/05 9:03 PM >>> Goodness bless open source. mapserv.c after line 1615 (MapServer version 4.6.1) added if(map->layers[j].classitem && (strstr(map->layers[j].classitem, tmpstr) != NULL)) map->layers[j].classitem = gsub(map->layers[j].classitem, tmpstr, msObj->request->ParamValues[i]); It didn't seem to break anything and DID seem to work! Charlton > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Charlton Purvis > Sent: Tuesday, October 18, 2005 4:45 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] classitem variable substitution > > Hi, folks: > > I poked around on the archives and couldn't find a post related to this. > I'm sure it's there, and I apologize for not laying my finger on it. > > But is a variable substitution on a CLASSITEM not allowed? Var. sub. > works > fine elsewhere, just not here. > > I am trying to hit a .shp and have the CLASSITEM be dependant on one of > its > columns or whatever they're called in the .shp world. > > Error . . . > > msDBFGetItemIndex(): DBASE file error. Item '%TARGETTIME%' not found. > > .map excerpt . . . > > LAYER > NAME elevation > PROJECTION > "proj=latlong" > END > DATA > "/home/cpurvis/scoop/adcirc/SADCec95-UNC_WNAHNOPR- > NCP_%STARTTIME%_20051017T1 > 300_20051022T1200_elev_ZGIS-ele" > TYPE POLYGON > STATUS DEFAULT > CLASSITEM "%TARGETTIME%" > CLASS > STYLE END > OUTLINECOLOR 0 0 0 > END > END > > I have tried playing around w/ single and double quotes, but no luck. > > I'm used to PostGIS, and I could jolly well do this on the DATA line as an > alias, but staying w/i the shapefile world for this project is probably > the > way to go. > > Thanks! > > Charlton From bartvde at XS4ALL.NL Wed Oct 19 09:43:45 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 19 Oct 2005 18:43:45 +0200 Subject: MapServer GetFeatureInfo In-Reply-To: Message-ID: Hi Bruce, your obserations are all right. Glad I could be of help. Best regards, Bart On Wed, 19 Oct 2005 17:26:19 +0200, Bruce Tonkin wrote: > Thanks for your help Bart. > > So my observations are: > > 1. Layer must be queryable="1" using TEMPLATE "foo.html" to use > GetFeatureInfo with the info_format=text/plain. This provides all the > attributes for the feature queried. > > 2. To use the info_format=application/vnd.ogc.gml and extract GML only, > you > need to set DUMP to True. > > 3. To expand on 2 above, if you add the METADATA tag gml_include_items > "all", the GML includes all the other attribution for the feature. > > In all cases, it appears as if only one feature is returned. > > Bruce Tonkin > Province of British Columbia > Canada > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From damon at HDDESIGN.COM Wed Oct 19 10:28:52 2005 From: damon at HDDESIGN.COM (Damon Butler) Date: Wed, 19 Oct 2005 12:28:52 -0500 Subject: Problems translating map file layers to mapscript In-Reply-To: <4355AFAC.10003@hddesign.com> Message-ID: >> I suspect that you might be doing something like this: >> >> class.label = mapscript.labelObj() >> >> right? This could be your problem. > > Yes, that's exactly it. Indeed. Now I feel silly. > Thanks for your help, Seconded. Your code snippets really clarified everything. > BTW, Damon, I'm also collaborating with other Python users on a new web > programming package > > http://zcologia.org/pcl > > The goal is to have all the capabilities of mapscript (because we use > MapServer for rendering), but a more natural and safer API. If you are > starting from scratch and don't need to reuse existing mapfiles, PCL > may be worth a look. Most definitely! Ironically, we've already been giving this a look. We may end up using this.... Again, many thanks! --Damon From kichi at REDIFFMAIL.COM Wed Oct 19 13:15:37 2005 From: kichi at REDIFFMAIL.COM (krishnaa sridharan) Date: Wed, 19 Oct 2005 20:15:37 -0000 Subject: No subject Message-ID: ? Hi all, I am new to mapserver/postgis. I have a map file with polygons and data attached to it. What I would like to do is to make the user look at it and make changes to this data. Is there a way I can do that using postGIS. Since I am coloring these polygons based on the data I would like to see it change too. Please guide me to do this in the best way. Thanks Kris -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug at MOXIMEDIA.COM Wed Oct 19 13:45:56 2005 From: doug at MOXIMEDIA.COM (Doug Cates) Date: Wed, 19 Oct 2005 15:45:56 -0500 Subject: Output attributes from shape-file in WFS/GML response Message-ID: Tom, Do you know if there is a way to turn off the geometry section of the GML result? Doug On Fri, 7 Oct 2005 09:51:52 -0400, Kralidis,Tom [Burlington] wrote: >You have to set "gml_include_items" "all". This is a new feature of >4.6.0, which turns off field output if not explicitly specified in your >mapfile. > >PS -- this should really get documented for WMS-Server and WFS-Server. > >..Tom From ealpert at DIGITALGLOBE.COM Wed Oct 19 14:02:28 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 19 Oct 2005 15:02:28 -0600 Subject: Output attributes from shape-file in WFS/GML response Message-ID: I don't think that's paret of the WFS spec...I've wanted something like this before and it's not available. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Doug Cates Sent: Wednesday, October 19, 2005 2:46 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Output attributes from shape-file in WFS/GML response Tom, Do you know if there is a way to turn off the geometry section of the GML result? Doug On Fri, 7 Oct 2005 09:51:52 -0400, Kralidis,Tom [Burlington] wrote: >You have to set "gml_include_items" "all". This is a new feature of >4.6.0, which turns off field output if not explicitly specified in your >mapfile. > >PS -- this should really get documented for WMS-Server and WFS-Server. > >..Tom From doug at MOXIMEDIA.COM Wed Oct 19 14:12:02 2005 From: doug at MOXIMEDIA.COM (Doug Cates) Date: Wed, 19 Oct 2005 14:12:02 -0700 Subject: Output attributes from shape-file in WFS/GML response In-Reply-To: <8B319E5A30FF4A48BE7EEAAF609DB23306BAC0@COMAIL01.digitalglobe.com> Message-ID: Ethan, Thanks. It is really the WMS GetFeatureInfo GML response that I want to suppress the geometry for. WFS should probably always return geometry. This relates to: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=300 .... and since control of the attributes was done, I was hoping that control of the geometry was too. Many people want to publish WMS services without exposing their geometry. I've always hacked mapgml.c myself to suppress the geometry, and was hoping that this would not be necessary any more. All the best, Doug On Wednesday 19 October 2005 14:02, Ethan Alpert wrote: > I don't think that's paret of the WFS spec...I've wanted something like > this before and it's not available. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of Doug Cates > Sent: Wednesday, October 19, 2005 2:46 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Output attributes from shape-file in > WFS/GML response > > > Tom, > > Do you know if there is a way to turn off the geometry section of the > GML result? > > Doug > > > On Fri, 7 Oct 2005 09:51:52 -0400, Kralidis,Tom [Burlington] > > wrote: > >You have to set "gml_include_items" "all". This is a new feature of > >4.6.0, which turns off field output if not explicitly specified in your > > > >mapfile. > > > >PS -- this should really get documented for WMS-Server and WFS-Server. > > > >..Tom From halmueller at GMAIL.COM Wed Oct 19 15:47:28 2005 From: halmueller at GMAIL.COM (Hal Mueller) Date: Wed, 19 Oct 2005 15:47:28 -0700 Subject: PHPMapscript/Linux horrible performance after Apache 1.3->2.0 upgrade Message-ID: My hosting company just surprised me with an "upgrade" from Apache 1.3 to Apache 2.0, as part of a solution to some other problems. After reinstalling Mapserver, I am seeing performance that is less than a tenth of what I had before. Server is running Redhat Enterprise Edition behind an Ensim virtual hosting package. I've gone through installation carefully, and I think I have everything right. But when I reinstalled Mapserver I updated several supporting libraries. I want to make sure I'm barking up the right tree. I suspect Apache is the problem. Am running PHP as a separate CGI. What I am seeing when I run "top" is that the PHPCGI processes take over the machine. This didn't happen before. I had a steady system load of about 0.7 and was able to service all requests; now I see a server load of 10-20 (!) and am serving only about 10%. Any suggestions on things to try? Is this slowdown between 1.3 and 2.0 a known (or familiar) problem? Haven't tried FastCGI yet. I really want to understand what has happened, and why, before I inject more changes into the environment. Old: New: Apache 1.3 2.0.50 Mapserver 4.4.0 4.6.1 PHP 4.3.8 4.4.0 Am now using PHP-bundled GD. mapserv -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE TIA, Hal From halmueller at GMAIL.COM Wed Oct 19 16:03:54 2005 From: halmueller at GMAIL.COM (Hal Mueller) Date: Wed, 19 Oct 2005 16:03:54 -0700 Subject: PHPMapscript/Linux horrible performance after Apache 1.3->2.0 upgrade In-Reply-To: Message-ID: My bottom-line question on this: do you think the problem is Apache 2.0, and worth going back to Apache 1.3? Or should I look elsewhere? Hal From fluyoz at HOTMAIL.COM Wed Oct 19 18:09:55 2005 From: fluyoz at HOTMAIL.COM (Fernando Javier Luyo Zegarra) Date: Wed, 19 Oct 2005 20:09:55 -0500 Subject: I have problems to filter the information of a layer stored in Oracle Spatial Message-ID: Hello I have problems to filter the information of a layer stored in Oracle Spatial I have followed all the recommendations of mapfile reference but I have not obtained satisfactory results I use connection OCI/OGR the syntax of mapfile is: *** layers departamentos*** * CONNECTION "OCI:system/password at ORCL_192.168.1.199" CONNECTIONTYPE OGR DATA "scott.r_localidad"......# ?As filter DATA for field "Tipo"? * *** End Layers greetings Fernando Luyo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 8987 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BackGrnd.jpg Type: image/jpeg Size: 1431 bytes Desc: not available URL: From stigmata_blackangel at YAHOO.COM Wed Oct 19 19:00:46 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Wed, 19 Oct 2005 19:00:46 -0700 Subject: PHPMapscript/Linux horrible performance after Apache 1.3->2.0 upgrade In-Reply-To: Message-ID: > My bottom-line question on this: do you think the > problem is Apache > 2.0, and worth going back to Apache 1.3? Or should > I look elsewhere? I always stick with Apache 1.3 Last year we tried Apache 2 for reasons unrelated to mapping, and the httpd would spontaneously freeze entirely. We downgraded to 1.3.x and things were great again. The freezes were happening under extremely light loads and were happening every 1-2 days. So, although I can't say that your performance problems are due to Apache2, I'd definitely recommend installing Apache 1.3 and trying it out. There are (were? please speak up if this is outdated) some thread-safety issues in the various libraries on which MapServer and MapScript depend. And with Apache2's different approaches to multithreading, problems are to be expected. (Although we were specifically using prefork, which I'd think should avoid any threading issues.) -- Gregor Mosheh System Administrator and Head Programmer HostGIS, GIS Hosting Solutions for the Global Community http://www.hostgis.com/ __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ From Jukka.Sirvio at ARBONAUT.COM Wed Oct 19 20:29:41 2005 From: Jukka.Sirvio at ARBONAUT.COM (Jukka =?iso-8859-1?Q?Sirvi=F6?=) Date: Thu, 20 Oct 2005 06:29:41 +0300 Subject: Mapserver and Win 2003 server (32 and / or 64 bit) Message-ID: Hello! Are there any known problems or limitations in existing pre-build binaries, mainly MS4W (or compilation / setup process of mapserver) when using Windows 2003 server (32 bit or 64 bit version). MS4W will be running under Apache. There is some discussions concerning different win 2003 issues but the information is quite outspread. - Jukka Sirvi? From flavio at TYDAC.CH Wed Oct 19 23:04:41 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 20 Oct 2005 08:04:41 +0200 Subject: Mapserver and Win 2003 server (32 and / or 64 bit) In-Reply-To: Message-ID: hi jukka we are running several win2003 servers with MS4W. no problem. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio 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: Jukka Sirvi? To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 20 Oct 2005 06:29:41 +0300 Subject: [UMN_MAPSERVER-USERS] Mapserver and Win 2003 server (32 and / or 64 bit) > Hello! > Are there any known problems or limitations in existing pre-build > binaries, mainly MS4W (or compilation / setup process of mapserver) > when > using Windows 2003 server (32 bit or 64 bit version). MS4W will be > running > under Apache. > > There is some discussions concerning different win 2003 issues but > the > information is quite outspread. > > > - Jukka Sirvi? From info at POGGENSEE.NET Thu Oct 20 00:02:59 2005 From: info at POGGENSEE.NET (Martin Poggensee) Date: Thu, 20 Oct 2005 02:02:59 -0500 Subject: PostGIS vs. mySQL Message-ID: I tried to use MapServer with a PostGIS database. The performance was not sufficient. After this I tried mySQL and this was much better. What are the advantages and disadvantages of these database-systems ??? From menegon at ITC.IT Thu Oct 20 00:08:48 2005 From: menegon at ITC.IT (Stefano Menegon) Date: Thu, 20 Oct 2005 09:08:48 +0200 Subject: SLD filter problemSLD filter problemSLD filter probl Message-ID: We have two problems with SLD 1) spatial filter (Intersect) is very terrible slow with postgis; it takes minutes to render hundreds of points! It is better with shapefile but still not acceptable. It seems the it reads individual features by oid opening binary cursor for each feature which is slow. 2) does not work combination of attributes and spatial expressions (AND logical operator). thanks in advance, -- Stefano Menegon ITC-irst, Istituto per la Ricerca Scientifica e Tecnologica MPBA - Predictive Models for Biol. & Environ. Data Analysis Via Sommarive, 18 - 38050 Povo (Trento), Italy tel +39 0461 314 -523 (fax -591) http://mpa.itc.it From temiz at DEPREM.GOV.TR Thu Oct 20 00:52:08 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Thu, 20 Oct 2005 10:52:08 +0300 Subject: problem in running java-mapscript In-Reply-To: <43561E1E.4060007@herzsys.de> Message-ID: listuser HH wrote: > orkun wrote: > >> Fernando Simon wrote: >> >>> Hi Orkun, >>> The Java will read the lib from classpath. >>> So you need to put your lib in path that java can read, or in the >>> lib system path (if it's appear in classpath). >>> Regards >>> >>> ------------------------------------------------------------------------ >>> >>> Fernando Simon >>> Mapserver and Oracle Spatial developer >>> G10 - Laboratorio de Computacao Aplicada - Brazil >>> http://www.univali.br/g10 - UNIVALI/CTTMAR >>> ------------------------------------------------------------------------ >>> >>> >>> >>> orkun wrote: >>> >>>> hello >>>> >>>> I am new to java >>>> >>>> I am trying to run a javamapscript. >>>> But I am receiving an error message : >>>> >>>> import edu.umn.gis.mapscript.*; >>>> >>>> public class jeo2 { >>>> >>>> public static void main(String[] args) { >>>> try >>>> { >>>> System.loadLibrary("libmapscript.so"); >>>> } >>>> catch(UnsatisfiedLinkError ule) >>>> { >>>> System.err.println(ule); >>>> System.exit(-1); >>>> } >>>> >>>> java.lang.UnsatisfiedLinkError: no libmapscript.so in >>>> java.library.path >>>> what should library path be ? >>>> >>>> regards >>>> >>>> Ahmet Temiz >>>> >>>> >>>> ______________________________________ >>>> XamimeLT - installed on mailserver for domain @deprem.gov.tr >>>> Queries to: postmaster at deprem.gov.tr >>>> ______________________________________ >>>> The views and opinions expressed in this e-mail message are the >>>> sender's own >>>> and do not necessarily represent the views and the opinions of >>>> Earthquake Research Dept. >>>> of General Directorate of Disaster Affairs. >>>> >>>> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >>>> olarak T.C. >>>> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >>>> nitelikte degildir. >>>> >>> >>> >> thank you I checked CLASSPATH again. >> mapscript resides in /usr/local/ and classpath >> as in Eclipse : >> >> >> >> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/> >> > path="/home/orkun/work/postgresql.jar"/> >> > path="/usr/local/mapscript.jar" /> >> >> >> >> for instance postgresql.jar works well but mapscript does not. >> >> there might be another problem ? >> >> regards >> >> ______________________________________ >> XamimeLT - installed on mailserver for domain @deprem.gov.tr >> Queries to: postmaster at deprem.gov.tr >> ______________________________________ >> The views and opinions expressed in this e-mail message are the >> sender's own >> and do not necessarily represent the views and the opinions of >> Earthquake Research Dept. >> of General Directorate of Disaster Affairs. >> >> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >> olarak T.C. >> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >> nitelikte degildir. >> >> > Hi, > > did you check your system if it knows the library "libmapscript.so"? > You can try that with "ldconfig -vNX". > > Regards, > Norbert > > > thank you I created mapscript.jar and libmapscript.so. I think they don't have any problems because test map worked well and produced map.png. But I don't know where to put these files. Where should mapscript.jar and libmapscript.so reside ? What should classpath be ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From Ivan.Price at NT.GOV.AU Thu Oct 20 00:57:20 2005 From: Ivan.Price at NT.GOV.AU (Ivan Price) Date: Thu, 20 Oct 2005 17:27:20 +0930 Subject: antialiasing line features.. Message-ID: hi there.. is there a way to antialias line features ? antialiasing is working for labels fine but the following has no effect for the line itself: SYMBOL NAME 'line' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END ANTIALIAS TRUE END .. CLASS EXPRESSION "NATIONAL HIGHWAY" STYLE ANTIALIAS TRUE END LABEL FONT arial TYPE truetype ANTIALIAS on COLOR 0 0 0 ANGLE AUTO SIZE 9 END SYMBOL "line" SIZE 3 COLOR 204 0 51 END running the following (on win2k) C:\mapserver>mapserv -v MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG any ideas ? cheers, -ivan From taf.seb.didelet at GMAIL.COM Thu Oct 20 01:19:40 2005 From: taf.seb.didelet at GMAIL.COM (=?ISO-8859-1?Q?S=E9bastien_Didelet?=) Date: Thu, 20 Oct 2005 10:19:40 +0200 Subject: Retrieve extent value using OGR Message-ID: Hi, I tried to read a mapinfo file (.TAB) with mapserver using OGR library, but my question is how can I retrieve extent information that I have to write in the mapserver file (.map). I've ever retrieve information about the mapinfo file with the ogrinfo command which return me this : [root at siska demo]# ogrinfo -so essai_zone.TAB essai_zone |more Had to open data source read-only. INFO: Open of `essai_zone.TAB' using driver `MapInfo File' successful. Layer name: essai_zone Geometry: Polygon Feature Count: 8 Extent: (567955.024450, 2511748.009226) - (579369.036331, 2521531.038812) Layer SRS WKT: ... How I must fill the map file with this ? All regards, Seb -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Thu Oct 20 01:32:55 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 20 Oct 2005 10:32:55 +0200 Subject: Retrieve extent value using OGR Message-ID: You should use the following EXTENT in your MAP file then: MAP .. EXTENT 567955.024450 2511748.009226 579369.036331 2521531.038812 .. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> S?bastien Didelet 20-10-2005 10:19 >>> Hi, I tried to read a mapinfo file (.TAB) with mapserver using OGR library, but my question is how can I retrieve extent information that I have to write in the mapserver file (.map). I've ever retrieve information about the mapinfo file with the ogrinfo command which return me this : [root at siska demo]# ogrinfo -so essai_zone.TAB essai_zone |more Had to open data source read-only. INFO: Open of `essai_zone.TAB' using driver `MapInfo File' successful. Layer name: essai_zone Geometry: Polygon Feature Count: 8 Extent: (567955.024450, 2511748.009226) - (579369.036331, 2521531.038812) Layer SRS WKT: ... How I must fill the map file with this ? All regards, Seb From taf.seb.didelet at GMAIL.COM Thu Oct 20 01:53:20 2005 From: taf.seb.didelet at GMAIL.COM (=?ISO-8859-1?Q?S=E9bastien_Didelet?=) Date: Thu, 20 Oct 2005 10:53:20 +0200 Subject: Retrieve extent value using OGR In-Reply-To: Message-ID: When I use this EXTENT MapServer raise the following error : MapServerError: msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error.syntax error (Also, an error occurred while attempting to render the standard error message.) do you know where is the mistake ? 2005/10/20, Bart van den Eijnden : > > You should use the following EXTENT in your MAP file then: > > MAP > .. > EXTENT 567955.024450 2511748.009226 579369.036331 2521531.038812 > .. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> S?bastien Didelet 20-10-2005 10:19 >>> > Hi, > > I tried to read a mapinfo file (.TAB) with mapserver using OGR library, > but > my question is how can I retrieve extent information that I have to write > in > the mapserver file (.map). > I've ever retrieve information about the mapinfo file with the ogrinfo > command which return me this : > > [root at siska demo]# ogrinfo -so essai_zone.TAB essai_zone |more > Had to open data source read-only. > INFO: Open of `essai_zone.TAB' > using driver `MapInfo File' successful. > > Layer name: essai_zone > Geometry: Polygon > Feature Count: 8 > Extent: (567955.024450, 2511748.009226) - (579369.036331, 2521531.038812) > Layer SRS WKT: > ... > > > How I must fill the map file with this ? > > > All regards, > Seb > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at GMAIL.COM Thu Oct 20 01:55:24 2005 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 20 Oct 2005 10:55:24 +0200 Subject: antialiasing line features.. In-Reply-To: <0C192BA467476D44A542D29A9F55308458B66B@EMDCH-E1.prod.main.ntgov> Message-ID: antialias online works for lines 1 pixel thick however you can use the cartoline symbol, which is antialiased whatever the thickness. cheers, tb On 10/20/05, Ivan Price wrote: > hi there.. > > is there a way to antialias line features ? antialiasing is working for > labels fine but the following has no effect for the line itself: > > SYMBOL > NAME 'line' > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > ANTIALIAS TRUE > END > > .. > > CLASS > EXPRESSION "NATIONAL HIGHWAY" > STYLE > ANTIALIAS TRUE > END > LABEL > FONT arial > TYPE truetype > ANTIALIAS on > COLOR 0 0 0 > ANGLE AUTO > SIZE 9 > END > SYMBOL "line" > SIZE 3 > COLOR 204 0 51 > END > > running the following (on win2k) > C:\mapserver>mapserv -v > MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=POSTGIS > INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > > any ideas ? > > cheers, > > -ivan > From BEN at SYNCERA-ITSOLUTIONS.NL Thu Oct 20 01:58:20 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 20 Oct 2005 10:58:20 +0200 Subject: Retrieve extent value using OGR Message-ID: Try: EXTENT 567955 2511748 579369 2521531 If it does not work, post your complete MAP file and the request you are trying. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> S?bastien Didelet 20-10-2005 10:53 >>> When I use this EXTENT MapServer raise the following error : MapServerError: msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error. syntax error msyyparse(): Expression parser error.syntax error (Also, an error occurred while attempting to render the standard error message.) do you know where is the mistake ? 2005/10/20, Bart van den Eijnden : > > You should use the following EXTENT in your MAP file then: > > MAP > .. > EXTENT 567955.024450 2511748.009226 579369.036331 2521531.038812 > .. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> S?bastien Didelet 20-10-2005 10:19 >>> > Hi, > > I tried to read a mapinfo file (.TAB) with mapserver using OGR library, > but > my question is how can I retrieve extent information that I have to write > in > the mapserver file (.map). > I've ever retrieve information about the mapinfo file with the ogrinfo > command which return me this : > > [root at siska demo]# ogrinfo -so essai_zone.TAB essai_zone |more > Had to open data source read-only. > INFO: Open of `essai_zone.TAB' > using driver `MapInfo File' successful. > > Layer name: essai_zone > Geometry: Polygon > Feature Count: 8 > Extent: (567955.024450, 2511748.009226) - (579369.036331, 2521531.038812) > Layer SRS WKT: > ... > > > How I must fill the map file with this ? > > > All regards, > Seb > > From taf.seb.didelet at GMAIL.COM Thu Oct 20 02:16:34 2005 From: taf.seb.didelet at GMAIL.COM (=?ISO-8859-1?Q?S=E9bastien_Didelet?=) Date: Thu, 20 Oct 2005 11:16:34 +0200 Subject: Retrieve extent value using OGR In-Reply-To: Message-ID: It doesn't work too (got the same error) ... my .map file is the following : # # Start of map file # MAP NAME Essai_zone STATUS ON SIZE 600 600 EXTENT 567955 2511748 579369 2521531 UNITS METERS SHAPEPATH "/usr/CPSSites/CG60Intranet/carte/demo/data" IMAGECOLOR 255 255 255 IMAGETYPE PNG # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'star' TYPE VECTOR FILLED TRUE POINTS 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END # # Start of layer definitions # LAYER NAME "Essai_zone" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "/usr/CPSSites/CG60Intranet/carte/demo/essai_zone.TAB" STATUS ON # This enables use of colors and styles from the source file. STYLEITEM "AUTO" # Define an empty class that will be filled at runtime from the color and # styles read on each shape in the source file. CLASS NAME "essai_zone" EXPRESSION ("essai_zone") COLOR 23 0 220 LABEL COLOR 0 0 0 FONT Arial TYPE truetype POSITION AUTO PARTIALS FALSE SIZE 10 BUFFER 5 #OUTLINECOLOR 255 255 255 END END END END # Map File all regards, seb 2005/10/20, Bart van den Eijnden : > > Try: > > EXTENT 567955 2511748 579369 2521531 > > If it does not work, post your complete MAP file and the request you are > trying. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> S?bastien Didelet 20-10-2005 10:53 >>> > When I use this EXTENT MapServer raise the following error : > > MapServerError: msyyparse(): Expression parser error. syntax error > msyyparse(): Expression parser error. syntax error msyyparse(): Expression > parser error. syntax error msyyparse(): Expression parser error. syntax > error msyyparse(): Expression parser error. syntax error msyyparse(): > Expression parser error. syntax error msyyparse(): Expression parser > error. > syntax error msyyparse(): Expression parser error.syntax error (Also, an > error occurred while attempting to render the standard error message.) > > do you know where is the mistake ? > > > > 2005/10/20, Bart van den Eijnden : > > > > You should use the following EXTENT in your MAP file then: > > > > MAP > > .. > > EXTENT 567955.024450 2511748.009226 579369.036331 2521531.038812 > > .. > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr .: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> S?bastien Didelet 20-10-2005 10:19 >>> > > Hi, > > > > I tried to read a mapinfo file (.TAB) with mapserver using OGR library, > > but > > my question is how can I retrieve extent information that I have to > write > > in > > the mapserver file (.map). > > I've ever retrieve information about the mapinfo file with the ogrinfo > > command which return me this : > > > > [root at siska demo]# ogrinfo -so essai_zone.TAB essai_zone |more > > Had to open data source read-only. > > INFO: Open of `essai_zone.TAB' > > using driver `MapInfo File' successful. > > > > Layer name: essai_zone > > Geometry: Polygon > > Feature Count: 8 > > Extent: (567955.024450, 2511748.009226) - (579369.036331, 2521531.038812 > ) > > Layer SRS WKT: > > ... > > > > > > How I must fill the map file with this ? > > > > > > All regards, > > Seb > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Thu Oct 20 02:38:46 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 20 Oct 2005 11:38:46 +0200 Subject: Retrieve extent value using OGR Message-ID: Your EXPRESSION is wrong, remove it, then it should go okay. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> S?bastien Didelet 20-10-2005 11:16 >>> It doesn't work too (got the same error) ... my .map file is the following : # # Start of map file # MAP NAME Essai_zone STATUS ON SIZE 600 600 EXTENT 567955 2511748 579369 2521531 UNITS METERS SHAPEPATH "/usr/CPSSites/CG60Intranet/carte/demo/data" IMAGECOLOR 255 255 255 IMAGETYPE PNG # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'star' TYPE VECTOR FILLED TRUE POINTS 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END # # Start of layer definitions # LAYER NAME "Essai_zone" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "/usr/CPSSites/CG60Intranet/carte/demo/essai_zone.TAB" STATUS ON # This enables use of colors and styles from the source file. STYLEITEM "AUTO" # Define an empty class that will be filled at runtime from the color and # styles read on each shape in the source file. CLASS NAME "essai_zone" EXPRESSION ("essai_zone") COLOR 23 0 220 LABEL COLOR 0 0 0 FONT Arial TYPE truetype POSITION AUTO PARTIALS FALSE SIZE 10 BUFFER 5 #OUTLINECOLOR 255 255 255 END END END END # Map File all regards, seb 2005/10/20, Bart van den Eijnden : > > Try: > > EXTENT 567955 2511748 579369 2521531 > > If it does not work, post your complete MAP file and the request you are > trying. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> S?bastien Didelet 20-10-2005 10:53 >>> > When I use this EXTENT MapServer raise the following error : > > MapServerError: msyyparse(): Expression parser error. syntax error > msyyparse(): Expression parser error. syntax error msyyparse(): Expression > parser error. syntax error msyyparse(): Expression parser error. syntax > error msyyparse(): Expression parser error. syntax error msyyparse(): > Expression parser error. syntax error msyyparse(): Expression parser > error. > syntax error msyyparse(): Expression parser error.syntax error (Also, an > error occurred while attempting to render the standard error message.) > > do you know where is the mistake ? > > > > 2005/10/20, Bart van den Eijnden : > > > > You should use the following EXTENT in your MAP file then: > > > > MAP > > .. > > EXTENT 567955.024450 2511748.009226 579369.036331 2521531.038812 > > .. > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr .: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> S?bastien Didelet 20-10-2005 10:19 >>> > > Hi, > > > > I tried to read a mapinfo file (.TAB) with mapserver using OGR library, > > but > > my question is how can I retrieve extent information that I have to > write > > in > > the mapserver file (.map). > > I've ever retrieve information about the mapinfo file with the ogrinfo > > command which return me this : > > > > [root at siska demo]# ogrinfo -so essai_zone.TAB essai_zone |more > > Had to open data source read-only. > > INFO: Open of `essai_zone.TAB' > > using driver `MapInfo File' successful. > > > > Layer name: essai_zone > > Geometry: Polygon > > Feature Count: 8 > > Extent: (567955.024450, 2511748.009226) - (579369.036331, 2521531.038812 > ) > > Layer SRS WKT: > > ... > > > > > > How I must fill the map file with this ? > > > > > > All regards, > > Seb > > > > > From cplist at EARTHLINK.NET Thu Oct 20 05:58:05 2005 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Thu, 20 Oct 2005 08:58:05 -0400 Subject: mapserv.c cgi var substitutions Message-ID: Hey, Steve: I know you responded to an earlier post re. CLASSITEM's not playing nicely w/ CGI var substitutions, but I'd like to see if wouldn't mind tagging these three additions to mapserv.c to the next CVS commit. if(map->layers[j].classitem && (strstr(map->layers[j].classitem, tmpstr) != NULL)) map->layers[j].classitem = gsub(map->layers[j].classitem, tmpstr, msObj->request->ParamValues[i]); if(map->layers[j].labelangleitem && (strstr(map->layers[j].labelangleitem, tmpstr) != NULL)) map->layers[j].labelangleitem = gsub(map->layers[j].labelangleitem, tmpstr, msObj->request->ParamValues[i]); if(map->layers[j].labelsizeitem && (strstr(map->layers[j].labelsizeitem, tmpstr) != NULL)) map->layers[j].labelsizeitem = gsub(map->layers[j].labelsizeitem, tmpstr, msObj->request->ParamValues[i]); Those seem to work for me. Or if the mechanism to havec CLASSITEM, LABELANGLEITEM, and LABELSIZEITEM part of the %var% family, I missed it. Thanks, Charlton From Tom.Kralidis at EC.GC.CA Thu Oct 20 06:04:57 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 20 Oct 2005 09:04:57 -0400 Subject: Output attributes from shape-file in WFS/GML response Message-ID: > Ethan, > > Thanks. It is really the WMS GetFeatureInfo GML response that > I want to > suppress the geometry for. WFS should probably always return > geometry. This > relates to: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=300 > > .... and since control of the attributes was done, I was > hoping that control > of the geometry was too. Many people want to publish WMS > services without > exposing their geometry. > > I've always hacked mapgml.c myself to suppress the geometry, > and was hoping > that this would not be necessary any more. > WMS 1.1.1 (section 7.3.1) leaves the GetFeatureInfo result pretty loose, so I don't see any issue w.r.t. the allowance of suppressing geometries in the response. MapServer-wise, have you thought about contributing this to to developers? Perhaps along with a WEB/METADATA flag like: "wms_feature_info_geometry" "0" Default being "1", or "on". ..Tom From cplist at EARTHLINK.NET Thu Oct 20 06:09:13 2005 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Thu, 20 Oct 2005 09:09:13 -0400 Subject: faint TT fonts Message-ID: Hi, GDAL-ers and MS-ers: The fact that I'm cross posting is a symptom of the fact that I don't know where to start digging. I have 2 deployments of the same base data that are using the same TT font to produce arrows. Please ignore the difference in background color, but if you look at the attached images, you'll see that there is a striking difference in the boldness of the font from the first .gif to the 2nd. The MS installations are almost identical, but obviously something isn't quite right. I could increase the size of the font on the attachment mapserv2_with_arrows to be able to see the vectors, but that isn't what I want to do. Where should I start digging? GD, MS? I'm using pretty much the latest and greatest versions of everything. But I can list specifics -- just shout it out. Thanks, Charlton -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv2_with_arrows.gif Type: image/gif Size: 26854 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv2_my_box.gif Type: image/gif Size: 32531 bytes Desc: not available URL: From work at XWB.COM Thu Oct 20 06:14:13 2005 From: work at XWB.COM (Chip Taylor) Date: Thu, 20 Oct 2005 06:14:13 -0700 Subject: Using CGI variables in map files Message-ID: The documentation of Mapserver says this: Variables can be substituted within MapFile parameter values. At this time, cookie and CGI parameter values are supported. This allows MapServer MapFiles to be aware of a user's cookies (good for implementing security), or non-MapServer request parameters (good for integrating with other systems). Syntax: '%' + variable name + '%' But the examples are not clear. If I want to pass in a CGI variable, such as [mapx] and [mapy], into a data statement to select from a postGIS database; such as: CONNECTIONTYPE postgis CONNECTION "user=auser dbname=mydb host=myserver" STATUS ON DATA "counties from states where thislon = %mapx% and thislat = %mapy%" Does not seem to work. Help? Chip Taylor Prepared Response, Inc. 1127 Broadway Plaza, Suite 204 Tacoma, WA 98402 O 253.272.1730 M 253.948.2525 STATEMENT OF CONFIDENTIALITY The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify Prepared Response, Inc. immediately at (206) 223-5544 and destroy all copies of this message and any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Oct 20 06:19:11 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Oct 2005 09:19:11 -0400 Subject: I have problems to filter the information of a layer stored in Oracle Spatial In-Reply-To: <4356EE63.000003.03944@FLUYO> Message-ID: On 10/19/05, Fernando Javier Luyo Zegarra wrote: > I have problems to filter the information of a layer stored in Oracle Spatial > > I have followed all the recommendations of mapfile reference but I have not obtained satisfactory results Fernando, Can you be more specific about what was unsatisfactory with your results? > I use connection OCI/OGR > > the syntax of mapfile is: > > *** layers departamentos*** > * > CONNECTION "OCI:system/password at ORCL_192.168.1.199" > CONNECTIONTYPE OGR > DATA "scott.r_localidad"......# ?As filter DATA for field "Tipo"? > * > *** End Layers The above looks ok to get all features (in the spatial area) from the scott.r_localidad table. Did you want to do some sort of filtering on the field Tipo? There are different ways to filter data, including using the FILTER keyword in the layer definition. If the text of the argument to the FILTER keyword starts with "WHERE" then it is assumed to be an SQL WHERE clause that should be passed on to Oracle. eg. CONNECTION "OCI:system/password at ORCL_192.168.1.199" CONNECTIONTYPE OGR DATA "scott.r_localidad" FILTER "WHERE Tipo = 702" Note that there is also a "direct" oracle driver for mapserver available as opposed to going through OGR. The direct driver is likely to have better performance, but uses different configuration details. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From crazygecko at GMAIL.COM Thu Oct 20 07:29:12 2005 From: crazygecko at GMAIL.COM (Xin) Date: Thu, 20 Oct 2005 15:29:12 +0100 Subject: Retrieve extent value using OGR In-Reply-To: Message-ID: If you would like to keep the expression, simply remove the ('s, so all you have is: EXPRESSION "essai_zone" See the mapfile documentation on this: http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#class Cheers, Xin On 20/10/05, Bart van den Eijnden wrote: > > Your EXPRESSION is wrong, remove it, then it should go okay. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> S?bastien Didelet 20-10-2005 11:16 >>> > It doesn't work too (got the same error) ... my .map file is the following > : > > # > # Start of map file > # > MAP > NAME Essai_zone > STATUS ON > SIZE 600 600 > EXTENT 567955 2511748 579369 2521531 > UNITS METERS > SHAPEPATH "/usr/CPSSites/CG60Intranet/carte/demo/data" > IMAGECOLOR 255 255 255 > > IMAGETYPE PNG > > # > # Start of symbol definitions (we're only using a few) > # > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > SYMBOL > NAME 'star' > TYPE VECTOR > FILLED TRUE > POINTS > 0 .375 > .35 .375 > .5 0 > .65 .375 > 1 .375 > .75 .625 > .875 1 > .5 .75 > .125 1 > .25 .625 > END > END > > > # > # Start of layer definitions > # > > LAYER > NAME "Essai_zone" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "/usr/CPSSites/CG60Intranet/carte/demo/essai_zone.TAB" > STATUS ON > > # This enables use of colors and styles from the source file. > STYLEITEM "AUTO" > > # Define an empty class that will be filled at runtime from the color and > # styles read on each shape in the source file. > CLASS > NAME "essai_zone" > EXPRESSION ("essai_zone") > COLOR 23 0 220 > LABEL > COLOR 0 0 0 > FONT Arial > TYPE truetype > POSITION AUTO > PARTIALS FALSE > SIZE 10 > BUFFER 5 > #OUTLINECOLOR 255 255 255 > END > END > END > > END # Map File > > > all regards, > seb > > > 2005/10/20, Bart van den Eijnden : > > > > Try: > > > > EXTENT 567955 2511748 579369 2521531 > > > > If it does not work, post your complete MAP file and the request you are > > trying. > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr .: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> S?bastien Didelet 20-10-2005 10:53 >>> > > When I use this EXTENT MapServer raise the following error : > > > > MapServerError: msyyparse(): Expression parser error. syntax error > > msyyparse(): Expression parser error. syntax error msyyparse(): > Expression > > parser error. syntax error msyyparse(): Expression parser error. syntax > > error msyyparse(): Expression parser error. syntax error msyyparse(): > > Expression parser error. syntax error msyyparse(): Expression parser > > error. > > syntax error msyyparse(): Expression parser error.syntax error (Also, an > > error occurred while attempting to render the standard error message.) > > > > do you know where is the mistake ? > > > > > > > > 2005/10/20, Bart van den Eijnden : > > > > > > You should use the following EXTENT in your MAP file then: > > > > > > MAP > > > .. > > > EXTENT 567955.024450 2511748.009226 579369.036331 2521531.038812 > > > .. > > > > > > Best regards, > > > Bart > > > > > > Bart van den Eijnden > > > Syncera IT Solutions > > > Postbus 270 > > > 2600 AG DELFT > > > > > > tel.nr .: 015-7512436 > > > email: BEN at Syncera-ITSolutions.nl > > > > > > >>> S?bastien Didelet 20-10-2005 10:19 >>> > > > Hi, > > > > > > I tried to read a mapinfo file (.TAB) with mapserver using OGR > library, > > > but > > > my question is how can I retrieve extent information that I have to > > write > > > in > > > the mapserver file (.map). > > > I've ever retrieve information about the mapinfo file with the ogrinfo > > > command which return me this : > > > > > > [root at siska demo]# ogrinfo -so essai_zone.TAB essai_zone |more > > > Had to open data source read-only. > > > INFO: Open of `essai_zone.TAB' > > > using driver `MapInfo File' successful. > > > > > > Layer name: essai_zone > > > Geometry: Polygon > > > Feature Count: 8 > > > Extent: (567955.024450, 2511748.009226) - (579369.036331, > 2521531.038812 > > ) > > > Layer SRS WKT: > > > ... > > > > > > > > > How I must fill the map file with this ? > > > > > > > > > All regards, > > > Seb > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Richard_D_Levine at RAYTHEON.COM Thu Oct 20 07:28:40 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Thu, 20 Oct 2005 09:28:40 -0500 Subject: PostGIS vs. mySQL In-Reply-To: Message-ID: Hi Martin, There is recent lengthy discussion of this in the PostgreSQL mailing archives. http://archives.postgresql.org/pgsql-general/2005-10/msg00262.php You should look through this thread as there is tons of good info, though mixed with lots of talk. The main argument for PostgreSQL with PostGIS is that it scales to many users at once better that MySQL, it is SQL standard compliant, and it maintains data integrity better. But you need to tune it! As installed out of the box it does not run well. Please see the tuning threads in the above archives for more info. Cheers, Rick UMN MapServer Users List wrote on 10/20/2005 02:02:59 AM: > I tried to use MapServer with a PostGIS database. The performance was not > sufficient. After this I tried mySQL and this was much better. What are the > advantages and disadvantages of these database-systems ??? From pcreso at PCRESO.COM Thu Oct 20 08:37:04 2005 From: pcreso at PCRESO.COM (Brent Wood) Date: Thu, 20 Oct 2005 08:37:04 -0700 Subject: PostGIS vs. mySQL In-Reply-To: Message-ID: --- Martin Poggensee wrote: > I tried to use MapServer with a PostGIS database. The performance was not > sufficient. After this I tried mySQL and this was much better. What are the > advantages and disadvantages of these database-systems ??? > The postgis lists have plenty of info on this topic. They focus on Postgres/MySQL, without delving into the spatial capabilities however. Also see: http://sql-info.de/postgresql/postgres-gotchas.html http://sql-info.de/mysql/gotchas.html One key factor is that the default install of Postgres is set up to run on minimal hardware, and needs the config file tweaked to make use of decent amounts of memory to perform well. MySQL's default settings tend to suit gruntier hardware, so it is often faster "out of the box". On the spatial side, having spatial functionality as part of the core DB is tidier than a 3rd party plugin like PostGIS, but the Mysql spatial functionality is still being developed, and is currently well behind PostGIS (IMHO). AFAIK, the MySQL query functions only check MBR relationships, which is very quick, but frequently return wrong answers, so are not really much use yet. I suggest you check to see if two separated but neigbouring polygons with overlapping MBR's are considered disjoint or overlapping in MySQL, and also consider whether or not you set up Postgres to use decent amounts of memory after you installed it. Brent Wood From carlo.calvino at EMAIL.IT Thu Oct 20 08:53:15 2005 From: carlo.calvino at EMAIL.IT (Carlo Calvino) Date: Thu, 20 Oct 2005 10:53:15 -0500 Subject: one-to-many relationship between Mapserver and PostgreSQL Message-ID: Hello everybody, I use Mapserver to publish some .SHP files. Let's take into consideration a city layer. We use the Query function to see the data associated with the city feature, for example, the name of the city, the population etc. This data is stored in the shapefile. This works fine. Furthermore, I use postgresql as a database. In one database I have a table called "Monuments". For each city, there are several monuments. So the relationship between the city and the monument is one-to-many. Inside MapServer I wish to click on a city, and the result is the information inside the shapefile, and also the monuments found in the postgresql database. Of course, there is the same primary key inside the shapefile table and the postgresql table, that is the name of the city. But How i connect MapServer with PostgreSQL? From Debbie.Pagurek at EC.GC.CA Thu Oct 20 09:19:16 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 20 Oct 2005 12:19:16 -0400 Subject: one-to-many relationship between Mapserver and PostgreSQL Message-ID: One way of pulling your one to many relationship from postgresql is to use the layer template to set it to a URL, such as a php script, that passes the city value and that php script then does a query to your postgresql database and presents the results. There have been posts to the mapserver list about this and I believe that Richard Greenwood has published a paper that discusses this technique. The other way to present one to many relationships, and a method that I have employed recently, is to embed a URLs right into your shapefile so that when a user queries each city, they see the URL and click on that to show the one to many results. The url being one that looks like the one you would have created in the above example. Please do some searches in the list archive on "querying" and maybe you will find examples of these methods. Also - check the mapserver documentation on templates. Hope this helps. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Carlo Calvino Sent: Thursday, October 20, 2005 11:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] one-to-many relationship between Mapserver and PostgreSQL Hello everybody, I use Mapserver to publish some .SHP files. Let's take into consideration a city layer. We use the Query function to see the data associated with the city feature, for example, the name of the city, the population etc. This data is stored in the shapefile. This works fine. Furthermore, I use postgresql as a database. In one database I have a table called "Monuments". For each city, there are several monuments. So the relationship between the city and the monument is one-to-many. Inside MapServer I wish to click on a city, and the result is the information inside the shapefile, and also the monuments found in the postgresql database. Of course, there is the same primary key inside the shapefile table and the postgresql table, that is the name of the city. But How i connect MapServer with PostgreSQL? From andrea.antonello at GMAIL.COM Thu Oct 20 09:29:37 2005 From: andrea.antonello at GMAIL.COM (Andrea Antonello) Date: Thu, 20 Oct 2005 18:29:37 +0200 Subject: shape as url In-Reply-To: Message-ID: Hi, Is there a way to set the map path for shapefiles and grassdatas and whatever as an URL? The idea is to get the stuff working from inside a content management system, where the unix datapath is lost and an url is assigned to it. That would ease the possibility to archive datasets with different views and make them browsable and searchable. Thanks, Andrea -- ____________________________________________________________________________ HydroloGIS - Environmental Open Source Solutions www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ____________________________________________________________________________ From jeff2005 at SVS.GSFC.NASA.GOV Thu Oct 20 09:33:02 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Thu, 20 Oct 2005 12:33:02 -0400 Subject: antialiasing line features.. In-Reply-To: Message-ID: thomas bonfort wrote: > antialias online works for lines 1 pixel thick > however you can use the cartoline symbol, which is antialiased > whatever the thickness. I tried this out because I have been asked for thick, antialiased country boundaries. Unfortunately, the performance seems very poor. With ANTIALIAS FALSE, I get my map back in <1 sec. With TRUE, it takes 30-40sec to generate my test-case map. -Jeff DLB From ealpert at DIGITALGLOBE.COM Thu Oct 20 09:42:27 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 20 Oct 2005 10:42:27 -0600 Subject: shape as url Message-ID: How would that work? There's no random access to URL's they're a stream of data. You can't seek in a file that is a URL. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Andrea Antonello Sent: Thursday, October 20, 2005 10:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] shape as url Hi, Is there a way to set the map path for shapefiles and grassdatas and whatever as an URL? The idea is to get the stuff working from inside a content management system, where the unix datapath is lost and an url is assigned to it. That would ease the possibility to archive datasets with different views and make them browsable and searchable. Thanks, Andrea -- ________________________________________________________________________ ____ HydroloGIS - Environmental Open Source Solutions www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ________________________________________________________________________ ____ From cplist at EARTHLINK.NET Thu Oct 20 09:49:54 2005 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Thu, 20 Oct 2005 12:49:54 -0400 Subject: faint TT fonts In-Reply-To: <931f8ea90510200819i6f7569b0pd051e22a12620060@mail.gmail.com> Message-ID: Thanks, Frank. I tried playing w/ the ANTIALIAS, and if I make it FALSE, I get no arrows at all. I also upped the freetype to the latest. If you look at the attached image of the arrows alone, there are even strange black line artifacts off the coasts. This is a showstopper, and I'm not quite sure how to forge ahead. CLASS TEXT '®' LABEL TYPE TRUETYPE FONT "esri_cartography" PARTIALS FALSE POSITION UC FORCE TRUE COLOR 0 0 0 OFFSET 2 -9 SIZE 10 ANTIALIAS TRUE END STYLE END EXPRESSION ([v%STEP_TIME%] >= 1.5) END Is there any chance that this target box doesn't understand the .ttf as well as the box where I didn't see any problems? Thanks for all your help. Charlton > -----Original Message----- > From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] On Behalf Of > Frank Warmerdam > Sent: Thursday, October 20, 2005 11:20 AM > To: Charlton Purvis > Subject: Re: [UMN_MAPSERVER-USERS] faint TT fonts > > On 10/20/05, Charlton Purvis wrote: > > Hi, GDAL-ers and MS-ers: > > > > The fact that I'm cross posting is a symptom of the fact that I don't > know > > where to start digging. > > > > I have 2 deployments of the same base data that are using the same TT > font > > to produce arrows. Please ignore the difference in background color, > but if > > you look at the attached images, you'll see that there is a striking > > difference in the boldness of the font from the first .gif to the 2nd. > The > > MS installations are almost identical, but obviously something isn't > quite > > right. I could increase the size of the font on the attachment > > mapserv2_with_arrows to be able to see the vectors, but that isn't what > I > > want to do. Where should I start digging? GD, MS? > > > > I'm using pretty much the latest and greatest versions of everything. > But I > > can list specifics -- just shout it out. > > Charlton, > > I would suggest looking into the possibilty that FreeType font anti- > aliasing > might be in effect in one but not the other. It will tend to make > features > less bold and blocky. > > The issue is unrelated to GDAL, but is likely somewhere in the parameters > that MapServer is passing to FreeType which does the font rendering. > You could also look for differences in the freetype version though I doubt > that is it. > > Best regards, > -- > ---------------------------------------+---------------------------------- > ---- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv2.gif Type: image/gif Size: 19591 bytes Desc: not available URL: From doug at MOXIMEDIA.COM Thu Oct 20 09:58:31 2005 From: doug at MOXIMEDIA.COM (Doug Cates) Date: Thu, 20 Oct 2005 09:58:31 -0700 Subject: Output attributes from shape-file in WFS/GML response In-Reply-To: <2576812186CDD411BF1500508B6DCE950C09A742@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On Thursday 20 October 2005 06:04, Kralidis,Tom [Burlington] wrote: > MapServer-wise, have you thought about contributing this to to > developers? Perhaps along with a WEB/METADATA flag like: > > "wms_feature_info_geometry" "0" > > Default being "1", or "on". Tom, Yeah, I'll give it a go, although I haven't developed in C for about 20 years. Should be easy. I just wanted to make sure that I wasn't missing something that had already been done. All the best, Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue North Vancouver, BC, Canada V7M 2J5 Phone: 604-630-9404 Fax: ? 604-608-4764 From cplist at EARTHLINK.NET Thu Oct 20 10:23:39 2005 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Thu, 20 Oct 2005 13:23:39 -0400 Subject: gml_include_items how-to Message-ID: Hi, folks: Thanks you, Paul R., for adding that note at the bottom of the new MS how-to page. I have been banging my head against the wall all day since only geoms were returned but no features. I'm a little concerned that the default behavior was changed from 'show them all' to 'show them none'. But at least I'd like to suggest that the comment that Paul made at the very bottom of http://ms.gis.umn.edu/docs/howto/wfs_server make it to the old fashioned how-to and appear in the required fields section rather than as a comment. Charlton From warmerdam at POBOX.COM Thu Oct 20 10:30:54 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Oct 2005 13:30:54 -0400 Subject: faint TT fonts In-Reply-To: <00ba01c5d596$4c00f8f0$0300a8c1@latitude> Message-ID: On 10/20/05, Charlton Purvis wrote: > Thanks, Frank. I tried playing w/ the ANTIALIAS, and if I make it FALSE, I > get no arrows at all. I also upped the freetype to the latest. If you look > at the attached image of the arrows alone, there are even strange black line > artifacts off the coasts. This is a showstopper, and I'm not quite sure how > to forge ahead. Charlton, I'm afraid I am pretty much out of ideas. It seems someone may need to debug through this in detail. > Is there any chance that this target box doesn't understand the .ttf as well > as the box where I didn't see any problems? Well, that is always possible. I don't really know what is different about the two configurations. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From godwin.liz at GMAIL.COM Thu Oct 20 11:14:02 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Thu, 20 Oct 2005 14:14:02 -0400 Subject: Color Ramps and Legends Message-ID: Hey all, First I'd like to thanks Bill Binko et al. for adding Gradient support into Mapserver. I think it's really important. I am running 4.6, and it seems to be working fine for me the way document in bug 1305 Any word on when Legend support for this feature will follow? For now I'm trying to come up with a clever workaround, however I fear I will have to manually generate my color ramps as I have done in the past to achieve matching legend support. I'm using Graphical legends, in a PHPMapscript application. If there is another way, or something I havn't figured out from reading bugzilla and the source code, please let me know. I already know about using my own keyimage, but the size is limited to the keysize. Cheers, Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From work at XWB.COM Thu Oct 20 12:28:32 2005 From: work at XWB.COM (Chip Taylor) Date: Thu, 20 Oct 2005 12:28:32 -0700 Subject: Raster colors Message-ID: I downloaded some landsat raster images from the USGS site for use in a mapserver application. In ArcMap the colors are fine. Here is the layer I have in MapServer: LAYER NAME "landcover" DATA "cover/81802474/81802474.tif" STATUS on TYPE RASTER PROCESSING "BANDS=3" PROCESSING "DITHER=YES" END The layer comes out grayscaled on the map. If I include a classitem as described in the "Raster- HowTo" document like this: CLASSITEM "[pixel]" # class using simple string comparison, equivelent to ([pixel] = 0) CLASS EXPRESSION "0" COLOR 0 0 0 END # class using an EXPRESSION using only [pixel]. CLASS EXPRESSION ([pixel] >= 64 AND [pixel] < 128) COLOR 255 0 0 END # class using the red/green/blue values from the palette CLASS NAME "near white" EXPRESSION ([red] > 200 AND [green] > 200 AND [blue] > 200) COLOR 0 255 0 END # Class using a regular expression to capture only pixel values ending in 1 CLASS EXPRESSION /*1/ COLOR 0 0 255 END Then I get a bunch of red, green, and blue pixels. What's the secret to displaying these raster files in their true colors? Chip Taylor Prepared Response, Inc -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt0177 at GMAIL.COM Thu Oct 20 12:36:25 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Thu, 20 Oct 2005 12:36:25 -0700 Subject: Raster colors In-Reply-To: Message-ID: I had a similar problem when I first started using mapserver with USGS rasters, when I started using gdaltindex to create a index, they started displaying normally. Here is the layer I use for some imagery I downloaded from USGS and gdaltindex'd. LAYER name tucson_arial_1 group "Arial" type raster TILEINDEX "../../graphics/tucson_arial_index.shp" TILEITEM "location" status off METADATA "wms_title" "Tucson Arial Photos" "wms_srs" "EPSG:4326" "wms_abstract" "Obtained from the USGS, Image from August-October 2002,0.3Meters,UTM, Color" END END Good Luck, Matt On 10/20/05, Chip Taylor wrote: > > I downloaded some landsat raster images from the USGS site for use in a > mapserver application. In ArcMap the colors are fine. Here is the layer I > have in MapServer: > > LAYER > > NAME "landcover" > > DATA "cover/81802474/81802474.tif" > > STATUS on > > TYPE RASTER > > PROCESSING "BANDS=3" > > PROCESSING "DITHER=YES" > > END > > The layer comes out grayscaled on the map. If I include a classitem as > described in the "Raster- HowTo" document like this: > > CLASSITEM "[pixel]" > > # class using simple string comparison, equivelent to ([pixel] = 0) > > CLASS > > EXPRESSION "0" > > COLOR 0 0 0 > > END > > # class using an EXPRESSION using only [pixel]. > > CLASS > > EXPRESSION ([pixel] >= 64 AND [pixel] < 128) > > COLOR 255 0 0 > > END > > # class using the red/green/blue values from the palette > > CLASS > > NAME "near white" > > EXPRESSION ([red] > 200 AND [green] > 200 AND [blue] > 200) > > COLOR 0 255 0 > > END > > # Class using a regular expression to capture only pixel values ending in > 1 > > CLASS > > EXPRESSION /*1/ > > COLOR 0 0 255 > > END > > Then I get a bunch of red, green, and blue pixels. > > What's the secret to displaying these raster files in their true colors? > > Chip Taylor > > Prepared Response, Inc > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Oct 20 12:43:40 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Oct 2005 15:43:40 -0400 Subject: Raster colors In-Reply-To: Message-ID: On 10/20/05, Chip Taylor wrote: > > > I downloaded some landsat raster images from the USGS site for use in a > mapserver application. In ArcMap the colors are fine. Here is the layer I > have in MapServer: > > LAYER > > NAME "landcover" > > DATA "cover/81802474/81802474.tif" > > STATUS on > > TYPE RASTER > > PROCESSING "BANDS=3" > > PROCESSING "DITHER=YES" > > END Chip, Try 'PROCESSING "BANDS=1,2,3"' instead. The argument to the BANDS processing directive is the list of bands you want to display. BTW you should be able to skip the directive altogether to get the default 1,2,3. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ron.killpack at EECRADAR.COM Thu Oct 20 13:13:29 2005 From: ron.killpack at EECRADAR.COM (Killpack, Ron) Date: Thu, 20 Oct 2005 15:13:29 -0500 Subject: FW: Antialiased lines Message-ID: > From: Killpack, Ron > Sent: Thursday, October 20, 2005 2:02 PM > To: 'mapserver-users at lists.umn.edu' > Subject: Antialiased lines > > Is it possible to have antialiased lines with map server, I know this > is possible with text and symbols, but what about vectors such as > county borders or highways etc. Also if it is possible, what version > of software do I need to have that capability? > > Thanks, > > Ron Killpack > Enterprise Electronics Corporation > 128 S. Industrial Blvd. > Enterprise, AL 36330 > E-mail: ronk at eecradar.com > Voice: 334-347-3478 ext 331 > > This e-mail, including attachments, may include confidential and/or > proprietary information, and may be used only by the person or entity > to which it is addressed. If the reader of this e-mail is not the > intended recipient or his or her authorized agent, the reader is > hereby notified that any dissemination, distribution or copying of > this e-mail is prohibited. If you have received this e-mail in error, > please notify the sender by replying to this message and delete this > e-mail immediately. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fiftyincher at HOTMAIL.COM Thu Oct 20 13:46:42 2005 From: fiftyincher at HOTMAIL.COM (Tim Badtke) Date: Thu, 20 Oct 2005 20:46:42 +0000 Subject: gdal/jpeg2000 help Message-ID: I'm trying to get jpeg2000 support in gdal using ecwsdk-3.1.25Jan05-linux from gdal.org. When making gdal I get an error regarding ecw. /usr/local/src/ecwsdk-3.1.25Jan05-linux/include/NCSJP2FileView.h:820: error: 'CNCSJPCResample' does not name a type I'd be grateful for some assistance in getting jpeg2000 support for gdal/mapserver. I'm using fedora core 4, gdal-1.3.1, mapserver-4.6.0 Thank you, Tim From warmerdam at POBOX.COM Thu Oct 20 14:00:23 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 20 Oct 2005 17:00:23 -0400 Subject: gdal/jpeg2000 help In-Reply-To: Message-ID: On 10/20/05, Tim Badtke wrote: > I'm trying to get jpeg2000 support in gdal using ecwsdk-3.1.25Jan05-linux > from gdal.org. When making gdal I get an error regarding ecw. > > /usr/local/src/ecwsdk-3.1.25Jan05-linux/include/NCSJP2FileView.h:820: error: > 'CNCSJPCResample' does not name a type > > I'd be grateful for some assistance in getting jpeg2000 support for > gdal/mapserver. > > I'm using fedora core 4, gdal-1.3.1, mapserver-4.6.0 Tim, I'm afraid the ecwsdk-3.1.25Jan05 is now rather out of date. You can find pre-built binaries of MapServer built with ECW SDK based JPEG2000 support (and Kakadu actually) in the FWTools package. http://fwtools.maptools.org/ If you are determined to build it yourself then I would suggest you use the ECW SDK 3.3 pre-release source. Email me and I'll provide a link to the source. But the 3.3 ECW SDK should be released properly "pretty soon now". Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fiftyincher at HOTMAIL.COM Thu Oct 20 14:06:40 2005 From: fiftyincher at HOTMAIL.COM (Tim Badtke) Date: Thu, 20 Oct 2005 21:06:40 +0000 Subject: gdal/jpeg2000 help In-Reply-To: <931f8ea90510201400w5d717722lc5adb899fc766c77@mail.gmail.com> Message-ID: Thanks Frank, I knew it was old but thought I'd give it a shot. I'm trying to use it with Chameleon. I assume with FWTools I wouldn't be able to use Chameleon too? I can probably wait for the 3.3 source to be released and work on additional functionality/layers for now and just use tiffs. Tim >From: Frank Warmerdam >To: Tim Badtke >CC: MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] gdal/jpeg2000 help >Date: Thu, 20 Oct 2005 17:00:23 -0400 > >On 10/20/05, Tim Badtke wrote: > > I'm trying to get jpeg2000 support in gdal using >ecwsdk-3.1.25Jan05-linux > > from gdal.org. When making gdal I get an error regarding ecw. > > > > /usr/local/src/ecwsdk-3.1.25Jan05-linux/include/NCSJP2FileView.h:820: >error: > > 'CNCSJPCResample' does not name a type > > > > I'd be grateful for some assistance in getting jpeg2000 support for > > gdal/mapserver. > > > > I'm using fedora core 4, gdal-1.3.1, mapserver-4.6.0 > >Tim, > >I'm afraid the ecwsdk-3.1.25Jan05 is now rather out of date. >You can find pre-built binaries of MapServer built with ECW SDK >based JPEG2000 support (and Kakadu actually) in the FWTools >package. > > http://fwtools.maptools.org/ > >If you are determined to build it yourself then I would suggest >you use the ECW SDK 3.3 pre-release source. Email me and >I'll provide a link to the source. But the 3.3 ECW SDK should >be released properly "pretty soon now". > >Best regards, >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, >warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent From andrea.antonello at GMAIL.COM Thu Oct 20 14:57:21 2005 From: andrea.antonello at GMAIL.COM (Andrea Antonello) Date: Thu, 20 Oct 2005 23:57:21 +0200 Subject: shape as url In-Reply-To: <8B319E5A30FF4A48BE7EEAAF609DB23306BAC3@COMAIL01.digitalglobe.com> Message-ID: You are right, the idea would be to cache the file somewhere, if possible in chunks. Andrea > How would that work? There's no random access to URL's they're a stream > of data. You can't seek in a file that is a URL. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Andrea Antonello > Sent: Thursday, October 20, 2005 10:30 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] shape as url > > > Hi, > Is there a way to set the map path for shapefiles and grassdatas and > whatever > as an URL? > The idea is to get the stuff working from inside a content management > system, > where the unix datapath is lost and an url is assigned to it. That would > ease > the possibility to archive datasets with different views and make them > browsable and searchable. > > Thanks, > Andrea -- ____________________________________________________________________________ HydroloGIS - Environmental Open Source Solutions www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ____________________________________________________________________________ From Ivan.Price at NT.GOV.AU Thu Oct 20 16:07:07 2005 From: Ivan.Price at NT.GOV.AU (Ivan Price) Date: Fri, 21 Oct 2005 08:37:07 +0930 Subject: antialiasing line features.. Message-ID: Jeff, you are having more luck than me.. I am using the following and getting a non-antialiased line still. Perhaps antialiasing has been removed from the cartoline's capabilities in later versions ? it would be great to see antialiasing applied to all symbols and/or a geometry type (point/line/poly) independent way to antialias features. unfortunately until we can make maps that look 'pretty' we're not going to be able to replace our 'big company' mapping server. cheers, -ivan SYMBOL NAME 'road' ANTIALIAS TRUE TYPE CARTOLINE END ............ CLASS EXPRESSION ('[CATEGORY]' == 'STATE ARTERIAL' OR '[CATEGORY]' == 'PRIMARY ARTERIAL' OR '[CATEGORY]' == 'SUB ARTERIAL' ) STYLE ANTIALIAS TRUE SYMBOL "road" SIZE 1 COLOR 204 0 51 END LABEL FONT arial TYPE truetype ANTIALIAS on COLOR 0 0 0 ANGLE AUTO SIZE 8 END END > Ivan Price > Spatial Systems Manager > Northern Territory Land Information System > Department of Planning and Infrastructure > Northern Territory Government > Tel: (08) 8924 4024 > Fax: (08) 8924 4045 > Email: ivan.price at nt.gov.au > > > _____________________________________________ > From: UMN MapServer Users List > @NTGEMAG On Behalf Of Jeff de La > Beaujardiere > Sent: Friday, 21 October 2005 2:03 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] antialiasing line features.. > > thomas bonfort wrote: > > antialias online works for lines 1 pixel thick > > however you can use the cartoline symbol, which is antialiased > > whatever the thickness. > > I tried this out because I have been asked for thick, antialiased > country boundaries. Unfortunately, the performance seems very poor. > With ANTIALIAS FALSE, I get my map back in <1 sec. > With TRUE, it takes 30-40sec to generate my test-case map. > > -Jeff DLB > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu Oct 20 16:41:06 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 20 Oct 2005 19:41:06 -0400 Subject: SCALEBAR aware of current scale In-Reply-To: Message-ID: Hi Steve L., I think you will find that these two good ideas are already in bugzilla http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1289 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1290 and they are assigned to you ;) -Steve W. Steve Lime wrote: > Good ideas- the source is in mapscale.c... ;-) > > Please file as 2 seperate feature additions in Bugzilla so the ideas are not lost... > > Steve > > >>>>Stephen Woodbridge 10/10/05 4:20 PM >>> > > It would be nice if the scalebar could be configured to with > minscale/maxscale classes to you could configure it to change units like > km -> m and mi -> ft when the scale gets smaller. Or better yet have an > option for auto conversion of units. > > It would also be nice if someone would add a scalebar that displays BOTH > English and Metric over/under style like > > 0 0.5 mi 1 mi > | | | > +-----------+--+-----+------+ > | | | > 0 0.5 km 1 km > > > -Steve > From temiz at DEPREM.GOV.TR Fri Oct 21 01:13:30 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Fri, 21 Oct 2005 11:13:30 +0300 Subject: java-mapscipt examples Message-ID: hello As a new for java-mapscipt, I need to see related examples. I will appreciate, if you provide any examples. regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From bvanmeul at EBE.UCT.AC.ZA Fri Oct 21 02:01:10 2005 From: bvanmeul at EBE.UCT.AC.ZA (Bas Vanmeulebrouk) Date: Fri, 21 Oct 2005 11:01:10 +0200 Subject: java-mapscipt examples In-Reply-To: <4358A32A.8070600@deprem.gov.tr> Message-ID: Hello Ahmet, list I am not very experienced in Java MapScript either, but I may have some code which may be usefull for you. In my servlet, I have got a MapServerMap object to encapsulate MapScript. I create this object like this: public MapServerMap(String aMapFileName) throws Exception { super(); try { File f = new File(aMapFileName); if (f.exists()) { Map = new mapObj(aMapFileName); } else { throw new Exception("Map file not found: " + aMapFileName); } } catch (UnknownError e) { throw new Exception(ErrorMessages.errCreatingMapServerMap); } catch (Exception e) { throw new Exception(e.getMessage()); } } And I use it like this for instance: public void Zoom(int aZoomFactor) { float x = Map.getWidth() / 2; float y = Map.getHeight() / 2; pointObj point = new pointObj(x, y, 0.0, 0.0); Map.zoomPoint(aZoomFactor, point, Map.getWidth(), Map.getHeight(), Map .getExtent(), null); } After I have done all the panning, zooming, filtering and turning layers on and off I draw the map like this: public String Draw() throws MapServerException { try { /* * Draw the map and return the URL under which it was stored */ imageObj image = Map.draw(); String fn = "map_" + getUniqueID() + "." + Map.getOutputformat().getExtension(); image.save(StringUtils.CheckAndAppend(image.getImagepath(), "\\") + fn, Map); return StringUtils.CheckAndAppend(image.getImageurl(), "/") + fn; } catch (UnknownError e) { throw new MapServerException("Error drawing map."); } } Hope this helps. Cheers, Bas. orkun wrote: > hello > > As a new for java-mapscipt, I need to see related examples. > > I will appreciate, if you provide any examples. > > regards > > > Ahmet Temiz > > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the > sender's own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. From techdlists at YAHOO.ES Fri Oct 21 02:21:17 2005 From: techdlists at YAHOO.ES (=?ISO-8859-1?Q?Miguel_=C1ngel_Esbri?=) Date: Fri, 21 Oct 2005 11:21:17 +0200 Subject: problems with windows version of mapserver + postgis Message-ID: Hi, I have installed the latest MapServer for Windows - MS4W (v. 4.6.1) and have configured the WFS server to retrieve the data from a PostGIS database. When I make a POST request for some feature it takes a very long time to send a response (about 5 minutes) and I don't even receive the full GML file (it should be about 3MB of GML and I only get 700KB). I have tried the same request using the linux version (4.6.1) and it works correctly. does anybody know if this is a bug or what can I do to fix this? From mikesaunt at GMAIL.COM Fri Oct 21 02:58:43 2005 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Fri, 21 Oct 2005 10:58:43 +0100 Subject: Any papers, stats on MapServer performance against hardware / operating systems etc? Message-ID: All I've tried having a quick look through the archive of the mailing lists, MapServer website but can't seem to find any definitive sources for White Papers / Statistics of MapServer with Hardware. Basically we are looking at setting up a hosting infrastructure which will need to have high level of redundancy and be able to server in excess of 2 million maps a month - very broad but we are still evaluating peak loads etc Our preferred environment will be Linux and using the CGI version of MapServer as this is extremeley robust (well done to all involved), is stateless and has a small memory footprint. Most map layers will be in either Shape or TAB and we can configure the Tile Indexes etc. Can anyone point me to any documents that may have been put together previously? We will pull as much info together as possible with the view of publishing a definitive list / set of documentation on the MapServer website when done. Any help will be much appreciated. Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From knozi at GMX.AT Fri Oct 21 04:29:16 2005 From: knozi at GMX.AT (Gernot Katzlberger) Date: Fri, 21 Oct 2005 13:29:16 +0200 Subject: amount of selected objects Message-ID: hi list, is there a maximum amount of object which can be selected in the map? I have to select over 1000 polygons with one rectangle selection. thanks for your help, gernot From JEROEN.TICHELER at FAO.ORG Fri Oct 21 05:32:10 2005 From: JEROEN.TICHELER at FAO.ORG (Jeroen Ticheler) Date: Fri, 21 Oct 2005 14:32:10 +0200 Subject: SHAPEPATH misbehavior with grids? Windows<->Mac OS X Message-ID: Dear people, We are seeing different behavior of MapServer 4.6 on Windows and Mac OS X. On Windows the SHAPEPATH value seems to be ignored for ESRI-grids (not sure about other image formats, although I think the same applied for GeoTIFF). When we specify the full path in the DATA element of a LAYER it works fine. On Mac OS X the SHAPEPATH value is used and only the name of the dataset needs to be set in the DATA element of the LAYER Is there a reason for this inconsistency? Thanks in advance! Jeroen From JEROEN.TICHELER at FAO.ORG Fri Oct 21 06:01:53 2005 From: JEROEN.TICHELER at FAO.ORG (Jeroen Ticheler) Date: Fri, 21 Oct 2005 15:01:53 +0200 Subject: wms_attribution element for LAYER's Message-ID: Dear all, While setting up WMS/WCS/WFS services we noticed that the attribution URL and related information can be used at the MAP level METADATA, but not at the LAYER level METADATA. We would very much like to see that information appear at the layer level to ensure we properly acknowledge data providers (the icon and URL are used to display an attribution logo next to each layer when the information is present. Would it be possible to also have these elements reflected at LAYER level? Here's what we use: "wms_attribution_onlineresource" "http://www.fao.org/" "wms_attribution_title" "Data from the Food and Agriculture Organization (FAO)" "wms_attribution_logourl_width" "20" "wms_attribution_logourl_height" "20" "wms_attribution_logourl_format" "image/png" "wms_attribution_logourl_href" "http://www.fao.org/geonetwork/images/FAO_very_small.jpg" Thanks, Jeroen _______________________ Jeroen Ticheler FAO-UN Tel: +39 06 57056041 http://www.fao.org/geonetwork 42.07436?N 12.34327?E From carloncho24pe at YAHOO.ES Fri Oct 21 06:04:20 2005 From: carloncho24pe at YAHOO.ES (Carlos Ruiz) Date: Fri, 21 Oct 2005 15:04:20 +0200 Subject: Gmap Legend In-Reply-To: Message-ID: Hi, I have differents layers like: LAYER NAME che02___00 GROUP cheSR___00 TYPE LAYER NAME che10___00 GROUP cheSR___00 TYPE I would like to activate all layers of the same group with the same button (checkbox). I changed ?getlayerbyname(?layername?) by ?getLayersIndexByGroup($groupname)? in gmap75.inc.php file; also ?NAME=?layername?? by ?GROUP=?groupname?? in gmap75.phtml file; but it does not work! Any suggestion would be highly appreciated Thanks! Carlos ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, m?s seguridad http://correo.yahoo.es From Tom.Kralidis at EC.GC.CA Fri Oct 21 06:18:38 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 21 Oct 2005 09:18:38 -0400 Subject: wms_attribution element for LAYER's Message-ID: > > Dear all, > While setting up WMS/WCS/WFS services we noticed that the > attribution > URL and related information can be used at the MAP level METADATA, > but not at the LAYER level METADATA. We would very much like to see > that information appear at the layer level to ensure we properly > acknowledge data providers (the icon and URL are used to display an > attribution logo next to each layer when the information is > present. Would it be possible to also have these elements > reflected at LAYER > level? > > Here's what we use: > > "wms_attribution_onlineresource" > "http://www.fao.org/" > > "wms_attribution_title" "Data from the Food > and Agriculture Organization (FAO)" > "wms_attribution_logourl_width" > "20" > "wms_attribution_logourl_height" "20" > "wms_attribution_logourl_format" > "image/png" > "wms_attribution_logourl_href" > "http://www.fao.org/geonetwork/images/FAO_very_small.jpg" > This would be a good idea. The attribution stuff applies currently only to the root Layer element in Capabilities XML. Doing it at the layer level shouldn't be too hard (i.e. calling msWMSPrintAttribution in mapwms.c). Infact, I just tried this: 1./ Insert in mapwms.c, line 1361: msWMSPrintAttribution(stdout, " ", &(lp->metadata), "MO"); 2./ Add the wms_attribution_* metadata at the LAYER/METADATA level. ..and it works as expected. Jeroen: perhaps you can file an enhancement to bugzilla? Or is this minor enough for one of the developers to commit? Note that we would also ..Tom From assefa at DMSOLUTIONS.CA Fri Oct 21 06:40:55 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 21 Oct 2005 09:40:55 -0400 Subject: wms_attribution element for LAYER's In-Reply-To: <2576812186CDD411BF1500508B6DCE950C09A7D6@ecnwri1.ontario.int.ec.gc.ca> Message-ID: I have added the patch you sent. Bug 1502 is tracking this change. Latet, Kralidis,Tom [Burlington] wrote: >>Dear all, >>While setting up WMS/WCS/WFS services we noticed that the >>attribution >>URL and related information can be used at the MAP level METADATA, >>but not at the LAYER level METADATA. We would very much like to see >>that information appear at the layer level to ensure we properly >>acknowledge data providers (the icon and URL are used to display an >>attribution logo next to each layer when the information is >>present. Would it be possible to also have these elements >>reflected at LAYER >>level? >> >>Here's what we use: >> >> "wms_attribution_onlineresource" >>"http://www.fao.org/" >> >>"wms_attribution_title" "Data from the Food >>and Agriculture Organization (FAO)" >> "wms_attribution_logourl_width" >>"20" >> "wms_attribution_logourl_height" "20" >> "wms_attribution_logourl_format" >>"image/png" >> "wms_attribution_logourl_href" >>"http://www.fao.org/geonetwork/images/FAO_very_small.jpg" >> > > > This would be a good idea. The attribution stuff applies currently only > to the root Layer element in Capabilities XML. Doing it at the layer > level shouldn't be too hard (i.e. calling msWMSPrintAttribution in > mapwms.c). Infact, I just tried this: > > 1./ > > Insert in mapwms.c, line 1361: > > msWMSPrintAttribution(stdout, " ", &(lp->metadata), "MO"); > > 2./ > > Add the wms_attribution_* metadata at the LAYER/METADATA level. > > ..and it works as expected. > > Jeroen: perhaps you can file an enhancement to bugzilla? Or is this > minor enough for one of the developers to commit? Note that we would > also > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From holmand24 at GMAIL.COM Fri Oct 21 06:41:10 2005 From: holmand24 at GMAIL.COM (=?ISO-8859-1?Q?Holmand_Dar=EDo_Villalba_Barajas?=) Date: Fri, 21 Oct 2005 08:41:10 -0500 Subject: coordinates line Message-ID: my question is the following: How I can consult the coordinates of a line with query, it is necessary to have the coordinates in the DBF or I can consult them through mapserver. From Tom.Kralidis at EC.GC.CA Fri Oct 21 06:54:57 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 21 Oct 2005 09:54:57 -0400 Subject: wms_attribution element for LAYER's Message-ID: thx -- this is what I love about open source software :) > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Friday, 21 October, 2005 09:41 > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] wms_attribution element for LAYER's > > > I have added the patch you sent. Bug 1502 is tracking this change. > > Latet, > > > Kralidis,Tom [Burlington] wrote: > >>Dear all, > >>While setting up WMS/WCS/WFS services we noticed that the > >>attribution > >>URL and related information can be used at the MAP level METADATA, > >>but not at the LAYER level METADATA. We would very much > like to see > >>that information appear at the layer level to ensure we properly > >>acknowledge data providers (the icon and URL are used to > display an > >>attribution logo next to each layer when the information is > >>present. Would it be possible to also have these elements > >>reflected at LAYER > >>level? > >> > >>Here's what we use: > >> > >> "wms_attribution_onlineresource" > >>"http://www.fao.org/" > >> > >>"wms_attribution_title" "Data from > the Food > >>and Agriculture Organization (FAO)" > >> "wms_attribution_logourl_width" > > >>"20" > >> "wms_attribution_logourl_height" > "20" > >> "wms_attribution_logourl_format" > >>"image/png" > >> "wms_attribution_logourl_href" > >>"http://www.fao.org/geonetwork/images/FAO_very_small.jpg" > >> > > > > > > This would be a good idea. The attribution stuff applies currently > > only to the root Layer element in Capabilities XML. Doing > it at the > > layer level shouldn't be too hard (i.e. calling > msWMSPrintAttribution > > in mapwms.c). Infact, I just tried this: > > > > 1./ > > > > Insert in mapwms.c, line 1361: > > > > msWMSPrintAttribution(stdout, " ", &(lp->metadata), "MO"); > > > > 2./ > > > > Add the wms_attribution_* metadata at the LAYER/METADATA level. > > > > ..and it works as expected. > > > > Jeroen: perhaps you can file an enhancement to bugzilla? > Or is this > > minor enough for one of the developers to commit? Note > that we would > > also > > > > ..Tom > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > From jeff2005 at SVS.GSFC.NASA.GOV Fri Oct 21 07:08:24 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Fri, 21 Oct 2005 10:08:24 -0400 Subject: antialiasing line features.. In-Reply-To: <0C192BA467476D44A542D29A9F55308458B685@EMDCH-E1.prod.main.ntgov> Message-ID: Ivan Price wrote: > you are having more luck than me.. I am using the following and getting > a non-antialiased line still. Perhaps antialiasing has been removed from > the cartoline's capabilities in later versions ? This is what works for me: SYMBOL NAME "cartoline" TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 1 END LAYER NAME "countries" TYPE LINE STATUS on PROJECTION "init=epsg:4326" END DATA "........../wms/data/borders/cntry02.shp" METADATA "wms_title" "National Boundaries" "wms_layer_group" "/Reference" END CLASS NAME "BORDERS" STYLE COLOR 200 200 200 SYMBOL "cartoline" ANTIALIAS TRUE SIZE 1 END END END Try comparing speeds with TRUE and FALSE in the above with a dataset that has many line segments. From erik1969 at MAILHAVEN.COM Fri Oct 21 08:30:18 2005 From: erik1969 at MAILHAVEN.COM (Erik Baluba) Date: Fri, 21 Oct 2005 21:30:18 +0600 Subject: Oracle Point queries, Tip/Bug Message-ID: Hi, As you know Mapserver needs an unique identifier in your Oracle table in order to execute point queries, in addition to a spatial index. If you use too large identifiers Mapserver will not return anything, just a blank page. I was using 16 digit identifiers, which is no big deal in Oracle. However it won't work for Mapserver. It didn't crash or give any error messages, just blank screen. I would have preferred an error message or a crash. BTW, my MS is running on Windows. Build 4.6.1, Kitchen sink CGI version. cheers, erik From assefa at DMSOLUTIONS.CA Fri Oct 21 08:59:26 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 21 Oct 2005 11:59:26 -0400 Subject: SLD filter problemSLD filter problemSLD filter probl In-Reply-To: <20051020070848.GA866@clone.itc.it> Message-ID: Hi there, Stefano Menegon wrote: > We have two problems with SLD > > 1) spatial filter (Intersect) is very terrible slow with postgis; > it takes minutes to render hundreds of points! It is better > with shapefile but still not acceptable. > It seems the it reads individual features by oid opening binary > cursor for each feature which is slow. > The intersect feature ends up being converted into a mapserver query by shape msQueryByShape(map, lp->index, psQueryShape) (where psQueryShape is the shape passed in the sld. Not sure how to optimize this. Any suggestions are welcome. Realted subject is discussed inside bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1292 and > 2) does not work combination of attributes and spatial expressions > (AND logical operator). > > Could you send me the sld. I could give it a quick try and see. > thanks in advance, > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From lfilak at MEDINACO.ORG Fri Oct 21 09:20:43 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 21 Oct 2005 12:20:43 -0400 Subject: shape as url Message-ID: The following message was sent by Andrea Antonello on Thu, 20 Oct 2005 23:57:21 +0200. > You are right, the idea would be to cache the file somewhere, if possible in > chunks. > > Andrea > > > > How would that work? There's no random access to URL's they're a stream > > of data. You can't seek in a file that is a URL. > > > > -e > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Andrea Antonello > > Sent: Thursday, October 20, 2005 10:30 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] shape as url > > > > > > Hi, > > Is there a way to set the map path for shapefiles and grassdatas and > > whatever > > as an URL? > > The idea is to get the stuff working from inside a content management > > system, > > where the unix datapath is lost and an url is assigned to it. That would > > ease > > the possibility to archive datasets with different views and make them > > browsable and searchable. Andrea, There was a discussion regarding this sort of things a year,2,3... ago and even a bug filed and closed. But I can't find the bug report now. Maybe someone could restore it from the old bugzilla backups if deemed important.? In the end it was decided that WFS was developed to handle such things but that WFS provided no means of compressing the data during the transfer and effectively bloated the data. I think a few people briefly looked into setting up apache to compress the XML stream to send it across the wire but the problem was that the data was not compressed on the fly, it was more like compress->transmit->decompress (whole WFS result), not in chunks. Lowell From lfilak at MEDINACO.ORG Fri Oct 21 09:26:35 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 21 Oct 2005 12:26:35 -0400 Subject: [QUAR] [UMN_MAPSERVER -USERS] faint TT font s Message-ID: The following message was sent by Charlton Purvis on Thu, 20 Oct 2005 09:09:13 -0400. > Hi, GDAL-ers and MS-ers: > > The fact that I'm cross posting is a symptom of the fact that I don't know > where to start digging. > > I have 2 deployments of the same base data that are using the same TT font > to produce arrows. Please ignore the difference in background color, but if > you look at the attached images, you'll see that there is a striking > difference in the boldness of the font from the first .gif to the 2nd. The > MS installations are almost identical, but obviously something isn't quite > right. I could increase the size of the font on the attachment > mapserv2_with_arrows to be able to see the vectors, but that isn't what I > want to do. Where should I start digging? GD, MS? > > I'm using pretty much the latest and greatest versions of everything. But I > can list specifics -- just shout it out. Charlton, I'm probably missing something, but could it just be the colormapping due to the background that is making the arrows look different? They appear to be the same size. Lowell From lfilak at MEDINACO.ORG Fri Oct 21 09:40:44 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 21 Oct 2005 11:40:44 -0500 Subject: Speed difference between 3.6.1 and 4.6.0 Message-ID: On Tue, 18 Oct 2005 18:47:26 -0700, Hal Mueller wrote: >I just (rather involuntarily) was "upgraded" from Apache 1.3 to 2.0 >(no hardware changes). Had to reinstall Mapserver, and upgraded that >from 4.4 to 4.6. I have seen performance plummet. A setup that was >easily moving 1 GB/day is now struggling to move 150 MB/day. > >Am still investigating, but Apache 2.0'/PHP interface is my prime suspect. > >Hal > >On 10/5/05, Steve Young wrote: >> Hi folks, >> >> I have two mapserver sites running. One on Mapserver 3.6.1 and the other >> on 4.6.0 >> >> The 3.6 site is on a Duron 750 with 256Mb RAM and an IDE drive. >> Webserver is Apache 1.3x >> The 4.6 site is on a Celeron 1.7GHz with 256Mb RAM and a similar IDE >> drive. Webserver is Apache 2 >... >> My issue is the 3.6 site is at least twice as fast at creating a map >> image as the 4.6 site. Hal, Have you tried running just the mapserv executable without PHPMapscript? Is the mapserv cgi still that much slower than the previous version? If so it's not PHP slowing it down. We are running Apache 2 but are unable to comment on the PHP end. Lowell From warmerdam at POBOX.COM Fri Oct 21 10:17:54 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 21 Oct 2005 13:17:54 -0400 Subject: RFC 5 - Horizon clipping during reprojection Message-ID: Folks, I have committed the changes in MapServer CVS for the RFC 5 reprojection changes for over the horizon features. I have also prepared a short web page demonstrating what was done that might be of some interest. http://home.gdal.org/~warmerda/reproject/ I would also like to thank TMC Technologies for their financial support of this effort. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From holmand24 at GMAIL.COM Fri Oct 21 10:27:58 2005 From: holmand24 at GMAIL.COM (=?ISO-8859-1?Q?Holmand_Dar=EDo_Villalba_Barajas?=) Date: Fri, 21 Oct 2005 12:27:58 -0500 Subject: help with ERROR and EMPTY Message-ID: How works the ERROR[url] option and EMPTY[url] of the mapfile for the control of errors From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Oct 21 12:09:08 2005 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 21 Oct 2005 15:09:08 -0400 Subject: MapServer crashes on multiple REQUIRES? Message-ID: Hello, I was trying to migrate a MapFile from 3.6.6 to 4.6.0, and suddenly the MapServer CGI would die, and the web server return a 500 ... I tried upgrading to 4.6.1, didn't help ... After some fiddling around, I've tracked it down to the use of "REQUIRES". It looks as if I can only have ONE layer with a "REQUIRES" ... The minute I have more than that, mapserver seems to crash. This is a problem, as the mapfile has ~380 layers, and lots of REQUIRES :) As mentionned this mapfile works fine on 3.6.6 ... Oh, and I just tried rendering using shp2img, and I get a segfault ... Just wanted to check here before I file this as a bug, anybody run into this? Have a quick solution? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From brauplists at GMAIL.COM Fri Oct 21 12:58:24 2005 From: brauplists at GMAIL.COM (Bruce Raup) Date: Fri, 21 Oct 2005 13:58:24 -0600 Subject: RFC 5 - Horizon clipping during reprojection In-Reply-To: <931f8ea90510211017s7fed405dt3ac84ac2ab207358@mail.gmail.com> Message-ID: Hi Frank, RFC-5 was just today called to my attention. I think it's great that this is being (has been) addressed. Two closely related issues (I think) are these: A. How are polygon vertices joined? 1) By straight lines in the projection, or 2) as great-circle arcs? Can this be specified in the mapfile? If not, it would be great to have a LAYER-level parameter, something like JOINVERTICES=greatcircle or JOINVERTICES=straightline. The GMT program "psxy" offers such a choice (the -A option). B. When making a selection in the mapserver viewport (via jbox, for example), only the corner coordinates of that box get converted back to the coordinate system of the data, which means that what is selected can be very different from what you see. I wrote about this before. See http://spot.colorado.edu/~braup/MapServer/ for an example of polar weirdness. Has this issue made it to the bug list? I can do that if you guide me on how. Best regards, Bruce 2005/10/21, Frank Warmerdam : > Folks, > > I have committed the changes in MapServer CVS for the > RFC 5 reprojection changes for over the horizon features. > I have also prepared a short web page demonstrating what > was done that might be of some interest. > > http://home.gdal.org/~warmerda/reproject/ > > I would also like to thank TMC Technologies for their financial > support of this effort. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > -- Bruce Raup http://cires.colorado.edu/~braup/ From ealpert at DIGITALGLOBE.COM Fri Oct 21 13:01:52 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 21 Oct 2005 14:01:52 -0600 Subject: MapServer crashes on multiple REQUIRES? Message-ID: There are significant gotchas when upgrading from such an old version. Specifically you had better check your mapfile because 4.6 enforces many mapfile syntax rules that were kind of loose in older versions. If you did not follow the spec exactly when writing your mapfiles you'll definitely run into these kinds of problems. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Doyon, Jean-Francois Sent: Friday, October 21, 2005 1:09 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] MapServer crashes on multiple REQUIRES? Hello, I was trying to migrate a MapFile from 3.6.6 to 4.6.0, and suddenly the MapServer CGI would die, and the web server return a 500 ... I tried upgrading to 4.6.1, didn't help ... After some fiddling around, I've tracked it down to the use of "REQUIRES". It looks as if I can only have ONE layer with a "REQUIRES" ... The minute I have more than that, mapserver seems to crash. This is a problem, as the mapfile has ~380 layers, and lots of REQUIRES :) As mentionned this mapfile works fine on 3.6.6 ... Oh, and I just tried rendering using shp2img, and I get a segfault ... Just wanted to check here before I file this as a bug, anybody run into this? Have a quick solution? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Oct 21 13:04:29 2005 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 21 Oct 2005 16:04:29 -0400 Subject: MapServer crashes on multiple REQUIRES? Message-ID: Yup, I'm aware of the changes :) Turns out it's a known bug I didn't find because it's marked as fixed already in bugzilla ... Thanks, J.F. -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: October 21, 2005 4:02 PM To: Doyon, Jean-Francois; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] MapServer crashes on multiple REQUIRES? There are significant gotchas when upgrading from such an old version. Specifically you had better check your mapfile because 4.6 enforces many mapfile syntax rules that were kind of loose in older versions. If you did not follow the spec exactly when writing your mapfiles you'll definitely run into these kinds of problems. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Doyon, Jean-Francois Sent: Friday, October 21, 2005 1:09 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] MapServer crashes on multiple REQUIRES? Hello, I was trying to migrate a MapFile from 3.6.6 to 4.6.0, and suddenly the MapServer CGI would die, and the web server return a 500 ... I tried upgrading to 4.6.1, didn't help ... After some fiddling around, I've tracked it down to the use of "REQUIRES". It looks as if I can only have ONE layer with a "REQUIRES" ... The minute I have more than that, mapserver seems to crash. This is a problem, as the mapfile has ~380 layers, and lots of REQUIRES :) As mentionned this mapfile works fine on 3.6.6 ... Oh, and I just tried rendering using shp2img, and I get a segfault ... Just wanted to check here before I file this as a bug, anybody run into this? Have a quick solution? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From warmerdam at POBOX.COM Fri Oct 21 13:15:48 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 21 Oct 2005 16:15:48 -0400 Subject: RFC 5 - Horizon clipping during reprojection In-Reply-To: <1464295a0510211258x2c7ee6b7t@mail.gmail.com> Message-ID: On 10/21/05, Bruce Raup wrote: > Hi Frank, > > RFC-5 was just today called to my attention. I think it's great that this > is being (has been) addressed. Two closely related issues (I think) are these: > > A. How are polygon vertices joined? 1) By straight lines in the > projection, or 2) as great-circle arcs? Can this be specified in the > mapfile? If not, it would be great to have a LAYER-level parameter, > something like JOINVERTICES=greatcircle or JOINVERTICES=straightline. > The GMT program "psxy" offers such a choice (the -A option). Bruce, Currently a straight line in the output projection is created between the point at which the polygon boundary went "over the edge", and where it came back. This does result in anomolies as we can see a bit in the sample images I provided. The reason something smarter (like great circles or some other way to track the horizon) wasn't done was limited time. The client decided they didn't want to fund that degree of fidelity unless they find the current approach unsatisfactory. > B. When making a selection in the mapserver viewport (via jbox, for > example), only the corner coordinates of that box get converted back > to the coordinate system of the data, which means that what is > selected can be very different from what you see. I wrote about this > before. See http://spot.colorado.edu/~braup/MapServer/ for an example > of polar weirdness. Has this issue made it to the bug list? I can do > that if you guide me on how. I am aware of this problem, but there has been no effort (other than a bit of thinking) to resolve it. I'm not sure if there is a bug report on this issue or not. You can find info at the following url on how to submit bugs. http://ms.gis.umn.edu/development/bugs/ The case of reprojecting bounding boxes is handled specially via the msProjectRect() (in mapproject.c) and this function already has lots of logic about sampling along edges, and through the rect if some points fail to reproject. But it does not have any logic to deal with special polar issues. If we could force it to use the internal sampling for such cases that would help though not completely resolve the issue. I have included the code in case you would like to skim it and consider possible fixes. There is a wiki area for discussion of "world mapping problems" where I liked to accumulate such issues, but with the wiki locked down now there isn't an easy place to catalog such things. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent ack. This does result in anomolies as we can see a bit in the sample images I provided. The reason something smarter (like great circles or some other way to track the horizon) wasn't done was limited time. The client decided they didn't want to fund that degree of fidelity unless they find the current approach unsatisfactory. > B. When making a selection in the mapserver viewport (via jbox, for > example), only the corner coordinates of that box get converted back > to the coordinate system of the data, which means that what is > selected can be very different from what you see. I wrote about this > before. See http://spot.colorado.edu/~braup/MapServer/ for an example > of polar weirdness. Has this issue made it to the bug list? I can do > that if you guide me on how. I am aware of this problem, but there has been no effort (other than a bit of thinking) to resolve it. I'm not sure if there is a bug report on this issue or not. You can find info at the following url on how to submit bugs. http://ms.gis.umn.edu/development/bugs/ The case of reprojecting bounding boxes is handled specially via the msProjectRect() (in mapproject.c) and this function already has lots of logic about sampling along edges, and through the rect if some points fail to reproject. But it does not have any logic to deal with special polar issues. If we could force it to use the internal sampling for such cases that would help though not completely resolve the issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent /************************************************************************/ /* msProjectGrowRect() */ /************************************************************************/ #ifdef USE_PROJ static void msProjectGrowRect(projectionObj *in, projectionObj *out, rectObj *prj_rect, int *rect_initialized, pointObj *prj_point, int *failure ) { if( msProjectPoint(in, out, prj_point) == MS_SUCCESS ) { if( *rect_initialized ) { prj_rect->miny = MS_MIN(prj_rect->miny, prj_point->y); prj_rect->maxy = MS_MAX(prj_rect->maxy, prj_point->y); prj_rect->minx = MS_MIN(prj_rect->minx, prj_point->x); prj_rect->maxx = MS_MAX(prj_rect->maxx, prj_point->x); } else { prj_rect->minx = prj_rect->maxx = prj_point->x; prj_rect->miny = prj_rect->maxy = prj_point->y; *rect_initialized = MS_TRUE; } } else (*failure)++; } #endif /* def USE_PROJ */ /************************************************************************/ /* msProjectRect() */ /************************************************************************/ #define NUMBER_OF_SAMPLE_POINTS 100 int msProjectRect(projectionObj *in, projectionObj *out, rectObj *rect) { #ifdef USE_PROJ pointObj prj_point; rectObj prj_rect; int rect_initialized = MS_FALSE, failure=0; double dx, dy; double x, y; dx = (rect->maxx - rect->minx)/NUMBER_OF_SAMPLE_POINTS; dy = (rect->maxy - rect->miny)/NUMBER_OF_SAMPLE_POINTS; /* first ensure the top left corner is processed, even if the rect turns out to be degenerate. */ prj_point.x = rect->minx; prj_point.y = rect->miny; #ifdef USE_POINT_Z_M prj_point.z = 0.0; prj_point.m = 0.0; #endif /* USE_POINT_Z_M */ msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); /* sample along top and bottom */ if(dx > 0) { for(x=rect->minx; x<=rect->maxx; x+=dx) { prj_point.x = x; prj_point.y = rect->miny; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); prj_point.x = x; prj_point.y = rect->maxy; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } /* sample along left and right */ if(dy > 0) { for(y=rect->miny; y<=rect->maxy; y+=dy) { prj_point.y = y; prj_point.x = rect->minx; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); prj_point.x = rect->maxx; prj_point.y = y; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } /* ** If there have been any failures around the edges, then we had better ** try and fill in the interior to get a close bounds. */ if( failure > 0 ) { failure = 0; for(x=rect->minx + dx; x<=rect->maxx; x+=dx) { for(y=rect->miny + dy; y<=rect->maxy; y+=dy) { prj_point.x = x; prj_point.y = y; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } if( !rect_initialized ) { if( out == NULL || out->proj == NULL || pj_is_latlong(in->proj) ) { prj_rect.minx = -180; prj_rect.maxx = 180; prj_rect.miny = -90; prj_rect.maxy = 90; } else { prj_rect.minx = -22000000; prj_rect.maxx = 22000000; prj_rect.miny = -11000000; prj_rect.maxy = 11000000; } msDebug( "msProjectRect(): all points failed to reproject, trying to fall back to using world bounds ... hope this helps.\n" ); } else { msDebug( "msProjectRect(): some points failed to reproject, doing internal sampling.\n" ); } } rect->minx = prj_rect.minx; rect->miny = prj_rect.miny; rect->maxx = prj_rect.maxx; rect->maxy = prj_rect.maxy; if( !rect_initialized ) return MS_FAILURE; else return(MS_SUCCESS); #else msSetError(MS_PROJERR, "Projection support is not available.", "msProjectRect()"); return(MS_FAILURE); #endif } From mstangeh at GMAIL.COM Fri Oct 21 13:32:04 2005 From: mstangeh at GMAIL.COM (Mauricio Stange H.) Date: Fri, 21 Oct 2005 17:32:04 -0300 Subject: map legend Message-ID: hi, i want to change the background colors of the checkbox, and text from the legend. What must i edit to do that??? thanks Mauricio Stange From Debbie.Pagurek at EC.GC.CA Fri Oct 21 14:10:50 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri, 21 Oct 2005 17:10:50 -0400 Subject: Handling apostrophes in field names and class expressions Message-ID: Hi all, I'm experiencing some difficulties with a mapfile that I'm using that has apostrophes in fieldnames and also apostrophes in class expressions. Funny - I thought my problems would all happen because of the French characters, but that doesn't appear to be the problem. For instance - can someone confirm that a CLASS Expression "Cours d'eau" will work? Mapserver 4.6.1, Windows. Can anyone comment on what Mapserver does with encoding? D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Friday, October 21, 2005 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] RFC 5 - Horizon clipping during reprojection On 10/21/05, Bruce Raup wrote: > Hi Frank, > > RFC-5 was just today called to my attention. I think it's great that > this is being (has been) addressed. Two closely related issues (I > think) are these: > > A. How are polygon vertices joined? 1) By straight lines in the > projection, or 2) as great-circle arcs? Can this be specified in the > mapfile? If not, it would be great to have a LAYER-level parameter, > something like JOINVERTICES=greatcircle or JOINVERTICES=straightline. > The GMT program "psxy" offers such a choice (the -A option). Bruce, Currently a straight line in the output projection is created between the point at which the polygon boundary went "over the edge", and where it came back. This does result in anomolies as we can see a bit in the sample images I provided. The reason something smarter (like great circles or some other way to track the horizon) wasn't done was limited time. The client decided they didn't want to fund that degree of fidelity unless they find the current approach unsatisfactory. > B. When making a selection in the mapserver viewport (via jbox, for > example), only the corner coordinates of that box get converted back > to the coordinate system of the data, which means that what is > selected can be very different from what you see. I wrote about this > before. See http://spot.colorado.edu/~braup/MapServer/ for an example > of polar weirdness. Has this issue made it to the bug list? I can do > that if you guide me on how. I am aware of this problem, but there has been no effort (other than a bit of thinking) to resolve it. I'm not sure if there is a bug report on this issue or not. You can find info at the following url on how to submit bugs. http://ms.gis.umn.edu/development/bugs/ The case of reprojecting bounding boxes is handled specially via the msProjectRect() (in mapproject.c) and this function already has lots of logic about sampling along edges, and through the rect if some points fail to reproject. But it does not have any logic to deal with special polar issues. If we could force it to use the internal sampling for such cases that would help though not completely resolve the issue. I have included the code in case you would like to skim it and consider possible fixes. There is a wiki area for discussion of "world mapping problems" where I liked to accumulate such issues, but with the wiki locked down now there isn't an easy place to catalog such things. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent ack. This does result in anomolies as we can see a bit in the sample images I provided. The reason something smarter (like great circles or some other way to track the horizon) wasn't done was limited time. The client decided they didn't want to fund that degree of fidelity unless they find the current approach unsatisfactory. > B. When making a selection in the mapserver viewport (via jbox, for > example), only the corner coordinates of that box get converted back > to the coordinate system of the data, which means that what is > selected can be very different from what you see. I wrote about this > before. See http://spot.colorado.edu/~braup/MapServer/ for an example > of polar weirdness. Has this issue made it to the bug list? I can do > that if you guide me on how. I am aware of this problem, but there has been no effort (other than a bit of thinking) to resolve it. I'm not sure if there is a bug report on this issue or not. You can find info at the following url on how to submit bugs. http://ms.gis.umn.edu/development/bugs/ The case of reprojecting bounding boxes is handled specially via the msProjectRect() (in mapproject.c) and this function already has lots of logic about sampling along edges, and through the rect if some points fail to reproject. But it does not have any logic to deal with special polar issues. If we could force it to use the internal sampling for such cases that would help though not completely resolve the issue. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent /*********************************************************************** */ /* msProjectGrowRect() */ /*********************************************************************** */ #ifdef USE_PROJ static void msProjectGrowRect(projectionObj *in, projectionObj *out, rectObj *prj_rect, int *rect_initialized, pointObj *prj_point, int *failure ) { if( msProjectPoint(in, out, prj_point) == MS_SUCCESS ) { if( *rect_initialized ) { prj_rect->miny = MS_MIN(prj_rect->miny, prj_point->y); prj_rect->maxy = MS_MAX(prj_rect->maxy, prj_point->y); prj_rect->minx = MS_MIN(prj_rect->minx, prj_point->x); prj_rect->maxx = MS_MAX(prj_rect->maxx, prj_point->x); } else { prj_rect->minx = prj_rect->maxx = prj_point->x; prj_rect->miny = prj_rect->maxy = prj_point->y; *rect_initialized = MS_TRUE; } } else (*failure)++; } #endif /* def USE_PROJ */ /*********************************************************************** */ /* msProjectRect() */ /*********************************************************************** */ #define NUMBER_OF_SAMPLE_POINTS 100 int msProjectRect(projectionObj *in, projectionObj *out, rectObj *rect) { #ifdef USE_PROJ pointObj prj_point; rectObj prj_rect; int rect_initialized = MS_FALSE, failure=0; double dx, dy; double x, y; dx = (rect->maxx - rect->minx)/NUMBER_OF_SAMPLE_POINTS; dy = (rect->maxy - rect->miny)/NUMBER_OF_SAMPLE_POINTS; /* first ensure the top left corner is processed, even if the rect turns out to be degenerate. */ prj_point.x = rect->minx; prj_point.y = rect->miny; #ifdef USE_POINT_Z_M prj_point.z = 0.0; prj_point.m = 0.0; #endif /* USE_POINT_Z_M */ msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); /* sample along top and bottom */ if(dx > 0) { for(x=rect->minx; x<=rect->maxx; x+=dx) { prj_point.x = x; prj_point.y = rect->miny; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); prj_point.x = x; prj_point.y = rect->maxy; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } /* sample along left and right */ if(dy > 0) { for(y=rect->miny; y<=rect->maxy; y+=dy) { prj_point.y = y; prj_point.x = rect->minx; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); prj_point.x = rect->maxx; prj_point.y = y; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } /* ** If there have been any failures around the edges, then we had better ** try and fill in the interior to get a close bounds. */ if( failure > 0 ) { failure = 0; for(x=rect->minx + dx; x<=rect->maxx; x+=dx) { for(y=rect->miny + dy; y<=rect->maxy; y+=dy) { prj_point.x = x; prj_point.y = y; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } if( !rect_initialized ) { if( out == NULL || out->proj == NULL || pj_is_latlong(in->proj) ) { prj_rect.minx = -180; prj_rect.maxx = 180; prj_rect.miny = -90; prj_rect.maxy = 90; } else { prj_rect.minx = -22000000; prj_rect.maxx = 22000000; prj_rect.miny = -11000000; prj_rect.maxy = 11000000; } msDebug( "msProjectRect(): all points failed to reproject, trying to fall back to using world bounds ... hope this helps.\n" ); } else { msDebug( "msProjectRect(): some points failed to reproject, doing internal sampling.\n" ); } } rect->minx = prj_rect.minx; rect->miny = prj_rect.miny; rect->maxx = prj_rect.maxx; rect->maxy = prj_rect.maxy; if( !rect_initialized ) return MS_FAILURE; else return(MS_SUCCESS); #else msSetError(MS_PROJERR, "Projection support is not available.", "msProjectRect()"); return(MS_FAILURE); #endif } From tim at COMMENSPACE.ORG Fri Oct 21 14:52:25 2005 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Fri, 21 Oct 2005 14:52:25 -0700 Subject: MapServer crashes on multiple REQUIRES? Message-ID: > > Turns out it's a known bug I didn't find because it's marked > as fixed already in bugzilla ... > The REQUIRES issue (Bug 1283) is marked as fixed for version 4.8 (though you'll have to watch out for rasters still!). http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1283 Tim From perrygeo at GMAIL.COM Fri Oct 21 22:46:22 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri, 21 Oct 2005 22:46:22 -0700 Subject: CGI variable substitutions for PROCESSING Message-ID: Hey folks, I'm using CGI mapserv and I'm trying to find a way to do variable substitution in the GDAL PROCESSING line to allow dynamic scaling of a raster image: PROCESSING "SCALE=%mintemp%,%maxtemp%" and specify this with my &mode=map request: &mintemp=31000&maxtemp=33000 However it doesn't seem to pick up on the CGI variables. I've noticed Charlton's recent messages about other mapfile objects not taking cgi substitution variables, could PROCESSING be one of them? So taking another route, I tried to use the mapfile runtime configuration like: &map_sst_processing=SCALE=31000,33000 and again with the "=" url-encoded &map_sst_processing=SCALE%3D31000,33000 Neither of which worked. Is there any way to dynamically configure the PROCESSING object with mapserv CGI or are we limited to hardcoding it at the moment? -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkl at REGIO.EE Sat Oct 22 01:57:17 2005 From: jkl at REGIO.EE (Jaak L) Date: Sat, 22 Oct 2005 03:57:17 -0500 Subject: Any papers, stats on MapServer performance against hardware / operating systems etc? Message-ID: >Our preferred environment will be Linux and using the CGI version of >MapServer as this is extremeley robust (well done to all involved), is >stateless and has a small memory footprint. Most map layers will be in >either Shape or TAB and we can configure the Tile Indexes etc. We have tested with comparable country-wise dataset in different data formats (shape files, tab files, postgis database) and hardwares (linux/x86, solaris9/sparc, solaris10/AMDx86), using the CGI version. Linux/x86 (1 CPU PIII ~1 GHz) was quite satisfactory, around 1 sec/map (about 100 maps/min), Solaris/Sparc with 2 CPUs (Sun Fire440) was ~2...3 times slower and Solaris10 on AMD (Sun Fire V20z) was ~3-4 times faster than Linux. Taking price and also high reliability into account I would suggest the new Sun Fire X4200 (or two x2100) servers with AMD cpu-s and Linux or Solaris 10 os, this will be also the fastest you can get and it should be sufficent for 2 M maps/month. But I do not have proper whitepaper about this. Jaak From as.khadkikar at NCL.RES.IN Sat Oct 22 02:45:47 2005 From: as.khadkikar at NCL.RES.IN (Aniruddha S. Khadkikar) Date: Sat, 22 Oct 2005 15:15:47 +0530 Subject: PHP mapscript for dynamic map creation Message-ID: Hi all, Could anyone provide me with a sample code using PHP mapscript for dynamic mapfile creation? This would help me understand the coding basics. I am currently working with the tutorial material provided in the 2004 workshop. Thanks Aniruddha -- ANIRUDDHA S. KHADKIKAR Ph.D. ..................................................... Digital Information Resource Centre National Chemical Laboratory Dr. Homi Bhabha Road Pune 411008, INDIA ..................................................... Phone : 91 020 25893457 (Off) Fax : 91 020 25893973 Email : as.khadkikar at ncl.res.in Web : http://www.ncbi.org.in ..................................................... ***************************************************************** This email is virus free by TrendMicro Inter Scan Security Suite. ***************************************************************** From jachym.cepicky at CENTRUM.CZ Sat Oct 22 05:31:20 2005 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Sat, 22 Oct 2005 14:31:20 +0200 Subject: mapscript - layerObj.clone() Message-ID: Hallo, I would like to copy one layer, modify its attributes and print it to result map (perl MapScript): [...] my $newLayer = mapscript::layerObj($mapObj); $newLayer = $layerObj->clone(); $searchLayer->{status} = 1; my $imgObj = $mapObj->draw() or die('Unable to draw map'); $imgObj->save("/home/jachym/tmp/smaz/pokus.png" But there is nothing in resulting image :-( What to do? Thanks J?chym -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz GPG: http://les-ejk.cz/gnupg_public_key/ ----------------------------------------- OFFICE: Department of Geoinformation Technologies LDF MZLU v Brn? Zem?d?lsk? 3 613 00 Brno e-mail: xcepicky at node.mendelu.cz URL: http://mapserver.mendelu.cz Tel.: +420 545 134 514 From dmorissette at DMSOLUTIONS.CA Sat Oct 22 12:12:41 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Sat, 22 Oct 2005 15:12:41 -0400 Subject: libcurl security vulnerability Message-ID: FYI, a security vulnerability in libcurl has recently been reported and is fixed in libcurl 7.15.0 and later: http://curl.haxx.se/docs/security.html I don't think MapServer users are at high risk since libcurl is only used to connect to remote WMS and WFS servers which are in general friendly or well-known hosts, and there is no known curl exploit at this time. However a risk could still exists for those using untrusted WMS servers in their apps, or allowing loading of arbitrary Web Map Contexts in their apps. If you consider yourself at risk then you might want to upgrade to libcurl 7.15.0 or to a patched libcurl version that may be available for your OS. Future maptools.org builds (FGS and MS4W) will be based on the latest version of Curl. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From peter.kingsbury at GMAIL.COM Sat Oct 22 13:51:15 2005 From: peter.kingsbury at GMAIL.COM (Peter Kingsbury) Date: Sat, 22 Oct 2005 16:51:15 -0400 Subject: the_geom -> PHP? Message-ID: Hello all, I have some data stored in a PostgreSQL table (point data stored in a 'geometry' datatype column) which I would like to turn into legible coordinate data in PHP. I've been trawling google for a while, but I am having difficulty locating useful documentation on this subject. Not sure if I should be checking the PHP or the PostgreSQL documents for this info, but digging through both has thus far proven unfruitful. Any help would be appreciated. :^) Best regards, - Peter From arnulf.christl at CCGIS.DE Sun Oct 23 05:34:11 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Sun, 23 Oct 2005 14:34:11 +0200 Subject: the_geom -> PHP? In-Reply-To: <435AA643.3020606@gmail.com> Message-ID: Peter Kingsbury wrote: > Hello all, > > I have some data stored in a PostgreSQL table (point data stored in a > 'geometry' datatype column) which I would like to turn into legible > coordinate data in PHP. I've been trawling google for a while, but I am > having difficulty locating useful documentation on this subject. Not > sure if I should be checking the PHP or the PostgreSQL documents for > this info, but digging through both has thus far proven unfruitful. > > Any help would be appreciated. :^) > > Best regards, > - Peter Hi, if you can access PG with PHPO directly & just want to have the geom in plain text use the PostGIS asewkt(the_geom) function in the query. SELECT asewkt(the_geom) FROM whatever It will return a WKT (Well Known Text) string with the coordinate system and a list of coordinates. Best, From bertelli at CHARTA.ACME.COM Sun Oct 23 06:37:33 2005 From: bertelli at CHARTA.ACME.COM (Carlo A. Bertelli) Date: Sun, 23 Oct 2005 08:37:33 -0500 Subject: Help on PHP/Mapscript (was: AIUTO-1!) Message-ID: This is what (I understand from what) Alessio asked: --- Alessio said: Hello everyone, I would like to know if MapScript can solve the following problem. I should calculate the shortest track between two towns. I'm inspired by the link state algorithm in of the routers, using the information stored in a database. I'm wondering if this is feasibile in PHP/Mapscript, I think I could obtain a new shapefile to show in the map. I suppose I could get the relevant information from the starting shapefile, so to perform a query on the database to meke up a new shapefile. Are these the right steps? TIA for any answer. Alessio --- To Alessio: please make the effort to translate your requests in English. This is an international list, if everyone would use his own language, our life would be very difficult. We should agree on English to easily get help. By the way, I thought there was an Italian list for MapServer. Isn't it? From jbarong at HOTMAIL.COM Sun Oct 23 09:05:53 2005 From: jbarong at HOTMAIL.COM (Juan Baron) Date: Sun, 23 Oct 2005 11:05:53 -0500 Subject: J2EE and Mapserver Message-ID: Hello list, I have thought of using mapserver in an application J2EE. I have used mapserver with html, but I haven't used it in a jsp, is this posible? Somebody can give me an address where comes explained or to give an example? Greetings From carloncho24pe at YAHOO.ES Mon Oct 24 02:09:11 2005 From: carloncho24pe at YAHOO.ES (Carlos Ruiz) Date: Mon, 24 Oct 2005 11:09:11 +0200 Subject: Gmap legend and map projections Message-ID: Hi, I have differents layers like: LAYER NAME che02___00 GROUP cheSR___00 TYPE LAYER NAME che10___00 GROUP cheSR___00 TYPE I would like to activate all layers of the same group with the same button (checkbox). I changed ?getlayerbyname(?layername?) by ?getLayersIndexByGroup($groupname)? in gmap75.inc.php file; also ?NAME=?layername?? by ?GROUP=?groupname?? in gmap75.phtml file; but it does not work! Also, i would like to create a isochronous map but in concentric cercles with time axes (radius). Do you know how to do that? I mean, how to deform the original map? Any suggestion would be highly appreciated Thanks in advance! Carlos ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, m?s seguridad http://correo.yahoo.es From Jukka.Sirvio at ARBONAUT.COM Mon Oct 24 01:24:48 2005 From: Jukka.Sirvio at ARBONAUT.COM (Jukka =?iso-8859-1?Q?Sirvi=F6?=) Date: Mon, 24 Oct 2005 11:24:48 +0300 Subject: About Mapserver Native Oracle support and OGR Oracle support Message-ID: Hello! Does anyone have a suggestion which is the preferred way for getting the spatial data from Oracle? Is it Mapserver Native support or is it through OGR / gdal? What are the drawbacks / benefits for both of these? I already know that if I use ogr approach I have to compile gdal and then compile mapserver for this version of gdal. I quess that Mapserver native approach is more widely used? Yours: Jukka From Frank.Broniewski at MNHA.ETAT.LU Mon Oct 24 02:51:32 2005 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Mon, 24 Oct 2005 11:51:32 +0200 Subject: Error drawing tiff image Message-ID: Hello List I have a problem with drawing a tif image. First the error message: Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. I searched the web for this message and found only information concerning chameleon, which I am not using. And to be honest, I don't understand the information I found, since they concerne some programming aspect of mapserver. Maybe someone here can help me on a solution. I created the image with photoshop and saved as uncompressed tiff image, 300 dpi and 24 bit color. i created a world file with ArcMap, in which the image displays fine and on the right place. Gdalinfo lists the following information: c:\gdal\bin>gdalinfo "c:\karten\cds\Hansen\hansenluxsued.tif" Driver: GTiff/GeoTIFF Size is 10120, 8175 Coordinate System is `' Metadata: TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.9.1.2 $ $Date: 2001/12/05 00:33:12Z TIFFTAG_DATETIME=2005:10:17 11:47:07 Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 8175.0) Upper Right (10120.0, 0.0) Lower Right (10120.0, 8175.0) Center ( 5060.0, 4087.5) Band 1 Block=10120x1 Type=Byte, ColorInterp=Red Min=0.000/0, Max=255.000/0 Band 2 Block=10120x1 Type=Byte, ColorInterp=Green Min=0.000/0, Max=255.000/0 Band 3 Block=10120x1 Type=Byte, ColorInterp=Blue Min=0.000/0, Max=255.000/0 My map file for the image is as followed MAP NAME "Test Mapfile" IMAGETYPE jpeg EXTENT 42000 53000 111000 141000 SIZE 500 500 # SYMBOLSET "../symbols/symbols.sym" SHAPEPATH "c:\karten" IMAGECOLOR 255 255 255 WEB IMAGEPATH "C:\mapserver\ms_tmp\" IMAGEURL "/ms_tmp/" END LAYER Debug On Name "Topografische Karte 1910" Data "cds/hansen/hansenluxsued2.tif" Type Raster Status On END END As you can see, very basic and minimalistic. My code to call the mapfile comes here draw(); $imgurl = $img->saveWebImage(); $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s
\n", $error->routine, $error->message); $error = $error->next(); } ?> phpinfo() gives the following information about mapserver MapServer Version: MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG PHP MapScript Version: ($Revision: 1.224 $ $Date: 2005/01/28 15:28:26 $) So what is going wrong there? Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 24 03:05:25 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 24 Oct 2005 12:05:25 +0200 Subject: About Mapserver Native Oracle support and OGR Oracle support Message-ID: I think the Mapserver native would be the preferred way. It should have the best performance, and it has the same features as the OGR one. Note that the OGR OCI driver was mostly developed for writing data and not so much for reading (so it might not be completely optimized for that). Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Jukka Sirvi? 24-10-2005 10:24 >>> Hello! Does anyone have a suggestion which is the preferred way for getting the spatial data from Oracle? Is it Mapserver Native support or is it through OGR / gdal? What are the drawbacks / benefits for both of these? I already know that if I use ogr approach I have to compile gdal and then compile mapserver for this version of gdal. I quess that Mapserver native approach is more widely used? Yours: Jukka From oudelohuisr at VERTIS.NL Mon Oct 24 03:50:51 2005 From: oudelohuisr at VERTIS.NL (Robert oude Lohuis) Date: Mon, 24 Oct 2005 05:50:51 -0500 Subject: About Mapserver Native Oracle support and OGR Oracle support Message-ID: True, but there is a difference: The native support does not have the capability to get administrative data from the database, but delivers only the geometry data. OGR does have support for queries which deliver data of other database-columns other than the geometry column. But, as Bart already mentioned, this comes with a price. The performance decreased in our case with a factor 2. greetz, Robert. On Mon, 24 Oct 2005 12:05:25 +0200, Bart van den Eijnden wrote: >I think the Mapserver native would be the preferred way. It should have the best performance, and it has the same features as the OGR one. Note that the OGR OCI driver was mostly developed for writing data and not so much for reading (so it might not be completely optimized for that). > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Jukka Sirvi? 24-10-2005 10:24 >>> >Hello! >Does anyone have a suggestion which is the preferred way for getting the >spatial data from Oracle? Is it Mapserver Native support or is it through >OGR / gdal? What are the drawbacks / benefits for both of these? I already >know that if I use ogr approach I have to compile gdal and then compile >mapserver for this version of gdal. > >I quess that Mapserver native approach is more widely used? > > >Yours: >Jukka From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 24 03:59:18 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 24 Oct 2005 12:59:18 +0200 Subject: About Mapserver Native Oracle support and OGR Oracle support Message-ID: Hi Robert, what do you mean by this exactly? Using the native Oracle spatial connector you can also retrieve other columns than the geometry column. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Robert oude Lohuis 24-10-2005 12:50 >>> True, but there is a difference: The native support does not have the capability to get administrative data from the database, but delivers only the geometry data. OGR does have support for queries which deliver data of other database-columns other than the geometry column. But, as Bart already mentioned, this comes with a price. The performance decreased in our case with a factor 2. greetz, Robert. On Mon, 24 Oct 2005 12:05:25 +0200, Bart van den Eijnden wrote: >I think the Mapserver native would be the preferred way. It should have the best performance, and it has the same features as the OGR one. Note that the OGR OCI driver was mostly developed for writing data and not so much for reading (so it might not be completely optimized for that). > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Jukka Sirvi? 24-10-2005 10:24 >>> >Hello! >Does anyone have a suggestion which is the preferred way for getting the >spatial data from Oracle? Is it Mapserver Native support or is it through >OGR / gdal? What are the drawbacks / benefits for both of these? I already >know that if I use ogr approach I have to compile gdal and then compile >mapserver for this version of gdal. > >I quess that Mapserver native approach is more widely used? > > >Yours: >Jukka From as.khadkikar at NCL.RES.IN Mon Oct 24 04:39:27 2005 From: as.khadkikar at NCL.RES.IN (Aniruddha S. Khadkikar) Date: Mon, 24 Oct 2005 17:09:27 +0530 Subject: Could anyone help me out? Message-ID: This is a repeat of my earlier request. I have a deadline of day after. Could anyone please share their experience with generating layers dynamically using php mapscript. Or could some one guide me to relevant documentation. A sample php code will also help. Cheers Aniruddha -- ANIRUDDHA S. KHADKIKAR Ph.D. ..................................................... Digital Information Resource Centre National Chemical Laboratory Dr. Homi Bhabha Road Pune 411008, INDIA ..................................................... Phone : 91 020 25893457 (Off) Fax : 91 020 25893973 Email : as.khadkikar at ncl.res.in Web : http://www.ncbi.org.in ..................................................... ***************************************************************** This email is virus free by TrendMicro Inter Scan Security Suite. ***************************************************************** From phj at COWI.NO Mon Oct 24 05:10:23 2005 From: phj at COWI.NO (Johansen Per Henrik) Date: Mon, 24 Oct 2005 14:10:23 +0200 Subject: Invalid extent Message-ID: Hi, I am upgrading mapserver from 4.0.1 to 4.6.1. Compilation goes without any problems, but when I access the map application using the new MapServer I get the following error: loadMapInternal(): General error message. Given map extent is invalid. It seems that the new version is stricter, but I am not able to put my hands on the problem and how to fix it, and am hoping for some advice. The url sent to the server is as follows: http://gpi-test.nijos.no/cgi-bin/mapserv.ny?map=/var/www/html/nijos/nijos32.map&zoomsize=2&program=/cgi-bin/mapserv.ny&map_web_imagepath=/var/www/html/tmp/&map_web_imageurl=/tmp/&zoomdir=0&layers=DEK&map_SHAPEPATH=/var/www/html/tmp/&shapeDEK=/var/www/html/tmp/dek48760.shp&mapext=268824.846055588+6575985.30473746+269770.43459368+6577382.87979713 As you can see the extent is 268824.846055588 6575985.30473746 269770.43459368 6577382.87979713 The layer is defined as follows: LAYER NAME "DEK" TYPE Polygon STATUS off DATA "%shapeDEK%" DEBUG ON LABELITEM "id" LABELCACHE on PROJECTION ellps=GRS80 proj=utm zone=33 ellps=WGS84 datum=WGS84 units=m no_defs END CLASS Name dek DEBUG ON OUTLINECOLOR 255 153 153 SYMBOL 'circle' size 3 LABEL COLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 18 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 500 BUFFER 4 FORCE TRUE END # end of label END # CLASS END And the ogrinfo is as follows: INFO: Open of `C:\Documents and Settings\dfkons\Mine Dokumenter\dek48760.shp' using driver `ESRI Shapefile' successful. Layer name: dek48760 Geometry: Polygon Feature Count: 2 Extent: (268854.846056, 6576015.304737) - (269740.434594, 6577352.879797) Layer SRS WKT: (unknown) id: String (5.0) type: String (4.0) area: String (5.0) areafakt: String (5.0) Regards, Per Henrik From vinicio.balducci at IRPI.CNR.IT Mon Oct 24 06:22:59 2005 From: vinicio.balducci at IRPI.CNR.IT (Vinicio Balducci) Date: Mon, 24 Oct 2005 15:22:59 +0200 Subject: Dynamiv layers list Message-ID: I have installed Mapserver 4.4.0 on Fedora Core3. Because of the layers of my webgis are visible at different scales, I would like to have a dynamic "Layers List" (with layers in the list only when they are really visible) instead of the non-dinamic list I have got using MapLab. Can you help me? Thanks a lot Vinicio Balducci -- Vinicio Balducci Consiglio Nazionale delle Ricerche Istituto di Ricerca per la Protezione Idrogeologica Via Madonna Alta, 126 06128 Perugia Tel. +39 075 5014 429/430 Fax. +39 075 5014 420 E-mail: vinicio.balducci at irpi.cnr.it http://www.irpi.cnr.it/ From jlacroix at DMSOLUTIONS.CA Mon Oct 24 06:39:24 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Mon, 24 Oct 2005 09:39:24 -0400 Subject: Could anyone help me out? In-Reply-To: <435CC7EF.4040602@ncl.res.in> Message-ID: Hi, There's few way to acheive this. You can check the wiki on the MapServer website to dynamically create lines and points: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript Is that what you want? Thanks Julien Aniruddha S. Khadkikar wrote: > This is a repeat of my earlier request. I have a deadline of day after. > Could anyone please share their experience with generating layers > dynamically using php mapscript. Or could some one guide me to relevant > documentation. A sample php code will also help. > Cheers > Aniruddha -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From fsimon at UNIVALI.BR Mon Oct 24 06:48:01 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 24 Oct 2005 11:48:01 -0200 Subject: About Mapserver Native Oracle support and OGR Oracle support In-Reply-To: Message-ID: Hi Robert, Just to complete the Bart answer, this feature I finished in the 4.4 version of Mapserver. Now with native support you can query data from Oracle Spatial using Mapserver without problems. You can use query functions in Mapscript, query mode in CGI, WMS/WFS requests.... Regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Robert oude Lohuis wrote: >True, but there is a difference: > >The native support does not have the capability to get administrative data >from the database, but delivers only the geometry data. OGR does have >support for queries which deliver data of other database-columns other than >the geometry column. > >But, as Bart already mentioned, this comes with a price. The performance >decreased in our case with a factor 2. > >greetz, > >Robert. > >On Mon, 24 Oct 2005 12:05:25 +0200, Bart van den Eijnden > wrote: > > > >>I think the Mapserver native would be the preferred way. It should have the >> >> >best performance, and it has the same features as the OGR one. Note that the >OGR OCI driver was mostly developed for writing data and not so much for >reading (so it might not be completely optimized for that). > > >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera IT Solutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>>Jukka Sirvi? 24-10-2005 10:24 >>> >>>>> >>>>> >>Hello! >>Does anyone have a suggestion which is the preferred way for getting the >>spatial data from Oracle? Is it Mapserver Native support or is it through >>OGR / gdal? What are the drawbacks / benefits for both of these? I already >>know that if I use ogr approach I have to compile gdal and then compile >>mapserver for this version of gdal. >> >>I quess that Mapserver native approach is more widely used? >> >> >>Yours: >>Jukka >> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rf123 at GMX.NET Mon Oct 24 07:17:37 2005 From: rf123 at GMX.NET (Roland Forster) Date: Mon, 24 Oct 2005 09:17:37 -0500 Subject: wmsclient Message-ID: Hello, I try do set up a cascading wmsserver including several wms services but get no result. I use the mapbender frontend to load the maps. There is no error message. Just an empty screen with a red cross in it. I'm running mapserver 4.6.1. Is there something wrong with my mapfile? Thank you in advance, Roland Here is my mapfile: ------------------- MAP NAME "test" STATUS ON DEBUG ON #EXTENT 3446461 5811888 3511872 5880234 UNITS METERS IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" TRANSPARENT ON END WEB # WMS-Support METADATA "wms_title" "test" "wms_onlineresource" "http:///cgi-bin/mapserv.sh? map=../demo/1_kaskade_test_wms.map" "wms_srs" "EPSG:31463" END IMAGEPATH "/www/html/tmp/" IMAGEURL "/tmp/" END PROJECTION "init=epsg:31463" END LAYER NAME "intevation" TYPE RASTER STATUS OFF CONNECTION "http://demo.intevation.de/cgi/frida-wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "epsg:31463" "wms_name" "gewaesser" "wms_server_version" "1.1.1" "wms_format" "image/png" END END END # Map File From lfilak at MEDINACO.ORG Mon Oct 24 07:34:11 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 24 Oct 2005 10:34:11 -0400 Subject: mapscript - layerObj.clone() Message-ID: The following message was sent by Jachym Cepicky on Sat, 22 Oct 2005 14:31:20 +0200. > Hallo, > I would like to copy one layer, modify its attributes and print it to > result map (perl MapScript): > > [...] > my $newLayer = mapscript::layerObj($mapObj); > $newLayer = $layerObj->clone(); > $searchLayer->{status} = 1; > > > my $imgObj = $mapObj->draw() or die('Unable to draw map'); > $imgObj->save("/home/jachym/tmp/smaz/pokus.png" > > > But there is nothing in resulting image :-( What to do? J?chym, I'm not following what is occurring in the code. It appears to say: Create a new & empty layerobject named $newLayer then create a new layerobject named $newLayer by cloning it from an existing layer named $layerObj and from there it because a bit more confusing as none of the operations seem to initiate values for $newLayer. There was a recent discussion that may help explain what 'new' objects have defaults and which don't: search the october archives for 'Problems translating map file layers to mapscript'. Lowell From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 24 07:36:08 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 24 Oct 2005 16:36:08 +0200 Subject: wmsclient Message-ID: Hi, Can you check the source of your red cross image (right mouse button, properties, and then copy the URL) and put the URL into a new browser window? That might give you more information. Otherwise check the following: 1) can you create a GetMap request to the WMS service in a URL and get a working image back? 2) try some debugging on Mapserver, see eg: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver 3) do you need a http proxy to connect to outdoor services? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Roland Forster 24-10-2005 16:17:37 >>> Hello, I try do set up a cascading wmsserver including several wms services but get no result. I use the mapbender frontend to load the maps. There is no error message. Just an empty screen with a red cross in it. I'm running mapserver 4.6.1. Is there something wrong with my mapfile? Thank you in advance, Roland Here is my mapfile: ------------------- MAP NAME "test" STATUS ON DEBUG ON #EXTENT 3446461 5811888 3511872 5880234 UNITS METERS IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" TRANSPARENT ON END WEB # WMS-Support METADATA "wms_title" "test" "wms_onlineresource" "http:///cgi-bin/mapserv.sh? map=../demo/1_kaskade_test_wms.map" "wms_srs" "EPSG:31463" END IMAGEPATH "/www/html/tmp/" IMAGEURL "/tmp/" END PROJECTION "init=epsg:31463" END LAYER NAME "intevation" TYPE RASTER STATUS OFF CONNECTION "http://demo.intevation.de/cgi/frida-wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "epsg:31463" "wms_name" "gewaesser" "wms_server_version" "1.1.1" "wms_format" "image/png" END END END # Map File From jorn at SPACETEC.NO Mon Oct 24 07:57:31 2005 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Mon, 24 Oct 2005 16:57:31 +0200 Subject: CSV for LineString Message-ID: Hi, does anyone knows how a comma separated value (CSV) file looks for LineString coordinates, if it shall be accepted by ogr2ogr with CSV-driver and VRT-driver? I've tried the following: CSV file: coor (-233950.35 6518319.86, -213912.58 6338485.11, -222473.01 6329200.33) (-222837.63 6329611.25, -222677.18 6329330.43, -222611.28 6329508.51, -222507.84 6329300.95) VRT file: /home/jorn/ogr_trials/international_test.csv international_test wkbLineString epsg:32633 Output: ogr2ogr internationals international.vrt ERROR 1: Failed to open datasource `/home/jorn/ogr_trials/international_test.csv'. FAILURE: Unable to open datasource `international.vrt' with the following drivers. -> VRT -> CSV +++ I've done something similar with points successfully, but I can't find information about LineStrings and Polygons. I'll also be happy for some links to such information. Best Regards Joern Vegard Roesnes From mschulz at WEBGIS.DE Mon Oct 24 08:00:46 2005 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Mon, 24 Oct 2005 17:00:46 +0200 Subject: sld not working on wfs layers? Message-ID: Hi, i just realized that mapserver does not use a working sld on a layer that has a wfs source. No problem applying this sld when the source is postgis (in my case, the wfs layer was a client to another mapfile that served the same postgis data as a wfs service). Is that true or should mapserver never do this, e.g. is my setup wrong? TIA, Michael -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 Tel +49 (0)761 556959-5 79108 Freiburg Fax +49 (0)761 556959-6 www.webgis.de / www.zopecms.de ----------------------------------------------------------- NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU ----------------------------------------------------------- From rf123 at GMX.NET Mon Oct 24 08:43:29 2005 From: rf123 at GMX.NET (Roland Forster) Date: Mon, 24 Oct 2005 10:43:29 -0500 Subject: wmsclient Message-ID: On Mon, 24 Oct 2005 16:36:08 +0200, Bart van den Eijnden wrote: Hi Bart, > >Can you check the source of your red cross image (right mouse button, properties, and then copy the URL) and put the URL into a new browser window? That might give you more information. > there is no information, because there is no image sent back. >Otherwise check the following: >1) can you create a GetMap request to the WMS service in a URL and get a working image back? This works fine: http://demo.intevation.de/cgi/frida-wms? REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=gewaesser&SRS=EPSG:31467&hei ght=100&width=100 >2) try some debugging on Mapserver, see eg: > >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver > I tried img2shp but the result is: msDrawMap(): Image handling error. Unable to initialize image.
msPrepareImage(): General error message. Image dimensions not specified.
>3) do you need a http proxy to connect to outdoor services? no proxy needed. I think the error may be in the mapfile. Is it right to say that the webservice itself sends the extent of the image (because in my mapfile there is no definition)? Hmm, I've no idea whats going wrong. Roland From BEN at SYNCERA-ITSOLUTIONS.NL Mon Oct 24 08:48:20 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 24 Oct 2005 17:48:20 +0200 Subject: wmsclient Message-ID: Roland, Can you try setting an EXTENT and SIZE on your MAP object? Shp2img needs the size for sure, and quite likely also the extent. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Roland Forster 24-10-2005 17:43:29 >>> On Mon, 24 Oct 2005 16:36:08 +0200, Bart van den Eijnden wrote: Hi Bart, > >Can you check the source of your red cross image (right mouse button, properties, and then copy the URL) and put the URL into a new browser window? That might give you more information. > there is no information, because there is no image sent back. >Otherwise check the following: >1) can you create a GetMap request to the WMS service in a URL and get a working image back? This works fine: http://demo.intevation.de/cgi/frida-wms? REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=gewaesser&SRS=EPSG:31467&hei ght=100&width=100 >2) try some debugging on Mapserver, see eg: > >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver > I tried img2shp but the result is: msDrawMap(): Image handling error. Unable to initialize image.
msPrepareImage(): General error message. Image dimensions not specified.
>3) do you need a http proxy to connect to outdoor services? no proxy needed. I think the error may be in the mapfile. Is it right to say that the webservice itself sends the extent of the image (because in my mapfile there is no definition)? Hmm, I've no idea whats going wrong. Roland From mh at SVAJ.DK Mon Oct 24 10:05:16 2005 From: mh at SVAJ.DK (Web Form 2) Date: Mon, 24 Oct 2005 12:05:16 -0500 Subject: the_geom -> PHP? Message-ID: I've written a php geometry lib which may can help. It's a part of the appformap projekt at http://sourceforge.net/projects/appformap/ the lib is called "libs/phpgeometry_class.php" get the latest from cvs. some examples of uses createGeometry($wkt);// $g is a new geometry object $ver= $g->getVertices(); // get all vertices in one string. EXPLODE THIS STRING e.g. explode(",",$ver) and you've the a array of vertices some other methods of $g $array=$g->getShapeArray();// array of shapes $gml = $g->getGML(); // get the feature in gml format $num= $g->getNumOfShapes();// numbers of shapes. In this case 2 $type= $g->getGeomType();// get the type of geometry. Here MULTILINESTRING $g->updateShape("4 4,5 5,6 6",0);// updates the wkt on shape level. Each shape of feature has a id starting from 0 $g->snapShape($shapeId,$snapTolerance,$snapLayerStr);// snaps shape with $shapeId to $snapLayerStr using tolerance of $snapTolerance $wkt= $g->getWKT();// get the wkt string back. Altered in this case //from gml to wkt $con= new gmlConverter; $con->gmlToWKT($gml); // where $gml is a gml stream. Return an array with WKT strings for each feature member print_r($con); ?> /martin From Debbie.Pagurek at EC.GC.CA Mon Oct 24 10:14:25 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 24 Oct 2005 13:14:25 -0400 Subject: Handling apostrophes in field names and class expressions Message-ID: CLASSITEM "type_de_cours_d__eau_?chantillonn?" CLASS NAME "Cours d'eau" EXPRESSION /Cours d\'eau/ COLOR 0 151 0 SYMBOL "circle" SIZE 5 END Found a solution to part of my problem. Regex helps when dealing with a class expression that contains an apostrophe. I've been trying to deal with the French part of our app, and one of the issues is having meaningful field Names when the user queries in Chameleon. SQL Server / OVF let's you write stuff like: select typ as "type_de_cours_d'eau_?chantillonn?". Mapserver won't let you use this for a classitem. It will if you use %27 for the apostrophe, but then Chameleon query widget doesn't like it. But it's probably not good practice to have apostrophes in field names, so we will have to do a search and replace in our chameleon query widget (2 underscores = ', 1 underscore = space). The other problem was that I needed to classify on something that had an apostrophe in it (e.g. the words "cours d'eau" are in the database). Mapserver doesn't like that in a string expression, but I found out that regex works: EXPRESSION /cours d\'eau/ So - some more solutions to the difficulties I was having. I just didn't know where my problems were occuring - in the OVF, in Mapserver, or in Chameleon. Turned out to be a bit of SQL Server (it really shouldn't let you put quotes into a field name, postgresql doesn't) and handling everything in Mapserver and chameleon. Hope this helps someone else. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pagurek,Debbie [NCR] Sent: Friday, October 21, 2005 5:11 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Handling apostrophes in field names and class expressions Hi all, I'm experiencing some difficulties with a mapfile that I'm using that has apostrophes in fieldnames and also apostrophes in class expressions. Funny - I thought my problems would all happen because of the French characters, but that doesn't appear to be the problem. For instance - can someone confirm that a CLASS Expression "Cours d'eau" will work? Mapserver 4.6.1, Windows. Can anyone comment on what Mapserver does with encoding? D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Friday, October 21, 2005 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] RFC 5 - Horizon clipping during reprojection On 10/21/05, Bruce Raup wrote: > Hi Frank, > > RFC-5 was just today called to my attention. I think it's great that > this is being (has been) addressed. Two closely related issues (I > think) are these: > > A. How are polygon vertices joined? 1) By straight lines in the > projection, or 2) as great-circle arcs? Can this be specified in the > mapfile? If not, it would be great to have a LAYER-level parameter, > something like JOINVERTICES=greatcircle or JOINVERTICES=straightline. > The GMT program "psxy" offers such a choice (the -A option). Bruce, Currently a straight line in the output projection is created between the point at which the polygon boundary went "over the edge", and where it came back. This does result in anomolies as we can see a bit in the sample images I provided. The reason something smarter (like great circles or some other way to track the horizon) wasn't done was limited time. The client decided they didn't want to fund that degree of fidelity unless they find the current approach unsatisfactory. > B. When making a selection in the mapserver viewport (via jbox, for > example), only the corner coordinates of that box get converted back > to the coordinate system of the data, which means that what is > selected can be very different from what you see. I wrote about this > before. See http://spot.colorado.edu/~braup/MapServer/ for an example > of polar weirdness. Has this issue made it to the bug list? I can do > that if you guide me on how. I am aware of this problem, but there has been no effort (other than a bit of thinking) to resolve it. I'm not sure if there is a bug report on this issue or not. You can find info at the following url on how to submit bugs. http://ms.gis.umn.edu/development/bugs/ The case of reprojecting bounding boxes is handled specially via the msProjectRect() (in mapproject.c) and this function already has lots of logic about sampling along edges, and through the rect if some points fail to reproject. But it does not have any logic to deal with special polar issues. If we could force it to use the internal sampling for such cases that would help though not completely resolve the issue. I have included the code in case you would like to skim it and consider possible fixes. There is a wiki area for discussion of "world mapping problems" where I liked to accumulate such issues, but with the wiki locked down now there isn't an easy place to catalog such things. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent ack. This does result in anomolies as we can see a bit in the sample images I provided. The reason something smarter (like great circles or some other way to track the horizon) wasn't done was limited time. The client decided they didn't want to fund that degree of fidelity unless they find the current approach unsatisfactory. > B. When making a selection in the mapserver viewport (via jbox, for > example), only the corner coordinates of that box get converted back > to the coordinate system of the data, which means that what is > selected can be very different from what you see. I wrote about this > before. See http://spot.colorado.edu/~braup/MapServer/ for an example > of polar weirdness. Has this issue made it to the bug list? I can do > that if you guide me on how. I am aware of this problem, but there has been no effort (other than a bit of thinking) to resolve it. I'm not sure if there is a bug report on this issue or not. You can find info at the following url on how to submit bugs. http://ms.gis.umn.edu/development/bugs/ The case of reprojecting bounding boxes is handled specially via the msProjectRect() (in mapproject.c) and this function already has lots of logic about sampling along edges, and through the rect if some points fail to reproject. But it does not have any logic to deal with special polar issues. If we could force it to use the internal sampling for such cases that would help though not completely resolve the issue. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent /*********************************************************************** */ /* msProjectGrowRect() */ /*********************************************************************** */ #ifdef USE_PROJ static void msProjectGrowRect(projectionObj *in, projectionObj *out, rectObj *prj_rect, int *rect_initialized, pointObj *prj_point, int *failure ) { if( msProjectPoint(in, out, prj_point) == MS_SUCCESS ) { if( *rect_initialized ) { prj_rect->miny = MS_MIN(prj_rect->miny, prj_point->y); prj_rect->maxy = MS_MAX(prj_rect->maxy, prj_point->y); prj_rect->minx = MS_MIN(prj_rect->minx, prj_point->x); prj_rect->maxx = MS_MAX(prj_rect->maxx, prj_point->x); } else { prj_rect->minx = prj_rect->maxx = prj_point->x; prj_rect->miny = prj_rect->maxy = prj_point->y; *rect_initialized = MS_TRUE; } } else (*failure)++; } #endif /* def USE_PROJ */ /*********************************************************************** */ /* msProjectRect() */ /*********************************************************************** */ #define NUMBER_OF_SAMPLE_POINTS 100 int msProjectRect(projectionObj *in, projectionObj *out, rectObj *rect) { #ifdef USE_PROJ pointObj prj_point; rectObj prj_rect; int rect_initialized = MS_FALSE, failure=0; double dx, dy; double x, y; dx = (rect->maxx - rect->minx)/NUMBER_OF_SAMPLE_POINTS; dy = (rect->maxy - rect->miny)/NUMBER_OF_SAMPLE_POINTS; /* first ensure the top left corner is processed, even if the rect turns out to be degenerate. */ prj_point.x = rect->minx; prj_point.y = rect->miny; #ifdef USE_POINT_Z_M prj_point.z = 0.0; prj_point.m = 0.0; #endif /* USE_POINT_Z_M */ msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); /* sample along top and bottom */ if(dx > 0) { for(x=rect->minx; x<=rect->maxx; x+=dx) { prj_point.x = x; prj_point.y = rect->miny; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); prj_point.x = x; prj_point.y = rect->maxy; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } /* sample along left and right */ if(dy > 0) { for(y=rect->miny; y<=rect->maxy; y+=dy) { prj_point.y = y; prj_point.x = rect->minx; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); prj_point.x = rect->maxx; prj_point.y = y; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } /* ** If there have been any failures around the edges, then we had better ** try and fill in the interior to get a close bounds. */ if( failure > 0 ) { failure = 0; for(x=rect->minx + dx; x<=rect->maxx; x+=dx) { for(y=rect->miny + dy; y<=rect->maxy; y+=dy) { prj_point.x = x; prj_point.y = y; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } if( !rect_initialized ) { if( out == NULL || out->proj == NULL || pj_is_latlong(in->proj) ) { prj_rect.minx = -180; prj_rect.maxx = 180; prj_rect.miny = -90; prj_rect.maxy = 90; } else { prj_rect.minx = -22000000; prj_rect.maxx = 22000000; prj_rect.miny = -11000000; prj_rect.maxy = 11000000; } msDebug( "msProjectRect(): all points failed to reproject, trying to fall back to using world bounds ... hope this helps.\n" ); } else { msDebug( "msProjectRect(): some points failed to reproject, doing internal sampling.\n" ); } } rect->minx = prj_rect.minx; rect->miny = prj_rect.miny; rect->maxx = prj_rect.maxx; rect->maxy = prj_rect.maxy; if( !rect_initialized ) return MS_FAILURE; else return(MS_SUCCESS); #else msSetError(MS_PROJERR, "Projection support is not available.", "msProjectRect()"); return(MS_FAILURE); #endif } From warmerdam at POBOX.COM Mon Oct 24 10:39:36 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 24 Oct 2005 13:39:36 -0400 Subject: CSV for LineString In-Reply-To: <200510241657.31239.jorn@spacetec.no> Message-ID: On 10/24/05, J?rn Vegard R?snes wrote: > Hi, > > does anyone knows how a comma separated value (CSV) file looks for LineString > coordinates, if it shall be accepted by ogr2ogr with CSV-driver and > VRT-driver? > > I've tried the following: > > CSV file: > coor > (-233950.35 6518319.86, -213912.58 6338485.11, -222473.01 6329200.33) > (-222837.63 6329611.25, -222677.18 6329330.43, -222611.28 6329508.51, > -222507.84 6329300.95) Jem, A Well Known Text encoding of a linestring would look like this: LINESTRING (1302459.25 234199.6875,1302617.25 234196.4375) It should be possible to include this in a .csv file to get proper line handling via .VRT. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bartvde at XS4ALL.NL Mon Oct 24 10:41:18 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 24 Oct 2005 19:41:18 +0200 Subject: J2EE and Mapserver In-Reply-To: Message-ID: Hi, you could use Java Mapscript. Google for it. Or you could just call Mapserver CGI from your JSP page. Check the Mapserver CGI reference. Best regards, Bart On Sun, 23 Oct 2005 18:05:53 +0200, Juan Baron wrote: > Hello list, > > I have thought of using mapserver in an application J2EE. I have used > mapserver with html, but I haven't used it in a jsp, is this posible? > Somebody can give me an address where comes explained or to give an > example? > > Greetings > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bhudspeth at EDAC.UNM.EDU Mon Oct 24 10:46:29 2005 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Mon, 24 Oct 2005 11:46:29 -0600 Subject: Problems with WMS GetMap Request Message-ID: Hello, I am using Mapserver 4.6 on Fedora Core 3. I am using a map file where map and layer projections are defined as: PROJECTION "init=epsg:4326" END My WMS GetMap requests look like this: http://falstaff.unm.edu/cgi-bin/mapserv? map=reason/dream_map.map&VERSION=1.1.1&REQUEST=GetMap&BBox=-120.000,26.000,-97.000,44.000&SRS=EPSG:4326&Width=570&Height=446.086956522&Layers=GRASS_SHADED_RELIEF And, regardless of which map layer I call, I get the following error. msProcessProjection(): Projection library error. projection not named I would much appreciate any enlightenment! Thanks, Bill From steve.lime at DNR.STATE.MN.US Mon Oct 24 11:05:21 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 24 Oct 2005 13:05:21 -0500 Subject: antialiasing line features.. Message-ID: Just to wrap things up. Antialising has not been removed. In testing independent of MapServer I have been unable to get GD to produce antialised lines with 8-bit output formats. You might try setting IMAGETYPE PNG24 and see if that helps. Steve >>> Jeff de La Beaujardiere 10/21/05 9:08 AM >>> Ivan Price wrote: > you are having more luck than me.. I am using the following and getting > a non-antialiased line still. Perhaps antialiasing has been removed from > the cartoline's capabilities in later versions ? This is what works for me: SYMBOL NAME "cartoline" TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 1 END LAYER NAME "countries" TYPE LINE STATUS on PROJECTION "init=epsg:4326" END DATA "........../wms/data/borders/cntry02.shp" METADATA "wms_title" "National Boundaries" "wms_layer_group" "/Reference" END CLASS NAME "BORDERS" STYLE COLOR 200 200 200 SYMBOL "cartoline" ANTIALIAS TRUE SIZE 1 END END END Try comparing speeds with TRUE and FALSE in the above with a dataset that has many line segments. From warmerdam at POBOX.COM Mon Oct 24 11:07:10 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 24 Oct 2005 14:07:10 -0400 Subject: Error drawing tiff image In-Reply-To: <000001c5d880$83725990$a6696e94@EPCCARTOGIS> Message-ID: On 10/24/05, Frank Broniewski wrote: > Hello List > > I have a problem with drawing a tif image. First the error message: > > Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, > but this is only supported after a raster query. > Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, > but this is only supported after a raster query. ... > phpinfo() gives the following information about mapserver > MapServer Version: > MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > DEBUG=MSDEBUG > PHP MapScript Version: > ($Revision: 1.224 $ $Date: 2005/01/28 15:28:26 $) > > So what is going wrong there? Frank, A few folks have run into this in the past, but I don't recall the details. I think it was fixed for the 4.6 release. I see that you are running MapServer 4.5 which was the "development" version of mapserver between 4.4 and 4.6. I think if you upgrade to 4.6 (or better yet our current development 4.7!) the problem should go away. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at DNR.STATE.MN.US Mon Oct 24 11:34:18 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 24 Oct 2005 13:34:18 -0500 Subject: Handling apostrophes in field names and class expressions Message-ID: Debbie: Your example exression should work just fine. MapServer doesn't support escaping of characters within string espressions. That shouldn't be a problem unless you have strings with both single and double qoutes in them. You just need to use the quoting method opposite of the characters. I have data here full of the name O'Brien and I just tested with a layer defiinition like: LAYER NAME 'test' TYPE POLYGON STATUS ON DATA 'lakes' CLASSITEM 'name' CLASS EXPRESSION "O'Brien" COLOR 255 0 0 END CLASS EXPRESSION /O'Brien/ COLOR 0 0 255 END END and I get what I expected. Features with the exact match are red and those with O'Brien as a substring are blue. This is 4.7 on Linux but there have be few if any changes in that area of the code since 4.6.1 was released. Steve >>> "Pagurek,Debbie [NCR]" 10/21/05 4:10 PM >>> Hi all, I'm experiencing some difficulties with a mapfile that I'm using that has apostrophes in fieldnames and also apostrophes in class expressions. Funny - I thought my problems would all happen because of the French characters, but that doesn't appear to be the problem. For instance - can someone confirm that a CLASS Expression "Cours d'eau" will work? Mapserver 4.6.1, Windows. Can anyone comment on what Mapserver does with encoding? D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Friday, October 21, 2005 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] RFC 5 - Horizon clipping during reprojection On 10/21/05, Bruce Raup wrote: > Hi Frank, > > RFC-5 was just today called to my attention. I think it's great that > this is being (has been) addressed. Two closely related issues (I > think) are these: > > A. How are polygon vertices joined? 1) By straight lines in the > projection, or 2) as great-circle arcs? Can this be specified in the > mapfile? If not, it would be great to have a LAYER-level parameter, > something like JOINVERTICES=greatcircle or JOINVERTICES=straightline. > The GMT program "psxy" offers such a choice (the -A option). Bruce, Currently a straight line in the output projection is created between the point at which the polygon boundary went "over the edge", and where it came back. This does result in anomolies as we can see a bit in the sample images I provided. The reason something smarter (like great circles or some other way to track the horizon) wasn't done was limited time. The client decided they didn't want to fund that degree of fidelity unless they find the current approach unsatisfactory. > B. When making a selection in the mapserver viewport (via jbox, for > example), only the corner coordinates of that box get converted back > to the coordinate system of the data, which means that what is > selected can be very different from what you see. I wrote about this > before. See http://spot.colorado.edu/~braup/MapServer/ for an example > of polar weirdness. Has this issue made it to the bug list? I can do > that if you guide me on how. I am aware of this problem, but there has been no effort (other than a bit of thinking) to resolve it. I'm not sure if there is a bug report on this issue or not. You can find info at the following url on how to submit bugs. http://ms.gis.umn.edu/development/bugs/ The case of reprojecting bounding boxes is handled specially via the msProjectRect() (in mapproject.c) and this function already has lots of logic about sampling along edges, and through the rect if some points fail to reproject. But it does not have any logic to deal with special polar issues. If we could force it to use the internal sampling for such cases that would help though not completely resolve the issue. I have included the code in case you would like to skim it and consider possible fixes. There is a wiki area for discussion of "world mapping problems" where I liked to accumulate such issues, but with the wiki locked down now there isn't an easy place to catalog such things. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent ack. This does result in anomolies as we can see a bit in the sample images I provided. The reason something smarter (like great circles or some other way to track the horizon) wasn't done was limited time. The client decided they didn't want to fund that degree of fidelity unless they find the current approach unsatisfactory. > B. When making a selection in the mapserver viewport (via jbox, for > example), only the corner coordinates of that box get converted back > to the coordinate system of the data, which means that what is > selected can be very different from what you see. I wrote about this > before. See http://spot.colorado.edu/~braup/MapServer/ for an example > of polar weirdness. Has this issue made it to the bug list? I can do > that if you guide me on how. I am aware of this problem, but there has been no effort (other than a bit of thinking) to resolve it. I'm not sure if there is a bug report on this issue or not. You can find info at the following url on how to submit bugs. http://ms.gis.umn.edu/development/bugs/ The case of reprojecting bounding boxes is handled specially via the msProjectRect() (in mapproject.c) and this function already has lots of logic about sampling along edges, and through the rect if some points fail to reproject. But it does not have any logic to deal with special polar issues. If we could force it to use the internal sampling for such cases that would help though not completely resolve the issue. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent /*********************************************************************** */ /* msProjectGrowRect() */ /*********************************************************************** */ #ifdef USE_PROJ static void msProjectGrowRect(projectionObj *in, projectionObj *out, rectObj *prj_rect, int *rect_initialized, pointObj *prj_point, int *failure ) { if( msProjectPoint(in, out, prj_point) == MS_SUCCESS ) { if( *rect_initialized ) { prj_rect->miny = MS_MIN(prj_rect->miny, prj_point->y); prj_rect->maxy = MS_MAX(prj_rect->maxy, prj_point->y); prj_rect->minx = MS_MIN(prj_rect->minx, prj_point->x); prj_rect->maxx = MS_MAX(prj_rect->maxx, prj_point->x); } else { prj_rect->minx = prj_rect->maxx = prj_point->x; prj_rect->miny = prj_rect->maxy = prj_point->y; *rect_initialized = MS_TRUE; } } else (*failure)++; } #endif /* def USE_PROJ */ /*********************************************************************** */ /* msProjectRect() */ /*********************************************************************** */ #define NUMBER_OF_SAMPLE_POINTS 100 int msProjectRect(projectionObj *in, projectionObj *out, rectObj *rect) { #ifdef USE_PROJ pointObj prj_point; rectObj prj_rect; int rect_initialized = MS_FALSE, failure=0; double dx, dy; double x, y; dx = (rect->maxx - rect->minx)/NUMBER_OF_SAMPLE_POINTS; dy = (rect->maxy - rect->miny)/NUMBER_OF_SAMPLE_POINTS; /* first ensure the top left corner is processed, even if the rect turns out to be degenerate. */ prj_point.x = rect->minx; prj_point.y = rect->miny; #ifdef USE_POINT_Z_M prj_point.z = 0.0; prj_point.m = 0.0; #endif /* USE_POINT_Z_M */ msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); /* sample along top and bottom */ if(dx > 0) { for(x=rect->minx; x<=rect->maxx; x+=dx) { prj_point.x = x; prj_point.y = rect->miny; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); prj_point.x = x; prj_point.y = rect->maxy; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } /* sample along left and right */ if(dy > 0) { for(y=rect->miny; y<=rect->maxy; y+=dy) { prj_point.y = y; prj_point.x = rect->minx; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); prj_point.x = rect->maxx; prj_point.y = y; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } /* ** If there have been any failures around the edges, then we had better ** try and fill in the interior to get a close bounds. */ if( failure > 0 ) { failure = 0; for(x=rect->minx + dx; x<=rect->maxx; x+=dx) { for(y=rect->miny + dy; y<=rect->maxy; y+=dy) { prj_point.x = x; prj_point.y = y; msProjectGrowRect(in,out,&prj_rect,&rect_initialized,&prj_point, &failure); } } if( !rect_initialized ) { if( out == NULL || out->proj == NULL || pj_is_latlong(in->proj) ) { prj_rect.minx = -180; prj_rect.maxx = 180; prj_rect.miny = -90; prj_rect.maxy = 90; } else { prj_rect.minx = -22000000; prj_rect.maxx = 22000000; prj_rect.miny = -11000000; prj_rect.maxy = 11000000; } msDebug( "msProjectRect(): all points failed to reproject, trying to fall back to using world bounds ... hope this helps.\n" ); } else { msDebug( "msProjectRect(): some points failed to reproject, doing internal sampling.\n" ); } } rect->minx = prj_rect.minx; rect->miny = prj_rect.miny; rect->maxx = prj_rect.maxx; rect->maxy = prj_rect.maxy; if( !rect_initialized ) return MS_FAILURE; else return(MS_SUCCESS); #else msSetError(MS_PROJERR, "Projection support is not available.", "msProjectRect()"); return(MS_FAILURE); #endif } From Debbie.Pagurek at EC.GC.CA Mon Oct 24 11:56:04 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 24 Oct 2005 14:56:04 -0400 Subject: Handling apostrophes in field namesand class expressions Message-ID: Thanks for clarifying this, Steve. Clearly then, the problem I was having had to do with the apostrophe in my classitem, and the chameleon query widget not liking that. Debbie -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, October 24, 2005 2:34 PM To: Pagurek,Debbie [NCR]; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Handling apostrophes in field namesand class expressions Debbie: Your example exression should work just fine. MapServer doesn't support escaping of characters within string espressions. That shouldn't be a problem unless you have strings with both single and double qoutes in them. You just need to use the quoting method opposite of the characters. I have data here full of the name O'Brien and I just tested with a layer defiinition like: LAYER NAME 'test' TYPE POLYGON STATUS ON DATA 'lakes' CLASSITEM 'name' CLASS EXPRESSION "O'Brien" COLOR 255 0 0 END CLASS EXPRESSION /O'Brien/ COLOR 0 0 255 END END and I get what I expected. Features with the exact match are red and those with O'Brien as a substring are blue. This is 4.7 on Linux but there have be few if any changes in that area of the code since 4.6.1 was released. Steve >>> "Pagurek,Debbie [NCR]" 10/21/05 4:10 PM >>> >>> Hi all, I'm experiencing some difficulties with a mapfile that I'm using that has apostrophes in fieldnames and also apostrophes in class expressions. Funny - I thought my problems would all happen because of the French characters, but that doesn't appear to be the problem. For instance - can someone confirm that a CLASS Expression "Cours d'eau" will work? Mapserver 4.6.1, Windows. Can anyone comment on what Mapserver does with encoding? D. Pagurek From Jeroen.Ticheler at FAO.ORG Mon Oct 24 13:23:59 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Mon, 24 Oct 2005 22:23:59 +0200 Subject: time series problem 3 (Bug!?) In-Reply-To: <460281D1-F7EA-41A1-A1ED-1E9CD42302AF@FAO.ORG> Message-ID: Hi! I was wondering if anything was decided on the WMS/WCS time series support options? Thanks in advance, Jeroen On 15 Oct 2005, at 21:53, Jeroen Ticheler wrote: > Thanks! At least I now know I didn't just do things wrong and > understand why some things worked and others not. From the website > this is not at all clear as it gives the impression time series as > in point 2 can be served... > > It would be really great if option 2 is supported. Very much in > line with what Jeff wrote, I foresee problems with our map client > as well as with others when I start specifying the time series > following option 4, although it would be an elegant way of > describing the time series :-) Option 2 will be excellent for many > of our temporal data series. > > I'll be happy to test, but have to add that I'm traveling in the > coming two weeks, so its hard to reply directly. > Looking forward to a solution! > > On one more note: I noted the way time series in WMS and WCS are > defined is different (according to the samples I used). WCS uses an > index file that is added as a separate LAYER, while WMS can > directly use the index shape file. I'm not sure (yet) a WCS time > series can be defined in the same way a WMS can be, but it might be > once solution 2 works for WMS!? Otherwise, would there be a way to > hide a LAYER completely from a WMS so one map file can be used for > both WCS and WMS? > If my description is not clear, I can post a more detailed > explanation later when back in the office. > > Thanks very much in advance! > Jeroen > > On 14 Oct 2005, at 04:43, Yewondwossen Assefa wrote: > > > >> >> >> Luis W. Sevilla wrote: >> >> >> >>> Hi, >>> Yewondwossen Assefa wrote: >>> >>> >>> >>>> From the specs (wms 1.1 annex c c.3), the extent could be >>>> defined in 4 ways : >>>> 1) value : A single value. This is not directly supported in >>>> Mapserver but there is an easy workwound by specifying the same >>>> value as min and max >>>> >>>> 2) value1,value2,value3,... a A list of multiple values. This >>>> is not supported in Mapserver. >>>> >>>> 3) min/max/resolution An interval defined by its lower and upper >>>> bounds and its resolution. This is supported in Mapserver >>>> (Note that the resolution is not supported) >>>> >>>> >>>> >>> It sounds quite strange: how do you specify the ammount of time- >>> slices, without giving the resolution? >>> >>> >>> >> >> You can specify the resolutions in your setting of the >> wms_timeextent parameter. It should be dumped as is in the >> capabilities document. It just won't be used when validating the >> time value passed in the request to see if the value fits in the >> time extents defined. The validation will only use the min max >> values. >> >> >> >> >> >>>> >>>> 4) min1/max1/res1,min2/max2/res2,... a A list of multiple >>>> intervals. Not supported >>>> >>>> >>>> I am willing to add the support for number 4) if you are >>>> willing to do additional testing. >>>> >>>> >>>> >>> We may do some testing too. we're on the way of developping a new >>> WMS cliente with time parameter support, and also interested in >>> publising multitemporal data on the same way. >>> ' >>> >>> >>> >> >> I have entred a bug on this issue so discussions/testing can be >> done through this bug. >> >> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1498 >> >> >> >> >>>> >>>> I am not sure if 2) is is a must have at this point. >>>> >>>> Le me know what you think and then we can proceed with the >>>> impentation. >>>> >>>> Later, >>>> >>>> >>>> Jeroen Ticheler wrote: >>>> >>>> >>>> >>>> >>>>> Thanks for that! Is it a complex thing to add such support? I >>>>> had the impression from the code that it was virtually there >>>>> already, just that it first checked for a range and does not >>>>> proceed to check for ranges? >>>>> The problem is that a range doesn't work for this series. Data >>>>> comes in at three 10 daily periods a month, which is not >>>>> exactly true as a month does not always have 30 days. Still >>>>> the images are always dated with a 01, 11 and 21 for the day >>>>> (or 1,2 or 3 for a dekad). >>>>> >>>>> Ciao, >>>>> Jeroen >>>>> _______________________ >>>>> Jeroen Ticheler >>>>> FAO-UN >>>>> Tel: +39 06 57056041 >>>>> http://www.fao.org/geonetwork >>>>> 42.07436?N 12.34327?E >>>>> >>>>> >>>>> On 13 Oct 2005, at 20:03, Yewondwossen Assefa wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Hi There, >>>>>> >>>>>> Sorry for the late answer. >>>>>> >>>>>> From what I can see in your examples, you are running into a >>>>>> limitation of mapserver and it's support for the time extent >>>>>> values. Currently the time extent can only be defined as a >>>>>> range value and only one range value is valid (so something >>>>>> like is the only thing valid 2005-09-11/2005-09-21) >>>>>> >>>>>> You should update your "wms_timeextent" and try it with only >>>>>> one range. I will enter documentation bug so that this >>>>>> limitation is clearly defined. Give it a try and let me know. >>>>>> >>>>>> Later, >>>>>> >>>>>> Jeroen Ticheler wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi, sorry for continuing this story, but I really want to >>>>>>> solve this and hope my additional info helps to sort out >>>>>>> the problems I face. >>>>>>> I am using a shapefile with the imgdate column added to it. I >>>>>>> use exactly the same index to work with a WCS on the same >>>>>>> data, that one works perfectly fine. >>>>>>> I have browsed through the mapServer sourcecode to see if I >>>>>>> could discover something/ understand the problem better. >>>>>>> I'm not familiar with C coding, so forgive my ignorance :-) >>>>>>> What I could understand is that my request fails when the >>>>>>> time string submitted in the request is compared to the >>>>>>> timeextent given in the capabilities document. >>>>>>> The exact section of the code is in between line 545 and >>>>>>> line 569, apparently the msValidateTimeValue() procedure >>>>>>> fails to find the requested date in the extent. I do not >>>>>>> get an error when I change my extent to a range like >>>>>>> "2005-09-11,2005-09-21/2005-09-21" or >>>>>>> "2005-09-11,2005-09-11/2005-09-21", but it will only render >>>>>>> the very last image, even when an earlier one is requested. >>>>>>> So I guess I face a bug!? >>>>>>> Thanks again, >>>>>>> Jeroen >>>>>>> Begin forwarded message: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> From: Jeroen Ticheler >>>>>>>> Date: 12 October 2005 09:54:26 GMT+02:00 >>>>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>>>> Subject: [UMN_MAPSERVER-USERS] time series problem 2 >>>>>>>> Reply-To: Jeroen Ticheler >>>>>>>> >>>>>>>> >>>>>>>> Further to my previous message, the exception I get is the >>>>>>>> following one: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 >>>>>>>> given is invalid or outside the time extent defined >>>>>>>> (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05 >>>>>>>> -01,2 00 >>>>>>>> 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01, >>>>>>>> 2005- 07 >>>>>>>> -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005 >>>>>>>> -09-1 1, 2005-09-21), and default time set is invalid >>>>>>>> (2005-09-21) >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> And the URL's I use are: >>>>>>>> >>>>>>>> For Capabilities: >>>>>>>> >>>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>>> version=1.1.1&service=WMS&request=GetCapabilities >>>>>>>> >>>>>>>> For a working map without specifying the time: >>>>>>>> >>>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>>>>> png&layers=spotndvi&transparent=true&width=400&height=200 >>>>>>>> >>>>>>>> For a request with a time, the exception is returned: >>>>>>>> >>>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>>>>> png&layers=spotndvi&transparent=true&width=400&height=200&time= >>>>>>>> 2005- 09 -21 >>>>>>>> >>>>>>>> These URL's can be reached from outside, so you can try >>>>>>>> this yourself. >>>>>>>> Thanks in advance for any help to a solution, >>>>>>>> Jeroen >>>>>>>> >>>>>>>> On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> I have a problem with time series for WMS. I have used >>>>>>>>> the following WMS attributes in my map file and I get the >>>>>>>>> default image the first WMS map request. The moment I >>>>>>>>> start requesting maps with the time variable set, I get >>>>>>>>> an exception indicating that the time format used is not >>>>>>>>> correct. >>>>>>>>> >>>>>>>>> The data is GeoTIFF >>>>>>>>> I have an index shapefile with an imgdate column containing >>>>>>>>> the dates in the same format >>>>>>>>> >>>>>>>>> Anyone an idea, I can't find an example that has a whole >>>>>>>>> range of images with a specific time set for each image. >>>>>>>>> >>>>>>>>> Map file extract: >>>>>>>>> >>>>>>>>> At the map level (although I don't think this is supported/ >>>>>>>>> needed for GeoTIFF data!?) >>>>>>>>> ____________________________ >>>>>>>>> "wms_timeformat" "YYYY-MM-DD" >>>>>>>>> ____________________________ >>>>>>>>> >>>>>>>>> >>>>>>>>> At the layer level >>>>>>>>> ____________________________ >>>>>>>>> >>>>>>>>> "wms_style_default_title" "default" >>>>>>>>> "wms_format" "image/png" >>>>>>>>> "wms_timedefault" "2005-09-11" >>>>>>>>> "wms_timeextent" >>>>>>>>> "2005-08-21,2005-09-01,2005-09-11" # also tried >>>>>>>>> with spaces after each comma >>>>>>>>> "wms_timeitem" "imgdate" >>>>>>>>> >>>>>>>>> END >>>>>>>>> DUMP TRUE >>>>>>>>> TILEINDEX 'ndvi_idx' >>>>>>>>> TILEITEM "location" >>>>>>>>> EXTENT -180.0 -90.0 180.0 90.0 >>>>>>>>> PROJECTION "init=epsg:4326" END >>>>>>>>> ____________________________ >>>>>>>>> >>>>>>>>> >>>>>>>>> Thanks in advance, >>>>>>>>> Jeroen >>>>>>>>> _______________________ >>>>>>>>> Jeroen Ticheler >>>>>>>>> FAO-UN >>>>>>>>> Tel: +39 06 57056041 >>>>>>>>> http://www.fao.org/geonetwork >>>>>>>>> 12.34327?N 12.34327?E >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> ---------------------------------------------------------------- >>>>>> Assefa Yewondwossen >>>>>> Software Analyst >>>>>> >>>>>> Email: assefa at dmsolutions.ca >>>>>> http://www.dmsolutions.ca/ >>>>>> >>>>>> Phone: (613) 565-5056 (ext 14) >>>>>> Fax: (613) 565-0925 >>>>>> ---------------------------------------------------------------- >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>> gvSIG development Team >>> www.gvsig.gva.es >>> >>> >>> >> >> -- >> ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email: assefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 (ext 14) >> Fax: (613) 565-0925 >> ---------------------------------------------------------------- >> >> >> > From dmorissette at DMSOLUTIONS.CA Mon Oct 24 15:27:37 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 24 Oct 2005 18:27:37 -0400 Subject: libcurl security vulnerability In-Reply-To: <435A8F29.1000102@dmsolutions.ca> Message-ID: After sending the message below, Tom has reported that MapServer did not build with libcurl 7.15.0. It turns out that there is a bug in the curl-config script that will be fixed in the next release of curl. Anyone interested in using libcurl 7.15.0 with MapServer should patch their copy of curl, for all the details see: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1504#c4 Daniel Daniel Morissette wrote: > FYI, a security vulnerability in libcurl has recently been reported and > is fixed in libcurl 7.15.0 and later: > http://curl.haxx.se/docs/security.html > > I don't think MapServer users are at high risk since libcurl is only > used to connect to remote WMS and WFS servers which are in general > friendly or well-known hosts, and there is no known curl exploit at this > time. However a risk could still exists for those using untrusted WMS > servers in their apps, or allowing loading of arbitrary Web Map Contexts > in their apps. > > If you consider yourself at risk then you might want to upgrade to > libcurl 7.15.0 or to a patched libcurl version that may be available for > your OS. > > Future maptools.org builds (FGS and MS4W) will be based on the latest > version of Curl. > > Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Ivan.Price at NT.GOV.AU Mon Oct 24 17:42:49 2005 From: Ivan.Price at NT.GOV.AU (Ivan Price) Date: Tue, 25 Oct 2005 10:12:49 +0930 Subject: antialiasing line features.. Message-ID: Steve, using shp2img it works !.. although -all_debug 10 doesn't seem to have any effect.. so if it works in shp2img but not in mapserv.exe then whats the story ? I can also confirm that imagetype PNG24 works and PNG doesn't. and is shp2img supposed to be able to take a layer list ? it seems to only be capable of rendering one layer at a time.. -ivan > _____________________________________________ > From: "Steve Lime" @NTGEMAG > Sent: Tuesday, 25 October 2005 9:19 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU; Ivan Price > Subject: RE: [UMN_MAPSERVER-USERS] antialiasing line features.. > > What happens if you run things outside of the web using shp2img? Also, > you > shouldn't need the output format definition, although it sounds as if > you'd > tried that. > > Steve > > >>> "Ivan Price" 10/24/05 6:14 PM >>> > > ok now we're getting somewhere.. > > if I include: the 24 bit (with/without alpha) image type and > antialiasing I get a server 500 error.. comment out the antialias > entry > in the STYLE section and it executes fine, but with no anti-aliasing. > > C:\mapserver>mapserv -v > MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=POSTGIS > INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > got the win32 binary from Hobus kitchen sink binaries > http://hobu.stat.iastate.edu/mapserver/ > (Oracle Build 9.2) > > exact same behaviour on a linux custom compile: > [ivan at linux mapserver]$ ./mapserv.cgi -v > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > [ivan at linux mapserver]$ > > any ideas ? > > -ivan > > > IMAGETYPE PNG24 > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > .... > > SYMBOL > NAME 'road' > ANTIALIAS TRUE > TYPE CARTOLINE > LINECAP butt > LINEJOIN miter > LINEJOINMAXSIZE 1 > END > > .... > CLASS > EXPRESSION ('[CATEGORY]' == 'SECONDARY' OR '[CATEGORY]' == > 'COLLECTOR' OR '[CATEGORY]' == 'LOCAL' OR '[CATEGORY]' == 'TRACK') > TEXT ([ROAD_NAME] [ROAD_TYPE]) > LABEL > FONT arial > TYPE truetype > ANTIALIAS on > COLOR 0 0 0 > ANGLE auto > SIZE 8 > POSITION auto > PARTIALS false > BUFFER 5 > mindistance 1000 > minsize 10 > END > STYLE > # ANTIALIAS TRUE > SYMBOL "line" > SIZE 1 > COLOR 204 0 51 > END > END > .... > > > > Ivan Price > Spatial Systems Manager > Northern Territory Land Information System > Department of Planning and Infrastructure > Northern Territory Government > Tel: (08) 8924 4024 > Fax: (08) 8924 4045 > Email: ivan.price at nt.gov.au > > > _____________________________________________ > From: UMN MapServer Users List > @NTGEMAG > On Behalf Of Steve Lime > Sent: Tuesday, 25 October 2005 3:35 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] antialiasing line features.. > > Just to wrap things up. Antialising has not been removed. In testing > independent of MapServer > I have been unable to get GD to produce antialised lines with 8-bit > output formats. You might > try setting IMAGETYPE PNG24 and see if that helps. > > Steve > > >>> Jeff de La Beaujardiere 10/21/05 9:08 > AM >>> > Ivan Price wrote: > > you are having more luck than me.. I am using the following and > getting > > a non-antialiased line still. Perhaps antialiasing has been removed > from > > the cartoline's capabilities in later versions ? > > This is what works for me: > > SYMBOL > NAME "cartoline" > TYPE cartoline > LINECAP butt > LINEJOIN miter > LINEJOINMAXSIZE 1 > END > LAYER > NAME "countries" > TYPE LINE > STATUS on > PROJECTION > "init=epsg:4326" > END > DATA "........../wms/data/borders/cntry02.shp" > METADATA > "wms_title" "National Boundaries" > "wms_layer_group" "/Reference" > END > CLASS > NAME "BORDERS" > STYLE > COLOR 200 200 200 > SYMBOL "cartoline" > ANTIALIAS TRUE > SIZE 1 > END > END > END > > Try comparing speeds with TRUE and FALSE in the above > with a dataset that has many line segments. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From phj at COWI.NO Tue Oct 25 00:31:27 2005 From: phj at COWI.NO (Johansen Per Henrik) Date: Tue, 25 Oct 2005 09:31:27 +0200 Subject: Invalid extent Message-ID: Hi, found out what was wrong, the error message said it all: --> loadMapInternal(): General error message. Given map extent is invalid. It was an invalid extent in the mapfile. Fixed it and everything seem fine. Per Henrik -----Original Message----- From: UMN MapServer Users List on behalf of Johansen Per Henrik Sent: Mon 10/24/2005 7:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Invalid extent Hi, I am upgrading mapserver from 4.0.1 to 4.6.1. Compilation goes without any problems, but when I access the map application using the new MapServer I get the following error: loadMapInternal(): General error message. Given map extent is invalid. It seems that the new version is stricter, but I am not able to put my hands on the problem and how to fix it, and am hoping for some advice. The url sent to the server is as follows: http://gpi-test.nijos.no/cgi-bin/mapserv.ny?map=/var/www/html/nijos/nijos32.map&zoomsize=2&program=/cgi-bin/mapserv.ny&map_web_imagepath=/var/www/html/tmp/&map_web_imageurl=/tmp/&zoomdir=0&layers=DEK&map_SHAPEPATH=/var/www/html/tmp/&shapeDEK=/var/www/html/tmp/dek48760.shp&mapext=268824.846055588+6575985.30473746+269770.43459368+6577382.87979713 As you can see the extent is 268824.846055588 6575985.30473746 269770.43459368 6577382.87979713 The layer is defined as follows: LAYER NAME "DEK" TYPE Polygon STATUS off DATA "%shapeDEK%" DEBUG ON LABELITEM "id" LABELCACHE on PROJECTION ellps=GRS80 proj=utm zone=33 ellps=WGS84 datum=WGS84 units=m no_defs END CLASS Name dek DEBUG ON OUTLINECOLOR 255 153 153 SYMBOL 'circle' size 3 LABEL COLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 18 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 500 BUFFER 4 FORCE TRUE END # end of label END # CLASS END And the ogrinfo is as follows: INFO: Open of `C:\Documents and Settings\dfkons\Mine Dokumenter\dek48760.shp' using driver `ESRI Shapefile' successful. Layer name: dek48760 Geometry: Polygon Feature Count: 2 Extent: (268854.846056, 6576015.304737) - (269740.434594, 6577352.879797) Layer SRS WKT: (unknown) id: String (5.0) type: String (4.0) area: String (5.0) areafakt: String (5.0) Regards, Per Henrik From giorgio.plazzotta at SARASRICERCHE.IT Tue Oct 25 01:14:09 2005 From: giorgio.plazzotta at SARASRICERCHE.IT (Giorgio Plazzotta) Date: Tue, 25 Oct 2005 10:14:09 +0200 Subject: antialiasing line features.. Message-ID: MAPSERVER-USERS Digest - 23 Oct 2005 to 24 Oct 2005 (#2005-308)I use PNG24 and it works. Anyway I have to say that the speed is hardly influenced by the activation of the line antialiasing, thereofre I decided not to use it in the web applications. Maybe better in the Interanet systems. Giorgio -------------- next part -------------- An HTML attachment was scrubbed... URL: From elabuschagne at GMAIL.COM Tue Oct 25 01:13:17 2005 From: elabuschagne at GMAIL.COM (Etienne Labuschagne) Date: Tue, 25 Oct 2005 03:13:17 -0500 Subject: Discovering layer type Message-ID: Hi all, I'm a newbie to MapServer and OGC in general. I can discover the layer names with a WMS getCapabilities call. The other thing I need to discover is what type each layer is (Point, line, polygon) and also what attribute fields there are available on each layer. Is there an OGC way to get this information from any OGC compliant map server? The reason I say "OGC" is that my client program that I am writing need to adhere to that standard and not nescessarily only MapServer. Although I use MapServer predominantly, I may have to use other map servers later and do not want to be bound by MapServer proprietary code. Thanks Etienne From BEN at SYNCERA-ITSOLUTIONS.NL Tue Oct 25 02:22:22 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 25 Oct 2005 11:22:22 +0200 Subject: Discovering layer type Message-ID: Hi, it depends with the implementation, but it is a difficult theory anyway already :-) WMS can be coupled to a WFS (on the same data) using a DescribeLayer WMS request. This is part of the SLD WMS spec. The response of a WMS DescribeLayer is: a) the onlineresource of a WFS (or WCS for raster layers) b) the name of the typename With this info, you could request more info from the associated WFS, mostly WFS DescribeFeatureType will be useful for that. It will give you all the attributes and most likely (depending on the implementation) also an idea of the geometry type. Note that something was changed in Mapserver 4.6 which makes it ouput a gml abstract featuretype by default, which won't give you an idea of the geometry type. Note also that WMS GetFeatureInfo could give you a rough guess of the geometry type, and the list of attributes in the GML returned. But it is specific to a point clicked in the map. Mapserver also gives back a geometry on the WMS GetFeatureInfo (which you could check for point, polygon or line in the string), but most WMS's don't give back the geometry on WMS GetFeatureInfo. Anyway, you can see it's not straightforward. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Etienne Labuschagne 25-10-2005 10:13 >>> Hi all, I'm a newbie to MapServer and OGC in general. I can discover the layer names with a WMS getCapabilities call. The other thing I need to discover is what type each layer is (Point, line, polygon) and also what attribute fields there are available on each layer. Is there an OGC way to get this information from any OGC compliant map server? The reason I say "OGC" is that my client program that I am writing need to adhere to that standard and not nescessarily only MapServer. Although I use MapServer predominantly, I may have to use other map servers later and do not want to be bound by MapServer proprietary code. Thanks Etienne From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Oct 25 02:23:35 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 25 Oct 2005 11:23:35 +0200 Subject: google earth as WMS? In-Reply-To: Message-ID: hi list, I imagine that I have seen google earth as background in some WMS Clients. Does anybody know the request to link google earth in my client (as wms)? best regards, Leopold From flavio at TYDAC.CH Tue Oct 25 02:54:45 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 25 Oct 2005 11:54:45 +0200 Subject: antialiasing line features.. In-Reply-To: <009d01c5d93c$1ea25f30$5443a8c0@GIS05> Message-ID: Ciao Giorgio It might not be the antialiasing but the png24. png24 files tend to get very large, i.e. 400k compared to 70k as a JPEG (check your output directory). Maybe you try JPEG. However, I had quite problems with the antialiasing, working on some layer and on some the system hung (no error messages, just hanging when zooming). Removing the antialiasing from the layer worked. Strange behaviour, anybody having this problem? Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio 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 ---------------------------------------------------------------- From elabuschagne at GMAIL.COM Tue Oct 25 03:10:50 2005 From: elabuschagne at GMAIL.COM (Etienne Labuschagne) Date: Tue, 25 Oct 2005 12:10:50 +0200 Subject: Discovering layer type In-Reply-To: Message-ID: Bart, Thanks for the prompt reply, even though this is exactly what I didn't want to hear ;) Am I missing something or is this just plain silly? I come from an ESRI ArcIMS environment and I expected that getting the layer's geometry type should be one of the basic easy things to do. I understand that some implementations does give this info, but surely this should be part of the basic OGC standard? Maybe there is a good reason that this is not included and would love to hear it! Anyway, thanks for the trouble. Etienne On Tue, 2005-10-25 at 11:22 +0200, Bart van den Eijnden wrote: > Hi, > > it depends with the implementation, but it is a difficult theory anyway already :-) > > WMS can be coupled to a WFS (on the same data) using a DescribeLayer WMS request. This is part of the SLD WMS spec. > The response of a WMS DescribeLayer is: > > a) the onlineresource of a WFS (or WCS for raster layers) > b) the name of the typename > > With this info, you could request more info from the associated WFS, mostly WFS DescribeFeatureType will be useful for that. It will give you all the attributes and most likely (depending on the implementation) also an idea of the geometry type. Note that something was changed in Mapserver 4.6 which makes it ouput a gml abstract featuretype by default, which won't give you an idea of the geometry type. > > Note also that WMS GetFeatureInfo could give you a rough guess of the geometry type, and the list of attributes in the GML returned. But it is specific to a point clicked in the map. Mapserver also gives back a geometry on the WMS GetFeatureInfo (which you could check for point, polygon or line in the string), but most WMS's don't give back the geometry on WMS GetFeatureInfo. > > Anyway, you can see it's not straightforward. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Etienne Labuschagne 25-10-2005 10:13 >>> > Hi all, > > I'm a newbie to MapServer and OGC in general. > > I can discover the layer names with a WMS getCapabilities call. The other > thing I need to discover is what type each layer is (Point, line, polygon) > and also what attribute fields there are available on each layer. > > Is there an OGC way to get this information from any OGC compliant map > server? The reason I say "OGC" is that my client program that I am writing > need to adhere to that standard and not nescessarily only MapServer. > > Although I use MapServer predominantly, I may have to use other map servers > later and do not want to be bound by MapServer proprietary code. > > Thanks > Etienne > From Frank.Broniewski at MNHA.ETAT.LU Tue Oct 25 03:15:40 2005 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Tue, 25 Oct 2005 12:15:40 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Error drawing tiff image In-Reply-To: <931f8ea90510241107s5d479c57k83c043565631d023@mail.gmail.com> Message-ID: Hello Frank, Updating to version 4.6 solved indeed my problem. But thanks alot for your answer. Greetings Frank Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange -----Urspr?ngliche Nachricht----- Von: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] Im Auftrag von Frank Warmerdam Gesendet: Montag, 24. Oktober 2005 19:07 An: Frank Broniewski Cc: MAPSERVER-USERS at lists.umn.edu Betreff: Re: [UMN_MAPSERVER-USERS] Error drawing tiff image On 10/24/05, Frank Broniewski wrote: > Hello List > > I have a problem with drawing a tif image. First the error message: > > Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, > but this is only supported after a raster query. > Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, > but this is only supported after a raster query. ... > phpinfo() gives the following information about mapserver > MapServer Version: > MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > DEBUG=MSDEBUG > PHP MapScript Version: > ($Revision: 1.224 $ $Date: 2005/01/28 15:28:26 $) > > So what is going wrong there? Frank, A few folks have run into this in the past, but I don't recall the details. I think it was fixed for the 4.6 release. I see that you are running MapServer 4.5 which was the "development" version of mapserver between 4.4 and 4.6. I think if you upgrade to 4.6 (or better yet our current development 4.7!) the problem should go away. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From BEN at SYNCERA-ITSOLUTIONS.NL Tue Oct 25 03:16:08 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 25 Oct 2005 12:16:08 +0200 Subject: Discovering layer type Message-ID: Hi Etienne, there is no specific reason I guess, but WMS is intended for visualisation, so it mostly ends there. That's why they invented a DescribeLayer request in the SLD WMS spec to get more detailed info of the data underneath the WMS (linkage to another OGC interface). Your basic route should be: -WMS DescribeLayer -WFS DescribeFeatureType But this means the data should be available on both a WMS and a WFS. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Etienne Labuschagne 25-10-2005 12:10 >>> Bart, Thanks for the prompt reply, even though this is exactly what I didn't want to hear ;) Am I missing something or is this just plain silly? I come from an ESRI ArcIMS environment and I expected that getting the layer's geometry type should be one of the basic easy things to do. I understand that some implementations does give this info, but surely this should be part of the basic OGC standard? Maybe there is a good reason that this is not included and would love to hear it! Anyway, thanks for the trouble. Etienne On Tue, 2005-10-25 at 11:22 +0200, Bart van den Eijnden wrote: > Hi, > > it depends with the implementation, but it is a difficult theory anyway already :-) > > WMS can be coupled to a WFS (on the same data) using a DescribeLayer WMS request. This is part of the SLD WMS spec. > The response of a WMS DescribeLayer is: > > a) the onlineresource of a WFS (or WCS for raster layers) > b) the name of the typename > > With this info, you could request more info from the associated WFS, mostly WFS DescribeFeatureType will be useful for that. It will give you all the attributes and most likely (depending on the implementation) also an idea of the geometry type. Note that something was changed in Mapserver 4.6 which makes it ouput a gml abstract featuretype by default, which won't give you an idea of the geometry type. > > Note also that WMS GetFeatureInfo could give you a rough guess of the geometry type, and the list of attributes in the GML returned. But it is specific to a point clicked in the map. Mapserver also gives back a geometry on the WMS GetFeatureInfo (which you could check for point, polygon or line in the string), but most WMS's don't give back the geometry on WMS GetFeatureInfo. > > Anyway, you can see it's not straightforward. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Etienne Labuschagne 25-10-2005 10:13 >>> > Hi all, > > I'm a newbie to MapServer and OGC in general. > > I can discover the layer names with a WMS getCapabilities call. The other > thing I need to discover is what type each layer is (Point, line, polygon) > and also what attribute fields there are available on each layer. > > Is there an OGC way to get this information from any OGC compliant map > server? The reason I say "OGC" is that my client program that I am writing > need to adhere to that standard and not nescessarily only MapServer. > > Although I use MapServer predominantly, I may have to use other map servers > later and do not want to be bound by MapServer proprietary code. > > Thanks > Etienne > From as.khadkikar at NCL.RES.IN Tue Oct 25 03:46:31 2005 From: as.khadkikar at NCL.RES.IN (Aniruddha S. Khadkikar) Date: Tue, 25 Oct 2005 16:16:31 +0530 Subject: Scale Bar Object and True type fonts Message-ID: Is it possible to use truetype fonts for labels in the scale bar object. Bitmap parameters are being rendered successfully, but scalebar fails to draw when I define MS_TRUETYPE and try to use arial font. There are no problems with the fontset definitions as location labels are being rendered successfully. Or is this issue still not addressed? Thanks in advance, Aniruddha -- ANIRUDDHA S. KHADKIKAR Ph.D. ..................................................... Digital Information Resource Centre National Chemical Laboratory Dr. Homi Bhabha Road Pune 411008, INDIA ..................................................... Phone : 91 020 25893457 (Off) Fax : 91 020 25893973 Email : as.khadkikar at ncl.res.in Web : http://www.ncbi.org.in ..................................................... ***************************************************************** This email is virus free by TrendMicro Inter Scan Security Suite. ***************************************************************** From margottid at COMUNE.LUGO.RA.IT Tue Oct 25 06:37:05 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 25 Oct 2005 15:37:05 +0200 Subject: Static compilation of Mapserver? Message-ID: Hi list, I want to use Mapserver on a remote Linux webserver, where I can upoload CGIs. Unfortunately, I have no shell access to this webserver, so I cannot compile Mapserver directly on the machine. But I have a Linux PC where I can compile/install all needed libraries (Zlib, GD, Gdal, Libtiff, Proj, and so on) and, after that, compile CGI Mapserver and PHP Mapscript. Can I compile it including in the executable all those libraries? Would then the Mapserver executable (or the Mapscript module) run even if different libraries are installed on the webserver? How can I do? (i.e.: which parameters should I add to "./configure" or "make", or in the "Makefile"?) Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Oct 25 06:41:01 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 25 Oct 2005 09:41:01 -0400 Subject: Static compilation of Mapserver? In-Reply-To: <000b01c5d969$30884e80$041410ac@comune.lugo.ra.it> Message-ID: On 10/25/05, Daniele Margotti wrote: > > Hi list, > > I want to use Mapserver on a remote Linux webserver, where I can upoload > CGIs. > Unfortunately, I have no shell access to this webserver, so I cannot compile > Mapserver directly on the machine. > But I have a Linux PC where I can compile/install all needed libraries > (Zlib, GD, Gdal, Libtiff, Proj, and so on) and, after that, compile CGI > Mapserver and PHP Mapscript. > > Can I compile it including in the executable all those libraries? Would then > the Mapserver executable (or the Mapscript module) run even if different > libraries are installed on the webserver? > How can I do? (i.e.: which parameters should I add to "./configure" or > "make", or in the "Makefile"?) Daniele, This is theoretically possible, but I think will prove somewhat challenging. In particular, I think you will find you have to do some hand editing of the makefile to force use of static versions of libraries. You will also likely have to recompile some of the dependent libraries yourself to get static versions. For libraries like libpng and libz that almost certain to already be on the server, you could likely leave it as a dependency on the external shared library. Everything else should be static. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From elabuschagne at GMAIL.COM Tue Oct 25 06:51:55 2005 From: elabuschagne at GMAIL.COM (Etienne Labuschagne) Date: Tue, 25 Oct 2005 15:51:55 +0200 Subject: Discovering layer type In-Reply-To: Message-ID: Hi Bart, Ok, so there is a light at the end of the tunnel :) Luckily, the client I am designing will need WFS anyway, so I will have access to a WFS server. Does WFS DescribeFeatureType "guarantee" that the geometry type will be returned, or is that once again optional and dependant on the WFS server implementation? Groetnis Etienne On Tue, 2005-10-25 at 12:16 +0200, Bart van den Eijnden wrote: > Hi Etienne, > > there is no specific reason I guess, but WMS is intended for visualisation, so it mostly ends there. That's why they invented a DescribeLayer request in the SLD WMS spec to get more detailed info of the data underneath the WMS (linkage to another OGC interface). > > Your basic route should be: > > -WMS DescribeLayer > -WFS DescribeFeatureType > > But this means the data should be available on both a WMS and a WFS. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Etienne Labuschagne 25-10-2005 12:10 >>> > Bart, > > Thanks for the prompt reply, even though this is exactly what I didn't > want to hear ;) > > Am I missing something or is this just plain silly? I come from an ESRI > ArcIMS environment and I expected that getting the layer's geometry type > should be one of the basic easy things to do. > > I understand that some implementations does give this info, but surely > this should be part of the basic OGC standard? Maybe there is a good > reason that this is not included and would love to hear it! > > Anyway, thanks for the trouble. > Etienne > > On Tue, 2005-10-25 at 11:22 +0200, Bart van den Eijnden wrote: > > Hi, > > > > it depends with the implementation, but it is a difficult theory anyway already :-) > > > > WMS can be coupled to a WFS (on the same data) using a DescribeLayer WMS request. This is part of the SLD WMS spec. > > The response of a WMS DescribeLayer is: > > > > a) the onlineresource of a WFS (or WCS for raster layers) > > b) the name of the typename > > > > With this info, you could request more info from the associated WFS, mostly WFS DescribeFeatureType will be useful for that. It will give you all the attributes and most likely (depending on the implementation) also an idea of the geometry type. Note that something was changed in Mapserver 4.6 which makes it ouput a gml abstract featuretype by default, which won't give you an idea of the geometry type. > > > > Note also that WMS GetFeatureInfo could give you a rough guess of the geometry type, and the list of attributes in the GML returned. But it is specific to a point clicked in the map. Mapserver also gives back a geometry on the WMS GetFeatureInfo (which you could check for point, polygon or line in the string), but most WMS's don't give back the geometry on WMS GetFeatureInfo. > > > > Anyway, you can see it's not straightforward. > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr.: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> Etienne Labuschagne 25-10-2005 10:13 >>> > > Hi all, > > > > I'm a newbie to MapServer and OGC in general. > > > > I can discover the layer names with a WMS getCapabilities call. The other > > thing I need to discover is what type each layer is (Point, line, polygon) > > and also what attribute fields there are available on each layer. > > > > Is there an OGC way to get this information from any OGC compliant map > > server? The reason I say "OGC" is that my client program that I am writing > > need to adhere to that standard and not nescessarily only MapServer. > > > > Although I use MapServer predominantly, I may have to use other map servers > > later and do not want to be bound by MapServer proprietary code. > > > > Thanks > > Etienne > > > From BEN at SYNCERA-ITSOLUTIONS.NL Tue Oct 25 06:56:01 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 25 Oct 2005 15:56:01 +0200 Subject: Discovering layer type Message-ID: Hi Etienne, I only know the Mapserver situation from experience, for Mapserver 4.6 and above it depends on how things are configured in the MAP file. See the following bug report for more info: http://bugzilla.maptools.org/show_bug.cgi?id=1152 If you look at e.g. Geoserver, they do report the geometry type: http://udig.refractions.net/confluence/pages/viewpage.action?pageId=5192 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Etienne Labuschagne 25-10-2005 15:51 >>> Hi Bart, Ok, so there is a light at the end of the tunnel :) Luckily, the client I am designing will need WFS anyway, so I will have access to a WFS server. Does WFS DescribeFeatureType "guarantee" that the geometry type will be returned, or is that once again optional and dependant on the WFS server implementation? Groetnis Etienne On Tue, 2005-10-25 at 12:16 +0200, Bart van den Eijnden wrote: > Hi Etienne, > > there is no specific reason I guess, but WMS is intended for visualisation, so it mostly ends there. That's why they invented a DescribeLayer request in the SLD WMS spec to get more detailed info of the data underneath the WMS (linkage to another OGC interface). > > Your basic route should be: > > -WMS DescribeLayer > -WFS DescribeFeatureType > > But this means the data should be available on both a WMS and a WFS. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Etienne Labuschagne 25-10-2005 12:10 >>> > Bart, > > Thanks for the prompt reply, even though this is exactly what I didn't > want to hear ;) > > Am I missing something or is this just plain silly? I come from an ESRI > ArcIMS environment and I expected that getting the layer's geometry type > should be one of the basic easy things to do. > > I understand that some implementations does give this info, but surely > this should be part of the basic OGC standard? Maybe there is a good > reason that this is not included and would love to hear it! > > Anyway, thanks for the trouble. > Etienne > > On Tue, 2005-10-25 at 11:22 +0200, Bart van den Eijnden wrote: > > Hi, > > > > it depends with the implementation, but it is a difficult theory anyway already :-) > > > > WMS can be coupled to a WFS (on the same data) using a DescribeLayer WMS request. This is part of the SLD WMS spec. > > The response of a WMS DescribeLayer is: > > > > a) the onlineresource of a WFS (or WCS for raster layers) > > b) the name of the typename > > > > With this info, you could request more info from the associated WFS, mostly WFS DescribeFeatureType will be useful for that. It will give you all the attributes and most likely (depending on the implementation) also an idea of the geometry type. Note that something was changed in Mapserver 4.6 which makes it ouput a gml abstract featuretype by default, which won't give you an idea of the geometry type. > > > > Note also that WMS GetFeatureInfo could give you a rough guess of the geometry type, and the list of attributes in the GML returned. But it is specific to a point clicked in the map. Mapserver also gives back a geometry on the WMS GetFeatureInfo (which you could check for point, polygon or line in the string), but most WMS's don't give back the geometry on WMS GetFeatureInfo. > > > > Anyway, you can see it's not straightforward. > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr.: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> Etienne Labuschagne 25-10-2005 10:13 >>> > > Hi all, > > > > I'm a newbie to MapServer and OGC in general. > > > > I can discover the layer names with a WMS getCapabilities call. The other > > thing I need to discover is what type each layer is (Point, line, polygon) > > and also what attribute fields there are available on each layer. > > > > Is there an OGC way to get this information from any OGC compliant map > > server? The reason I say "OGC" is that my client program that I am writing > > need to adhere to that standard and not nescessarily only MapServer. > > > > Although I use MapServer predominantly, I may have to use other map servers > > later and do not want to be bound by MapServer proprietary code. > > > > Thanks > > Etienne > > > From ewnuttall at QINETIQ.COM Tue Oct 25 08:11:55 2005 From: ewnuttall at QINETIQ.COM (Edward Nuttall) Date: Tue, 25 Oct 2005 10:11:55 -0500 Subject: PostGIS multiple table query Message-ID: Dear all, I am trying to get a PostGIS Layer working, the following layer works fine: LAYER NAME "my_layer" TYPE POINT STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "dbname=my_db user=me host=localhost port=5432" DATA "location from (select cars.location, cars.date from cars) as myquery using unique location using srid = -1" TEMPLATE "/home/qgis/mariss/image_info.html" CLASS NAME "My Layer" OUTLINECOLOR 0 0 0 COLOR 220 220 0 SIZE 7 SYMBOL "circle" END PROJECTION "+proj=latlong" END METADATA WMS_TIMEEXTENT "2005-02-05/2009-10-01" WMS_TIMEITEM "date" END END However, when I extend the Query to included another table, as shown below: LAYER NAME "my_layer" TYPE POINT STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "dbname=my_db user=me host=localhost port=5432" DATA "location from (select cars.location, cars.date from cars, users where cars.id = users.id) as myquery using unique location using srid = -1" TEMPLATE "/home/qgis/mariss/image_info.html" CLASS NAME "My Layer" OUTLINECOLOR 0 0 0 COLOR 220 220 0 SIZE 7 SYMBOL "circle" END PROJECTION "+proj=latlong" END METADATA WMS_TIMEEXTENT "2005-02-05/2009-10-01" WMS_TIMEITEM "date" END END I get the following error: "Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table?" All geometry columns in all the tables are 'working' as layers in the mapfile and have been registered in the GEOMETRY_COLUMNS table, also the select query does return a result set. I can see there is some SRID error, and this is where I get confused, when I've added my geometry columns I have always used -1, indeed anywhere SRID pops up I have just used -1. Any help would be much appreciated, Thanks Ed From davidtecher at YAHOO.FR Tue Oct 25 08:21:21 2005 From: davidtecher at YAHOO.FR (david techer) Date: Tue, 25 Oct 2005 17:21:21 +0200 Subject: PostGIS multiple table query In-Reply-To: Message-ID: If U try without giving 'users': DATA "location from (select cars.location, cars.date from cars where cars.id = users.id) as myquery using unique location using srid = -1" Can U tell us what mapserver told u as message in "declare asbinay(....)" before error's message? --david; ------------------------------------------------- Jean David TECHER e-mail: davidtecher(at)yahoo(dot)fr site: http://techer.pascal.free.fr/postgis/ ------------------------------------------------- Edward Nuttall a ?crit : >Dear all, > >I am trying to get a PostGIS Layer working, the following layer works fine: > > > LAYER > NAME "my_layer" > TYPE POINT > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=my_db user=me host=localhost port=5432" > > DATA "location from (select cars.location, cars.date from >cars) as myquery using unique location using srid = -1" > > TEMPLATE "/home/qgis/mariss/image_info.html" > > CLASS > NAME "My Layer" > OUTLINECOLOR 0 0 0 > COLOR 220 220 0 > SIZE 7 > SYMBOL "circle" > END > PROJECTION > "+proj=latlong" > END > > METADATA > WMS_TIMEEXTENT "2005-02-05/2009-10-01" > WMS_TIMEITEM "date" > END > > END > > >However, when I extend the Query to included another table, as shown below: > > > LAYER > NAME "my_layer" > TYPE POINT > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=my_db user=me host=localhost port=5432" > > DATA "location from (select cars.location, cars.date from >cars, users where cars.id = users.id) as myquery using unique location >using srid = -1" > > TEMPLATE "/home/qgis/mariss/image_info.html" > > CLASS > NAME "My Layer" > OUTLINECOLOR 0 0 0 > COLOR 220 220 0 > SIZE 7 > SYMBOL "circle" > END > > PROJECTION > "+proj=latlong" > END > > METADATA > WMS_TIMEEXTENT "2005-02-05/2009-10-01" > WMS_TIMEITEM "date" > END > > END > > > >I get the following error: > >"Postgresql reports the error as 'ERROR: find_srid() - couldnt find the >corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS >table?" > >All geometry columns in all the tables are 'working' as layers in the >mapfile and have been registered in the GEOMETRY_COLUMNS table, also the >select query does return a result set. I can see there is some SRID error, >and this is where I get confused, when I've added my geometry columns I >have always used -1, indeed anywhere SRID pops up I have just used -1. > >Any help would be much appreciated, > >Thanks >Ed > > > ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com From pramsey at REFRACTIONS.NET Tue Oct 25 08:35:36 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 25 Oct 2005 08:35:36 -0700 Subject: Static compilation of Mapserver? In-Reply-To: <000b01c5d969$30884e80$041410ac@comune.lugo.ra.it> Message-ID: I have done this, making a large number of the dependencies static (freetype, gd, proj, gdal) but it was not fun and it took a lot of work editing makefiles. There is no easy way to do it, and you have to make sure that every library you do not expect to find on the target system is included. This can be extra fun with things like freetype, that are not a direct mapserver dependency, but rather a dependency of a dependency. Some things (like zlib) are sufficiently standard that you can often assume they will be available dynamically. On Oct 25, 2005, at 6:37 AM, Daniele Margotti wrote: > Hi list, > > I want to use Mapserver on a remote Linux webserver, where I can > upoload CGIs. > Unfortunately, I have no shell access to this webserver, so I > cannot compile Mapserver directly on the machine. > But I have a Linux PC where I can compile/install all needed > libraries (Zlib, GD, Gdal, Libtiff, Proj, and so on) and, after > that, compile CGI Mapserver and PHP Mapscript. > > Can I compile it including in the executable all those libraries? > Would then the Mapserver executable (or the Mapscript module) run > even if different libraries are installed on the webserver? > How can I do? (i.e.: which parameters should I add to "./configure" > or "make", or in the "Makefile"?) > > Thank you, > Daniele > From dylan at IICI.NO-IP.ORG Tue Oct 25 09:06:24 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Tue, 25 Oct 2005 09:06:24 -0700 Subject: antialiasing line features.. In-Reply-To: Message-ID: On Oct 25, 2005, at 2:54 AM, Flavio Hendry wrote: > Ciao Giorgio > > It might not be the antialiasing but the png24. png24 files tend to get > very large, i.e. 400k compared to 70k as a JPEG (check your output > directory). Maybe you try JPEG. > > However, I had quite problems with the antialiasing, working on some > layer and on some the system hung (no error messages, just hanging when > zooming). Removing the antialiasing from the layer worked. Strange > behaviour, anybody having this problem? > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ ? ? ?Mit freundlichen Gruessen / Kind Regards > ############? ? ? ? ? ? ?mailto:flavio 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 > ---------------------------------------------------------------- > > Yes. I am noticing a seemingly erratic behavior: If I enable antialiasing with JPEG output format, it does not work. If I enable antialiasing in a tiled line layer it does not work... Are there some good ground rules for antialiasing? i.e. ONLY PNG24, etc. ? Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From assefa at DMSOLUTIONS.CA Tue Oct 25 09:09:24 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 25 Oct 2005 12:09:24 -0400 Subject: time series problem 3 (Bug!?) In-Reply-To: <581EF454-0A82-451A-9CD9-A80FD1A097DF@fao.org> Message-ID: Jeroen Ticheler wrote: > Hi! > I was wondering if anything was decided on the WMS/WCS time series > support options? > Thanks in advance, > Jeroen > > On 15 Oct 2005, at 21:53, Jeroen Ticheler wrote: > >> Thanks! At least I now know I didn't just do things wrong and >> understand why some things worked and others not. From the website >> this is not at all clear as it gives the impression time series as in >> point 2 can be served... >> >> It would be really great if option 2 is supported. Very much in line >> with what Jeff wrote, I foresee problems with our map client as well >> as with others when I start specifying the time series following >> option 4, although it would be an elegant way of describing the time >> series :-) Option 2 will be excellent for many of our temporal data >> series. >> >> I'll be happy to test, but have to add that I'm traveling in the >> coming two weeks, so its hard to reply directly. >> Looking forward to a solution! >> I have added the support for diffrent types of time extents (Option 2 and 4). It is described in bug 1498 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1498). I have done initila testst and will still continue to do a bit of testsing. I would appreciate if you update the bug after you tested it with your own data. >> On one more note: I noted the way time series in WMS and WCS are >> defined is different (according to the samples I used). WCS uses an >> index file that is added as a separate LAYER, while WMS can directly >> use the index shape file. I'm not sure (yet) a WCS time series can be >> defined in the same way a WMS can be, but it might be once solution 2 >> works for WMS!? Otherwise, would there be a way to hide a LAYER >> completely from a WMS so one map file can be used for both WCS and WMS? >> If my description is not clear, I can post a more detailed >> explanation later when back in the office. >> I guess a new thread and more details would be welcome. >> Thanks very much in advance! >> Jeroen >> >> On 14 Oct 2005, at 04:43, Yewondwossen Assefa wrote: >> >> >> >>> >>> >>> Luis W. Sevilla wrote: >>> >>> >>> >>>> Hi, >>>> Yewondwossen Assefa wrote: >>>> >>>> >>>> >>>>> From the specs (wms 1.1 annex c c.3), the extent could be defined >>>>> in 4 ways : >>>>> 1) value : A single value. This is not directly supported in >>>>> Mapserver but there is an easy workwound by specifying the same >>>>> value as min and max >>>>> >>>>> 2) value1,value2,value3,... a A list of multiple values. This >>>>> is not supported in Mapserver. >>>>> >>>>> 3) min/max/resolution An interval defined by its lower and upper >>>>> bounds and its resolution. This is supported in Mapserver >>>>> (Note that the resolution is not supported) >>>>> >>>>> >>>>> >>>> It sounds quite strange: how do you specify the ammount of time- >>>> slices, without giving the resolution? >>>> >>>> >>>> >>> >>> You can specify the resolutions in your setting of the >>> wms_timeextent parameter. It should be dumped as is in the >>> capabilities document. It just won't be used when validating the >>> time value passed in the request to see if the value fits in the >>> time extents defined. The validation will only use the min max values. >>> >>> >>> >>> >>> >>>>> >>>>> 4) min1/max1/res1,min2/max2/res2,... a A list of multiple >>>>> intervals. Not supported >>>>> >>>>> >>>>> I am willing to add the support for number 4) if you are willing >>>>> to do additional testing. >>>>> >>>>> >>>>> >>>> We may do some testing too. we're on the way of developping a new >>>> WMS cliente with time parameter support, and also interested in >>>> publising multitemporal data on the same way. >>>> ' >>>> >>>> >>>> >>> >>> I have entred a bug on this issue so discussions/testing can be done >>> through this bug. >>> >>> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1498 >>> >>> >>> >>> >>>>> >>>>> I am not sure if 2) is is a must have at this point. >>>>> >>>>> Le me know what you think and then we can proceed with the >>>>> impentation. >>>>> >>>>> Later, >>>>> >>>>> >>>>> Jeroen Ticheler wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Thanks for that! Is it a complex thing to add such support? I had >>>>>> the impression from the code that it was virtually there >>>>>> already, just that it first checked for a range and does not >>>>>> proceed to check for ranges? >>>>>> The problem is that a range doesn't work for this series. Data >>>>>> comes in at three 10 daily periods a month, which is not exactly >>>>>> true as a month does not always have 30 days. Still the images >>>>>> are always dated with a 01, 11 and 21 for the day (or 1,2 or 3 >>>>>> for a dekad). >>>>>> >>>>>> Ciao, >>>>>> Jeroen >>>>>> _______________________ >>>>>> Jeroen Ticheler >>>>>> FAO-UN >>>>>> Tel: +39 06 57056041 >>>>>> http://www.fao.org/geonetwork >>>>>> 42.07436?N 12.34327?E >>>>>> >>>>>> >>>>>> On 13 Oct 2005, at 20:03, Yewondwossen Assefa wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi There, >>>>>>> >>>>>>> Sorry for the late answer. >>>>>>> >>>>>>> From what I can see in your examples, you are running into a >>>>>>> limitation of mapserver and it's support for the time extent >>>>>>> values. Currently the time extent can only be defined as a >>>>>>> range value and only one range value is valid (so something >>>>>>> like is the only thing valid 2005-09-11/2005-09-21) >>>>>>> >>>>>>> You should update your "wms_timeextent" and try it with only >>>>>>> one range. I will enter documentation bug so that this >>>>>>> limitation is clearly defined. Give it a try and let me know. >>>>>>> >>>>>>> Later, >>>>>>> >>>>>>> Jeroen Ticheler wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi, sorry for continuing this story, but I really want to >>>>>>>> solve this and hope my additional info helps to sort out the >>>>>>>> problems I face. >>>>>>>> I am using a shapefile with the imgdate column added to it. I >>>>>>>> use exactly the same index to work with a WCS on the same >>>>>>>> data, that one works perfectly fine. >>>>>>>> I have browsed through the mapServer sourcecode to see if I >>>>>>>> could discover something/ understand the problem better. I'm >>>>>>>> not familiar with C coding, so forgive my ignorance :-) What >>>>>>>> I could understand is that my request fails when the time >>>>>>>> string submitted in the request is compared to the timeextent >>>>>>>> given in the capabilities document. >>>>>>>> The exact section of the code is in between line 545 and line >>>>>>>> 569, apparently the msValidateTimeValue() procedure fails to >>>>>>>> find the requested date in the extent. I do not get an error >>>>>>>> when I change my extent to a range like >>>>>>>> "2005-09-11,2005-09-21/2005-09-21" or >>>>>>>> "2005-09-11,2005-09-11/2005-09-21", but it will only render >>>>>>>> the very last image, even when an earlier one is requested. >>>>>>>> So I guess I face a bug!? >>>>>>>> Thanks again, >>>>>>>> Jeroen >>>>>>>> Begin forwarded message: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> From: Jeroen Ticheler >>>>>>>>> Date: 12 October 2005 09:54:26 GMT+02:00 >>>>>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>>>>> Subject: [UMN_MAPSERVER-USERS] time series problem 2 >>>>>>>>> Reply-To: Jeroen Ticheler >>>>>>>>> >>>>>>>>> >>>>>>>>> Further to my previous message, the exception I get is the >>>>>>>>> following one: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> msWMSApplyTime: WMS server error. Time value(s) 2005-09-21 >>>>>>>>> given is invalid or outside the time extent defined >>>>>>>>> (2005-03-11,2005-03-21,2005-04-01,2005-04-11,2005-04-21,2005-05 >>>>>>>>> -01,2 00 >>>>>>>>> 5-05-11,2005-05-21,2005-06-01,2005-06-11,2005-06-21,2005-07-01, >>>>>>>>> 2005- 07 >>>>>>>>> -11,2005-07-21,2005-08-01,2005-08-11,2005-08-21,2005-09-01,2005 >>>>>>>>> -09-1 1, 2005-09-21), and default time set is invalid >>>>>>>>> (2005-09-21) >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> And the URL's I use are: >>>>>>>>> >>>>>>>>> For Capabilities: >>>>>>>>> >>>>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>>>> version=1.1.1&service=WMS&request=GetCapabilities >>>>>>>>> >>>>>>>>> For a working map without specifying the time: >>>>>>>>> >>>>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>>>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>>>>>> png&layers=spotndvi&transparent=true&width=400&height=200 >>>>>>>>> >>>>>>>>> For a request with a time, the exception is returned: >>>>>>>>> >>>>>>>>> http://193.43.36.137/cgi-bin/spotveg? >>>>>>>>> version=1.1.1&service=WMS&request=GetMap&srs=EPSG: >>>>>>>>> 4326&bbox=-180,-90,180,90&format=image/ >>>>>>>>> png&layers=spotndvi&transparent=true&width=400&height=200&time= >>>>>>>>> 2005- 09 -21 >>>>>>>>> >>>>>>>>> These URL's can be reached from outside, so you can try this >>>>>>>>> yourself. >>>>>>>>> Thanks in advance for any help to a solution, >>>>>>>>> Jeroen >>>>>>>>> >>>>>>>>> On 11 Oct 2005, at 19:20, Jeroen Ticheler wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> I have a problem with time series for WMS. I have used the >>>>>>>>>> following WMS attributes in my map file and I get the >>>>>>>>>> default image the first WMS map request. The moment I start >>>>>>>>>> requesting maps with the time variable set, I get an >>>>>>>>>> exception indicating that the time format used is not correct. >>>>>>>>>> >>>>>>>>>> The data is GeoTIFF >>>>>>>>>> I have an index shapefile with an imgdate column containing >>>>>>>>>> the dates in the same format >>>>>>>>>> >>>>>>>>>> Anyone an idea, I can't find an example that has a whole >>>>>>>>>> range of images with a specific time set for each image. >>>>>>>>>> >>>>>>>>>> Map file extract: >>>>>>>>>> >>>>>>>>>> At the map level (although I don't think this is supported/ >>>>>>>>>> needed for GeoTIFF data!?) >>>>>>>>>> ____________________________ >>>>>>>>>> "wms_timeformat" "YYYY-MM-DD" >>>>>>>>>> ____________________________ >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> At the layer level >>>>>>>>>> ____________________________ >>>>>>>>>> >>>>>>>>>> "wms_style_default_title" "default" >>>>>>>>>> "wms_format" "image/png" >>>>>>>>>> "wms_timedefault" "2005-09-11" >>>>>>>>>> "wms_timeextent" >>>>>>>>>> "2005-08-21,2005-09-01,2005-09-11" # also tried >>>>>>>>>> with spaces after each comma >>>>>>>>>> "wms_timeitem" "imgdate" >>>>>>>>>> >>>>>>>>>> END >>>>>>>>>> DUMP TRUE >>>>>>>>>> TILEINDEX 'ndvi_idx' >>>>>>>>>> TILEITEM "location" >>>>>>>>>> EXTENT -180.0 -90.0 180.0 90.0 >>>>>>>>>> PROJECTION "init=epsg:4326" END >>>>>>>>>> ____________________________ >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Thanks in advance, >>>>>>>>>> Jeroen >>>>>>>>>> _______________________ >>>>>>>>>> Jeroen Ticheler >>>>>>>>>> FAO-UN >>>>>>>>>> Tel: +39 06 57056041 >>>>>>>>>> http://www.fao.org/geonetwork >>>>>>>>>> 12.34327?N 12.34327?E >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>> ---------------------------------------------------------------- >>>>>>> Assefa Yewondwossen >>>>>>> Software Analyst >>>>>>> >>>>>>> Email: assefa at dmsolutions.ca >>>>>>> http://www.dmsolutions.ca/ >>>>>>> >>>>>>> Phone: (613) 565-5056 (ext 14) >>>>>>> Fax: (613) 565-0925 >>>>>>> ---------------------------------------------------------------- >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> gvSIG development Team >>>> www.gvsig.gva.es >>>> >>>> >>>> >>> >>> -- >>> ---------------------------------------------------------------- >>> Assefa Yewondwossen >>> Software Analyst >>> >>> Email: assefa at dmsolutions.ca >>> http://www.dmsolutions.ca/ >>> >>> Phone: (613) 565-5056 (ext 14) >>> Fax: (613) 565-0925 >>> ---------------------------------------------------------------- >>> >>> >>> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From abe.gillespie at GMAIL.COM Tue Oct 25 09:11:00 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 25 Oct 2005 12:11:00 -0400 Subject: antialiasing line features.. In-Reply-To: <3d6453b315123468138b806b643c2c65@iici.no-ip.org> Message-ID: Hey everyone, Sorry, a somewhat OT - This thread has piqued my interest a little. Would someone mind posting examples of aliased vs. antialiased images? I'm just curious about the results you can get. Thanks! -Abe On 10/25/05, Dylan Beaudette wrote: > On Oct 25, 2005, at 2:54 AM, Flavio Hendry wrote: > > > Ciao Giorgio > > > > It might not be the antialiasing but the png24. png24 files tend to get > > very large, i.e. 400k compared to 70k as a JPEG (check your output > > directory). Maybe you try JPEG. > > > > However, I had quite problems with the antialiasing, working on some > > layer and on some the system hung (no error messages, just hanging when > > zooming). Removing the antialiasing from the layer worked. Strange > > behaviour, anybody having this problem? > > > > Mit freundlichem Gruss / Best Regards > > Flavio Hendry > > > > ---------------------------------------------------------------- > > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > > ---------------------------------------------------------------- > > ############ Mit freundlichen Gruessen / Kind Regards > > ############ mailto:flavio 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 > > ---------------------------------------------------------------- > > > > > > Yes. I am noticing a seemingly erratic behavior: If I enable > antialiasing with JPEG output format, it does not work. If I enable > antialiasing in a tiled line layer it does not work... > > Are there some good ground rules for antialiasing? i.e. ONLY PNG24, > etc. ? > > Thanks! > > -- > Dylan Beaudette > Soils and Biogeochemistry Graduate Group > University of California at Davis > 530.754.7341 > From cplist at EARTHLINK.NET Tue Oct 25 09:20:28 2005 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Tue, 25 Oct 2005 12:20:28 -0400 Subject: [QUAR] [UMN_MAPSERVER-USERS] faint TT fonts In-Reply-To: <20051021162610.D1C801A6BC6@mail.medinaco.org> Message-ID: > I'm probably missing something, but could it just be the colormapping > due to the background that is making the arrows look different? > They appear to be the same size. Thanks, Lowell, but it doesn't look like the background makes a difference. Please see attachments. Charlton -------------- next part -------------- A non-text attachment was scrubbed... Name: dark.gif Type: image/gif Size: 29230 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: light.gif Type: image/gif Size: 20418 bytes Desc: not available URL: From perrygeo at GMAIL.COM Tue Oct 25 11:44:22 2005 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Tue, 25 Oct 2005 11:44:22 -0700 Subject: google earth as WMS? In-Reply-To: Message-ID: On 10/25/05, Leopold Schefcik (MULTIMEDIAPLAN.AT )< leopold.schefcik at multimediaplan.at> wrote: > > > Does anybody know the request to link google earth in my client (as wms)? > Check out http://chris.narx.net/?p=13 -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Tue Oct 25 12:34:35 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 25 Oct 2005 15:34:35 -0400 Subject: FW: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info Message-ID: Everyone, Follow up to this thread. It seemed that an updated gdal fixed this issue. The gdal used with the distro Tim was using was 1.2.6. Having said this, where can one fetch a Win32 dist of MapServer 4.6.1 / PHP 5.0.5 / GDAL 1.3.1 ? I'm guessing this will be a hot item (alot of my stakeholders share Tim's type of configuration and connection bindings). Thanks for Frank and Tim for their guidance and testing support. Cheers ..Tom -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kralidis,Tom [Burlington] Sent: Monday, 17 October, 2005 12:29 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info > > > On 10/17/05, Kralidis,Tom [Burlington] wrote: > > Is or has something happened to the way the .ovf or underlying OGR > > process handles precision of coordinates when doing spatial filters? > > Tom, > > I haven't dug through the previous emails closely to see what > is going on, but I thought I should answer this. > > There has been a substantial improvement in the amount of > precision OGR maintains for WKT and GML encodings of > geometries. The changes were applied a couple months ago. > They are definately in GDAL/OGR 1.3.1 and might be in 1.3.0. > > OGR spatial filtering will also now use GEOS if built-in. It > is possible that some "on the edge" situations would give > different results now compared to in the past. > > I'm not sure if any of this relates to the problem you are > seeing though. Thanks for the info. I don't think these instances are using WKT/GML as input or output, if that's what you mean. Basic .ovf connection to provide WMS output. Is there anything we can do on our end to help with this issue? The problem is basically: ENVIRONMENT =========== OS: Win32 MapServer: 4.6.1 windows dist (non ms4w package from http://maptools.org/dl) Layer Data connection: OGR .ovf connection to M$ SQL Server 2000 SCENARIO 1 ========== - invoke OGC:WMS GetMap request against said layer with coordinates formatted with 8 decimals http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=Get Map&layers=CABINPoints&styles=&bbox=-141.00000000,35.18749999,-51.999999 99,90.81250000&format=image/png&srs=EPSG:4326&width=500&height=300 Result: works SCENARIO 2 ========== - invoke OGC:WMS GetMap request against said layer with coordinates formatted with 9 decimals http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=Get Map&layers=CABINPoints&styles=&bbox=-141.000000002,35.187499998,-51.9999 99997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 Result: watch server timeout ensue NOTES ===== - this does not exist when the layer data connection is a shapefile, for example ..Tom From assefa at DMSOLUTIONS.CA Tue Oct 25 12:44:22 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 25 Oct 2005 15:44:22 -0400 Subject: FW: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info In-Reply-To: <2576812186CDD411BF1500508B6DCE950C09AA21@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, I was going to updgrde the binaries for windows to use the latest libcurl so the timimg is good. I will do the builds and update maptools. Note that ms4w pacakges will also be shortly updated with the new builds. Later, Kralidis,Tom [Burlington] wrote: > Everyone, > > Follow up to this thread. > > It seemed that an updated gdal fixed this issue. The gdal used with the > distro Tim was using was 1.2.6. > > Having said this, where can one fetch a Win32 dist of MapServer 4.6.1 / > PHP 5.0.5 / GDAL 1.3.1 ? I'm guessing this will be a hot item (alot of > my stakeholders share Tim's type of configuration and connection > bindings). > > Thanks for Frank and Tim for their guidance and testing support. > > Cheers > > ..Tom > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Kralidis,Tom [Burlington] > Sent: Monday, 17 October, 2005 12:29 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info > > > >> >>On 10/17/05, Kralidis,Tom [Burlington] wrote: >> >>>Is or has something happened to the way the .ovf or underlying OGR >>>process handles precision of coordinates when doing spatial filters? >> >>Tom, >> >>I haven't dug through the previous emails closely to see what >>is going on, but I thought I should answer this. >> >>There has been a substantial improvement in the amount of >>precision OGR maintains for WKT and GML encodings of >>geometries. The changes were applied a couple months ago. >>They are definately in GDAL/OGR 1.3.1 and might be in 1.3.0. >> >>OGR spatial filtering will also now use GEOS if built-in. It >>is possible that some "on the edge" situations would give >>different results now compared to in the past. >> >>I'm not sure if any of this relates to the problem you are >>seeing though. > > > Thanks for the info. I don't think these instances are using WKT/GML as > input or output, if that's what you mean. Basic .ovf connection to > provide WMS output. Is there anything we can do on our end to help with > this issue? The problem is basically: > > ENVIRONMENT > =========== > > OS: Win32 > MapServer: 4.6.1 windows dist (non ms4w package from > http://maptools.org/dl) > Layer Data connection: OGR .ovf connection to M$ SQL Server 2000 > > SCENARIO 1 > ========== > > - invoke OGC:WMS GetMap request against said layer with coordinates > formatted with 8 decimals > > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=Get > Map&layers=CABINPoints&styles=&bbox=-141.00000000,35.18749999,-51.999999 > 99,90.81250000&format=image/png&srs=EPSG:4326&width=500&height=300 > > Result: works > > SCENARIO 2 > ========== > > - invoke OGC:WMS GetMap request against said layer with coordinates > formatted with 9 decimals > > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=Get > Map&layers=CABINPoints&styles=&bbox=-141.000000002,35.187499998,-51.9999 > 99997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 > > Result: watch server timeout ensue > > NOTES > ===== > - this does not exist when the layer data connection is a shapefile, for > example > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From agenoves at GMAIL.COM Tue Oct 25 12:52:13 2005 From: agenoves at GMAIL.COM (Agustin Genoves) Date: Tue, 25 Oct 2005 14:52:13 -0500 Subject: Problem with postgis and php when show the image Message-ID: Hello, I have a problem with my site, when I browse the site and I make zoom, the images scalebar is drawing in the place of the map and it is stretched, also the keymap move to the place of the scalebar and the map move to the place of the keymap. I have the same site running over XP with php, mapserver, mapscript and remote conection with postgres/postgis and the problems not happens. But the problem happens over a Linux Debian with php, mapserver, mapscript and postgres/postgis. thanks for any information.- Agust?n Genoves From holmand24 at GMAIL.COM Tue Oct 25 15:24:47 2005 From: holmand24 at GMAIL.COM (=?ISO-8859-1?Q?Holmand_Dar=EDo_Villalba_Barajas?=) Date: Tue, 25 Oct 2005 15:24:47 -0700 Subject: help Message-ID: hi: how I do so that when doing query by attribute to a point that not this visualizing in the shape, it's in the consultation. From math.parent at GMAIL.COM Tue Oct 25 16:45:37 2005 From: math.parent at GMAIL.COM (Mathieu PARENT) Date: Wed, 26 Oct 2005 01:45:37 +0200 Subject: Musmap 0.9.0 released Message-ID: Musmap 0.9.0 has been released. This release introduce major consolidation of Musmap engine. Some highlites: - Easier installation - SVG output support - Measure tool using polygon (IE and Gecko only) - Complete privilege management with users/groups - Automatic metadata creation (using GetInformationSchema) - Debian package (partial configuration done, in progress) - Lot of bug fixes Download at https://sourceforge.net/project/showfiles.php?group_id=114970&package_id=124581&release_id=366033 Check the new site http://musmap.sf.net. This is a wiki, feel free to add informations (or to add questions in the FAQ). About Musmap: Musmap is a web mapping interface which has an advanced users/profiles management system. More information at http://musmap.sourceforge.net/ ================================= Special note to MAPSERVER-USERS at LISTS.UMN.EDU: This tool is only working in one production environnement. I need more testing for the next release. I also need to now about your requests. Send me a mail at mathieuparent at users.sourceforge.net Thanks From enri at 163.COM Tue Oct 25 18:40:37 2005 From: enri at 163.COM (enri) Date: Wed, 26 Oct 2005 09:40:37 +0800 Subject: about musmap demo Message-ID: mathieuparent, Would you please check why your demo at http://mathieu.parent.hd.free.fr/musmap/latest/ doesn't work now? I downloaded the version of 0.9 and try to install it but failed. I use postgresql, but always telling me "database engine not found for 'postgresql'" , why? Thank you very much. +--------------------------------------+ | ZHOU, Xu | | Division of Information Service | | National Geomatics Center of China | | Tel:+86-10-68415131 | | Fax:+86-10-68424101 | +--------------------------------------+ From l.bargeot at EDUCAGRI.FR Tue Oct 25 21:29:23 2005 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Wed, 26 Oct 2005 06:29:23 +0200 Subject: Problem with postgis and php when show the image In-Reply-To: Message-ID: Hi, I don't think your problem comes from postgis using. Wich version do you use with wich system ? What's happen to you seems to be an old problem with mapserver 4.4 and php as an apache module. Perhap's the debian package you use is an old version (4.4). regards, Lionel Agustin Genoves le Mardi, Octobre 25, 2005 ? 9:52 PM a ?crit : >Hello, I have a problem with my site, when I browse the site and I make >zoom, the images scalebar is drawing in the place of the map and it is >stretched, also the keymap move to the place of the scalebar and the map >move to the place of the keymap. I have the same site running over XP with >php, mapserver, mapscript and remote conection with postgres/postgis and >the problems not happens. > >But the problem happens over a Linux Debian with php, mapserver, mapscript >and postgres/postgis. > >thanks for any information.- > >Agust?n Genoves > Lionel Bargeot Agrogeomatic 03.80.77.28.49 http://www.igcs-stb.org/ 4 rue Champs-prevois, bat grand-champs, 21000 Dijon From flavio at TYDAC.CH Tue Oct 25 23:02:56 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 26 Oct 2005 08:02:56 +0200 Subject: antialiasing line features.. In-Reply-To: Message-ID: hi Abe as said, I had problems with it (hanging mapserver). and the ones which seemed to work, I did not see a difference (was using jpeg as output). png24 is no option, resulting size of images too large. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio 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: Abe Gillespie To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 25 Oct 2005 12:11:00 -0400 Subject: Re: [UMN_MAPSERVER-USERS] antialiasing line features.. > Hey everyone, > > Sorry, a somewhat OT - This thread has piqued my interest a little. > Would someone mind posting examples of aliased vs. antialiased > images? > I'm just curious about the results you can get. > > Thanks! > -Abe > > On 10/25/05, Dylan Beaudette wrote: > > On Oct 25, 2005, at 2:54 AM, Flavio Hendry wrote: > > > > > Ciao Giorgio > > > > > > It might not be the antialiasing but the png24. png24 files tend > to get > > > very large, i.e. 400k compared to 70k as a JPEG (check your > output > > > directory). Maybe you try JPEG. > > > > > > However, I had quite problems with the antialiasing, working on > some > > > layer and on some the system hung (no error messages, just > hanging when > > > zooming). Removing the antialiasing from the layer worked. > Strange > > > behaviour, anybody having this problem? > > > > > > Mit freundlichem Gruss / Best Regards > > > Flavio Hendry > > > > > > ---------------------------------------------------------------- > > > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > > > ---------------------------------------------------------------- > > > ############ Mit freundlichen Gruessen / Kind Regards > > > ############ mailto:flavio 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 > > > ---------------------------------------------------------------- > > > > > > > > > > Yes. I am noticing a seemingly erratic behavior: If I enable > > antialiasing with JPEG output format, it does not work. If I enable > > antialiasing in a tiled line layer it does not work... > > > > Are there some good ground rules for antialiasing? i.e. ONLY PNG24, > > etc. ? > > > > Thanks! > > > > -- > > Dylan Beaudette > > Soils and Biogeochemistry Graduate Group > > University of California at Davis > > 530.754.7341 > > From thomas.bonfort at GMAIL.COM Tue Oct 25 23:55:36 2005 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 26 Oct 2005 06:55:36 +0000 Subject: antialiasing line features.. In-Reply-To: Message-ID: hi list, I'm also having problems with mapserver or mapscript dying on certain antialiased lines. I think I tracked the bug down to gd, I still have to find the time to find out in what cases it happens. For those interrested, for me gd segfaults for me in file gd.c on line 3055, because it is called with out of bounds values for pixel position. the call is being made on lines 3098 or 3119, with the argument (y>>16)+1 (line 3098) or (x>>16)+1 (line 3119) which seems to me to be out of image bounds. My fix is to set the clipping regions of lines 3069-3071 to 1 pixel inside, which is a quick workaround which prevents the segfaults, but produces poor quality for short line segments. cheers, tb On 10/26/05, Flavio Hendry wrote: > hi Abe > > as said, I had problems with it (hanging mapserver). and the ones which > seemed to work, I did not see a difference (was using jpeg as output). > png24 is no option, resulting size of images too large. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio 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: Abe Gillespie > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Tue, 25 Oct 2005 12:11:00 -0400 > Subject: Re: [UMN_MAPSERVER-USERS] antialiasing line features.. > > > Hey everyone, > > > > Sorry, a somewhat OT - This thread has piqued my interest a little. > > Would someone mind posting examples of aliased vs. antialiased > > images? > > I'm just curious about the results you can get. > > > > Thanks! > > -Abe > > > > On 10/25/05, Dylan Beaudette wrote: > > > On Oct 25, 2005, at 2:54 AM, Flavio Hendry wrote: > > > > > > > Ciao Giorgio > > > > > > > > It might not be the antialiasing but the png24. png24 files tend > > to get > > > > very large, i.e. 400k compared to 70k as a JPEG (check your > > output > > > > directory). Maybe you try JPEG. > > > > > > > > However, I had quite problems with the antialiasing, working on > > some > > > > layer and on some the system hung (no error messages, just > > hanging when > > > > zooming). Removing the antialiasing from the layer worked. > > Strange > > > > behaviour, anybody having this problem? > > > > > > > > Mit freundlichem Gruss / Best Regards > > > > Flavio Hendry > > > > > > > > ---------------------------------------------------------------- > > > > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > > > > ---------------------------------------------------------------- > > > > ############ Mit freundlichen Gruessen / Kind Regards > > > > ############ mailto:flavio 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 > > > > ---------------------------------------------------------------- > > > > > > > > > > > > > > Yes. I am noticing a seemingly erratic behavior: If I enable > > > antialiasing with JPEG output format, it does not work. If I enable > > > antialiasing in a tiled line layer it does not work... > > > > > > Are there some good ground rules for antialiasing? i.e. ONLY PNG24, > > > etc. ? > > > > > > Thanks! > > > > > > -- > > > Dylan Beaudette > > > Soils and Biogeochemistry Graduate Group > > > University of California at Davis > > > 530.754.7341 > > > > From carlo.calvino at EMAIL.IT Wed Oct 26 00:36:12 2005 From: carlo.calvino at EMAIL.IT (Carlo Calvino) Date: Wed, 26 Oct 2005 02:36:12 -0500 Subject: one-to-many relationship between Mapserver and PostgreSQL Message-ID: On Thu, 20 Oct 2005 12:19:16 -0400, Pagurek,Debbie [NCR] wrote: >One way of pulling your one to many relationship from postgresql is to >use the layer template to set it to a URL, such as a php script, that >passes the city value and that php script then does a query to your >postgresql database and presents the results. There have been posts to >the mapserver list about this and I believe that Richard Greenwood has >published a paper that discusses this technique. > Thanks a lot for your help. I done what you suggested, and it is ok. Now i would like to know if there is another way: Would it be helpful to build a geodatabase inside PostgreSql? From jorn at SPACETEC.NO Wed Oct 26 00:47:19 2005 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 26 Oct 2005 09:47:19 +0200 Subject: OpenEV Message-ID: Hi, does anyone have experience with OpenEV and Mapserver? http://openev.sourceforge.net/ Best Regards Joern V Roesnes From BEN at SYNCERA-ITSOLUTIONS.NL Wed Oct 26 00:55:18 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 26 Oct 2005 09:55:18 +0200 Subject: OpenEV Message-ID: Yes. But what do you want to know? They can be seen mostly as separate tools (although you could use Mapserver WMS layers in OpenEV if you wanted too). OpenEV can be used for displaying and analyzing data, which can help in the first stages of a Mapserver project. Or you could use it e.g. to write a pre-classified Geotiff version of your raster. Tyler Mitchell's O'Reilly book discusses both Mapserver and OpenEV. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> J?rn Vegard R?snes 10/26/05 9:47 AM >>> Hi, does anyone have experience with OpenEV and Mapserver? http://openev.sourceforge.net/ Best Regards Joern V Roesnes From giorgio.plazzotta at SARASRICERCHE.IT Wed Oct 26 01:15:30 2005 From: giorgio.plazzotta at SARASRICERCHE.IT (Giorgio Plazzotta) Date: Wed, 26 Oct 2005 10:15:30 +0200 Subject: antialiasing line features.. Message-ID: MAPSERVER-USERS Digest - 24 Oct 2005 to 25 Oct 2005 (#2005-309)Thanx Flavio to reopen a subject that I investigated more than 1 year ago and pushed me to re-check the situation with newer relases of Mapserver and GDAL. Though the Jpeg outputformat is much lighter than the Png24 I experienced a problem with truetype point symbols. I don't know why but with the jpeg outputformat they are shown in a very poor quality. Instead using the same mapfile, just changing the outputformat to Png24, the truetype symbols are perfect. The Jpeg quality doesn't influence this behaviour, even if i set it to 100 it's the same. So if I want perfect symbols I have to set the outputformat to png24 but in this way the file is much bigger. Otherwise I have to renounce the truetype symbols and use only the other types of point symbols. Is this a limitation of the Gdal libraries? For what regards the line antialiasing I noticed, though not measuring it, that the performance is strongly affected by the use of a cartoline line symbol even if the outputformat is set to Jpeg. The antialiasing is an interesting feature and the desktop systems (ex. Manifold) that uses a good antialiasing engine really have a very attractive look but, depending of the project goals, this feature could be considered of secondary importance compared to performance, especially in case or many remote accesses and not so fast connections such as in my country. Giorgio Plazzotta ________________________________ Saras Ricerche e Tecnologie Divisione Ricerche - Sezione Ambiente Trav.5? Strada ovest Macchiareddu C.P. 237 I-09032 Assemini (CA) - Italy 070-2464262 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bluecarto at GMAIL.COM Wed Oct 26 02:28:03 2005 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Wed, 26 Oct 2005 11:28:03 +0200 Subject: shpxy and mapscript Message-ID: Do someone know a way to use shpxy with mapscript ? ie. Is there a way to dynamically process templates using mapscript ? Paul Spencer seems to have already done this. Regards Pierre GIRAUD From frans at GEODAN.NL Wed Oct 26 03:49:55 2005 From: frans at GEODAN.NL (Frans Knibbe) Date: Wed, 26 Oct 2005 12:49:55 +0200 Subject: How to prevent the browser caching images Message-ID: Hello, I would like to be able to prevent the browser caching the map images produced by MapServer CGI / WMS. Is this possible somehow? I know it is possible to set "pragma: no-cache" in the HTML headers but that is not what I want, only the map image should not be cached. I also know it is possible to set "pragma: no-cache" in the image header, this would seem a better idea. Is this possible to achieve? Regards, Frans From BEN at SYNCERA-ITSOLUTIONS.NL Wed Oct 26 04:26:05 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 26 Oct 2005 13:26:05 +0200 Subject: How to prevent the browser caching images Message-ID: Hi Frans, What Chameleon does it add a random parameter to the URL (i.e. image src), eg &dummy=0.78874300+1130325893. Also, it has a wrapper around the map image called drawmap.php which sets the pragma no cache for the header (so for the image only). I don't know of any options to do this without such an approach. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Frans Knibbe 10/26/05 12:49 PM >>> Hello, I would like to be able to prevent the browser caching the map images produced by MapServer CGI / WMS. Is this possible somehow? I know it is possible to set "pragma: no-cache" in the HTML headers but that is not what I want, only the map image should not be cached. I also know it is possible to set "pragma: no-cache" in the image header, this would seem a better idea. Is this possible to achieve? Regards, Frans From thomas.bonfort at GMAIL.COM Wed Oct 26 04:33:46 2005 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 26 Oct 2005 13:33:46 +0200 Subject: How to prevent the browser caching images In-Reply-To: Message-ID: have a look at http://httpd.apache.org/docs/2.0/mod/mod_headers.html#header you can modify the expires header for files matching certain conditions cheers, tb From frans at GEODAN.NL Wed Oct 26 06:22:32 2005 From: frans at GEODAN.NL (Frans Knibbe) Date: Wed, 26 Oct 2005 15:22:32 +0200 Subject: How to prevent the browser caching images In-Reply-To: Message-ID: Thanks for the tip! I have just enabled mod_headers and added this to httpd.conf : Header append Cache-Control "no-store" And it seems to work. I have also learned that "pragma: no-cache" is deprecated. For more information about caching http://www.mnot.net/cache_docs/ is a very readabel and informative document. Regards, Frans thomas bonfort wrote: >have a look at >http://httpd.apache.org/docs/2.0/mod/mod_headers.html#header > >you can modify the expires header for files matching certain conditions > >cheers, >tb > > > > From steve.lime at DNR.STATE.MN.US Wed Oct 26 06:52:06 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 26 Oct 2005 08:52:06 -0500 Subject: antialiasing line features.. Message-ID: What version of GD are you using? >>> thomas bonfort 10/26/05 1:55 AM >>> hi list, I'm also having problems with mapserver or mapscript dying on certain antialiased lines. I think I tracked the bug down to gd, I still have to find the time to find out in what cases it happens. For those interrested, for me gd segfaults for me in file gd.c on line 3055, because it is called with out of bounds values for pixel position. the call is being made on lines 3098 or 3119, with the argument (y>>16)+1 (line 3098) or (x>>16)+1 (line 3119) which seems to me to be out of image bounds. My fix is to set the clipping regions of lines 3069-3071 to 1 pixel inside, which is a quick workaround which prevents the segfaults, but produces poor quality for short line segments. cheers, tb On 10/26/05, Flavio Hendry wrote: > hi Abe > > as said, I had problems with it (hanging mapserver). and the ones which > seemed to work, I did not see a difference (was using jpeg as output). > png24 is no option, resulting size of images too large. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio 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: Abe Gillespie > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Tue, 25 Oct 2005 12:11:00 -0400 > Subject: Re: [UMN_MAPSERVER-USERS] antialiasing line features.. > > > Hey everyone, > > > > Sorry, a somewhat OT - This thread has piqued my interest a little. > > Would someone mind posting examples of aliased vs. antialiased > > images? > > I'm just curious about the results you can get. > > > > Thanks! > > -Abe > > > > On 10/25/05, Dylan Beaudette wrote: > > > On Oct 25, 2005, at 2:54 AM, Flavio Hendry wrote: > > > > > > > Ciao Giorgio > > > > > > > > It might not be the antialiasing but the png24. png24 files tend > > to get > > > > very large, i.e. 400k compared to 70k as a JPEG (check your > > output > > > > directory). Maybe you try JPEG. > > > > > > > > However, I had quite problems with the antialiasing, working on > > some > > > > layer and on some the system hung (no error messages, just > > hanging when > > > > zooming). Removing the antialiasing from the layer worked. > > Strange > > > > behaviour, anybody having this problem? > > > > > > > > Mit freundlichem Gruss / Best Regards > > > > Flavio Hendry > > > > > > > > ---------------------------------------------------------------- > > > > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > > > > ---------------------------------------------------------------- > > > > ############ Mit freundlichen Gruessen / Kind Regards > > > > ############ mailto:flavio 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 > > > > ---------------------------------------------------------------- > > > > > > > > > > > > > > Yes. I am noticing a seemingly erratic behavior: If I enable > > > antialiasing with JPEG output format, it does not work. If I enable > > > antialiasing in a tiled line layer it does not work... > > > > > > Are there some good ground rules for antialiasing? i.e. ONLY PNG24, > > > etc. ? > > > > > > Thanks! > > > > > > -- > > > Dylan Beaudette > > > Soils and Biogeochemistry Graduate Group > > > University of California at Davis > > > 530.754.7341 > > > > From thomas.bonfort at GMAIL.COM Wed Oct 26 07:10:44 2005 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 26 Oct 2005 16:10:44 +0200 Subject: antialiasing line features.. In-Reply-To: Message-ID: the last version. I seem to remember the antialiasing code was changed recently in gd. On 10/26/05, Steve Lime wrote: > What version of GD are you using? > > >>> thomas bonfort 10/26/05 1:55 AM >>> > hi list, > I'm also having problems with mapserver or mapscript dying on certain > antialiased lines. I think I tracked the bug down to gd, I still have > to find the time to find out in what cases it happens. For those > interrested, for me gd segfaults for me in file gd.c on line 3055, > because it is called with out of bounds values for pixel position. the > call is being made on lines 3098 or 3119, with the argument > (y>>16)+1 (line 3098) > or > (x>>16)+1 (line 3119) > which seems to me to be out of image bounds. > > My fix is to set the clipping regions of lines 3069-3071 to 1 pixel > inside, which is a quick workaround which prevents the segfaults, but > produces poor quality for short line segments. > > cheers, > tb > From rco at OSMOGIS.COM Wed Oct 26 08:33:31 2005 From: rco at OSMOGIS.COM (Richard Orth - osmoGIS Incorporated) Date: Wed, 26 Oct 2005 11:33:31 -0400 Subject: Scale Bar Object and True type fonts In-Reply-To: <435E0D07.7040101@ncl.res.in> Message-ID: Maybe you have done this since posting. Have you reviewed the mapfile documentation regarding the scalebar? In that section you will find a reference to the label object. Tracking down the label object shows three items you will need to include; a fontset file, a font parameter, and a type parameter Richard C Orth Aniruddha S. Khadkikar wrote: > Is it possible to use truetype fonts for labels in the scale bar object. > Bitmap parameters are being rendered successfully, but scalebar fails > to draw when I define MS_TRUETYPE and try to use arial font. There are > no problems with the fontset definitions as location labels are being > rendered successfully. > Or is this issue still not addressed? > Thanks in advance, > Aniruddha From kevin at PEOPLEGIS.COM Wed Oct 26 08:59:04 2005 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 26 Oct 2005 11:59:04 -0400 Subject: sde passwords Message-ID: For connections to SDE, how are folks protecting password information? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Wed Oct 26 09:42:39 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 26 Oct 2005 11:42:39 -0500 Subject: Scale Bar Object and True type fonts Message-ID: Scalebars simply don't support truetype fonts. It's simply an oversight on my part, but one I won't be able to fix before the 4.8 release though. Steve >>> Richard Orth - osmoGIS Incorporated 10/26/05 10:33 AM >>> Maybe you have done this since posting. Have you reviewed the mapfile documentation regarding the scalebar? In that section you will find a reference to the label object. Tracking down the label object shows three items you will need to include; a fontset file, a font parameter, and a type parameter Richard C Orth Aniruddha S. Khadkikar wrote: > Is it possible to use truetype fonts for labels in the scale bar object. > Bitmap parameters are being rendered successfully, but scalebar fails > to draw when I define MS_TRUETYPE and try to use arial font. There are > no problems with the fontset definitions as location labels are being > rendered successfully. > Or is this issue still not addressed? > Thanks in advance, > Aniruddha From steve.lime at DNR.STATE.MN.US Wed Oct 26 09:55:44 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 26 Oct 2005 11:55:44 -0500 Subject: sde passwords Message-ID: We've been using cookies as a way to pass a username/password to MapServer. For example, our application will prompt users for a username and password when they first try to hit an SDE layer and use session cookies to store it. Then via the MapServer CGI you can insert those cookies directly into the connection URL: CONNECTIONTYPE SDE CONNECTION "sde.dnr.state.mn.us,mycoverage,dummy,%username%,%password%" Steve >>> Kevin Flanders 10/26/05 10:59 AM >>> For connections to SDE, how are folks protecting password information? Kevin From hobu at IASTATE.EDU Wed Oct 26 09:56:37 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 26 Oct 2005 11:56:37 -0500 Subject: sde passwords In-Reply-To: Message-ID: They're not ;) SDE doesn't kerberos or anything like that, I don't think, so your only option is to put the password in the DATA string so that MapServer can make the connection. Make sure your mapfiles are not world readable (and definitely not in a folder that is served to the web). It'd be handy if MapServer had some sort of credentials-file mechanism, where you could specify logins and the layers the belong to, but that path might just take us toward the mapfile include feature ;) Howard At 10:59 AM 10/26/2005, Kevin Flanders wrote: >This is a multi-part message in MIME format. > >------=_NextPart_000_007B_01C5DA24.A99D8E00 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: 7bit > >For connections to SDE, how are folks protecting password information? > > > >Kevin >------=_NextPart_000_007B_01C5DA24.A99D8E00 >Content-Type: text/html; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > > >For = connections to=20 SDE, how are folks protecting password information? > > > >Kevin > >------=_NextPart_000_007B_01C5DA24.A99D8E00-- From hobu at IASTATE.EDU Wed Oct 26 09:58:03 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 26 Oct 2005 11:58:03 -0500 Subject: sde passwords Message-ID: Or just do what Steve suggested :) >They're not ;) SDE doesn't kerberos or anything like that, I don't >think, so your only option is to put the password in the DATA string >so that MapServer can make the connection. Make sure your mapfiles >are not world readable (and definitely not in a folder that is >served to the web). > >It'd be handy if MapServer had some sort of credentials-file >mechanism, where you could specify logins and the layers the belong >to, but that path might just take us toward the mapfile include feature ;) > >Howard At 10:59 AM 10/26/2005, Kevin Flanders wrote: >This is a multi-part message in MIME format. > >------=_NextPart_000_007B_01C5DA24.A99D8E00 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: 7bit > >For connections to SDE, how are folks protecting password information? > > > >Kevin >------=_NextPart_000_007B_01C5DA24.A99D8E00 >Content-Type: text/html; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > > >For = connections to=20 SDE, how are folks protecting password information? > > > >Kevin > >------=_NextPart_000_007B_01C5DA24.A99D8E00-- From warmerdam at POBOX.COM Wed Oct 26 10:09:29 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 26 Oct 2005 13:09:29 -0400 Subject: antialiasing line features.. In-Reply-To: <007a01c5da05$6f1c6270$5443a8c0@GIS05> Message-ID: On 10/26/05, Giorgio Plazzotta wrote: > The antialiasing is an interesting feature and the desktop systems (ex. > Manifold) that uses a good antialiasing engine really have a very attractive > look but, depending of the project goals, this feature could be considered > of secondary importance compared to performance, especially in case or many > remote accesses and not so fast connections such as in my country. Giorgio (or Flavio), If you can submit a bug, to my attention, demonstrating the difference in output quality between jpeg and png24 I could look into it. Please include a minimal mapfile, and data to reproduce the problem, images showing the difference you see, and anything else I would need. Ideally setup so that I can just run "shp2img" on the mapfile with different outputformat values. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From assefa at DMSOLUTIONS.CA Wed Oct 26 10:48:17 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 26 Oct 2005 13:48:17 -0400 Subject: Using WMS time dimension with rasters? In-Reply-To: <200510261019.49933.jschmaltz@ltpmail.gsfc.nasa.gov> Message-ID: Jeff, There is a limited set of time patterns supported of the ISO 8601 format (http://mapserver.gis.umn.edu/doc/wms-time-support-howto.html). Were you thinking about supporting all the types ? Are there some patterns that need to be supported ? Other thoughts ? I have cc'd the list since It might be interesting to others. Later, > I think, another larger > issue with the WMS time support - use of the ISO 8601 format, both for > specifying single times as well as ranges. > > I'm guessing that this issue is more on the order of a major overhaul as > opposed to a simple bug fix like the raster tileindex issue... > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Wed Oct 26 11:31:04 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 26 Oct 2005 14:31:04 -0400 Subject: FW: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info In-Reply-To: <2576812186CDD411BF1500508B6DCE950C09AA21@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, I have upgraded the php/mapscript download site with new windows binaries (http://www.maptools.org/php_mapscript/). Later, Kralidis,Tom [Burlington] wrote: > Everyone, > > Follow up to this thread. > > It seemed that an updated gdal fixed this issue. The gdal used with the > distro Tim was using was 1.2.6. > > Having said this, where can one fetch a Win32 dist of MapServer 4.6.1 / > PHP 5.0.5 / GDAL 1.3.1 ? I'm guessing this will be a hot item (alot of > my stakeholders share Tim's type of configuration and connection > bindings). > > Thanks for Frank and Tim for their guidance and testing support. > > Cheers > > ..Tom > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Kralidis,Tom [Burlington] > Sent: Monday, 17 October, 2005 12:29 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info > > > >> >>On 10/17/05, Kralidis,Tom [Burlington] wrote: >> >>>Is or has something happened to the way the .ovf or underlying OGR >>>process handles precision of coordinates when doing spatial filters? >> >>Tom, >> >>I haven't dug through the previous emails closely to see what >>is going on, but I thought I should answer this. >> >>There has been a substantial improvement in the amount of >>precision OGR maintains for WKT and GML encodings of >>geometries. The changes were applied a couple months ago. >>They are definately in GDAL/OGR 1.3.1 and might be in 1.3.0. >> >>OGR spatial filtering will also now use GEOS if built-in. It >>is possible that some "on the edge" situations would give >>different results now compared to in the past. >> >>I'm not sure if any of this relates to the problem you are >>seeing though. > > > Thanks for the info. I don't think these instances are using WKT/GML as > input or output, if that's what you mean. Basic .ovf connection to > provide WMS output. Is there anything we can do on our end to help with > this issue? The problem is basically: > > ENVIRONMENT > =========== > > OS: Win32 > MapServer: 4.6.1 windows dist (non ms4w package from > http://maptools.org/dl) > Layer Data connection: OGR .ovf connection to M$ SQL Server 2000 > > SCENARIO 1 > ========== > > - invoke OGC:WMS GetMap request against said layer with coordinates > formatted with 8 decimals > > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=Get > Map&layers=CABINPoints&styles=&bbox=-141.00000000,35.18749999,-51.999999 > 99,90.81250000&format=image/png&srs=EPSG:4326&width=500&height=300 > > Result: works > > SCENARIO 2 > ========== > > - invoke OGC:WMS GetMap request against said layer with coordinates > formatted with 9 decimals > > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=Get > Map&layers=CABINPoints&styles=&bbox=-141.000000002,35.187499998,-51.9999 > 99997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 > > Result: watch server timeout ensue > > NOTES > ===== > - this does not exist when the layer data connection is a shapefile, for > example > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Tom.Kralidis at EC.GC.CA Wed Oct 26 11:46:50 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 26 Oct 2005 14:46:50 -0400 Subject: FW: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info Message-ID: Assefa, http://dl.maptools.org/dl/mapserver-4.6.1-win32-php5.0.5.zip still has an older gdal in there. Can we get an updated distro with GDAL 1.3 and PHP 5.0.5 / MapServer 4.6.1? ..Tom > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Wednesday, 26 October, 2005 14:31 > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] FW: [UMN_MAPSERVER-USERS] > Upgrade Problems - Additional Info > > > Tom, > > I have upgraded the php/mapscript download site with new windows > binaries (http://www.maptools.org/php_mapscript/). > > Later, > > Kralidis,Tom [Burlington] wrote: > > Everyone, > > > > Follow up to this thread. > > > > It seemed that an updated gdal fixed this issue. The gdal > used with > > the distro Tim was using was 1.2.6. > > > > Having said this, where can one fetch a Win32 dist of > MapServer 4.6.1 > > / PHP 5.0.5 / GDAL 1.3.1 ? I'm guessing this will be a hot > item (alot > > of my stakeholders share Tim's type of configuration and connection > > bindings). > > > > Thanks for Frank and Tim for their guidance and testing support. > > > > Cheers > > > > ..Tom > > > > > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Kralidis,Tom [Burlington] > > Sent: Monday, 17 October, 2005 12:29 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Upgrade Problems - > Additional Info > > > > > > > >> > >>On 10/17/05, Kralidis,Tom [Burlington] > wrote: > >> > >>>Is or has something happened to the way the .ovf or underlying OGR > >>>process handles precision of coordinates when doing > spatial filters? > >> > >>Tom, > >> > >>I haven't dug through the previous emails closely to see > what is going > >>on, but I thought I should answer this. > >> > >>There has been a substantial improvement in the amount of precision > >>OGR maintains for WKT and GML encodings of geometries. The changes > >>were applied a couple months ago. > >>They are definately in GDAL/OGR 1.3.1 and might be in 1.3.0. > >> > >>OGR spatial filtering will also now use GEOS if built-in. It is > >>possible that some "on the edge" situations would give different > >>results now compared to in the past. > >> > >>I'm not sure if any of this relates to the problem you are seeing > >>though. > > > > > > Thanks for the info. I don't think these instances are > using WKT/GML > > as input or output, if that's what you mean. Basic .ovf > connection to > > provide WMS output. Is there anything we can do on our end to help > > with this issue? The problem is basically: > > > > ENVIRONMENT > > =========== > > > > OS: Win32 > > MapServer: 4.6.1 windows dist (non ms4w package from > > http://maptools.org/dl) > > Layer Data connection: OGR .ovf connection to M$ SQL Server 2000 > > > > SCENARIO 1 > > ========== > > > > - invoke OGC:WMS GetMap request against said layer with coordinates > > formatted with 8 decimals > > > > > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=G > > et > > > Map&layers=CABINPoints&styles=&bbox=-141.00000000,35.18749999, > -51.999999 > > 99,90.81250000&format=image/png&srs=EPSG:4326&width=500&height=300 > > > > Result: works > > > > SCENARIO 2 > > ========== > > > > - invoke OGC:WMS GetMap request against said layer with coordinates > > formatted with 9 decimals > > > > > http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=G > > et > > > Map&layers=CABINPoints&styles=&bbox=-141.000000002,35.18749999 > 8,-51.9999 > > > 99997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 > > > > Result: watch server timeout ensue > > > > NOTES > > ===== > > - this does not exist when the layer data connection is a > shapefile, > > for example > > > > ..Tom > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > From assefa at DMSOLUTIONS.CA Wed Oct 26 11:53:37 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 26 Oct 2005 14:53:37 -0400 Subject: FW: [UMN_MAPSERVER-USERS] Upgrade Problems - Additional Info In-Reply-To: <2576812186CDD411BF1500508B6DCE950C09AAA4@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, I just rechecked and the gdal zip file included in the distro is gdal-1.3.1.zip which include gdal13.dll. Not sure what is going on. later, Kralidis,Tom [Burlington] wrote: > Assefa, > > http://dl.maptools.org/dl/mapserver-4.6.1-win32-php5.0.5.zip still has > an older gdal in there. Can we get an updated distro with GDAL 1.3 and > PHP 5.0.5 / MapServer 4.6.1? > > ..Tom > > > >>-----Original Message----- >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>Sent: Wednesday, 26 October, 2005 14:31 >>To: Kralidis,Tom [Burlington] >>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] FW: [UMN_MAPSERVER-USERS] >>Upgrade Problems - Additional Info >> >> >>Tom, >> >>I have upgraded the php/mapscript download site with new windows >>binaries (http://www.maptools.org/php_mapscript/). >> >>Later, >> >>Kralidis,Tom [Burlington] wrote: >> >>>Everyone, >>> >>>Follow up to this thread. >>> >>>It seemed that an updated gdal fixed this issue. The gdal >> >>used with >> >>>the distro Tim was using was 1.2.6. >>> >>>Having said this, where can one fetch a Win32 dist of >> >>MapServer 4.6.1 >> >>>/ PHP 5.0.5 / GDAL 1.3.1 ? I'm guessing this will be a hot >> >>item (alot >> >>>of my stakeholders share Tim's type of configuration and connection >>>bindings). >>> >>>Thanks for Frank and Tim for their guidance and testing support. >>> >>>Cheers >>> >>>..Tom >>> >>> >>> >>>-----Original Message----- >>>From: UMN MapServer Users List >> >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> >>>On Behalf Of Kralidis,Tom [Burlington] >>>Sent: Monday, 17 October, 2005 12:29 >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: Re: [UMN_MAPSERVER-USERS] Upgrade Problems - >> >>Additional Info >> >>> >>> >>>>On 10/17/05, Kralidis,Tom [Burlington] >> >> wrote: >> >>>>>Is or has something happened to the way the .ovf or underlying OGR >>>>>process handles precision of coordinates when doing >> >>spatial filters? >> >>>>Tom, >>>> >>>>I haven't dug through the previous emails closely to see >> >>what is going >> >>>>on, but I thought I should answer this. >>>> >>>>There has been a substantial improvement in the amount of precision >>>>OGR maintains for WKT and GML encodings of geometries. The changes >>>>were applied a couple months ago. >>>>They are definately in GDAL/OGR 1.3.1 and might be in 1.3.0. >>>> >>>>OGR spatial filtering will also now use GEOS if built-in. It is >>>>possible that some "on the edge" situations would give different >>>>results now compared to in the past. >>>> >>>>I'm not sure if any of this relates to the problem you are seeing >>>>though. >>> >>> >>>Thanks for the info. I don't think these instances are >> >>using WKT/GML >> >>>as input or output, if that's what you mean. Basic .ovf >> >>connection to >> >>>provide WMS output. Is there anything we can do on our end to help >>>with this issue? The problem is basically: >>> >>>ENVIRONMENT >>>=========== >>> >>>OS: Win32 >>>MapServer: 4.6.1 windows dist (non ms4w package from >>>http://maptools.org/dl) >>>Layer Data connection: OGR .ovf connection to M$ SQL Server 2000 >>> >>>SCENARIO 1 >>>========== >>> >>>- invoke OGC:WMS GetMap request against said layer with coordinates >>>formatted with 8 decimals >>> >>> >> >>http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=G >> >>>et >>> >> >>Map&layers=CABINPoints&styles=&bbox=-141.00000000,35.18749999, >>-51.999999 >> >>>99,90.81250000&format=image/png&srs=EPSG:4326&width=500&height=300 >>> >>>Result: works >>> >>>SCENARIO 2 >>>========== >>> >>>- invoke OGC:WMS GetMap request against said layer with coordinates >>>formatted with 9 decimals >>> >>> >> >>http://cabin.cciw.ca/cabin_ows.asp?version=1.1.1&service=WMS&request=G >> >>>et >>> >> >>Map&layers=CABINPoints&styles=&bbox=-141.000000002,35.18749999 >>8,-51.9999 >> >>99997,90.812500001&format=image/png&srs=EPSG:4326&width=500&height=300 >> >>>Result: watch server timeout ensue >>> >>>NOTES >>>===== >>>- this does not exist when the layer data connection is a >> >>shapefile, >> >>>for example >>> >>>..Tom >>> >>> >> >>-- >>---------------------------------------------------------------- >>Assefa Yewondwossen >>Software Analyst >> >>Email: assefa at dmsolutions.ca >>http://www.dmsolutions.ca/ >> >>Phone: (613) 565-5056 (ext 14) >>Fax: (613) 565-0925 >>---------------------------------------------------------------- >> >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Wed Oct 26 12:02:11 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 26 Oct 2005 15:02:11 -0400 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] Using WMS time dimension with rasters?] Message-ID: forwarding comments to the list. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An embedded message was scrubbed... From: Jeff Schmaltz Subject: Re: [UMN_MAPSERVER-USERS] Using WMS time dimension with rasters? Date: Wed, 26 Oct 2005 14:51:31 -0400 Size: 3738 URL: From hunt at EECS.OREGONSTATE.EDU Wed Oct 26 11:58:40 2005 From: hunt at EECS.OREGONSTATE.EDU (David) Date: Wed, 26 Oct 2005 11:58:40 -0700 Subject: SVG Message-ID: Does MapServer have any support for SVG and if so could someone please point me to the documentation. Thank you, David Hunt hunt at eecs.orst.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Wed Oct 26 12:14:19 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 26 Oct 2005 15:14:19 -0400 Subject: SVG In-Reply-To: <006401c5da5f$4a4807b0$5b8cc180@bitchzduccwlb3> Message-ID: There is a base support of SVG. Specfics of what is supported can be found in the docs at : http://mapserver.gis.umn.edu/doc/svg-howto.html Later, David wrote: > Does MapServer have any support for SVG and if so could someone please > point me to the documentation. > > Thank you, > David Hunt > hunt at eecs.orst.edu -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jeff2005 at SVS.GSFC.NASA.GOV Wed Oct 26 12:20:40 2005 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 26 Oct 2005 15:20:40 -0400 Subject: Using WMS time dimension with rasters? In-Reply-To: <435FD2B3.7070806@dmsolutions.ca> Message-ID: > Jeff Schmaltz wrote: > But looking at Appendix B & C of the WMS 1.1.1 spec, it's not clear to me if > this combining of multiple extents and extent types is legal? Per Table C.1 of WMS 1.1.1, this is legal: 2004-09-21/2004-09-25/P1D, 2004-09-29/2004-10-31/P1D However, the example you gave with a single value in the middle of a set of ranges is neither forbidden nor explicitly permitted: 2004-09-21/2004-09-25/P1D, 2004-09-27, 2004-09-29/2004-10-31/P1D (sorry about that ambiguity in the spec). You would be better off making the middle one similar to the others: 2004-09-21/2004-09-25/P1D, 2004-09-27/2004-09-27/P1D, 2004-09-29/2004-10-31/P1D -Jeff DLB Editor P.S. Although time support in WMS clients and servers has traditionally been poor, I think we will see more of it as providers with interesting time-dependent datasets start putting them on line. From hunt at EECS.OREGONSTATE.EDU Wed Oct 26 12:35:46 2005 From: hunt at EECS.OREGONSTATE.EDU (David) Date: Wed, 26 Oct 2005 12:35:46 -0700 Subject: Switching from SVG maps to standard image types Message-ID: Has anyone developed a interface that based on the user input the interface can switch from rendering as svg to standard image rendering? If so what is the simplest way to achieve the switch. Thanks David Hunt hunt at eecs.orst.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Wed Oct 26 12:55:38 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 26 Oct 2005 15:55:38 -0400 Subject: faint TT fonts Message-ID: The following message was sent by "Charlton Purvis" on Tue, 25 Oct 2005 12:20:28 -0400. > > I'm probably missing something, but could it just be the colormapping > > due to the background that is making the arrows look different? > > They appear to be the same size. > > Thanks, Lowell, but it doesn't look like the background makes a difference. > Please see attachments. Charlton, Wow. Does one mapfile have the labels antialiased while the other doesn't? Lowell From amsabuncu at GMAIL.COM Wed Oct 26 13:14:35 2005 From: amsabuncu at GMAIL.COM (A.M. Sabuncu) Date: Wed, 26 Oct 2005 23:14:35 +0300 Subject: Request for help Message-ID: Hello everyone, I have just installed MapServer as part of the ka-Map toolkit, so yes, I am a newbie! My installation runs on Windows XP using Apache. When I access the ka-map page through URL "localhost/ka-map/", I get the following error:
Fatal error: [MapServer Error]: setExtent(): Given map extent is invalid. in C:\ms4w\apps\kamap-0.1.1\htdocs\init.php on line 93
Here's what the related portion of the init.php file looks like: ... $aszMapFiles = array( "weather" => array( "Global Map", "/ms4w/apps/kamap-0.1.1/htdocs/tmp/global.map", array( 100000000, 50000000, 15000000 ), "PNG") ... I have tried changing the path (/ms4w/...) to (C:\\ms4w\\...) but it didn't seem to help. Here's output from mapserv.exe -v: C:\ms4w\Apache\cgi-bin>mapserv.exe -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Any help will be most appreciated. Thanks in advance - Todd -------------- next part -------------- An HTML attachment was scrubbed... URL: From kichi at REDIFFMAIL.COM Wed Oct 26 14:11:37 2005 From: kichi at REDIFFMAIL.COM (krishnaa sridharan) Date: Wed, 26 Oct 2005 21:11:37 -0000 Subject: spatial data Message-ID: hi all i tried to upload spatial data from shp files to Postgis. When i used ogr2ogr it gave me a error saying cannont create dbname and asked me to use create db first. I have the database aldready and the service is running too. I was also not able to run the shp2psql.bat file. I got a error saying its not a internal or external command. Can some one help me with this Thanks Kris -------------- next part -------------- An HTML attachment was scrubbed... URL: From Danna.Dowdy at NOAA.GOV Wed Oct 26 14:18:57 2005 From: Danna.Dowdy at NOAA.GOV (Danna Dowdy) Date: Wed, 26 Oct 2005 17:18:57 -0400 Subject: date drop down menu Message-ID: I am working on a basic mapping application that currently displays data from a spatial database based on variable groupings. I have individual views set up for each individual layer and have the grouping set up in the legend template. I would like to add a drop down menu somewhere on the interface so that the user could select a year and plot whatever layers are chosen for that particular year. Could someone point me in the right direction of how to do this? From agenoves at GMAIL.COM Wed Oct 26 14:41:01 2005 From: agenoves at GMAIL.COM (=?ISO-8859-1?Q?Agust=EDn_Ignacio_Genoves?=) Date: Wed, 26 Oct 2005 18:41:01 -0300 Subject: Help chache image Message-ID: Hello, I have a problem when I browse the site, sometimes the browser get me a png image that was generated by other previous zoom, I suppose that the browse show me a cache image. it can be? or I have some problem with the mapserver or php or apache. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Oct 26 14:41:30 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 26 Oct 2005 17:41:30 -0400 Subject: date drop down menu In-Reply-To: <435FF2C1.3010906@noaa.gov> Message-ID: The answer depends on what API to mapserver you are using. If you are using CGI then it might be a simple as defining a form on your page the is submitted to mapserver where the drop name is YEAR and is assigned a value that is the view name and then in your mapfile use %YEAR% as a variable substitution in the DATA "... %YEAR% ..." statement. -Steve Woodbridge Danna Dowdy wrote: > I am working on a basic mapping application that currently displays data > from a spatial database based on variable groupings. I have individual > views set up for each individual layer and have the grouping set up in > the legend template. I would like to add a drop down menu somewhere on > the interface so that the user could select a year and plot whatever > layers are chosen for that particular year. Could someone point me in > the right direction of how to do this? > From kevin at PEOPLEGIS.COM Wed Oct 26 14:44:53 2005 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 26 Oct 2005 17:44:53 -0400 Subject: filter Message-ID: Do I need to set FILTERITEM or can I put the entire expression inside of FILTER? I need to filter a shapefile so that all features where [DXF_LAYER] <> 'BACKGROUND' show on my map. So, I have tried: FILTER "[DXF_LAYER] <> 'BACKGROUND' " this did not work.... How do I setup FILTER parameters for this? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin at PEOPLEGIS.COM Wed Oct 26 14:47:02 2005 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 26 Oct 2005 17:47:02 -0400 Subject: ecw files Message-ID: I am using ecw files (and sid files) on a few projects, and am wondering... 1. does mapserver have to decompress these files to use them? 2. if so, are files compressed at 20:1 ratios faster than files compressed at 100:1 ? 3. Does anyone have info on the performance of sid files compared to ecw files? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Danna.Dowdy at NOAA.GOV Wed Oct 26 14:47:31 2005 From: Danna.Dowdy at NOAA.GOV (Danna Dowdy) Date: Wed, 26 Oct 2005 17:47:31 -0400 Subject: date drop down menu In-Reply-To: <435FF80A.9090705@swoodbridge.com> Message-ID: I am using Chameleon 2.0...maybe I should post this on a different list? Sorry, I'm very new to MapServer/Chameleon.... Stephen Woodbridge wrote: > The answer depends on what API to mapserver you are using. If you are > using CGI then it might be a simple as defining a form on your page > the is submitted to mapserver where the drop name is YEAR and is > assigned a value that is the view name and then in your mapfile use > %YEAR% as a variable substitution in the DATA "... %YEAR% ..." statement. > > -Steve Woodbridge > > Danna Dowdy wrote: > >> I am working on a basic mapping application that currently displays >> data from a spatial database based on variable groupings. I have >> individual views set up for each individual layer and have the >> grouping set up in the legend template. I would like to add a drop >> down menu somewhere on the interface so that the user could select a >> year and plot whatever layers are chosen for that particular year. >> Could someone point me in the right direction of how to do this? >> > From pcreso at PCRESO.COM Wed Oct 26 14:53:25 2005 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 26 Oct 2005 14:53:25 -0700 Subject: user map on Postgres web site In-Reply-To: <5383fa5e0510251144o5a90f23evd90bd41b5e2bdd1e@mail.gmail.com> Message-ID: I guess I should apologise for the cross posting, I know this is gonna get to lots of people more than once, but hopefully it will be of enough interest that you'll at least read one of them :-) There has recently been a thread on the Postgres user list about a web based postgres user/developer map. Claire has built a Google map based system, getting locations from IP addresses. I suggested a fully Open Source based system might be appropriate, and could even be a OS GIS suite showcase (applications and global raster & vector data) if anyone wanted to take it that far. Postgres/Postgis/mapserver seems the obvious mix, though I admit it is not the only one. ka-map could also fit in there... as well as plenty of other OS web-mapping related packages. A small minority of Postgres users seem to use spatial data, and this could present & foster a Postgres based solution for anyone interested in adding location functionality to existing Postgres implementations. So, is anyone out there in OS GIS world interested in becoming part of a team to help put this together? Brent Wood On Wed, 26 Oct 2005, Claire McLister wrote: > I took a look at your map, this is great wonderful that you were > already thinking along these lines. > > Looks like there are two issues here: (1) Getting the data points for > users/developers maps, and (2) using the most appropriate mapping > technology. > > I think we can use the Zeemaps service (http://www.zeemaps.com) for > number (1) above. The way this works is that you create a map and set a > few passwords: (a) moderator, (b) member, and (c) viewer. Using the > moderator password, you can set certain map properties, e.g., > attributes to maintain with each entry, color legends, etc. With a > member password you can modify entries and their attributes, and with a > viewer password you can just see details without the ability to modify > anything. A casual user can just see the map with the markers and their > names, without access to any details for the entries. Hence > distributing the member password to the group and having each person > add his or her details would be a good way to go. The number of points > for Postgresql users can, of course, go pretty high. So far, we have > seen reasonable performance with up to 500-600 markers. I don't know if > there is an easy way of partitioning the user base into segments that > can fit within this range. Another idea would be to just split the map > after say 500 points. > > For the number (2) the choice seems to be between Google Maps vs. > Mapserver and its associated Open Source tools. Having looked at > Brent's follow up emails, it seems that Mapserver and associated > toolkits can give much more flexibility. Plus they have the advantage > that we are not limited by Google's terms, the most annoying of which > is that you cannot save, copy, or distribute the map images created. > So, it seems best to move towards the Open Source alternatives, > specially since they have better images as Brent points out. I've been > looking at some of the Mapserver toolkits, and there seems to be an > overwhelming amount of choice available for what to pick and not. So, I > don't feel qualified to pick the right technologies to use for the base > implementation. If someone can pick the mantle on that, I'd be happy to > work with that person to see how we can exchange information from the > map points stored from (1). If for the time being you feel comfortable > continuing with Google Maps, then there's multiple ways we can share > information developed by (1) through some kind of a web service API. > > Claire From warmerdam at POBOX.COM Wed Oct 26 14:54:06 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 26 Oct 2005 17:54:06 -0400 Subject: ecw files In-Reply-To: Message-ID: On 10/26/05, Kevin Flanders wrote: > > I am using ecw files (and sid files) on a few projects, and am wondering... > > 1. does mapserver have to decompress these files to use them? Kevin, Only selected portions of the source file are extracted and then used to assemble the image for the area of interest. The whole file is not decompressed. > 2. if so, are files compressed at 20:1 ratios faster than files compressed > at 100:1 ? I would actually *expect* 100:1 images decompress faster since less data needs to be read from disk, but I haven't verified this. > 3. Does anyone have info on the performance of sid files > compared to ecw files? I haven't done a good comparison, but experience I has suggest they are at least roughly similar in speed. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From matt0177 at GMAIL.COM Wed Oct 26 15:47:44 2005 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Wed, 26 Oct 2005 15:47:44 -0700 Subject: WFS layer display problem Message-ID: I have a layer (pulling from a shapefile) set up on my server set up to share as a wfs layer. The layer displays properly, when tapped via a getfeature request, the data comes back parsed properly with no errors, when using a chameleon experssionbuilder widget, I can see each of the headers for my columns of data. However, when I try to tap that wfs layer to display it in a mapserver, I instantly get a red x in the upper left corner and my map won't load. Even tyring to tap it in the same mapfile (as a wfs connection to the url) gives me errors. here is the layer attempting to tap the working layer (note, this is on a intranet): LAYER NAME wfs_sightings_test TYPE POINT STATUS off CONNECTIONTYPE WFS CONNECTION " http://10.59.36.53:8080/cgi-bin/mapserv?map=/var/www/html/fgs/apps/chameleon-2.0/test/map/test.map&typename=sightings2004_point &" METADATA "wfs_typename" "sightings2004_point" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wms_srs" "epsg:4326" END END # Layer I've read every piece of documentation I've found, and searched every mailing list archive, and I've yet to see any reason why this should be happening. Any help would be greatly appreciated. Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Wed Oct 26 18:38:33 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 26 Oct 2005 21:38:33 -0400 Subject: filter In-Reply-To: Message-ID: Kevin, You should be able to do it without the filteritem. You should try something like FILTER ('[DXF_LAYER]' ne 'BACKGROUND') Later, Kevin Flanders wrote: > Do I need to set FILTERITEM or can I put the entire expression inside of > FILTER? > > I need to filter a shapefile so that all features where [DXF_LAYER] <> > 'BACKGROUND' show on my map. > > So, I have tried: > > FILTER "[DXF_LAYER] <> 'BACKGROUND' " > > this did not work.... > > > How do I setup FILTER parameters for this? > > > > Kevin -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From peter.misovic at GMAIL.COM Thu Oct 27 04:05:11 2005 From: peter.misovic at GMAIL.COM (Ing.Peter Misovic) Date: Thu, 27 Oct 2005 13:05:11 +0200 Subject: PHP5 mapserver + mapscript Message-ID: Dear all, at first I start work with I like to know if I can use mapserver+mapscript with php5. Thank you to all. Peter From wbronsema at DMSOLUTIONS.CA Thu Oct 27 04:30:31 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Thu, 27 Oct 2005 07:30:31 -0400 Subject: [Chameleon] WFS layer display problem In-Reply-To: Message-ID: Hi Derek, The world map demo does use Mapserver via a script alias. You say you have not had an answer from us yet, to whom did you ask a question? Cheers, Bill ________________________________________________ William A. Bronsema, C.E.T. Software & Applications Development, DM Solutions Group Inc. _____ From: chameleon-bounces at lists.maptools.org [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Bird, Derek Sent: Wednesday, October 26, 2005 7:21 PM To: Matthew Edmondson; Chameleon Users; MAPSERVER-USERS at lists.umn.edu Subject: RE: [Chameleon] WFS layer display problem Hi, this is the same question I asked on the chameleon forum ... What is occuring is the URL to your map server has a ? followed by the map and whatever parameters .. The Chameleon all then takes that URL and automatically appends a ? to the URL, you can not have two ? marks in a URL. The only solution I know of would be to create an alias in Apache for your map... ie http://10.59.36.53:8080/cgi-bin/mapserv?map=/var/www/html/fgs/apps/chameleon -2.0/test/map/test.map &typename=sightings2004_point becomes http://10.59.36.53:8080/cgi-bin/maptest then it will work great. If you notice DMS has their world map demo does not go through mapserv .... They must either have an scriptalias or some custom cgi script. I have not had an answer from them yet... Regards, Derek -----Original Message----- From: chameleon-bounces at lists.maptools.org on behalf of Matthew Edmondson Sent: Wed 26/10/2005 6:47 PM To: Chameleon Users; MAPSERVER-USERS at lists.umn.edu Cc: Subject: [Chameleon] WFS layer display problem I have a layer (pulling from a shapefile) set up on my server set up to share as a wfs layer. The layer displays properly, when tapped via a getfeature request, the data comes back parsed properly with no errors, when using a chameleon experssionbuilder widget, I can see each of the headers for my columns of data. However, when I try to tap that wfs layer to display it in a mapserver, I instantly get a red x in the upper left corner and my map won't load. Even tyring to tap it in the same mapfile (as a wfs connection to the url) gives me errors. here is the layer attempting to tap the working layer (note, this is on a intranet): LAYER NAME wfs_sightings_test TYPE POINT STATUS off CONNECTIONTYPE WFS CONNECTION " http://10.59.36.53:8080/cgi-bin/mapserv?map=/var/www/html/fgs/apps/chameleon -2.0/test/map/test.map&typename=sightings2004_point&" METADATA "wfs_typename" "sightings2004_point" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wms_srs" "epsg:4326" END END # Layer I've read every piece of documentation I've found, and searched every mailing list archive, and I've yet to see any reason why this should be happening. Any help would be greatly appreciated. Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From taatuut at PLANET.NL Thu Oct 27 04:34:06 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Thu, 27 Oct 2005 13:34:06 +0200 Subject: PHP5 mapserver + mapscript Message-ID: Hello Peter, You can use MapServer and MapScript with PHP 5. For Windows you can use the precompiled binaries at http://dl.maptools.org/dl/, latest is mapserver-4.6.1-win32- php5.0.5.zip I don't know if there are any easy-installers for Linux available, the FGS installer from MapTools is for PHP 4 (http://www.maptools.org/fgs/). But you can compile all needed things yourself of course, see http://ms.gis.umn.edu/docs/howto/verboselinuxinstall for more info. Also don't forget to search the MapServer mailing list. Regards, Emil ----- Oorspronkelijk bericht ----- Van: "Ing.Peter Misovic" Datum: donderdag, oktober 27, 2005 1:05 pm Onderwerp: [UMN_MAPSERVER-USERS] PHP5 mapserver + mapscript > Dear all, > at first I start work with I like to know if I can use > mapserver+mapscript with php5. > > > Thank you to all. > > > Peter > From peter.misovic at GMAIL.COM Thu Oct 27 05:49:59 2005 From: peter.misovic at GMAIL.COM (Ing.Peter Misovic) Date: Thu, 27 Oct 2005 14:49:59 +0200 Subject: PHP5 mapserver + mapscript In-Reply-To: <435ad0a435ca68.435ca68435ad0a@planet.nl> Message-ID: Thank to all for your help. I gonna to try it under Linux. Nice day. Peter On 10/27/05, taatuut at planet.nl wrote: > Hello Peter, > > You can use MapServer and MapScript with PHP 5. > > For Windows you can use the precompiled binaries at > http://dl.maptools.org/dl/, latest is mapserver-4.6.1-win32- > php5.0.5.zip > > I don't know if there are any easy-installers for Linux available, the > FGS installer from MapTools is for PHP 4 > (http://www.maptools.org/fgs/). > > But you can compile all needed things yourself of course, see > http://ms.gis.umn.edu/docs/howto/verboselinuxinstall for more info. > > Also don't forget to search the MapServer mailing list. > > Regards, > > Emil > > > ----- Oorspronkelijk bericht ----- > Van: "Ing.Peter Misovic" > Datum: donderdag, oktober 27, 2005 1:05 pm > Onderwerp: [UMN_MAPSERVER-USERS] PHP5 mapserver + mapscript > > > Dear all, > > at first I start work with I like to know if I can use > > mapserver+mapscript with php5. > > > > > > Thank you to all. > > > > > > Peter > > > From peter.misovic at GMAIL.COM Thu Oct 27 05:53:45 2005 From: peter.misovic at GMAIL.COM (Ing.Peter Misovic) Date: Thu, 27 Oct 2005 14:53:45 +0200 Subject: Mapserver www pages Message-ID: Dear all, please, what's the difference between http://ms.gis.umn.edu/ , http://mapserver.gis.umn.edu/cgi-bin/wiki.pl , http://mapserver.gis.umn.edu/ ? Especially between 1st and 3rd ? I'm little bit lost. Thank you. Peter From BEN at SYNCERA-ITSOLUTIONS.NL Thu Oct 27 05:57:09 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 27 Oct 2005 14:57:09 +0200 Subject: Mapserver www pages Message-ID: 1. is the new website, a plone based website where registered users can contribute. 3. is the previous website, but there still has not been a formal transition between the old and the new site AFAIK. 1. and 3. are both up to date until Mapserver 4.6, but you will find new material at the Plone site already (like the Oracle Spatial HOWTO). I would recommend using the new Plone site. 2. is the wiki, which is read-only because of wiki spam. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Ing.Peter Misovic" 27-10-2005 14:53:45 >>> Dear all, please, what's the difference between http://ms.gis.umn.edu/ , http://mapserver.gis.umn.edu/cgi-bin/wiki.pl , http://mapserver.gis.umn.edu/ ? Especially between 1st and 3rd ? I'm little bit lost. Thank you. Peter From peter.misovic at GMAIL.COM Thu Oct 27 06:06:11 2005 From: peter.misovic at GMAIL.COM (Ing.Peter Misovic) Date: Thu, 27 Oct 2005 15:06:11 +0200 Subject: Mapserver www pages In-Reply-To: Message-ID: Ok Thank you. Peter On 10/27/05, Bart van den Eijnden wrote: > 1. is the new website, a plone based website where registered users can contribute. > 3. is the previous website, but there still has not been a formal transition between the old and the new site AFAIK. > > 1. and 3. are both up to date until Mapserver 4.6, but you will find new material at the Plone site already (like the Oracle Spatial HOWTO). I would recommend using the new Plone site. > > 2. is the wiki, which is read-only because of wiki spam. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> "Ing.Peter Misovic" 27-10-2005 14:53:45 >>> > Dear all, > please, what's the difference between http://ms.gis.umn.edu/ , > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl , > http://mapserver.gis.umn.edu/ ? Especially between 1st and 3rd ? I'm > little bit lost. > > Thank you. > > > Peter > > From cplist at EARTHLINK.NET Thu Oct 27 06:44:37 2005 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Thu, 27 Oct 2005 09:44:37 -0400 Subject: faint TT fonts In-Reply-To: <20051026195524.B58261A6590@mail.medinaco.org> Message-ID: > Wow. Does one mapfile have the labels antialiased while the other doesn't? They were both identical. I'll try tackling that problem when I put out some other new fires. It turns out not to be a complete show stopper. Inconvenient, yes. But if I enlarge the size of the TT font on the light version, it is legible and close enough for government work. Thanks for your troubleshooting help. Charlton From ljvillanueva at COQUIPR.COM Thu Oct 27 06:49:05 2005 From: ljvillanueva at COQUIPR.COM (Luis J. Villanueva-Rivera) Date: Thu, 27 Oct 2005 09:49:05 -0400 Subject: Help chache image In-Reply-To: Message-ID: Hi, I had a similar problem when looking at a map of a different population location. I think this situation is related to the web browser or the network's cache. The way to solve this (since you can't control each users' cache settings) is to generate a random name, save the file using the random name, and serving the image by calling the name of the saved file. Of course, this will add another maintenance task by having to empty the image dir from time to time, depending on the usage. Luis J. Villanueva-Rivera, B.S. San Juan, Puerto Rico ljvillanueva at coquipr.com http://www.CoquiPR.com http://www.AvesPR.org Agust?n Ignacio Genoves wrote: > ------=_Part_9042_12245619.1130362861941 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline > > Hello, I have a problem when I browse the site, sometimes the browser get m= > e > a png image that was generated by other previous zoom, I suppose that the > browse show me a cache image. it can be? or I have some problem with the > mapserver or php or apache. > Regards > From work at XWB.COM Thu Oct 27 07:10:42 2005 From: work at XWB.COM (Chip Taylor) Date: Thu, 27 Oct 2005 07:10:42 -0700 Subject: Re-center map on supplied XY Message-ID: I have a map with no scripting (all CGI-based with HTML) that I'd like to provide a way for the user to enter a longitude and latitude in text boxes, hit submit, and recenter the map with current layers, size, etc on the supplied latitude and longitude. I know that the CGI passes the variables mapx and mapy that tells you where the current map is centered, but if I create a textboxes with id's and names of mapx and mapy, after these are filled in with the desired values and the form is submitted the map is not centered on these coordinates. What am I doing wrong? Is what I want possible? Chip Taylor Prepared Response, Inc. 1127 Broadway Plaza, Suite 204 Tacoma, WA 98402 O 253.272.1730 M 253.948.2525 STATEMENT OF CONFIDENTIALITY The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify Prepared Response, Inc. immediately at (206) 223-5544 and destroy all copies of this message and any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hunt at ZEDXINC.COM Thu Oct 27 07:14:02 2005 From: hunt at ZEDXINC.COM (Aaron D. Hunt) Date: Thu, 27 Oct 2005 10:14:02 -0400 Subject: javascript orthographic to lat,lon Message-ID: Does anyone know of an javascript functions to convert from orthographic to lat, lon and vis versa. Aaron From warmerdam at POBOX.COM Thu Oct 27 07:26:17 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 27 Oct 2005 10:26:17 -0400 Subject: javascript orthographic to lat,lon In-Reply-To: <4360E0AA.3000301@zedxinc.com> Message-ID: On 10/27/05, Aaron D. Hunt wrote: > Does anyone know of an javascript functions to convert from orthographic > to lat, lon and vis versa. Aaron, MapBuilder (http://mapbuilder.sourceforge.net) includes JavaScript implementations of a number of common projections, I'm not sure if this includes orthographic. I would suggest checking there, and talking to Mike Adair if you need additional support. I believe he does all the projections related work on MapBuilder. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From abe.gillespie at GMAIL.COM Thu Oct 27 08:28:40 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Thu, 27 Oct 2005 11:28:40 -0400 Subject: About Current Map Scale Message-ID: This is just a courtesy post. Some time ago I needed the map's current scale to do certain things. I was having the problem of the map scale not being current until I ran $map->draw(). I was disappointed this was the only way I could do this since it incurs a sizable performance hit. Fast forward a few months ... I just stumbled across $map->prepareQuery(). It does exactly what I need! Looks like this was a long-forgotten func since no one else on the list could offer any better ideas over $map->draw(); So ... hope this helps others. And thanks, list, for all the awesome help all the time. -Abe From stevem at SPATIALMAPPING.COM Thu Oct 27 10:01:41 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Thu, 27 Oct 2005 12:01:41 -0500 Subject: sde passwords Message-ID: There is also an example in the mapfile documentation: http://mapserver.gis.umn.edu/doc46/mapfile- reference.html#variablesubstitution Some things to think about if you're considering using this technique: Cookies, like any other HTTP header, are sent over the wire in plain text, so anyone who can sniff your network traffic can see them. And a cookie, once set in your browser, is re-sent in *every* request to the origin server, giving even casual sniffers plenty of opportunities to grab your passwords. Finally, even if your network traffic is secure, you need to be aware of the kinds of cookies you use. Session cookies are fairly safe, since they vanish when you close your browser. Persistent cookies are more dangerous, since they will be stored in some browser-specific way that may be easy for others to view. If you don't like the idea of storing your passwords in plain text files, then you should not want your browser to do essentially the same thing in its cookie-store. Just my $0.02, -SM -- On Wed, 26 Oct 2005 11:55:44 -0500, Steve Lime wrote: >We've been using cookies as a way to pass a username/password to >MapServer. For example, our application will prompt users for a username >and password when they first try to hit an SDE layer and use session >cookies to store it. Then via the MapServer CGI you can insert those >cookies directly into the connection URL: > > CONNECTIONTYPE SDE > CONNECTION "sde.dnr.state.mn.us,mycoverage,dummy,%username%,%password%" > >Steve > >>>> Kevin Flanders 10/26/05 10:59 AM >>> >For connections to SDE, how are folks protecting password information? > > > >Kevin From mclister at ZEESOURCE.NET Thu Oct 27 10:21:14 2005 From: mclister at ZEESOURCE.NET (Claire McLister) Date: Thu, 27 Oct 2005 10:21:14 -0700 Subject: [GENERAL] Map of Postgresql Users (OT) In-Reply-To: <200510262102.27259.xzilla@users.sourceforge.net> Message-ID: Good point. This might actually be a problem. Google Maps API requires each server that is serving the map to be registered with Google, and send the corresponding key when making the Javascript request. Unless the mirrors can each send their own keys, this will not work. Claire On Oct 26, 2005, at 6:02 PM, Robert Treat wrote: > On Wednesday 26 October 2005 18:24, Claire McLister wrote: >> On Oct 26, 2005, at 2:08 PM, Brent Wood wrote: >>> There has recently been a thread on the Postgres user list about a >>> web >>> based postgres user/developer map. Claire has built a Google map >>> based >>> system, getting locations from IP addresses. >> >> Just so people know, this map can be found at: >> >> http://www.zeesource.net/maps/map.do?group=456 >> > > I'm going to loop in a few more people here :-), namely the pg web > team who > will probably be able to give pointers on site integration. One thing > to keep > in mind is that the postgresql website is statically mirrored onto a > number > of different servers, so any solution we come up with will ideally > allow > itself to that. I believe a google maps system can do this (we can > mirror the > javascript code and the location/data file on all mirrors and the > google map > will work with it as is), which is why I originally went with that > type of > solution. > > -- > Robert Treat > Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL From fcollier at PREPAREDRESPONSE.COM Thu Oct 27 10:54:48 2005 From: fcollier at PREPAREDRESPONSE.COM (Frances Collier) Date: Thu, 27 Oct 2005 10:54:48 -0700 Subject: mapserver postgis connection Message-ID: Hello, I've been trying to find out what exactly Mapserver gets back from Postgis when querying the tables. I haven't found this to be documented anywhere. Does Postgis return a shape file, layer, or simply data rows? The reason I'm asking is that I noticed a huge time difference between connecting to Postgis and simply calling the shape files - with the Postgis being significantly slower I'd appreciate any knowledge, advice, and/or direction. Thank you, Frances Collier -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu Oct 27 11:23:23 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 27 Oct 2005 14:23:23 -0400 Subject: mapserver postgis connection In-Reply-To: Message-ID: Frances Collier wrote: > Hello, > > > > I?ve been trying to find out what exactly Mapserver gets back from > Postgis when querying the tables. I haven?t found this to be documented > anywhere. Does Postgis return a shape file, layer, or simply data rows? > The reason I?m asking is that I noticed a huge time difference between > connecting to Postgis and simply calling the shape files ? with the > Postgis being significantly slower > > > > I?d appreciate any knowledge, advice, and/or direction. Frances, PostGIS IS slower than shapefiles because: 1) You have to make a network of local connection to the database which include some kind of authentication. 2) You have to do a query to fetch some data 3) The data needs to be transformed from its native PostGIS format into whatever mapserver uses internally 4) all the data has to packaged up into packets to transfer from the server to the client (mapserver) 5) probably other stuff too So why would anyone want to use it? Well you can do lots of cool GIS like things with it. You data might be stored there for other purposes, like it is bing dynamically updated by other process. You need to do thematic mapping, etc, etc Should you put all or any of your data in PostGIS? Depends on your need. If all you data is static data and you are only display maps of it then probably not. Use shapefiles as they are most efficient. You can take a hybrid approach of having some static layer in shapefiles and some other layers in postGIS. If you are doing queries the only look at a small percentage of the data then postGIS queries can be optimized maybe to speed things up. If you are just recalling all you data when zoomed out maybe you need another layer where the data in simplified for that. -Steve W. http://imaptools.com From e108727 at METU.EDU.TR Thu Oct 27 11:55:16 2005 From: e108727 at METU.EDU.TR (Serkan Girgin) Date: Thu, 27 Oct 2005 21:55:16 +0300 Subject: list of default layers Message-ID: Hi! As a newbie I have a question regarding default layers. Is it possible to get the list of default layers and put it into a template file through CGI interface? [layers] keyword gives a list of layers that have status=on and [toggle_layers] lists layers which status is not default, i.e. on or off. Isn't it possible to get list of default layers? (without using Mapscript) Regards, Serkan From steve.lime at DNR.STATE.MN.US Thu Oct 27 15:46:11 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 27 Oct 2005 17:46:11 -0500 Subject: Re-center map on supplied XY Message-ID: Everything's possible... ;-) You probably are running into a conflict between navigating by click and coordinate. I'd have to see the interface to be sure. But it is likely that you are telling the software to recenter 2 ways. MapServer gives priority to the click-based nav. You can fix this a couple of ways: 1) use a second form on the page for the coordinate nav so that no conflict exists, it might look like this in your template:
lon lat
The only problems with this approach is that the layers are set when the page loads so if the user changes them and then sets a point those changes are lost. Secondly, your design might not allow you to setup a second form like this. 2) when you submit the form, check the values of form vars called lat and lon using javascript and if they look valid then craft a call to mapserver using those values. Like so (assuming the form is named 'ms'): function submitMe() { if(document.ms.lat.value && document.ms.lon.value) window.location.href = '/cgi-bin/mapserv?map=[map]&scale=[scale]&layers=[layers_esc]&mapxy=' + document.ms.lon.value + '+' + document.ms.lat.value; return true; // submit as normal } This approach is the most flexible but requires javascript. I would use lat/lon for the form element names to avoid any conflct with standard MapServer parameter names. This is off the top of my head but the code above should get you started. Steve >>> Chip Taylor 10/27/05 9:10 AM >>> I have a map with no scripting (all CGI-based with HTML) that I'd like to provide a way for the user to enter a longitude and latitude in text boxes, hit submit, and recenter the map with current layers, size, etc on the supplied latitude and longitude. I know that the CGI passes the variables mapx and mapy that tells you where the current map is centered, but if I create a textboxes with id's and names of mapx and mapy, after these are filled in with the desired values and the form is submitted the map is not centered on these coordinates. What am I doing wrong? Is what I want possible? Chip Taylor Prepared Response, Inc. 1127 Broadway Plaza, Suite 204 Tacoma, WA 98402 O 253.272.1730 M 253.948.2525 STATEMENT OF CONFIDENTIALITY The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify Prepared Response, Inc. immediately at (206) 223-5544 and destroy all copies of this message and any attachments. From steve.lime at DNR.STATE.MN.US Thu Oct 27 15:50:43 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 27 Oct 2005 17:50:43 -0500 Subject: filter Message-ID: Depends on the type of filter. If it's a logical filter then no filteritem is required. If it's using regex or a straight string match then you need the filteritem. Of course this assumes you're using non-db connections. For PostGIS, Oracle and SDE the' filter is given in a native database format (i.e. a where clause). So, in your case you could try something like: FILTER ('[DXF_LAYER]' ne 'BACKGROUND') Steve >>> Kevin Flanders 10/26/05 4:44 PM >>> Do I need to set FILTERITEM or can I put the entire expression inside of FILTER? I need to filter a shapefile so that all features where [DXF_LAYER] <> 'BACKGROUND' show on my map. So, I have tried: FILTER "[DXF_LAYER] <> 'BACKGROUND' " this did not work.... How do I setup FILTER parameters for this? Kevin From taka_www at SINAMAN.COM Thu Oct 27 19:39:17 2005 From: taka_www at SINAMAN.COM (Taka Wong) Date: Thu, 27 Oct 2005 21:39:17 -0500 Subject: Displaying chinese fonts inside GML Message-ID: Hi Does anyone having experience on displaying chinese fonts? I am now using GML 2.12 as data source files, which containing a attribute values in chinese/double byte fonts, once I call any layer image embedded with a label of the chinese attribute, it had failed to show. Sometimes it can show some meaningless character, and sometimes system claimed my GML file is invalid. I have found an article from OGR, http://home.gdal.org/~warmerda/projects/wcts/imp_details.html it stated the OGR XML/GML reader only support reading 8-bit XML file, XML other than 8-bit would be fail in reading. I wonder this problem has been solved. May I have some suggestions about this problem? Thank you very much. Best Regards Taka From arnulf.christl at CCGIS.DE Fri Oct 28 03:44:11 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 28 Oct 2005 12:44:11 +0200 Subject: [Freegis-list] Re: [GENERAL] Map of Postgresql Users (OT) In-Reply-To: Message-ID: Claire McLister wrote: > Good point. This might actually be a problem. Google Maps API requires > each server that is serving the map to be registered with Google, and > send the corresponding key when making the Javascript request. > > Unless the mirrors can each send their own keys, this will not work. > > Claire Hi, more cross posting... Sounds like this task should be solved using WMS and WFS services. Google is cool but in order to foster both Open Source and standards (OGC) we would suggest to use e.g. MapServer as WMS to produce the maps and GeoServer as WFS to manage geomtries. Those OWS services could then be included in any OWS client, web interface, etc. Everything is there and ready to go, the effort to get it to run should be minimal. Our clients usually operate PostgreSQL databases with several million geometries - those 500 to 600 markers could be hosted on any antediluvian box and still be fast. You will know what to about mirroring, we would probably suggest to implement P2P - read Ward Cunninghams ideas int he keynote at the Wikimania conference this summer... We have done the user mmapping Mapbender users with tooltips, direct link to the website, etc. You can have a look at it on the project homepage http://www.mapbender.org Its done Wiki-style so that users can enter their own position (use the blue flag) or remove or edit any position (use the i-button). No user accounts yet but security and authentication is in place and have just not yet been necessary (still waiting for spatial spam...) We will spread word about spatial data management using PostgreSQL/PostGIS with MapServer, GeoServer etc. at the http://www.opendbcon.net (database fundamentals) on Nov. 8. and 9. in Frankfurt/Main, Germany. This idea is on short notice but i would be really very excited if i could show the map there! We suggest the following alterantive actions: - It should be easy to add a geometry_column to the existing PostgreSQL database which alredy has the positions. Add a GeoServer WFS to access the geomtry and a MapServer for WMS display. - Alternatively send Paolo or us or both the geo-positions and we add them to our existing OWS infrastructure (that will takt a few hours of work only). Beause there is not so much time until the conference this would just be be a prototype which should in the long run move to the PostgreSQL or PostGIS homepage or Wiki or both. Yet another idea: Mediawiki (the Wikipedia software) is also right now introducing geometries to the Wiki database - obviously also using PostgreSQL/PostGIS. This would be another cool multiplier.. and there we also meet with Google again. Best, Arnulf. > On Oct 26, 2005, at 6:02 PM, Robert Treat wrote: > >> On Wednesday 26 October 2005 18:24, Claire McLister wrote: >> >>> On Oct 26, 2005, at 2:08 PM, Brent Wood wrote: >>> >>>> There has recently been a thread on the Postgres user list about a web >>>> based postgres user/developer map. Claire has built a Google map based >>>> system, getting locations from IP addresses. >>> >>> >>> Just so people know, this map can be found at: >>> >>> http://www.zeesource.net/maps/map.do?group=456 >>> >> >> I'm going to loop in a few more people here :-), namely the pg web >> team who >> will probably be able to give pointers on site integration. One thing >> to keep >> in mind is that the postgresql website is statically mirrored onto a >> number >> of different servers, so any solution we come up with will ideally allow >> itself to that. I believe a google maps system can do this (we can >> mirror the >> javascript code and the location/data file on all mirrors and the >> google map >> will work with it as is), which is why I originally went with that >> type of >> solution. >> >> -- >> Robert Treat >> Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL > > > _______________________________________________ > Freegis-list mailing list > Freegis-list at intevation.de > https://intevation.de/mailman/listinfo/freegis-list From frans at GEODAN.NL Fri Oct 28 04:15:18 2005 From: frans at GEODAN.NL (Frans Knibbe) Date: Fri, 28 Oct 2005 13:15:18 +0200 Subject: mapserver postgis connection In-Reply-To: <43611B1B.3090307@swoodbridge.com> Message-ID: An interesting thread. Shouldn't the connection step go faster if you have FastCGI enabled in the MapServer? Also, I wonder if PostGIS would improve relative to shapefile if you have many concurrent users requesting the same data... Regards, Frans Stephen Woodbridge wrote: > Frances Collier wrote: > >> Hello, >> >> >> >> I?ve been trying to find out what exactly Mapserver gets back from >> Postgis when querying the tables. I haven?t found this to be >> documented anywhere. Does Postgis return a shape file, layer, or >> simply data rows? The reason I?m asking is that I noticed a huge time >> difference between connecting to Postgis and simply calling the shape >> files ? with the Postgis being significantly slower >> >> >> >> I?d appreciate any knowledge, advice, and/or direction. > > > Frances, > > PostGIS IS slower than shapefiles because: > > 1) You have to make a network of local connection to the database > which include some kind of authentication. > 2) You have to do a query to fetch some data > 3) The data needs to be transformed from its native PostGIS format > into whatever mapserver uses internally > 4) all the data has to packaged up into packets to transfer from the > server to the client (mapserver) > 5) probably other stuff too > > So why would anyone want to use it? > > Well you can do lots of cool GIS like things with it. You data might > be stored there for other purposes, like it is bing dynamically > updated by other process. You need to do thematic mapping, etc, etc > > Should you put all or any of your data in PostGIS? > > Depends on your need. If all you data is static data and you are only > display maps of it then probably not. Use shapefiles as they are most > efficient. You can take a hybrid approach of having some static layer > in shapefiles and some other layers in postGIS. > > If you are doing queries the only look at a small percentage of the > data then postGIS queries can be optimized maybe to speed things up. > If you are just recalling all you data when zoomed out maybe you need > another layer where the data in simplified for that. > > -Steve W. > http://imaptools.com > > From annajip at GMAIL.COM Fri Oct 28 04:47:44 2005 From: annajip at GMAIL.COM (Anna Jimenez) Date: Fri, 28 Oct 2005 06:47:44 -0500 Subject: Cadastre module? Message-ID: I'd like to know if exists any cadastre module in mapserver? I heard something like that but I can't find it. Thanks. From LVN at HVENEGAARD.DK Fri Oct 28 05:35:52 2005 From: LVN at HVENEGAARD.DK (Lars V. Nielsen) Date: Fri, 28 Oct 2005 14:35:52 +0200 Subject: OGR with SELECT + INNER JOIN using MS/SQL views ? Message-ID: Hi list, In Mapserver, I have a leyer containing polygons from a MapInfo table with only a unique ID attached. I want to append attributes from MS/SQL to each polygon, using the unique ID to match a ZoneID in MS/SQL. Unfortunately both the MapInfo table and the table on MS/SQL contain deleted polygons and records resp., so I'm using a view to filter these out, based on an "end date" attribute. Unfortunately this doesn't work - with views that is. I tried to save the view content as a table (i.e. ... 'ODBC:CFC-DB-R'.tblAZ ...), and then it worked as expected ! Normally tables and views are generally interchangeable via ODBC, but there seems to be a problem here, and I can't seem to get a grip on what it is. Has anyone else tried this feature, and gotten it to work ? My layer definition: LAYER NAME "ZONES" PROJECTION "init=EPSG:25832" END Type POLYGON CONNECTIONTYPE OGR CONNECTION "./data/mi_zones.TAB" DATA "SELECT * FROM mi_zones b LEFT JOIN 'ODBC:CFC-DB-R'.vwActiveZones a ON b.ID = a.ZoneID" STATUS ON CLASS EXPRESSION ('[ZoneID]' ne '') # (snip) END END Using Mapserver/MapScript 4.5 with Php 4.3.7 on Windows 2000. GDAL is version 1.2.5 (gdal12.dll) from december 2004. I've tried to utilize a later dated gdal library from FWTools, but to no avail. What is the latest GDAL (with OGR) version suitable for Mapserver ? Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk From warmerdam at POBOX.COM Fri Oct 28 05:56:34 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 28 Oct 2005 08:56:34 -0400 Subject: OGR with SELECT + INNER JOIN using MS/SQL views ? In-Reply-To: <006301c5dbbc$258b54f0$2f01a8c0@odin> Message-ID: On 10/28/05, Lars V. Nielsen wrote: > > Unfortunately both the MapInfo table and the table on MS/SQL contain deleted > polygons and records resp., so I'm using a view to filter these out, based > on an "end date" attribute. > > Unfortunately this doesn't work - with views that is. I tried to save the > view content as a table (i.e. ... 'ODBC:CFC-DB-R'.tblAZ ...), and then it > worked as expected ! > > Normally tables and views are generally interchangeable via ODBC, but there > seems to be a problem here, and I can't seem to get a grip on what it is. Lars, I don't have any advice on the problem with ODBC views. > Using Mapserver/MapScript 4.5 with Php 4.3.7 on Windows 2000. > > GDAL is version 1.2.5 (gdal12.dll) from december 2004. I've tried to utilize > a later dated gdal library from FWTools, but to no avail. > > What is the latest GDAL (with OGR) version suitable for Mapserver ? GDAL/OGR 1.3.1 is the latest version and it is suitable for use with MapServer. However, you can't just substitute in different version GDAL DLLs with MapServer because MapServer uses the OGR C++ API which is quite fragile. That means if you want to upgrade to a recent GDAL/OGR you will need to get a rebuilt MapServer as well. My understanding is that Assefa is now providing MapServer+PHP4 builds with GDAL 1.3.1 (as of quite recently), so you might try upgrading to that (from maptools.org). I am not convinced that this newer version will resolve your problem but there has been quite a few improvements since the version you are running. If you want to check, you might just want to try rendering your map with the "shp2img.exe" from FWTools. If that works properly then you will know that upgrading is worth the trouble. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Fri Oct 28 06:01:37 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 28 Oct 2005 09:01:37 -0400 Subject: mapserver postgis connection In-Reply-To: <43620846.3020903@geodan.nl> Message-ID: On 10/28/05, Frans Knibbe wrote: > An interesting thread. > Shouldn't the connection step go faster if you have FastCGI enabled in > the MapServer? Frans, My understanding is that PostGIS connection times are very fast so FastCGI is unlikely to give much benefit. However, if you have many PostGIS layers in the map, I would encourage at least using the CLOSE_CONNECTION=DEFER processing option to ensure the same connection is used for all the layers. This does not require FastCGI. FastCGI basically just allows preserving the connection from cgi request to cgi request. > Also, I wonder if PostGIS would improve relative to shapefile if you > have many concurrent users requesting the same data... I am dubious about that. The operating system will already preserve the shapefile data in RAM from request to request. I would think that PostGIS would pay off in speed in cases that shapefiles don't optimize well, for instance if you want to filter out most data based on an attribute column, that could be done very fast in Postgres. Other than that, as folks mention Postgres' big benefit is flexability of data integration and updatability. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Fri Oct 28 07:37:02 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 28 Oct 2005 10:37:02 -0400 Subject: mapserver postgis connection In-Reply-To: <43620846.3020903@geodan.nl> Message-ID: Frans Knibbe wrote: > An interesting thread. > Shouldn't the connection step go faster if you have FastCGI enabled in > the MapServer? I'm not an "expert" on this but it seems from previous posts that the connection for postGIS/postgres is very small and does not benefit significantly from FastCGI which adds a lot of complexity to the infrastructure. > Also, I wonder if PostGIS would improve relative to shapefile if you > have many concurrent users requesting the same data... Both postGIS and shapefiles have to access disk files, both (assuming they are setup correctly) have spatial indexes. shapefiles just have less overhead so if the application is just straight get the data from the stores and render it, shapefiles will be faster. As soon as you need to do joins and spatial operations or more complicated stuff in postGIS you get an advantage. In many cases you just can NOT do it with shapefiles, like thematic rendering based on a join. So a hybrid approach works best for me. Most of my layers are in shapefiles for speed and a few are in postGIS for functional features of that environment. The best thing to do is make some tests based on your application. You should do that anyway to check the performance tuning and identify the bottle necks to performance so you can tune those for better performance. -Steve W. > Regards, > > Frans > > Stephen Woodbridge wrote: > >> Frances Collier wrote: >> >>> Hello, >>> >>> >>> >>> I?ve been trying to find out what exactly Mapserver gets back from >>> Postgis when querying the tables. I haven?t found this to be >>> documented anywhere. Does Postgis return a shape file, layer, or >>> simply data rows? The reason I?m asking is that I noticed a huge time >>> difference between connecting to Postgis and simply calling the shape >>> files ? with the Postgis being significantly slower >>> >>> >>> >>> I?d appreciate any knowledge, advice, and/or direction. >> >> >> >> Frances, >> >> PostGIS IS slower than shapefiles because: >> >> 1) You have to make a network of local connection to the database >> which include some kind of authentication. >> 2) You have to do a query to fetch some data >> 3) The data needs to be transformed from its native PostGIS format >> into whatever mapserver uses internally >> 4) all the data has to packaged up into packets to transfer from the >> server to the client (mapserver) >> 5) probably other stuff too >> >> So why would anyone want to use it? >> >> Well you can do lots of cool GIS like things with it. You data might >> be stored there for other purposes, like it is bing dynamically >> updated by other process. You need to do thematic mapping, etc, etc >> >> Should you put all or any of your data in PostGIS? >> >> Depends on your need. If all you data is static data and you are only >> display maps of it then probably not. Use shapefiles as they are most >> efficient. You can take a hybrid approach of having some static layer >> in shapefiles and some other layers in postGIS. >> >> If you are doing queries the only look at a small percentage of the >> data then postGIS queries can be optimized maybe to speed things up. >> If you are just recalling all you data when zoomed out maybe you need >> another layer where the data in simplified for that. >> >> -Steve W. >> http://imaptools.com >> >> > From listario at GMAIL.COM Fri Oct 28 08:23:28 2005 From: listario at GMAIL.COM (J. Parapar) Date: Fri, 28 Oct 2005 17:23:28 +0200 Subject: pixmap symbol and auto SLD generation Message-ID: Hi all We have a problem with auto SLD generation in point layers with a pixmap symbol. It seems that there is a bug in the OnlineResource element. I am not an SLD expert but in http://www2.dmsolutions.ca/msapps/world_testdata/tests/sld_tests/sld_symbol_external.xml it has this format: This format works well but the auto generated SLD has this one: http://myserver/mysymbol.gif which doesn't work. The WMS server is also MapServer, both version 4.6.0 Is this a bug in the SLD generation or are we missing something? Thanks in advance, Jorge From assefa at DMSOLUTIONS.CA Fri Oct 28 09:47:31 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 28 Oct 2005 12:47:31 -0400 Subject: pixmap symbol and auto SLD generation In-Reply-To: <4ac992660510280823j4b31340bt@mail.gmail.com> Message-ID: Hi There, Thanks for reporting it. I have corrected it and you can find the fix in the latest mapserver cvs. I have also open bug 1508 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1508) to trace this problem. If there are additional issues, please add comments in the bug report. Later, J. Parapar wrote: > Hi all > > We have a problem with auto SLD generation in point layers with a > pixmap symbol. It seems that there is a bug in the OnlineResource > element. > I am not an SLD expert but in > http://www2.dmsolutions.ca/msapps/world_testdata/tests/sld_tests/sld_symbol_external.xml > it has this format: > xlink:href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"/> > This format works well but the auto generated SLD has this one: > http://myserver/mysymbol.gif which > doesn't work. > > The WMS server is also MapServer, both version 4.6.0 > > Is this a bug in the SLD generation or are we missing something? > > Thanks in advance, > Jorge > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From abe.gillespie at GMAIL.COM Fri Oct 28 09:54:48 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri, 28 Oct 2005 12:54:48 -0400 Subject: Multi res aerial imagery Message-ID: Hey Everyone, I was hoping I could get a few pointers about aerial imagery. This is my setup: Imagery format - MrSID Resolutions - 100, 200, and 400 Is there a built-in way to handle multiple resolutions like this? My idea would be something to the effect of building a spatial index (with gdaltindex) for all three resolutions into one shapefile. Then in the attribute table of the spatial index I would set a 100, 200, and 400 value according to the appropriate layer on a field named "res". Finally, in the mapfile, I'd create one raster layer with three different classes filtered according to CLASSITEM "res". Each class would in turn have the appropriate MAX and MIN scales. Can this be done? If not, is there a way to accomplish this as a single layer? Also, is there an authoritative place online where I can find information on displaying MrSIDs in MapServer (tutorials / references)? As always, thanks for the help. -Abe From rstoyle at COMCAST.NET Fri Oct 28 10:19:17 2005 From: rstoyle at COMCAST.NET (Rick S) Date: Fri, 28 Oct 2005 12:19:17 -0500 Subject: FEATUREQUERY to find where a line and polygon intersect Message-ID: I am using the Mapserver CGI. My goal is to determine all the polygons in LAYER_A that a line passes through. Currently, I have an application that will successfully return the polygon(s) that a specific point is in (using MODE=NQUERY). Now I want to take it to the next step and use a multi-segment line instead of a single point. I have been trying to do this using the FEATUREQUERY and FEATURENQUERY modes that use an SLAYER (Type POLYGON) with a single FEATURE object that contains the points that make up the line (arranged as a closed polygon). I haven't been having much luck getting the FEATUREQUERY to work though. Before I spend more time with this, can anyone tell me if I am heading down the right path? Is there an easier way? From mclister at ZEESOURCE.NET Fri Oct 28 10:45:48 2005 From: mclister at ZEESOURCE.NET (Claire McLister) Date: Fri, 28 Oct 2005 10:45:48 -0700 Subject: [pgsql-www] [Freegis-list] Re: [GENERAL] Map of Postgresql Users (OT) In-Reply-To: <436200FB.4090400@ccgis.de> Message-ID: Arnulf, Thanks for your message. I looked at the mapbender site, and it looks like it has the basic functions except the password protection, which you will probably need at some point:-) The performance from here (California) was slow, and the map image did not look as good as Google's. I suppose we have better map images available? I could not find Cunninghams talk on P2P style wiki's, but seems to me that it would be too much work for a simple web page. Ideally, we'd just want to have a static map with possibly Javascript popups. That way, the performance can be good and the web site doesn't become that onerous that the pg www group kicks us out. So, a question to you and Palo: Can you generate such static map (along with Javascript code) from Mapserver? Claire On Oct 28, 2005, at 3:44 AM, Arnulf Christl wrote: > Claire McLister wrote: >> Good point. This might actually be a problem. Google Maps API >> requires each server that is serving the map to be registered with >> Google, and send the corresponding key when making the Javascript >> request. >> Unless the mirrors can each send their own keys, this will not work. >> Claire > > Hi, more cross posting... > > Sounds like this task should be solved using WMS and WFS services. > Google is cool but in order to foster both Open Source and standards > (OGC) we would suggest to use e.g. MapServer as WMS to produce the > maps and GeoServer as WFS to manage geomtries. Those OWS services > could then be included in any OWS client, web interface, etc. > Everything is there and ready to go, the effort to get it to run > should be minimal. > > Our clients usually operate PostgreSQL databases with several million > geometries - those 500 to 600 markers could be hosted on any > antediluvian box and still be fast. You will know what to about > mirroring, we would probably suggest to implement P2P - read Ward > Cunninghams ideas int he keynote at the Wikimania conference this > summer... > > We have done the user mmapping Mapbender users with tooltips, direct > link to the website, etc. You can have a look at it on the project > homepage http://www.mapbender.org > Its done Wiki-style so that users can enter their own position (use > the blue flag) or remove or edit any position (use the i-button). No > user accounts yet but security and authentication is in place and have > just not yet been necessary (still waiting for spatial spam...) > > We will spread word about spatial data management using > PostgreSQL/PostGIS with MapServer, GeoServer etc. at the > http://www.opendbcon.net (database fundamentals) on Nov. 8. and 9. in > Frankfurt/Main, Germany. > > This idea is on short notice but i would be really very excited if i > could show the map there! We suggest the following alterantive > actions: > > - It should be easy to add a geometry_column to the existing > PostgreSQL database which alredy has the positions. Add a GeoServer > WFS to access the geomtry and a MapServer for WMS display. > - Alternatively send Paolo or us or both the geo-positions and we add > them to our existing OWS infrastructure (that will takt a few hours of > work only). > > Beause there is not so much time until the conference this would just > be be a prototype which should in the long run move to the PostgreSQL > or PostGIS homepage or Wiki or both. Yet another idea: Mediawiki (the > Wikipedia software) is also right now introducing geometries to the > Wiki database - obviously also using PostgreSQL/PostGIS. This would be > another cool multiplier.. and there we also meet with Google again. > > Best, Arnulf. > > >> On Oct 26, 2005, at 6:02 PM, Robert Treat wrote: >>> On Wednesday 26 October 2005 18:24, Claire McLister wrote: >>> >>>> On Oct 26, 2005, at 2:08 PM, Brent Wood wrote: >>>> >>>>> There has recently been a thread on the Postgres user list about a >>>>> web >>>>> based postgres user/developer map. Claire has built a Google map >>>>> based >>>>> system, getting locations from IP addresses. >>>> >>>> >>>> Just so people know, this map can be found at: >>>> >>>> http://www.zeesource.net/maps/map.do?group=456 >>>> >>> >>> I'm going to loop in a few more people here :-), namely the pg web >>> team who >>> will probably be able to give pointers on site integration. One >>> thing to keep >>> in mind is that the postgresql website is statically mirrored onto a >>> number >>> of different servers, so any solution we come up with will ideally >>> allow >>> itself to that. I believe a google maps system can do this (we can >>> mirror the >>> javascript code and the location/data file on all mirrors and the >>> google map >>> will work with it as is), which is why I originally went with that >>> type of >>> solution. >>> >>> -- >>> Robert Treat >>> Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL >> _______________________________________________ >> Freegis-list mailing list >> Freegis-list at intevation.de >> https://intevation.de/mailman/listinfo/freegis-list > > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match From abe.gillespie at GMAIL.COM Fri Oct 28 11:01:17 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri, 28 Oct 2005 14:01:17 -0400 Subject: MrSID Windows Binaries? Message-ID: As an adjunct to my previous post, are there any PHP MapScript binaries out there that have MrSID functionality compiled in? Thanks. -Abe From lneher at ON.PELMOREX.COM Fri Oct 28 13:33:57 2005 From: lneher at ON.PELMOREX.COM (Laura Neher) Date: Fri, 28 Oct 2005 15:33:57 -0500 Subject: new to mapserver - can't get map to display Message-ID: Good Afternoon! I am new to mapserver and I?m having some problems getting my map to run. I suspect the cause is either in the mapfile.map or the webpage.html or both but I can?t seem to figure out where it is. I have two files that I would like to display. The first is a polygon file of census areas that I would like to class based on population density. The second is road features. I expect to be adding more to this but I?m just trying to get a good start. Below are my mapfile.map and webpage.html files. Any assistance on what I?m missing would be greatly appreciated. Thanks! Laura MAPFILE.map # Start of map file # MAP NAME MyMap STATUS ON SIZE 600 450 # Map extent from ArcMAP dialog "Date Frame Properties > Data Frame" EXTENT -81.77192 46.095211 -80.262369 47.068479 UNITS DD SHAPEPATH "myData" TEMPLATEPATTERN "webpage" IMAGECOLOR 255 255 255 IMAGETYPE PNG # # Projection definition # In most cases, MapServer also works without a detailed definition # # PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # OR: # "init=epsg:26915" # END # # Start of reference map # # A full extent image needs to be exported from ArcMap # ("File > Export Map... > *.PNG") # The size of this image can be changed with an image editing program # REFERENCE # Name of the image file as you saved it IMAGE reference.png # Extent information from ArcMap dialog "Date Frame Properties > Data Frame" EXTENT -81.77192 46.095211 -80.262369 47.068479 # The current size of the image in pixels (see graphics program) SIZE 207 196 STATUS ON MINBOXSIZE 5 MAXBOXSIZE 100 COLOR -1 -1 -1 OUTLINECOLOR 128 0 0 MARKERSIZE 8 MARKER 'star' END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 2 TRANSPARENT TRUE STATUS ON END # # Start of layer definitions # LAYER # This layer name has to be identical to the Shapefile name for the layer # (this is a bug in MapServer) NAME Sudbury_populationi TYPE POLYGON STATUS ON # Shapefile name in folder "myData" DATA Sudbury_populationi # Five classes have been defined for population density # Class 1: CLASS EXPRESSION (([Pop_DEN] > 0) AND ([Pop_DEN] < 45)) NAME "Population Density 5-44/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 255 255 204 END END # Class 2: CLASS EXPRESSION (([Pop_DEN] > 44) AND ([Pop_DEN] < 407)) NAME "Population Density 45-406/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 194 230 154 END END # Class 3: CLASS EXPRESSION (([Pop_DEN] > 406) AND ([Pop_DEN] < 819)) NAME "Population Density 407-818/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 121 199 123 END END # Class 4: CLASS EXPRESSION (([Pop_DEN] > 818) AND ([Pop_DEN] < 1606)) NAME "Population Density 819-1605/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 49 163 83 END END # Class 5: CLASS EXPRESSION ([Pop_DEN] < 1605) NAME "Population Density 1606-2533/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 0 105 56 END END END LAYER # This layer name has to be identical to the Shapefile name for the layer # (this is a bug in MapServer) NAME Major_roads # Filename in folder "myData" DATA Major_roads TYPE LINE STATUS ON # Only one class: CLASS NAME Name STYLE COLOR 255 0 0 END END TOLERANCE 3 END END WEBPAGE.HTML MapServer - Sudbury Population Density

MapServer - Sudbury Population Density


scalebar (km)

Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend




This is a map of the Sudbury CMA region. It blah...

From lneher at ON.PELMOREX.COM Fri Oct 28 13:47:02 2005 From: lneher at ON.PELMOREX.COM (Laura Neher) Date: Fri, 28 Oct 2005 15:47:02 -0500 Subject: new to mapserver - map won't display!! Message-ID: Good Afternoon! I am new to mapserver and I?m having some problems getting my map to run. I suspect the cause is in the mapfile.map but I can?t seem to figure out where it is. I have two files that I would like to display. The first is a polygon file of census areas that I would like to class based on population density. The second is road features. I expect to be adding more to this but I?m just trying to get a good start. Any assistance on what I?m missing would be greatly appreciated. Thanks! Laura MAPFILE.map # Start of map file # MAP NAME MyMap STATUS ON SIZE 600 450 # Map extent from ArcMAP dialog "Date Frame Properties > Data Frame" EXTENT -81.77192 46.095211 -80.262369 47.068479 UNITS DD SHAPEPATH "myData" TEMPLATEPATTERN "webpage" IMAGECOLOR 255 255 255 IMAGETYPE PNG # # Projection definition # In most cases, MapServer also works without a detailed definition # # PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # OR: # "init=epsg:26915" # END # # Start of reference map # # A full extent image needs to be exported from ArcMap # ("File > Export Map... > *.PNG") # The size of this image can be changed with an image editing program # REFERENCE # Name of the image file as you saved it IMAGE reference.png # Extent information from ArcMap dialog "Date Frame Properties > Data Frame" EXTENT -81.77192 46.095211 -80.262369 47.068479 # The current size of the image in pixels (see graphics program) SIZE 207 196 STATUS ON MINBOXSIZE 5 MAXBOXSIZE 100 COLOR -1 -1 -1 OUTLINECOLOR 128 0 0 MARKERSIZE 8 MARKER 'star' END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 2 TRANSPARENT TRUE STATUS ON END # # Start of layer definitions # LAYER # This layer name has to be identical to the Shapefile name for the layer # (this is a bug in MapServer) NAME Sudbury_populationi TYPE POLYGON STATUS ON # Shapefile name in folder "myData" DATA Sudbury_populationi # Five classes have been defined for population density # Class 1: CLASS EXPRESSION (([Pop_DEN] > 0) AND ([Pop_DEN] < 45)) NAME "Population Density 5-44/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 255 255 204 END END # Class 2: CLASS EXPRESSION (([Pop_DEN] > 44) AND ([Pop_DEN] < 407)) NAME "Population Density 45-406/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 194 230 154 END END # Class 3: CLASS EXPRESSION (([Pop_DEN] > 406) AND ([Pop_DEN] < 819)) NAME "Population Density 407-818/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 121 199 123 END END # Class 4: CLASS EXPRESSION (([Pop_DEN] > 818) AND ([Pop_DEN] < 1606)) NAME "Population Density 819-1605/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 49 163 83 END END # Class 5: CLASS EXPRESSION ([Pop_DEN] < 1605) NAME "Population Density 1606-2533/sqkm" STYLE OUTLINECOLOR 110 110 110 COLOR 0 105 56 END END END LAYER # This layer name has to be identical to the Shapefile name for the layer # (this is a bug in MapServer) NAME Major_roads # Filename in folder "myData" DATA Major_roads TYPE LINE STATUS ON # Only one class: CLASS NAME Name STYLE COLOR 255 0 0 END END TOLERANCE 3 END END From steve.lime at DNR.STATE.MN.US Fri Oct 28 13:46:36 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 28 Oct 2005 15:46:36 -0500 Subject: FEATUREQUERY to find where a line and polygon intersect Message-ID: Rick: The featurequery modes require a polygon layer as input. The code could easily extended to work from lines but I've not taken the time to make that happen. Assuming you're extracting the linear feature from a dataset (e.g. a shapefile) then a featurequery is what you want. If you want to use an adhoc line then you'd want to do an nquery with either the imgshape or mapshape parameters holding the line. Sounds like test you're doing should work. I use feature queries all the time. What type of feedback from the software are you getting when you try your tests? Steve >>> Rick S 10/28/05 12:19 PM >>> I am using the Mapserver CGI. My goal is to determine all the polygons in LAYER_A that a line passes through. Currently, I have an application that will successfully return the polygon(s) that a specific point is in (using MODE=NQUERY). Now I want to take it to the next step and use a multi-segment line instead of a single point. I have been trying to do this using the FEATUREQUERY and FEATURENQUERY modes that use an SLAYER (Type POLYGON) with a single FEATURE object that contains the points that make up the line (arranged as a closed polygon). I haven't been having much luck getting the FEATUREQUERY to work though. Before I spend more time with this, can anyone tell me if I am heading down the right path? Is there an easier way? From aquiney at REFRACTIONS.NET Fri Oct 28 14:32:12 2005 From: aquiney at REFRACTIONS.NET (Adam Quiney) Date: Fri, 28 Oct 2005 14:32:12 -0700 Subject: new to mapserver - can't get map to display In-Reply-To: Message-ID: Hi Laura, Without taking too much of a glance at your mapfile, have you tried using the shp2img utility that comes with mapserver? Running it from a console (we run using linux), you would type: shp2img -m [path to mapping file]. If you have any errors in your map file, shp2img will complain, otherwise it'll spit a bunch of gibberish to your screen for you (actually an image printed out to console, but for now all you should need to worry about is whether or not it can actually create an image from your map file). This should give you a hand in determining if the problem lies in your map file or your webpage. Cheers, --Adam Laura Neher wrote: >Good Afternoon! > > > >I am new to mapserver and I?m having some problems getting my map to run. I >suspect the cause is either in the mapfile.map or the webpage.html or both >but I can?t seem to figure out where it is. > > > >I have two files that I would like to display. The first is a polygon file >of census areas that I would like to class based on population density. The >second is road features. I expect to be adding more to this but I?m just >trying to get a good start. Below are my mapfile.map and webpage.html >files. Any assistance on what I?m missing would be greatly appreciated. > > > >Thanks! > > > >Laura > > > >MAPFILE.map > > > ># Start of map file > ># > >MAP > > NAME MyMap > > STATUS ON > > SIZE 600 450 > > # Map extent from ArcMAP dialog "Date Frame Properties > Data Frame" > > EXTENT -81.77192 46.095211 -80.262369 47.068479 > > UNITS DD > > SHAPEPATH "myData" > > TEMPLATEPATTERN "webpage" > > IMAGECOLOR 255 255 255 > > IMAGETYPE PNG > > > > # > > # Projection definition > > # In most cases, MapServer also works without a detailed definition > > # > > # PROJECTION > > # "proj=utm" > > # "ellps=GRS80" > > # "zone=15" > > # "north" > > # "no_defs" > > # OR: > > # "init=epsg:26915" > > # END > > > > # > > # Start of reference map > > # > > # A full extent image needs to be exported from ArcMap > > # ("File > Export Map... > *.PNG") > > # The size of this image can be changed with an image editing program > > # > > REFERENCE > > # Name of the image file as you saved it > > IMAGE reference.png > > # Extent information from ArcMap dialog "Date Frame Properties > Data >Frame" > > EXTENT -81.77192 46.095211 -80.262369 47.068479 > > # The current size of the image in pixels (see graphics program) > > SIZE 207 196 > > STATUS ON > > MINBOXSIZE 5 > > MAXBOXSIZE 100 > > COLOR -1 -1 -1 > > OUTLINECOLOR 128 0 0 > > MARKERSIZE 8 > > MARKER 'star' > > END > > > > # > > # Start of legend > > # > > LEGEND > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > STATUS ON > > END > > > > # > > # Start of scalebar > > # > > SCALEBAR > > IMAGECOLOR 255 255 255 > > LABEL > > COLOR 0 0 0 > > SIZE TINY > > END > > STYLE 1 > > SIZE 100 2 > > COLOR 255 255 255 > > UNITS KILOMETERS > > INTERVALS 2 > > TRANSPARENT TRUE > > STATUS ON > > END > > > > # > > # Start of layer definitions > > # > > > > LAYER > > # This layer name has to be identical to the Shapefile name for the >layer > > # (this is a bug in MapServer) > > NAME Sudbury_populationi > > TYPE POLYGON > > STATUS ON > > # Shapefile name in folder "myData" > > DATA Sudbury_populationi > > # Five classes have been defined for population density > > # Class 1: > > CLASS > > EXPRESSION (([Pop_DEN] > 0) AND ([Pop_DEN] < 45)) > > NAME "Population Density 5-44/sqkm" > > STYLE > > OUTLINECOLOR 110 110 110 > > COLOR 255 255 204 > > END > > END > > # Class 2: > > CLASS > > EXPRESSION (([Pop_DEN] > 44) AND ([Pop_DEN] < 407)) > > NAME "Population Density 45-406/sqkm" > > STYLE > > OUTLINECOLOR 110 110 110 > > COLOR 194 230 154 > > END > > END > > # Class 3: > > CLASS > > EXPRESSION (([Pop_DEN] > 406) AND ([Pop_DEN] < 819)) > > NAME "Population Density 407-818/sqkm" > > STYLE > > OUTLINECOLOR 110 110 110 > > COLOR 121 199 123 > > END > > END > > # Class 4: > > CLASS > > EXPRESSION (([Pop_DEN] > 818) AND ([Pop_DEN] < 1606)) > > NAME "Population Density 819-1605/sqkm" > > STYLE > > OUTLINECOLOR 110 110 110 > > COLOR 49 163 83 > > END > > END > > # Class 5: > > CLASS > > EXPRESSION ([Pop_DEN] < 1605) > > NAME "Population Density 1606-2533/sqkm" > > STYLE > > OUTLINECOLOR 110 110 110 > > COLOR 0 105 56 > > END > > END > > END > > > > LAYER > > # This layer name has to be identical to the Shapefile name for the >layer > > # (this is a bug in MapServer) > > NAME Major_roads > > # Filename in folder "myData" > > DATA Major_roads > > TYPE LINE > > STATUS ON > > # Only one class: > > CLASS > > NAME Name > > STYLE > > COLOR 255 0 0 > > END > > END > > TOLERANCE 3 > > END > > > >END > > > > > >WEBPAGE.HTML > > > > > > > > MapServer - Sudbury Population Density > > > > > > > > > >

MapServer - Sudbury Population Density

> > > > > >

> >

onSubmit="submit_form()"> > > > > > > > > > > > > value="http://herodot.geog.utoronto.ca/tmp/"> > > > > > > > > value="C:\www\users\m9050NeL\mapfile.map"> > > > > > > > >
> >

> > > >
> >
> >
> > > > > > > > > > > > > > > > > >
> > align="center" bgcolor="#666666"> > > > > > > > > > >
width="600" height="450" border="0" alt="This is the map.">
> > scalebar (km) > >
> >
> > > >
> >
> > > > > >

> > Select Layers to Display:
> > > > > > > >

> > Zoom In > > Pan > > Zoom Out > >

> > Zoom Size > >

> > > > > > Legend


> >
> > > >

> > > >

border="0">
> >
> > > >
> >
> > > > > > > > > > > > > > > > > > > > > > > > > >
> > > >
> > > > > >

This is a map of the Sudbury CMA region. It blah...

> > > > > > > > > From Jeroen.Ticheler at FAO.ORG Fri Oct 28 14:46:58 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Fri, 28 Oct 2005 23:46:58 +0200 Subject: Using WMS time dimension with rasters? In-Reply-To: <435FD708.7080002@svs.gsfc.nasa.gov> Message-ID: Hi! Happy to see this discussion and implementation progressing! This (seeing more clients & servers with time support in WMS) is indeed very true. We are working to get temporal data online both as WMS and WCS. Having a good support for that in MapServer would be a real asset, and actually allow us to use MapServer also for these data sets. In fact, this also gets to the problem I faced so far while implementing this; One common Map file will not do to have both a WMS and WCS with time support running, they are slightly different in the way they have to be configured (the WCS needs special layer that gives an error when accessing the service as WMS, at least that is what I ran into when following the different WMS and WCS time examples). Are there plans to align the two services? Greetings, Jeroen On 26 Oct 2005, at 21:20, Jeff de La Beaujardiere wrote: >> Jeff Schmaltz wrote: >> But looking at Appendix B & C of the WMS 1.1.1 spec, it's not >> clear to me if this combining of multiple extents and extent types >> is legal? >> >> > > Per Table C.1 of WMS 1.1.1, this is legal: > 2004-09-21/2004-09-25/P1D, 2004-09-29/2004-10-31/P1D > > However, the example you gave with a single value in the middle of a > set of ranges is neither forbidden nor explicitly permitted: > 2004-09-21/2004-09-25/P1D, 2004-09-27, 2004-09-29/2004-10-31/P1D > (sorry about that ambiguity in the spec). > > You would be better off making the middle one similar to the others: > 2004-09-21/2004-09-25/P1D, 2004-09-27/2004-09-27/P1D, > 2004-09-29/2004-10-31/P1D > > -Jeff DLB > Editor > > P.S. Although time support in WMS clients and servers has > traditionally been poor, > I think we will see more of it as providers with interesting time- > dependent > datasets start putting them on line. > > From darioampuy at GMAIL.COM Fri Oct 28 14:44:04 2005 From: darioampuy at GMAIL.COM (Dario Ampuy) Date: Fri, 28 Oct 2005 18:44:04 -0300 Subject: domaingurus server Message-ID: how do i install mapserver in a domaingurus server? since i only have access to my site i only can install it in cgi mode the site rins in an intel-linux platform -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerry.creager at TAMU.EDU Fri Oct 28 14:55:10 2005 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Fri, 28 Oct 2005 16:55:10 -0500 Subject: Using WMS time dimension with rasters? In-Reply-To: Message-ID: I need to echo Jeroen's comments. We also are heading toward needing WCS time support in Mapserver. We're looking at this for meteorological datasets: satellite and radar. I don't have someone I can put on this right now but it's in the list of things when funding comes available... with the obligatory lag for a grad student to ask questions and come up to speed. gerry Jeroen Ticheler wrote: > Hi! > Happy to see this discussion and implementation progressing! This > (seeing more clients & servers with time support in WMS) is indeed > very true. We are working to get temporal data online both as WMS and > WCS. Having a good support for that in MapServer would be a real > asset, and actually allow us to use MapServer also for these data sets. > > In fact, this also gets to the problem I faced so far while > implementing this; One common Map file will not do to have both a WMS > and WCS with time support running, they are slightly different in the > way they have to be configured (the WCS needs special layer that > gives an error when accessing the service as WMS, at least that is > what I ran into when following the different WMS and WCS time examples). > Are there plans to align the two services? > > Greetings, > Jeroen > > On 26 Oct 2005, at 21:20, Jeff de La Beaujardiere wrote: > > >>> Jeff Schmaltz wrote: >>> But looking at Appendix B & C of the WMS 1.1.1 spec, it's not >>> clear to me if this combining of multiple extents and extent types >>> is legal? >>> >>> >> >> Per Table C.1 of WMS 1.1.1, this is legal: >> 2004-09-21/2004-09-25/P1D, 2004-09-29/2004-10-31/P1D >> >> However, the example you gave with a single value in the middle of a >> set of ranges is neither forbidden nor explicitly permitted: >> 2004-09-21/2004-09-25/P1D, 2004-09-27, 2004-09-29/2004-10-31/P1D >> (sorry about that ambiguity in the spec). >> >> You would be better off making the middle one similar to the others: >> 2004-09-21/2004-09-25/P1D, 2004-09-27/2004-09-27/P1D, >> 2004-09-29/2004-10-31/P1D >> >> -Jeff DLB >> Editor >> >> P.S. Although time support in WMS clients and servers has >> traditionally been poor, >> I think we will see more of it as providers with interesting time- >> dependent >> datasets start putting them on line. >> >> -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From SClark at COUNTY.LETHBRIDGE.AB.CA Fri Oct 28 15:11:39 2005 From: SClark at COUNTY.LETHBRIDGE.AB.CA (Stephen Clark) Date: Fri, 28 Oct 2005 16:11:39 -0600 Subject: Looking for a mapserver CGI interface for zoom to polygon extents based on user input Message-ID: Hi, I am looking for a mapserver CGI interface for zoom to polygon extents based on user input. I am working on a html interface to send the appropriate query string to search a polygon file "cola_section" for an attribute and then zoom to that polygon attribute extents. ... from the html file ... Zoom to Section Can anyone help me with this? Regards, Stephen Clark GIS Coordinator County of Lethbridge #100, 905 - 4th Ave South, Lethbridge, Alberta,T1J 4E4 Main: (403)328-5525 Direct: (403)380-1578 Fax: (403)328-5602 email: sclark at county.lethbridge.ab.ca From john.hagstrand at INTERAGERESEARCH.COM Fri Oct 28 15:50:06 2005 From: john.hagstrand at INTERAGERESEARCH.COM (John Hagstrand) Date: Fri, 28 Oct 2005 15:50:06 -0700 Subject: projection error Message-ID: Hello, This projection spec works fine with proj Rel. 4.4.7, 31 March 2003. PROJECTION "proj=merc" "lat_ts=0.0" "lon_0=-90.0" "x_0=0.0" "y_0=0.0" "ellps=GRS80" "no_defs" END But with proj Rel. 4.4.8, 3 May 2004, it gives me this error message: msProcessProjection(): Projection library error. major axis or radius = 0 or not given I'm using MapServer version 4.0.1. What am I missing? Thanks John ___________________ John Hagstrand www.MapTeam.com 847 838 5371 From bertelli at CHARTA.ACME.COM Sat Oct 29 05:29:03 2005 From: bertelli at CHARTA.ACME.COM (Carlo A. Bertelli) Date: Sat, 29 Oct 2005 07:29:03 -0500 Subject: MapServer users in Lebanon Message-ID: Hello, I'm beginning a project in Lebanon and I would like to know if there are fellow MapServer users in the North region or in Balaman University. TIA Carlo From sweykam at TELELINE.ES Sat Oct 29 07:53:21 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Sat, 29 Oct 2005 16:53:21 +0200 Subject: generateSLD bug Message-ID: I don't know if this bug has been filed before: generateSLD(): Some class expressions are not properly understood and create erroneous filters in XML documents. It seems that not all logical operators are recognised: This expression fieldname >20 AND fieldname <=40 results in .. PropertyIsGreaterThan ... Literal 20 instead of IsBetween and with this expression fieldname <=40 the Proterty line is completely missing I have just upgraded from MapServer/MapScript4.4 to 4.6.1 and it is still the same. From woodbri at SWOODBRIDGE.COM Sat Oct 29 17:54:17 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 29 Oct 2005 20:54:17 -0400 Subject: Dynamic Layer Creation Problem Message-ID: Hi all, I know this has been covered before but I haven't been able to find anything that helps. I'm doing perl mapscript. if ($line->{numpoints}) { warn "numpoints=$line->{numpoints}\n"; # reports 257 my $lay = new mapscript::layerObj($map); $lay->{status} = 1; $lay->{type} = $mapscript::MS_LAYER_LINE; $lay->{name} = "tsp_route"; my $class = new mapscript::classObj($lay); #$class->{status} = 1; # doesn't help my $style = new mapscript::styleObj($class); # what should the value for pen be? tried 0 and 1 to no luck $style->{color} = new mapscript::colorObj(255,0,0,1); #$style->{size} = 1; # doesn't help #$style->{symbol} = 1; # doesn't help warn "numclasses=$lay->{numclasses}\n"; # reports 1 warn "numstyles=$class->{numstyles}\n"; # reports 1 my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); $shp->add($line); $shp->draw($map, $lay, $img); } This code is running but is not drawing the polyline, $line->{numpoints} = 257 points. Yes, I know I can template this in the mapfile, but I would rather not. We have all these function in mapscript and it seems they should just work if you do the logical thing like above. -Steve W. From sgillies at FRII.COM Sat Oct 29 18:02:31 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 29 Oct 2005 19:02:31 -0600 Subject: Dynamic Layer Creation Problem In-Reply-To: Message-ID: On Oct 29, 2005, at 6:54 PM, Stephen Woodbridge wrote: > Hi all, > > I know this has been covered before but I haven't been able to find > anything that helps. I'm doing perl mapscript. > > if ($line->{numpoints}) { > warn "numpoints=$line->{numpoints}\n"; # reports 257 > my $lay = new mapscript::layerObj($map); > $lay->{status} = 1; > $lay->{type} = $mapscript::MS_LAYER_LINE; > $lay->{name} = "tsp_route"; > > my $class = new mapscript::classObj($lay); > #$class->{status} = 1; # doesn't help > > my $style = new mapscript::styleObj($class); > # what should the value for pen be? tried 0 and 1 to no luck > $style->{color} = new mapscript::colorObj(255,0,0,1); > #$style->{size} = 1; # doesn't help > #$style->{symbol} = 1; # doesn't help > > warn "numclasses=$lay->{numclasses}\n"; # reports 1 > warn "numstyles=$class->{numstyles}\n"; # reports 1 > > my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); > $shp->add($line); > $shp->draw($map, $lay, $img); > } > > This code is running but is not drawing the polyline, $line-> > {numpoints} > = 257 points. > > Yes, I know I can template this in the mapfile, but I would rather > not. > We have all these function in mapscript and it seems they should just > work if you do the logical thing like above. > > -Steve W. > Steve, You're neglecting to set the classindex attribute of your "shp" shapeObj. There are other problems in your code as well, but that's most likely the main one. Sean --- Sean Gillies sgillies at frii dot com http://zcologia.com From woodbri at SWOODBRIDGE.COM Sat Oct 29 18:25:25 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 29 Oct 2005 21:25:25 -0400 Subject: Dynamic Layer Creation Problem In-Reply-To: <05C0B2E3-83DC-4CD9-A3A7-8017648ED90A@frii.com> Message-ID: Hi Sean, Thank you for the response. I tried adding that and still no joy. The code looks like this now: if ($line->{numpoints}) { warn "numpoints=$line->{numpoints}\n"; my $lay = new mapscript::layerObj($map); $lay->{status} = 1; $lay->{type} = $mapscript::MS_LAYER_LINE; $lay->{name} = "tsp_route"; my $class = new mapscript::classObj($lay); $class->{status} = 1; my $style = new mapscript::styleObj($class); $style->{color} = new mapscript::colorObj(); $style->{color}->setRGB(255,0,0); $style->{size} = 1; $style->{symbol} = 0; warn "numclasses=$lay->{numclasses}\n"; warn "numstyles=$class->{numstyles}\n"; warn "color=" . $style->{color}->toHex() . "\n"; my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); $shp->{classindex} = 0; $shp->add($line); $shp->setBounds(); $shp->draw($map, $lay, $img); } Any other ideas, would be appreciated. -Steve W. Sean Gillies wrote: > On Oct 29, 2005, at 6:54 PM, Stephen Woodbridge wrote: > >> Hi all, >> >> I know this has been covered before but I haven't been able to find >> anything that helps. I'm doing perl mapscript. >> >> if ($line->{numpoints}) { >> warn "numpoints=$line->{numpoints}\n"; # reports 257 >> my $lay = new mapscript::layerObj($map); >> $lay->{status} = 1; >> $lay->{type} = $mapscript::MS_LAYER_LINE; >> $lay->{name} = "tsp_route"; >> >> my $class = new mapscript::classObj($lay); >> #$class->{status} = 1; # doesn't help >> >> my $style = new mapscript::styleObj($class); >> # what should the value for pen be? tried 0 and 1 to no luck >> $style->{color} = new mapscript::colorObj(255,0,0,1); >> #$style->{size} = 1; # doesn't help >> #$style->{symbol} = 1; # doesn't help >> >> warn "numclasses=$lay->{numclasses}\n"; # reports 1 >> warn "numstyles=$class->{numstyles}\n"; # reports 1 >> >> my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); >> $shp->add($line); >> $shp->draw($map, $lay, $img); >> } >> >> This code is running but is not drawing the polyline, $line-> {numpoints} >> = 257 points. >> >> Yes, I know I can template this in the mapfile, but I would rather not. >> We have all these function in mapscript and it seems they should just >> work if you do the logical thing like above. >> >> -Steve W. >> > > Steve, > > You're neglecting to set the classindex attribute of your "shp" > shapeObj. There are other problems in your code as well, but that's > most likely the main one. > > Sean > > > --- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > From woodbri at SWOODBRIDGE.COM Sat Oct 29 18:36:43 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 29 Oct 2005 21:36:43 -0400 Subject: Dynamic Layer Creation Problem In-Reply-To: <43642105.3030705@swoodbridge.com> Message-ID: Yeah! Got it to work: if ($line->{numpoints}) { warn "numpoints=$line->{numpoints}\n"; my $lay = new mapscript::layerObj($map); $lay->{status} = 1; $lay->{type} = $mapscript::MS_LAYER_LINE; $lay->{name} = "tsp_route"; my $class = new mapscript::classObj($lay); $class->{status} = 1; my $style = new mapscript::styleObj($class); $style->{color} = new mapscript::colorObj(); $style->{color}->setRGB(255,0,0); #$style->{size} = 1; #$style->{symbol} = 0; warn "numclasses=$lay->{numclasses}\n"; warn "numstyles=$class->{numstyles}\n"; warn "color=" . $style->{color}->toHex() . "\n"; my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); $shp->{classindex} = 0; $shp->add($line); $shp->setBounds(); #$shp->draw($map, $lay, $img); #<<<<< seems this does not work!!! $lay->addFeature($shp); #<< my $err = $lay->draw($map, $img); #<< But this does warn "draw err=$err\n"; #<< my $errObj = new mapscript::errorObj(); while ($errObj) { warn "$errObj->{code}:$errObj->{message}:$errObj->{routine}\n"; $errObj = $errObj->next(); } } -Steve W. Stephen Woodbridge wrote: > Hi Sean, > > Thank you for the response. I tried adding that and still no joy. The > code looks like this now: > > if ($line->{numpoints}) { > warn "numpoints=$line->{numpoints}\n"; > my $lay = new mapscript::layerObj($map); > $lay->{status} = 1; > $lay->{type} = $mapscript::MS_LAYER_LINE; > $lay->{name} = "tsp_route"; > > my $class = new mapscript::classObj($lay); > $class->{status} = 1; > my $style = new mapscript::styleObj($class); > $style->{color} = new mapscript::colorObj(); > $style->{color}->setRGB(255,0,0); > $style->{size} = 1; > $style->{symbol} = 0; > > warn "numclasses=$lay->{numclasses}\n"; > warn "numstyles=$class->{numstyles}\n"; > warn "color=" . $style->{color}->toHex() . "\n"; > > my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); > $shp->{classindex} = 0; > $shp->add($line); > $shp->setBounds(); > $shp->draw($map, $lay, $img); > } > > Any other ideas, would be appreciated. > > -Steve W. > > Sean Gillies wrote: > >> On Oct 29, 2005, at 6:54 PM, Stephen Woodbridge wrote: >> >>> Hi all, >>> >>> I know this has been covered before but I haven't been able to find >>> anything that helps. I'm doing perl mapscript. >>> >>> if ($line->{numpoints}) { >>> warn "numpoints=$line->{numpoints}\n"; # reports 257 >>> my $lay = new mapscript::layerObj($map); >>> $lay->{status} = 1; >>> $lay->{type} = $mapscript::MS_LAYER_LINE; >>> $lay->{name} = "tsp_route"; >>> >>> my $class = new mapscript::classObj($lay); >>> #$class->{status} = 1; # doesn't help >>> >>> my $style = new mapscript::styleObj($class); >>> # what should the value for pen be? tried 0 and 1 to no luck >>> $style->{color} = new mapscript::colorObj(255,0,0,1); >>> #$style->{size} = 1; # doesn't help >>> #$style->{symbol} = 1; # doesn't help >>> >>> warn "numclasses=$lay->{numclasses}\n"; # reports 1 >>> warn "numstyles=$class->{numstyles}\n"; # reports 1 >>> >>> my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); >>> $shp->add($line); >>> $shp->draw($map, $lay, $img); >>> } >>> >>> This code is running but is not drawing the polyline, $line-> >>> {numpoints} >>> = 257 points. >>> >>> Yes, I know I can template this in the mapfile, but I would rather not. >>> We have all these function in mapscript and it seems they should just >>> work if you do the logical thing like above. >>> >>> -Steve W. >>> >> >> Steve, >> >> You're neglecting to set the classindex attribute of your "shp" >> shapeObj. There are other problems in your code as well, but that's >> most likely the main one. >> >> Sean >> >> >> --- >> Sean Gillies >> sgillies at frii dot com >> http://zcologia.com >> > From sgillies at FRII.COM Sat Oct 29 19:38:18 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 29 Oct 2005 20:38:18 -0600 Subject: Dynamic Layer Creation Problem In-Reply-To: Message-ID: Excellent! My only other comment is that your creation of a new colorObj that is bound to style.color is superfluous. Remember, a styleObj already has color members, so you can simply do this: style = mapscript.styleObj(class) style.color.setRGB(255, 0, 0) It's too bad that the mapserver-users list is completely walled off from Google -- the only search engine that matters anymore -- it seems that I'm doomed to repeat this advice about style colors forever. Sean On Oct 29, 2005, at 7:36 PM, Stephen Woodbridge wrote: > Yeah! Got it to work: > > if ($line->{numpoints}) { > warn "numpoints=$line->{numpoints}\n"; > my $lay = new mapscript::layerObj($map); > $lay->{status} = 1; > $lay->{type} = $mapscript::MS_LAYER_LINE; > $lay->{name} = "tsp_route"; > > my $class = new mapscript::classObj($lay); > $class->{status} = 1; > my $style = new mapscript::styleObj($class); > $style->{color} = new mapscript::colorObj(); > $style->{color}->setRGB(255,0,0); > #$style->{size} = 1; > #$style->{symbol} = 0; > > warn "numclasses=$lay->{numclasses}\n"; > warn "numstyles=$class->{numstyles}\n"; > warn "color=" . $style->{color}->toHex() . "\n"; > > my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); > $shp->{classindex} = 0; > $shp->add($line); > $shp->setBounds(); > #$shp->draw($map, $lay, $img); #<<<<< seems this does not > work!!! > > $lay->addFeature($shp); #<< > my $err = $lay->draw($map, $img); #<< But this does > warn "draw err=$err\n"; #<< > > my $errObj = new mapscript::errorObj(); > while ($errObj) { > warn "$errObj->{code}:$errObj->{message}:$errObj->{routine} > \n"; > $errObj = $errObj->next(); > } > } > > -Steve W. > > > > Stephen Woodbridge wrote: > >> Hi Sean, >> >> Thank you for the response. I tried adding that and still no joy. The >> code looks like this now: >> >> if ($line->{numpoints}) { >> warn "numpoints=$line->{numpoints}\n"; >> my $lay = new mapscript::layerObj($map); >> $lay->{status} = 1; >> $lay->{type} = $mapscript::MS_LAYER_LINE; >> $lay->{name} = "tsp_route"; >> >> my $class = new mapscript::classObj($lay); >> $class->{status} = 1; >> my $style = new mapscript::styleObj($class); >> $style->{color} = new mapscript::colorObj(); >> $style->{color}->setRGB(255,0,0); >> $style->{size} = 1; >> $style->{symbol} = 0; >> >> warn "numclasses=$lay->{numclasses}\n"; >> warn "numstyles=$class->{numstyles}\n"; >> warn "color=" . $style->{color}->toHex() . "\n"; >> >> my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); >> $shp->{classindex} = 0; >> $shp->add($line); >> $shp->setBounds(); >> $shp->draw($map, $lay, $img); >> } >> >> Any other ideas, would be appreciated. >> >> -Steve W. >> >> Sean Gillies wrote: >> >> >>> On Oct 29, 2005, at 6:54 PM, Stephen Woodbridge wrote: >>> >>> >>>> Hi all, >>>> >>>> I know this has been covered before but I haven't been able to find >>>> anything that helps. I'm doing perl mapscript. >>>> >>>> if ($line->{numpoints}) { >>>> warn "numpoints=$line->{numpoints}\n"; # reports 257 >>>> my $lay = new mapscript::layerObj($map); >>>> $lay->{status} = 1; >>>> $lay->{type} = $mapscript::MS_LAYER_LINE; >>>> $lay->{name} = "tsp_route"; >>>> >>>> my $class = new mapscript::classObj($lay); >>>> #$class->{status} = 1; # doesn't help >>>> >>>> my $style = new mapscript::styleObj($class); >>>> # what should the value for pen be? tried 0 and 1 to no luck >>>> $style->{color} = new mapscript::colorObj(255,0,0,1); >>>> #$style->{size} = 1; # doesn't help >>>> #$style->{symbol} = 1; # doesn't help >>>> >>>> warn "numclasses=$lay->{numclasses}\n"; # reports 1 >>>> warn "numstyles=$class->{numstyles}\n"; # reports 1 >>>> >>>> my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); >>>> $shp->add($line); >>>> $shp->draw($map, $lay, $img); >>>> } >>>> >>>> This code is running but is not drawing the polyline, $line-> >>>> {numpoints} >>>> = 257 points. >>>> >>>> Yes, I know I can template this in the mapfile, but I would >>>> rather not. >>>> We have all these function in mapscript and it seems they should >>>> just >>>> work if you do the logical thing like above. >>>> >>>> -Steve W. >>>> >>>> >>> >>> Steve, >>> >>> You're neglecting to set the classindex attribute of your "shp" >>> shapeObj. There are other problems in your code as well, but that's >>> most likely the main one. >>> >>> Sean >>> >>> >>> --- >>> Sean Gillies >>> sgillies at frii dot com >>> http://zcologia.com >>> >>> >> > --- Sean Gillies sgillies at frii dot com http://zcologia.com From ivankautter at HOTMAIL.COM Sat Oct 29 21:25:02 2005 From: ivankautter at HOTMAIL.COM (Ivan Kautter) Date: Sat, 29 Oct 2005 21:25:02 -0700 Subject: MrSID gdalplugin for ms4w1.0.1 In-Reply-To: Message-ID: Date: Fri, 28 Oct 2005 12:54:48 -0400 From: Abe Gillespie Subject: Multi res aerial imagery Hey Everyone, I was hoping I could get a few pointers about aerial imagery. This is my s= etup: Imagery format - MrSID Resolutions - 100, 200, and 400 Is there a built-in way to handle multiple resolutions like this? My idea would be something to the effect of building a spatial index (with gdaltindex) for all three resolutions into one shapefile. Then in the attribute table of the spatial index I would set a 100, 200, and 400 value according to the appropriate layer on a field named "res". Finally, in the mapfile, I'd create one raster layer with three different classes filtered according to CLASSITEM "res". Each class would in turn have the appropriate MAX and MIN scales. Can this be done? If not, is there a way to accomplish this as a single layer? Also, is there an authoritative place online where I can find information on displaying MrSIDs in MapServer (tutorials / references)? As always, thanks for the help. -Abe Abe, There is a MrSID gdalpluign for ms4w1.0.1 . I have never gotten it to work, so I extracted the MrSIDs to TIFF. Check out these links and contact Frank Warmerdam directly for the plugin. http://lists.maptools.org/pipermail/ms4w-users/2005-May/000223.html http://lists.maptools.org/pipermail/ms4w-users/2005-June/000249.html Hope this helps. Ivan Kautter From woodbri at SWOODBRIDGE.COM Sun Oct 30 05:16:19 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 30 Oct 2005 08:16:19 -0500 Subject: Polygon Fill Bug? Message-ID: Hi all, I think I have found a bug or am doing something very stupid. I have a mapfile with the following layer. If I uncomment the SYMBOL in the 3rd class the polygons are filled with the color of the first class. This came about because I would like to make the outline color thicker on the 3rd class. Oh yeah, if I give a SIZE to the 3rd class, I get a strange grid of touching circle in that classes color with the water filling in between them. (see attached image). The scale=4000000 FreeBSD system, compiled from source not using the ports. woodbri at linus:/u/data/canada$ /usr/local/www/cgi-bin/mapserv -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE INPUT=POSTGIS INPUT=SHAPEFILE Other than this anomaly, all my other mapfiles are working great. Anyone else seen this? Am I doing something wrong here? Thanks, -Steve W. LAYER NAME "10M Boundary P" STATUS DEFAULT DATA "10M/bound_p" TYPE POLYGON LABELITEM "NAME" CLASSITEM "NAME" CLASS EXPRESSION "water/agua/d'eau" STYLE SYMBOL 'circle' SIZE 3 COLOR 154 197 238 OUTLINECOLOR 154 197 238 END END CLASS MINSCALE 4000100.0 STYLE COLOR 254 254 225 OUTLINECOLOR 150 150 150 END END CLASS MAXSCALE 4000100.0 STYLE #SYMBOL 'circle' SIZE 1 COLOR 254 254 225 OUTLINECOLOR 150 150 150 END LABEL FONT "arial-bold" TYPE TRUETYPE POSITION CC SIZE 7 BUFFER 4 WRAP "/" COLOR 150 150 150 OUTLINECOLOR 245 245 231 ANTIALIAS TRUE PARTIALS FALSE MINDISTANCE 250 MINFEATURESIZE 10 END END END -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-4.png Type: image/png Size: 9723 bytes Desc: not available URL: From siki at AGT.BME.HU Sun Oct 30 09:59:39 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 30 Oct 2005 16:59:39 -0100 Subject: Looking for a mapserver CGI interface for zoom to polygon extents based on user input {Scanned} {Scanned} In-Reply-To: Message-ID: Hi Clark, Add to your form. Bye Zoltan On Fri, 28 Oct 2005, Stephen Clark wrote: > Hi, > > I am looking for a mapserver CGI interface for zoom to polygon extents > based on user input. > > > I am working on a html interface to send the appropriate query string to > search a polygon file "cola_section" for an attribute and then zoom to > that polygon attribute extents. > > > ... from the html file ... > Zoom to > Section > > > > > > Can anyone help me with this? > > > > > Regards, > Stephen Clark > GIS Coordinator > County of Lethbridge > #100, 905 - 4th Ave South, Lethbridge, Alberta,T1J 4E4 > Main: (403)328-5525 > Direct: (403)380-1578 > Fax: (403)328-5602 > email: sclark at county.lethbridge.ab.ca > From lucamarle at GMAIL.COM Sun Oct 30 13:19:43 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Sun, 30 Oct 2005 13:19:43 -0800 Subject: pmapper: problem updating php4 in debian Message-ID: I got a trouble I guess with last update of php4. Now pmapper client (1.0.4) doesn't work anymore :-(( Blank window I have also this warning Failed opening required 'locale/language_.php' (include_path='.:/usr/share/php:/usr/share/pear') Anyway seems that is full of such trouble googling, a lot of demo pmapper server are down. I guess it's just a question to fix some link but where :-)? Could someone give me an hint? thanks a lot -- luca marletta icq: 70590647 From szekeres.tamas at FREEMAIL.HU Sun Oct 30 14:44:13 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Sun, 30 Oct 2005 16:44:13 -0600 Subject: loading symbols on the fly causes unhandled exception Message-ID: Hi list, When placing the file name of the image symbol (gif or png) into the map file instead of the symbol definition file an unhandled exception occurs in mapsymbol.c, line 517 call stack: ntdll.dll!RtlpWaitForCriticalSection() + 0x8a ntdll.dll!RtlEnterCriticalSection() + 0x46 bgd.dll!gdNewFileCtx at 4() + 0xe6 bgd.dll!gdImageGd2Ptr at 16() + 0x3e6 bgd.dll!gdImageCreateFromPngCtx at 4() + 0x5b bgd.dll!gdImageCreateFromPng at 4() + 0x27 > libmap.dll!msAddImageSymbol(symbolSetObj * symbolset=0x00cfa188, char * filename=0x003ffc18) Line 517 + 0xd C libmap.dll!msGetSymbolIndex(symbolSetObj * symbols=0x00cfa188, char * name=0x003ffc18, int try_addimage_if_notfound=1) Line 326 + 0xd C libmap.dll!loadMapInternal(char * filename=0x00cf9c90, char * new_mappath=0x00000000) Line 4347 + 0x48 C libmap.dll!msLoadMap(char * filename=0x00cf9c90, char * new_mappath=0x00000000) Line 4499 + 0xd C mapserv.exe!00401728() msvcr71.dll!_nh_malloc(unsigned int size=0, int nhFlag=0) Line 113 C mapserv.exe!0040473e() ntdll.dll!RtlCreateHeap() + 0x1046 ntdll.dll!LdrShutdownThread() + 0x20a4 ffff3085() Could anyone help me to fix this issue? Thanks, Tamas Szekeres From jacob.delfos at MAUNSELL.COM Sun Oct 30 20:18:16 2005 From: jacob.delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 31 Oct 2005 12:18:16 +0800 Subject: Incomplete extent of raster after reprojection - corner missing Message-ID: Hi List, I have a raster which I am reprojecting on the fly from LCC to either UTM or Latlong. I just realised that in each mapimage, it misses a small corner at the bottom-right. The background colour of the map shows through. It appears that the slice being cut out of the raster-image prior to reprojection is too small; after reprojection, the cut-out slice doesn't cover the map-image completely, because of the distortion due to reprojection. This problem occurs every time the layer is drawn. I have attached part of the map-image. The background of the map is light yellow, as is the bottom-right of the image. The height of the corner missing is typically about 8% (compared to mapimage-height). It occurs in php_mapscript version 4.4 and 4.6, using gdal 1.26 and 1.31 respectively. The raster is an ecw. It's no major drama, but I was hoping it might be easy to fix..... Regards, Jacob <> JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map.jpg Type: image/jpeg Size: 2174 bytes Desc: map.jpg URL: From warmerdam at POBOX.COM Sun Oct 30 20:19:46 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 30 Oct 2005 23:19:46 -0500 Subject: loading symbols on the fly causes unhandled exception In-Reply-To: Message-ID: On 10/30/05, Tamas Szekeres wrote: > Hi list, > > When placing the file name of the image symbol (gif or png) into the map > file instead of the symbol definition file an unhandled exception occurs > in mapsymbol.c, line 517 ... > bgd.dll!gdImageCreateFromPng at 4() + 0x27 > > libmap.dll!msAddImageSymbol(symbolSetObj * symbolset=0x00cfa188, > char * filename=0x003ffc18) Line 517 + 0xd C ... > Could anyone help me to fix this issue? Tamas, msAddImageSymbol() calls fopen() and then passes that file handle to gdImageCreateFromPng(). The gd function is in a different DLL and if either bgd.dll or libmap.lib are built with the default C library on windows, it will be unable to utilize the file descriptor opened in mapsymbol.c. Normally I avoid this by ensuring I build with the C runtime library which can be accomplished by using /MD. You also have to ensure that bgd.dll is built with a compatible runtime library. I think the normal bgd.dll is built with VC6 so you would need to use VC6 for mapserver as well. I actually thought we had restructured mapserver to avoid passing file handles to the GD png (and gif, and jpeg) functions to avoid this issue, but apparently it exists in at least this function. I would encourage you to file a bug report on it, and someone can fix it. In case that someone might end up being me, please include a minimal map file that will demonstrate the problem as I don't imagine I normally go through this function. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Sun Oct 30 20:27:57 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 30 Oct 2005 23:27:57 -0500 Subject: Incomplete extent of raster after reprojection - corner missing In-Reply-To: <4997F456680DAD4DA1E042C40C46361106B8FC@auper1ex002.au.aecomnet.com> Message-ID: On 10/30/05, Delfos, Jacob wrote: > > > Hi List, > > I have a raster which I am reprojecting on the fly from LCC to either UTM or > Latlong. I just realised that in each mapimage, it misses a small corner at > the bottom-right. The background colour of the map shows through. It appears > that the slice being cut out of the raster-image prior to reprojection is > too small; after reprojection, the cut-out slice doesn't cover the map-image > completely, because of the distortion due to reprojection. This problem > occurs every time the layer is drawn. > > I have attached part of the map-image. The background of the map is light > yellow, as is the bottom-right of the image. The height of the corner > missing is typically about 8% (compared to mapimage-height). It occurs in > php_mapscript version 4.4 and 4.6, using gdal 1.26 and 1.31 respectively. > The raster is an ecw. > > It's no major drama, but I was hoping it might be easy to fix?.. Jacob, I'm not sure why this is happening, it is not a common behavior. If you can boil this down to a simple mapfile, and raster dataset that can demonstrate this problem with a particular shp2img call then I would encourage you to submit it in bugzilla, and assign it to me. Normally mapserver does a variety of sampling along the request edges in an effort to get all the data needed. The only obvious reasons I could see for such a failure is if the projection transformation is failing for that corner. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From patrick.kosiol at GMX.DE Sun Oct 30 21:23:41 2005 From: patrick.kosiol at GMX.DE (Patrick Kosiol) Date: Mon, 31 Oct 2005 13:23:41 +0800 Subject: Authentication? Message-ID: Hi, are there any user/password authentication integrations for mapserver implemented somewhere? Regards, Patrick From siki at AGT.BME.HU Mon Oct 31 02:50:52 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 31 Oct 2005 09:50:52 -0100 Subject: Authentication? {Scanned} In-Reply-To: <4365AA5D.5080400@gmx.de> Message-ID: Hi Patric, I havn't heard about any authentication modul in mapserver, I usually use then apache auth module to add password protection to directories. You have load the auth_module, add LoadModule auth_module modules/mod_auth.so to the httpd.conf file (propaply it is involved but in comment). And add the protected directories to the httpd.conf to e.g. AutName any_name AuthType Basic AuthUserFile file_created_htpasswd Require user user_name_from_htpasswd_file If you have several users, then you can add access right to groups. See httpd.apache.org/docs/2.0/howto/auth.html Bye Zoltan On Mon, 31 Oct 2005, Patrick Kosiol wrote: > Hi, > > are there any user/password authentication integrations for mapserver > implemented somewhere? > > > Regards, > > Patrick > From karp at MSP-DORTMUND.DE Mon Oct 31 02:05:11 2005 From: karp at MSP-DORTMUND.DE (Andre Karp) Date: Mon, 31 Oct 2005 04:05:11 -0600 Subject: Performance problem with drawing several layers using Postgis Message-ID: Hi, my problem sounds a bit obscure to me, but I couldn't figure it out on my own neither searching the archive, so maybe someone of you can give me an advice: I want to use the Mapserver (cgi) to draw a map in which the polygons are colored according to a datebase attribute (I think I have to store this attribute in MySQL or Postgre since it's changed quite often through the internet, several times a day). The user should be enabled to select one, several or all layers out of a set of 15 Layers. Every layer contains the same geometry: about 400 Polygons, not too complex; the corresponding shp-file is about 1000 kB, and drawing the shapefile with mapserver overlaying it 15 times takes less than a second. First I tried accessing the attribute data which is stored in a MySQL-Database via the OGR/ODBC driver, and performance was very weak (app. 10 sec.)(the join fields where indexed). Then I tried by moving my data completly into a Postgis-based system (I also built a spatial index): performace got better, but it still takes roughly 5 sec to get a map, just drawing 15 Postgis-stored layers without any filtering or table joins and so on. The application runs on a P3-800 Mhz with 512 MB RAM and Windows 2000/Apache System (well, not really fast, but should be sufficient since it has to handle only one request a time?). I would greatly appreciate if someone could give me an idea what could be wrong with my application - thanks a lot in advance! Here the relevant parts of my Mapfile (using OGR/ODBC): LAYER NAME "Layer1" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "test.shp" DATA "SELECT * FROM test LEFT JOIN 'ODBC:user at testdb'.tbl_reg_cat ON test.ET_ID = tbl_reg_cat.et_id" PROCESSING "CLOSE_CONNECTION=DEFER" STATUS ON ... and this using PostGIS: LAYER NAME "Layer1" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "user=test1 password=pw1 dbname=test_pg host=localhost" DATA "the_geom from test" STATUS ON CLASS ... Regards, Andre Karp From frans at GEODAN.NL Mon Oct 31 02:42:32 2005 From: frans at GEODAN.NL (Frans Knibbe) Date: Mon, 31 Oct 2005 11:42:32 +0100 Subject: mapserver postgis connection In-Reply-To: <931f8ea90510280601q73373d88i482da82f69099ea6@mail.gmail.com> Message-ID: Hello Frank, Thank you for the comments. I will certainly use CLOSE_CONNECTION=DEFER if I use PostGIS. But regarding the difference in performance between PostGIS and shapefile, doesn't the indexing PostGIS/PostgreSQL can do count for anything? For large datasets, you need a spatial index. I understand that the native shapefile driver (which is the recommended way to access shapefiles according to the MapServer Reference Guide for Vector Data Access (http://www.maptools.org/dl/docs/mapserv/MsVectorDataGuide.pdf)) does not support ESRI's spatial index for shapefiles. OGR, on the other hand, can use a spatial index (see http://www.gdal.org/ogr/drv_shapefile.html). Better still, it also supports an attribute index. An attribute index could be used by MapServer if a layer has a classification based on attribute values. I really don't know how MapServer reads and sorts its data, but I can imagine an attribute index will be beneficial for layers with symbolization based on attribute values. Still, if I understand correctly, the attribute index that OGR uses can not be used if a classification based on value ranges is wanted. So is it really true that shapefiles always outperform PostGIS data, even if we are talking about big datasets with classifications? Regards, Frans Frank Warmerdam wrote: >On 10/28/05, Frans Knibbe wrote: > > >>An interesting thread. >>Shouldn't the connection step go faster if you have FastCGI enabled in >>the MapServer? >> >> > >Frans, > >My understanding is that PostGIS connection times are very fast >so FastCGI is unlikely to give much benefit. However, if you have >many PostGIS layers in the map, I would encourage at least using >the CLOSE_CONNECTION=DEFER processing option to ensure >the same connection is used for all the layers. This does not require >FastCGI. FastCGI basically just allows preserving the connection >from cgi request to cgi request. > > > >>Also, I wonder if PostGIS would improve relative to shapefile if you >>have many concurrent users requesting the same data... >> >> > >I am dubious about that. The operating system will already preserve >the shapefile data in RAM from request to request. I would think >that PostGIS would pay off in speed in cases that shapefiles don't >optimize well, for instance if you want to filter out most data based >on an attribute column, that could be done very fast in Postgres. > >Other than that, as folks mention Postgres' big benefit is flexability >of data integration and updatability. > >Best regards, >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent > > > > From woodbri at SWOODBRIDGE.COM Mon Oct 31 05:19:01 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 31 Oct 2005 08:19:01 -0500 Subject: mapserver postgis connection In-Reply-To: <4365F518.9010508@geodan.nl> Message-ID: Frans Knibbe wrote: > Hello Frank, > > Thank you for the comments. I will certainly use CLOSE_CONNECTION=DEFER > if I use PostGIS. But regarding the difference in performance between > PostGIS and shapefile, doesn't the indexing PostGIS/PostgreSQL can do > count for anything? For large datasets, you need a spatial index. I > understand that the native shapefile driver (which is the recommended > way to access shapefiles according to the MapServer Reference Guide for > Vector Data Access > (http://www.maptools.org/dl/docs/mapserv/MsVectorDataGuide.pdf)) does > not support ESRI's spatial index for shapefiles. OGR, on the other hand, This is true BUT mapserver has its own spatial index. See the utilities shptree and every *.shp should have an index *.qix find /pat/to/data -name \*.shp -exec shptree {} \; will add the spatial indexes in Linux. > can use a spatial index (see > http://www.gdal.org/ogr/drv_shapefile.html). Better still, it also > supports an attribute index. An attribute index could be used by > MapServer if a layer has a classification based on attribute values. I > really don't know how MapServer reads and sorts its data, but I can > imagine an attribute index will be beneficial for layers with > symbolization based on attribute values. Still, if I understand > correctly, the attribute index that OGR uses can not be used if a > classification based on value ranges is wanted. Other than the spatial index mentioned above mapserver does not use any other indexes like for attribute joins. Once you know what entities spatially overlap the map it cycles through all of them and renders each in turn so there is no need or benefit for other indexes. PostGIS is needed if you want to do thematic maps because a join is required is usually require to generate the theme CLASS column. > So is it really true that shapefiles always outperform PostGIS data, > even if we are talking about big datasets with classifications? Yes, unless you require a join for rendering or need to filter out a lot of data from the file/table. -Steve W. > Regards, > > Frans > > > > Frank Warmerdam wrote: > >> On 10/28/05, Frans Knibbe wrote: >> >> >>> An interesting thread. >>> Shouldn't the connection step go faster if you have FastCGI enabled in >>> the MapServer? >>> >> >> >> Frans, >> >> My understanding is that PostGIS connection times are very fast >> so FastCGI is unlikely to give much benefit. However, if you have >> many PostGIS layers in the map, I would encourage at least using >> the CLOSE_CONNECTION=DEFER processing option to ensure >> the same connection is used for all the layers. This does not require >> FastCGI. FastCGI basically just allows preserving the connection >> from cgi request to cgi request. >> >> >> >>> Also, I wonder if PostGIS would improve relative to shapefile if you >>> have many concurrent users requesting the same data... >>> >> >> >> I am dubious about that. The operating system will already preserve >> the shapefile data in RAM from request to request. I would think >> that PostGIS would pay off in speed in cases that shapefiles don't >> optimize well, for instance if you want to filter out most data based >> on an attribute column, that could be done very fast in Postgres. >> >> Other than that, as folks mention Postgres' big benefit is flexability >> of data integration and updatability. >> >> Best regards, >> -- >> ---------------------------------------+-------------------------------------- >> >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for Rent >> >> >> >> > From warmerdam at POBOX.COM Mon Oct 31 06:32:06 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 31 Oct 2005 09:32:06 -0500 Subject: mapserver postgis connection In-Reply-To: <4365F518.9010508@geodan.nl> Message-ID: On 10/31/05, Frans Knibbe wrote: > For large datasets, you need a spatial index. I > understand that the native shapefile driver (which is the recommended > way to access shapefiles according to the MapServer Reference Guide for > Vector Data Access > (http://www.maptools.org/dl/docs/mapserv/MsVectorDataGuide.pdf)) does > not support ESRI's spatial index for shapefiles. OGR, on the other hand, > can use a spatial index (see > http://www.gdal.org/ogr/drv_shapefile.html). Frans, As SteveW mentions, MapServer's native shapefile support has it's own spatial index (.qix files) and this is the same spatial index format I recently implemented in OGR. > Better still, it also > supports an attribute index. An attribute index could be used by > MapServer if a layer has a classification based on attribute values. I > really don't know how MapServer reads and sorts its data, but I can > imagine an attribute index will be beneficial for layers with > symbolization based on attribute values. Still, if I understand > correctly, the attribute index that OGR uses can not be used if a > classification based on value ranges is wanted. That is generally true. The currently very limited implementation of attribute indexes for shapefiles in OGR is just for looking up unique values for joins. > So is it really true that shapefiles always outperform PostGIS data, > even if we are talking about big datasets with classifications? No, PostGIS can have better performance for operations that require filtering on attribute columns. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From trondmm-mapserver at CRUSADERS.NO Mon Oct 31 06:35:07 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Mon, 31 Oct 2005 15:35:07 +0100 Subject: Getting UTM and stereographic projections to overlap Message-ID: Hi. I'm having a bit of trouble displaying a shapefile in UTM33-format properly together with my maps that use polar stereographic projection. I've made a small perl-program (included below) that creates two shapefiles, one with the same projection parameters as my map, and one in UTM33. Both files simply contains one point for every fifth latitude and longitude. I also have a map of Norway as a shapefile in UTM33. When I plot my basemap together with the two point layers, and the shapefile of Norway, the stereographic point layer matches the latitudes and logitudes of the basemap. The UTM33 point layer has an offset that seems to grow the further south you get. The shapefile of Norway seems to have pretty much the same offset as the UTM33 point layer Here are some examples: http://crusaders.no/~trondmm/mapserv/utm_vs_stere.png http://crusaders.no/~trondmm/mapserv/utm_vs_stere2.png http://crusaders.no/~trondmm/mapserv/utm_vs_stere3.png red dots = stereographic point layer yellow dots = UTM33 point layer Now, after some experimenting, I've found out that I can get the two point layers to overlap completely, if I change the stereographic shapefile to use the WGS84 ellipsoid. Unfortunately, my basemaps depend on a spherical earth, and it's not possible for me to convert them. So - is there anything I can do in the mapfile to get mapserver to get the layers to overlap more precisely? Here are my projection parameters from the mapfile: The Web object: PROJECTION "proj=stere" "lat_0=90" "lon_0=0" "lat_ts=60" "a=6371000" "b=6371000" "units=m" END The stereographic point layer and all basemaps: PROJECTION "proj=stere" "lat_0=90" "lon_0=0" "lat_ts=60" "a=6371000" "b=6371000" "units=m" END The UTM33-point layer and shapefile of Norway: PROJECTION "proj=utm" "zone=33" "ellps=WGS84" "datum=WGS84" "units=m" END and here's the program I used to generate the point layers: --8<-- #!/usr/bin/perl use strict; use warnings; use Geo::Proj4; use Geo::Shapelib ':constants'; my %proj = (stere => Geo::Proj4->new(proj => "stere", lat_0 => 90, lon_0 => 0, lat_ts => 60, a => 6371000, b => 6371000, units => "m", ), utm33 => Geo::Proj4->new(proj => "utm", zone => 33, ellps => "WGS84", datum => "WGS84", units => "m", ), ); while (my ($name, $proj) = each %proj) { my $shape = Geo::Shapelib->new(); $shape->{Shapetype} = POINT; $shape->{FieldNames} = [qw/POS LAT LON /]; $shape->{FieldTypes} = [qw/String:64 Double Double/]; for (my $lat = 0;$lat <= 90; $lat += 5) { for (my $lon = -30; $lon <= 30; $lon += 5) { my ($x, $y) = $proj->forward($lat, $lon); push @{$shape->{Shapes}}, {SHPType => POINT, Vertices => [[$x,$y]] }; push @{$shape->{ShapeRecords}}, ["$lat $lon", $lat, $lon, ]; } } $shape->save("shapetest_$name"); } --8<-- -- Trond Michelsen From warmerdam at POBOX.COM Mon Oct 31 07:41:22 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 31 Oct 2005 10:41:22 -0500 Subject: Getting UTM and stereographic projections to overlap In-Reply-To: <20051031143507.GR20103@crusaders.no> Message-ID: On 10/31/05, Trond Michelsen wrote: > The stereographic point layer and all basemaps: > > PROJECTION > "proj=stere" > "lat_0=90" > "lon_0=0" > "lat_ts=60" > "a=6371000" > "b=6371000" > "units=m" > END > > The UTM33-point layer and shapefile of Norway: > > PROJECTION > "proj=utm" > "zone=33" > "ellps=WGS84" > "datum=WGS84" > "units=m" > END Trond, I have you considered misrepresenting the UTM data as being on the spherical earth as well to avoid PROJ.4 trying to apply an ellipsoid translation? eg. PROJECTION "proj=utm" "zone=33" "a=6371000" "b=6371000" "units=m" 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 | Geospatial Programmer for Rent From schick at SDAC.HANNOVER.BGR.DE Mon Oct 31 07:37:02 2005 From: schick at SDAC.HANNOVER.BGR.DE (Agneta Schick) Date: Mon, 31 Oct 2005 16:37:02 +0100 Subject: make: gdal & mapserver Message-ID: Hello, I'm trying to get a newer version of mapserver installed. On sparc-sun-solaris2.8 I've installed: gd-2.0.33 gdal-1.3.1 proj-4.4.9 Making mapserver-4.6.1 results in : ... gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV -I/usr/local/include -I/usr/local/include -I/usr/local/mapserver/gdal-1.3.1/port -I/usr/local/mapserver/gdal-1.3.1/gcore -I/usr/local/mapserver/gdal-1.3.1/alg -I/usr/local/mapserver/gdal-1.3.1/ogr -I/usr/local/mapserver/gdal-1.3.1/ogr/ogrsf_frmts shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -ltiff -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg /usr/local/mapserver/gdal-1.3.1/libgdal.la -liconv -L/lib -lz -lm -o shp2img ld: fatal: file /usr/local/mapserver/gdal-1.3.1/libgdal.la: unknown file type ld: fatal: File processing errors. No output written to shp2img collect2: ld returned 1 exit status make: *** [shp2img] Error 1 gdal-1.1.8/apps/gdal-config: CONFIG_LIBS="-L/usr/local/mapserver/gdal-1.1.8 -lgdal.1.1 -ljpeg -lpng -lz -lm -ldl -L/usr/local/lib -lm" gdal-1.3.1/apps/gdal-config: CONFIG_LIBS="/usr/local/mapserver/gdal-1.3.1/libgdal.la" What should I do to get MapServer installed? Is gdal not properly installed or the gdal-config pointing to the wrong directory or the mapserver configuration not correct? All help is appreciated! Agneta Schick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Agneta Schick Bundesanstalt fuer Geowissenschaften und Rohstoffe Federal Institute for Geosciences and Natural Resources Stilleweg 2 D- 30655 Hannover Tel.: +49 511 643 3136 GERMANY FAX.: +49 511 643 3663 schick at sdac.hannover.bgr.de http://www.seismologie.bgr.de ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From warmerdam at POBOX.COM Mon Oct 31 07:55:04 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 31 Oct 2005 10:55:04 -0500 Subject: make: gdal & mapserver In-Reply-To: <200510311537.j9VFb2Aa029074@b3sn28.hannover.bgr.de> Message-ID: On 10/31/05, Agneta Schick wrote: > Hello, > > I'm trying to get a newer version of mapserver installed. > > On sparc-sun-solaris2.8 I've installed: > gd-2.0.33 > gdal-1.3.1 > proj-4.4.9 > > Making mapserver-4.6.1 results in : > ... > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR > -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV > -I/usr/local/include -I/usr/local/include > -I/usr/local/mapserver/gdal-1.3.1/port -I/usr/local/mapserver/gdal-1.3.1/gcore > -I/usr/local/mapserver/gdal-1.3.1/alg -I/usr/local/mapserver/gdal-1.3.1/ogr > -I/usr/local/mapserver/gdal-1.3.1/ogr/ogrsf_frmts shp2img.o -L. -lmap -lgd > -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -ltiff > -ljpeg -lfreetype -lpng -L/lib -lz -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg > /usr/local/mapserver/gdal-1.3.1/libgdal.la -liconv -L/lib -lz -lm -o shp2img > ld: fatal: file /usr/local/mapserver/gdal-1.3.1/libgdal.la: unknown file type > ld: fatal: File processing errors. No output written to shp2img > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > gdal-1.1.8/apps/gdal-config: > CONFIG_LIBS="-L/usr/local/mapserver/gdal-1.1.8 -lgdal.1.1 -ljpeg -lpng -lz -lm > -ldl -L/usr/local/lib -lm" > > gdal-1.3.1/apps/gdal-config: > CONFIG_LIBS="/usr/local/mapserver/gdal-1.3.1/libgdal.la" > > What should I do to get MapServer installed? Is gdal not properly installed > or the gdal-config pointing to the wrong directory or the mapserver > configuration not correct? Agneta, It looks like you are trying to build against the GDAL "build" directory rather than where it was installed. This is not normally supported. In this case the linker used by mapserver is complaining that it does not understand the format of the .la file, a "libtool" thing. I would suggest ensuring you do a "make install" in the GDAL build directory, and then using the gdal-config that gets installed, likely /usr/local/bin/gdal-config. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From trondmm-mapserver at CRUSADERS.NO Mon Oct 31 08:20:46 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Mon, 31 Oct 2005 17:20:46 +0100 Subject: Getting UTM and stereographic projections to overlap In-Reply-To: <931f8ea90510310741lde6d496q2bd5963299693916@mail.gmail.com> Message-ID: On Mon, Oct 31, 2005 at 10:41:22AM -0500, Frank Warmerdam wrote: > I have you considered misrepresenting the UTM data as > being on the spherical earth as well to avoid PROJ.4 trying > to apply an ellipsoid translation? > > eg. > PROJECTION > "proj=utm" > "zone=33" > "a=6371000" > "b=6371000" > "units=m" > END Yes, I tried that, but I didn't get it to work. I didn't notice the error message at the time, my web application would just hang while waiting for the picture. Requesting the same URL with wget revealed this error: msProcessProjection(): Projection library error. elliptical usage required If I add 1 to a, it "works". i.e. mapserver returns a picture, and the point has moved slightly closer to where it belongs. But just barely. -- Trond Michelsen From steve.lime at DNR.STATE.MN.US Mon Oct 31 09:02:22 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 31 Oct 2005 11:02:22 -0600 Subject: Polygon Fill Bug? Message-ID: Steve I can't say definitively without testing. I'll try to do that in the next day or so and get back to you. Steve >>> Stephen Woodbridge 10/30/05 7:16 AM >>> Hi all, I think I have found a bug or am doing something very stupid. I have a mapfile with the following layer. If I uncomment the SYMBOL in the 3rd class the polygons are filled with the color of the first class. This came about because I would like to make the outline color thicker on the 3rd class. Oh yeah, if I give a SIZE to the 3rd class, I get a strange grid of touching circle in that classes color with the water filling in between them. (see attached image). The scale=4000000 FreeBSD system, compiled from source not using the ports. woodbri at linus:/u/data/canada$ /usr/local/www/cgi-bin/mapserv -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE INPUT=POSTGIS INPUT=SHAPEFILE Other than this anomaly, all my other mapfiles are working great. Anyone else seen this? Am I doing something wrong here? Thanks, -Steve W. LAYER NAME "10M Boundary P" STATUS DEFAULT DATA "10M/bound_p" TYPE POLYGON LABELITEM "NAME" CLASSITEM "NAME" CLASS EXPRESSION "water/agua/d'eau" STYLE SYMBOL 'circle' SIZE 3 COLOR 154 197 238 OUTLINECOLOR 154 197 238 END END CLASS MINSCALE 4000100.0 STYLE COLOR 254 254 225 OUTLINECOLOR 150 150 150 END END CLASS MAXSCALE 4000100.0 STYLE #SYMBOL 'circle' SIZE 1 COLOR 254 254 225 OUTLINECOLOR 150 150 150 END LABEL FONT "arial-bold" TYPE TRUETYPE POSITION CC SIZE 7 BUFFER 4 WRAP "/" COLOR 150 150 150 OUTLINECOLOR 245 245 231 ANTIALIAS TRUE PARTIALS FALSE MINDISTANCE 250 MINFEATURESIZE 10 END END END From julieknoll at GMAIL.COM Mon Oct 31 10:12:39 2005 From: julieknoll at GMAIL.COM (Julie) Date: Mon, 31 Oct 2005 12:12:39 -0600 Subject: US State Labels Message-ID: Hello, Does anyone have a list of point coordinates to place state's labels on that they would be willing to share? Thanks, Julie From assefa at DMSOLUTIONS.CA Mon Oct 31 12:44:59 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 31 Oct 2005 15:44:59 -0500 Subject: generateSLD bug In-Reply-To: Message-ID: Hi There, The expression parsor will work if some rules are followed like appropriate brackets and spaces between operator and values. In your case here are the expressions that should give you a valid output: 1) EXPRESSION ([fieldname] > 20 AND [fieldname] <= 40) result : fieldname20 fieldname40 2) EXPRESSION ([fieldname] <= 40) result : fieldname40 Let me know if it works. Later, Stefanie Weykam wrote: > I don't know if this bug has been filed before: > > generateSLD(): > > Some class expressions are not properly understood and create erroneous > filters in XML documents. It seems that not all logical operators are > recognised: > > > This expression fieldname >20 AND fieldname <=40 > > results in .. PropertyIsGreaterThan ... Literal 20 > instead of IsBetween > > and with this expression fieldname <=40 > the Proterty line is completely missing > > > I have just upgraded from MapServer/MapScript4.4 to 4.6.1 and it is still > the same. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at POBOX.COM Mon Oct 31 12:45:33 2005 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 31 Oct 2005 15:45:33 -0500 Subject: antialiasing line features.. In-Reply-To: <931f8ea90510310709ifc6519dk399fd8c11e47e29c@mail.gmail.com> Message-ID: On 10/31/05, Frank Warmerdam wrote: > On 10/31/05, Flavio Hendry wrote: > > Hi Frank > > > > attached the data to test (change the PATH for data and symbols in the > > mapfiles). > > > > you can see the effects on: > > http://www.mapfinder.ch/start.php?site=temp > > (click on the 1024x768 to launch) > > Flavio, > > Thanks, I have filed this as: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1510 > > Hopefully I can fix it up before the first 4.8 beta. Flavio / Giorgio, To follow up on my own post, Howard has advised me that "TRANSPARENCY ALPHA" on the layer is the solution to this problem. I have issue an FAQ on this topic on the new web site. However, I am leaving the bugzilla entry open for this as I think a better (more automatic) solution is desirable. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From assefa at DMSOLUTIONS.CA Mon Oct 31 12:53:23 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 31 Oct 2005 15:53:23 -0500 Subject: generateSLD bug In-Reply-To: <4366824B.5010304@dmsolutions.ca> Message-ID: I also entered a general bug 1511 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1511) that notes you examples at the need to review or at least document the limitations. Later, Yewondwossen Assefa wrote: > Hi There, > > The expression parsor will work if some rules are followed like > appropriate brackets and spaces between operator and values. In your > case here are the expressions that should give you a valid output: > > 1) EXPRESSION ([fieldname] > 20 AND [fieldname] <= 40) > result : > fieldname20 > fieldname40 > > > > > 2) EXPRESSION ([fieldname] <= 40) > result : > fieldname40 > > > > Let me know if it works. > > Later, > > Stefanie Weykam wrote: > >> I don't know if this bug has been filed before: >> >> generateSLD(): >> >> Some class expressions are not properly understood and create erroneous >> filters in XML documents. It seems that not all logical operators are >> recognised: >> >> >> This expression fieldname >20 AND fieldname <=40 >> >> results in .. PropertyIsGreaterThan ... Literal 20 >> instead of IsBetween >> >> and with this expression fieldname <=40 >> the Proterty line is completely missing >> >> I have just upgraded from MapServer/MapScript4.4 to 4.6.1 and it is still >> the same. >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From stevem at SPATIALMAPPING.COM Mon Oct 31 13:19:32 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Mon, 31 Oct 2005 15:19:32 -0600 Subject: Authentication? Message-ID: Patrick: To my knowledge, there is no "out of the box" authentication system for MapServer, so it's up to individual applications to implement it. I have put an "enhancement" request into Bugzilla for simple MAP-level authentication for MapServer CGI: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1512 Of course, there's no guarantee that anyone's actually going to implement it! Since MapServer doesn't (yet) have this feature, you can still configure your web server to protect the MapServer CGI program itself, with Basic Authentication (for example). This would force all users of the MapServer CGI to provide valid credentials on every request, regardless of the map file specified. This could be acceptable if yours is the only application on the server that uses MapServer. Another alternative is to implement a CGI "wrapper" that does the authentication checks before passing valid requests along to MapServer. Incoming requests to the MapServer CGI that do not come through the wrapper would have to be rejected, but I'm not sure how this would be accomplished. Perhaps the wrapper would set an environment variable that the web server uses in a conditional statement that allows or denies access to the MapServer CGI, depending on the existence of the variable. I hope this gave you some ideas. Regards, -SM -- On Mon, 31 Oct 2005 13:23:41 +0800, Patrick Kosiol wrote: >Hi, > >are there any user/password authentication integrations for mapserver >implemented somewhere? > > >Regards, > >Patrick From steve at WORMLEY.COM Mon Oct 31 13:38:02 2005 From: steve at WORMLEY.COM (Steve Wormley) Date: Mon, 31 Oct 2005 13:38:02 -0800 Subject: Authentication? In-Reply-To: Message-ID: Currently I have a perl wrapper script which does the authentication and some various CGI parameter checks for characters I don't want for SQL queries. If it all passes I just: exec "/path/to/real/mapserv.cgi"; At the end of the script. (This is for a GET request, not a POST so the environment variables persist and I don't have to re-post data into the executed cgi.) -Steve Wormley On 2005-10-31 13:19, "Steven Monai" wrote: > Patrick: > > To my knowledge, there is no "out of the box" authentication system for > MapServer, so it's up to individual applications to implement it. > > I have put an "enhancement" request into Bugzilla for simple MAP-level > authentication for MapServer CGI: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1512 > > Of course, there's no guarantee that anyone's actually going to implement > it! > > Since MapServer doesn't (yet) have this feature, you can still configure > your web server to protect the MapServer CGI program itself, with Basic > Authentication (for example). This would force all users of the MapServer > CGI to provide valid credentials on every request, regardless of the map > file specified. This could be acceptable if yours is the only application > on the server that uses MapServer. > > Another alternative is to implement a CGI "wrapper" that does the > authentication checks before passing valid requests along to MapServer. > Incoming requests to the MapServer CGI that do not come through the wrapper > would have to be rejected, but I'm not sure how this would be accomplished. > Perhaps the wrapper would set an environment variable that the web server > uses in a conditional statement that allows or denies access to the > MapServer CGI, depending on the existence of the variable. > > I hope this gave you some ideas. > > Regards, > -SM > -- > > > > On Mon, 31 Oct 2005 13:23:41 +0800, Patrick Kosiol > wrote: > >> Hi, >> >> are there any user/password authentication integrations for mapserver >> implemented somewhere? >> >> >> Regards, >> >> Patrick From assefa at DMSOLUTIONS.CA Mon Oct 31 14:08:28 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 31 Oct 2005 17:08:28 -0500 Subject: Using WMS time dimension with rasters? In-Reply-To: Message-ID: Jeroen Ticheler wrote: > Hi! > Happy to see this discussion and implementation progressing! This > (seeing more clients & servers with time support in WMS) is indeed > very true. We are working to get temporal data online both as WMS and > WCS. Having a good support for that in MapServer would be a real asset, > and actually allow us to use MapServer also for these data sets. > > In fact, this also gets to the problem I faced so far while > implementing this; One common Map file will not do to have both a WMS > and WCS with time support running, they are slightly different in the > way they have to be configured (the WCS needs special layer that gives > an error when accessing the service as WMS, at least that is what I ran > into when following the different WMS and WCS time examples). > Are there plans to align the two services? > The short answer is yes :) There is a bug opened on it (Bug 1506). Note that it will be adressed only after the 4.8 release. Later, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From szekeres.tamas at FREEMAIL.HU Mon Oct 31 16:02:06 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Mon, 31 Oct 2005 18:02:06 -0600 Subject: loading symbols on the fly causes unhandled exception Message-ID: Frank, Thanks for the suggestions! The easiest way to fix this problem is to replace gdImageCreateFromXXX to the corresponding gdImageCreateFromXXXCtx in the mapserver code. I have posted a bug as a reminder for it to http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1513 I have compiled mapserver and the related libraries using Visual Studio 7 and I don't think it is a good idea to back out to VS6 as to eliminate the need to recompile the GD library. However to create a working nmake makefile for MSVC seems to be a great adventure so I would be pleased if anyone had a suitable solution and shared it with me. Tamas Szekeres On Sun, 30 Oct 2005 23:19:46 -0500, Frank Warmerdam wrote: >On 10/30/05, Tamas Szekeres wrote: >> Hi list, >> >> When placing the file name of the image symbol (gif or png) into the map >> file instead of the symbol definition file an unhandled exception occurs >> in mapsymbol.c, line 517 >... >> bgd.dll!gdImageCreateFromPng at 4() + 0x27 >> > libmap.dll!msAddImageSymbol(symbolSetObj * symbolset=0x00cfa188, >> char * filename=0x003ffc18) Line 517 + 0xd C >... >> Could anyone help me to fix this issue? > >Tamas, > >msAddImageSymbol() calls fopen() and then passes that >file handle to gdImageCreateFromPng(). The gd function is >in a different DLL and if either bgd.dll or libmap.lib are built >with the default C library on windows, it will be unable to utilize >the file descriptor opened in mapsymbol.c. > >Normally I avoid this by ensuring I build with the C runtime library >which can be accomplished by using /MD. You also have to >ensure that bgd.dll is built with a compatible runtime library. >I think the normal bgd.dll is built with VC6 so you would need to >use VC6 for mapserver as well. > >I actually thought we had restructured mapserver to avoid passing >file handles to the GD png (and gif, and jpeg) functions to avoid >this issue, but apparently it exists in at least this function. I would >encourage you to file a bug report on it, and someone can fix it. >In case that someone might end up being me, please include >a minimal map file that will demonstrate the problem as I don't >imagine I normally go through this function. > >Best regards, >-- >---------------------------------------+---------------------------------- ---- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent From chris at NARX.NET Mon Oct 31 18:20:04 2005 From: chris at NARX.NET (Chris Tweedie) Date: Tue, 1 Nov 2005 10:20:04 +0800 Subject: MS WFS "Chaining" Message-ID: Morning list, A current work in progress requires extensive use of mapserver's WMS service chaining. My question is that as far as i can tell, there is no way to do a similar method using remote WFS services. To clarify, i am not after MS as a WFS Client (eg. render the WFS response as an image) but simply forward the response on to the client. For example, 1. Client (WFS Request) --> Core Mapserver (Forward request) --> Remote Mapserver 2. Remote Mapserver (GML Response) --> Core Mapserver (Forward request) --> Client I hope mapserver could be enabled as a sort of pseudo OWS "proxy" but I have had a look around without much success, Ideally, if there was a new meta tag such as "wfs_response_method" "GML" or something similar attached to the layer, then this would suit my purpose exactly. Since the response is currently stored as a GML file in the ms_tmp directory anyway, it seems a simple manner of just forwarding on the request instead of rendering it using GDAL/OGR. Any feedback would be appreciated, Chris Tweedie ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From bartvde at XS4ALL.NL Mon Oct 31 23:24:42 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 1 Nov 2005 08:24:42 +0100 Subject: MS WFS "Chaining" In-Reply-To: <1130811604.4366d0d4980df@webmail.narx.net> Message-ID: Hi, this could be done I think. On your middle tier, you would have a Mapserver WFS client layer, which you also expose as a WFS server layer on the middle tier. The middle tier will then request the remote Mapserver WFS. So in summary, on your middle tier you would have a WFS Client layer in your MAP file, and you would also expose your middle tier as a WFS server using the appropriate wfs server metadata. Does this make sense :-) ? Best regards, Bart Chris Tweedie wrote: >Morning list, > >A current work in progress requires extensive use of mapserver's WMS service >chaining. My question is that as far as i can tell, there is no way to do a >similar method using remote WFS services. > >To clarify, i am not after MS as a WFS Client (eg. render the WFS response as an >image) but simply forward the response on to the client. For example, > >1. Client (WFS Request) --> Core Mapserver (Forward request) --> Remote >Mapserver > >2. Remote Mapserver (GML Response) --> Core Mapserver (Forward request) --> >Client > >I hope mapserver could be enabled as a sort of pseudo OWS "proxy" but I have had >a look around without much success, > >Ideally, if there was a new meta tag such as > >"wfs_response_method" "GML" > >or something similar attached to the layer, then this would suit my purpose >exactly. Since the response is currently stored as a GML file in the ms_tmp >directory anyway, it seems a simple manner of just forwarding on the request >instead of rendering it using GDAL/OGR. > >Any feedback would be appreciated, > >Chris Tweedie > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. > > > >