From wilmanrojas@geoweb.com.co Sat Nov 1 21:50:13 2003 From: wilmanrojas@geoweb.com.co (Wilman Rojas) Date: Sat, 01 Nov 2003 16:50:13 -0500 Subject: [Mapserver-users] String the Atribute Data very long in Mapserv 4.0 Message-ID: <006801c3a0c2$21318960$7d00a8c0@investigacion> This is a multi-part message in MIME format. --Boundary_(ID_awJVbOEmw+mskmNsF5mgzw) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Hi. My problem is that set a attribute data of layer by a string of consult very long and no work but in mapserv 3.6 if work. Wilman Rojas. --Boundary_(ID_awJVbOEmw+mskmNsF5mgzw) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT

 

Hi.

 

My problem is that set a attribute data of layer by a string of consult very long and no work but in mapserv 3.6 if work.

 

Wilman Rojas.

 

--Boundary_(ID_awJVbOEmw+mskmNsF5mgzw)-- From wilmanrojas@geoweb.com.co Fri Nov 7 02:09:18 2003 From: wilmanrojas@geoweb.com.co (Wilman Rojas) Date: Thu, 06 Nov 2003 21:09:18 -0500 Subject: [Mapserver-users] Select of a element and draw with MapScript Message-ID: <002d01c3a4d4$26d8a4a0$7d00a8c0@investigacion> This is a multi-part message in MIME format. --Boundary_(ID_uIDivuYPo+jQ4I8+/VQa8w) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Hi. =20 I need select a element in the map. But whit a attribute and de draw the map with element select. How realize this? =20 =20 Wilman Rojas. Jefe Investigaci=F3n y Desarrollo. Geoweb S.A=20 www.geoweb.com.co =20 --Boundary_(ID_uIDivuYPo+jQ4I8+/VQa8w) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: quoted-printable

Hi.

 

I need select a element in the map. But whit a attribute and de draw the map with element = select.

How realize = this?

 

 

Wilman Rojas.

Jefe Investigaci=F3n y = Desarrollo.

Geowe= b S.A

www.g= eoweb.com.co

 

--Boundary_(ID_uIDivuYPo+jQ4I8+/VQa8w)-- From stephen.clark@focus.ca Sat Nov 1 00:23:20 2003 From: stephen.clark@focus.ca (Stephen Clark) Date: Fri, 31 Oct 2003 16:23:20 -0800 Subject: [Mapserver-users] Php Mapscript with 500 layers, 1000 classes ?? References: <1067514633.3fa0fb09da8e6@dutilleux.ensg.ign.fr> <002601c39f03$2a5c82d0$6c000a0a@sclark> <3FA1363E.9090508@dmsolutions.ca> Message-ID: <023d01c3a00e$5ae6b040$6c000a0a@sclark> Would DM Solutions be willing to post a PHP Mapscript version with 500 layers, 1000 classes? P.H.P version 4.3.2 Mapserver 4.0.0 If not could you post a description of how to compile php mapscript. The Wiki and online docs are a little sketchy. Or perhaps someone could update the docs for php mapsript to version 4.0.0 and php 4.3.2. thanks, Stephen ----- Original Message ----- From: "Yewondwossen Assefa" To: "Stephen Clark" Cc: Sent: Thursday, October 30, 2003 8:03 AM Subject: Re: [Mapserver-users] Php Mapscript Specs requested > It should contain the default settings that come with the mapserver > source code which is 100 layers, 256 classes. > Unless It is a specif build done for someone with values boosted, this > should always be the case. Usually the name of the zip file should > indicate that (ex : mapserver-4.1dev-win32-php4.3.2_256layers.zip build > done supporting 256 layers) and sometimes the README that comes with the > zip contains this specific changes done (but I sometimes forget to > update the readme). > > Later, > > Stephen Clark wrote: > > > Hi all , > > > > Here is the PHP mapscript I downloaded from DM Solutions: > > > > MapScript > > MapServer Version MapServer version 4.0 OUTPUT=GIF OUTPUT=PNG > > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ > > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL > > INPUT=SHAPEFILE > > PHP MapScript Version ($Revision: 1.177 $ $Date: 2003/07/30 19:01:31 > > $) > > > > > > > > Could someone tell me how many layers, classes and color objects that are > > supported with this version? > > > > thanks, > > Stephen > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa@dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From muratisik@megatek.com.tr Sat Nov 1 00:05:26 2003 From: muratisik@megatek.com.tr (Murat Isik) Date: Sat, 1 Nov 2003 02:05:26 +0200 Subject: [Mapserver-users] dynamic pointing problem References: <66D0A43005CCE2439A8C830A6C867BAE2BDF78@mail.capindex.com> Message-ID: <000701c3a00b$dd6f7720$1819fdd4@murathq> Thank you but that did not work. same thing happens, no map, no image file created :( murat isik ----- Original Message ----- From: "Brian Cunningham" To: Sent: Friday, October 31, 2003 7:48 PM Subject: [Mapserver-users] dynamic pointing problem > Murat- > Have you fixed this problem? > I am new to Mapserver and am struggling but I believe I have your answer. > You need to create the new layer object: > $layer = ms_newLayerObj($map); > > So it looks like this (your code) > > $map = ms_newMapObj("demo_try.map"); > $image = $map->draw(); > $layer = ms_newLayerObj($map); > $layer = $map->getLayerByName("point"); > $layer->set('status', MS_ON); > $pt = ms_newPointObj(); > $x = 29.1; > > That should do it. > > Brian R. Cunningham > CAP Index, Inc. > www.capindex.com > > This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please destroy it immediately. > > From Richard.Pierce@mail.state.ar.us Sat Nov 1 05:08:57 2003 From: Richard.Pierce@mail.state.ar.us (Richie Pierce) Date: Fri, 31 Oct 2003 23:08:57 -0600 Subject: [Mapserver-users] symbols within my legend Message-ID: I am working on my first MapServer application and have some basic question. I have got a map up with 3 layers. 1) the symbols for my layers are not showing up within my legend. The text is fine but the symbols are blank. 2) the bounding box for my reference (overview) window is way off. When I am zoomed to full extent in the map, the reference box is a small box in the northern part of the reference image. 3) eventually I would like to have a text box where the user would be able to enter text and search for a record, then zoom to that record. Any one have some examples of this. As well as the basic answers to my other questions? Thanks in advance From nicolas@mail.maich.gr Sat Nov 1 13:37:36 2003 From: nicolas@mail.maich.gr (Nicolas Boretos) Date: Sat, 1 Nov 2003 15:37:36 +0200 Subject: [Mapserver-users] Simple query Message-ID: <200311011537.AA94110036@mail.maich.gr> Hi, I have 2, seemingly simple questions. Does someone have an example of querying a map and displaying the polygons that fullfill that criteria in a different color; eg AREA > 2000 Is this possible in the ms cgi, or do I need mapscript Is it possible to (over)write a field in a record in the dbf with mapscript? I am searching the list but figured I would ask anyway.... regards, nicolas boretos P.S I am using ms3.4 From gerry.creager@tamu.edu Sat Nov 1 16:15:47 2003 From: gerry.creager@tamu.edu (Gerry Creager N5JXS) Date: Sat, 01 Nov 2003 10:15:47 -0600 Subject: [Mapserver-users] "3D like" polygon rendering ? In-Reply-To: References: Message-ID: <3FA3DC33.4070900@tamu.edu> Very cool! Thanks for the link! gerry Tyler Mitchell wrote: > > > > > Maybe you were thinking of this: > http://www.seascallop.com/Norman_Vine/Gulf_of_Maine3D.html > > mapserver-users-admin@lists.gis.umn.edu wrote on 10/30/2003 03:42:20 PM: > > >>hi, >> >>i can't remember where i saw a mapserver map (i think it was made with >>mapserver, i may be a website listed in the galery part of the mapserver >>website) that renderer polygone with a non flat aspect. >>does anyone can explain to me how to make such an effect ? -- Gerry Creager -- gerry.creager@tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From innaj@web.de Sat Nov 1 17:16:23 2003 From: innaj@web.de (Inna Janssen) Date: Sat, 1 Nov 2003 18:16:23 +0100 Subject: [Mapserver-users] installation of mapscript Message-ID: <200311011716.hA1HGMQ18359@mailgate5.cinetic.de> I'm struggling with the installation of MapScript on redhat 7.3: To have MapScript installed I need to recompile php with the option --with-regex=system but the make procedure of php stops with the following error: /root/php-4.3.3/ext/standard/browscap.c:207: undefined reference to `php_regcomp' /root/php-4.3.3/ext/standard/browscap.c:210: undefined reference to `php_regexec' /root/php-4.3.3/ext/standard/browscap.c:213: undefined reference to `php_regfree' ext/standard/reg.o: In function `_php_regcomp': /root/php-4.3.3/ext/standard/reg.c:47: undefined reference to `php_regcomp' ext/standard/reg.o: In function `php_reg_eprint': /root/php-4.3.3/ext/standard/reg.c:119: undefined reference to `php_regerror' /root/php-4.3.3/ext/standard/reg.c:124: undefined reference to `php_regerror' /root/php-4.3.3/ext/standard/reg.c:129: undefined reference to `php_regerror' /root/php-4.3.3/ext/standard/reg.c:142: undefined reference to `php_regerror' ext/standard/reg.o: In function `php_ereg': /root/php-4.3.3/ext/standard/reg.c:205: undefined reference to `php_regexec' ext/standard/reg.o: In function `php_reg_replace': /root/php-4.3.3/ext/standard/reg.c:306: undefined reference to `php_regexec' ext/standard/reg.o: In function `php_split': /root/php-4.3.3/ext/standard/reg.c:558: undefined reference to `php_regexec' ext/standard/reg.o: In function `_free_reg_cache': /root/php-4.3.3/ext/standard/reg.c:66: undefined reference to `php_regfree' collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Error 1 I use php4.3.3. Without the option with-regex=system php compiles. I don't find any clue on the web to solve this problem. Can anybody help me? Is it possible to use an older version of php where I don't need that option with-regex=system ? Or can someone provide me the compiled php_mapscript.so for redhat ? Maybe I'm lucky and it just works?... ______________________________________________________________________________ Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2 Kostenlos downloaden: http://screensaver.web.de/?mc=021110 From emiliom@u.washington.edu Sat Nov 1 18:42:16 2003 From: emiliom@u.washington.edu (Emilio Mayorga) Date: Sat, 01 Nov 2003 10:42:16 -0800 Subject: [Mapserver-users] Re: MUM website "Contributed Utilities Message-ID: <3FA3FE88.7050007@u.washington.edu> Chris, Re: TextPad Syntax file. I downloaded one from the Textpad web site about 10 days ago. It looks like it was created by someone else, for MS 3.6 (its file date is March 2003, it's by Laurent Chevalier). It's missing some MS keywords. Did you create yours based on that one, and do you know if yours is better for MS 4? I've done a quick comparison -- the other one seems to miss fewer keywords, compared to yours. Thanks, though! -Emilio From mark@markrodrigo.com Sun Nov 2 20:08:18 2003 From: mark@markrodrigo.com (Mark Rodrigo) Date: Sun, 2 Nov 2003 13:08:18 -0700 Subject: [Mapserver-users] volunteer to test my mapscript.so? Message-ID: Hello: I have just about everything I want built on Linux, but my php_mapscript.so still does not want to show up when I run the phpinfo scripts. I have seen what mapscript looks like after running one of the tests on windows, but have not seen it come up on Linux yet. I am not sure if it is how I have PHP configured. Can anybody test my php_mapscript.so if I email it to you? It was built with Mapserver 4.x & PHP 4.3.3 with FastCGI. Thanks Mark From carl.anderson@vadose.org Mon Nov 3 03:16:20 2003 From: carl.anderson@vadose.org (Carl Anderson) Date: Sun, 2 Nov 2003 22:16:20 -0500 Subject: [Mapserver-users] Very Large tiff output Message-ID: <20031103031620.GA11684@vadose.dvg> I am at a loss...... Sometime ago I remember a comment that production images of 20,000 x 20,000 pixels were being created using mapserver. I am testing compositing images into much larger tiles (building seamless.usgs.gov into quarter quads). When the requested image size exceeds about 12,000 x 12,000 pixels I am getting msSaveImageGDAL(): General error message. Failed to create MEM dataset. using "top" the peak memory use is 2.7Gb The test system has 4Gb or real memory and 6Gb of swap and map.h has #define MS_MAXIMGSIZE 35000 standard gdal tools gdalwarp and gdal_translate are fine with a 25,000 x 25,000 GTiff file. what am I missing? C. From agillesp@vt.edu Mon Nov 3 05:00:09 2003 From: agillesp@vt.edu (Abram Gillespie) Date: Mon, 03 Nov 2003 00:00:09 -0500 Subject: [Mapserver-users] compiling regex on windows Message-ID: <9952785A-0DBA-11D8-9095-000A957A0F9C@vt.edu> i'm trying to compile the regex lib on windows 2000 with vs.net. i get the following error: c:\source_code\regex-0.12\regex.c(63) : fatal error C1083: Cannot open include file: 'strings.h': No such file or directory then when i define HAVE_STRING_H to try to fix the above error i get these: c:\source_code\regex-0.12\regex.c(808) : error C2365: 're_set_syntax' : redefinition; previous definition was a 'function' c:\source_code\regex-0.12\regex.h(404) : see declaration of 're_set_syntax' c:\source_code\regex-0.12\regex.c(808) : error C2146: syntax error : missing ';' before identifier 'reg_syntax_t' c:\source_code\regex-0.12\regex.c(808) : fatal error C1004: unexpected end of file found anything i can do? thanks. abe From ter-haseborg@sf-datentechnik.de Mon Nov 3 11:25:41 2003 From: ter-haseborg@sf-datentechnik.de (Frieso ter Haseborg) Date: Mon, 3 Nov 2003 12:25:41 +0100 Subject: [Mapserver-users] getFeatureInfo on dynamic layer - empty exception Message-ID: <0DF955F15A102E4F81B948D44A45015A06924A@nt-sf-exchange.Windows2000> Hi Debbie, from the PHP/MapScript for dynamic layer creation you shared with us I learned, that you're doing getFeatureInfos against a php-created layer. Does the error description below sound similar to anything you ran against during your development? Or are there any configuration-differences in the mapfile compared to your approach? Since there was low feedback from the list on this , I hope you could give me a hint. TIA, Frieso >-----Original Message----- >From: Frieso ter Haseborg >Sent: Tuesday, October 28, 2003 9:52 AM >To: mapserver-users@lists.gis.umn.edu >Subject: [Mapserver-users] getFeatureInfo on dynamic layer - empty >exception > > >Hi, > >I ran into a problem doing a getFeatureInfo-request on a dynamic layer. >I've got a PHP/Mapscript-component to build dynamic layers, this works >well on getMap-requests. Trying to do a getFeatureInfo-request I get >some strange results: > >When performin a request with a url like this: > >http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/ims.map&version= >1.1.0&req >uest=getFeatureInfo&query_layers=wms&x=251&y=329&INFO_FORMAT=te >xt/plain& >BBOX=2574700,5752000,2589700,5767000 > >I get an xml-doc with an empty exception statement: > > >"http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd"> > > > > > >This is the corresponding part of the mapfile: > >LAYER > NAME "wms" > TEMPLATE test.html > STATUS ON > TYPE POLYGON > CONNECTION "http://my.ip/kmvims/test4.php" > CONNECTIONTYPE WMS > TOLERANCE 3 > METADATA > "wms_srs" "EPSG:26915 EPSG:42101 EPSG:4269 EPSG:4326 >EPSG:42304" > "wms_name" "wms" > "wms_title" "test" > "wms_server_version" "1.1.0" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" > > END > OFFSITE 255 255 255 >END > >system-configuration: Win2k; Apache 2.0.47; MS 4.0; PHP 4.3.2, >MapScript >rev 1.177 > >The getFeatureInfo-request works fine on my shape-layers but no success >on the dynamic layer. And what's oddest, the php in my dynamic layer >seems not to be executed at all. When doing a getFeatureInfo-request I >do just a echo "test"; and log the get-Parameters into a logfile. But >the log stays untouched, whereas the log works fine on the >getMap-request. Any ideas? > >Any hint would be appreciated. > >TIA, > >Frieso ter Haseborg >- Software Development - > >-- > >-------------------------------------------------- >S&F Datentechnik GmbH&Co.KG >Reimersstr. 41b >26789 Leer, Germany > > > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From bartvde@xs4all.nl Mon Nov 3 11:48:53 2003 From: bartvde@xs4all.nl (bartvde@xs4all.nl) Date: Mon, 3 Nov 2003 12:48:53 +0100 (CET) Subject: [Mapserver-users] cascading transparently from ArcIMS Message-ID: <10552.212.238.227.182.1067860133.squirrel@webmail.xs4all.nl> Hi list, has anybody succeeded in getting Mapserver to display images from ArcIMS in a transparent way? I tried using PNG (both 8 and 24 bit) on ArcIMS 4.0, since I do not have a GIF license for it. But I cannot get it to display transparently. Any info would be appreciated. Best regards, Bart In the WMS client HWOTO it says: PNG format with transparent=true does not work well with all servers. For instance some servers use the alpha channel for transparency (RGBA images) but this is not well supported by MapServer at the moment. So you may be forced to request GIF format maps in those cases. Transparent PNGs produced by the MapServer WMS work well though since they are paletted images. From edspremolla@Antel.com.uy Mon Nov 3 12:50:02 2003 From: edspremolla@Antel.com.uy (Eduardo Spremolla) Date: 03 Nov 2003 09:50:02 -0300 Subject: [Mapserver-users] Simple query In-Reply-To: <200311011537.AA94110036@mail.maich.gr> References: <200311011537.AA94110036@mail.maich.gr> Message-ID: <1067863801.2876.1.camel@fly.in.iantel.com.uy> Provided that you have a AREA column in the data source, tray a featurequery and set the querymode to HILITE LALO El sáb, 01 de 11 de 2003 a las 10:37, Nicolas Boretos escribió: > Hi, > > I have 2, seemingly simple questions. > > Does someone have an example of querying a map and displaying the polygons that fullfill that criteria in a different color; > > eg AREA > 2000 > Is this possible in the ms cgi, or do I need mapscript > > Is it possible to (over)write a field in a record in the dbf with mapscript? > > I am searching the list but figured I would ask anyway.... > > regards, > > nicolas boretos > P.S I am using ms3.4 > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From baud.remy@caramail.com Mon Nov 3 13:48:07 2003 From: baud.remy@caramail.com (baud remi ) Date: Mon, 03 Nov 2003 14:48:07 +0100 Subject: [Mapserver-users] mapserver application demo with flash Message-ID: <1067867287015829@lycos-europe.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --=_NextPart_Lycos_0158291067867287_ID Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Hi, I wanted to know if someone already made an application with mapserver using Flash output. I'll be very curious to see what we can do with it. Do someone had a link about a sample application? Cheers Pour gagner une Playstation 2, envoyez un SMS avec le code PS au 61321 (0,35 euro hors co=FBt du SMS). --=_NextPart_Lycos_0158291067867287_ID-- From nicolas.fortin@ec.gc.ca Mon Nov 3 13:53:54 2003 From: nicolas.fortin@ec.gc.ca (nicolas.fortin@ec.gc.ca) Date: Mon, 3 Nov 2003 08:53:54 -0500 Subject: TR : RE : RE : [Mapserver-users] Projection conversion Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C3A211.EB4A88A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 After speaking to the geo staff here, I found why it doesn't works. = The LCC we use is an "home-made" LCC so I had to add a line to the epsg file. =20 Here is my new line : # Canada Lambert Conformal Conic EC-CMI <111111> +proj=3Dlcc +lat_1=3D49 +lat_2=3D77 +lat_0=3D63 = +lon_0=3D-91.8666 +x_0=3D6200000 +y_0=3D2958000 +ellps=3DGRS80 +datum=3DNAD83 +units=3Dm = no_defs <> Of course, now I use=20 =20 PROJECTION=20 "epsg:111111" END =20 Now the reprojection is perfect! Thx a lot for your help! =20 Nick =20 -----Message d'origine----- De : Tyler Mitchell [mailto:TMitchell@lignum.com]=20 Envoy=E9 : Friday, October 31, 2003 1:52 PM =C0 : nicolas.fortin@ec.gc.ca Objet : Re: RE : RE : [Mapserver-users] Projection conversion Hey Nick,=20 Good stuff, I think you're on the right track. =20 I think that maybe the easiest thing to do would be to change your SDO query: > DATA "GEOLOC FROM USR_BATHY.SHORELINE USING SRID 82196" So that the SRID matches the EPSG:102002. Then you wouldn't, in = theory, have to set your project for the layers at all. =20 Let us know how you get on. =20 Tyler -----mapserver-users-admin@lists.gis.umn.edu wrote: ----- To: TMitchell@lignum.com, nicolas.fortin@ec.gc.ca From: nicolas.fortin@ec.gc.ca Sent by: mapserver-users-admin@lists.gis.umn.edu Date: 10/31/2003 10:15AM cc: mapserver-users@lists.gis.umn.edu Subject: RE : RE : [Mapserver-users] Projection conversion Thanks for your answer! The EXTENT in comment is an extent on the shoreline layer and if I = switch to it, I'll see the shoreline correctly. If I remove all the PROJECTION, all work fine too but only one layer at = a time depending of the bounding box uses. I'll see if epsg:2145 and epsg:102002 are 'really' the same as the SDO projection... Nick -----Message d'origine----- De : Tyler Mitchell [mailto:TMitchell@lignum.com ]=20 Envoy=E9 : Friday, October 31, 2003 11:46 AM =C0 : nicolas.fortin@ec.gc.ca Cc : mapserver-users@lists.gis.umn.edu Objet : RE : [Mapserver-users] Projection conversion I haven't used Oracle Spatiall, but if you are wondering about = projections, here is an idea to try. It looks too me like you have everything setup properly in your map file - the only problem may be your data. Your map = file project setting and your "PointTest" layer's projection settings are = the same, therefore, no reprojecting is required for that layer. Your "shoreline" layer has a different EPSG, so it has to project it. I'd guess that there could be at least 3 things going on: - Your request for the data using SRID=3D82196 may not be giving you = data that is in EPSG:2145 - EPSG:2145 may be wrong altogether - There is no data being returned from Oracle. I suggest changig the EXTENT and map file PROJECTION settings to match = your Shoreline data. If you can view the shoreline data, then you can at = least rule out my last point above. Tyler > I'm new to mapserver and I'm making some tests to make it work with=20 > Oracle spatial (very simple tests though). > > One of my test consist of two layers, one in Lambert Conformal Conic > (LCC) and the other in NAD83 MTM Zone 8. > > I wonder if I have to do something special to make Mapserver convert=20 > between projection... > > For the mapfile below, only the LCC layer is visible in the bounding=20 > box. > > # BEGIN MAPFILE > # Mapserver test 3 for Oracle > # Nicolas Fortin, Env Can nicolas.fortin@ec.gc.ca > > NAME MS_ORA_TEST_3 > EXTENT 7613000 1218000 7620000 1227000 > #EXTENT 275000 5019000 280000 5027000 > SIZE 350 450 > PROJECTION > "init=3Depsg:102002" > END > > LAYER # Test table > NAME "PointTest" > TYPE POINT > CONNECTIONTYPE oraclespatial > CONNECTION "martins/****@bayfield" > DATA "GEOLOC FROM MARTINS.CT_LCC_MI" > STATUS DEFAULT > DUMP TRUE > > PROJECTION > "init=3Depsg:102002" > END > > CLASS # PolyClass > NAME "Point" > COLOR 0 100 240 > OUTLINECOLOR 0 0 0 > END > > END # LAYER > > LAYER # Test table > NAME Shoreline > TYPE LINE > CONNECTIONTYPE oraclespatial > CONNECTION "usr_bathy/****@bayfield" > DATA "GEOLOC FROM USR_BATHY.SHORELINE USING SRID 82196" > STATUS DEFAULT > DUMP TRUE > > PROJECTION > "init=3Depsg:2145" > END > > CLASS # PolyClass > NAME "Shoreline" > COLOR 0 0 0 > #LABEL > # COLOR 0 0 0 > #END # LABEL > END > > END # LAYER > > END > # END MAPFILE > Thx, > Nicolas Fortin > Math=E9maticien, Programmeur, Analyste de donn=E9es > SMC-Qu=E9bec Hydrologie, Environnement Canada > 1141, Rte de l'=C9glise, Sainte-Foy(QC) G1V 4H5 > (418)648-2516 > nicolas.fortin@ec.gc.ca > > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users =20 ------_=_NextPart_001_01C3A211.EB4A88A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Hi,
 
After=20 speaking to the geo staff here, I found why it doesn't works.  The = LCC we=20 use is an "home-made" LCC so I had to add a line to the epsg=20 file.
 
Here=20 is my new line :
#=20 Canada Lambert Conformal Conic EC-CMI
<111111> +proj=3Dlcc = +lat_1=3D49=20 +lat_2=3D77 +lat_0=3D63 +lon_0=3D-91.8666 +x_0=3D6200000 +y_0=3D2958000 = +ellps=3DGRS80=20 +datum=3DNAD83 +units=3Dm  no_defs = <>
Of=20 course, now I use
 
PROJECTION
 =20 "epsg:111111"
END
 
Now=20 the reprojection is perfect!
Thx a=20 lot for your help!
 
Nick
 
-----Message d'origine-----
De : Tyler Mitchell = [mailto:TMitchell@lignum.com]
Envoy=E9 : Friday, = October 31, 2003=20 1:52 PM
=C0 : = nicolas.fortin@ec.gc.ca
Objet : Re: RE=20 : RE : [Mapserver-users] Projection = conversion

Hey Nick,
Good stuff, I think you're on the right track. 
I think that maybe the easiest thing to do would be to change your = SDO=20 query:
>   DATA "GEOLOC FROM = USR_BATHY.SHORELINE=20 USING SRID 82196"
So that the SRID matches the = EPSG:102002.  Then=20 you wouldn't, in theory, have to set your project for the layers at = all.
 
Let us know how you get on.
 
Tyler
-----mapserver-users-admin@lists.gis.umn.edu wrote:=20 -----

To: TMitchell@lignum.com, = nicolas.fortin@ec.gc.ca
From:=20 nicolas.fortin@ec.gc.ca
Sent by:=20 mapserver-users-admin@lists.gis.umn.edu
Date: 10/31/2003 10:15AM
c= c:=20 mapserver-users@lists.gis.umn.edu
Subject: RE : RE : = [Mapserver-users]=20 Projection conversion

Thanks for = your=20 answer!

The EXTENT in comment is an extent on the shoreline = layer and if=20 I switch to
it, I'll see the shoreline correctly.

If I remove = all the=20 PROJECTION, all work fine too but only one layer at a
time depending = of the=20 bounding box uses.

I'll see if epsg:2145 and epsg:102002 are = 'really' the=20 same as the SDO
projection...

Nick

-----Message=20 d'origine-----
De : Tyler Mitchell [mailto:TMitchell@lignum.com]
Envoy=E9 : Friday, = October 31,=20 2003 11:46 AM
=C0 : nicolas.fortin@ec.gc.ca
Cc :=20 mapserver-users@lists.gis.umn.edu
Objet : RE : [Mapserver-users] = Projection=20 conversion







I haven't used Oracle = Spatiall, but if=20 you are wondering about projections,
here is an idea to try. It = looks too me=20 like you have everything setup
properly in your map file - the only = problem=20 may be your data. Your map file
project setting and your "PointTest" = layer's=20 projection settings are the
same, therefore, no reprojecting is = required for=20 that layer.  Your
"shoreline" layer has a different EPSG, so it = has to=20 project it.

I'd guess that there could be at least 3 things = going=20 on:
- Your request for the data using SRID=3D82196 may not be giving = you data=20 that
is in EPSG:2145
- EPSG:2145 may be wrong altogether
- = There is no=20 data being returned from Oracle.

I suggest changig the EXTENT = and map=20 file PROJECTION settings to match your
Shoreline data.  If you = can view=20 the shoreline data, then you can at least
rule out my last point=20 above.

Tyler

> I'm new to mapserver and I'm making = some tests=20 to make it work with
> Oracle spatial (very simple tests=20 though).
>
> One of my test consist of two layers, one in = Lambert=20 Conformal Conic
> (LCC) and the other in NAD83 MTM Zone = 8.
>
>=20 I wonder if I have to do something special to make Mapserver convert =
>=20 between projection...
>
> For the mapfile below, only the = LCC layer=20 is visible in the bounding
> box.
>
> # BEGIN = MAPFILE
>=20 # Mapserver test 3 for Oracle
> # Nicolas Fortin, Env Can=20 nicolas.fortin@ec.gc.ca
>
> NAME MS_ORA_TEST_3
> = EXTENT=20 7613000 1218000 7620000 1227000
> #EXTENT 275000 5019000 280000=20 5027000
> SIZE 350 450
> PROJECTION
>  =20 "init=3Depsg:102002"
> END
>
> LAYER # Test = table
>  =20 NAME "PointTest"
>   TYPE POINT
>   = CONNECTIONTYPE=20 oraclespatial
>   CONNECTION "martins/****@bayfield"
> =  =20 DATA "GEOLOC FROM MARTINS.CT_LCC_MI"
>   STATUS = DEFAULT
>=20   DUMP TRUE
>
>   PROJECTION
>   =  =20 "init=3Depsg:102002"
>   END
>
>   CLASS #=20 PolyClass
>     NAME "Point"
>     = COLOR 0 100=20 240
>     OUTLINECOLOR 0 0 0
>   = END
>
>=20 END # LAYER
>
> LAYER # Test table
>   NAME=20 Shoreline
>   TYPE LINE
>   CONNECTIONTYPE=20 oraclespatial
>   CONNECTION = "usr_bathy/****@bayfield"
>  =20 DATA "GEOLOC FROM USR_BATHY.SHORELINE USING SRID 82196"
>   = STATUS=20 DEFAULT
>   DUMP TRUE
>
>   = PROJECTION
>=20     "init=3Depsg:2145"
>   END
>
> =   CLASS #=20 PolyClass
>     NAME "Shoreline"
>     = COLOR 0 0=20 0
>     #LABEL
>     #  COLOR 0 0 = 0
>=20     #END # LABEL
>   END
>
> END #=20 LAYER
>
> END
> # END MAPFILE
> Thx,
> = Nicolas=20 Fortin
> Math=E9maticien, Programmeur, Analyste de = donn=E9es
>=20 SMC-Qu=E9bec Hydrologie, Environnement Canada
> 1141, Rte de = l'=C9glise,=20 Sainte-Foy(QC) G1V 4H5
> (418)648-2516
> = nicolas.fortin@ec.gc.ca=20 <mailto:nicolas.fortin@ec.gc.ca>
>

___= ____________________________________________
Mapserver-users=20 mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users=
------_=_NextPart_001_01C3A211.EB4A88A0-- From assefa@dmsolutions.ca Mon Nov 3 14:32:21 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 03 Nov 2003 09:32:21 -0500 Subject: [Mapserver-users] mapserver application demo with flash In-Reply-To: <1067867287015829@lycos-europe.com> References: <1067867287015829@lycos-europe.com> Message-ID: <3FA666F5.3040905@dmsolutions.ca> There is an application done using the flash raster output at : http://www.dmsolutions.ca/techserv/makeapmap.html Later, baud remi wrote: > Hi, > > I wanted to know if someone already made an application with mapserver using Flash output. > > I'll be very curious to see what we can do with it. > > Do someone had a link about a sample application? > > Cheers > > Pour gagner une Playstation 2, envoyez un SMS avec le code PS au 61321 (0,35 euro hors coût du SMS). > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Mike.Elstermann@itc-halle.de Mon Nov 3 14:35:52 2003 From: Mike.Elstermann@itc-halle.de (Elstermann, Mike) Date: Mon, 3 Nov 2003 15:35:52 +0100 Subject: [Mapserver-users] postgis/postgrsql/geos Message-ID: <8BC0EAF5B383D711B69E0006293896C7B18370@ZEVHNT6> hi, i have a problem :-( i'm working with suse 8.2 , postgresql 7.3.3, postgis 0.7.5 ... wonderful :-) now i want to use some spatial functions: intersects, .... thats why i have installed GEOS (./configure, make, make install) ... successfully :-) but when I start a select with spatial function it doesn't works ??? for example: select disjoint(\'LINESTRING(0 0,0 0)\'::geometry, \'LINESTRING(0 0,0 1)\'::geometry ); Warning: pg_exec() query failed: ERROR: Function disjoint(geometry, geometry) does not exist Unable to identify a function that satisfies the given argument types You may need to add explicit typecasts where is the error? ::: mfg. Mike Elstermann [mikeE.], Teamleiter GIS/RIS, e-Solutions ::: IT-Consult Halle GmbH, Bornknechtstraße 5, 06108 Halle (Saale) ::: Sitz: Große Nikolaistraße 8 ::: Tel.: +49 345 221 4237, Fax: +49 345 221 4236, mobil: +49 160 71 545 02 ::: mike.elstermann@itc-halle.de ::: http://www.itc-halle.de ::: GeoDaten Online? -> http://www.itcgis.de From Sebastian Albrecht Mon Nov 3 14:40:49 2003 From: Sebastian Albrecht (Sebastian Albrecht) Date: Mon, 3 Nov 2003 15:40:49 +0100 Subject: [Mapserver-users] distanceToPoint in kilometres? Message-ID: <86286400752.20031103154049@justapi.de> Hi everybody, I just tried to use the distanceToPoint method in my PHP Mapscript application. It seems to calculate the mathematical distance of the two given points (Pythagoras?). Of course this is not very useful because I cannot convert it to a metric distance so that a distance of 90,00 can be very short (at the poles) or very long. Is there a possibility to calculate the real distance considering projection and ellipsoids? I think it might work with PROJ.4 somehow, but the whole site seems to be offline at the moment. Does anybody have a clue? Best regards, Sebastian From eric@gomoos.org Mon Nov 3 09:52:42 2003 From: eric@gomoos.org (Eric Bridger) Date: 03 Nov 2003 09:52:42 +0000 Subject: [Mapserver-users] symbols within my legend In-Reply-To: References: Message-ID: <1067853167.1838.4.camel@ubet.gomoos.org> You should post your map file so we can see if there are any problems with it. On Sat, 2003-11-01 at 05:08, Richie Pierce wrote: > I am working on my first MapServer application and have some basic question. I have got a map up with 3 layers. 1) the symbols for my layers are not showing up within my legend. The text is fine but the symbols are blank. 2) the bounding box for my reference (overview) window is way off. When I am zoomed to full extent in the map, the reference box is a small box in the northern part of the reference image. 3) eventually I would like to have a text box where the user would be able to enter text and search for a record, then zoom to that record. Any one have some examples of this. As well as the basic answers to my other questions? Thanks in advance > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From eric@gomoos.org Mon Nov 3 10:00:47 2003 From: eric@gomoos.org (Eric Bridger) Date: 03 Nov 2003 10:00:47 +0000 Subject: [Mapserver-users] Simple query In-Reply-To: <200311011537.AA94110036@mail.maich.gr> References: <200311011537.AA94110036@mail.maich.gr> Message-ID: <1067853653.1838.12.camel@ubet.gomoos.org> 1) You can display polygons in different colors by using CLASS EXPRESSIONs in you map file. e.g. LAYER NAME "polys" TYPE POLYGON DATA "data/polys" CLASS EXPRESSION ([AREA] > 2000) COLOR 255 0 0 END CLASS EXPRESSION ([AREA] <= 2000) COLOR 0 255 0 END END 2) You will need to use a DBF library/module to edit dbf files. I think the mapscript lib only allows you to read dbf files. In perl I use: XBase. On Sat, 2003-11-01 at 13:37, Nicolas Boretos wrote: > Hi, > > I have 2, seemingly simple questions. > > Does someone have an example of querying a map and displaying the polygons that fullfill that criteria in a different color; > > eg AREA > 2000 > Is this possible in the ms cgi, or do I need mapscript > > Is it possible to (over)write a field in a record in the dbf with mapscript? > > I am searching the list but figured I would ask anyway.... > > regards, > > nicolas boretos > P.S I am using ms3.4 > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From thorne@dmsolutions.ca Mon Nov 3 15:07:08 2003 From: thorne@dmsolutions.ca (Christopher R. Thorne) Date: Mon, 03 Nov 2003 10:07:08 -0500 Subject: [Mapserver-users] Re: MUM website "Contributed Utilities In-Reply-To: <3FA3FE88.7050007@u.washington.edu> References: <3FA3FE88.7050007@u.washington.edu> Message-ID: <3FA66F1C.5040103@dmsolutions.ca> For the most part it handle's MS 4. The Parameter "STYLE" is highlighted. The symbol file I have is out of date, for sure. I believe that I also got it from TextPad several months ago. I will look into the latest map.sym Thanks, Chris Emilio Mayorga wrote: > > Chris, > > Re: TextPad Syntax file. I downloaded one from the Textpad web site > about 10 days ago. It looks like it was created by someone else, for MS > 3.6 (its file date is March 2003, it's by Laurent Chevalier). It's > missing some MS keywords. Did you create yours based on that one, and do > you know if yours is better for MS 4? > > I've done a quick comparison -- the other one seems to miss fewer > keywords, compared to yours. > > Thanks, though! > > -Emilio > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Christopher R. Thorne GIS Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca email: thorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 ------------------------------ From warmerdam@pobox.com Mon Nov 3 15:07:43 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Mon, 03 Nov 2003 10:07:43 -0500 Subject: [Mapserver-users] Very Large tiff output In-Reply-To: <20031103031620.GA11684@vadose.dvg> References: <20031103031620.GA11684@vadose.dvg> Message-ID: <3FA66F3F.60208@pobox.com> Carl Anderson wrote: > > I am at a loss...... > > Sometime ago I remember a comment that production images of 20,000 x > 20,000 pixels were being created using mapserver. > > I am testing compositing images into much larger tiles (building > seamless.usgs.gov into quarter quads). When the requested image size > exceeds about 12,000 x 12,000 pixels I am getting > > msSaveImageGDAL(): General error message. Failed to create MEM dataset. > > using "top" the peak memory use is 2.7Gb > > The test system has 4Gb or real memory and 6Gb of swap > and map.h has > #define MS_MAXIMGSIZE 35000 > > standard gdal tools gdalwarp and gdal_translate are fine with a 25,000 > x 25,000 GTiff file. Carl, There are two reasons that MapServer is not very memory efficient for large output files. The first is that the actual drawing is done into a "GD" image in memory. This means there is one complete copy of the output image held in ram. If you are doing 24bit output this is 4bytes per pixel or about 576MB in your case. If you your result to a GDAL support file (instead of using the GD output drivers for PNG for instance) then the msSaveImageGDAL() function actually makes another complete memory copy of the image in RAM as a "virtual" image from which GDAL can create the output image. This is generally a similar amount of memory to the GD image, so 576MB if producing a full 4 band (RGBA) output. This of course doesn't come very near the 2.7GB of RAM you are reporting. I don't know where the other memory is being consumed. Some sort of detailed analysis would likely be needed. There isn't really much that can be done about the GD image. To work around this size you would basically need to split your output size down to a managable size for the system you are running on, and then mosaic the results. However, it seems that MapServer is making it through the rendering to the stage where a virtual copy of the dataset is made. At this stage there are various things that could be done in the code to avoid the extra copy. Either implement virtual reading functions that can read directly from GD, or do direct writing to the output file (only works for some GDAL output formats). The msSaveImageGDAL() code creates a complete copy of the image for convenience and under the assumption that output image sizes are not very large. While I could correct this, it isn't very high on my priority list. However, if it is a pressing concern let me know and I will see what I can do. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From schulz@gaf.de Mon Nov 3 15:34:23 2003 From: schulz@gaf.de (Matthias Schulz) Date: Mon, 3 Nov 2003 16:34:23 +0100 Subject: [Mapserver-users] Label results of a database query Message-ID: <03Nov3.163424cet.119061@pons.gaf.de> Hi all, Is there a way to use the results of a datbase query for labeling a layer? As far as I tried it is not possible to label a layer with a joined item otherwise I would have written out a dbf file (from a Java servlet) and joined it to the layer. But I need to use it as label. I would prefer a way I could use with Java (servlet) but if there is a way perhaps with MapScript I would also be interested in it. I also thought about using inline features but if I had to label a lot of objects I will have to create a lot of new features. Any idea? Thanks, Matthias --- Matthias Schulz GAF AG Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schulz@gaf.de http://www.gaf.de From pagurekd@agr.gc.ca Mon Nov 3 15:40:49 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Mon, 03 Nov 2003 10:40:49 -0500 Subject: [Mapserver-users] getFeatureInfo on dynamic layer - empty exception Message-ID: Hi Frieso, I will look into this a bit more carefully in a bit, but right off the bat I wonder if you have a problem because you have named your layer "wms" and maybe this is a reserved word. Try naming your layer something else? Debbie >>> "Frieso ter Haseborg" 11/03/03 06:25AM >>> Hi Debbie, from the PHP/MapScript for dynamic layer creation you shared with us I learned, that you're doing getFeatureInfos against a php-created layer. Does the error description below sound similar to anything you ran against during your development? Or are there any configuration-differences in the mapfile compared to your approach? Since there was low feedback from the list on this , I hope you could give me a hint. TIA, Frieso >-----Original Message----- >From: Frieso ter Haseborg >Sent: Tuesday, October 28, 2003 9:52 AM >To: mapserver-users@lists.gis.umn.edu >Subject: [Mapserver-users] getFeatureInfo on dynamic layer - empty >exception > > >Hi, > >I ran into a problem doing a getFeatureInfo-request on a dynamic layer. >I've got a PHP/Mapscript-component to build dynamic layers, this works >well on getMap-requests. Trying to do a getFeatureInfo-request I get >some strange results: > >When performin a request with a url like this: > >http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/ims.map&version= >1.1.0&req >uest=getFeatureInfo&query_layers=wms&x=251&y=329&INFO_FORMAT=te >xt/plain& >BBOX=2574700,5752000,2589700,5767000 > >I get an xml-doc with an empty exception statement: > > >"http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd"> > > > > > >This is the corresponding part of the mapfile: > >LAYER > NAME "wms" > TEMPLATE test.html > STATUS ON > TYPE POLYGON > CONNECTION "http://my.ip/kmvims/test4.php" > CONNECTIONTYPE WMS > TOLERANCE 3 > METADATA > "wms_srs" "EPSG:26915 EPSG:42101 EPSG:4269 EPSG:4326 >EPSG:42304" > "wms_name" "wms" > "wms_title" "test" > "wms_server_version" "1.1.0" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" > > END > OFFSITE 255 255 255 >END > >system-configuration: Win2k; Apache 2.0.47; MS 4.0; PHP 4.3.2, >MapScript >rev 1.177 > >The getFeatureInfo-request works fine on my shape-layers but no success >on the dynamic layer. And what's oddest, the php in my dynamic layer >seems not to be executed at all. When doing a getFeatureInfo-request I >do just a echo "test"; and log the get-Parameters into a logfile. But >the log stays untouched, whereas the log works fine on the >getMap-request. Any ideas? > >Any hint would be appreciated. > >TIA, > >Frieso ter Haseborg >- Software Development - > >-- > >-------------------------------------------------- >S&F Datentechnik GmbH&Co.KG >Reimersstr. 41b >26789 Leer, Germany > > > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From pagurekd@agr.gc.ca Mon Nov 3 15:54:28 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Mon, 03 Nov 2003 10:54:28 -0500 Subject: [Mapserver-users] getFeatureInfo on dynamic layer - empty exception Message-ID: Hi again Frieso, another thing I see is that you are requesting a WMS layer, but you have specified TYPE POLYGON in your mapfile Layer section. It should be TYPE RASTER. Debbie >>> "Frieso ter Haseborg" 11/03/03 06:25AM >>> Hi Debbie, from the PHP/MapScript for dynamic layer creation you shared with us I learned, that you're doing getFeatureInfos against a php-created layer. Does the error description below sound similar to anything you ran against during your development? Or are there any configuration-differences in the mapfile compared to your approach? Since there was low feedback from the list on this , I hope you could give me a hint. TIA, Frieso >-----Original Message----- >From: Frieso ter Haseborg >Sent: Tuesday, October 28, 2003 9:52 AM >To: mapserver-users@lists.gis.umn.edu >Subject: [Mapserver-users] getFeatureInfo on dynamic layer - empty >exception > > >Hi, > >I ran into a problem doing a getFeatureInfo-request on a dynamic layer. >I've got a PHP/Mapscript-component to build dynamic layers, this works >well on getMap-requests. Trying to do a getFeatureInfo-request I get >some strange results: > >When performin a request with a url like this: > >http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/ims.map&version= >1.1.0&req >uest=getFeatureInfo&query_layers=wms&x=251&y=329&INFO_FORMAT=te >xt/plain& >BBOX=2574700,5752000,2589700,5767000 > >I get an xml-doc with an empty exception statement: > > >"http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd"> > > > > > >This is the corresponding part of the mapfile: > >LAYER > NAME "wms" > TEMPLATE test.html > STATUS ON > TYPE POLYGON > CONNECTION "http://my.ip/kmvims/test4.php" > CONNECTIONTYPE WMS > TOLERANCE 3 > METADATA > "wms_srs" "EPSG:26915 EPSG:42101 EPSG:4269 EPSG:4326 >EPSG:42304" > "wms_name" "wms" > "wms_title" "test" > "wms_server_version" "1.1.0" > "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" > "wms_format" "image/gif" > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" > > END > OFFSITE 255 255 255 >END > >system-configuration: Win2k; Apache 2.0.47; MS 4.0; PHP 4.3.2, >MapScript >rev 1.177 > >The getFeatureInfo-request works fine on my shape-layers but no success >on the dynamic layer. And what's oddest, the php in my dynamic layer >seems not to be executed at all. When doing a getFeatureInfo-request I >do just a echo "test"; and log the get-Parameters into a logfile. But >the log stays untouched, whereas the log works fine on the >getMap-request. Any ideas? > >Any hint would be appreciated. > >TIA, > >Frieso ter Haseborg >- Software Development - > >-- > >-------------------------------------------------- >S&F Datentechnik GmbH&Co.KG >Reimersstr. 41b >26789 Leer, Germany > > > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ter-haseborg@sf-datentechnik.de Mon Nov 3 16:23:02 2003 From: ter-haseborg@sf-datentechnik.de (Frieso ter Haseborg) Date: Mon, 3 Nov 2003 17:23:02 +0100 Subject: [Mapserver-users] getFeatureInfo on dynamic layer - emptyexception Message-ID: <0DF955F15A102E4F81B948D44A45015A06924B@nt-sf-exchange.Windows2000> Hi Debbie, thanks for your response. >[...] >I wonder if you have a problem because you have named your layer >"wms" and maybe this is a reserved word. Try naming your layer >something else? Looks like the layer-name is not cause of the problem, with a more qualified term or simply any other "non-reserved-word"-name it doesn't work either. >[...] >another thing I see is that you are requesting a WMS layer, but you >have specified TYPE POLYGON in your mapfile Layer section. >It should be TYPE RASTER. Whoops! Sorry, these are remains of my desperate trials to isolate the problem. I had the idea that perhaps getFeatureInfo-requests would only be executed on non-raster layers. But there's no difference in this special problem when changing the layer-type: in both cases the php simply isn't called at all. TIA, Frieso >-----Original Message----- >From: Debbie Pagurek [mailto:pagurekd@agr.gc.ca] >Sent: Monday, November 03, 2003 4:41 PM >To: Frieso ter Haseborg >Cc: mapserver-users@lists.gis.umn.edu >Subject: RE: [Mapserver-users] getFeatureInfo on dynamic layer - >emptyexception > > >Hi Frieso, >I will look into this a bit more carefully in a bit, but right off the >bat I wonder if you have a problem because you have named your layer >"wms" and maybe this is a reserved word. Try naming your layer >something else? > >Debbie > >>>> "Frieso ter Haseborg" 11/03/03 >06:25AM >>> >Hi Debbie, > >from the PHP/MapScript for dynamic layer creation you shared with us I >learned, that you're doing getFeatureInfos against a php-created layer. > > >Does the error description below sound similar to anything you ran >against during your development? Or are there any >configuration-differences in the mapfile compared to your approach? > >Since there was low feedback from the list on this , I hope you could >give me a hint. > >TIA, >Frieso > >>-----Original Message----- >>From: Frieso ter Haseborg >>Sent: Tuesday, October 28, 2003 9:52 AM >>To: mapserver-users@lists.gis.umn.edu >>Subject: [Mapserver-users] getFeatureInfo on dynamic layer - empty >>exception >> >> >>Hi, >> >>I ran into a problem doing a getFeatureInfo-request on a dynamic >layer. >>I've got a PHP/Mapscript-component to build dynamic layers, this >works >>well on getMap-requests. Trying to do a getFeatureInfo-request I get >>some strange results: >> >>When performin a request with a url like this: >> >>http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/ims.map&version= >>1.1.0&req >>uest=getFeatureInfo&query_layers=wms&x=251&y=329&INFO_FORMAT=te >>xt/plain& >>BBOX=2574700,5752000,2589700,5767000 >> >>I get an xml-doc with an empty exception statement: >> >> >>>"http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd"> >> >> >> >> >> >>This is the corresponding part of the mapfile: >> >>LAYER >> NAME "wms" >> TEMPLATE test.html >> STATUS ON >> TYPE POLYGON >> CONNECTION "http://my.ip/kmvims/test4.php" >> CONNECTIONTYPE WMS >> TOLERANCE 3 >> METADATA >> "wms_srs" "EPSG:26915 EPSG:42101 EPSG:4269 EPSG:4326 >>EPSG:42304" >> "wms_name" "wms" >> "wms_title" "test" >> "wms_server_version" "1.1.0" >> "wms_formatlist" >"image/gif,image/png,image/jpeg,image/wbmp" >> "wms_format" "image/gif" >> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" >> >> END >> OFFSITE 255 255 255 >>END >> >>system-configuration: Win2k; Apache 2.0.47; MS 4.0; PHP 4.3.2, >>MapScript >>rev 1.177 >> >>The getFeatureInfo-request works fine on my shape-layers but no >success >>on the dynamic layer. And what's oddest, the php in my dynamic layer >>seems not to be executed at all. When doing a getFeatureInfo-request >I >>do just a echo "test"; and log the get-Parameters into a logfile. But >>the log stays untouched, whereas the log works fine on the >>getMap-request. Any ideas? >> >>Any hint would be appreciated. >> >>TIA, >> >>Frieso ter Haseborg >>- Software Development - >> >>-- >> >>-------------------------------------------------- >>S&F Datentechnik GmbH&Co.KG >>Reimersstr. 41b >>26789 Leer, Germany >> >> >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From pagurekd@agr.gc.ca Mon Nov 3 16:45:59 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Mon, 03 Nov 2003 11:45:59 -0500 Subject: [Mapserver-users] getFeatureInfo on dynamic layer - emptyexception Message-ID: Aside from trying to do a getfeatureinfo request - are you able to even just see the image of your dynamic layer when you set up your dynamic layer within a mapfile like this? I am asking because in order for me to see my dynamic layer of points via a wms request from within a mapfile, I need to add some parameters to the connection string. Here's what my LAYER looks like in my mapfile ( by the way I haven't tested getfeatureinfo - I don't really understand this part yet because it looks to me like you would need an interface with a query tool on it and it is Mapserver that then forms a query request and it would need to know how to generate a getfeatureinfo request?) Here is my LAYER and I can see the image of my dynamic layer points: LAYER NAME "taxa" TYPE RASTER STATUS ON TEMPLATE VOID CONNECTION "http://myhost/mapdata/itis/testscript.php?version=1.1.0&request=Getmap&layers=Cyanocitta%20cristata&format=image/png" CONNECTIONTYPE WMS PROJECTION "init=epsg:4326" END METADATA "wms_title" "test" "wms_srs" "EPSG:4326" "wms_abstract" "itis wms layer" "wms_extent" "-180 -90 180 90" "wms_opaque" "1" "wms_onlineresource" "http://latlong24.gis.agr.gc.ca/mapdata/itis/testscript.php?version=1.1.0&request=Getmap&layers=Cyanocitta%20cristata" "wms_server_version" "1.1.0" "wms_name" "test" END END I can then see the dynamic layer in the browser when I send the URL: http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv_40?map=/usr/www/httpd/htdocs/mapdata/itis/test.map&Layers=taxa&mode=map this is different from what you are trying to do with your URL, which is trying sending a WMS getfeatureinfo request to your dynamic layer via a wms layer included in a mapfile. Are you able to send a getfeatureinfo request directly to your script http://my.ip/kmvims/test4.php as in http://my.ip/kmvims/test4.php?version=1.1.0&request=getfeatureinfo&query_layers=wms&x=251&y=329&INFO_FORMAT=text/plain?? Debbie >>> "Frieso ter Haseborg" 11/03/03 11:23AM >>> Hi Debbie, thanks for your response. >[...] >I wonder if you have a problem because you have named your layer >"wms" and maybe this is a reserved word. Try naming your layer >something else? Looks like the layer-name is not cause of the problem, with a more qualified term or simply any other "non-reserved-word"-name it doesn't work either. >[...] >another thing I see is that you are requesting a WMS layer, but you >have specified TYPE POLYGON in your mapfile Layer section. >It should be TYPE RASTER. Whoops! Sorry, these are remains of my desperate trials to isolate the problem. I had the idea that perhaps getFeatureInfo-requests would only be executed on non-raster layers. But there's no difference in this special problem when changing the layer-type: in both cases the php simply isn't called at all. TIA, Frieso >-----Original Message----- >From: Debbie Pagurek [mailto:pagurekd@agr.gc.ca] >Sent: Monday, November 03, 2003 4:41 PM >To: Frieso ter Haseborg >Cc: mapserver-users@lists.gis.umn.edu >Subject: RE: [Mapserver-users] getFeatureInfo on dynamic layer - >emptyexception > > >Hi Frieso, >I will look into this a bit more carefully in a bit, but right off the >bat I wonder if you have a problem because you have named your layer >"wms" and maybe this is a reserved word. Try naming your layer >something else? > >Debbie > >>>> "Frieso ter Haseborg" 11/03/03 >06:25AM >>> >Hi Debbie, > >from the PHP/MapScript for dynamic layer creation you shared with us I >learned, that you're doing getFeatureInfos against a php-created layer. > > >Does the error description below sound similar to anything you ran >against during your development? Or are there any >configuration-differences in the mapfile compared to your approach? > >Since there was low feedback from the list on this , I hope you could >give me a hint. > >TIA, >Frieso > >>-----Original Message----- >>From: Frieso ter Haseborg >>Sent: Tuesday, October 28, 2003 9:52 AM >>To: mapserver-users@lists.gis.umn.edu >>Subject: [Mapserver-users] getFeatureInfo on dynamic layer - empty >>exception >> >> >>Hi, >> >>I ran into a problem doing a getFeatureInfo-request on a dynamic >layer. >>I've got a PHP/Mapscript-component to build dynamic layers, this >works >>well on getMap-requests. Trying to do a getFeatureInfo-request I get >>some strange results: >> >>When performin a request with a url like this: >> >>http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/ims.map&version= >>1.1.0&req >>uest=getFeatureInfo&query_layers=wms&x=251&y=329&INFO_FORMAT=te >>xt/plain& >>BBOX=2574700,5752000,2589700,5767000 >> >>I get an xml-doc with an empty exception statement: >> >> >>>"http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd"> >> >> >> >> >> >>This is the corresponding part of the mapfile: >> >>LAYER >> NAME "wms" >> TEMPLATE test.html >> STATUS ON >> TYPE POLYGON >> CONNECTION "http://my.ip/kmvims/test4.php" >> CONNECTIONTYPE WMS >> TOLERANCE 3 >> METADATA >> "wms_srs" "EPSG:26915 EPSG:42101 EPSG:4269 EPSG:4326 >>EPSG:42304" >> "wms_name" "wms" >> "wms_title" "test" >> "wms_server_version" "1.1.0" >> "wms_formatlist" >"image/gif,image/png,image/jpeg,image/wbmp" >> "wms_format" "image/gif" >> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" >> >> END >> OFFSITE 255 255 255 >>END >> >>system-configuration: Win2k; Apache 2.0.47; MS 4.0; PHP 4.3.2, >>MapScript >>rev 1.177 >> >>The getFeatureInfo-request works fine on my shape-layers but no >success >>on the dynamic layer. And what's oddest, the php in my dynamic layer >>seems not to be executed at all. When doing a getFeatureInfo-request >I >>do just a echo "test"; and log the get-Parameters into a logfile. But >>the log stays untouched, whereas the log works fine on the >>getMap-request. Any ideas? >> >>Any hint would be appreciated. >> >>TIA, >> >>Frieso ter Haseborg >>- Software Development - >> >>-- >> >>-------------------------------------------------- >>S&F Datentechnik GmbH&Co.KG >>Reimersstr. 41b >>26789 Leer, Germany >> >> >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From innaj@web.de Mon Nov 3 17:42:35 2003 From: innaj@web.de (Inna Janssen) Date: Mon, 3 Nov 2003 18:42:35 +0100 Subject: [Mapserver-users] gdlib and pdflib Message-ID: <200311031742.hA3HgZQ06450@mailgate5.cinetic.de> Hello, my web provider told me the PDFlib and the GDLib don't work together. So they can only offer me a server with one of the both libraries installed. If I understand correctly, MapScript does need BOTH libraries ? Or is it possible to use MapScript without the PDFLib library? I'm confused... Inna ______________________________________________________________________________ Die Besten ihrer Klasse! WEB.DE FreeMail (1,7) und WEB.DE Club (1,9) - bei der Stiftung Warentest - ein Doppelsieg! http://f.web.de/?mc=021184 From dblasby@refractions.net Mon Nov 3 17:41:29 2003 From: dblasby@refractions.net (David Blasby) Date: Mon, 03 Nov 2003 09:41:29 -0800 Subject: [Mapserver-users] postgis/postgrsql/geos In-Reply-To: <8BC0EAF5B383D711B69E0006293896C7B18370@ZEVHNT6> References: <8BC0EAF5B383D711B69E0006293896C7B18370@ZEVHNT6> Message-ID: <3FA69349.3090209@refractions.net> Elstermann, Mike wrote: > for example: > select disjoint(\'LINESTRING(0 0,0 0)\'::geometry, \'LINESTRING(0 0,0 > 1)\'::geometry ); > > Warning: pg_exec() query failed: ERROR: Function disjoint(geometry, > geometry) does not exist Unable to identify a function that satisfies the > given argument types You may need to add explicit typecasts > > where is the error? Use the CVS version of postgis and set "USE_GEOS=1" in the makefile. dave From EBashi@chesapeakebay.net Mon Nov 3 19:51:02 2003 From: EBashi@chesapeakebay.net (Enils Bashi) Date: Mon, 3 Nov 2003 14:51:02 -0500 Subject: [Mapserver-users] new install on Redhat 9 Message-ID: <5BDF17DD2B5B224BBFFDFE0EA23CF93D099686@mail2.chesapeakebay.net> Dear Mapserver Users, I have installed mapserver on Redhat 9 and I place mapserv binary in the cgi-bin directory of my Apache2 and I get an internal error message. I checked the file permissions and they are rwxr-xr-x. Does anybody have any idea about whats going on here. Also, Is there a nice step by step installation file put together. Using the mapserver website for all the packages needed prior to installation was a bit crude. Any and all feedback would be greatly appreciated. Enils Bashi Programmer - Chesapeake Bay Program Veridyne Incorporated Annapolis, Maryland: (410) 267-9833 www.chesapeakebay.net From steve.lime@dnr.state.mn.us Mon Nov 3 19:52:11 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 03 Nov 2003 13:52:11 -0600 Subject: [Mapserver-users] gdlib and pdflib Message-ID: You must have GD, PDFlib is optional. You certainly could compile a version of MapServer that uses both. Steve >>> "Inna Janssen" 11/3/2003 11:42:35 AM >>> Hello, my web provider told me the PDFlib and the GDLib don't work together. So they can only offer me a server with one of the both libraries installed. If I understand correctly, MapScript does need BOTH libraries ? Or is it possible to use MapScript without the PDFLib library? I'm confused... Inna ______________________________________________________________________________ Die Besten ihrer Klasse! WEB.DE FreeMail (1,7) und WEB.DE Club (1,9) - bei der Stiftung Warentest - ein Doppelsieg! http://f.web.de/?mc=021184 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From john.hagstrand@interageresearch.com Mon Nov 3 20:40:30 2003 From: john.hagstrand@interageresearch.com (John Hagstrand) Date: Mon, 3 Nov 2003 14:40:30 -0600 Subject: [Mapserver-users] mySQL 4.1 spatial extensions Message-ID: Hello, Does MapServer now support the mySQL 4.1 spatial extensions in the same way that it supports PostGIS? John John Hagstrand Interage Research, Inc. www.interageresearch.com Information Technology Consulting From stephen.clark@focus.ca Mon Nov 3 22:00:52 2003 From: stephen.clark@focus.ca (Stephen Clark) Date: Mon, 3 Nov 2003 14:00:52 -0800 Subject: [Mapserver-users] compiling regex on windows References: <9952785A-0DBA-11D8-9095-000A957A0F9C@vt.edu> Message-ID: <114201c3a255$f35bdeb0$6c000a0a@sclark> Heve you tried compiling using at a command window: nmake /f makefile.vc ----- Original Message ----- From: "Abram Gillespie" To: Sent: Sunday, November 02, 2003 9:00 PM Subject: [Mapserver-users] compiling regex on windows > i'm trying to compile the regex lib on windows 2000 with vs.net. i get > the following error: > c:\source_code\regex-0.12\regex.c(63) : fatal error C1083: Cannot open > include file: 'strings.h': No such file or directory > > then when i define HAVE_STRING_H to try to fix the above error i get > these: > c:\source_code\regex-0.12\regex.c(808) : error C2365: 're_set_syntax' : > redefinition; previous definition was a 'function' > c:\source_code\regex-0.12\regex.h(404) : see declaration of > 're_set_syntax' > c:\source_code\regex-0.12\regex.c(808) : error C2146: syntax error : > missing ';' before identifier 'reg_syntax_t' > c:\source_code\regex-0.12\regex.c(808) : fatal error C1004: unexpected > end of file found > > anything i can do? > > thanks. > abe > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From assefa@dmsolutions.ca Mon Nov 3 21:04:55 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 03 Nov 2003 16:04:55 -0500 Subject: [Mapserver-users] distanceToPoint in kilometres? In-Reply-To: <86286400752.20031103154049@justapi.de> References: <86286400752.20031103154049@justapi.de> Message-ID: <3FA6C2F7.20506@dmsolutions.ca> One possible way of doing that would be to convert your 2 lat/long positions to a projected unit system and then use the distanceToPoint (or your local code) to compute the distance. You can use the php_proj utility (which uses Proj.4) to do your conversion. If you are builing mapserver yourself, the file is php_proj.c inside the php3 directory and It should be built into a php_proj.so. If you are on windows, you can download the php_proj.dll which should be bundeled with the php zip file at http://www.maptools.org/php_mapscript/index.phtml Later, Sebastian Albrecht wrote: > Hi everybody, > > I just tried to use the distanceToPoint method in my PHP Mapscript > application. It seems to calculate the mathematical distance of the > two given points (Pythagoras?). > > Of course this is not very useful because I cannot convert it to a > metric distance so that a distance of 90,00 can be very short (at the > poles) or very long. > > Is there a possibility to calculate the real distance considering > projection and ellipsoids? I think it might work with PROJ.4 somehow, > but the whole site seems to be offline at the moment. > > Does anybody have a clue? > > Best regards, > Sebastian > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From morissette@dmsolutions.ca Mon Nov 3 21:14:40 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Nov 2003 16:14:40 -0500 Subject: [Mapserver-users] mySQL 4.1 spatial extensions In-Reply-To: References: Message-ID: <3FA6C540.3080705@dmsolutions.ca> John Hagstrand wrote: > > Does MapServer now support the mySQL 4.1 spatial extensions in the same way > that it supports PostGIS? > Nothing changed in the source yet for sure and I'm not aware of any plans to add this. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From scoota@supanet.com Mon Nov 3 21:13:23 2003 From: scoota@supanet.com (Keith Campbell) Date: Mon, 03 Nov 2003 21:13:23 +0000 Subject: [Mapserver-users] MySQL Spatial Extensions Message-ID: <3FA6C4F3.8000105@supanet.com> Hello All, Does Mapserver provide support for the MySQL Spatial Extensions (R4.1)? Keith From EBashi@chesapeakebay.net Mon Nov 3 21:27:07 2003 From: EBashi@chesapeakebay.net (Enils Bashi) Date: Mon, 3 Nov 2003 16:27:07 -0500 Subject: [Mapserver-users] mapserver build on redhat 9 problems Message-ID: <5BDF17DD2B5B224BBFFDFE0EA23CF93D099688@mail2.chesapeakebay.net> Hi all, Here is a directory view of the packages I have build from source. [root@nutria mapserver]# ls freetype-2.1.4 jpeg-6b mapserver-4.0.1 proj-4.4.7 xpm-3.4k-linux gd-2.0.15 libpng-1.2.5 ming-0.2a tiff-v3.5.6-beta zlib-1.1.4 When I try to specifiy the path of the required packages, here is what I get: [root@nutria mapserver-4.0.1]# ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-freetype=/noaa/mapserver/freetype-2.1.4/ --with-gd=/noaa/mapserver/gd-2.0.15/ --with-jpeg=/noaa/mapserver/jpeg-6b/ --with-libiconv=/noaa/mapserver/libiconv-1.9.1/ --with-libpng=/noaa/mapserver/libpng-1.2.5/ --with-ming=/noaa/mapserver/ming-0.2a/ --with-xpm=/noaa/mapserver/xpm-3.4k-linux/ --with-prog=/noaa/mapserver/proj-4.4.7/ --with-tiff=/noaa/mapserver/tiff-v3.5.6-beta/ --with-zlib=/noaa/mapserver/zlib-1.1.4/ loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking whether we should include JPEG support... Could not find jpeglib.h or libjpeg.a/libjpeg.so in /noaa/mapserver/jpeg-6b/. checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... using libz from -L/noaa/mapserver/zlib-1.1.4/ -lz checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking where libXpm is installed... using libXpm from -L/noaa/mapserver/xpm-3.4k-linux//lib -lXpm -lX11 checking where libiconv is installed... checking for libiconv_open in -liconv... yes using libiconv from system libs. checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... no checking whether GD needs libiconv... checking for gdImageSetAntiAliased in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /noaa/mapserver/gd-2.0.15/. Make sure GD 2.0.12 or higher is compiled before calling configure. --------------------- The files it is complaining about are in /noaa/mapserver/gd-2.0.15. [root@nutria gd-2.0.15]# find . -name "gd.h" ./gd.h [root@nutria gd-2.0.15]# find . -name "libgd.a" ./.libs/libgd.a [root@nutria gd-2.0.15]# find . -name "libgd.so" ./.libs/libgd.so --- Is this weird or what? If I run configure with no options it runs ok, but the mapserv binary does not work with apache2 ( and the permissions are set right) Does anyone have a clue of what's happening here? --- Enils From morissette@dmsolutions.ca Mon Nov 3 21:36:46 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Nov 2003 16:36:46 -0500 Subject: [Mapserver-users] distanceToPoint in kilometres? In-Reply-To: <3FA6C2F7.20506@dmsolutions.ca> References: <86286400752.20031103154049@justapi.de> <3FA6C2F7.20506@dmsolutions.ca> Message-ID: <3FA6CA6E.1060408@dmsolutions.ca> You could also have a look at the 'geod' program that comes with PROJ. Daniel Yewondwossen Assefa wrote: > One possible way of doing that would be to convert your 2 lat/long > positions to a projected unit system and then use the distanceToPoint > (or your local code) to compute the distance. > You can use the php_proj utility (which uses Proj.4) to do your > conversion. If you are builing mapserver yourself, the file is > php_proj.c inside the php3 directory and It should be built into a > php_proj.so. If you are on windows, you can download the php_proj.dll > which should be bundeled with the php zip file at > http://www.maptools.org/php_mapscript/index.phtml > > Later, > > Sebastian Albrecht wrote: > >> Hi everybody, >> >> I just tried to use the distanceToPoint method in my PHP Mapscript >> application. It seems to calculate the mathematical distance of the >> two given points (Pythagoras?). >> >> Of course this is not very useful because I cannot convert it to a >> metric distance so that a distance of 90,00 can be very short (at the >> poles) or very long. >> >> Is there a possibility to calculate the real distance considering >> projection and ellipsoids? I think it might work with PROJ.4 somehow, >> but the whole site seems to be offline at the moment. >> >> Does anybody have a clue? >> >> Best regards, >> Sebastian >> From erich@museum.state.il.us Mon Nov 3 22:02:21 2003 From: erich@museum.state.il.us (Erich Schroeder) Date: Mon, 3 Nov 2003 16:02:21 -0600 (CST) Subject: [Mapserver-users] distanceToPoint in kilometres? In-Reply-To: <3FA6CA6E.1060408@dmsolutions.ca> Message-ID: On Mon, 3 Nov 2003, Daniel Morissette wrote: > Yewondwossen Assefa wrote: > > One possible way of doing that would be to convert your 2 lat/long > > positions to a projected unit system and then use the distanceToPoint > > (or your local code) to compute the distance. > > You can use the php_proj utility (which uses Proj.4) to do your > > conversion. If you are builing mapserver yourself, the file is Whoa, I must have missed this before. What is the "php_proj" utility? Erich -- --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab email:erich(at)illinois.state.museum http://illinois.state.museum/ --------------------------------------------------------------------- From erich@museum.state.il.us Mon Nov 3 22:10:17 2003 From: erich@museum.state.il.us (Erich Schroeder) Date: Mon, 3 Nov 2003 16:10:17 -0600 (CST) Subject: [Mapserver-users] distanceToPoint in kilometres? In-Reply-To: Message-ID: Nevermind, I found it. I just had never heard of it before. On Mon, 3 Nov 2003, Erich Schroeder wrote: > On Mon, 3 Nov 2003, Daniel Morissette wrote: > > > Yewondwossen Assefa wrote: > > > One possible way of doing that would be to convert your 2 lat/long > > > positions to a projected unit system and then use the distanceToPoint > > > (or your local code) to compute the distance. > > > You can use the php_proj utility (which uses Proj.4) to do your > > > conversion. If you are builing mapserver yourself, the file is > > Whoa, I must have missed this before. What is the "php_proj" utility? > > Erich > > -- --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab email:erich(at)illinois.state.museum http://illinois.state.museum/ --------------------------------------------------------------------- From morissette@dmsolutions.ca Mon Nov 3 22:13:24 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Nov 2003 17:13:24 -0500 Subject: [Mapserver-users] mapserver build on redhat 9 problems In-Reply-To: <5BDF17DD2B5B224BBFFDFE0EA23CF93D099688@mail2.chesapeakebay.net> References: <5BDF17DD2B5B224BBFFDFE0EA23CF93D099688@mail2.chesapeakebay.net> Message-ID: <3FA6D304.7080102@dmsolutions.ca> Enils Bashi wrote: > configure: error: Could not find gd.h or libgd.a/libgd.so in > /noaa/mapserver/gd-2.0.15/. Make sure GD 2.0.12 or higher is compiled before > calling configure. > --------------------- > > The files it is complaining about are in /noaa/mapserver/gd-2.0.15. > > [root@nutria gd-2.0.15]# find . -name "gd.h" > ./gd.h > > [root@nutria gd-2.0.15]# find . -name "libgd.a" > ./.libs/libgd.a > > [root@nutria gd-2.0.15]# find . -name "libgd.so" > ./.libs/libgd.so > > > --- Is this weird or what? > It is quite likely that you didn't 'install' the GD files. You need to run 'make install' as root in the gd-2.0.15 directory to have the files installed in a location where they can be used for compiling and at runtime by a program. By default the files will be installed under /usr/local/lib and /usr/local/bin. If you do not want to install in that location then you can use the --prefix configure option to specify a different install destination when you configure GD. > If I run configure with no options it runs ok, but the mapserv binary does > not work with > apache2 ( and the permissions are set right) > > So you already have another GD installed in the default system directory, MapServer's configure finds it and tries to use it. It's either coming from RH RPMs, or you did run make install in the GD directory already but didn't run 'ldconfig'. Either way read on, there may be a couple of reasons why you get the error... check the Apache error_log, and look for an error message. If the error_log says something about libgd.so.x.y not found then make sure that library is in your runtime library path, see the following wiki page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FindingSharedLibraries It may also be a crash or a 'libgd.so: symbol xxx not found' kind of error, in which case you quite likely have more than one copy of the GD lib + headers installed on your system (one coming from RH RPM, and one coming from source?) and you may need to remove the gd-devel RPM to avoid a conflict with the copy that you installed from source. HTH Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From morissette@dmsolutions.ca Mon Nov 3 22:25:08 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Nov 2003 17:25:08 -0500 Subject: [Mapserver-users] cascading transparently from ArcIMS In-Reply-To: <10552.212.238.227.182.1067860133.squirrel@webmail.xs4all.nl> References: <10552.212.238.227.182.1067860133.squirrel@webmail.xs4all.nl> Message-ID: <3FA6D5C4.9040109@dmsolutions.ca> bartvde@xs4all.nl wrote: > Hi list, > > has anybody succeeded in getting Mapserver to display images from ArcIMS > in a transparent way? > > I tried using PNG (both 8 and 24 bit) on ArcIMS 4.0, since I do not have a > GIF license for it. But I cannot get it to display transparently. > > Any info would be appreciated. > > Best regards, > Bart > > In the WMS client HWOTO it says: > > PNG format with transparent=true does not work well with all servers. For > instance some servers use the alpha channel for transparency (RGBA images) > but this is not well supported by MapServer at the moment. So you may be > forced to request GIF format maps in those cases. Transparent PNGs > produced by the MapServer WMS work well though since they are paletted > images. I believe we've used transparent ArcIMS layers as part of WMS client maps before and I also thought most of those PNG issues had been resolved in 4.0, making this note obsolete, but I could be wrong with both affirmations. If you have a mapfile pointing to public ArcIMS layers that reproduces this then perhaps you could file a bug and we can try to have a look. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From morissette@dmsolutions.ca Mon Nov 3 23:04:24 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Nov 2003 18:04:24 -0500 Subject: [Mapserver-users] Php Mapscript with 500 layers, 1000 classes ?? In-Reply-To: <023d01c3a00e$5ae6b040$6c000a0a@sclark> References: <1067514633.3fa0fb09da8e6@dutilleux.ensg.ign.fr> <002601c39f03$2a5c82d0$6c000a0a@sclark> <3FA1363E.9090508@dmsolutions.ca> <023d01c3a00e$5ae6b040$6c000a0a@sclark> Message-ID: <3FA6DEF8.8000007@dmsolutions.ca> Stephen Clark wrote: > Would DM Solutions be willing to post a PHP Mapscript version with 500 > layers, 1000 classes? > P.H.P version 4.3.2 Mapserver 4.0.0 > There is currently a build that was prepared for (and paid for by) another user on this list with the latest 4.0.1 source, PHP 4.3.3 (should work with all 4.3.x) and 500 layers, 500 classes and 500 symbols at: http://www.maptools.org/dl/mapserver-4.0.1-win32-php4.3.3-MAX=500.zip Since this custom build question seems to be becoming an FAQ, here is our (DM Solutions') position on custom windows builds: We do post generic windows builds with the default values and the most common options enabled for every release for free, but we have to draw the line somewhere and can't do custom builds for free since it costs us money (employee time=money) to prepare them. However if you are willing to pay (to cover our costs) for a custom build we can do that for you and then we'll be happy to post it on our site for others to download as well. For a build with the regular options enabled and just the numbers of layers/classes/symbols changed it costs 150$CAD (plus the usual taxes if you're in Canada). I know there are also other users that prepare and distribute custom builds and we encourage them to do so if they have the time... we don't really base our business on custom builds, it's more a service to the users. Finally, we've wanted to remove those static limits in MapServer for quite a while, there is bug 302 about this. Hopefully we can get to this for version 4.1 and this whole thing won't be an issue any more. > If not could you post a description of how to compile php mapscript. The > Wiki and online docs are a little sketchy. Or perhaps someone could update > the docs for php mapsript to version 4.0.0 and php 4.3.2. > We provide win32 builds for download because it's much easier for us and for windows users this way than it would be to support people who aren't familiar with a compiler environment through the process of compiling MapServer and all its dependencies. This being said, if you are familiar with compiling programs on Windows then the stuff that's currently in the docs and the wiki and README.WIN32 in the source should hopefully get you going. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From steve.lime@dnr.state.mn.us Mon Nov 3 23:08:39 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 03 Nov 2003 17:08:39 -0600 Subject: [Mapserver-users] distanceToPoint in kilometres? Message-ID: Also note that mapscript itself has project methods defined for points and shapes if MapScript is built with Proj.4, at least the Swig'd version does... Steve >>> Erich Schroeder 11/3/2003 4:10:17 PM >>> Nevermind, I found it. I just had never heard of it before. On Mon, 3 Nov 2003, Erich Schroeder wrote: > On Mon, 3 Nov 2003, Daniel Morissette wrote: > > > Yewondwossen Assefa wrote: > > > One possible way of doing that would be to convert your 2 lat/long > > > positions to a projected unit system and then use the distanceToPoint > > > (or your local code) to compute the distance. > > > You can use the php_proj utility (which uses Proj.4) to do your > > > conversion. If you are builing mapserver yourself, the file is > > Whoa, I must have missed this before. What is the "php_proj" utility? > > Erich > > -- --------------------------------------------------------------------- Erich Schroeder Phone: (217)785-0033 Curator, Information Technologies FAX: (217)785-2857 Illinois State Museum GIS Lab email:erich(at)illinois.state.museum http://illinois.state.museum/ --------------------------------------------------------------------- _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From steve.lime@dnr.state.mn.us Mon Nov 3 23:11:08 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 03 Nov 2003 17:11:08 -0600 Subject: [Mapserver-users] mapserver build on redhat 9 problems Message-ID: Redhat likely has a version of GD already installed on the system, check in /usr/lib. Steve >>> Enils Bashi 11/3/2003 3:27:07 PM >>> Hi all, Here is a directory view of the packages I have build from source. [root@nutria mapserver]# ls freetype-2.1.4 jpeg-6b mapserver-4.0.1 proj-4.4.7 xpm-3.4k-linux gd-2.0.15 libpng-1.2.5 ming-0.2a tiff-v3.5.6-beta zlib-1.1.4 When I try to specifiy the path of the required packages, here is what I get: [root@nutria mapserver-4.0.1]# ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-freetype=/noaa/mapserver/freetype-2.1.4/ --with-gd=/noaa/mapserver/gd-2.0.15/ --with-jpeg=/noaa/mapserver/jpeg-6b/ --with-libiconv=/noaa/mapserver/libiconv-1.9.1/ --with-libpng=/noaa/mapserver/libpng-1.2.5/ --with-ming=/noaa/mapserver/ming-0.2a/ --with-xpm=/noaa/mapserver/xpm-3.4k-linux/ --with-prog=/noaa/mapserver/proj-4.4.7/ --with-tiff=/noaa/mapserver/tiff-v3.5.6-beta/ --with-zlib=/noaa/mapserver/zlib-1.1.4/ loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking whether we should include JPEG support... Could not find jpeglib.h or libjpeg.a/libjpeg.so in /noaa/mapserver/jpeg-6b/. checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... using libz from -L/noaa/mapserver/zlib-1.1.4/ -lz checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking where libXpm is installed... using libXpm from -L/noaa/mapserver/xpm-3.4k-linux//lib -lXpm -lX11 checking where libiconv is installed... checking for libiconv_open in -liconv... yes using libiconv from system libs. checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... no checking whether GD needs libiconv... checking for gdImageSetAntiAliased in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /noaa/mapserver/gd-2.0.15/. Make sure GD 2.0.12 or higher is compiled before calling configure. --------------------- The files it is complaining about are in /noaa/mapserver/gd-2.0.15. [root@nutria gd-2.0.15]# find . -name "gd.h" ./gd.h [root@nutria gd-2.0.15]# find . -name "libgd.a" ./.libs/libgd.a [root@nutria gd-2.0.15]# find . -name "libgd.so" ./.libs/libgd.so --- Is this weird or what? If I run configure with no options it runs ok, but the mapserv binary does not work with apache2 ( and the permissions are set right) Does anyone have a clue of what's happening here? --- Enils _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From pramsey@refractions.net Mon Nov 3 23:30:09 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Mon, 03 Nov 2003 15:30:09 -0800 Subject: [Mapserver-users] MySQL Spatial Extensions In-Reply-To: <3FA6C4F3.8000105@supanet.com> References: <3FA6C4F3.8000105@supanet.com> Message-ID: <3FA6E501.3000504@refractions.net> Keith Campbell wrote: > Does Mapserver provide support for the MySQL Spatial Extensions (R4.1)? Not at the moment. Tried PostGIS (postgis.refractions.net)? P -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From stephen.clark@focus.ca Tue Nov 4 00:34:27 2003 From: stephen.clark@focus.ca (Stephen Clark) Date: Mon, 3 Nov 2003 16:34:27 -0800 Subject: [Mapserver-users] WMS connection for BC Albers -- howto ?? References: <1067528000.3fa12f40a2687@dutilleux.ensg.ign.fr> <3FA29BE8.4020101@dmsolutions.ca> Message-ID: <121b01c3a26b$67aa72d0$6c000a0a@sclark> Hello, Has anyone setup a wms connection to the BC Government wms servers that send out data in C Albers format? thanks, Stephen From snelson@refractions.net Tue Nov 4 00:03:30 2003 From: snelson@refractions.net (Shane Nelson) Date: Mon, 3 Nov 2003 16:03:30 -0800 Subject: [Mapserver-users] WMS connection for BC Albers -- howto ?? In-Reply-To: <121b01c3a26b$67aa72d0$6c000a0a@sclark> References: <1067528000.3fa12f40a2687@dutilleux.ensg.ign.fr> <3FA29BE8.4020101@dmsolutions.ca> <121b01c3a26b$67aa72d0$6c000a0a@sclark> Message-ID: <1067904210.3fa6ecd27338e@hydra> This message is in MIME format. --=_9e1e5a08cf877fb49bc7679a Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Yes. I've attached an OGC file from the Arc3WMS client (http://www.refractions.net/arc3wms/). This particular server is very picky about how it works. After loading the ogc file you can check the connection strings. If you have beta2 of the WMS client they will be in the %temp%\wms_client_log.txt file. ShaneQuoting Stephen Clark : > Hello, > > Has anyone setup a wms connection to the BC Government wms servers that send > out data in C Albers format? > > thanks, > Stephen > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > --=_9e1e5a08cf877fb49bc7679a Content-Type: application/octet-stream; name="BC Orthomosaic Albers.ogc" Content-Disposition: attachment; filename="BC Orthomosaic Albers.ogc" Content-Transfer-Encoding: base64 PHdtc19jbGllbnRfY29uZmlnPg0KCTx3bXNfdmVyc2lvbj4xLjAuMDwvd21zX3ZlcnNpb24+DQoJ PG9ubGluZV9yZXNvdXJjZT5odHRwOi8vc2xrYXBwczIuZW52Lmdvdi5iYy5jYTo4MC9zZXJ2bGV0 L2NvbS5lc3JpLndtcy5Fc3JpbWFwPC9vbmxpbmVfcmVzb3VyY2U+DQoJPGltYWdlX2Zvcm1hdF9s aXN0Pg0KCQk8aW1hZ2VfZm9ybWF0PmpwZWc8L2ltYWdlX2Zvcm1hdD4NCgk8L2ltYWdlX2Zvcm1h dF9saXN0Pg0KCTxsYXllcl9saXN0Pg0KCQk8bGF5ZXI+VFJJTSBPcnRob21vc2FpYzwvbGF5ZXI+ DQoJCTxsYXllcj5UUklNIE9ydGhvbW9zYWljIE92ZXJ2aWV3PC9sYXllcj4NCgk8L2xheWVyX2xp c3Q+DQoJPHNycz5lcHNnOjQyMTAyPC9zcnM+DQoJPGV4dGVudHMgbWlueD0iMjgwNjQ0IiBtaW55 PSIzNzE2ODYiIG1heHg9IjE4Mzk0NjMiIG1heHk9IjE3NDM5MjkiPjwvZXh0ZW50cz4NCjwvd21z X2NsaWVudF9jb25maWc+DQoNCg== --=_9e1e5a08cf877fb49bc7679a-- From Richard.Pierce@mail.state.ar.us Tue Nov 4 04:17:53 2003 From: Richard.Pierce@mail.state.ar.us (Richie Pierce) Date: Mon, 3 Nov 2003 22:17:53 -0600 Subject: [Mapserver-users] Basic text box query Message-ID: I am searching the archives for an example of a basic query, using a text box on a point layer. Thought I would send it too the list as well. Any help would be appreciated. Thanks in advance From H.Spalting@lippe.de Tue Nov 4 08:56:32 2003 From: H.Spalting@lippe.de (Spalting, Hermann (Kreis Lippe)) Date: Tue, 4 Nov 2003 09:56:32 +0100 Subject: [Mapserver-users] scaling labels Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C3A2B1.8B52B3F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I want my labels to be scaled like in a photocopy. Becomming bigger and bigger when zooming in. How does that work? Are truetypes required? Hermann Spalting=20 Kreis Lippe FG 4.4 Felix-Fechenbach-Stra=DFe 5 32756 Detmold email: << mailto:h.spalting@lippe.de >> Tel: 05231/62-625 (oder -7827) =20 ------_=_NextPart_001_01C3A2B1.8B52B3F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I want my=20 labels to be scaled like in a photocopy. Becomming bigger and bigger = when=20 zooming in.
How does that work? Are truetypes required?

Hermann = Spalting
Kreis Lippe
FG 4.4
Felix-Fechenbach-Stra=DFe 5
32756 Detmold
email: <<mailto:h.spalting@lippe.de>&g= t;
Tel: 05231/62-625 (oder -7827)

 
------_=_NextPart_001_01C3A2B1.8B52B3F0-- From mschulz@webgis.de Tue Nov 4 09:25:12 2003 From: mschulz@webgis.de (Michael Schulz) Date: Tue, 04 Nov 2003 10:25:12 +0100 Subject: [Mapserver-users] scaling labels In-Reply-To: References: Message-ID: <3FA77078.8060205@webgis.de> Hello, scaling of symbols and labels is done using SYMBOLSCALE on the layerobj together with MINSIZE and MAXSIZE on styleobj/symbolobj and labelobj, to limit dynamic sizing between these values. Not 100% sure, but i don't think Truetype is required. More information: http://mapserver.gis.umn.edu/doc40/mapfile-reference.html#layer Cheers und Grüße, Michael Spalting, Hermann (Kreis Lippe) schrieb: > I want my labels to be scaled like in a photocopy. Becomming bigger and > bigger when zooming in. > How does that work? Are truetypes required? > > Hermann Spalting > Kreis Lippe > FG 4.4 > Felix-Fechenbach-Straße 5 > 32756 Detmold > email: <> > Tel: 05231/62-625 (oder -7827) > > -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft für Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg 0761 55695-95 (Fax 96) mschulz@webgis.de www.webgis.de/www.zopecms.de From adams@terrestris.de Tue Nov 4 09:43:25 2003 From: adams@terrestris.de (Till Adams) Date: Tue, 04 Nov 2003 10:43:25 +0100 Subject: [Mapserver-users] scaling labels References: Message-ID: <3FA774BD.2000608@terrestris.de> Dear Mr.Spalting, you need the keyword "SYMBOLSCALE" which defines a scale from which the symbols and labels become bigger. An example: LAYER NAME 'Linie' DATA 'shape' STATUS ON TYPE Line MAXSCALE 1000 SYMBOLSCALE 750 METADATA WMS_SRS 'epsg:31493' WMS_TITLE 'Linie' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END PROJECTION 'init=epsg:31493' END CLASSITEM 'item' CLASS NAME 'Grenze_x' EXPRESSION /^xxx/ SYMBOL 'line' SIZE 1 COLOR 0 0 0 END # CLASS END # END LAYERFILE Greetings from Bonn, Till Spalting, Hermann (Kreis Lippe) schrieb: > I want my labels to be scaled like in a photocopy. Becomming bigger and > bigger when zooming in. > How does that work? Are truetypes required? > > Hermann Spalting > Kreis Lippe > FG 4.4 > Felix-Fechenbach-Straße 5 > 32756 Detmold > email: <> > Tel: 05231/62-625 (oder -7827) > > -- ***** Besuchen Sie uns auf der acqua alta ***** ***** vom 24.-27. November in München ***** ----- Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info@terrestris.de * www.terrestris.de From baud.remy@caramail.com Tue Nov 4 10:19:06 2003 From: baud.remy@caramail.com (baud remi ) Date: Tue, 04 Nov 2003 11:19:06 +0100 Subject: [Mapserver-users] flash output problem Message-ID: <1067941146032394@lycos-europe.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --=_NextPart_Lycos_0323941067941146_ID Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi the list, I wanted to output flash file for vector datas like polygons. (I use chameleon 1.1, ms4w 0.5) I've set in my chameleon.map file: In map object: IMAGETYPE SWF and an OUTPUTFORMAT: OUTPUTFORMAT NAME swf MIMETYPE "application/x-shockwave-flash" DRIVER swf IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END Then, when I lauch my application, no .swf file are written in c:\ms4w\tmp\ms_tmp\ My application don't load, it's always the "please wait ..." displayed. I suppose there is something with drawmap.php which tells that he encoutred problem with .swf files. My configuaration for mapserver 4.1 tells that mapscript support swf files. Do Anyone had a suggestion? Cheers! Votre e-mail et vos SMS vous suivent sur Minitel : 3615 CARAMAIL --=_NextPart_Lycos_0323941067941146_ID-- From ter-haseborg@sf-datentechnik.de Tue Nov 4 11:14:41 2003 From: ter-haseborg@sf-datentechnik.de (Frieso ter Haseborg) Date: Tue, 4 Nov 2003 12:14:41 +0100 Subject: [Mapserver-users] getFeatureInfo on dynamic layer -emptyexception Message-ID: <0DF955F15A102E4F81B948D44A45015A06924C@nt-sf-exchange.Windows2000> Hi Debbie, yes, I get an image of my dynamic layers. It works for one and for multiple layers and also in combination with static data from vector- or raster-files. >[...]I need to add some parameters >to the connection string. In my setup it works without parameters like "?version=1.1.0&request=Getmap&layers=...&format=..." since MS add's them automatically when performing a WMS-request like http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv_40?map=/usr/www/httpd/htd ocs/mapdata/itis/test.map&Layers=taxa&mode=map In the connection-parm I've just the path to the php, actually there will be added some parameters like 'uid' and 'pwd' for security purposes, but no wms-parms since this are passed automatically. btw: This should work for you too, AFAIK this is standard MS behaviour, I didn't add any special features to achieve this. In my understanding MS should call my php with the request passed behind the mapfile-parm, so when calling http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/kmvims/test.map&version=1 .1.0&request=GetMap I want MS to call my php like this: http://my.ip/kmvims/test4.php?version=1.1.0&request=GetMap. This part works! When calling http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/kmvims/test.map&version=1 .1.0&request=GetFeatureInfo&query_layers=wms&x=251&y=329&INFO_FORMAT=tex t/plain I want MS to call my php like this: http://my.ip/kmvims/test4.php?version=1.1.0&request=GetFeatureInfo&query _layers=wms&x=251&y=329&INFO_FORMAT=text/plain So I could do the getFeatureInfo-processing in my php and just return a plain text, html or whatever MS needs to process. But MS refuses to call the php at all on doing a getFeatureInfo-req. I'm not sure if I understand the query-interface part, I thought in a wms-implementation each layer would return the results in a certain format and MS would combine them. Is there any documentation about a query-interface I overlooked? >Are you able to send a getfeatureinfo request directly to your script >http://my.ip/kmvims/test4.php >as in >http://my.ip/kmvims/test4.php?version=1.1.0&request=getfeaturei >nfo&query_layers=wms&x=251&y=329&INFO_FORMAT=text/plain?? Yes this works, on a call like this I get a "test" as a result of my "echo 'test'" coded for the "getFeatureInfo"-part. TIA, Frieso >-----Original Message----- >From: Debbie Pagurek [mailto:pagurekd@agr.gc.ca] >Sent: Monday, November 03, 2003 5:46 PM >To: Frieso ter Haseborg >Cc: mapserver-users@lists.gis.umn.edu >Subject: RE: [Mapserver-users] getFeatureInfo on dynamic layer >-emptyexception > > >Aside from trying to do a getfeatureinfo request - are you able to even >just see the image of your dynamic layer when you set up your dynamic >layer within a mapfile like this? > >I am asking because in order for me to see my dynamic layer of points >via a wms request from within a mapfile, I need to add some parameters >to the connection string. Here's what my LAYER looks like in >my mapfile > > >( by the way I haven't tested getfeatureinfo - I don't really >understand this part yet because it looks to me like you would need an >interface with a query tool on it and it is Mapserver that then forms a >query request and it would need to know how to generate a >getfeatureinfo >request?) > >Here is my LAYER and I can see the image of my dynamic layer points: >LAYER > NAME "taxa" > TYPE RASTER > STATUS ON > TEMPLATE VOID > CONNECTION >"http://myhost/mapdata/itis/testscript.php?version=1.1.0&reques >t=Getmap&layers=Cyanocitta%20cristata&format=image/png" > CONNECTIONTYPE WMS > PROJECTION > "init=epsg:4326" > END > METADATA > "wms_title" "test" > "wms_srs" "EPSG:4326" > "wms_abstract" "itis wms layer" > "wms_extent" "-180 -90 180 90" > "wms_opaque" "1" > "wms_onlineresource" >"http://latlong24.gis.agr.gc.ca/mapdata/itis/testscript.php?ver >sion=1.1.0&request=Getmap&layers=Cyanocitta%20cristata" > "wms_server_version" "1.1.0" > "wms_name" "test" > END >END > >I can then see the dynamic layer in the browser when I send the URL: >http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv_40?map=/usr/www/ httpd/htdocs/mapdata/itis/test.map&Layers=taxa&mo>de=map > >this is different from what you are trying to do with your URL, which >is trying sending a WMS getfeatureinfo request to your dynamic >layer via >a wms layer included in a mapfile. >Are you able to send a getfeatureinfo request directly to your script >http://my.ip/kmvims/test4.php >as in >http://my.ip/kmvims/test4.php?version=1.1.0&request=getfeaturei >nfo&query_layers=wms&x=251&y=329&INFO_FORMAT=text/plain?? > >Debbie > > > >>>> "Frieso ter Haseborg" 11/03/03 >11:23AM >>> >Hi Debbie, > >thanks for your response. > >>[...] >>I wonder if you have a problem because you have named your layer >>"wms" and maybe this is a reserved word. Try naming your layer >>something else? >Looks like the layer-name is not cause of the problem, with a more >qualified term or simply any other "non-reserved-word"-name it doesn't >work either. > >>[...] >>another thing I see is that you are requesting a WMS layer, but you >>have specified TYPE POLYGON in your mapfile Layer section. >>It should be TYPE RASTER. >Whoops! Sorry, these are remains of my desperate trials to isolate the >problem. I had the idea that perhaps getFeatureInfo-requests would >only >be executed on non-raster layers. But there's no difference in this >special problem when changing the layer-type: in both cases the php >simply isn't called at all. > >TIA, >Frieso > From LVN@hvm.dk Tue Nov 4 11:22:04 2003 From: LVN@hvm.dk (Lars V. Nielsen) Date: Tue, 4 Nov 2003 12:22:04 +0100 Subject: [Mapserver-users] SYMBOL definitions inside MAP file ? Message-ID: <053e01c3a2c5$e0398970$2401a8c0@odin> Hello List, I'm attempting to generate and use a MAP file with embedded SYMBOL definitions. I can't seem to make it work, it errs with a "Warning: [MapServer Error]: loadSymbol(): ..." regardless of where I put the definitions wrt. their usage (before/after). It only works when I put them in a seperate file (using SYMBOLSET). According to the docs it ought to be possible. Can anyone shed some light on this ? I'm using PIXMAP's that are located in the same dir as the MAP file, and using "./mypic.gif" as a reference to them. Is a full path reference needed ? Using Mapserver 4.0 on Win2000. Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg Rugaardsvej 55, DK-5000 Odense C Denmark http://www.hvm.dk From ter-haseborg@sf-datentechnik.de Tue Nov 4 11:46:53 2003 From: ter-haseborg@sf-datentechnik.de (Frieso ter Haseborg) Date: Tue, 4 Nov 2003 12:46:53 +0100 Subject: [Mapserver-users] no variable substitution with special characters? Message-ID: <0DF955F15A102E4F81B948D44A45015A06924D@nt-sf-exchange.Windows2000> Hi, can anybody confirm this problem? Before filing this as a bug, I would like to isolate it. I'm not sure if this is a true Mapserver-problem or rather a wrong configuration on the webserver. A call like http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/kmvims/test.map&version=1 .1.0&request=getMap&uid=%7F works, but a call like http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/kmvims/test.map&version=1 .1.0&request=getMap&uid=%80 failes. The only difference is the given value for uid. On a normal php-call I experience no problems when using special-characters witch ascii-values beyond 127. But when using values beyond ascii127 in mapserver-calls, MS refuses to execute the php. TIA, Frieso >Hi, > >isn't it possible to use special characters with the variable >substitution feature in mapfiles. > >I've the following situtation: > >In my mapfile I call a php for creating a dynamic layer: > >LAYER > NAME "wms" > TEMPLATE test.html > STATUS ON > TYPE POLYGON > CONNECTION "http://my.ip/kmvims/kmvims.php?uid=%uid%&pwd=%pwd% > CONNECTIONTYPE WMS > [...] > >For authorization purposes I use uid and pwd parameters. >Everything works fine unless I pass a pwd consisting of >special characters, i.e. characters with a ASCII value above >ASCII 127 (HEX 7F). When pwd contains one or more characters >in the ASCII-range above 127 the layer isn't called at all. > >URL-encoding doesn't solve the problem. I need characters >beyond ASCII 127 since the passwords passed are encrypted and >I've no influence on the encryption. It's just a passthrough >given from a client-server-application, all I want to do is >retrieve the passwords and check them against the database. > >Any ideas about this? Is it a bug or an intended limitation? > >TIA, > >Frieso ter Haseborg >- Software Development - > >-- > >-------------------------------------------------- >S&F Datentechnik GmbH&Co.KG >Reimersstr. 41b >26789 Leer, Germany > From spencer@dmsolutions.ca Tue Nov 4 14:10:55 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Tue, 04 Nov 2003 09:10:55 -0500 Subject: [Mapserver-users] [Fwd: flash support] Message-ID: <3FA7B36F.3020100@magma.ca> This is a multi-part message in MIME format. --------------040806050004010702060006 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- --------------040806050004010702060006 Content-Type: message/rfc822; name="flash support" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="flash support" Return-Path: Received: from xcalibur.dmsolutions.ca (www2.dmsolutions.on.ca [209.217.116.146]) by in2.magma.ca (Magma's Mail Server) with ESMTP id hA4DpeEm023471 for ; Tue, 4 Nov 2003 08:51:48 -0500 Received: from mail1.eivd.ch (mail1.eivd.ch [193.134.216.148]) by xcalibur.dmsolutions.ca (8.11.6/8.11.6) with ESMTP id hA4DpY529747 for ; Tue, 4 Nov 2003 08:51:39 -0500 Received: from eint11.einet.ad.eivd.ch ([10.192.41.23]) by mail1.eivd.ch (8.12.7/8.12.7/YCOM SA SMTPGateway 1.31) with ESMTP id hA4DpJnT008858 for ; Tue, 4 Nov 2003 14:51:26 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C3A2DA.BACA7FF0" Subject: flash support Date: Tue, 4 Nov 2003 14:51:21 +0100 Message-ID: <22CD7A0EA6070A4DB932011F3429F190B7FF44@eint11.einet.ad.eivd.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: <22CD7A0EA6070A4DB932011F3429F190B7FF44@eint11.einet.ad.eivd.ch> Thread-Topic: ms4w Thread-Index: AcOf81dnGWR7JzXOQOehpPFJp8EwQgC5k3Lo From: "BAUD remi" To: X-Virus-Scanned: Scanned by Amavisd / YCOM SA This is a multi-part message in MIME format. ------_=_NextPart_001_01C3A2DA.BACA7FF0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Paul, supposing I want to display layers in swf files in the gmap application = sample. I should create one outputformat for flash in gmap75.map like: OUTPUTFORMAT=20 NAME swf=20 MIMETYPE "application/x-shockwave-flash"=20 DRIVER swf=20 IMAGEMODE PC256=20 FORMATOPTION "OUTPUT_MOVIE=3DMULTIPLE"=20 END=20 then include the metadata : SWFDUMPATTRIBUTES to my layers But when I launch my application again, I got the fellowing error: Warning: MapServer Error in msLoadMap(): (OUTPUTFORMAT):(81) in = C:\ms4w\apps\gmap\htdocs\gmap75.phtml on line 71 Fatal error: Failed to open map file gmap75.map in = C:\ms4w\apps\gmap\htdocs\gmap75.phtml on line 71 Do I need to specify other things in the gmap application to make flash = support working? Cheers, ------_=_NextPart_001_01C3A2DA.BACA7FF0 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 eJ8+IhoNAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEEgAEADgAAAGZsYXNoIHN1cHBvcnQASwUB BYADAA4AAADTBwsABAAOADMAFQACAEEBASCAAwAOAAAA0wcLAAQADgAzABcAAgBDAQEJgAEAIQAA ADFDOUVBMDhCNDREN0ExNDk4QTUzODYyQkQzMEUwRDY5ADEHAQOQBgC0CAAANwAAAAMAJgAAAAAA AwA2AAAAAABAADkA8H/KutqiwwEeAD0AAQAAAAEAAAAAAAAAAgFHAAEAAAAuAAAAYz1DSDthPSA7 cD1IRVMtU087bD1FSU5UMTEtMDMxMTA0MTM1MTIxWi05NTkxAAAAHgBJAAEAAAAJAAAAUmU6IG1z NHcAAAAAQABOAADHzkPzn8MBHgBaAAEAAAANAAAAUGF1bCBTcGVuY2VyAAAAAAIBWwABAAAAPAAA AAAAAACBKx+kvqMQGZ1uAN0BD1