From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 1 00:56:02 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 1 Jun 2005 09:56:02 +0200 Subject: [OT] access DBF files via ODBC (Linux) Message-ID: Hi list, does anybody know how to connect to DBF files via ODBC on Linux like Frank suggested in his e-mail below? Is there an ODBC DBF driver for Linux? Thanks in advance. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> fwarmerdam at gmail.com 05/04/05 06:03pm >>> On 5/4/05, Bart van den Eijnden wrote: > Hi Frank, > > this thread reminded me of a question I wanted to ask, is there a similar way to connect to DBF files with additional attribute information using OGR? Which works both on Windows and Linux? Or would that require a new driver? Bart, OGR's Shapefile driver already supports accessing "bare" .dbf files with no .shp or .shx file. So the shapefile driver is a "free" dbf driver as well. Though limited to the relatively old and simple style of .dbf normally used with shapefiles. DBF files can be access directly by name or as a directory. You can also access DBF files via ODBC of course. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From e.witteveen at HAWARIT.COM Wed Jun 1 01:10:03 2005 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Wed, 1 Jun 2005 03:10:03 -0500 Subject: retrieving the legend images using wms(i only get blank images) Message-ID: Hello list, I am writing my own C# viewer and i must say that it is (or appears to be) easy to create your own viewer using wms. Im now trying to retrieve the images for the legend. I'd expected to retrieve the images for the layer by using the url that was specified in the xml document from the following url: http://10.0.0.50:8121/cgi-bin/mapserv.exe?map=/ms4w/apps/Bedris/Bedris.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities with xpath: //Layer/Style/LegendURL/OnlineResource/@xlink:href (sample: http://mail.dijkoraad-hawar.nl/download/capabilities.xml). When i view the images from the first href (http://10.0.0.50:8121/cgi-bin/mapserv.exe?map=/ms4w/apps/Bedris/Bedris.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Woongebouw-utw&format=image/png), i only see a blank image. When i view the image with the gmapfactory viewer (http://www.maptools.org/) using the same map i see the image. (sample: http://mail.dijkoraad-hawar.nl/download/woongebouw-utw.png vs http://mail.dijkoraad-hawar.nl/download/woongebouw-utw-reference.png). Also, when i try to retrieve images for borders(lines), i also get a different image (for sample look at http://mail.dijkoraad-hawar.nl/download/contouren.png vs http://mail.dijkoraad-hawar.nl/download/countouren-reference.png). I've read something about a style parameter, but this didnt help me much further on google / WMS specification(WMS specification does not tell me which parameters i could use). Can somebody tell me how i can get a image representation for the layers i've got(or give me some pointers)? In my current setup, i =only= want to have a image of 20x10 px without any text in it. -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 1 01:25:01 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 1 Jun 2005 10:25:01 +0200 Subject: retrieving the legend images using wms(i only get blank images) Message-ID: Hi, you might get some info out of the following bug report: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=653 Do you have NAMEs defined for your CLASSes? What result do you get when you use the legend utility on your WMS server map file? > In my current setup, i =only= want to have a image of 20x10 px without any text in it. Then you should add the Rule parameter to the request with the CLASS name you want to see and specify width and height. Btw, you are also missing wms_title METADATA in your MAP file for your WMS service. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Eduard Witteveen 06/01/05 10:10am >>> Hello list, I am writing my own C# viewer and i must say that it is (or appears to be) easy to create your own viewer using wms. Im now trying to retrieve the images for the legend. I'd expected to retrieve the images for the layer by using the url that was specified in the xml document from the following url: http://10.0.0.50:8121/cgi-bin/mapserv.exe?map=/ms4w/apps/Bedris/Bedris.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities with xpath: //Layer/Style/LegendURL/OnlineResource/@xlink:href (sample: http://mail.dijkoraad-hawar.nl/download/capabilities.xml). When i view the images from the first href (http://10.0.0.50:8121/cgi-bin/mapserv.exe?map=/ms4w/apps/Bedris/Bedris.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Woongebouw-utw&format=image/png), i only see a blank image. When i view the image with the gmapfactory viewer (http://www.maptools.org/) using the same map i see the image. (sample: http://mail.dijkoraad-hawar.nl/download/woongebouw-utw.png vs http://mail.dijkoraad-hawar.nl/download/woongebouw-utw-reference.png). Also, when i try to retrieve images for borders(lines), i also get a different image (for sample look at http://mail.dijkoraad-hawar.nl/download/contouren.png vs http://mail.dijkoraad-hawar.nl/download/countouren-reference.png). I've read something about a style parameter, but this didnt help me much further on google / WMS specification(WMS specification does not tell me which parameters i could use). Can somebody tell me how i can get a image representation for the layers i've got(or give me some pointers)? In my current setup, i =only= want to have a image of 20x10 px without any text in it. -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 1 01:53:12 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 1 Jun 2005 10:53:12 +0200 Subject: map file parsing in 4.6 beta3 Message-ID: Hi list, has the MAP file parsing become more strict in 4.6 beta3? [01-Jun-2005 10:45:07] PHP Warning: [MapServer Error]: getString(): Parsing error near (none):(line 38) in D:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line 215 Which refers to: WMS_ACCESSCONSTRAINTS none Putting quotes around none fixes this. But maybe this will need some warning or announcement for more inexperienced users? Also, do all the values now need quotes? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 1 02:13:12 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 1 Jun 2005 11:13:12 +0200 Subject: case insensitive search Message-ID: Hi list, is there currently a way to have Mapserver search case-insensitive? Would this require changes to all datastores or to Mapserver core only? If not, I would like to open up an enhancement bug for this. I am hoping that more people would be interested in funding this together. Btw, I see OGC:Filter 1.1 also has incorporated this (finally): Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From mapserver at HOTMAIL.COM Wed Jun 1 02:53:55 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Wed, 1 Jun 2005 04:53:55 -0500 Subject: Raster images Message-ID: I'm trying to create my own raster image. I have a .tif image from an existing example and it runs perfecly. I open it with Corel PhotoPaint and without changing anything I save it. Then I execute mapserver and it doesn't runs. Have I to save .tif in a special mode? From bpicinbono at WORLDONLINE.FR Wed Jun 1 04:10:16 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 1 Jun 2005 13:10:16 +0200 Subject: Raster images In-Reply-To: Message-ID: Le mercredi 1 Juin 2005 11:53, SUBSCRIBE MAPSERVER-USERS Nuri a ?crit?: > I'm trying to create my own raster image. > I have a .tif image from an existing example and it runs perfecly. I open > it with Corel PhotoPaint and without changing anything I save it. Then I > execute mapserver and it doesn't runs. > > Have I to save .tif in a special mode? You need a world file to display your tiff raster. Have a look here : http://mapserver.gis.umn.edu/doc/raster-howto.html From w.blanken at GEON.NL Wed Jun 1 04:16:42 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Wed, 1 Jun 2005 13:16:42 +0200 Subject: [OT] access DBF files via ODBC (Linux) Message-ID: Dag Bart, I have searched for a specific dbf/xbase/clipper driver for or iodbc of unixodbc in the recent past. Could not come up with a solution for this question. I then used the program dbtcp to connect from linux to a windows server that had the odbc configured. This worked OK for me in a specific project. It's a so-called odbc-bridge but I do not think this is the answer to your question.....so maybe anyone else has a better idea? Groetjes! Wim Blanken GEON bv in Groningen ----- Original Message ----- From: "Bart van den Eijnden" To: Sent: Wednesday, June 01, 2005 9:56 AM Subject: [UMN_MAPSERVER-USERS] [OT] access DBF files via ODBC (Linux) > Hi list, > > does anybody know how to connect to DBF files via ODBC on Linux like Frank > suggested in his e-mail below? Is there an ODBC DBF driver for Linux? > > Thanks in advance. > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > >>>> fwarmerdam at gmail.com 05/04/05 06:03pm >>> > On 5/4/05, Bart van den Eijnden wrote: >> Hi Frank, >> >> this thread reminded me of a question I wanted to ask, is there a similar >> way to connect to DBF files with additional attribute information using >> OGR? Which works both on Windows and Linux? Or would that require a new >> driver? > > Bart, > > OGR's Shapefile driver already supports accessing "bare" .dbf > files with no .shp or .shx file. So the shapefile driver is a "free" > dbf driver as well. Though limited to the relatively old and simple > style of .dbf normally used with shapefiles. > > DBF files can be access directly by name or as a directory. > > You can also access DBF files via ODBC of course. > > Best regards, > > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > From wildrov at BELLSOUTH.NET Wed Jun 1 04:22:44 2005 From: wildrov at BELLSOUTH.NET (Dave Tee) Date: Wed, 1 Jun 2005 06:22:44 -0500 Subject: Raster images Message-ID: Greetings Nuri, Here is the deal. The Tif from the existing example is most likely in GeoTif Format. That means that there is extra info in the tif file. If you open it in an "image" program....Coral.....then save that image....you strip out the extra info from the file. So now it no longer works. Now you have a plan tif image that if you want to display it correctly you will have to have a world file to go along with it. These files are in tfw or wld format. If you have a file called example.tif you will need a file called example.tfw to go along with it that contains the extra info. Georeference with World Files World files are a simple mechanism for associating georeferencing (world coordinates) information with raster files. ESRI was the first company to propagate the use of world files, and they often used with TIFF instead of embedding georeferencing information in the file itself. The world file contents look like the following. The first coefficient is the X pixel size. The second and third are rotational/shear coefficients (and should normally be 0.0). The fourth is the Y pixel size, normally negative indicating that Y decreases as you move down from the top left origin. The final two values are the X and Y location of the center of the top left pixel. This example is for an image with a 2m x 2m pixel size, and a top left origin at (356800E, 5767999N). 2 0.0000000000 0.0000000000 -2 356800.00 5767999.00 The name of the world file is based on the file it relates to. For instance, the world file for aerial.tif might be aerial.tfw. Conventions vary for appropriate endings, but with MapServer the extension .wld is always OK for world files. You can read all about them here http://mapserver.gis.umn.edu/doc44/raster-howto.html Dave From mapserver at HOTMAIL.COM Wed Jun 1 04:39:51 2005 From: mapserver at HOTMAIL.COM (N M) Date: Wed, 1 Jun 2005 11:39:51 +0000 Subject: Raster images In-Reply-To: Message-ID: I will try to create my own raster now. Thank you >Greetings Nuri, > Here is the deal. The Tif from the existing example is most likely in >GeoTif Format. That means that there is extra info in the tif file. If >you open it in an "image" program....Coral.....then save that image....you >strip out the extra info from the file. So now it no longer works. > > Now you have a plan tif image that if you want to display it correctly >you will have to have a world file to go along with it. These files are >in tfw or wld format. > >If you have a file called example.tif you will need a file called >example.tfw to go along with it that contains the extra info. > > Georeference with World Files >World files are a simple mechanism for associating georeferencing (world >coordinates) information with raster files. ESRI was the first company to >propagate the use of world files, and they often used with TIFF instead of >embedding georeferencing information in the file itself. > >The world file contents look like the following. The first coefficient is >the X pixel size. The second and third are rotational/shear coefficients >(and should normally be 0.0). The fourth is the Y pixel size, normally >negative indicating that Y decreases as you move down from the top left >origin. The final two values are the X and Y location of the center of the >top left pixel. This example is for an image with a 2m x 2m pixel size, >and a top left origin at (356800E, 5767999N). > >2 >0.0000000000 >0.0000000000 >-2 >356800.00 >5767999.00 > >The name of the world file is based on the file it relates to. For >instance, the world file for aerial.tif might be aerial.tfw. Conventions >vary for appropriate endings, but with MapServer the extension .wld is >always OK for world files. > >You can read all about them here >http://mapserver.gis.umn.edu/doc44/raster-howto.html > > >Dave _________________________________________________________________ Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ From lfilak at MEDINACO.ORG Wed Jun 1 05:27:39 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 1 Jun 2005 08:27:39 -0400 Subject: PerlMapScript Testers Needed NOW Message-ID: The following message was sent by Sean Gillies on Tue, 31 May 2005 16:06:09 -0600. > On May 31, 2005, at 3:23 PM, Lowell Filak wrote: > > > Hello all, > > > > The SWIG typemap for imageObj->write is ready for testing at: > > http://www.highwayengineer.co.medina.oh.us/temp/mapscript.tar.gz > > > > There are 3 files included: > > medina1.patch - the patch file containing the code changes. > > medina1_autogen.patch - the patch file containing changes to the SWIG > > output if you don't feel like re-SWIG'ing yourself. > > nonwrite.cgi - sample code for using the 'write' method in both GD:: & > > Image::Magick. > > > > Requirements: > > Mapserver & MapScript 4.4.2. > > Perl 5.8.0 + (this uses PerlIO vs. stdio). > > > > Thanks go to the Steve Lime, MS-team(et. al.), Sean Gillies, & Chip > > Salzenberg. > > > > Lowell > > > > P.S. The changes for map->processXTemplate are also included but I have > > not tested those yet. > > > > Well, better late than never ;) Create a bug in our bugzilla and let's > get this done. Better if this is tested against MapServer 4.6 beta 3 if > y'all want this in the next big release. Sean, The bug posting should go in today. Thanks. Lowell From arnulf.christl at CCGIS.DE Wed Jun 1 05:53:59 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Wed, 1 Jun 2005 14:53:59 +0200 Subject: PostGIS vs. MySQL spatial in MapServer In-Reply-To: <2576812186CDD411BF1500508B6DCE950972FBD6@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > Hi, > > Can someone point me to some comparisons of the spatial functionality of > these packages? > > Thanks > > ..Tom > > ========================= > Tom Kralidis > Senior Systems Scientist > Environment Canada > Tel: +01-905-336-4409 > http://www.ec.gc.ca/ Just to add to the confusion... there is a project called MyWMS which has been implemented by Klaus Benndorf (all in German: http://www.bt-gis.de) in cooperation with MySQL AB. There is a case study (very short, German language): http://www.mysql.de/it-resources/case-studies/mysql-bt-gis-anwenderbericht.pdf It states that MyWMS is OGC WMS compliant (it probably should say implementing) and uses some MySQL "spatial operations". The proprietary forerunner GISeye contains a very powerful rendering engine which can handle the cartographic wilderness that German cadastral maps boast (Steve added some of this functionality to MapServer last year). It will be (was, is) released under the GNU/GPL with a dual licensing simliar to that by MySQL AB. i did not yet have time to dig into it. If you are interested in internal details of MySQL spatial functionality probably Klaus will know best. Best, From mapserver at HOTMAIL.COM Wed Jun 1 05:59:18 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Wed, 1 Jun 2005 07:59:18 -0500 Subject: Size in pixels of a shp file Message-ID: Is it possible to know the exact size in pixels of a .shp file? From vincent.dacol at LAPOSTE.NET Wed Jun 1 06:00:14 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Wed, 1 Jun 2005 15:00:14 +0200 Subject: Strange error Message-ID: Hi the list, i have a strange probleme. When I display two layer with this url and the Mapserver beta 46: http://localhost/cgi-bin/mapserv_46.exe?map=C:\ms4w\Apache\htdocs\projection\Client\Client.map&mode=browse&layer=Europe_WGS84&layer=France_L2 I receive this error msHTTPExecuteRequests(): HTTP request error. Can't open output file C:/ms4w/Apache/htdocs/projection/Client/tmp/??1.img.tmp. But with the version 44, all is right, and the picture appear. Maybe this is a know bug??? Shall I report it in BugZilla? Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Wed Jun 1 06:09:11 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 1 Jun 2005 15:09:11 +0200 Subject: Size in pixels of a shp file In-Reply-To: Message-ID: Le mercredi 1 Juin 2005 14:59, SUBSCRIBE MAPSERVER-USERS Nuri a ?crit?: > Is it possible to know the exact size in pixels of a .shp file? You can get a shape file geographical extent. But the size in pixel is also fully linked to the output image size and the zoom level. Blaise From ed at TOPOZONE.COM Wed Jun 1 06:18:30 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 1 Jun 2005 09:18:30 -0400 Subject: Size in pixels of a shp file Message-ID: No, that measurement is meaningless. It's like asking how many pieces you can cut from a piece of wood - it depends on how big you make them. Any shapefile can be drawn on a raster image with as many (or as few) pixels as you like. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri Sent: Wednesday, June 01, 2005 8:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Size in pixels of a shp file Is it possible to know the exact size in pixels of a .shp file? From jdport at VERITIME.COM Wed Jun 1 07:28:01 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 1 Jun 2005 10:28:01 -0400 Subject: [OT] Question on javascript Message-ID: let me do a little digging... I had this same issue once where I didn't want the user to submit the form by hitting enter, and to only be able to submit by pressing the submit button. I found some code that allowed me to disable submitting from hitting enter in IE, but it wouldn't work for Mozilla... and it seems that i got around the problem some other way in mozilla but i can't remember just what i did or what the situation was. I'll see if I can find it, and if it applies to your situation :) -Jeff ----- Original Message ----- From: "Stephen Woodbridge" To: Sent: Saturday, May 28, 2005 2:15 PM Subject: [UMN_MAPSERVER-USERS] [OT] Question on javascript > Hi, > > This is a little of topic, but it is related to building a web interface > for mapserver. > > I have form in html that I do NOT want to submit. > > http://swoodbridge.com/~woodbri/t.html > > enter text in location and hit [enter], the form starts a submit and > calls nosubmit() which puts up an alert and then return false; which > should cancel the submit. But it does the submit anyway :( > > This is really annoying because I figure I'm doing something stupid, but > I just don't see it. > > Any help would be appreciated. > -Steve W. > > the html is: > > "http://www.w3.org/TR/html4/loose.dtd"> > > > Submit Test > > > > > >
> Location:  > >
> > > > From mjuvrud at AKEVA.COM Wed Jun 1 07:32:25 2005 From: mjuvrud at AKEVA.COM (Mike Juvrud) Date: Wed, 1 Jun 2005 09:32:25 -0500 Subject: FYI: Google to pay student open source developers (Summer of Code) Message-ID: Google has announced (May 31) that it will provide a $4500 stipend to student developers (& $500 to the mentoring organization) that complete work on open source projects over the summer. Perhaps MapServer would want to be a "mentoring organization"? "Summer of Code" Program details: http://code.google.com/summerofcode.html "Mentoring Organization" FAQ: http://code.google.com/mentfaq.html ------------------- Mike Juvrud GIS Programmer, Mud Labs Glenwood, MN USA 320.634.4410 www.mudlabs.com mike at mudlabs.com ------------------- 01001101 01110101 01100100 01001100 01100001 01100010 01110011 ------------------- Mike's Personal Blog: www.MikeJuvrud.blogspot.com Computing Newsletter: www.mudlabs.com/tips Free Software Guide: www.mudlabs.com/software_guide -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Wed Jun 1 07:55:45 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 1 Jun 2005 10:55:45 -0400 Subject: HTML Legend Message-ID: Greetings, Am I missing something here. The "map" template contains tags such as [map] that are replaced by the parser with the corresponding value from the cgi call, ie. map=popup.map. However it appears that the "legend" template pulls all values from the mapfile or from whatever the corresponding object member is.? So, why does map->processLegendTemplate have any arguments at all? I guess it could be handy to insert arbitrary text, ie. -- legend.html -- My Text = [map] ----------------- -- mapscript -- @names = ("map"); @values = ("Just Print This"); $map->processLegendTemplate(\@names,\@values) --------------- Lowell From tylermitchell at SHAW.CA Wed Jun 1 08:37:07 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 1 Jun 2005 11:37:07 -0400 Subject: Size in pixels of a shp file Message-ID: > Is it possible to know the exact size in pixels of a .shp file? Sounds like you might be confused between image data and vector map data. Shapefiles are not images and therefore do not use pixels. Tyler From Richard_D_Levine at RAYTHEON.COM Wed Jun 1 08:49:21 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Wed, 1 Jun 2005 10:49:21 -0500 Subject: FYI: Google to pay student open source developers (Summer of Code) In-Reply-To: Message-ID: I'm cross posting this because it is an excellent opportunity for students. I was a paid intern (studying pterodactyls), and my company employs paid interns to perform well bounded summer projects. The intern gains invaluable industry experience and a semester's worth of tuition (or beer). One more reason Google rocks: Applying a proven industry technique in a new and benevolent way for OSS. Rick Mike Juvrud To Sent by: UMN MAPSERVER-USERS at LISTS.UMN.EDU MapServer Users cc List [UMN_MAPSERVER-USERS] FYI: Google to pay student open source developers (Summer of Code) 06/01/2005 09:32 AM Please respond to Mike Juvrud Google has announced (May 31) that it will provide a $4500 stipend to student developers (& $500 to the mentoring organization) that complete work on open source projects over the summer. Perhaps MapServer would want to be a ?mentoring organization?? ?Summer of Code? Program details: http://code.google.com/summerofcode.html ?Mentoring Organization? FAQ: http://code.google.com/mentfaq.html ------------------- Mike Juvrud GIS Programmer, Mud Labs Glenwood, MN USA 320.634.4410 www.mudlabs.com mike at mudlabs.com ------------------- 01001101 01110101 01100100 01001100 01100001 01100010 01110011 ------------------- Mike's Personal Blog: www.MikeJuvrud.blogspot.com Computing Newsletter: www.mudlabs.com/tips Free Software Guide: www.mudlabs.com/software_guide From w.blanken at GEON.NL Wed Jun 1 08:52:09 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Wed, 1 Jun 2005 17:52:09 +0200 Subject: [OT] Question on javascript Message-ID: Hello Stephen, Correct me if I am wrong I think you want to make sure that an enter does not submit a form. I use the following code for this and it works in ie and mozilla. ----------------------------------------------------------------------------- ------------------------------------------Then I use the following form-code in my html to use the function above.... Regards,Wim Blanken ----- Original Message ----- From: "Jeff Portwine" To: Sent: Wednesday, June 01, 2005 4:28 PM Subject: Re: [UMN_MAPSERVER-USERS] [OT] Question on javascript > let me do a little digging... I had this same issue once where I didn't > want > the user to submit the form by hitting enter, and to only be able to > submit > by pressing the submit button. I found some code that allowed me to > disable submitting from hitting enter in IE, but it wouldn't work for > Mozilla... and it seems that i got around the problem some other way in > mozilla but i can't remember just what i did or what the situation was. > I'll see if I can find it, and if it applies to your situation :) > > -Jeff > > ----- Original Message ----- > From: "Stephen Woodbridge" > To: > Sent: Saturday, May 28, 2005 2:15 PM > Subject: [UMN_MAPSERVER-USERS] [OT] Question on javascript > > >> Hi, >> >> This is a little of topic, but it is related to building a web interface >> for mapserver. >> >> I have form in html that I do NOT want to submit. >> >> http://swoodbridge.com/~woodbri/t.html >> >> enter text in location and hit [enter], the form starts a submit and >> calls nosubmit() which puts up an alert and then return false; which >> should cancel the submit. But it does the submit anyway :( >> >> This is really annoying because I figure I'm doing something stupid, but >> I just don't see it. >> >> Any help would be appreciated. >> -Steve W. >> >> the html is: >> >> > "http://www.w3.org/TR/html4/loose.dtd"> >> >> >> Submit Test >> >> >> >> >> >>
>> Location:  >> >>
>> >> >> >> > > From pscott at UWC.AC.ZA Wed Jun 1 09:04:27 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Wed, 1 Jun 2005 18:04:27 +0200 Subject: FYI: Google to pay student open source developers (Summer of Code) Message-ID: I must agree with you. At our organization we have a strong intern programme. At the moment, in my unit, we have four interns and one "senior" intern. The senior guy has been with us for almost a year now, and is being promoted to full developer status next week. We deal mainly with PHP projects, all OSS, and he arrived not knowing what PHP was! Our other four interns all are from around Africa, as part of an exchange program, as well as students at the university. I have the utmost confidence in all of these guys, and will recommend them for any job that they may want. I think that this is an excellent way of growing talent, and fully support any organization that does it! --Paul >>> Rick Levine 06/01/05 5:49 PM >>> I'm cross posting this because it is an excellent opportunity for students. I was a paid intern (studying pterodactyls), and my company employs paid interns to perform well bounded summer projects. The intern gains invaluable industry experience and a semester's worth of tuition (or beer). One more reason Google rocks: Applying a proven industry technique in a new and benevolent way for OSS. Rick Mike Juvrud To Sent by: UMN MAPSERVER-USERS at LISTS.UMN.EDU MapServer Users cc List [UMN_MAPSERVER-USERS] FYI: Google to pay student open source developers (Summer of Code) 06/01/2005 09:32 AM Please respond to Mike Juvrud Google has announced (May 31) that it will provide a $4500 stipend to student developers (& $500 to the mentoring organization) that complete work on open source projects over the summer. Perhaps MapServer would want to be a "mentoring organization"? "Summer of Code" Program details: http://code.google.com/summerofcode.html "Mentoring Organization" FAQ: http://code.google.com/mentfaq.html ------------------- Mike Juvrud GIS Programmer, Mud Labs Glenwood, MN USA 320.634.4410 www.mudlabs.com mike at mudlabs.com ------------------- 01001101 01110101 01100100 01001100 01100001 01100010 01110011 ------------------- Mike's Personal Blog: www.MikeJuvrud.blogspot.com Computing Newsletter: www.mudlabs.com/tips Free Software Guide: www.mudlabs.com/software_guide From steve.lime at DNR.STATE.MN.US Wed Jun 1 09:01:42 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 1 Jun 2005 11:01:42 -0500 Subject: map file parsing in 4.6 beta3 Message-ID: It looks there was an enumeration added to MapServer for line caps and joins (cartolines) and it includes 'none' as an option. So, none is now a keyword and must be quoted elsewhere in the mapfile. Steve >>> Bart van den Eijnden 06/01/05 3:53 AM >>> Hi list, has the MAP file parsing become more strict in 4.6 beta3? [01-Jun-2005 10:45:07] PHP Warning: [MapServer Error]: getString(): Parsing error near (none):(line 38) in D:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line 215 Which refers to: WMS_ACCESSCONSTRAINTS none Putting quotes around none fixes this. But maybe this will need some warning or announcement for more inexperienced users? Also, do all the values now need quotes? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From woodbri at SWOODBRIDGE.COM Wed Jun 1 09:33:57 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 1 Jun 2005 12:33:57 -0400 Subject: [OT] Question on javascript In-Reply-To: <000b01c566c1$e16b6400$6401a8c0@blanken> Message-ID: Wim, Thanks you, I never thought of doing it that way. It turns out that there is a simple fix to the problem for me and that is to: CHANGE:
TO: This is one of the reasons I hate javascript, but that is a whole other story. I have the highest regard for people that work in javascript! Thanks everyone for the help, I love this list! -Steve Wim Blanken wrote: > Hello Stephen, > > Correct me if I am wrong I think you want to make sure that an enter > does not submit a form. > I use the following code for this and it works in ie and mozilla. > > ----------------------------------------------------------------------------- > > ------------------------------------------Then I use the > following form-code in my html to use the function above.... size=15 type=text onkeypress="return handleEnter(this, event)" > name=name> Regards,Wim Blanken > > > ----- Original Message ----- From: "Jeff Portwine" > To: > Sent: Wednesday, June 01, 2005 4:28 PM > Subject: Re: [UMN_MAPSERVER-USERS] [OT] Question on javascript > > >> let me do a little digging... I had this same issue once where I >> didn't want >> the user to submit the form by hitting enter, and to only be able to >> submit >> by pressing the submit button. I found some code that allowed me to >> disable submitting from hitting enter in IE, but it wouldn't work for >> Mozilla... and it seems that i got around the problem some other way in >> mozilla but i can't remember just what i did or what the situation was. >> I'll see if I can find it, and if it applies to your situation :) >> >> -Jeff >> >> ----- Original Message ----- >> From: "Stephen Woodbridge" >> To: >> Sent: Saturday, May 28, 2005 2:15 PM >> Subject: [UMN_MAPSERVER-USERS] [OT] Question on javascript >> >> >>> Hi, >>> >>> This is a little of topic, but it is related to building a web interface >>> for mapserver. >>> >>> I have form in html that I do NOT want to submit. >>> >>> http://swoodbridge.com/~woodbri/t.html >>> >>> enter text in location and hit [enter], the form starts a submit and >>> calls nosubmit() which puts up an alert and then return false; which >>> should cancel the submit. But it does the submit anyway :( >>> >>> This is really annoying because I figure I'm doing something stupid, but >>> I just don't see it. >>> >>> Any help would be appreciated. >>> -Steve W. >>> >>> the html is: >>> >>> >> "http://www.w3.org/TR/html4/loose.dtd"> >>> >>> >>> Submit Test >>> >>> >>> >>> >>> >>> >>> Location:  >>> >>> >>> >>> >>> >>> >> >> > From mcgrawj at AGR.GC.CA Wed Jun 1 09:36:15 2005 From: mcgrawj at AGR.GC.CA (Joanne McGraw) Date: Wed, 1 Jun 2005 11:36:15 -0500 Subject: Features question Message-ID: Regarding a previous post: "In the MapFile reference documentation at Feature Object definition it is said that: 'Inline features can also be built via urls or forms.' Anyone has any examples?" I too am wondering if anyone out there has any info regarding this functionality. I'm interested to learn if Feature Objects support images (like a logo as part of a copyright) and was thinking I might be able to do something using a URL to an image file. Any thoughts? From mcgrawj at AGR.GC.CA Wed Jun 1 10:20:33 2005 From: mcgrawj at AGR.GC.CA (Joanne McGraw) Date: Wed, 1 Jun 2005 12:20:33 -0500 Subject: Features question Message-ID: I found a way to insert a copyright logo into the map in Post #5718 from Richard A. Milewski. From abe.gillespie at GMAIL.COM Wed Jun 1 10:40:41 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 1 Jun 2005 13:40:41 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: <16264e07050531131869bdf19e@mail.gmail.com> Message-ID: I never see "didn't die." :( Also, I've tried turning on every option for logging that I can think of and am getting nothing. I've turned on everything in Apache and thumbed through php.ini and turned on everything I could find there. Nothing. On 5/31/05, Camden Daily wrote: > This code is an example of how to use the builtin mapserver error > messages. If the script actually DIES on the ms_newMapObj and doesn't > run anything after that, then you need to look into PHP error > messages. > > ms_ResetErrorList(); > > dl("php_mapscript.so"); > $map = ms_newMapObj("simple.map"); > echo "didn't die"; > $img = $map->draw(); > > $error = ms_GetErrorObj(); > while($error AND $error->code != MS_NOERR) { > printf("Error in %s: %s
\n", $error->routine, $error->message); > $error = $error->next(); > } > ?> > From cdaily at GMAIL.COM Wed Jun 1 11:35:39 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 1 Jun 2005 13:35:39 -0500 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: Perhaps try running the script from the command line? That would at least take Apache out of the picture, and error messages might get displayed. -Camden From bartvde at XS4ALL.NL Wed Jun 1 12:13:49 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 1 Jun 2005 21:13:49 +0200 Subject: tileindex and sequence/level Message-ID: Hi list, I want to use gdaltindex to create a tileindex for rasters. The rasters do overlap, so I wanted to add an extra column to the generated tileindex with a display level. The higher the level, the more on top the raster should be, if they do overlap. Would sorting the generated tileindex with sortshp work? Would I need to sort ascending or descending? Ie in what sequence are the individual rasters drawn? Is adding a level column to the tileindex a good solution or can other (better) approaches be followed? Thanks in advance. Best regards, Bart -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From abe.gillespie at GMAIL.COM Wed Jun 1 12:24:31 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 1 Jun 2005 15:24:31 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: Never mind. -f switch. Cool! -Abe On 6/1/05, Abe Gillespie wrote: > That sounds like an excellent idea ... how do I do that? :) > > -Abe > > On 6/1/05, Camden Daily wrote: > > Perhaps try running the script from the command line? That would at > > least take Apache out of the picture, and error messages might get > > displayed. > > > > -Camden > > > From abe.gillespie at GMAIL.COM Wed Jun 1 12:27:37 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 1 Jun 2005 15:27:37 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: Ok, it simply Seg Faults at the ms_newMapObj(). -Abe On 6/1/05, Abe Gillespie wrote: > Never mind. -f switch. Cool! > > -Abe > > On 6/1/05, Abe Gillespie wrote: > > That sounds like an excellent idea ... how do I do that? :) > > > > -Abe > > > > On 6/1/05, Camden Daily wrote: > > > Perhaps try running the script from the command line? That would at > > > least take Apache out of the picture, and error messages might get > > > displayed. > > > > > > -Camden > > > > > > From bill at BINKO.NET Wed Jun 1 12:31:42 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 1 Jun 2005 15:31:42 -0400 Subject: Mapserver Involved in Google's Summer of Code? Message-ID: With all of the academics involved in Mapserver development, has anyone gotten involved in Google's recently announced "Summer of Code"? Perhaps the OGC or UMN or some other "foundation" type of organization could join as a Mentoring Organization? I'm sure there are many students out there who would love to get $4500 from Google to write Open Source Mapserver extensions/improvements. Here's the link: http://code.google.com/mentfaq.html Bill From abe.gillespie at GMAIL.COM Wed Jun 1 12:30:38 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 1 Jun 2005 15:30:38 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: Does it make a difference if I'm running on an AMD64 Athlon? -Abe On 6/1/05, Abe Gillespie wrote: > Ok, it simply Seg Faults at the ms_newMapObj(). > > -Abe > > On 6/1/05, Abe Gillespie wrote: > > Never mind. -f switch. Cool! > > > > -Abe > > > > On 6/1/05, Abe Gillespie wrote: > > > That sounds like an excellent idea ... how do I do that? :) > > > > > > -Abe > > > > > > On 6/1/05, Camden Daily wrote: > > > > Perhaps try running the script from the command line? That would at > > > > least take Apache out of the picture, and error messages might get > > > > displayed. > > > > > > > > -Camden > > > > > > > > > > From bill at BINKO.NET Wed Jun 1 12:41:03 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 1 Jun 2005 15:41:03 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: Abe, Sorry I'm coming in late on this... what versions of Mapserver/PHP/OS are you running? Also, could you run this command: echo "" | php Daniel and I have been fixing a problem that can cause this under certain circumstances. (You can play along at home at bug 1354 in the Mapserver bugzilla database). If you can, it would be helpful to run your script under GDB and send the stack trace where the seg fault occurs. Bill On Wed, 1 Jun 2005, Abe Gillespie wrote: > Ok, it simply Seg Faults at the ms_newMapObj(). > > -Abe > > On 6/1/05, Abe Gillespie wrote: > > Never mind. -f switch. Cool! > > > > -Abe > > > > On 6/1/05, Abe Gillespie wrote: > > > That sounds like an excellent idea ... how do I do that? :) > > > > > > -Abe > > > > > > On 6/1/05, Camden Daily wrote: > > > > Perhaps try running the script from the command line? That would at > > > > least take Apache out of the picture, and error messages might get > > > > displayed. > > > > > > > > -Camden > > > > > > > > > > > From abe.gillespie at GMAIL.COM Wed Jun 1 13:00:12 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 1 Jun 2005 16:00:12 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: I'll look into doing the other items later. The output of phpinfo() is attached. How can I run under GDB? Thanks. -Abe On 6/1/05, Bill Binko wrote: > Abe, > > Sorry I'm coming in late on this... what versions of Mapserver/PHP/OS are > you running? Also, could you run this command: > > echo "" | php > > Daniel and I have been fixing a problem that can cause this under certain > circumstances. (You can play along at home at bug 1354 in the Mapserver > bugzilla database). > > If you can, it would be helpful to run your script under GDB and send the > stack trace where the seg fault occurs. > > Bill > > > On Wed, 1 Jun 2005, Abe Gillespie wrote: > > > Ok, it simply Seg Faults at the ms_newMapObj(). > > > > -Abe > > > > On 6/1/05, Abe Gillespie wrote: > > > Never mind. -f switch. Cool! > > > > > > -Abe > > > > > > On 6/1/05, Abe Gillespie wrote: > > > > That sounds like an excellent idea ... how do I do that? :) > > > > > > > > -Abe > > > > > > > > On 6/1/05, Camden Daily wrote: > > > > > Perhaps try running the script from the command line? That would at > > > > > least take Apache out of the picture, and error messages might get > > > > > displayed. > > > > > > > > > > -Camden > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Jun 1 13:00:51 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 1 Jun 2005 16:00:51 -0400 Subject: tileindex and sequence/level In-Reply-To: Message-ID: Bart, I believe objects are draw in the order that they are encountered, but I'm not sure if the quadtree index (qix) purtibates the order. So you would want the ones you want on top last in the file. I haven't tried ordering a tileindex, but I order my shapefiles regularly to control the order that objects are displayed. -Steve W. Bart van den Eijnden wrote: > Hi list, > > I want to use gdaltindex to create a tileindex for rasters. The rasters > do overlap, so I wanted to add an extra column to the generated > tileindex with a display level. The higher the level, the more on top > the raster should be, if they do overlap. > > Would sorting the generated tileindex with sortshp work? Would I need > to sort ascending or descending? Ie in what sequence are the > individual rasters drawn? > > Is adding a level column to the tileindex a good solution or can other > (better) approaches be followed? > > Thanks in advance. > > Best regards, > Bart > From bill at BINKO.NET Wed Jun 1 13:14:09 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 1 Jun 2005 16:14:09 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: On Wed, 1 Jun 2005, Abe Gillespie wrote: > I'll look into doing the other items later. The output of phpinfo() > is attached. > > How can I run under GDB? > Assuming Linux (YMMV) Make sure that your PHP library path is in your LD_LIBRARY_PATH: $ export LD_LIBRARY_PATH=/usr/lib/php/extenions:$LD_LIBRARY_PATH $ gdb php {gdb} run yourfile.php (gdb) bt <-- Cut and paste this If this doesn't work, contact Daniel and I offline and we'll work with you. It looks to me like you're using a PHP that uses their internal regex methods. This can cause a great deal of pain up until very recently. However, a recent CVS build may solve this for you. Do you build from source? Bill > Thanks. > -Abe > > > On 6/1/05, Bill Binko wrote: > > Abe, > > > > Sorry I'm coming in late on this... what versions of Mapserver/PHP/OS are > > you running? Also, could you run this command: > > > > echo "" | php > > > > Daniel and I have been fixing a problem that can cause this under certain > > circumstances. (You can play along at home at bug 1354 in the Mapserver > > bugzilla database). > > > > If you can, it would be helpful to run your script under GDB and send the > > stack trace where the seg fault occurs. > > > > Bill > > > > > > On Wed, 1 Jun 2005, Abe Gillespie wrote: > > > > > Ok, it simply Seg Faults at the ms_newMapObj(). > > > > > > -Abe > > > > > > On 6/1/05, Abe Gillespie wrote: > > > > Never mind. -f switch. Cool! > > > > > > > > -Abe > > > > > > > > On 6/1/05, Abe Gillespie wrote: > > > > > That sounds like an excellent idea ... how do I do that? :) > > > > > > > > > > -Abe > > > > > > > > > > On 6/1/05, Camden Daily wrote: > > > > > > Perhaps try running the script from the command line? That would at > > > > > > least take Apache out of the picture, and error messages might get > > > > > > displayed. > > > > > > > > > > > > -Camden > > > > > > > > > > > > > > > > > > > > > > > > From abe.gillespie at GMAIL.COM Wed Jun 1 14:07:03 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 1 Jun 2005 17:07:03 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: Shall I build PHP or MapServer from source? Thanks. -Abe On 6/1/05, Bill Binko wrote: > On Wed, 1 Jun 2005, Abe Gillespie wrote: > > > I'll look into doing the other items later. The output of phpinfo() > > is attached. > > > > How can I run under GDB? > > > > Assuming Linux (YMMV) > > Make sure that your PHP library path is in your LD_LIBRARY_PATH: > > $ export LD_LIBRARY_PATH=/usr/lib/php/extenions:$LD_LIBRARY_PATH > > $ gdb php > > {gdb} run yourfile.php > > (gdb) bt > <-- Cut and paste this > > If this doesn't work, contact Daniel and I offline and we'll work with > you. It looks to me like you're using a PHP that uses their internal > regex methods. This can cause a great deal of pain up until very > recently. However, a recent CVS build may solve this for you. Do you > build from source? > > Bill > > > Thanks. > > -Abe > > > > > > On 6/1/05, Bill Binko wrote: > > > Abe, > > > > > > Sorry I'm coming in late on this... what versions of Mapserver/PHP/OS are > > > you running? Also, could you run this command: > > > > > > echo "" | php > > > > > > Daniel and I have been fixing a problem that can cause this under certain > > > circumstances. (You can play along at home at bug 1354 in the Mapserver > > > bugzilla database). > > > > > > If you can, it would be helpful to run your script under GDB and send the > > > stack trace where the seg fault occurs. > > > > > > Bill > > > > > > > > > On Wed, 1 Jun 2005, Abe Gillespie wrote: > > > > > > > Ok, it simply Seg Faults at the ms_newMapObj(). > > > > > > > > -Abe > > > > > > > > On 6/1/05, Abe Gillespie wrote: > > > > > Never mind. -f switch. Cool! > > > > > > > > > > -Abe > > > > > > > > > > On 6/1/05, Abe Gillespie wrote: > > > > > > That sounds like an excellent idea ... how do I do that? :) > > > > > > > > > > > > -Abe > > > > > > > > > > > > On 6/1/05, Camden Daily wrote: > > > > > > > Perhaps try running the script from the command line? That would at > > > > > > > least take Apache out of the picture, and error messages might get > > > > > > > displayed. > > > > > > > > > > > > > > -Camden > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From woodbri at SWOODBRIDGE.COM Wed Jun 1 14:33:22 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 1 Jun 2005 17:33:22 -0400 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem Message-ID: Hi all, I have a user that has installed MapServer 4.6.0-beta2 ( we are also trying with beta3 ) and built Perl Mapscript, But it is dying with: *** glibc detected *** double free or corruption: 0x00000000012817c0 *** mapscript::mapObj::new(/usr/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/mapscript.pm:1408): The code works fine on another system with a 32bit CPU, but this box has a 64bit AMD chip in it and is running suse 9.2 - standard install. Is this a known problem? is there a work-a-round? -Steve W. From bill at BINKO.NET Wed Jun 1 14:36:41 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 1 Jun 2005 17:36:41 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: On Wed, 1 Jun 2005, Abe Gillespie wrote: > Shall I build PHP or MapServer from source? You should build MapServer from source. Ideally, you should build CVS HEAD or the latest beta ( 4.6Beta3 ?). If your PHP Header files are in /usr/include/php, then all you should have to do is configure with --with-php=/usr and it should detect everything for PHP. Of course, depending on what else you're using (GDAL, OGR, WMS, WFS, etc, etc) there are other configure options you'll need. If you don't build from source right now, perhaps a 4.6beta3 binary is available (?). Unfortunately, you are probably in exactly the position I was in when I decided to tackle this bug: I had a binary PHP that I didn't want to mess with that was built with the PHP regex. Older versions of Mapserver just don't play nicely that way. That's what the fix is about: it allows you to build against a binary PHP (assuming you have the include files) and uses the right regex. The good news for you is that there IS a fix now, and "all" you have to do is build Mapserver 4.6beta from source. Bill From kevinc at UPTIMEDATA.COM Wed Jun 1 14:25:44 2005 From: kevinc at UPTIMEDATA.COM (KevinC (UD)) Date: Wed, 1 Jun 2005 16:25:44 -0500 Subject: your fave list-server? Message-ID: Greetings, Mapserver listees: Not a Mapserver question: What's the best free list-server out there? It should serve 2-way discussions, have automatic subscribe/unsubscribe from a webpage, and run under Apache. I'd sure like to find a drop-in solution. Kevin Carpenter, P.E. 20007 Jasperwood Cir Katy, TX 77449; USA Tel: 281/599-9611 Cel: 281/773-7731 UptimeData.com Web & Apps code, PC service kevinc at UptimeData.com, www.UptimeData.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Wed Jun 1 14:44:19 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 1 Jun 2005 15:44:19 -0600 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem In-Reply-To: Message-ID: On Jun 1, 2005, at 3:33 PM, Stephen Woodbridge wrote: > Hi all, > > I have a user that has installed MapServer 4.6.0-beta2 ( we are also > trying with beta3 ) and built Perl Mapscript, But it is dying with: > > *** glibc detected *** double free or corruption: 0x00000000012817c0 > *** > > mapscript::mapObj::new(/usr/lib/perl5/site_perl/5.8.5/x86_64-linux- > thread-multi/mapscript.pm:1408): > > The code works fine on another system with a 32bit CPU, but this box > has > a 64bit AMD chip in it and is running suse 9.2 - standard install. > > Is this a known problem? is there a work-a-round? > > -Steve W. > This is the first report I'm aware of, and I need a bit more context before I can even begin to speculate. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From abe.gillespie at GMAIL.COM Wed Jun 1 15:24:39 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 1 Jun 2005 18:24:39 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: beta3 works! Thank you so much you geniui! -Abe On 6/1/05, Abe Gillespie wrote: > I build both PHP and MapServer from source. But I'll start with > upgrading to MS 4.6. I'll let you know. > > Thanks for the help! > -Abe > > On 6/1/05, Bill Binko wrote: > > On Wed, 1 Jun 2005, Abe Gillespie wrote: > > > > > Shall I build PHP or MapServer from source? > > > > You should build MapServer from source. Ideally, you should build CVS > > HEAD or the latest beta ( 4.6Beta3 ?). > > > > If your PHP Header files are in /usr/include/php, then all you should have > > to do is configure with --with-php=/usr and it should detect everything > > for PHP. Of course, depending on what else you're using (GDAL, OGR, WMS, > > WFS, etc, etc) there are other configure options you'll need. > > > > If you don't build from source right now, perhaps a 4.6beta3 binary is > > available (?). > > > > Unfortunately, you are probably in exactly the position I was in when I > > decided to tackle this bug: I had a binary PHP that I didn't want to mess > > with that was built with the PHP regex. Older versions of Mapserver just > > don't play nicely that way. That's what the fix is about: it allows you > > to build against a binary PHP (assuming you have the include files) and > > uses the right regex. > > > > The good news for you is that there IS a fix now, and "all" you have to do > > is build Mapserver 4.6beta from source. > > > > Bill > > > > > From bill at BINKO.NET Wed Jun 1 15:31:50 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 1 Jun 2005 18:31:50 -0400 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: No Problem (Daniel, remind me to fix more of his bugs) Bill On Wed, 1 Jun 2005, Abe Gillespie wrote: > beta3 works! Thank you so much you geniui! > > -Abe > > On 6/1/05, Abe Gillespie wrote: > > I build both PHP and MapServer from source. But I'll start with > > upgrading to MS 4.6. I'll let you know. > > > > Thanks for the help! > > -Abe > > > > On 6/1/05, Bill Binko wrote: > > > On Wed, 1 Jun 2005, Abe Gillespie wrote: > > > > > > > Shall I build PHP or MapServer from source? > > > > > > You should build MapServer from source. Ideally, you should build CVS > > > HEAD or the latest beta ( 4.6Beta3 ?). > > > > > > If your PHP Header files are in /usr/include/php, then all you should have > > > to do is configure with --with-php=/usr and it should detect everything > > > for PHP. Of course, depending on what else you're using (GDAL, OGR, WMS, > > > WFS, etc, etc) there are other configure options you'll need. > > > > > > If you don't build from source right now, perhaps a 4.6beta3 binary is > > > available (?). > > > > > > Unfortunately, you are probably in exactly the position I was in when I > > > decided to tackle this bug: I had a binary PHP that I didn't want to mess > > > with that was built with the PHP regex. Older versions of Mapserver just > > > don't play nicely that way. That's what the fix is about: it allows you > > > to build against a binary PHP (assuming you have the include files) and > > > uses the right regex. > > > > > > The good news for you is that there IS a fix now, and "all" you have to do > > > is build Mapserver 4.6beta from source. > > > > > > Bill > > > > > > > > > > From woodbri at SWOODBRIDGE.COM Wed Jun 1 16:08:50 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 1 Jun 2005 19:08:50 -0400 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem In-Reply-To: Message-ID: Sean Gillies wrote: > On Jun 1, 2005, at 3:33 PM, Stephen Woodbridge wrote: > >> Hi all, >> >> I have a user that has installed MapServer 4.6.0-beta2 ( we are also >> trying with beta3 ) and built Perl Mapscript, But it is dying with: >> >> *** glibc detected *** double free or corruption: 0x00000000012817c0 *** >> >> mapscript::mapObj::new(/usr/lib/perl5/site_perl/5.8.5/x86_64-linux- >> thread-multi/mapscript.pm:1408): >> >> The code works fine on another system with a 32bit CPU, but this box has >> a 64bit AMD chip in it and is running suse 9.2 - standard install. >> >> Is this a known problem? is there a work-a-round? >> >> -Steve W. >> > > This is the first report I'm aware of, and I need a bit more context > before I can even begin to speculate. > > cheers, > Sean Sorry, I forgot to mention that this is happening on my $oMap = new mapscript::mapObj($szMapFile); First call to mapscript in the script. What more can I provide? -Steve From sgillies at FRII.COM Wed Jun 1 17:12:08 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 1 Jun 2005 18:12:08 -0600 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem In-Reply-To: Message-ID: On Jun 1, 2005, at 5:08 PM, Stephen Woodbridge wrote: > Sean Gillies wrote: >> On Jun 1, 2005, at 3:33 PM, Stephen Woodbridge wrote: >> >>> Hi all, >>> >>> I have a user that has installed MapServer 4.6.0-beta2 ( we are also >>> trying with beta3 ) and built Perl Mapscript, But it is dying with: >>> >>> *** glibc detected *** double free or corruption: 0x00000000012817c0 >>> *** >>> >>> mapscript::mapObj::new(/usr/lib/perl5/site_perl/5.8.5/x86_64-linux- >>> thread-multi/mapscript.pm:1408): >>> >>> The code works fine on another system with a 32bit CPU, but this box >>> has >>> a 64bit AMD chip in it and is running suse 9.2 - standard install. >>> >>> Is this a known problem? is there a work-a-round? >>> >>> -Steve W. >>> >> >> This is the first report I'm aware of, and I need a bit more context >> before I can even begin to speculate. >> >> cheers, >> Sean > > Sorry, I forgot to mention that this is happening on > > my $oMap = new mapscript::mapObj($szMapFile); > > First call to mapscript in the script. What more can I provide? > > -Steve > > Hmm. 64-bit mapscript chokes on Systems Hungarian notation? ;) Just kidding. Can you run the script under gdb? Is it a debug build of mapserver/mapscript?. The other option is to try an "empty" mapfile like map = mapscript.mapObj() and after that incrementally build up to the full mapfile. Along the way you may be able to find out what the offending element is. Sean From mapserver at HOTMAIL.COM Thu Jun 2 00:00:56 2005 From: mapserver at HOTMAIL.COM (N M) Date: Thu, 2 Jun 2005 07:00:56 +0000 Subject: Size in pixels of a shp file In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188611@ptolemy.topozone.com> Message-ID: I will explain my problem. I created my own .shp file and it runs perfectly. Now I want to insert a raster image in it. How can I find the world coordinates of my .tif image to match with my .shp file? _________________________________________________________________ ?Est?s pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ From tobiasmaurer at GMX.NET Wed Jun 1 23:53:20 2005 From: tobiasmaurer at GMX.NET (Tobias Maurer) Date: Thu, 2 Jun 2005 08:53:20 +0200 Subject: UMN with MySQL Message-ID: Hi, I have set up a UMN Mapserver on Linux that uses shape files. Now some cities on the map shold be marked. In the "Virtual Spatial Data" document I found a description how to connect to a MySQL Database over ODBC system DSN. Points that should be shown are in MySQL DB with xy-data. Can anyone tell me if it is possible to set up a System DSN on Linux without physical access to the server? Sorry for the post, but I'm a Linux Newbie... Best regards Tobias -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.huisman at INGBCC.NL Thu Jun 2 00:09:13 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Thu, 2 Jun 2005 09:09:13 +0200 Subject: Simple question about scalebar. Message-ID: Hi, The units of the projection is m. The Extent of your mapfile are m? If it is, the units of the mapfile should be m. best regards -----Oorspronkelijk bericht----- Van: Krung Saengpole [mailto:saengpole at yahoo.com] Verzonden: dinsdag 31 mei 2005 20:12 Aan: Dirk-Jan Huisman; mapserver-users at lists.umn.edu Onderwerp: Re: [UMN_MAPSERVER-USERS] Simple question about scalebar. Hi, Thank you for your response. My map file is simple as below: MAP SHAPEPATH "d:\work\gis\kornburi\data\" FONTSET "./fonts/fonts.list" SYMBOLSET "./symbols/symbol.sym" EXTENT 730000 1550000 935000 1750000 UNITS kilometers SIZE 600 450 IMAGETYPE gif TRANSPARENT on SCALEBAR POSITION ll STATUS off COLOR 255 0 255 IMAGECOLOR 255 255 0 UNITS KILOMETERS INTERVALS 3 STYLE 0 END PROJECTION "proj=utm" "zone=47" "a=6377276.345" "b=6356075.413" "towgs84=209,818,290,0,0,0,0" "units=m" "no_defs" END LAYER ... ... END My problem is that scalebar showed wrong distance. Everything is ok but scalebar. I told you last message that true distance it should be 18.3 km but scalebar showed 18300 km. I thought if this number was correct, then the unit should be meter not kilometer. Dirk-Jan Huisman wrote: Hi, It's not clear what goes wrong. Include some code of your mapfile. What are the map units and the scalebar units? ----Oorspronkelijk bericht----- Van: Krung Saengpole [mailto:saengpole at YAHOO.COM] Verzonden: maandag 30 mei 2005 16:34 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Simple question about scalebar. Dear all, Whether or not I embeded scalebar in map, it showed wrong distance, e.g. it should be 18.3 km but it showed 18300 km. Nontheless I use projection or not. What I have to specially set to get right scalebar? TIA Krung __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------ ----------- Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------ ----------- Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------ ----------- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------ ----------- _____ Do You Yahoo!? Yahoo! Small Business - Try our new Resources site! ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dpinte at ITAE.BE Thu Jun 2 00:14:20 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Thu, 2 Jun 2005 09:14:20 +0200 Subject: movie tracking a point using python-mapscript Message-ID: Hi, I need to create a movie tracking a point... I'm looking for interesting ideas about that. Here are my plans : - select the point - for each record on this point : - get its X,Y from PostGIS - center the map on the point using a defined scale - create a png output With all the png's, create a movie. I want to do it using python-mapscript for many different reasons. Has anybody already done this ? Thank Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From benndorf at MAIL.BT-GIS.DE Thu Jun 2 01:13:43 2005 From: benndorf at MAIL.BT-GIS.DE (Klaus Benndorf) Date: Thu, 2 Jun 2005 10:13:43 +0200 Subject: PostGIS vs. MySQL spatial in MapServer Message-ID: Hi, as Arnulf wrote, we built myWMS as we needed special carthographic functions for our german customers. But as so often, you do much more than intended when starting the project. Meanwhile myWMS is a complete map server that covers a lot of functionality described by OGC/WMS. We decided to use MySQL, as many of our customers already worked with it. But myWMS does not strictly depend on MySQL. As a Java servlet, using JDBC, you should be able to connect to PostGIS as well. Maybe it takes some adjustments in SQL statements, but I don't think it is too much. If you compare PostGIS and MySQL, you see, that MySQL offers not so many functions and some of them are only working on the bounding box of an object. But it is enough for what we want to do with myWMS. Looking at the performance, MySQL seems to be excellent. We tested the import of about 3 Million objects and MySQL was about 30% faster than PostGIS. Maybe thats due to the fact, that MySQL implements spatial objects in MYISAM , not in INNODB. MYISAM does not know transactions. So it is very lean and fast. Also the spatial index in MySQL seems to work excellent. We could not find any performance leak, i.e. depending on the number of objects, the size of the database, or the number of concurrent accesses. I'm going to describe more technical background on myWMS website (http://www.bt-gis.de/mywms), but it takes a while. Unfortunately we don't have an english website yet, but I am working on it. Hope it will be available in about 2 weeks. Klaus Am Mittwoch, 1. Juni 2005 14:53 schrieb Arnulf Christl: > Kralidis,Tom [Burlington] wrote: > > Hi, > > > > Can someone point me to some comparisons of the spatial functionality of > > these packages? > > > > Thanks > > > > ..Tom > > > > ========================= > > Tom Kralidis > > Senior Systems Scientist > > Environment Canada > > Tel: +01-905-336-4409 > > http://www.ec.gc.ca/ > > Just to add to the confusion... there is a project called MyWMS which > has been implemented by Klaus Benndorf (all in German: > http://www.bt-gis.de) in cooperation with MySQL AB. > There is a case study (very short, German language): > http://www.mysql.de/it-resources/case-studies/mysql-bt-gis-anwenderbericht. >pdf > > It states that MyWMS is OGC WMS compliant (it probably should say > implementing) and uses some MySQL "spatial operations". > The proprietary forerunner GISeye contains a very powerful rendering > engine which can handle the cartographic wilderness that German > cadastral maps boast (Steve added some of this functionality to > MapServer last year). It will be (was, is) released under the GNU/GPL > with a dual licensing simliar to that by MySQL AB. > > i did not yet have time to dig into it. If you are interested in > internal details of MySQL spatial functionality probably Klaus will know > best. -- BT-GIS Klaus Benndorf Kessenicher Stra?e 108 53129 Bonn Telefon 0049228 978510 Fax ? ? 0049228 9785111 Mail ? ?benndorf at mail.bt-gis.de WWW ? ? http://www.bt-gis.de From mapserver at HOTMAIL.COM Thu Jun 2 01:52:35 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Thu, 2 Jun 2005 03:52:35 -0500 Subject: layer order Message-ID: I would like that layers in my map appeared in a concret order. On the top the text one, then the symbol one, then the shapes one and the raster on the back. How can I do it? This is my training map: MAP IMAGETYPE PNG EXTENT 10.444874 -11.210762 11.992263 -8.968610 SIZE 282 409 SHAPEPATH "data" IMAGECOLOR 255 180 0 FONTSET "fonts/fonts.list" #PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # Capa rectangles GROUP grup NAME rectangles DATA rectangle STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASSITEM "CAMP" CLASS EXPRESSION 'p' COLOR 255 204 102 END CLASS EXPRESSION 'r' COLOR 0 0 0 END CLASS EXPRESSION 't' COLOR 200 10 25 END END # Fi capa rectangles LAYER # MODIS raster layer begins here NAME modis DATA "raster/prova.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 127 127 127 #Color que ha de ser transparent PROJECTION "init=epsg:4326" END END # MODIS raster layer ends here LAYER # States polygon layer begins here GROUP grup NAME noms DATA rectangle STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASSITEM "CAMP" LABELITEM "NOM" CLASS EXPRESSION 'r' LABEL COLOR 255 255 255 FONT arial-bold SIZE large ANTIALIAS TRUE POSITION CC PARTIALS FALSE MINDISTANCE 100 BUFFER 15 END # end of label END CLASS EXPRESSION 't' LABEL COLOR 0 0 0 FONT verdana SIZE large ANTIALIAS TRUE POSITION CC PARTIALS FALSE MINDISTANCE 100 BUFFER 15 END # end of label END END # States polygon layer ends here LAYER NAME simbols GROUP grup STATUS DEFAULT DATA rectangle TYPE ANNOTATION LABELITEM "SIMB" CLASSITEM "C" CLASS EXPRESSION "3" STYLE COLOR 0 0 0 # dummy color SYMBOL 'symbols/prova.gif' END LABEL MINFEATURESIZE 20 MINDISTANCE 50 POSITION CC SIZE TINY COLOR 255 255 255 END END PROJECTION "init=epsg:4326" END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file From w.blanken at GEON.NL Thu Jun 2 02:37:47 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Thu, 2 Jun 2005 11:37:47 +0200 Subject: layer order Message-ID: Hello Nuri, Nice emailadres ;>) Well first of all, the layers are drawn from first to last. The last layer in your mapfile is the topmost layer in the image. The text (labels etc) of all layers are drawn always on top of the last layer. Regards, Wim Blanken ----- Original Message ----- From: "SUBSCRIBE MAPSERVER-USERS Nuri" To: Sent: Thursday, June 02, 2005 10:52 AM Subject: [UMN_MAPSERVER-USERS] layer order >I would like that layers in my map appeared in a concret order. > > On the top the text one, then the symbol one, then the shapes one and the > raster on the back. > > How can I do it? > > This is my training map: > > MAP > IMAGETYPE PNG > EXTENT 10.444874 -11.210762 11.992263 -8.968610 > SIZE 282 409 > SHAPEPATH "data" > IMAGECOLOR 255 180 0 > FONTSET "fonts/fonts.list" > > #PROJECTION > # "proj=laea" > # "ellps=clrk66" > # "lat_0=45" > # "lon_0=-100" > # > # Alternatively, you can specify an EPSG code. > # "init=epsg:2163" > # > #END > > # Start of LAYER DEFINITIONS -------------------------------------------- > - > LAYER # Capa rectangles > GROUP grup > NAME rectangles > DATA rectangle > STATUS DEFAULT > TYPE POLYGON > > PROJECTION > "init=epsg:4269" > END > > CLASSITEM "CAMP" > CLASS > EXPRESSION 'p' > COLOR 255 204 102 > END > CLASS > EXPRESSION 'r' > COLOR 0 0 0 > END > CLASS > EXPRESSION 't' > COLOR 200 10 25 > END > > END # Fi capa rectangles > > LAYER # MODIS raster layer begins here > NAME modis > DATA "raster/prova.tif" > STATUS DEFAULT > TYPE RASTER > PROCESSING "BANDS=1,2,3" > OFFSITE 127 127 127 #Color que ha de ser transparent > > PROJECTION > "init=epsg:4326" > END > END # MODIS raster layer ends here > > LAYER # States polygon layer begins here > GROUP grup > NAME noms > DATA rectangle > STATUS DEFAULT > TYPE POLYGON > > PROJECTION > "init=epsg:4326" > END > > CLASSITEM "CAMP" > LABELITEM "NOM" > CLASS > EXPRESSION 'r' > > LABEL > COLOR 255 255 255 > FONT arial-bold > SIZE large > ANTIALIAS TRUE > POSITION CC > PARTIALS FALSE > MINDISTANCE 100 > BUFFER 15 > END # end of label > END > CLASS > EXPRESSION 't' > > LABEL > COLOR 0 0 0 > FONT verdana > SIZE large > ANTIALIAS TRUE > POSITION CC > PARTIALS FALSE > MINDISTANCE 100 > BUFFER 15 > END # end of label > END > END # States polygon layer ends here > > LAYER > NAME simbols > GROUP grup > STATUS DEFAULT > DATA rectangle > TYPE ANNOTATION > LABELITEM "SIMB" > CLASSITEM "C" > CLASS > EXPRESSION "3" > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/prova.gif' > END > LABEL > MINFEATURESIZE 20 > MINDISTANCE 50 > POSITION CC > SIZE TINY > COLOR 255 255 255 > END > END > > PROJECTION > "init=epsg:4326" > END > END > > > > # End of LAYER DEFINITIONS ------------------------------- > END # end of map file > > From mapserver at HOTMAIL.COM Thu Jun 2 02:42:25 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Thu, 2 Jun 2005 04:42:25 -0500 Subject: Link a symbol Message-ID: I have a database .dbf that determine the position of several symbols in the map. Is it possible to include a hyperlink in every symbol to access to another page of the website? If it is, how can do it? Is there an instruction to include in my .map file to do it? From gerry.creager at TAMU.EDU Thu Jun 2 04:14:13 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Thu, 2 Jun 2005 06:14:13 -0500 Subject: movie tracking a point using python-mapscript In-Reply-To: <1117696460.3394.5.camel@geru-itea> Message-ID: This might help: http://www.ssec.wisc.edu/visit/AniS/ I use this to animate our weather depictions. gerry Didrik Pinte wrote: > Hi, > > I need to create a movie tracking a point... I'm looking for interesting > ideas about that. > > Here are my plans : > > - select the point > - for each record on this point : > - get its X,Y from PostGIS > - center the map on the point using a defined scale > - create a png output > With all the png's, create a movie. > > I want to do it using python-mapscript for many different reasons. > > Has anybody already done this ? > > Thank > > Didrik -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From OudelohuisR at VERTIS.NL Thu Jun 2 05:32:20 2005 From: OudelohuisR at VERTIS.NL (Robert oude Lohuis) Date: Thu, 2 Jun 2005 14:32:20 +0200 Subject: How to Use MR.SID raster files in mapserver 4.4.2 ? Message-ID: Hello, We have compiled version 4.4.2 of mapserver (and the necessary libraries) from the sources on a unix box. It is now configured and working. There is however one problem. We have a couple of Mr. SID files and want to use these as a layer. We downloaded the libraries from lizardtech and recompiled GDAL with support for Mr.SID We did tiled the Mr. SID files and configured a layer. There are no error messages, but I see no data in the map. We tried to look at an individual Mr. SID file, but then we got the following error : MrSIDRasterBand::IRasterIO(): Failed to load image. scene magnifGDALRasterIO() failed: drawGDAL(): Unable to access file. GDALRasterIO() failed: drawGDAL() A recompile of mapserver had no effect. The first question is: Is it possible to look at Mr.SID rasters through mapserver ? And the second question is, if so, what's the trick ? Does anyone have knowledge on this subject and willing to share his/her information ? Thanks in advance, Robert oude Lohuis -------------- next part -------------- An HTML attachment was scrubbed... URL: From agomez at CCCMM.CESGA.ES Thu Jun 2 06:14:45 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Thu, 2 Jun 2005 15:14:45 +0200 Subject: joining shp and dbase files Message-ID: Hi all, I'm here again. I was working in localhost and it was right, but when i tried access from internet i got this error: msOGRFileOpen(): OGR error. ExecuteSQL(SELECT fshape.*,fdbf.* FROM POLIGONOS fshape LEFT JOIN 'z:/GIS/ESZBAT.DBF'.ESZBAT fdbf ON fshape.POLIGONO = fdbf.POLIGONO) failed. Unable to open secondary datasource `z:/GIS/ESZBAT.DBF' required by JOIN. I have tried with "//server/gis..." but it no works. It seems to be a privileges problem as Emil advised me and I've tried to change in IIS the IUSR_SERVER to access anonymously by a user who belongs to my domain, even with admin privileges, but with any result. What about folder permissions? Any ideas? ----- Original Message ----- From: "Emil Zegers" To: Sent: Thursday, May 26, 2005 1:42 PM Subject: Re: [UMN_MAPSERVER-USERS] joining shp and dbase files > Hello Alberto, > > You could try switching to absolute path names. > > If your dbf is located at C:/inetpub/wwwroot/project/data/myfile.dbf > > Then instead of: > > "/inetpub/wwwroot/project/data/myfile.dbf" > > in the DATA parameter use: > > "C:/inetpub/wwwroot/project/data/myfile.dbf" > > Similair if the file is located at Z:/geodata/dbase/myfile.dbf > > in the DATA parameter use: > > "Z:/geodata/dbase/myfile.dbf" > > UNC paths also works so if your Z: disk is a mapping to a machine called > alberto then use > > "\\alberto\geodata\dbase\myfile.dbf" > > Make sure the Windows user has appropriate rights to access the disk or > share and don't forget that Windows IIS uses the IUSR on default. > > The IUSR account is a local machine account so it can only access local > files and not mapped drives or other servers. > > So if you want to access data on other servers you need to switch to use a > domain user in IIS (best is to create a new user or group for this purpose). > > Accessing other drives/servers may work if you use integrated security in > addition to anonymous access on IIS but this is only so if your (domain) > accoutn has sufficient rights. Everybody from outside (not a domain user) > will not be able to access that data. This can be confusing when testing > your setup. > > Regards, > > Emil > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Alberto Gomez > Sent: donderdag 26 mei 2005 13:31 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] joining shp and dbase files > > > Hi Emil, > > Thank you for your quick response. It works great!!... but in local. I'm > working in windows and my dbf file is located in a network volume (Z:). I > set DATA parameter with a full path like this: > "/inetpub/wwwroot/project/data/myfile.dbf" and i need to change from "C:" > to > "Z:". > > Could you helpme with that? > > Tanks in advance, > Alberto > > > > -------------------------------------------------------------------------- ------------------------- > Texto a?adido por Panda Client Shield: > > Este mensaje NO ha sido clasificado como SPAM. Si se trata de un mensaje de correo no solicitado (SPAM), haz clic en el siguiente v?nculo para reclasificarlo: http://127.0.0.1:6083/Panda?ID=pav_1817&SPAM=true > -------------------------------------------------------------------------- ------------------------- > From oubinny at HOTMAIL.COM Thu Jun 2 06:50:56 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Thu, 2 Jun 2005 13:50:56 +0000 Subject: several zoom Message-ID: Hello, I want to make several zoom in my map on the same point. I used the mapObj ZoomPoint() : $map->zoompoint(3,$my_point,$map->width,$map->height, $map->extent); I cant' zoom serveal times, but one time only. I give for you a simple exemple. we have a map of Europe, i want to see the town of Paris. I click in France, i got a zoom of France and after in i can to click on Paris area Can you help me ? Thanks Mehdi France From williampaul28 at YAHOO.COM Thu Jun 2 07:15:54 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Thu, 2 Jun 2005 07:15:54 -0700 Subject: multiple join - shp to dbf In-Reply-To: Message-ID: Hi: I want to join a shp file with a dbf file. It's ONE TO MANY join. I have seen that more people have the same problem. Also I want to make a classification based on the attributes from the DBF file. I tried with OGR and JOIN OBJECT from Mapserver, but nothing Does any one have a working example? Thank you in advance William __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From abe.gillespie at GMAIL.COM Thu Jun 2 07:22:39 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Thu, 2 Jun 2005 10:22:39 -0400 Subject: Proj Problem Message-ID: I'm slowly getting further and further along with my new system. The latest error is this: Warning: [MapServer Error]: msProcessProjection(): no options found in 'init' file in I have an epsg file in /usr/local/share/proj/ and I tried linking it to the directory where the proj lib lives. I only did this due to hints I found on Google. ... it didn't fix anything. Thanks for any help. -Abe From bfraser at GEOANALYTIC.COM Thu Jun 2 07:51:41 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 2 Jun 2005 08:51:41 -0600 Subject: How to Use MR.SID raster files in mapserver 4.4.2 ? Message-ID: How to Use MR.SID raster files in mapserver 4.4.2 ?Robert, It is possible to use MrSID files as a data source for MapServer. Personally, I don't recommend it due to the poor decompression performance of MrSID. If you have the disk space convert the MrSID files to uncompressed TIF instead (you can use GDAL's gdal_translate utility). If disk space is not available use ECW (although I'm not sure of the compilation status on unix). What do you get when you run GDAL's gdalinfo utility on the MrSID file? Brent Fraser ----- Original Message ----- From: Robert oude Lohuis To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, June 02, 2005 6:32 AM Subject: [UMN_MAPSERVER-USERS] How to Use MR.SID raster files in mapserver 4.4.2 ? Hello, We have compiled version 4.4.2 of mapserver (and the necessary libraries) from the sources on a unix box. It is now configured and working. There is however one problem. We have a couple of Mr. SID files and want to use these as a layer. We downloaded the libraries from lizardtech and recompiled GDAL with support for Mr.SID We did tiled the Mr. SID files and configured a layer. There are no error messages, but I see no data in the map. We tried to look at an individual Mr. SID file, but then we got the following error : MrSIDRasterBand::IRasterIO(): Failed to load image. scene magnifGDALRasterIO() failed: drawGDAL(): Unable to access file. GDALRasterIO() failed: drawGDAL() A recompile of mapserver had no effect. The first question is: Is it possible to look at Mr.SID rasters through mapserver ? And the second question is, if so, what's the trick ? Does anyone have knowledge on this subject and willing to share his/her information ? Thanks in advance, Robert oude Lohuis -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcgrawj at AGR.GC.CA Thu Jun 2 08:43:21 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Thu, 2 Jun 2005 11:43:21 -0400 Subject: moving an existing point Message-ID: Good day all, I am displaying a corporate logo in all our application maps by adding the following layer to my map file: layer name copyright status on transform false type point feature # for english version # -------------------------- points 72 286.5 end #lower left - display #points 74 706.5 end #lower left - print # for french version # -------------------------- #points 88 286.5 end #lower left - display #points 90 706.5 end #lower left - print end # feature class # english logo symbol "logo-e.png" # french logo #symbol "logo-f.png" outlinecolor 255 255 255 end # class end # copyright layer As you can see from the commented points positions, there are four possible x,y coordinates that this corporate logo should be displayed at depending on what language the user is working in and whether they are creating the map for display in our application or for printing to a page. To handle this, I am trying to write some code to move the location of the point but have run into a problem I cannot resolve. For the time being, I am only concerned with whether I am printing or displaying, so only the y position has to change (I'll worry about the x position for the languages after I get the y working). When I try to run the following code, a fatal error "Call to undefined function: setxy()" $layer = $oMap->getLayerByName("copyright"); if (isset($layer)){ $layer->open(); $p = $layer->getShape(-1, 0); $oldX = $p->x; $oldY = $p->y; $newY = $oMap->height - (($oMap->height/2) + 3); // 3 pixels away from the border of the map $p.setXY($oldX, $newY); $layer->close(); } // drawMap(); reset original x,y cords for point; etc.; etc. I introduced some print to file statements after the line "$p = $layer->getShape(-1, 0);" to verify that the $layer->type did indeed equal MS_LAYER_POINT, but I don't know how to find out if $p is actually a PointObj (I'd be interested to know for future reference, BTW). I'm assuming it isn't a PointObj and that is why the setxy() function (and the x value and the y value, as it turns out) is undefined, but can't figure out how to cast the ShapeObj returned with getShape() to a PointObj. I have looked for examples for what I am trying to do, but all examples using setXY that I can find are operating on new points constructed with the ms_newPointObj() rather than on an existing point selected out of a layer. Can anyone point me in the right direction with respect to casting the ShapeObj to a PointObj? Or, if this isn't a good approach, can you let me know what I should be doing instead? Cheers, jtm -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdaily at GMAIL.COM Thu Jun 2 09:08:51 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 2 Jun 2005 11:08:51 -0500 Subject: moving an existing point In-Reply-To: Message-ID: $layer->getShape(-1, 0) will return a ShapeObj, not a PointObj. To get the point, do this $shape = $layer->getShape(-1, 0); $line = $shape->line(0); $point = $line->point(0); You should then be able to call setXY on the $point object. A shape object is made up of lines, which are made up of points. If the shape is simply a point, it contains 1 line with 1 point in the line. Camden Daily Prudential Preferred Properties www.prupref.com From waste at SHAZ-BOT.COM Thu Jun 2 07:58:57 2005 From: waste at SHAZ-BOT.COM (Your Name) Date: Thu, 2 Jun 2005 09:58:57 -0500 Subject: displaying multiple points from database using phpmapscript Message-ID: Hello All, Not sure if I am doing this correctly. I have a database with x,y coordinates (pixel format) stored in it (mysql, not using the gis extensions). I use php to get a list of those coordinates and I want to display them all at once. However it appears to only draw 1 set of coordinates. I am new to MapServer and somewhat to PHP so perhaps my logic is wrong. Here is a code sample: for ($j=0; $j < mysql_num_rows($reStation); $j++) { $row = mysql_fetch_assoc($reStation); // convert pixel to geocoded $map_pt = click2map($row["x"],$row["y"],$map->extent); //Create the point $pt = ms_newPointObj(); $pt-> setXY($map_pt[0],$map_pt[1]); $img = $map->draw(); $layer = $map->getLayerByName('POINTLOC'); $pt->draw($map, $layer, $img, 0 ,'yuhuu'); } $url = $img->saveWebImage(); I have a feeling my logic is wrong. here is what the POINTLOC layer looks like (if that makes a difference...but i think my php may be wrong) NAME "POINTLOC" TYPE POINT STATUS ON CLASS NAME "0" STYLE COLOR 255 0 0 MAXSIZE 300 SYMBOL 'rect' SIZE 10 END #style END #class END #layer From arnulf.christl at CCGIS.DE Thu Jun 2 10:01:26 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Thu, 2 Jun 2005 19:01:26 +0200 Subject: How to Use MR.SID raster files in mapserver 4.4.2 ? In-Reply-To: <010d01c56782$9673ad60$160002c0@shark> Message-ID: Brent Fraser wrote: > Robert, > > It is possible to use MrSID files as a data source for MapServer. > Personally, I don't recommend it due to the poor decompression > performance of MrSID. If you have the disk space convert the MrSID > files to uncompressed TIF instead (you can use GDAL's gdal_translate > utility). If disk space is not available use ECW (although I'm not sure > of the compilation status on unix). > > What do you get when you run GDAL's gdalinfo utility on the MrSID file? > > Brent Fraser Hi, Frank did some changes to GDAL (was it that) and it should work fine now. Get me offlist, if you need exact version numbers. You simply have to download the Mr.Sid SDK at www.lizardtech.com and compile it with Mapserver. Nothing more. Well! We had to do it for Linux and Windows, latter is a pain. Since Franks hack the performance really is very amazing. Being all Free-headed i personally would not want to use Mr.Sid but it really does a great job compressing and decompressing. The aerials of Rhineland Palatinate would have been 1.8 TB in TIFF, instead they now amount to 60 GB Mr.Sid. The customer made us do it. > ----- Original Message ----- > *From:* Robert oude Lohuis > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Sent:* Thursday, June 02, 2005 6:32 AM > *Subject:* [UMN_MAPSERVER-USERS] How to Use MR.SID raster files in > mapserver 4.4.2 ? > > > Hello, > > We have compiled version 4.4.2 of mapserver (and the necessary > libraries) from the sources on a unix box. > It is now configured and working. There is however one problem. > We have a couple of Mr. SID files and want to use these as a layer. > We downloaded the libraries from lizardtech and recompiled GDAL with > support for Mr.SID > > We did tiled the Mr. SID files and configured a layer. There are no > error messages, but I see no data in the map. > We tried to look at an individual Mr. SID file, but then we got the > following error : > > MrSIDRasterBand::IRasterIO(): Failed to load image. scene > magnifGDALRasterIO() failed: drawGDAL(): Unable to access file. > GDALRasterIO() failed: drawGDAL() > > A recompile of mapserver had no effect. > > The first question is: Is it possible to look at Mr.SID rasters > through mapserver ? > And the second question is, if so, what's the trick ? > > Does anyone have knowledge on this subject and willing to share > his/her information ? > > Thanks in advance, > > Robert oude Lohuis > From mcgrawj at AGR.GC.CA Thu Jun 2 10:04:38 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Thu, 2 Jun 2005 13:04:38 -0400 Subject: moving an existing point Message-ID: The information Camden provided (and me correcting my syntax from '.setXY()' to '->setXY()') helped tremendously. Using file printouts, I am now able to verify the point's current x and y position, set new x and y coordinates and verify those have been set. Unfortunately, when I drawMap(), the position of the corporate logo remains at the original x,y position. I thought perhaps that I needed to $layer->close(); to get the values properly assigned, but that just lost the new x,y coordinate values. Obviously, I thought the code below would work, but I appear to be missing a step. Is there some way to "write" those new x,y values back into the layer so that they are used by other functions accessing that same point? Thank you very much Camden for getting me over that shape/point hurdle. Cheers, jtm $layer = $oMap->getLayerByName("copyright"); if (isset($layer)){ $layer->open(); $shape = $layer->getShape(-1, 0); $line = $shape->line(0); $point = $line->point(0); $oldX = $point->x; $oldY = $point->y; $newY = $oMap->height - 14.5; $point->setXY($oldX, $newY); } $img = $oMap->draw(); //revert to original if (isset($layer)){ $point->setXY($oldX, $oldY); $layer->close(); } From siki at AGT.BME.HU Thu Jun 2 13:05:35 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 2 Jun 2005 19:05:35 -0100 Subject: multiple join - shp to dbf {Scanned} In-Reply-To: <20050602141555.89165.qmail@web33504.mail.mud.yahoo.com> Message-ID: Hi, First of all, you can only use mapserver join for querying purpose. I use ONE TO MANY join, it works on linux, but frequently failes on windows. I have also tried to use OGR join to create thematic map on the column of the joined table (see my previous post). So far I get no working map file, no error and no result :( Bye Zoltan Sample for multiple join: Layer definition in map file: LAYER NAME "kafold" DATA "alapterkep/kafold" STATUS ON TYPE POLYGON CLASS STYLE COLOR -1 -1 -1 END STYLE OUTLINECOLOR 0 0 0 END END HEADER "telek_cim_header.html" TEMPLATE "telek_cim.html" FOOTER "telek_cim_footer.html" JOIN NAME cim TABLE "cimek/ujcimek1.dbf" FROM HRSZ TO HRSZ TYPE multiple TEMPLATE "cim_template.html" END END template for the layer (one row only) [join_cim] template for multiple join, note joined columns start with the join name ("cim_" in my case) [HRSZ] [JOGTER]  [F_TIP]  [VALTSZ]  [cim_IRSZAM]  [cim_CIM]  [cim_HATSZAM] kafold table has HRSZ, JOGTER, F_TIP, VALTSZ columns ujcimek1 table has IRSZAM, CIM, HATSZAM columns On Thu, 2 Jun 2005, william paul wrote: > Hi: > I want to join a shp file with a dbf file. It's ONE TO MANY join. I have seen that more people have the same problem. Also I want to make a classification based on the attributes from the DBF file. I tried with OGR and JOIN OBJECT from Mapserver, but nothing > > Does any one have a working example? > > Thank you in advance > > William > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From cdaily at GMAIL.COM Thu Jun 2 10:08:24 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 2 Jun 2005 12:08:24 -0500 Subject: displaying multiple points from database using phpmapscript In-Reply-To: Message-ID: Here's the function I use: function add_point_to_layer($layer, $longitude, $latitude) { // create and initialize new point object $point = ms_newPointObj(); $point->setXY($longitude, $latitude); // create and initialize new line object $line = ms_newLineObj(); $line->add($point); // create and initialize new shape object $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); // add our shape $layer->addFeature($shape); } In your code, you might use it like this: $layer = $map->getLayerByName('POINTLOC'); for ($j=0; $j < mysql_num_rows($reStation); $j++) { $row = mysql_fetch_assoc($reStation); add_point_to_layer($layer, $row["x"], $row["y"]) } $url = $img->saveWebImage(); That code works if the points are already in geographic (long/lat) coordinates. You'll have to play with things a bit since yours are in pixel coordinates, but that at least shows how to use the addFeature to add points to your map. -Camden Daily Prudential Preferred Properties http://www.prupref.com From garand at ODRAGIS.ORG Thu Jun 2 10:33:37 2005 From: garand at ODRAGIS.ORG (Michel Garand) Date: Thu, 2 Jun 2005 19:33:37 +0200 Subject: WFS and mapserver-4.6.0-beta3 Message-ID: Greetings! I just downloaded the mapserver-4.6.0-beta3 and now testing WMS and WFS capabilities. Here is my problem: With mapserver 4.4.2 - WFS seems to work ok http://odragis.org/cgi-bin/slubfurt2wms? SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Nodes with the result: - - - - ###################### and with mapserver-4.6.0-beta3 - WFS seems not to work properly: http://odragis.org/cgi-bin/slubfurtwms? SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Nodes with the result: - - - - ########################## The new version of mapserver doesn't seem to spit out the as in the mapserver 4.4.2 version. ######################## Any advice? Thanks in advance for any assistance Michel From lfilak at MEDINACO.ORG Thu Jun 2 11:27:44 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 2 Jun 2005 14:27:44 -0400 Subject: several zoom Message-ID: The following message was sent by Mehdi Kiman on Thu, 2 Jun 2005 13:50:56 +0000. > Hello, > > I want to make several zoom in my map on the same point. > I used the mapObj ZoomPoint() : > $map->zoompoint(3,$my_point,$map->width,$map->height, > $map->extent); > I cant' zoom serveal times, but one time only. > > I give for you a simple exemple. we have a map of Europe, i want to see the > town of Paris. > I click in France, i got a zoom of France and after in i can to click on > Paris area > > Can you help me ? Mehdi, Does the output of your script produce an html page with the image as an 'input' or just a static 'img' tag? The image needs to be an input to be able to 'click' on it in order to zoom in a second time. Lowell From bartvde at XS4ALL.NL Thu Jun 2 11:41:07 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 2 Jun 2005 20:41:07 +0200 Subject: WFS and mapserver-4.6.0-beta3 In-Reply-To: <1117733618.6327.18.camel@geoport.odragis.org> Message-ID: Hi, you need to use the new METADATA at the LAYER level: METADATA .. gml_include_items "all" .. END Best regards, Bart On Thu, 02 Jun 2005 19:33:37 +0200, Michel Garand wrote: > Greetings! > > I just downloaded the mapserver-4.6.0-beta3 and now testing WMS and WFS > capabilities. > > Here is my problem: > With mapserver 4.4.2 - WFS seems to work ok > > http://odragis.org/cgi-bin/slubfurt2wms? > SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Nodes > > with the result: > > elementFormDefault="qualified" version="0.1"> > schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/> > substitutionGroup="gml:_Feature"/> > - > > - > > - > > - > > > > > > > > > > > > > ###################### > > and with mapserver-4.6.0-beta3 - WFS seems not to work properly: > > http://odragis.org/cgi-bin/slubfurtwms? > SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Nodes > > with the result: > elementFormDefault="qualified" version="0.1"> > schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/> > substitutionGroup="gml:_Feature"/> > - > > - > > - > > - > > maxOccurs="1"/> > > > > > > > ########################## > > The new version of mapserver doesn't seem to spit out the > > > > > > > > > > as in the mapserver 4.4.2 version. > > ######################## > > Any advice? > > Thanks in advance for any assistance > > Michel > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From tkirstine at JDBARNES.COM Thu Jun 2 13:07:47 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 2 Jun 2005 16:07:47 -0400 Subject: Scale Buckets and Rasters Message-ID: Hi, I was hoping someone could give me some clarification on the PROCESSING SCALE and SCALE BUCKETS directives. I am displaying a classed 32bit floating raster using the following: CLASS NAME class1 EXPRESSION ([pixel] = 0) COLOR 56 168 0 END CLASS NAME class2 EXPRESSION ([pixel] >= 0 and [pixel] <= 2) COLOR 90 186 0 END CLASS NAME class3 EXPRESSION ([pixel] > 2 and [pixel] <= 4) COLOR 131 207 0 END CLASS NAME class4 EXPRESSION ([pixel] > 4 and [pixel] <= 5) COLOR 176 224 0 END CLASS NAME class5 EXPRESSION ([pixel] > 5 and [pixel] <= 7) COLOR 228 245 0 END etc for 10 classes............. This works but is fairly slow. So I am trying to use the processing buckets directive with the following syntax: PROCESSING "SCALE=0,444" #min and max values of raster PROCESSING "SCALE_BUCKETS=10" #number of classes When this is added mapserver only displays the higher values. Does the processing buckets directive only work on equal interval classes or do I just have a incorrect syntax. Travis From emiliom at U.WASHINGTON.EDU Thu Jun 2 14:15:40 2005 From: emiliom at U.WASHINGTON.EDU (Emilio Mayorga) Date: Thu, 2 Jun 2005 14:15:40 -0700 Subject: problem with tile index files and shape files Message-ID: I used ogrtindex to create a tile index file for a set of 7 polygon shape files. These files (land cover types in country tiles) were supposed to be identical in structure, but one of them is slightly different, and that's the only one that Mapserver doesn't display when I use a layer that refers to the tile index. If I refer to that deviant shape file directly in a separate layer, with everything else the same (I use FILTER expressions), it displays fine. I'm using Mapserver 4.0 and OGR from October 2003 (I really need to update one of these days...). Using ogrinfo on one of the good shape files, I get this summary info: AREA_KM2: Real (12.6) IDUNESCO: String (25.0) DESCRIPCIO: String (75.0) PAIS: String (15.0) But on the bad shape tile I get: IDUNESCO: String (16.0) DESCRIPCIO: String (150.0) AREA_KM2: Real (13.6) PAIS: String (15.0) Fields are in a different order, and are defined just slightly differently (I'm using FILTERITEM "IDUNESCO" in my layer). Also, the bad shape file is grouping lots of polygons into few multipolygons, while the other shape files seem to have individual polygons. (ogrinfo gives "Geometry: Polygon" for both, though). Can anyone suggest a way to tweak the bad shape file so it plays nice with MapServer tile indices? Thanks! -Emilio Mayorga From steve.lime at DNR.STATE.MN.US Thu Jun 2 14:09:24 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 2 Jun 2005 16:09:24 -0500 Subject: WFS and mapserver-4.6.0-beta3 Message-ID: Bart is correct, you now have to explicitly publish attributes. WFS is still undergoing a last bit of tweaking to give you lot's of control with schema and instance document format. GML3 will be supported as well. We need to get the documentation updated before the release candidate. Steve >>> Bart van den Eijnden 06/02/05 1:41 PM >>> Hi, you need to use the new METADATA at the LAYER level: METADATA .. gml_include_items "all" .. END Best regards, Bart On Thu, 02 Jun 2005 19:33:37 +0200, Michel Garand wrote: > Greetings! > > I just downloaded the mapserver-4.6.0-beta3 and now testing WMS and WFS > capabilities. > > Here is my problem: > With mapserver 4.4.2 - WFS seems to work ok > > http://odragis.org/cgi-bin/slubfurt2wms? > SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Nodes > > with the result: > > elementFormDefault="qualified" version="0.1"> > schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/> > substitutionGroup="gml:_Feature"/> > - > > - > > - > > - > > > > > > > > > > > > > ###################### > > and with mapserver-4.6.0-beta3 - WFS seems not to work properly: > > http://odragis.org/cgi-bin/slubfurtwms? > SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Nodes > > with the result: > elementFormDefault="qualified" version="0.1"> > schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/> > substitutionGroup="gml:_Feature"/> > - > > - > > - > > - > > maxOccurs="1"/> > > > > > > > ########################## > > The new version of mapserver doesn't seem to spit out the > > > > > > > > > > as in the mapserver 4.4.2 version. > > ######################## > > Any advice? > > Thanks in advance for any assistance > > Michel > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From asimpson at I-55.COM Thu Jun 2 17:51:23 2005 From: asimpson at I-55.COM (Simpson) Date: Thu, 2 Jun 2005 19:51:23 -0500 Subject: perl shapeobj values In-Reply-To: Message-ID: Hello, Could someone please tell me how to use the values attribute of shapeObj in Perl. I saw lots of examples in PHP, but no Perls. Thanks, Drew. From eric at GOMOOS.ORG Thu Jun 2 19:24:32 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 2 Jun 2005 22:24:32 -0400 Subject: perl shapeobj values In-Reply-To: Message-ID: At 07:51 PM 06/02/2005 -0500, Simpson wrote: >Hello, > >Could someone please tell me how to use the values attribute of shapeObj in >Perl. >I saw lots of examples in PHP, but no Perls. > >Thanks, >Drew. Here's some perl code. if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, 0 ) ) { my $rslts = $layerObj->getResults(); if ($rslts) { for (my $i = 0; $i < $rslts->{numresults}; $i++) { my $rslt = $layerObj->getResult($i); my $qid = undef; $qid = $rslt->{shapeindex}; my $tid = $rslt->{tileindex}; $layerObj->open(); my $qshape = $layerObj->getFeature($qid, $tid); if($qshape) { for(my $i = 0; $i < $qshape->{numvalues}; $i++) { my $val = $qshape->getValue($i); my $col = $layerObj->getItem($i); # do something with them. } } $layerObj->close(); }# end for results } } # end if queryByPoint See also: http://zcologia.com/mapserver/querying-howto From rrc124 at GMAIL.COM Thu Jun 2 21:55:25 2005 From: rrc124 at GMAIL.COM (Robert Campbell) Date: Fri, 3 Jun 2005 00:55:25 -0400 Subject: MapServer & PostGIS won't work.. Message-ID: I just installed Postgres 8.0 and PostGIS 1.0.1 Win32 binaries. Both work; I have a nice demo table set up with geometry columns, queries work okay through pgAdmin III, etc. I also installed MapServer for Windows - MS4W Base Install 1.1 which is also working just fine (I'm able to run the tutorial pages and modify the MapFiles, etc). My problem is that when I add a postgis layer to a MapFile, nothing is displayed. I went through the MapServer/PostGIS Wiki on troubleshooting and I passed every test. I have included below my test MapFile (the states layer displays perfectly): MAP IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states DATA states_ugl STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END # States polygon layer ends here LAYER CONNECTIONTYPE postgis NAME test # Connect to a remote spatial database CONNECTION "user=postgres dbname=GISage host=localhost" # Get the lines from the 'geom' column of the 'roads' table DATA "geom from gtest" STATUS ON PROJECTION "init=epsg:4326" END TYPE LINE # Of the lines in the extents, only render the wide highways CLASS # All the rest are darker and only 1 pixel wide COLOR 255 22 22 SIZE 2 END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object While my table looks like: SELECT id, name, AsText(geom) AS geom FROM gtest; Results in: id;name;geom "1";"First Geometry";"LINESTRING(2 3,4 5,6 5,7 8)" "2";"Second Geometry";"LINESTRING(202621 -194488,502621 -94488,801621 294488,1101621 394488)" "3";"Third Geometry";"LINESTRING(45 -100,30 -80,20 -60,-20 50)" Thanks everyone! Oh, and I was able to log in with psql using the two above CONNECTION string details (postgres & localhost). From saengpole at YAHOO.COM Thu Jun 2 22:42:29 2005 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Thu, 2 Jun 2005 22:42:29 -0700 Subject: Simple question about scalebar. In-Reply-To: Message-ID: Thank you, it works now. Dirk-Jan Huisman wrote:Hi, The units of the projection is m. The Extent of your mapfile are m? If it is, the units of the mapfile should be m. best regards -----Oorspronkelijk bericht----- Van: Krung Saengpole [mailto:saengpole at yahoo.com] Verzonden: dinsdag 31 mei 2005 20:12 Aan: Dirk-Jan Huisman; mapserver-users at lists.umn.edu Onderwerp: Re: [UMN_MAPSERVER-USERS] Simple question about scalebar. Hi, Thank you for your response. My map file is simple as below: MAP SHAPEPATH "d:\work\gis\kornburi\data\" FONTSET "./fonts/fonts.list" SYMBOLSET "./symbols/symbol.sym" EXTENT 730000 1550000 935000 1750000 UNITS kilometers SIZE 600 450 IMAGETYPE gif TRANSPARENT on SCALEBAR POSITION ll STATUS off COLOR 255 0 255 IMAGECOLOR 255 255 0 UNITS KILOMETERS INTERVALS 3 STYLE 0 END PROJECTION "proj=utm" "zone=47" "a=6377276.345" "b=6356075.413" "towgs84=209,818,290,0,0,0,0" "units=m" "no_defs" END LAYER ... ... END My problem is that scalebar showed wrong distance. Everything is ok but scalebar. I told you last message that true distance it should be 18.3 km but scalebar showed 18300 km. I thought if this number was correct, then the unit should be meter not kilometer. Dirk-Jan Huisman wrote: Hi, It's not clear what goes wrong. Include some code of your mapfile. What are the map units and the scalebar units? ----Oorspronkelijk bericht----- Van: Krung Saengpole [mailto:saengpole at YAHOO.COM] Verzonden: maandag 30 mei 2005 16:34 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Simple question about scalebar. Dear all, Whether or not I embeded scalebar in map, it showed wrong distance, e.g. it should be 18.3 km but it showed 18300 km. Nontheless I use projection or not. What I have to specially set to get right scalebar? TIA Krung __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ----------------------------------------------------------------------------------- Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ----------------------------------------------------------------------------------- Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ----------------------------------------------------------------------------------- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ----------------------------------------------------------------------------------- --------------------------------- Do You Yahoo!? Yahoo! Small Business - Try our new Resources site! ----------------------------------------------------------------------------------- Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ----------------------------------------------------------------------------------- Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ----------------------------------------------------------------------------------- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ----------------------------------------------------------------------------------- --------------------------------- Discover Yahoo! Get on-the-go sports scores, stock quotes, news & more. Check it out! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at PULA.HR Thu Jun 2 23:59:33 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 3 Jun 2005 08:59:33 +0200 Subject: multiple join - shp to dbf Message-ID: I am using CONNECTIONTYPE OGR and it works fine but this is for one-to-one join. I had some problems with JOIN clause in map file so I used OGR joins. I suppose this won't help you cause it seems only joins using JOIN clause in map file can be used for one-to-many joins. But I am not much experienced so I hope you will get some better answer regards, dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: Thursday, June 02, 2005 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] multiple join - shp to dbf Hi: I want to join a shp file with a dbf file. It's ONE TO MANY join. I have seen that more people have the same problem. Also I want to make a classification based on the attributes from the DBF file. I tried with OGR and JOIN OBJECT from Mapserver, but nothing Does any one have a working example? Thank you in advance William __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From agomez at CCCMM.CESGA.ES Fri Jun 3 00:19:22 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Fri, 3 Jun 2005 09:19:22 +0200 Subject: multiple join - shp to dbf Message-ID: MessageHi Gambin, I'm doing an one-to-one join with ogr conn too, but my problem is that my dbf file is in the server, not in the webserver. It tell me that is "Unable to open secondary datasource `z:/GIS/ESZBAT.DBF' required by JOIN". Is this your case? Thanks in advance. Alberto ----- Original Message ----- From: Gambin Dejan To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, June 03, 2005 8:59 AM Subject: Re: [UMN_MAPSERVER-USERS] multiple join - shp to dbf I am using CONNECTIONTYPE OGR and it works fine but this is for one-to-one join. I had some problems with JOIN clause in map file so I used OGR joins. I suppose this won't help you cause it seems only joins using JOIN clause in map file can be used for one-to-many joins. But I am not much experienced so I hope you will get some better answer regards, dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: Thursday, June 02, 2005 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] multiple join - shp to dbf Hi: I want to join a shp file with a dbf file. It's ONE TO MANY join. I have seen that more people have the same problem. Also I want to make a classification based on the attributes from the DBF file. I tried with OGR and JOIN OBJECT from Mapserver, but nothing Does any one have a working example? Thank you in advance William __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.cave-ayland at WEBBASED.CO.UK Fri Jun 3 01:01:08 2005 From: m.cave-ayland at WEBBASED.CO.UK (Mark Cave-Ayland) Date: Fri, 3 Jun 2005 09:01:08 +0100 Subject: MapServer & PostGIS won't work.. In-Reply-To: A Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Robert Campbell > Sent: 03 June 2005 05:55 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MapServer & PostGIS won't work.. > > > I just installed Postgres 8.0 and PostGIS 1.0.1 Win32 > binaries. Both work; I have a nice demo table set up with > geometry columns, queries work okay through pgAdmin III, etc. (cut) > Thanks everyone! Oh, and I was able to log in with psql using > the two above CONNECTION string details (postgres & localhost). Hi Robert, Try setting STATUS to DEFAULT for the PostGIS layer (DEFAULT and ON have different meanings than you may expect...) Kind regards, Mark. ------------------------ WebBased Ltd South West Technology Centre Tamar Science Park Plymouth PL6 8BT T: +44 (0)1752 797131 F: +44 (0)1752 791023 W: http://www.webbased.co.uk From agomez at CCCMM.CESGA.ES Fri Jun 3 01:31:43 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Fri, 3 Jun 2005 10:31:43 +0200 Subject: multiple join - shp to dbf Message-ID: Messageok, i've got my mapserver and the shapefiles in the web server. I want to join a shapefile with a dbf file what is located in another server, so i have to get it trough '\\server\GIS\table.dbf'. That's my problem, with mapserver running in localhost it works great or when the dbf file is located in my HD, but when i try access from internet i get this error: (Z: disk is a mapping to a machine called 'server') msOGRFileOpen(): OGR error. ExecuteSQL(SELECT fshape.*,fdbf.* FROM POLIGONOS fshape LEFT JOIN 'z:/GIS/ESZBAT.DBF'.ESZBAT fdbf ON fshape.POLIGONO = fdbf.POLIGONO) failed. Unable to open secondary datasource `z:/GIS/ESZBAT.DBF' required by JOIN. I have tried with "\\server\gis..." but it no works. It seems to be a privileges problem as Emil advised to me and I've tried to change in IIS the IUSR_SERVER to access anonymously by a user who belongs to my domain, even with admin privileges, but with any result. What about folder permissions? Any ideas? ----- Original Message ----- From: Gambin Dejan To: Alberto Gomez Sent: Friday, June 03, 2005 9:16 AM Subject: RE: [UMN_MAPSERVER-USERS] multiple join - shp to dbf I must admit I don't understand it quite well. dbf file is on the server but not web server? Your mapserver is on the web server and must have access to this dbf file? I really don't remember what my problem was but I wouldn't say it was "unable to open secondary datasource" if I can help you just say dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Alberto Gomez Sent: Friday, June 03, 2005 9:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] multiple join - shp to dbf Hi Gambin, I'm doing an one-to-one join with ogr conn too, but my problem is that my dbf file is in the server, not in the webserver. It tell me that is "Unable to open secondary datasource `z:/GIS/ESZBAT.DBF' required by JOIN". Is this your case? Thanks in advance. Alberto ----- Original Message ----- From: Gambin Dejan To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, June 03, 2005 8:59 AM Subject: Re: [UMN_MAPSERVER-USERS] multiple join - shp to dbf I am using CONNECTIONTYPE OGR and it works fine but this is for one-to-one join. I had some problems with JOIN clause in map file so I used OGR joins. I suppose this won't help you cause it seems only joins using JOIN clause in map file can be used for one-to-many joins. But I am not much experienced so I hope you will get some better answer regards, dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: Thursday, June 02, 2005 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] multiple join - shp to dbf Hi: I want to join a shp file with a dbf file. It's ONE TO MANY join. I have seen that more people have the same problem. Also I want to make a classification based on the attributes from the DBF file. I tried with OGR and JOIN OBJECT from Mapserver, but nothing Does any one have a working example? Thank you in advance William __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at PULA.HR Fri Jun 3 01:33:02 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 3 Jun 2005 10:33:02 +0200 Subject: Shortest route solution Message-ID: Hi, Did anybody implement the shortest route algorithm to mapserver and what are the experiences/suggestions? I would like to be able to find a shortest route between two points on my MapServer map and highlight it somehow. I found a conference document about grass server that should be able to do so using php extension on client side (the client can be mapserver). Does it exist or is just in future plan? I would appreciate any suggestions on this field thanks dejan From asimpson at I-55.COM Fri Jun 3 02:11:08 2005 From: asimpson at I-55.COM (Simpson) Date: Fri, 3 Jun 2005 04:11:08 -0500 Subject: perl shapeobj values In-Reply-To: <4.3.2.7.2.20050602220606.00b26d50@mail.gomoos.org> Message-ID: Thanks, this very nice example will get the job done. Out of curiosity, how would one use the 'values' attribute of shapeObj. I saw lots of PHP examples like $shape->values["Population"]. Dumper($shape->{values}) was giving me something cryptic like "\bless( do {...},'_p2p_..')". The server for this project has Mapserver 4.01 and the layers are from SDE. Thanks again, Drew. -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, June 02, 2005 9:25 PM To: Simpson; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values At 07:51 PM 06/02/2005 -0500, Simpson wrote: >Hello, > >Could someone please tell me how to use the values attribute of shapeObj in >Perl. >I saw lots of examples in PHP, but no Perls. > >Thanks, >Drew. Here's some perl code. if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, 0 ) ) { my $rslts = $layerObj->getResults(); if ($rslts) { for (my $i = 0; $i < $rslts->{numresults}; $i++) { my $rslt = $layerObj->getResult($i); my $qid = undef; $qid = $rslt->{shapeindex}; my $tid = $rslt->{tileindex}; $layerObj->open(); my $qshape = $layerObj->getFeature($qid, $tid); if($qshape) { for(my $i = 0; $i < $qshape->{numvalues}; $i++) { my $val = $qshape->getValue($i); my $col = $layerObj->getItem($i); # do something with them. } } $layerObj->close(); }# end for results } } # end if queryByPoint See also: http://zcologia.com/mapserver/querying-howto From car271 at TISCALI.IT Fri Jun 3 02:20:34 2005 From: car271 at TISCALI.IT (car271@tiscali.it) Date: Fri, 3 Jun 2005 11:20:34 +0200 Subject: Line legend style Message-ID: Hi all, I would like to draw line legend in other way (not zig-zag), seems a straight line. Is it possible? And, is it possible to choose a particular image and force it to be a legend element for a line object? If yes, how? Thanks. Regards. From eric at GOMOOS.ORG Fri Jun 3 04:10:14 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 3 Jun 2005 07:10:14 -0400 Subject: perl shapeobj values In-Reply-To: Message-ID: No ''values' attribute of a shapeObj is exposed in the SWIG Mapscript API. Just numvalues and the getValue method. See: http://zcologia.com/mapserver/mapscript#shapeobj At 04:11 AM 06/03/2005 -0500, Simpson wrote: >Thanks, this very nice example will get the job done. > >Out of curiosity, how would one use the 'values' attribute of shapeObj. >I saw lots of PHP examples like $shape->values["Population"]. >Dumper($shape->{values}) was giving me something cryptic like "\bless( do >{...},'_p2p_..')". >The server for this project has Mapserver 4.01 and the layers are from SDE. > >Thanks again, >Drew. > >-----Original Message----- >From: Eric Bridger [mailto:eric at gomoos.org] >Sent: Thursday, June 02, 2005 9:25 PM >To: Simpson; MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > >At 07:51 PM 06/02/2005 -0500, Simpson wrote: >>Hello, >> >>Could someone please tell me how to use the values attribute of shapeObj in >>Perl. >>I saw lots of examples in PHP, but no Perls. >> >>Thanks, >>Drew. > >Here's some perl code. > >if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, 0 ) ) >{ > my $rslts = $layerObj->getResults(); > if ($rslts) > { > for (my $i = 0; $i < $rslts->{numresults}; $i++) > { > my $rslt = $layerObj->getResult($i); > my $qid = undef; > $qid = $rslt->{shapeindex}; > my $tid = $rslt->{tileindex}; > $layerObj->open(); > my $qshape = $layerObj->getFeature($qid, $tid); > if($qshape) > { > for(my $i = 0; $i < $qshape->{numvalues}; $i++) > { > my $val = $qshape->getValue($i); > my $col = $layerObj->getItem($i); > # do something with them. > } > > } > $layerObj->close(); > }# end for results > } > } # end if queryByPoint > > >See also: http://zcologia.com/mapserver/querying-howto From richard.greenwood at GMAIL.COM Fri Jun 3 05:48:47 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 3 Jun 2005 06:48:47 -0600 Subject: Fwd: [UMN_MAPSERVER-USERS] multiple join - shp to dbf In-Reply-To: Message-ID: Alberto Gomez CCCMM.CESGA.ES> writes: > > > ok, i've got my mapserver and the shapefiles in the > web server. I want to join a shapefile with a dbf file what is located in > another server, so i have to get it trough '\\server\GIS\table.dbf'. That's my > problem, with mapserver running in localhost it works great or when the dbf file > is located in my HD, but when i try access from internet i get this error: (Z: > disk is a mapping to a machine called 'server') > > > msOGRFileOpen(): OGR error. ExecuteSQL(SELECT > fshape.*,fdbf.* FROM POLIGONOS fshape LEFT JOIN 'z:/GIS/ESZBAT.DBF'.ESZBAT fdbf > ON fshape.POLIGONO = fdbf.POLIGONO) failed. Unable to open secondary > datasource`z:/GIS/ESZBAT.DBF' required by JOIN. I > have tried with "\\server\gis..." but it no works. It seems to be a privileges > problem as Emil advised to me and I've tried to change in IIS the IUSR_SERVER to > access anonymously by a user who belongs to my domain, even with admin > privileges, but with any result. What about folder > permissions? Any ideas? You would have to give the IIS_USER_webServer user permissions on the "server". The IIS _USER_machineName is not permitted access to any network resources by default. So if you are running mapserver on "webServer" and the data file is on "server", go to "server" and create a user "IIS_USER_webServer" with permissions on the "GIS" directory. A better solution would probably be to write a script to copy the DBF from server to wedServer on a regularly scheduled basis. Regards, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mcgrawj at AGR.GC.CA Fri Jun 3 05:51:25 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Fri, 3 Jun 2005 08:51:25 -0400 Subject: "includes" in mapfiles? Message-ID: Is there any syntax for including the contents of another file in a mapfile? I have about 60+ layers that need to go online and most of them fall into fairly clear groups of five layers each. Based on their selection in a drop-down list, users will indicate the group of maps they are interested in looking at and the application will load that map file. There are, however, about 10 ancillary layers of data that should be available no matter what map is loaded (roads, hydro, cities, etc.). Rather than repetitively defining this information in every map file, is there any way I can define the ancillary layers in one file, and then simply load that file's contents from within the other map files? I'm not sure what to call these except "includes." I haven't had any luck in the archive with that expression, but I cannot believe no one has wanted to do this before. Cheers, jtm Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 759-6103 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3190 bytes Desc: image001.jpg URL: From cpurvis at ASG.SC.EDU Fri Jun 3 06:22:26 2005 From: cpurvis at ASG.SC.EDU (Charlton Purvis) Date: Fri, 3 Jun 2005 08:22:26 -0500 Subject: perl wrapper redirs work great for WMS, bomb for WFS via .map Message-ID: Hi, folks: I think I mailed the list w/ this problem earlier, but I may have punted trying to really buckle down and figure out what the issue was. Well, it's back rearing its ugly face, and I have upgraded MS, GDAL, you name it to make sure it wasn't a version issue. I serve up in-situ weather data via WMS and WFS. So I wanted to make sure that a client .map could get to my data via WFS to display it however they wanted. Makes sense. Well, both the WMS and WFS services are perl wrappers that do some magic and then redirect the request to a new URL. WMS works splendidly, but WFS bombs by not following the new URL. Why is there this difference? Here is an example of a LAYER that should work and pull back air temperatures as a bunch of ugly numbers on a map. LAYER NAME air_temperature TYPE POINT STATUS DEFAULT CONNECTIONTYPE WFS CONNECTION "http://nautilus.baruch.sc.edu/wfs/seacoos_in_situ?" METADATA "wfs_service" "WFS" "wfs_typename" "air_temperature_obs_hourly" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" END PROJECTION "init=epsg:4269" END LABELITEM "temperature_celcius" CLASS LABEL TYPE BITMAP SIZE SMALL FORCE TRUE COLOR 0 0 0 END STYLE END END END Running this through shp2img w/ the latest and greatest MS gives me: msDrawMap(): Image handling error. Failed to draw layer named 'air_temperature'. msWFSLayerWhichShapes(): WFS connection error. Got HTTP status 302 downloading WFS layer air_temperature msHTTPExecuteRequests(): HTTP request error. HTTP GET request failed with status 302 () for http://nautilus.baruch.sc.edu/wfs/seacoos_in_situ? &REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=air_temperature_obs_ hourly&BBOX=-89,23.797368421052628,-79.849999999999994,31.502631578947373 But if you plug that URL into anything other than IE (IE for some reason doesn't like it), you *do* get back valid GML because it does get rerouted to a different URL. Now if you're trying to ping my WFS services via anything other than a .map, it works just find. GDAL => psql works great. Any ideas? Thanks mucho. Charlton From woodbri at SWOODBRIDGE.COM Fri Jun 3 06:29:01 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Jun 2005 09:29:01 -0400 Subject: Shortest route solution In-Reply-To: Message-ID: This has been discussed in the archives search for "router" In general, this should not be a mapserver function because, the data (or organization of the data) required is not what mapserver needs or vica versa. The best (better?) way to do this is to create a separate application the computes the route and returns an xml document or a couple of files with a unique name. Then use mapscript to integrate the results with a map. I have done this and have a demo at http://imaptools.com/demos1/?tab=2 The router is C code and creates a filename.shp and filename.txt as results. the PHP code then takes the shapefile and adds it to a layer already in the mapfile and the driving directions go into the filename.txt and they are read and displayed under the make. The biggest issue is that you need data that is good for routing and in most cases that means commercial data which is very expensive. This worked for me, hope it helps you get started. -Steve W. Gambin Dejan wrote: > Hi, > > Did anybody implement the shortest route algorithm to mapserver and what > are the experiences/suggestions? I would like to be able to find a > shortest route between two points on my MapServer map and highlight it > somehow. I found a conference document about grass server that should be > able to do so using php extension on client side (the client can be > mapserver). Does it exist or is just in future plan? > > I would appreciate any suggestions on this field > > thanks > > dejan > From stephane.morel at VANOISE.COM Fri Jun 3 06:32:55 2005 From: stephane.morel at VANOISE.COM (=?ISO-8859-1?Q?St=E9phane_MOREL?=) Date: Fri, 3 Jun 2005 15:32:55 +0200 Subject: Error compiling gdal with ecw support Message-ID: Hi, I try to compile gdal-cvs-2005.06.01 with ecw support(ecwsdk-3.1.25jan05-linux). Configure works fine (./configure --with-ecw=/opt/ecwsdk-3.1.25jan05-linux) Make give the following error : make[1]: Entering directory `/opt/gdal-cvs-2005.06.01' GNUmakefile:43: warning: overriding commands for target `libgdal.la' GNUmakefile:39: warning: ignoring old commands for target `libgdal.la' /bin/sh ./libtool --mode=link g++ -ljasper -lm -ldl -o libgdal.la ./frmts/o/*.lo ./gcore/*.lo ./port/*.lo ./alg/*.lo ./ogr/ogrsf_frmts/o/*.lo ./ogr/ogrgeometryfactory.lo ./ogr/ogrpoint.lo ./ogr/ogrcurve.lo ./ogr/ogrlinestring.lo ./ogr/ogrlinearring.lo ./ogr/ogrpolygon.lo ./ogr/ogrutils.lo ./ogr/ogrgeometry.lo ./ogr/ogrgeometrycollection.lo ./ogr/ogrmultipolygon.lo ./ogr/ogrsurface.lo ./ogr/ogrmultipoint.lo ./ogr/ogrmultilinestring.lo ./ogr/ogr_api.lo ./ogr/ogrfeature.lo ./ogr/ogrfeaturedefn.lo ./ogr/ogrfeaturequery.lo ./ogr/ogrfeaturestyle.lo ./ogr/ogrfielddefn.lo ./ogr/ogrspatialreference.lo ./ogr/ogr_srsnode.lo ./ogr/ogr_srs_proj4.lo ./ogr/ogr_fromepsg.lo ./ogr/ogrct.lo ./ogr/ogr_opt.lo ./ogr/ogr_srs_esri.lo ./ogr/ogr_srs_pci.lo ./ogr/ogr_srs_usgs.lo ./ogr/ogr_srs_dict.lo ./ogr/swq.lo ./ogr/ogr_srs_validate.lo ./ogr/ogr_srs_xml.lo ./ogr/ograssemblepolygon.lo ./ogr/ogr2gmlgeometry.lo ./ogr/gml2ogrgeometry.lo \ -rpath /usr/local/lib \ -no-undefined \ -version-info 8:0:7 grep: /usr/lib/libjpeg.la: No such file or directory /usr/bin/sed: can't read /usr/lib/libjpeg.la: No such file or directory libtool: link: `/usr/lib/libjpeg.la' is not a valid libtool archive make[1]: *** [libgdal.la] Error 1 make[1]: Leaving directory `/opt/gdal-cvs-2005.06.01' make: *** [check-lib] Error 2 I also try to disable libtool but without success my linux box : Suse 9.2 gcc 3.3.4 Thanks for any help. St?phane -------------- next part -------------- A non-text attachment was scrubbed... Name: stephane.morel.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From bfraser at GEOANALYTIC.COM Fri Jun 3 07:02:23 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 3 Jun 2005 08:02:23 -0600 Subject: How to Use MR.SID raster files in mapserver 4.4.2 ? Message-ID: How to Use MR.SID raster files in mapserver 4.4.2 ?Robert, Good point. Hmm, the error is "Failed to load image", not that it couldn't find the file, but that it couldn't read the data in it properly. Could this be caused by a permissions problem or some file system issue? You may want to try Mapserver's shp2img to see if you can get more information on the problem. For example: shp2img -all_debug 1 -m mapfile -o image.jpg Or perhaps there is something wrong with the MrSID file. I've found some MrSID files that look ok until you try to zoom into a specific location (then the viewing applicaiton will crash). You could try to convert one to jpg with gdal_translate to check. Brent ----- Original Message ----- From: Robert oude Lohuis To: 'Brent Fraser' Sent: Friday, June 03, 2005 1:08 AM Subject: RE: [UMN_MAPSERVER-USERS] How to Use MR.SID raster files in mapserver 4.4.2 ? tnx for the information about the coordinate system. The initial extent overlaps the Mr.SID and we do use the correct zoomfactor, otherwise we could not generate the error ;-( When using a mapfile which has a layer pointing to the MrSID file, the error in my original email occurred. It refers to a file which cannot be found. I saw that for every .sid file there are two other files (a .aux and a .??? file). For a mapfile which has a wrong data entry (the filename definititely does not exists for example) no error is given For a mapfile which has a correct entry pointing to a .sid file an error is given about a file that cannot be found. this is a bit strange. I can only explain this in the context of the two other files ? Or am I wrong here ? ------------------------------------------------------------------------------ From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Thursday, June 02, 2005 5:45 PM To: Robert oude Lohuis Subject: Re: [UMN_MAPSERVER-USERS] How to Use MR.SID raster files in mapserver 4.4.2 ? It looks like there is no coordinate system defined in your MrSID file. It's not strictly necessary for Mapserver if you plan to use the same coordinate system for display as your source data (and all your source data has the same coordinate system). There IS registration coordinate information (IMAGE__XY_ORIGIN=109999.500000,425000.500000, IMAGE__X_RESOLUTION=1.000000, IMAGE__Y_RESOLUTION=1.000000) which is required by MapServer, so that's good. What is the intial EXTENT in your map file? You need to make sure your EXTENT overlaps your image extent if you want to see any of the data. Also, set STATUS DEFAULT for the layer to make sure Mapserver uses it. And you may want to comment out the MINSCALE and MAXSCALE settings until you get things working. Brent ----- Original Message ----- From: Robert oude Lohuis To: 'Brent Fraser' Sent: Thursday, June 02, 2005 9:10 AM Subject: RE: [UMN_MAPSERVER-USERS] How to Use MR.SID raster files in mapserver 4.4.2 ? Thanks for the reply, In answer to your question, an example of the output gdalinfo for one of the mrSID files: Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is 20002, 20002 Coordinate System is `' Origin = (109999.000000,425001.000000) Pixel Size = (1.00000000,-1.00000000) Metadata: IMAGE__INPUT_NAME=E:\Lufo2000\1x1m\Tiff\423112_1.tif, E:\Lufo2000\1x1m\Tiff\423116_1.tif, E:\Lufo2000\1x1m\Tiff\423120_1.tif, E:\Lufo2000\1x1m\Tiff\423124_1.tif, E:\Lufo2000\1x1m\Tiff\423128_1.tif, E:\Lufo2000\1x1m\Tiff\419112_1.tif, E:\Lufo2000\1x1m\Tiff\419116_1.tif, E:\Lufo2000\1x1m\Tiff\419120_1.tif, E:\Lufo2000\1x1m\Tiff\419124_1.tif, E:\Lufo2000\1x1m\Tiff\419128_1.tif, E:\Lufo2000\1x1m\Tiff\415112_1.tif, E:\Lufo2000\1x1m\Tiff\415116_1.tif, E:\Lufo2000\1x1m\Tiff\415120_1.tif, E:\Lufo2000\1x1m\Tiff\415124_1.tif, E:\Lufo2000\1x1m\Tiff\415128_1.tif, E:\Lufo2000\1x1m\Tiff\411112_1.tif, E:\Lufo2000\1x1m\Tiff\411116_1.tif, E:\Lufo2000\1x1m\Tiff\411120_1.tif, E:\Lufo2000\1x1m\Tiff\411124_1.tif, E:\Lufo2000\1x1m\Tiff\411128_1.tif, E:\Lufo2000\1x1m\Tiff\407112_1.tif, E:\Lufo2000\1x1m\Tiff\407116_1.tif, E:\Lufo2000\1x1m\Tiff\407120_1.tif, E:\Lufo2000\1x1m\Tiff\407124_1.tif, E:\Lufo2000\1x1m\Tiff\407128_1.tif IMAGE__INPUT_FILE_SIZE=1202009775.000000 IMAGE__BITS_PER_SAMPLE=8 IMAGE__COMPRESSION_VERSION=1,6,1 IMAGE__TARGET_COMPRESSION_RATIO=10.000000 IMAGE__COMPRESSION_NLEV=6 IMAGE__COMPRESSION_WEIGHT=4.000000 IMAGE__COMPRESSION_GAMMA=2.000000 IMAGE__COMPRESSION_BLOCK_SIZE=2048 IMAGE__CREATION_DATE=Mon Nov 12 16:47:36 2001 IMAGE__WIDTH=20002 IMAGE__HEIGHT=20002 IMAGE__NO_DATA_VALUE=255,255,255 IMAGE__COLOR_SCHEME=0 IMAGE__DATA_TYPE=0 IMAGE__XY_ORIGIN=109999.500000,425000.500000 IMAGE__X_RESOLUTION=1.000000 IMAGE__Y_RESOLUTION=1.000000 Corner Coordinates: Upper Left ( 109999.000, 425001.000) Lower Left ( 109999.000, 404999.000) Upper Right ( 130001.000, 425001.000) Lower Right ( 130001.000, 404999.000) Center ( 120000.000, 415000.000) Band 1 Block=1024x128 Type=Byte, ColorInterp=Red Overviews: 10001x10001, 5001x5001, 2501x2501, 1251x1251, 626x626 Band 2 Block=1024x128 Type=Byte, ColorInterp=Green Overviews: 10001x10001, 5001x5001, 2501x2501, 1251x1251, 626x626 Band 3 Block=1024x128 Type=Byte, ColorInterp=Blue Overviews: 10001x10001, 5001x5001, 2501x2501, 1251x1251, 626x626 Could you give an example what the mapfile should look like, to create al layer for a MrSID file ? in our mapfile the following section was made: LAYER NAME <...> METADATA "DESCRIPTION" "<...>" END TYPE RASTER # PROCESSING "BANDS=1,2,3" STATUS OFF CLASS NAME luchtfoto END DATA "/data1/dvd/dvd1/mosaic/x020y375_1m_mos.sid" # TILEINDEX "/data1/dvd/luchtfoto.shp" # TILEITEM "location" MINSCALE 10001 MAXSCALE 5000000 END ---------------------------------------------------------------------------- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Thursday, June 02, 2005 4:52 PM To: Robert oude Lohuis; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] How to Use MR.SID raster files in mapserver 4.4.2 ? Robert, It is possible to use MrSID files as a data source for MapServer. Personally, I don't recommend it due to the poor decompression performance of MrSID. If you have the disk space convert the MrSID files to uncompressed TIF instead (you can use GDAL's gdal_translate utility). If disk space is not available use ECW (although I'm not sure of the compilation status on unix). What do you get when you run GDAL's gdalinfo utility on the MrSID file? Brent Fraser ----- Original Message ----- From: Robert oude Lohuis To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, June 02, 2005 6:32 AM Subject: [UMN_MAPSERVER-USERS] How to Use MR.SID raster files in mapserver 4.4.2 ? Hello, We have compiled version 4.4.2 of mapserver (and the necessary libraries) from the sources on a unix box. It is now configured and working. There is however one problem. We have a couple of Mr. SID files and want to use these as a layer. We downloaded the libraries from lizardtech and recompiled GDAL with support for Mr.SID We did tiled the Mr. SID files and configured a layer. There are no error messages, but I see no data in the map. We tried to look at an individual Mr. SID file, but then we got the following error : MrSIDRasterBand::IRasterIO(): Failed to load image. scene magnifGDALRasterIO() failed: drawGDAL(): Unable to access file. GDALRasterIO() failed: drawGDAL() A recompile of mapserver had no effect. The first question is: Is it possible to look at Mr.SID rasters through mapserver ? And the second question is, if so, what's the trick ? Does anyone have knowledge on this subject and willing to share his/her information ? Thanks in advance, Robert oude Lohuis -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Jun 3 07:11:08 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Jun 2005 10:11:08 -0400 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem In-Reply-To: <20050603135915.755BE1A6BC4@mail.medinaco.org> Message-ID: Lowell, Thank you for the off-list post, it reminded me that I needed to post an update. I took Sean's advice to narrow down the problem by removing stuff from the mapfile. End result was the we quickly determined that the user did not have all the symbols installed on his system. This was a remote debugging using chat and email which as you can imagine is a little tedious. So we got is working and things are good. Thank you all for your help and suggestions they are greatly appreciated. Now back to your regular programming :) -Steve W From sgillies at FRII.COM Fri Jun 3 07:21:14 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 3 Jun 2005 08:21:14 -0600 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem In-Reply-To: Message-ID: On Jun 3, 2005, at 8:11 AM, Stephen Woodbridge wrote: > Lowell, > > Thank you for the off-list post, it reminded me that I needed to post > an > update. > > I took Sean's advice to narrow down the problem by removing stuff from > the mapfile. End result was the we quickly determined that the user did > not have all the symbols installed on his system. This was a remote > debugging using chat and email which as you can imagine is a little > tedious. So we got is working and things are good. Thank you all for > your help and suggestions they are greatly appreciated. > > Now back to your regular programming :) > -Steve W Steve, want to enter a bug in the tracker regarding the consequences of referring to an undefined symbol? MapServer should really raise an exception in this case instead of crashing. Sean From lfilak at MEDINACO.ORG Fri Jun 3 07:25:40 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 3 Jun 2005 10:25:40 -0400 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem Message-ID: The following message was sent by Stephen Woodbridge on Fri, 3 Jun 2005 10:11:08 -0400. > Lowell, > > Thank you for the off-list post, it reminded me that I needed to post an > update. > > I took Sean's advice to narrow down the problem by removing stuff from > the mapfile. End result was the we quickly determined that the user did > not have all the symbols installed on his system. This was a remote > debugging using chat and email which as you can imagine is a little > tedious. So we got is working and things are good. Thank you all for > your help and suggestions they are greatly appreciated. > > Now back to your regular programming :) Steve, What symbol did it end up being? I'm wondering if my indirectly related problems on EM64T could benefit from your experience. Maybe SUSE has patched something that RH hasn't. Thanks. Lowell From asimpson at I-55.COM Fri Jun 3 07:36:22 2005 From: asimpson at I-55.COM (Simpson) Date: Fri, 3 Jun 2005 09:36:22 -0500 Subject: perl shapeobj values In-Reply-To: <4.3.2.7.2.20050603070801.00b2cbc0@mail.gomoos.org> Message-ID: There is a shapeObj 'values' attribute in documentation at http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html#ShapeObj Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Eric Bridger Sent: Friday, June 03, 2005 6:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values No ''values' attribute of a shapeObj is exposed in the SWIG Mapscript API. Just numvalues and the getValue method. See: http://zcologia.com/mapserver/mapscript#shapeobj At 04:11 AM 06/03/2005 -0500, Simpson wrote: >Thanks, this very nice example will get the job done. > >Out of curiosity, how would one use the 'values' attribute of shapeObj. >I saw lots of PHP examples like $shape->values["Population"]. >Dumper($shape->{values}) was giving me something cryptic like "\bless( do >{...},'_p2p_..')". >The server for this project has Mapserver 4.01 and the layers are from SDE. > >Thanks again, >Drew. > >-----Original Message----- >From: Eric Bridger [mailto:eric at gomoos.org] >Sent: Thursday, June 02, 2005 9:25 PM >To: Simpson; MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > >At 07:51 PM 06/02/2005 -0500, Simpson wrote: >>Hello, >> >>Could someone please tell me how to use the values attribute of shapeObj in >>Perl. >>I saw lots of examples in PHP, but no Perls. >> >>Thanks, >>Drew. > >Here's some perl code. > >if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, 0 ) ) >{ > my $rslts = $layerObj->getResults(); > if ($rslts) > { > for (my $i = 0; $i < $rslts->{numresults}; $i++) > { > my $rslt = $layerObj->getResult($i); > my $qid = undef; > $qid = $rslt->{shapeindex}; > my $tid = $rslt->{tileindex}; > $layerObj->open(); > my $qshape = $layerObj->getFeature($qid, $tid); > if($qshape) > { > for(my $i = 0; $i < $qshape->{numvalues}; $i++) > { > my $val = $qshape->getValue($i); > my $col = $layerObj->getItem($i); > # do something with them. > } > > } > $layerObj->close(); > }# end for results > } > } # end if queryByPoint > > >See also: http://zcologia.com/mapserver/querying-howto From sgillies at FRII.COM Fri Jun 3 07:37:10 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 3 Jun 2005 08:37:10 -0600 Subject: perl shapeobj values In-Reply-To: Message-ID: Drew, The phpmapscript class guide doesn't apply to the Perl mapscript. Use the Perl/Python/Java reference. Sean On Jun 3, 2005, at 8:36 AM, Simpson wrote: > There is a shapeObj 'values' attribute in documentation at > http://mapserver.gis.umn.edu/doc44/phpmapscript-class- > guide.html#ShapeObj > > Drew. > From woodbri at SWOODBRIDGE.COM Fri Jun 3 07:40:41 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Jun 2005 10:40:41 -0400 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem In-Reply-To: <56c375b5d3c69a42e2d15a3ae6100e56@frii.com> Message-ID: Sean Gillies wrote: > On Jun 3, 2005, at 8:11 AM, Stephen Woodbridge wrote: > >> Lowell, >> >> Thank you for the off-list post, it reminded me that I needed to post an >> update. >> >> I took Sean's advice to narrow down the problem by removing stuff from >> the mapfile. End result was the we quickly determined that the user did >> not have all the symbols installed on his system. This was a remote >> debugging using chat and email which as you can imagine is a little >> tedious. So we got is working and things are good. Thank you all for >> your help and suggestions they are greatly appreciated. >> >> Now back to your regular programming :) >> -Steve W > > > Steve, want to enter a bug in the tracker regarding the consequences of > referring to an undefined symbol? MapServer should really raise an > exception in this case instead of crashing. Yes, I will open a bug for this. For the archives, The original error message from Perl Mapscript was: *** glibc detected *** double free or corruption: 0x00000000012817c0 *** mapscript::mapObj::new(/usr/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/mapscript.pm:1408): and the problem ended up being that the symbol directory was missing and it was having heartburn trying to access png symbol We diagnosed the problem by moving to shp2img which reported: loadSymbol(): Unable to access file. Parsing error near (../markers/sm_square.png):(line 73)
which lead me to check if the markers directory was loaded. It wasn't and loading that directory solved the problem. -Steve W. From woodbri at SWOODBRIDGE.COM Fri Jun 3 07:50:00 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Jun 2005 10:50:00 -0400 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem In-Reply-To: <42A06BE9.5050207@swoodbridge.com> Message-ID: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1374 Stephen Woodbridge wrote: > Sean Gillies wrote: > >> On Jun 3, 2005, at 8:11 AM, Stephen Woodbridge wrote: >> >>> Lowell, >>> >>> Thank you for the off-list post, it reminded me that I needed to post an >>> update. >>> >>> I took Sean's advice to narrow down the problem by removing stuff from >>> the mapfile. End result was the we quickly determined that the user did >>> not have all the symbols installed on his system. This was a remote >>> debugging using chat and email which as you can imagine is a little >>> tedious. So we got is working and things are good. Thank you all for >>> your help and suggestions they are greatly appreciated. >>> >>> Now back to your regular programming :) >>> -Steve W >> >> >> >> Steve, want to enter a bug in the tracker regarding the consequences >> of referring to an undefined symbol? MapServer should really raise an >> exception in this case instead of crashing. > > > Yes, I will open a bug for this. > > For the archives, The original error message from Perl Mapscript was: > > *** glibc detected *** double free or corruption: 0x00000000012817c0 *** > > mapscript::mapObj::new(/usr/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/mapscript.pm:1408): > > > and the problem ended up being that the symbol directory was missing and > it was having heartburn trying to access png symbol > > We diagnosed the problem by moving to shp2img which reported: > > loadSymbol(): Unable to access file. Parsing error near > (../markers/sm_square.png):(line 73)
> > which lead me to check if the markers directory was loaded. It wasn't > and loading that directory solved the problem. > > -Steve W. > From cdaily at GMAIL.COM Fri Jun 3 07:53:20 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 3 Jun 2005 09:53:20 -0500 Subject: moving an existing point In-Reply-To: Message-ID: I'm not sure why the changes aren't 'sticking', but as a solution you could just generate your logo layer entirely in mapscript, without having to have anything in the map file. Here's the function I use to do that for our maps, and I'm sure you could adjust it to suit your needs: /////////////////////////////////////////////////////////////// // function imprint() // // places a watermark in the lower left hand corner of the map /////////////////////////////////////////////////////////////// function imprint($string) { global $map; $layer = ms_newLayerObj($map); $layer->set("name", "imprint"); $layer->set("type", MS_LAYER_ANNOTATION); $layer->set("status", MS_ON); $layer->set("transform", MS_FALSE); $class = ms_newClassObj($layer); $point = ms_newPointObj(); $point->setXY(5, $map->height - 3); $line = ms_newLineObj(); $line->add($point); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); $shape->set("text", $string); $layer->addFeature($shape); $label = $class->label; $label->set("font", "arial-bold"); $label->set("type", MS_TRUETYPE); $label->set("size", 10); $label->set("position", MS_UR); $label->set("force", MS_TRUE); $label->set("buffer", 5); $label->color->setRGB(230, 230, 250); $label->outlinecolor->setRGB(0, 0, 0); } Camden Daily Prudential Preferred Properties http://www.prupref.com From lfilak at MEDINACO.ORG Fri Jun 3 08:00:44 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 3 Jun 2005 11:00:44 -0400 Subject: MapServer 4.6.0-beta2 64bit Perl/Mapscipt Problem Message-ID: The following message was sent by Stephen Woodbridge on Fri, 3 Jun 2005 10:40:41 -0400. > Sean Gillies wrote: > > On Jun 3, 2005, at 8:11 AM, Stephen Woodbridge wrote: > > > >> Lowell, > >> > >> Thank you for the off-list post, it reminded me that I needed to post an > >> update. > >> > >> I took Sean's advice to narrow down the problem by removing stuff from > >> the mapfile. End result was the we quickly determined that the user did > >> not have all the symbols installed on his system. This was a remote > >> debugging using chat and email which as you can imagine is a little > >> tedious. So we got is working and things are good. Thank you all for > >> your help and suggestions they are greatly appreciated. > >> > >> Now back to your regular programming :) > >> -Steve W > > > > > > Steve, want to enter a bug in the tracker regarding the consequences of > > referring to an undefined symbol? MapServer should really raise an > > exception in this case instead of crashing. > > Yes, I will open a bug for this. > > For the archives, The original error message from Perl Mapscript was: > > *** glibc detected *** double free or corruption: 0x00000000012817c0 *** > > mapscript::mapObj::new(/usr/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/mapscript.pm:1408): > > and the problem ended up being that the symbol directory was missing and > it was having heartburn trying to access png symbol > > We diagnosed the problem by moving to shp2img which reported: > > loadSymbol(): Unable to access file. Parsing error near > (../markers/sm_square.png):(line 73)
> > which lead me to check if the markers directory was loaded. It wasn't > and loading that directory solved the problem. Steve, My bad, I see what you mean now, a missing 'symbol'. Lowell From christhorne at SYMPATICO.CA Fri Jun 3 08:34:19 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Fri, 3 Jun 2005 11:34:19 -0400 Subject: Regular expression in Mapfile Message-ID: Hello, I am working on classifying land us polygon layers and I wish to us regular expressions. I have searched the archive and it came up short for what I am looking for. The mapfile reference also was a little skimpy. ;) I would like to define an expression the finds values (4100, 4200, 4300 4400 4500) and place these features in a single class. What would be the best (least expensive) expression? For example, CLASS EXPRESSION /[4000-4501]/ END (I am not even sure if I have defined this correctly.) Also, does anyone have a good reference to regex? Chris -- Christopher R. Thorne, GIS Specialist -- christhorne at sympatico.ca Tel:(613)523-6593 From woodbri at SWOODBRIDGE.COM Fri Jun 3 09:00:45 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Jun 2005 12:00:45 -0400 Subject: Regular expression in Mapfile In-Reply-To: <42A0787B.90009@sympatico.ca> Message-ID: EXPRESSION /^4[12345]00$/ is probably what you want. Christopher R. Thorne wrote: > Hello, > I am working on classifying land us polygon layers and I wish to us > regular expressions. I have searched the archive and it came up short > for what I am looking for. The mapfile reference also was a little > skimpy. ;) > > I would like to define an expression the finds values (4100, 4200, 4300 > 4400 4500) and place these features in a single class. What would be the > best (least expensive) expression? > > For example, > > CLASS > EXPRESSION /[4000-4501]/ > END > > (I am not even sure if I have defined this correctly.) > > Also, does anyone have a good reference to regex? > > Chris > > From bill at BINKO.NET Fri Jun 3 09:03:21 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri, 3 Jun 2005 12:03:21 -0400 Subject: Regular expression in Mapfile In-Reply-To: <42A0787B.90009@sympatico.ca> Message-ID: On Fri, 3 Jun 2005, Christopher R. Thorne wrote: > Hello, > I am working on classifying land us polygon layers and I wish to us > regular expressions. I have searched the archive and it came up short > for what I am looking for. The mapfile reference also was a little > skimpy. ;) > > I would like to define an expression the finds values (4100, 4200, 4300 > 4400 4500) and place these features in a single class. What would be the > best (least expensive) expression? CLASS EXPRESSION /4[1-5]00/ END > > For example, > > CLASS > EXPRESSION /[4000-4501]/ > END > > (I am not even sure if I have defined this correctly.) > > Also, does anyone have a good reference to regex? > > Chris > > > From christhorne at SYMPATICO.CA Fri Jun 3 09:25:07 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Fri, 3 Jun 2005 12:25:07 -0400 Subject: Regular expression in Mapfile In-Reply-To: Message-ID: And the winner is... Thanks for the responses, you can pick up your prize at any beer store. ;) Chris Bill Binko wrote: > On Fri, 3 Jun 2005, Christopher R. Thorne wrote: > > >>Hello, >>I am working on classifying land us polygon layers and I wish to us >>regular expressions. I have searched the archive and it came up short >>for what I am looking for. The mapfile reference also was a little >>skimpy. ;) >> >>I would like to define an expression the finds values (4100, 4200, 4300 >>4400 4500) and place these features in a single class. What would be the >>best (least expensive) expression? > > > CLASS > EXPRESSION /4[1-5]00/ > END > > >>For example, >> >>CLASS >> EXPRESSION /[4000-4501]/ >>END >> >>(I am not even sure if I have defined this correctly.) >> >>Also, does anyone have a good reference to regex? >> >>Chris >> >> >> > > -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From lfilak at MEDINACO.ORG Fri Jun 3 09:48:26 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 3 Jun 2005 12:48:26 -0400 Subject: PerlMapScript & Perl versions Message-ID: Hello all, Could everyone interested please reply back to me and let me know if you have any plans to setup a mapserver/mapscript 4.4.2, 4.6+ install on a system that contains/will-contain a Perl version prior to 5.8. The current map->write method will not work prior to 5.8 and now would be the time to speak-up. Thank you. Lowell From asimpson at I-55.COM Fri Jun 3 10:42:48 2005 From: asimpson at I-55.COM (Simpson) Date: Fri, 3 Jun 2005 12:42:48 -0500 Subject: perl shapeobj values In-Reply-To: Message-ID: It looks like its of data type 'character' in the documentation at http://mapserver.gis.umn.edu/doc40/perlmapscript-reference.html and at http://mapserver.gis.umn.edu/doc44/swigmapscript-reference.html Is the shapeObj->{values} in Perl not the same as the one in PHP? Thanks, Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Simpson Sent: Friday, June 03, 2005 9:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values There is a shapeObj 'values' attribute in documentation at http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html#ShapeObj Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Eric Bridger Sent: Friday, June 03, 2005 6:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values No ''values' attribute of a shapeObj is exposed in the SWIG Mapscript API. Just numvalues and the getValue method. See: http://zcologia.com/mapserver/mapscript#shapeobj At 04:11 AM 06/03/2005 -0500, Simpson wrote: >Thanks, this very nice example will get the job done. > >Out of curiosity, how would one use the 'values' attribute of shapeObj. >I saw lots of PHP examples like $shape->values["Population"]. >Dumper($shape->{values}) was giving me something cryptic like "\bless( do >{...},'_p2p_..')". >The server for this project has Mapserver 4.01 and the layers are from SDE. > >Thanks again, >Drew. > >-----Original Message----- >From: Eric Bridger [mailto:eric at gomoos.org] >Sent: Thursday, June 02, 2005 9:25 PM >To: Simpson; MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > >At 07:51 PM 06/02/2005 -0500, Simpson wrote: >>Hello, >> >>Could someone please tell me how to use the values attribute of shapeObj in >>Perl. >>I saw lots of examples in PHP, but no Perls. >> >>Thanks, >>Drew. > >Here's some perl code. > >if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, 0 ) ) >{ > my $rslts = $layerObj->getResults(); > if ($rslts) > { > for (my $i = 0; $i < $rslts->{numresults}; $i++) > { > my $rslt = $layerObj->getResult($i); > my $qid = undef; > $qid = $rslt->{shapeindex}; > my $tid = $rslt->{tileindex}; > $layerObj->open(); > my $qshape = $layerObj->getFeature($qid, $tid); > if($qshape) > { > for(my $i = 0; $i < $qshape->{numvalues}; $i++) > { > my $val = $qshape->getValue($i); > my $col = $layerObj->getItem($i); > # do something with them. > } > > } > $layerObj->close(); > }# end for results > } > } # end if queryByPoint > > >See also: http://zcologia.com/mapserver/querying-howto From sgillies at FRII.COM Fri Jun 3 10:48:36 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 3 Jun 2005 11:48:36 -0600 Subject: perl shapeobj values In-Reply-To: Message-ID: Drew, The authoritative Java/Perl/Python mapscript reference is found through the "MapScript Reference" link on the MapServer site. This links to http://zcologia.com/mapserver/ This is the online version of the docs that are distributed with MapServer under mapscript/docs. The same docs should also found on the new beta site, but seems to be borked right now. Sean On Jun 3, 2005, at 11:42 AM, Simpson wrote: > It looks like its of data type 'character' in the documentation at > http://mapserver.gis.umn.edu/doc40/perlmapscript-reference.html and at > http://mapserver.gis.umn.edu/doc44/swigmapscript-reference.html > > Is the shapeObj->{values} in Perl not the same as the one in PHP? > > Thanks, > Drew. > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Simpson > Sent: Friday, June 03, 2005 9:36 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > There is a shapeObj 'values' attribute in documentation at > http://mapserver.gis.umn.edu/doc44/phpmapscript-class- > guide.html#ShapeObj > > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Eric Bridger > Sent: Friday, June 03, 2005 6:10 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > No ''values' attribute of a shapeObj is exposed in the SWIG Mapscript > API. > Just numvalues and the getValue method. > > See: http://zcologia.com/mapserver/mapscript#shapeobj > > At 04:11 AM 06/03/2005 -0500, Simpson wrote: >> Thanks, this very nice example will get the job done. >> >> Out of curiosity, how would one use the 'values' attribute of >> shapeObj. >> I saw lots of PHP examples like $shape->values["Population"]. >> Dumper($shape->{values}) was giving me something cryptic like >> "\bless( do >> {...},'_p2p_..')". >> The server for this project has Mapserver 4.01 and the layers are >> from SDE. >> >> Thanks again, >> Drew. >> >> -----Original Message----- >> From: Eric Bridger [mailto:eric at gomoos.org] >> Sent: Thursday, June 02, 2005 9:25 PM >> To: Simpson; MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values >> >> >> >> At 07:51 PM 06/02/2005 -0500, Simpson wrote: >>> Hello, >>> >>> Could someone please tell me how to use the values attribute of >>> shapeObj > in >>> Perl. >>> I saw lots of examples in PHP, but no Perls. >>> >>> Thanks, >>> Drew. >> >> Here's some perl code. >> >> if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, >> 0 ) ) >> { >> my $rslts = $layerObj->getResults(); >> if ($rslts) >> { >> for (my $i = 0; $i < $rslts->{numresults}; $i++) >> { >> my $rslt = $layerObj->getResult($i); >> my $qid = undef; >> $qid = $rslt->{shapeindex}; >> my $tid = $rslt->{tileindex}; >> $layerObj->open(); >> my $qshape = $layerObj->getFeature($qid, $tid); >> if($qshape) >> { >> for(my $i = 0; $i < $qshape->{numvalues}; $i++) >> { >> my $val = $qshape->getValue($i); >> my $col = $layerObj->getItem($i); >> # do something with them. >> } >> >> } >> $layerObj->close(); >> }# end for results >> } >> } # end if queryByPoint >> >> >> See also: http://zcologia.com/mapserver/querying-howto > From lfilak at MEDINACO.ORG Fri Jun 3 11:02:01 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 3 Jun 2005 14:02:01 -0400 Subject: perl shapeobj values Message-ID: The following message was sent by Simpson on Fri, 3 Jun 2005 12:42:48 -0500. > It looks like its of data type 'character' in the documentation at > http://mapserver.gis.umn.edu/doc40/perlmapscript-reference.html and at > http://mapserver.gis.umn.edu/doc44/swigmapscript-reference.html > > Is the shapeObj->{values} in Perl not the same as the one in PHP? > > Thanks, > Drew. > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Simpson > Sent: Friday, June 03, 2005 9:36 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > There is a shapeObj 'values' attribute in documentation at > http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html#ShapeObj > > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Eric Bridger > Sent: Friday, June 03, 2005 6:10 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > No ''values' attribute of a shapeObj is exposed in the SWIG Mapscript API. > Just numvalues and the getValue method. > > See: http://zcologia.com/mapserver/mapscript#shapeobj > > At 04:11 AM 06/03/2005 -0500, Simpson wrote: > >Thanks, this very nice example will get the job done. > > > >Out of curiosity, how would one use the 'values' attribute of shapeObj. > >I saw lots of PHP examples like $shape->values["Population"]. > >Dumper($shape->{values}) was giving me something cryptic like "\bless( do > >{...},'_p2p_..')". > >The server for this project has Mapserver 4.01 and the layers are from SDE. > > > >Thanks again, > >Drew. > > > >-----Original Message----- > >From: Eric Bridger [mailto:eric at gomoos.org] > >Sent: Thursday, June 02, 2005 9:25 PM > >To: Simpson; MAPSERVER-USERS at lists.umn.edu > >Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > > > > > >At 07:51 PM 06/02/2005 -0500, Simpson wrote: > >>Hello, > >> > >>Could someone please tell me how to use the values attribute of shapeObj > in > >>Perl. > >>I saw lots of examples in PHP, but no Perls. > >> > >>Thanks, > >>Drew. > > > >Here's some perl code. > > > >if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, 0 ) ) > >{ > > my $rslts = $layerObj->getResults(); > > if ($rslts) > > { > > for (my $i = 0; $i < $rslts->{numresults}; $i++) > > { > > my $rslt = $layerObj->getResult($i); > > my $qid = undef; > > $qid = $rslt->{shapeindex}; > > my $tid = $rslt->{tileindex}; > > $layerObj->open(); > > my $qshape = $layerObj->getFeature($qid, $tid); > > if($qshape) > > { > > for(my $i = 0; $i < $qshape->{numvalues}; $i++) > > { > > my $val = $qshape->getValue($i); > > my $col = $layerObj->getItem($i); > > # do something with them. > > } > > > > } > > $layerObj->close(); > > }# end for results > > } > > } # end if queryByPoint > > > > > >See also: http://zcologia.com/mapserver/querying-howto Drew, That may be my bad. Because there are much better ways to retrieve the field names and values from the shape I probably should not have even mentioned the 'values' member in the documentation. For me 'values' comes back blank and could mean it requires a swig typemap just to work correctly. Lowell From lfilak at MEDINACO.ORG Fri Jun 3 11:04:33 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 3 Jun 2005 14:04:33 -0400 Subject: PerlMapScript & Perl versions Message-ID: Change that to imageObj->write. Thanks for the heads-up Steve. Lowell The following message was sent by Lowell Filak on Fri, 3 Jun 2005 12:48:26 -0400. > Hello all, > > Could everyone interested please reply back to me and let me know if you > have any plans to setup a mapserver/mapscript 4.4.2, 4.6+ install on a > system that contains/will-contain a Perl version prior to 5.8. > The current map->write method will not work prior to 5.8 and now would > be the time to speak-up. > > Thank you. > > Lowell From gerry.creager at TAMU.EDU Fri Jun 3 11:12:06 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Fri, 3 Jun 2005 13:12:06 -0500 Subject: time series representations in Mapserver Message-ID: We're looking at several applications where we need some time-selection capabilities. Has anyone done this successfully with Mapserver, and if so, might you share some tips? TIA,gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From moran at PLACE-BASE.COM Fri Jun 3 11:24:59 2005 From: moran at PLACE-BASE.COM (Moran Ben-David) Date: Fri, 3 Jun 2005 14:24:59 -0400 Subject: time series representations in Mapserver In-Reply-To: <42A09D76.40708@tamu.edu> Message-ID: Are you looking for advice on designing the User Interface for selecting datasets? Or are you looking for a way to implement the backend (e.g. database) time sensitive datasets and thematic shadings on maps? Or are you looking to create maps that exhibit change across time? i.e. my question is.. is your problem a user interface design, programming or cartography one? Moran Ben-David www.place-base.com > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Gerry Creager N5JXS > Sent: Friday, June 03, 2005 2:12 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] time series representations in Mapserver > > We're looking at several applications where we need some time-selection > capabilities. Has anyone done this successfully with Mapserver, and if > so, might you share some tips? > > TIA,gerry > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From asimpson at I-55.COM Fri Jun 3 11:38:16 2005 From: asimpson at I-55.COM (Simpson) Date: Fri, 3 Jun 2005 13:38:16 -0500 Subject: perl shapeobj values In-Reply-To: <20050603180137.22FEF1A6BE7@mail.medinaco.org> Message-ID: OK, I'll use the method Eric so kindly posted. It would be nice to get at the column names from the shapeObj and be able to getValue() by index or by column name. Thanks for the info, Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Lowell Filak Sent: Friday, June 03, 2005 1:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values The following message was sent by Simpson on Fri, 3 Jun 2005 12:42:48 -0500. > It looks like its of data type 'character' in the documentation at > http://mapserver.gis.umn.edu/doc40/perlmapscript-reference.html and at > http://mapserver.gis.umn.edu/doc44/swigmapscript-reference.html > > Is the shapeObj->{values} in Perl not the same as the one in PHP? > > Thanks, > Drew. > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Simpson > Sent: Friday, June 03, 2005 9:36 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > There is a shapeObj 'values' attribute in documentation at > http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html#ShapeObj > > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Eric Bridger > Sent: Friday, June 03, 2005 6:10 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > No ''values' attribute of a shapeObj is exposed in the SWIG Mapscript API. > Just numvalues and the getValue method. > > See: http://zcologia.com/mapserver/mapscript#shapeobj > > At 04:11 AM 06/03/2005 -0500, Simpson wrote: > >Thanks, this very nice example will get the job done. > > > >Out of curiosity, how would one use the 'values' attribute of shapeObj. > >I saw lots of PHP examples like $shape->values["Population"]. > >Dumper($shape->{values}) was giving me something cryptic like "\bless( do > >{...},'_p2p_..')". > >The server for this project has Mapserver 4.01 and the layers are from SDE. > > > >Thanks again, > >Drew. > > > >-----Original Message----- > >From: Eric Bridger [mailto:eric at gomoos.org] > >Sent: Thursday, June 02, 2005 9:25 PM > >To: Simpson; MAPSERVER-USERS at lists.umn.edu > >Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > > > > > >At 07:51 PM 06/02/2005 -0500, Simpson wrote: > >>Hello, > >> > >>Could someone please tell me how to use the values attribute of shapeObj > in > >>Perl. > >>I saw lots of examples in PHP, but no Perls. > >> > >>Thanks, > >>Drew. > > > >Here's some perl code. > > > >if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, 0 ) ) > >{ > > my $rslts = $layerObj->getResults(); > > if ($rslts) > > { > > for (my $i = 0; $i < $rslts->{numresults}; $i++) > > { > > my $rslt = $layerObj->getResult($i); > > my $qid = undef; > > $qid = $rslt->{shapeindex}; > > my $tid = $rslt->{tileindex}; > > $layerObj->open(); > > my $qshape = $layerObj->getFeature($qid, $tid); > > if($qshape) > > { > > for(my $i = 0; $i < $qshape->{numvalues}; $i++) > > { > > my $val = $qshape->getValue($i); > > my $col = $layerObj->getItem($i); > > # do something with them. > > } > > > > } > > $layerObj->close(); > > }# end for results > > } > > } # end if queryByPoint > > > > > >See also: http://zcologia.com/mapserver/querying-howto Drew, That may be my bad. Because there are much better ways to retrieve the field names and values from the shape I probably should not have even mentioned the 'values' member in the documentation. For me 'values' comes back blank and could mean it requires a swig typemap just to work correctly. Lowell From osgis.lists at GMAIL.COM Fri Jun 3 11:39:09 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 3 Jun 2005 13:39:09 -0500 Subject: time series representations in Mapserver In-Reply-To: <42A09D76.40708@tamu.edu> Message-ID: If all you need is to show all of something that fit within a window of time on a single image (ie not an animation) you can either use sql statements with GDAL (I've not done this myself) or if you have your data in PostGIS all you need to do is add substitution variables into your SQL statement. For example, I display flight tracks at an airport using mapserver and I include a startdate and enddate as cgi variables sent to mapserver then in my mapfile use percent notation in my mapfile: DATA "targets from (select * from flighttrack where stime <= '%eDate%' and etime >='%sDate%')as tracks USING UNIQUE opnum USING SRID=-1" On 6/3/05, Gerry Creager N5JXS wrote: > We're looking at several applications where we need some time-selection > capabilities. Has anyone done this successfully with Mapserver, and if > so, might you share some tips? > > TIA,gerry > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > From lfilak at MEDINACO.ORG Fri Jun 3 11:42:38 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 3 Jun 2005 14:42:38 -0400 Subject: perl shapeobj values Message-ID: The following message was sent by Simpson on Fri, 3 Jun 2005 13:38:16 -0500. > OK, I'll use the method Eric so kindly posted. > > It would be nice to get at the column names from the shapeObj and be able to > getValue() by index or by column name. > > Thanks for the info, > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Lowell Filak > Sent: Friday, June 03, 2005 1:02 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > The following message was sent by Simpson on Fri, 3 > Jun 2005 12:42:48 -0500. > > > It looks like its of data type 'character' in the documentation at > > http://mapserver.gis.umn.edu/doc40/perlmapscript-reference.html and at > > http://mapserver.gis.umn.edu/doc44/swigmapscript-reference.html > > > > Is the shapeObj->{values} in Perl not the same as the one in PHP? > > > > Thanks, > > Drew. > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > > Behalf Of Simpson > > Sent: Friday, June 03, 2005 9:36 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > > > > There is a shapeObj 'values' attribute in documentation at > > http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html#ShapeObj > > > > Drew. > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > > Behalf Of Eric Bridger > > Sent: Friday, June 03, 2005 6:10 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > > > > No ''values' attribute of a shapeObj is exposed in the SWIG Mapscript API. > > Just numvalues and the getValue method. > > > > See: http://zcologia.com/mapserver/mapscript#shapeobj > > > > At 04:11 AM 06/03/2005 -0500, Simpson wrote: > > >Thanks, this very nice example will get the job done. > > > > > >Out of curiosity, how would one use the 'values' attribute of shapeObj. > > >I saw lots of PHP examples like $shape->values["Population"]. > > >Dumper($shape->{values}) was giving me something cryptic like "\bless( do > > >{...},'_p2p_..')". > > >The server for this project has Mapserver 4.01 and the layers are > from SDE. > > > > > >Thanks again, > > >Drew. > > > > > >-----Original Message----- > > >From: Eric Bridger [mailto:eric at gomoos.org] > > >Sent: Thursday, June 02, 2005 9:25 PM > > >To: Simpson; MAPSERVER-USERS at lists.umn.edu > > >Subject: Re: [UMN_MAPSERVER-USERS] perl shapeobj values > > > > > > > > > > > >At 07:51 PM 06/02/2005 -0500, Simpson wrote: > > >>Hello, > > >> > > >>Could someone please tell me how to use the values attribute of shapeObj > > in > > >>Perl. > > >>I saw lots of examples in PHP, but no Perls. > > >> > > >>Thanks, > > >>Drew. > > > > > >Here's some perl code. > > > > > >if ( !$layerObj->queryByPoint( $map, $click, $mapscript::MS_MULTIPLE, > 0 ) ) > > >{ > > > my $rslts = $layerObj->getResults(); > > > if ($rslts) > > > { > > > for (my $i = 0; $i < $rslts->{numresults}; $i++) > > > { > > > my $rslt = $layerObj->getResult($i); > > > my $qid = undef; > > > $qid = $rslt->{shapeindex}; > > > my $tid = $rslt->{tileindex}; > > > $layerObj->open(); > > > my $qshape = $layerObj->getFeature($qid, $tid); > > > if($qshape) > > > { > > > for(my $i = 0; $i < $qshape->{numvalues}; $i++) > > > { > > > my $val = $qshape->getValue($i); > > > my $col = $layerObj->getItem($i); > > > # do something with them. > > > } > > > > > > } > > > $layerObj->close(); > > > }# end for results > > > } > > > } # end if queryByPoint > > > > > > > > >See also: http://zcologia.com/mapserver/querying-howto Drew, You can still do that by including the XBase module. HTH Lowell From Debbie.Pagurek at EC.GC.CA Fri Jun 3 12:01:01 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Fri, 3 Jun 2005 15:01:01 -0400 Subject: "includes" in mapfiles? Message-ID: As far as I know, I don't think there is a way to "include" a mapfile in another as you have suggested. However, there are possibilities. First - do you have to have 12 or so different mapfiles? Can't you put them all into one file and use the GROUP feature to group 5 or so layers together? Second - if you DO want to have separate mapfiles, perhaps you could "serve" your ancillary data layers as WMS, and then in each of the other mapfiles, you could just act as a WMS client to that wms. So you'd only be putting one layer into each of the mapfiles, instead of a number of ancillary data layers. Just my thoughts for a Friday afternoon. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of McGraw, Joanne Sent: Friday, June 03, 2005 8:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] "includes" in mapfiles? Is there any syntax for including the contents of another file in a mapfile? I have about 60+ layers that need to go online and most of them fall into fairly clear groups of five layers each. Based on their selection in a drop-down list, users will indicate the group of maps they are interested in looking at and the application will load that map file. There are, however, about 10 ancillary layers of data that should be available no matter what map is loaded (roads, hydro, cities, etc.). Rather than repetitively defining this information in every map file, is there any way I can define the ancillary layers in one file, and then simply load that file's contents from within the other map files? I'm not sure what to call these except "includes." I haven't had any luck in the archive with that expression, but I cannot believe no one has wanted to do this before. Cheers, jtm Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 759-6103 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3190 bytes Desc: image001.jpg URL: From uli.mueller at GMX.CH Fri Jun 3 12:07:20 2005 From: uli.mueller at GMX.CH (uli mueller [geOps]) Date: Fri, 3 Jun 2005 21:07:20 +0200 Subject: time series representations in Mapserver In-Reply-To: <42A09D76.40708@tamu.edu> Message-ID: Gerry In combination with PostGIS you get nice possibilities. I never liked date handling in Shape/dBase-Files, although it is possible too. However with a real db (MySQL might do it also) you get all functionality you'll ever need for dates. For the MapServer side I used two approaches: 1) set a filter on a layer. Manipulate it with JS or use the variable substitution through MapServer's CGI. The filter may look something like: FILTER "((datefield >=(('%startdate%')::date)) AND (datefield <(('%enddate% ')::date)))" See an (best viewed with IE:-( example at http://geops.info/korams/mapserver.php (map with yearly kills of domestic animals by lynx) 2) setup your MapServer app as a WMS. Then you may use WMS time support (http://mapserver.gis.umn.edu/doc44/wms-time-support-howto.html). The second solution seems more transparent to me, but was available only since MS4.4. With WMS times it becomes really easy to set any time / time period you like. If you use chameleon as a client you may even use their TimeFilter widget to specify time according to OGC. Only problem was that anything in your layer's FILTER parameter will be overridden by the WMS time (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1261). Before MS4.4 more solutions were proposed on the list, e.g. http://lists.gis.umn.edu/pipermail/mapserver-users/2003-December/008977.html Gerry Creager N5JXS wrote: > We're looking at several applications where we need some time-selection > capabilities. Has anyone done this successfully with Mapserver, and if > so, might you share some tips? > > TIA,gerry -- geOps GeoInformatics D-79100 Freiburg From m5 at RENEFOURNIER.COM Fri Jun 3 12:02:44 2005 From: m5 at RENEFOURNIER.COM (=?ISO-8859-1?Q?Ren=E9_Fournier?=) Date: Fri, 3 Jun 2005 13:02:44 -0600 Subject: Reverse Geocoding Message-ID: Hi, I'm looking for a simple Reverse Geocoder app/code/source that I can query via PHP. Any suggestions? ...R F From uli.mueller at GMX.CH Fri Jun 3 12:27:57 2005 From: uli.mueller at GMX.CH (uli mueller [geOps]) Date: Fri, 3 Jun 2005 21:27:57 +0200 Subject: "includes" in mapfiles? In-Reply-To: <3F34A5A15450C74C813BA20E31DBB4519586B9@ncrx3.ncr.int.ec.gc.ca> Message-ID: I also wished to have something like an #include in mapfiles. Usually you have one or only few more optimal ways to represent a set of geodata in MapServer. I would like to be able to keep these representations (the MapServer layer object) separate from the mapfiles, possibly in the same location as the geodata itself. This would ease the creation of mapfiles. Updates of a layer definition could be done in one place instead of in all mapfiles that use the data. WMS as an alternative is fine, but I don't need it if I only combine layers from a single server. And I am not sure, if WMS layers aren't slower than directly accessing my data (Can anyone comment on this?). Could this go into bugzilla as an enhancement bug? Or does MapLab already provide a similar feature (never tested)? So far my thoughts for a Friday night (it's Europe here) Uli Pagurek,Debbie [NCR] wrote: > As far as I know, I don't think there is a way to "include" a mapfile in > another as you have suggested. > > However, there are possibilities. > First - do you have to have 12 or so different mapfiles? Can't you put > them all into one file and use the GROUP feature to group 5 or so layers > together? > > Second - if you DO want to have separate mapfiles, perhaps you > could "serve" your ancillary data layers as WMS, and then in each of the > other mapfiles, you could just act as a WMS client to that wms. So you'd > only be putting one layer into each of the mapfiles, instead of a number > of ancillary data layers. > > Just my thoughts for a Friday afternoon. > > D. Pagurek > > -----Original Message----- > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > *On Behalf Of *McGraw, Joanne > *Sent:* Friday, June 03, 2005 8:51 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] "includes" in mapfiles? > > Is there any syntax for including the contents of another file in a > mapfile? > > > > I have about 60+ layers that need to go online and most of them fall > into fairly clear groups of five layers each. Based on their > selection in a drop-down list, users will indicate the group of maps > they are interested in looking at and the application will load that > map file. There are, however, about 10 ancillary layers of data that > should be available no matter what map is loaded (roads, hydro, > cities, etc.). Rather than repetitively defining this information in > every map file, is there any way I can define the ancillary layers > in one file, and then simply load that file?s contents from within > the other map files? > > > > I?m not sure what to call these except ?includes.? I haven?t had any > luck in the archive with that expression, but I cannot believe no > one has wanted to do this before. > > > > Cheers, > > jtm > > Joanne T. McGraw > Spatial Data Visualization Specialist / Sp?cialiste en visualisation > des donn?es spatiales > Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada > Telephone/T?l?phone: (613) 759-6103 > Facsimile/T?l?copieur: (613) 759-1937 > 960 Carling Ave, #1136 > Ottawa, Ontario > K1A 0C6 > > mcgrawj at agr.gc.ca > > > > Agriculture and Agri-Food Canada - Agriculture et Agroalimentaire Canada > > > -- geOps GeoInformatics D-79100 Freiburg From cdaily at GMAIL.COM Fri Jun 3 12:29:34 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 3 Jun 2005 14:29:34 -0500 Subject: Reverse Geocoding In-Reply-To: Message-ID: I'm certain there was something on the listserve about this a few months ago. You might want to search the archives. -Camden Daily From bill at BINKO.NET Fri Jun 3 12:36:57 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri, 3 Jun 2005 15:36:57 -0400 Subject: "includes" in mapfiles? In-Reply-To: <42A0AF3D.8050409@gmx.ch> Message-ID: On Fri, 3 Jun 2005, uli mueller [geOps] wrote: > I also wished to have something like an #include in mapfiles. Usually > you have one or only few more optimal ways to represent a set of geodata > in MapServer. I would like to be able to keep these representations (the > MapServer layer object) separate from the mapfiles, possibly in the same > location as the geodata itself. > This would ease the creation of mapfiles. Updates of a layer definition > could be done in one place instead of in all mapfiles that use the data. > > WMS as an alternative is fine, but I don't need it if I only combine > layers from a single server. And I am not sure, if WMS layers aren't > slower than directly accessing my data (Can anyone comment on this?). > > Could this go into bugzilla as an enhancement bug? Or does MapLab > already provide a similar feature (never tested)? There is an existing bug (279) for this. It looks a bit dead. I could be convinced to work on this after the 4.6 drop. > > So far my thoughts for a Friday night (it's Europe here) It was Europe here last week: God, I'm glad that's over! Bill From kenlord at GMAIL.COM Fri Jun 3 12:38:41 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 3 Jun 2005 12:38:41 -0700 Subject: "includes" in mapfiles? In-Reply-To: <42A0AF3D.8050409@gmx.ch> Message-ID: WMS through your local intranet is very fast, and its a way to scale up your mapping application horizontally, splitting the load between servers if the layers are processing intensive to draw. I've never tried WMS to localhost before, but assuming you can do that it should be even a little faster. Perhaps not as fast as just having the layers within the mapfile in the usual manner, but much faster than WMS accessing a remote server on the internet. I'd lean to this idea for your situation. Another way which would likely be overkill for your needs would be to create a system like what the guys at NRCan have done, creating a database application that creates the mapfile on the fly. I heard that for them it has eliminated the need to update thousands of map files when switching to new versions with syntax changes etc, or for making small symbolization changes that effect many map files. I do like the 'includes' idea. It would be great for those of us in between the extremes. Cheers, Ken Lord Vancouver BC On 6/3/05, uli mueller [geOps] wrote: > > I also wished to have something like an #include in mapfiles. Usually > you have one or only few more optimal ways to represent a set of geodata > in MapServer. I would like to be able to keep these representations (the > MapServer layer object) separate from the mapfiles, possibly in the same > location as the geodata itself. > This would ease the creation of mapfiles. Updates of a layer definition > could be done in one place instead of in all mapfiles that use the data. > > WMS as an alternative is fine, but I don't need it if I only combine > layers from a single server. And I am not sure, if WMS layers aren't > slower than directly accessing my data (Can anyone comment on this?). > > Could this go into bugzilla as an enhancement bug? Or does MapLab > already provide a similar feature (never tested)? > > So far my thoughts for a Friday night (it's Europe here) > > Uli > > > > Pagurek,Debbie [NCR] wrote: > > As far as I know, I don't think there is a way to "include" a mapfile in > > another as you have suggested. > > > > However, there are possibilities. > > First - do you have to have 12 or so different mapfiles? Can't you put > > them all into one file and use the GROUP feature to group 5 or so layers > > together? > > > > Second - if you DO want to have separate mapfiles, perhaps you > > could "serve" your ancillary data layers as WMS, and then in each of the > > other mapfiles, you could just act as a WMS client to that wms. So you'd > > only be putting one layer into each of the mapfiles, instead of a number > > of ancillary data layers. > > > > Just my thoughts for a Friday afternoon. > > > > D. Pagurek > > > > -----Original Message----- > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > *On Behalf Of *McGraw, Joanne > > *Sent:* Friday, June 03, 2005 8:51 AM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* [UMN_MAPSERVER-USERS] "includes" in mapfiles? > > > > Is there any syntax for including the contents of another file in a > > mapfile? > > > > > > > > I have about 60+ layers that need to go online and most of them fall > > into fairly clear groups of five layers each. Based on their > > selection in a drop-down list, users will indicate the group of maps > > they are interested in looking at and the application will load that > > map file. There are, however, about 10 ancillary layers of data that > > should be available no matter what map is loaded (roads, hydro, > > cities, etc.). Rather than repetitively defining this information in > > every map file, is there any way I can define the ancillary layers > > in one file, and then simply load that file's contents from within > > the other map files? > > > > > > > > I'm not sure what to call these except "includes." I haven't had any > > luck in the archive with that expression, but I cannot believe no > > one has wanted to do this before. > > > > > > > > Cheers, > > > > jtm > > > > Joanne T. McGraw > > Spatial Data Visualization Specialist / Sp?cialiste en visualisation > > des donn?es spatiales > > Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada > > Telephone/T?l?phone: (613) 759-6103 > > Facsimile/T?l?copieur: (613) 759-1937 > > 960 Carling Ave, #1136 > > Ottawa, Ontario > > K1A 0C6 > > > > mcgrawj at agr.gc.ca > > > > > > > > Agriculture and Agri-Food Canada - Agriculture et Agroalimentaire Canada > > > > > > > > > -- > geOps GeoInformatics > D-79100 Freiburg > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rrc124 at GMAIL.COM Fri Jun 3 12:39:14 2005 From: rrc124 at GMAIL.COM (Robert Campbell) Date: Fri, 3 Jun 2005 15:39:14 -0400 Subject: MapServer & PostGIS won't work.. In-Reply-To: <9EB50F1A91413F4FA63019487FCD251D11338C@WEBBASEDDC.webbasedltd.local> Message-ID: I updated my line record's SRID to a valid one in the spatial_ref_sys table (I set it to 2163) and changed the STATUS to DEFAULT. I still get nothing. Is there anything else I can try? :-/ Thanks everyone.. On 6/3/05, Mark Cave-Ayland wrote: > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Robert Campbell > > Sent: 03 June 2005 05:55 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] MapServer & PostGIS won't work.. > > > > > > I just installed Postgres 8.0 and PostGIS 1.0.1 Win32 > > binaries. Both work; I have a nice demo table set up with > > geometry columns, queries work okay through pgAdmin III, etc. > > (cut) > > > Thanks everyone! Oh, and I was able to log in with psql using > > the two above CONNECTION string details (postgres & localhost). > > > Hi Robert, > > Try setting STATUS to DEFAULT for the PostGIS layer (DEFAULT and ON have > different meanings than you may expect...) > > > Kind regards, > > Mark. > > ------------------------ > WebBased Ltd > South West Technology Centre > Tamar Science Park > Plymouth > PL6 8BT > > T: +44 (0)1752 797131 > F: +44 (0)1752 791023 > W: http://www.webbased.co.uk > > > From kenlord at GMAIL.COM Fri Jun 3 12:46:41 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 3 Jun 2005 12:46:41 -0700 Subject: MapServer & PostGIS won't work.. In-Reply-To: Message-ID: I've never had any luck using the simple PostGIS DATA string: DATA "the_geom from mytable" To make any PostGIS layer work, I've always had to use strings similar to the following: DATA "the_geom from (SELECT * from mytable) as foo using unique gid using SRID=2163" Give that a shot! Cheers, Ken Lord Vancouver BC On 6/3/05, Robert Campbell wrote: > > I updated my line record's SRID to a valid one in the spatial_ref_sys > table (I set it to 2163) and changed the STATUS to DEFAULT. I still > get nothing. Is there anything else I can try? :-/ > > Thanks everyone.. > > > On 6/3/05, Mark Cave-Ayland wrote: > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Robert Campbell > > > Sent: 03 June 2005 05:55 > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] MapServer & PostGIS won't work.. > > > > > > > > > I just installed Postgres 8.0 and PostGIS 1.0.1 Win32 > > > binaries. Both work; I have a nice demo table set up with > > > geometry columns, queries work okay through pgAdmin III, etc. > > > > (cut) > > > > > Thanks everyone! Oh, and I was able to log in with psql using > > > the two above CONNECTION string details (postgres & localhost). > > > > > > Hi Robert, > > > > Try setting STATUS to DEFAULT for the PostGIS layer (DEFAULT and ON have > > different meanings than you may expect...) > > > > > > Kind regards, > > > > Mark. > > > > ------------------------ > > WebBased Ltd > > South West Technology Centre > > Tamar Science Park > > Plymouth > > PL6 8BT > > > > T: +44 (0)1752 797131 > > F: +44 (0)1752 791023 > > W: http://www.webbased.co.uk > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jalfarid at GMAIL.COM Fri Jun 3 13:04:53 2005 From: jalfarid at GMAIL.COM (Farid Vakilzadeh) Date: Fri, 3 Jun 2005 16:04:53 -0400 Subject: How can I get a pixel value from tiff image? Message-ID: Hi All, I have a raster tiff image. After displaying it under Mapserver I want to display each pixel value that I need. Also I don't want to use MapScript language such as PHP. So far I can query something such as map coordinates by using [mapx] and [mapy] in my query template file but I don't know How I can query pixel value. Some body who knows please tell me how? Here is my query template file : Query Results
Bounding box [minx],[miny],[maxx],[maxy]
Image Coordinates [img.x], [img.y]
Map Coordinates [mapx], [mapy]
Number of results [nr]
Scale [scale]
Cellsize [cellsize]

Farid From lfilak at MEDINACO.ORG Fri Jun 3 13:37:03 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 3 Jun 2005 16:37:03 -0400 Subject: PerlMapScript clarification Message-ID: Greetings, After doing a good job of confusing things I think some clarification is due. Here goes... Some time ago an issue arose when using mapscript with mod_perl. Users were not able to reliably send a map image to the client browser via stdout without first saving the image as a file. This lead to some additional discussion about being able to save the image data to a scalar inside of perl. This lead to the creation of the imageObj->write method. However, until now the method was not useable from perlmapscript due to the lack of a swig typemap to handle the operation. There now exist/will-exist a patch and a bug report with the typemap to correct this. The current typemap utilizes PerlIO vs. stdio and PerlIO is only available from perl 5.8+. This means that any users of a perl version prior to 5.8 will still be able to compile mapscript but will not be able to use the imageObj->write method. As far as mod_perl is concerned there may still exist other issues but I'm not certain where those stand - perhaps a meeting at OSGIS-MUM3/EOGEO is in order. Hopefully this presents the 'Previously on ' section and can clear things up. Lowell From jalfarid at GMAIL.COM Fri Jun 3 14:32:16 2005 From: jalfarid at GMAIL.COM (Farid Vakilzadeh) Date: Fri, 3 Jun 2005 17:32:16 -0400 Subject: How can I get a pixel value from tiff image? Message-ID: Hi All, I have a raster tiff image. After displaying it under Mapserver I want to display each pixel value that I need. Also I don't want to use MapScript language such as PHP. So far I can query something such as map coordinates by using [mapx] and [mapy] in my query template file but I don't know How I can query pixel value. Some body who knows please tell me how? Here is my query template file : Query Results
Bounding box [minx],[miny],[maxx],[maxy]
Image Coordinates [img.x], [img.y]
Map Coordinates [mapx], [mapy]
Number of results [nr]
Scale [scale]
Cellsize [cellsize]

Farid From teb at MALLIT.FR.UMN.EDU Fri Jun 3 15:22:12 2005 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Fri, 3 Jun 2005 17:22:12 -0500 Subject: IMPORTANT NOTICE Message-ID: Important notice: As of June 3, 2005 we can no longer accept registrations for the Open Source Geospatial '05 Conference. The response we have received has been overwhelming and we have reached the capacity of our conference venue. We are pleased with the response but know that the closing of registration will leave a number of people disappointed. We apologize for that. If you have questions about this, please e-mail me directly rather than this list. Tom ======================= Dr. Thomas E. Burk University of Minnesota 1530 Cleveland Avenue North St. Paul, MN 55108 612-624-6741 612-625-5212 (FAX) tburk at umn.edu From gerry.creager at TAMU.EDU Fri Jun 3 16:33:56 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Fri, 3 Jun 2005 18:33:56 -0500 Subject: time series representations in Mapserver In-Reply-To: <20050603182454.4314AA3525@gate1.excedent.us> Message-ID: A combination of user interface and cartography. I don't want to reinvent the UI wheel, so to speak. We use a PostGIS database, so timestamps are available already; backend should be OK. Cartographically speaking, do we attempt this with Flash, or is the timeseries WMS stuff ready for prime time? Thanks! gerry Moran Ben-David wrote: > Are you looking for advice on designing the User Interface for selecting > datasets? Or are you looking for a way to implement the backend (e.g. > database) time sensitive datasets and thematic shadings on maps? Or are you > looking to create maps that exhibit change across time? > > i.e. my question is.. is your problem a user interface design, programming > or cartography one? > > Moran Ben-David > www.place-base.com > > > >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>Behalf Of Gerry Creager N5JXS >>Sent: Friday, June 03, 2005 2:12 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] time series representations in Mapserver >> >>We're looking at several applications where we need some time-selection >>capabilities. Has anyone done this successfully with Mapserver, and if >>so, might you share some tips? >> >>TIA,gerry >>-- >>Gerry Creager -- gerry.creager at tamu.edu >>Texas Mesonet -- AATLT, Texas A&M University >>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >>Page: 979.228.0173 >>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From gerry.creager at TAMU.EDU Fri Jun 3 16:40:22 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Fri, 3 Jun 2005 18:40:22 -0500 Subject: time series representations in Mapserver In-Reply-To: <71c3c6c505060311391931e694@mail.gmail.com> Message-ID: OK... that's a start. However, I'm looking at weather observations, usually they're from fixed sites (well, excluding the storm chasers:-). I'm wondering if anything's been done for animation-ish stuff, so I could display the temperature contours, or, for instance, a changing landscape of wind barbs... Thanks, Gerry David Bitner wrote: > If all you need is to show all of something that fit within a window > of time on a single image (ie not an animation) you can either use sql > statements with GDAL (I've not done this myself) or if you have your > data in PostGIS all you need to do is add substitution variables into > your SQL statement. > > For example, I display flight tracks at an airport using mapserver and > I include a startdate and enddate as cgi variables sent to mapserver > then in my mapfile use percent notation in my mapfile: > DATA "targets from (select * from flighttrack where stime <= '%eDate%' > and etime >='%sDate%')as tracks USING UNIQUE opnum USING SRID=-1" > > On 6/3/05, Gerry Creager N5JXS wrote: > >>We're looking at several applications where we need some time-selection >>capabilities. Has anyone done this successfully with Mapserver, and if >>so, might you share some tips? >> >>TIA,gerry >>-- >>Gerry Creager -- gerry.creager at tamu.edu >>Texas Mesonet -- AATLT, Texas A&M University >>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >>Page: 979.228.0173 >>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >> > > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From gerry.creager at TAMU.EDU Fri Jun 3 16:46:41 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Fri, 3 Jun 2005 18:46:41 -0500 Subject: time series representations in Mapserver In-Reply-To: <42A0AA68.1020602@gmx.ch> Message-ID: Uli, Thanks. I rather like the 2nd option but I'll investigate both. Regards, Gerry uli mueller [geOps] wrote: > Gerry > > In combination with PostGIS you get nice possibilities. I never liked > date handling in Shape/dBase-Files, although it is possible too. However > with a real db (MySQL might do it also) you get all functionality you'll > ever need for dates. > > For the MapServer side I used two approaches: > > 1) set a filter on a layer. Manipulate it with JS or use the variable > substitution through MapServer's CGI. > The filter may look something like: > FILTER "((datefield >=(('%startdate%')::date)) AND (datefield > <(('%enddate% ')::date)))" > See an (best viewed with IE:-( example at > http://geops.info/korams/mapserver.php (map with yearly kills of > domestic animals by lynx) > > 2) setup your MapServer app as a WMS. Then you may use WMS time support > (http://mapserver.gis.umn.edu/doc44/wms-time-support-howto.html). > The second solution seems more transparent to me, but was available only > since MS4.4. With WMS times it becomes really easy to set any time / > time period you like. If you use chameleon as a client you may even use > their TimeFilter widget to specify time according to OGC. > Only problem was that anything in your layer's FILTER parameter will be > overridden by the WMS time > (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1261). > > Before MS4.4 more solutions were proposed on the list, e.g. > http://lists.gis.umn.edu/pipermail/mapserver-users/2003-December/008977.html > > > Gerry Creager N5JXS wrote: > >> We're looking at several applications where we need some time-selection >> capabilities. Has anyone done this successfully with Mapserver, and if >> so, might you share some tips? >> >> TIA,gerry > > > > -- > geOps GeoInformatics > D-79100 Freiburg -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From bino at INDOAKSES-ONLINE.COM Fri Jun 3 18:22:02 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Sat, 4 Jun 2005 08:22:02 +0700 Subject: Sorry : Post Test Message-ID: Test -bino- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bino at INDOAKSES-ONLINE.COM Fri Jun 3 20:01:30 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Sat, 4 Jun 2005 10:01:30 +0700 Subject: Question:How-to Use of ESRI Shape Files Message-ID: Dear All ... Kindly please point me the url on how to config MapServer to use ESRI Shape Files as data source. Regards -bino- From w.blanken at GEON.NL Sat Jun 4 02:11:55 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Sat, 4 Jun 2005 11:11:55 +0200 Subject: Question:How-to Use of ESRI Shape Files Message-ID: Hi Bino, There are numerous examples out there of using ESRI Shapefiles with Mapserver. Have you tried for example the tutorial that uses shapefiles? http://terrasip.gis.umn.edu/projects/tutorial/section1.html Regards, Wim Blanken ----- Original Message ----- From: "bino_oetomo" To: Sent: Saturday, June 04, 2005 5:01 AM Subject: [UMN_MAPSERVER-USERS] Question:How-to Use of ESRI Shape Files > Dear All ... > > Kindly please point me the url on how to config MapServer to use ESRI > Shape > Files as data source. > > Regards > > -bino- > > From bartvde at XS4ALL.NL Sat Jun 4 02:16:14 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 4 Jun 2005 11:16:14 +0200 Subject: Question:How-to Use of ESRI Shape Files In-Reply-To: <00e201c568b1$b4dd0190$0300a8c0@indoaksesbno> Message-ID: Hi, see: http://dl.maptools.org/dl/docs/mapserv/MsVectorDataGuide.pdf Best regards, Bart On Sat, 04 Jun 2005 05:01:30 +0200, bino_oetomo wrote: > Dear All ... > > Kindly please point me the url on how to config MapServer to use ESRI > Shape > Files as data source. > > Regards > > -bino- > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Sat Jun 4 02:22:44 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 4 Jun 2005 11:22:44 +0200 Subject: How can I get a pixel value from tiff image? In-Reply-To: Message-ID: Hi, you could have a look here (Section Raster query): http://dl.maptools.org/dl/omsug/osgis2004/NewMapServerRasterFeatures.pdf Pixel:
values=[values]
value_0=[value_0]
value_1=[value_1]
value_2=[value_2]
RGB = [red],[green],[blue]

Class = [class]
Best regards, Bart On Fri, 03 Jun 2005 23:32:16 +0200, Farid Vakilzadeh wrote: > Hi All, > > I have a raster tiff image. After displaying it under Mapserver I want > to display each pixel value that I need. Also I don't want to use > MapScript language such as PHP. So far I can query something such as > map coordinates by using [mapx] and [mapy] in my query template file > but I don't know How I can query pixel value. Some body who knows > please tell me how? Here is my query template file : > > > > Query Results > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Bounding box[minx],[miny],[maxx],[maxy]
Image Coordinates[img.x], [img.y]
Map Coordinates[mapx], [mapy]
Number of results[nr]
Scale[scale]
Cellsize[cellsize]
>


> > > > Farid > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From margottid at COMUNE.LUGO.RA.IT Sat Jun 4 04:08:25 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Sat, 4 Jun 2005 06:08:25 -0500 Subject: From CGI to PHPMapscript Message-ID: Hi list, how can I create the following image using PHP Mapscript? http://sit.comune.lugo.ra.it/cgi-bin/mapserv? &mode=itemnquerymap&map_querymap_size=698 523&mapxy=1729559.6025 4927024.888&scale=6980&map=/dati/sit/Lugo_base.map&layers=CTR_5000 Mappali Quadrocatasto Fabbricati&qlayer=Mappali&qitem=PARTKEY&qstring=/E730 77 344|E730 77 383|E730 77 384|E730 77 427|E730 77 479/ I can easily create it with CGI Mapserver, but now I need to create it with PHP Mapscript. My variables are: - map_querymap_size (I need to modify it: in the mapfile I have another size); - mapxy (I have already calculated the center point of my new map, I only need to specify it); - scale (same as mapxy); - layers (not all layers of the mapfile should be drawn); - qlayer, qitem and qstring. How can I perform an "itemnquerymap" with PHP Mapscript? Thank you, Daniele From bartvde at XS4ALL.NL Sat Jun 4 04:26:00 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 4 Jun 2005 13:26:00 +0200 Subject: From CGI to PHPMapscript In-Reply-To: Message-ID: Hi, did you already look at the PHP/Mapscript reference? http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html Look especially at the functions: queryByAttributes and drawQuery If you need examples I would recommend downloading Chameleon and looking for examples in there. http://chameleon.maptools.org/index.phtml Best regards, Bart On Sat, 04 Jun 2005 13:08:25 +0200, Daniele Margotti wrote: > Hi list, > > how can I create the following image using PHP Mapscript? > > http://sit.comune.lugo.ra.it/cgi-bin/mapserv? > &mode=itemnquerymap&map_querymap_size=698 523&mapxy=1729559.6025 > 4927024.888&scale=6980&map=/dati/sit/Lugo_base.map&layers=CTR_5000 > Mappali > Quadrocatasto Fabbricati&qlayer=Mappali&qitem=PARTKEY&qstring=/E730 77 > 344|E730 77 383|E730 77 384|E730 77 427|E730 77 479/ > > I can easily create it with CGI Mapserver, but now I need to create it > with PHP Mapscript. > > My variables are: > - map_querymap_size (I need to modify it: in the mapfile I have another > size); > - mapxy (I have already calculated the center point of my new map, I > only > need to specify it); > - scale (same as mapxy); > - layers (not all layers of the mapfile should be drawn); > - qlayer, qitem and qstring. > > How can I perform an "itemnquerymap" with PHP Mapscript? > > Thank you, > Daniele > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From ngvietthanhvn at GMAIL.COM Sat Jun 4 06:20:06 2005 From: ngvietthanhvn at GMAIL.COM (Thanh Nguyen) Date: Sat, 4 Jun 2005 20:20:06 +0700 Subject: Unsubcribe In-Reply-To: Message-ID: On 6/4/05, Bart van den Eijnden wrote: > ---------------------- Information from the mail header ----------------------- > Sender: UMN MapServer Users List > Poster: Bart van den Eijnden > Organization: Syncera IT Solutions > Subject: Re: From CGI to PHPMapscript > ------------------------------------------------------------------------------- > > Hi, > > did you already look at the PHP/Mapscript reference? > > http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html > > Look especially at the functions: > > queryByAttributes and drawQuery > > If you need examples I would recommend downloading Chameleon and looking > for examples in there. > > http://chameleon.maptools.org/index.phtml > > Best regards, > Bart > > On Sat, 04 Jun 2005 13:08:25 +0200, Daniele Margotti > wrote: > > > Hi list, > > > > how can I create the following image using PHP Mapscript? > > > > http://sit.comune.lugo.ra.it/cgi-bin/mapserv? > > &mode=itemnquerymap&map_querymap_size=698 523&mapxy=1729559.6025 > > 4927024.888&scale=6980&map=/dati/sit/Lugo_base.map&layers=CTR_5000 > > Mappali > > Quadrocatasto Fabbricati&qlayer=Mappali&qitem=PARTKEY&qstring=/E730 77 > > 344|E730 77 383|E730 77 384|E730 77 427|E730 77 479/ > > > > I can easily create it with CGI Mapserver, but now I need to create it > > with PHP Mapscript. > > > > My variables are: > > - map_querymap_size (I need to modify it: in the mapfile I have another > > size); > > - mapxy (I have already calculated the center point of my new map, I > > only > > need to specify it); > > - scale (same as mapxy); > > - layers (not all layers of the mapfile should be drawn); > > - qlayer, qitem and qstring. > > > > How can I perform an "itemnquerymap" with PHP Mapscript? > > > > Thank you, > > Daniele > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From msestudiente2 at YAHOO.COM Sat Jun 4 10:18:48 2005 From: msestudiente2 at YAHOO.COM (Alex Smith) Date: Sat, 4 Jun 2005 10:18:48 -0700 Subject: Problem with =?ISO-8859-1?Q?=93Unique_Values=94?= symbology for line layer. Message-ID: Hello all, I?m not new to GIS, but am new to MS. I?m having trouble with line symbology. I?m trying to display each shapefile feature with different symbology based on a nominal field ? similar to ?unique values? in Arc products. In ArcView, I specified a line thickness of 2 and then manually selected the color of each line. I then exported the map from ArcView 3.2 using gix-export (thanks gix-export developers!). Then I?m trying to preview the map using the Maplab 2.2 ?preview map? button. When I turn on the line layer, the lines do not display at all. All other layers (polygon, single symbol) are displaying as expected. Below is an excerpt from the .sym file. The name of the line layer is Reaches. SYMBOL NAME 'Reaches--0--0' FILLED true TYPE ellipse POINTS 1 1 END END #SYMBOL SYMBOL NAME 'Reaches--1--0' FILLED true TYPE ellipse POINTS 1 1 END END #SYMBOL And below the portion of the .map file that defines the ?Reaches? layer symbology. I removed the metadata portion that gix-export created. LAYER NAME "Reaches.shp" # TILEINDEX '' # TILEITEM '' STATUS OFF DATA "reaches.shp" TYPE LINE CLASSITEM "NUMCLASS" UNITS DD SIZEUNITS MILES LABELCACHE ON #METADATA TOLERANCE 3 TOLERANCEUNITS PIXELS TRANSFORM TRUE #Reaches.shp TRANSPARENCY 100 HEADER "header.html" FOOTER "footer.html" DEBUG true CLASS NAME "1" EXPRESSION "1" TEMPLATE "template.html" #PEN STYLE SYMBOL "Reaches--0--0" COLOR 37 59 55 SIZE 1 MINSIZE 1 MAXSIZE 100 END #STYLE END #CLASS CLASS NAME "2" EXPRESSION "2" TEMPLATE "template.html" #PEN STYLE SYMBOL "Reaches--1--0" COLOR 255 215 0 SIZE 1 MINSIZE 1 MAXSIZE 100 END #STYLE END #CLASS I tried comparing all of the layer, class and style parameters/args with those of the ?roads? layer in the MapLab tutorial.map file. I can?t find anything that is different, with the exception of the use of the symbol file. Any help that you can provide to this noob would be appreciated! AZ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From collin_tu at YAHOO.COM Sat Jun 4 10:35:11 2005 From: collin_tu at YAHOO.COM (Collin Tu) Date: Sat, 4 Jun 2005 10:35:11 -0700 Subject: unsubscribe Message-ID: GIS Analyst / Developer Phone: (902) 425 5390 __________________________________ Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html From grevedan at HOTMAIL.COM Sat Jun 4 10:59:26 2005 From: grevedan at HOTMAIL.COM (Dan Greve) Date: Sat, 4 Jun 2005 13:59:26 -0400 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance Message-ID: To everyone, Are GeoTiff overviews taken advantage of by Mapserver? What's the best way to handle large datasets (300 GB, 260,000 files in my case) when you want the user to be able to view the whole dataset. Mark, I was reading one of your OLD posts to Mapserver, and was hoping your suggestion might improved my server, but I'm not sure what you meant. Here's the original post... Ed, A very good point. Let me interject one idea that I've used that really speeds up performance. I use a tile index and check performance by zooming in to about 1:20K. Then I zoom out until performance drops. I create a new tile grid shapefile using that map extent as the size of one tile. I tile the entire map area (in my case the world). I create a new aggregate image layer using calls to the map server to generate an image for each new tile. I repeat this process until I have good performance at any scale. I then tune the scales in the map file to match the layers. This "pyramid" scheme is used in several map server products. Granted 528 images are not that many - but displaying all at once takes a bit of time. I've created a world mosaic from 360,000 images that displays at any scale in no more than 4 seconds. Mark I have a lot of data, probably about 300GB spread among 260,000 tiles. Let's just say the region is... Texas. I want the user to be able to see the data set at ANY zoom factor. He'd start out looking at the entire state of texas, and be able to zoom progressively into a city block, and back out again. If the data format could handle 300 GB in a single file (I'm using GeoTIFF), theoretically the performance would be better than if I created a TILEINDEX (shapefile) of the 260,000 tiles. I've seen this in smaller datasets when requesting the entire scene, even just a 13000x13000 dataset with just over 2500 tiles. When you say "I create a new tile grid shapefile using that map extent as the size of one tile. I tile the entire map area (in my case the world). " Do you mean you just duplicate the entire dataset with larger tiles when a TILEINDEX search would take longer? When you say "I create a new aggregate image layer using calls to the map server to generate an image for each new tile." I have no idea what you meant by "aggregate image layer" Are you downsampling the image at all as you increase the tile sizes? The raster howto on the UMN site has a snippet about Frank W. wanting to implement using GeoTIFF overviews in the mapserver. Does mapserver currently take advantage of this? Could you elaborate on your pyramid scheme? -- Dan Greve, Software Engineer -- AGS/BM Integrated Systems -- Northrop Grumman Corporation -- P.O. Box 9650, M.S. C04-222 -- Melbourne, Florida 32902-9650 -- (321) 951 6923 -- grevedan at hotmail.com From emiliom at U.WASHINGTON.EDU Sat Jun 4 11:24:36 2005 From: emiliom at U.WASHINGTON.EDU (Emilio Mayorga) Date: Sat, 4 Jun 2005 11:24:36 -0700 Subject: using a keyimage with WMS layers Message-ID: Hi, I'm using the JPL Landsat and MODIS WMS layers in my application. They work great. I'd like to add a legend image, so I crated some png images and added class and keyimage statements like this: CLASS KEYIMAGE "key_modis.png" END The legend images showed up fine, but now my WMS layers are showing up in gray scale and not in color! What's going on, and how do I fix this? Do I do something different when dealing with a WMS layer? I'm using Mapserver 4.0, with IMAGETYPE PNG24. Thanks for your help. -Emilio Mayorga From dps1 at UALBERTA.CA Sat Jun 4 12:24:54 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Sat, 4 Jun 2005 13:24:54 -0600 Subject: IIS6 Windows 2003 CGI error Message-ID: Hello folks, This is my first posting to the list so I hope I am adhering to your conventions. After messing around with other applications similar to MapServer, I finally settled on this one because it is so incredibly powerful and simple. I just spent the past week working it up for a web application. Here are my specs: Windows 2003 Server running IIS6 (all patches installed) 933MHz, 512MB RAM MapServer 4.4.1 installed through ms441pg.zip package System DSN ODBC connection to Access 2003 db via OGR connectiontype and associated ovf connection file Now on to the issue.... Map mode works flawlessly on my system and my filteritems for the OGR connection work just dandy. However, when I use browse mode and my associated template, I occasionally get the following message on the client side: "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers." This doesn't often happen, but strangely, it will happen all the time if I add additional fields to the Access db table containing the data being filtered using the OGR connection. When I delete these fields in the Access table in question, these HTTP header errors drop off and become less frequent. I came across this MS KB article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;884764 that appears to describe the issue but my machine certainly isn't a fast, multi-processor unit. So, it appears the problem is IIS6 but why does browse mode choke and map mode work 100% of the time? Is there something in the IIS Manager (e.g. Application Pool config, permissions, etc.) that causes this issue? Unfortunately, I can't use another OS or server app (unless I investigate a gawd-awful Apache to IIS6 port-map) because of the network infrastructure I currently manage. Thanks for any pointers, David Shorthouse From woklist at CHARTER.NET Sat Jun 4 12:52:14 2005 From: woklist at CHARTER.NET (William K) Date: Sat, 4 Jun 2005 14:52:14 -0500 Subject: Mac OS X binaries update Message-ID: Just one version change (Postgres). Here is a summary: - Minimum Mac OS 10.3.9 (Tiger compatible, tho the old installers worked on Tiger). - MapServer v4.4.2, for PHP as Apache DSO, and CGI. Now has Postgres linked static, so if you never use Postgres you don't need to install it just to get libpq. (This is how MySQL has always worked, since the official binaries only include static libraries.) - PHP 4.3.11 as Apache DSO. Now has Postgres linked static. - PostgrteSQL 8.0.3 + PostGIS 1.0.1. (new version) - GIS Libs. OGR now has Postgres linked static. Dropped MrSID due to lack of GCC 4 support. - Graphics Libs. Removed libz 1.2.2 as it is included (finally) in Tiger. Tho on 10.3.9 it will now use the older 1.1.3. - all built with GCC 4 (Tiger) - all installers now have dependency checking, so you don't forget something. Feedback welcome. enjoy. I haven't had a chance to look at any of the MS 4.6 betas yet. Unless the final release comes out first, I'll see about an installer for the beta 4.6. There will certainly be a 4.6 installer when it's final, and I'll try to do it before the OSG conference. PS. oh yeah - new domain name! ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From covariance at SHAW.CA Sat Jun 4 12:54:46 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Sat, 4 Jun 2005 14:54:46 -0500 Subject: Updating MapServer Source - How is this done? Message-ID: I have recently finished making changes to the core MapServer and the PHP MapScript in order to produce uniquely identified areas for symbols in imagemaps. I have tested these on my development websites on Windows and UNIX and will soon be included in a production website. Should I submit these changes for inclusion in the regular releases of MapServer (I am quite happy to do so). If so, could someone please give me pointers on how to do this since I am a novice in this area? thanks, Bob Bruce, Winnipeg, Manitoba From bartvde at XS4ALL.NL Sat Jun 4 13:09:26 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 4 Jun 2005 22:09:26 +0200 Subject: Updating MapServer Source - How is this done? In-Reply-To: Message-ID: Hi Bob, it is "common practice" to open up a bugzilla entry for this, and after that you might send an announce e-mail with a link to the bugzilla entry to the Mapserver-dev list with a summary. Somebody with CVS commit rights (most probably the default person assigned to the Mapserver module for which the patch applies) could pick up your patch/change and then include it in the main sources. Best regards, Bart On Sat, 04 Jun 2005 21:54:46 +0200, Bob Bruce wrote: > I have recently finished making changes to the core MapServer and the PHP > MapScript in order to produce uniquely identified areas for symbols in > imagemaps. I have tested these on my development websites on Windows and > UNIX and will soon be included in a production website. > > Should I submit these changes for inclusion in the regular releases of > MapServer (I am quite happy to do so). If so, could someone please give > me > pointers on how to do this since I am a novice in this area? > > thanks, > Bob Bruce, Winnipeg, Manitoba > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From ed at TOPOZONE.COM Sat Jun 4 14:37:44 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 4 Jun 2005 17:37:44 -0400 Subject: "includes" in mapfiles? Message-ID: Joanne - Not only have I done it for several years, I seem to regularly report on it in response to this question! I use mapfiles that say things like: #define UTM_ZONE 12 #include "shaded.inc" etc. They look just like C source code, so I do the obvious thing one would do with C source code - run them through a C compiler! Just tell your compiler to only run the first preprocessor pass and save the output to the generated mapfile. This gives you the benefits of #include syntax and avoids the need to reprocess everything for every map request - you just re-run your mapfile generation scripts each time you change something. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of McGraw, Joanne Sent: Friday, June 03, 2005 8:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] "includes" in mapfiles? Is there any syntax for including the contents of another file in a mapfile? I have about 60+ layers that need to go online and most of them fall into fairly clear groups of five layers each. Based on their selection in a drop-down list, users will indicate the group of maps they are interested in looking at and the application will load that map file. There are, however, about 10 ancillary layers of data that should be available no matter what map is loaded (roads, hydro, cities, etc.). Rather than repetitively defining this information in every map file, is there any way I can define the ancillary layers in one file, and then simply load that file's contents from within the other map files? I'm not sure what to call these except "includes." I haven't had any luck in the archive with that expression, but I cannot believe no one has wanted to do this before. Cheers, jtm Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 759-6103 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3190 bytes Desc: image001.jpg URL: From txneogi at YAHOO.COM Sun Jun 5 09:09:43 2005 From: txneogi at YAHOO.COM (Ron Neogi) Date: Sun, 5 Jun 2005 11:09:43 -0500 Subject: mapserver error Message-ID: I am new to mapserver. Downloaded the source and compiled the mapserver cgi. Everything went fine. To test, I exececuted this on the browser : http://mydomain.com/cgi-bin/mapserv?map=example1-1.map&mode=map I get this error : N "%s" : Unable to access file. rojection() I have verifies the permissions on the file. Have tried with both absolute and relative paths. Any pointers where to look next? Thanks for your help! From flo at RFC822.ORG Sun Jun 5 11:12:33 2005 From: flo at RFC822.ORG (Florian Lohoff) Date: Sun, 5 Jun 2005 20:12:33 +0200 Subject: "includes" in mapfiles? Message-ID: Hi, i was just reading the thread in the archives. I had a similar problem. A lot of layers, symbols etc - So i used "filepp" which is a cpp++ so generate my map file. The problem with cpp is that its not capable of expaning a macro with the newlines. filepp does that by giving "-lrn". My main "map.cpp" looks like this: #define __IMAGEURL "/tmp/" #define __IMAGEPATH "/var/www/tmp/" NAME firstmap #include "map-head" #include "scalebar" #include "color" #include "symbol" #include "layer" END The good thing about using cpp/filepp is macros :) #define macro_snt2(_func, _fer, _mscale, _snttype, _s1, _s2) \ CLASS \ EXPRESSION ([FUNCRDCL] eq _func && [FERTYP] eq _fer) \ MAXSCALE _mscale \ NAME snt_ ## _func ## _fer \ STYLE \ SYMBOL "circle" \ SIZE _s1 \ COLOR _snttype ## _OUTLINECOLOR \ END \ STYLE \ SYMBOL "circle" \ SIZE _s2 \ COLOR _snttype ## _COLOR \ END \ END So defining streets goes like this: macro_snt3(1, 0, 50000, _snt_type10_large, 9, 7, 1) macro_snt2(2, 0, 10000, _snt_type20_large, 9, 7) macro_snt2(2, 0, 25000, _snt_type20_large, 7, 5) macro_snt2(2, 0, 50000, _snt_type20_large, 6, 4) macro_snt2(4, 0, 10000, _snt_type40_large, 6, 4) macro_snt2(4, 0, 25000, _snt_type40_small, 4, 2) macro_snt2(3, 0, 10000, _snt_type30_large, 6, 4) macro_snt2(3, 0, 50000, _snt_type30_small, 4, 2) Color definition are even in a different file. Flo -- Florian Lohoff flo at rfc822.org +49-171-2280134 Heisenberg may have been here. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From jiri.cajthaml at FSV.CVUT.CZ Sun Jun 5 11:16:14 2005 From: jiri.cajthaml at FSV.CVUT.CZ (=?ISO-8859-2?Q?=22Ing=2E_Ji=F8=ED_Cajthaml=22?=) Date: Sun, 5 Jun 2005 20:16:14 +0200 Subject: problem with TIF on windows Message-ID: Hi, I am a beginner with using Mapserver, and I have problem to display my TIF files. I am using Mapserver 4.4.0 on Windows XP, MapServer version 4.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 SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I wanted to create a very simple mapfile with only raster layer, but it doesn't display. If I use JPG file, it works... Does anybody know why? (or what to do..) My Tiff file is probably compressed, and has *.tfw georefference MAP EXTENT -721000 -1143000 -717750 -1142000 SIZE 500 400 UNITS meters SHAPEPATH "c:\web\data\vm\" TRANSPARENT ON IMAGECOLOR 255 255 255 FONTSET "C:\WINDOWS\fonty\font.list" IMAGETYPE JPEG PROJECTION "init=epsg:2065" END LAYER NAME Ortofoto10 DATA Jhra_7_1.jpg TYPE RASTER STATUS DEFAULT END END Thanks, Jiri From bartvde at XS4ALL.NL Sun Jun 5 12:04:08 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 5 Jun 2005 21:04:08 +0200 Subject: problem with TIF on windows In-Reply-To: <42A3416E.50700@fsv.cvut.cz> Message-ID: Try to run gdalinfo on your TIFF file. What is the output? Gdalinfo is part of FWtools: http://fwtools.maptools.org/ Best regards, Bart On Sun, 05 Jun 2005 20:16:14 +0200, Ing. Ji?? Cajthaml wrote: > Hi, > I am a beginner with using Mapserver, and I have problem to display my > TIF files. > I am using Mapserver 4.4.0 on Windows XP, > > MapServer version 4.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 SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > I wanted to create a very simple mapfile with only raster layer, but it > doesn't display. If I use JPG file, it works... > Does anybody know why? (or what to do..) > > My Tiff file is probably compressed, and has *.tfw georefference > > MAP > EXTENT -721000 -1143000 -717750 -1142000 > SIZE 500 400 > UNITS meters > SHAPEPATH "c:\web\data\vm\" > TRANSPARENT ON > IMAGECOLOR 255 255 255 > FONTSET "C:\WINDOWS\fonty\font.list" > > IMAGETYPE JPEG > > PROJECTION > "init=epsg:2065" > END > > LAYER > NAME Ortofoto10 > DATA Jhra_7_1.jpg > TYPE RASTER > STATUS DEFAULT > END > > END > > Thanks, Jiri > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From jiri.cajthaml at FSV.CVUT.CZ Sun Jun 5 12:15:49 2005 From: jiri.cajthaml at FSV.CVUT.CZ (=?UTF-8?B?IkluZy4gSmnFmcOtIENhanRoYW1sIg==?=) Date: Sun, 5 Jun 2005 21:15:49 +0200 Subject: problem with TIF on windows In-Reply-To: Message-ID: This is output of gdalinfo: Warning 1: c:\web\data\vm\Jhra_0_0.tif:incorrect count for field "JPEGTables" (574, expecting 4294967293); tag ignored ERROR 1: JPEGLib:JPEG parameter struct mismatch: library thinks size is 464, caller expects 432 Warning 1: RowsPerStrip not defined ... assuming all one strip. Driver: GTiff/GeoTIFF Size is 2500, 2000 Coordinate System is `' Origin = (-702500.250000,-1139999.750000) Pixel Size = (1.00000000,-1.00000000) Metadata: TIFFTAG_XRESOLUTION=96 TIFFTAG_YRESOLUTION=96 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( -702500.250,-1139999.750) Lower Left ( -702500.250,-1141999.750) Upper Right ( -700000.250,-1139999.750) Lower Right ( -700000.250,-1141999.750) Center ( -701250.250,-1140999.750) Band 1 Block=2500x2000 Type=Byte, ColorInterp=Red Band 2 Block=2500x2000 Type=Byte, ColorInterp=Green Band 3 Block=2500x2000 Type=Byte, ColorInterp=Blue Band 4 Block=2500x2000 Type=Byte, ColorInterp=Alpha Jiri Bart van den Eijnden napsal(a): > Try to run gdalinfo on your TIFF file. What is the output? > > Gdalinfo is part of FWtools: > > http://fwtools.maptools.org/ > > Best regards, > Bart > > On Sun, 05 Jun 2005 20:16:14 +0200, Ing. Ji?? Cajthaml > wrote: > >> Hi, >> I am a beginner with using Mapserver, and I have problem to display my >> TIF files. >> I am using Mapserver 4.4.0 on Windows XP, >> >> MapServer version 4.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 SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >> >> I wanted to create a very simple mapfile with only raster layer, but it >> doesn't display. If I use JPG file, it works... >> Does anybody know why? (or what to do..) >> >> My Tiff file is probably compressed, and has *.tfw georefference >> >> MAP >> EXTENT -721000 -1143000 -717750 -1142000 >> SIZE 500 400 >> UNITS meters >> SHAPEPATH "c:\web\data\vm\" >> TRANSPARENT ON >> IMAGECOLOR 255 255 255 >> FONTSET "C:\WINDOWS\fonty\font.list" >> >> IMAGETYPE JPEG >> >> PROJECTION >> "init=epsg:2065" >> END >> >> LAYER >> NAME Ortofoto10 >> DATA Jhra_7_1.jpg >> TYPE RASTER >> STATUS DEFAULT >> END >> >> END >> >> Thanks, Jiri >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From kenlord at GMAIL.COM Sun Jun 5 12:18:54 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Sun, 5 Jun 2005 12:18:54 -0700 Subject: IIS6 Windows 2003 CGI error In-Reply-To: <200506041924.j54JOswI013193@pilsener.srv.ualberta.ca> Message-ID: Hi David, I would suggest trying the mapserver package from maptools.org/dl People have had dll problems with the package for windows downloaded from other sources in the past couple months, giving the 'http headers' error. Place mapserv.exe and all the associated dll's in a folder on the server. Setup the folder as a virtual directory within your website with 'scripts and executables' permitted. Be sure to give write access to the location where the temporary images will be stored. In IIS, add a new web extension that allows access to the exe and all the dll's. Setting up mapserver this way allows you to very quickly switch between different versions by pointing your website's scripts virtual directory at the version you want to use, assuming the versions have compatible syntax. --- In the opposite way I have had the error you're seeing. Browse always works, but map mode occasionally fails with the 'http headers' error. In my case when I query a map, my website generates query results that include a snapshot of the area queried using mode=map. The failures are fairly consistant based on where on the map you query, I've found nothing wrong with the underlying datasets, no invalid geometries. I've used shapefiles and PostGIS. These errors started with version 4 of mapserver, never having happened with 3.6. I'm also using Windows Server 2003, but saw the same errors using Windows Server 2000. Unfortuneately map=mode seems to work flawlessly for everyone else, so the problem remains :) ... I'll be forcing my snapshots to use version 3.6. Cheers, Ken Lord Vancouver BC On 6/4/05, David Shorthouse wrote: > > Hello folks, > > This is my first posting to the list so I hope I am adhering to your > conventions. After messing around with other applications similar to > MapServer, I finally settled on this one because it is so incredibly > powerful and simple. I just spent the past week working it up for a web > application. Here are my specs: > > Windows 2003 Server running IIS6 (all patches installed) > 933MHz, 512MB RAM > MapServer 4.4.1 installed through ms441pg.zip package > System DSN ODBC connection to Access 2003 db via OGR connectiontype and > associated ovf connection file > > Now on to the issue.... > > Map mode works flawlessly on my system and my filteritems for the OGR > connection work just dandy. However, when I use browse mode and my > associated template, I occasionally get the following message on the > client > side: > > "CGI Error > > The specified CGI application misbehaved by not returning a complete set > of > HTTP headers." > > This doesn't often happen, but strangely, it will happen all the time if I > add additional fields to the Access db table containing the data being > filtered using the OGR connection. When I delete these fields in the > Access > table in question, these HTTP header errors drop off and become less > frequent. > > I came across this MS KB article: > http://support.microsoft.com/default.aspx?scid=kb;EN-US;884764 that > appears > to describe the issue but my machine certainly isn't a fast, > multi-processor > unit. > > So, it appears the problem is IIS6 but why does browse mode choke and map > mode work 100% of the time? Is there something in the IIS Manager (e.g. > Application Pool config, permissions, etc.) that causes this issue? > Unfortunately, I can't use another OS or server app (unless I investigate > a > gawd-awful Apache to IIS6 port-map) because of the network infrastructure > I > currently manage. > > Thanks for any pointers, > > David Shorthouse > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.and.kerry at GMAIL.COM Sun Jun 5 15:46:22 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Sun, 5 Jun 2005 14:46:22 -0800 Subject: Mac OS X binaries update In-Reply-To: Message-ID: From mike.and.kerry at GMAIL.COM Sun Jun 5 16:58:59 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Sun, 5 Jun 2005 15:58:59 -0800 Subject: Mac OS X binaries update In-Reply-To: Message-ID: As I am installing the new versions of your binaries I am running into a snag. (OSX 10.4.1 upgrade installation) The PHP 4.3.11-3 installer gives an error "You cannot continue. There is nothing to install." when clicking the final install button. Additionally the mapserver installer quits with an error saying it requires GISlibs 1.3 or newer. This is after successfully running the GISlibs installer. All of these are being installed over a previous installation of your binaries. If I need to uninstall those first, could you give me hand finding all the pieces to delete. Thanks in advance -mike On 6/4/05, William K wrote: > Just one version change (Postgres). Here is a summary: > > - Minimum Mac OS 10.3.9 (Tiger compatible, tho the old installers > worked on Tiger). > > - MapServer v4.4.2, for PHP as Apache DSO, and CGI. Now has Postgres > linked static, so if you never use Postgres you don't need to install > it just to get libpq. (This is how MySQL has always worked, since > the official binaries only include static libraries.) > > - PHP 4.3.11 as Apache DSO. Now has Postgres linked static. > > - PostgrteSQL 8.0.3 + PostGIS 1.0.1. (new version) > > - GIS Libs. OGR now has Postgres linked static. Dropped MrSID due > to lack of GCC 4 support. > > - Graphics Libs. Removed libz 1.2.2 as it is included (finally) in > Tiger. Tho on 10.3.9 it will now use the older 1.1.3. > > - all built with GCC 4 (Tiger) > > - all installers now have dependency checking, so you don't forget > something. > > > Feedback welcome. enjoy. > > I haven't had a chance to look at any of the MS 4.6 betas yet. > Unless the final release comes out first, I'll see about an installer > for the beta 4.6. There will certainly be a 4.6 installer when it's > final, and I'll try to do it before the OSG conference. > > PS. oh yeah - new domain name! > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > All generalizations are dangerous, even this one. > From bino at INDOAKSES-ONLINE.COM Sun Jun 5 19:56:08 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Mon, 6 Jun 2005 09:56:08 +0700 Subject: Question:How-to Use of ESRI Shape Files Message-ID: Hi, Thanks for your help. ----- Original Message ----- From: "Wim Blanken" To: Sent: Saturday, June 04, 2005 4:11 PM Subject: Re: [UMN_MAPSERVER-USERS] Question:How-to Use of ESRI Shape Files > Hi Bino, > > There are numerous examples out there of using ESRI Shapefiles with > Mapserver. > Have you tried for example the tutorial that uses shapefiles? > > http://terrasip.gis.umn.edu/projects/tutorial/section1.html > Ok , Here it is. Using ogrinfo to my polygon.shp, and got -----Start ogrinfo----- D:\ms4w\tools\gdal-ogr-utils>ogrinfo -all d:\ms4w\shp\polygon.shp INFO: Open of `d:\ms4w\shp\polygon.shp' using driver `ESRI Shapefile' successful. Layer name: polygon Geometry: Polygon Feature Count: 50603 Extent: (109.999930, -10.000030) - (115.000030, -5.000000) Layer SRS WKT: (unknown) type: Integer (5.0) label: String (80.0) level: Integer (5.0) endlevel: Integer (5.0) -----end ogrinfo------- I copied map file from http://terrasip.gis.umn.edu/projects/tutorial/example1-1.html Below is my map file, i just modified the "extent" .. refer from ogrinfo ------Start - map file-------- MAP IMAGETYPE PNG EXTENT 110.999930 -10.000030 115.000030 -6.000000 SIZE 400 300 SHAPEPATH "d:\ms4w\shp" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states DATA polygon STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object ------End - map file---------- I try to access this using : http://127.0.0.1/cgi-bin/mapserv_46.exe?map=/ms4w/proj/bino/map1.map&mode=ma p And got : getString(): Symbol definition error. Parsing error near (polygon):(line 22) Question : Is it because wrong "projection" ? How to fix it ? Regards -bino- From bill at BINKO.NET Sun Jun 5 20:13:34 2005 From: bill at BINKO.NET (Bill Binko) Date: Sun, 5 Jun 2005 23:13:34 -0400 Subject: GPS Integration Recommendations? Message-ID: Hi everyone, I'm considering a handheld GPS unit, and would like to be able to take the maps I'm generating and send them down to the unit. I've heard various suggestions (mainly on IRC) about generating GPX straight from PostGIS and things like that, but I was curious as to whether or not anyone here had done this? For example, Garmin has maps that you can load via MapSource. Is there any chance that I could generate those from the output of Mapserver? Perhaps taking SVG output and applying a XSL transform? I'm just playing with the idea right now, but it seems like something someone here might have done. Thanks for any input Bill From bino at INDOAKSES-ONLINE.COM Sun Jun 5 22:09:01 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Mon, 6 Jun 2005 12:09:01 +0700 Subject: First map succeed Message-ID: Thanks to all support I just succed displaying my first map. well .. it's not beautify yet .. but it's there. Ok .. another problem My *.shp file is generated from exported garmin *.img file (using mapedit) I called that shp file back using mapedit .. and it's looked OK .. MS4W problem : Why I all the "label" (streets and points name)disapeared ? Regards -bino- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at BINKO.NET Sun Jun 5 23:27:41 2005 From: bill at BINKO.NET (Bill Binko) Date: Mon, 6 Jun 2005 02:27:41 -0400 Subject: PHP/Mapscript testers needed for 4.6beta Message-ID: Hi everyone, Daniel Morrisette and I have tracked down and killed an old bug (#1354) in PHP/Mapscript that caused two big problems: 1) It required the PHP source to be available if your PHP didn't use the system regex libraries 2) It was very easy to build against the wrong regex, and get segfaults at random places. At this point, we believe this is completely fixed: you can build with only PHP's #include files (no source) and both the CGI/command-line utilities and PHP module always use the right regex (even when they're different). We've tested this in several environments, but would like a broader set of eyes to make sure it's working correctly before 4.6 gets released. So, if you're currently running PHP/Mapscript and can test the 4.6beta3 release, we'd really appreciate your feedback. Also, if you've been avoiding PHP/Mapscript due to build complexity or stability issues, this is a good time for you to try again: building PHP/Mapscript should be a simple as adding --with-php=/usr to your configure line (if your PHP includes are in /usr/include/php). If you could direct your feedback to me or to the bug (#1354), that would be great. Thanks Bill From bill at BINKO.NET Sun Jun 5 23:36:02 2005 From: bill at BINKO.NET (Bill Binko) Date: Mon, 6 Jun 2005 02:36:02 -0400 Subject: PHP/Mapscript testers needed for 4.6beta In-Reply-To: Message-ID: One small note, there is still an issue with saveWebImage() not always giving back a unique filename under mod_php. This is open under bug 1322 and is unrelated to the regex fixes (but it is important since I just asked you to use this version for testing :-) ). (sorry, Daniel, I had already wrote this when I got your note) Bill On Mon, 6 Jun 2005, Bill Binko wrote: > Hi everyone, > > Daniel Morrisette and I have tracked down and killed an old bug (#1354) in > PHP/Mapscript that caused two big problems: > > 1) It required the PHP source to be available if your PHP didn't use > the system regex libraries > 2) It was very easy to build against the wrong regex, and get segfaults at > random places. > > At this point, we believe this is completely fixed: you can build with > only PHP's #include files (no source) and both the CGI/command-line > utilities and PHP module always use the right regex (even when they're > different). > > We've tested this in several environments, but would like a broader set of > eyes to make sure it's working correctly before 4.6 gets released. > > So, if you're currently running PHP/Mapscript and can test the 4.6beta3 > release, we'd really appreciate your feedback. > > Also, if you've been avoiding PHP/Mapscript due to build complexity or > stability issues, this is a good time for you to try again: building > PHP/Mapscript should be a simple as adding --with-php=/usr to your > configure line (if your PHP includes are in /usr/include/php). > > If you could direct your feedback to me or to the bug (#1354), that would > be great. > > Thanks > Bill > > From janeks.kamerovskis at SILVA.LV Mon Jun 6 00:06:48 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Mon, 6 Jun 2005 10:06:48 +0300 Subject: Shortest route solution In-Reply-To: <42A05B1D.5010904@swoodbridge.com> Message-ID: What if the optimal route solution is done in php with mapscript? (in cases when route shape file are not too big ( ~ 5 mb?) ) Could somebody tried something similar? brgds Janeks > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen Woodbridge > Sent: Friday, June 03, 2005 4:29 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Shortest route solution > > > This has been discussed in the archives search for "router" > > In general, this should not be a mapserver function because, the data > (or organization of the data) required is not what mapserver needs or > vica versa. The best (better?) way to do this is to create a separate > application the computes the route and returns an xml document or a > couple of files with a unique name. Then use mapscript to integrate the > results with a map. > > I have done this and have a demo at http://imaptools.com/demos1/?tab=2 > The router is C code and creates a filename.shp and filename.txt as > results. the PHP code then takes the shapefile and adds it to a layer > already in the mapfile and the driving directions go into the > filename.txt and they are read and displayed under the make. > > The biggest issue is that you need data that is good for routing and in > most cases that means commercial data which is very expensive. > > This worked for me, hope it helps you get started. > > -Steve W. > > Gambin Dejan wrote: > > Hi, > > > > Did anybody implement the shortest route algorithm to mapserver and what > > are the experiences/suggestions? I would like to be able to find a > > shortest route between two points on my MapServer map and highlight it > > somehow. I found a conference document about grass server that should be > > able to do so using php extension on client side (the client can be > > mapserver). Does it exist or is just in future plan? > > > > I would appreciate any suggestions on this field > > > > thanks > > > > dejan > > From siki at AGT.BME.HU Mon Jun 6 03:48:05 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 6 Jun 2005 09:48:05 -0100 Subject: First map succeed {Scanned} In-Reply-To: <017b01c56a55$da3a1090$0300a8c0@indoaksesbno> Message-ID: Hi Bino, Shape files consist of graphic (poin, line, polygon) and attributes. You can define labels (attribute value to display on your map as a text) in your map file. Check TYPE ANNOTATION in the map file reference. Bye Zoltan On Mon, 6 Jun 2005, bino_oetomo wrote: > Thanks to all support > > I just succed displaying my first map. > well .. it's not beautify yet .. but it's there. > > Ok .. another problem > My *.shp file is generated from exported garmin *.img file (using mapedit) > > I called that shp file back using mapedit .. and it's looked OK .. > > MS4W problem : Why I all the "label" (streets and points name)disapeared ? > > Regards > -bino- > From stephane.morel at VANOISE.COM Mon Jun 6 01:44:28 2005 From: stephane.morel at VANOISE.COM (=?ISO-8859-1?Q?St=E9phane_MOREL?=) Date: Mon, 6 Jun 2005 10:44:28 +0200 Subject: Error compiling gdal with ecw support In-Reply-To: <42A05C07.1050205@vanoise.com> Message-ID: I received an answer of a person of Veremes but I removed the mail accidentally. Can you return it again to me please ? TIA St?phane St?phane MOREL a ?crit : > Hi, > I try to compile gdal-cvs-2005.06.01 with ecw > support(ecwsdk-3.1.25jan05-linux). Configure works fine (./configure > --with-ecw=/opt/ecwsdk-3.1.25jan05-linux) > Make give the following error : > make[1]: Entering directory `/opt/gdal-cvs-2005.06.01' > GNUmakefile:43: warning: overriding commands for target `libgdal.la' > GNUmakefile:39: warning: ignoring old commands for target `libgdal.la' > /bin/sh ./libtool --mode=link g++ -ljasper -lm -ldl -o libgdal.la > ./frmts/o/*.lo ./gcore/*.lo ./port/*.lo ./alg/*.lo > ./ogr/ogrsf_frmts/o/*.lo ./ogr/ogrgeometryfactory.lo ./ogr/ogrpoint.lo > ./ogr/ogrcurve.lo ./ogr/ogrlinestring.lo ./ogr/ogrlinearring.lo > ./ogr/ogrpolygon.lo ./ogr/ogrutils.lo ./ogr/ogrgeometry.lo > ./ogr/ogrgeometrycollection.lo ./ogr/ogrmultipolygon.lo > ./ogr/ogrsurface.lo ./ogr/ogrmultipoint.lo ./ogr/ogrmultilinestring.lo > ./ogr/ogr_api.lo ./ogr/ogrfeature.lo ./ogr/ogrfeaturedefn.lo > ./ogr/ogrfeaturequery.lo ./ogr/ogrfeaturestyle.lo > ./ogr/ogrfielddefn.lo ./ogr/ogrspatialreference.lo > ./ogr/ogr_srsnode.lo ./ogr/ogr_srs_proj4.lo ./ogr/ogr_fromepsg.lo > ./ogr/ogrct.lo ./ogr/ogr_opt.lo ./ogr/ogr_srs_esri.lo > ./ogr/ogr_srs_pci.lo ./ogr/ogr_srs_usgs.lo ./ogr/ogr_srs_dict.lo > ./ogr/swq.lo ./ogr/ogr_srs_validate.lo ./ogr/ogr_srs_xml.lo > ./ogr/ograssemblepolygon.lo ./ogr/ogr2gmlgeometry.lo > ./ogr/gml2ogrgeometry.lo \ > -rpath /usr/local/lib \ > -no-undefined \ > -version-info 8:0:7 > grep: /usr/lib/libjpeg.la: No such file or directory > /usr/bin/sed: can't read /usr/lib/libjpeg.la: No such file or directory > libtool: link: `/usr/lib/libjpeg.la' is not a valid libtool archive > make[1]: *** [libgdal.la] Error 1 > make[1]: Leaving directory `/opt/gdal-cvs-2005.06.01' > make: *** [check-lib] Error 2 > > I also try to disable libtool but without success > > my linux box : Suse 9.2 > gcc 3.3.4 > > Thanks for any help. > > St?phane > > >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 04/06/2005 > > -------------- next part -------------- A non-text attachment was scrubbed... Name: stephane.morel.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From jacob.delfos at MAUNSELL.COM Mon Jun 6 02:01:32 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Mon, 6 Jun 2005 17:01:32 +0800 Subject: problem with TIF on windows Message-ID: Jiri, Your TIFF uses a JPEG compression internally. TIFF files can use quite a few different kind of compressions. It seems your TIFF file is not healthy. Is there any particular reason why you do not want to use a JPG, since your file seems unhealthy, and since JPG works? If it already uses a JPG compression internally anyway, converting it to JPEG will not be a major drama in loss of quality. You could use a simple program like Irfanview (www.irfanview.com; easy to use) to convert it to another format, or even to .tif format (choosing your preferred compression). Make sure to keep the .tfw file (best rename to .wld file for jpeg), and don't resize your image. regards, Jacob -----Original Message----- From: UMN MapServer Users List To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 6/6/2005 3:15 AM Subject: Re: [UMN_MAPSERVER-USERS] problem with TIF on windows This is output of gdalinfo: Warning 1: c:\web\data\vm\Jhra_0_0.tif:incorrect count for field "JPEGTables" (574, expecting 4294967293); tag ignored ERROR 1: JPEGLib:JPEG parameter struct mismatch: library thinks size is 464, caller expects 432 Warning 1: RowsPerStrip not defined ... assuming all one strip. Driver: GTiff/GeoTIFF Size is 2500, 2000 Coordinate System is `' Origin = (-702500.250000,-1139999.750000) Pixel Size = (1.00000000,-1.00000000) Metadata: TIFFTAG_XRESOLUTION=96 TIFFTAG_YRESOLUTION=96 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( -702500.250,-1139999.750) Lower Left ( -702500.250,-1141999.750) Upper Right ( -700000.250,-1139999.750) Lower Right ( -700000.250,-1141999.750) Center ( -701250.250,-1140999.750) Band 1 Block=2500x2000 Type=Byte, ColorInterp=Red Band 2 Block=2500x2000 Type=Byte, ColorInterp=Green Band 3 Block=2500x2000 Type=Byte, ColorInterp=Blue Band 4 Block=2500x2000 Type=Byte, ColorInterp=Alpha Jiri Bart van den Eijnden napsal(a): > Try to run gdalinfo on your TIFF file. What is the output? > > Gdalinfo is part of FWtools: > > http://fwtools.maptools.org/ > > Best regards, > Bart > > On Sun, 05 Jun 2005 20:16:14 +0200, Ing. Jir? Cajthaml > wrote: > >> Hi, >> I am a beginner with using Mapserver, and I have problem to display my >> TIF files. >> I am using Mapserver 4.4.0 on Windows XP, >> >> MapServer version 4.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 SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >> >> I wanted to create a very simple mapfile with only raster layer, but it >> doesn't display. If I use JPG file, it works... >> Does anybody know why? (or what to do..) >> >> My Tiff file is probably compressed, and has *.tfw georefference >> >> MAP >> EXTENT -721000 -1143000 -717750 -1142000 >> SIZE 500 400 >> UNITS meters >> SHAPEPATH "c:\web\data\vm\" >> TRANSPARENT ON >> IMAGECOLOR 255 255 255 >> FONTSET "C:\WINDOWS\fonty\font.list" >> >> IMAGETYPE JPEG >> >> PROJECTION >> "init=epsg:2065" >> END >> >> LAYER >> NAME Ortofoto10 >> DATA Jhra_7_1.jpg >> TYPE RASTER >> STATUS DEFAULT >> END >> >> END >> >> Thanks, Jiri >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From mapserver at HOTMAIL.COM Mon Jun 6 03:14:16 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Mon, 6 Jun 2005 05:14:16 -0500 Subject: hyperlink in a map Message-ID: Hi, I have a database dbf, with several defined symbols. They appear in my map when I run mapserver. It is possible to insert a hyperlink from those symbols that appear in the map to an existing URL? If it is, how can do it? What instruction have I to insert in .map file? Thank you. Nuri From woodbri at SWOODBRIDGE.COM Mon Jun 6 03:38:40 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 6 Jun 2005 06:38:40 -0400 Subject: Shortest route solution In-Reply-To: Message-ID: It should be doable, for the algorithm check out http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm -Steve W. http://imaptools.com Janeks Kamerovskis wrote: > What if the optimal route solution is done in php with mapscript? > (in cases when route shape file are not too big ( ~ 5 mb?) ) > > Could somebody tried something similar? > > brgds > Janeks > > >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen Woodbridge >>Sent: Friday, June 03, 2005 4:29 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] Shortest route solution >> >> >>This has been discussed in the archives search for "router" >> >>In general, this should not be a mapserver function because, the data >>(or organization of the data) required is not what mapserver needs or >>vica versa. The best (better?) way to do this is to create a separate >>application the computes the route and returns an xml document or a >>couple of files with a unique name. Then use mapscript to integrate the >>results with a map. >> >>I have done this and have a demo at http://imaptools.com/demos1/?tab=2 >>The router is C code and creates a filename.shp and filename.txt as >>results. the PHP code then takes the shapefile and adds it to a layer >>already in the mapfile and the driving directions go into the >>filename.txt and they are read and displayed under the make. >> >>The biggest issue is that you need data that is good for routing and in >>most cases that means commercial data which is very expensive. >> >>This worked for me, hope it helps you get started. >> >>-Steve W. >> >>Gambin Dejan wrote: >> >>>Hi, >>> >>>Did anybody implement the shortest route algorithm to mapserver and what >>>are the experiences/suggestions? I would like to be able to find a >>>shortest route between two points on my MapServer map and highlight it >>>somehow. I found a conference document about grass server that should be >>>able to do so using php extension on client side (the client can be >>>mapserver). Does it exist or is just in future plan? >>> >>>I would appreciate any suggestions on this field >>> >>>thanks >>> >>>dejan >>> > > From siki at AGT.BME.HU Mon Jun 6 06:56:44 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 6 Jun 2005 12:56:44 -0100 Subject: First map succeed {Scanned} In-Reply-To: <026701c56a6d$b762eb60$0300a8c0@indoaksesbno> Message-ID: Hi Bino, Here is an example to display text labels in mapserver. I use truetype font so i set up FONSET in the map file too. I hope it helps you Bye Zoltan ps. always cc your mail to the list, another list member can have the same problem. LAYER NAME "parcel_id" DATA "maps/parcels" STATUS ON TYPE ANNOTATION LABELITEM "TXT" LABELMAXSCALE 2001 SYMBOLSCALE 1000 CLASS LABEL COLOR 0 0 0 SHADOWCOLOR 255 255 255 SHADOWSIZE 1 1 SIZE 7 POSITION CC ANGLE AUTO FONT hrsz_font TYPE TRUETYPE END END END On Mon, 6 Jun 2005, bino_oetomo wrote: > Hi Zoltan > Since i'm a damnstupid newbie , > Kindly please give me exact examples of it ? > > Here is my map file > > ---Start--- > MAP > IMAGETYPE PNG > EXTENT 110.999930 -10.000030 115.000030 -6.000000 > SIZE 600 600 > SHAPEPATH "d:\ms4w\shp" > IMAGECOLOR 255 255 255 > > WEB > TEMPLATE '/ms4w/apache/htdocs/bino.html' > IMAGEPATH '/ms4w/tmp/ms_tmp/' > IMAGEURL '/ms_tmp/' > END > # PROJECTION > # "proj=laea" > # "ellps=clrk66" > # "lat_0=45" > # "lon_0=-100" > # > # Alternatively, you can specify an EPSG code. > # "init=epsg:2163" > # > # END > > # Start of LAYER DEFINITIONS --------------------------------------------- > LAYER # States polygon layer begins here > NAME lay-1 > DATA polygon.shp > STATUS DEFAULT > TYPE POLYGON > > # PROJECTION > # "init=epsg:4269" > # END > > CLASS > COLOR 232 232 232 > #OUTLINECOLOR 32 32 32 > END > END # States polygon layer ends here > > LAYER # States polygon layer begins here > NAME lay-2 > DATA line.shp > STATUS DEFAULT > TYPE LINE > # PROJECTION > # "init=epsg:4269" > # END > > CLASS > COLOR 255 0 0 > #OUTLINECOLOR 32 32 32 > END > END # States LINE layer ends here > LAYER # States polygon layer begins here > NAME lay-3 > DATA poi.shp > STATUS DEFAULT > TYPE POINT > # PROJECTION > # "init=epsg:4269" > # END > > CLASS > COLOR 0 0 255 > > #OUTLINECOLOR 32 32 32 > END > END # States LINE layer ends here > # End of LAYER DEFINITIONS ------------------------------- > END # end of map file/object > > ---End---- > > I really appreciate your help > > regards > -bino- > > > ----- Original Message ----- > From: "Siki Zoltan" > To: "bino_oetomo" > Cc: > Sent: Monday, June 06, 2005 5:48 PM > Subject: Re: [UMN_MAPSERVER-USERS] First map succeed {Scanned} > > > > Hi Bino, > > > > Shape files consist of graphic (poin, line, polygon) and attributes. > > You can define labels (attribute value to display on your map as a text) > > in your map file. Check TYPE ANNOTATION in the map file reference. > > > > Bye > > Zoltan > > > > On Mon, 6 Jun 2005, bino_oetomo wrote: > > > > > Thanks to all support > > > > > > I just succed displaying my first map. > > > well .. it's not beautify yet .. but it's there. > > > > > > Ok .. another problem > > > My *.shp file is generated from exported garmin *.img file (using > mapedit) > > > > > > I called that shp file back using mapedit .. and it's looked OK .. > > > > > > MS4W problem : Why I all the "label" (streets and points name)disapeared > ? > > > > > > Regards > > > -bino- > > > > > > > > From oraakel at GMAIL.COM Mon Jun 6 06:43:06 2005 From: oraakel at GMAIL.COM (Erki Veersalu) Date: Mon, 6 Jun 2005 16:43:06 +0300 Subject: Performance issue on labeling Message-ID: Dear MapServer users, I need help for improving speed of my web-application. I would really appreciate if someone could comment following issue. I'm using MapServer for displaying road network with labels over PostGis,Postgresql. Database is not that big, but making a GIF file of only roads (~200000 road segments) with angular true type labeling takes ~3 sec. If I don't use labeling it's 0,5 sec and with bitmap labels it's 0,6 sec Mapserver is running on Solaris 9. Why is labeling so slow? What can I do to speed up generation of an image? mapserv -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE map file: MAP NAME tuwa STATUS ON IMAGETYPE GIF SIZE 400 300 EXTENT -876000 1330000 2230000 3650000 SHAPEPATH "/usr/local/apache2/htdocs/mapserver/tuwa/data/" FONTSET "/usr/local/apache2/htdocs/mapserver/tuwa/data/fonts/fonts.list" UNITS METERS WEB IMAGEPATH "/usr/local/apache2/htdocs/mapserver/tmp/" IMAGEURL "/mapserver/tmp/" END SCALEBAR STATUS on INTERVALS 4 SIZE 200 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers LABEL COLOR 0 0 0 SIZE small END END LAYER NAME A40 STATUS default CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=tuwa" DATA "the_geom from streets" TYPE line LABELITEM "name" LABELMAXSCALE 45000 CLASS SYMBOL 0 COLOR 150 150 150 MAXSCALE 50000 LABEL TYPE TRUETYPE FONT "arial" SIZE 9 MINSIZE 8 MAXSIZE 10 FORCE FALSE COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION cc ANGLE auto ANTIALIAS TRUE MINFEATURESIZE 3 MINDISTANCE 100 PARTIALS TRUE END END END END Erki Salu Estonia From David.Fawcett at STATE.MN.US Mon Jun 6 07:04:25 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 6 Jun 2005 09:04:25 -0500 Subject: time series representations in Mapserver Message-ID: I seem to remember an app, possibly by DM Solutions, to track West Nile Virus in Canada. It was a few years ago, and I believe that it used animated .gif's. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Gerry Creager N5JXS Sent: Friday, June 03, 2005 6:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] time series representations in Mapserver OK... that's a start. However, I'm looking at weather observations, usually they're from fixed sites (well, excluding the storm chasers:-). I'm wondering if anything's been done for animation-ish stuff, so I could display the temperature contours, or, for instance, a changing landscape of wind barbs... Thanks, Gerry David Bitner wrote: > If all you need is to show all of something that fit within a window > of time on a single image (ie not an animation) you can either use sql > statements with GDAL (I've not done this myself) or if you have your > data in PostGIS all you need to do is add substitution variables into > your SQL statement. > > For example, I display flight tracks at an airport using mapserver and > I include a startdate and enddate as cgi variables sent to mapserver > then in my mapfile use percent notation in my mapfile: > DATA "targets from (select * from flighttrack where stime <= '%eDate%' > and etime >='%sDate%')as tracks USING UNIQUE opnum USING SRID=-1" > > On 6/3/05, Gerry Creager N5JXS wrote: > >>We're looking at several applications where we need some time-selection >>capabilities. Has anyone done this successfully with Mapserver, and if >>so, might you share some tips? >> >>TIA,gerry >>-- >>Gerry Creager -- gerry.creager at tamu.edu >>Texas Mesonet -- AATLT, Texas A&M University >>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >>Page: 979.228.0173 >>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >> > > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From uli.mueller at GMX.CH Mon Jun 6 07:08:28 2005 From: uli.mueller at GMX.CH (uli mueller [geOps]) Date: Mon, 6 Jun 2005 16:08:28 +0200 Subject: time series representations in Mapserver In-Reply-To: Message-ID: There is also something in the wiki on the topic: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerGIF Fawcett, David wrote: > I seem to remember an app, possibly by DM Solutions, to track West Nile Virus in Canada. It was a few years ago, and I believe that it used animated .gif's. > > David. > > David Fawcett > Minnesota Office of Environmental Assistance > david.fawcett at moea.state.mn.us > 651.215.0200 > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Gerry Creager N5JXS > Sent: Friday, June 03, 2005 6:40 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] time series representations in > Mapserver > > > OK... that's a start. However, I'm looking at weather observations, > usually they're from fixed sites (well, excluding the storm chasers:-). > I'm wondering if anything's been done for animation-ish stuff, so I > could display the temperature contours, or, for instance, a changing > landscape of wind barbs... > > Thanks, Gerry > > David Bitner wrote: > >>If all you need is to show all of something that fit within a window >>of time on a single image (ie not an animation) you can either use sql >>statements with GDAL (I've not done this myself) or if you have your >>data in PostGIS all you need to do is add substitution variables into >>your SQL statement. >> >>For example, I display flight tracks at an airport using mapserver and >>I include a startdate and enddate as cgi variables sent to mapserver >>then in my mapfile use percent notation in my mapfile: >>DATA "targets from (select * from flighttrack where stime <= '%eDate%' >>and etime >='%sDate%')as tracks USING UNIQUE opnum USING SRID=-1" >> >>On 6/3/05, Gerry Creager N5JXS wrote: >> >> >>>We're looking at several applications where we need some time-selection >>>capabilities. Has anyone done this successfully with Mapserver, and if >>>so, might you share some tips? >>> >>>TIA,gerry >>>-- >>>Gerry Creager -- gerry.creager at tamu.edu >>>Texas Mesonet -- AATLT, Texas A&M University >>>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >>>Page: 979.228.0173 >>>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >>> >> >> > -- geOps GeoInformatics D-79100 Freiburg From cdaily at GMAIL.COM Mon Jun 6 07:13:52 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 6 Jun 2005 09:13:52 -0500 Subject: PHP/Mapscript testers needed for 4.6beta In-Reply-To: Message-ID: Is this the link for it? http://cvs.gis.umn.edu/dist/mapserver-4.6.0-beta3.tar.gz I had previously been building PHP with the option '--with-regex=system'. Will I still need to configure PHP in this way? -Camden Daily Prudential Preferred Properties http://www.prupref.com From lucamarle at GMAIL.COM Mon Jun 6 07:15:47 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Mon, 6 Jun 2005 16:15:47 +0200 Subject: join some shape files Message-ID: Hi list, sorry if this is a FAQ but it's an hour I'm looking for an answer goggling in the net. I have some shp file with the same structure for dbf and it seems to me more convenient to manage them with an unique shp and different labels format. With tool I can use to join these shp file? I use debian. Thanks for suggestion luca -- luca marletta icq: 70590647 From thijs.brentjens at GEODAN.NL Mon Jun 6 07:05:27 2005 From: thijs.brentjens at GEODAN.NL (Thijs Brentjens) Date: Mon, 6 Jun 2005 16:05:27 +0200 Subject: rendering images from ArcSDE Message-ID: Hi list, When serving a WMS layer on an ArcSDE database, the map images seem to be rendered incorrectly. These kind of corrupt images are only rendered when an ArcSDE layer is requested. When setting the formatoption "INTERLACE=OFF", the stripes disappear, but the image is still not rendered completely. I've attached three files: one with layers from shapefiles only (interlace on), one with an ArcSDE layer (interlace on) and one with an ArcSDE layer with interlace off. IE can't display these images (Firefox can). The problem doesn't seem to depend on the image format. It happens both with JPEG and PNG images. We're using mapserver 4.4.2, compiled against GDAL 1.2.5 on a linux platform. Does anybody have a clue what is happening here? best regards, Thijs -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at BINKO.NET Mon Jun 6 07:21:58 2005 From: bill at BINKO.NET (Bill Binko) Date: Mon, 6 Jun 2005 10:21:58 -0400 Subject: PHP/Mapscript testers needed for 4.6beta In-Reply-To: <16264e07050606071399c907c@mail.gmail.com> Message-ID: On Mon, 6 Jun 2005, Camden Daily wrote: > Is this the link for it? > > http://cvs.gis.umn.edu/dist/mapserver-4.6.0-beta3.tar.gz That's the one! > > I had previously been building PHP with the option > '--with-regex=system'. Will I still need to configure PHP in this > way? No, you should be able to run with either regex now. That makes running against pre-built PHP binaries much simpler. You do need to have the PHP #include files. You also do not need the --with-php-regex-dir parameter. Just use --with-php=/usr or wherever your #includes are. Bill From godwin.liz at GMAIL.COM Mon Jun 6 07:26:44 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Mon, 6 Jun 2005 10:26:44 -0400 Subject: rendering images from ArcSDE In-Reply-To: Message-ID: I think I had a similar problem once. I think it was due to having the SDE version 8.x client installed with Mapserver, but connecting to ArcSDE version 9. The upgrade resolved the problem. Liz Godwin On 6/6/05, Thijs Brentjens wrote: > > Hi list, > When serving a WMS layer on an ArcSDE database, the map images seem to > be rendered incorrectly. These kind of corrupt images are only rendered when > an ArcSDE layer is requested. When setting the formatoption "INTERLACE=OFF", > the stripes disappear, but the image is still not rendered completely. > I've attached three files: one with layers from shapefiles only > (interlace on), one with an ArcSDE layer (interlace on) and one with an > ArcSDE layer with interlace off. IE can't display these images (Firefox > can). > The problem doesn't seem to depend on the image format. It happens both > with JPEG and PNG images. > We're using mapserver 4.4.2, compiled against GDAL 1.2.5 on a linux > platform. > Does anybody have a clue what is happening here? > best regards, > Thijs > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thijs.brentjens at GEODAN.NL Mon Jun 6 07:43:35 2005 From: thijs.brentjens at GEODAN.NL (Thijs Brentjens) Date: Mon, 6 Jun 2005 16:43:35 +0200 Subject: rendering images from ArcSDE In-Reply-To: Message-ID: Thanks for replying so quickly. We're using ArcSDE 8.3 (not 9 yet), so maybe the problem is ArcSDE 8.3. Another note: sometimes Mapserver returns ok images, sometimes they are corrupt. Thijs -----Original Message----- From: Liz Godwin To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Mon, 6 Jun 2005 10:26:44 -0400 Subject: Re: [UMN_MAPSERVER-USERS] rendering images from ArcSDE I think I had a similar problem once. I think it was due to having the SDE version 8.x client installed with Mapserver, but connecting to ArcSDE version 9. The upgrade resolved the problem. Liz Godwin On 6/6/05, Thijs Brentjens wrote: Hi list, When serving a WMS layer on an ArcSDE database, the map images seem to be rendered incorrectly. These kind of corrupt images are only rendered when an ArcSDE layer is requested. When setting the formatoption "INTERLACE=OFF", the stripes disappear, but the image is still not rendered completely. I've attached three files: one with layers from shapefiles only (interlace on), one with an ArcSDE layer (interlace on) and one with an ArcSDE layer with interlace off. IE can't display these images (Firefox can). The problem doesn't seem to depend on the image format. It happens both with JPEG and PNG images. We're using mapserver 4.4.2, compiled against GDAL 1.2.5 on a linux platform. Does anybody have a clue what is happening here? best regards, Thijs -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Mon Jun 6 07:51:47 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Mon, 6 Jun 2005 09:51:47 -0500 Subject: Non-MS Picture. Message-ID: Hi List, I've been having a problem with implementing a picture in a flash template file. I have a map file that returns the output into a flash output. The map file is coded to pull a template to display the flash output (as I'm sure everyone is already aware of.) I added a picture to the template (a logo for USACE) and the picture does not display; but when I simply pull up the template, without going through the map file, the picture displays. Am I missing something? Regards, Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdaily at GMAIL.COM Mon Jun 6 08:31:46 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 6 Jun 2005 10:31:46 -0500 Subject: PHP/Mapscript testers needed for 4.6beta In-Reply-To: Message-ID: The beta works flawlessly for me. Camden Daily From l_gnemmi at YAHOO.FR Mon Jun 6 09:32:03 2005 From: l_gnemmi at YAHOO.FR (ludovic gnemmi) Date: Mon, 6 Jun 2005 18:32:03 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers Message-ID: Hi all, I have a problem configuring WFS-SERVER with oraclespatial (Nativ support) layers...Everything is ok when configuring WMS-SERVER on these layers but i still receive an incomplete XML result when i try a getfeature request on my WFS oraclespatial layers (without errors). getcapabilitie request is OK. getfeature requests are OK on shapefiles. Here is my mapfile: MAP NAME "my_wfs" EXTENT 868470 83215 965015 165840 SIZE 400 300 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON UNITS METERS FONTSET "path to font" SYMBOLSET "path to symbol" SHAPEPATH "path to shape" WEB IMAGEPATH "path to images" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "my_wfs" "wfs_onlineresource" "http://localhost/cgi-bin/mapserv?map=my_wfs.map&" "wfs_srs" "EPSG:27582" END END #oracle spatial layer LAYER NAME "bati" TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "usr/pass at DB" DATA "GEOM FROM BATIMENT USING SRID NULL" DUMP TRUE STATUS DEFAULT DEBUG ON PROJECTION "init=epsg:27582" END METADATA "wfs_title" "bati" "wfs_extent" "868470 83215 965015 165840" END CLASSITEM "BAT_CODE" CLASS EXPRESSION "01" COLOR 152 152 152 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "02" COLOR 202 202 202 OUTLINECOLOR 0 0 0 END END END here the result of a getfeature request on this layer: ------------------------------------------------------- - - - - 874619.370000,112072.490000 875774.930000,113685.950000 --------------------------------------- Has anybody got an idea? Thanks a lot. Ludovic _____________________________________________________________________________ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com From txneogi at YAHOO.COM Mon Jun 6 09:37:41 2005 From: txneogi at YAHOO.COM (Ron Neogi) Date: Mon, 6 Jun 2005 09:37:41 -0700 Subject: mapserver error Message-ID: Invoking this : http://mydomain.com/cgi-bin/mapserv-old?map=example1-1.map&mode=map Gives this error: N "%s" : Unable to access file. rojection() What am I doing wrong? Help please ... can't go any further ! Ron __________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ From woklist at CHARTER.NET Mon Jun 6 10:04:38 2005 From: woklist at CHARTER.NET (William K) Date: Mon, 6 Jun 2005 12:04:38 -0500 Subject: Mac OS X binaries update In-Reply-To: Message-ID: Oops! bad dependency checking logic in the installers. It's fixed now. On Jun 5, 2005, at 6:58 PM, Mike Davis wrote: > As I am installing the new versions of your binaries I am running into > a snag. (OSX 10.4.1 upgrade installation) > > The PHP 4.3.11-3 installer gives an error "You cannot continue.=20 > There is nothing to install." when clicking the final install button. > > Additionally the mapserver installer quits with an error saying it > requires GISlibs 1.3 or newer. This is after successfully running the > GISlibs installer. > > All of these are being installed over a previous installation of your > binaries. If I need to uninstall those first, could you give me hand > finding all the pieces to delete. > > Thanks in advance > > -mike > > On 6/4/05, William K wrote: > >> Just one version change (Postgres). Here is a summary: >> =20 >> - Minimum Mac OS 10.3.9 (Tiger compatible, tho the old installers >> worked on Tiger). >> =20 >> - MapServer v4.4.2, for PHP as Apache DSO, and CGI. Now has Postgres >> linked static, so if you never use Postgres you don't need to install >> it just to get libpq. (This is how MySQL has always worked, since >> the official binaries only include static libraries.) >> =20 >> - PHP 4.3.11 as Apache DSO. Now has Postgres linked static. >> =20 >> - PostgrteSQL 8.0.3 + PostGIS 1.0.1. (new version) >> =20 >> - GIS Libs. OGR now has Postgres linked static. Dropped MrSID due >> to lack of GCC 4 support. >> =20 >> - Graphics Libs. Removed libz 1.2.2 as it is included (finally) in >> Tiger. Tho on 10.3.9 it will now use the older 1.1.3. >> =20 >> - all built with GCC 4 (Tiger) >> =20 >> - all installers now have dependency checking, so you don't forget >> something. >> =20 >> =20 >> Feedback welcome. enjoy. >> =20 >> I haven't had a chance to look at any of the MS 4.6 betas yet. >> Unless the final release comes out first, I'll see about an installer >> for the beta 4.6. There will certainly be a 4.6 installer when it's >> final, and I'll try to do it before the OSG conference. >> =20 >> PS. oh yeah - new domain name! >> =20 >> ----- >> William Kyngesburye >> http://www.kyngchaos.com/ >> =20 >> All generalizations are dangerous, even this one. >> > ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From bartvde at XS4ALL.NL Mon Jun 6 10:14:43 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 6 Jun 2005 19:14:43 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers In-Reply-To: <20050606163203.42210.qmail@web25403.mail.ukl.yahoo.com> Message-ID: Hi, use: gml_include_items "all" in the METADATA section of your LAYER. Best regards, Bart On Mon, 06 Jun 2005 18:32:03 +0200, ludovic gnemmi wrote: > Hi all, > I have a problem configuring WFS-SERVER with > oraclespatial (Nativ support) layers...Everything is > ok when configuring WMS-SERVER on these layers but i > still receive an incomplete XML result when i try a > getfeature request on my WFS oraclespatial layers > (without errors). getcapabilitie request is OK. > getfeature requests are OK on shapefiles. > > Here is my mapfile: > MAP > NAME "my_wfs" > EXTENT 868470 83215 965015 165840 > SIZE 400 300 > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > STATUS ON > UNITS METERS > FONTSET "path to font" > SYMBOLSET "path to symbol" > SHAPEPATH "path to shape" > > > WEB > IMAGEPATH "path to images" > IMAGEURL "/ms_tmp/" > > METADATA > "wfs_title" "my_wfs" > "wfs_onlineresource" > "http://localhost/cgi-bin/mapserv?map=my_wfs.map&" > "wfs_srs" "EPSG:27582" > END > END > > #oracle spatial layer > > LAYER > NAME "bati" > TYPE POLYGON > CONNECTIONTYPE oraclespatial > CONNECTION "usr/pass at DB" > DATA "GEOM FROM BATIMENT USING SRID NULL" > DUMP TRUE > STATUS DEFAULT > DEBUG ON > PROJECTION > "init=epsg:27582" > END > METADATA > "wfs_title" "bati" > "wfs_extent" "868470 83215 965015 165840" > END > > CLASSITEM "BAT_CODE" > CLASS > EXPRESSION "01" > COLOR 152 152 152 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "02" > COLOR 202 202 202 > OUTLINECOLOR 0 0 0 > END > > END > END > > > > here the result of a getfeature request on this layer: > ------------------------------------------------------- > - > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > http://www.ttt.org/myns > http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > - > > - > > - > > 874619.370000,112072.490000 > 875774.930000,113685.950000 > > > > > > --------------------------------------- > > > Has anybody got an idea? > > Thanks a lot. > > Ludovic > > > > > > > > _____________________________________________________________________________ > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos > mails, photos et vid?os ! > Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From steve.lime at DNR.STATE.MN.US Mon Jun 6 10:45:02 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Jun 2005 12:45:02 -0500 Subject: hyperlink in a map Message-ID: I assume you want to have someone click on the map and go to another website? If so, that's easy, just use a URL template: LAYER NAME 'my symbols' TYPE POINT TEMPLATE 'http://www.google.com' ... END If a user clicks on any point them they'd be directed to Google. Works with all feature types (don't know about rasters though) and the template can be a fixed URL or one dynamically build from attributes. It must start http:// or https:// or ftp://. Steve >>> SUBSCRIBE MAPSERVER-USERS Nuri 06/06/05 5:14 AM >>> Hi, I have a database dbf, with several defined symbols. They appear in my map when I run mapserver. It is possible to insert a hyperlink from those symbols that appear in the map to an existing URL? If it is, how can do it? What instruction have I to insert in .map file? Thank you. Nuri From marek.pisch at CLAERO.COM Mon Jun 6 11:12:50 2005 From: marek.pisch at CLAERO.COM (Marek Pisch) Date: Mon, 6 Jun 2005 12:12:50 -0600 Subject: PHP Mapscript queryByPoint and layer maxscale question Message-ID: Hi all, I have a problem with PHP mapscript queryByPoint function. map->queryByPoint($XY_geo, MS_MULTIPLE, $searchArea); I'm getting a general error: Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. I played with this too long and I've found that something is wrong with my layer MAXSCALE value in my map file. When I do not use MAXSCALE for querying layer everything works fine. I want to display that layer only when zooming close enough, but I want to query that layer all the time. When I'm using quryByRectangle it works fine all the time. Is it mean that queryByRectangle does not care about MAXSCALE of layer and queryByPoint does? I have one work around solution. I can remove function queryByPoint and use only queryByRectangle. But I really would like to know, why it is working differently for mentioned two functions. Thank you for your ideas. Marek Pisch Software Developer Calgary, AB, Canada http://members.shaw.ca/marekpisch *** June 2005 Claero Systems News *** - Claero Solutions launches FIRE, an oil field invoicing system http://www.fieldinvoice.com - welcome 3 new employees: Fieran Mason-Blakley, Gavin Ostlund, and Marek Pisch - welcome 2 new clients: Centini's Restaurant and Bridget Dunford (Independent Film Editor) -------------- next part -------------- An HTML attachment was scrubbed... URL: From gabrial.casey at GMAIL.COM Mon Jun 6 13:12:57 2005 From: gabrial.casey at GMAIL.COM (G Casey) Date: Mon, 6 Jun 2005 15:12:57 -0500 Subject: Point 2 Pixels Message-ID: Hi, I am currently trying to map a lat long point to a map using a database request and php mapscript. Something simple at this point like: SELECT name as N,st_abrev as ST , AsText(the_geom) as POINT FROM hospitals WHERE name LIKE '%st' LIMIT 60 I am then parsing and re projecting those coordinates into a select like the one above that would list hospitals. The user can select the right name and submit it to the application. It seems to work really well however I am trying to do a large area and it would be nice to be able to zoom to that location, for that I would need to know the pixel location that those points are drawn at to request the map to "zoomtopoint" Right ? I don't want the user to click the point I want it to happen as a part of the location selection. Could someone tell me if there is an easy way to get this information from mapscript or proj 4 I am not having the best results trying to calculate it from the extent and the image dimensions ...although I am not sure why ? Thanks G Casey From oven38 at VOLJA.NET Mon Jun 6 13:41:20 2005 From: oven38 at VOLJA.NET (oven38) Date: Mon, 6 Jun 2005 22:41:20 +0200 Subject: Problem migrating from MS 367 to MS 442 - HILITE Message-ID: Dear MapServer users, I have problem vhen i try migrate from MS 367 to MS 442 with HILITE symbols. My map file winth MS 367 looks like : ....... QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END ............. Symbol Name 'PIKE' Type ELLIPSE Filled TRUE Points 1 1 END END ....... LAYER # PARCELS NAME "parcele" CONNECTIONTYPE postgis CONNECTION "user=xxxxx password=xxxxxx dbname=name host=localhost" DATA "the_geom from katp" STATUS ON TYPE POLYGON MAXSCALE 15000 CLASS OUTLINECOLOR 204 255 153 SYMBOL "PIKE" END TEMPLATE "parcela_queryXML.html" TOLERANCE 0 END -------- Thanks, Alfred from Koper, Slovenia -------------- next part -------------- A non-text attachment was scrubbed... Name: normal.png Type: image/png Size: 191141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hilite.png Type: image/png Size: 186050 bytes Desc: not available URL: From dps1 at UALBERTA.CA Mon Jun 6 15:22:42 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Mon, 6 Jun 2005 16:22:42 -0600 Subject: Filter to Name Message-ID: Hey folks, I have an OGR connectiontype that queries and filters point-source data items in an Access db. While browse mode works great to post the [FilterItem] such that I have a nice header for the resultant output, I'd like to be able to do the same for map mode. Is there any way to embed a [FilterItem] in a class name such that [FilterItem] will appear in an embedded legend? Hope this makes sense, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From christhorne at SYMPATICO.CA Mon Jun 6 15:29:08 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Mon, 6 Jun 2005 18:29:08 -0400 Subject: EPSG code for... Message-ID: Hello all, If you were given the following information for two projections for California LA County region. NAD83 UTM Zone 11 meters NAD27 UTM Zone 11 meters What would be your suggested codes? I have tried a few but can not seem to get it. Thanks Chris -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From dcmikkelsen at SHAW.CA Mon Jun 6 15:32:47 2005 From: dcmikkelsen at SHAW.CA (Dean C. Mikkelsen) Date: Mon, 6 Jun 2005 15:32:47 -0700 Subject: EPSG code for... In-Reply-To: <42A4CE34.1020704@sympatico.ca> Message-ID: Hi Chris, Did you try the following? # NAD27 / UTM zone 11N <26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m no_defs <> # NAD83 / UTM zone 11N <26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m no_defs <> Cheers, Dean Dean C. Mikkelsen, B.Sc.,P.Eng. Consultant, Terra ETL Ltd. North Vancouver, BC Canada Phone: +1 604 929 8630 E-mail: dcmikkelsen at shaw.ca -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher R. Thorne Sent: Monday, June 06, 2005 3:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] EPSG code for... Hello all, If you were given the following information for two projections for California LA County region. NAD83 UTM Zone 11 meters NAD27 UTM Zone 11 meters What would be your suggested codes? I have tried a few but can not seem to get it. Thanks Chris -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From christhorne at SYMPATICO.CA Mon Jun 6 16:10:23 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Mon, 6 Jun 2005 19:10:23 -0400 Subject: EPSG code for... In-Reply-To: <001801c56ae7$aaab9b90$027d5218@GatewayDCM> Message-ID: Yes I used these projections where 26911 NAD 83 is the projection of the mapfile and where NAD27 <26711> is being reprojected. See first attached image to see how messed up the Nad27 layer gets. If I don't define projection you can see the a shift between the line layer and the solid polygon layers. Comments/suggestions?? Thanks Chris Dean C. Mikkelsen wrote: > Hi Chris, > > Did you try the following? > > # NAD27 / UTM zone 11N > <26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m no_defs > <> > > # NAD83 / UTM zone 11N > <26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m no_defs > <> > > Cheers, > Dean > > Dean C. Mikkelsen, B.Sc.,P.Eng. > Consultant, Terra ETL Ltd. > North Vancouver, BC > Canada > Phone: +1 604 929 8630 > E-mail: dcmikkelsen at shaw.ca > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Christopher R. Thorne > Sent: Monday, June 06, 2005 3:29 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] EPSG code for... > > > Hello all, > > If you were given the following information for two projections for > California LA County region. > > > NAD83 UTM Zone 11 meters > > NAD27 UTM Zone 11 meters > > What would be your suggested codes? I have tried a few but can not seem > to get it. > > Thanks > Chris > > -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 -------------- next part -------------- A non-text attachment was scrubbed... Name: reproject1.png Type: image/png Size: 23819 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MapExample_11706scale.png Type: image/png Size: 18759 bytes Desc: not available URL: From dcmikkelsen at SHAW.CA Mon Jun 6 16:24:24 2005 From: dcmikkelsen at SHAW.CA (Dean C. Mikkelsen) Date: Mon, 6 Jun 2005 16:24:24 -0700 Subject: EPSG code for... In-Reply-To: <42A4D7DF.2010807@sympatico.ca> Message-ID: Hi Chris, It may be a directory problem, MapServer is not reading the CONUS or NAD27/NAD83 files correctly in the proj directory. Are you using the MS4W or a later version of MapServer? Cheers, Dean Dean C. Mikkelsen, B.Sc.,P.Eng. Consultant, Terra ETL Ltd. North Vancouver, BC Canada Phone: +1 604 929 8630 E-mail: dcmikkelsen at shaw.ca -----Original Message----- From: Christopher R. Thorne [mailto:christhorne at sympatico.ca] Sent: Monday, June 06, 2005 4:10 PM To: Dean C. Mikkelsen Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... Yes I used these projections where 26911 NAD 83 is the projection of the mapfile and where NAD27 <26711> is being reprojected. See first attached image to see how messed up the Nad27 layer gets. If I don't define projection you can see the a shift between the line layer and the solid polygon layers. Comments/suggestions?? Thanks Chris Dean C. Mikkelsen wrote: > Hi Chris, > > Did you try the following? > > # NAD27 / UTM zone 11N > <26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m > no_defs <> > > # NAD83 / UTM zone 11N > <26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m no_defs > <> > > Cheers, > Dean > > Dean C. Mikkelsen, B.Sc.,P.Eng. > Consultant, Terra ETL Ltd. > North Vancouver, BC > Canada > Phone: +1 604 929 8630 > E-mail: dcmikkelsen at shaw.ca > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Christopher R. Thorne > Sent: Monday, June 06, 2005 3:29 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] EPSG code for... > > > Hello all, > > If you were given the following information for two projections for > California LA County region. > > > NAD83 UTM Zone 11 meters > > NAD27 UTM Zone 11 meters > > What would be your suggested codes? I have tried a few but can not > seem > to get it. > > Thanks > Chris > > -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From bino at INDOAKSES-ONLINE.COM Mon Jun 6 18:35:45 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Tue, 7 Jun 2005 08:35:45 +0700 Subject: ESRI files : Attributes didn't showed Message-ID: Dear All My ESRI files made of (for line layer only): - line.shp - line.shx - line.dbf And here is my (part of) MS map file : ----Start--------------- MAP IMAGETYPE PNG EXTENT 110.999930 -10.000030 115.000030 -6.000000 SIZE 600 600 SHAPEPATH "d:\ms4w\shp" IMAGECOLOR 255 255 255 WEB TEMPLATE '/ms4w/apache/htdocs/bino.html' IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END # Start of LAYER DEFINITIONS --- LAYER # States line layer begins here NAME lay-1 DATA line.shp STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 255 #OUTLINECOLOR 32 32 32 END END # States line layer ends here ----STOP------------------- Using http://terrasip.gis.umn.edu/projects/tutorial/section1.html , The lines showed up. But I can't see the street names. I think the street name is in that line.dbf file. How to show that street names ? Regards -bino- From numerous at GMAIL.COM Mon Jun 6 22:07:23 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Tue, 7 Jun 2005 00:07:23 -0500 Subject: PHP Mapserver zoom levels Message-ID: Hi, Below is my index.php and its contents. In my map file I define a raster (.tif) which displays just fine. Now, I need to be able to zoom in further on the map (and the image), but I'm not able to do it. What should I change in my index.php in order to zoom in further into my map and respectively into my image? I assume it has to do with setting x and y or the extent. Most of the code was written before I came in. Thank you for your help, Yar _____________________________________________ extent->minx; $eminy = $map->extent->miny; $emaxx = $map->extent->maxx; $emaxy = $map->extent->maxy; $ratio_width = ($emaxx - $eminx)/$map->width; $ratio_height = ($emaxy - $eminy)/$map->height; //-------------------------------------------------------------------------- --// // CONNECT TO THE MYSQL DATABASE // $db = mysql_connect('localhost','statewide_root','FFY03'); // mysql_select_db("statewide",$db); // $camnum = mysql_result(mysql_query("select count(*) from mapcamera"),0); // $dmsnum = mysql_result(mysql_query("select count(*) from mapdms"),0); // $incnum = mysql_result(mysql_query("select count(*) from incident"),0); // $worknum= mysql_result(mysql_query("select count(*) from mapworkzone"),0); // //-------------------------------------------------------------------------- --// //--------------------------------------------------------// // FIND OUT THE USER INFORMATION $my_ip = $_GET['my_ip']; $result = mysql_fetch_array(mysql_query("select * from active_users where ipaddress='$my_ip'")); $my_username = $result['user_name']; $result = mysql_fetch_array(mysql_query("select * from multiuser where user_name='$my_username'")); $my_priv_level = $result['user_level']; // changed level='$my_priv_level' to user_name='$my_username' to correct priviledge search RCH 8-8-04 $result = mysql_fetch_array(mysql_query("select priv_status from multiuser_priv where user_name='$my_username' AND priv_code=14")); if ($result['priv_status'] == 'Y') $add_incidents = 1; else $add_incidents = 0; // changed level='$my_priv_level' to user_name='$my_username' to correct priviledge search RCH 8-8-04 $result = mysql_fetch_array(mysql_query("select priv_status from multiuser_priv where user_name='$my_username' AND priv_code=5")); if ($result['priv_status'] == 'Y') $add_workzones = 1; else $add_workzones = 0; //----------------------------------------// // TURNING MAP FEATURES ON AND OFF // $layer1 = $map->getLayerByName("lakes"); // $layer2 = $map->getLayerByName("lakes2"); // $layer3 = $map->getLayerByName("cities"); // $layer4 = $map->getLayerByName("cityl"); // $layer5 = $map->getLayerByName("cityl2"); // $crlayer = $map->getLayerByName("county_sec_roads"); // if ($HTTP_GET_VARS['lakes'] == "on") // { // $layer1->set("status", MS_ON); // $layer2->set("status", MS_ON); // $lakes_on = "checked"; // } // else // { // $layer1->set("status", MS_OFF); // $layer2->set("status", MS_OFF); // } // // if ($HTTP_GET_VARS['cities'] == "on") // { // $layer3->set("status", MS_ON); // $layer4->set("status", MS_ON); // $layer5->set("status", MS_ON); // $cities_on = "checked"; // } // else // { // $layer3->set("status", MS_OFF); // $layer4->set("status", MS_OFF); // $layer5->set("status", MS_OFF); // } // if ($HTTP_GET_VARS['weather'] == "on") // $weather_on = checked; // //----------------------------------------// echo << Statewide MapServer
Zoom In Zoom Out Recenter the Map Zoom Section END; //------------------------------------------------------------------------// // ECHO OUT THE HIDDEN FORM VARIABLES FOR THE HTML echo << END; //------------------------------------------------------------------------// // CHECKING THE ZOOM: if($zoom_factor > 0) { echo ""; echo ""; } else if($zoom_factor == 0) { echo ""; echo ""; } else if($zoom_factor < 0) { echo ""; echo ""; } else { echo ""; } //------------------------------------------------------------------------// echo<<
Cameras: $camnum    DMS: $dmsnum    RTMS: $rtmsnum    Incidents: $incnum    Workzones: $worknum LATITUDE: 
LONGITUDE: 
END; if ($weather_on != "") { echo ""; } echo<<
$dms_menus
Edit Incident

Incident Information:

Edit WorkZone

Workzone Information:

New Incident

Incident Information:

New Workzone

Workzone Information:

LAKES & RIVERS:
CITIES & TOWNS:
WEATHER MAP:
END; ?> From dylan at IICI.NO-IP.ORG Mon Jun 6 23:09:24 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Mon, 6 Jun 2005 23:09:24 -0700 Subject: projection conversion equations Message-ID: Hi, I would like to re-implement some functionality in the DHTML mapserver interface for converting between Lat/Lon to an Albers Equal Area Projection. Currently, I have the proj library doing this for single coordinate pairs, but I would like to integrate this functionality in the form of a JS routine for on-the-fly conversion: much like the existing UTM <->lat/lon conversion. Does anyone have any ideas on where to get started? thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From agomez at CCCMM.CESGA.ES Mon Jun 6 23:40:13 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Tue, 7 Jun 2005 08:40:13 +0200 Subject: Fwd: [UMN_MAPSERVER-USERS] multiple join - shp to dbf Message-ID: Hi Rich, That was the solution, thanks for the answer. Alberto ----- Original Message ----- From: "Richard Greenwood" To: Sent: Friday, June 03, 2005 2:48 PM Subject: [UMN_MAPSERVER-USERS] Fwd: [UMN_MAPSERVER-USERS] multiple join - shp to dbf Alberto Gomez CCCMM.CESGA.ES> writes: > > > ok, i've got my mapserver and the shapefiles in the > web server. I want to join a shapefile with a dbf file what is located in > another server, so i have to get it trough '\\server\GIS\table.dbf'. That's my > problem, with mapserver running in localhost it works great or when the dbf file > is located in my HD, but when i try access from internet i get this error: (Z: > disk is a mapping to a machine called 'server') > > > msOGRFileOpen(): OGR error. ExecuteSQL(SELECT > fshape.*,fdbf.* FROM POLIGONOS fshape LEFT JOIN 'z:/GIS/ESZBAT.DBF'.ESZBAT fdbf > ON fshape.POLIGONO = fdbf.POLIGONO) failed. Unable to open secondary > datasource`z:/GIS/ESZBAT.DBF' required by JOIN. I > have tried with "\\server\gis..." but it no works. It seems to be a privileges > problem as Emil advised to me and I've tried to change in IIS the IUSR_SERVER to > access anonymously by a user who belongs to my domain, even with admin > privileges, but with any result. What about folder > permissions? Any ideas? You would have to give the IIS_USER_webServer user permissions on the "server". The IIS _USER_machineName is not permitted access to any network resources by default. So if you are running mapserver on "webServer" and the data file is on "server", go to "server" and create a user "IIS_USER_webServer" with permissions on the "GIS" directory. A better solution would probably be to write a script to copy the DBF from server to wedServer on a regularly scheduled basis. Regards, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From w.blanken at GEON.NL Tue Jun 7 00:03:28 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Tue, 7 Jun 2005 09:03:28 +0200 Subject: ESRI files : Attributes didn't showed Message-ID: ----- Original Message ----- From: "Wim Blanken" To: "bino_oetomo" Sent: Tuesday, June 07, 2005 9:02 AM Subject: Re: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed > Hello bino, > > You have to use the label object. See the example beneath: > > ..... > LABELITEM "STATE" > CLASS > EXPRESSION 'land' > COLOR 232 232 232 > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial-bold > SIZE 12 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > END..... > > regards, > > Wim Blanken > > > > Look at the example > ----- Original Message ----- > From: "bino_oetomo" > To: > Sent: Tuesday, June 07, 2005 3:35 AM > Subject: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed > > >> Dear All >> >> My ESRI files made of (for line layer only): >> - line.shp >> - line.shx >> - line.dbf >> >> And here is my (part of) MS map file : >> >> ----Start--------------- >> MAP >> IMAGETYPE PNG >> EXTENT 110.999930 -10.000030 115.000030 -6.000000 >> SIZE 600 600 >> SHAPEPATH "d:\ms4w\shp" >> IMAGECOLOR 255 255 255 >> >> WEB >> TEMPLATE '/ms4w/apache/htdocs/bino.html' >> IMAGEPATH '/ms4w/tmp/ms_tmp/' >> IMAGEURL '/ms_tmp/' >> END >> # Start of LAYER DEFINITIONS --- >> LAYER # States line layer begins here >> NAME lay-1 >> DATA line.shp >> STATUS DEFAULT >> TYPE LINE >> >> CLASS >> COLOR 0 0 255 >> #OUTLINECOLOR 32 32 32 >> END >> END # States line layer ends here >> ----STOP------------------- >> >> Using http://terrasip.gis.umn.edu/projects/tutorial/section1.html , >> The lines showed up. >> But I can't see the street names. >> >> I think the street name is in that line.dbf file. >> >> How to show that street names ? >> >> Regards >> -bino- >> >> From mweinelt at PLANIGLOBE.COM Tue Jun 7 00:11:33 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Tue, 7 Jun 2005 09:11:33 +0200 Subject: projection conversion equations In-Reply-To: <2173f0ebe4f4eeaea038a7f8dba7f635@iici.no-ip.org> Message-ID: On Tuesday 07 June 2005 08:09, Dylan Beaudette wrote: > Hi, > > I would like to re-implement some functionality in the DHTML mapserver > interface for converting between Lat/Lon to an Albers Equal Area > Projection. > > Currently, I have the proj library doing this for single coordinate > pairs, but I would like to integrate this functionality in the form of > a JS routine for on-the-fly conversion: much like the existing UTM > <->lat/lon conversion. > > Does anyone have any ideas on where to get started? > > thanks in advance! Dylan, start with " Snyder, J.P, 1987: Map Projections - A Working Manual". There you find the formulas for the projections and you can translate this to JS and boil it down. I did two for a project lately which I attach to give you an idea: Mercator invers and Lambert Azimuthal Equal Area invers: function refSys(radius) { // some useful constants var t=this; t.R=radius; t.halfpi=Math.PI/2; t.R2=t.R*2; t.d2r= Math.PI/180; } var sphere=new refSys(6371000); function invMerc(xn,yn) { var eyr,phi,lam; eyr = Math.pow(Math.E, (yn * -1)/sphere.R); phi = (sphere.halfpi - (2*Math.atan(eyr)))/sphere.d2r; lam = (xn/sphere.R)/sphere.d2r; return [phi,lam]; } function invLaea(xn,yn,asp) { // sphere, polar aspect, lon0=0 var p,c,phi,lam,adj; if (asp=='N') yn*=-1; p = Math.sqrt(Math.pow(xn,2) + Math.pow(yn,2)); if (p==0) return([90,0]); c = 2* Math.asin(p/sphere.R2); phi = Math.asin(Math.cos(c)) / sphere.d2r; (yn<=0&&xn>0)?adj=180:adj=0; // ad-hoc quadrant adjustment (yn<=0&&xn<0)?adj=-180:adj=adj; var lam = Math.atan(xn/yn) / sphere.d2r + adj; return [phi,lam]; } Cheers, Martin From l_gnemmi at YAHOO.FR Tue Jun 7 00:22:41 2005 From: l_gnemmi at YAHOO.FR (ludovic gnemmi) Date: Tue, 7 Jun 2005 09:22:41 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers In-Reply-To: Message-ID: Hi, Thanks for your answer Bart but it still doesn't work...I'm trying with mapserver 4.4.2...Is gml_include_tems include in mapserver 4.4.2? Or i'll have to upgrade to 4.4.6? Ludovic --- Bart van den Eijnden a ?crit : > Hi, > > use: > > gml_include_items "all" > > in the METADATA section of your LAYER. > > Best regards, > Bart > > On Mon, 06 Jun 2005 18:32:03 +0200, ludovic gnemmi > > wrote: > > > Hi all, > > I have a problem configuring WFS-SERVER with > > oraclespatial (Nativ support) layers...Everything > is > > ok when configuring WMS-SERVER on these layers > but i > > still receive an incomplete XML result when i try > a > > getfeature request on my WFS oraclespatial layers > > (without errors). getcapabilitie request is OK. > > getfeature requests are OK on shapefiles. > > > > Here is my mapfile: > > MAP > > NAME "my_wfs" > > EXTENT 868470 83215 965015 165840 > > SIZE 400 300 > > IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > STATUS ON > > UNITS METERS > > FONTSET "path to font" > > SYMBOLSET "path to symbol" > > SHAPEPATH "path to shape" > > > > > > WEB > > IMAGEPATH "path to images" > > IMAGEURL "/ms_tmp/" > > > > METADATA > > "wfs_title" "my_wfs" > > "wfs_onlineresource" > > "http://localhost/cgi-bin/mapserv?map=my_wfs.map&" > > "wfs_srs" "EPSG:27582" > > END > > END > > > > #oracle spatial layer > > > > LAYER > > NAME "bati" > > TYPE POLYGON > > CONNECTIONTYPE oraclespatial > > CONNECTION "usr/pass at DB" > > DATA "GEOM FROM BATIMENT USING SRID NULL" > > DUMP TRUE > > STATUS DEFAULT > > DEBUG ON > > PROJECTION > > "init=epsg:27582" > > END > > METADATA > > "wfs_title" "bati" > > "wfs_extent" "868470 83215 965015 165840" > > END > > > > CLASSITEM "BAT_CODE" > > CLASS > > EXPRESSION "01" > > COLOR 152 152 152 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "02" > > COLOR 202 202 202 > > OUTLINECOLOR 0 0 0 > > END > > > > END > > END > > > > > > > > here the result of a getfeature request on this > layer: > > > ------------------------------------------------------- > > - > > > xsi:schemaLocation="http://www.opengis.net/wfs > > > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > http://www.ttt.org/myns > > > http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > > - > > > > - > > > > - > > > > 874619.370000,112072.490000 > > 875774.930000,113685.950000 > > > > > > > > > > > > --------------------------------------- > > > > > > Has anybody got an idea? > > > > Thanks a lot. > > > > Ludovic > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace > de stockage pour vos > > mails, photos et vid?os ! > > Cr?ez votre Yahoo! Mail sur > http://fr.mail.yahoo.com > > > > > > -- > Using Opera's revolutionary e-mail client: > http://www.opera.com/mail/ > _____________________________________________________________________________ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com From mapserver at HOTMAIL.COM Tue Jun 7 00:32:06 2005 From: mapserver at HOTMAIL.COM (N M) Date: Tue, 7 Jun 2005 07:32:06 +0000 Subject: hyperlink in a map In-Reply-To: Message-ID: This is my definition of symbols in my .map file: LAYER NAME simbols GROUP grup STATUS DEFAULT DATA rectangle TYPE ANNOTATION LABELITEM "SIMB" CLASSITEM "C" CLASS EXPRESSION "3" STYLE COLOR 0 0 0 # dummy color SYMBOL 'symbols/prova.gif' END LABEL MINFEATURESIZE 20 MINDISTANCE 50 POSITION CC SIZE TINY COLOR 255 255 255 END END Where did you put the TEMPLATE instruction here? I tryed it but it didn't run Thanks. Nuri >From: "Steve Lime" >To: , >Subject: Re: [UMN_MAPSERVER-USERS] hyperlink in a map >Date: Mon, 06 Jun 2005 12:45:02 -0500 > >I assume you want to have someone click on the map and go to another >website? If so, that's easy, just use a URL template: > >LAYER > NAME 'my symbols' > TYPE POINT > TEMPLATE 'http://www.google.com' > ... >END > >If a user clicks on any point them they'd be directed to Google. Works with >all feature types (don't know about rasters though) and the template can be >a fixed URL or one dynamically build from attributes. It must start http:// >or https:// or ftp://. > >Steve > > >>> SUBSCRIBE MAPSERVER-USERS Nuri 06/06/05 5:14 >AM >>> >Hi, > >I have a database dbf, with several defined symbols. They appear in my map >when I run mapserver. > >It is possible to insert a hyperlink from those symbols that appear in the >map to an existing URL? If it is, how can do it? What instruction have I >to insert in .map file? > >Thank you. > >Nuri > _________________________________________________________________ Descubre la descarga digital con MSN Music. M?s de medio mill?n de canciones. http://music.msn.es/ From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jun 7 00:34:55 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 7 Jun 2005 09:34:55 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers Message-ID: Okay, my information was 4.6 specific. I was assuming you were using that version. Could you try the latest 4.6 beta? There have also been a lot of improvements made by Fernando in maporaclespatial.c. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> ludovic gnemmi 06/07/05 09:22am >>> Hi, Thanks for your answer Bart but it still doesn't work...I'm trying with mapserver 4.4.2...Is gml_include_tems include in mapserver 4.4.2? Or i'll have to upgrade to 4.4.6? Ludovic --- Bart van den Eijnden a ?crit : > Hi, > > use: > > gml_include_items "all" > > in the METADATA section of your LAYER. > > Best regards, > Bart > > On Mon, 06 Jun 2005 18:32:03 +0200, ludovic gnemmi > > wrote: > > > Hi all, > > I have a problem configuring WFS-SERVER with > > oraclespatial (Nativ support) layers...Everything > is > > ok when configuring WMS-SERVER on these layers > but i > > still receive an incomplete XML result when i try > a > > getfeature request on my WFS oraclespatial layers > > (without errors). getcapabilitie request is OK. > > getfeature requests are OK on shapefiles. > > > > Here is my mapfile: > > MAP > > NAME "my_wfs" > > EXTENT 868470 83215 965015 165840 > > SIZE 400 300 > > IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > STATUS ON > > UNITS METERS > > FONTSET "path to font" > > SYMBOLSET "path to symbol" > > SHAPEPATH "path to shape" > > > > > > WEB > > IMAGEPATH "path to images" > > IMAGEURL "/ms_tmp/" > > > > METADATA > > "wfs_title" "my_wfs" > > "wfs_onlineresource" > > "http://localhost/cgi-bin/mapserv?map=my_wfs.map&" > > "wfs_srs" "EPSG:27582" > > END > > END > > > > #oracle spatial layer > > > > LAYER > > NAME "bati" > > TYPE POLYGON > > CONNECTIONTYPE oraclespatial > > CONNECTION "usr/pass at DB" > > DATA "GEOM FROM BATIMENT USING SRID NULL" > > DUMP TRUE > > STATUS DEFAULT > > DEBUG ON > > PROJECTION > > "init=epsg:27582" > > END > > METADATA > > "wfs_title" "bati" > > "wfs_extent" "868470 83215 965015 165840" > > END > > > > CLASSITEM "BAT_CODE" > > CLASS > > EXPRESSION "01" > > COLOR 152 152 152 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "02" > > COLOR 202 202 202 > > OUTLINECOLOR 0 0 0 > > END > > > > END > > END > > > > > > > > here the result of a getfeature request on this > layer: > > > ------------------------------------------------------- > > - > > > xsi:schemaLocation="http://www.opengis.net/wfs > > > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > http://www.ttt.org/myns > > > http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > > - > > > > - > > > > - > > > > 874619.370000,112072.490000 > > 875774.930000,113685.950000 > > > > > > > > > > > > --------------------------------------- > > > > > > Has anybody got an idea? > > > > Thanks a lot. > > > > Ludovic > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace > de stockage pour vos > > mails, photos et vid?os ! > > Cr?ez votre Yahoo! Mail sur > http://fr.mail.yahoo.com > > > > > > -- > Using Opera's revolutionary e-mail client: > http://www.opera.com/mail/ > _____________________________________________________________________________ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Jun 7 00:38:19 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 7 Jun 2005 09:38:19 +0200 Subject: Installation of MapServer In-Reply-To: Message-ID: hi list, I have downloaded - mapserver-4.4.2.tar.gz: source code/demo and - mapserver-4.6.0-beta3.tar.gz: source code from the homepage (http://mapserver.gis.umn.edu/dload.html). In the install tutorial http://terrasip.gis.umn.edu/projects/tutorial/install.html I should copy the mapserv.exe. But there isn?t such a file in the downloadet archives!?!?!? What do I have to do for installing the WMS? btw. I am using a win2000 platform and a xamp with a tomcat as local test server. pls help! - thanks a lot - Leopold From w.blanken at GEON.NL Tue Jun 7 00:46:37 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Tue, 7 Jun 2005 09:46:37 +0200 Subject: Installation of MapServer Message-ID: Hello Leopold, You have to use the windows binaries and not the files you downloaded. for example: http://mapserver.gis.umn.edu/win32bin/ms441pg.zip Regards, Wim Blanken ----- Original Message ----- From: "Leopold Schefcik (MULTIMEDIAPLAN.AT)" To: Sent: Tuesday, June 07, 2005 9:38 AM Subject: [UMN_MAPSERVER-USERS] Installation of MapServer > hi list, > > I have downloaded > - mapserver-4.4.2.tar.gz: source code/demo > and > - mapserver-4.6.0-beta3.tar.gz: source code > from the homepage (http://mapserver.gis.umn.edu/dload.html). > > In the install tutorial > http://terrasip.gis.umn.edu/projects/tutorial/install.html I should copy > the > mapserv.exe. > But there isn?t such a file in the downloadet archives!?!?!? > > What do I have to do for installing the WMS? > > btw. I am using a win2000 platform and a xamp with a tomcat as local test > server. > > pls help! - thanks a lot - Leopold > > From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jun 7 00:44:24 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 7 Jun 2005 09:44:24 +0200 Subject: Installation of MapServer Message-ID: Hi, you need to download the Windows binaries, you downloaded the C sources. You can download from eg: section Binary Packages - Win32 http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Leopold Schefcik (MULTIMEDIAPLAN.AT)" 06/07/05 09:38am >>> hi list, I have downloaded - mapserver-4.4.2.tar.gz: source code/demo and - mapserver-4.6.0-beta3.tar.gz: source code from the homepage (http://mapserver.gis.umn.edu/dload.html). In the install tutorial http://terrasip.gis.umn.edu/projects/tutorial/install.html I should copy the mapserv.exe. But there isn t such a file in the downloadet archives!?!?!? What do I have to do for installing the WMS? btw. I am using a win2000 platform and a xamp with a tomcat as local test server. pls help! - thanks a lot - Leopold From adams at TERRESTRIS.DE Tue Jun 7 00:45:40 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 7 Jun 2005 09:45:40 +0200 Subject: Installation of MapServer In-Reply-To: Message-ID: Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote: >hi list, > >I have downloaded > - mapserver-4.4.2.tar.gz: source code/demo >and > - mapserver-4.6.0-beta3.tar.gz: source code >from the homepage (http://mapserver.gis.umn.edu/dload.html). > >In the install tutorial >http://terrasip.gis.umn.edu/projects/tutorial/install.html I should copy the >mapserv.exe. >But there isn?t such a file in the downloadet archives!?!?!? > >What do I have to do for installing the WMS? > >btw. I am using a win2000 platform and a xamp with a tomcat as local test >server. > >pls help! - thanks a lot - Leopold > > Leopold, you've downloaded the source code. This is for self compiling. If you need a pre-compiled windows binary ,then go to the umn downnload page and have a look further down, there you get the win binaries - or use the very good ms4w from the maptools.org page. See you at the AGIT? Greetings, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From oraakel at GMAIL.COM Tue Jun 7 01:26:42 2005 From: oraakel at GMAIL.COM (Erki Veersalu) Date: Tue, 7 Jun 2005 11:26:42 +0300 Subject: Performance issue on labeling Message-ID: Hi again, I have made some more testing. I corrected my dataset, removed road segments without label and joinded ones with the same label. If I map only road layer (2600 rows in DB) in defined place it's genereted: without labels ->0,18 sec with labels -> 0,54 sec with outlined labels ->1,45 sec Why takes outlined labeling 3 times more time than without outlines? Could there be anything wrong in my MapServer installation? Thank you in advance, Erki Veersalu On 6/6/05, Erki Veersalu wrote: > Dear MapServer users, > > I need help for improving speed of my web-application. I would really > appreciate if someone could comment following issue. > I'm using MapServer for displaying road network with labels over > PostGis,Postgresql. Database is not that big, but making a GIF file of > only roads (~200000 road segments) with angular true type labeling > takes ~3 sec. If I don't use labeling it's 0,5 sec and with bitmap > labels it's 0,6 sec > Mapserver is running on Solaris 9. > > Why is labeling so slow? What can I do to speed up generation of an image? > > mapserv -v > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > map file: > MAP > NAME tuwa > STATUS ON > IMAGETYPE GIF > SIZE 400 300 > EXTENT -876000 1330000 2230000 3650000 > SHAPEPATH "/usr/local/apache2/htdocs/mapserver/tuwa/data/" > FONTSET "/usr/local/apache2/htdocs/mapserver/tuwa/data/fonts/fonts.list" > UNITS METERS > > WEB > IMAGEPATH "/usr/local/apache2/htdocs/mapserver/tmp/" > IMAGEURL "/mapserver/tmp/" > END > > SCALEBAR > STATUS on > INTERVALS 4 > SIZE 200 2 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS kilometers > LABEL > COLOR 0 0 0 > SIZE small > END > END > > LAYER > NAME A40 > STATUS default > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=tuwa" > DATA "the_geom from streets" > TYPE line > LABELITEM "name" > LABELMAXSCALE 45000 > CLASS > SYMBOL 0 > COLOR 150 150 150 > MAXSCALE 50000 > LABEL > TYPE TRUETYPE > FONT "arial" > SIZE 9 > MINSIZE 8 > MAXSIZE 10 > FORCE FALSE > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > POSITION cc > ANGLE auto > ANTIALIAS TRUE > MINFEATURESIZE 3 > MINDISTANCE 100 > PARTIALS TRUE > END > END > END > END > > Erki Veersalu > Estonia > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bino at INDOAKSES-ONLINE.COM Tue Jun 7 01:28:20 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Tue, 7 Jun 2005 15:28:20 +0700 Subject: ESRI files : Attributes didn't showed Message-ID: Hello Wim, Thanks for your enlightment. Well i have to comment-out some line ... i think it caused by my PC configuration. I Use MS4W ... I think I have to read more docs. Can you give me URL to docs that contain deep explanation and variation of all MapFile lines per line ? Regards -bino- ----- Original Message ----- From: "Wim Blanken" To: Sent: Tuesday, June 07, 2005 2:03 PM Subject: Re: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed > ----- Original Message ----- > From: "Wim Blanken" > To: "bino_oetomo" > Sent: Tuesday, June 07, 2005 9:02 AM > Subject: Re: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed > > > > Hello bino, > > > > You have to use the label object. See the example beneath: > > > > ..... > > LABELITEM "STATE" > > CLASS > > EXPRESSION 'land' > > COLOR 232 232 232 > > LABEL > > COLOR 132 31 31 > > SHADOWCOLOR 218 218 218 > > SHADOWSIZE 2 2 > > TYPE TRUETYPE > > FONT arial-bold > > SIZE 12 > > ANTIALIAS TRUE > > POSITION CL > > PARTIALS FALSE > > MINDISTANCE 300 > > BUFFER 4 > > END # end of label > > END..... > > > > regards, > > > > Wim Blanken > > > > > > > > Look at the example > > ----- Original Message ----- > > From: "bino_oetomo" > > To: > > Sent: Tuesday, June 07, 2005 3:35 AM > > Subject: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed > > > > > >> Dear All > >> > >> My ESRI files made of (for line layer only): > >> - line.shp > >> - line.shx > >> - line.dbf > >> > >> And here is my (part of) MS map file : > >> > >> ----Start--------------- > >> MAP > >> IMAGETYPE PNG > >> EXTENT 110.999930 -10.000030 115.000030 -6.000000 > >> SIZE 600 600 > >> SHAPEPATH "d:\ms4w\shp" > >> IMAGECOLOR 255 255 255 > >> > >> WEB > >> TEMPLATE '/ms4w/apache/htdocs/bino.html' > >> IMAGEPATH '/ms4w/tmp/ms_tmp/' > >> IMAGEURL '/ms_tmp/' > >> END > >> # Start of LAYER DEFINITIONS --- > >> LAYER # States line layer begins here > >> NAME lay-1 > >> DATA line.shp > >> STATUS DEFAULT > >> TYPE LINE > >> > >> CLASS > >> COLOR 0 0 255 > >> #OUTLINECOLOR 32 32 32 > >> END > >> END # States line layer ends here > >> ----STOP------------------- > >> > >> Using http://terrasip.gis.umn.edu/projects/tutorial/section1.html , > >> The lines showed up. > >> But I can't see the street names. > >> > >> I think the street name is in that line.dbf file. > >> > >> How to show that street names ? > >> > >> Regards > >> -bino- > >> > >> > From steve at SJK.NET.AU Tue Jun 7 01:52:14 2005 From: steve at SJK.NET.AU (Stephen Kelly) Date: Tue, 7 Jun 2005 18:52:14 +1000 Subject: mapserver error In-Reply-To: <20050606163741.63115.qmail@web33606.mail.mud.yahoo.com> Message-ID: Ron, The first place I would be looking is your projection file, there is some mention of it in the paperwork, where it must go - if it is in the correct spot look at your security settings. Hope this helps Steve -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ron Neogi Sent: Tuesday, 7 June 2005 2:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver error Invoking this : http://mydomain.com/cgi-bin/mapserv-old?map=example1-1.map&mode=map Gives this error: N "%s" : Unable to access file. rojection() What am I doing wrong? Help please ... can't go any further ! Ron __________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ From w.blanken at GEON.NL Tue Jun 7 03:12:25 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Tue, 7 Jun 2005 12:12:25 +0200 Subject: ESRI files : Attributes didn't showed Message-ID: Hello Bino, Well, I'm sure you know the main mapfile doc (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html) I do not know if a better mapfile document exists. I learned mapserver mainly by looking at the tutorials. By the way this summer some books regarding mapserver will be published. You can search for them using f.e. google. Succes and regards, Wim Blanken ----- Original Message ----- From: "bino_oetomo" To: Sent: Tuesday, June 07, 2005 10:28 AM Subject: Re: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed > Hello Wim, > > Thanks for your enlightment. > Well i have to comment-out some line ... i think it caused by my PC > configuration. > I Use MS4W ... > > I think I have to read more docs. > Can you give me URL to docs that contain deep explanation and variation of > all MapFile lines per line ? > > Regards > -bino- > > ----- Original Message ----- > From: "Wim Blanken" > To: > Sent: Tuesday, June 07, 2005 2:03 PM > Subject: Re: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed > > >> ----- Original Message ----- >> From: "Wim Blanken" >> To: "bino_oetomo" >> Sent: Tuesday, June 07, 2005 9:02 AM >> Subject: Re: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed >> >> >> > Hello bino, >> > >> > You have to use the label object. See the example beneath: >> > >> > ..... >> > LABELITEM "STATE" >> > CLASS >> > EXPRESSION 'land' >> > COLOR 232 232 232 >> > LABEL >> > COLOR 132 31 31 >> > SHADOWCOLOR 218 218 218 >> > SHADOWSIZE 2 2 >> > TYPE TRUETYPE >> > FONT arial-bold >> > SIZE 12 >> > ANTIALIAS TRUE >> > POSITION CL >> > PARTIALS FALSE >> > MINDISTANCE 300 >> > BUFFER 4 >> > END # end of label >> > END..... >> > >> > regards, >> > >> > Wim Blanken >> > >> > >> > >> > Look at the example >> > ----- Original Message ----- >> > From: "bino_oetomo" >> > To: >> > Sent: Tuesday, June 07, 2005 3:35 AM >> > Subject: [UMN_MAPSERVER-USERS] ESRI files : Attributes didn't showed >> > >> > >> >> Dear All >> >> >> >> My ESRI files made of (for line layer only): >> >> - line.shp >> >> - line.shx >> >> - line.dbf >> >> >> >> And here is my (part of) MS map file : >> >> >> >> ----Start--------------- >> >> MAP >> >> IMAGETYPE PNG >> >> EXTENT 110.999930 -10.000030 115.000030 -6.000000 >> >> SIZE 600 600 >> >> SHAPEPATH "d:\ms4w\shp" >> >> IMAGECOLOR 255 255 255 >> >> >> >> WEB >> >> TEMPLATE '/ms4w/apache/htdocs/bino.html' >> >> IMAGEPATH '/ms4w/tmp/ms_tmp/' >> >> IMAGEURL '/ms_tmp/' >> >> END >> >> # Start of LAYER DEFINITIONS --- >> >> LAYER # States line layer begins here >> >> NAME lay-1 >> >> DATA line.shp >> >> STATUS DEFAULT >> >> TYPE LINE >> >> >> >> CLASS >> >> COLOR 0 0 255 >> >> #OUTLINECOLOR 32 32 32 >> >> END >> >> END # States line layer ends here >> >> ----STOP------------------- >> >> >> >> Using http://terrasip.gis.umn.edu/projects/tutorial/section1.html , >> >> The lines showed up. >> >> But I can't see the street names. >> >> >> >> I think the street name is in that line.dbf file. >> >> >> >> How to show that street names ? >> >> >> >> Regards >> >> -bino- >> >> >> >> >> > > From aborruso at TIN.IT Tue Jun 7 03:54:10 2005 From: aborruso at TIN.IT (andy) Date: Tue, 7 Jun 2005 05:54:10 -0500 Subject: line legend elements Message-ID: Dear all, I would like to have line legend elements as straight line (not zig-zag). Is it possible? Moreover is it possible to choose a particular image and associate it to an element of a dinamic legend? If yes, how? Thank you very much, Andrea From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Jun 7 04:29:13 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 7 Jun 2005 13:29:13 +0200 Subject: WMS + ArcExplorer 4.0.1 Message-ID: hi list, ArcExplorer 4.0.1 and the extention to geht a WMS into.... 1. with this url I only get the layers in the legend, but no map: http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map& 2. with this url I get the eroor message: http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms?SERVIC E=WMS&VERSION=1.1.1&REQUEST=GetCapabilities the message: "Invalid Capabilities File. Check Server Url." why? :-( Leopold From leopold.schefcik at MULTIMEDIAPLAN.AT Tue Jun 7 04:31:37 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 7 Jun 2005 13:31:37 +0200 Subject: UMN - Installation 2 In-Reply-To: Message-ID: I have installed xamp(with an Appache) and a Tomcat ad on. So I tried to install the umn server: 1. Copy files to C:/MapServer 2. Copy Mapserc.exe to C:/appachefriends/xamp/cgi-bin/ and C:/xamp/xamp/cgi-bin/ 3. Copy Proj to C:/Proj 5. Copy .dll files to C:/winnt/system32/ 6. Restart Xamp and tomcat but url http://localhost/cgi-bin does not exist. :-( Leopold From w.blanken at GEON.NL Tue Jun 7 05:06:05 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Tue, 7 Jun 2005 14:06:05 +0200 Subject: UMN - Installation 2 Message-ID: Hello Leopold, XAMPP defaults it's cgi-bin directory to xampp\cgi-bin\ Have you tried http://localhost/cgi-bin/mapserv.exe? You should then get the famous Querystring not set message which states that mapserver can be called from that directory...... Maybe you forgot the / after cgi-bin? Regards Wim Blanken ----- Original Message ----- From: "Leopold Schefcik (MULTIMEDIAPLAN.AT)" To: Sent: Tuesday, June 07, 2005 1:31 PM Subject: [UMN_MAPSERVER-USERS] UMN - Installation 2 >I have installed xamp(with an Appache) and a Tomcat ad on. > > So I tried to install the umn server: > 1. Copy files to C:/MapServer > 2. Copy Mapserc.exe to C:/appachefriends/xamp/cgi-bin/ > and C:/xamp/xamp/cgi-bin/ > 3. Copy Proj to C:/Proj > 5. Copy .dll files to C:/winnt/system32/ > 6. Restart Xamp and tomcat but url http://localhost/cgi-bin does not > exist. > > :-( Leopold > > From christhorne at SYMPATICO.CA Tue Jun 7 05:25:54 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Tue, 7 Jun 2005 08:25:54 -0400 Subject: EPSG code for... In-Reply-To: <002201c56aee$e015c150$027d5218@GatewayDCM> Message-ID: Dean C. Mikkelsen wrote: > Hi Chris, > > It may be a directory problem, MapServer is not reading the CONUS or > NAD27/NAD83 files correctly in the proj directory. > > Are you using the MS4W or a later version of MapServer? I am using the latest version of ms4w, with Chameleon using MapServer 4.4.2 Any suggestions? > > Cheers, > Dean > > Dean C. Mikkelsen, B.Sc.,P.Eng. > Consultant, Terra ETL Ltd. > North Vancouver, BC > Canada > Phone: +1 604 929 8630 > E-mail: dcmikkelsen at shaw.ca > > > > -----Original Message----- > From: Christopher R. Thorne [mailto:christhorne at sympatico.ca] > Sent: Monday, June 06, 2005 4:10 PM > To: Dean C. Mikkelsen > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > > Yes I used these projections where > > 26911 NAD 83 is the projection of the mapfile and where NAD27 <26711> is > > being reprojected. > > See first attached image to see how messed up the Nad27 layer gets. > > If I don't define projection you can see the a shift between the line > layer and the solid polygon layers. > > Comments/suggestions?? > > Thanks > Chris > > Dean C. Mikkelsen wrote: > >>Hi Chris, >> >>Did you try the following? >> >># NAD27 / UTM zone 11N >><26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m >>no_defs <> >> >># NAD83 / UTM zone 11N >><26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m no_defs > > >><> >> >>Cheers, >>Dean >> >>Dean C. Mikkelsen, B.Sc.,P.Eng. >>Consultant, Terra ETL Ltd. >>North Vancouver, BC >>Canada >>Phone: +1 604 929 8630 >>E-mail: dcmikkelsen at shaw.ca >> >> >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>On Behalf Of Christopher R. Thorne >>Sent: Monday, June 06, 2005 3:29 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] EPSG code for... >> >> >>Hello all, >> >>If you were given the following information for two projections for >>California LA County region. >> >> >>NAD83 UTM Zone 11 meters >> >>NAD27 UTM Zone 11 meters >> >>What would be your suggested codes? I have tried a few but can not >>seem >>to get it. >> >>Thanks >>Chris >> >> > > > -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From oven38 at VOLJA.NET Tue Jun 7 05:24:43 2005 From: oven38 at VOLJA.NET (oven38) Date: Tue, 7 Jun 2005 14:24:43 +0200 Subject: line legend elements In-Reply-To: Message-ID: For more information see at http://mapserver.gis.umn.edu/doc44/cartographic-symbols.html Alfred andy wrote: > Dear all, > I would like to have line legend elements as straight line (not zig-zag). Is > it possible? > Moreover is it possible to choose a particular image and associate it to an > element of a dinamic legend? > If yes, how? > > Thank you very much, > > Andrea > From lfilak at MEDINACO.ORG Tue Jun 7 05:27:46 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 7 Jun 2005 08:27:46 -0400 Subject: line legend elements Message-ID: The following message was sent by andy on Tue, 7 Jun 2005 05:54:10 -0500. > Dear all, > I would like to have line legend elements as straight line (not zig-zag). Is > it possible? > Moreover is it possible to choose a particular image and associate it to an > element of a dinamic legend? > If yes, how? > > Thank you very much, Andrea, You will want to look at the html legend howto. http://mapserver.gis.umn.edu/doc44/html-legend-howto.html#template-file Using a legend template you can specify the image, text, & etc. HTH Lowell From pramsey at REFRACTIONS.NET Tue Jun 7 06:27:42 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 7 Jun 2005 06:27:42 -0700 Subject: WMS + ArcExplorer 4.0.1 In-Reply-To: Message-ID: Leopold, Probably a question for ESRI, not for open source projects. Both mapserver and deegree pass the CITE tests for WMS compliance. You client (ArcExplorer) just happens to be fragile, ESRI should have done a more careful job and more testing. Paul On 7-Jun-05, at 4:29 AM, Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote: > hi list, > ArcExplorer 4.0.1 and the extention to geht a WMS into.... > > 1. with this url I only get the layers in the legend, but no map: > http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map& > > 2. with this url I get the eroor message: > http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/ > wms?SERVIC > E=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > the message: "Invalid Capabilities File. Check Server Url." > > why? :-( > Leopold > From pf at MAPMEDIA.DE Tue Jun 7 07:30:48 2005 From: pf at MAPMEDIA.DE (Peter Freimuth (MapMedia GmbH)) Date: Tue, 7 Jun 2005 16:30:48 +0200 Subject: line legend elements In-Reply-To: Message-ID: andy schrieb: >Dear all, >I would like to have line legend elements as straight line (not zig-zag). Is >it possible? >Moreover is it possible to choose a particular image and associate it to an >element of a dinamic legend? >If yes, how? > >Thank you very much, > >Andrea > > Hey Andrea, you can choose your own legend icon with the KEYIMAGE Parameter in the CLASS Section of your MAPFILE. ... CLASS NAME 'huhu' KEYIMAGE 'path/keyimage.png' END ... With Mapserver 4.4 this works in with static and also html-legends. -- Mit freundlichem Gru? Peter Freimuth _________________________________________________ MapMedia GmbH Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From aborruso at TIN.IT Tue Jun 7 08:33:02 2005 From: aborruso at TIN.IT (andy) Date: Tue, 7 Jun 2005 10:33:02 -0500 Subject: line legend elements Message-ID: Dear all, thank you to all. The right solution for me has been to use KEYIMAGE parameter. What do you think to insert KEYIMAGE parameter use in documentation ;-) Thank you again, andy From dylan at IICI.NO-IP.ORG Tue Jun 7 09:20:38 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Tue, 7 Jun 2005 09:20:38 -0700 Subject: projection conversion equations In-Reply-To: <200506070911.33955.mweinelt@planiglobe.com> Message-ID: On Jun 7, 2005, at 12:11 AM, Martin Weinelt wrote: > On Tuesday 07 June 2005 08:09, Dylan Beaudette wrote: >> Hi, >> >> I would like to re-implement some functionality in the DHTML mapserver >> interface for converting between Lat/Lon to an Albers Equal Area >> Projection. >> >> Currently, I have the proj library doing this for single coordinate >> pairs, but I would like to integrate this functionality in the form of >> a JS routine for on-the-fly conversion: much like the existing UTM >> <->lat/lon conversion. >> >> Does anyone have any ideas on where to get started? >> >> thanks in advance! > > Dylan, > > start with " Snyder, J.P, 1987: Map Projections - A Working Manual". > There you find the formulas for the projections and you can translate > this to JS and boil it down. I did two for a project lately which I > attach > to give you an idea: Mercator invers and Lambert Azimuthal Equal Area > invers: > > function refSys(radius) { // some useful constants > var t=this; > t.R=radius; > t.halfpi=Math.PI/2; > t.R2=t.R*2; > t.d2r= Math.PI/180; > } > var sphere=new refSys(6371000); > > function invMerc(xn,yn) { > var eyr,phi,lam; > eyr = Math.pow(Math.E, (yn * -1)/sphere.R); > phi = (sphere.halfpi - (2*Math.atan(eyr)))/sphere.d2r; > lam = (xn/sphere.R)/sphere.d2r; > return [phi,lam]; > } > > function invLaea(xn,yn,asp) { // sphere, polar aspect, lon0=0 > var p,c,phi,lam,adj; > if (asp=='N') yn*=-1; > p = Math.sqrt(Math.pow(xn,2) + Math.pow(yn,2)); > if (p==0) return([90,0]); > c = 2* Math.asin(p/sphere.R2); > phi = Math.asin(Math.cos(c)) / sphere.d2r; > (yn<=0&&xn>0)?adj=180:adj=0; // ad-hoc quadrant adjustment > (yn<=0&&xn<0)?adj=-180:adj=adj; > var lam = Math.atan(xn/yn) / sphere.d2r + adj; > return [phi,lam]; > } > > Cheers, Martin > > Martin, thank you very much for the literature reference, this is exactly what i was looking for. I have located the book in my school's library, and will pour over it this week. thanks again for the example code as well! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From m5 at RENEFOURNIER.COM Tue Jun 7 09:58:22 2005 From: m5 at RENEFOURNIER.COM (=?ISO-8859-1?Q?Ren=E9_Fournier?=) Date: Tue, 7 Jun 2005 10:58:22 -0600 Subject: Mac OS X binaries update [ Reverse Geocoding ? ] In-Reply-To: Message-ID: A question about Mapserver on Mac OS X... Is anyone using it for reverse geocoding of Canadian lat/long into street addresses? That's actually my interest right now in learning/building Mapserver on OS X. I realize it's not really so much an OS issue, but thought it might be interesting to hear of your experiences doing this on Mac. Thanks! ...Rene From ealpert at DIGITALGLOBE.COM Tue Jun 7 10:00:16 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 7 Jun 2005 11:00:16 -0600 Subject: WMS + ArcExplorer 4.0.1 Message-ID: Ask for your money back. Arc is horrible at OGC support. MapInfo 7.8 though is much better for OGC. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Leopold Schefcik (MULTIMEDIAPLAN.AT) Sent: Tuesday, June 07, 2005 5:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS + ArcExplorer 4.0.1 hi list, ArcExplorer 4.0.1 and the extention to geht a WMS into.... 1. with this url I only get the layers in the legend, but no map: http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map& 2. with this url I get the eroor message: http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms?SE RVIC E=WMS&VERSION=1.1.1&REQUEST=GetCapabilities the message: "Invalid Capabilities File. Check Server Url." why? :-( Leopold From bartvde at XS4ALL.NL Tue Jun 7 10:38:30 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 7 Jun 2005 19:38:30 +0200 Subject: WMS + ArcExplorer 4.0.1 In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CBD4@COMAIL01.digitalglobe.com> Message-ID: Money back? ArcExplorer is free :-) Best regards, Bart On Tue, 07 Jun 2005 19:00:16 +0200, Ethan Alpert wrote: > Ask for your money back. Arc is horrible at OGC support. MapInfo 7.8 > though is much better for OGC. > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Leopold Schefcik (MULTIMEDIAPLAN.AT) > Sent: Tuesday, June 07, 2005 5:29 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WMS + ArcExplorer 4.0.1 > > > hi list, > ArcExplorer 4.0.1 and the extention to geht a WMS into.... > > 1. with this url I only get the layers in the legend, but no map: > http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map& > > 2. with this url I get the eroor message: > http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms?SE > RVIC > E=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > the message: "Invalid Capabilities File. Check Server Url." > > why? :-( > Leopold > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Tue Jun 7 10:52:57 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 7 Jun 2005 19:52:57 +0200 Subject: call for SVG apps Message-ID: Hi list, has anybody done SVG apps using the new Mapserver SVG functionality that they would like to share? I'd hate to build from scratch on this one. Thanks in advance. Best regards, Bart -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From dfuster at REPSAT.COM Tue Jun 7 11:27:51 2005 From: dfuster at REPSAT.COM (Dante Fuster) Date: Tue, 7 Jun 2005 13:27:51 -0500 Subject: RV: RV: [FGS] install in server HP AMD with 64 bits Message-ID: Hello. I am working with mapserver and php_mapscript for 2 years ago, generally in environment Windows and using my libraries in PHP to facilitate processes, and IIS 5 or more. Recently install using FGS (facilitated the installation a lot) in Linux RedHat 4 of 64 bits, i need to copy some libraries of 32 bits manually, for the operation of PHP and php_mapscript, and work correctly. The problem that I have is when I connect from a PC Windows with IE, to the page, to the moment to show the APPLET show the message (of java) requesting user and password, could somebody tell me for that can be happening?, the server is APACHE (not restriccions). Greetings Dante Fuster From kenlord at GMAIL.COM Tue Jun 7 12:44:19 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 7 Jun 2005 12:44:19 -0700 Subject: EPSG code for... In-Reply-To: <42A59252.2010601@sympatico.ca> Message-ID: Dean, Make sure you have the Proj software installed, there's information about it here: http://www.maptools.org/maplab/index.phtml?page=maplab_windows.txt and here: http://www.remotesensing.org/proj/ If you haven't already, grab the windows binaries, unzip and place the Proj folder on your C drive. C:/Proj Cheers, Ken Lord Vancouver BC On 6/7/05, Christopher R. Thorne wrote: > > Dean C. Mikkelsen wrote: > > Hi Chris, > > > > It may be a directory problem, MapServer is not reading the CONUS or > > NAD27/NAD83 files correctly in the proj directory. > > > > Are you using the MS4W or a later version of MapServer? > > I am using the latest version of ms4w, with Chameleon using MapServer > 4.4.2 > > Any suggestions? > > > > > Cheers, > > Dean > > > > Dean C. Mikkelsen, B.Sc.,P.Eng. > > Consultant, Terra ETL Ltd. > > North Vancouver, BC > > Canada > > Phone: +1 604 929 8630 > > E-mail: dcmikkelsen at shaw.ca > > > > > > > > -----Original Message----- > > From: Christopher R. Thorne [mailto:christhorne at sympatico.ca] > > Sent: Monday, June 06, 2005 4:10 PM > > To: Dean C. Mikkelsen > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > > > > > Yes I used these projections where > > > > 26911 NAD 83 is the projection of the mapfile and where NAD27 <26711> is > > > > being reprojected. > > > > See first attached image to see how messed up the Nad27 layer gets. > > > > If I don't define projection you can see the a shift between the line > > layer and the solid polygon layers. > > > > Comments/suggestions?? > > > > Thanks > > Chris > > > > Dean C. Mikkelsen wrote: > > > >>Hi Chris, > >> > >>Did you try the following? > >> > >># NAD27 / UTM zone 11N > >><26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m > >>no_defs <> > >> > >># NAD83 / UTM zone 11N > >><26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m no_defs > > > > > >><> > >> > >>Cheers, > >>Dean > >> > >>Dean C. Mikkelsen, B.Sc.,P.Eng. > >>Consultant, Terra ETL Ltd. > >>North Vancouver, BC > >>Canada > >>Phone: +1 604 929 8630 > >>E-mail: dcmikkelsen at shaw.ca > >> > >> > >> > >>-----Original Message----- > >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >>On Behalf Of Christopher R. Thorne > >>Sent: Monday, June 06, 2005 3:29 PM > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>Subject: [UMN_MAPSERVER-USERS] EPSG code for... > >> > >> > >>Hello all, > >> > >>If you were given the following information for two projections for > >>California LA County region. > >> > >> > >>NAD83 UTM Zone 11 meters > >> > >>NAD27 UTM Zone 11 meters > >> > >>What would be your suggested codes? I have tried a few but can not > >>seem > >>to get it. > >> > >>Thanks > >>Chris > >> > >> > > > > > > > > > -- > Christopher R. Thorne, GIS Specialist > -- > 3406 Southgate Rd. Ottawa ON K1V 9P9 > christhorne at sympatico.ca > Tel:(613)523-6593 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at DMSOLUTIONS.CA Tue Jun 7 12:49:17 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Tue, 7 Jun 2005 15:49:17 -0400 Subject: Performance issue on labeling In-Reply-To: <5154c56005060701264096ee5c@mail.gmail.com> Message-ID: Hi, The reason mapserver outlining is slower is that the outline is made by drawing the label 8 more times. To do a good outline, mapserver have to draw the label in all 8 directions in the color of the outline and then draw the label in the good color at the right place. This gives a perfect 1 pixel outline. Even if it seems inefficient, this is what is suggest on the freetype mailing-list. In bug 1243, there's 3 patch to use the freetype outlining options. It use a development version of freetype, though. The official release does not include this functionality. See the bug for more details. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1243 Thanks Julien On 06/07/2005 04:26 AM, Erki Veersalu wrote: > > Hi again, > > I have made some more testing. I corrected my dataset, removed road > segments without label and joinded ones with the same label. > If I map only road layer (2600 rows in DB) in defined place it's genereted: > without labels ->0,18 sec > with labels -> 0,54 sec > with outlined labels ->1,45 sec > > Why takes outlined labeling 3 times more time than without outlines? > Could there be anything wrong in my MapServer installation? > > Thank you in advance, > Erki Veersalu > > > > On 6/6/05, Erki Veersalu > > wrote: > > Dear MapServer users, > > > > I need help for improving speed of my web-application. I would really > > appreciate if someone could comment following issue. > > I'm using MapServer for displaying road network with labels over > > PostGis,Postgresql. Database is not that big, but making a GIF file of > > only roads (~200000 road segments) with angular true type labeling > > takes ~3 sec. If I don't use labeling it's 0,5 sec and with bitmap > > labels it's 0,6 sec > > Mapserver is running on Solaris 9. > > > > Why is labeling so slow? What can I do to speed up generation of an > image? > > > > mapserv -v > > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > map file: > > MAP > > NAME tuwa > > STATUS ON > > IMAGETYPE GIF > > SIZE 400 300 > > EXTENT -876000 1330000 2230000 3650000 > > SHAPEPATH "/usr/local/apache2/htdocs/mapserver/tuwa/data/" > > FONTSET > "/usr/local/apache2/htdocs/mapserver/tuwa/data/fonts/fonts.list" > > UNITS METERS > > > > WEB > > IMAGEPATH "/usr/local/apache2/htdocs/mapserver/tmp/" > > IMAGEURL "/mapserver/tmp/" > > END > > > > SCALEBAR > > STATUS on > > INTERVALS 4 > > SIZE 200 2 > > COLOR 0 0 0 > > OUTLINECOLOR 0 0 0 > > UNITS kilometers > > LABEL > > COLOR 0 0 0 > > SIZE small > > END > > END > > > > LAYER > > NAME A40 > > STATUS default > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres dbname=tuwa" > > DATA "the_geom from streets" > > TYPE line > > LABELITEM "name" > > LABELMAXSCALE 45000 > > CLASS > > SYMBOL 0 > > COLOR 150 150 150 > > MAXSCALE 50000 > > LABEL > > TYPE TRUETYPE > > FONT "arial" > > SIZE 9 > > MINSIZE 8 > > MAXSIZE 10 > > FORCE FALSE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 255 > > POSITION cc > > ANGLE auto > > ANTIALIAS TRUE > > MINFEATURESIZE 3 > > MINDISTANCE 100 > > PARTIALS TRUE > > END > > END > > END > > END > > > > Erki Veersalu > > Estonia > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From flo at RFC822.ORG Tue Jun 7 13:16:51 2005 From: flo at RFC822.ORG (Florian Lohoff) Date: Tue, 7 Jun 2005 22:16:51 +0200 Subject: projection offset gps vs lcc Message-ID: Hi, as i only start getting a clue about all the datum/projection problems i am a bit stuck here. I got mapserver running fine with postgis and ~5GB vector Data. All except one layer and also output projection are: PROJECTION "proj=lcc" "lat_1=48.6666666666667" "lat_2=53.6666666666667" "lat_0=51.0" "lon_0=10.5" "x_0=0" "y_0=0" "ellps=bessel" "units=m" "no_defs" END Converted from this entry via testepsg (Which had the bug to forget Central_Parallel as i found out after days of debugging - Now i set lat_0 to 51.0). PROJCS["WIGeoDE",GEOGCS["GCS_Deutsches_Hauptdreiecksnetz", DATUM["D_Deutsches_Hauptdreiecksnetz", SPHEROID["Bessel_1841",6377397.155,299.1528128]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",0.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",10.5], PARAMETER["Standard_Parallel_1",48.6666666666667], PARAMETER["Standard_Parallel_2",53.6666666666667], PARAMETER["Central_Parallel",51.0], UNIT["Meter",1.0]] Now i have some GPS data i'd like to drop on top - So i converted the GPS Data with "gen2shp" to a line shape file (Waypoints) and added the layer like this: DATA "kis" PROJECTION "+proj=longlat" "+ellps=WGS84" "+datum=WGS84" "+no_defs" END Now i have the problem that the GPS data is approx. 40m shifted West and 200m South. Just applying an offset would be the easy task but i'd like to get a clue whats going wrong. Data is around lat 51.8318777 lon 8.46963456666666 Flo PS: Debian/GNU/Linux ii mapserver-bin 4.4.1-2 mapserver binary utilities ii libpostgis1-pg 1.0.0-1 geographic objects support for PostgreSQL ii postgresql 7.4.7-6sarge1 object-relational SQL database management sy ii libgdal1 1.2.6-1 Geospatial Data Abstraction Library -- Florian Lohoff flo at rfc822.org +49-171-2280134 Heisenberg may have been here. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From john.cole at UAI.COM Tue Jun 7 13:44:31 2005 From: john.cole at UAI.COM (John Cole) Date: Tue, 7 Jun 2005 15:44:31 -0500 Subject: symbol changes between 4.4 and 4.6b2? Message-ID: I was trying out 4.6b2 and one of my map files was showing some strange symbols. I'm attaching a png of how it looks in 4.4 and 4.6b2 and a snippet from my map file. Has there been an intentional change here? Thanks, John Cole --------------------------------------- LAYER DATA "Community_Center" GROUP Landmarks TYPE POINT MAXSCALE 24000 LABELMAXSCALE 10000 STATUS DEFAULT LABELITEM "Name_R" CLASS NAME 'Community Center' COLOR 0 0 0 SYMBOL 'square' SIZE 5 STYLE SYMBOL "square" SIZE 3 COLOR 255 255 255 END STYLE SYMBOL "square" SIZE 1 COLOR 0 0 0 END LABEL COLOR 0 0 102 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION CR FORCE TRUE END END END ---------------------------------------------------- ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: ms46b2.png Type: application/octet-stream Size: 38441 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms44.png Type: application/octet-stream Size: 38547 bytes Desc: not available URL: From gabrial.casey at GMAIL.COM Tue Jun 7 13:59:14 2005 From: gabrial.casey at GMAIL.COM (G Casey) Date: Tue, 7 Jun 2005 15:59:14 -0500 Subject: MAP 2 PIXEL Message-ID: Does anyone have a formula converting a point back to pixels based on the extent of the map and height and width of the image ?? Thanks in advance. --G Casey From sangho at CS.UMN.EDU Tue Jun 7 13:59:05 2005 From: sangho at CS.UMN.EDU (Sangho Kim) Date: Tue, 7 Jun 2005 15:59:05 -0500 Subject: Unable to select IMAGETYPE 'PNG' error Message-ID: Hi all, This is the first time I am sending my question to mapserver forum. I installed mapserver correctly and try to run workshop demo. If I initialize the 'Basic Application' of Itasca demo, it turns out that msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `PNG'. I searched forum archives, but there is no clear answer. Someone suggested to convert symbols/ctyhwy.gif to symbols/ctyhwy.png and pinpoint it, but it's already there and pointed in the map file. Someone suggested to run ./mapserv -v to see OUTPUT=PNG. But, when I run ./mapserv.cgi -v, I see ld.so.1: ./mapserv.cgi: fatal: libiconv.so.2: open failed: No such file or directory Killed error message. Due to the webserver configuration, I changed mapserv to mapserv.cgi. Someone suggested to change the IMAGETYPE in the map file to one of the supported formats. So, I change PNG to JPG or GIF. Now I see msLoadMap(): General error message. Undefined overlay symbol "symbols/ctyhwy.png" in class 0, style 0 of layer ctyrdln3_anno. msAddImageSymbol(): General error message. Unable to load PNG symbol. I think many forum users encountered this problem. If someone can help me, it will be very helpful to me. Sangho From dm at S-AND-A.COM Tue Jun 7 20:58:30 2005 From: dm at S-AND-A.COM (Dean C. Mikkelsen) Date: Tue, 7 Jun 2005 20:58:30 -0700 Subject: EPSG code for... In-Reply-To: <55dd01fa05060712444fa14109@mail.gmail.com> Message-ID: Hi Ken, Thanks for the information. The other problem I was looking at is that it may be a State Plane Coordinate System as well. California is divided into many zones and the dataset being worked with did not include some of the projection information. Cheers, Dean Consultant, Terra ETL Ltd. North Vancouver, BC Canada Phone: +1 604 929 8630 E-mail: dcmikkelsen at shaw.ca -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Tuesday, June 07, 2005 12:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... Dean, Make sure you have the Proj software installed, there's information about it here: http://www.maptools.org/maplab/index.phtml?page=maplab_windows.txt and here: http://www.remotesensing.org/proj/ If you haven't already, grab the windows binaries, unzip and place the Proj folder on your C drive. C:/Proj Cheers, Ken Lord Vancouver BC On 6/7/05, Christopher R. Thorne wrote: Dean C. Mikkelsen wrote: > Hi Chris, > > It may be a directory problem, MapServer is not reading the CONUS or > NAD27/NAD83 files correctly in the proj directory. > > Are you using the MS4W or a later version of MapServer? I am using the latest version of ms4w, with Chameleon using MapServer 4.4.2 Any suggestions? > > Cheers, > Dean > > Dean C. Mikkelsen, B.Sc.,P.Eng. > Consultant, Terra ETL Ltd. > North Vancouver, BC > Canada > Phone: +1 604 929 8630 > E-mail: dcmikkelsen at shaw.ca > > > > -----Original Message----- > From: Christopher R. Thorne [mailto:christhorne at sympatico.ca ] > Sent: Monday, June 06, 2005 4:10 PM > To: Dean C. Mikkelsen > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > > Yes I used these projections where > > 26911 NAD 83 is the projection of the mapfile and where NAD27 <26711> is > > being reprojected. > > See first attached image to see how messed up the Nad27 layer gets. > > If I don't define projection you can see the a shift between the line > layer and the solid polygon layers. > > Comments/suggestions?? > > Thanks > Chris > > Dean C. Mikkelsen wrote: > >>Hi Chris, >> >>Did you try the following? >> >># NAD27 / UTM zone 11N >><26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m >>no_defs <> >> >># NAD83 / UTM zone 11N >><26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m no_defs > > >><> >> >>Cheers, >>Dean >> >>Dean C. Mikkelsen, B.Sc.,P.Eng. >>Consultant, Terra ETL Ltd. >>North Vancouver, BC >>Canada >>Phone: +1 604 929 8630 >>E-mail: dcmikkelsen at shaw.ca >> >> >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU ] >>On Behalf Of Christopher R. Thorne >>Sent: Monday, June 06, 2005 3:29 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] EPSG code for... >> >> >>Hello all, >> >>If you were given the following information for two projections for >>California LA County region. >> >> >>NAD83 UTM Zone 11 meters >> >>NAD27 UTM Zone 11 meters >> >>What would be your suggested codes? I have tried a few but can not >>seem >>to get it. >> >>Thanks >>Chris >> >> > > > -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 -------------- next part -------------- An HTML attachment was scrubbed... URL: From l_gnemmi at YAHOO.FR Tue Jun 7 23:58:36 2005 From: l_gnemmi at YAHOO.FR (ludovic gnemmi) Date: Wed, 8 Jun 2005 08:58:36 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers In-Reply-To: Message-ID: Hi, I'm now testing with mapserver 4.6 beta3. I still receive nothing with getfeature request on oraclespatial layers (i can see that oracle is processing the requests). And i'm now receiving an uncomplete xml file when testing wms capabilities (stoped on a ?crit : > Okay, my information was 4.6 specific. I was > assuming you were using that version. > > Could you try the latest 4.6 beta? There have also > been a lot of improvements made by Fernando in > maporaclespatial.c. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> ludovic gnemmi 06/07/05 > 09:22am >>> > Hi, > Thanks for your answer Bart but it still doesn't > work...I'm trying with mapserver 4.4.2...Is > gml_include_tems include in mapserver 4.4.2? Or i'll > have to upgrade to 4.4.6? > > Ludovic > > --- Bart van den Eijnden a ?crit > : > > > Hi, > > > > use: > > > > gml_include_items "all" > > > > in the METADATA section of your LAYER. > > > > Best regards, > > Bart > > > > On Mon, 06 Jun 2005 18:32:03 +0200, ludovic gnemmi > > > > wrote: > > > > > Hi all, > > > I have a problem configuring WFS-SERVER with > > > oraclespatial (Nativ support) > layers...Everything > > is > > > ok when configuring WMS-SERVER on these layers > > but i > > > still receive an incomplete XML result when i > try > > a > > > getfeature request on my WFS oraclespatial > layers > > > (without errors). getcapabilitie request is OK. > > > getfeature requests are OK on shapefiles. > > > > > > Here is my mapfile: > > > MAP > > > NAME "my_wfs" > > > EXTENT 868470 83215 965015 165840 > > > SIZE 400 300 > > > IMAGETYPE PNG > > > IMAGECOLOR 255 255 255 > > > STATUS ON > > > UNITS METERS > > > FONTSET "path to font" > > > SYMBOLSET "path to symbol" > > > SHAPEPATH "path to shape" > > > > > > > > > WEB > > > IMAGEPATH "path to images" > > > IMAGEURL "/ms_tmp/" > > > > > > METADATA > > > "wfs_title" "my_wfs" > > > "wfs_onlineresource" > > > > "http://localhost/cgi-bin/mapserv?map=my_wfs.map&" > > > "wfs_srs" "EPSG:27582" > > > END > > > END > > > > > > #oracle spatial layer > > > > > > LAYER > > > NAME "bati" > > > TYPE POLYGON > > > CONNECTIONTYPE oraclespatial > > > CONNECTION "usr/pass at DB" > > > DATA "GEOM FROM BATIMENT USING SRID NULL" > > > DUMP TRUE > > > STATUS DEFAULT > > > DEBUG ON > > > PROJECTION > > > "init=epsg:27582" > > > END > > > METADATA > > > "wfs_title" "bati" > > > "wfs_extent" "868470 83215 965015 165840" > > > END > > > > > > CLASSITEM "BAT_CODE" > > > CLASS > > > EXPRESSION "01" > > > COLOR 152 152 152 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "02" > > > COLOR 202 202 202 > > > OUTLINECOLOR 0 0 0 > > > END > > > > > > END > > > END > > > > > > > > > > > > here the result of a getfeature request on this > > layer: > > > > > > ------------------------------------------------------- > > > - > > > > > xsi:schemaLocation="http://www.opengis.net/wfs > > > > > > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > > > http://www.ttt.org/myns > > > > > > http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > > > - > > > > > > - > > > > > > - > > > > > > 874619.370000,112072.490000 > > > 875774.930000,113685.950000 > > > > > > > > > > > > > > > > > > --------------------------------------- > > > > > > > > > Has anybody got an idea? > > > > > > Thanks a lot. > > > > > > Ludovic > > > > > > > > > > > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > > > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace > > de stockage pour vos > > > mails, photos et vid?os ! > > > Cr?ez votre Yahoo! Mail sur > > http://fr.mail.yahoo.com > > > > > > > > > > > -- > > Using Opera's revolutionary e-mail client: > > http://www.opera.com/mail/ > > > > > > > > > > _____________________________________________________________________________ > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de > stockage pour vos mails, photos et vid?os ! > Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > _____________________________________________________________________________ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 8 00:17:23 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 8 Jun 2005 09:17:23 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers Message-ID: It seems that all aspects which communicate with Oracle fail. I had a look at your original post and the GML created only contained the wfs_extent values you put in the MAP file. So probably all communication with Oracle is failing. The WMS capabilities now use a function to calculate the boundingbox. If you use a wms_extent metadata it will probably be complete. Are you able to get normal maps? I hope Fernando Simon can help you further. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> ludovic gnemmi 06/08/05 08:58am >>> Hi, I'm now testing with mapserver 4.6 beta3. I still receive nothing with getfeature request on oraclespatial layers (i can see that oracle is processing the requests). And i'm now receiving an uncomplete xml file when testing wms capabilities (stoped on a ?crit : > Okay, my information was 4.6 specific. I was > assuming you were using that version. > > Could you try the latest 4.6 beta? There have also > been a lot of improvements made by Fernando in > maporaclespatial.c. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> ludovic gnemmi 06/07/05 > 09:22am >>> > Hi, > Thanks for your answer Bart but it still doesn't > work...I'm trying with mapserver 4.4.2...Is > gml_include_tems include in mapserver 4.4.2? Or i'll > have to upgrade to 4.4.6? > > Ludovic > > --- Bart van den Eijnden a ?crit > : > > > Hi, > > > > use: > > > > gml_include_items "all" > > > > in the METADATA section of your LAYER. > > > > Best regards, > > Bart > > > > On Mon, 06 Jun 2005 18:32:03 +0200, ludovic gnemmi > > > > wrote: > > > > > Hi all, > > > I have a problem configuring WFS-SERVER with > > > oraclespatial (Nativ support) > layers...Everything > > is > > > ok when configuring WMS-SERVER on these layers > > but i > > > still receive an incomplete XML result when i > try > > a > > > getfeature request on my WFS oraclespatial > layers > > > (without errors). getcapabilitie request is OK. > > > getfeature requests are OK on shapefiles. > > > > > > Here is my mapfile: > > > MAP > > > NAME "my_wfs" > > > EXTENT 868470 83215 965015 165840 > > > SIZE 400 300 > > > IMAGETYPE PNG > > > IMAGECOLOR 255 255 255 > > > STATUS ON > > > UNITS METERS > > > FONTSET "path to font" > > > SYMBOLSET "path to symbol" > > > SHAPEPATH "path to shape" > > > > > > > > > WEB > > > IMAGEPATH "path to images" > > > IMAGEURL "/ms_tmp/" > > > > > > METADATA > > > "wfs_title" "my_wfs" > > > "wfs_onlineresource" > > > > "http://localhost/cgi-bin/mapserv?map=my_wfs.map&" > > > "wfs_srs" "EPSG:27582" > > > END > > > END > > > > > > #oracle spatial layer > > > > > > LAYER > > > NAME "bati" > > > TYPE POLYGON > > > CONNECTIONTYPE oraclespatial > > > CONNECTION "usr/pass at DB" > > > DATA "GEOM FROM BATIMENT USING SRID NULL" > > > DUMP TRUE > > > STATUS DEFAULT > > > DEBUG ON > > > PROJECTION > > > "init=epsg:27582" > > > END > > > METADATA > > > "wfs_title" "bati" > > > "wfs_extent" "868470 83215 965015 165840" > > > END > > > > > > CLASSITEM "BAT_CODE" > > > CLASS > > > EXPRESSION "01" > > > COLOR 152 152 152 > > > OUTLINECOLOR 0 0 0 > > > END > > > CLASS > > > EXPRESSION "02" > > > COLOR 202 202 202 > > > OUTLINECOLOR 0 0 0 > > > END > > > > > > END > > > END > > > > > > > > > > > > here the result of a getfeature request on this > > layer: > > > > > > ------------------------------------------------------- > > > - > > > > > xsi:schemaLocation="http://www.opengis.net/wfs > > > > > > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > > > http://www.ttt.org/myns > > > > > > http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1...0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > > > - > > > > > > - > > > > > > - > > > > > > 874619.370000,112072.490000 > > > 875774.930000,113685.950000 > > > > > > > > > > > > > > > > > > --------------------------------------- > > > > > > > > > Has anybody got an idea? > > > > > > Thanks a lot. > > > > > > Ludovic > > > > > > > > > > > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > > > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace > > de stockage pour vos > > > mails, photos et vid?os ! > > > Cr?ez votre Yahoo! Mail sur > > http://fr.mail.yahoo.com > > > > > > > > > > > -- > > Using Opera's revolutionary e-mail client: > > http://www.opera.com/mail/ > > > > > > > > > > _____________________________________________________________________________ > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de > stockage pour vos mails, photos et vid?os ! > Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > _____________________________________________________________________________ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com From l_gnemmi at YAHOO.FR Wed Jun 8 00:59:41 2005 From: l_gnemmi at YAHOO.FR (ludovic gnemmi) Date: Wed, 8 Jun 2005 09:59:41 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers In-Reply-To: Message-ID: Bart, You were right with MWS...I hat to add "wms_extent" on each layer to make WMS works with MS 4.6...I can now view all my layers with wms:) But still can't see oracle layers with WFS. I don't think communication failing with oracle...I see oracle is processing when sending WFS getfeature request. And i still can see oracle layers with Mapserver in normal use. Thanks. Ludovic --- Bart van den Eijnden a ?crit : > It seems that all aspects which communicate with > Oracle fail. I had a look at your original post and > the GML created only contained the wfs_extent values > you put in the MAP file. So probably all > communication with Oracle is failing. > > The WMS capabilities now use a function to calculate > the boundingbox. If you use a wms_extent metadata it > will probably be complete. > > Are you able to get normal maps? > > I hope Fernando Simon can help you further. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> ludovic gnemmi 06/08/05 > 08:58am >>> > Hi, > I'm now testing with mapserver 4.6 beta3. I still > receive nothing with getfeature request on > oraclespatial layers (i can see that oracle is > processing the requests). > > And i'm now receiving an uncomplete xml file when > testing wms capabilities (stoped on queryable=). > > On more thing, i see a new message in my apache > error > log : "In msCleanupOnSignal". ??? > > Ludovic > > > > --- Bart van den Eijnden > > a ?crit : > > > Okay, my information was 4.6 specific. I was > > assuming you were using that version. > > > > Could you try the latest 4.6 beta? There have also > > been a lot of improvements made by Fernando in > > maporaclespatial.c. > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr.: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> ludovic gnemmi 06/07/05 > > 09:22am >>> > > Hi, > > Thanks for your answer Bart but it still doesn't > > work...I'm trying with mapserver 4.4.2...Is > > gml_include_tems include in mapserver 4.4.2? Or > i'll > > have to upgrade to 4.4.6? > > > > Ludovic > > > > --- Bart van den Eijnden a > ?crit > > : > > > > > Hi, > > > > > > use: > > > > > > gml_include_items "all" > > > > > > in the METADATA section of your LAYER. > > > > > > Best regards, > > > Bart > > > > > > On Mon, 06 Jun 2005 18:32:03 +0200, ludovic > gnemmi > > > > > > wrote: > > > > > > > Hi all, > > > > I have a problem configuring WFS-SERVER with > > > > oraclespatial (Nativ support) > > layers...Everything > > > is > > > > ok when configuring WMS-SERVER on these layers > > > but i > > > > still receive an incomplete XML result when i > > try > > > a > > > > getfeature request on my WFS oraclespatial > > layers > > > > (without errors). getcapabilitie request is > OK. > > > > getfeature requests are OK on shapefiles. > > > > > > > > Here is my mapfile: > > > > MAP > > > > NAME "my_wfs" > > > > EXTENT 868470 83215 965015 165840 > > > > SIZE 400 300 > > > > IMAGETYPE PNG > > > > IMAGECOLOR 255 255 255 > > > > STATUS ON > > > > UNITS METERS > > > > FONTSET "path to font" > > > > SYMBOLSET "path to symbol" > > > > SHAPEPATH "path to shape" > > > > > > > > > > > > WEB > > > > IMAGEPATH "path to images" > > > > IMAGEURL "/ms_tmp/" > > > > > > > > METADATA > > > > "wfs_title" "my_wfs" > > > > "wfs_onlineresource" > > > > > > "http://localhost/cgi-bin/mapserv?map=my_wfs.map&" > > > > "wfs_srs" "EPSG:27582" > > > > END > > > > END > > > > > > > > #oracle spatial layer > > > > > > > > LAYER > > > > NAME "bati" > > > > TYPE POLYGON > > > > CONNECTIONTYPE oraclespatial > > > > CONNECTION "usr/pass at DB" > > > > DATA "GEOM FROM BATIMENT USING SRID NULL" > > > > DUMP TRUE > > > > STATUS DEFAULT > > > > DEBUG ON > > > > PROJECTION > > > > "init=epsg:27582" > > > > END > > > > METADATA > > > > "wfs_title" "bati" > > > > "wfs_extent" "868470 83215 965015 165840" > > > > END > > > > > > > > CLASSITEM "BAT_CODE" > > > > CLASS > > > > EXPRESSION "01" > > > > COLOR 152 152 152 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > CLASS > > > > EXPRESSION "02" > > > > COLOR 202 202 202 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > > > > > END > > > > END > > > > > > > > > > > > > > > > here the result of a getfeature request on > this > > > layer: > > > > > > > > > > ------------------------------------------------------- > > > > - > > > > > > > xsi:schemaLocation="http://www.opengis.net/wfs > > > > > > > > > > > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > > > > > > > http://www.ttt.org/myns > > > > > > > > > > http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1...0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > > > > - > > > > > > > > - > > > > > > > > - > > > > > > > > 874619.370000,112072.490000 > > > > 875774.930000,113685.950000 > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------- > > > > > > > > > > > > Has anybody got an idea? > > > > > > > > Thanks a lot. > > > > > > > > Ludovic > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > > > > D?couvrez le nouveau Yahoo! Mail : 1 Go > d'espace > > > de stockage pour vos > > > > mails, photos et vid?os ! > > > > Cr?ez votre Yahoo! Mail sur > > > http://fr.mail.yahoo.com > > > > > > > > > > > > > > > > -- > > > Using Opera's revolutionary e-mail client: > > > http://www.opera.com/mail/ > > > > > > > > > > > > > > > > > > > > _____________________________________________________________________________ > > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace > de > > stockage pour vos mails, photos et vid?os ! > > Cr?ez votre Yahoo! Mail sur > http://fr.mail.yahoo.com > > > > > > > > > > > > _____________________________________________________________________________ > D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de > stockage pour vos mails, photos et vid?os ! > Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com > _____________________________________________________________________________ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com From ferencik.ioan at PERSONAL.RO Wed Jun 8 02:16:00 2005 From: ferencik.ioan at PERSONAL.RO (Jano Ferencik) Date: Wed, 8 Jun 2005 12:16:00 +0300 Subject: JOIN dbf to shp Message-ID: Hi list, I am trying to do a join for a point type shapefile. Rhe problem is that when I query the shapfile the columns contains no data though the DBF file contains the data.....any suggestions? Thanks ___________________________ Cv-ul tau ia 500 euro/luna! http://500.myjob.ro From fsimon at UNIVALI.BR Wed Jun 8 04:44:07 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 8 Jun 2005 08:44:07 -0300 Subject: Problem configuring WFS-SERVER on oraclespatial layers In-Reply-To: <20050608075942.21292.qmail@web25406.mail.ukl.yahoo.com> Message-ID: Hi Ludovic and Bart, About the problem with WFS (I'm not a specialist in WFS) did you check all the metadata parameters? (upper case/lower case) You can check all the messages that Mapserver request to Oracle server using a debug flag (inf mapfile and configure for mapserver). You need to specify a "--enable-debug" for configure and DEBUG parameter for layer and MAP in you mapfile. Using this way all of actions and SQL appear in apache error log. I recommend to pass the UNIQUE parameter in your DATA definition. In UNIQUE parameter you define the column that store the unique values (usually primary key) for your table. This is necessary for retrieve the correct data from database. You can specify like this: (null SRID is default when you don't specify) DATA "GEOM FROM BATIMENT USING UNIQUE " example DATA "GEOM FROM BATIMENT USING UNIQUE BATIMENT_ID" Can you change the data and test the result for this case? Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ ludovic gnemmi wrote: >Bart, >You were right with MWS...I hat to add "wms_extent" on >each layer to make WMS works with MS 4.6...I can now >view all my layers with wms:) >But still can't see oracle layers with WFS. >I don't think communication failing with oracle...I >see oracle is processing when sending WFS getfeature >request. And i still can see oracle layers with >Mapserver in normal use. > >Thanks. > >Ludovic > > > >--- Bart van den Eijnden >a ?crit : > > > >>It seems that all aspects which communicate with >>Oracle fail. I had a look at your original post and >>the GML created only contained the wfs_extent values >>you put in the MAP file. So probably all >>communication with Oracle is failing. >> >>The WMS capabilities now use a function to calculate >>the boundingbox. If you use a wms_extent metadata it >>will probably be complete. >> >>Are you able to get normal maps? >> >>I hope Fernando Simon can help you further. >> >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera IT Solutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>>ludovic gnemmi 06/08/05 >>>>> >>>>> >>08:58am >>> >>Hi, >>I'm now testing with mapserver 4.6 beta3. I still >>receive nothing with getfeature request on >>oraclespatial layers (i can see that oracle is >>processing the requests). >> >>And i'm now receiving an uncomplete xml file when >>testing wms capabilities (stoped on >queryable=). >> >>On more thing, i see a new message in my apache >>error >>log : "In msCleanupOnSignal". ??? >> >>Ludovic >> >> >> >>--- Bart van den Eijnden >> >>a ?crit : >> >> >> >>>Okay, my information was 4.6 specific. I was >>>assuming you were using that version. >>> >>>Could you try the latest 4.6 beta? There have also >>>been a lot of improvements made by Fernando in >>>maporaclespatial.c. >>> >>>Best regards, >>>Bart >>> >>>Bart van den Eijnden >>>Syncera IT Solutions >>>Postbus 270 >>>2600 AG DELFT >>> >>>tel.nr.: 015-7512436 >>>email: BEN at Syncera-ITSolutions.nl >>> >>> >>> >>>>>>ludovic gnemmi 06/07/05 >>>>>> >>>>>> >>>09:22am >>> >>>Hi, >>>Thanks for your answer Bart but it still doesn't >>>work...I'm trying with mapserver 4.4.2...Is >>>gml_include_tems include in mapserver 4.4.2? Or >>> >>> >>i'll >> >> >>>have to upgrade to 4.4.6? >>> >>>Ludovic >>> >>>--- Bart van den Eijnden a >>> >>> >>?crit >> >> >>>: >>> >>> >>> >>>>Hi, >>>> >>>>use: >>>> >>>>gml_include_items "all" >>>> >>>>in the METADATA section of your LAYER. >>>> >>>>Best regards, >>>>Bart >>>> >>>>On Mon, 06 Jun 2005 18:32:03 +0200, ludovic >>>> >>>> >>gnemmi >> >> >>>> >>>>wrote: >>>> >>>> >>>> >>>>>Hi all, >>>>>I have a problem configuring WFS-SERVER with >>>>>oraclespatial (Nativ support) >>>>> >>>>> >>>layers...Everything >>> >>> >>>>is >>>> >>>> >>>>>ok when configuring WMS-SERVER on these layers >>>>> >>>>> >>>>but i >>>> >>>> >>>>>still receive an incomplete XML result when i >>>>> >>>>> >>>try >>> >>> >>>>a >>>> >>>> >>>>>getfeature request on my WFS oraclespatial >>>>> >>>>> >>>layers >>> >>> >>>>>(without errors). getcapabilitie request is >>>>> >>>>> >>OK. >> >> >>>>>getfeature requests are OK on shapefiles. >>>>> >>>>>Here is my mapfile: >>>>>MAP >>>>> NAME "my_wfs" >>>>> EXTENT 868470 83215 965015 165840 >>>>> SIZE 400 300 >>>>> IMAGETYPE PNG >>>>> IMAGECOLOR 255 255 255 >>>>> STATUS ON >>>>> UNITS METERS >>>>> FONTSET "path to font" >>>>> SYMBOLSET "path to symbol" >>>>> SHAPEPATH "path to shape" >>>>> >>>>> >>>>>WEB >>>>> IMAGEPATH "path to images" >>>>> IMAGEURL "/ms_tmp/" >>>>> >>>>>METADATA >>>>> "wfs_title" "my_wfs" >>>>> "wfs_onlineresource" >>>>> >>>>> >>>>> >>>"http://localhost/cgi-bin/mapserv?map=my_wfs.map&" >>> >>> >>>>> "wfs_srs" "EPSG:27582" >>>>>END >>>>>END >>>>> >>>>>#oracle spatial layer >>>>> >>>>>LAYER >>>>>NAME "bati" >>>>>TYPE POLYGON >>>>>CONNECTIONTYPE oraclespatial >>>>>CONNECTION "usr/pass at DB" >>>>>DATA "GEOM FROM BATIMENT USING SRID NULL" >>>>>DUMP TRUE >>>>>STATUS DEFAULT >>>>>DEBUG ON >>>>>PROJECTION >>>>>"init=epsg:27582" >>>>>END >>>>>METADATA >>>>>"wfs_title" "bati" >>>>>"wfs_extent" "868470 83215 965015 165840" >>>>>END >>>>> >>>>>CLASSITEM "BAT_CODE" >>>>>CLASS >>>>> EXPRESSION "01" >>>>> COLOR 152 152 152 >>>>> OUTLINECOLOR 0 0 0 >>>>>END >>>>>CLASS >>>>> EXPRESSION "02" >>>>> COLOR 202 202 202 >>>>> OUTLINECOLOR 0 0 0 >>>>>END >>>>> >>>>>END >>>>>END >>>>> >>>>> >>>>> >>>>>here the result of a getfeature request on >>>>> >>>>> >>this >> >> >>>>layer: >>>> >>>> >------------------------------------------------------- > > >>>>>- >>>>> >>>>xsi:schemaLocation="http://www.opengis.net/wfs >>>>> >>>>> >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > >>>>> >>>>> >>>>> >>http://www.ttt.org/myns >> >> >http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1...0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > > >>>>>- >>>>> >>>>>- >>>>> >>>>>- >>>>> >>>>>874619.370000,112072.490000 >>>>>875774.930000,113685.950000 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>--------------------------------------- >>>>> >>>>> >>>>>Has anybody got an idea? >>>>> >>>>>Thanks a lot. >>>>> >>>>>Ludovic >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >_____________________________________________________________________________ > > >>>>>D?couvrez le nouveau Yahoo! Mail : 1 Go >>>>> >>>>> >>d'espace >> >> >>>>de stockage pour vos >>>> >>>> >>>>>mails, photos et vid?os ! >>>>>Cr?ez votre Yahoo! Mail sur >>>>> >>>>> >>>>http://fr.mail.yahoo.com >>>> >>>> >>>> >>>>-- >>>>Using Opera's revolutionary e-mail client: >>>>http://www.opera.com/mail/ >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >_____________________________________________________________________________ > > >>>D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace >>> >>> >>de >> >> >>>stockage pour vos mails, photos et vid?os ! >>>Cr?ez votre Yahoo! Mail sur >>> >>> >>http://fr.mail.yahoo.com >> >> >>> >>> >> >> >> >> >> >> >> >> >_____________________________________________________________________________ > > >>D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de >>stockage pour vos mails, photos et vid?os ! >>Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com >> >> >> > > > > > > > >_____________________________________________________________________________ >D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! >Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > > From fx.prunayre at OIEAU.FR Wed Jun 8 05:15:09 2005 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Wed, 8 Jun 2005 14:15:09 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers In-Reply-To: <42A6DA07.8050707@univali.br> Message-ID: Hi Fernando and Ludovic, I was facing the same problem with WFS GetFeature and WMS GetFeatureInfo. USING UNIQUE solved the problem for all my Oracle Spatial layers. Works well with Mapinfo client or Chameleon. But it seems that has to be a number. Is Varchar2 datatype supported ? Thanks. Fran?ois -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fernando Simon Envoy? : mercredi 8 juin 2005 13:44 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Problem configuring WFS-SERVER on oraclespatial layers Hi Ludovic and Bart, About the problem with WFS (I'm not a specialist in WFS) did you check all the metadata parameters? (upper case/lower case) You can check all the messages that Mapserver request to Oracle server using a debug flag (inf mapfile and configure for mapserver). You need to specify a "--enable-debug" for configure and DEBUG parameter for layer and MAP in you mapfile. Using this way all of actions and SQL appear in apache error log. I recommend to pass the UNIQUE parameter in your DATA definition. In UNIQUE parameter you define the column that store the unique values (usually primary key) for your table. This is necessary for retrieve the correct data from database. You can specify like this: (null SRID is default when you don't specify) DATA "GEOM FROM BATIMENT USING UNIQUE " example DATA "GEOM FROM BATIMENT USING UNIQUE BATIMENT_ID" Can you change the data and test the result for this case? Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ ludovic gnemmi wrote: >Bart, >You were right with MWS...I hat to add "wms_extent" on each layer to >make WMS works with MS 4.6...I can now view all my layers with wms:) >But still can't see oracle layers with WFS. >I don't think communication failing with oracle...I see oracle is >processing when sending WFS getfeature request. And i still can see >oracle layers with Mapserver in normal use. > >Thanks. > >Ludovic > > > >--- Bart van den Eijnden a ?crit : > > > >>It seems that all aspects which communicate with Oracle fail. I had a >>look at your original post and the GML created only contained the >>wfs_extent values you put in the MAP file. So probably all >>communication with Oracle is failing. >> >>The WMS capabilities now use a function to calculate the boundingbox. >>If you use a wms_extent metadata it will probably be complete. >> >>Are you able to get normal maps? >> >>I hope Fernando Simon can help you further. >> >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera IT Solutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>>ludovic gnemmi 06/08/05 >>>>> >>>>> >>08:58am >>> >>Hi, >>I'm now testing with mapserver 4.6 beta3. I still receive nothing with >>getfeature request on oraclespatial layers (i can see that oracle is >>processing the requests). >> >>And i'm now receiving an uncomplete xml file when testing wms >>capabilities (stoped on > >>On more thing, i see a new message in my apache error log : "In >>msCleanupOnSignal". ??? >> >>Ludovic >> >> >> >>--- Bart van den Eijnden >> >>a ?crit : >> >> >> >>>Okay, my information was 4.6 specific. I was assuming you were using >>>that version. >>> >>>Could you try the latest 4.6 beta? There have also been a lot of >>>improvements made by Fernando in maporaclespatial.c. >>> >>>Best regards, >>>Bart >>> >>>Bart van den Eijnden >>>Syncera IT Solutions >>>Postbus 270 >>>2600 AG DELFT >>> >>>tel.nr.: 015-7512436 >>>email: BEN at Syncera-ITSolutions.nl >>> >>> >>> >>>>>>ludovic gnemmi 06/07/05 >>>>>> >>>>>> >>>09:22am >>> >>>Hi, >>>Thanks for your answer Bart but it still doesn't work...I'm trying >>>with mapserver 4.4.2...Is gml_include_tems include in mapserver >>>4.4.2? Or >>> >>> >>i'll >> >> >>>have to upgrade to 4.4.6? >>> >>>Ludovic >>> >>>--- Bart van den Eijnden a >>> >>> >>?crit >> >> >>>: >>> >>> >>> >>>>Hi, >>>> >>>>use: >>>> >>>>gml_include_items "all" >>>> >>>>in the METADATA section of your LAYER. >>>> >>>>Best regards, >>>>Bart >>>> >>>>On Mon, 06 Jun 2005 18:32:03 +0200, ludovic >>>> >>>> >>gnemmi >> >> >>>> >>>>wrote: >>>> >>>> >>>> >>>>>Hi all, >>>>>I have a problem configuring WFS-SERVER with oraclespatial (Nativ >>>>>support) >>>>> >>>>> >>>layers...Everything >>> >>> >>>>is >>>> >>>> >>>>>ok when configuring WMS-SERVER on these layers >>>>> >>>>> >>>>but i >>>> >>>> >>>>>still receive an incomplete XML result when i >>>>> >>>>> >>>try >>> >>> >>>>a >>>> >>>> >>>>>getfeature request on my WFS oraclespatial >>>>> >>>>> >>>layers >>> >>> >>>>>(without errors). getcapabilitie request is >>>>> >>>>> >>OK. >> >> >>>>>getfeature requests are OK on shapefiles. >>>>> >>>>>Here is my mapfile: >>>>>MAP >>>>> NAME "my_wfs" >>>>> EXTENT 868470 83215 965015 165840 >>>>> SIZE 400 300 >>>>> IMAGETYPE PNG >>>>> IMAGECOLOR 255 255 255 >>>>> STATUS ON >>>>> UNITS METERS >>>>> FONTSET "path to font" >>>>> SYMBOLSET "path to symbol" >>>>> SHAPEPATH "path to shape" >>>>> >>>>> >>>>>WEB >>>>> IMAGEPATH "path to images" >>>>> IMAGEURL "/ms_tmp/" >>>>> >>>>>METADATA >>>>> "wfs_title" "my_wfs" >>>>> "wfs_onlineresource" >>>>> >>>>> >>>>> >>>"http://localhost/cgi-bin/mapserv?map=my_wfs.map&" >>> >>> >>>>> "wfs_srs" "EPSG:27582" >>>>>END >>>>>END >>>>> >>>>>#oracle spatial layer >>>>> >>>>>LAYER >>>>>NAME "bati" >>>>>TYPE POLYGON >>>>>CONNECTIONTYPE oraclespatial >>>>>CONNECTION "usr/pass at DB" >>>>>DATA "GEOM FROM BATIMENT USING SRID NULL" >>>>>DUMP TRUE >>>>>STATUS DEFAULT >>>>>DEBUG ON >>>>>PROJECTION >>>>>"init=epsg:27582" >>>>>END >>>>>METADATA >>>>>"wfs_title" "bati" >>>>>"wfs_extent" "868470 83215 965015 165840" >>>>>END >>>>> >>>>>CLASSITEM "BAT_CODE" >>>>>CLASS >>>>> EXPRESSION "01" >>>>> COLOR 152 152 152 >>>>> OUTLINECOLOR 0 0 0 >>>>>END >>>>>CLASS >>>>> EXPRESSION "02" >>>>> COLOR 202 202 202 >>>>> OUTLINECOLOR 0 0 0 >>>>>END >>>>> >>>>>END >>>>>END >>>>> >>>>> >>>>> >>>>>here the result of a getfeature request on >>>>> >>>>> >>this >> >> >>>>layer: >>>> >>>> >------------------------------------------------------- > > >>>>>- >>>>> >>>>xsi:schemaLocation="http://www.opengis.net/wfs >>>>> >>>>> >http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > >>>>> >>>>> >>>>> >>http://www.ttt.org/myns >> >> >http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1.. >.0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > > >>>>>- >>>>> >>>>>- >>>>> >>>>>- >>>>> >>>>>874619.370000,112072.490000 >>>>>875774.930000,113685.950000 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>--------------------------------------- >>>>> >>>>> >>>>>Has anybody got an idea? >>>>> >>>>>Thanks a lot. >>>>> >>>>>Ludovic >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >_______________________________________________________________________ >______ > > >>>>>D?couvrez le nouveau Yahoo! Mail : 1 Go >>>>> >>>>> >>d'espace >> >> >>>>de stockage pour vos >>>> >>>> >>>>>mails, photos et vid?os ! >>>>>Cr?ez votre Yahoo! Mail sur >>>>> >>>>> >>>>http://fr.mail.yahoo.com >>>> >>>> >>>> >>>>-- >>>>Using Opera's revolutionary e-mail client: >>>>http://www.opera.com/mail/ >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >_______________________________________________________________________ >______ > > >>>D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace >>> >>> >>de >> >> >>>stockage pour vos mails, photos et vid?os ! >>>Cr?ez votre Yahoo! Mail sur >>> >>> >>http://fr.mail.yahoo.com >> >> >>> >>> >> >> >> >> >> >> >> >> >_______________________________________________________________________ >______ > > >>D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos >>mails, photos et vid?os ! >>Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com >> >> >> > > > > > > > >_______________________________________________________________________ >______ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage >pour vos mails, photos et vid?os ! >Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > > -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From williampaul28 at YAHOO.COM Wed Jun 8 05:41:26 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 8 Jun 2005 05:41:26 -0700 Subject: toolbar buttons Message-ID: Hello, I am using jbox for dynamic zoom and pan and it caused me a lot of trouble so far and I want to change it, but until than: I want to use buttons or symbols to show the zoom in, zoom out, pan tools. Can any one give an example? I use javascript and mapserver 4.4.2 Thank you in advance William __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Wed Jun 8 05:48:48 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 8 Jun 2005 09:48:48 -0300 Subject: Problem configuring WFS-SERVER on oraclespatial layers In-Reply-To: <200506081228.j58CSELu014637@ns1.oieau.fr> Message-ID: Hi folks, Needs to be a number datatype. I use the UNIQUE column as a internal (Mapserver core) identifier for shapeindex, Mapserver store this value as long type. Usually I use the primary key as UNIQUE, but you can specify another (number) column for the restrict option. If you don't specify any UNIQUE maporaclespatial.c use the rownum in sql, but using this way, when the extent changed, the order for the rows will be different and the rownum is not equal than before. Any hints? ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Fran?ois Prunayre wrote: >Hi Fernando and Ludovic, I was facing the same problem with WFS GetFeature >and WMS GetFeatureInfo. >USING UNIQUE solved the problem for all my Oracle Spatial layers. >Works well with Mapinfo client or Chameleon. > >But it seems that has to be a number. Is Varchar2 datatype >supported ? > >Thanks. >Fran?ois > > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la >part de Fernando Simon >Envoy? : mercredi 8 juin 2005 13:44 >? : MAPSERVER-USERS at LISTS.UMN.EDU >Objet : Re: [UMN_MAPSERVER-USERS] Problem configuring WFS-SERVER on >oraclespatial layers > >Hi Ludovic and Bart, > About the problem with WFS (I'm not a specialist in WFS) did you check >all the metadata parameters? (upper case/lower case) > You can check all the messages that Mapserver request to Oracle server >using a debug flag (inf mapfile and configure for mapserver). You need to >specify a "--enable-debug" for configure and DEBUG parameter for layer and >MAP in you mapfile. Using this way all of actions and SQL appear in apache >error log. > I recommend to pass the UNIQUE parameter in your DATA definition. In >UNIQUE parameter you define the column that store the unique values (usually >primary key) for your table. This is necessary for retrieve the correct data >from database. You can specify like this: (null SRID is default when you >don't specify) > DATA "GEOM FROM BATIMENT USING UNIQUE " example > DATA "GEOM FROM BATIMENT USING UNIQUE BATIMENT_ID" > Can you change the data and test the result for this case? > Thanks. > >------------------------------------------------------------------------ >Fernando Simon >Mapserver and Oracle Spatial developer >G10 - Laboratorio de Computacao Aplicada - Brazil >http://g10.cttmar.univali.br - UNIVALI/CTTMAR >------------------------------------------------------------------------ > > > >ludovic gnemmi wrote: > > > >>Bart, >>You were right with MWS...I hat to add "wms_extent" on each layer to >>make WMS works with MS 4.6...I can now view all my layers with wms:) >>But still can't see oracle layers with WFS. >>I don't think communication failing with oracle...I see oracle is >>processing when sending WFS getfeature request. And i still can see >>oracle layers with Mapserver in normal use. >> >>Thanks. >> >>Ludovic >> >> >> >>--- Bart van den Eijnden a ?crit : >> >> >> >> >> >>>It seems that all aspects which communicate with Oracle fail. I had a >>>look at your original post and the GML created only contained the >>>wfs_extent values you put in the MAP file. So probably all >>>communication with Oracle is failing. >>> >>>The WMS capabilities now use a function to calculate the boundingbox. >>>If you use a wms_extent metadata it will probably be complete. >>> >>>Are you able to get normal maps? >>> >>>I hope Fernando Simon can help you further. >>> >>>Best regards, >>>Bart >>> >>>Bart van den Eijnden >>>Syncera IT Solutions >>>Postbus 270 >>>2600 AG DELFT >>> >>>tel.nr.: 015-7512436 >>>email: BEN at Syncera-ITSolutions.nl >>> >>> >>> >>> >>> >>>>>>ludovic gnemmi 06/08/05 >>>>>> >>>>>> >>>>>> >>>>>> >>>08:58am >>> >>>Hi, >>>I'm now testing with mapserver 4.6 beta3. I still receive nothing with >>>getfeature request on oraclespatial layers (i can see that oracle is >>>processing the requests). >>> >>>And i'm now receiving an uncomplete xml file when testing wms >>>capabilities (stoped on >> >>>On more thing, i see a new message in my apache error log : "In >>>msCleanupOnSignal". ??? >>> >>>Ludovic >>> >>> >>> >>>--- Bart van den Eijnden >>> >>>a ?crit : >>> >>> >>> >>> >>> >>>>Okay, my information was 4.6 specific. I was assuming you were using >>>>that version. >>>> >>>>Could you try the latest 4.6 beta? There have also been a lot of >>>>improvements made by Fernando in maporaclespatial.c. >>>> >>>>Best regards, >>>>Bart >>>> >>>>Bart van den Eijnden >>>>Syncera IT Solutions >>>>Postbus 270 >>>>2600 AG DELFT >>>> >>>>tel.nr.: 015-7512436 >>>>email: BEN at Syncera-ITSolutions.nl >>>> >>>> >>>> >>>> >>>> >>>>>>>ludovic gnemmi 06/07/05 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>09:22am >>> >>>>Hi, >>>>Thanks for your answer Bart but it still doesn't work...I'm trying >>>>with mapserver 4.4.2...Is gml_include_tems include in mapserver >>>>4.4.2? Or >>>> >>>> >>>> >>>> >>>i'll >>> >>> >>> >>> >>>>have to upgrade to 4.4.6? >>>> >>>>Ludovic >>>> >>>>--- Bart van den Eijnden a >>>> >>>> >>>> >>>> >>>?crit >>> >>> >>> >>> >>>>: >>>> >>>> >>>> >>>> >>>> >>>>>Hi, >>>>> >>>>>use: >>>>> >>>>>gml_include_items "all" >>>>> >>>>>in the METADATA section of your LAYER. >>>>> >>>>>Best regards, >>>>>Bart >>>>> >>>>>On Mon, 06 Jun 2005 18:32:03 +0200, ludovic >>>>> >>>>> >>>>> >>>>> >>>gnemmi >>> >>> >>> >>> >>>>> >>>>>wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hi all, >>>>>>I have a problem configuring WFS-SERVER with oraclespatial (Nativ >>>>>>support) >>>>>> >>>>>> >>>>>> >>>>>> >>>>layers...Everything >>>> >>>> >>>> >>>> >>>>>is >>>>> >>>>> >>>>> >>>>> >>>>>>ok when configuring WMS-SERVER on these layers >>>>>> >>>>>> >>>>>> >>>>>> >>>>>but i >>>>> >>>>> >>>>> >>>>> >>>>>>still receive an incomplete XML result when i >>>>>> >>>>>> >>>>>> >>>>>> >>>>try >>>> >>>> >>>> >>>> >>>>>a >>>>> >>>>> >>>>> >>>>> >>>>>>getfeature request on my WFS oraclespatial >>>>>> >>>>>> >>>>>> >>>>>> >>>>layers >>>> >>>> >>>> >>>> >>>>>>(without errors). getcapabilitie request is >>>>>> >>>>>> >>>>>> >>>>>> >>>OK. >>> >>> >>> >>> >>>>>>getfeature requests are OK on shapefiles. >>>>>> >>>>>>Here is my mapfile: >>>>>>MAP >>>>>> NAME "my_wfs" >>>>>> EXTENT 868470 83215 965015 165840 >>>>>> SIZE 400 300 >>>>>>IMAGETYPE PNG >>>>>> IMAGECOLOR 255 255 255 >>>>>> STATUS ON >>>>>> UNITS METERS >>>>>> FONTSET "path to font" >>>>>> SYMBOLSET "path to symbol" >>>>>>SHAPEPATH "path to shape" >>>>>> >>>>>> >>>>>>WEB >>>>>>IMAGEPATH "path to images" >>>>>>IMAGEURL "/ms_tmp/" >>>>>> >>>>>>METADATA >>>>>> "wfs_title" "my_wfs" >>>>>> "wfs_onlineresource" >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>"http://localhost/cgi-bin/mapserv?map=my_wfs.map&" >>>> >>>> >>>> >>>> >>>>>> "wfs_srs" "EPSG:27582" >>>>>>END >>>>>>END >>>>>> >>>>>>#oracle spatial layer >>>>>> >>>>>>LAYER >>>>>>NAME "bati" >>>>>>TYPE POLYGON >>>>>>CONNECTIONTYPE oraclespatial >>>>>>CONNECTION "usr/pass at DB" >>>>>>DATA "GEOM FROM BATIMENT USING SRID NULL" >>>>>>DUMP TRUE >>>>>>STATUS DEFAULT >>>>>>DEBUG ON >>>>>>PROJECTION >>>>>>"init=epsg:27582" >>>>>>END >>>>>>METADATA >>>>>>"wfs_title" "bati" >>>>>>"wfs_extent" "868470 83215 965015 165840" >>>>>>END >>>>>> >>>>>>CLASSITEM "BAT_CODE" >>>>>>CLASS >>>>>> EXPRESSION "01" >>>>>> COLOR 152 152 152 >>>>>> OUTLINECOLOR 0 0 0 >>>>>>END >>>>>>CLASS >>>>>> EXPRESSION "02" >>>>>> COLOR 202 202 202 >>>>>> OUTLINECOLOR 0 0 0 >>>>>>END >>>>>> >>>>>>END >>>>>>END >>>>>> >>>>>> >>>>>> >>>>>>here the result of a getfeature request on >>>>>> >>>>>> >>>>>> >>>>>> >>>this >>> >>> >>> >>> >>>>>layer: >>>>> >>>>> >>>>> >>>>> >>------------------------------------------------------- >> >> >> >> >>>>>>- >>>>>> >>>>>xsi:schemaLocation="http://www.opengis.net/wfs >>>>>> >>>>>> >>>>>> >>>>>> >>http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd >> >> >> >> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>http://www.ttt.org/myns >>> >>> >>> >>> >>http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1.. >>.0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> >> >> >> >> >>>>>>- >>>>>> >>>>>>- >>>>>> >>>>>>- >>>>>> >>>>>>874619.370000,112072.490000 >>>>>>875774.930000,113685.950000 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>--------------------------------------- >>>>>> >>>>>> >>>>>>Has anybody got an idea? >>>>>> >>>>>>Thanks a lot. >>>>>> >>>>>>Ludovic >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>_______________________________________________________________________ >>______ >> >> >> >> >>>>>>D?couvrez le nouveau Yahoo! Mail : 1 Go >>>>>> >>>>>> >>>>>> >>>>>> >>>d'espace >>> >>> >>> >>> >>>>>de stockage pour vos >>>>> >>>>> >>>>> >>>>> >>>>>>mails, photos et vid?os ! >>>>>>Cr?ez votre Yahoo! Mail sur >>>>>> >>>>>> >>>>>> >>>>>> >>>>>http://fr.mail.yahoo.com >>>>> >>>>> >>>>> >>>>>-- >>>>>Using Opera's revolutionary e-mail client: >>>>>http://www.opera.com/mail/ >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>_______________________________________________________________________ >>______ >> >> >> >> >>>>D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace >>>> >>>> >>>> >>>> >>>de >>> >>> >>> >>> >>>>stockage pour vos mails, photos et vid?os ! >>>>Cr?ez votre Yahoo! Mail sur >>>> >>>> >>>> >>>> >>>http://fr.mail.yahoo.com >>> >>> >>> >>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>_______________________________________________________________________ >>______ >> >> >> >> >>>D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos >>>mails, photos et vid?os ! >>>Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com >>> >>> >>> >>> >>> >> >> >> >> >> >>_______________________________________________________________________ >>______ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage >>pour vos mails, photos et vid?os ! >>Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com >> >> >> >> >> > >-- >Ce message a ete verifie par MailScanner pour des virus ou des polluriels et >rien de suspect n'a ete trouve. > >Les donnees et renseignements contenus dans ce message sont personnels, >confidentiels et prives. Toute publication, utilisation ou diffusion, meme >partielle, doit etre autorisee. > >Any data and information contained in this electronic mail is personal, >confidential and secret. Any total or partial publication, use or >distribution must be authorized. > > > > From l_gnemmi at YAHOO.FR Wed Jun 8 08:30:51 2005 From: l_gnemmi at YAHOO.FR (ludovic gnemmi) Date: Wed, 8 Jun 2005 17:30:51 +0200 Subject: Problem configuring WFS-SERVER on oraclespatial layers In-Reply-To: <42A6E930.6030702@univali.br> Message-ID: You were Fran?ois right i had to use "USING UNIQUE (numeric) " parameter to make it works with WFS. Thanks a lot !! Ludovic --- Fernando Simon a ?crit : > Hi folks, > Needs to be a number datatype. > I use the UNIQUE column as a internal (Mapserver > core) identifier > for shapeindex, Mapserver store this value as long > type. > Usually I use the primary key as UNIQUE, but you > can specify another > (number) column for the restrict option. If you > don't specify any UNIQUE > maporaclespatial.c use the rownum in sql, but using > this way, when the > extent changed, the order for the rows will be > different and the rownum > is not equal than before. > Any hints? > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > Fran?ois Prunayre wrote: > > >Hi Fernando and Ludovic, I was facing the same > problem with WFS GetFeature > >and WMS GetFeatureInfo. > >USING UNIQUE solved the problem for all my > Oracle Spatial layers. > >Works well with Mapinfo client or Chameleon. > > > >But it seems that has to be a number. Is > Varchar2 datatype > >supported ? > > > >Thanks. > >Fran?ois > > > > > >-----Message d'origine----- > >De : UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > >part de Fernando Simon > >Envoy? : mercredi 8 juin 2005 13:44 > >? : MAPSERVER-USERS at LISTS.UMN.EDU > >Objet : Re: [UMN_MAPSERVER-USERS] Problem > configuring WFS-SERVER on > >oraclespatial layers > > > >Hi Ludovic and Bart, > > About the problem with WFS (I'm not a > specialist in WFS) did you check > >all the metadata parameters? (upper case/lower > case) > > You can check all the messages that Mapserver > request to Oracle server > >using a debug flag (inf mapfile and configure for > mapserver). You need to > >specify a "--enable-debug" for configure and DEBUG > parameter for layer and > >MAP in you mapfile. Using this way all of actions > and SQL appear in apache > >error log. > > I recommend to pass the UNIQUE parameter in > your DATA definition. In > >UNIQUE parameter you define the column that store > the unique values (usually > >primary key) for your table. This is necessary for > retrieve the correct data > >from database. You can specify like this: (null > SRID is default when you > >don't specify) > > DATA "GEOM FROM BATIMENT USING UNIQUE > " example > > DATA "GEOM FROM BATIMENT USING UNIQUE > BATIMENT_ID" > > Can you change the data and test the result for > this case? > > Thanks. > > > >------------------------------------------------------------------------ > >Fernando Simon > >Mapserver and Oracle Spatial developer > >G10 - Laboratorio de Computacao Aplicada - Brazil > >http://g10.cttmar.univali.br - UNIVALI/CTTMAR > >------------------------------------------------------------------------ > > > > > > > >ludovic gnemmi wrote: > > > > > > > >>Bart, > >>You were right with MWS...I hat to add > "wms_extent" on each layer to > >>make WMS works with MS 4.6...I can now view all my > layers with wms:) > >>But still can't see oracle layers with WFS. > >>I don't think communication failing with > oracle...I see oracle is > >>processing when sending WFS getfeature request. > And i still can see > >>oracle layers with Mapserver in normal use. > >> > >>Thanks. > >> > >>Ludovic > >> > >> > >> > >>--- Bart van den Eijnden > a ?crit : > >> > >> > >> > >> > >> > >>>It seems that all aspects which communicate with > Oracle fail. I had a > >>>look at your original post and the GML created > only contained the > >>>wfs_extent values you put in the MAP file. So > probably all > >>>communication with Oracle is failing. > >>> > >>>The WMS capabilities now use a function to > calculate the boundingbox. > >>>If you use a wms_extent metadata it will probably > be complete. > >>> > >>>Are you able to get normal maps? > >>> > >>>I hope Fernando Simon can help you further. > >>> > >>>Best regards, > >>>Bart > >>> > >>>Bart van den Eijnden > >>>Syncera IT Solutions > >>>Postbus 270 > >>>2600 AG DELFT > >>> > >>>tel.nr.: 015-7512436 > >>>email: BEN at Syncera-ITSolutions.nl > >>> > >>> > >>> > >>> > >>> > >>>>>>ludovic gnemmi 06/08/05 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>08:58am >>> > >>>Hi, > >>>I'm now testing with mapserver 4.6 beta3. I still > receive nothing with > >>>getfeature request on oraclespatial layers (i can > see that oracle is > >>>processing the requests). > >>> > >>>And i'm now receiving an uncomplete xml file when > testing wms > >>>capabilities (stoped on >>> > >>>On more thing, i see a new message in my apache > error log : "In > >>>msCleanupOnSignal". ??? > >>> > >>>Ludovic > >>> > >>> > >>> > >>>--- Bart van den Eijnden > >>> > >>>a ?crit : > >>> > >>> > >>> > >>> > >>> > >>>>Okay, my information was 4.6 specific. I was > assuming you were using > >>>>that version. > >>>> > >>>>Could you try the latest 4.6 beta? There have > also been a lot of > >>>>improvements made by Fernando in > maporaclespatial.c. > >>>> > >>>>Best regards, > >>>>Bart > >>>> > >>>>Bart van den Eijnden > >>>>Syncera IT Solutions > >>>>Postbus 270 > >>>>2600 AG DELFT > >>>> > >>>>tel.nr.: 015-7512436 > >>>>email: BEN at Syncera-ITSolutions.nl > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>>>ludovic gnemmi 06/07/05 > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>09:22am >>> > >>>>Hi, > >>>>Thanks for your answer Bart but it still doesn't > work...I'm trying > >>>>with mapserver 4.4.2...Is gml_include_tems > include in mapserver > >>>>4.4.2? Or > >>>> > >>>> > >>>> > >>>> > >>>i'll > >>> > >>> > >>> > >>> > >>>>have to upgrade to 4.4.6? > >>>> > >>>>Ludovic > >>>> > >>>>--- Bart van den Eijnden a > >>>> > >>>> > >>>> > >>>> > >>>?crit > >>> > >>> > >>> > >>> > >>>>: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Hi, > >>>>> > >>>>>use: > >>>>> > >>>>>gml_include_items "all" > >>>>> > >>>>>in the METADATA section of your LAYER. > >>>>> > >>>>>Best regards, > >>>>>Bart > >>>>> > >>>>>On Mon, 06 Jun 2005 18:32:03 +0200, ludovic > >>>>> > >>>>> > >>>>> > >>>>> > >>>gnemmi > >>> > >>> > >>> > >>> > >>>>> > >>>>>wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Hi all, > >>>>>>I have a problem configuring WFS-SERVER with > oraclespatial (Nativ > >>>>>>support) > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>layers...Everything > >>>> > >>>> > >>>> > >>>> > >>>>>is > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>ok when configuring WMS-SERVER on these layers > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>but i > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>still receive an incomplete XML result when i > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>try > >>>> > >>>> > >>>> > >>>> > >>>>>a > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>getfeature request on my WFS oraclespatial > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>layers > >>>> > >>>> > >>>> > >>>> > >>>>>>(without errors). getcapabilitie request is > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>OK. > >>> > >>> > >>> > >>> > >>>>>>getfeature requests are OK on shapefiles. > >>>>>> > >>>>>>Here is my mapfile: > >>>>>>MAP > >>>>>> NAME "my_wfs" > >>>>>> EXTENT 868470 83215 965015 165840 > >>>>>> SIZE 400 300 > >>>>>>IMAGETYPE PNG > >>>>>> IMAGECOLOR 255 255 255 > >>>>>> STATUS ON > >>>>>> UNITS METERS > >>>>>> FONTSET "path to font" > >>>>>> SYMBOLSET "path to symbol" > >>>>>>SHAPEPATH "path to shape" > >>>>>> > >>>>>> > >>>>>>WEB > >>>>>>IMAGEPATH "path to images" > >>>>>>IMAGEURL "/ms_tmp/" > >>>>>> > >>>>>>METADATA > >>>>>> "wfs_title" "my_wfs" > >>>>>> "wfs_onlineresource" > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>"http://localhost/cgi-bin/mapserv?map=my_wfs.map&" > >>>> > >>>> > >>>> > >>>> > >>>>>> "wfs_srs" "EPSG:27582" > >>>>>>END > >>>>>>END > >>>>>> > >>>>>>#oracle spatial layer > >>>>>> > >>>>>>LAYER > >>>>>>NAME "bati" > >>>>>>TYPE POLYGON > >>>>>>CONNECTIONTYPE oraclespatial > >>>>>>CONNECTION "usr/pass at DB" > >>>>>>DATA "GEOM FROM BATIMENT USING SRID NULL" > >>>>>>DUMP TRUE > >>>>>>STATUS DEFAULT > >>>>>>DEBUG ON > >>>>>>PROJECTION > >>>>>>"init=epsg:27582" > >>>>>>END > >>>>>>METADATA > >>>>>>"wfs_title" "bati" > >>>>>>"wfs_extent" "868470 83215 965015 165840" > >>>>>>END > >>>>>> > >>>>>>CLASSITEM "BAT_CODE" > >>>>>>CLASS > >>>>>> EXPRESSION "01" > >>>>>> COLOR 152 152 152 > >>>>>> OUTLINECOLOR 0 0 0 > >>>>>>END > >>>>>>CLASS > >>>>>> EXPRESSION "02" > >>>>>> COLOR 202 202 202 > >>>>>> OUTLINECOLOR 0 0 0 > >>>>>>END > >>>>>> > >>>>>>END > >>>>>>END > >>>>>> > >>>>>> > >>>>>> > >>>>>>here the result of a getfeature request on > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>this > >>> > >>> > >>> > >>> > >>>>>layer: > >>>>> > >>>>> > >>>>> > >>>>> > >>------------------------------------------------------- > >> > >> > >> > >> > >>>>>>- > >>>>>> >>>>>>xsi:schemaLocation="http://www.opengis.net/wfs > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > >> > >> > >> > >> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>http://www.ttt.org/myns > >>> > >>> > >>> > >>> > >>http://localhost/cgi-bin/mapserv?map=my_wfs.map&SERVICE=WFS&VERSION=1.. > >>.0.0&REQUEST=DescribeFeatureType&TYPENAME=bati"> > >> > >> > >> > >> > >>>>>>- > >>>>>> > >>>>>>- > >>>>>> > >>>>>>- > >>>>>> > >>>>>>874619.370000,112072.490000 > >>>>>>875774.930000,113685.950000 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>--------------------------------------- > >>>>>> > >>>>>> > >>>>>>Has anybody got an idea? > >>>>>> > >>>>>>Thanks a lot. > >>>>>> > >>>>>>Ludovic > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>_______________________________________________________________________ > >>______ > >> > >> > >> > >> > >>>>>>D?couvrez le nouveau Yahoo! Mail : 1 Go > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>d'espace > >>> > >>> > >>> > >>> > >>>>>de stockage pour vos > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>mails, photos et vid?os ! > >>>>>>Cr?ez votre Yahoo! Mail sur > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>http://fr.mail.yahoo.com > >>>>> > >>>>> > >>>>> > >>>>>-- > >>>>>Using Opera's revolutionary e-mail client: > >>>>>http://www.opera.com/mail/ > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>_______________________________________________________________________ > >>______ > >> > >> > >> > >> > >>>>D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace > >>>> > >>>> > >>>> > >>>> > >>>de > >>> > >>> > >>> > >>> > >>>>stockage pour vos mails, photos et vid?os ! > >>>>Cr?ez votre Yahoo! Mail sur > >>>> > >>>> > >>>> > >>>> > >>>http://fr.mail.yahoo.com > >>> > >>> > >>> > >>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________________________________ > >>______ > >> > >> > >> > >> > >>>D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace > de stockage pour vos > >>>mails, photos et vid?os ! > >>>Cr?ez votre Yahoo! Mail sur > http://fr.mail.yahoo.com > >>> > >>> > >>> > >>> > >>> > >> > >> > >> > >> > >> > >>_______________________________________________________________________ > >>______ D?couvrez le nouveau Yahoo! Mail : 1 Go > d'espace de stockage > >>pour vos mails, photos et vid?os ! > >>Cr?ez votre Yahoo! Mail sur > http://fr.mail.yahoo.com > >> > >> > >> > >> > >> > > > >-- > >Ce message a ete verifie par MailScanner pour des > virus ou des polluriels et > >rien de suspect n'a ete trouve. > > > >Les donnees et renseignements contenus dans ce > message sont personnels, > >confidentiels et prives. Toute publication, > utilisation ou diffusion, meme > >partielle, doit etre autorisee. > > > >Any data and information contained in this > electronic mail is personal, > >confidential and secret. Any total or partial > publication, use or > >distribution must be authorized. > > > > > > > > > _____________________________________________________________________________ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com From l_gnemmi at YAHOO.FR Wed Jun 8 08:42:33 2005 From: l_gnemmi at YAHOO.FR (ludovic gnemmi) Date: Wed, 8 Jun 2005 17:42:33 +0200 Subject: Mapserver and oracle instantclient Message-ID: Maybe it can help someone who doesn't want install the standard Oracle Client to have oraclespatial support. Here is the steps i follow to compile mapserver and php_mapscript on Linux system to have oraclespatial support with oracle instantclient 10g. *Download and install oracle instantclient and instantclient-devel packages. *Adjust LD_LIBRARY_PATH to the instantclient lib directory. *Configure Mapserver with oraclespatial support. *Manually edit Makefiles before compiling to adjust ORACLESPATIAL_INC and ORACLESPATIAL_LIB paths: -adjust ORACLESPATIAL_INC to the oci.h file installation directory. -adjust the -L portion of ORACLESPATIAL_LIB to the libclntsh.so.10.1 file installation directory. looks like this in my Makefile: ORACLESPATIAL_LIB=-L/usr/lib/oracle/10.1.0.3/client/lib -lclntsh ORACLESPATIAL_INC=-I/etc/oracle/include *Compile and install Mapserver and php_mapscript. *Configure tnsnames.ora *Declare oracle variables in httpd.conf: SetEnv TNS_ADMIN "path/to/tnsnames.ora" SetEnv LD_LIBRARY_PATH "path to the directory containing libclntsh.so.10.1" I did a lot of things but i think these steps are the main things. I'm on Linux Debian with Apache 1.4, php5 (cgi) with mapserver 4.6.beta3 Ludovic _____________________________________________________________________________ D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com From fsimon at UNIVALI.BR Wed Jun 8 08:51:52 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 8 Jun 2005 12:51:52 -0300 Subject: Mapserver and oracle instantclient In-Reply-To: <20050608154233.88354.qmail@web25408.mail.ukl.yahoo.com> Message-ID: Hi Ludovic, Great work!!! We can use this for future versions of Mapserver (I don't know if I will have time to add this for 4.6-final). You can open a request (bugzilla) for this issue. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ ludovic gnemmi wrote: >Maybe it can help someone who >doesn't want install the standard Oracle Client to >have oraclespatial support. Here is the steps i follow >to compile mapserver and php_mapscript on Linux system >to have oraclespatial support with oracle >instantclient 10g. > >*Download and install oracle instantclient and >instantclient-devel packages. > >*Adjust LD_LIBRARY_PATH to the instantclient lib >directory. > >*Configure Mapserver with oraclespatial support. > >*Manually edit Makefiles before compiling to adjust >ORACLESPATIAL_INC and ORACLESPATIAL_LIB paths: >-adjust ORACLESPATIAL_INC to the oci.h file >installation directory. >-adjust the -L portion of ORACLESPATIAL_LIB to the >libclntsh.so.10.1 file installation directory. > >looks like this in my Makefile: >ORACLESPATIAL_LIB=-L/usr/lib/oracle/10.1.0.3/client/lib >-lclntsh >ORACLESPATIAL_INC=-I/etc/oracle/include > >*Compile and install >Mapserver and php_mapscript. > >*Configure tnsnames.ora > >*Declare oracle variables in httpd.conf: >SetEnv TNS_ADMIN "path/to/tnsnames.ora" >SetEnv LD_LIBRARY_PATH "path to the directory >containing libclntsh.so.10.1" > >I did a lot of things but i think these steps are the >main things. > >I'm on Linux Debian with Apache 1.4, php5 (cgi) with >mapserver 4.6.beta3 > >Ludovic > > > > > > >_____________________________________________________________________________ >D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! >Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > > From fsimon at UNIVALI.BR Wed Jun 8 09:26:36 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 8 Jun 2005 13:26:36 -0300 Subject: Mapserver and oracle instantclient In-Reply-To: <20050608154233.88354.qmail@web25408.mail.ukl.yahoo.com> Message-ID: Hi, Just a little questions, with default flags appear any error when you compile? Don't compile? Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ ludovic gnemmi wrote: >Maybe it can help someone who >doesn't want install the standard Oracle Client to >have oraclespatial support. Here is the steps i follow >to compile mapserver and php_mapscript on Linux system >to have oraclespatial support with oracle >instantclient 10g. > >*Download and install oracle instantclient and >instantclient-devel packages. > >*Adjust LD_LIBRARY_PATH to the instantclient lib >directory. > >*Configure Mapserver with oraclespatial support. > >*Manually edit Makefiles before compiling to adjust >ORACLESPATIAL_INC and ORACLESPATIAL_LIB paths: >-adjust ORACLESPATIAL_INC to the oci.h file >installation directory. >-adjust the -L portion of ORACLESPATIAL_LIB to the >libclntsh.so.10.1 file installation directory. > >looks like this in my Makefile: >ORACLESPATIAL_LIB=-L/usr/lib/oracle/10.1.0.3/client/lib >-lclntsh >ORACLESPATIAL_INC=-I/etc/oracle/include > >*Compile and install >Mapserver and php_mapscript. > >*Configure tnsnames.ora > >*Declare oracle variables in httpd.conf: >SetEnv TNS_ADMIN "path/to/tnsnames.ora" >SetEnv LD_LIBRARY_PATH "path to the directory >containing libclntsh.so.10.1" > >I did a lot of things but i think these steps are the >main things. > >I'm on Linux Debian with Apache 1.4, php5 (cgi) with >mapserver 4.6.beta3 > >Ludovic > > > > > > >_____________________________________________________________________________ >D?couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid?os ! >Cr?ez votre Yahoo! Mail sur http://fr.mail.yahoo.com > > > From dls at INFORMGIS.COM Wed Jun 8 11:14:13 2005 From: dls at INFORMGIS.COM (David) Date: Wed, 8 Jun 2005 13:14:13 -0500 Subject: Queryfile and Savequery CGI Help Message-ID: Hi All, I'm trying to use CGI mapserver and have run into some confusion about the queryfile and savequery parameters. The cgi reference manual says that you can use the queryfile parameter within a Browse mode to have your selection stay highlighted while you zoom/pan after performing the initial query. "QUERYFILE [filename]Used with BROWSE or NQUERY mode. This option identifies a query file to load before any regular processing. In BROWSE mode this result in a query map being produced instead of a regular map. This is useful when you want to hilite a feature while still in a pan/zoom mode. In NQUERY mode you'd gain access to any of the templates used in normally presenting the query, so you have access to query maps AND attribute information" I'm trying to duplicate this functionality but it seems to perform the query again and displays the query template file instead of performing the zoom/pan. Has anyone had success using these cgi parameters? Are there any examples out there of this functionalty working properly? Any help would be great! here's the mapserver call when trying to perform a zoomin after creating a query: http://pc3/cgi-bin/mapserv.exe? mode=browse&map=C:\ms4w\apps\Test\htdocs\Demo\DemoMapShape.map&mapext=10611 67.376086749+588303.6893909775+1076137.2050937023+598275.2449398496&mapsize =600+400&layers=tdbint_blocks&queryfile=C:\ms4w\tmp\ms_tmp\DEMOMAP111825385 15400.qy Thanks, DaviD From christhorne at SYMPATICO.CA Wed Jun 8 11:35:19 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Wed, 8 Jun 2005 14:35:19 -0400 Subject: EPSG code for... In-Reply-To: <005101c56bde$55668120$027d5218@GatewayDCM> Message-ID: I was worried about that ;) Unfortunately, it is not an easy thing to pin point what the projection actually is. Thanks again, Chris Dean C. Mikkelsen wrote: > Hi Ken, > > Thanks for the information. > > The other problem I was looking at is that it may be a State Plane > Coordinate System as well. > > California is divided into many zones and the dataset being worked with > did not include some of the projection information. > > Cheers, > Dean > > Consultant, Terra ETL Ltd. > North Vancouver, BC > Canada > Phone: +1 604 929 8630 > E-mail: dcmikkelsen at shaw.ca > > -----Original Message----- > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Ken Lord > *Sent:* Tuesday, June 07, 2005 12:44 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] EPSG code for... > > Dean, > > Make sure you have the Proj software installed, there's information > about it here: > > http://www.maptools.org/maplab/index.phtml?page=maplab_windows.txt > > and here: > > http://www.remotesensing.org/proj/ > > If you haven't already, grab the windows binaries, unzip and place > the Proj folder on your C drive. > > C:/Proj > > Cheers, > Ken Lord > Vancouver BC > > > > > On 6/7/05, *Christopher R. Thorne* > wrote: > > Dean C. Mikkelsen wrote: > > Hi Chris, > > > > It may be a directory problem, MapServer is not reading the > CONUS or > > NAD27/NAD83 files correctly in the proj directory. > > > > Are you using the MS4W or a later version of MapServer? > > I am using the latest version of ms4w, with Chameleon using > MapServer 4.4.2 > > Any suggestions? > > > > > Cheers, > > Dean > > > > Dean C. Mikkelsen, B.Sc.,P.Eng. > > Consultant, Terra ETL Ltd. > > North Vancouver, BC > > Canada > > Phone: +1 604 929 8630 > > E-mail: dcmikkelsen at shaw.ca > > > > > > > > -----Original Message----- > > From: Christopher R. Thorne [mailto:christhorne at sympatico.ca > ] > > Sent: Monday, June 06, 2005 4:10 PM > > To: Dean C. Mikkelsen > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > > > > > Yes I used these projections where > > > > 26911 NAD 83 is the projection of the mapfile and where NAD27 > <26711> is > > > > being reprojected. > > > > See first attached image to see how messed up the Nad27 layer > gets. > > > > If I don't define projection you can see the a shift between > the line > > layer and the solid polygon layers. > > > > Comments/suggestions?? > > > > Thanks > > Chris > > > > Dean C. Mikkelsen wrote: > > > >>Hi Chris, > >> > >>Did you try the following? > >> > >># NAD27 / UTM zone 11N > >><26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m > >>no_defs <> > >> > >># NAD83 / UTM zone 11N > >><26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 > +units=m no_defs > > > > > >><> > >> > >>Cheers, > >>Dean > >> > >>Dean C. Mikkelsen, B.Sc.,P.Eng. > >>Consultant, Terra ETL Ltd. > >>North Vancouver, BC > >>Canada > >>Phone: +1 604 929 8630 > >>E-mail: dcmikkelsen at shaw.ca > >> > >> > >> > >>-----Original Message----- > >>From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU > ] > >>On Behalf Of Christopher R. Thorne > >>Sent: Monday, June 06, 2005 3:29 PM > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > > >>Subject: [UMN_MAPSERVER-USERS] EPSG code for... > >> > >> > >>Hello all, > >> > >>If you were given the following information for two > projections for > >>California LA County region. > >> > >> > >>NAD83 UTM Zone 11 meters > >> > >>NAD27 UTM Zone 11 meters > >> > >>What would be your suggested codes? I have tried a few but > can not > >>seem > >>to get it. > >> > >>Thanks > >>Chris > >> > >> > > > > > > > > > -- > Christopher R. Thorne, GIS Specialist > -- > 3406 Southgate Rd. Ottawa ON K1V 9P9 > christhorne at sympatico.ca > Tel:(613)523-6593 -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From carloseduardo at COSTARRICENSE.CR Wed Jun 8 11:55:28 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Wed, 8 Jun 2005 13:55:28 -0500 Subject: The same layer with different extent Message-ID: In my application the user can choose a hotel from the list of hotels and mapserver has to display a map with the specific extension to show the point of the hotel (to look for the hotel in the map, to show it centred and with a suitable zoom). I can do it sending the extent in the url for every hotel but i don't want to do that because there are too many hotels. I need to know if mapserver can show the same layer defined in the mapfile but with a different extent depending on the select hotel.? How can I do that? I'm using mapserver-4.4.1, php_mapscript, postgresql and postgis in suse9.1 Thanks for your help. From gabrial.casey at GMAIL.COM Wed Jun 8 13:23:30 2005 From: gabrial.casey at GMAIL.COM (G Casey) Date: Wed, 8 Jun 2005 15:23:30 -0500 Subject: POINT TO PIXEL Message-ID: Does anyone have a good way to convert point in meters to pixel I am trying to compute this for the ability to zoom to a point without a click. the click2map (php mapscript) function (below) works however i need to solve for click_x and click_y for a large extent with a known x_map and y_map. I have tried and seem to be getting very strange numbers. Why can I not just solve for click_x with a known x_map ???? My extent is in meters and is: -2889574.369897 -1870163.5788935 2951185.294103 2023676.1971065 my image size is 600X400 yet I never get the correct numbers. function click2map ($click_x, $click_y) { global $map; $e = &$map->extent; $x_pct = ($click_x / $map->width); $y_pct = 1 - ($click_y / $map->height); $x_map = $e->minx + ( ($e->maxx - $e->minx) * $x_pct); $y_map = $e->miny + ( ($e->maxy - $e->miny) * $y_pct); } I hope this is obvious. From cdaily at GMAIL.COM Wed Jun 8 13:34:47 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 8 Jun 2005 15:34:47 -0500 Subject: POINT TO PIXEL In-Reply-To: Message-ID: As I understand it, the click2map function takes 'click' coordinates and converts them to 'geo' coordinates, but you want the opposite? To translate 'geo' coordinates to 'click' coordinates? A map2click function? I'm willing to help, but could you explain exactly how you plan on using the function? -Camden Daily From joe at OTSYS.COM Wed Jun 8 13:57:09 2005 From: joe at OTSYS.COM (Joseph Bussell) Date: Wed, 8 Jun 2005 13:57:09 -0700 Subject: perl mapscript crash "Can't locate auto/mapscript/classObj/swig_size_s.al" Message-ID: I have a mapfile that when viewed at certain zoom levels, generates a failure. The Apache log indicates that a specific object cannot be found. I explicitly turned off all the layers, intending to add them one at a time until I observed a failure, but the failure still existed for scales 2000001 and higher. I do not understand why some Perl module is differentially available based on my scale. Back in the days when TrafficDodger was an active application this was working. I updated the mapscript to the latest stable rev and had to make a few changes (like my extents were improperly ordered). Lower scales work nicely. I have other maps that show the whole planet, these render nicely. Does anyone have any ideas? I am using perl mapscript from version mapserver-4.4.2, ( set up with ./configure --with-proj --with-gdal --with-gd --with-perl --with-php=../mapserverDeps/php-5.0.2/ ) Linux 2.6.10-1.771_FC2 #1 built Mon Mar 28 00:50:14 EST 2005 i686 athlon i386 GNU/Linux Server version: Apache/1.3.31 (Unix) I offer the error string: Can't locate auto/mapscript/classObj/swig_size_s.al in @INC (@INC contains: /usr/traffic2/perl /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/local/apache/ /usr/local/apache/lib/perl) at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/mapscript.pm line 35\n My map file is as follows: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # Start of map file # NAME CA STATUS ON SIZE 325 325 PROJECTION "proj=latlong" END #EXTENT -118.236313 34.013892 -118.201033 34.049172 # EXTENT -118.884 33.39597 -114.487 35.607288 # xmin, ymin, xmax, ymax EXTENT -180.0 -90.0 180.0 90.0 #These paths are set in mapdrawing.pm via Perl/Mapscript #SHAPEPATH "/hardcoded/paths/lead/to/diminished/potency/shapefiles/" #FONTSET /hardcoded/paths/lead/to/diminished/potency/fonts.list SYMBOLSET symbols.sym IMAGECOLOR 161 161 161 TRANSPARENT ON UNITS dd # you may need to change this to match your MapServer build IMAGETYPE PNG # # The Reference map is the thumbnail map that allows users to # quickly navigate over the 'zoomed-out' map. # REFERENCE IMAGE graphics/reference_ca.png EXTENT -124.39263784515 32.5357813439163 -114.125230507624 42.0021917751363 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # The legend # LEGEND STATUS OFF KEYSIZE 18 12 LABEL TYPE TRUETYPE FONT Arial SIZE 8 COLOR 0 0 89 END END # # Scalebar # SCALEBAR STATUS ON COLOR 0 0 0 IMAGECOLOR 230 230 230 POSTLABELCACHE FALSE LABEL COLOR 0 0 0 SIZE tiny END STYLE 1 SIZE 200 3 POSITION lr UNITS MILES INTERVALS 5 TRANSPARENT FALSE END # # td_* are layers derived from tileing the TANA shapefiles # order is important as the first layer declared is painted first. # the scales are determined by MapServer as follows: # # map_distance = (map_width-1)/(MS_PPI*inches_per_unit); # ground_distance = extent_maxx - extent_minx; # scale = ground_distance/map_distance; # #where # # MS_PPI = number of pixels per inch for a computer monitor = 72; # inches_per_unit = number of inches per map unit (i.e. UNITS ...) LAYER NAME background TYPE polygon STATUS ON # MAXSCALE 20000 CLASS NAME "World" OUTLINECOLOR 0 0 0 COLOR 30 144 255 SIZE 1 SYMBOL 0 END FEATURE POINTS -180 90 -180 -90 180 -90 180 90 -180 90 END END END LAYER NAME world DATA world.shp STATUS ON # LABELITEM "NAME" CLASSITEM "NAME" TYPE POLYGON # MAXSCALE 20000 CLASS NAME "World" OUTLINECOLOR 0 0 0 COLOR 0 255 100 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Georgia FORCE FALSE MINDISTANCE 10 MINFEATURESIZE 25 # MINSIZE 5 # MAXSIZE 256 PARTIALS FALSE POSITION cc SIZE 10 TYPE TRUETYPE END END END LAYER NAME states GROUP defaultLayer TYPE POLYGON DATA state.shp STATUS ON LABELITEM "ST_NAME" CLASSITEM "ST_NAME" #MAXSCALE 9000 CLASS COLOR 0 255 100 OUTLINECOLOR 0 0 0 SIZE 1 # SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial_Bold FORCE TRUE # MAXSIZE 256 # MINDISTANCE 10 MINFEATURESIZE AUTO # MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION cc SIZE 12 TYPE TRUETYPE END END END LAYER NAME county GROUP defaultLayer TYPE POLYGON TILEINDEX td_a8.shp STATUS ON LABELITEM "NAME" CLASSITEM "NAME" MAXSCALE 200001 CLASS NAME "County Boundary" COLOR 245 245 245 OUTLINECOLOR 255 239 219 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION cc SIZE 12 TYPE TRUETYPE END END END LAYER NAME CountyNameAnnotation GROUP PlaceName TYPE POLYGON TILEINDEX td_a8.shp STATUS ON LABELITEM "NAME" CLASSITEM "NAME" MAXSCALE 4500000 MINSCALE 2000000 CLASS NAME "CountyNameAnnotation" LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Georgia FORCE TRUE # MINDISTANCE 10 MINFEATURESIZE 40 WRAP " " MINSIZE 10 MAXSIZE 256 OFFSET 0 0 PARTIALS FALSE POSITION CC TYPE TRUETYPE END END END LAYER NAME OrangeCountyAnnotation GROUP defaultLayer TYPE POLYGON DATA usa06059______a8.shp STATUS OFF LABELITEM "NAME" CLASSITEM "NAME" #MAXSCALE 15550000 #MINSCALE 4000000 CLASS NAME "Orange County Boundary" COLOR 255 222 173 OUTLINECOLOR 255 239 219 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Georgia FORCE TRUE # MINDISTANCE 10 MINFEATURESIZE 10 MINSIZE 10 MAXSIZE 256 OFFSET 0 10 PARTIALS FALSE POSITION CC TYPE TRUETYPE END END END LAYER NAME LA_County GROUP defaultLayer TYPE POLYGON DATA usa06037______a8.shp STATUS ON # LABELITEM "NAME" CLASSITEM "NAME" #MAXSCALE 15550000 # MINSCALE 100000 CLASS NAME "Los Angeles County Boundary" OUTLINECOLOR 0 0 0 COLOR 225 254 244 MAXSIZE 50 MINSIZE 60 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Georgia FORCE TRUE # MINDISTANCE 10 MINFEATURESIZE 25 MINSIZE 5 MAXSIZE 256 OFFSET 6 2 PARTIALS FALSE POSITION CC # SIZE 8 TYPE TRUETYPE WRAP " " END END END LAYER NAME Orange_County GROUP defaultLayer TYPE POLYGON DATA usa06059______a8.shp STATUS ON # LABELITEM "NAME" CLASSITEM "NAME" #MAXSCALE 15550000 # MINSCALE 100000 CLASS NAME "Orange County Boundary" COLOR 255 239 219 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Georgia FORCE TRUE # MINDISTANCE 10 MINFEATURESIZE 20 MINSIZE 5 MAXSIZE 256 OFFSET 0 0 PARTIALS FALSE POSITION CC # SIZE 8 TYPE TRUETYPE END END END LAYER NAME Riverside_County GROUP defaultLayer TYPE POLYGON DATA usa06065______a8.shp STATUS ON # LABELITEM "NAME" CLASSITEM "NAME" #MAXSCALE 15550000 # MINSCALE 100000 CLASS NAME "Riverside County Boundary" COLOR 187 255 255 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Georgia FORCE TRUE # MINDISTANCE 10 MINFEATURESIZE 20 MINSIZE 5 MAXSIZE 256 OFFSET 0 0 PARTIALS FALSE POSITION CC # SIZE 8 TYPE TRUETYPE END END END LAYER NAME San_Benardino_County GROUP defaultLayer TYPE POLYGON DATA usa06071______a8.shp STATUS ON # LABELITEM "NAME" CLASSITEM "NAME" #MAXSCALE 15550000 # MINSCALE 100000 CLASS NAME "San Bernardino County Boundary" COLOR 255 225 255 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Georgia FORCE TRUE # MINDISTANCE 10 MINFEATURESIZE 20 MINSIZE 5 MAXSIZE 256 OFFSET 0 0 PARTIALS FALSE POSITION CC # SIZE 8 TYPE TRUETYPE WRAP " " END END END LAYER NAME Ventura_County GROUP defaultLayer TYPE POLYGON DATA usa06111______a8.shp STATUS ON # LABELITEM "NAME" CLASSITEM "NAME" #MAXSCALE 15550000 # MINSCALE 100000 CLASS NAME "Ventura County Boundary" COLOR 255 250 205 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Georgia FORCE TRUE # MINDISTANCE 10 MINFEATURESIZE 20 MINSIZE 5 MAXSIZE 256 OFFSET -1 6 PARTIALS FALSE POSITION CC # SIZE AUTO TYPE TRUETYPE END END END LAYER NAME urbanAreas GROUP defaultLayer TYPE POLYGON TILEINDEX td_oa2.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FEATTYP" CLASS NAME "Urban Area" EXPRESSION ( ( [FEATTYP] = 9342 ) ) COLOR 238 232 205 OUTLINECOLOR 238 232 205 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION cc SIZE 8 TYPE TRUETYPE END END END LAYER NAME landUse GROUP defaultLayer TYPE POLYGON TILEINDEX td_lu.shp STATUS ON LABELITEM "NAME" CLASSITEM "DISPLTYP" MAXSCALE 180000 CLASS NAME "Land use" COLOR 143 188 143 OUTLINECOLOR 0 0 0 MINSIZE 20 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 90 90 90 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE 100 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION cc SIZE 8 TYPE TRUETYPE END END END LAYER NAME majorWater GROUP defaultLayer TYPE POLYGON TILEINDEX td_wa.shp STATUS ON LABELITEM "NAME" CLASSITEM "DISPCLASS" MINSCALE 200000 # MAXSCALE 1000000 CLASS EXPRESSION ( ( [DISPCLASS] < 3 ) ) COLOR 30 144 255 OUTLINECOLOR 30 144 255 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION cc SIZE 8 TYPE TRUETYPE END END END LAYER NAME majorWaterIn GROUP defaultLayer TYPE POLYGON TILEINDEX td_wa.shp STATUS ON LABELITEM "NAME" CLASSITEM "DISPCLASS" MAXSCALE 200001 CLASS COLOR 30 144 255 OUTLINECOLOR 30 144 255 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION cc SIZE 8 TYPE TRUETYPE END END END LAYER NAME minorWater GROUP defaultLayer TYPE LINE TILEINDEX td_wl.shp STATUS ON LABELITEM "NAME" CLASSITEM "NAME" MAXSCALE 200000 CLASS NAME "River" COLOR 99 184 255 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION cc SIZE 8 TYPE TRUETYPE END END END LAYER NAME pointsOfInterrest GROUP defaultLayer TYPE POINT TILEINDEX td_pi.shp #DATA usa06037______pi STATUS ON LABELITEM "NAME" CLASSITEM "FEATTYP" MAXSCALE 150000 CLASS # museum EXPRESSION ( ( [FEATTYP] = 7317 ) ) NAME "Museum" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 8 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS # shopping center EXPRESSION ( ( [FEATTYP] = 7373 ) ) NAME "Shopping Center" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 4 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS # outdoor stadium EXPRESSION ( ( [FEATTYP] = 7374 ) ) NAME "Stadium" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 8 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS # tourist attractions EXPRESSION ( ( [FEATTYP] = 7376 ) ) NAME "Attraction" COLOR 126 0 0 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 8 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS # university & college EXPRESSION ( ( [FEATTYP] = 7377 ) ) NAME "University" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 8 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS # railway station EXPRESSION ( ( [FEATTYP] = 7380 ) ) NAME "Rail Station" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 8 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS # airport EXPRESSION ( ( [FEATTYP] = 7383 ) ) NAME "Airport" #BACKGROUNDCOLOR 255 255 255 COLOR 0 0 0 OUTLINECOLOR 255 0 0 #MAXSIZE 50 #MINSIZE 0 SIZE 25 SYMBOL 'airportIcon' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE TRUE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 10 TYPE TRUETYPE END END CLASS # conference and exhibition centers EXPRESSION ( ( [FEATTYP] = 7385 ) ) NAME "Conference Center" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 8 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS # rest areas EXPRESSION ( ( [FEATTYP] = 7395 ) ) NAME "Rest Area" COLOR 0 126 0 OUTLINECOLOR 0 0 0 SIZE 8 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS # zoo EXPRESSION ( ( [FEATTYP] = 9927 ) ) NAME "Zoo" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 8 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 #MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END END LAYER NAME cityCenterOut GROUP defaultLayer TYPE POINT TILEINDEX td_sm.shp STATUS ON LABELITEM "NAME" CLASSITEM "DISPCLASS" MAXSCALE 1500000 MINSCALE 500001 CLASS EXPRESSION ( ( [DISPCLASS] = 3 ) ) #NAME "Big City" COLOR 0 0 0 SIZE 9 SYMBOL 'circleNoFill' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial_Bold FORCE TRUE MAXSIZE 256 MINDISTANCE 50 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 9 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 6 ) ) #NAME "Medium City" COLOR 0 0 0 SIZE 7 SYMBOL 'circleNoFill' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial_Bold FORCE TRUE MAXSIZE 256 MINDISTANCE 75 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 7 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 7 ) ) #NAME "Small City" COLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 6 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 100 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 7 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 8 ) ) #NAME "Big Town" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 5 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 1 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 100 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END END LAYER NAME cityCenter GROUP defaultLayer TYPE POINT TILEINDEX td_sm.shp STATUS ON LABELITEM "NAME" CLASSITEM "DISPCLASS" MAXSCALE 500000 CLASS EXPRESSION ( ( [DISPCLASS] = 3 ) ) #NAME "Big City" COLOR 0 0 0 MAXSIZE 50 MINSIZE 1 SIZE 9 SYMBOL 'circleNoFill' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial_Bold FORCE TRUE MAXSIZE 256 MINDISTANCE 75 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 10 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 6 ) ) #NAME "Medium City" COLOR 0 0 0 MAXSIZE 50 MINSIZE 1 SIZE 7 SYMBOL 'circleNoFill' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial_Bold FORCE FALSE MAXSIZE 256 MINDISTANCE 75 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 8 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 7 ) ) #NAME "Small City" COLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 7 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 7 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 8 ) ) #NAME "Big Town" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 5 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 9 ) ) #NAME "Medium Town" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 4 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 10 ) ) #NAME "Village" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 3 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 11 ) ) #NAME "Community" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 2 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END CLASS EXPRESSION ( ( [DISPCLASS] = 12 ) ) #NAME "Small Community" COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 WRAP " " FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 10 MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 6 TYPE TRUETYPE END END END LAYER NAME bridges GROUP defaultLayer TYPE LINE TILEINDEX td_ls.shp STATUS ON LABELITEM "NAME" CLASSITEM "STRUCTTYP" MAXSCALE 70000 CLASS NAME "Bridge" COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 OVERLAYBACKGROUNDCOLOR 255 255 255 OVERLAYCOLOR 126 126 126 OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 1 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 50 OVERLAYSYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 40 # MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION cc SIZE 8 TYPE TRUETYPE END END END LAYER NAME ferries GROUP defaultLayer TYPE LINE TILEINDEX td_fe.shp STATUS ON LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 70000 CLASS NAME "Ferry" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 OUTLINECOLOR 0 0 0 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 100 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION uc SIZE 8 TYPE TRUETYPE END END END LAYER NAME street8 GROUP defaultLayer TYPE LINE TILEINDEX td_08.shp STATUS OFF LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 10000 CLASS NAME "Allies & Small Streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 100 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION uc SIZE 6 TYPE TRUETYPE END END END LAYER NAME street7 GROUP defaultLayer TYPE LINE TILEINDEX td_07.shp STATUS ON LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 10000 CLASS NAME "Small Streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 100 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION uc SIZE 8 TYPE TRUETYPE END END END LAYER NAME street6 GROUP defaultLayer TYPE LINE TILEINDEX td_06.shp STATUS ON LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 90000 CLASS NAME "Small surface streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 100 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION uc SIZE 8 TYPE TRUETYPE END END END LAYER NAME street5 GROUP defaultLayer TYPE LINE TILEINDEX td_05.shp STATUS ON LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 100000 MINSCALE 0.01 CLASS NAME "Streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 1 SYMBOL 0 LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MINDISTANCE 100 MINFEATURESIZE AUTO OFFSET 0 0 PARTIALS FALSE POSITION uc SIZE 8 TYPE TRUETYPE END END END LAYER NAME street4 GROUP defaultLayer TYPE LINE TILEINDEX td_04.shp STATUS ON LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 150000 CLASS NAME "Major Streets" BACKGROUNDCOLOR 255 255 255 COLOR 126 126 126 MAXSIZE 50 MINSIZE 0 SIZE 2 SYMBOL "circle" LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 100 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION uc SIZE 8 TYPE TRUETYPE END END END LAYER NAME street3 GROUP defaultLayer TYPE LINE TILEINDEX td_03.shp STATUS ON LABELITEM "NAME" CLASSITEM "FRC" MAXSCALE 2000000 CLASS NAME "Highways" BACKGROUNDCOLOR 255 255 255 COLOR 88 88 88 SIZE 2 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 FONT Arial FORCE FALSE MAXSIZE 256 MINDISTANCE 100 MINFEATURESIZE AUTO MINSIZE 4 OFFSET 0 0 PARTIALS FALSE POSITION uc SIZE 8 TYPE TRUETYPE END END END LAYER NAME street1 GROUP defaultLayer TYPE LINE TILEINDEX td_01.shp #DATA usa06037______01 STATUS ON #LABELITEM "NAME" #MAXSCALE 15550000.0 #MINSCALE 0.00001 CLASS NAME "US Highways" BACKGROUNDCOLOR 255 255 255 COLOR 105 105 105 SIZE 3 SYMBOL 'circle' LABEL ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 0 0 0 OUTLINECOLOR 255 255 255 FONT Arial FORCE FALSE #MINDISTANCE 5 MINFEATURESIZE AUTO OFFSET 0 0 PARTIALS FALSE POSITION lr SIZE 8 TYPE TRUETYPE END END END LAYER NAME street1 GROUP defaultLayer TYPE LINE TILEINDEX td_01.shp #DATA usa06037______01 STATUS ON #LABELITEM "NAME" #MAXSCALE 15550000.0 #MINSCALE 0.00001 CLASS NAME "US Highways" BACKGROUNDCOLOR 255 255 255 COLOR 188 188 188 SIZE 1 SYMBOL 'circle' END END LAYER NAME street0 GROUP defaultLayer TYPE LINE TILEINDEX td_00.shp STATUS ON #LABELITEM "NAME" #MAXSCALE 15550000 #MINSCALE 0.001 CLASS NAME "Interstates" COLOR 61 61 61 SIZE 3 SYMBOL 'circle' END END LAYER NAME street0 GROUP defaultLayer TYPE LINE TILEINDEX td_00.shp STATUS ON LABELITEM "NAME" #MAXSCALE 15550000 #MINSCALE 0.001 CLASS COLOR 188 188 188 SIZE 1 SYMBOL 'circle' END END LAYER NAME street01_annotation GROUP defaultLayer STATUS ON TILEINDEX td_01.shp TYPE ANNOTATION LABELITEM "ROUTENUM" CLASSITEM "NAME" MAXSCALE 4500000 #CLASS # EXPRESSION /.*\/.*/ # END CLASS EXPRESSION /HWY.*/ COLOR 0 0 0 SYMBOL 'symbols/sthwy.png' LABEL COLOR 0 0 0 WRAP "/" #MINFEATURESIZE 40 MINDISTANCE 300 POSITION cc PARTIALS FALSE SIZE tiny END END CLASS EXPRESSION /US.*/ COLOR 0 0 0 SYMBOL 'symbols/ushwy.png' LABEL COLOR 0 0 0 WRAP "/" #MINFEATURESIZE 40 MINDISTANCE 300 POSITION cc PARTIALS FALSE SIZE tiny END END CLASS EXPRESSION /I.*/ COLOR 0 0 0 SYMBOL 'symbols/interstate.png' LABEL COLOR 255 255 255 WRAP "/" #MINFEATURESIZE 40 MINDISTANCE 300 POSITION cc PARTIALS FALSE SIZE tiny END END END LAYER NAME street00_annotation GROUP defaultLayer STATUS ON TILEINDEX td_00.shp TYPE ANNOTATION LABELITEM "ROUTENUM" CLASSITEM "NAME" MAXSCALE 4500000 CLASS COLOR 200 0 0 SYMBOL 'symbols/interstate.png' LABEL COLOR 255 255 255 WRAP "/" #MINFEATURESIZE 40 MINDISTANCE 200 POSITION cc PARTIALS FALSE SIZE TINY END END END # LAYER # NAME county # GROUP defaultLayer # TYPE POLYGON # TILEINDEX td_a8.shp # STATUS ON # LABELITEM "NAME" # CLASSITEM "NAME" # MAXSCALE 40000 # CLASS # NAME "County Boundary" # COLOR 245 245 245 # OUTLINECOLOR 97 97 97 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 12 # TYPE TRUETYPE # END # END # END # LAYER # NAME urbanAreas # GROUP defaultLayer # TYPE POLYGON # TILEINDEX td_oa2.shp # STATUS ON # LABELITEM "NAME" # CLASSITEM "FEATTYP" # MAXSCALE 5000 # CLASS # NAME "Urban Area" # EXPRESSION ( ( [FEATTYP] = 9342 ) ) # COLOR 238 232 205 # OUTLINECOLOR 250 235 215 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME landUse # GROUP defaultLayer # TYPE POLYGON # #DATA usa06037______lu.shp # TILEINDEX td_lu.shp # STATUS ON # LABELITEM "NAME" # CLASSITEM "DISPLTYP" # MAXSCALE 40000 # CLASS # NAME "Land use" # COLOR 143 188 143 # OUTLINECOLOR 0 0 0 # MINSIZE 20 # SIZE 1 # # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 90 90 90 # WRAP " " # FONT Arial # FORCE TRUE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE 100 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME majorWater # GROUP defaultLayer # TYPE POLYGON # TILEINDEX td_wa.shp # STATUS ON # LABELITEM "NAME" # CLASSITEM "NAME" # MAXSCALE 40000 # CLASS # COLOR 30 144 255 # OUTLINECOLOR 30 144 255 # SIZE 1 # # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 96 96 96 # WRAP " " # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE 100 # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 10 # TYPE TRUETYPE # END # END # END # LAYER # NAME minorWater # GROUP defaultLayer # TYPE LINE # TILEINDEX td_wl.shp # STATUS ON # LABELITEM "NAME" # CLASSITEM "NAME" # MAXSCALE 40000 # CLASS # NAME "River" # COLOR 99 184 255 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 3 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE TRUE # MAXSIZE 256 # MINDISTANCE 100 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME bridges # GROUP defaultLayer # TYPE LINE # TILEINDEX td_ls.shp # STATUS ON # blah # LABELITEM "NAME" # CLASSITEM "STRUCTTYP" # MAXSCALE 70000 # CLASS # NAME "Bridge" # COLOR 126 126 126 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL "circle" # OVERLAYBACKGROUNDCOLOR 255 255 255 # OVERLAYCOLOR 126 126 126 # OVERLAYOUTLINECOLOR 0 0 0 # OVERLAYSIZE 1 # OVERLAYMINSIZE 0 # OVERLAYMAXSIZE 50 # OVERLAYSYMBOL 0 # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME ferries # GROUP defaultLayer # TYPE LINE # TILEINDEX td_fe.shp # STATUS ON # blah # LABELITEM "NAME" # CLASSITEM "FRC" # MAXSCALE 70000 # CLASS # NAME "Ferry" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # OVERLAYBACKGROUNDCOLOR 255 255 255 # OVERLAYCOLOR 126 126 126 # OVERLAYOUTLINECOLOR 0 0 0 # OVERLAYSIZE 1 # OVERLAYMINSIZE 0 # OVERLAYMAXSIZE 50 # OVERLAYSYMBOL 0 # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # # LAYER # NAME street8 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_08.shp # STATUS ON # blah # LABELITEM "NAME" # CLASSITEM "FRC" # MAXSCALE 10000 # CLASS # NAME "Alleys & Small Streets" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # OVERLAYBACKGROUNDCOLOR 255 255 255 # OVERLAYCOLOR 126 126 126 # OVERLAYOUTLINECOLOR 0 0 0 # OVERLAYSIZE 1 # OVERLAYMINSIZE 0 # OVERLAYMAXSIZE 50 # OVERLAYSYMBOL 0 # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 6 # TYPE TRUETYPE # END # END # END # LAYER # NAME street7 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_07.shp # STATUS ON # blah # LABELITEM "NAME" # CLASSITEM "FRC" # MAXSCALE 10000 # CLASS # NAME "Small Streets" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # OVERLAYBACKGROUNDCOLOR 255 255 255 # OVERLAYCOLOR 126 126 126 # OVERLAYOUTLINECOLOR 0 0 0 # OVERLAYSIZE 1 # OVERLAYMINSIZE 0 # OVERLAYMAXSIZE 50 # OVERLAYSYMBOL 0 # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME street6 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_06.shp # STATUS ON # blah # LABELITEM "NAME" # CLASSITEM "FRC" # MAXSCALE 40000 # CLASS # NAME "Small surface streets" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # OVERLAYBACKGROUNDCOLOR 255 255 255 # OVERLAYCOLOR 126 126 126 # OVERLAYOUTLINECOLOR 0 0 0 # OVERLAYSIZE 1 # OVERLAYMINSIZE 0 # OVERLAYMAXSIZE 50 # OVERLAYSYMBOL 0 # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME street5 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_05.shp # STATUS ON # blah # LABELITEM "NAME" # CLASSITEM "FRC" # MAXSCALE 40000 # CLASS # NAME "Streets" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # OVERLAYBACKGROUNDCOLOR 255 255 255 # OVERLAYCOLOR 126 126 126 # OVERLAYOUTLINECOLOR 0 0 0 # OVERLAYSIZE 1 # OVERLAYMINSIZE 0 # OVERLAYMAXSIZE 50 # OVERLAYSYMBOL 0 # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME street4 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_04.shp # STATUS ON # blah # LABELITEM "NAME" # CLASSITEM "FRC" # MAXSCALE 90000 # CLASS # NAME "Major Streets" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # OVERLAYBACKGROUNDCOLOR 255 255 255 # OVERLAYCOLOR 126 126 126 # OVERLAYOUTLINECOLOR 0 0 0 # OVERLAYSIZE 1 # OVERLAYMINSIZE 0 # OVERLAYMAXSIZE 50 # OVERLAYSYMBOL 0 # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME street3 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_03.shp # STATUS ON # blah # LABELITEM "NAME" # CLASSITEM "FRC" # MAXSCALE 2000000 # CLASS # NAME "Highways" # BACKGROUNDCOLOR 255 255 255 # COLOR 88 88 88 # SIZE 2 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 100 # MINFEATURESIZE AUTO # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION uc # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME street1 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_01.shp # #DATA usa06037______01 # STATUS ON # blah # #MAXSCALE 40000 # # CLASS # NAME "US Highways" # BACKGROUNDCOLOR 255 255 255 # COLOR 105 105 105 # SIZE 3 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # FONT Arial # FORCE FALSE # #MINDISTANCE 5 # MINFEATURESIZE AUTO # OFFSET 0 0 # PARTIALS FALSE # POSITION uc # SIZE 8 # TYPE TRUETYPE # END # END # END # LAYER # NAME street1 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_01.shp # #DATA usa06037______01 # STATUS ON # blah # #LABELITEM "NAME" # #MAXSCALE 15550000.0 # #MINSCALE 0.00001 # # CLASS # NAME "US Highways" # BACKGROUNDCOLOR 255 255 255 # COLOR 188 188 188 # SIZE 1 # SYMBOL 'circle' # END # END # LAYER # NAME street0 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_00.shp # STATUS ON # blah # #MAXSCALE 40000 # CLASS # NAME "Interstates" # COLOR 61 61 61 # SIZE 3 # SYMBOL 'circle' # END # END # LAYER # NAME street0 # GROUP defaultLayer # TYPE LINE # TILEINDEX td_00.shp # STATUS ON # blah # CLASS # COLOR 188 188 188 # SIZE 1 # SYMBOL 'circle' # END # END # LAYER # NAME street01_annotation # GROUP defaultLayer # STATUS ON # blah # TILEINDEX td_01.shp # TYPE ANNOTATION # LABELITEM "ROUTENUM" # CLASSITEM "NAME" # #MAXSCALE 40000 # CLASS # EXPRESSION /HWY.*/ # COLOR 0 0 0 # SYMBOL 'symbols/sthwy.png' # LABEL # COLOR 0 0 0 # WRAP "/" # #MINFEATURESIZE 40 # MINDISTANCE 200 # POSITION CC # PARTIALS false # SIZE tiny # END # END # CLASS # EXPRESSION /US.*/ # COLOR 0 0 0 # SYMBOL 'symbols/ushwy.png' # LABEL # COLOR 0 0 0 # WRAP "/" # #MINFEATURESIZE 40 # MINDISTANCE 200 # POSITION CC # PARTIALS false # SIZE tiny # END # END # CLASS # EXPRESSION /I.*/ # COLOR 0 0 0 # SYMBOL 'symbols/interstate.png' # LABEL # COLOR 255 255 255 # WRAP "/" # #MINFEATURESIZE 40 # MINDISTANCE 200 # POSITION CC # PARTIALS false # SIZE tiny # END # END # END # LAYER # NAME street00_annotation # GROUP defaultLayer # STATUS ON # blah # TILEINDEX td_00.shp # TYPE ANNOTATION # LABELITEM "ROUTENUM" # MAXSCALE 4500000 # CLASS # COLOR 200 0 0 # SYMBOL 'symbols/interstate.png' # LABEL # COLOR 255 255 255 # WRAP "/" # #MINFEATURESIZE 40 # MINDISTANCE 200 # POSITION CC # PARTIALS false # SIZE TINY # END # END # END # LAYER # NAME pointsOfInterest # GROUP defaultLayer # TYPE POINT # TILEINDEX td_pi.shp # STATUS ON # LABELITEM "NAME" # CLASSITEM "FEATTYP" # MAXSCALE 40000 # CLASS # # museum # EXPRESSION ( ( [FEATTYP] = 7317 ) ) # NAME "Museum" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 8 # SYMBOL 'circle' # LABEL # WRAP " " # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # WRAP " " # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 7 # TYPE TRUETYPE # END # END # # CLASS # # shopping center # EXPRESSION ( ( [FEATTYP] = 7373 ) ) # NAME "Shopping Center" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 8 # SYMBOL 'circle' # LABEL # WRAP " " # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 6 # TYPE TRUETYPE # END # END # # CLASS # # outdoor stadium # EXPRESSION ( ( [FEATTYP] == 7374 ) ) # NAME "Stadium" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 8 # SYMBOL 'circle' # LABEL # WRAP " " # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 7 # TYPE TRUETYPE # END # END # CLASS # # tourist attractions # EXPRESSION ( ( [FEATTYP] == 7376 ) ) # NAME "Attraction" # COLOR 126 0 0 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 8 # SYMBOL 'circle' # LABEL # WRAP " " # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 7 # TYPE TRUETYPE # END # END # # CLASS # # university & college # EXPRESSION ( ( [FEATTYP] == 7377 ) ) # NAME "University" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 255 # OUTLINECOLOR 255 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 8 # SYMBOL 'circle' # LABEL # ANGLE AUTO # WRAP " " # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 7 # TYPE TRUETYPE # END # END # CLASS # # railway station # EXPRESSION ( ( [FEATTYP] == 7380 ) ) # NAME "Rail Station" # COLOR 255 255 255 # SIZE 40 # SYMBOL 'transBack' # OVERLAYSYMBOL 'railIcon' # OVERLAYCOLOR 0 0 170 # OVERLAYSIZE 40 # LABEL # WRAP " " # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial_Bold # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS FALSE # POSITION AUTO # SIZE 6 # TYPE TRUETYPE # END # END # # CLASS # # airport # EXPRESSION ( ( [FEATTYP] == 7383 ) ) # NAME "Airport" # COLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 25 # SYMBOL 'airportIcon' # LABEL # ANGLE AUTO # WRAP " " # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial_Bold # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 7 # TYPE TRUETYPE # END # END # CLASS # # conference and exhibition centers # EXPRESSION ( ( [FEATTYP] == 7385 ) ) # NAME "Conference Center" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 8 # SYMBOL 'circle' # LABEL # WRAP " " # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 7 # TYPE TRUETYPE # END # END # CLASS # # rest areas # EXPRESSION ( ( [FEATTYP] = 7395 ) ) # NAME "Rest Area" # COLOR 255 255 255 # MAXSIZE 50 # MINSIZE 0 # SIZE 30 # SYMBOL 'transBack' # OVERLAYSIZE 30 # OVERLAYCOLOR 0 0 180 # OVERLAYSYMBOL 'restAreaIcon' # TEXT "Rest Area" # LABEL # WRAP " " # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION lr # SIZE 12 # TYPE TRUETYPE # END # END # # CLASS # # zoo # EXPRESSION ( ( [FEATTYP] == 9927 ) ) # NAME "Zoo" # BACKGROUNDCOLOR 255 255 255 # COLOR 126 126 126 # OUTLINECOLOR 0 0 0 # MAXSIZE 50 # MINSIZE 0 # SIZE 8 # SYMBOL 'circle' # LABEL # WRAP " " # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 7 # TYPE TRUETYPE # END # END # END # LAYER # NAME cityCenter # GROUP defaultLayer # TYPE POINT # TILEINDEX td_sm.shp # STATUS ON # LABELITEM "NAME" # CLASSITEM "DISPCLASS" # MAXSCALE 40000 # CLASS # EXPRESSION ( ( [DISPCLASS] = 3 ) ) # #NAME "Big City" # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 1 # SIZE 10 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # WRAP " " # FONT Arial_Bold # FORCE TRUE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 2 2 # PARTIALS TRUE # POSITION AUTO # SIZE 14 # TYPE TRUETYPE # END # END # CLASS # EXPRESSION ( ( [DISPCLASS] = 6 ) ) # #NAME "Medium City" # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 1 # SIZE 7 # SYMBOL 'circleNoFill' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # WRAP " " # FONT Arial_Bold # FORCE TRUE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 11 # TYPE TRUETYPE # END # END # CLASS # EXPRESSION ( ( [DISPCLASS] = 7 ) ) # #NAME "Small City" # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # WRAP " " # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 10 # TYPE TRUETYPE # END # END # CLASS # EXPRESSION ( ( [DISPCLASS] = 8 ) ) # #NAME "Big Town" # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # WRAP " " # FONT Arial_Bold # FORCE TRUE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # CLASS # EXPRESSION ( ( [DISPCLASS] = 9 ) ) # #NAME "Medium Town" # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # WRAP " " # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # CLASS # EXPRESSION ( ( [DISPCLASS] = 10 ) ) # #NAME "Village" # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 3 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # WRAP " " # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # CLASS # EXPRESSION ( ( [DISPCLASS] = 11 ) ) # #NAME "Community" # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 2 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # WRAP " " # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # CLASS # EXPRESSION ( ( [DISPCLASS] = "12" ) ) # #NAME "Small Community" # COLOR 126 126 126 # MAXSIZE 50 # MINSIZE 0 # SIZE 1 # SYMBOL 'circle' # LABEL # ANGLE AUTO # ANTIALIAS TRUE # BUFFER 2 # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # WRAP " " # FONT Arial # FORCE FALSE # MAXSIZE 256 # MINDISTANCE 10 # MINSIZE 4 # OFFSET 0 0 # PARTIALS TRUE # POSITION AUTO # SIZE 8 # TYPE TRUETYPE # END # END # # END LAYER NAME MSensors1 TYPE POINT STATUS ON TILEINDEX sensors/means.shp CLASSITEM LEVEL LABELITEM LEVEL MAXSCALE 30000 CLASS NAME 'fast' EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 1 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 0 255 0 SIZE 11 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 0 255 0 OVERLAYSIZE 8 TEXT ( [LEVEL]/[ID]/[SPEED] ) LABEL BUFFER 2 ANGLE AUTO ANTIALIAS TRUE COLOR 50 50 50 FONT Arial POSITION AUTO SIZE 20 TYPE TRUETYPE END END CLASS NAME 'medium' EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( [LEVEL] == 1 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 255 0 SIZE 11 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 255 0 OVERLAYSIZE 8 END CLASS NAME 'mediumslow' EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( [LEVEL] == 1 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 128 0 SIZE 11 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 128 0 OVERLAYSIZE 8 END CLASS NAME 'slow' EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( [LEVEL] == 1 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 0 0 SIZE 11 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 0 0 OVERLAYSIZE 8 END END LAYER NAME MSensors2 TYPE POINT STATUS ON TILEINDEX sensors/means.shp CLASSITEM LEVEL MINSCALE 30001 MAXSCALE 200000 CLASS NAME 'fast' EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 2 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 0 255 0 SIZE 9 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 0 255 0 OVERLAYSIZE 7 END CLASS NAME 'medium' EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( [LEVEL] == 2 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 255 0 SIZE 9 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 255 0 OVERLAYSIZE 7 END CLASS NAME 'mediumslow' EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( [LEVEL] == 2 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 255 0 SIZE 9 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 128 0 OVERLAYSIZE 7 END CLASS NAME 'slow' EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( [LEVEL] == 2 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 0 0 SIZE 9 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 0 0 OVERLAYSIZE 7 END END LAYER NAME MSensors3 TYPE POINT STATUS ON TILEINDEX sensors/means.shp CLASSITEM LEVEL MINSCALE 200001 MAXSCALE 1000000 CLASS NAME 'fast' EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 3 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 0 255 0 SIZE 5 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 0 255 0 OVERLAYSIZE 4 END CLASS NAME 'medium' EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( [LEVEL] == 3 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 255 0 SIZE 5 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 255 0 OVERLAYSIZE 4 END CLASS NAME 'mediumslow' EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( [LEVEL] == 3 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 128 0 SIZE 5 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 128 0 OVERLAYSIZE 4 END CLASS NAME 'slow' EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( [LEVEL] == 3 ) ) SYMBOL 'circleNoFill' OUTLINECOLOR 255 0 0 SIZE 5 OVERLAYSYMBOL 'circleNoFill' OVERLAYOUTLINECOLOR 255 0 0 OVERLAYSIZE 4 END END LAYER NAME MSensors4 TYPE POINT STATUS ON TILEINDEX sensors/means.shp CLASSITEM LEVEL MINSCALE 1000001 CLASS NAME 'fast' EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 3 ) ) COLOR 0 255 0 SYMBOL 'circleNoFill' SIZE 3 END CLASS NAME 'medium' EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( [LEVEL] == 3 ) ) COLOR 255 255 0 SYMBOL 'circleNoFill' SIZE 3 END CLASS NAME 'mediumslow' EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( [LEVEL] == 3 ) ) COLOR 255 128 0 SYMBOL 'circleNoFill' SIZE 3 END CLASS NAME 'slow' EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( [LEVEL] == 3 ) ) COLOR 255 0 0 SYMBOL 'circleNoFill' SIZE 3 END END LAYER NAME Sensors1 TYPE POINT STATUS ON TILEINDEX CurrentSensorData.shp MAXSCALE 30000 CLASS NAME 'fast' EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 1 ) ) COLOR 0 255 0 OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 11 END CLASS NAME 'medium' EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( [LEVEL] == 1 ) ) COLOR 255 255 0 OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 11 END CLASS NAME 'mediumslow' EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( [LEVEL] == 1 ) ) COLOR 255 128 0 OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 11 END CLASS NAME 'slow' EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( [LEVEL] == 1 ) ) COLOR 255 0 0 OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 11 END END LAYER NAME Sensors2 TYPE POINT STATUS ON TILEINDEX CurrentSensorData.shp MINSCALE 30001 MAXSCALE 200000 CLASS NAME 'fast' EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 2 ) ) COLOR 0 255 0 OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 9 END CLASS NAME 'medium' EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( [LEVEL] == 2 ) ) COLOR 255 255 0 OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 9 END CLASS NAME 'mediumslow' EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( [LEVEL] == 2 ) ) COLOR 255 128 0 OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 9 END CLASS NAME 'slow' EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( [LEVEL] == 2 ) ) COLOR 255 0 0 OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 9 END END LAYER NAME Sensors3 TYPE POINT STATUS ON TILEINDEX CurrentSensorData.shp MINSCALE 200001 MAXSCALE 1000000 CLASS NAME 'fast' EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 3 ) ) COLOR 0 255 0 #OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 5 END CLASS NAME 'medium' EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( [LEVEL] == 3 ) ) COLOR 255 255 0 #OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 5 END CLASS NAME 'mediumslow' EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( [LEVEL] == 3 ) ) COLOR 255 128 0 #OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 5 END CLASS NAME 'slow' EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( [LEVEL] == 3 ) ) COLOR 255 0 0 #OUTLINECOLOR 140 140 140 SYMBOL 'circle' SIZE 5 END END LAYER NAME Sensors4 TYPE POINT STATUS ON TILEINDEX CurrentSensorData.shp MINSCALE 1000001 CLASS NAME 'fast' EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 3 ) ) COLOR 0 255 0 SYMBOL 'circle' SIZE 3 END CLASS NAME 'medium' EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( [LEVEL] == 3 ) ) COLOR 255 255 0 SYMBOL 'circle' SIZE 3 END CLASS NAME 'mediumslow' EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( [LEVEL] == 3 ) ) COLOR 255 128 0 SYMBOL 'circle' SIZE 3 END CLASS NAME 'slow' EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( [LEVEL] == 3 ) ) COLOR 255 0 0 SYMBOL 'circle' SIZE 3 END END LAYER NAME SensorPoint TYPE POINT STATUS ON CLASS NAME 'Slow' COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 6 LABEL BUFFER 2 ANGLE AUTO ANTIALIAS TRUE COLOR 0 0 0 FONT Arial POSITION AUTO SIZE 8 TYPE TRUETYPE END END CLASS NAME 'Medium' COLOR 255 255 0 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 6 LABEL BUFFER 2 ANGLE AUTO ANTIALIAS TRUE COLOR 0 0 0 FONT Arial POSITION AUTO SIZE 8 TYPE TRUETYPE END END CLASS NAME 'Fast' COLOR 0 255 0 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 6 LABEL BUFFER 2 ANGLE AUTO ANTIALIAS TRUE COLOR 0 0 0 FONT Arial POSITION AUTO SIZE 8 TYPE TRUETYPE END END CLASS NAME 'Start' COLOR 0 255 0 OUTLINECOLOR 255 255 255 SYMBOL 'star' SIZE 15 LABEL ANGLE AUTO ANTIALIAS TRUE COLOR 0 255 0 FONT Arial POSITION AUTO SIZE 8 TYPE TRUETYPE END END CLASS NAME 'Finish' COLOR 255 0 0 OUTLINECOLOR 255 255 255 SYMBOL 'star' SIZE 15 LABEL ANGLE AUTO ANTIALIAS TRUE COLOR 255 0 0 FONT Arial POSITION AUTO SIZE 8 TYPE TRUETYPE END END CLASS NAME 'Unknown' COLOR 128 128 128 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 6 LABEL ANGLE AUTO ANTIALIAS TRUE COLOR 128 128 128 FONT Arial POSITION AUTO SIZE 8 TYPE TRUETYPE END END CLASS NAME 'UserStart' #COLOR 0 255 0 OUTLINECOLOR 0 255 0 SYMBOL 'star' SIZE 12 LABEL ANGLE AUTO ANTIALIAS TRUE COLOR 0 255 0 FONT Arial POSITION AUTO SIZE 8 TYPE TRUETYPE END END CLASS NAME 'UserFinish' #COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'star' SIZE 12 LABEL ANGLE AUTO ANTIALIAS TRUE COLOR 255 0 0 FONT Arial POSITION AUTO SIZE 8 TYPE TRUETYPE END END END LAYER NAME Incident TYPE POINT STATUS ON DATA incidents.shp MAXSCALE 2000000 CLASS # test NAME "Test" COLOR 0 0 0 MAXSIZE 50 MINSIZE 0 # SIZE 19 # SYMBOL 'event' SYMBOL 'symbols/incident.png' # OVERLAYSYMBOL 'triangle' # OVERLAYCOLOR 255 255 0 # OVERLAYSIZE 14 # TEXT "!" LABEL WRAP " " ANGLE AUTO ANTIALIAS TRUE BUFFER 2 COLOR 255 0 0 FONT Arial_Bold FORCE TRUE MAXSIZE 256 MINDISTANCE 30 MINSIZE 4 OFFSET 0 0 PARTIALS TRUE POSITION cc SIZE 11 TYPE TRUETYPE END END END LAYER NAME Labelling TYPE POLYGON STATUS ON TRANSFORM FALSE LABELCACHE FALSE CLASS NAME 'gray' SIZE 1 COLOR 220 220 220 LABEL ANTIALIAS TRUE COLOR 0 0 0 TYPE TRUETYPE FONT Arial SIZE 7 POSITION cc END END CLASS NAME 'red' SIZE 1 COLOR 230 230 230 LABEL ANTIALIAS TRUE COLOR 200 0 0 TYPE TRUETYPE FONT Arial SIZE 7 POSITION cc END END CLASS NAME 'blue' SIZE 1 COLOR 230 230 230 LABEL ANTIALIAS TRUE COLOR 0 0 200 TYPE TRUETYPE FONT Arial SIZE 7 POSITION cc END END FEATURE END END LAYER NAME RouteLine TYPE LINE STATUS ON FEATURE END CLASS NAME 'Path' COLOR 204 153 255 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 15 OVERLAYSYMBOL 'pointer' OVERLAYCOLOR 155 0 155 OVERLAYSIZE 20 END END # # Start of web interface definition (including WMS enabling metadata) # ignored as near as I can tell for what we are doing. WEB HEADER route_header.html TEMPLATE route.html FOOTER route_footer.html MINSCALE 0.001 MAXSCALE 15550000 LOG "/tmp/log.txt" METADATA WMS_TITLE "TrafficDodger Demo" WMS_ABSTRACT "This is the TrafficDodger Demo application for Los Angeles Metro." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://extempore.otsys.com/~dodger/mapsite/" WMS_SRS "EPSG:26915" END END END # Map File Cordially, Joe Bussell On Time Systems From gribol at FREE.FR Wed Jun 8 14:55:16 2005 From: gribol at FREE.FR (marc) Date: Wed, 8 Jun 2005 16:55:16 -0500 Subject: Mapscript - Sorting labels Message-ID: Hi, I have a shapefile (points) which contains cities names. For each town, a field contains the population number. I would like to renderer my map with cities names. I use Mapserver's stuff to avoid name collisions. I use the population field to do some filtering. I use PHP-Mapscript. Here is a pseudo algorithm: IF map_extent > 180 THEN render shapes with population > 5000k ELSE IF map_extent > 90 THEN render shapes with population > 2500k ELSE IF map_extent > 45 THEN render shapes with population > 1000k ... When the current map extent fits the first condition, it's fine. But for the others conditions, all matching shapes are rendered but without any sort between them. For the second condition, I would like to render first the shapes with pop > 5000k, then next the shapes with 5000k > pop > 2500k. If I use 2 classes in a same layer, it is not working. I can have names of towns which are in the range [2500k-5000k] and no name in the range > 5000k (I suppose that there are towns with pop > 5000k, but the Mapserver collision treatment filters them). So I cannot guarantee that cities with pop > 5000k are first displayed. And next, cities with population in the range [2500k-5000k]. I get the same issue with 2 layers and a FILTER attribute on each layer. Any suggestion to help me ? Thanks. From ARyan at CO.LINN.OR.US Wed Jun 8 15:11:04 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 8 Jun 2005 15:11:04 -0700 Subject: Mapscript - Sorting labels Message-ID: > -----Original Message----- > From: marc [mailto:gribol at FREE.FR] > Sent: Wednesday, June 08, 2005 2:55 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapscript - Sorting labels > > > Hi, > > I have a shapefile (points) which contains cities names. For > each town, a field contains the population number. I would > like to renderer my map with cities names. I use Mapserver's > stuff to avoid name collisions. I use the population field to > do some filtering. I use PHP-Mapscript. > > Here is a pseudo algorithm: > > IF map_extent > 180 THEN render shapes with population > > 5000k ELSE IF map_extent > 90 THEN render shapes with > population > 2500k ELSE IF map_extent > 45 THEN render shapes > with population > 1000k ... > > When the current map extent fits the first condition, it's > fine. But for the others conditions, all matching shapes are > rendered but without any sort between them. > > For the second condition, I would like to render first the > shapes with pop > > 5000k, then next the shapes with 5000k > pop > 2500k. > > If I use 2 classes in a same layer, it is not working. I can > have names of towns which are in the range [2500k-5000k] and > no name in the range > 5000k (I suppose that there are towns > with pop > 5000k, but the Mapserver collision treatment > filters them). So I cannot guarantee that cities with pop > > 5000k are first displayed. And next, cities with population > in the range [2500k-5000k]. > > I get the same issue with 2 layers and a FILTER attribute on > each layer. > > Any suggestion to help me ? > Thanks. > Hi marc. Have you tried setting up three scale-dependant (MINSCALE / MAXSCALE defined) classes within your layer using your filters as EXPRESSION values? Adam From bill at BINKO.NET Wed Jun 8 15:17:59 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 8 Jun 2005 18:17:59 -0400 Subject: Mapscript - Sorting labels In-Reply-To: Message-ID: On Wed, 8 Jun 2005, marc wrote: > Hi, > > I have a shapefile (points) which contains cities names. For each town, a > field contains the population number. > I would like to renderer my map with cities names. I use Mapserver's stuff > to avoid name collisions. I use the population field to do some filtering. > I use PHP-Mapscript. > > Here is a pseudo algorithm: > > IF map_extent > 180 THEN render shapes with population > 5000k > ELSE IF map_extent > 90 THEN render shapes with population > 2500k > ELSE IF map_extent > 45 THEN render shapes with population > 1000k > ... > > When the current map extent fits the first condition, it's fine. > But for the others conditions, all matching shapes are rendered but without > any sort between them. > > For the second condition, I would like to render first the shapes with pop > > 5000k, then next the shapes with 5000k > pop > 2500k. > > If I use 2 classes in a same layer, it is not working. I can have names of > towns which are in the range [2500k-5000k] and no name in the range > 5000k > (I suppose that there are towns with pop > 5000k, but the Mapserver > collision treatment filters them). > So I cannot guarantee that cities with pop > 5000k are first displayed. And > next, cities with population in the range [2500k-5000k]. > > I get the same issue with 2 layers and a FILTER attribute on each layer. > I'm sure there are lots of ways to implement this, but I recently did something similar using ogr2ogr to split the shapefile. It also has the side benefit of making the zoomed out layers much faster. You might get away with $ ogr2ogr -where "population > 1000000" cities10.shp cities.shp $ ogr2ogr -where "population > 2500000" cities25.shp cities.shp $ ogr2ogr -where "population > 5000000" cities50.shp cities.shp Then you just create three layers with different maxscales. Bill From jim at CCSSERVICESOFVA.COM Wed Jun 8 20:30:45 2005 From: jim at CCSSERVICESOFVA.COM (Jim Bilsborough) Date: Wed, 8 Jun 2005 22:30:45 -0500 Subject: Mapped Network Drives - Win Xp Message-ID: Hi, I'm a newbie here. last week I installed Windows binaries (ms4w) on a Win2K machine and followed the instructions and all worked perfect. Where the instructions recommended installing below the root directory of a drive, I created a folder called "Mapserver" and used "Map Network Drive" to refer to that folder as my M:\ drive (m=mapserver) - like I said, it worked great - both on that machine and other computers on the network. This week I ported my work in progress to an computer running Win XP Professional (SP2), and guess what - it no longer works. I've discovered that If I move my MS4W folder below the C:/ root it works fine, but even if I map the whole of the C:\ drive as drive M:\, my client pages can never find references to .map files, etc under the M: drive - it only accepts local C:\ drive references. I guess this is probably more of an XP issue, than anything to do with mapserver, ms4w, etc - but I'm hoping someone here has expereinces the same and knows the solution. TIA Jim From dcmikkelsen at SHAW.CA Thu Jun 9 00:40:59 2005 From: dcmikkelsen at SHAW.CA (Dean C. Mikkelsen) Date: Thu, 9 Jun 2005 00:40:59 -0700 Subject: EPSG code for... In-Reply-To: <42A73A67.60605@sympatico.ca> Message-ID: Hi Chris, If we give SPCS a try, we can use the following: # 405: california v: nad83 <405> proj=lcc datum=NAD83 lon_0=-118 lat_1=35d28 lat_2=34d2 lat_0=33d30 x_0=2000000 y_0=500000 no_defs <> For NAD83 And for NAD27 we can use the following: # 407: california vii: nad27 <407> proj=lcc datum=NAD27 lon_0=-118d20 lat_1=34d25 lat_2=33d52 lat_0=34d8 x_0=1276106.450596901 y_0=1268253.006858014 no_defs <> Note the change in Zones. Los Angeles County was in CALIFORNIA ZONE VII. ZONE VII was eliminated for NAD83 with Los Angeles County being included with ZONE V. This should hopefully solve the shift problem you are seeing. I would aim towards the NAD27 variant for the original projection being defined and then aim at projecting out in NAD83. Let me know what happens. Cheers, Dean Consultant, Terra ETL Ltd. North Vancouver, BC Canada Phone: +1 604 929 8630 E-mail: dcmikkelsen at shaw.ca -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher R. Thorne Sent: Wednesday, June 08, 2005 11:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... I was worried about that ;) Unfortunately, it is not an easy thing to pin point what the projection actually is. Thanks again, Chris Dean C. Mikkelsen wrote: > Hi Ken, > > Thanks for the information. > > The other problem I was looking at is that it may be a State Plane > Coordinate System as well. > > California is divided into many zones and the dataset being worked > with > did not include some of the projection information. > > Cheers, > Dean > > Consultant, Terra ETL Ltd. > North Vancouver, BC > Canada > Phone: +1 604 929 8630 > E-mail: dcmikkelsen at shaw.ca > > -----Original Message----- > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Ken Lord > *Sent:* Tuesday, June 07, 2005 12:44 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] EPSG code for... > > Dean, > > Make sure you have the Proj software installed, there's information > about it here: > > http://www.maptools.org/maplab/index.phtml?page=maplab_windows.txt > > and here: > > http://www.remotesensing.org/proj/ > > If you haven't already, grab the windows binaries, unzip and place > the Proj folder on your C drive. > > C:/Proj > > Cheers, > Ken Lord > Vancouver BC > > > > > On 6/7/05, *Christopher R. Thorne* > wrote: > > Dean C. Mikkelsen wrote: > > Hi Chris, > > > > It may be a directory problem, MapServer is not reading the > CONUS or > > NAD27/NAD83 files correctly in the proj directory. > > > > Are you using the MS4W or a later version of MapServer? > > I am using the latest version of ms4w, with Chameleon using > MapServer 4.4.2 > > Any suggestions? > > > > > Cheers, > > Dean > > > > Dean C. Mikkelsen, B.Sc.,P.Eng. > > Consultant, Terra ETL Ltd. > > North Vancouver, BC > > Canada > > Phone: +1 604 929 8630 > > E-mail: dcmikkelsen at shaw.ca > > > > > > > > -----Original Message----- > > From: Christopher R. Thorne [mailto:christhorne at sympatico.ca > ] > > Sent: Monday, June 06, 2005 4:10 PM > > To: Dean C. Mikkelsen > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > > > > > Yes I used these projections where > > > > 26911 NAD 83 is the projection of the mapfile and where NAD27 > <26711> is > > > > being reprojected. > > > > See first attached image to see how messed up the Nad27 layer > gets. > > > > If I don't define projection you can see the a shift between > the line > > layer and the solid polygon layers. > > > > Comments/suggestions?? > > > > Thanks > > Chris > > > > Dean C. Mikkelsen wrote: > > > >>Hi Chris, > >> > >>Did you try the following? > >> > >># NAD27 / UTM zone 11N > >><26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m > >>no_defs <> > >> > >># NAD83 / UTM zone 11N > >><26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 > +units=m no_defs > > > > > >><> > >> > >>Cheers, > >>Dean > >> > >>Dean C. Mikkelsen, B.Sc.,P.Eng. > >>Consultant, Terra ETL Ltd. > >>North Vancouver, BC > >>Canada > >>Phone: +1 604 929 8630 > >>E-mail: dcmikkelsen at shaw.ca > >> > >> > >> > >>-----Original Message----- > >>From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU > ] > >>On Behalf Of Christopher R. Thorne > >>Sent: Monday, June 06, 2005 3:29 PM > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > > >>Subject: [UMN_MAPSERVER-USERS] EPSG code for... > >> > >> > >>Hello all, > >> > >>If you were given the following information for two > projections for > >>California LA County region. > >> > >> > >>NAD83 UTM Zone 11 meters > >> > >>NAD27 UTM Zone 11 meters > >> > >>What would be your suggested codes? I have tried a few but > can not > >>seem > >>to get it. > >> > >>Thanks > >>Chris > >> > >> > > > > > > > > > -- > Christopher R. Thorne, GIS Specialist > -- > 3406 Southgate Rd. Ottawa ON K1V 9P9 > christhorne at sympatico.ca > Tel:(613)523-6593 -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From car271 at TISCALI.IT Thu Jun 9 01:09:42 2005 From: car271 at TISCALI.IT (Car) Date: Thu, 9 Jun 2005 03:09:42 -0500 Subject: The same layer with different extent Message-ID: Hi Carlos, you can write in the URL ...&MAPEXT=shape..., instead minx miny maxx maxy. For more infomation see: http://mapserver.gis.umn.edu/doc44/cgi-reference.html. Regards. Car From tom.lahoda at TMCTECHNOLOGIES.COM Thu Jun 9 05:04:19 2005 From: tom.lahoda at TMCTECHNOLOGIES.COM (Tom Lahoda) Date: Thu, 9 Jun 2005 08:04:19 -0400 Subject: Canadian obliteration and duplicate labels Message-ID: Hi All, I'm trying to configure MMS to draw maps on GOES satellite imagery as a part of NOAA's CLASS project. Ken Tanaka has forwarded questions to the list for me before, but I figured it was more efficient to take the direct route instead of bouncing them through him. I'm having trouble eliminating duplicate labels from appearing in the image as can be seen here: https://hail.tmctechnologies.com/~tlahoda/mms.html As can also be seen in the images on that page MMS has decided not to draw Canada and such in the image. Does anyone have any suggestions or know how to solve this problem or the duplicate labelling problem? Any and all help would be greatly appreciated. I've included the mapfile I'm using on the page along with various notes about things I've tried in solving this problem. Also I have tried using the GRID directive to draw the lat/lon graticules with no success using the near-sided projection. Thanks in advance, Thomas Lahoda -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom.lahoda at TMCTECHNOLOGIES.COM Thu Jun 9 05:04:28 2005 From: tom.lahoda at TMCTECHNOLOGIES.COM (Tom Lahoda) Date: Thu, 9 Jun 2005 08:04:28 -0400 Subject: Canadian obliteration and duplicate labels Message-ID: Hi All, I'm trying to configure MMS to draw maps on GOES satellite imagery as a part of NOAA's CLASS project. Ken Tanaka has forwarded questions to the list for me before, but I figured it was more efficient to take the direct route instead of bouncing them through him. I'm having trouble eliminating duplicate labels from appearing in the image as can be seen here: https://hail.tmctechnologies.com/~tlahoda/mms.html As can also be seen in the images on that page MMS has decided not to draw Canada and such in the image. Does anyone have any suggestions or know how to solve this problem or the duplicate labelling problem? Any and all help would be greatly appreciated. I've included the mapfile I'm using on the page along with various notes about things I've tried in solving this problem. Also I have tried using the GRID directive to draw the lat/lon graticules with no success using the near-sided projection. Thanks in advance, Thomas Lahoda -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Thu Jun 9 05:36:40 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Jun 2005 12:36:40 +0000 Subject: Queryfile and Savequery CGI Help Message-ID: David INFORMGIS.COM> writes: > > Hi All, > > I'm trying to use CGI mapserver and have run into some confusion about the > queryfile and savequery parameters. The cgi reference manual says that > you can use the queryfile parameter within a Browse mode to have your > selection stay highlighted while you zoom/pan after performing the initial > query. In your initial query, set savequery=true. This will save the in your temp directory with a unique (and rather long) name. Then on subsequent queries set queryfile=/path/to/unique_long_name.qy An example is at: http://www2.tetonwyo.org/mapserver Start out with a property search for 'smith' and then watch what happens on the address bar. Rich From ed at TOPOZONE.COM Thu Jun 9 07:32:49 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 9 Jun 2005 10:32:49 -0400 Subject: Mapped Network Drives - Win Xp Message-ID: Jim - Remember that when MapServer is run as a CGI binary under IIS, it is running in the user context configured for your Web server/site. It's NOT running as "you", so "your" M:\ drive mapping may be completely ignored. In fact, the default IUSR_ account is configured to not have access to any network resources at all, for security reasons. Network drive mappings are very tricky to manage. I have not tried in a long while, but if I'm not mistaken you may have more success with UNC names (\\SERVER\SHARE\FILENAME) to point to those resources. That will avoid the drive mapping issue, but the user context being used will still need to have the correct access permissions to use the resource. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jim Bilsborough Sent: Wednesday, June 08, 2005 11:31 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapped Network Drives - Win Xp Hi, I'm a newbie here. last week I installed Windows binaries (ms4w) on a Win2K machine and followed the instructions and all worked perfect. Where the instructions recommended installing below the root directory of a drive, I created a folder called "Mapserver" and used "Map Network Drive" to refer to that folder as my M:\ drive (m=mapserver) - like I said, it worked great - both on that machine and other computers on the network. This week I ported my work in progress to an computer running Win XP Professional (SP2), and guess what - it no longer works. I've discovered that If I move my MS4W folder below the C:/ root it works fine, but even if I map the whole of the C:\ drive as drive M:\, my client pages can never find references to .map files, etc under the M: drive - it only accepts local C:\ drive references. I guess this is probably more of an XP issue, than anything to do with mapserver, ms4w, etc - but I'm hoping someone here has expereinces the same and knows the solution. TIA Jim From fwarmerdam at GMAIL.COM Thu Jun 9 12:52:55 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 9 Jun 2005 15:52:55 -0400 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance In-Reply-To: Message-ID: On 6/4/05, Dan Greve wrote: > To everyone, > > Are GeoTiff overviews taken advantage of by Mapserver? What's the best way > to handle large datasets (300 GB, 260,000 files in my case) when you want > the user to be able to view the whole dataset. Dan, I think that Mark had the right idea with creating new overview layers to kick in at various scales. To show an overview of your whole region it would be disaster to have touch all 260,000 of your files. To answer one specific question, MapServer will take advantage of overviews built into GeoTIFF files (assuming GDAL is in use). > I have a lot of data, probably about 300GB spread among 260,000 tiles. > Let's just say the region is... Texas. I want the user to be able to see > the data set at ANY zoom factor. He'd start out looking at the entire state > of texas, and be able to zoom progressively into a city block, and back out > again. If the data format could handle 300 GB in a single file (I'm using > GeoTIFF), theoretically the performance would be better than if I created a > TILEINDEX (shapefile) of the 260,000 tiles. I've seen this in smaller > datasets when requesting the entire scene, even just a 13000x13000 dataset > with just over 2500 tiles. If GeoTIFF supported very large files (there are plans for "BigTIFF support" one day) then I might encourage you to just create one huge internally tiled GeoTIFF file with lots and lots of overview levels. You could use a format like Erdas Imagine that does support very large files and build one huge mosaic image, with lots of overviews. It *ought* to work quite efficiently though there might be some efficiency hits with such a large dataset. For instance, just processing the block pointers array might prove quite a bit of work. What Mark is suggesting is to: o Create a tile index for all your files. You will likely want a spatial index built on this tileindex shapefile. o Create a layer in your mapfile using this tileindex, perhaps named "mosaic_fullres". o I would suggest building internal overviews on all the individual geotiff files as well. o View the resulting layer in MapServer, starting near full resolution. Zoom out till performance degrades unacceptably. This will be a new resolution at which you you need to build a new "overview layer". This isn't an overview within the files in question, it is a whole new layer in the map. There are a variety of ways to build it. I would likely prepare a script to generate it with MapServer itself, by issuing a series of scripted render requests at your new chosen overview resolution. o If you produce this new layer as a set of tile files, you will also need a tileindex for it. o In the mapfile you will need to add this new set of tiles as a new layer. You will want to use the MINSCALE and MAXSCALE options on this layer and the full resolution layer to ensure that renders start to operate from this layer instead of the full resolution data at a suitable resolution. There is some mechanism (GROUP? Using the same layer name?) to ensure that this layer and the full res layer will be treated as a single layer from a user-visible point of view. I don't know this details of this aspect. o you can repeat the above overview layer steps to build additional overview layers if needed till your full scene gives acceptable performance. OK, looking over my garbled explanation, I'm not sure I have helped at all. This fairly common situations screams out for some sort of utility to help build the overview map layers. Or at least we should have a more detailed HOWTO for this process than I am in a position to prepare just now. > > When you say > > "I create a new tile grid shapefile using that map extent as the size of one > tile. I tile the entire map area (in my case the world). " > > Do you mean you just duplicate the entire dataset with larger tiles when a > TILEINDEX search would take longer? He means to duplicate the whole dataset, but at the much reduced resolution at which the render performance started to degrade. If your original files were fairly large, and had internal overviews built, I believe your first overview map layer would likely be at something like 1/128'th of the resolution of the original data. So the overview dataset would then be 1/16000th the size of the original data or so. > When you say > > "I create a new aggregate image layer using calls to the map server to > generate an image for each new tile." > > I have no idea what you meant by "aggregate image layer" He means a whole new map layer which is at a reduced resolution. It is an aggregate of a whole bunch of calls to mapserver to render tiles of the total region. (hence the need for a new tile index). > Are you downsampling the image at all as you increase the tile sizes? The > raster howto on the UMN site has a snippet about Frank W. wanting to > implement using GeoTIFF overviews in the mapserver. Does mapserver > currently take advantage of this? Could you elaborate on your pyramid > scheme? Yes, he means that it would be at a much reduced resolution. The tile sizes in meters is much bigger, but the actual tile sizes in terms of pixels need not necessarily be much larger. Note that there are different types of tiling and overviews coming into play. o Macro tiling: Each tile is a separate TIFF file, and a tileindex shapefile is used to associate them to treat them as one layer in the .map file. o Internal tiling: A given TIFF file can be internally organized into tiles as opposed to strips (scanlines). This gives o "map level overviews": using mutiple layers in a .map file with MINSCALE/MAXSCALE to select which layer to render from. o "internal overviews": individual TIFF files can have overviews built in and GDAL will automatically take advantage of them if present. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gribol at FREE.FR Thu Jun 9 12:55:26 2005 From: gribol at FREE.FR (Gribol) Date: Thu, 9 Jun 2005 21:55:26 +0200 Subject: Mapscript - Sorting labels In-Reply-To: Message-ID: ; > Hi, ; > ; > I have a shapefile (points) which contains cities names. For ; each town, a ; > field contains the population number. ; > I would like to renderer my map with cities names. I use ; Mapserver's stuff ; > to avoid name collisions. I use the population field to do some ; filtering. ; > I use PHP-Mapscript. ; > ; > Here is a pseudo algorithm: ; > ; > IF map_extent > 180 THEN render shapes with population > 5000k ; > ELSE IF map_extent > 90 THEN render shapes with population > 2500k ; > ELSE IF map_extent > 45 THEN render shapes with population > 1000k ; > ... ; > ; > When the current map extent fits the first condition, it's fine. ; > But for the others conditions, all matching shapes are rendered ; but without ; > any sort between them. ; > ; > For the second condition, I would like to render first the ; shapes with pop ; > > 5000k, then next the shapes with 5000k > pop > 2500k. ; > ; > If I use 2 classes in a same layer, it is not working. I can ; have names of ; > towns which are in the range [2500k-5000k] and no name in the ; range > 5000k ; > (I suppose that there are towns with pop > 5000k, but the Mapserver ; > collision treatment filters them). ; > So I cannot guarantee that cities with pop > 5000k are first ; displayed. And ; > next, cities with population in the range [2500k-5000k]. ; > ; > I get the same issue with 2 layers and a FILTER attribute on each layer. ; > ; ; I'm sure there are lots of ways to implement this, but I recently did ; something similar using ogr2ogr to split the shapefile. It also has the ; side benefit of making the zoomed out layers much faster. ; ; You might get away with ; ; $ ogr2ogr -where "population > 1000000" cities10.shp cities.shp ; $ ogr2ogr -where "population > 2500000" cities25.shp cities.shp ; $ ogr2ogr -where "population > 5000000" cities50.shp cities.shp ; ; Then you just create three layers with different maxscales. ; ; Bill Hi Bill, I don't think that your solution will work. If I use the cities25.shp, this shape contains names of towns with a population higher than 2500k. But what I want is to prioritize the rendering of towns labels : First, towns with a population higher than 5000k and next towns with a population higher than 2500k. Juste a simple exemple : "Label30" is the label of a town with a population of 3000k. "Label55" is the label of a town with a population of 5500k. These two labels are closest (in pixel coordinates) and cannot be displayed both at the current map extent (because of names collision). These two labels are matching the filter condition (higher than 2500k). How to force Mapserver to draw the "Label55" and not "Label30" ? That is my issue. Marc From blaine_hack1 at YAHOO.COM Thu Jun 9 13:05:27 2005 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Thu, 9 Jun 2005 13:05:27 -0700 Subject: Reverse Geocoding In-Reply-To: Message-ID: Rene Stephen Woodbridge at http://www.imaptools.com/ has a one that works quite well. Blaine --- Ren? Fournier wrote: > Hi, > > I'm looking for a simple Reverse Geocoder > app/code/source that I can > query via PHP. Any suggestions? > > > ...R F > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dmorissette at DMSOLUTIONS.CA Thu Jun 9 13:09:45 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 9 Jun 2005 16:09:45 -0400 Subject: Mapscript - Sorting labels In-Reply-To: Message-ID: Gribol wrote: > > Juste a simple exemple : > "Label30" is the label of a town with a population of 3000k. > "Label55" is the label of a town with a population of 5500k. > These two labels are closest (in pixel coordinates) and cannot be displayed > both at the current map extent (because of names collision). These two > labels are matching the filter condition (higher than 2500k). > How to force Mapserver to draw the "Label55" and not "Label30" ? That is my > issue. > I think you may be able to do that with the sortshp utility, see: http://mapserver.gis.umn.edu/utils.html Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bill at BINKO.NET Thu Jun 9 13:17:46 2005 From: bill at BINKO.NET (Bill Binko) Date: Thu, 9 Jun 2005 16:17:46 -0400 Subject: Mapscript - Sorting labels In-Reply-To: <42A8A209.7030907@dmsolutions.ca> Message-ID: On Thu, 9 Jun 2005, Daniel Morissette wrote: > Gribol wrote: > > > I think you may be able to do that with the sortshp utility, see: > http://mapserver.gis.umn.edu/utils.html > Yup: sorry Gribol, I missed your point. You might still want to do the splitting for performance reasons :) Bill From christhorne at SYMPATICO.CA Thu Jun 9 13:48:59 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Thu, 9 Jun 2005 16:48:59 -0400 Subject: MrSid questions Message-ID: Hello all, I have a MrSID file and of course I would like to add it to a mapfile. I am using ms4w and of course MrSID is not configured to be read. I have been doing some research on the archives or gdal and mapserver. Here is what I know or think I know. you must get a licenses to read a MrSID file, which I read here (http://www.remotesensing.org/gdal/frmt_mrsid.html) I was wondering if someone could give me some more information on what would be involved in adding a MrSid file to a mapserver app. I don't normally use rasters or building my own windows binaries, or linux compiling for that matter. :) Chris -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From fwarmerdam at GMAIL.COM Thu Jun 9 13:49:28 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 9 Jun 2005 16:49:28 -0400 Subject: MrSid questions In-Reply-To: <42A8AB3B.3040000@sympatico.ca> Message-ID: On 6/9/05, Christopher R. Thorne wrote: > Hello all, > I have a MrSID file and of course I would like to add it to a mapfile. I > am using ms4w and of course MrSID is not configured to be read. I have > been doing some research on the archives or gdal and mapserver. Here is > what I know or think I know. > > you must get a licenses to read a MrSID file, which I read here > (http://www.remotesensing.org/gdal/frmt_mrsid.html) > > I was wondering if someone could give me some more information on what > would be involved in adding a MrSid file to a mapserver app. I don't > normally use rasters or building my own windows binaries, or linux > compiling for that matter. :) Chris, I thnk if you dig into the MS4W mailing list archive you can find an email from me about about MrSID support. Basically I build a MrSID "plugin" for MS4W's version of GDAL that should allow you to use MrSID files. You will still need to download the MrSID DLLs from the Lizardtech web site yourself. Let me know if you run into problems. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Thu Jun 9 14:17:00 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 9 Jun 2005 17:17:00 -0400 Subject: Scale Buckets and Rasters In-Reply-To: Message-ID: On 6/2/05, Travis Kirstine GIS Tech wrote: > Hi, > I was hoping someone could give me some clarification on the PROCESSING > SCALE and SCALE BUCKETS directives. I am displaying a classed 32bit > floating raster using the following: > > CLASS > NAME class1 > EXPRESSION ([pixel] = 0) > COLOR 56 168 0 > END > CLASS > NAME class2 > EXPRESSION ([pixel] >= 0 and [pixel] <= 2) > COLOR 90 186 0 > END > CLASS > NAME class3 > EXPRESSION ([pixel] > 2 and [pixel] <= 4) > COLOR 131 207 0 > END > CLASS > NAME class4 > EXPRESSION ([pixel] > 4 and [pixel] <= 5) > COLOR 176 224 0 > END > CLASS > NAME class5 > EXPRESSION ([pixel] > 5 and [pixel] <= 7) > COLOR 228 245 0 > END > > etc for 10 classes............. > This works but is fairly slow. So I am trying to use the processing buckets > directive with the following syntax: > > PROCESSING "SCALE=0,444" #min and max values of raster > PROCESSING "SCALE_BUCKETS=10" #number of classes > > When this is added mapserver only displays the higher values. Does the > processing buckets directive only work on equal interval classes or do I > just have a incorrect syntax. > Travis Travis, If you use the above processing options, the range 0 to 444 will be split into 10 *equal* buckets. So 0-44 wll be one bucket for instance. I would suggest: > PROCESSING "SCALE=0,444" #min and max values of raster > PROCESSING "SCALE_BUCKETS=444" #number of classes This will ensure that only 444 buckets are created, but that they are on integral boundaries which seems like it should be fine for your purposes. Essentially it will classify each "middle of bucket" value such as 0.5, 1.5, 2.5, and cache the result. Then values will be assigned to one of these buckets. Note that if your actual image data has alot of integral values, there may be some uncertainty about which bucket they would fall into since the integers will be the bucket boundaries. The edge conditions may not be handled as they ought. If this is an issue you might want to use slightly different range values. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From joe at OTSYS.COM Thu Jun 9 15:23:33 2005 From: joe at OTSYS.COM (Joseph Bussell) Date: Thu, 9 Jun 2005 15:23:33 -0700 Subject: perl mapscript crash "Can't locate auto/mapscript/classObj/swig_size_s.al" In-Reply-To: <42A75BA5.1040409@otsys.com> Message-ID: No one has any ideas??? Joseph Bussell wrote: > I have a mapfile that when viewed at certain zoom levels, generates a > failure. The Apache log indicates that a specific object cannot be > found. I explicitly turned off all the layers, intending to add them > one at a time until I observed a failure, but the failure still > existed for scales 2000001 and higher. I do not understand why some > Perl module is differentially available based on my scale. Back in > the days when TrafficDodger was an active application this was > working. I updated the mapscript to the latest stable rev and had to > make a few changes (like my extents were improperly ordered). Lower > scales work nicely. I have other maps that show the whole planet, > these render nicely. Does anyone have any ideas? > > I am using perl mapscript from version mapserver-4.4.2, ( set up > with ./configure --with-proj --with-gdal --with-gd --with-perl > --with-php=../mapserverDeps/php-5.0.2/ ) > Linux 2.6.10-1.771_FC2 #1 built Mon Mar 28 00:50:14 EST 2005 i686 > athlon i386 GNU/Linux > Server version: Apache/1.3.31 (Unix) > > I offer the error string: > > Can't locate auto/mapscript/classObj/swig_size_s.al in @INC (@INC > contains: /usr/traffic2/perl > /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 > /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 > /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 > /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 > /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 > /usr/lib/perl5/vendor_perl /usr/local/apache/ > /usr/local/apache/lib/perl) at > /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/mapscript.pm > line 35\n > > > My map file is as follows: > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > # > # Start of map file > # > > NAME CA > STATUS ON > SIZE 325 325 > > PROJECTION > "proj=latlong" > END > > #EXTENT -118.236313 34.013892 -118.201033 34.049172 > # EXTENT -118.884 33.39597 -114.487 35.607288 > # xmin, ymin, xmax, ymax > EXTENT -180.0 -90.0 180.0 90.0 > > > #These paths are set in mapdrawing.pm via Perl/Mapscript > #SHAPEPATH "/hardcoded/paths/lead/to/diminished/potency/shapefiles/" > #FONTSET /hardcoded/paths/lead/to/diminished/potency/fonts.list > > SYMBOLSET symbols.sym > > IMAGECOLOR 161 161 161 TRANSPARENT ON > UNITS dd > # you may need to change this to match your MapServer build > IMAGETYPE PNG > > > # > # The Reference map is the thumbnail map that allows users to > # quickly navigate over the 'zoomed-out' map. > # > REFERENCE > IMAGE graphics/reference_ca.png > EXTENT -124.39263784515 32.5357813439163 -114.125230507624 > 42.0021917751363 > SIZE 120 120 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > > # > # The legend > # > LEGEND > STATUS OFF > KEYSIZE 18 12 > LABEL > TYPE TRUETYPE > FONT Arial > SIZE 8 > COLOR 0 0 89 > END > END > > # > # Scalebar > # > SCALEBAR > STATUS ON > COLOR 0 0 0 > IMAGECOLOR 230 230 230 > POSTLABELCACHE FALSE > LABEL > COLOR 0 0 0 > SIZE tiny > END > STYLE 1 > SIZE 200 3 > POSITION lr > UNITS MILES > INTERVALS 5 > TRANSPARENT FALSE > END > > > # > # td_* are layers derived from tileing the TANA shapefiles > # order is important as the first layer declared is painted first. > > # the scales are determined by MapServer as follows: > # > # map_distance = (map_width-1)/(MS_PPI*inches_per_unit); > # ground_distance = extent_maxx - extent_minx; > # scale = ground_distance/map_distance; > # > #where > # > # MS_PPI = number of pixels per inch for a computer monitor = 72; > # inches_per_unit = number of inches per map unit (i.e. UNITS ...) > > LAYER > NAME background > TYPE polygon > STATUS ON > # MAXSCALE 20000 > > > CLASS > NAME "World" > OUTLINECOLOR 0 0 0 > COLOR 30 144 255 > SIZE 1 > SYMBOL 0 > END > > FEATURE > POINTS > -180 90 > -180 -90 > 180 -90 > 180 90 > -180 90 END > END > END > > LAYER > NAME world > DATA world.shp > STATUS ON > # LABELITEM "NAME" > CLASSITEM "NAME" > TYPE POLYGON > # MAXSCALE 20000 > CLASS > NAME "World" > OUTLINECOLOR 0 0 0 > COLOR 0 255 100 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Georgia > FORCE FALSE > MINDISTANCE 10 > MINFEATURESIZE 25 > # MINSIZE 5 > # MAXSIZE 256 > PARTIALS FALSE > POSITION cc > SIZE 10 > TYPE TRUETYPE > END > END > END > > LAYER > NAME states > GROUP defaultLayer > TYPE POLYGON > DATA state.shp > STATUS ON > LABELITEM "ST_NAME" > CLASSITEM "ST_NAME" > #MAXSCALE 9000 > > CLASS > COLOR 0 255 100 > OUTLINECOLOR 0 0 0 > SIZE 1 > # SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial_Bold > FORCE TRUE > # MAXSIZE 256 > # MINDISTANCE 10 > MINFEATURESIZE AUTO > # MINSIZE 4 > OFFSET 0 0 > PARTIALS TRUE > POSITION cc > SIZE 12 > TYPE TRUETYPE > END > END > END > > LAYER > NAME county > GROUP defaultLayer > TYPE POLYGON > TILEINDEX td_a8.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "NAME" > MAXSCALE 200001 > > CLASS > NAME "County Boundary" > COLOR 245 245 245 > OUTLINECOLOR 255 239 219 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION cc > SIZE 12 > TYPE TRUETYPE > END > END > END > > LAYER > NAME CountyNameAnnotation > GROUP PlaceName > TYPE POLYGON > TILEINDEX td_a8.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "NAME" > MAXSCALE 4500000 > MINSCALE 2000000 > > > CLASS > NAME "CountyNameAnnotation" > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Georgia > FORCE TRUE > # MINDISTANCE 10 > MINFEATURESIZE 40 > WRAP " " > MINSIZE 10 > MAXSIZE 256 > OFFSET 0 0 > PARTIALS FALSE > POSITION CC > TYPE TRUETYPE > END > END > END > > LAYER > NAME OrangeCountyAnnotation > GROUP defaultLayer > TYPE POLYGON > DATA usa06059______a8.shp STATUS OFF > LABELITEM "NAME" > CLASSITEM "NAME" > #MAXSCALE 15550000 > #MINSCALE 4000000 > > > CLASS > NAME "Orange County Boundary" > COLOR 255 222 173 > OUTLINECOLOR 255 239 219 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Georgia > FORCE TRUE > # MINDISTANCE 10 > MINFEATURESIZE 10 > MINSIZE 10 > MAXSIZE 256 > OFFSET 0 10 > PARTIALS FALSE > POSITION CC > TYPE TRUETYPE > END > END > END > > > LAYER > NAME LA_County > GROUP defaultLayer > TYPE POLYGON > DATA usa06037______a8.shp STATUS ON > # LABELITEM "NAME" > CLASSITEM "NAME" > #MAXSCALE 15550000 > # MINSCALE 100000 > CLASS > NAME "Los Angeles County Boundary" > OUTLINECOLOR 0 0 0 > COLOR 225 254 244 > MAXSIZE 50 > MINSIZE 60 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Georgia > FORCE TRUE > # MINDISTANCE 10 > MINFEATURESIZE 25 > MINSIZE 5 > MAXSIZE 256 > OFFSET 6 2 > PARTIALS FALSE > POSITION CC > # SIZE 8 > TYPE TRUETYPE > WRAP " " > > END > END > END > > LAYER > NAME Orange_County > GROUP defaultLayer > TYPE POLYGON > DATA usa06059______a8.shp STATUS ON > # LABELITEM "NAME" > CLASSITEM "NAME" > #MAXSCALE 15550000 > # MINSCALE 100000 > > > CLASS > NAME "Orange County Boundary" > COLOR 255 239 219 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Georgia > FORCE TRUE > # MINDISTANCE 10 > MINFEATURESIZE 20 > MINSIZE 5 > MAXSIZE 256 > OFFSET 0 0 > PARTIALS FALSE > POSITION CC > # SIZE 8 > TYPE TRUETYPE > END > END > END > LAYER > NAME Riverside_County > GROUP defaultLayer > TYPE POLYGON > DATA usa06065______a8.shp > STATUS ON > # LABELITEM "NAME" > CLASSITEM "NAME" > #MAXSCALE 15550000 > # MINSCALE 100000 > > > CLASS > NAME "Riverside County Boundary" > COLOR 187 255 255 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Georgia > FORCE TRUE > # MINDISTANCE 10 > MINFEATURESIZE 20 > MINSIZE 5 > MAXSIZE 256 > OFFSET 0 0 > PARTIALS FALSE > POSITION CC > # SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME San_Benardino_County > GROUP defaultLayer > TYPE POLYGON > DATA usa06071______a8.shp > STATUS ON > # LABELITEM "NAME" > CLASSITEM "NAME" > #MAXSCALE 15550000 > # MINSCALE 100000 > > > CLASS > NAME "San Bernardino County Boundary" > COLOR 255 225 255 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Georgia > FORCE TRUE > # MINDISTANCE 10 > MINFEATURESIZE 20 > MINSIZE 5 > MAXSIZE 256 > OFFSET 0 0 > PARTIALS FALSE > POSITION CC > # SIZE 8 > TYPE TRUETYPE > WRAP " " > END > END > END > > LAYER > NAME Ventura_County > GROUP defaultLayer > TYPE POLYGON > DATA usa06111______a8.shp > STATUS ON > # LABELITEM "NAME" > CLASSITEM "NAME" > #MAXSCALE 15550000 > # MINSCALE 100000 > > > CLASS > NAME "Ventura County Boundary" > COLOR 255 250 205 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Georgia > FORCE TRUE > # MINDISTANCE 10 > MINFEATURESIZE 20 > MINSIZE 5 > MAXSIZE 256 > OFFSET -1 6 > PARTIALS FALSE > POSITION CC > # SIZE AUTO > TYPE TRUETYPE > END > END > END > > LAYER > NAME urbanAreas > GROUP defaultLayer > TYPE POLYGON > TILEINDEX td_oa2.shp > STATUS OFF > LABELITEM "NAME" > CLASSITEM "FEATTYP" > > CLASS > NAME "Urban Area" > EXPRESSION ( ( [FEATTYP] = 9342 ) ) > COLOR 238 232 205 > OUTLINECOLOR 238 232 205 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION cc > SIZE 8 > TYPE TRUETYPE > END > END > END > > > LAYER > NAME landUse > GROUP defaultLayer > TYPE POLYGON > TILEINDEX td_lu.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "DISPLTYP" > MAXSCALE 180000 > > CLASS > NAME "Land use" > COLOR 143 188 143 > OUTLINECOLOR 0 0 0 > MINSIZE 20 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 90 90 90 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINFEATURESIZE 100 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION cc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME majorWater > GROUP defaultLayer > TYPE POLYGON > TILEINDEX td_wa.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "DISPCLASS" > MINSCALE 200000 > # MAXSCALE 1000000 > CLASS > EXPRESSION ( ( [DISPCLASS] < 3 ) ) > COLOR 30 144 255 > OUTLINECOLOR 30 144 255 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION cc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME majorWaterIn > GROUP defaultLayer > TYPE POLYGON > TILEINDEX td_wa.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "DISPCLASS" > MAXSCALE 200001 > CLASS > COLOR 30 144 255 > OUTLINECOLOR 30 144 255 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION cc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME minorWater > GROUP defaultLayer > TYPE LINE > TILEINDEX td_wl.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "NAME" > MAXSCALE 200000 > > CLASS > NAME "River" > COLOR 99 184 255 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION cc > SIZE 8 > TYPE TRUETYPE > END > END > END > > > LAYER > NAME pointsOfInterrest > GROUP defaultLayer > TYPE POINT > TILEINDEX td_pi.shp > #DATA usa06037______pi > STATUS ON > LABELITEM "NAME" > CLASSITEM "FEATTYP" > MAXSCALE 150000 > > CLASS > # museum > EXPRESSION ( ( [FEATTYP] = 7317 ) ) > NAME "Museum" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 8 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > # shopping center > EXPRESSION ( ( [FEATTYP] = 7373 ) ) > NAME "Shopping Center" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 4 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > CLASS > # outdoor stadium > EXPRESSION ( ( [FEATTYP] = 7374 ) ) > NAME "Stadium" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 8 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > # tourist attractions > EXPRESSION ( ( [FEATTYP] = 7376 ) ) > NAME "Attraction" > COLOR 126 0 0 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 8 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > # university & college > EXPRESSION ( ( [FEATTYP] = 7377 ) ) > NAME "University" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 8 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > # railway station > EXPRESSION ( ( [FEATTYP] = 7380 ) ) > NAME "Rail Station" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 8 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > # airport > EXPRESSION ( ( [FEATTYP] = 7383 ) ) > NAME "Airport" > #BACKGROUNDCOLOR 255 255 255 > COLOR 0 0 0 > OUTLINECOLOR 255 0 0 > #MAXSIZE 50 > #MINSIZE 0 > SIZE 25 > SYMBOL 'airportIcon' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE TRUE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 10 > TYPE TRUETYPE > END > END > > CLASS > # conference and exhibition centers > EXPRESSION ( ( [FEATTYP] = 7385 ) ) > NAME "Conference Center" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 8 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > # rest areas > EXPRESSION ( ( [FEATTYP] = 7395 ) ) > NAME "Rest Area" > COLOR 0 126 0 > OUTLINECOLOR 0 0 0 > SIZE 8 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > # zoo > EXPRESSION ( ( [FEATTYP] = 9927 ) ) > NAME "Zoo" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 8 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > #MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > END > > LAYER > NAME cityCenterOut > GROUP defaultLayer > TYPE POINT > TILEINDEX td_sm.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "DISPCLASS" > MAXSCALE 1500000 > MINSCALE 500001 > > CLASS > EXPRESSION ( ( [DISPCLASS] = 3 ) ) > #NAME "Big City" > COLOR 0 0 0 > SIZE 9 > SYMBOL 'circleNoFill' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial_Bold > FORCE TRUE > MAXSIZE 256 > MINDISTANCE 50 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 9 > TYPE TRUETYPE > END > END > CLASS > EXPRESSION ( ( [DISPCLASS] = 6 ) ) > #NAME "Medium City" > COLOR 0 0 0 > SIZE 7 > SYMBOL 'circleNoFill' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial_Bold > FORCE TRUE > MAXSIZE 256 > MINDISTANCE 75 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 7 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 7 ) ) > #NAME "Small City" > COLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 6 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 100 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 7 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 8 ) ) > #NAME "Big Town" > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 5 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 1 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 100 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > > END > > > LAYER > NAME cityCenter > GROUP defaultLayer > TYPE POINT > TILEINDEX td_sm.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "DISPCLASS" > MAXSCALE 500000 > > CLASS > EXPRESSION ( ( [DISPCLASS] = 3 ) ) > #NAME "Big City" > COLOR 0 0 0 > MAXSIZE 50 > MINSIZE 1 > SIZE 9 > SYMBOL 'circleNoFill' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial_Bold > FORCE TRUE > MAXSIZE 256 > MINDISTANCE 75 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 10 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 6 ) ) > #NAME "Medium City" > COLOR 0 0 0 > MAXSIZE 50 > MINSIZE 1 > SIZE 7 > SYMBOL 'circleNoFill' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial_Bold > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 75 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 8 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 7 ) ) > #NAME "Small City" > COLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 7 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 7 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 8 ) ) > #NAME "Big Town" > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 5 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 9 ) ) > #NAME "Medium Town" > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 4 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 10 ) ) > #NAME "Village" > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 3 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 11 ) ) > #NAME "Community" > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 2 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 12 ) ) > #NAME "Small Community" > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > WRAP " " > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 10 > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 6 > TYPE TRUETYPE > END > END > END > > LAYER > NAME bridges > GROUP defaultLayer > TYPE LINE > TILEINDEX td_ls.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "STRUCTTYP" > MAXSCALE 70000 > > CLASS > NAME "Bridge" > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > OVERLAYBACKGROUNDCOLOR 255 255 255 > OVERLAYCOLOR 126 126 126 > OVERLAYOUTLINECOLOR 0 0 0 > OVERLAYSIZE 1 > OVERLAYMINSIZE 0 > OVERLAYMAXSIZE 50 > OVERLAYSYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 40 > # MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION cc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME ferries > GROUP defaultLayer > TYPE LINE > TILEINDEX td_fe.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "FRC" > MAXSCALE 70000 > > CLASS > NAME "Ferry" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > OUTLINECOLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 100 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION uc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME street8 > GROUP defaultLayer > TYPE LINE > TILEINDEX td_08.shp > STATUS OFF > LABELITEM "NAME" > CLASSITEM "FRC" > MAXSCALE 10000 > > CLASS > NAME "Allies & Small Streets" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 100 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION uc > SIZE 6 > TYPE TRUETYPE > END > END > END > > LAYER > NAME street7 > GROUP defaultLayer > TYPE LINE > TILEINDEX td_07.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "FRC" > MAXSCALE 10000 > > CLASS > NAME "Small Streets" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 100 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION uc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME street6 > GROUP defaultLayer > TYPE LINE > TILEINDEX td_06.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "FRC" > MAXSCALE 90000 > > > CLASS > NAME "Small surface streets" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 100 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION uc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME street5 > GROUP defaultLayer > TYPE LINE > TILEINDEX td_05.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "FRC" > MAXSCALE 100000 > MINSCALE 0.01 > > CLASS > NAME "Streets" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 1 > SYMBOL 0 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MINDISTANCE 100 > MINFEATURESIZE AUTO > OFFSET 0 0 > PARTIALS FALSE > POSITION uc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME street4 > GROUP defaultLayer > TYPE LINE > TILEINDEX td_04.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "FRC" > MAXSCALE 150000 > > CLASS > NAME "Major Streets" > BACKGROUNDCOLOR 255 255 255 > COLOR 126 126 126 > MAXSIZE 50 > MINSIZE 0 > SIZE 2 > SYMBOL "circle" > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 100 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION uc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME street3 > GROUP defaultLayer > TYPE LINE > TILEINDEX td_03.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "FRC" > MAXSCALE 2000000 > > CLASS > NAME "Highways" > BACKGROUNDCOLOR 255 255 255 > COLOR 88 88 88 > SIZE 2 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > FONT Arial > FORCE FALSE > MAXSIZE 256 > MINDISTANCE 100 > MINFEATURESIZE AUTO > MINSIZE 4 > OFFSET 0 0 > PARTIALS FALSE > POSITION uc > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME street1 > GROUP defaultLayer > TYPE LINE TILEINDEX td_01.shp > #DATA usa06037______01 > STATUS ON > #LABELITEM "NAME" > #MAXSCALE 15550000.0 > #MINSCALE 0.00001 > CLASS > NAME "US Highways" BACKGROUNDCOLOR 255 255 255 > COLOR 105 105 105 > SIZE 3 > SYMBOL 'circle' > LABEL > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > FONT Arial > FORCE FALSE > #MINDISTANCE 5 > MINFEATURESIZE AUTO > OFFSET 0 0 > PARTIALS FALSE > POSITION lr > SIZE 8 > TYPE TRUETYPE > END > END > END > > LAYER > NAME street1 > GROUP defaultLayer > TYPE LINE TILEINDEX td_01.shp > #DATA usa06037______01 > STATUS ON > #LABELITEM "NAME" > #MAXSCALE 15550000.0 > #MINSCALE 0.00001 > CLASS > NAME "US Highways" BACKGROUNDCOLOR 255 255 255 > COLOR 188 188 188 > SIZE 1 > SYMBOL 'circle' > END > END > > LAYER > NAME street0 > GROUP defaultLayer > TYPE LINE > TILEINDEX td_00.shp > STATUS ON > #LABELITEM "NAME" > #MAXSCALE 15550000 > #MINSCALE 0.001 > > CLASS > NAME "Interstates" > COLOR 61 61 61 > SIZE 3 > SYMBOL 'circle' > END > END > > LAYER > NAME street0 > GROUP defaultLayer > TYPE LINE > TILEINDEX td_00.shp > STATUS ON > LABELITEM "NAME" > #MAXSCALE 15550000 > #MINSCALE 0.001 > > CLASS > COLOR 188 188 188 > SIZE 1 > SYMBOL 'circle' > END END > > LAYER > NAME street01_annotation > GROUP defaultLayer > STATUS ON > TILEINDEX td_01.shp > TYPE ANNOTATION > LABELITEM "ROUTENUM" > CLASSITEM "NAME" > MAXSCALE 4500000 > > > #CLASS > # EXPRESSION /.*\/.*/ > # END > CLASS > EXPRESSION /HWY.*/ > COLOR 0 0 0 > SYMBOL 'symbols/sthwy.png' LABEL > COLOR 0 0 0 > WRAP "/" > #MINFEATURESIZE 40 > MINDISTANCE 300 > POSITION cc > PARTIALS FALSE > SIZE tiny > END > END > > CLASS > EXPRESSION /US.*/ > COLOR 0 0 0 > SYMBOL 'symbols/ushwy.png' LABEL > COLOR 0 0 0 > WRAP "/" > #MINFEATURESIZE 40 > MINDISTANCE 300 > POSITION cc > PARTIALS FALSE > SIZE tiny > END > END > > CLASS > EXPRESSION /I.*/ > COLOR 0 0 0 > SYMBOL 'symbols/interstate.png' LABEL > COLOR 255 255 255 > WRAP "/" > #MINFEATURESIZE 40 > MINDISTANCE 300 > POSITION cc > PARTIALS FALSE > SIZE tiny > END > END > > END > > > LAYER > NAME street00_annotation > GROUP defaultLayer > STATUS ON > TILEINDEX td_00.shp > TYPE ANNOTATION > LABELITEM "ROUTENUM" > CLASSITEM "NAME" > MAXSCALE 4500000 > > CLASS > COLOR 200 0 0 > SYMBOL 'symbols/interstate.png' LABEL > COLOR 255 255 255 > WRAP "/" > #MINFEATURESIZE 40 > MINDISTANCE 200 > POSITION cc > PARTIALS FALSE > SIZE TINY > END > END > END > > > > > # LAYER > # NAME county > # GROUP defaultLayer > # TYPE POLYGON > # TILEINDEX td_a8.shp > # STATUS ON > # LABELITEM "NAME" > # CLASSITEM "NAME" > # MAXSCALE 40000 > > # CLASS > # NAME "County Boundary" > # COLOR 245 245 245 > # OUTLINECOLOR 97 97 97 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 12 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME urbanAreas > # GROUP defaultLayer > # TYPE POLYGON > # TILEINDEX td_oa2.shp > # STATUS ON > # LABELITEM "NAME" > # CLASSITEM "FEATTYP" > # MAXSCALE 5000 > > # CLASS > # NAME "Urban Area" > # EXPRESSION ( ( [FEATTYP] = 9342 ) ) > # COLOR 238 232 205 > # OUTLINECOLOR 250 235 215 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > > # LAYER > # NAME landUse > # GROUP defaultLayer > # TYPE POLYGON > # #DATA usa06037______lu.shp > # TILEINDEX td_lu.shp > # STATUS ON > # LABELITEM "NAME" > # CLASSITEM "DISPLTYP" > # MAXSCALE 40000 > > # CLASS > # NAME "Land use" > # COLOR 143 188 143 > # OUTLINECOLOR 0 0 0 > # MINSIZE 20 > # SIZE 1 > # # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 90 90 90 > # WRAP " " > # FONT Arial > # FORCE TRUE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE 100 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME majorWater > # GROUP defaultLayer > # TYPE POLYGON > # TILEINDEX td_wa.shp > # STATUS ON > # LABELITEM "NAME" > # CLASSITEM "NAME" > # MAXSCALE 40000 > > # CLASS > # COLOR 30 144 255 > # OUTLINECOLOR 30 144 255 > # SIZE 1 > # # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 96 96 96 > # WRAP " " > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE 100 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 10 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME minorWater > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_wl.shp > # STATUS ON > # LABELITEM "NAME" > # CLASSITEM "NAME" > # MAXSCALE 40000 > > # CLASS > # NAME "River" > # COLOR 99 184 255 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 3 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE TRUE > # MAXSIZE 256 > # MINDISTANCE 100 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME bridges > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_ls.shp > # STATUS ON # blah > # LABELITEM "NAME" > # CLASSITEM "STRUCTTYP" > # MAXSCALE 70000 > > # CLASS > # NAME "Bridge" > # COLOR 126 126 126 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL "circle" > # OVERLAYBACKGROUNDCOLOR 255 255 255 > # OVERLAYCOLOR 126 126 126 > # OVERLAYOUTLINECOLOR 0 0 0 > # OVERLAYSIZE 1 > # OVERLAYMINSIZE 0 > # OVERLAYMAXSIZE 50 > # OVERLAYSYMBOL 0 > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME ferries > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_fe.shp > # STATUS ON # blah > # LABELITEM "NAME" > # CLASSITEM "FRC" > # MAXSCALE 70000 > > # CLASS > # NAME "Ferry" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # OVERLAYBACKGROUNDCOLOR 255 255 255 > # OVERLAYCOLOR 126 126 126 > # OVERLAYOUTLINECOLOR 0 0 0 > # OVERLAYSIZE 1 > # OVERLAYMINSIZE 0 > # OVERLAYMAXSIZE 50 > # OVERLAYSYMBOL 0 > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > > # # LAYER > # NAME street8 > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_08.shp > # STATUS ON # blah > # LABELITEM "NAME" > # CLASSITEM "FRC" > # MAXSCALE 10000 > > # CLASS > # NAME "Alleys & Small Streets" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # OVERLAYBACKGROUNDCOLOR 255 255 255 > # OVERLAYCOLOR 126 126 126 > # OVERLAYOUTLINECOLOR 0 0 0 > # OVERLAYSIZE 1 > # OVERLAYMINSIZE 0 > # OVERLAYMAXSIZE 50 > # OVERLAYSYMBOL 0 > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 6 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME street7 > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_07.shp > # STATUS ON # blah > # LABELITEM "NAME" > # CLASSITEM "FRC" > # MAXSCALE 10000 > > # CLASS > # NAME "Small Streets" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # OVERLAYBACKGROUNDCOLOR 255 255 255 > # OVERLAYCOLOR 126 126 126 > # OVERLAYOUTLINECOLOR 0 0 0 > # OVERLAYSIZE 1 > # OVERLAYMINSIZE 0 > # OVERLAYMAXSIZE 50 > # OVERLAYSYMBOL 0 > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME street6 > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_06.shp > # STATUS ON # blah > # LABELITEM "NAME" > # CLASSITEM "FRC" > # MAXSCALE 40000 > > > # CLASS > # NAME "Small surface streets" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # OVERLAYBACKGROUNDCOLOR 255 255 255 > # OVERLAYCOLOR 126 126 126 > # OVERLAYOUTLINECOLOR 0 0 0 > # OVERLAYSIZE 1 > # OVERLAYMINSIZE 0 > # OVERLAYMAXSIZE 50 > # OVERLAYSYMBOL 0 > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME street5 > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_05.shp > # STATUS ON # blah > # LABELITEM "NAME" > # CLASSITEM "FRC" > # MAXSCALE 40000 > > # CLASS > # NAME "Streets" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # OVERLAYBACKGROUNDCOLOR 255 255 255 > # OVERLAYCOLOR 126 126 126 > # OVERLAYOUTLINECOLOR 0 0 0 > # OVERLAYSIZE 1 > # OVERLAYMINSIZE 0 > # OVERLAYMAXSIZE 50 > # OVERLAYSYMBOL 0 > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME street4 > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_04.shp > # STATUS ON # blah > # LABELITEM "NAME" > # CLASSITEM "FRC" > # MAXSCALE 90000 > > # CLASS > # NAME "Major Streets" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # OVERLAYBACKGROUNDCOLOR 255 255 255 > # OVERLAYCOLOR 126 126 126 > # OVERLAYOUTLINECOLOR 0 0 0 > # OVERLAYSIZE 1 > # OVERLAYMINSIZE 0 > # OVERLAYMAXSIZE 50 > # OVERLAYSYMBOL 0 > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME street3 > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_03.shp > # STATUS ON # blah > # LABELITEM "NAME" > # CLASSITEM "FRC" > # MAXSCALE 2000000 > > # CLASS > # NAME "Highways" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 88 88 88 > # SIZE 2 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 100 > # MINFEATURESIZE AUTO > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION uc > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > # LAYER > # NAME street1 > # GROUP defaultLayer > # TYPE LINE # TILEINDEX td_01.shp > # #DATA usa06037______01 > # STATUS ON # blah > # #MAXSCALE 40000 > # # CLASS > # NAME "US Highways" # BACKGROUNDCOLOR 255 255 255 > # COLOR 105 105 105 > # SIZE 3 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # FONT Arial > # FORCE FALSE > # #MINDISTANCE 5 > # MINFEATURESIZE AUTO > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION uc > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # END > > > # LAYER > # NAME street1 > # GROUP defaultLayer > # TYPE LINE # TILEINDEX td_01.shp > # #DATA usa06037______01 > # STATUS ON # blah > # #LABELITEM "NAME" > # #MAXSCALE 15550000.0 > # #MINSCALE 0.00001 > # # CLASS > # NAME "US Highways" # BACKGROUNDCOLOR 255 255 255 > # COLOR 188 188 188 > # SIZE 1 > # SYMBOL 'circle' > # END > # END > > > # LAYER > # NAME street0 > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_00.shp > # STATUS ON # blah > # #MAXSCALE 40000 > > # CLASS > # NAME "Interstates" > # COLOR 61 61 61 > # SIZE 3 > # SYMBOL 'circle' > # END > # END > > # LAYER > # NAME street0 > # GROUP defaultLayer > # TYPE LINE > # TILEINDEX td_00.shp > # STATUS ON # blah > > # CLASS > # COLOR 188 188 188 > # SIZE 1 > # SYMBOL 'circle' > # END # END > > > > # LAYER > # NAME street01_annotation > # GROUP defaultLayer > # STATUS ON # blah > # TILEINDEX td_01.shp > # TYPE ANNOTATION > # LABELITEM "ROUTENUM" > # CLASSITEM "NAME" > # #MAXSCALE 40000 > > > # CLASS > # EXPRESSION /HWY.*/ > # COLOR 0 0 0 > # SYMBOL 'symbols/sthwy.png' # LABEL > # COLOR 0 0 0 > # WRAP "/" > # #MINFEATURESIZE 40 > # MINDISTANCE 200 > # POSITION CC > # PARTIALS false > # SIZE tiny > # END > # END > > # CLASS > # EXPRESSION /US.*/ > # COLOR 0 0 0 > # SYMBOL 'symbols/ushwy.png' # LABEL > # COLOR 0 0 0 > # WRAP "/" > # #MINFEATURESIZE 40 > # MINDISTANCE 200 > # POSITION CC > # PARTIALS false > # SIZE tiny > # END > # END > > # CLASS > # EXPRESSION /I.*/ > # COLOR 0 0 0 > # SYMBOL 'symbols/interstate.png' # LABEL > # COLOR 255 255 255 > # WRAP "/" > # #MINFEATURESIZE 40 > # MINDISTANCE 200 > # POSITION CC > # PARTIALS false > # SIZE tiny > # END > # END > # END > > > > # LAYER > # NAME street00_annotation > # GROUP defaultLayer > # STATUS ON # blah > # TILEINDEX td_00.shp > # TYPE ANNOTATION > # LABELITEM "ROUTENUM" > # MAXSCALE 4500000 > > # CLASS > # COLOR 200 0 0 > # SYMBOL 'symbols/interstate.png' # LABEL > # COLOR 255 255 255 > # WRAP "/" > # #MINFEATURESIZE 40 > # MINDISTANCE 200 > # POSITION CC > # PARTIALS false > # SIZE TINY > # END > # END > # END > > > > # LAYER > # NAME pointsOfInterest > # GROUP defaultLayer > # TYPE POINT > # TILEINDEX td_pi.shp > # STATUS ON > # LABELITEM "NAME" > # CLASSITEM "FEATTYP" > # MAXSCALE 40000 > > # CLASS > # # museum > # EXPRESSION ( ( [FEATTYP] = 7317 ) ) > # NAME "Museum" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 8 > # SYMBOL 'circle' > # LABEL > # WRAP " " > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # WRAP " " > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 7 > # TYPE TRUETYPE > # END > # END > # # CLASS > # # shopping center > # EXPRESSION ( ( [FEATTYP] = 7373 ) ) > # NAME "Shopping Center" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 8 > # SYMBOL 'circle' > # LABEL > # WRAP " " > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 6 > # TYPE TRUETYPE > # END > # END > # # CLASS > # # outdoor stadium > # EXPRESSION ( ( [FEATTYP] == 7374 ) ) > # NAME "Stadium" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 8 > # SYMBOL 'circle' > # LABEL > # WRAP " " > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 7 > # TYPE TRUETYPE > # END > # END > > # CLASS > # # tourist attractions > # EXPRESSION ( ( [FEATTYP] == 7376 ) ) > # NAME "Attraction" > # COLOR 126 0 0 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 8 > # SYMBOL 'circle' > # LABEL > # WRAP " " > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 7 > # TYPE TRUETYPE > # END > # END > # # CLASS > # # university & college > # EXPRESSION ( ( [FEATTYP] == 7377 ) ) > # NAME "University" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 255 > # OUTLINECOLOR 255 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 8 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # WRAP " " > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 7 > # TYPE TRUETYPE > # END > # END > > # CLASS > # # railway station > # EXPRESSION ( ( [FEATTYP] == 7380 ) ) > # NAME "Rail Station" > # COLOR 255 255 255 > # SIZE 40 > # SYMBOL 'transBack' > # OVERLAYSYMBOL 'railIcon' > # OVERLAYCOLOR 0 0 170 > # OVERLAYSIZE 40 > # LABEL > # WRAP " " > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial_Bold > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS FALSE > # POSITION AUTO > # SIZE 6 > # TYPE TRUETYPE > # END > # END > # # CLASS > # # airport > # EXPRESSION ( ( [FEATTYP] == 7383 ) ) > # NAME "Airport" > # COLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 25 > # SYMBOL 'airportIcon' > # LABEL > # ANGLE AUTO > # WRAP " " > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial_Bold > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 7 > # TYPE TRUETYPE > # END > # END > > # CLASS > # # conference and exhibition centers > # EXPRESSION ( ( [FEATTYP] == 7385 ) ) > # NAME "Conference Center" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 8 > # SYMBOL 'circle' > # LABEL > # WRAP " " > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 7 > # TYPE TRUETYPE > # END > # END > > # CLASS > # # rest areas > # EXPRESSION ( ( [FEATTYP] = 7395 ) ) > # NAME "Rest Area" > # COLOR 255 255 255 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 30 > # SYMBOL 'transBack' > # OVERLAYSIZE 30 > # OVERLAYCOLOR 0 0 180 > # OVERLAYSYMBOL 'restAreaIcon' > # TEXT "Rest Area" > # LABEL > # WRAP " " > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION lr > # SIZE 12 > # TYPE TRUETYPE > # END > # END > # > > > # CLASS > # # zoo > # EXPRESSION ( ( [FEATTYP] == 9927 ) ) > # NAME "Zoo" > # BACKGROUNDCOLOR 255 255 255 > # COLOR 126 126 126 > # OUTLINECOLOR 0 0 0 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 8 > # SYMBOL 'circle' > # LABEL > # WRAP " " > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 7 > # TYPE TRUETYPE > # END > # END > > # END > > # LAYER > # NAME cityCenter > # GROUP defaultLayer > # TYPE POINT > # TILEINDEX td_sm.shp > # STATUS ON > # LABELITEM "NAME" > # CLASSITEM "DISPCLASS" > # MAXSCALE 40000 > > # CLASS > # EXPRESSION ( ( [DISPCLASS] = 3 ) ) > # #NAME "Big City" > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 1 > # SIZE 10 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # WRAP " " > # FONT Arial_Bold > # FORCE TRUE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 2 2 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 14 > # TYPE TRUETYPE > # END > # END > > # CLASS > # EXPRESSION ( ( [DISPCLASS] = 6 ) ) > # #NAME "Medium City" > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 1 > # SIZE 7 > # SYMBOL 'circleNoFill' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # WRAP " " > # FONT Arial_Bold > # FORCE TRUE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 11 > # TYPE TRUETYPE > # END > # END > > # CLASS > # EXPRESSION ( ( [DISPCLASS] = 7 ) ) > # #NAME "Small City" > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # WRAP " " > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 10 > # TYPE TRUETYPE > # END > # END > > # CLASS > # EXPRESSION ( ( [DISPCLASS] = 8 ) ) > # #NAME "Big Town" > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # WRAP " " > # FONT Arial_Bold > # FORCE TRUE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > > # CLASS > # EXPRESSION ( ( [DISPCLASS] = 9 ) ) > # #NAME "Medium Town" > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # WRAP " " > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > > > # CLASS > # EXPRESSION ( ( [DISPCLASS] = 10 ) ) > # #NAME "Village" > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 3 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # WRAP " " > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > > # CLASS > # EXPRESSION ( ( [DISPCLASS] = 11 ) ) > # #NAME "Community" > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 2 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # WRAP " " > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > > # CLASS > # EXPRESSION ( ( [DISPCLASS] = "12" ) ) > # #NAME "Small Community" > # COLOR 126 126 126 > # MAXSIZE 50 > # MINSIZE 0 > # SIZE 1 > # SYMBOL 'circle' > # LABEL > # ANGLE AUTO > # ANTIALIAS TRUE > # BUFFER 2 > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # WRAP " " > # FONT Arial > # FORCE FALSE > # MAXSIZE 256 > # MINDISTANCE 10 > # MINSIZE 4 > # OFFSET 0 0 > # PARTIALS TRUE > # POSITION AUTO > # SIZE 8 > # TYPE TRUETYPE > # END > # END > # # END > > > > > > LAYER > NAME MSensors1 > TYPE POINT > STATUS ON > TILEINDEX sensors/means.shp > CLASSITEM LEVEL > LABELITEM LEVEL > MAXSCALE 30000 > > CLASS > NAME 'fast' > EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 1 ) ) > SYMBOL 'circleNoFill' > OUTLINECOLOR 0 255 0 > SIZE 11 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 0 255 0 > OVERLAYSIZE 8 > > TEXT ( [LEVEL]/[ID]/[SPEED] ) > LABEL > BUFFER 2 > ANGLE AUTO > ANTIALIAS TRUE > COLOR 50 50 50 > FONT Arial > POSITION AUTO > SIZE 20 > TYPE TRUETYPE > END > END > CLASS > NAME 'medium' > EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( > [LEVEL] == 1 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 255 0 > SIZE 11 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 255 0 > OVERLAYSIZE 8 > END > > CLASS > NAME 'mediumslow' > EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( > [LEVEL] == 1 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 128 0 > SIZE 11 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 128 0 > OVERLAYSIZE 8 > END > > CLASS > NAME 'slow' > EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( > [LEVEL] == 1 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 0 0 > SIZE 11 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 0 0 > OVERLAYSIZE 8 > END > > END > > > LAYER > NAME MSensors2 > TYPE POINT > STATUS ON > TILEINDEX sensors/means.shp > CLASSITEM LEVEL > MINSCALE 30001 > MAXSCALE 200000 > > > CLASS > NAME 'fast' > EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 2 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 0 255 0 > SIZE 9 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 0 255 0 > OVERLAYSIZE 7 > END > CLASS > NAME 'medium' > EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( > [LEVEL] == 2 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 255 0 > SIZE 9 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 255 0 > OVERLAYSIZE 7 > END > > CLASS > NAME 'mediumslow' > EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( > [LEVEL] == 2 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 255 0 > SIZE 9 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 128 0 > OVERLAYSIZE 7 > END > > CLASS > NAME 'slow' > EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( > [LEVEL] == 2 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 0 0 > SIZE 9 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 0 0 > OVERLAYSIZE 7 > END > > END > > > > LAYER > NAME MSensors3 > TYPE POINT > STATUS ON > TILEINDEX sensors/means.shp > CLASSITEM LEVEL > MINSCALE 200001 > MAXSCALE 1000000 > > CLASS > NAME 'fast' > EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 3 ) ) > > > SYMBOL 'circleNoFill' > OUTLINECOLOR 0 255 0 > SIZE 5 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 0 255 0 > OVERLAYSIZE 4 > END > CLASS > NAME 'medium' > EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( > [LEVEL] == 3 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 255 0 > SIZE 5 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 255 0 > OVERLAYSIZE 4 > END > > CLASS > NAME 'mediumslow' > EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( > [LEVEL] == 3 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 128 0 > SIZE 5 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 128 0 > OVERLAYSIZE 4 > END > > CLASS > NAME 'slow' > EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( > [LEVEL] == 3 ) ) > > SYMBOL 'circleNoFill' > OUTLINECOLOR 255 0 0 > SIZE 5 > OVERLAYSYMBOL 'circleNoFill' > OVERLAYOUTLINECOLOR 255 0 0 > OVERLAYSIZE 4 > END > END > > > LAYER > NAME MSensors4 > TYPE POINT > STATUS ON > TILEINDEX sensors/means.shp > CLASSITEM LEVEL > MINSCALE 1000001 > > CLASS > NAME 'fast' > EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 3 ) ) > COLOR 0 255 0 > SYMBOL 'circleNoFill' > SIZE 3 > END > CLASS > NAME 'medium' > EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 255 0 > SYMBOL 'circleNoFill' > SIZE 3 > END > > CLASS > NAME 'mediumslow' > EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 128 0 > SYMBOL 'circleNoFill' > SIZE 3 > END > > CLASS > NAME 'slow' > EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 0 0 > SYMBOL 'circleNoFill' > SIZE 3 > END > END > > > LAYER > NAME Sensors1 > TYPE POINT > STATUS ON > TILEINDEX CurrentSensorData.shp > MAXSCALE 30000 > > CLASS > NAME 'fast' > EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 1 ) ) > COLOR 0 255 0 > OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 11 > END > CLASS > NAME 'medium' > EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( > [LEVEL] == 1 ) ) > COLOR 255 255 0 > OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 11 > END > > CLASS > NAME 'mediumslow' > EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( > [LEVEL] == 1 ) ) > COLOR 255 128 0 > OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 11 > END > > CLASS > NAME 'slow' > EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( > [LEVEL] == 1 ) ) > COLOR 255 0 0 > OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 11 > END > END > > > LAYER > NAME Sensors2 > TYPE POINT > STATUS ON > TILEINDEX CurrentSensorData.shp > MINSCALE 30001 > MAXSCALE 200000 > > CLASS > NAME 'fast' > EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 2 ) ) > COLOR 0 255 0 > OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 9 > END > CLASS > NAME 'medium' > EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( > [LEVEL] == 2 ) ) > COLOR 255 255 0 > OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 9 > END > > CLASS > NAME 'mediumslow' > EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( > [LEVEL] == 2 ) ) > COLOR 255 128 0 > OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 9 > END > > CLASS > NAME 'slow' > EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( > [LEVEL] == 2 ) ) > COLOR 255 0 0 > OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 9 > END > END > > > > LAYER > NAME Sensors3 > TYPE POINT > STATUS ON > TILEINDEX CurrentSensorData.shp > MINSCALE 200001 > MAXSCALE 1000000 > CLASS > NAME 'fast' > EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 3 ) ) > COLOR 0 255 0 > #OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 5 > END > CLASS > NAME 'medium' > EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 255 0 > #OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 5 > END > > CLASS > NAME 'mediumslow' > EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 128 0 > #OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 5 > END > > CLASS > NAME 'slow' > EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 0 0 > #OUTLINECOLOR 140 140 140 > SYMBOL 'circle' > SIZE 5 > END > END > > > LAYER > NAME Sensors4 > TYPE POINT > STATUS ON > TILEINDEX CurrentSensorData.shp > MINSCALE 1000001 > CLASS > NAME 'fast' > EXPRESSION ( ( [SPEED] > 55 ) AND ( [LEVEL] == 3 ) ) > COLOR 0 255 0 > SYMBOL 'circle' > SIZE 3 > END > CLASS > NAME 'medium' > EXPRESSION ( ( [SPEED] >= 35 ) AND ( [SPEED] <= 55 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 255 0 > SYMBOL 'circle' > SIZE 3 > END > > CLASS > NAME 'mediumslow' > EXPRESSION ( ( [SPEED] >= 20 ) AND ( [SPEED] <= 35 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 128 0 > SYMBOL 'circle' > SIZE 3 > END > > CLASS > NAME 'slow' > EXPRESSION ( ( [SPEED] < 20 ) AND ( [SPEED] > 0 ) AND ( > [LEVEL] == 3 ) ) > COLOR 255 0 0 > SYMBOL 'circle' > SIZE 3 > END > END > > > LAYER > NAME SensorPoint > TYPE POINT > STATUS ON > CLASS > NAME 'Slow' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > SYMBOL 'circle' > SIZE 6 > LABEL > BUFFER 2 > ANGLE AUTO > ANTIALIAS TRUE > COLOR 0 0 0 > FONT Arial > POSITION AUTO > SIZE 8 > TYPE TRUETYPE > END > END > > CLASS > NAME 'Medium' > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > SYMBOL 'circle' > SIZE 6 > LABEL > BUFFER 2 > ANGLE AUTO > ANTIALIAS TRUE > COLOR 0 0 0 > FONT Arial > POSITION AUTO > SIZE 8 > TYPE TRUETYPE > END > END > > CLASS > NAME 'Fast' > COLOR 0 255 0 > OUTLINECOLOR 0 0 0 > SYMBOL 'circle' > SIZE 6 > LABEL > BUFFER 2 > ANGLE AUTO > ANTIALIAS TRUE > COLOR 0 0 0 > FONT Arial > POSITION AUTO > SIZE 8 > TYPE TRUETYPE > END > END > > CLASS > NAME 'Start' > COLOR 0 255 0 > OUTLINECOLOR 255 255 255 > SYMBOL 'star' > SIZE 15 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > COLOR 0 255 0 > FONT Arial > POSITION AUTO > SIZE 8 > TYPE TRUETYPE > END > END > > CLASS > NAME 'Finish' > COLOR 255 0 0 > OUTLINECOLOR 255 255 255 > SYMBOL 'star' > SIZE 15 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > COLOR 255 0 0 > FONT Arial > POSITION AUTO > SIZE 8 > TYPE TRUETYPE > END > END > > CLASS > NAME 'Unknown' > COLOR 128 128 128 > OUTLINECOLOR 0 0 0 > SYMBOL 'circle' > SIZE 6 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > COLOR 128 128 128 > FONT Arial > POSITION AUTO > SIZE 8 > TYPE TRUETYPE > END > END > > CLASS > NAME 'UserStart' > #COLOR 0 255 0 > OUTLINECOLOR 0 255 0 > SYMBOL 'star' > SIZE 12 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > COLOR 0 255 0 > FONT Arial > POSITION AUTO > SIZE 8 > TYPE TRUETYPE > END > END > > CLASS > NAME 'UserFinish' > #COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > SYMBOL 'star' > SIZE 12 > LABEL > ANGLE AUTO > ANTIALIAS TRUE > COLOR 255 0 0 > FONT Arial > POSITION AUTO > SIZE 8 > TYPE TRUETYPE > END > END > > END > > LAYER > NAME Incident > TYPE POINT > STATUS ON > DATA incidents.shp > MAXSCALE 2000000 > CLASS > # test > NAME "Test" > COLOR 0 0 0 > MAXSIZE 50 > MINSIZE 0 > # SIZE 19 > # SYMBOL 'event' > SYMBOL 'symbols/incident.png' > # OVERLAYSYMBOL 'triangle' > # OVERLAYCOLOR 255 255 0 > # OVERLAYSIZE 14 > # TEXT "!" > LABEL > WRAP " " > ANGLE AUTO > ANTIALIAS TRUE > BUFFER 2 > COLOR 255 0 0 > FONT Arial_Bold > FORCE TRUE > MAXSIZE 256 > MINDISTANCE 30 > MINSIZE 4 > OFFSET 0 0 > PARTIALS TRUE > POSITION cc > SIZE 11 > TYPE TRUETYPE > END > END > END > > LAYER > NAME Labelling > TYPE POLYGON > STATUS ON > TRANSFORM FALSE > LABELCACHE FALSE > CLASS > NAME 'gray' > SIZE 1 > COLOR 220 220 220 > LABEL > ANTIALIAS TRUE > COLOR 0 0 0 > TYPE TRUETYPE > FONT Arial > SIZE 7 > POSITION cc > END > END > > CLASS > NAME 'red' > SIZE 1 > COLOR 230 230 230 > LABEL > ANTIALIAS TRUE > COLOR 200 0 0 > TYPE TRUETYPE > FONT Arial > SIZE 7 > POSITION cc > END > END > > CLASS > NAME 'blue' > SIZE 1 > COLOR 230 230 230 > LABEL > ANTIALIAS TRUE > COLOR 0 0 200 > TYPE TRUETYPE > FONT Arial > SIZE 7 > POSITION cc > END > END > > FEATURE > END > END > > > LAYER > NAME RouteLine > TYPE LINE > STATUS ON > > FEATURE > END > CLASS > NAME 'Path' > COLOR 204 153 255 > OUTLINECOLOR 0 0 0 > SYMBOL 'circle' > SIZE 15 > OVERLAYSYMBOL 'pointer' > OVERLAYCOLOR 155 0 155 > OVERLAYSIZE 20 > END > END > > # > # Start of web interface definition (including WMS enabling metadata) > # ignored as near as I can tell for what we are doing. > WEB > HEADER route_header.html > TEMPLATE route.html > FOOTER route_footer.html > MINSCALE 0.001 > MAXSCALE 15550000 > LOG "/tmp/log.txt" > > METADATA > WMS_TITLE "TrafficDodger Demo" > WMS_ABSTRACT "This is the TrafficDodger Demo application for Los > Angeles Metro." > WMS_ACCESSCONSTRAINTS none > > # change this value to match your setup > WMS_ONLINERESOURCE "http://extempore.otsys.com/~dodger/mapsite/" > > WMS_SRS "EPSG:26915" > END > END > > > END # Map File > > > Cordially, > > Joe Bussell > On Time Systems > From ram at RAMPAGE.NET Thu Jun 9 17:59:19 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 9 Jun 2005 19:59:19 -0500 Subject: Strategy for Debugging? Message-ID: I have a mapserver running that serves small maps to phone browsers. On some phones it fails, sending the following to the phone instead of the image: MapServer Message getDouble(): Symbol definition error. Parsing error near ():(line 399)
0 When this happens the entry in mapserver.log always ends in ",normal execution". Anybody know which file line 399 is in? For most phones it works fine. For phones using an Openwave 6 browser it fails. I can reproduce the error with the simulator in the Openwave SDK 6.2.2, but don't have a clue as to what to start looking for. Can someone point me in the right direction? -- Richard From gribol at FREE.FR Thu Jun 9 22:54:42 2005 From: gribol at FREE.FR (Gribol) Date: Fri, 10 Jun 2005 07:54:42 +0200 Subject: Mapscript - Sorting labels In-Reply-To: <42A8A209.7030907@dmsolutions.ca> Message-ID: ; > Juste a simple exemple : ; > "Label30" is the label of a town with a population of 3000k. ; > "Label55" is the label of a town with a population of 5500k. ; > These two labels are closest (in pixel coordinates) and cannot ; be displayed ; > both at the current map extent (because of names collision). These two ; > labels are matching the filter condition (higher than 2500k). ; > How to force Mapserver to draw the "Label55" and not "Label30" ; ? That is my ; > issue. ; > ; ; I think you may be able to do that with the sortshp utility, see: ; http://mapserver.gis.umn.edu/utils.html ; ; Daniel ; -- ; ------------------------------------------------------------ ; Daniel Morissette dmorissette at dmsolutions.ca ; DM Solutions Group http://www.dmsolutions.ca/ ; ------------------------------------------------------------ Thank you Daniel for your answer. But it's not working. In fact, the shapefile is already sorted with a descending order on the population field. When I display the whole earth, all is fine. I do some zoom in, again it's fine. But at a specific scale, when I display all towsn with a population number higher than 100000, there is an error, because 2 smalls towns (with 150000 citizens) are displayed and not a major town with 800000 citizens. Here is the layer description in the map file : LAYER NAME "villes" TYPE ANNOTATION DATA "../data/WorldCities.shp" STATUS OFF LABELITEM "name" LABELCACHE ON CLASS COLOR 200 10 10 SYMBOL 'circle' SIZE 5 OUTLINECOLOR 255 255 255 LABEL ANGLE 0.0 POSITION AUTO ANTIALIAS TRUE TYPE TRUETYPE FONT arial-bold SIZE 10 MINDISTANCE 190 OFFSET 0 0 BUFFER 10 COLOR 200 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END END PROJECTION "proj=latlong" "ellps=WGS84" # Geographic END END and here is the php-mapscript code I use : function DrawCities($Map) { // Get the layer $LayerName = $Map->getLayerByName("villes"); if($LayerName == NULL) return; $LayerName->set("status", MS_ON); // Get the class $ClassVille = $LayerName->getClass(0); // Compute "step" value according to the current map extent $nPas = nCalculPas($Map); $strFilter = ""; if($nPas >= 30) { $strFilter = "([POPULATION] >= 2000000)"; } else if($nPas >= 15) { $strFilter = "([POPULATION] >= 1000000)"; } else if($nPas >= 5) { $strFilter = "([POPULATION] >= 500000)"; } else if($nPas >= 2) { $strFilter = "([POPULATION] >= 100000)"; } else { $strFilter = "([POPULATION] >= 0)"; } $LayerName->setFilter($strFilter); } the function "nCalculPas" returns a value according to the current map extent. High value means a large map extent. When I zoom in, the map extent decreases and this function returns a smallest value. Marc. From taatuut at PLANET.NL Thu Jun 9 23:18:12 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Fri, 10 Jun 2005 08:18:12 +0200 Subject: Strategy for Debugging? In-Reply-To: Message-ID: Hello Richard, The error message points to the line number in yout .map file so you should check your .map file at line 399. Probably there is a symbol used on that line that is not defined in the .map file (or external file if you have stored your symbol definitions in anothet file). Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Richard A. Milewski Sent: vrijdag 10 juni 2005 2:59 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Strategy for Debugging? I have a mapserver running that serves small maps to phone browsers. On some phones it fails, sending the following to the phone instead of the image: MapServer Message getDouble(): Symbol definition error. Parsing error near ():(line 399)
0 When this happens the entry in mapserver.log always ends in ",normal execution". Anybody know which file line 399 is in? For most phones it works fine. For phones using an Openwave 6 browser it fails. I can reproduce the error with the simulator in the Openwave SDK 6.2.2, but don't have a clue as to what to start looking for. Can someone point me in the right direction? -- Richard From Dejan.Gambin at PULA.HR Thu Jun 9 23:33:20 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 10 Jun 2005 08:33:20 +0200 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance Message-ID: Frank, I have to say it is great to get such a detalied explanation of overviews/tiles/performance problems. I would personally very like to see some kind of HOWTO that would explain this in more details end technical/theoretical background. For example, how to create overviews that exactly match desired output resolution so no resampling occurs (with fixed set of zoom scales of course) and similar performance things. I would be happy enough if someone can point me to literature that explains all this stuff. regards dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Thursday, June 09, 2005 9:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performance On 6/4/05, Dan Greve wrote: > To everyone, > > Are GeoTiff overviews taken advantage of by Mapserver? What's the > best way to handle large datasets (300 GB, 260,000 files in my case) > when you want the user to be able to view the whole dataset. Dan, I think that Mark had the right idea with creating new overview layers to kick in at various scales. To show an overview of your whole region it would be disaster to have touch all 260,000 of your files. To answer one specific question, MapServer will take advantage of overviews built into GeoTIFF files (assuming GDAL is in use). > I have a lot of data, probably about 300GB spread among 260,000 tiles. > Let's just say the region is... Texas. I want the user to be able to > see the data set at ANY zoom factor. He'd start out looking at the > entire state of texas, and be able to zoom progressively into a city > block, and back out again. If the data format could handle 300 GB in > a single file (I'm using GeoTIFF), theoretically the performance would > be better than if I created a TILEINDEX (shapefile) of the 260,000 > tiles. I've seen this in smaller datasets when requesting the entire > scene, even just a 13000x13000 dataset with just over 2500 tiles. If GeoTIFF supported very large files (there are plans for "BigTIFF support" one day) then I might encourage you to just create one huge internally tiled GeoTIFF file with lots and lots of overview levels. You could use a format like Erdas Imagine that does support very large files and build one huge mosaic image, with lots of overviews. It *ought* to work quite efficiently though there might be some efficiency hits with such a large dataset. For instance, just processing the block pointers array might prove quite a bit of work. What Mark is suggesting is to: o Create a tile index for all your files. You will likely want a spatial index built on this tileindex shapefile. o Create a layer in your mapfile using this tileindex, perhaps named "mosaic_fullres". o I would suggest building internal overviews on all the individual geotiff files as well. o View the resulting layer in MapServer, starting near full resolution. Zoom out till performance degrades unacceptably. This will be a new resolution at which you you need to build a new "overview layer". This isn't an overview within the files in question, it is a whole new layer in the map. There are a variety of ways to build it. I would likely prepare a script to generate it with MapServer itself, by issuing a series of scripted render requests at your new chosen overview resolution. o If you produce this new layer as a set of tile files, you will also need a tileindex for it. o In the mapfile you will need to add this new set of tiles as a new layer. You will want to use the MINSCALE and MAXSCALE options on this layer and the full resolution layer to ensure that renders start to operate from this layer instead of the full resolution data at a suitable resolution. There is some mechanism (GROUP? Using the same layer name?) to ensure that this layer and the full res layer will be treated as a single layer from a user-visible point of view. I don't know this details of this aspect. o you can repeat the above overview layer steps to build additional overview layers if needed till your full scene gives acceptable performance. OK, looking over my garbled explanation, I'm not sure I have helped at all. This fairly common situations screams out for some sort of utility to help build the overview map layers. Or at least we should have a more detailed HOWTO for this process than I am in a position to prepare just now. > > When you say > > "I create a new tile grid shapefile using that map extent as the size > of one tile. I tile the entire map area (in my case the world). " > > Do you mean you just duplicate the entire dataset with larger tiles > when a TILEINDEX search would take longer? He means to duplicate the whole dataset, but at the much reduced resolution at which the render performance started to degrade. If your original files were fairly large, and had internal overviews built, I believe your first overview map layer would likely be at something like 1/128'th of the resolution of the original data. So the overview dataset would then be 1/16000th the size of the original data or so. > When you say > > "I create a new aggregate image layer using calls to the map server to > generate an image for each new tile." > > I have no idea what you meant by "aggregate image layer" He means a whole new map layer which is at a reduced resolution. It is an aggregate of a whole bunch of calls to mapserver to render tiles of the total region. (hence the need for a new tile index). > Are you downsampling the image at all as you increase the tile sizes? > The raster howto on the UMN site has a snippet about Frank W. wanting > to implement using GeoTIFF overviews in the mapserver. Does mapserver > currently take advantage of this? Could you elaborate on your pyramid > scheme? Yes, he means that it would be at a much reduced resolution. The tile sizes in meters is much bigger, but the actual tile sizes in terms of pixels need not necessarily be much larger. Note that there are different types of tiling and overviews coming into play. o Macro tiling: Each tile is a separate TIFF file, and a tileindex shapefile is used to associate them to treat them as one layer in the .map file. o Internal tiling: A given TIFF file can be internally organized into tiles as opposed to strips (scanlines). This gives o "map level overviews": using mutiple layers in a .map file with MINSCALE/MAXSCALE to select which layer to render from. o "internal overviews": individual TIFF files can have overviews built in and GDAL will automatically take advantage of them if present. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From berend.veldkamp at ARIS.NL Thu Jun 9 23:53:18 2005 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Fri, 10 Jun 2005 01:53:18 -0500 Subject: perl mapscript crash "Can't locate auto/mapscript/classObj/swig_size_s.al" Message-ID: Joseph, Are you sure the Apache error is related to your MapServer problem? I had a similar problem recently where the map wasn't drawn at certain scales. In the end it appeared to be related to the number of labels drawn in certain mapextents and the number of colors that were used. BTW It is considered bad form by some to reply to yourself, add only 1 line, and quote the entire original (4000 lines) message. And I doubt there are many people going to scan through a mapfile that big anyway, so what's the point? Berend On Thu, 9 Jun 2005 15:23:33 -0700, Joseph Bussell wrote: >No one has any ideas??? > >Joseph Bussell wrote: > >> I have a mapfile that when viewed at certain zoom levels, generates a >> failure. The Apache log indicates that a specific object cannot be >> found. I explicitly turned off all the layers, intending to add them >> one at a time until I observed a failure, but the failure still >> existed for scales 2000001 and higher. I do not understand why some >> Perl module is differentially available based on my scale. Back in >> the days when TrafficDodger was an active application this was >> working. I updated the mapscript to the latest stable rev and had to >> make a few changes (like my extents were improperly ordered). Lower >> scales work nicely. I have other maps that show the whole planet, >> these render nicely. Does anyone have any ideas? >> >> I am using perl mapscript from version mapserver-4.4.2, ( set up >> with ./configure --with-proj --with-gdal --with-gd --with-perl >> --with-php=../mapserverDeps/php-5.0.2/ ) >> Linux 2.6.10-1.771_FC2 #1 built Mon Mar 28 00:50:14 EST 2005 i686 >> athlon i386 GNU/Linux >> Server version: Apache/1.3.31 (Unix) >> >> I offer the error string: >> From ram at RAMPAGE.NET Fri Jun 10 00:23:31 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Fri, 10 Jun 2005 02:23:31 -0500 Subject: Strategy for Debugging? Message-ID: Emil, Thank you for the suggestion. Alas... line 399 is the last line of the mapfile and reads: END # End of mapfile. I also do not understand why the problem is browser dependant. -- Richard From taatuut at PLANET.NL Fri Jun 10 01:24:45 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Fri, 10 Jun 2005 10:24:45 +0200 Subject: Strategy for Debugging? In-Reply-To: Message-ID: Hello Richard, Looking through the maillist archives I found my suggestion is wrong. According to other messages the error message usually means the problem occured on the prior line so check line 398. What does that line say? Maybe the problem is browser dependent because some needed parameters are not submitted by this specific browser? (wild guess) Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Richard A. Milewski Sent: vrijdag 10 juni 2005 9:24 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Strategy for Debugging? Emil, Thank you for the suggestion. Alas... line 399 is the last line of the mapfile and reads: END # End of mapfile. I also do not understand why the problem is browser dependant. -- Richard From godwin.liz at GMAIL.COM Fri Jun 10 06:43:48 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Fri, 10 Jun 2005 09:43:48 -0400 Subject: MapServer book on schedule for publication this June? In-Reply-To: <20050531115913.GP25077@vishnu.tridity.org> Message-ID: Tyler, is this book going to be at the conference? I noticed it was now available by O'Reilly. I could either order my copy now, or wait for the conference.... Liz Godwin On 5/31/05, Schuyler Erle wrote: > > * On 27-May-2005 at 4:34PM PDT, Tyler Mitchell said: > > > I'm really looking forward to the book as well, I > > > believe there are actually two books due for > > > release in the near future. One was an > > > O'Reilley release and I can't remember the other. > > > Pretty sure i've seen reference to two books here > > > on this list over the last couple of months. > > I suppose this isn't a bad time to mention Mapping Hacks, written by > Rich Gibson, Jo Walsh, and yours truly, and also published by > O'Reilly. Although the book only has one hack on MapServer, it covers > a lot of other Open Source GIS related subjects. Mapping Hacks should > be on the shelves in June, and we will be giving away a small number > of copies at MUM. > > http://mappinghacks.com/ > > SDE > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Fri Jun 10 06:44:34 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 10 Jun 2005 09:44:34 -0400 Subject: perl mapscript crash "Can't locate auto/mapscript/classObj/swig_size_s.al" Message-ID: The following message was sent by Joseph Bussell on Wed, 8 Jun 2005 13:57:09 -0700. > I have a mapfile that when viewed at certain zoom levels, generates a > failure. The Apache log indicates that a specific object cannot be > found. I explicitly turned off all the layers, intending to add them > one at a time until I observed a failure, but the failure still existed > for scales 2000001 and higher. I do not understand why some Perl module > is differentially available based on my scale. Back in the days when > TrafficDodger was an active application this was working. I updated the > mapscript to the latest stable rev and had to make a few changes (like > my extents were improperly ordered). Lower scales work nicely. I have > other maps that show the whole planet, these render nicely. Does anyone > have any ideas? > > I am using perl mapscript from version mapserver-4.4.2, > ( set up with ./configure --with-proj --with-gdal --with-gd > --with-perl --with-php=../mapserverDeps/php-5.0.2/ ) > Linux 2.6.10-1.771_FC2 #1 built Mon Mar 28 00:50:14 EST 2005 i686 athlon > i386 GNU/Linux > Server version: Apache/1.3.31 (Unix) > > I offer the error string: > > Can't locate auto/mapscript/classObj/swig_size_s.al in @INC (@INC > contains: /usr/traffic2/perl > /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 > /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 > /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 > /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 > /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 > /usr/lib/perl5/vendor_perl /usr/local/apache/ > /usr/local/apache/lib/perl) at > /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/mapscript.pm line > 35\n > Cordially, > > Joe Bussell > On Time Systems Joe, Can you include a snip of the code? I've seen this type of error occur a lot when the code has a typo, where I inadvertently call a member or method that doesn't exist. Lowell From schuyler at NOCAT.NET Fri Jun 10 07:55:58 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri, 10 Jun 2005 07:55:58 -0700 Subject: MapServer book on schedule for publication this June? In-Reply-To: Message-ID: * On 10-Jun-2005 at 6:45AM PDT, Liz Godwin said: > Tyler, is this book going to be at the conference? I noticed it was > now available by O'Reilly. I could either order my copy now, or wait > for the conference.... I believe O'Reilly will be giving away and/or selling copies of both Mapping Hacks and Web Mapping Illustrated at MUM. SDE From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Fri Jun 10 08:19:19 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Fri, 10 Jun 2005 10:19:19 -0500 Subject: Raster/Oracle Spatial Layer Problems. Message-ID: Hello List, I'm having difficulty implementing a specific combination of a raster and Oracle Spatial data layer. I have two layers: one raster layer and one oracle spatial point layer. Both layers function properly, except for some projection issues that I will fix later. When I go to add METADATA attributes to the oracle spatial layer, I get an "internal server error". When I comment out the raster layer, the oracle spatial layer functions properly with the metadata. When I comment out the oracle spatial layer along with the metadata, the raster layer functions properly. But they do not work together. Does anyone have any idea what is happening? Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cedric.Moeri at BD.SO.CH Fri Jun 10 09:15:14 2005 From: Cedric.Moeri at BD.SO.CH (=?iso-8859-1?Q?M=F6ri_C=E9dric?=) Date: Fri, 10 Jun 2005 17:15:14 +0100 Subject: Problem with rasterdata in php mapscript Message-ID: Hello list I am using MapServer 4.2.5 as cgi and also wiht php-mapscript. I have a simple mapfile with just one (raster)layer. If I call this mapfile through the cgi like localhost/cgi-bin/sogis/mapserv?mode=map&layer=pk&map=localhost/mapfiles/tes t_ms4.map; everything works fine, but if I try it trought php-mapscript I recieve no image. It is just not drawn. There's not even an error in the logs. It looks like the $map->draw() function dies without comment. draw(); $url = $img->saveWebImage(); printf("\n", $server."".$url, $map->width, $map->height); ?> I did the same also with php-mapscript 3.6.6 and there it works again. Has anybody a similar behaviour? What my cause this? I appreciate any hint! The mapfile and version output of mapserver and gdal is attached on the bottom. Best regards C?dric M?ri My mapfile looks as follows: NAME "test" STATUS ON SYMBOLSET "/opt/wwwroot/sogis/internet/etc/symbols/symbols.neu" EXTENT 590000 212000 650000 265000 SIZE 675 480 UNITS METERS SHAPEPATH "/opt/wwwroot/sogis/daten/" IMAGECOLOR 255 255 255 FONTSET "/opt/wwwroot/sogis/internet/etc/fonts/fonts.list" IMAGETYPE PNG RESOLUTION 72 INTERLACE OFF WEB HEADER "../../../fr_map/header.html" TEMPLATE "../../../fr_map/template.html" FOOTER "../../../fr_map/footer.html" MINSCALE 1 MAXSCALE 5000000 IMAGEPATH "/opt/wwwroot/sogis/gifs/" IMAGEURL "/sogis/gifs/" LOG "/opt/wwwroot/sogis/MapServer/etc/log/MapServer.log" END LAYER NAME pk STATUS ON TYPE RASTER DATA "images/up10m/up11073m_1999.tif" END END mapserv -v: MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS =WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL IN PUT=SHAPEFILE gdalinfo --version: GDAL 1.2.1.0, released 2004/06/23 gdalinfo --formats: Supported Formats: VRT (rw): Virtual Raster GTiff (rw): GeoTIFF NITF (rw): National Imagery Transmission Format HFA (rw): Erdas Imagine Images (.img) SAR_CEOS (ro): CEOS SAR Image CEOS (ro): CEOS Image ELAS (rw): ELAS AIG (ro): Arc/Info Binary Grid AAIGrid (rw): Arc/Info ASCII Grid SDTS (ro): SDTS Raster DTED (rw): DTED Elevation Raster PNG (rw): Portable Network Graphics JPEG (rw): JPEG JFIF MEM (rw): In Memory Raster JDEM (ro): Japanese DEM (.mem) GIF (rw): Graphics Interchange Format (.gif) ESAT (ro): Envisat Image Format BSB (ro): Maptech BSB Nautical Charts XPM (rw): X11 PixMap Format BMP (rw): MS Windows Device Independent Bitmap PCIDSK (rw): PCIDSK Database File PNM (rw): Portable Pixmap Format (netpbm) DOQ1 (ro): USGS DOQ (Old Style) DOQ2 (ro): USGS DOQ (New Style) ENVI (rw): ENVI .hdr Labelled EHdr (rw): ESRI .hdr Labelled PAux (rw): PCI .aux Labelled MFF (rw): Atlantis MFF Raster MFF2 (rw): Atlantis MFF2 (HKV) Raster FujiBAS (ro): Fuji BAS Scanner Image GSC (ro): GSC Geogrid FAST (ro): EOSAT FAST Format BT (rw): VTP .bt (Binary Terrain) 1.3 Format LAN (ro): Erdas .LAN/.GIS L1B (ro): NOAA Polar Orbiter Level 1b Data Set FIT (rw): FIT Image USGSDEM (rw): USGS Optional ASCII DEM (and CDED) GXF (ro): GeoSoft Grid Exchange Format mit freundlichen Gr?ssen C?dric M?ri ******************************************** Kanton Solothurn Bau- und Justizdepartement Amt f?r Geoinformation Abteilung SO!GIS Koordination R?tihof 4509 Solothurn T: ++41 (0)32 627 2475 Fax: ++41 (0)32 627 2214 mailto:cedric.moeri at bd.so.ch http://www.sogis.so.ch ******************************************** From godwin.liz at GMAIL.COM Fri Jun 10 08:35:25 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Fri, 10 Jun 2005 11:35:25 -0400 Subject: MapServer book on schedule for publication this June? In-Reply-To: <20050610145558.GS25077@vishnu.tridity.org> Message-ID: Excellent :-) Thanks! On 6/10/05, Schuyler Erle wrote: > > * On 10-Jun-2005 at 6:45AM PDT, Liz Godwin said: > > Tyler, is this book going to be at the conference? I noticed it was > > now available by O'Reilly. I could either order my copy now, or wait > > for the conference.... > > I believe O'Reilly will be giving away and/or selling copies of both > Mapping Hacks and Web Mapping Illustrated at MUM. > > SDE > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stevem at SPATIALMAPPING.COM Fri Jun 10 08:46:49 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Fri, 10 Jun 2005 10:46:49 -0500 Subject: Mapscript - Sorting labels Message-ID: Gribol: Try sorting your shapefile in ascending order by population, instead of descending order. My experience with MapServer's labeling is that labels that are drawn later are given preference to those that were drawn earlier. If sorting your shapefile in ascending order doesn't help, you could try defining a number of ANNOTATION layers that are responsible for labeling cities within specified (and disjoint) population ranges. (e.g. layer1 to label cities where: POPULATION<10000; layer2 to label cities where: 10000<=POPULATION<20000; layer3 to label: 20000<=POPULATION<40000; etc.) Then arrange the layers in your mapfile so that layers for annotating small cities are drawn first. The number of ANNOTATION layers you use will depend on how tolerant you are for occasional labeling "mistakes" (where a smaller city's label is drawn in preference to that of a larger city). Hope this helps, -SM -- On Fri, 10 Jun 2005 07:54:42 +0200, Gribol wrote: >; > Juste a simple exemple : >; > "Label30" is the label of a town with a population of 3000k. >; > "Label55" is the label of a town with a population of 5500k. >; > These two labels are closest (in pixel coordinates) and cannot >; be displayed >; > both at the current map extent (because of names collision). These two >; > labels are matching the filter condition (higher than 2500k). >; > How to force Mapserver to draw the "Label55" and not "Label30" >; ? That is my >; > issue. >; > >; >; I think you may be able to do that with the sortshp utility, see: >; http://mapserver.gis.umn.edu/utils.html >; >; Daniel >; -- >; ------------------------------------------------------------ >; Daniel Morissette dmorissette at dmsolutions.ca >; DM Solutions Group http://www.dmsolutions.ca/ >; ------------------------------------------------------------ > >Thank you Daniel for your answer. >But it's not working. In fact, the shapefile is already sorted with a >descending order on the population field. >When I display the whole earth, all is fine. I do some zoom in, again it's >fine. But at a specific scale, when I display all towsn with a population >number higher than 100000, there is an error, because 2 smalls towns (with >150000 citizens) are displayed and not a major town with 800000 citizens. > >Here is the layer description in the map file : > > LAYER > NAME "villes" > TYPE ANNOTATION > DATA "../data/WorldCities.shp" > STATUS OFF > LABELITEM "name" > LABELCACHE ON > > CLASS > COLOR 200 10 10 > SYMBOL 'circle' > SIZE 5 > OUTLINECOLOR 255 255 255 > LABEL > ANGLE 0.0 > POSITION AUTO > ANTIALIAS TRUE > TYPE TRUETYPE > FONT arial-bold > SIZE 10 > MINDISTANCE 190 > OFFSET 0 0 > BUFFER 10 > COLOR 200 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > END > END > > PROJECTION > "proj=latlong" "ellps=WGS84" # Geographic > END > END > >and here is the php-mapscript code I use : > >function DrawCities($Map) >{ > // Get the layer > $LayerName = $Map->getLayerByName("villes"); > if($LayerName == NULL) return; > $LayerName->set("status", MS_ON); > > // Get the class > $ClassVille = $LayerName->getClass(0); > > // Compute "step" value according to the current map extent > $nPas = nCalculPas($Map); > > $strFilter = ""; > if($nPas >= 30) > { > $strFilter = "([POPULATION] >= 2000000)"; > } > else > if($nPas >= 15) > { > $strFilter = "([POPULATION] >= 1000000)"; > } > else > if($nPas >= 5) > { > $strFilter = "([POPULATION] >= 500000)"; > } > else > if($nPas >= 2) > { > $strFilter = "([POPULATION] >= 100000)"; > } > else > { > $strFilter = "([POPULATION] >= 0)"; > } > > $LayerName->setFilter($strFilter); >} > >the function "nCalculPas" returns a value according to the current map >extent. High value means a large map extent. When I zoom in, the map extent >decreases and this function returns a smallest value. > >Marc. From carloseduardo at COSTARRICENSE.CR Fri Jun 10 08:51:55 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Fri, 10 Jun 2005 10:51:55 -0500 Subject: How to use processlegendtemplate function ? Message-ID: Hi list. I need to generate a html legend in my application. I'm using php- mapscript. I have been reading about it and is supposed that I must use the processlegendtemplate function, but I haven't found an example of how to use it. I don't know what parameters i have to send in the function. Please somebody tell me which are the steps that i have to follow to make a html legend. Thanks for your help.!! From dls at INFORMGIS.COM Fri Jun 10 09:25:29 2005 From: dls at INFORMGIS.COM (David Stajan) Date: Fri, 10 Jun 2005 11:25:29 -0500 Subject: Queryfile and Savequery CGI Help Message-ID: On Thu, 9 Jun 2005 12:36:40 +0000, Richard Greenwood wrote: >David INFORMGIS.COM> writes: > >> >> Hi All, >> >> I'm trying to use CGI mapserver and have run into some confusion about the >> queryfile and savequery parameters. The cgi reference manual says that >> you can use the queryfile parameter within a Browse mode to have your >> selection stay highlighted while you zoom/pan after performing the initial >> query. > >In your initial query, set savequery=true. This will save the in your temp >directory with a unique (and rather long) name. Then on subsequent queries set >queryfile=/path/to/unique_long_name.qy > >An example is at: > http://www2.tetonwyo.org/mapserver >Start out with a property search for 'smith' and then watch what happens on the >address bar. > >Rich Thanks for the response Richard. I have the queryfile working and it is saving the the selected feature but the problem I'm having is that it's returning the layer's query template when I pan or zoom after the initial query. What do I need to do to interact with the map after the query and still have the selection higlighted on the map image(using the the queryfile) but not trigger the query template to show up. The documentation suggests that using a Browse mode will just produce the map image but thats not happening in my app. Am I missing something? I see that it works well in your example. Thanks, DaviD From l_gnemmi at YAHOO.FR Fri Jun 10 09:28:28 2005 From: l_gnemmi at YAHOO.FR (ludovic gnemmi) Date: Fri, 10 Jun 2005 18:28:28 +0200 Subject: WFS-SERVER performance on oraclespatial layers Message-ID: Hi, Performance is very bad on my oraclespatial layer with wfs getfeature request...i see (with --enable-debug mode) on my apache error log that my initial query produce new queries on each shape object one by one. is it correct? I maybe miss something... Here is my query: DATA "GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') USING UNIQUE ID" and my log: [Fri Jun 10 08:36:42 2005].831748 msOracleSpatialLayerOpen called with: GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') using unique Id [Fri Jun 10 08:36:43 2005].72897 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Fri Jun 10 08:36:43 2005].73019 msConnPoolRegister(my connection string,0x8195588) [Fri Jun 10 08:36:43 2005].115515 msOracleSpatialLayerFreeItemInfo was called. [Fri Jun 10 08:36:43 2005].115712 msOracleSpatialLayerInitItemInfo was called. [Fri Jun 10 08:36:43 2005].115763 msOracleSpatialLayerWhichShapes was called. [Fri Jun 10 08:36:43 2005].115996 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(868470,83215,965015,165840) ),'querytype=window') = 'TRUE' [Fri Jun 10 08:36:58 2005].620540 msOracleSpatialLayerFreeItemInfo was called. [Fri Jun 10 08:36:58 2005].620689 msOracleSpatialLayerClose was called. Layer connection: my connection string [Fri Jun 10 08:36:58 2005].620709 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Fri Jun 10 08:36:58 2005].620910 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Fri Jun 10 08:36:58 2005].620931 msConnPoolRelease(layer,my connection string,0x8195588) [Fri Jun 10 08:36:58 2005].620959 msConnPoolClose(my connection string,0x8195588) [Fri Jun 10 08:36:58 2005].630369 msOracleSpatialLayerOpen called with: GEOM FROM (SELECT * FROM TABLE WHERE FIELD='FILTER1') using unique TABLE_id [Fri Jun 10 08:36:58 2005].673861 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Fri Jun 10 08:36:58 2005].673966 msConnPoolRegister(my_layer,my connection string,0x8192f30) [Fri Jun 10 08:36:58 2005].679970 msOracleSpatialLayerFreeItemInfo was called. [Fri Jun 10 08:36:58 2005].680102 msOracleSpatialLayerGetItems was called. [Fri Jun 10 08:36:58 2005].685755 msOracleSpatialLayerInitItemInfo was called. [Fri Jun 10 08:36:58 2005].685933 msOracleSpatialLayerGetShape was called. Using the record = 82314. [Fri Jun 10 08:36:58 2005].685984 msOracleSpatialLayerGetShape. Sql: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE Id = 82314 [Fri Jun 10 08:36:58 2005].707379 msOracleSpatialLayerGetShape was called. Using the record = 82315. [Fri Jun 10 08:36:58 2005].707544 msOracleSpatialLayerGetShape. Sql: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE Id = 82315 [Fri Jun 10 08:36:58 2005].712321 msOracleSpatialLayerGetShape was called. Using the record = 82316. [Fri Jun 10 08:36:58 2005].712481 msOracleSpatialLayerGetShape. Sql: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE Id = 82316 [Fri Jun 10 08:36:58 2005].716865 msOracleSpatialLayerGetShape was called. Using the record = 82317. [Fri Jun 10 08:36:58 2005].717172 msOracleSpatialLayerGetShape. Sql: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE Id = 82317 [Fri Jun 10 08:36:58 2005].722447 msOracleSpatialLayerGetShape was called. Using the record = 82318. ... Thanks for your help Ludovic ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com From mbp at GEOMTECH.COM Fri Jun 10 10:01:53 2005 From: mbp at GEOMTECH.COM (Mark Phillips) Date: Fri, 10 Jun 2005 12:01:53 -0500 Subject: POINT TO PIXEL Message-ID: Below is a php function that I find really handy for converting between pixels coordinates and map coordinates. It's simply a general linear transformation for mapping one rectangular coordinate system to another. You pass the "extent" of both rectangles in as arguments, as well as the point you want to convert. For pixel coordinates, the "extent" is simply (0,0) to (width,height). The same function can be used to transform coordinates in both directions: either from pixel coordinate to map coordinates, or the other way. The direction is determined by the order in which you pass the arguments. If you format your code like this (be sure to view this message with a fixed-width font): linear_interp_2D($a1, $a2, $b1, $b2, $A1, $A2, $B1, $B2, $x, $y) so that the first 4 arguments line up with the next 4, it's easy to keep track of the fact that this call returns the image of the point ($x,$y) under the transformation taking ($a1,$a2) to ($A1,$A2) in the horizontal direction, and ($b1,$b2) to ($B1,$B2) in the vertical direction. You reverse the direction of the transformation by swapping the 1st 4 arguments with the 2nd 4; the code below has an example. Hope this helps, --Mark Mark Phillips @ Geometry Technologies LLC 77 Owenby Cove Road Fairview, NC 28730 Phone: 828-628-0489 mbp at geomtech.com http://www.geomtech.com From rjames57 at YAHOO.COM Fri Jun 10 10:33:15 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 10 Jun 2005 10:33:15 -0700 Subject: pg_exec error Message-ID: Hi I am having trouble with inserting a veriable with the GeometryFromText function, this the line that causes an error; pg_exec($connection, "INSERT INTO sites VALUES ('$q_nxt_gid','$id','$label','$site_id','$comments',GeometryFromText('POINT('$pointx' '$pointy')',-1)"); It produces this error, (Note; 575618 is the $pointx variable). Warning: pg_exec(): Query failed: ERROR: syntax error at or near "575618" at character 88 in /var/www/html/gis/create/write_postgres.phtml on line 19 Thanks for any help i can get. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From hvelasquezv at CAR.GOV.CO Fri Jun 10 10:15:08 2005 From: hvelasquezv at CAR.GOV.CO (=?iso-8859-1?Q?Harold_Jhon_Jairo_Vel=E1squez_Vanegas?=) Date: Fri, 10 Jun 2005 12:15:08 -0500 Subject: Attribute Query SDE Layer Message-ID: Hello to all, I hope that they can help to solve this problem me, I have working an application in mapserver reading the data of shapefiles. Now, I am migrating the application so that it reads the ARCSDE 9.0 data. The application draws the map without problems, but when attempt to query layer by attributes, generates to me an CGI error and does not work. CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: I running Mapserver in windows XP with IIS mapserv -v MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS =WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=SDE INPUT=POSTGIS INPU T=OGR INPUT=GDAL INPUT=SHAPEFILE This is the layer LAYER NAME regional CONNECTIONTYPE sde CONNECTION 'dbsiam,port:5151,esri_sde,gis_visor,gis_visor,SDE.DEFAULT' DATA 'gis_propietario.territoriales_car,shape' TOLERANCE 3 TYPE Polygon STATUS on HEADER 'template/regional_header.html' FOOTER 'template/regional_footer.html' TEMPLATE 'template/regional_query.html' METADATA "Layer_title" "Oficinas Territoriales" END CLASS COLOR 0 204 153 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER And the URL query is http://localhost/cgi-bin/mapserv.exe?qstring=GUALIVA+Y+MAG.+MEDIO+%28VILLETA %29&qitem=TERRITORIA&mode=ITEMNQUERY&qlayer=regional &map=c%3A%2Finetpub%2Fwwwroot%2Fmapas_generales%2Fregional.map&savequery=tru e&mapext=shapes Thanks, Harold Jhon Jairo Vel?squez Vanegas Subdirecci?n de Informaci?n y Planeaci?n e-mail: hvelasquezv at car.gov.co -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Fri Jun 10 11:01:02 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 10 Jun 2005 15:01:02 -0300 Subject: Raster/Oracle Spatial Layer Problems. In-Reply-To: <35ADA1929CF84D44A310F248121581AD01F970@NWO-ML3OMA.nwo.ds.usace.army.mil> Message-ID: Hi, What version are you using? Some problems can occur in 4.4.0 version, I recommend to use the last version (4.6 or 4.4.2). How did you defined your layers (Raster and Oracle)? Are you using CGI or MapScript? Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Owens, Ryan J NWD02 CONTRACTOR wrote: > Hello List, > > I?m having difficulty implementing a specific combination of a raster > and Oracle Spatial data layer. > > I have two layers: one raster layer and one oracle spatial point > layer. Both layers function properly, except for some projection > issues that I will fix later. When I go to add METADATA attributes to > the oracle spatial layer, I get an ?internal server error?. When I > comment out the raster layer, the oracle spatial layer functions > properly with the metadata. When I comment out the oracle spatial > layer along with the metadata, the raster layer functions properly. > But they do not work together. Does anyone have any idea what is > happening? > > Ryan > From tylermitchell at SHAW.CA Fri Jun 10 11:09:54 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 10 Jun 2005 11:09:54 -0700 Subject: MapServer book on schedule for publication this June? Message-ID: Hi Liz, Thanks for the enthusiasm. It's not done printing yet, but copies are expected to be delivered in time for the conference. We won't be selling copies at the conference, but will have some copies to review and give away as door prizes. I suggest you order your 50 copies ;) now, unless you want to peek at the content first. I believe this is the same setup with Mapping Hacks right Schuyler? I don't think there will be an O'Reilly book table or anything like that to sell books. You can order a copy through my Amazon referral link at: http://webmappingillustrated.com. I'm considering rolling funds generated from Amazon referrals into further open source development...more on that when my head gets above water. Tyler > Tyler, is this book going to be at the conference? > I noticed it was now available by O'Reilly. I > could either order my copy > now, or wait for the conference.... > Liz Godwin From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Fri Jun 10 11:13:25 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Fri, 10 Jun 2005 13:13:25 -0500 Subject: Raster/Oracle Spatial Layer Problems. Message-ID: Hi Fernando, Thanks for responding. We are running version 4.4.2. And, we are using CGI. My code is below, with the metadata commented out. Not sure what you mean by how I defined my layers - I defined my raster as raster (duh), and I defined my Oracle Spatial layer as a point layer. Does this help to pin point a problem? Ryan MAP NAME TNS_ EXTENT -535681 116823 1337533 1458918 WEB log "./test.log" TEMPLATE "test_template.html" IMAGEPATH "./tmp/" IMAGEURL "http://[domain]////" END DEBUG ON OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END IMAGETYPE swf SIZE 460 500 SHAPEPATH "data" SYMBOLSET symbols/symbol_mrric.sym IMAGECOLOR 255 255 255 FONTSET fonts/fonts.list PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # Alternatively, you can specify an EPSG code. "init=epsg:80000" END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "basin" DATA basin_alb1000.JPG STATUS DEFAULT TYPE RASTER # PROJECTION # END END LAYER NAME "river" DATA missouri_river STATUS DEFAULT TYPE LINE METADATA "SWFDUMPATTRIBUTES" "NAME,LENGTH" END PROJECTION "init=epsg:80000" END CLASS COLOR 0 0 254 END END LAYER NAME boatramps CONNECTIONTYPE oraclespatial CONNECTION [COMMENTED OUT] DATA "ORA_GEOMETRY FROM (select c.ora_geometry, c.ramp_name, c.ramp_type, c.bottom_ele, m.project from boatramps_011305_geo c, moriver_project_extents2 m where sdo_anyinteract(c.ora_geometry, m.ora_geometry)='TRUE') using SRID 8265" FILTER 'BOTTOM_ELE IS NOT NULL' PROJECTION "proj=latlong" "ellps=GRS80" "init=epsg:4269" END TYPE point STATUS DEFAULT # METADATA # "DESCRIPTION""RAMPS" # "RESULT_FIELDS" "RAMP_NAME" # "SWFDUMPATTRIBUTES" "RAMP_NAME,RAMP_TYPE,BOTTOM_ELE,PROJECT" # END LABELMAXSCALE 1500000 LABELITEM "RAMP_NAME" CLASSITEM "RAMP_TYPE" CLASS NAME "Boat Ramps - Shut Down" EXPRESSION ([BOTTOM_ELE]>=5000) SYMBOL 'rectangle' COLOR 160 60 60 SIZE 5 OVERLAYSYMBOL 'rectangle' OVERLAYCOLOR 252 214 165 # 128 128 0 OVERLAYSIZE 3 LABEL ANTIALIAS true TYPE truetype FONT "tahoma" COLOR 180 80 0 SIZE 7 POSITION uc END END CLASS NAME "Boat Ramps - Operational" EXPRESSION ([BOTTOM_ELE]<5000) SYMBOL 'rectangle' COLOR 60 160 60 SIZE 5 OVERLAYSYMBOL 'rectangle' OVERLAYCOLOR 252 214 165 # 128 128 0 OVERLAYSIZE 3 LABEL ANTIALIAS true TYPE truetype FONT "tahoma" COLOR 80 180 0 SIZE 7 POSITION uc END END END End of LAYER DEFINITIONS --------------------------------------------- END # end of map file/object -----Original Message----- From: Fernando Simon [mailto:fsimon at univali.br] Sent: Friday, June 10, 2005 1:01 PM To: Owens, Ryan J NWD02 CONTRACTOR Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Raster/Oracle Spatial Layer Problems. Hi, What version are you using? Some problems can occur in 4.4.0 version, I recommend to use the last version (4.6 or 4.4.2). How did you defined your layers (Raster and Oracle)? Are you using CGI or MapScript? Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Owens, Ryan J NWD02 CONTRACTOR wrote: > Hello List, > > I'm having difficulty implementing a specific combination of a raster > and Oracle Spatial data layer. > > I have two layers: one raster layer and one oracle spatial point > layer. Both layers function properly, except for some projection > issues that I will fix later. When I go to add METADATA attributes to > the oracle spatial layer, I get an "internal server error". When I > comment out the raster layer, the oracle spatial layer functions > properly with the metadata. When I comment out the oracle spatial > layer along with the metadata, the raster layer functions properly. > But they do not work together. Does anyone have any idea what is > happening? > > Ryan > From ealpert at DIGITALGLOBE.COM Fri Jun 10 11:14:55 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 10 Jun 2005 12:14:55 -0600 Subject: pg_exec error Message-ID: Sorry this is PHP right? Read up on the differences between "'s and ''s. You want the string you produce to look like: GeometryFromText('POINT( )',); In your case I don't think that's what you're getting you need to join the strings. PHP use . Doesn't it? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy James Sent: Friday, June 10, 2005 11:33 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] pg_exec error Hi I am having trouble with inserting a veriable with the GeometryFromText function, this the line that causes an error; pg_exec($connection, "INSERT INTO sites VALUES ('$q_nxt_gid','$id','$label','$site_id','$comments',GeometryFromText('PO INT('$pointx' '$pointy')',-1)"); It produces this error, (Note; 575618 is the $pointx variable). Warning: pg_exec(): Query failed: ERROR: syntax error at or near "575618" at character 88 in /var/www/html/gis/create/write_postgres.phtml on line 19 Thanks for any help i can get. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From rjames57 at YAHOO.COM Fri Jun 10 11:44:10 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 10 Jun 2005 11:44:10 -0700 Subject: pg_exec error In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CBE4@COMAIL01.digitalglobe.com> Message-ID: Yes it it PHP and yes thats how i want it to look: GeometryFromText('POINT(575618 5614867)',-1); And ok i'll check out the '" --- Ethan Alpert wrote: > Sorry this is PHP right? > > Read up on the differences between "'s and ''s. > > You want the string you produce to look like: > > GeometryFromText('POINT( )',); > > In your case I don't think that's what you're getting you need to join > the strings. PHP use . Doesn't it? > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Randy James > Sent: Friday, June 10, 2005 11:33 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] pg_exec error > > > Hi > I am having trouble with inserting a veriable with the GeometryFromText > function, this the line that causes an error; > > pg_exec($connection, "INSERT INTO sites VALUES > ('$q_nxt_gid','$id','$label','$site_id','$comments',GeometryFromText('PO > INT('$pointx' > '$pointy')',-1)"); > > It produces this error, (Note; 575618 is the $pointx variable). > > Warning: pg_exec(): Query failed: ERROR: syntax error at or near > "575618" at character 88 in > /var/www/html/gis/create/write_postgres.phtml on line 19 > > Thanks for any help i can get. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From fsimon at UNIVALI.BR Fri Jun 10 12:26:42 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 10 Jun 2005 16:26:42 -0300 Subject: Raster/Oracle Spatial Layer Problems. In-Reply-To: <35ADA1929CF84D44A310F248121581AD01F973@NWO-ML3OMA.nwo.ds.usace.army.mil> Message-ID: Hi, The problem can be with filter option. Sometimes I had problems with filter and query functions, can you define your filter option inside of DATA parameter? Another hint, can try to define the UNIQUE paramater for your DATA? Like: (I already defined the "filter" inside the data) DATA "ORA_GEOMETRY FROM (select c.ora_geometry, c.ramp_name, c.ramp_type, c.bottom_ele, m.project from boatramps_011305_geo c, moriver_project_extents2 m where sdo_anyinteract(c.ora_geometry, m.ora_geometry)='TRUE' and c.bottom_ele is not null) using UNIQUE SRID 8265" The is the column (number) that store the unique identifier for your table (usually the primary key). Can you test these hints? Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Owens, Ryan J NWD02 CONTRACTOR wrote: >Hi Fernando, > >Thanks for responding. > >We are running version 4.4.2. And, we are using CGI. My code is below, with >the metadata commented out. Not sure what you mean by how I defined my >layers - I defined my raster as raster (duh), and I defined my Oracle Spatial >layer as a point layer. Does this help to pin point a problem? > >Ryan > >MAP > NAME TNS_ > EXTENT -535681 116823 1337533 1458918 > > WEB > log "./test.log" > TEMPLATE "test_template.html" > IMAGEPATH "./tmp/" > IMAGEURL "http://[domain]////" > END > > DEBUG ON > > OUTPUTFORMAT > NAME swf > DRIVER "SWF" > MIMETYPE "application/x-shockwave-flash" > EXTENSION "swf" > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" > END > > IMAGETYPE swf > > SIZE 460 500 > SHAPEPATH "data" > SYMBOLSET symbols/symbol_mrric.sym > IMAGECOLOR 255 255 255 > FONTSET fonts/fonts.list > > PROJECTION ># "proj=laea" ># "ellps=clrk66" ># "lat_0=45" ># "lon_0=-100" > > # Alternatively, you can specify an EPSG code. > "init=epsg:80000" > > END > ># Start of LAYER DEFINITIONS --------------------------------------------- > > LAYER > NAME "basin" > DATA basin_alb1000.JPG > STATUS DEFAULT > TYPE RASTER > > # PROJECTION > # END > END > > LAYER > NAME "river" > DATA missouri_river > STATUS DEFAULT > TYPE LINE > > METADATA > "SWFDUMPATTRIBUTES" "NAME,LENGTH" > END > > PROJECTION > "init=epsg:80000" > END > > CLASS > COLOR 0 0 254 > END > END > > LAYER > NAME boatramps > CONNECTIONTYPE oraclespatial > CONNECTION [COMMENTED OUT] > DATA "ORA_GEOMETRY FROM (select c.ora_geometry, c.ramp_name, c.ramp_type, >c.bottom_ele, m.project from boatramps_011305_geo c, moriver_project_extents2 >m where sdo_anyinteract(c.ora_geometry, m.ora_geometry)='TRUE') using SRID >8265" > FILTER 'BOTTOM_ELE IS NOT NULL' > > PROJECTION > "proj=latlong" > "ellps=GRS80" > "init=epsg:4269" > END > > TYPE point > STATUS DEFAULT > ># METADATA ># "DESCRIPTION""RAMPS" ># "RESULT_FIELDS" "RAMP_NAME" ># "SWFDUMPATTRIBUTES" "RAMP_NAME,RAMP_TYPE,BOTTOM_ELE,PROJECT" ># END > > LABELMAXSCALE 1500000 > LABELITEM "RAMP_NAME" > CLASSITEM "RAMP_TYPE" > CLASS > NAME "Boat Ramps - Shut Down" > EXPRESSION ([BOTTOM_ELE]>=5000) > SYMBOL 'rectangle' > COLOR 160 60 60 > SIZE 5 > OVERLAYSYMBOL 'rectangle' > OVERLAYCOLOR 252 214 165 # 128 128 0 > OVERLAYSIZE 3 > > LABEL > ANTIALIAS true > TYPE truetype > FONT "tahoma" > COLOR 180 80 0 > SIZE 7 > POSITION uc > END > END > > CLASS > NAME "Boat Ramps - Operational" > EXPRESSION ([BOTTOM_ELE]<5000) > SYMBOL 'rectangle' > COLOR 60 160 60 > SIZE 5 > OVERLAYSYMBOL 'rectangle' > OVERLAYCOLOR 252 214 165 # 128 128 0 > OVERLAYSIZE 3 > > LABEL > ANTIALIAS true > TYPE truetype > FONT "tahoma" > COLOR 80 180 0 > SIZE 7 > POSITION uc > END > END > END > >End of LAYER DEFINITIONS --------------------------------------------- > >END # end of map file/object > > > > >-----Original Message----- >From: Fernando Simon [mailto:fsimon at univali.br] >Sent: Friday, June 10, 2005 1:01 PM >To: Owens, Ryan J NWD02 CONTRACTOR >Cc: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Raster/Oracle Spatial Layer Problems. > >Hi, >What version are you using? Some problems can occur in 4.4.0 version, I >recommend to use the last version (4.6 or 4.4.2). >How did you defined your layers (Raster and Oracle)? Are you using CGI >or MapScript? >Thanks. > >------------------------------------------------------------------------ >Fernando Simon >Mapserver and Oracle Spatial developer >G10 - Laboratorio de Computacao Aplicada - Brazil >http://g10.cttmar.univali.br - UNIVALI/CTTMAR >------------------------------------------------------------------------ > > >Owens, Ryan J NWD02 CONTRACTOR wrote: > > > >>Hello List, >> >>I'm having difficulty implementing a specific combination of a raster >>and Oracle Spatial data layer. >> >>I have two layers: one raster layer and one oracle spatial point >>layer. Both layers function properly, except for some projection >>issues that I will fix later. When I go to add METADATA attributes to >>the oracle spatial layer, I get an "internal server error". When I >>comment out the raster layer, the oracle spatial layer functions >>properly with the metadata. When I comment out the oracle spatial >>layer along with the metadata, the raster layer functions properly. >>But they do not work together. Does anyone have any idea what is >>happening? >> >>Ryan >> >> >> > > > From m.cave-ayland at WEBBASED.CO.UK Fri Jun 10 12:29:36 2005 From: m.cave-ayland at WEBBASED.CO.UK (Mark Cave-Ayland) Date: Fri, 10 Jun 2005 20:29:36 +0100 Subject: pg_exec error In-Reply-To: A<20050610184410.83337.qmail@web30714.mail.mud.yahoo.com> Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy James > Sent: 10 June 2005 19:44 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] pg_exec error > > > Yes it it PHP and yes thats how i want it to look: > > GeometryFromText('POINT(575618 5614867)',-1); > > And ok i'll check out the '" Hi Randy, In PHP there are two types of string delimiters: ' and ". If a string is surrounded by 's then any text between the 's is assigned directly to the variable. However, if a string is surrounded by "s then any variables referenced in the string, e.g. $myvar, are substituted by their actual value. For example: $price = 10.0; $myvar = 'The price of the dollar is $price'; echo $myvar; -> The price of the dollar is $price $price = 10.0; $myvar = "The price of the dollar is $price"; echo $myvar; -> The price of the dollar is 10.0 I must admit that I don't recommend using "s for strings since you inevitably forget to escape the parameters beforehand which can leave you vunerable to injection attacks. I hope this explains exactly how your query works though. Anyway the reason your query fails is that you've got an extra set of 's around your coordinates which causes your geometry to look like POINT('575618' '123456') instead of POINT(575618 123456). So removing the 's around $pointx and $pointy should solve the problem for you, e.g. pg_exec($connection, "INSERT INTO sites VALUES('$q_nxt_gid','$id','$label','$site_id','$comments',GeometryFromText(' POINT($pointx $pointy)',-1)"); Hope this helps, Mark. ------------------------ WebBased Ltd 17 Research Way Tamar Science Park Plymouth PL6 8BT T: +44 (0)1752 797131 F: +44 (0)1752 791023 W: http://www.webbased.co.uk From rjames57 at YAHOO.COM Fri Jun 10 13:10:52 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 10 Jun 2005 13:10:52 -0700 Subject: pg_exec error In-Reply-To: <9EB50F1A91413F4FA63019487FCD251D1133B7@WEBBASEDDC.webbasedltd.local> Message-ID: Hi Mark I've tried a number of differant ways, POINT('pointx pointy') POINT(''pointx' 'pointy'') POINT("'pointx' 'pointy'") POINT(pointx pointy) with what you suggest i get: Warning: pg_exec(): Query failed: ERROR: syntax error at end of input at character 113 in /var/www/html/gis/create/write_postgres.phtml on line 19 I am guessing that something else i am doing is wrong. I counted the characters and 113 is at the end of "pointy)" --- Mark Cave-Ayland wrote: > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy James > > Sent: 10 June 2005 19:44 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] pg_exec error > > > > > > Yes it it PHP and yes thats how i want it to look: > > > > GeometryFromText('POINT(575618 5614867)',-1); > > > > And ok i'll check out the '" > > > Hi Randy, > > In PHP there are two types of string delimiters: ' and ". If a string is > surrounded by 's then any text between the 's is assigned directly to the > variable. However, if a string is surrounded by "s then any variables > referenced in the string, e.g. $myvar, are substituted by their actual > value. > > For example: > > $price = 10.0; > $myvar = 'The price of the dollar is $price'; > echo $myvar; > > -> The price of the dollar is $price > > $price = 10.0; > $myvar = "The price of the dollar is $price"; > echo $myvar; > > -> The price of the dollar is 10.0 > > > I must admit that I don't recommend using "s for strings since you > inevitably forget to escape the parameters beforehand which can leave you > vunerable to injection attacks. I hope this explains exactly how your query > works though. > > Anyway the reason your query fails is that you've got an extra set of 's > around your coordinates which causes your geometry to look like > POINT('575618' '123456') instead of POINT(575618 123456). So removing the 's > around $pointx and $pointy should solve the problem for you, e.g. > > pg_exec($connection, "INSERT INTO sites > VALUES('$q_nxt_gid','$id','$label','$site_id','$comments',GeometryFromText(' > POINT($pointx $pointy)',-1)"); > > > Hope this helps, > > Mark. > > ------------------------ > WebBased Ltd > 17 Research Way > Tamar Science Park > Plymouth > PL6 8BT > > T: +44 (0)1752 797131 > F: +44 (0)1752 791023 > W: http://www.webbased.co.uk > > > __________________________________ Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html From ealpert at DIGITALGLOBE.COM Fri Jun 10 13:22:22 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 10 Jun 2005 14:22:22 -0600 Subject: pg_exec error Message-ID: Try these: You really need to pick up a php book cause this is basic PHP and has nothing to do with postgis. If something doesn't work right use echo and write a test case. "; $geom = "GeometryFromText('POINT($pointx $pointy)',-1)"; echo $geom; ?> -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy James Sent: Friday, June 10, 2005 2:11 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] pg_exec error Hi Mark I've tried a number of differant ways, POINT('pointx pointy') POINT(''pointx' 'pointy'') POINT("'pointx' 'pointy'") POINT(pointx pointy) with what you suggest i get: Warning: pg_exec(): Query failed: ERROR: syntax error at end of input at character 113 in /var/www/html/gis/create/write_postgres.phtml on line 19 I am guessing that something else i am doing is wrong. I counted the characters and 113 is at the end of "pointy)" --- Mark Cave-Ayland wrote: > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy James > > Sent: 10 June 2005 19:44 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] pg_exec error > > > > > > Yes it it PHP and yes thats how i want it to look: > > > > GeometryFromText('POINT(575618 5614867)',-1); > > > > And ok i'll check out the '" > > > Hi Randy, > > In PHP there are two types of string delimiters: ' and ". If a string > is surrounded by 's then any text between the 's is assigned directly > to the variable. However, if a string is surrounded by "s then any > variables referenced in the string, e.g. $myvar, are substituted by > their actual value. > > For example: > > $price = 10.0; > $myvar = 'The price of the dollar is $price'; > echo $myvar; > > -> The price of the dollar is $price > > $price = 10.0; > $myvar = "The price of the dollar is $price"; > echo $myvar; > > -> The price of the dollar is 10.0 > > > I must admit that I don't recommend using "s for strings since you > inevitably forget to escape the parameters beforehand which can leave > you vunerable to injection attacks. I hope this explains exactly how > your query works though. > > Anyway the reason your query fails is that you've got an extra set of > 's around your coordinates which causes your geometry to look like > POINT('575618' '123456') instead of POINT(575618 123456). So removing > the 's around $pointx and $pointy should solve the problem for you, > e.g. > > pg_exec($connection, "INSERT INTO sites > VALUES('$q_nxt_gid','$id','$label','$site_id','$comments',GeometryFrom > Text(' > POINT($pointx $pointy)',-1)"); > > > Hope this helps, > > Mark. > > ------------------------ > WebBased Ltd > 17 Research Way > Tamar Science Park > Plymouth > PL6 8BT > > T: +44 (0)1752 797131 > F: +44 (0)1752 791023 > W: http://www.webbased.co.uk > > > __________________________________ Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html From grevedan at HOTMAIL.COM Fri Jun 10 13:49:51 2005 From: grevedan at HOTMAIL.COM (Dan Greve) Date: Fri, 10 Jun 2005 16:49:51 -0400 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performa In-Reply-To: Message-ID: Unfortunately documentation is usually one of the last steps in the development process. I'm one of the worst at even internally documenting my code, much less providing additional user information. God it's good having Frank back from vacation. I've learned alot from him, and he always seems to find time to respond to questions while saving the GIS world. Hear Hear!! Seriously though, I'm pretty sure I understand most of what you said Frank, and will start building additional layers and looking into Group/Max Min scale. If I get a chance (HA!) I'll write up a little tutorial of how I improve performance with large tiled rastersets. -- dan greve -- software engineer, Northrop Grumman -- palm bay, FL >From: Gambin Dejan >Reply-To: Gambin Dejan >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large >dataset performance >Date: Fri, 10 Jun 2005 08:33:20 +0200 > >Frank, > >I have to say it is great to get such a detalied explanation of >overviews/tiles/performance problems. I would personally very like to >see some kind of HOWTO that would explain this in more details end >technical/theoretical background. For example, how to create overviews >that exactly match desired output resolution so no resampling occurs >(with fixed set of zoom scales of course) and similar performance >things. > >I would be happy enough if someone can point me to literature that >explains all this stuff. > >regards > >dejan > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Frank Warmerdam >Sent: Thursday, June 09, 2005 9:53 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large >dataset performance > > >On 6/4/05, Dan Greve wrote: > > To everyone, > > > > Are GeoTiff overviews taken advantage of by Mapserver? What's the > > best way to handle large datasets (300 GB, 260,000 files in my case) > > when you want the user to be able to view the whole dataset. > > >Dan, > >I think that Mark had the right idea with creating new overview layers >to kick in at various scales. To show an overview of your whole region >it would be disaster to have touch all 260,000 of your files. > >To answer one specific question, MapServer will take advantage of >overviews >built into GeoTIFF files (assuming GDAL is in use). > > > I have a lot of data, probably about 300GB spread among 260,000 tiles. > > > Let's just say the region is... Texas. I want the user to be able to > > see the data set at ANY zoom factor. He'd start out looking at the > > entire state of texas, and be able to zoom progressively into a city > > block, and back out again. If the data format could handle 300 GB in > > a single file (I'm using GeoTIFF), theoretically the performance would > > > be better than if I created a TILEINDEX (shapefile) of the 260,000 > > tiles. I've seen this in smaller datasets when requesting the entire > > scene, even just a 13000x13000 dataset with just over 2500 tiles. > >If GeoTIFF supported very large files (there are plans for "BigTIFF >support" one day) then I might encourage you to just create one huge >internally >tiled GeoTIFF file with lots and lots of overview levels. You could use >a >format like Erdas Imagine that does support very large files and build >one huge mosaic image, with lots of overviews. It *ought* to work quite >efficiently though there might be some efficiency hits with such a large >dataset. For instance, just processing the block pointers array might >prove quite a bit of work. > >What Mark is suggesting is to: > > o Create a tile index for all your files. You will likely want a >spatial > index built on this tileindex shapefile. > > o Create a layer in your mapfile using this tileindex, perhaps named > "mosaic_fullres". > > o I would suggest building internal overviews on all the individual > geotiff files as well. > > o View the resulting layer in MapServer, starting near full resolution. > Zoom out till performance degrades unacceptably. This will be a > new resolution at which you you need to build a new "overview >layer". > This isn't an overview within the files in question, it is a whole >new > layer in the map. There are a variety of ways to build it. I would >likely > prepare a script to generate it with MapServer itself, by issuing a >series > of scripted render requests at your new chosen overview resolution. > > o If you produce this new layer as a set of tile files, you will also >need > a tileindex for it. > > o In the mapfile you will need to add this new set of tiles as a new >layer. > You will want to use the MINSCALE and MAXSCALE options on this > layer and the full resolution layer to ensure that renders start to >operate > from this layer instead of the full resolution data at a suitable >resolution. > > There is some mechanism (GROUP? Using the same layer name?) to > ensure that this layer and the full res layer will be treated as a >single > layer from a user-visible point of view. I don't know this details >of this > aspect. > > o you can repeat the above overview layer steps to build additional > overview layers if needed till your full scene gives acceptable >performance. > >OK, looking over my garbled explanation, I'm not sure I have helped at >all. This fairly common situations screams out for some sort of utility >to help build the overview map layers. Or at least we should have a >more detailed HOWTO for this process than I am in a position to prepare >just now. > > > > > When you say > > > > "I create a new tile grid shapefile using that map extent as the size > > of one tile. I tile the entire map area (in my case the world). " > > > > Do you mean you just duplicate the entire dataset with larger tiles > > when a TILEINDEX search would take longer? > >He means to duplicate the whole dataset, but at the much reduced >resolution at which the render performance started to degrade. If your >original files were fairly large, and had internal overviews built, I >believe your first overview map layer would likely be at something like >1/128'th of the resolution of the original data. So the overview dataset >would then be 1/16000th the size of the original data or so. > > > When you say > > > > "I create a new aggregate image layer using calls to the map server to > > > generate an image for each new tile." > > > > I have no idea what you meant by "aggregate image layer" > >He means a whole new map layer which is at a reduced resolution. It is >an aggregate of a whole bunch of calls to mapserver to render tiles of >the total region. (hence the need for a new tile index). > > > Are you downsampling the image at all as you increase the tile sizes? > > > The raster howto on the UMN site has a snippet about Frank W. wanting > > to implement using GeoTIFF overviews in the mapserver. Does mapserver > > > currently take advantage of this? Could you elaborate on your pyramid > > scheme? > >Yes, he means that it would be at a much reduced resolution. The tile >sizes in meters is much bigger, but the actual tile sizes in terms of >pixels need not necessarily be much larger. > >Note that there are different types of tiling and overviews coming into >play. o Macro tiling: Each tile is a separate TIFF file, and a >tileindex shapefile > is used to associate them to treat them as one layer in the .map >file. > o Internal tiling: A given TIFF file can be internally organized into >tiles > as opposed to strips (scanlines). This gives > > o "map level overviews": using mutiple layers in a .map file with > MINSCALE/MAXSCALE to select which layer to render from. > o "internal overviews": individual TIFF files can have overviews built > in and GDAL will automatically take advantage of them if present. > >Best regards, >-- >---------------------------------------+-------------------------------- >---------------------------------------+------ >I set the clouds in motion - turn up | Frank Warmerdam, >warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent From christhorne at SYMPATICO.CA Fri Jun 10 14:09:37 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Fri, 10 Jun 2005 17:09:37 -0400 Subject: EPSG code for... In-Reply-To: <000501c56cc6$946d1b70$027d5218@GatewayDCM> Message-ID: Dave, Thanks for all your help i feel we are either very closer or this is really bad data?? I tried the these epsg codes and well see image. NAD83 layer is to the left and NAD27 layer is to the right. I had to find the layer by converting the map output to espg:4326 Lat/Long. What do you make of it? Chris Dean C. Mikkelsen wrote: > Hi Chris, > > If we give SPCS a try, we can use the following: > > # 405: california v: nad83 > <405> proj=lcc datum=NAD83 > lon_0=-118 lat_1=35d28 lat_2=34d2 lat_0=33d30 > x_0=2000000 y_0=500000 > no_defs <> > > For NAD83 > > And for NAD27 we can use the following: > > # 407: california vii: nad27 > <407> proj=lcc datum=NAD27 > lon_0=-118d20 lat_1=34d25 lat_2=33d52 lat_0=34d8 > x_0=1276106.450596901 y_0=1268253.006858014 > no_defs <> > > Note the change in Zones. Los Angeles County was in CALIFORNIA ZONE VII. > ZONE VII was eliminated > for NAD83 with Los Angeles County being included with ZONE V. > > This should hopefully solve the shift problem you are seeing. I would > aim towards the NAD27 variant for the original projection being defined > and then aim at projecting out in NAD83. > > Let me know what happens. > > Cheers, > Dean > > Consultant, Terra ETL Ltd. > North Vancouver, BC > Canada > Phone: +1 604 929 8630 > E-mail: dcmikkelsen at shaw.ca > > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Christopher R. Thorne > Sent: Wednesday, June 08, 2005 11:35 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > > I was worried about that ;) Unfortunately, it is not an easy thing to > pin point what the projection actually is. > > Thanks again, > Chris > > Dean C. Mikkelsen wrote: > >>Hi Ken, >> >>Thanks for the information. >> >>The other problem I was looking at is that it may be a State Plane >>Coordinate System as well. >> >>California is divided into many zones and the dataset being worked >>with >>did not include some of the projection information. >> >>Cheers, >>Dean >> >>Consultant, Terra ETL Ltd. >>North Vancouver, BC >>Canada >>Phone: +1 604 929 8630 >>E-mail: dcmikkelsen at shaw.ca >> >> -----Original Message----- >> *From:* UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Ken Lord >> *Sent:* Tuesday, June 07, 2005 12:44 PM >> *To:* MAPSERVER-USERS at LISTS.UMN.EDU >> *Subject:* Re: [UMN_MAPSERVER-USERS] EPSG code for... >> >> Dean, >> >> Make sure you have the Proj software installed, there's > > information > >> about it here: >> >> http://www.maptools.org/maplab/index.phtml?page=maplab_windows.txt >> >> and here: >> >> http://www.remotesensing.org/proj/ >> >> If you haven't already, grab the windows binaries, unzip and place >> the Proj folder on your C drive. >> >> C:/Proj >> >> Cheers, >> Ken Lord >> Vancouver BC >> >> >> >> >> On 6/7/05, *Christopher R. Thorne* > > wrote: >> >> Dean C. Mikkelsen wrote: >> > Hi Chris, >> > >> > It may be a directory problem, MapServer is not reading the >> CONUS or >> > NAD27/NAD83 files correctly in the proj directory. >> > >> > Are you using the MS4W or a later version of MapServer? >> >> I am using the latest version of ms4w, with Chameleon using >> MapServer 4.4.2 >> >> Any suggestions? >> >> > >> > Cheers, >> > Dean >> > >> > Dean C. Mikkelsen, B.Sc.,P.Eng. >> > Consultant, Terra ETL Ltd. >> > North Vancouver, BC >> > Canada >> > Phone: +1 604 929 8630 >> > E-mail: dcmikkelsen at shaw.ca >> > >> > >> > >> > -----Original Message----- >> > From: Christopher R. Thorne > > [mailto:christhorne at sympatico.ca > >> ] >> > Sent: Monday, June 06, 2005 4:10 PM >> > To: Dean C. Mikkelsen >> > Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> >> > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... >> > >> > >> > Yes I used these projections where >> > >> > 26911 NAD 83 is the projection of the mapfile and where > > NAD27 > >> <26711> is >> > >> > being reprojected. >> > >> > See first attached image to see how messed up the Nad27 > > layer > >> gets. >> > >> > If I don't define projection you can see the a shift > > between > >> the line >> > layer and the solid polygon layers. >> > >> > Comments/suggestions?? >> > >> > Thanks >> > Chris >> > >> > Dean C. Mikkelsen wrote: >> > >> >>Hi Chris, >> >> >> >>Did you try the following? >> >> >> >># NAD27 / UTM zone 11N >> >><26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 > > +units=m > >> >>no_defs <> >> >> >> >># NAD83 / UTM zone 11N >> >><26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 >> +units=m no_defs >> > >> > >> >><> >> >> >> >>Cheers, >> >>Dean >> >> >> >>Dean C. Mikkelsen, B.Sc.,P.Eng. >> >>Consultant, Terra ETL Ltd. >> >>North Vancouver, BC >> >>Canada >> >>Phone: +1 604 929 8630 >> >>E-mail: dcmikkelsen at shaw.ca >> >> >> >> >> >> >> >>-----Original Message----- >> >>From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU >> ] >> >>On Behalf Of Christopher R. Thorne >> >>Sent: Monday, June 06, 2005 3:29 PM >> >>To: MAPSERVER-USERS at LISTS.UMN.EDU >> >> >>Subject: [UMN_MAPSERVER-USERS] EPSG code for... >> >> >> >> >> >>Hello all, >> >> >> >>If you were given the following information for two >> projections for >> >>California LA County region. >> >> >> >> >> >>NAD83 UTM Zone 11 meters >> >> >> >>NAD27 UTM Zone 11 meters >> >> >> >>What would be your suggested codes? I have tried a few but >> can not >> >>seem >> >>to get it. >> >> >> >>Thanks >> >>Chris >> >> >> >> >> > >> > >> > >> >> >> -- >> Christopher R. Thorne, GIS Specialist >> -- >> 3406 Southgate Rd. Ottawa ON K1V 9P9 >> christhorne at sympatico.ca >> Tel:(613)523-6593 > > > -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 -------------- next part -------------- A non-text attachment was scrubbed... Name: la_in2places.png Type: image/png Size: 6849 bytes Desc: not available URL: From dejan.gambin at PULA.HR Fri Jun 10 14:41:58 2005 From: dejan.gambin at PULA.HR (Dejan Gambin) Date: Fri, 10 Jun 2005 23:41:58 +0200 Subject: php relocation error HELP! Message-ID: Hi, This happened to me today and I am not able to use php/mapscript any more. I get interanl server error and the apache log says: php: relocation error: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript_44 .so: undefined symbol: GetRegistrar__20OGRSFDriverRegistrar [Fri Jun 10 23:13:07 2005] [error] [client 195.29.73.150] Premature end of script headers: /usr/lib/cgi-bin/php I can't figure out what exactly is the cause, but it started after I have done the following: - I wanted to use some libgeotiff tools so I have downloaded and tried to compile libgeotiff - since it required libtiff version 3.6 and later (i had libtiff3g installed - debian package) I have installed the new libtiff library using apt-get and the version libtiff4 was installed - I have tried to compile libgeotiff but without success, then I saw that libtiff.so was linked to old libtiff.so.3.5.5 instead of newly installed libtiff.so.4.1.2 so I have removed the symbolic link and created the new one using: ln -s libtiff.so.4.1.2 libtiff.so - I have successfully compiled libgeotiff library but after that I am not able to use mapserver (php/mapscript) any more Now I have libtiff3g and libtiff4 installed. I have tried to use the old libtiff.so.3.5.5, recompiled mapserver and used the newest php_mapscript.so but without success. I have tried this using new libtiff.so.4.1.2 - still no success. I have tried to recompile php (4.3.11) - nothing helped. I have recompiled gdal - nothing (but using the old libtiff.so.3.5.5) Does anyone know how to solve the problem? regards dejan gambin From nate at SEASTAR.JPL.NASA.GOV Fri Jun 10 14:38:26 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Fri, 10 Jun 2005 14:38:26 -0700 Subject: wind barbs Message-ID: Hello, I'm hoping I can get some pointers on drawing windbarbs in PHP Mapscript from this list. Currently, I'm able to draw a point on my map by using some code that I found on the list archive and various other places on the net. However, the character does not appear to be correct (I've attached the map - it's that small black speck at -120,30). I have downloaded the ESRIWeather font and added it to my fontlist, and aliased it with 'weather'. The layer definition looks like this: LAYER NAME tt_symbol STATUS ON TYPE POINT CLASS NAME "0" STYLE END LABEL FORCE TRUE TYPE TRUETYPE FONT weather SIZE large ANTIALIAS true OUTLINECOLOR 0 0 0 COLOR 0 0 0 POSITION UC ANGLE 0 BUFFER 0 PARTIALS TRUE END END END The code looks like this: $this->image = $this->map->draw(); $layer = $this->map->getLayerByName('tt_symbol'); $point = ms_newPointObj(); $point->setXY(-120,30); $point->draw($this->map,$layer,$this->image,0,"ã"); $this->map->drawLabelCache($this->image); I could use some help to improve the output. One curious thing is if I remove the Style object from the Map file the character does not appear at all. This suggests that perhaps something else is required in the layer or style objects? Thanks, Nate -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov -------------- next part -------------- A non-text attachment was scrubbed... Name: 1118439316193731.png Type: image/png Size: 16220 bytes Desc: map URL: From nate at SEASTAR.JPL.NASA.GOV Fri Jun 10 15:08:00 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Fri, 10 Jun 2005 15:08:00 -0700 Subject: wind barbs In-Reply-To: Message-ID: I got the barb character to display by making the following changes: - Changed "SIZE LARGE" to "SIZE 25" - Changed "ã" to "ã" (was missing the semicolon) Thanks, Nate On Fri, 10 Jun 2005, Nate Reed wrote: > Hello, > > I'm hoping I can get some pointers on drawing windbarbs in PHP Mapscript > from this list. > > Currently, I'm able to draw a point on my map by using some code > that I found on the list archive and various other places on the net. > However, the character does not appear to be correct (I've attached the > map - it's that small black speck at -120,30). > > I have downloaded the ESRIWeather font and added it to my fontlist, and > aliased it with 'weather'. > > The layer definition looks like this: > > LAYER > NAME tt_symbol > STATUS ON > TYPE POINT > CLASS > NAME "0" > STYLE > END > LABEL > FORCE TRUE > TYPE TRUETYPE > FONT weather > SIZE large > ANTIALIAS true > OUTLINECOLOR 0 0 0 > COLOR 0 0 0 > POSITION UC > ANGLE 0 > BUFFER 0 > PARTIALS TRUE > END > END > END > > The code looks like this: > > $this->image = $this->map->draw(); > $layer = $this->map->getLayerByName('tt_symbol'); > $point = ms_newPointObj(); > $point->setXY(-120,30); > $point->draw($this->map,$layer,$this->image,0,"ã"); > $this->map->drawLabelCache($this->image); > > I could use some help to improve the output. One curious thing is if I > remove the Style object from the Map file the character does not appear at > all. This suggests that perhaps something else is required in the layer > or style objects? > > Thanks, > Nate > -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From nate at SEASTAR.JPL.NASA.GOV Fri Jun 10 15:29:35 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Fri, 10 Jun 2005 15:29:35 -0700 Subject: more wind barbs problems In-Reply-To: Message-ID: How do I set the angle of the wind barb character? I tried $class = $layer->getClass(0); $class->label->angle = 45; .... $point->draw($this->map,$layer,$this->image,0,'ã'); $this->map->drawLabelCache($this->image); The angle is unchanged. Nate On Fri, 10 Jun 2005, Nate Reed wrote: > I got the barb character to display by making the following changes: > > - Changed "SIZE LARGE" to "SIZE 25" > - Changed "ã" to "ã" (was missing the semicolon) > > Thanks, > Nate > > On Fri, 10 Jun 2005, Nate Reed wrote: > > > Hello, > > > > I'm hoping I can get some pointers on drawing windbarbs in PHP Mapscript > > from this list. > > > > Currently, I'm able to draw a point on my map by using some code > > that I found on the list archive and various other places on the net. > > However, the character does not appear to be correct (I've attached the > > map - it's that small black speck at -120,30). > > > > I have downloaded the ESRIWeather font and added it to my fontlist, and > > aliased it with 'weather'. > > > > The layer definition looks like this: > > > > LAYER > > NAME tt_symbol > > STATUS ON > > TYPE POINT > > CLASS > > NAME "0" > > STYLE > > END > > LABEL > > FORCE TRUE > > TYPE TRUETYPE > > FONT weather > > SIZE large > > ANTIALIAS true > > OUTLINECOLOR 0 0 0 > > COLOR 0 0 0 > > POSITION UC > > ANGLE 0 > > BUFFER 0 > > PARTIALS TRUE > > END > > END > > END > > > > The code looks like this: > > > > $this->image = $this->map->draw(); > > $layer = $this->map->getLayerByName('tt_symbol'); > > $point = ms_newPointObj(); > > $point->setXY(-120,30); > > $point->draw($this->map,$layer,$this->image,0,"ã"); > > $this->map->drawLabelCache($this->image); > > > > I could use some help to improve the output. One curious thing is if I > > remove the Style object from the Map file the character does not appear at > > all. This suggests that perhaps something else is required in the layer > > or style objects? > > > > Thanks, > > Nate > > > > -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From nate at SEASTAR.JPL.NASA.GOV Fri Jun 10 15:43:37 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Fri, 10 Jun 2005 15:43:37 -0700 Subject: more wind barbs problems In-Reply-To: <4B2557033346D4119363009027CB57CF02812FCD@daryl.ecotrust.org> Message-ID: Thank you! On Fri, 10 Jun 2005, Aaron Racicot wrote: > Try: > > $class->label->set("angle", 45); > > You should check out the phpmapscript class guide which will show you > data items and methods for all of the classes... > > http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html > > Aaron > > +----------------------------------------+ > | Aaron Racicot | aaronr at ecotrust.org | > | GIS Programmer | 503.467.0759 | > +----------------------------------------+ > | e c o t r u s t | > | Jean Vollum Natural Capital Center | > | 721 NW Ninth Avenue | > | Suite 200 | > | Portland, OR 97209 | > | www.ecotrust.org | > +----------------------------------------+ > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Nate Reed > Sent: Friday, June 10, 2005 3:30 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] more wind barbs problems > > > How do I set the angle of the wind barb character? > > I tried > > $class = $layer->getClass(0); > $class->label->angle = 45; > ... > $point->draw($this->map,$layer,$this->image,0,'ã'); > $this->map->drawLabelCache($this->image); > > The angle is unchanged. > > Nate > > On Fri, 10 Jun 2005, Nate Reed wrote: > > > I got the barb character to display by making the following changes: > > > > - Changed "SIZE LARGE" to "SIZE 25" > > - Changed "ã" to "ã" (was missing the semicolon) > > > > Thanks, > > Nate > > > > On Fri, 10 Jun 2005, Nate Reed wrote: > > > > > Hello, > > > > > > I'm hoping I can get some pointers on drawing windbarbs in PHP > > > Mapscript > > > from this list. > > > > > > Currently, I'm able to draw a point on my map by using some code > > > that I found on the list archive and various other places on the > net. > > > However, the character does not appear to be correct (I've attached > the > > > map - it's that small black speck at -120,30). > > > > > > I have downloaded the ESRIWeather font and added it to my fontlist, > > > and > > > aliased it with 'weather'. > > > > > > The layer definition looks like this: > > > > > > LAYER > > > NAME tt_symbol > > > STATUS ON > > > TYPE POINT > > > CLASS > > > NAME "0" > > > STYLE > > > END > > > LABEL > > > FORCE TRUE > > > TYPE TRUETYPE > > > FONT weather > > > SIZE large > > > ANTIALIAS true > > > OUTLINECOLOR 0 0 0 > > > COLOR 0 0 0 > > > POSITION UC > > > ANGLE 0 > > > BUFFER 0 > > > PARTIALS TRUE > > > END > > > END > > > END > > > > > > The code looks like this: > > > > > > $this->image = $this->map->draw(); > > > $layer = $this->map->getLayerByName('tt_symbol'); > > > $point = ms_newPointObj(); > > > $point->setXY(-120,30); > > > $point->draw($this->map,$layer,$this->image,0,"ã"); > > > $this->map->drawLabelCache($this->image); > > > > > > I could use some help to improve the output. One curious thing is > > > if I remove the Style object from the Map file the character does > > > not appear at all. This suggests that perhaps something else is > > > required in the layer or style objects? > > > > > > Thanks, > > > Nate > > > > > > > > > -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From bino at INDOAKSES-ONLINE.COM Fri Jun 10 19:48:53 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Sat, 11 Jun 2005 09:48:53 +0700 Subject: MS4W : Symbol Set Message-ID: Dear All. I'm Using MS4W , and ESRI shp files as data. The map look fine, but POI only showed as "small-dot". How to set MS4W to use proper symbols for each PoI ? I couldn't fine any symbol-set on my MS4W installer. Regards -bino- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcmikkelsen at SHAW.CA Sat Jun 11 00:00:20 2005 From: dcmikkelsen at SHAW.CA (Dean C. Mikkelsen) Date: Sat, 11 Jun 2005 00:00:20 -0700 Subject: EPSG code for... In-Reply-To: <42AA0191.9020404@sympatico.ca> Message-ID: Hi Chris, Take a look at the following web-page. I am leaning towards a problem now in defining which State Plane Co-ordinate System is being used. i.e. one of the ones we are using is wrong - we may actually be north or south of the current one. Now the trick is to determine which one. A note to other readers epsg:4326 is WGS84. Did you try reprojecting the NAD27 Layer with the NAD83 definition? Or with epsg:4326? What happens? Also a note, once we determine which projection and datum, we should report it back to the data provider with notes that metadata such as datum, SPCS (projection), etc. should be included in all datasets they deliver. I found a web-page that explains some of my logic and the numbers appearing on your image (the large differences between the left and right images) - though a different state. Please see: http://www.wadetrim.com/resources/articles/sblocks.htm Kind regards, Dean -----Original Message----- From: Christopher R. Thorne [mailto:christhorne at sympatico.ca] Sent: Friday, June 10, 2005 2:10 PM To: Dean C. Mikkelsen Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... Dave, Thanks for all your help i feel we are either very closer or this is really bad data?? I tried the these epsg codes and well see image. NAD83 layer is to the left and NAD27 layer is to the right. I had to find the layer by converting the map output to espg:4326 Lat/Long. What do you make of it? Chris Dean C. Mikkelsen wrote: > Hi Chris, > > If we give SPCS a try, we can use the following: > > # 405: california v: nad83 > <405> proj=lcc datum=NAD83 > lon_0=-118 lat_1=35d28 lat_2=34d2 lat_0=33d30 > x_0=2000000 y_0=500000 > no_defs <> > > For NAD83 > > And for NAD27 we can use the following: > > # 407: california vii: nad27 > <407> proj=lcc datum=NAD27 > lon_0=-118d20 lat_1=34d25 lat_2=33d52 lat_0=34d8 x_0=1276106.450596901 > y_0=1268253.006858014 no_defs <> > > Note the change in Zones. Los Angeles County was in CALIFORNIA ZONE > VII. ZONE VII was eliminated for NAD83 with Los Angeles County being > included with ZONE V. > > This should hopefully solve the shift problem you are seeing. I would > aim towards the NAD27 variant for the original projection being > defined and then aim at projecting out in NAD83. > > Let me know what happens. > > Cheers, > Dean > > Consultant, Terra ETL Ltd. > North Vancouver, BC > Canada > Phone: +1 604 929 8630 > E-mail: dcmikkelsen at shaw.ca > > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Christopher R. Thorne > Sent: Wednesday, June 08, 2005 11:35 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > > I was worried about that ;) Unfortunately, it is not an easy thing to > pin point what the projection actually is. > > Thanks again, > Chris > > Dean C. Mikkelsen wrote: > >>Hi Ken, >> >>Thanks for the information. >> >>The other problem I was looking at is that it may be a State Plane >>Coordinate System as well. >> >>California is divided into many zones and the dataset being worked >>with >>did not include some of the projection information. >> >>Cheers, >>Dean >> >>Consultant, Terra ETL Ltd. >>North Vancouver, BC >>Canada >>Phone: +1 604 929 8630 >>E-mail: dcmikkelsen at shaw.ca >> >> -----Original Message----- >> *From:* UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Ken Lord >> *Sent:* Tuesday, June 07, 2005 12:44 PM >> *To:* MAPSERVER-USERS at LISTS.UMN.EDU >> *Subject:* Re: [UMN_MAPSERVER-USERS] EPSG code for... >> >> Dean, >> >> Make sure you have the Proj software installed, there's > > information > >> about it here: >> >> http://www.maptools.org/maplab/index.phtml?page=maplab_windows.txt >> >> and here: >> >> http://www.remotesensing.org/proj/ >> >> If you haven't already, grab the windows binaries, unzip and place >> the Proj folder on your C drive. >> >> C:/Proj >> >> Cheers, >> Ken Lord >> Vancouver BC >> >> >> >> >> On 6/7/05, *Christopher R. Thorne* > > wrote: >> >> Dean C. Mikkelsen wrote: >> > Hi Chris, >> > >> > It may be a directory problem, MapServer is not reading the >> CONUS or >> > NAD27/NAD83 files correctly in the proj directory. >> > >> > Are you using the MS4W or a later version of MapServer? >> >> I am using the latest version of ms4w, with Chameleon using >> MapServer 4.4.2 >> >> Any suggestions? >> >> > >> > Cheers, >> > Dean >> > >> > Dean C. Mikkelsen, B.Sc.,P.Eng. >> > Consultant, Terra ETL Ltd. >> > North Vancouver, BC >> > Canada >> > Phone: +1 604 929 8630 >> > E-mail: dcmikkelsen at shaw.ca >> > >> > >> > >> > -----Original Message----- >> > From: Christopher R. Thorne > > [mailto:christhorne at sympatico.ca > >> ] >> > Sent: Monday, June 06, 2005 4:10 PM >> > To: Dean C. Mikkelsen >> > Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> >> > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... >> > >> > >> > Yes I used these projections where >> > >> > 26911 NAD 83 is the projection of the mapfile and where > > NAD27 > >> <26711> is >> > >> > being reprojected. >> > >> > See first attached image to see how messed up the Nad27 > > layer > >> gets. >> > >> > If I don't define projection you can see the a shift > > between > >> the line >> > layer and the solid polygon layers. >> > >> > Comments/suggestions?? >> > >> > Thanks >> > Chris >> > >> > Dean C. Mikkelsen wrote: >> > >> >>Hi Chris, >> >> >> >>Did you try the following? >> >> >> >># NAD27 / UTM zone 11N >> >><26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 > > +units=m > >> >>no_defs <> >> >> >> >># NAD83 / UTM zone 11N >> >><26911> +proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 >> +units=m no_defs >> > >> > >> >><> >> >> >> >>Cheers, >> >>Dean >> >> >> >>Dean C. Mikkelsen, B.Sc.,P.Eng. >> >>Consultant, Terra ETL Ltd. >> >>North Vancouver, BC >> >>Canada >> >>Phone: +1 604 929 8630 >> >>E-mail: dcmikkelsen at shaw.ca >> >> >> >> >> >> >> >>-----Original Message----- >> >>From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU >> ] >> >>On Behalf Of Christopher R. Thorne >> >>Sent: Monday, June 06, 2005 3:29 PM >> >>To: MAPSERVER-USERS at LISTS.UMN.EDU >> >> >>Subject: [UMN_MAPSERVER-USERS] EPSG code for... >> >> >> >> >> >>Hello all, >> >> >> >>If you were given the following information for two >> projections for >> >>California LA County region. >> >> >> >> >> >>NAD83 UTM Zone 11 meters >> >> >> >>NAD27 UTM Zone 11 meters >> >> >> >>What would be your suggested codes? I have tried a few but >> can not >> >>seem >> >>to get it. >> >> >> >>Thanks >> >>Chris >> >> >> >> >> > >> > >> > >> >> >> -- >> Christopher R. Thorne, GIS Specialist >> -- >> 3406 Southgate Rd. Ottawa ON K1V 9P9 >> christhorne at sympatico.ca >> Tel:(613)523-6593 > > > -- Christopher R. Thorne, GIS Specialist -- 3406 Southgate Rd. Ottawa ON K1V 9P9 christhorne at sympatico.ca Tel:(613)523-6593 From gribol at FREE.FR Sat Jun 11 00:17:24 2005 From: gribol at FREE.FR (Gribol) Date: Sat, 11 Jun 2005 09:17:24 +0200 Subject: Mapscript - Sorting labels In-Reply-To: Message-ID: ; Try sorting your shapefile in ascending order by population, instead of ; descending order. My experience with MapServer's labeling is that labels ; that are drawn later are given preference to those that were ; drawn earlier. ; ; If sorting your shapefile in ascending order doesn't help, you could try ; defining a number of ANNOTATION layers that are responsible for labeling ; cities within specified (and disjoint) population ranges. (e.g. layer1 to ; label cities where: POPULATION<10000; layer2 to label cities where: ; 10000<=POPULATION<20000; layer3 to label: 20000<=POPULATION<40000; etc.) ; Then arrange the layers in your mapfile so that layers for ; annotating small ; cities are drawn first. The number of ANNOTATION layers you use ; will depend ; on how tolerant you are for occasional labeling "mistakes" (where ; a smaller ; city's label is drawn in preference to that of a larger city). ; ; Hope this helps, ; -SM Steven, If I do an ascending sort on the shapefile, it's working. MapServer's labeling is very strange ! Thank you for your help. Marc From woodbri at SWOODBRIDGE.COM Sat Jun 11 05:34:40 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 11 Jun 2005 08:34:40 -0400 Subject: Mapscript - Sorting labels In-Reply-To: Message-ID: Gribol wrote: > ; Try sorting your shapefile in ascending order by population, instead of > ; descending order. My experience with MapServer's labeling is that labels > ; that are drawn later are given preference to those that were > ; drawn earlier. > ; > ; If sorting your shapefile in ascending order doesn't help, you could try > ; defining a number of ANNOTATION layers that are responsible for labeling > ; cities within specified (and disjoint) population ranges. (e.g. layer1 to > ; label cities where: POPULATION<10000; layer2 to label cities where: > ; 10000<=POPULATION<20000; layer3 to label: 20000<=POPULATION<40000; etc.) > ; Then arrange the layers in your mapfile so that layers for > ; annotating small > ; cities are drawn first. The number of ANNOTATION layers you use > ; will depend > ; on how tolerant you are for occasional labeling "mistakes" (where > ; a smaller > ; city's label is drawn in preference to that of a larger city). > ; > ; Hope this helps, > ; -SM > > Steven, > > If I do an ascending sort on the shapefile, it's working. > MapServer's labeling is very strange ! > Thank you for your help. Actually, mapserver's labeling is very logical if you think about it for a bit. When you draw a map you draw the least important features first and the most important last. But you want last items that you drew to be labeled first because they are most important. So mapserver draws all the layers and objects and places their respective labels in a cache. After all the geometry has been draw the cache is processed with a last in first out strategy. That is the last object draw is from the set of most important objects so it is labels first, if there is room for additional labels they are also drawn, but if an area of the map is full of labels and you try to draw another in that area it will not fit and gets thrown out, and so on through the whole cache. This way in spare areas you are more likely to see the labels from the earlier layers and in cities you are more likely to see the labels of points and streets. -Steve W. From richard.greenwood at GMAIL.COM Sat Jun 11 06:59:30 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 11 Jun 2005 07:59:30 -0600 Subject: Queryfile and Savequery CGI Help Message-ID: From: David Stajan INFORMGIS.COM> Subject: Re: [UMN_MAPSERVER-USERS] Queryfile and Savequery CGI Help Newsgroups: gmane.comp.gis.mapserver.user Date: 2005-06-10 16:25:29 GMT (21 hours and 10 minutes ago) On Thu, 9 Jun 2005 12:36:40 +0000, Richard Greenwood GMAIL.COM> wrote: >David INFORMGIS.COM> writes: > >> >> Hi All, >> >> I'm trying to use CGI mapserver and have run into some confusion about the >> queryfile and savequery parameters. The cgi reference manual says that >> you can use the queryfile parameter within a Browse mode to have your >> selection stay highlighted while you zoom/pan after performing the initial >> query. > >In your initial query, set savequery=true. This will save the in your temp >directory with a unique (and rather long) name. Then on subsequent queries set >queryfile=/path/to/unique_long_name.qy > >An example is at: > http://www2.tetonwyo.org/mapserver >Start out with a property search for 'smith' and then watch what happens on the >address bar. > >Rich Thanks for the response Richard. I have the queryfile working and it is saving the the selected feature but the problem I'm having is that it's returning the layer's query template when I pan or zoom after the initial query. What do I need to do to interact with the map after the query and still have the selection higlighted on the map image(using the the queryfile) but not trigger the query template to show up. The documentation suggests that using a Browse mode will just produce the map image but thats not happening in my app. Am I missing something? I see that it works well in your example. Thanks, DaviD Well I guess you are missing something, but I'm having difficulty envisioning just what it is. When you do the query you set: mode=itemnquery qlayer=x savequery=true etc.... Now you have a map and a saved query file. To pan or zoom, you want: mode=browse queryfile=name_of_query_file etc.... Do you have a template difined for the layer that displays attribute data? In many apps you want to be able to hilite the object (itemquery or itemnquery) and you want to be able to click on the object and display attribute data (query or nquery). I do that by basically defining the layer twice with different names and different templates. HTH RIch -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From dmorissette at DMSOLUTIONS.CA Sat Jun 11 08:06:08 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Sat, 11 Jun 2005 11:06:08 -0400 Subject: MapServer 4.6.0-rc1 released Message-ID: MapServer 4.6.0-rc1 is now available on the MapServer website (http://mapserver.gis.umn.edu/dload.html). Unless show-stopper issues are found, this release candidate will become the final release early this week, likely on Tuesday. You are invited to give this release candidate a try and report any issue via bugzilla. The list of fixes since beta3 is included below. Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Version 4.6.0-rc1 (2005-06-09) ------------------------------ - Bug 1375: Fixed seg fault in mapscript caused by the USE_POINT_Z_M flag. This flag was not carried to the mapscript Makefile(s). - Bug 1367: Fixed PHP MapScript's symbolObj->setPoints() to correctly set symbolObj->sizex/sizey - Bug 1373: Added $layerObj->removeClass() to PHP MapScript (was already in SWIG MapScript) From christhorne at SYMPATICO.CA Sat Jun 11 09:53:08 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Sat, 11 Jun 2005 12:53:08 -0400 Subject: EPSG code for... In-Reply-To: <000401c56e53$3b693a20$027d5218@GatewayDCM> Message-ID: Hello Dean, Dean C. Mikkelsen wrote: > Hi Chris, > > Take a look at the following web-page. > > I am leaning towards a problem now in defining which State Plane > Co-ordinate System is being used. i.e. one of the ones we are using is > wrong - we may actually be north or south of the current one. Now the > trick is to determine which one. A note to other readers epsg:4326 is > WGS84. > > Did you try reprojecting the NAD27 Layer with the NAD83 definition? Yes I did that and the layers switched positions. Or > with epsg:4326? What happens? > with setting the projection to the lat/long layers, they are not found in outer space, not within the world extent. > http://www.wadetrim.com/resources/articles/sblocks.htm Thanks for the good reference. The reason why I got into this situation was because I am four steps removed from the data provider. I only managed to get the information that you already know and I was hoping the information was correct. The other problem was that I was not sure how to identify the issues, confidently. If not I will definitely push for more information. Cheers and thanks again, Chris -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From woklist at CHARTER.NET Sat Jun 11 11:11:35 2005 From: woklist at CHARTER.NET (William K) Date: Sat, 11 Jun 2005 13:11:35 -0500 Subject: Mapserver 4.6rc1 - Mac OS X binaries available Message-ID: Hot off the ... uh ... GCC grinder ... press ... whatever. Just in time for Open Source Geospatial. I was going to make a package of the beta this morning, and there's a release candidate available! So, MapServer 4.6.0rc1, for Mac OS X. For now it's Tiger-only. I haven't had time yet to work on the '10.3.8 SDK' stuff to make a Panther installer from a Tiger Mac. I may be able to do something on a work Mac, but that would be 10.3.9-only, not 10.3.6-10.3.9 as I'd like. If anyone really wants a Panther MapServer 4.6 installer by OSG, let me know. Otherwise, the old 4.4 Panther installer is still available. Also, GIS Libs has been updated: GEOS updated to 2.1.2; GRASS raster support added to GDAL. ----- William Kyngesburye http://www.kyngchaos.com/ "History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history." - Hitchhiker's Guide to the Galaxy From rrc124 at GMAIL.COM Sat Jun 11 12:35:05 2005 From: rrc124 at GMAIL.COM (Robert Campbell) Date: Sat, 11 Jun 2005 15:35:05 -0400 Subject: [MapServer Error]: msProcessProjection(): no options found in 'init' file in Message-ID: I'm scared - I have a project due in two days that requires Chameleon, but I can't get it running. Here is the error I get: Warning: [MapServer Error]: msProcessProjection(): no options found in 'init' file in /home/rrc124/public_html/chameleon/htdocs/common/wrapper/map_session.php on line 215 Warning: Failed to open map file /home/rrc124/public_html/chameleon/samples/map/chameleon.map in /home/rrc124/public_html/chameleon/htdocs/common/wrapper/map_session.php on line 215 Fatal error: Call to a member function on a non-object in /home/rrc124/public_html/chameleon/htdocs/widgets/KeyMap/KeyMap.widget.php on line 197 I have MapServer installed on Linux and it's displaying my map okay. I installed Chameleon and set it up according to the directions but get the above error when trying to run a sample. I have tried to find answers online, but didn't really get anywhere. What makes it even worse is that I suck at the whole Linux thing.. so baby steps please :-) Thank you all SOO much for your help! From jmckenna at DMSOLUTIONS.CA Sat Jun 11 13:13:23 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sat, 11 Jun 2005 16:13:23 -0400 Subject: [MapServer Error]: msProcessProjection(): no options found in 'init' file in In-Reply-To: Message-ID: I think this is your problem: http://lists.maptools.org/pipermail/chameleon/2005-May/002207.html I recommend that the Chameleon mailing list become your best friend - join here http://lists.maptools.org/mailman/listinfo/chameleon jeff Robert Campbell wrote: > I'm scared - I have a project due in two days that requires Chameleon, > but I can't get it running. Here is the error I get: > > Warning: [MapServer Error]: msProcessProjection(): no options found in > 'init' file in /home/rrc124/public_html/chameleon/htdocs/common/wrapper/map_session.php > on line 215 > > Warning: Failed to open map file > /home/rrc124/public_html/chameleon/samples/map/chameleon.map in > /home/rrc124/public_html/chameleon/htdocs/common/wrapper/map_session.php > on line 215 > > Fatal error: Call to a member function on a non-object in > /home/rrc124/public_html/chameleon/htdocs/widgets/KeyMap/KeyMap.widget.php > on line 197 > > > I have MapServer installed on Linux and it's displaying my map okay. I > installed Chameleon and set it up according to the directions but get > the above error when trying to run a sample. I have tried to find > answers online, but didn't really get anywhere. What makes it even > worse is that I suck at the whole Linux thing.. so baby steps please > :-) Thank you all SOO much for your help! > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From rrc124 at GMAIL.COM Sat Jun 11 17:04:49 2005 From: rrc124 at GMAIL.COM (Robert Campbell) Date: Sat, 11 Jun 2005 20:04:49 -0400 Subject: epsg file? where? Message-ID: The solution to my previously posted problem was to upload a new version of the epsg file to my hosting company. The problem is, I can't find where my existing one is. My hosting company installed mapserver.. all I could find is the mapserv cgi-bin executable and then there is a mapserver directory with data, fonts, graphics, images, javascript, symbols, and template directories. I ssh'ed in and checked the /usr/local/share/proj folder but I don't even have a share folder in my local folder.. so where is my epsg file so I can replace it? Thanks! From pramsey at REFRACTIONS.NET Sat Jun 11 18:21:13 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Sat, 11 Jun 2005 18:21:13 -0700 Subject: epsg file? where? In-Reply-To: Message-ID: If you are on Linux, trying running 'locate epsg', that should turn it up pretty fast. P On 11-Jun-05, at 5:04 PM, Robert Campbell wrote: > The solution to my previously posted problem was to upload a new > version of the epsg file to my hosting company. The problem is, I > can't find where my existing one is. > > My hosting company installed mapserver.. all I could find is the > mapserv cgi-bin executable and then there is a mapserver directory > with data, fonts, graphics, images, javascript, symbols, and template > directories. > > I ssh'ed in and checked the /usr/local/share/proj folder but I don't > even have a share folder in my local folder.. so where is my epsg file > so I can replace it? Thanks! > From msestudiente2 at YAHOO.COM Sat Jun 11 20:35:14 2005 From: msestudiente2 at YAHOO.COM (Alex Smith) Date: Sat, 11 Jun 2005 20:35:14 -0700 Subject: Highway Shield labels? Message-ID: Hola everyone, I'm having trouble getting highway shield labels to work for roads. I'm hoping to render a highway number item/field on top of my custom highway shields. Thanks! AS __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From msestudiente2 at YAHOO.COM Sat Jun 11 20:52:35 2005 From: msestudiente2 at YAHOO.COM (Alex Smith) Date: Sat, 11 Jun 2005 20:52:35 -0700 Subject: Preventing multiple labels on road segments? Message-ID: Hello everyone! I'm that there is a way to quickly and easily prevent multiple road labels from being drawn, as shown in the attached .png file? Because the intersection of roads results in individual features between each intersection, labels can be drawn on each individual feature, resulting in, for example, 6 lables for a road for each road segment of a road that is six blocks long. Is there a way to 'weed out' these multiple labels? Thanks! AS __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 111853967428201.png Type: image/x-png Size: 57293 bytes Desc: 3394179499-111853967428201.png URL: From woodbri at SWOODBRIDGE.COM Sat Jun 11 20:56:56 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 11 Jun 2005 23:56:56 -0400 Subject: Highway Shield labels? In-Reply-To: <20050612033514.29786.qmail@web61020.mail.yahoo.com> Message-ID: Alex Smith wrote: > Hola everyone, > > I'm having trouble getting highway shield labels to work for roads. I'm > hoping to render a highway number item/field on top of my custom highway > shields. > > Thanks! Here is an annotation layer that I use in some of my mapfiles. I use a separate layer to draw the roads. -Steve W. LAYER NAME "US_Highway_Shields_Z1" STATUS DEFAULT TYPE ANNOTATION TILEINDEX "majrdtile" CLASSITEM "CLASS" MAXSCALE 1000100.0 MINSCALE 150100.0 LABELITEM "RTE_NUM" CLASS EXPRESSION /^U/ SYMBOL "us_highway_shield" COLOR 0 0 0 LABEL SIZE TINY POSITION CC OFFSET 1 0 MINDISTANCE 200 COLOR 0 0 0 PARTIALS FALSE END END END From woodbri at SWOODBRIDGE.COM Sat Jun 11 21:00:47 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 12 Jun 2005 00:00:47 -0400 Subject: Preventing multiple labels on road segments? In-Reply-To: <20050612035236.78207.qmail@web61014.mail.yahoo.com> Message-ID: Alex Smith wrote: > Hello everyone! > > I'm that there is a way to quickly and easily prevent multiple road > labels from being drawn, as shown in the attached .png file? Because > the intersection of roads results in individual features between each > intersection, labels can be drawn on each individual feature, resulting > in, for example, 6 lables for a road for each road segment of a road > that is six blocks long. Is there a way to 'weed out' these multiple > labels? > > Thanks! Yes, read the mapfile reference. MINDISTANCE 200 force the labels to be at least 200 pixels apart. Adjust the value for the size of your map image. -Steve W. From bino at INDOAKSES-ONLINE.COM Sun Jun 12 20:23:10 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Mon, 13 Jun 2005 10:23:10 +0700 Subject: MS4W, OGR , MS-Access : Field Type Message-ID: Dear All My Installation is : MS version : MS4W Data Type : Ms-Access mdb 3 Field : x , y and lbl are text type with 10 , 9 , 15 characther width respectively Here is my ovf ----Start ovf---- ODBC:ms4w/ms4w at ms4w loktbl wkbPoint WGS84 ----stop ovf----- And here is snip of my layer deffinition ----Start layer---- LAYER #Dari MDB NAME lay-6 TYPE POINT CONNECTIONTYPE OGR CONNECTION "lokasi.ovf" DATA "lokasi" STATUS DEFAULT LABELITEM loktbl.lbl CLASS SYMBOL 3 SIZE 6 COLOR 255 255 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 255 255 END END END ----Stop layer----- It produces error : "msDrawMap(): Image handling error. Failed to draw layer named 'lay-6'." I Tried to comment-out the "LABELITEM", the map showed up but didn't show the point (only one in the mdb) that I want tobe showed. A test using ogrinfo.exe agains the ovf file, showed as follow : -----Start ogr test---- D:\ms4w\tools\gdal-ogr-utils>ogrinfo d:\ms4w\shp\lokasi.ovf lokasi ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `d:\ms4w\shp\lokasi.ovf' using driver `VRT' successful. Layer name: lokasi Geometry: Point Feature Count: 1 Extent: (110.370970, -7.786270) - (110.370970, -7.786270) Layer SRS WKT: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG","4326"]] x: String (10.0) y: String (9.0) lbl: String (15.0) OGRFeature(lokasi):0 x (String) = +110.37097 y (String) = -7.78627 lbl (String) = kita POINT (110.37097000 -7.78627000) ------stop ogr test---- Kindly please give me any fixing-clue for this problem Regards -bino- " From gfmartinez at HUMBOLDT.ORG.CO Sun Jun 12 21:03:08 2005 From: gfmartinez at HUMBOLDT.ORG.CO (Guillermo Mart=?ISO-8859-1?Q?=EDnez?=) Date: Sun, 12 Jun 2005 21:03:08 -0700 Subject: problem with php_mapscript.so from mapserver-php-4.6.0beta3-mh1.i686.rpm Message-ID: Hi, I installed mapping hack's mapscript rpm. Everything in the installation looked fine, but I cannot run mapscript. When I checked error_log from apache i got this: PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: undefined symbol: php_gd_gdImageCopy in Unknown on line 0 However, I have installed in my system the php_gd libray: php-gd-4.3.11-2.5. Any idea about my problem? ...I'm not sure. Can I run php as module with this new version of mapscript? which version php do i need? Thank you, Guillermo Martinez. Este mensaje ha sido explorado por McAfee Webshield Appliance E500 y es seguro. Instituto Alexander von Humboldt From fwarmerdam at GMAIL.COM Sun Jun 12 21:53:10 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 13 Jun 2005 00:53:10 -0400 Subject: MS4W, OGR , MS-Access : Field Type In-Reply-To: <007501c56fc7$39f1cc50$0300a8c0@indoaksesbno> Message-ID: On 6/12/05, bino_oetomo wrote: > LABELITEM loktbl.lbl ... > OGRFeature(lokasi):0 > x (String) = +110.37097 > y (String) = -7.78627 > lbl (String) = kita > POINT (110.37097000 -7.78627000) Bino, I don't know how significant this is to your problem, but if ogrinfo reports that the field is called "lbl" then I think that is the name you should be using for LABELITEM, instead of "loktbl.lbl". Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From BEN at SYNCERA-ITSOLUTIONS.NL Sun Jun 12 22:09:54 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 13 Jun 2005 07:09:54 +0200 Subject: WFS-SERVER performance on oraclespatial layers Message-ID: Ludovic, see also the following bug report for more info: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1292 I would recommend adding yourself to the cc. A short background information: since Mapserver was originally designed for shapefiles, the query mechanism is designed in a way that it fetches features based on id, so that's why for every feature a query is performed. It is really not efficient for database sources. There have been quite a few discussions about this in the past especially on the dev mailing list. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> ludovic gnemmi 06/10/05 18:30 PM >>> Hi, Performance is very bad on my oraclespatial layer with wfs getfeature request...i see (with --enable-debug mode) on my apache error log that my initial query produce new queries on each shape object one by one. is it correct? I maybe miss something... Here is my query: DATA "GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') USING UNIQUE ID" and my log: [Fri Jun 10 08:36:42 2005].831748 msOracleSpatialLayerOpen called with: GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') using unique Id [Fri Jun 10 08:36:43 2005].72897 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Fri Jun 10 08:36:43 2005].73019 msConnPoolRegister(my connection string,0x8195588) [Fri Jun 10 08:36:43 2005].115515 msOracleSpatialLayerFreeItemInfo was called. [Fri Jun 10 08:36:43 2005].115712 msOracleSpatialLayerInitItemInfo was called. [Fri Jun 10 08:36:43 2005].115763 msOracleSpatialLayerWhichShapes was called. [Fri Jun 10 08:36:43 2005].115996 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(868470,83215,965015,165840) ),'querytype=window') = 'TRUE' [Fri Jun 10 08:36:58 2005].620540 msOracleSpatialLayerFreeItemInfo was called. [Fri Jun 10 08:36:58 2005].620689 msOracleSpatialLayerClose was called. Layer connection: my connection string [Fri Jun 10 08:36:58 2005].620709 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Fri Jun 10 08:36:58 2005].620910 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Fri Jun 10 08:36:58 2005].620931 msConnPoolRelease(layer,my connection string,0x8195588) [Fri Jun 10 08:36:58 2005].620959 msConnPoolClose(my connection string,0x8195588) [Fri Jun 10 08:36:58 2005].630369 msOracleSpatialLayerOpen called with: GEOM FROM (SELECT * FROM TABLE WHERE FIELD='FILTER1') using unique TABLE_id [Fri Jun 10 08:36:58 2005].673861 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Fri Jun 10 08:36:58 2005].673966 msConnPoolRegister(my_layer,my connection string,0x8192f30) [Fri Jun 10 08:36:58 2005].679970 msOracleSpatialLayerFreeItemInfo was called. [Fri Jun 10 08:36:58 2005].680102 msOracleSpatialLayerGetItems was called. [Fri Jun 10 08:36:58 2005].685755 msOracleSpatialLayerInitItemInfo was called. [Fri Jun 10 08:36:58 2005].685933 msOracleSpatialLayerGetShape was called. Using the record = 82314. [Fri Jun 10 08:36:58 2005].685984 msOracleSpatialLayerGetShape. Sql: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE Id = 82314 [Fri Jun 10 08:36:58 2005].707379 msOracleSpatialLayerGetShape was called. Using the record = 82315. [Fri Jun 10 08:36:58 2005].707544 msOracleSpatialLayerGetShape. Sql: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE Id = 82315 [Fri Jun 10 08:36:58 2005].712321 msOracleSpatialLayerGetShape was called. Using the record = 82316. [Fri Jun 10 08:36:58 2005].712481 msOracleSpatialLayerGetShape. Sql: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE Id = 82316 [Fri Jun 10 08:36:58 2005].716865 msOracleSpatialLayerGetShape was called. Using the record = 82317. [Fri Jun 10 08:36:58 2005].717172 msOracleSpatialLayerGetShape. Sql: SELECT ALL_MY_FIELDS, GEOM FROM (SELECT * FROM TABLE WHERE FIELD1='FILTER1') WHERE Id = 82317 [Fri Jun 10 08:36:58 2005].722447 msOracleSpatialLayerGetShape was called. Using the record = 82318. .... Thanks for your help Ludovic ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com From pscott at UWC.AC.ZA Sun Jun 12 23:27:05 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Mon, 13 Jun 2005 07:27:05 +0100 Subject: problem with php_mapscript.so from mapserver-php-4.6.0beta3-mh1.i686.rpm In-Reply-To: <63934.68.231.153.104.1118635388.squirrel@68.231.153.104> Message-ID: On Sun, 2005-06-12 at 21:03 -0700, Guillermo Mart=?ISO-8859-1?Q?=EDnez?= > PHP Warning: Unknown(): Unable to load dynamic library > '/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: > undefined symbol: php_gd_gdImageCopy in Unknown on line 0 > > However, I have installed in my system the php_gd libray: > php-gd-4.3.11-2.5. > Guillermo, In the script calling the mapscript binary, you need t dynamically load the mapscript api. try this at the top of your script: Also check that the mapscript binary is in your path, /usr/lib/php4/ --Paul From temiz at DEPREM.GOV.TR Sun Jun 12 23:58:19 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 13 Jun 2005 09:58:19 +0300 Subject: problem in zooming. Message-ID: hello I am trying to zoom a map to a specified extent. I have used these code fragment: ~~~~~ $minx=467035.624; // they are the coordinates I want to show the map $miny=4559092.479; $maxx=472109.624; $maxy=4564954.479; $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $zoom_rect = ms_newRectObj(); $zoom_rect->setextent($minx,$miny,$maxx,$maxy); $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); $extent_to_html = $minx." ".$miny." ".$maxx." ".$maxy; ~~~~~~~~~~~~~ But it displays the map in unzoomed extent (full extent) How can I show the map in the extent I specified (minx,miny,maxx,maxy) ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From holl at GDF-HANNOVER.DE Mon Jun 13 06:09:07 2005 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Mon, 13 Jun 2005 15:09:07 +0200 Subject: [ANNOUNCE]: GDF Hannover GRASS GIS Tutorial v.1.1 English now available. Message-ID: Dear FOSS GIS users, [sorry for crossposting] GDF Hannover is proud to present the English translation of the well-known German GRASS GIS Tutorial version 1.1. The book covers an introduction to the Free Geographic Information System GRASS 6.0. It extends the available literature about GRASS 6 by aspects of installation and practical usage and offers up to date material for the use of the latest GRASS developments at the time of writing. The document focuses on the new vector functionalities, network analysis, database management systems (DBMS) and the new graphical user interface (GUI). A section about the interaction with Quantum GIS as graphical user interface is also included. It is released under GNU/FDL and is available from: http://www.gdf-hannover.de/literature Best regards GDF Hannover -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office (TCH) - Vahrenwalder Stra?e 7 - D-30165 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511-9357560 - Fax: ++49-(0)511-9357100 From jim at CCSSERVICESOFVA.COM Mon Jun 13 06:22:01 2005 From: jim at CCSSERVICESOFVA.COM (Jim Bilsborough) Date: Mon, 13 Jun 2005 08:22:01 -0500 Subject: Mapped Network Drives - Win Xp Message-ID: Thx Ed Using \\server\share\filename solved the problem, and I guess using UNCs is a more elegant method anyway! Jim From Dejan.Gambin at PULA.HR Mon Jun 13 06:47:58 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 13 Jun 2005 15:47:58 +0200 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance Message-ID: Hi, I could only say that I begin to understand the things that Frank has told us. But I would like if someone can clearify few things: 1. Frank talks about different types of tilings and overviews: - is the tiling type related to overview type and how? To be more concrete, if I have a set of tiff files (and i am using tileindex shapefile to associate thme into one layer) can I use internal overviews? Which are the possible combinations? What are the advantages and disadvantages? Is it better to use internal overviews/tiles or what? 2. Ed McNierney gave a good explanation of getting "the best possible performance by constraining the map view scale to a list of specific values" "and then creating overviews to exactly match those output scales" so that no resampling occurs. Can someone give me an example of creating an overview that exactly match a predefined output scale? Any example would be OK. If it is easier to someone I can give my example. my tiffs are something like: ... Subfile Type: (0 = 0x0) Image Width: 4500 Image Length: 6000 Resolution: 72, 72 pixels/inch Bits/Sample: 8 Compression Scheme: None Photometric Interpretation: RGB color Date & Time: "2004:12:14 17:10:55" Software: "Adobe Photoshop 7.0" Samples/Pixel: 3 Rows/Strip: 6000 ... and suppose I want to build an overview tiff file that exactly matches the 1:10000 scale. You can use any additional input data if needed for example 3. This is not so much related to overviews/tiles but I would like to know if there is any difference in using tiffs with their associating world files or real Geotiffs that have the geocoding informations embedded within the file? Is there any benefits to convert to "real" geotiff files using for example geotifcp utility? thanks very much dg -----Original Message----- From: Dan Greve [mailto:grevedan at hotmail.com] Sent: Friday, June 10, 2005 10:50 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performa Unfortunately documentation is usually one of the last steps in the development process. I'm one of the worst at even internally documenting my code, much less providing additional user information. God it's good having Frank back from vacation. I've learned alot from him, and he always seems to find time to respond to questions while saving the GIS world. Hear Hear!! Seriously though, I'm pretty sure I understand most of what you said Frank, and will start building additional layers and looking into Group/Max Min scale. If I get a chance (HA!) I'll write up a little tutorial of how I improve performance with large tiled rastersets. -- dan greve -- software engineer, Northrop Grumman -- palm bay, FL >From: Gambin Dejan >Reply-To: Gambin Dejan >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / >Large >dataset performance >Date: Fri, 10 Jun 2005 08:33:20 +0200 > >Frank, > >I have to say it is great to get such a detalied explanation of >overviews/tiles/performance problems. I would personally very like to >see some kind of HOWTO that would explain this in more details end >technical/theoretical background. For example, how to create overviews >that exactly match desired output resolution so no resampling occurs >(with fixed set of zoom scales of course) and similar performance >things. > >I would be happy enough if someone can point me to literature that >explains all this stuff. > >regards > >dejan > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On Behalf Of Frank Warmerdam >Sent: Thursday, June 09, 2005 9:53 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / >Large dataset performance > > >On 6/4/05, Dan Greve wrote: > > To everyone, > > > > Are GeoTiff overviews taken advantage of by Mapserver? What's the > > best way to handle large datasets (300 GB, 260,000 files in my case) > > when you want the user to be able to view the whole dataset. > > >Dan, > >I think that Mark had the right idea with creating new overview layers >to kick in at various scales. To show an overview of your whole region >it would be disaster to have touch all 260,000 of your files. > >To answer one specific question, MapServer will take advantage of >overviews built into GeoTIFF files (assuming GDAL is in use). > > > I have a lot of data, probably about 300GB spread among 260,000 > > tiles. > > > Let's just say the region is... Texas. I want the user to be able > > to see the data set at ANY zoom factor. He'd start out looking at > > the entire state of texas, and be able to zoom progressively into a > > city block, and back out again. If the data format could handle 300 > > GB in a single file (I'm using GeoTIFF), theoretically the > > performance would > > > be better than if I created a TILEINDEX (shapefile) of the 260,000 > > tiles. I've seen this in smaller datasets when requesting the > > entire scene, even just a 13000x13000 dataset with just over 2500 > > tiles. > >If GeoTIFF supported very large files (there are plans for "BigTIFF >support" one day) then I might encourage you to just create one huge >internally tiled GeoTIFF file with lots and lots of overview levels. >You could use a >format like Erdas Imagine that does support very large files and build >one huge mosaic image, with lots of overviews. It *ought* to work quite >efficiently though there might be some efficiency hits with such a large >dataset. For instance, just processing the block pointers array might >prove quite a bit of work. > >What Mark is suggesting is to: > > o Create a tile index for all your files. You will likely want a >spatial > index built on this tileindex shapefile. > > o Create a layer in your mapfile using this tileindex, perhaps named > "mosaic_fullres". > > o I would suggest building internal overviews on all the individual > geotiff files as well. > > o View the resulting layer in MapServer, starting near full resolution. > Zoom out till performance degrades unacceptably. This will be a > new resolution at which you you need to build a new "overview >layer". > This isn't an overview within the files in question, it is a whole >new > layer in the map. There are a variety of ways to build it. I >would likely > prepare a script to generate it with MapServer itself, by issuing >a series > of scripted render requests at your new chosen overview >resolution. > > o If you produce this new layer as a set of tile files, you will >also need > a tileindex for it. > > o In the mapfile you will need to add this new set of tiles as a new >layer. > You will want to use the MINSCALE and MAXSCALE options on this > layer and the full resolution layer to ensure that renders start >to operate > from this layer instead of the full resolution data at a suitable >resolution. > > There is some mechanism (GROUP? Using the same layer name?) to > ensure that this layer and the full res layer will be treated as >a single > layer from a user-visible point of view. I don't know this >details of this > aspect. > > o you can repeat the above overview layer steps to build additional > overview layers if needed till your full scene gives acceptable >performance. > >OK, looking over my garbled explanation, I'm not sure I have helped at >all. This fairly common situations screams out for some sort of utility >to help build the overview map layers. Or at least we should have a >more detailed HOWTO for this process than I am in a position to prepare >just now. > > > > > When you say > > > > "I create a new tile grid shapefile using that map extent as the > > size of one tile. I tile the entire map area (in my case the world). > > " > > > > Do you mean you just duplicate the entire dataset with larger tiles > > when a TILEINDEX search would take longer? > >He means to duplicate the whole dataset, but at the much reduced >resolution at which the render performance started to degrade. If your >original files were fairly large, and had internal overviews built, I >believe your first overview map layer would likely be at something like >1/128'th of the resolution of the original data. So the overview >dataset would then be 1/16000th the size of the original data or so. > > > When you say > > > > "I create a new aggregate image layer using calls to the map server > > to > > > generate an image for each new tile." > > > > I have no idea what you meant by "aggregate image layer" > >He means a whole new map layer which is at a reduced resolution. It is >an aggregate of a whole bunch of calls to mapserver to render tiles of >the total region. (hence the need for a new tile index). > > > Are you downsampling the image at all as you increase the tile > > sizes? > > > The raster howto on the UMN site has a snippet about Frank W. > > wanting to implement using GeoTIFF overviews in the mapserver. Does > > mapserver > > > currently take advantage of this? Could you elaborate on your > > pyramid scheme? > >Yes, he means that it would be at a much reduced resolution. The tile >sizes in meters is much bigger, but the actual tile sizes in terms of >pixels need not necessarily be much larger. > >Note that there are different types of tiling and overviews coming into >play. o Macro tiling: Each tile is a separate TIFF file, and a >tileindex shapefile > is used to associate them to treat them as one layer in the .map >file. > o Internal tiling: A given TIFF file can be internally organized into >tiles > as opposed to strips (scanlines). This gives > > o "map level overviews": using mutiple layers in a .map file with > MINSCALE/MAXSCALE to select which layer to render from. > o "internal overviews": individual TIFF files can have overviews built > in and GDAL will automatically take advantage of them if present. > >Best regards, >-- >---------------------------------------+------------------------------- >---------------------------------------+- >---------------------------------------+------ >I set the clouds in motion - turn up | Frank Warmerdam, >warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent From lfilak at MEDINACO.ORG Mon Jun 13 06:51:50 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 13 Jun 2005 09:51:50 -0400 Subject: How to use processlegendtemplate function ? Message-ID: The following message was sent by Carlos Eduardo Sibaja Salazar on Fri, 10 Jun 2005 10:51:55 -0500. > Hi list. > I need to generate a html legend in my application. I'm using php- > mapscript. I have been reading about it and is supposed that I must use > the processlegendtemplate function, but I haven't found an example of how > to use it. I don't know what parameters i have to send in the function. > Please somebody tell me which are the steps that i have to follow to make > a html legend. > Thanks for your help.!! Carlos, Here is a perl example. This is only a simple example I used in order to test a new swig typemap. From fwarmerdam at GMAIL.COM Mon Jun 13 06:55:30 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 13 Jun 2005 09:55:30 -0400 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance In-Reply-To: Message-ID: On 6/13/05, Gambin Dejan wrote: > 1. Frank talks about different types of tilings and overviews: > - is the tiling type related to overview type and how? To be > more concrete, if I have a set of tiff files (and i am using tileindex > shapefile to associate thme into one layer) can I use internal > overviews? Which are the possible combinations? What are the advantages > and disadvantages? Is it better to use internal overviews/tiles or what? Gambin, My suggestion is to use internal overviews on your base files, but still to provide *some* additional overview map layers. The built-in overviews work fine for extracting overview images efficiently, but if the user zooms out a long ways such that they are looking at hundreds of files, the very action of opening and parsing the headers of the many files will end up slowing things down alot. So the "map overview layers" are essentially intended to prevent MapServer from having to touch too many files for any one render request. > 3. This is not so much related to overviews/tiles but I would like to > know if there is any difference in using tiffs with their associating > world files or real Geotiffs that have the geocoding informations > embedded within the file? Is there any benefits to convert to "real" > geotiff files using for example geotifcp utility? From philippe.gondek at GMAIL.COM Mon Jun 13 07:26:06 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Mon, 13 Jun 2005 16:26:06 +0200 Subject: queryByPoint Message-ID: Hi List, I want to use queryByPoint, but when I try I have this result : >>>>>>>>>>>Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in /var/www/localhost/htdocs/sigma/sigma.php on line 64 My second question is when I get the coordonates of my point where I click it's a number of pixel... How to have my real coordonates??? Thank you all... Philippe GONDEK From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jun 13 07:53:34 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 13 Jun 2005 16:53:34 +0200 Subject: queryByPoint Message-ID: Hi, Do you have a TEMPLATE set on your LAYER, and do you have a TOLERANCE defined? Also look at TOLERANCEUNITS. Second question, there is code for this in Chameleon, pasted below. /** * convert a pixel position to a georef position * * @param nPixPos integer the pixel position * @param dfPixMin float the minimum pixel position * @param dfPixMax float the maximum pixel position * @param dfGeoMin float the minimum georeferenced position * @param dfGeoMax float the maximum georeferenced position * @param nInversePix boolean, flag to invert Y coordinates if UL > LR * @return double geocoded position. */ function Pix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix = false) { $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Philippe Gondek 06/13/05 16:26 PM >>> Hi List, I want to use queryByPoint, but when I try I have this result : >>>>>>>>>>>Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in /var/www/localhost/htdocs/sigma/sigma.php on line 64 My second question is when I get the coordonates of my point where I click it's a number of pixel... How to have my real coordonates??? Thank you all... Philippe GONDEK From sylvain.perrinel at AGRICULTURE.GOUV.FR Mon Jun 13 08:02:36 2005 From: sylvain.perrinel at AGRICULTURE.GOUV.FR (sylvain.perrinel) Date: Mon, 13 Jun 2005 17:02:36 +0200 Subject: Mapserver and the fly conversion of 24bit RGB raster images to 8bit colormapped format Message-ID: Hello, I'm trying to make a map with an ecw layer. But, Mapserver does not want to convert my 24bit RGB ecw image to 8bit like documentation says : http://mapserver.gis.umn.edu/doc35/raster-howto.html#rgb_color_cube . Gdal support ecw format and the commande "gdalinfo" on the ecw layer stops on the color table and doesn't say anything. I think it tries to recover the table color ! I verify that my ecw file has three bands, with no classification information provided in the mapfile and the first band in the file does not have a colormap. I can't preprocess the rasters because I have 8Tb of images. It would be too long... So is this a bug or a misconfiguration of my mapserver? Thanks Notes : MapServer version 4.4.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Mandrake 10.1 Mapserver 4.4.2 GDAL 1.2.6 -- Sylvain Perrinel Minist?re de l'Agriculture et de la P?che SG/SM/SDSI/CERIT D?partement d'Information G?ographique (DIG) Toulouse France From fwarmerdam at GMAIL.COM Mon Jun 13 08:48:13 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 13 Jun 2005 11:48:13 -0400 Subject: Mapserver and the fly conversion of 24bit RGB raster images to 8bit colormapped format In-Reply-To: <42ADA00C.9020702@agriculture.gouv.fr> Message-ID: On 6/13/05, sylvain.perrinel wrote: > Hello, > I'm trying to make a map with an ecw layer. But, Mapserver does not want > to convert my 24bit RGB ecw image to 8bit like documentation says : > http://mapserver.gis.umn.edu/doc35/raster-howto.html#rgb_color_cube . > > Gdal support ecw format and the commande "gdalinfo" on the ecw layer > stops on the color table and doesn't say anything. I think it tries to > recover the table color ! Sylvain, When you say "stops on the color table", do you mean that it starts to report a color table? Then hangs? I am surprised if there is ever a report of a color table on ECW bands by gdalinfo. However, the hang behavior is fairly common with some versions of the ECW library on Linux and I think relates to some sort of race condition in the multi-threaded stuff in the ECW library. Upgrading to the latest ECW library may help in this regard. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From carloseduardo at COSTARRICENSE.CR Mon Jun 13 08:56:44 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Mon, 13 Jun 2005 10:56:44 -0500 Subject: To Lowell Filak, about processLegendTemplate function Message-ID: Hi Lowell, thanks for your help. The problem is that I'm working in php and your perl code is different. I will try to take some ideas of your code but I really need an example in php-mapscript. If somebody in the list know how to use the processlegendtemplate function to generate a html legend, please tell me. Thanks From jessica.deegan at STATE.MN.US Mon Jun 13 09:33:10 2005 From: jessica.deegan at STATE.MN.US (Jessica Deegan) Date: Mon, 13 Jun 2005 11:33:10 -0500 Subject: displaying xy coordinates from database Message-ID: Greetings list, A newbie to PHP/Mapscript, I am trying to display XY coordinates from a selected set of points (the XY to be displayed are a different location from selected point). As a test, I was successful in adding a dynamic point where a user clicks on the map using the sample found at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint , but I'm at a loss to where to begin this process from a database perspective. My data are stored in a PostgreSQL database. Any suggestions or starting points would be highly appreciated. thanks, Jessica From carloseduardo at COSTARRICENSE.CR Mon Jun 13 09:47:53 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Mon, 13 Jun 2005 11:47:53 -0500 Subject: Please help me!, how to use processlegendtemplate in php-mapscript ? Message-ID: Hi list. I need to generate a html legend in my application. I'm using php- mapscript. I have been reading about it and is supposed that I must use the processlegendtemplate function, but I haven't found an example of how to use it. I don't know what parameters i have to send in the function. Please somebody tell me which are the steps that i have to follow to make a html legend. Thanks for your help.!! From ierickson at ANALYGIS.COM Mon Jun 13 09:48:07 2005 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Mon, 13 Jun 2005 09:48:07 -0700 Subject: ETAK Streets (.MBS) Files Message-ID: This is a little off topic, but I was hoping someone out there was familiar with the ETAK .MBS file format, and more specifically, how to read (and write) to this file format. Any help would be most appreciated! - Ian -- Ian Erickson AnalyGIS, LLC Gold Canyon, AZ 85218 http:// www.analygis.com From geoffrey.rowland at NOAA.GOV Mon Jun 13 10:05:35 2005 From: geoffrey.rowland at NOAA.GOV (Geoff Rowland) Date: Mon, 13 Jun 2005 13:05:35 -0400 Subject: displaying xy coordinates from database In-Reply-To: Message-ID: Here is the code I use (using phpmapscript with MySQL)....this example assumes that the coords stored in the database are pixels. There is probably a better way to do it, but this works. //Convert pixels to map units function pix2geo($click_x, $click_y) { global $map; $e= &$map->extent; //for saving writing $x_pct = ($click_x / $map->width); $y_pct = 1 - ($click_y / $map->height); $x_map = $e->minx + ( ($e->maxx - $e->minx) * $x_pct); $y_map = $e->miny + ( ($e->maxy - $e->miny) * $y_pct); return array($x_map, $y_map); } $sql = "SELECT x,y,city FROM my_table'"; $result = mysql_query($sql, $linkID); //Draw the map and get the point layer $img = $map->draw(); //MYPOINTS is the name of the point layer in the .MAP file $layer = $map->getLayerByName('MYPOINTS'); for ($j=0; $j < mysql_num_rows($result); $j++) { $row = mysql_fetch_assoc($result); // convert pixels to geocoded location $map_pt = pix2geo($row[x],$row[y],$map->extent); //Create the point $pt = "pt" . $j; //create dynamic variables based on num of mysql rows returned ${$pt} = ms_newPointObj(); ${$pt}->setXY($map_pt[0],$map_pt[1]); ${$pt}->draw($map, $layer, $img, 0 ,$row[city]); } //draw the labels $map->drawLabelCache($img); //save image to disk - can specify name later $url = $img->saveWebImage(); Cheers, Geoff Jessica Deegan wrote: >Greetings list, > >A newbie to PHP/Mapscript, I am trying to display XY coordinates from a >selected set of points (the XY to be displayed are a different location from >selected point). > >As a test, I was successful in adding a dynamic point where a user clicks on >the map using the sample found at >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint , but I'm >at a loss to where to begin this process from a database perspective. My >data are stored in a PostgreSQL database. > >Any suggestions or starting points would be highly appreciated. >thanks, >Jessica > > -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.ogp.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2344 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From civervic at GMAIL.COM Mon Jun 13 11:42:06 2005 From: civervic at GMAIL.COM (Victor Bahamondes Benavente) Date: Mon, 13 Jun 2005 14:42:06 -0400 Subject: How search text. Message-ID: hi, my map have 3 layers, and one of the layers is a street layer, and I whant to find a especific street in my map...how can i do that? thanks. From candalt at ONLINE.NO Mon Jun 13 12:00:11 2005 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Mon, 13 Jun 2005 21:00:11 +0200 Subject: FLASH Output Message-ID: Have a FEDORA C3 box with Mapserver 4.4.2 installed. The installation works fine and it outputs images...no problem. We are using it in some applications. But when i try to make Mapserver output Shockwave Flash movie nothing happens... I run php 4.3.9 and php mapscript. In the HTTPD log i get this message: [Fri Jun 10 08:59:12 2005] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: php What could the problem be? Mapserver compiles fine with the ming parameter, and in php it outputs: MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Mapserver is compiled with: ./configure --without-tiff --with-eppl --with-jpeg=/usr --with-threads --with-proj=/usr --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-ming --with-php=/usr/share/php439 --with-gd=/usr/local --with-freetype --with-wmsclient --with-wfs --with-wfsclient --with-postgis --with-curl-config=/usr/bin/curl-config --enable-debug --disable-ignore-missing-data --enable-runpath and returns: checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... yes configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). It says that MING/FLASH is supported... We run ming-0.2a Any good ideas? Best regards sture From TODD.M.BRENNINGMEYER at SAIC.COM Mon Jun 13 12:28:37 2005 From: TODD.M.BRENNINGMEYER at SAIC.COM (Brenningmeyer, Todd M.) Date: Mon, 13 Jun 2005 12:28:37 -0700 Subject: no template provided error Message-ID: We're in the process of doing a long distance install of mapserver on redhat enterprise and have run into a snag. The site is running mapserver 4.6rc1 with php-mapscript, with the database running on postgresql with postgis. The site runs fine on windows and an earlier version of the site ran on Redhat 9. The install is being done to move the site to a new server. The error we're receiving is "mapserv(): Web application error. No template provided." This is the first time I've seen this particular error and am wondering if anyone has dealt with or seen this error before. Any help is appreciated. Thanks, Todd -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Mon Jun 13 13:04:48 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 13 Jun 2005 22:04:48 +0200 Subject: FLASH Output In-Reply-To: <33492289.1118689211236.JavaMail.adm-moff@moffice10.nsc.no> Message-ID: Have you put the php_ming.so in the php extensions directory ? Does the phpinfo page ( with dl("php_ming.so" ) before the phpinfo(); statement ) tells that ming is present ? Have you put the - dl("php_ming.so"); - statement in your php_mapscript file ? Have you tryed a few basic examples from the ming site ? Do they output what is expected ? Blaise lundi 13 Juin 2005 21:00, Sture Dings?yr : > Have a FEDORA C3 box with Mapserver 4.4.2 installed. The installation works > fine and it outputs images...no problem. We are using it in some > applications. > > But when i try to make Mapserver output Shockwave Flash movie nothing > happens... > > I run php 4.3.9 and php mapscript. > > In the HTTPD log i get this message: [Fri Jun 10 08:59:12 2005] [error] > [client xxx.xxx.xxx.xxx] Premature end of script headers: php > > What could the problem be? Mapserver compiles fine with the ming parameter, > and in php it outputs: MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE DEBUG=MSDEBUG > > Mapserver is compiled with: > > ./configure --without-tiff --with-eppl --with-jpeg=/usr --with-threads > --with-proj=/usr --with-gdal=/usr/local/bin/gdal-config > --with-ogr=/usr/local/bin/gdal-config --with-ming > --with-php=/usr/share/php439 --with-gd=/usr/local --with-freetype > --with-wmsclient --with-wfs --with-wfsclient --with-postgis > --with-curl-config=/usr/bin/curl-config --enable-debug > --disable-ignore-missing-data --enable-runpath > > and returns: > > checking if MyGIS support requested... no > checking if OracleSpatial support requested... no > checking if MING/Flash support requested... yes > configure: checking whether we should include WMS Server support... > OGC WMS compatibility enabled (-DUSE_WMS_SVR). > > > It says that MING/FLASH is supported... > > We run ming-0.2a > > > > Any good ideas? > > > Best regards sture From w.blanken at GEON.NL Mon Jun 13 13:09:44 2005 From: w.blanken at GEON.NL (Wim Blanken) Date: Mon, 13 Jun 2005 22:09:44 +0200 Subject: no template provided error Message-ID: Hello Todd, Could this have anything to do with the magic_quotes directive in the php.ini file? I would search inside the differences between the php.ini file on the former server and on the new server. Regards, Wim Blanken The Netherlands ----- Original Message ----- From: Brenningmeyer, Todd M. To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, June 13, 2005 9:28 PM Subject: [UMN_MAPSERVER-USERS] no template provided error We're in the process of doing a long distance install of mapserver on redhat enterprise and have run into a snag. The site is running mapserver 4.6rc1 with php-mapscript, with the database running on postgresql with postgis. The site runs fine on windows and an earlier version of the site ran on Redhat 9. The install is being done to move the site to a new server. The error we're receiving is "mapserv(): Web application error. No template provided." This is the first time I've seen this particular error and am wondering if anyone has dealt with or seen this error before. Any help is appreciated. Thanks, Todd -------------- next part -------------- An HTML attachment was scrubbed... URL: From TODD.M.BRENNINGMEYER at SAIC.COM Mon Jun 13 14:55:26 2005 From: TODD.M.BRENNINGMEYER at SAIC.COM (Brenningmeyer, Todd M.) Date: Mon, 13 Jun 2005 14:55:26 -0700 Subject: no template provided error Message-ID: Hi Wim, We were able to track down the issue after some searching We had a bug in the code we were using to check for platform type. The site is up and running now. Thanks, Todd _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Wim Blanken Sent: Monday, June 13, 2005 3:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] no template provided error Hello Todd, Could this have anything to do with the magic_quotes directive in the php.ini file? I would search inside the differences between the php.ini file on the former server and on the new server. Regards, Wim Blanken The Netherlands ----- Original Message ----- From: Brenningmeyer, Todd M. To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, June 13, 2005 9:28 PM Subject: [UMN_MAPSERVER-USERS] no template provided error We're in the process of doing a long distance install of mapserver on redhat enterprise and have run into a snag. The site is running mapserver 4.6rc1 with php-mapscript, with the database running on postgresql with postgis. The site runs fine on windows and an earlier version of the site ran on Redhat 9. The install is being done to move the site to a new server. The error we're receiving is "mapserv(): Web application error. No template provided." This is the first time I've seen this particular error and am wondering if anyone has dealt with or seen this error before. Any help is appreciated. Thanks, Todd -------------- next part -------------- An HTML attachment was scrubbed... URL: From dejan.gambin at PULA.HR Mon Jun 13 14:22:11 2005 From: dejan.gambin at PULA.HR (Dejan Gambin) Date: Mon, 13 Jun 2005 23:22:11 +0200 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance In-Reply-To: <931f8ea90506130655153178cb@mail.gmail.com> Message-ID: Thanks Frank, Does it mean the following (as discussed in "Tileindex questions" thread): When viewing the map at a larger scale (zoomed in) the TILEINDEX is very helpfull because only a small number of tiles have to be retrieved. As the map scale becomes smaller (zoomed out), more files need to be touched so TILEINDEX becomes less useful. The performance degrades and when it becomes unacceptable the it is the time to create a new layer that is built on lower resolution image(s). This new layer can be built as one image or as a set of tile images but with the smaller number of tiles so that Mapserver needs to open a smaller number of files. If this is so then I suppose it is best to do a lot of performance tests (as Mark said) to see what is the best combination. Just tell me if this is this is right. regards, dg -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Monday, June 13, 2005 3:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performance On 6/13/05, Gambin Dejan wrote: > 1. Frank talks about different types of tilings and overviews: > - is the tiling type related to overview type and how? To be > more concrete, if I have a set of tiff files (and i am using tileindex > shapefile to associate thme into one layer) can I use internal > overviews? Which are the possible combinations? What are the > advantages and disadvantages? Is it better to use internal > overviews/tiles or what? Gambin, My suggestion is to use internal overviews on your base files, but still to provide *some* additional overview map layers. The built-in overviews work fine for extracting overview images efficiently, but if the user zooms out a long ways such that they are looking at hundreds of files, the very action of opening and parsing the headers of the many files will end up slowing things down alot. So the "map overview layers" are essentially intended to prevent MapServer from having to touch too many files for any one render request. > 3. This is not so much related to overviews/tiles but I would like to > know if there is any difference in using tiffs with their associating > world files or real Geotiffs that have the geocoding informations > embedded within the file? Is there any benefits to convert to "real" > geotiff files using for example geotifcp utility? From ed at TOPOZONE.COM Mon Jun 13 18:14:49 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 13 Jun 2005 21:14:49 -0400 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance Message-ID: Dejan - That's close, but not quite correct. It is true that as a larger number of files need to be read to display the map, the TILEINDEX becomes less useful. The TILEINDEX helps MapServer efficiently select which input images are needed - if you need all of them, there's no value in efficiently selecting the right ones. There is a separate, independent effect due to the resampling of the source data. It is more expensive to resample an image ("zoom out" on it) than to display it at "native" resolution. So to create the most efficient source data for any given map request, you would (ideally) read as few files as possible AND resample each file as little as possible. Before doing lots of performance tests, first understand your user/application model. You don't need to optimize performance for scenarios that won't happen. If, for example, your application allows the user to select from a short list of pre-specified view scales, you should make sure your data is stored at exactly those scales, with no resampling needed. If the map image size is constrained, then you can also organize your source data so a large fraction of map image requests can be served by only reading one image. If you have external constraints on your source data (other requirements than MapServer) then you might not be able to do all these things. But define and understand the usage model first, then test and optimize for that model's requirements. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, June 13, 2005 5:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performance Thanks Frank, Does it mean the following (as discussed in "Tileindex questions" thread): When viewing the map at a larger scale (zoomed in) the TILEINDEX is very helpfull because only a small number of tiles have to be retrieved. As the map scale becomes smaller (zoomed out), more files need to be touched so TILEINDEX becomes less useful. The performance degrades and when it becomes unacceptable the it is the time to create a new layer that is built on lower resolution image(s). This new layer can be built as one image or as a set of tile images but with the smaller number of tiles so that Mapserver needs to open a smaller number of files. If this is so then I suppose it is best to do a lot of performance tests (as Mark said) to see what is the best combination. Just tell me if this is this is right. regards, dg -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Monday, June 13, 2005 3:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performance On 6/13/05, Gambin Dejan wrote: > 1. Frank talks about different types of tilings and overviews: > - is the tiling type related to overview type and how? To be > more concrete, if I have a set of tiff files (and i am using tileindex > shapefile to associate thme into one layer) can I use internal > overviews? Which are the possible combinations? What are the > advantages and disadvantages? Is it better to use internal > overviews/tiles or what? Gambin, My suggestion is to use internal overviews on your base files, but still to provide *some* additional overview map layers. The built-in overviews work fine for extracting overview images efficiently, but if the user zooms out a long ways such that they are looking at hundreds of files, the very action of opening and parsing the headers of the many files will end up slowing things down alot. So the "map overview layers" are essentially intended to prevent MapServer from having to touch too many files for any one render request. > 3. This is not so much related to overviews/tiles but I would like to > know if there is any difference in using tiffs with their associating > world files or real Geotiffs that have the geocoding informations > embedded within the file? Is there any benefits to convert to "real" > geotiff files using for example geotifcp utility? From jacob.delfos at MAUNSELL.COM Mon Jun 13 19:00:03 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 14 Jun 2005 10:00:03 +0800 Subject: Adding shapefile dynamically with php_mapscript 4.4.2 Message-ID: Hi All, I am trying to dynamically add a shapefile which I created at runtime. The shapefile is created successfully (it opens up ok). But I am not having any luck adding it as a layer. This is the code I have: $queryResultlayer = ms_newLayerObj( $oMap ); $queryResultlayer->set( "name", "Queryresult" ); $queryResultlayer->set( "type", $shapetype ); $queryResultlayer->set( "status", MS_ON ); $queryResultlayer->set( "data", $szSessionDir."/queryResultShapefile"); $queryResultlayer->set( "template", "ttt" ); $queryResultlayer->set( "tolerance", 5 ); $queryResultlayer->set( "toleranceunits", MS_PIXELS); $queryResultlayer->setProjection($mapprojection); $queryclass = ms_newClassObj($queryResultlayer); $queryclass->set("name", "Query result"); $queryclass->set("status", MS_ON); $style = ms_newStyleObj($queryclass); $style->color->setRGB(255, 255, 0); $style->outlinecolor->setRGB(255, 0, 0); The layer is not showing (extents of map are correct). I am not getting any errors either. The temporary mapfile being created in the session directory does not contain my layer. Am I missing something? The $oMap object is a reference to the $oMap from the session (using Chameleon). I am loading the session from an Iframe, and creating the $oMap object like: $oMap =& $oMapSession->oMap; So if I add a layer to the map object, the layer should show if the map image is reloaded in the main frame, right? Any help would be much appreciated. Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Jun 13 20:03:23 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 13 Jun 2005 23:03:23 -0400 Subject: Adding shapefile dynamically with php_mapscript 4.4.2 In-Reply-To: <001201c57084$c841b2f0$5d2815ac@au.aecomnet.com> Message-ID: Jacob, The way I do this is to create a normal in the mapfile with the STATUS OFF and no DATA statement. Then in mapscript all I do it set the STATUS ON and assign the path to the DATA like you are doing below. It is MUCH easier to create a template layer in the mapfile and then manipulate it, rather than creating the whole thing from scratch. YMMV, -Steve W. Jacob Delfos wrote: > Hi All, > > I am trying to dynamically add a shapefile which I created at runtime. > The shapefile is created successfully (it opens up ok). But I am not > having any luck adding it as a layer. > > This is the code I have: > > $queryResultlayer = ms_newLayerObj( $oMap ); > $queryResultlayer->set( "name", "Queryresult" ); > $queryResultlayer->set( "type", $shapetype ); > $queryResultlayer->set( "status", MS_ON ); > $queryResultlayer->set( "data", > $szSessionDir."/queryResultShapefile"); > $queryResultlayer->set( "template", "ttt" ); > $queryResultlayer->set( "tolerance", 5 ); > $queryResultlayer->set( "toleranceunits", MS_PIXELS); > $queryResultlayer->setProjection($mapprojection); > $queryclass = ms_newClassObj($queryResultlayer); > $queryclass->set("name", "Query result"); > $queryclass->set("status", MS_ON); > $style = ms_newStyleObj($queryclass); > $style->color->setRGB(255, 255, 0); > $style->outlinecolor->setRGB(255, 0, 0); > > The layer is not showing (extents of map are correct). I am not getting > any errors either. The temporary mapfile being created in the session > directory does not contain my layer. Am I missing something? > > The $oMap object is a reference to the $oMap from the session (using > Chameleon). I am loading the session from an Iframe, and creating the > $oMap object like: > > $oMap =& $oMapSession->oMap; > > So if I add a layer to the map object, the layer should show if the map > image is reloaded in the main frame, right? > > Any help would be much appreciated. > > Regards, > > Jacob > > > JACOB DELFOS > SPATIAL INFORMATION ANALYST > Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > PO Box 81, Leederville, WA 6902 > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > jacob.delfos at maunsell.com From forreceiveonly at YAHOO.COM Mon Jun 13 20:01:54 2005 From: forreceiveonly at YAHOO.COM (Whacharachai Prawatlertudom) Date: Mon, 13 Jun 2005 20:01:54 -0700 Subject: Problem with phpmapscript on Windows Message-ID: Hi every body I have a strange problem with mapscript involved in following content 1. I use MS4W with MapServer 4.2 2. I config Mapscript to be call with PHPModule rather than CGI 3. I create a web application to manage map with zoom pan identified 4. when two clients use identify function at the exactly same time, Apache is down!!! 5. I check error log and found the problem come from 'ms_newmapobj' function 6. The above problem not happen when I use Linux with same Mapserver version and same applicationcode does any body ever meet this problem or any comment please tell me, thank a lot. Billy Gaton __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From fwarmerdam at GMAIL.COM Mon Jun 13 20:40:19 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 13 Jun 2005 23:40:19 -0400 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188691@ptolemy.topozone.com> Message-ID: On 6/13/05, Ed McNierney wrote: > There is a separate, independent effect due to the resampling of the > source data. It is more expensive to resample an image ("zoom out" on > it) than to display it at "native" resolution. So to create the most > efficient source data for any given map request, you would (ideally) > read as few files as possible AND resample each file as little as > possible. Ed, This is true, but this effect is reduced by building "in image" overviews since the required resolution of image data may be approximately available. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jacob.delfos at MAUNSELL.COM Mon Jun 13 20:48:44 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 14 Jun 2005 11:48:44 +0800 Subject: Adding shapefile dynamically with php_mapscript 4.4.2 Message-ID: Steve, Thanks for the suggestion. I thought about this approach, but since this is for a chameleon widget, it needs to be "drop-in" functionality, without having to make changes to the mapfile. It's a bit "cleaner" that way, although apparently more complex. regards, Jacob -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: 14 June 2005 11:03 To: Jacob Delfos Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding shapefile dynamically with php_mapscript 4.4.2 Jacob, The way I do this is to create a normal in the mapfile with the STATUS OFF and no DATA statement. Then in mapscript all I do it set the STATUS ON and assign the path to the DATA like you are doing below. It is MUCH easier to create a template layer in the mapfile and then manipulate it, rather than creating the whole thing from scratch. YMMV, -Steve W. Jacob Delfos wrote: > Hi All, > > I am trying to dynamically add a shapefile which I created at runtime. > The shapefile is created successfully (it opens up ok). But I am not > having any luck adding it as a layer. > > This is the code I have: > > $queryResultlayer = ms_newLayerObj( $oMap ); > $queryResultlayer->set( "name", "Queryresult" ); > $queryResultlayer->set( "type", $shapetype ); > $queryResultlayer->set( "status", MS_ON ); > $queryResultlayer->set( "data", > $szSessionDir."/queryResultShapefile"); > $queryResultlayer->set( "template", "ttt" ); > $queryResultlayer->set( "tolerance", 5 ); > $queryResultlayer->set( "toleranceunits", MS_PIXELS); > $queryResultlayer->setProjection($mapprojection); > $queryclass = ms_newClassObj($queryResultlayer); > $queryclass->set("name", "Query result"); > $queryclass->set("status", MS_ON); > $style = ms_newStyleObj($queryclass); > $style->color->setRGB(255, 255, 0); > $style->outlinecolor->setRGB(255, 0, 0); > > The layer is not showing (extents of map are correct). I am not getting > any errors either. The temporary mapfile being created in the session > directory does not contain my layer. Am I missing something? > > The $oMap object is a reference to the $oMap from the session (using > Chameleon). I am loading the session from an Iframe, and creating the > $oMap object like: > > $oMap =& $oMapSession->oMap; > > So if I add a layer to the map object, the layer should show if the map > image is reloaded in the main frame, right? > > Any help would be much appreciated. > > Regards, > > Jacob > > > JACOB DELFOS > SPATIAL INFORMATION ANALYST > Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > PO Box 81, Leederville, WA 6902 > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From margottid at COMUNE.LUGO.RA.IT Mon Jun 13 22:55:41 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 14 Jun 2005 07:55:41 +0200 Subject: A (probably stupid) question about dependencies Message-ID: Hi list, I have installed Mapserver several months ago. Now, I want to update (configure, make & make install) some packages, because there are new versions of them: GD, gdal, geo-shapelib, libjpeg, libtiff, proj.4, and so on. Do I have to "uninstall" the previous version of these libraries, or installation automatically "covers" the old version? And, most important, do I have to recompile Mapserver or does it automatically use the new version of these libraries? I have a Linux Red Hat 9.0. Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Mon Jun 13 23:11:58 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 14 Jun 2005 14:11:58 +0800 Subject: Adding shapefile dynamically with php_mapscript 4.4.2 - solved Message-ID: Ok, got it sorted out. I forgot to save the session state: $_SESSION['gszCurrentState'] = $oMapSession->saveState(); So the new layer never really made it into my main map application. Jacob -------------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Delfos Sent: 14 June 2005 11:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding shapefile dynamically with php_mapscript 4.4.2 Steve, Thanks for the suggestion. I thought about this approach, but since this is for a chameleon widget, it needs to be "drop-in" functionality, without having to make changes to the mapfile. It's a bit "cleaner" that way, although apparently more complex. regards, Jacob -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: 14 June 2005 11:03 To: Jacob Delfos Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding shapefile dynamically with php_mapscript 4.4.2 Jacob, The way I do this is to create a normal in the mapfile with the STATUS OFF and no DATA statement. Then in mapscript all I do it set the STATUS ON and assign the path to the DATA like you are doing below. It is MUCH easier to create a template layer in the mapfile and then manipulate it, rather than creating the whole thing from scratch. YMMV, -Steve W. Jacob Delfos wrote: > Hi All, > > I am trying to dynamically add a shapefile which I created at runtime. > The shapefile is created successfully (it opens up ok). But I am not > having any luck adding it as a layer. > > This is the code I have: > > $queryResultlayer = ms_newLayerObj( $oMap ); > $queryResultlayer->set( "name", "Queryresult" ); > $queryResultlayer->set( "type", $shapetype ); > $queryResultlayer->set( "status", MS_ON ); > $queryResultlayer->set( "data", > $szSessionDir."/queryResultShapefile"); > $queryResultlayer->set( "template", "ttt" ); > $queryResultlayer->set( "tolerance", 5 ); > $queryResultlayer->set( "toleranceunits", MS_PIXELS); > $queryResultlayer->setProjection($mapprojection); > $queryclass = ms_newClassObj($queryResultlayer); > $queryclass->set("name", "Query result"); > $queryclass->set("status", MS_ON); > $style = ms_newStyleObj($queryclass); > $style->color->setRGB(255, 255, 0); > $style->outlinecolor->setRGB(255, 0, 0); > > The layer is not showing (extents of map are correct). I am not getting > any errors either. The temporary mapfile being created in the session > directory does not contain my layer. Am I missing something? > > The $oMap object is a reference to the $oMap from the session (using > Chameleon). I am loading the session from an Iframe, and creating the > $oMap object like: > > $oMap =& $oMapSession->oMap; > > So if I add a layer to the map object, the layer should show if the map > image is reloaded in the main frame, right? > > Any help would be much appreciated. > > Regards, > > Jacob > > > JACOB DELFOS > SPATIAL INFORMATION ANALYST > Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > PO Box 81, Leederville, WA 6902 > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From candalt at ONLINE.NO Mon Jun 13 23:39:01 2005 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Tue, 14 Jun 2005 08:39:01 +0200 Subject: FLASH Output Message-ID: Hi Again, Thanx for your answer...but i think i solved the problem... Tested with a demo using the cgi-version of mapserver and this one produced SWF :-) The problem was related to using regular fonts from my fonts file...replacing the fonts with some SWF fonts solved the problem :-) Now by server is produsing SWF images Cheers!!!! -Have you put the php_ming.so in the php extensions directory ? -Does the phpinfo page ( with dl("php_ming.so" ) before the phpinfo(); -statement ) tells that ming is present ? -Have you put the - dl("php_ming.so"); - statement in your php_mapscript file ? -Have you tryed a few basic examples from the ming site ? Do they output what -is expected ? -Blaise lundi 13 Juin 2005 21:00, Sture Dings?yr : > Have a FEDORA C3 box with Mapserver 4.4.2 installed. The installation works > fine and it outputs images...no problem. We are using it in some > applications. > > But when i try to make Mapserver output Shockwave Flash movie nothing > happens... > > I run php 4.3.9 and php mapscript. > > In the HTTPD log i get this message: [Fri Jun 10 08:59:12 2005] [error] > [client xxx.xxx.xxx.xxx] Premature end of script headers: php > > What could the problem be? Mapserver compiles fine with the ming parameter, > and in php it outputs: MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE DEBUG=MSDEBUG > > Mapserver is compiled with: > > ./configure --without-tiff --with-eppl --with-jpeg=/usr --with-threads > --with-proj=/usr --with-gdal=/usr/local/bin/gdal-config > --with-ogr=/usr/local/bin/gdal-config --with-ming > --with-php=/usr/share/php439 --with-gd=/usr/local --with-freetype > --with-wmsclient --with-wfs --with-wfsclient --with-postgis > --with-curl-config=/usr/bin/curl-config --enable-debug > --disable-ignore-missing-data --enable-runpath > > and returns: > > checking if MyGIS support requested... no > checking if OracleSpatial support requested... no > checking if MING/Flash support requested... yes > configure: checking whether we should include WMS Server support... > OGC WMS compatibility enabled (-DUSE_WMS_SVR). > > > It says that MING/FLASH is supported... > > We run ming-0.2a > > > > Any good ideas? > > > Best regards sture From bino at INDOAKSES-ONLINE.COM Tue Jun 14 00:23:25 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Tue, 14 Jun 2005 14:23:25 +0700 Subject: PhpMapScript vs MapFile Message-ID: Hi All . Is it true that we can define layer in PHPMapScript so we don't need layer definition in the MapFile ? If so , kindly please give me url that have example on how to do complette Layer definition (inc all the classes) in PhpMapscript. Regards -bino- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvain.perrinel at AGRICULTURE.GOUV.FR Tue Jun 14 00:30:47 2005 From: sylvain.perrinel at AGRICULTURE.GOUV.FR (sylvain.perrinel) Date: Tue, 14 Jun 2005 09:30:47 +0200 Subject: Mapserver and the fly conversion of 24bit RGB raster images to 8bit colormapped format In-Reply-To: <931f8ea905061308486b8ffc0a@mail.gmail.com> Message-ID: Oki thanks, Gdalinfo stops on the third band : "... Band 1 block=10000x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 block=10000x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary Band 3 block=10000x1 Type=Byte, ColorInterp=Green Overviews: arbitrary and does not say anything. It does not return to the prompt as if it was searching something... I will upgrade to the SDK 3.2beta version. Frank Warmerdam a ?crit : > On 6/13/05, sylvain.perrinel wrote: > >>Hello, >>I'm trying to make a map with an ecw layer. But, Mapserver does not want >>to convert my 24bit RGB ecw image to 8bit like documentation says : >>http://mapserver.gis.umn.edu/doc35/raster-howto.html#rgb_color_cube . >> >>Gdal support ecw format and the commande "gdalinfo" on the ecw layer >>stops on the color table and doesn't say anything. I think it tries to >>recover the table color ! > > > Sylvain, > > When you say "stops on the color table", do you mean that it > starts to report a color table? Then hangs? I am surprised if there > is ever a report of a color table on ECW bands by gdalinfo. However, > the hang behavior is fairly common with some versions of the ECW library > on Linux and I think relates to some sort of race condition in the > multi-threaded > stuff in the ECW library. Upgrading to the latest ECW library may help in this > regard. > > Best regards, -- Sylvain Perrinel Minist?re de l'Agriculture et de la P?che Toulouse France From jacob.delfos at MAUNSELL.COM Tue Jun 14 00:35:05 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 14 Jun 2005 15:35:05 +0800 Subject: PhpMapScript vs MapFile Message-ID: Bino, Yes, but it's quite a pain to define the styles and classes, as I found out today...... This is the approach using (for point files), which seems to work: $datasetlayer = ms_newLayerObj( $oMap ); $datasetlayer->set( "name", "dataset" ); $datasetlayer->set( "type", $oLayer->type); $datasetlayer->set( "status", MS_ON ); $datasetlayer->set( "data", "datasetShapefile"); $datasetlayer->set( "template", "ttt" ); $datasetlayer->set( "tolerance", 5 ); $datasetlayer->set( "toleranceunits", MS_PIXELS); $datasetlayer->setProjection($mapprojection); $queryclass = ms_newClassObj($datasetlayer); $queryclass->set("name", "Query result"); $queryclass->set("status", MS_ON); $style = ms_newStyleObj($queryclass); $symbolid = ms_newSymbolObj($oMap, "circle"); $oSymbol = $oMap->getsymbolobjectbyid($symbolid); $oSymbol->setpoints(Array(1,1)); $oSymbol->set("filled",MS_TRUE); $oSymbol->set("inmapfile", MS_TRUE); $style->color->setRGB(255, 255, 0); $style->set("symbolname", "circle"); $style->set("size", "8"); You should be able to figure it out based on the docs: http://www.maptools.org/php_mapscript/index.phtml?page=php_mapscript_docs44.txt regards, Jacob -------------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of bino_oetomo Sent: 14 June 2005 15:23 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PhpMapScript vs MapFile Hi All . Is it true that we can define layer in PHPMapScript so we don't need layer definition in the MapFile ? If so , kindly please give me url that have example on how to do complette Layer definition (inc all the classes) in PhpMapscript. Regards -bino- -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at DEPREM.GOV.TR Tue Jun 14 01:38:07 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 14 Jun 2005 11:38:07 +0300 Subject: I need your idea Message-ID: hello I need your idea how can I show an satellite imagery in full extent when you click in menu. if you have time please look at : "http://landslide.deprem.gov.tr/cgi/map4.php" and click in "satellite" I just want it to fill whole map's window. I used php-mapscript and here is the code fragment: /$uydulayer->set("status",1); # on $minx=414562.225; $miny=4510820; $maxx=521317.775; $maxy=4617510; $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $zoom_rect = ms_newRectObj(); $zoom_rect->setextent(200,203,200,203); //satellite imagery pixel extents $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); $extent_to_html = $minx." ".$miny." " .$maxx." ".$maxy; /I will appreciate if you give a sense/ /Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From Dejan.Gambin at PULA.HR Tue Jun 14 01:59:25 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 14 Jun 2005 10:59:25 +0200 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance Message-ID: Ed, Frank, Thanks very much for the explanations. I realise that the first and the main thing is to understand my application/usage model before doing any performance tests/optimizations. My GIS site is now in experimental phase and I just want to learn as much as I can so that I really KNOW what to do when the site becomes productional, with many users and maybe (I hope not) performance problems. I just want to be ready if and when this comes and that will be very soon. I am working in a local municipality where many GIS data exists and I wanted to show to my "bosses" that amazingly good things can be done using open source software like MapServer. It is not easy to explain to the city government people the open source philosophy and its benefits. Because if something bad happens when the production period comes, then all my efforts will fail and they will be the winners (they - those who are prefering commercial solutions). As there is none here that can support such kind of software as the MapServer, then I have to be ready and armed with knowledge as much as I can. Well, I have made a big digression from the theme, but I hope you can understand me and my tiring and boring questions I occupy you with. Ed, can you tell me how can I see if resampling is occuring to me? I have set a LOG and DEBUG parameter in map file but I haven't got any output. Then I saw a bug 709 that discusses this problem. I have set CONFIG MS_ERRORFILE mapserver.log instead of LOG parameter and I have seen it is being filled but no resampling messages appear. Must I have some kind of debug build to enable logging? Is there a way to find out if resampling occurs (it should occur because I have unconstrained zooming enabled and built internal overviews with just a few different resolutions)? thanks very much dejan gambin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, June 14, 2005 3:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performance Dejan - That's close, but not quite correct. It is true that as a larger number of files need to be read to display the map, the TILEINDEX becomes less useful. The TILEINDEX helps MapServer efficiently select which input images are needed - if you need all of them, there's no value in efficiently selecting the right ones. There is a separate, independent effect due to the resampling of the source data. It is more expensive to resample an image ("zoom out" on it) than to display it at "native" resolution. So to create the most efficient source data for any given map request, you would (ideally) read as few files as possible AND resample each file as little as possible. Before doing lots of performance tests, first understand your user/application model. You don't need to optimize performance for scenarios that won't happen. If, for example, your application allows the user to select from a short list of pre-specified view scales, you should make sure your data is stored at exactly those scales, with no resampling needed. If the map image size is constrained, then you can also organize your source data so a large fraction of map image requests can be served by only reading one image. If you have external constraints on your source data (other requirements than MapServer) then you might not be able to do all these things. But define and understand the usage model first, then test and optimize for that model's requirements. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, June 13, 2005 5:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performance Thanks Frank, Does it mean the following (as discussed in "Tileindex questions" thread): When viewing the map at a larger scale (zoomed in) the TILEINDEX is very helpfull because only a small number of tiles have to be retrieved. As the map scale becomes smaller (zoomed out), more files need to be touched so TILEINDEX becomes less useful. The performance degrades and when it becomes unacceptable the it is the time to create a new layer that is built on lower resolution image(s). This new layer can be built as one image or as a set of tile images but with the smaller number of tiles so that Mapserver needs to open a smaller number of files. If this is so then I suppose it is best to do a lot of performance tests (as Mark said) to see what is the best combination. Just tell me if this is this is right. regards, dg -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Monday, June 13, 2005 3:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performance On 6/13/05, Gambin Dejan wrote: > 1. Frank talks about different types of tilings and overviews: > - is the tiling type related to overview type and how? To be > more concrete, if I have a set of tiff files (and i am using tileindex > shapefile to associate thme into one layer) can I use internal > overviews? Which are the possible combinations? What are the > advantages and disadvantages? Is it better to use internal > overviews/tiles or what? Gambin, My suggestion is to use internal overviews on your base files, but still to provide *some* additional overview map layers. The built-in overviews work fine for extracting overview images efficiently, but if the user zooms out a long ways such that they are looking at hundreds of files, the very action of opening and parsing the headers of the many files will end up slowing things down alot. So the "map overview layers" are essentially intended to prevent MapServer from having to touch too many files for any one render request. > 3. This is not so much related to overviews/tiles but I would like to > know if there is any difference in using tiffs with their associating > world files or real Geotiffs that have the geocoding informations > embedded within the file? Is there any benefits to convert to "real" > geotiff files using for example geotifcp utility? From luca76 at GMAIL.COM Tue Jun 14 02:43:35 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Tue, 14 Jun 2005 11:43:35 +0200 Subject: Amein! and ArcMAP Message-ID: Hi, I have downloaded Amein! 1.0.1 [*] executable and launched it. My arcMap 9 detected it correctly. The Amein button is on the toolbar. Launched an MXD project, tried to click that button and... I can see only the logo (and I cannot do anything else). What's wrong? [*] Amein! is a plugin to convert from MXD to MAP file From mn at BLOMINFO.DK Tue Jun 14 02:58:17 2005 From: mn at BLOMINFO.DK (Morten Nielsen) Date: Tue, 14 Jun 2005 11:58:17 +0200 Subject: Label placement Message-ID: I was just wondering how label placement on linestings are actually calculated. I.e. Rotation, placement, overlaps etc. Is there any documentation on this or is it a well-known algorithm that I can Google? Best regards /Morten Nielsen -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavan18 at HOTMAIL.COM Tue Jun 14 04:14:33 2005 From: xavan18 at HOTMAIL.COM (Xavier Vanderstukken) Date: Tue, 14 Jun 2005 13:14:33 +0200 Subject: custom output format not added to capabilities Message-ID: I have the following option in my map file : OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" DRIVER pdf EXTENSION "pdf" FORMATOPTION "OUTPUT_TYPE=RASTER" END I have the following comment in the capabilities response : However mapserver dont add image/pdf to supported format. _________________________________________________________________ Prot?gez votre bo?te de r?ception: Phishing : comment l'identifier, le signaler et l'emp?cher http://www.fr.msn.be/security/phishing/ From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jun 14 04:37:49 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 14 Jun 2005 13:37:49 +0200 Subject: custom output format not added to capabilities Message-ID: Hi, only GDAL and GD formats are advertized for now in the WMS capabilities, see: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Xavier Vanderstukken 06/14/05 01:14pm >>> I have the following option in my map file : OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" DRIVER pdf EXTENSION "pdf" FORMATOPTION "OUTPUT_TYPE=RASTER" END I have the following comment in the capabilities response : However mapserver dont add image/pdf to supported format. _________________________________________________________________ Prot?gez votre bo?te de r?ception: Phishing : comment l'identifier, le signaler et l'emp?cher http://www.fr.msn.be/security/phishing/ From xavan18 at HOTMAIL.COM Tue Jun 14 04:43:34 2005 From: xavan18 at HOTMAIL.COM (Xavier Vanderstukken) Date: Tue, 14 Jun 2005 13:43:34 +0200 Subject: custom output format not added tocapabilities In-Reply-To: Message-ID: And why the following getmap request is not working? http://sethi/cgi-bin/mapserver?map=bostonsi.map&REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&BOX=232207.0031778726,896928.5498116227,234704.66909270853,899126.709749519&SRS=EPSG:26986&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=934&HEIGHT=822&LAYERS=roads&STYLES=&FORMAT=image/pdf msWMSLoadGetMapParams(): Image handling error. Unsupported output format (image/pdf).


>From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
>To: <xavan18 at HOTMAIL.COM>,<MAPSERVER-USERS at LISTS.UMN.EDU>
>Subject: Re: [UMN_MAPSERVER-USERS] custom output format not added tocapabilities
>Date: Tue, 14 Jun 2005 13:37:49 +0200
>
>Hi,
>
>only GDAL and GD formats are advertized for now in the WMS capabilities, see:
>
>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455
>
>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072
>
>Best regards,
>Bart
>
>Bart van den Eijnden
>Syncera IT Solutions
>Postbus 270
>2600 AG DELFT
>
>tel.nr.: 015-7512436
>email: BEN at Syncera-ITSolutions.nl
>
> >>> Xavier Vanderstukken <xavan18 at HOTMAIL.COM> 06/14/05 01:14pm >>>
>I have the following option in my map file :
>OUTPUTFORMAT
> NAME pdf
> MIMETYPE "application/x-pdf"
> DRIVER pdf
> EXTENSION "pdf"
> FORMATOPTION "OUTPUT_TYPE=RASTER"
>END
>
>I have the following comment in the capabilities response :
><!--
>MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
>SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
>SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL
>INPUT=SHAPEFILE
>-->
>
>However mapserver dont add image/pdf to supported format.
>
>_________________________________________________________________
>Prot?gez votre bo?te de r?ception: Phishing : comment l'identifier, le
>signaler et l'emp?cher http://www.fr.msn.be/security _________________________________________________________________ Cr?ez gratuitement votre espace perso en ligne avec MSN Spaces ! http://spaces.msn.com/?mkt=fr-be From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jun 14 04:45:16 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 14 Jun 2005 13:45:16 +0200 Subject: custom output format not added tocapabilities Message-ID: The same answer applies to this. The WMS interface currently only supports GD or GDAL formats, and PDF is not a GDAL or GD format. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Xavier Vanderstukken 06/14/05 01:43pm >>> And why the following getmap request is not working? http://sethi/cgi-bin/mapserver?map=bostonsi.map&REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&BOX=232207.0031778726,896928.5498116227,234704.66909270853,899126.709749519&SRS=EPSG:26986&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=934&HEIGHT=822&LAYERS=roads&STYLES=&FORMAT=image/pdf msWMSLoadGetMapParams(): Image handling error. Unsupported output format (image/pdf).


>From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
>To: <xavan18 at HOTMAIL.COM>,<MAPSERVER-USERS at LISTS.UMN.EDU>
>Subject: Re: [UMN_MAPSERVER-USERS] custom output format not added tocapabilities
>Date: Tue, 14 Jun 2005 13:37:49 +0200
>
>Hi,
>
>only GDAL and GD formats are advertized for now in the WMS capabilities, see:
>
>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455
>
>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072
>
>Best regards,
>Bart
>
>Bart van den Eijnden
>Syncera IT Solutions
>Postbus 270
>2600 AG DELFT
>
>tel.nr.: 015-7512436
>email: BEN at Syncera-ITSolutions.nl
>
> >>> Xavier Vanderstukken <xavan18 at HOTMAIL.COM> 06/14/05 01:14pm >>>
>I have the following option in my map file :
>OUTPUTFORMAT
> NAME pdf
> MIMETYPE "application/x-pdf"
> DRIVER pdf
> EXTENSION "pdf"
> FORMATOPTION "OUTPUT_TYPE=RASTER"
>END
>
>I have the following comment in the capabilities response :
><!--
>MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
>SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
>SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL
>INPUT=SHAPEFILE
>-->
>
>However mapserver dont add image/pdf to supported format.
>
>_________________________________________________________________
>Prot?gez votre bo?te de r?ception: Phishing : comment l'identifier, le
>signaler et l'emp?cher http://www.fr.msn.be/security _________________________________________________________________ Cr?ez gratuitement votre espace perso en ligne avec MSN Spaces ! http://spaces.msn.com/?mkt=fr-be From ed at TOPOZONE.COM Tue Jun 14 04:48:14 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 14 Jun 2005 07:48:14 -0400 Subject: GeoTIFF overviews / TILEINDEX / Large dataset performance Message-ID: Frank - Yes - that's certainly true. But I didn't think there was a substantial difference between a single layer of TIFFs with in-image overviews vs. a GROUP of layers with MINSCALE/MAXSCALE controls, each layer being an independent set of resampled TIFFs. The most important point, of course, is to minimize both the number of files opened/read and the amount of resampling required for each request. Thanks for the help! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Monday, June 13, 2005 11:40 PM To: Ed McNierney Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF overviews / TILEINDEX / Large dataset performance On 6/13/05, Ed McNierney wrote: > There is a separate, independent effect due to the resampling of the > source data. It is more expensive to resample an image ("zoom out" on > it) than to display it at "native" resolution. So to create the most > efficient source data for any given map request, you would (ideally) > read as few files as possible AND resample each file as little as > possible. Ed, This is true, but this effect is reduced by building "in image" overviews since the required resolution of image data may be approximately available. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From xavan18 at HOTMAIL.COM Tue Jun 14 04:53:16 2005 From: xavan18 at HOTMAIL.COM (Xavier Vanderstukken) Date: Tue, 14 Jun 2005 13:53:16 +0200 Subject: custom output format not addedtocapabilities In-Reply-To: Message-ID: Ok and witch request is able to output custom format


>From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
>To: <xavan18 at HOTMAIL.COM>,<MAPSERVER-USERS at LISTS.UMN.EDU>
>Subject: Re: [UMN_MAPSERVER-USERS] custom output format not addedtocapabilities
>Date: Tue, 14 Jun 2005 13:45:16 +0200
>
>The same answer applies to this.
>
>The WMS interface currently only supports GD or GDAL formats, and PDF is not a GDAL or GD format.
>
>Best regards,
>Bart
>
>Bart van den Eijnden
>Syncera IT Solutions
>Postbus 270
>2600 AG DELFT
>
>tel.nr.: 015-7512436
>email: BEN at Syncera-ITSolutions.nl
>
> >>> Xavier Vanderstukken <xavan18 at HOTMAIL.COM> 06/14/05 01:43pm >>>
>And why the following getmap request is not working?
>http://sethi/cgi-bin/mapserver?map=bostonsi.map&REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&BOX=232207.0031778726,896928.5498116227,234704.66909270853,899126.709749519&SRS=EPSG:26986&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=934&HEIGHT=822&LAYERS=roads&STYLES=&FORMAT=image/pdf
>
><?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
><!DOCTYPE ServiceExceptionReport SYSTEM
>"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd">
><ServiceExceptionReport version="1.1.1">
><ServiceException code="InvalidFormat">
>msWMSLoadGetMapParams(): Image handling error. Unsupported output format
>(image/pdf).
></ServiceException>
></ServiceExceptionReport>
>
>
><br><br><br>&gt;From: &quot;Bart van den Eijnden&quot;
>&lt;BEN at Syncera-ITSolutions.NL&gt;<br>&gt;To:
>&lt;xavan18 at HOTMAIL.COM&gt;,&lt;MAPSERVER-USERS at LISTS.UMN.EDU&gt;<br>&gt;Subject:
>Re: [UMN_MAPSERVER-USERS] custom output format not added
>tocapabilities<br>&gt;Date: Tue, 14 Jun 2005 13:37:49
>+0200<br>&gt;<br>&gt;Hi,<br>&gt;<br>&gt;only GDAL and GD formats are
>advertized for now in the WMS capabilities,
>see:<br>&gt;<br>&gt;http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455<br>&gt;<br>&gt;http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072<br>&gt;<br>&gt;Best
>regards,<br>&gt;Bart<br>&gt;<br>&gt;Bart van den Eijnden<br>&gt;Syncera IT
>Solutions<br>&gt;Postbus 270<br>&gt;2600 AG DELFT<br>&gt;<br>&gt;tel.nr.:
>015-7512436<br>&gt;email: BEN at Syncera-ITSolutions.nl<br>&gt;<br>&gt;
>&gt;&gt;&gt; Xavier Vanderstukken &lt;xavan18 at HOTMAIL.COM&gt; 06/14/05
>01:14pm &gt;&gt;&gt;<br>&gt;I have the following option in my map file
>:<br>&gt;OUTPUTFORMAT<br>&gt; NAME pdf<br>&gt;
> MIMETYPE &quot;application/x-pdf&quot;<br>&gt; DRIVER
>pdf<br>&gt; EXTENSION &quot;pdf&quot;<br>&gt;
> FORMATOPTION &quot;OUTPUT_TYPE=RASTER&quot;<br>&gt;END<br>&gt;<br>&gt;I
>have the following comment in the capabilities response
>:<br>&gt;&lt;!--<br>&gt;MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG
>OUTPUT=JPEG OUTPUT=WBMP<br>&gt;OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ
>SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER<br>&gt;SUPPORTS=WMS_CLIENT
>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT<br>&gt;SUPPORTS=WCS_SERVER
>INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR
>INPUT=GDAL<br>&gt;INPUT=SHAPEFILE<br>&gt;--&gt;<br>&gt;<br>&gt;However
>mapserver dont add image/pdf to supported
>format.<br>&gt;<br>&gt;_________________________________________________________________<br>&gt;Prot?gez
>votre bo?te de r?ception: Phishing : comment l'identifier,
>le<br>&gt;signaler et l'emp?cher http://www.fr.msn.be/security
>
>_________________________________________________________________
>Cr?ez gratuitement votre espace perso en ligne avec MSN Spaces !
>http://spaces.msn.com/?mkt=fr-be
>
_________________________________________________________________ Cr?ez gratuitement votre espace perso en ligne avec MSN Spaces ! http://spaces.msn.com/?mkt=fr-be From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jun 14 05:08:09 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 14 Jun 2005 14:08:09 +0200 Subject: custom output format not addedtocapabilities Message-ID: You can do it through the native Mapserver CGI interface, so use mode=map&layers=roads http://mapserver.gis.umn.edu/doc44/cgi-reference.html Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Xavier Vanderstukken 06/14/05 01:53pm >>> Ok and witch request is able to output custom format


>From: "Bart van den Eijnden" <BEN at Syncera-ITSolutions.NL>
>To: <xavan18 at HOTMAIL.COM>,<MAPSERVER-USERS at LISTS.UMN.EDU>
>Subject: Re: [UMN_MAPSERVER-USERS] custom output format not addedtocapabilities
>Date: Tue, 14 Jun 2005 13:45:16 +0200
>
>The same answer applies to this.
>
>The WMS interface currently only supports GD or GDAL formats, and PDF is not a GDAL or GD format.
>
>Best regards,
>Bart
>
>Bart van den Eijnden
>Syncera IT Solutions
>Postbus 270
>2600 AG DELFT
>
>tel.nr.: 015-7512436
>email: BEN at Syncera-ITSolutions.nl
>
> >>> Xavier Vanderstukken <xavan18 at HOTMAIL.COM> 06/14/05 01:43pm >>>
>And why the following getmap request is not working?
>http://sethi/cgi-bin/mapserver?map=bostonsi.map&REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&BOX=232207.0031778726,896928.5498116227,234704.66909270853,899126.709749519&SRS=EPSG:26986&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&WIDTH=934&HEIGHT=822&LAYERS=roads&STYLES=&FORMAT=image/pdf
>
><?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
><!DOCTYPE ServiceExceptionReport SYSTEM
>"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd">
><ServiceExceptionReport version="1.1.1">
><ServiceException code="InvalidFormat">
>msWMSLoadGetMapParams(): Image handling error. Unsupported output format
>(image/pdf).
></ServiceException>
></ServiceExceptionReport>
>
>
><br><br><br>&gt;From: &quot;Bart van den Eijnden&quot;
>&lt;BEN at Syncera-ITSolutions.NL&gt;<br>&gt;To:
>&lt;xavan18 at HOTMAIL.COM&gt;,&lt;MAPSERVER-USERS at LISTS.UMN.EDU&gt;<br>&gt;Subject:
>Re: [UMN_MAPSERVER-USERS] custom output format not added
>tocapabilities<br>&gt;Date: Tue, 14 Jun 2005 13:37:49
>+0200<br>&gt;<br>&gt;Hi,<br>&gt;<br>&gt;only GDAL and GD formats are
>advertized for now in the WMS capabilities,
>see:<br>&gt;<br>&gt;http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455<br>&gt;<br>&gt;http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072<br>&gt;<br>&gt;Best
>regards,<br>&gt;Bart<br>&gt;<br>&gt;Bart van den Eijnden<br>&gt;Syncera IT
>Solutions<br>&gt;Postbus 270<br>&gt;2600 AG DELFT<br>&gt;<br>&gt;tel.nr.:
>015-7512436<br>&gt;email: BEN at Syncera-ITSolutions.nl<br>&gt;<br>&gt;
>&gt;&gt;&gt; Xavier Vanderstukken &lt;xavan18 at HOTMAIL.COM&gt; 06/14/05
>01:14pm &gt;&gt;&gt;<br>&gt;I have the following option in my map file
>:<br>&gt;OUTPUTFORMAT<br>&gt; NAME pdf<br>&gt;
> MIMETYPE &quot;application/x-pdf&quot;<br>&gt; DRIVER
>pdf<br>&gt; EXTENSION &quot;pdf&quot;<br>&gt;
> FORMATOPTION &quot;OUTPUT_TYPE=RASTER&quot;<br>&gt;END<br>&gt;<br>&gt;I
>have the following comment in the capabilities response
>:<br>&gt;&lt;!--<br>&gt;MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG
>OUTPUT=JPEG OUTPUT=WBMP<br>&gt;OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ
>SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER<br>&gt;SUPPORTS=WMS_CLIENT
>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT<br>&gt;SUPPORTS=WCS_SERVER
>INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR
>INPUT=GDAL<br>&gt;INPUT=SHAPEFILE<br>&gt;--&gt;<br>&gt;<br>&gt;However
>mapserver dont add image/pdf to supported
>format.<br>&gt;<br>&gt;_________________________________________________________________<br>&gt;Prot?gez
>votre bo?te de r?ception: Phishing : comment l'identifier,
>le<br>&gt;signaler et l'emp?cher http://www.fr.msn.be/security
>
>_________________________________________________________________
>Cr?ez gratuitement votre espace perso en ligne avec MSN Spaces !
>http://spaces.msn.com/?mkt=fr-be
>
_________________________________________________________________ Cr?ez gratuitement votre espace perso en ligne avec MSN Spaces ! http://spaces.msn.com/?mkt=fr-be From christhorne at SYMPATICO.CA Tue Jun 14 07:36:45 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Tue, 14 Jun 2005 10:36:45 -0400 Subject: EPSG code for... In-Reply-To: <42AB16F4.7030503@sympatico.ca> Message-ID: Hello me again, I finally tracked down the metadata for the data that was given to me with the strange projection. Well it gets stranger. Here is what I found. I have two shape files of the Los Angeles county 1st shape file : ---------------- Datum:NAD27 Units: Meters Ellipsoid:Clark 1866 Projection: UTM, Zone 11 * Possible EPSG codes found: # NAD27(76) / MTM zone 11 <2020> +proj=tmerc +lat_0=0 +lon_0=-82.5 +k=0.999900 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs no_defs <> # NAD27 / UTM zone 11N <26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m +no_defs no_defs <> 2nd shape file: Datum:NAD83 Units: Meters Ellipsoid:Clark 1866 Projection: UTM, Zone 11 * Possible EPSG Codes found: NONE FOUND..... This makes me think that NAD83 with a Clark 1866 Ellipsoid is not a valid projection. Am I on the right trake of thinking or is there actually an EPSG code with: +proj=utm +zone=11 +ellps=clrk66 +datum=NAD83 +units=m +no_defs no_defs <> Comments? Chris Christopher R. Thorne wrote: > Hello Dean, > > Dean C. Mikkelsen wrote: > >> Hi Chris, >> >> Take a look at the following web-page. >> I am leaning towards a problem now in defining which State Plane >> Co-ordinate System is being used. i.e. one of the ones we are using is >> wrong - we may actually be north or south of the current one. Now the >> trick is to determine which one. A note to other readers epsg:4326 is >> WGS84. >> >> Did you try reprojecting the NAD27 Layer with the NAD83 definition? > > > Yes I did that and the layers switched positions. > > Or > >> with epsg:4326? What happens? >> > with setting the projection to the lat/long layers, they are not found > in outer space, not within the world extent. > >> http://www.wadetrim.com/resources/articles/sblocks.htm > > > Thanks for the good reference. The reason why I got into this situation > was because I am four steps removed from the data provider. I only > managed to get the information that you already know and I was hoping > the information was correct. The other problem was that I was not sure > how to identify the issues, confidently. If not I will definitely push > for more information. > > Cheers and thanks again, > Chris > -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From godwin.liz at GMAIL.COM Tue Jun 14 08:20:13 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Tue, 14 Jun 2005 11:20:13 -0400 Subject: Amein! and ArcMAP In-Reply-To: Message-ID: I'm having the same problem. It is there, but disabled. Help would be nice. I havn't had much time to figure it out on my own. Liz On 6/14/05, Luca Manganelli wrote: > > Hi, I have downloaded Amein! 1.0.1 [*] executable and launched it. > My arcMap 9 detected it correctly. The Amein button is on the toolbar. > Launched an MXD project, tried to click that button and... I can see > only the logo (and I cannot do anything else). What's wrong? > > [*] Amein! is a plugin to convert from MXD to MAP file > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcmikkelsen at SHAW.CA Tue Jun 14 09:06:53 2005 From: dcmikkelsen at SHAW.CA (Dean Mikkelsen) Date: Tue, 14 Jun 2005 09:06:53 -0700 Subject: EPSG code for... Message-ID: Hi Chris, NAD83 has no relation to Clarke 1866. NAD83 is defined on GRS80/WGS84 - which are totally different ellipsoids from Clarke 1866. There will be no EPSG code for this. The fix may be quite simple actually now. Clarke 1866 defines NAD27, therefore both Shapefiles may be in NAD27, even though one says it is NAD83. Try assuming that the 2nd Shape file is NAD27 for the datum. Use the EPSG code 26711. The other alternative is assume both are NAD83/WGS84 (difference is neglible), but make sure that you define the ellipsoid of the 2nd shape file to be WGS84, not using any EPSG codes in setting up the map projection and datum. Then reproject the first one as NAD83/WGS84. Let's see what happens. Dean ----- Original Message ----- From: "Christopher R. Thorne" Date: Tuesday, June 14, 2005 7:36 am Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > Hello me again, > I finally tracked down the metadata for the data that was given to > me > with the strange projection. Well it gets stranger. Here is what I > found. I have two shape files of the Los Angeles county > > 1st shape file : > ---------------- > Datum:NAD27 > Units: Meters > Ellipsoid:Clark 1866 > Projection: UTM, Zone 11 > > * Possible EPSG codes found: > > # NAD27(76) / MTM zone 11 > <2020> +proj=tmerc +lat_0=0 +lon_0=-82.5 +k=0.999900 +x_0=304800 > +y_0=0 > +ellps=clrk66 +units=m +no_defs no_defs <> > > # NAD27 / UTM zone 11N > <26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m > +no_defs > no_defs <> > > 2nd shape file: > > Datum:NAD83 > Units: Meters > Ellipsoid:Clark 1866 > Projection: UTM, Zone 11 > > * Possible EPSG Codes found: > > NONE FOUND..... > > This makes me think that NAD83 with a Clark 1866 Ellipsoid is not > a > valid projection. Am I on the right trake of thinking or is there > actually an EPSG code with: > > +proj=utm +zone=11 +ellps=clrk66 +datum=NAD83 +units=m > +no_defs > no_defs <> > > Comments? > Chris > > Christopher R. Thorne wrote: > > Hello Dean, > > > > Dean C. Mikkelsen wrote: > > > >> Hi Chris, > >> > >> Take a look at the following web-page. > >> I am leaning towards a problem now in defining which State Plane > >> Co-ordinate System is being used. i.e. one of the ones we are > using is > >> wrong - we may actually be north or south of the current one. > Now the > >> trick is to determine which one. A note to other readers > epsg:4326 is > >> WGS84. > >> > >> Did you try reprojecting the NAD27 Layer with the NAD83 > definition? > > > > > > Yes I did that and the layers switched positions. > > > > Or > > > >> with epsg:4326? What happens? > >> > > with setting the projection to the lat/long layers, they are not > found > > in outer space, not within the world extent. > > > >> http://www.wadetrim.com/resources/articles/sblocks.htm > > > > > > Thanks for the good reference. The reason why I got into this > situation > > was because I am four steps removed from the data provider. I > only > > managed to get the information that you already know and I was > hoping > > the information was correct. The other problem was that I was > not sure > > how to identify the issues, confidently. If not I will > definitely push > > for more information. > > > > Cheers and thanks again, > > Chris > > > > > -- > Christopher R. Thorne, GIS Specialist > - > christhorne at sympatico.ca > Tel:(613)523-6593, Ottawa ON Canada > ----------------------------- > From dcmikkelsen at SHAW.CA Tue Jun 14 09:10:03 2005 From: dcmikkelsen at SHAW.CA (Dean Mikkelsen) Date: Tue, 14 Jun 2005 09:10:03 -0700 Subject: EPSG code for... Message-ID: Hi again, MTM is defined for Canada. They are 3 degree Modified Transverse Mercator projections. They will not apply to Canada. For a reference see the following web-sites: MTM: http://www.geod.nrcan.gc.ca/images/products/MTM.jpg UTM: http://www.geod.nrcan.gc.ca/images/products/UTM.jpg Both were referred to via: http://www.geod.nrcan.gc.ca/index_e/online_apps_e/appNtv2_e/appntv2_utm_e.html Cheers, Dean ----- Original Message ----- From: "Christopher R. Thorne" Date: Tuesday, June 14, 2005 7:36 am Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > Hello me again, > I finally tracked down the metadata for the data that was given to > me > with the strange projection. Well it gets stranger. Here is what I > found. I have two shape files of the Los Angeles county > > 1st shape file : > ---------------- > Datum:NAD27 > Units: Meters > Ellipsoid:Clark 1866 > Projection: UTM, Zone 11 > > * Possible EPSG codes found: > > # NAD27(76) / MTM zone 11 > <2020> +proj=tmerc +lat_0=0 +lon_0=-82.5 +k=0.999900 +x_0=304800 > +y_0=0 > +ellps=clrk66 +units=m +no_defs no_defs <> > > # NAD27 / UTM zone 11N > <26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m > +no_defs > no_defs <> > > 2nd shape file: > > Datum:NAD83 > Units: Meters > Ellipsoid:Clark 1866 > Projection: UTM, Zone 11 > > * Possible EPSG Codes found: > > NONE FOUND..... > > This makes me think that NAD83 with a Clark 1866 Ellipsoid is not > a > valid projection. Am I on the right trake of thinking or is there > actually an EPSG code with: > > +proj=utm +zone=11 +ellps=clrk66 +datum=NAD83 +units=m > +no_defs > no_defs <> > > Comments? > Chris > > Christopher R. Thorne wrote: > > Hello Dean, > > > > Dean C. Mikkelsen wrote: > > > >> Hi Chris, > >> > >> Take a look at the following web-page. > >> I am leaning towards a problem now in defining which State Plane > >> Co-ordinate System is being used. i.e. one of the ones we are > using is > >> wrong - we may actually be north or south of the current one. > Now the > >> trick is to determine which one. A note to other readers > epsg:4326 is > >> WGS84. > >> > >> Did you try reprojecting the NAD27 Layer with the NAD83 > definition? > > > > > > Yes I did that and the layers switched positions. > > > > Or > > > >> with epsg:4326? What happens? > >> > > with setting the projection to the lat/long layers, they are not > found > > in outer space, not within the world extent. > > > >> http://www.wadetrim.com/resources/articles/sblocks.htm > > > > > > Thanks for the good reference. The reason why I got into this > situation > > was because I am four steps removed from the data provider. I > only > > managed to get the information that you already know and I was > hoping > > the information was correct. The other problem was that I was > not sure > > how to identify the issues, confidently. If not I will > definitely push > > for more information. > > > > Cheers and thanks again, > > Chris > > > > > -- > Christopher R. Thorne, GIS Specialist > - > christhorne at sympatico.ca > Tel:(613)523-6593, Ottawa ON Canada > ----------------------------- > From dcmikkelsen at SHAW.CA Tue Jun 14 09:14:23 2005 From: dcmikkelsen at SHAW.CA (Dean Mikkelsen) Date: Tue, 14 Jun 2005 09:14:23 -0700 Subject: EPSG code for... Message-ID: Sorry, a bad typo. MTM applies to Canada, not the US. Cheers, Dean ----- Original Message ----- From: Dean Mikkelsen Date: Tuesday, June 14, 2005 9:10 am Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > Hi again, > > MTM is defined for Canada. They are 3 degree Modified Transverse > Mercator projections. They will not apply to Canada. > > For a reference see the following web-sites: > > MTM: > http://www.geod.nrcan.gc.ca/images/products/MTM.jpg > > UTM: > http://www.geod.nrcan.gc.ca/images/products/UTM.jpg > > Both were referred to via: > http://www.geod.nrcan.gc.ca/index_e/online_apps_e/appNtv2_e/appntv2_utm_e.html > > Cheers, > Dean > > > > ----- Original Message ----- > From: "Christopher R. Thorne" > Date: Tuesday, June 14, 2005 7:36 am > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > > Hello me again, > > I finally tracked down the metadata for the data that was given > to > > me > > with the strange projection. Well it gets stranger. Here is what > I > > found. I have two shape files of the Los Angeles county > > > > 1st shape file : > > ---------------- > > Datum:NAD27 > > Units: Meters > > Ellipsoid:Clark 1866 > > Projection: UTM, Zone 11 > > > > * Possible EPSG codes found: > > > > # NAD27(76) / MTM zone 11 > > <2020> +proj=tmerc +lat_0=0 +lon_0=-82.5 +k=0.999900 +x_0=304800 > > +y_0=0 > > +ellps=clrk66 +units=m +no_defs no_defs <> > > > > # NAD27 / UTM zone 11N > > <26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m > > +no_defs > > no_defs <> > > > > 2nd shape file: > > > > Datum:NAD83 > > Units: Meters > > Ellipsoid:Clark 1866 > > Projection: UTM, Zone 11 > > > > * Possible EPSG Codes found: > > > > NONE FOUND..... > > > > This makes me think that NAD83 with a Clark 1866 Ellipsoid is > not > > a > > valid projection. Am I on the right trake of thinking or is > there > > actually an EPSG code with: > > > > +proj=utm +zone=11 +ellps=clrk66 +datum=NAD83 +units=m > > +no_defs > > no_defs <> > > > > Comments? > > Chris > > > > Christopher R. Thorne wrote: > > > Hello Dean, > > > > > > Dean C. Mikkelsen wrote: > > > > > >> Hi Chris, > > >> > > >> Take a look at the following web-page. > > >> I am leaning towards a problem now in defining which State Plane > > >> Co-ordinate System is being used. i.e. one of the ones we are > > using is > > >> wrong - we may actually be north or south of the current one. > > Now the > > >> trick is to determine which one. A note to other readers > > epsg:4326 is > > >> WGS84. > > >> > > >> Did you try reprojecting the NAD27 Layer with the NAD83 > > definition? > > > > > > > > > Yes I did that and the layers switched positions. > > > > > > Or > > > > > >> with epsg:4326? What happens? > > >> > > > with setting the projection to the lat/long layers, they are > not > > found > > > in outer space, not within the world extent. > > > > > >> http://www.wadetrim.com/resources/articles/sblocks.htm > > > > > > > > > Thanks for the good reference. The reason why I got into this > > situation > > > was because I am four steps removed from the data provider. I > > only > > > managed to get the information that you already know and I was > > hoping > > > the information was correct. The other problem was that I was > > not sure > > > how to identify the issues, confidently. If not I will > > definitely push > > > for more information. > > > > > > Cheers and thanks again, > > > Chris > > > > > > > > > -- > > Christopher R. Thorne, GIS Specialist > > - > > christhorne at sympatico.ca > > Tel:(613)523-6593, Ottawa ON Canada > > ----------------------------- > > > From baijingyu at HOTMAIL.COM Tue Jun 14 10:13:17 2005 From: baijingyu at HOTMAIL.COM (jingyu bai) Date: Tue, 14 Jun 2005 17:13:17 +0000 Subject: unsubscribe me! Message-ID: An HTML attachment was scrubbed... URL: From joanvp at YAHOO.COM Tue Jun 14 10:14:58 2005 From: joanvp at YAHOO.COM (joanvp) Date: Tue, 14 Jun 2005 10:14:58 -0700 Subject: Amein! and ArcMAP In-Reply-To: Message-ID: I had the same problem, I can't remember exactly how I solved. I thing I reinstalled Amein. Try it. Now it works. cheers --- Liz Godwin wrote: > I'm having the same problem. It is there, but > disabled. > > Help would be nice. I havn't had much time to figure > it out on my own. > > Liz > > On 6/14/05, Luca Manganelli > wrote: > > > > Hi, I have downloaded Amein! 1.0.1 [*] executable > and launched it. > > My arcMap 9 detected it correctly. The Amein > button is on the toolbar. > > Launched an MXD project, tried to click that > button and... I can see > > only the logo (and I cannot do anything else). > What's wrong? > > > > [*] Amein! is a plugin to convert from MXD to MAP > file > > > __________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ From christhorne at SYMPATICO.CA Tue Jun 14 10:22:37 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Tue, 14 Jun 2005 13:22:37 -0400 Subject: MrSid questions In-Reply-To: <931f8ea905060913493a57c75@mail.gmail.com> Message-ID: Hello List, I got the 1.2.6 version of the /gdalpulgins/gdal_mrsid.dll and /cgi-bin/lti_dsdk_dll.dll in the correct spots in ms4w and verified httpd.conf file had the correct setting GDAL_DATA "/ms4w/gdaldata") and GDAL_DRIVER_PATH "/ms4w". I am not sure if this is correct. Either way it did not work. I used the following layer definition: # LAYER # NAME "raster" # STATUS ON # DATA "1footpixels.sid" # TYPE RASTER # END I even tried version 1.2.5, but still same result. Any tips? Chris Frank Warmerdam wrote: > > Chris, > > I thnk if you dig into the MS4W mailing list archive you can find > an email from me about about MrSID support. Basically I build > a MrSID "plugin" for MS4W's version of GDAL that should allow > you to use MrSID files. You will still need to download the MrSID > DLLs from the Lizardtech web site yourself. > > Let me know if you run into problems. > > Best regards, -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue Jun 14 11:13:25 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 14 Jun 2005 13:13:25 -0500 Subject: Multiple Point Layers in MS 4.4.2. Message-ID: Hello List, Is anyone aware of problems with multiple POINT layers in MS 4.4.2? I am having difficulty getting two point layers to work together. The points overlap at certain points on the map. Ryan From christhorne at SYMPATICO.CA Tue Jun 14 11:42:41 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Tue, 14 Jun 2005 14:42:41 -0400 Subject: EPSG code for... In-Reply-To: <34f32a34bbff.34bbff34f32a@shaw.ca> Message-ID: Dean, thanks for the information. unfortunately it did not work out. I managed to overlay the data sets on top of each other using NAD83 with WGS84 and projected to 4326, there is still a southeast shift by a few hundred meters. When using NAD27 it was no good. I have basically given up, until I find a better GIS tools to figure out what is going on. Thanks again, Chris Dean Mikkelsen wrote: > Sorry, a bad typo. MTM applies to Canada, not the US. > > Cheers, > Dean > > ----- Original Message ----- > From: Dean Mikkelsen > Date: Tuesday, June 14, 2005 9:10 am > Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... > > >>Hi again, >> >>MTM is defined for Canada. They are 3 degree Modified Transverse >>Mercator projections. They will not apply to Canada. >> >>For a reference see the following web-sites: >> >>MTM: >>http://www.geod.nrcan.gc.ca/images/products/MTM.jpg >> >>UTM: >>http://www.geod.nrcan.gc.ca/images/products/UTM.jpg >> >>Both were referred to via: >>http://www.geod.nrcan.gc.ca/index_e/online_apps_e/appNtv2_e/appntv2_utm_e.html >> >>Cheers, >>Dean >> >> >> >>----- Original Message ----- >>From: "Christopher R. Thorne" >>Date: Tuesday, June 14, 2005 7:36 am >>Subject: Re: [UMN_MAPSERVER-USERS] EPSG code for... >> >> >>>Hello me again, >>>I finally tracked down the metadata for the data that was given >> >>to >> >>>me >>>with the strange projection. Well it gets stranger. Here is what >> >>I >> >>>found. I have two shape files of the Los Angeles county >>> >>>1st shape file : >>>---------------- >>>Datum:NAD27 >>>Units: Meters >>>Ellipsoid:Clark 1866 >>>Projection: UTM, Zone 11 >>> >>> * Possible EPSG codes found: >>> >>># NAD27(76) / MTM zone 11 >>><2020> +proj=tmerc +lat_0=0 +lon_0=-82.5 +k=0.999900 +x_0=304800 >>>+y_0=0 >>>+ellps=clrk66 +units=m +no_defs no_defs <> >>> >>># NAD27 / UTM zone 11N >>><26711> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD27 +units=m >>>+no_defs >>> no_defs <> >>> >>>2nd shape file: >>> >>>Datum:NAD83 >>>Units: Meters >>>Ellipsoid:Clark 1866 >>>Projection: UTM, Zone 11 >>> >>> * Possible EPSG Codes found: >>> >>> NONE FOUND..... >>> >>>This makes me think that NAD83 with a Clark 1866 Ellipsoid is >> >>not >> >>>a >>>valid projection. Am I on the right trake of thinking or is >> >>there >> >>>actually an EPSG code with: >>> >>> +proj=utm +zone=11 +ellps=clrk66 +datum=NAD83 +units=m >>>+no_defs >>>no_defs <> >>> >>>Comments? >>>Chris >>> >>>Christopher R. Thorne wrote: >>> >>>>Hello Dean, >>>> >>>>Dean C. Mikkelsen wrote: >>>> >>>> >>>>>Hi Chris, >>>>> >>>>>Take a look at the following web-page. >>>>>I am leaning towards a problem now in defining which State Plane >>>>>Co-ordinate System is being used. i.e. one of the ones we are >>> >>>using is >>> >>>>>wrong - we may actually be north or south of the current one. >>> >>>Now the >>> >>>>>trick is to determine which one. A note to other readers >>> >>>epsg:4326 is >>> >>>>>WGS84. >>>>> >>>>>Did you try reprojecting the NAD27 Layer with the NAD83 >>> >>>definition? >>> >>>> >>>>Yes I did that and the layers switched positions. >>>> >>>>Or >>>> >>>> >>>>>with epsg:4326? What happens? >>>>> >>>> >>>>with setting the projection to the lat/long layers, they are >> >>not >> >>>found >>> >>>>in outer space, not within the world extent. >>>> >>>> >>>>>http://www.wadetrim.com/resources/articles/sblocks.htm >>>> >>>> >>>>Thanks for the good reference. The reason why I got into this >>> >>>situation >>> >>>>was because I am four steps removed from the data provider. I >>> >>>only >>> >>>>managed to get the information that you already know and I was >>> >>>hoping >>> >>>>the information was correct. The other problem was that I was >>> >>>not sure >>> >>>>how to identify the issues, confidently. If not I will >>> >>>definitely push >>> >>>>for more information. >>>> >>>>Cheers and thanks again, >>>>Chris >>>> >>> >>> >>>-- >>>Christopher R. Thorne, GIS Specialist >>>- >>>christhorne at sympatico.ca >>>Tel:(613)523-6593, Ottawa ON Canada >>>----------------------------- >>> >> > -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From steve.lime at DNR.STATE.MN.US Tue Jun 14 12:31:01 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Jun 2005 14:31:01 -0500 Subject: Label placement Message-ID: Totally homegrown and pretty straightforward. Contact me offlist for details... Steve >>> Morten Nielsen 06/14/05 4:58 AM >>> I was just wondering how label placement on linestings are actually calculated. I.e. Rotation, placement, overlaps etc. Is there any documentation on this or is it a well-known algorithm that I can Google? Best regards /Morten Nielsen From steve.lime at DNR.STATE.MN.US Tue Jun 14 12:32:19 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Jun 2005 14:32:19 -0500 Subject: Multiple Point Layers in MS 4.4.2. Message-ID: Define not working together. Pictures always help. Steve >>> "Owens, Ryan J NWD02 CONTRACTOR" 06/14/05 1:13 PM >>> Hello List, Is anyone aware of problems with multiple POINT layers in MS 4.4.2? I am having difficulty getting two point layers to work together. The points overlap at certain points on the map. Ryan From jerl.simpso at GMAIL.COM Tue Jun 14 12:32:04 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Tue, 14 Jun 2005 14:32:04 -0500 Subject: DEM Elevation data Message-ID: Hi guys, I am wanting to add DEMs or some elevation/contour maps to my maps. But I am curious what works best with Mapserver. I have found several different resource, but am at a loss as to which one I need. The first one I tried, which was to download JPEG images and convert them to TIFF images, never actually show up as a layer. This may be a format issue on my part. I haven't dug into that yet. I found one that is a ETOPO2 Global 2-Minute Gridded Elevation Data. But I don't know what that is and not sure if it can be used. If someone knows a trick, I'd be please to find out. Similar issue with GLOBE files from NOAA. Not sure if I can convert them to a format that's useful to use with Mapserver. I'm sure there are other options, I just haven't found them. I appreciate any help anyone might be able to give. Thank you, Jerl From nsavard at DMSOLUTIONS.CA Tue Jun 14 13:11:00 2005 From: nsavard at DMSOLUTIONS.CA (Normand Savard) Date: Tue, 14 Jun 2005 16:11:00 -0400 Subject: Regular expression in Mapfile In-Reply-To: <42A0787B.90009@sympatico.ca> Message-ID: Christopher R. Thorne wrote: > > Also, does anyone have a good reference to regex? > > Chris > > Hi Chris, The book that I use is "Mastering Regular Expressions" from Jeffrey E. F. Friedl. ISBN: 0-596-00289-0 Norm From jporti68 at YAHOO.COM Tue Jun 14 13:21:54 2005 From: jporti68 at YAHOO.COM (Jose Luis Portillo) Date: Tue, 14 Jun 2005 13:21:54 -0700 Subject: gdal problem with solaris Message-ID: Hi! I'm trying to make available the "png raster" feature for the mapserver 4.4.2. The GDAL library seems to be the appropriate library to be installed in order for the mapserver to draw the feature. I installed the GDAL libraries in /usr/lib but the mapserver is unconscious of these libraries. Is there any configuration that has to be done for this to work? OS: Solaris 10 PHP: php4 Apache: Apache 2 Jose Luis Portillo/Juan Carlos Leonardo __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucamarle at GMAIL.COM Tue Jun 14 13:38:30 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Tue, 14 Jun 2005 22:38:30 +0200 Subject: Strange problem in a tileindex of shape files Message-ID: Sometimes technology is very odd! could someone give me a hint to discover my error? I did a tileindex (using ogrtindex) of several shp files with the same fields in dbf. All works well, here the map: LAYER NAME "incendi2002" STATUS ON TILEINDEX "/var/www/pmapper/comalo/incendi/incendi2002.shp" TILEITEM "Location" TYPE POLYGON TRANSPARENCY 60 METADATA "DESCRIPTION" "Incendi 2002|Incendi 2002|Incendi 2002" "RESULT_FIELDS" "COMUNE,STZ_FOREST,INCEND2002,M_LGN_DIST,SUP_TOT_HA,SUP_BOS_HA,SUP_NOBOS" "RESULT_HEADERS" "Comune,Stazione forestale,N? incendi,???,Superfice (ha),Sup boscosa (ha),Sup non boscosa (ha)|Comune,Stazione forestale,N? incendi,???,Superfice (ha),Sup boscosa (ha),Sup non boscosa (ha)|Comune,Stazione forestale,N? incendi,???,Superfice (ha),Sup boscosa (ha),Sup non boscosa (ha)" END LABELITEM "COMUNE" CLASS NAME "1 incendio nel 2002|1 incendio nel 2002|1 incendio nel 2002" EXPRESSION ([INCEND2002] = 1) COLOR 255 225 225 LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END CLASS NAME "2 incendi nel 2002|2 incendi nel 2002|2 incendi nel 2002" EXPRESSION ([INCEND2002] = 2) COLOR 255 175 175 LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END CLASS NAME "3 incendi nel 2002|3 incendi nel 2002|3 incendi nel 2002" EXPRESSION ([INCEND2002] = 3) COLOR 255 145 145 LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END CLASS NAME "4 incendi nel 2002|4 incendi nel 2002|4 incendi nel 2002" EXPRESSION ([INCEND2002] > 3) COLOR 255 85 81 LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END END The strange fact is that when I did the layer in the map, it was minimal and all worked well also for the query (single and multiple). When later I developed the map to the shown code the query doesn't work anymore, or better, it doesn't find any layer there. I tried to get back step by step to the previous situation but I'm no more able to obtain a query from this layer. Could you help me please? thanks a lot luca -- luca marletta icq: 70590647 From wer at CSTONE.NET Tue Jun 14 13:29:41 2005 From: wer at CSTONE.NET (William E Reid) Date: Tue, 14 Jun 2005 16:29:41 -0400 Subject: DEM Elevation data In-Reply-To: Message-ID: Just My 2 cents on the Subject. DEMs are no longer readily available from places like usgs. I am not really sure why. They are the easiest to work with (ie convert). If you are in the States.... at http://seamless.usgs.org you can download 3arc and 1arc second terrain data. It comes in ArcGrid Format. Though I have not seen a way to do this, I will be looking to convert them to geotiffs and shape files and dems with less granularity. A geotiff loads quickly and gives the best performance in mapserver (from my experience anyway) if you are just looking to make things look more interesting. Actually, you can download the data in Geotiff format, which is what I would recommend.... These might be more then what you want for granularity, I only dealt with 3arc and above data. National Elevation Dataset. I love em. Your Tiff? Make sure it is a geotiff. It needs to know where it is on the map. If you disable TRANFORM (set it to false) in your layer it will probably show up. But it needs to be a geotiff to show up properly. Hope that helps. -=Bill Jerl Simpson wrote: > Hi guys, > > I am wanting to add DEMs or some elevation/contour maps to my maps. > But I am curious what works best with Mapserver. I have found several > different resource, but am at a loss as to which one I need. > > The first one I tried, which was to download JPEG images and convert > them to TIFF images, never actually show up as a layer. This may be a > format issue on my part. I haven't dug into that yet. > > I found one that is a ETOPO2 Global 2-Minute Gridded Elevation Data. > But I don't know what that is and not sure if it can be used. If > someone knows a trick, I'd be please to find out. > > Similar issue with GLOBE files from NOAA. Not sure if I can convert > them to a format that's useful to use with Mapserver. > > I'm sure there are other options, I just haven't found them. > > I appreciate any help anyone might be able to give. > > Thank you, > > Jerl > From christhorne at SYMPATICO.CA Tue Jun 14 13:46:26 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Tue, 14 Jun 2005 16:46:26 -0400 Subject: Regular expression in Mapfile In-Reply-To: <42AF39D4.3060102@dmsolutions.ca> Message-ID: Thanks Norm, Bill gave me this link that he uses. http://www.phpbuilder.com/columns/dario19990616.php3 a nice little article. Chris Normand Savard wrote: > Christopher R. Thorne wrote: > >> >> Also, does anyone have a good reference to regex? >> >> Chris >> >> > Hi Chris, > > The book that I use is "Mastering Regular Expressions" from Jeffrey E. > F. Friedl. > > ISBN: 0-596-00289-0 > > Norm > -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From jerl.simpso at GMAIL.COM Tue Jun 14 13:55:02 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Tue, 14 Jun 2005 15:55:02 -0500 Subject: DEM Elevation data In-Reply-To: <42AF3E35.70302@cstone.net> Message-ID: Thank you sir, I think this will help me out. I guess there is a way to convert these to geotiff? Thanks again, jerl On 6/14/05, William E Reid wrote: > Just My 2 cents on the Subject. > > DEMs are no longer readily available from places like usgs. I am not > really sure why. They are the easiest to work with (ie convert). > > If you are in the States.... > > at http://seamless.usgs.org you can download 3arc and 1arc second > terrain data. It comes in ArcGrid Format. Though I have not seen a way > to do this, I will be looking to convert them to geotiffs and shape > files and dems with less granularity. > > A geotiff loads quickly and gives the best performance in mapserver > (from my experience anyway) if you are just looking to make things look > more interesting. > > Actually, you can download the data in Geotiff format, which is what I > would recommend.... These might be more then what you want for > granularity, I only dealt with 3arc and above data. > > National Elevation Dataset. I love em. > > Your Tiff? Make sure it is a geotiff. It needs to know where it is on > the map. If you disable TRANFORM (set it to false) in your layer it > will probably show up. But it needs to be a geotiff to show up properly. > > Hope that helps. > > -=Bill > > > Jerl Simpson wrote: > > Hi guys, > > > > I am wanting to add DEMs or some elevation/contour maps to my maps. > > But I am curious what works best with Mapserver. I have found several > > different resource, but am at a loss as to which one I need. > > > > The first one I tried, which was to download JPEG images and convert > > them to TIFF images, never actually show up as a layer. This may be a > > format issue on my part. I haven't dug into that yet. > > > > I found one that is a ETOPO2 Global 2-Minute Gridded Elevation Data. > > But I don't know what that is and not sure if it can be used. If > > someone knows a trick, I'd be please to find out. > > > > Similar issue with GLOBE files from NOAA. Not sure if I can convert > > them to a format that's useful to use with Mapserver. > > > > I'm sure there are other options, I just haven't found them. > > > > I appreciate any help anyone might be able to give. > > > > Thank you, > > > > Jerl > > > > From lucamarle at GMAIL.COM Tue Jun 14 14:21:19 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Tue, 14 Jun 2005 23:21:19 +0200 Subject: Strange problem in a tileindex of shape files In-Reply-To: <8b502010506141338569d5541@mail.gmail.com> Message-ID: I found by myself at last. I post here for someone with silly as me. I forgot TEMPLATE void in every CLASS section bye On 6/14/05, luca marletta wrote: > Sometimes technology is very odd! could someone give me a hint to > discover my error? > > I did a tileindex (using ogrtindex) of several shp files with the same > fields in dbf. > All works well, here the map: > LAYER > NAME "incendi2002" > STATUS ON > TILEINDEX "/var/www/pmapper/comalo/incendi/incendi2002.shp" > TILEITEM "Location" > TYPE POLYGON > TRANSPARENCY 60 > METADATA > "DESCRIPTION" "Incendi 2002|Incendi 2002|Incendi 2002" > "RESULT_FIELDS" > "COMUNE,STZ_FOREST,INCEND2002,M_LGN_DIST,SUP_TOT_HA,SUP_BOS_HA,SUP_NOBOS" > "RESULT_HEADERS" "Comune,Stazione forestale,N? incendi,???,Superfice > (ha),Sup boscosa (ha),Sup non boscosa (ha)|Comune,Stazione > forestale,N? incendi,???,Superfice (ha),Sup boscosa (ha),Sup non > boscosa (ha)|Comune,Stazione forestale,N? incendi,???,Superfice > (ha),Sup boscosa (ha),Sup non boscosa (ha)" > END > LABELITEM "COMUNE" > CLASS > NAME "1 incendio nel 2002|1 incendio nel 2002|1 incendio nel 2002" > EXPRESSION ([INCEND2002] = 1) > COLOR 255 225 225 > LABEL > COLOR 0 0 255 > TYPE TRUETYPE > FONT arial > SIZE 10 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > END > CLASS > NAME "2 incendi nel 2002|2 incendi nel 2002|2 incendi nel 2002" > EXPRESSION ([INCEND2002] = 2) > COLOR 255 175 175 > LABEL > COLOR 0 0 255 > TYPE TRUETYPE > FONT arial > SIZE 10 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > END > CLASS > NAME "3 incendi nel 2002|3 incendi nel 2002|3 incendi nel 2002" > EXPRESSION ([INCEND2002] = 3) > COLOR 255 145 145 > LABEL > COLOR 0 0 255 > TYPE TRUETYPE > FONT arial > SIZE 10 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > END > CLASS > NAME "4 incendi nel 2002|4 incendi nel 2002|4 incendi nel 2002" > EXPRESSION ([INCEND2002] > 3) > COLOR 255 85 81 > LABEL > COLOR 0 0 255 > TYPE TRUETYPE > FONT arial > SIZE 10 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > END > END > > The strange fact is that when I did the layer in the map, it was > minimal and all worked well also for the query (single and multiple). > When later I developed the map to the shown code the query doesn't > work anymore, or better, it doesn't find any layer there. > I tried to get back step by step to the previous situation but I'm no > more able to obtain a query from this layer. > > Could you help me please? > > thanks a lot > luca > > -- > luca marletta icq: 70590647 > -- luca marletta icq: 70590647 From steve.lime at DNR.STATE.MN.US Tue Jun 14 14:32:45 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Jun 2005 16:32:45 -0500 Subject: Strange problem in a tileindex of shape files Message-ID: First thing I would check would be make sure that the structure of the shapefile attribute tables are identical- same number of items, same order, same names. Without that you can see very strange problems crop up. Steve >>> luca marletta 06/14/05 3:38 PM >>> Sometimes technology is very odd! could someone give me a hint to discover my error? I did a tileindex (using ogrtindex) of several shp files with the same fields in dbf. All works well, here the map: LAYER NAME "incendi2002" STATUS ON TILEINDEX "/var/www/pmapper/comalo/incendi/incendi2002.shp" TILEITEM "Location" TYPE POLYGON TRANSPARENCY 60 METADATA "DESCRIPTION" "Incendi 2002|Incendi 2002|Incendi 2002" "RESULT_FIELDS" "COMUNE,STZ_FOREST,INCEND2002,M_LGN_DIST,SUP_TOT_HA,SUP_BOS_HA,SUP_NOBOS" "RESULT_HEADERS" "Comune,Stazione forestale,N? incendi,???,Superfice (ha),Sup boscosa (ha),Sup non boscosa (ha)|Comune,Stazione forestale,N? incendi,???,Superfice (ha),Sup boscosa (ha),Sup non boscosa (ha)|Comune,Stazione forestale,N? incendi,???,Superfice (ha),Sup boscosa (ha),Sup non boscosa (ha)" END LABELITEM "COMUNE" CLASS NAME "1 incendio nel 2002|1 incendio nel 2002|1 incendio nel 2002" EXPRESSION ([INCEND2002] = 1) COLOR 255 225 225 LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END CLASS NAME "2 incendi nel 2002|2 incendi nel 2002|2 incendi nel 2002" EXPRESSION ([INCEND2002] = 2) COLOR 255 175 175 LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END CLASS NAME "3 incendi nel 2002|3 incendi nel 2002|3 incendi nel 2002" EXPRESSION ([INCEND2002] = 3) COLOR 255 145 145 LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END CLASS NAME "4 incendi nel 2002|4 incendi nel 2002|4 incendi nel 2002" EXPRESSION ([INCEND2002] > 3) COLOR 255 85 81 LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END END The strange fact is that when I did the layer in the map, it was minimal and all worked well also for the query (single and multiple). When later I developed the map to the shown code the query doesn't work anymore, or better, it doesn't find any layer there. I tried to get back step by step to the previous situation but I'm no more able to obtain a query from this layer. Could you help me please? thanks a lot luca -- luca marletta icq: 70590647 From asimpson at I-55.COM Tue Jun 14 15:10:41 2005 From: asimpson at I-55.COM (Simpson) Date: Tue, 14 Jun 2005 17:10:41 -0500 Subject: I need your idea In-Reply-To: <42AE976F.3060005@deprem.gov.tr> Message-ID: I think the rectangle is what Mapserver zooms to within your extent. 414562,4617510 521317,4617510 0,0 400,0 ------------------------------------- | | | | | | | | | | | | | | | | | | | | ------------------------------------- 0,406 400,406 414562,4510820 521317,4510820 So in the above example, to zoom to the full extent you'd need to set the pixel extent rectangle to (0,406,400,0). The satellite imagery may not fill the entire output image, since Mapserver maintains aspect ratio. Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of orkun Sent: Tuesday, June 14, 2005 3:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] I need your idea hello I need your idea how can I show an satellite imagery in full extent when you click in menu. if you have time please look at : "http://landslide.deprem.gov.tr/cgi/map4.php" and click in "satellite" I just want it to fill whole map's window. I used php-mapscript and here is the code fragment: /$uydulayer->set("status",1); # on $minx=414562.225; $miny=4510820; $maxx=521317.775; $maxy=4617510; $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $zoom_rect = ms_newRectObj(); $zoom_rect->setextent(200,203,200,203); //satellite imagery pixel extents $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); $extent_to_html = $minx." ".$miny." " .$maxx." ".$maxy; /I will appreciate if you give a sense/ /Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From dmorissette at DMSOLUTIONS.CA Tue Jun 14 16:27:59 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 14 Jun 2005 19:27:59 -0400 Subject: MapServer 4.6 released Message-ID: MapServer 4.6.0 has just been released, just in time for MUM3. This new release represents the culmination of over two months of beta releases and six months of development. Highlights of new features include: * GEOS support * GML 3.1.0 support from WFS server * Improved threading support when using various MapScript flavors * SVG output support * Several enhancements to Oracle Spatial support (3D data, geodetic queries, getextent and Oracle compound polygons) * Unix and Windows build improvements * Can now build PHP/MapScript without the PHP source (PHP regex issues have been resolved) * Various MapScript bug fixes and improvments (very few API changes) * Gobs of other bug fixes and improvements. I included below a more detailed list of improvements and fixes since version 4.4 (excerpt from the HISTORY.TXT). The source package is available at http://mapserver.gis.umn.edu/dload.html. Prebuilt binaries for the various platforms, as well as the final version of the MapServer 4.6 documentation will be available shortly at the usual locations. Congrats and thanks to all of the developers, testers and doc contributors who helped make this release possible. Daniel Version 4.6.0 (2005-06-14) -------------------------- - Bug 1163 : Filter Encoding spatial operator is Intersects and not Intersect. - Fixed GEOS to shapeObj for multipolgon geometries. Version 4.6.0-rc1 (2005-06-09) ------------------------------ - Bug 1375: Fixed seg fault in mapscript caused by the USE_POINT_Z_M flag. This flag was not carried to the mapscript Makefile(s). - Bug 1367: Fixed PHP MapScript's symbolObj->setPoints() to correctly set symbolObj->sizex/sizey - Bug 1373: Added $layerObj->removeClass() to PHP MapScript (was already in SWIG MapScript) Version 4.6.0-beta3 (2005-05-27) -------------------------------- - Bug 1298 : enable Attribution element in wms Capabilities XML - Bug 1354: Added a regex wrapper, allowing MapServer to build with PHP compiled with its builtin regex - Bug 1364: HTML legend templates: support [if] tests on "group_name" in leg_group_html blocks, and for "class_name" in leg_class_html blocks. - Bug 1149: From WMS 1.1.1, SRS are given in individual tags in root Layer element. - First pass at properly handling XML exceptions from CONNECTIONTYPE WMS layers. Still needs some work. (bug 1246) - map.h/mapdraw.c: removed MAX/MIN macros in favour of MS_MAX/MS_MIN. - Bug 1341, 1342 : Parse the unit parameter for DWithin filter request. Set the layer tolerance and toleranceunit with paramaters parsed. - Bug 1277 : Support of multiple logical operators in Filter Encoding. - mapwcs.c: If msDrawRasterLayerLow() fails, ensure that the error message is posted as a WCS exception. - Added experimental support for "labelcache_map_edge_buffer" metadata to define a buffer area with no labels around the edge of a map (bug 1353) Version 4.6.0-beta2 (2005-05-11) -------------------------------- - Bug 179 : add a small buffer around the cliping rectangle to avoid lines around the edges. - Finished code to convert back and forth between GEOS geometries. Buffer and convex hull operations are exposed in mapscript. - fontset.fonts hash now exposed in mapscript (bug 1345). - Bug 1336 : Retreive distance value for DWithin filter request done with line and polygon shapes/ - Bug 985 / 1015: Don't render raster layers as classified if none of the classes has an expression set (gdal renderer only). - Bug 1344: Fixed several issues in writing of inline SYMBOLS when saving mapfile (missing quotes around CHARACTER and other string members of SYMBOL object, check for NULLs, and write correct identifiers for POSITION, LINECAP and LINEJOIN). Version 4.6.0-beta1 (2005-04-26) -------------------------------- - Bug 1305: Added support for gradient coloring in class styles - Bug 1335 : missing call to msInitShape in function msQueryByShape - Bug 804 : SWF output : Make sure that the layer index is consistent when saving movies if some of the layers are not drawn (because the status is off or out of scale ...) - Bug 1332 - shptreevis.c: fixed setting of this_rec, as the output dbf file was not getting any records at all. - Fixed Makefile.vc to make .exe files depend on the DLL, so if the DLL fails to build, things will stop. Avoids the need for unnecessary cleans on win32. Also fixed the rule for MS_VERSION for mapscriptvars. - Bug 1262 : the SERVICE parameter is now required for wms and wfs GetCapbilities request. It is not required for other WMS requests. It is required for all WFS requests. - Bug 1302 : the wfs/ows_service parameter is not used any more. The service is always set to WFS for WFS layers. - Bug 791: initialize some fields in msDBFCreate() - avoids crashes in some circumstances. - Bug 1329 : Apply sld named layer on all layers of the same group - Bug 1328 : support style's width parameter for line and polygon layers. - Bug 564: Fixed old problem with labels occasionally drawn upside down - Bug 1325: php mapscript function $class->settext needs only 1 argument. - Bug 1319: Fixed mutex creation (was creator-owned) in mapthread.c. win32 issue only. - Bug 1103: Set the default tolerance value based on the layer type. The default is now 3 for point and line layers and 0 for all the others. - Bug 1244: Removing Z and M parameter from pointObj by default. A new compilation option is available to active those option --enable-point-z-m. This gives an overall performance gain around 7 to 10%. - Bug 1225: MapServer now requires GD 2.0.16 or more recent - MapScript: shapeObj allocates memory for 4 value strings, shapeObj.setValue() lets users set values of a shapeObj. - MapScript: imageObj.getBytes() replaces imageObj.write() (bugs 1176, 1064). - Bug 1308: Correction of SQL expression generated on wfs filters for postgis/oracle layers. - Bug 1304: Avoid extra white space in gml:coordinates for gml:Box. - mapogr.c: Insure that tile index reading is restarted in msOGRLayerInitItemInfo() or else fastcgi repeat requests for a layer may fail on subsequent renders. - mapogr.c: Set a real OGRPolygon spatial filter, not just an OGRLinearRing. Otherwise GEOS enabled OGR builds will do expensive, and incorrect Intersects() tests. - mapogr.cpp / mapprimitive.c: Optimize msAddLine() and add msAddLineDirectly() - mapprimitive.c: Optimizations in msTransformShapeToPixel() (avoid division) - map.h: Made MS_NINT inline assembly for win32, linux/i86. - mapprimitive.c: optimized msClipPolygonRect and msClipPolylineRect for case where the shape is completely inside the clip rect. - Add support for SVG output. See Bug 1281 for details. - Bug 1231: use mimetype "image/png; mode=24bits" for 24bit png format. This makes it seperately selectable by WMS. - Bug 1206: Applied locking patch for expression parser for rasters. - Bug 1273: Fixed case in msProjectPoint() were in or out are NULL and a failure occurs to return NULL. Fixed problem of WMS capabilities with 'inf' in it. - SLD generation bug 1150 : replacing tag to - Fixed bug 1118 in msOWSGetLayerExtent() (mapows.c). - Fixed ogcfilter bug #1252 - Turned all C++ (//) comments into C comments (bug 1238) - mapproject.h/configure.in: Don't check for USE_PROJ_API_H anymore. Assume we have a modern PROJ.4. - Bug 839: Fix memory leak of font name in label cache (in mapfile.c). - Added msForceTmpFileBase() and mapserv -tmpbase switch to allow overriding temporary file naming conventions. Mainly intended to make writing testscripts using mapserv easier. FrankW. - maporaclespatil.c: Bug fix for: #1109, #1110, #1111, #1112, #1136, #1210, #1211, #1212, #1213. Support for compound polygons, fixed internal sql to stay more accurate for geodetic data, added the support for getextent function. Added VERSION token for layer data string. - mapimagemap.c: Preliminary implementation of support for emitting MS_SYMBOL_VECTOR symbols in msDrawMarkerSymbolIM(). - Bug 1204: Added multi-threading support in mapthread.c. List of connections is managed within a mutex lock, and connections are only allowed to be used by one thread at a time. - Bug 1185 : php/mapscript : add constant MS_GD_ALPHA - Bug 1173: In HTML legend, added opt_flag support for layer groups. - Bug 1179: added --with-warnings configure switch, overhauled warning logic. - Bug 1168: Improve autoscaling through classification rounding issues. - Fixed bug writing RGB/RGBA images via GDAL output on bigendian systems. - Bug 1152 : Fix WMS style capabilities output for FastCGI enabled builds. - Bug 1135 : Added support for rotating labels with the map if they were rendered with some particular angle already. - Bug 1143 : Missing call to msInitShape. - Fixed PHP5 support for windows : Bug 1100. - Correct bug 1151 : generates twice a tag when generating an SLD. This was happening the style did not have a size set. - Oracle Spatial. Fixed problem with LayerClose function. Added token NONE for DATA statement. Thanks Valik with the hints about the LayerClose problem and Francois with the hints about NONE token. - numpoints and stylelength memebers of the symbol object needs to be in sync with the low level values after calles to setpoints ans setstyle (Bug 1137). - Use doubles instead of integers in function php3_ms_symbol_setPoints (Bug 1137). - Change the output of the expression when using a wild card for PropertyIsLike (Bug 1107). - Delete temporary sld file created on disk (Bug 1123) - Fixed msFreeFileCtx() to call free() instead of gdFree() as per bug 1125. Also renamed gdFreeFileCtx() to msFreeFileCtx(). - Ensure error stack is cleared before accepting another call in FastCGI mode in mapserv.c. Bug 1122 - Support translation of all geometry types to points in mapogr.cpp (now also supports multipolygon, multilinestring and geometrycollection. bug 1124. - Added support for passing OGR layer FILTER queries down to OGR via the SetAttributeFilter() method if prefixed with WHERE keyword. Bug 1126. - Fixed support for SIZEUNITS based scaling of text when map is rotated. Bug 1127. From justin.fail at GMAIL.COM Tue Jun 14 16:44:02 2005 From: justin.fail at GMAIL.COM (Justin Fail) Date: Wed, 15 Jun 2005 11:44:02 +1200 Subject: Browse mode in Tutorial Message-ID: Hi all, I'm new to using MapServer and have run into a snag when attempting the tutorials from example number 1-9. It involves when using the browse mode for the map inside a form. I get the following message when clicking inside my (empty) browse map form: msEvalRegex(): Regular expression error. String ([map]) failed expression test. My static map appears fine, so I assume that somewhere its failing to update the tags inside the form. The only thing that I can think of is that my IMAGEPATH and IMAGEURL settings are not correct, but I have tried every alternative option for these without any sucess. Here are my current WEB settings: WEB TEMPLATE 'example1-9.html' IMAGEPATH 'C:\Program Files\Apache Group\Apache2\htdocs\tmp\' IMAGEURL 'http://localhost/tmp/' END Obviously, I'm running a windows version using Apache. Any other ideas? Cheers, Justin. From bino at INDOAKSES-ONLINE.COM Tue Jun 14 18:16:16 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Wed, 15 Jun 2005 08:16:16 +0700 Subject: PhpMapScript vs MapFile Message-ID: Hi Jacob, Thanks for your enlightment. Means a lot for me. Regards -bino- ----- Original Message ----- From: Jacob Delfos To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, June 14, 2005 2:35 PM Subject: Re: [UMN_MAPSERVER-USERS] PhpMapScript vs MapFile Bino, Yes, but it's quite a pain to define the styles and classes, as I found out today...... This is the approach using (for point files), which seems to work: $datasetlayer = ms_newLayerObj( $oMap ); $datasetlayer->set( "name", "dataset" ); $datasetlayer->set( "type", $oLayer->type); $datasetlayer->set( "status", MS_ON ); $datasetlayer->set( "data", "datasetShapefile"); $datasetlayer->set( "template", "ttt" ); $datasetlayer->set( "tolerance", 5 ); $datasetlayer->set( "toleranceunits", MS_PIXELS); $datasetlayer->setProjection($mapprojection); $queryclass = ms_newClassObj($datasetlayer); $queryclass->set("name", "Query result"); $queryclass->set("status", MS_ON); $style = ms_newStyleObj($queryclass); $symbolid = ms_newSymbolObj($oMap, "circle"); $oSymbol = $oMap->getsymbolobjectbyid($symbolid); $oSymbol->setpoints(Array(1,1)); $oSymbol->set("filled",MS_TRUE); $oSymbol->set("inmapfile", MS_TRUE); $style->color->setRGB(255, 255, 0); $style->set("symbolname", "circle"); $style->set("size", "8"); You should be able to figure it out based on the docs: http://www.maptools.org/php_mapscript/index.phtml?page=php_mapscript_docs44.txt regards, Jacob ------------------------------------------------------------------------------ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of bino_oetomo Sent: 14 June 2005 15:23 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PhpMapScript vs MapFile Hi All . Is it true that we can define layer in PHPMapScript so we don't need layer definition in the MapFile ? If so , kindly please give me url that have example on how to do complette Layer definition (inc all the classes) in PhpMapscript. Regards -bino- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bino at INDOAKSES-ONLINE.COM Tue Jun 14 18:15:07 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Wed, 15 Jun 2005 08:15:07 +0700 Subject: Multiple Point Layers in MS 4.4.2. Message-ID: Hi, With enlightment from all the seniors, I did my second point-layer. But in my case, the second layer didn't come from a shape file (or the like) but came from an odbc file. Got no problem from the first try. For all the seniors, thx for your help Regards -bino- ----- Original Message ----- From: "Owens, Ryan J NWD02 CONTRACTOR" To: Sent: Wednesday, June 15, 2005 1:13 AM Subject: [UMN_MAPSERVER-USERS] Multiple Point Layers in MS 4.4.2. Hello List, Is anyone aware of problems with multiple POINT layers in MS 4.4.2? I am having difficulty getting two point layers to work together. The points overlap at certain points on the map. Ryan From godwin.liz at GMAIL.COM Tue Jun 14 20:02:00 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Tue, 14 Jun 2005 23:02:00 -0400 Subject: MapServer 4.6 released In-Reply-To: <42AF67FF.4060803@dmsolutions.ca> Message-ID: Fantastic! Good work guys!!! I noticed in the bugzilla that the buffer operation is available only to SWIG mapscript varieties, and not yet PHP Mapscript. Can someone comment on the timing of this improvement? Or am I missing something in the code? It's a feature I'd love to have...some would say need to have. Cheers, and see you all soon! Liz On 6/14/05, Daniel Morissette wrote: > > MapServer 4.6.0 has just been released, just in time for MUM3. This new > release represents the culmination of over two months of beta releases > and six months of development. Highlights of new features include: > > * GEOS support > * GML 3.1.0 support from WFS server > * Improved threading support when using various MapScript flavors > * SVG output support > * Several enhancements to Oracle Spatial support (3D data, geodetic > queries, getextent and Oracle compound polygons) > * Unix and Windows build improvements > * Can now build PHP/MapScript without the PHP source (PHP regex > issues have been resolved) > * Various MapScript bug fixes and improvments (very few API changes) > * Gobs of other bug fixes and improvements. > > I included below a more detailed list of improvements and fixes since > version 4.4 (excerpt from the HISTORY.TXT). > > The source package is available at > http://mapserver.gis.umn.edu/dload.html. Prebuilt binaries for the > various platforms, as well as the final version of the MapServer 4.6 > documentation will be available shortly at the usual locations. > > Congrats and thanks to all of the developers, testers and doc > contributors who helped make this release possible. > > Daniel > > > > Version 4.6.0 (2005-06-14) > -------------------------- > > - Bug 1163 : Filter Encoding spatial operator is Intersects > and not Intersect. > > - Fixed GEOS to shapeObj for multipolgon geometries. > > > Version 4.6.0-rc1 (2005-06-09) > ------------------------------ > > - Bug 1375: Fixed seg fault in mapscript caused by the USE_POINT_Z_M flag. > This flag was not carried to the mapscript Makefile(s). > > - Bug 1367: Fixed PHP MapScript's symbolObj->setPoints() to correctly > set symbolObj->sizex/sizey > > - Bug 1373: Added $layerObj->removeClass() to PHP MapScript (was already > in SWIG MapScript) > > > Version 4.6.0-beta3 (2005-05-27) > -------------------------------- > > - Bug 1298 : enable Attribution element in wms Capabilities XML > > - Bug 1354: Added a regex wrapper, allowing MapServer to build with PHP > compiled with its builtin regex > > - Bug 1364: HTML legend templates: support [if] tests on "group_name" in > leg_group_html blocks, and for "class_name" in leg_class_html blocks. > > - Bug 1149: From WMS 1.1.1, SRS are given in individual tags in root Layer > element. > > - First pass at properly handling XML exceptions from CONNECTIONTYPE WMS > layers. Still needs some work. (bug 1246) > > - map.h/mapdraw.c: removed MAX/MIN macros in favour of MS_MAX/MS_MIN. > > - Bug 1341, 1342 : Parse the unit parameter for DWithin filter request. > Set the layer tolerance and toleranceunit with paramaters parsed. > > - Bug 1277 : Support of multiple logical operators in Filter Encoding. > > - mapwcs.c: If msDrawRasterLayerLow() fails, ensure that the error message > is posted as a WCS exception. > > - Added experimental support for "labelcache_map_edge_buffer" metadata to > define a buffer area with no labels around the edge of a map (bug 1353) > > > Version 4.6.0-beta2 (2005-05-11) > -------------------------------- > > - Bug 179 : add a small buffer around the cliping rectangle to > avoid lines around the edges. > > - Finished code to convert back and forth between GEOS geometries. > Buffer and > convex hull operations are exposed in mapscript. > > - fontset.fonts hash now exposed in mapscript (bug 1345). > > - Bug 1336 : Retreive distance value for DWithin filter request > done with line and polygon shapes/ > > - Bug 985 / 1015: Don't render raster layers as classified if none of > the classes has an expression set (gdal renderer only). > > - Bug 1344: Fixed several issues in writing of inline SYMBOLS when saving > mapfile (missing quotes around CHARACTER and other string members of > SYMBOL > object, check for NULLs, and write correct identifiers for POSITION, > LINECAP and LINEJOIN). > > > Version 4.6.0-beta1 (2005-04-26) > -------------------------------- > > - Bug 1305: Added support for gradient coloring in class styles > > - Bug 1335 : missing call to msInitShape in function msQueryByShape > > - Bug 804 : SWF output : Make sure that the layer index is consistent > when saving movies if some of the layers are not drawn (because the > status is off or out of scale ...) > > - Bug 1332 - shptreevis.c: fixed setting of this_rec, as the output dbf > file was not getting any records at all. > > - Fixed Makefile.vc to make .exe files depend on the > DLL, so if the DLL > fails to build, things will stop. Avoids the need for unnecessary > cleans on win32. Also fixed the rule for MS_VERSION for mapscriptvars. > > - Bug 1262 : the SERVICE parameter is now required for wms and wfs > GetCapbilities request. It is not required for other WMS requests. > It is required for all WFS requests. > > - Bug 1302 : the wfs/ows_service parameter is not used any more. The > service is always set to WFS for WFS layers. > > - Bug 791: initialize some fields in msDBFCreate() - avoids crashes in > some circumstances. > > - Bug 1329 : Apply sld named layer on all layers of the same group > > - Bug 1328 : support style's width parameter for line and polygon layers. > > - Bug 564: Fixed old problem with labels occasionally drawn upside down > > - Bug 1325: php mapscript function $class->settext needs only 1 argument. > > - Bug 1319: Fixed mutex creation (was creator-owned) in mapthread.c. win32 > issue only. > > - Bug 1103: Set the default tolerance value based on the layer type. > The default is now 3 for point and line layers and 0 for all the others. > > - Bug 1244: Removing Z and M parameter from pointObj by default. A new > compilation option is available to active those option > --enable-point-z-m. > This gives an overall performance gain around 7 to 10%. > > - Bug 1225: MapServer now requires GD 2.0.16 or more recent > > - MapScript: shapeObj allocates memory for 4 value strings, > shapeObj.setValue() > lets users set values of a shapeObj. > > - MapScript: imageObj.getBytes() replaces imageObj.write() (bugs 1176, > 1064). > > - Bug 1308: Correction of SQL expression generated on wfs filters for > postgis/oracle layers. > > - Bug 1304: Avoid extra white space in gml:coordinates for gml:Box. > > - mapogr.c: Insure that tile index reading is restarted in > msOGRLayerInitItemInfo() or else fastcgi repeat requests for a layer may > fail on subsequent renders. > > - mapogr.c: Set a real OGRPolygon spatial filter, not just an > OGRLinearRing. > Otherwise GEOS enabled OGR builds will do expensive, and > incorrect Intersects() tests. > > - mapogr.cpp / mapprimitive.c: Optimize msAddLine() and add > msAddLineDirectly() > > - mapprimitive.c: Optimizations in msTransformShapeToPixel() (avoid > division) > > - map.h: Made MS_NINT inline assembly for win32, linux/i86. > > - mapprimitive.c: optimized msClipPolygonRect and msClipPolylineRect for > case where the shape is completely inside the clip rect. > > - Add support for SVG output. See Bug 1281 for details. > > - Bug 1231: use mimetype "image/png; mode=24bits" for 24bit png format. > This makes it seperately selectable by WMS. > > - Bug 1206: Applied locking patch for expression parser for rasters. > > - Bug 1273: Fixed case in msProjectPoint() were in or out are NULL and > a failure occurs to return NULL. Fixed problem of WMS capabilities with > 'inf' in it. > > - SLD generation bug 1150 : replacing tag to > > - Fixed bug 1118 in msOWSGetLayerExtent() (mapows.c). > > - Fixed ogcfilter bug #1252 > > - Turned all C++ (//) comments into C comments (bug 1238) > > - mapproject.h/configure.in: Don't check for USE_PROJ_API_H anymore. > Assume > we have a modern PROJ.4. > > - Bug 839: Fix memory leak of font name in label cache (in mapfile.c). > > - Added msForceTmpFileBase() and mapserv -tmpbase switch to allow > overriding > temporary file naming conventions. Mainly intended to make writing > testscripts using mapserv easier. FrankW. > > - maporaclespatil.c: Bug fix for: #1109, #1110, #1111, #1112, #1136, > #1210, > #1211, #1212, #1213. Support for compound polygons, fixed internal > sql to > stay more accurate for geodetic data, added the support for getextent > function. Added VERSION token for layer data string. > > - mapimagemap.c: Preliminary implementation of support for emitting > MS_SYMBOL_VECTOR symbols in msDrawMarkerSymbolIM(). > > - Bug 1204: Added multi-threading support in mapthread.c. List of > connections > is managed within a mutex lock, and connections are only allowed to > be used > by one thread at a time. > > - Bug 1185 : php/mapscript : add constant MS_GD_ALPHA > > - Bug 1173: In HTML legend, added opt_flag support for layer groups. > > - Bug 1179: added --with-warnings configure switch, overhauled warning > logic. > > - Bug 1168: Improve autoscaling through classification rounding issues. > > - Fixed bug writing RGB/RGBA images via GDAL output on bigendian systems. > > - Bug 1152 : Fix WMS style capabilities output for FastCGI enabled builds. > > - Bug 1135 : Added support for rotating labels with the map if they were > rendered with some particular angle already. > > - Bug 1143 : Missing call to msInitShape. > > - Fixed PHP5 support for windows : Bug 1100. > > - Correct bug 1151 : generates twice a tag when generating an SLD. > This was happening the style did not have a size set. > > - Oracle Spatial. Fixed problem with LayerClose function. Added token NONE > for DATA statement. Thanks Valik with the hints about the LayerClose > problem > and Francois with the hints about NONE token. > > - numpoints and stylelength memebers of the symbol object needs to be in > sync > with the low level values after calles to setpoints ans setstyle (Bug > 1137). > > - Use doubles instead of integers in function php3_ms_symbol_setPoints > (Bug 1137). > > - Change the output of the expression when using a wild card for > PropertyIsLike (Bug 1107). > > - Delete temporary sld file created on disk (Bug 1123) > > - Fixed msFreeFileCtx() to call free() instead of gdFree() as per bug > 1125. > Also renamed gdFreeFileCtx() to msFreeFileCtx(). > > - Ensure error stack is cleared before accepting another call in FastCGI > mode in mapserv.c. Bug 1122 > > - Support translation of all geometry types to points in mapogr.cpp (now > also supports multipolygon, multilinestring and geometrycollection. > bug 1124. > > - Added support for passing OGR layer FILTER queries down to OGR via the > SetAttributeFilter() method if prefixed with WHERE keyword. Bug 1126. > > - Fixed support for SIZEUNITS based scaling of text when map is rotated. > Bug 1127. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bino at INDOAKSES-ONLINE.COM Tue Jun 14 20:58:06 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Wed, 15 Jun 2005 10:58:06 +0700 Subject: displaying xy coordinates from database Message-ID: ----- Original Message ----- From: "Jessica Deegan" To: Sent: Monday, June 13, 2005 11:33 PM Subject: [UMN_MAPSERVER-USERS] displaying xy coordinates from database > Greetings list, > > A newbie to PHP/Mapscript, I am trying to display XY coordinates from a > selected set of points (the XY to be displayed are a different location from > selected point). > > As a test, I was successful in adding a dynamic point where a user clicks on > the map using the sample found at > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint , but I'm > at a loss to where to begin this process from a database perspective. My > data are stored in a PostgreSQL database. > I'm using MS4W with Access-database (*.mdb) I Use OGR ODBC to access the database. here is my layer definition LAYER #from MDB NAME lay-lokasi TYPE POINT CONNECTIONTYPE OGR CONNECTION "lokasi.ovf" DATA "ogr-lok" STATUS DEFAULT LABELITEM lbl CLASS SYMBOL 6 SIZE 10 COLOR 255 0 255 LABEL SIZE MEDIUM TYPE BITMAP ANTIALIAS TRUE POSITION UC COLOR 0 100 255 END END END And here is my OVF definition : ODBC:user/pwd at dsn loktbl wkbPoint WGS84 Work like a charm regards -bino- From bino at INDOAKSES-ONLINE.COM Tue Jun 14 21:06:25 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Wed, 15 Jun 2005 11:06:25 +0700 Subject: Dynamic point Message-ID: ----- Original Message ----- From: "Jessica Deegan" To: Sent: Monday, June 13, 2005 11:33 PM Subject: [UMN_MAPSERVER-USERS] displaying xy coordinates from database > As a test, I was successful in adding a dynamic point where a user clicks on > the map using the sample found at > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint , but I'm > at a loss to where to begin this process from a database perspective. My > data are stored in a PostgreSQL database. > While I got success in adding point from database, i got failed in adding dynamic point . The graph is 600x600 pixel I want to add a single point in x=300 and y=300 Here is my phpmapscript setExtent(110.366, -7.79127, 110.376, -7.78127); #create the point $pt=ms_newPointObj(); $pt->setXY(300,300); #Draw Map and Add point $img=$oMap->draw(); $layer = $oMap->getLayerByName('INLINE'); $pt->draw($oMap, $layer, $img, "AA", 'yuuhuu'); $image_url=$img->saveWebImage(); ?> And Here is my layer definition LAYER NAME "INLINE" TYPE POINT STATUS DEFAULT CLASS NAME "AA" SYMBOL 1 SIZE 4 COLOR 0 255 255 LABEL COLOR 255 0 0 SIZE LARGE ANTIALIAS TRUE POSITION UC END END #class END #layer Please give me a fix-clue Regards -bino- From vincent.dacol at LAPOSTE.NET Wed Jun 15 00:02:07 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Wed, 15 Jun 2005 09:02:07 +0200 Subject: Wfs filter Message-ID: Hi the list, I want to apply a filter on my WFS server. But this simple thinks seem harder than I think. The original data is a shape file with attribut and geographique data. The result of the filter is an empty GML file. Here is a copy of my WFS mapserver client and the GML file. Thanks for the help. Extract of WFS layer in the Client mapfile: CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L93_WFS.map&" METADATA "wfs_service" "WFS" "wfs_version" "1.0.0" "wfs_typename" "France_L93_Name" "wfs_connectiontimeout" "120" "wfs_filter" "PERIMETRE300" END The GML data : missing Bye, Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From bill at BINKO.NET Wed Jun 15 00:15:20 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 15 Jun 2005 03:15:20 -0400 Subject: Adding Projection to ECW files ? Message-ID: Hi everyone, First, enjoy the conference: this can wait, but I wanted to ask while it was fresh. Wish I could join you. I have had some recent success with my raster project... 1) I have gotten GDAL & ECW to work on Linux (bug in ECW) 2) I have gotten gdaltindex to generate a tileindex of my DOQQs 3) I have gotten Mapserver to show my images (YAY) if I set the projection to UTM Zone 17N in the mapfile The problem is that the ECW files don't seem to have the UTM 17N associated with them in any metadata that GDAL reads. They come with .aux, .ecw, .ecw.xml, .ecw.aux.xml, and .html files for each image. Now, when I run gdalinfo on the file, I get this: [bill at fastcat ecw_rgb]$ gdalinfo dq4517ne.ecw Driver: ECW/ERMapper Compressed Wavelets Size is 6199, 7064 Coordinate System is: LOCAL_CS["LOCAL", UNIT["Meter",1]] Origin = (397031.442000,3277747.800000) Pixel Size = (1.00000000,-1.00000000) Corner Coordinates: Upper Left ( 397031.442, 3277747.800) Lower Left ( 397031.442, 3270683.800) Upper Right ( 403230.442, 3277747.800) Lower Right ( 403230.442, 3270683.800) Center ( 400130.942, 3274215.800) Band 1 Block=6199x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=6199x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=6199x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary So, I know that it has the boundary info, and I don't need separate .tfw (or equivalent). However, notice the LOCAL_CS -- it didn't find the projection information. Is there any way I can add this to the files? It should be the same for all of them. Without it, gdal_merge.py blows up, and I can't create summary images :( I know this is long winded, but can anyone help? Thanks Bill From temiz at DEPREM.GOV.TR Wed Jun 15 00:22:07 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Wed, 15 Jun 2005 10:22:07 +0300 Subject: I need your idea In-Reply-To: Message-ID: thank you for your interest Simpson wrote: >I think the rectangle is what Mapserver zooms to within your extent. > >414562,4617510 521317,4617510 >0,0 400,0 >------------------------------------- >| | >| | >| | >| | >| | >| | >| | >| | >| | >| | >------------------------------------- >0,406 400,406 >414562,4510820 521317,4510820 > >So in the above example, to zoom to the full extent you'd need to set the >pixel extent rectangle to (0,406,400,0). >The satellite imagery may not fill the entire output image, since Mapserver >maintains aspect ratio. > > if Mapserver maintains aspect ratio, all my efforts will be useless. But with zoom tool I can achieve the zooming of satellite imagery. Besides, I tried (0,406,400,0) pixel extent. The image is unzoomed. >Drew. > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of orkun >Sent: Tuesday, June 14, 2005 3:38 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] I need your idea > > >hello > >I need your idea >how can I show an satellite imagery in full extent when >you click in menu. > >if you have time please look at : > >"http://landslide.deprem.gov.tr/cgi/map4.php" and click in "satellite" >I just want it to fill whole map's window. > >I used php-mapscript and here is the code fragment: > > /$uydulayer->set("status",1); # on > > $minx=414562.225; > $miny=4510820; > $maxx=521317.775; > $maxy=4617510; > > $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); > $map->setextent($extent_to_set[0],$extent_to_set[1], > $extent_to_set[2],$extent_to_set[3]); > > > $my_extent = ms_newrectObj(); > > $my_extent->setextent($extent_to_set[0],$extent_to_set[1], > >$extent_to_set[2],$extent_to_set[3]); > > > $zoom_rect = ms_newRectObj(); > > $zoom_rect->setextent(200,203,200,203); //satellite imagery >pixel extents > > $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); > > $extent_to_html = $minx." ".$miny." " > .$maxx." ".$maxy; > >/I will appreciate if you give a sense/ > >/Ahmet Temiz > >______________________________________ >XamimeLT - installed on mailserver for domain @deprem.gov.tr >Queries to: postmaster at deprem.gov.tr >______________________________________ >The views and opinions expressed in this e-mail message are the sender's own >and do not necessarily represent the views and the opinions of Earthquake >Research Dept. >of General Directorate of Disaster Affairs. > >Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak >T.C. >B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte >degildir. > > > > regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 15 00:30:22 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 15 Jun 2005 09:30:22 +0200 Subject: Wfs filter Message-ID: Just checking, did you set DUMP TRUE on your server LAYER? Can you get it to work by making a HTTP GET request directly to your server using the same Filter, something like which is described in here: http://mapserver.gis.umn.edu/doc/filter-encoding-howto.html ? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "vincent.dacol" 06/15/05 09:02am >>> Hi the list, I want to apply a filter on my WFS server. But this simple thinks seem harder than I think. The original data is a shape file with attribut and geographique data. The result of the filter is an empty GML file. Here is a copy of my WFS mapserver client and the GML file. Thanks for the help. Extract of WFS layer in the Client mapfile: CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L93_WFS.map&" METADATA "wfs_service" "WFS" "wfs_version" "1.0.0" "wfs_typename" "France_L93_Name" "wfs_connectiontimeout" "120" "wfs_filter" "PERIMETRE300" END The GML data : missing Bye, Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From philippe.gondek at GMAIL.COM Tue Jun 14 03:06:42 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Tue, 14 Jun 2005 12:06:42 +0200 Subject: PHP/Mapscript Query Message-ID: Hi, I use PHP/Mapscript. I want to click on my map and see the object I clicked highlighted and see the metadata of the object. I don't see any good documentation about this functionnality... How can I do??? From juan.castaneda at NUIGALWAY.IE Wed Jun 15 01:29:49 2005 From: juan.castaneda at NUIGALWAY.IE (Juan Carlos Castaneda) Date: Wed, 15 Jun 2005 09:29:49 +0100 Subject: Mapscript programming Message-ID: Dear List, I am newbie to Mapserver and I was wondering where to start programming. I need to create a web application but I don't want to use the CGI Mapserver. I would like to program my own application -apply my own security, querying other resources,... I have been reading the documentation available about Mapscript and as far as I could figure there are 2 flavours: PHP and those languages that use SWIG. Both access the Mapserver C API. I was wondering if you could give me pros/cons of both aproaches (PHP vs SWIG). I have felt like if you are going with SWIG you are pretty much on your own, while the documentation for PHP is better. I have some background programming in Java - servlets and I would like to continue programming on that. Are there any differences between Linux/Windows? Thank you for your help Regards, Juan C From xkarel at MAIL.RU Wed Jun 15 02:15:49 2005 From: xkarel at MAIL.RU (=?koi8-r?Q?=F3=FB=E1?=) Date: Wed, 15 Jun 2005 13:15:49 +0400 Subject: Carlos Eduardo Sibaja Salazar Message-ID: Small example use function processLegendTemplate function DrawHTMLLegend() { echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo $GLOBALS["goMap"]->processLegendTemplate( array() ); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Update?
"; } From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Wed Jun 15 03:56:24 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Wed, 15 Jun 2005 05:56:24 -0500 Subject: Multiple Point Layers in MS 4.4.2. Message-ID: Hi Steve, Thanks for responding. A Minnesotan! I'm originally from the TC. I have a shape file that is strictly points on a map. The points are specific data collection points that we have on a river we watch over. Then, I have an Oracle Spatial connection to a database that does a query for boat ramps on the same river. Each point represents a specific boat ramp. Many points overlap each other when "zoomed" out. I'm sure if I were to zoom in on the map, the points would be spread out further. Both function separately, but one of the point layers needs to be commented out in order for the other to work. They both will not show up at the same time. Does this help? Thanks again. Would the code help? Ryan -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 14, 2005 2:32 PM To: MAPSERVER-USERS at lists.umn.edu; Owens, Ryan J NWD02 CONTRACTOR Subject: Re: [UMN_MAPSERVER-USERS] Multiple Point Layers in MS 4.4.2. Define not working together. Pictures always help. Steve >>> "Owens, Ryan J NWD02 CONTRACTOR" 06/14/05 1:13 PM >>> Hello List, Is anyone aware of problems with multiple POINT layers in MS 4.4.2? I am having difficulty getting two point layers to work together. The points overlap at certain points on the map. Ryan From asimpson at I-55.COM Wed Jun 15 04:57:32 2005 From: asimpson at I-55.COM (Simpson) Date: Wed, 15 Jun 2005 06:57:32 -0500 Subject: I need your idea In-Reply-To: <42AFD71F.3040301@deprem.gov.tr> Message-ID: I think your imagery will completely fill output image if dimensions of output image are adjusted to the same aspect ratio as your imagery. x 521317 - 414562 = 106755 y 4617510- 4510820 = 106690 ratio y/x = 0.999391 So in pixels, if you prefer to leave your x at 400, then your y should be 400 * 0.999391 = 399.7565, round to 400. Not sure what you mean by the 'The image is unzoomed'. What result do you get? Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of orkun Sent: Wednesday, June 15, 2005 2:22 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] I need your idea thank you for your interest Simpson wrote: >I think the rectangle is what Mapserver zooms to within your extent. > >414562,4617510 521317,4617510 >0,0 400,0 >------------------------------------- >| | >| | >| | >| | >| | >| | >| | >| | >| | >| | >------------------------------------- >0,406 400,406 >414562,4510820 521317,4510820 > >So in the above example, to zoom to the full extent you'd need to set the >pixel extent rectangle to (0,406,400,0). >The satellite imagery may not fill the entire output image, since Mapserver >maintains aspect ratio. > > if Mapserver maintains aspect ratio, all my efforts will be useless. But with zoom tool I can achieve the zooming of satellite imagery. Besides, I tried (0,406,400,0) pixel extent. The image is unzoomed. >Drew. > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of orkun >Sent: Tuesday, June 14, 2005 3:38 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] I need your idea > > >hello > >I need your idea >how can I show an satellite imagery in full extent when >you click in menu. > >if you have time please look at : > >"http://landslide.deprem.gov.tr/cgi/map4.php" and click in "satellite" >I just want it to fill whole map's window. > >I used php-mapscript and here is the code fragment: > > /$uydulayer->set("status",1); # on > > $minx=414562.225; > $miny=4510820; > $maxx=521317.775; > $maxy=4617510; > > $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); > $map->setextent($extent_to_set[0],$extent_to_set[1], > $extent_to_set[2],$extent_to_set[3]); > > > $my_extent = ms_newrectObj(); > > $my_extent->setextent($extent_to_set[0],$extent_to_set[1], > >$extent_to_set[2],$extent_to_set[3]); > > > $zoom_rect = ms_newRectObj(); > > $zoom_rect->setextent(200,203,200,203); //satellite imagery >pixel extents > > $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); > > $extent_to_html = $minx." ".$miny." " > .$maxx." ".$maxy; > >/I will appreciate if you give a sense/ > >/Ahmet Temiz > >______________________________________ >XamimeLT - installed on mailserver for domain @deprem.gov.tr >Queries to: postmaster at deprem.gov.tr >______________________________________ >The views and opinions expressed in this e-mail message are the sender's own >and do not necessarily represent the views and the opinions of Earthquake >Research Dept. >of General Directorate of Disaster Affairs. > >Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak >T.C. >B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte >degildir. > > > > regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From philippe.gondek at GMAIL.COM Wed Jun 15 05:32:44 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Wed, 15 Jun 2005 14:32:44 +0200 Subject: conversion projection??? Message-ID: Hi list, I have my coordinates of a point in Lambert Conic Conformal (2SP Belgium) and I want to show it in latlong... Just show!!! no convert all my map... How must I do??? Need I proj4??? Thanks!!! From lfilak at MEDINACO.ORG Wed Jun 15 05:50:46 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 15 Jun 2005 08:50:46 -0400 Subject: Mapscript programming Message-ID: The following message was sent by Juan Carlos Castaneda on Wed, 15 Jun 2005 09:29:49 +0100. > Dear List, > > I am newbie to Mapserver and I was wondering where to start programming. > I need to create a web application but I don't want to use the CGI > Mapserver. I would like to program my own application -apply my own > security, querying other resources,... > I have been reading the documentation available about Mapscript and as > far as I could figure there are 2 flavours: PHP and those languages that > use SWIG. Both access the Mapserver C API. > > I was wondering if you could give me pros/cons of both aproaches (PHP vs > SWIG). I have > felt like if you are going with SWIG you are pretty much on your own, > while the documentation for PHP is better. I have some background > programming in Java - servlets and I would like to continue programming > on that. Are there any differences between Linux/Windows? Juan, I think there has been a substantial amount of work done in regards to javamapscript (swig) recently. Others should be able to comment on that further. Lowell From williampaul28 at YAHOO.COM Wed Jun 15 05:54:52 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 15 Jun 2005 05:54:52 -0700 Subject: toolbar buttons In-Reply-To: Message-ID: "Lluis G. Mestres" wrote:Hi list I'm using jBox and radio buttons, and I would change to a buttons bar but I have many problems to do it. I've been triing with many examples but there is no way to fix it. Could you find any examples to figure out this problem? Thanks --------------------------------- Discover Yahoo! Get on-the-go sports scores, stock quotes, news & more. Check it out! -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Wed Jun 15 05:56:29 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 15 Jun 2005 05:56:29 -0700 Subject: toolbar buttons In-Reply-To: <20050615125032.3AD301A671C@mail.medinaco.org> Message-ID: Hi list I'm using jBox and radio buttons, and I would change to a buttons bar but I have many problems to do it. I've been triing with many examples but there is no way to fix it. Could you find any examples to figure out this problem? Thanks --------------------------------- Discover Yahoo! Get on-the-go sports scores, stock quotes, news & more. Check it out! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at PULA.HR Wed Jun 15 05:58:23 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Wed, 15 Jun 2005 14:58:23 +0200 Subject: Tiff resampling and logging problem in PHP/Mapscript Message-ID: Hi, I would like if someone can tell me how can I see if resampling of tiff raster data occuring or not? The logging feature is not working for me in PHP/Mapscript. I have set a LOG and DEBUG parameter in map file but I haven't got any output. Then I saw a bug 709 that discusses this problem. I have set CONFIG MS_ERRORFILE mapserver.log instead of LOG parameter and I have seen it is being filled but no resampling messages appear. Must I have some kind of debug build to enable logging? I took a look in source code and it seems as the resampling occurs only if the source image is rotated or the map and layer projections differ? Is it so or am I seing things wrong? regards, dg From williampaul28 at YAHOO.COM Wed Jun 15 05:58:58 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 15 Jun 2005 05:58:58 -0700 Subject: sort in query Message-ID: Hello, I want to sort the data from a query result. Does someone have any example? Thank you William --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Jun 15 06:17:20 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 15 Jun 2005 08:17:20 -0500 Subject: Multiple Point Layers in MS 4.4.2. Message-ID: Ryan, Are the two layers in the same projection? If they won't show at the same time, one possibility is that they are in different projections. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Owens, Ryan J NWD02 CONTRACTOR Sent: Wednesday, June 15, 2005 5:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Multiple Point Layers in MS 4.4.2. Hi Steve, Thanks for responding. A Minnesotan! I'm originally from the TC. I have a shape file that is strictly points on a map. The points are specific data collection points that we have on a river we watch over. Then, I have an Oracle Spatial connection to a database that does a query for boat ramps on the same river. Each point represents a specific boat ramp. Many points overlap each other when "zoomed" out. I'm sure if I were to zoom in on the map, the points would be spread out further. Both function separately, but one of the point layers needs to be commented out in order for the other to work. They both will not show up at the same time. Does this help? Thanks again. Would the code help? Ryan -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 14, 2005 2:32 PM To: MAPSERVER-USERS at lists.umn.edu; Owens, Ryan J NWD02 CONTRACTOR Subject: Re: [UMN_MAPSERVER-USERS] Multiple Point Layers in MS 4.4.2. Define not working together. Pictures always help. Steve >>> "Owens, Ryan J NWD02 CONTRACTOR" 06/14/05 1:13 PM >>> Hello List, Is anyone aware of problems with multiple POINT layers in MS 4.4.2? I am having difficulty getting two point layers to work together. The points overlap at certain points on the map. Ryan From bfraser at GEOANALYTIC.COM Wed Jun 15 07:20:08 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 15 Jun 2005 08:20:08 -0600 Subject: Adding Projection to ECW files ? Message-ID: Bill, The spatial reference system is (or at least, can be) stored within the ECW file. If you've got access to Windows, you can use ERMapper's ECW Header Editor tool (available on their download page) to examine the ECW file header. For GDAL to be able to recognize the spatial reference system definition stored in an ECW file, it needs to be able to locate GDAL's ecw_cs.dat file. It does this by using the GDAL_DATA environment variable. For example, mine (on Windows) is set to GDAL_DATA=C:\Program Files\FWTools0.9.8\data The file is included in the GDAL source download, in the data directory. Brent Fraser ----- Original Message ----- From: "Bill Binko" To: Sent: Wednesday, June 15, 2005 1:15 AM Subject: [UMN_MAPSERVER-USERS] Adding Projection to ECW files ? > Hi everyone, > > First, enjoy the conference: this can wait, but I wanted to ask while it > was fresh. Wish I could join you. > > I have had some recent success with my raster project... > > 1) I have gotten GDAL & ECW to work on Linux (bug in ECW) > > 2) I have gotten gdaltindex to generate a tileindex of my DOQQs > > 3) I have gotten Mapserver to show my images (YAY) if I set the projection > to UTM Zone 17N in the mapfile > > The problem is that the ECW files don't seem to have the UTM 17N > associated with them in any metadata that GDAL reads. They come with > .aux, .ecw, .ecw.xml, .ecw.aux.xml, and .html files for each image. > > Now, when I run gdalinfo on the file, I get this: > > [bill at fastcat ecw_rgb]$ gdalinfo dq4517ne.ecw > Driver: ECW/ERMapper Compressed Wavelets > Size is 6199, 7064 > Coordinate System is: > LOCAL_CS["LOCAL", > UNIT["Meter",1]] > Origin = (397031.442000,3277747.800000) > Pixel Size = (1.00000000,-1.00000000) > Corner Coordinates: > Upper Left ( 397031.442, 3277747.800) > Lower Left ( 397031.442, 3270683.800) > Upper Right ( 403230.442, 3277747.800) > Lower Right ( 403230.442, 3270683.800) > Center ( 400130.942, 3274215.800) > Band 1 Block=6199x1 Type=Byte, ColorInterp=Red > Overviews: arbitrary > Band 2 Block=6199x1 Type=Byte, ColorInterp=Green > Overviews: arbitrary > Band 3 Block=6199x1 Type=Byte, ColorInterp=Blue > Overviews: arbitrary > > So, I know that it has the boundary info, and I don't need separate .tfw > (or equivalent). However, notice the LOCAL_CS -- it didn't find the > projection information. > > Is there any way I can add this to the files? It should be the same for > all of them. > > Without it, gdal_merge.py blows up, and I can't create summary images :( > > I know this is long winded, but can anyone help? > > Thanks > Bill From cavallini at FAUNALIA.IT Wed Jun 15 07:09:48 2005 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Wed, 15 Jun 2005 16:09:48 +0200 Subject: grass rasters Message-ID: Hi all. As GRASS users, we would find extremely useful to display grass rasters directly into mapserver. After a bit of searching, we found that current capabilities are limited, because GRASS raster driver in GDAL represents the color table as metadata and Mapserver cannot use metadata. Does anybody plan to add support for color tables passed in metadata? All the best. pc -- Paolo Cavallini cavallini at faunalia.it www.faunalia.it www.faunalia.com Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 From aborruso at TIN.IT Wed Jun 15 07:31:03 2005 From: aborruso at TIN.IT (Andrea Borruso) Date: Wed, 15 Jun 2005 09:31:03 -0500 Subject: GEOS and Mapserver 4.6 Message-ID: Dear all, I have read about 4.6 release, and I'm very interested to GEOS support. Which features GEOS add to mapserver? Is it possible to make topological operations inside mapserver process? Could you explain me something more? Thank you, andrea From bdavis at USGS.GOV Wed Jun 15 07:21:10 2005 From: bdavis at USGS.GOV (Brian Davis) Date: Wed, 15 Jun 2005 09:21:10 -0500 Subject: netscape 7.1 java invocation error Message-ID: I am using java to invoke my cient app. here is the url: http://crsp.usgs.gov/cgi-bin/mapserv? map=/edclxs22/www/htdocs/crsp/cidr/mms/cidr.map&Version=1.1.0&Request=GetMap &SRS=EPSG:4326&Width=400&Height=200&layers=elevation,cities,hydro,roads,boun dary&Format=image/gif&mayscript=true We are running 4.4.1 on RH enterprise. InternetExploder 6.0, FireFox 1.0.4, Mozilla 1.4.4, Netscrape 7.1/8.0 all work ok with jre 1.4.2 or greater. Using 1.4.1_06 or older, and Netscrape 7.1, I do not get a successful liveconnect. Instead I get: Connecting http://edclxs22.cr.usgs.gov/crsp/cidr/mms/mapimage.class with no proxy Successful browser/jre configurations give me instead: network: Connecting http://edclxs22.cr.usgs.gov/crsp/cidr/mms/mapimage.class with proxy=DIRECT or basic: Loaded image: http://crsp.usgs.gov/cgi-bin/mapserv? map=/edclxs22/www/htdocs/crsp/cidr/mms/cidr.map&Version=1.1.0&Request=GetMap &SRS=EPSG:4326&Width=400&Height=200&layers=elevation,cities,hydro,roads,boun dary&Format=image/gif&mayscript=true I tried adding a proxy=DIRECT argument, but no effect. I know the easy (and probably correct) answer is for the user to upgrade their java. However, other java apps work for this user. If there is a known problem with the browser/java combination described here, just tell me, and I will force the user to update. I just don't have the weight to make it happen based on my opinion and anectdotal evidence. If someone can point me to a place that describes the problem whose symptoms I am seeing, I would be most grateful. I am also open to any suggestions for how I am invoking mapserv badly. Any ideas out there? bdavis From luca76 at GMAIL.COM Wed Jun 15 07:32:37 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 15 Jun 2005 16:32:37 +0200 Subject: Amein! and ArcMAP In-Reply-To: <49B9846C39F25A4FA901064970861610334234@mhk-ex1.ad.dpra.com> Message-ID: 2005/6/15, Mark Adams : > I have had the same problem. I tried it on multiple machines, both the > 8.3 and 9.0 versions, but always the same result - tool is disabled. If > anyone has figured out the way around this please post the answer! Thx. You should go: 1. Go to ArcMap menu -> Tools -> Extension 2. on the Extensions dialog box check on the "Amein!" plugin 3. now that button is enabled but with a project with many shapefiles is really slow on a P-IV 2,8GHz... From vincent.dacol at LAPOSTE.NET Wed Jun 15 07:44:36 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Wed, 15 Jun 2005 16:44:36 +0200 Subject: Wfs filter Message-ID: Thanks for the answer Bart, I have set Dump True in my WFS Mapserver. I have try directly on the serveur as describe in the HOWTO, but it didn't work. I will try some other test tomorrow. Bye, Vincent > Just checking, did you set DUMP TRUE on your server LAYER? > > Can you get it to work by making a HTTP GET request directly to your server using the same Filter, something like which is described in here: > > http://mapserver.gis.umn.edu/doc/filter-encoding-howto.html > > ? > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> "vincent.dacol" 06/15/05 09:02am >>> > Hi the list, > > I want to apply a filter on my WFS server. > > But this simple thinks seem harder than I think. > > The original data is a shape file with attribut and > geographique data. > > The result of the filter is an empty GML file. > > Here is a copy of my WFS mapserver client and the GML file. > > Thanks for the help. > > Extract of WFS layer in the Client mapfile: > > > CONNECTIONTYPE WFS > CONNECTION > "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L93_WFS.map&" > > METADATA > "wfs_service" "WFS" > "wfs_version" "1.0.0" > "wfs_typename" "France_L93_Name" > "wfs_connectiontimeout" "120" > "wfs_filter" > "PERIMETRE300" > END > > > The GML data : > > xmlns="http://www.ttt.org/myns" > xmlns:myns="http://www.ttt.org/myns" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > http://www.ttt.org/myns > http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L93_WFS.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=France_L93_Name"> > > missing > > > > Bye, > > Vincent > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From fwarmerdam at GMAIL.COM Wed Jun 15 07:58:35 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 15 Jun 2005 10:58:35 -0400 Subject: Tiff resampling and logging problem in PHP/Mapscript In-Reply-To: Message-ID: On 6/15/05, Gambin Dejan wrote: > Hi, > > I would like if someone can tell me how can I see if resampling of tiff > raster data occuring or not? The logging feature is not working for me > in PHP/Mapscript. I have set a LOG and DEBUG parameter in map file but I > haven't got any output. Then I saw a bug 709 that discusses this > problem. I have set CONFIG MS_ERRORFILE mapserver.log instead of LOG > parameter and I have seen it is being filled but no resampling messages > appear. Must I have some kind of debug build to enable logging? > > I took a look in source code and it seems as the resampling occurs only > if the source image is rotated or the map and layer projections differ? > Is it so or am I seing things wrong? dg, If you are seeing outher debug messages in the log, and no message about msResampleRasterLayer or something like that then it is not being done. As you note, it only kicks in when the image is rotated or there is an apparent difference in the projections. Note that the default image render case does do simple downsampling type of resampling. The Resample case really implies that a pixel by pixel warp is applied during the resampling stage instead of simple decimation in x and y. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From godwin.liz at GMAIL.COM Wed Jun 15 08:07:48 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Wed, 15 Jun 2005 11:07:48 -0400 Subject: Amein! and ArcMAP In-Reply-To: Message-ID: Selecting the tool from the extensions menu enabled the tool for me... BUT The tool doesn't DO anything. What should be expecting? What dependancies are there? Liz On 6/15/05, Luca Manganelli wrote: > > 2005/6/15, Mark Adams : > > I have had the same problem. I tried it on multiple machines, both the > > 8.3 and 9.0 versions, but always the same result - tool is disabled. If > > anyone has figured out the way around this please post the answer! Thx. > > > You should go: > > 1. Go to ArcMap menu -> Tools -> Extension > > 2. on the Extensions dialog box check on the "Amein!" plugin > > 3. now that button is enabled > > but with a project with many shapefiles is really slow on a P-IV 2,8GHz... > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Pascoe at EC.GC.CA Wed Jun 15 08:17:47 2005 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Wed, 15 Jun 2005 11:17:47 -0400 Subject: PHPMapscript 4.6 Won't Install Message-ID: I've gone through this installation process a number of times, and thought I finally had the routine down. However, I have an installation that I just can't figure out. I'm setting up a test box running Windows Server 2000, IIS, Mapserver 4.4, Mapscript 4.6, and PHP 4.3.11. PHP returns a regular INFO page so long as I don't have the Mapscript extension turned on. As soon as I activate Mapscript, however, no page returns, and I eventually get a CGI timeout error. I've searched through a number of archives with no luck, started from scratch twice, and tested everything I can think of. Has anyone else seen this behavior, or have any suggestions? Thanks, Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at DMSOLUTIONS.CA Wed Jun 15 08:34:15 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Wed, 15 Jun 2005 11:34:15 -0400 Subject: PHP/Mapscript Query In-Reply-To: Message-ID: Hi, You can use the QueryByPoint function to get the information on which object you clicked. // Note that the code is untested $qx = /*longitude*/; $qy = /*latitude*/; $point = ms_newpointOBj(); $point->setXY($qx, $qy); $layer = $map->getLayerByName("layer_name"); $data = $layer->queryByPoint($point, MS_SINGLE, -1); $result = $layer->getResult(0); $layer->open(); $items = $layer->getitems(); $shape =$layer->getShape($result->tileindex, $result->shapeindex); $layer->close(); $data_val = $shape->values; Then you can create a temporary layer that will draw only this object (it's called a feature.). //Untested $layer2 = $map->getLayerByName("highlight_layer"); $layer2->set("data", $layer->data); $layer2->set("classitem", "ID"); // Name of the field that contains your // unique ID $class = $layer2->getClass(0); $class->setExpression($data_val['ID']); Code like that will draw only the feature with the ID of the object you clicked on. Julien On 06/14/2005 06:06 AM, Philippe Gondek wrote: > Hi, > > I use PHP/Mapscript. I want to click on my map and see the object I > clicked highlighted and see the metadata of the object. I don't see > any good documentation about this functionnality... > > How can I do??? > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From stevem at SPATIALMAPPING.COM Wed Jun 15 08:34:36 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Wed, 15 Jun 2005 10:34:36 -0500 Subject: A (probably stupid) question about dependencies Message-ID: Daniele: My experience with Linux (Slackware mostly, not Red Hat) has been that you can USUALLY just build the new version of a package and install it on top of the old version. (Notice the emphasis on USUALLY, which means NOT ALWAYS!) In your case, the packages you describe are all mature support libraries, and so I don't think you'll have any problems. There can sometimes be old files left lying around from an older version, but they almost never affect the proper functioning of the new version. Having said that, since you're running Red Hat, you should probably look into obtaining RPMs for the packages you want to upgrade. The nice thing about using pre-built packages versus "./configure && make && make install" is that it's easy to remove an RPM package if you suspect that it's causing a problem. And it's easy to find out exactly what files an RPM has installed; building and installing stuff from source has the disadvantage that it can be difficult to determine what files "make install" has actually installed, and where they are installed. I always rebuild MapServer whenever one of the packages it depends on is upgraded. In theory, it shouldn't be necessary to rebuild MS if all of the upgraded packages are dynamically linked libraries, but I can't be bothered to look into which are dynamically linked and which are statically linked. So I just rerun my MS build script, and I know it's ready to go. Regards, -SM -- On Tue, 14 Jun 2005 07:55:41 +0200, Daniele Margotti wrote: >Hi list, >I have installed Mapserver several months ago. >Now, I want to update (configure, make & make install) some packages, >because there are new versions of them: GD, gdal, geo-shapelib, libjpeg, >libtiff, proj.4, and so on. > >Do I have to "uninstall" the previous version of these libraries, or >installation automatically "covers" the old version? >And, most important, do I have to recompile Mapserver or does it >automatically use the new version of these libraries? > >I have a Linux Red Hat 9.0. > >Thank you, > Daniele > > From gabriel.cloutier at RNCAN.GC.CA Wed Jun 15 08:33:35 2005 From: gabriel.cloutier at RNCAN.GC.CA (Gabriel Cloutier) Date: Wed, 15 Jun 2005 10:33:35 -0500 Subject: ogr2ogr problem! Message-ID: Hi! I have a problem with this tool under Unix. When I execute: ogr2ogr -f "ESRI Shapefile" -select SNRC_F,CODEBNDT_F,CLASSIFI_F,REVETEME_F,CATEGORI_F,ELEVATION_F,NATURE_F,TYPE_F,REL_SOL_F,EMPLACEMENT_F layer BARRAGE_1_012B08.shp -a_srs EPSG:42304 -skipfailures I have this error: ERROR 6: EPSG PCS/GCS code 42304 not found in EPSG support files. Is this a valid EPSG coordinate system? Failed to process SRS definition: EPSG:42304 My GDAL_DATA is correctly set on my /data directory. I took the data directory of a FWTools Windows installation do you think that can be the problem ? If I use EPSG:4326 my command work fine. The problem seems to be when the tool try to access to the the file cubewerx_extra.wkt. This file contain the definition of my projection (EPSG:42304) Thank you for your help! ---------------------------------------------------------------- Gabriel Cloutier Natural Resources Canada Centre for Topographic Information Web Services Team 2144 King West Street, s. 010 Sherbrooke, Quebec J1J 2E8 E-Mail: Gabriel.Cloutier at NRCan.gc.ca Tel: (819) 564-5600 #295 Fax: (819) 564-5698 From john.cole at UAI.COM Wed Jun 15 08:44:11 2005 From: john.cole at UAI.COM (John Cole) Date: Wed, 15 Jun 2005 10:44:11 -0500 Subject: postgis using COLLECT() in layer data... Message-ID: Hello, I'm trying to un-clutter street labels by using a COLLECT() and grouping on the street name, but I'm running into a problem getting MapServer 4.4 to work with the data line. Here is my layer LAYER NAME Highways_anno STATUS default GROUP roads CONNECTIONTYPE postgis CONNECTION "user=mapserver password=mapserver dbname=florence host=localhost" DATA "the_geom from (select collect(the_geom) as the_geom, rd_name from tgr_roads group by rd_name) AS new_table USING UNIQUE rd_name USING SRID=-1" TYPE annotation LABELITEM "rd_name" MAXSCALE 12000 CLASS LABEL COLOR 0 0 0 TYPE TRUETYPE ANGLE AUTO FONT arial SIZE 8 ANTIALIAS TRUE POSITION CC MINDISTANCE 10 BUFFER 5 END END END The query returns, but no labels are drawn. Using a DATA "the_geom from tgr_roads" does draw labels. What am I doing wrong? :-) Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From camobi at DCA.NET Wed Jun 15 09:07:26 2005 From: camobi at DCA.NET (Chux Amobi) Date: Wed, 15 Jun 2005 12:07:26 -0400 Subject: Query Hilite in Same HTML Page Message-ID: Hi, I've created a map by linking an to the output of cgi-bin/mapserv?mode=map... I'd like to select a feature and have it be highlighted in the map. When you do cgi-bin/mapserv?mode=query..., it seems that the template file gets returned to the client. Is it possible to do a query, not display the template file, and just use javascript to set the HTML page's image object to the query map that was created in IMAGEPATH/? Can you somehow access the [img] variable that's generated from mapserv, or can that just be accessed from a template file? A GIF is created in IMAGEPATH/ that shows the selected feature in its highlight color, so I think I just need to link it to the HTML page's image. I'm working on Windows 2000 and using DBox.js and MapServ.js. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taatuut at PLANET.NL Wed Jun 15 09:24:48 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Wed, 15 Jun 2005 18:24:48 +0200 Subject: PHPMapscript 4.6 Won't Install Message-ID: Hello Tim, The MapScript dll is depending on several other dll's (included in the binary packages). Check if these are in place in the Windows system32 folder or in the PATH environment variable. It looks like in your situation on or more dll's are missing or not available in the PATH. A way to debug this, is to run your php page from the command line, something like: C:\>C:\php\php.exe C:\path\to\info.php This way you will receive alert boxes about the missing dependencies. Regards, Emil ----- Oorspronkelijk bericht ----- Van: "Pascoe,Tim [Burlington]" Datum: woensdag, juni 15, 2005 5:17 pm Onderwerp: [UMN_MAPSERVER-USERS] PHPMapscript 4.6 Won't Install > I've gone through this installation process a number of times, and > thought I finally had the routine down. However, I have an > installation that I just can't figure out. > > I'm setting up a test box running Windows Server 2000, IIS, > Mapserver 4.4, Mapscript 4.6, and PHP 4.3.11. PHP returns a > regular INFO page so long as I don't have the Mapscript extension > turned on. As soon as I activate Mapscript, however, no page > returns, and I eventually get a CGI timeout error. I've searched > through a number of archives with no luck, started from scratch > twice, and tested everything I can think of. Has anyone else seen > this behavior, or have any suggestions? > > Thanks, > > Timothy Pascoe > > Environment Canada / Environnement Canada > Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures > 867 Lakeshore Road / 867, chemin Lakeshore > Burlington, Ontario / Burlington (Ontario) > L7R 4A6 > > Tel/T?l: (905) 336-6239 > Fax/T?l?c: (905) 336-4699 > E-mail/C. ?lec: tim.pascoe at ec.gc.ca > Government of Canada/Gouvernement du Canada > This e-mail represents the opinions and views solely held by its > author and in no manner may be considered as representing those of > his/her employer. From Tim.Pascoe at EC.GC.CA Wed Jun 15 09:46:12 2005 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Wed, 15 Jun 2005 12:46:12 -0400 Subject: PHPMapscript 4.6 Won't Install Message-ID: Thanks Emil, I used Dependency walker, and didn't find anything. I ended up switching back to Mapscript 4.4, and all is fine. Not sure what was wrong, but it sure didn't like it. I used the DLL package bundled with 4.6 too ;( Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -----Original Message----- From: taatuut at planet.nl [mailto:taatuut at planet.nl] Sent: June 15, 2005 12:25 PM To: Pascoe,Tim [Burlington] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHPMapscript 4.6 Won't Install Hello Tim, The MapScript dll is depending on several other dll's (included in the binary packages). Check if these are in place in the Windows system32 folder or in the PATH environment variable. It looks like in your situation on or more dll's are missing or not available in the PATH. A way to debug this, is to run your php page from the command line, something like: C:\>C:\php\php.exe C:\path\to\info.php This way you will receive alert boxes about the missing dependencies. Regards, Emil ----- Oorspronkelijk bericht ----- Van: "Pascoe,Tim [Burlington]" Datum: woensdag, juni 15, 2005 5:17 pm Onderwerp: [UMN_MAPSERVER-USERS] PHPMapscript 4.6 Won't Install > I've gone through this installation process a number of times, and > thought I finally had the routine down. However, I have an > installation that I just can't figure out. > > I'm setting up a test box running Windows Server 2000, IIS, > Mapserver 4.4, Mapscript 4.6, and PHP 4.3.11. PHP returns a > regular INFO page so long as I don't have the Mapscript extension > turned on. As soon as I activate Mapscript, however, no page > returns, and I eventually get a CGI timeout error. I've searched > through a number of archives with no luck, started from scratch > twice, and tested everything I can think of. Has anyone else seen > this behavior, or have any suggestions? > > Thanks, > > Timothy Pascoe > > Environment Canada / Environnement Canada > Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures > 867 Lakeshore Road / 867, chemin Lakeshore > Burlington, Ontario / Burlington (Ontario) > L7R 4A6 > > Tel/T?l: (905) 336-6239 > Fax/T?l?c: (905) 336-4699 > E-mail/C. ?lec: tim.pascoe at ec.gc.ca > Government of Canada/Gouvernement du Canada > This e-mail represents the opinions and views solely held by its > author and in no manner may be considered as representing those of > his/her employer. From kenlord at GMAIL.COM Wed Jun 15 09:51:39 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 15 Jun 2005 09:51:39 -0700 Subject: ogr2ogr problem! In-Reply-To: Message-ID: Hi Gabriel, There are a series of EPSG codes that are not in the standard EPSG support file, 42304 is one of them. These are codes that were created by the community that were not included in the master list by the EPSG. Find the 'EPSG' file in your Proj directory, add the following lines to the end of the file: ## WGS84 / LCC Canada <42101> +proj=lcc +ellps=WGS84 +lat_0=0 +lon_0=-95 +lat_1=49 +lat_2=77 +x_0=0 +y_0=-8000000.0 +datum=WGS84 +units=m no_defs <> ## NAD83 / BC Albers <42102> +proj=aea +ellps=GRS80 +lat_0=45 +lon_0=-126.0 +lat_1=50.0 +lat_2= 58.5 +x_0=1000000.0 +y_0=0 +datum=NAD83 +units=m no_defs <> # ## NAD83 LCC for Canada <42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49 +lat_2=77 +datum=NAD83 +units=m no_defs <> I believe recently these projections were added to the standard list, in the 32xxx range, if someone can point us to a place to download the most current version of the file. Cheers, Ken Lord Vancouver BC On 6/15/05, Gabriel Cloutier wrote: > > Hi! > I have a problem with this tool under Unix. > When I execute: > ogr2ogr -f "ESRI Shapefile" -select > > SNRC_F,CODEBNDT_F,CLASSIFI_F,REVETEME_F,CATEGORI_F,ELEVATION_F,NATURE_F,TYPE_F,REL_SOL_F,EMPLACEMENT_F > layer BARRAGE_1_012B08.shp -a_srs EPSG:42304 -skipfailures > > I have this error: > ERROR 6: EPSG PCS/GCS code 42304 not found in EPSG support files. Is this > a > valid > EPSG coordinate system? > Failed to process SRS definition: EPSG:42304 > > My GDAL_DATA is correctly set on my /data directory. > I took the data directory of a FWTools Windows installation do you think > that can be the problem ? > > If I use EPSG:4326 my command work fine. > > The problem seems to be when the tool try to access to the the file > cubewerx_extra.wkt. > This file contain the definition of my projection (EPSG:42304) > > Thank you for your help! > > > ---------------------------------------------------------------- > Gabriel Cloutier > Natural Resources Canada > Centre for Topographic Information > Web Services Team > 2144 King West Street, s. 010 > Sherbrooke, Quebec J1J 2E8 > E-Mail: Gabriel.Cloutier at NRCan.gc.ca > Tel: (819) 564-5600 #295 > Fax: (819) 564-5698 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abe.gillespie at GMAIL.COM Wed Jun 15 10:52:47 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Wed, 15 Jun 2005 13:52:47 -0400 Subject: PHP MapScript zoomscale optional parameter Message-ID: According to the docs the oGeorefExt parameter of mapObj::zoomscale is optional. How do I send in an optional parameter in PHP? I've tried both of the following with no success: $map->zoomscale($scale, $pnt, $w, $h, null); and $map->zoomscale($scale, $pnt, $w, $h); Please help if you can. Also, and slightly OT, you need to pass in the height and width of the image. This doesn't make sense to me. Shouldn't the current height and width of the mapObj be used??? Thanks for the help. -Abe From luca76 at GMAIL.COM Wed Jun 15 10:54:14 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 15 Jun 2005 19:54:14 +0200 Subject: Amein! and ArcMAP In-Reply-To: Message-ID: 2005/6/15, Liz Godwin : > Selecting the tool from the extensions menu enabled the tool for me... > > BUT The tool doesn't DO anything. What should be expecting? What > dependancies are there? Try with a blank project. Click the button. If it works, close the dialog box. Add some shapefiles. Click the button. Do you see the dialog box? From luca76 at GMAIL.COM Wed Jun 15 10:52:57 2005 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 15 Jun 2005 19:52:57 +0200 Subject: Amein! and ArcMAP In-Reply-To: <49B9846C39F25A4FA90106497086161033426B@mhk-ex1.ad.dpra.com> Message-ID: 2005/6/15, Mark Adams : > Hmmm. When I go to ArcMap menu -> Tools -> Extensions, there are no > extensions to select... I had a colleague try to load it on another > machine, and again, it didn't show in the list of extensions. Thx > though. The Amein! DLL couldn't be registered (regsvr32) Have you installed the executable? It provides a simple .bat file doing all the work for you. From lucamarle at GMAIL.COM Wed Jun 15 11:00:04 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Wed, 15 Jun 2005 20:00:04 +0200 Subject: tif picture becomes monocromatic in mapserver (png output) Message-ID: I've several layers in my mapserver, maps in tiff format and shapes, all with color support. Now I've added an orthophoto (tiff format too) colored in the source but when displayed by mapserver it, and just it, become monochromatic. The output of mapserver is png. Can someone explain me why it happens please? thanks a lot luca -- luca marletta icq: 70590647 From ealpert at DIGITALGLOBE.COM Wed Jun 15 11:06:20 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 15 Jun 2005 12:06:20 -0600 Subject: tif picture becomes monocromatic in mapserver (png output) Message-ID: What is the output of gdalinfo on the tif file? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of luca marletta Sent: Wednesday, June 15, 2005 12:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] tif picture becomes monocromatic in mapserver (png output) I've several layers in my mapserver, maps in tiff format and shapes, all with color support. Now I've added an orthophoto (tiff format too) colored in the source but when displayed by mapserver it, and just it, become monochromatic. The output of mapserver is png. Can someone explain me why it happens please? thanks a lot luca -- luca marletta icq: 70590647 From bill at BINKO.NET Wed Jun 15 11:12:20 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 15 Jun 2005 14:12:20 -0400 Subject: tif picture becomes monocromatic in mapserver (png output) In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CBF5@COMAIL01.digitalglobe.com> Message-ID: On Wed, 15 Jun 2005, Ethan Alpert wrote: > What is the output of gdalinfo on the tif file? > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of luca marletta > Sent: Wednesday, June 15, 2005 12:00 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] tif picture becomes monocromatic in > mapserver (png output) > > > I've several layers in my mapserver, maps in tiff format and shapes, all > with color support. Now I've added an orthophoto (tiff format too) > colored in the source but when displayed by mapserver it, and just it, > become monochromatic. The output of mapserver is png. > > Can someone explain me why it happens please? > > thanks a lot > > luca > From bill at BINKO.NET Wed Jun 15 11:23:56 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 15 Jun 2005 14:23:56 -0400 Subject: tif picture becomes monocromatic in mapserver (png output) In-Reply-To: <8b50201050615110060fbb44@mail.gmail.com> Message-ID: Try adding 'IMAGEMODE RGB' to your OUTPUTFORMAT section PNG defaults to 256 colors, which will rapidly drop you down to black/white. Bill On Wed, 15 Jun 2005, luca marletta wrote: > I've several layers in my mapserver, maps in tiff format and shapes, > all with color support. > Now I've added an orthophoto (tiff format too) colored in the source > but when displayed by mapserver it, and just it, become monochromatic. > The output of mapserver is png. > > Can someone explain me why it happens please? > > thanks a lot > > luca > From wer at CSTONE.NET Wed Jun 15 11:49:07 2005 From: wer at CSTONE.NET (William E Reid) Date: Wed, 15 Jun 2005 14:49:07 -0400 Subject: DEM Elevation data In-Reply-To: Message-ID: Jerl, I have only used geotiffs that I have made. They are geotiff/TAB format. But your LAYER should be very simple as far as I know. This worked for me.... LAYER NAME "geotiff" TYPE RASTER STATUS ON DATA "geotiff/65729931.tif" END All the magic (aside from the wonderful things mapsserver does for us...) is stored in the TIF or TAB depending on what type of geotiff you have. You should be able to run 'gdalinfo ' on the tif file and it should reveal coordinates stored in the tif (or accompanying tab file). Be sure to read the man page on gdalinfo..... gdalinfo --formats will show you what formats are supported (ie. did I forget to compile in geotiff support....?) Make sure your extents are set to display what is in the tiff ( are you looking at it on the currently displayed map, or are you looking at a peiece of farm equipment? You extents need to encompass the tiff or part of it...) $ gdalinfo 65729931.tif Driver: GTiff/GeoTIFF Size is 300, 3300 Coordinate System is: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]] Origin = (-78.083333,37.000000) Pixel Size = (0.00027778,-0.00027778) Metadata: TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.9.1.3 $ $Date: 2002/07/29 15:39:06EDT $ TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( -78.0833333, 37.0000000) ( 78d 5'0.00"W, 37d 0'0.00"N) Lower Left ( -78.0833333, 36.0833333) ( 78d 5'0.00"W, 36d 5'0.00"N) Upper Right ( -78.0000000, 37.0000000) ( 78d 0'0.00"W, 37d 0'0.00"N) Lower Right ( -78.0000000, 36.0833333) ( 78d 0'0.00"W, 36d 5'0.00"N) Center ( -78.0416667, 36.5416667) ( 78d 2'30.00"W, 36d32'30.00"N) Band 1 Block=300x6 Type=Float32, ColorInterp=Gray Hope that helps. -=Bill Jerl Simpson wrote: > Would you mind sharing your LAYER definition? I have the file, but > can't seem to get it to display properly. It's scale is wrong or > something and I can't get it worked out. I see the layer, but can't > really tell what I'm looking at. > > I appreciate it. > > jerl > > On 6/14/05, William E Reid wrote: > >>Just My 2 cents on the Subject. >> >>DEMs are no longer readily available from places like usgs. I am not >>really sure why. They are the easiest to work with (ie convert). >> >>If you are in the States.... >> >>at http://seamless.usgs.org you can download 3arc and 1arc second >>terrain data. It comes in ArcGrid Format. Though I have not seen a way >>to do this, I will be looking to convert them to geotiffs and shape >>files and dems with less granularity. >> >>A geotiff loads quickly and gives the best performance in mapserver >>(from my experience anyway) if you are just looking to make things look >>more interesting. >> >>Actually, you can download the data in Geotiff format, which is what I >>would recommend.... These might be more then what you want for >>granularity, I only dealt with 3arc and above data. >> >>National Elevation Dataset. I love em. >> >>Your Tiff? Make sure it is a geotiff. It needs to know where it is on >>the map. If you disable TRANFORM (set it to false) in your layer it >>will probably show up. But it needs to be a geotiff to show up properly. >> >>Hope that helps. >> >>-=Bill >> >> >>Jerl Simpson wrote: >> >>>Hi guys, >>> >>>I am wanting to add DEMs or some elevation/contour maps to my maps. >>>But I am curious what works best with Mapserver. I have found several >>>different resource, but am at a loss as to which one I need. >>> >>>The first one I tried, which was to download JPEG images and convert >>>them to TIFF images, never actually show up as a layer. This may be a >>>format issue on my part. I haven't dug into that yet. >>> >>>I found one that is a ETOPO2 Global 2-Minute Gridded Elevation Data. >>>But I don't know what that is and not sure if it can be used. If >>>someone knows a trick, I'd be please to find out. >>> >>>Similar issue with GLOBE files from NOAA. Not sure if I can convert >>>them to a format that's useful to use with Mapserver. >>> >>>I'm sure there are other options, I just haven't found them. >>> >>>I appreciate any help anyone might be able to give. >>> >>>Thank you, >>> >>>Jerl >>> >> >> > From jerl.simpso at GMAIL.COM Wed Jun 15 12:49:16 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Wed, 15 Jun 2005 14:49:16 -0500 Subject: DEM Elevation data In-Reply-To: <42B07823.2020507@cstone.net> Message-ID: Bill, gdalinfo is REALLY awesome. I found that you can run it on a geotiff from one of my searches. I get pretty much the same info, except I have nothing for coordinate system. Driver: GTiff/GeoTIFF Size is 3528, 4282 Coordinate System is `' Origin = (230371.000000,1370761.000000) Pixel Size = (1000.00000000,-999.96746800) Metadata: TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.9.1.3 $ $Date: 2002/07/29 15:39:06EDT $ TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 230371.000, 1370761.000) Lower Left ( 230371.000,-2911099.698) Upper Right ( 3758371.000, 1370761.000) Lower Right ( 3758371.000,-2911099.698) Center ( 1994371.000, -770169.349) Band 1 Block=3528x2 Type=Byte, ColorInterp=Red Band 2 Block=3528x2 Type=Byte, ColorInterp=Green Band 3 Block=3528x2 Type=Byte, ColorInterp=Blue That's pretty much the way may layer looks. I've played around with the projection a bit, but no luck. This is what my map looks like on a globabl scale with that layer on: http://mapserver1.rkiq.com/workshop/World11188387357318.gif I'm sure there's a way to scale it, but just haven't been able to work it out yet. My layer looks like: LAYER NAME "US_Relief" TRANSFORM FALSE DATA "89014205.tif" TYPE RASTER STATUS DEFAULT PROJECTION "init:epsg=9820" "proj=laea" "lat_0=-100" "lon_0=45" "x_0=0" "y_0=0" "units=m" END END Thanks, jerl On 6/15/05, William E Reid wrote: > Jerl, > > > > I have only used geotiffs that I have made. They are geotiff/TAB > format. But your LAYER should be very simple as far as I know. This > worked for me.... > > LAYER > NAME "geotiff" > TYPE RASTER > STATUS ON > DATA "geotiff/65729931.tif" > END > > > All the magic (aside from the wonderful things mapsserver does for > us...) is stored in the TIF or TAB depending on what type of geotiff you > have. > > You should be able to run 'gdalinfo ' on the tif file and it > should reveal coordinates stored in the tif (or accompanying tab file). > > Be sure to read the man page on gdalinfo..... > > gdalinfo --formats > > will show you what formats are supported (ie. did I forget to compile in > geotiff support....?) > > Make sure your extents are set to display what is in the tiff ( are you > looking at it on the currently displayed map, or are you looking at a > peiece of farm equipment? You extents need to encompass the tiff or > part of it...) > > $ gdalinfo 65729931.tif > Driver: GTiff/GeoTIFF > Size is 300, 3300 > Coordinate System is: > GEOGCS["NAD83", > DATUM["North_American_Datum_1983", > SPHEROID["GRS 1980",6378137,298.2572221010042, > AUTHORITY["EPSG","7019"]], > AUTHORITY["EPSG","6269"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4269"]] > Origin = (-78.083333,37.000000) > Pixel Size = (0.00027778,-0.00027778) > Metadata: > TIFFTAG_SOFTWARE=IMAGINE TIFF Support > Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved > @(#)$RCSfile: etif.c $ $Revision: 1.9.1.3 $ $Date: 2002/07/29 15:39:06EDT $ > TIFFTAG_XRESOLUTION=1 > TIFFTAG_YRESOLUTION=1 > TIFFTAG_RESOLUTIONUNIT=1 (unitless) > Corner Coordinates: > Upper Left ( -78.0833333, 37.0000000) ( 78d 5'0.00"W, 37d 0'0.00"N) > Lower Left ( -78.0833333, 36.0833333) ( 78d 5'0.00"W, 36d 5'0.00"N) > Upper Right ( -78.0000000, 37.0000000) ( 78d 0'0.00"W, 37d 0'0.00"N) > Lower Right ( -78.0000000, 36.0833333) ( 78d 0'0.00"W, 36d 5'0.00"N) > Center ( -78.0416667, 36.5416667) ( 78d 2'30.00"W, 36d32'30.00"N) > Band 1 Block=300x6 Type=Float32, ColorInterp=Gray > > > Hope that helps. > > -=Bill > > > Jerl Simpson wrote: > > Would you mind sharing your LAYER definition? I have the file, but > > can't seem to get it to display properly. It's scale is wrong or > > something and I can't get it worked out. I see the layer, but can't > > really tell what I'm looking at. > > > > I appreciate it. > > > > jerl > > > > On 6/14/05, William E Reid wrote: > > > >>Just My 2 cents on the Subject. > >> > >>DEMs are no longer readily available from places like usgs. I am not > >>really sure why. They are the easiest to work with (ie convert). > >> > >>If you are in the States.... > >> > >>at http://seamless.usgs.org you can download 3arc and 1arc second > >>terrain data. It comes in ArcGrid Format. Though I have not seen a way > >>to do this, I will be looking to convert them to geotiffs and shape > >>files and dems with less granularity. > >> > >>A geotiff loads quickly and gives the best performance in mapserver > >>(from my experience anyway) if you are just looking to make things look > >>more interesting. > >> > >>Actually, you can download the data in Geotiff format, which is what I > >>would recommend.... These might be more then what you want for > >>granularity, I only dealt with 3arc and above data. > >> > >>National Elevation Dataset. I love em. > >> > >>Your Tiff? Make sure it is a geotiff. It needs to know where it is on > >>the map. If you disable TRANFORM (set it to false) in your layer it > >>will probably show up. But it needs to be a geotiff to show up properly. > >> > >>Hope that helps. > >> > >>-=Bill > >> > >> > >>Jerl Simpson wrote: > >> > >>>Hi guys, > >>> > >>>I am wanting to add DEMs or some elevation/contour maps to my maps. > >>>But I am curious what works best with Mapserver. I have found several > >>>different resource, but am at a loss as to which one I need. > >>> > >>>The first one I tried, which was to download JPEG images and convert > >>>them to TIFF images, never actually show up as a layer. This may be a > >>>format issue on my part. I haven't dug into that yet. > >>> > >>>I found one that is a ETOPO2 Global 2-Minute Gridded Elevation Data. > >>>But I don't know what that is and not sure if it can be used. If > >>>someone knows a trick, I'd be please to find out. > >>> > >>>Similar issue with GLOBE files from NOAA. Not sure if I can convert > >>>them to a format that's useful to use with Mapserver. > >>> > >>>I'm sure there are other options, I just haven't found them. > >>> > >>>I appreciate any help anyone might be able to give. > >>> > >>>Thank you, > >>> > >>>Jerl > >>> > >> > >> > > > > From wer at CSTONE.NET Wed Jun 15 13:47:33 2005 From: wer at CSTONE.NET (William E Reid) Date: Wed, 15 Jun 2005 16:47:33 -0400 Subject: DEM Elevation data In-Reply-To: Message-ID: It is a great tool. Your problem is coordinates then. You can actually build a tab file (I think) This is all that belongs in the corresponding tab file. So if you know or have the meta data for the file, you can put in the corners and that should get you there. The corners are by coords/pixel resolution (which gdalinfo at least reports pixels) Call it foo.tab Place in it: Definition Table File ".tif" Type "RASTER" (-79.492792,37.61519) (0,0) Label "", (-79.49158,37.28661) (0,1200) Label "", (-78.937352,37.61519) (1600,0) Label "", (-78.938564,37.28661) (1600,1200) Label "" CoordSys Earth Projection 1, 104 Units "degree" Then run gdalinfo again... to make sure it worked. this is untested. You need to check out all the gdal/shapelib/ogr family to make full use of the tools. Understanding their abilities will help in making maps with mapscript or whatever way better. Me being a beginner to all this 6 months ago, shapelib, has your friends gdalinfo, gdal_translate, ogr2ogr (very powerful for creating your datasets the way you wish), and gdaltindex for indexing. Of course this is all just my simple way of looking at things. Hopefully no one minds me commenting here. Best wishes, -=Bill Jerl Simpson wrote: > Bill, > > gdalinfo is REALLY awesome. I found that you can run it on a geotiff > from one of my searches. I get pretty much the same info, except I > have nothing for coordinate system. > > Driver: GTiff/GeoTIFF > Size is 3528, 4282 > Coordinate System is `' > Origin = (230371.000000,1370761.000000) > Pixel Size = (1000.00000000,-999.96746800) > Metadata: > TIFFTAG_SOFTWARE=IMAGINE TIFF Support > Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved > @(#)$RCSfile: etif.c $ $Revision: 1.9.1.3 $ $Date: 2002/07/29 15:39:06EDT $ > TIFFTAG_XRESOLUTION=1 > TIFFTAG_YRESOLUTION=1 > TIFFTAG_RESOLUTIONUNIT=1 (unitless) > Corner Coordinates: > Upper Left ( 230371.000, 1370761.000) > Lower Left ( 230371.000,-2911099.698) > Upper Right ( 3758371.000, 1370761.000) > Lower Right ( 3758371.000,-2911099.698) > Center ( 1994371.000, -770169.349) > Band 1 Block=3528x2 Type=Byte, ColorInterp=Red > Band 2 Block=3528x2 Type=Byte, ColorInterp=Green > Band 3 Block=3528x2 Type=Byte, ColorInterp=Blue > > That's pretty much the way may layer looks. I've played around with > the projection a bit, but no luck. > > This is what my map looks like on a globabl scale with that layer on: > > http://mapserver1.rkiq.com/workshop/World11188387357318.gif > > I'm sure there's a way to scale it, but just haven't been able to work > it out yet. > My layer looks like: > > LAYER > NAME "US_Relief" > TRANSFORM FALSE > DATA "89014205.tif" > TYPE RASTER > STATUS DEFAULT > PROJECTION > "init:epsg=9820" > "proj=laea" > "lat_0=-100" > "lon_0=45" > "x_0=0" > "y_0=0" > "units=m" > END > END > > Thanks, > > jerl > > > On 6/15/05, William E Reid wrote: > >>Jerl, >> >> >> >> I have only used geotiffs that I have made. They are geotiff/TAB >>format. But your LAYER should be very simple as far as I know. This >>worked for me.... >> >> LAYER >> NAME "geotiff" >> TYPE RASTER >> STATUS ON >> DATA "geotiff/65729931.tif" >> END >> >> >>All the magic (aside from the wonderful things mapsserver does for >>us...) is stored in the TIF or TAB depending on what type of geotiff you >>have. >> >>You should be able to run 'gdalinfo ' on the tif file and it >>should reveal coordinates stored in the tif (or accompanying tab file). >> >>Be sure to read the man page on gdalinfo..... >> >>gdalinfo --formats >> >>will show you what formats are supported (ie. did I forget to compile in >>geotiff support....?) >> >>Make sure your extents are set to display what is in the tiff ( are you >>looking at it on the currently displayed map, or are you looking at a >>peiece of farm equipment? You extents need to encompass the tiff or >>part of it...) >> >>$ gdalinfo 65729931.tif >>Driver: GTiff/GeoTIFF >>Size is 300, 3300 >>Coordinate System is: >>GEOGCS["NAD83", >> DATUM["North_American_Datum_1983", >> SPHEROID["GRS 1980",6378137,298.2572221010042, >> AUTHORITY["EPSG","7019"]], >> AUTHORITY["EPSG","6269"]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433], >> AUTHORITY["EPSG","4269"]] >>Origin = (-78.083333,37.000000) >>Pixel Size = (0.00027778,-0.00027778) >>Metadata: >> TIFFTAG_SOFTWARE=IMAGINE TIFF Support >>Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved >>@(#)$RCSfile: etif.c $ $Revision: 1.9.1.3 $ $Date: 2002/07/29 15:39:06EDT $ >> TIFFTAG_XRESOLUTION=1 >> TIFFTAG_YRESOLUTION=1 >> TIFFTAG_RESOLUTIONUNIT=1 (unitless) >>Corner Coordinates: >>Upper Left ( -78.0833333, 37.0000000) ( 78d 5'0.00"W, 37d 0'0.00"N) >>Lower Left ( -78.0833333, 36.0833333) ( 78d 5'0.00"W, 36d 5'0.00"N) >>Upper Right ( -78.0000000, 37.0000000) ( 78d 0'0.00"W, 37d 0'0.00"N) >>Lower Right ( -78.0000000, 36.0833333) ( 78d 0'0.00"W, 36d 5'0.00"N) >>Center ( -78.0416667, 36.5416667) ( 78d 2'30.00"W, 36d32'30.00"N) >>Band 1 Block=300x6 Type=Float32, ColorInterp=Gray >> >> >>Hope that helps. >> >>-=Bill >> >> >>Jerl Simpson wrote: >> >>>Would you mind sharing your LAYER definition? I have the file, but >>>can't seem to get it to display properly. It's scale is wrong or >>>something and I can't get it worked out. I see the layer, but can't >>>really tell what I'm looking at. >>> >>>I appreciate it. >>> >>>jerl >>> >>>On 6/14/05, William E Reid wrote: >>> >>> >>>>Just My 2 cents on the Subject. >>>> >>>>DEMs are no longer readily available from places like usgs. I am not >>>>really sure why. They are the easiest to work with (ie convert). >>>> >>>>If you are in the States.... >>>> >>>>at http://seamless.usgs.org you can download 3arc and 1arc second >>>>terrain data. It comes in ArcGrid Format. Though I have not seen a way >>>>to do this, I will be looking to convert them to geotiffs and shape >>>>files and dems with less granularity. >>>> >>>>A geotiff loads quickly and gives the best performance in mapserver >>>>(from my experience anyway) if you are just looking to make things look >>>>more interesting. >>>> >>>>Actually, you can download the data in Geotiff format, which is what I >>>>would recommend.... These might be more then what you want for >>>>granularity, I only dealt with 3arc and above data. >>>> >>>>National Elevation Dataset. I love em. >>>> >>>>Your Tiff? Make sure it is a geotiff. It needs to know where it is on >>>>the map. If you disable TRANFORM (set it to false) in your layer it >>>>will probably show up. But it needs to be a geotiff to show up properly. >>>> >>>>Hope that helps. >>>> >>>>-=Bill >>>> >>>> >>>>Jerl Simpson wrote: >>>> >>>> >>>>>Hi guys, >>>>> >>>>>I am wanting to add DEMs or some elevation/contour maps to my maps. >>>>>But I am curious what works best with Mapserver. I have found several >>>>>different resource, but am at a loss as to which one I need. >>>>> >>>>>The first one I tried, which was to download JPEG images and convert >>>>>them to TIFF images, never actually show up as a layer. This may be a >>>>>format issue on my part. I haven't dug into that yet. >>>>> >>>>>I found one that is a ETOPO2 Global 2-Minute Gridded Elevation Data. >>>>>But I don't know what that is and not sure if it can be used. If >>>>>someone knows a trick, I'd be please to find out. >>>>> >>>>>Similar issue with GLOBE files from NOAA. Not sure if I can convert >>>>>them to a format that's useful to use with Mapserver. >>>>> >>>>>I'm sure there are other options, I just haven't found them. >>>>> >>>>>I appreciate any help anyone might be able to give. >>>>> >>>>>Thank you, >>>>> >>>>>Jerl >>>>> >>>> >>>> >> > From jdport at VERITIME.COM Wed Jun 15 13:58:17 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 15 Jun 2005 16:58:17 -0400 Subject: incorporating Rosa into my mapscript app Message-ID: Hello, Was just wondering if any of you ROSA users could point me in the direction of an example or a document that can get me started... I want to incorporate it into my php/mapscript application and I can't find any basic getting started information. The web site has information on the Applet Parameters which is good but I'm not to that point yet :) Thanks! -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.canfield at GMAIL.COM Wed Jun 15 14:16:49 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Wed, 15 Jun 2005 14:16:49 -0700 Subject: incorporating Rosa into my mapscript app In-Reply-To: <00a601c571ed$06a399a0$1bf2fbd0@solo> Message-ID: What specifically are you looking for? I can probably answer specific questions as I use it pretty heavily and have extended it to meet my needs here. Also DM solutions (had/has?) a GMap demo that uses Rosa when in Java mode and all that code (was/is?) available for download. I don't know the status of GMap but perhapse somebody else on the list can put up a link to it if DM Solutions still runs it actively. On 6/15/05, Jeff Portwine wrote: > > Hello, > > Was just wondering if any of you ROSA users could point me in the direction > of an example or a document that can get me started... I want to incorporate > it into my php/mapscript application and I can't find any basic getting > started information. The web site has information on the Applet Parameters > which is good but I'm not to that point yet :) > > Thanks! > > -Jeff > From lucamarle at GMAIL.COM Wed Jun 15 14:30:37 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Wed, 15 Jun 2005 23:30:37 +0200 Subject: tif picture becomes monocromatic in mapserver (png output) In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CBF5@COMAIL01.digitalglobe.com> Message-ID: On 6/15/05, Ethan Alpert wrote: > > > What is the output of gdalinfo on the tif file? Below the output. Any idea? ---------------------------------------------------------------------------------- > gdalinfo Regione_100000.TIF Driver: GTiff/GeoTIFF Size is 595, 584 Coordinate System is `' Origin = (1512616.789916,5113893.227739) Pixel Size = (26.42016810,-26.45547900) Metadata: TIFFTAG_DOCUMENTNAME=/mnt/hdb5/varHDA1/www/pmapper/comalo/foto/100.000_sin_coord.tif TIFFTAG_XRESOLUTION=96 TIFFTAG_YRESOLUTION=96 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 1512616.790, 5113893.228) Lower Left ( 1512616.790, 5098443.228) Upper Right ( 1528336.790, 5113893.228) Lower Right ( 1528336.790, 5098443.228) Center ( 1520476.790, 5106168.228) Band 1 Block=595x64 Type=Byte, ColorInterp=Red Band 2 Block=595x64 Type=Byte, ColorInterp=Green Band 3 Block=595x64 Type=Byte, ColorInterp=Blue ---------------------------------------------------------------------------------- -- luca marletta icq: 70590647 From lucamarle at GMAIL.COM Wed Jun 15 14:33:35 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Wed, 15 Jun 2005 23:33:35 +0200 Subject: tif picture becomes monocromatic in mapserver (png output) In-Reply-To: Message-ID: I've already it. Any other suggestions? Below my output sections OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION INTERLACE=OFF TRANSPARENT OFF END OUTPUTFORMAT NAME png8 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 FORMATOPTION INTERLACE=OFF TRANSPARENT OFF END OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB #FORMATOPTION "TFW=YES" #FORMATOPTION "COMPRESS=PACKBITS" END On 6/15/05, Bill Binko wrote: > Try adding 'IMAGEMODE RGB' to your OUTPUTFORMAT section > > PNG defaults to 256 colors, which will rapidly drop you down to > black/white. -- luca marletta icq: 70590647 From kwan at MEDIA.MIT.EDU Wed Jun 15 14:23:50 2005 From: kwan at MEDIA.MIT.EDU (Kwan Hong Lee) Date: Wed, 15 Jun 2005 17:23:50 -0400 Subject: question on using mapserver Message-ID: Hi, I am trying to use map server over web with java servlets and I was wondering if this architecture works. web client ------------ Java Servlets/Tomcat ------------- WMS ------------- MapServer Also where are some places I can get free world map data? Thank you. -kwan -- http://www.media.mit.edu/~kwan/info.html From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Wed Jun 15 17:58:22 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Wed, 15 Jun 2005 19:58:22 -0500 Subject: Multiple Point Layers in MS 4.4.2. Message-ID: Hello Steve, Good news. My dual POINT layer problem is solved. It turns out that I didn't align one of the Flash loaders in my FLA file. Every other layer functioned properly, except the one layer where one of the loaders was off by one pixel coordinate. Thanks for your help! Ryan -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 14, 2005 2:32 PM To: MAPSERVER-USERS at lists.umn.edu; Owens, Ryan J NWD02 CONTRACTOR Subject: Re: [UMN_MAPSERVER-USERS] Multiple Point Layers in MS 4.4.2. Define not working together. Pictures always help. Steve >>> "Owens, Ryan J NWD02 CONTRACTOR" 06/14/05 1:13 PM >>> Hello List, Is anyone aware of problems with multiple POINT layers in MS 4.4.2? I am having difficulty getting two point layers to work together. The points overlap at certain points on the map. Ryan From bino at INDOAKSES-ONLINE.COM Wed Jun 15 18:46:29 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Thu, 16 Jun 2005 08:46:29 +0700 Subject: Dynamic point Message-ID: Hi All ----- Original Message ----- From: "bino_oetomo" To: Sent: Wednesday, June 15, 2005 11:06 AM Subject: [UMN_MAPSERVER-USERS] Dynamic point > While I got success in adding point from database, i got failed in adding > dynamic point . Please disregards my previouse post. I got succeed in doing this, The failnes cause by my own stupidity. I Try to change the XY value to exact GPS coordinate ... and it showed up. Next problem : The graph didn't show the label I want. Anybody know how to show the label of dynamic point ? Regards -bino- From albrecht at FIELAX.DE Wed Jun 15 23:48:05 2005 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Thu, 16 Jun 2005 08:48:05 +0200 Subject: Dynamic point In-Reply-To: <001901c5715f$996aeb00$0300a8c0@indoaksesbno> Message-ID: Hello, > The graph is 600x600 pixel > I want to add a single point in x=300 and y=300 Using the PointObj you will add a projectable point with geographic coordinates to the map. In your case the setXY method will create a point at 300?, 300? lonlat which means it will be outside your given extent. > $oMap->setExtent(110.366, -7.79127, 110.376, -7.78127); > $pt->setXY(300,300); You can try using $pt->setXY(110.371, -7.78627). The point will not be fixed to the center of your graph but to the center of your extent. Regards, Sebastian From jacob.delfos at MAUNSELL.COM Thu Jun 16 00:04:32 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 16 Jun 2005 15:04:32 +0800 Subject: Catching error of getShape - php_mapscript Message-ID: Hi all, Can anyone tell me if there is a way to catch the error that getShape throws if you request a shape that is out of range? Reason is I'm trying to iterate through a layer. At this stage, I need to use an object count to make the loop stop. Getting an object count either requires me to use the shpfileobj->numshapes variable (which obviously only works on shapefiles), or doing a query (which would only work on layers with templates, which would need a reprojected rectangle, uses overhead, etc..). Would it be possible to make getShape return MS_FAILURE if the object is out of range, or throw a warning that can be caught using '@' error suppression? That way one could iterate through a whole layer without needing a layer count. Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bino at INDOAKSES-ONLINE.COM Thu Jun 16 00:12:02 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Thu, 16 Jun 2005 14:12:02 +0700 Subject: Dynamic point Message-ID: ----- Original Message ----- From: "Sebastian Albrecht" To: Sent: Thursday, June 16, 2005 1:48 PM Subject: Re: [UMN_MAPSERVER-USERS] Dynamic point > You can try using $pt->setXY(110.371, -7.78627). The point will not be > fixed to the center of your graph but to the center of your extent. > Right. I've done it and already post the report to the list. my un-answered question is : How to display the label of this dynamic point ? I have no succed yet in showing the label of dynamic point. Thanks for your enlightment Regards -bino- From piero.cavalieri at HEIDI.IT Thu Jun 16 01:02:30 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 16 Jun 2005 03:02:30 -0500 Subject: incorporating Rosa into my mapscript app Message-ID: Rosa set some hidden variables which are used by the cgi to generate image. INPUT_COORD should be equivalent to IMGBOX, which is used instead by DHTML interfaces and JBox (I don't know why was added INPUT_COORD, which has a format different from the equivalent IMGBOX...) I use MapServer in cgi mode in .NET environment, so for example, with zoomin and a custom JavaScript action: at the end of the code: (and many others, such as imgext, mapwidth, mapheight ecc..) and in the , for the custom JavaScript action: function FullView() { document.mapserv.refreshed.value= "1"; document.mapserv.imgext.value = "1609350 5056766 1731630 5159006"; document.mapserv.submit(); } GMap application, from DM solutions has exmaple in PHP/MapScript environment. Look at GMapDrawMap() funct in GMap75.inc.php. Simply, instead of my variables from code-behind (<%=img%> ecc..) you wolud have variables from PHP/MapScript ($url, where $url=$img->saveWebImage (parameter1,param2,...); Piero. On 6/15/05, Jeff Portwine wrote: >> >> Hello, >> >> Was just wondering if any of you ROSA users could point me in the direction >> of an example or a document that can get me started... I want to incorporate >> it into my php/mapscript application and I can't find any basic getting >> started information. The web site has information on the Applet Parameters >> which is good but I'm not to that point yet :) >> >> Thanks! >> >> -Jeff >> From temiz at DEPREM.GOV.TR Thu Jun 16 01:19:40 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Thu, 16 Jun 2005 11:19:40 +0300 Subject: python or java ? Message-ID: hello say I am at crossroad. I have to choose either python or java for mapscript application. which one is the better in terms of performance, easy usage, documentation, support of this site and etc? I will appreciate if you send me: - any ideas - documents - links regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From philippe.gondek at GMAIL.COM Thu Jun 16 01:29:29 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Thu, 16 Jun 2005 10:29:29 +0200 Subject: queryByPoint on a Postgis layer... Message-ID: Hi list, I have a problem. I want to use the function queryByPoint in Mapscript to know the item I clicked. $qx = $HTTP_POST_VARS["mapa_x"]; $qy = $HTTP_POST_VARS["mapa_y"]; $point = ms_newpointOBj(); $point->setXY($qx, $qy); $layerq = $map->getLayerByName("communes"); $data = $layerq->queryByPoint($point, MS_SINGLE, -1); >>>>>>>>>> I have no result... maybe I must do the connection to Postgis by myself... any suggestions??? echo nl2br("\n data : $datadata_val"); $result = $layerq->getResult(0); echo nl2br("\n result : $result"); $layerq->open(); $items = $layerq->getitems(); echo nl2br("\n items : $items"); $shape =$layerq->getShape($result->tileindex, $result->shapeindex); $layerq->close(); $data_val = $shape->values; echo nl2br("\n data_val : $data_val"); Thanks and have a nice day... Philippe From margottid at COMUNE.LUGO.RA.IT Thu Jun 16 06:24:53 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 16 Jun 2005 15:24:53 +0200 Subject: Two layers in two different projections Message-ID: Hi all, I have a map in UTM projection (indicated in "MAP" section of the mapfile): MAP ... PROJECTION "proj=utm" END ... END No other projections are indicated in any "LAYER" section. Every layer is based on shapefiles. Now I want to add a layer: another shapefile that is in Cassini-Soldner projection. To see the coordinates of a queried feature, I launch this php script: getLayerByName("Mappali"); if (@$Mappali->queryByAttributes('PARTKEY', 'E730 50 118', MS_SINGLE) == MS_SUCCESS) { $Index = $Mappali->getResult(0); $Mappali->open(); $Shape=$Mappali->getShape(-1,$Index->shapeindex); $minx=$Shape->bounds->minx; $miny=$Shape->bounds->miny; $maxx=$Shape->bounds->maxx; $maxy=$Shape->bounds->maxy; $Mappali->close(); $x=($minx+$maxx)/2; $y=($miny+$maxy)/2; echo $x." - ".$y; } ?> and I obtain two values for x and y center point. But if I add a "PROJECTION" section to my new layer, whatever projection I give, I obtain always the same X-Y values! Is it normal? How can I check coordinates of my point in different projections (and see what projection is right)? I give these parameters for my new layer: LAYER ... PROJECTION "proj=cass" "ellps=bessel" "lat_0=44.5318797222" # 44? 31? 54.767" "lon_0=2.8320858333" # 2? 49' 55.509" "units=m" "no_defs" END ... END Are these parameters right? Do I need ohter parameters for Cassini-Soldner (e.g., False Easting and False Northing) and, if so, how should I define them (e.g.: x_0=..., y_0=... )? I have the newest versions of Mapserver and graphic libraries, installed on a Linux Red Hat 9: [root at linuxd1 cgi-bin]# ./mapserv -v MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [root at linuxd1 cgi-bin]# proj Rel. 4.4.9, 29 Oct 2004 Thank you for your help, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From jerl.simpso at GMAIL.COM Thu Jun 16 06:41:02 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Thu, 16 Jun 2005 08:41:02 -0500 Subject: file size issue Message-ID: Hello, I have a particular issue with file size limits. I have a layer (2 actually) that contains roads classified as "Local Roads" throughout the entire contiguous 48 US states. I had to split this up into 2 files due to filesize limits. My apache server keeps throwing errors that say "[notice] child pid 12855 exit signal File size limit exceeded (25)". So I would like to add these to a MySQL table and pull the data from there. I am running into two problems. 1. I used one of my very small shape files to setup an SQL connection to grab the data. When I modified my .map file I now get an internal server error. Which simply means some data was spit out before HTTP headers terminated. I have a log file and DEBUG ON set in my map file and nothing gets placed in the file. Is there any documentation that tells one how to build the queries? I can't seem to find them. 2. The shape file I have for Local Roads is 1.2Gb. And the perl Shapelib module reads the entire shape file into an array. Well, I don't have 1.2Gb of memory on my machine available so when I run "shp2mysql.pl LocalRoad" the program terminates with the error "Terminated". I looked at the documentation and I don't see a way to just grab records out of the file. I tried get_record() but that threw error messages. I have a tiled this file into 100 smaller files the largest of which is 63Mb. I could write a script to run to shp2mysql.pl on each file. I would rather have a program to operate on the original file though, as I'm afraid I'll end up with 100 seperate tables with the same data. Or I would need to modify the script to foce them all into the same table. I appreciate any help, jerl From dps1 at UALBERTA.CA Thu Jun 16 07:24:54 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Thu, 16 Jun 2005 08:24:54 -0600 Subject: ASP with server-side scripting in map template Message-ID: Hey folks, Is it possible to include server-side vbscript on a map template? MapServer can use .asp as a map template, but nothing is done with the scripting I tried to include. In fact, if you look at the source of the resultant page, the vbscript is clearly visible. My problem is that I'm stuck with asp and there are a few things I would like to add to the map template that would be more efficient to do via vbscript than a MapServer layer. Thanks for any advice, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at DMSOLUTIONS.CA Thu Jun 16 07:28:46 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Thu, 16 Jun 2005 10:28:46 -0400 Subject: queryByPoint on a Postgis layer... In-Reply-To: Message-ID: Hi, Is your layer queryable? To do so, it should be "STATUS ON" and have a template (TEMPLATE "dummy"). You can also set the tolerance to accept clicks that are a little beside the point you tried to click. For more information about those parameters, check the mapfile documentation: http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#layer You can also check the gmap demo if you need an example. http://dl.maptools.org/dl/gmap-ms40.tar.gz Julien On 06/16/2005 04:29 AM, Philippe Gondek wrote: > Hi list, > > I have a problem. I want to use the function queryByPoint in Mapscript > to know the item I clicked. > > $qx = $HTTP_POST_VARS["mapa_x"]; > $qy = $HTTP_POST_VARS["mapa_y"]; > $point = ms_newpointOBj(); > $point->setXY($qx, $qy); > $layerq = $map->getLayerByName("communes"); > $data = $layerq->queryByPoint($point, MS_SINGLE, -1); > > >>>>>>>>>> I have no result... maybe I must do the connection > to Postgis by myself... any suggestions??? > > echo nl2br("\n data : $datadata_val"); > $result = $layerq->getResult(0); > echo nl2br("\n result : $result"); > $layerq->open(); > $items = $layerq->getitems(); > echo nl2br("\n items : $items"); > $shape =$layerq->getShape($result->tileindex, $result->shapeindex); > $layerq->close(); > $data_val = $shape->values; > echo nl2br("\n data_val : $data_val"); > > Thanks and have a nice day... > > Philippe > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jlacroix at DMSOLUTIONS.CA Thu Jun 16 07:47:11 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Thu, 16 Jun 2005 10:47:11 -0400 Subject: file size issue In-Reply-To: Message-ID: Hi, I think what you are trying to do will be much more efficient if you "tile" your shapefile instead of putting all your data in MySQL. The tiling separate your big shape into multiple smaller one. When it's time to draw them, mapserver will only read the one it needs. Check both: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0303/msg00885.html http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?Tile4ms You can also get tips for data optimization from here: http://ms.gis.umn.edu/new_users/index_html#data-optimization Julien On 06/16/2005 09:41 AM, Jerl Simpson wrote: > Hello, > > I have a particular issue with file size limits. I have a layer (2 > actually) that contains roads classified as "Local Roads" throughout > the entire contiguous 48 US states. I had to split this up into 2 > files due to filesize limits. My apache server keeps throwing errors > that say "[notice] child pid 12855 exit signal File size limit > exceeded (25)". So I would like to add these to a MySQL table and > pull the data from there. > > I am running into two problems. > > 1. I used one of my very small shape files to setup an SQL connection > to grab the data. When I modified my .map file I now get an internal > server error. Which simply means some data was spit out before HTTP > headers terminated. I have a log file and DEBUG ON set in my map file > and nothing gets placed in the file. Is there any documentation that > tells one how to build the queries? I can't seem to find them. > > 2. The shape file I have for Local Roads is 1.2Gb. And the perl > Shapelib module reads the entire shape file into an array. Well, I > don't have 1.2Gb of memory on my machine available so when I run > "shp2mysql.pl LocalRoad" the program terminates with the error > "Terminated". I looked at the documentation and I don't see a way to > just grab records out of the file. I tried get_record() but that > threw error messages. > > I have a tiled this file into 100 smaller files the largest of which > is 63Mb. I could write a script to run to shp2mysql.pl on each file. > I would rather have a program to operate on the original file though, > as I'm afraid I'll end up with 100 seperate tables with the same data. > Or I would need to modify the script to foce them all into the same > table. > > I appreciate any help, > > jerl > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jlacroix at DMSOLUTIONS.CA Thu Jun 16 07:55:36 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Thu, 16 Jun 2005 10:55:36 -0400 Subject: ASP with server-side scripting in map template In-Reply-To: <200506161424.j5GEOtUe017853@pilsener.srv.ualberta.ca> Message-ID: Hi, It's possible that some people already did that kind of thing. Maybe they will have better answer. Currently there's no ASP support in MapServer. You will probably have more success by calling the MapServer CGI from your ASP script and modifying whatever it returns. Julien On 06/16/2005 10:24 AM, David Shorthouse wrote: > Hey folks, > > Is it possible to include server-side vbscript on a map template? > MapServer can use .asp as a map template, but nothing is done with the > scripting I tried to include. In fact, if you look at the source of the > resultant page, the vbscript is clearly visible. My problem is that I'm > stuck with asp and there are a few things I would like to add to the map > template that would be more efficient to do via vbscript than a > MapServer layer. > > Thanks for any advice, > > David -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jlacroix at DMSOLUTIONS.CA Thu Jun 16 07:59:48 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Thu, 16 Jun 2005 10:59:48 -0400 Subject: Catching error of getShape - php_mapscript In-Reply-To: <000d01c57241$a603ba30$5d2815ac@au.aecomnet.com> Message-ID: Hi, With Mapscript there's the errorObj object that can do exactly what you want I think. There's an example of how to use it in the doc. http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html#errorobj Julien On 06/16/2005 03:04 AM, Jacob Delfos wrote: > Hi all, > > Can anyone tell me if there is a way to catch the error that getShape > throws if you request a shape that is out of range? > > Reason is I'm trying to iterate through a layer. At this stage, I need > to use an object count to make the loop stop. Getting an object count > either requires me to use the shpfileobj->numshapes variable (which > obviously only works on shapefiles), or doing a query (which would only > work on layers with templates, which would need a reprojected rectangle, > uses overhead, etc?.). > > Would it be possible to make getShape return MS_FAILURE if the object is > out of range, or throw a warning that can be caught using '@' error > suppression? That way one could iterate through a whole layer without > needing a layer count. > > Regards, > > Jacob > > > > * * > > *JACOB DELFOS > SPATIAL INFORMATION ANALYST > *Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > > PO Box 81, Leederville, WA 6902 > > Western Australia > > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > _jacob.delfos at maunsell.com_ > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jlacroix at DMSOLUTIONS.CA Thu Jun 16 08:09:17 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Thu, 16 Jun 2005 11:09:17 -0400 Subject: PHP MapScript zoomscale optional parameter In-Reply-To: Message-ID: Hi, Simply don't specify the optional parameter is correct. There's a parameter missing in the documentation. void zoomscale(double nScale, pointObj oPixelPos, int nImageWidth, int nImageHeight, rectObj oGeorefExt, [rectObj oMaxGeorefExt]) So your problem here is that one parameter is missing: The fifth parameter (oGeorefExt) is mandatory and the sixth (oMaxGeorefExt) is optional. Julien On 06/15/2005 01:52 PM, Abe Gillespie wrote: > According to the docs the oGeorefExt parameter of mapObj::zoomscale is > optional. How do I send in an optional parameter in PHP? I've tried > both of the following with no success: > > $map->zoomscale($scale, $pnt, $w, $h, null); > and > $map->zoomscale($scale, $pnt, $w, $h); > > Please help if you can. Also, and slightly OT, you need to pass in > the height and width of the image. This doesn't make sense to me. > Shouldn't the current height and width of the mapObj be used??? > > Thanks for the help. > -Abe > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From piero.cavalieri at HEIDI.IT Thu Jun 16 08:12:49 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 16 Jun 2005 10:12:49 -0500 Subject: ASP with server-side scripting in map template Message-ID: I don't understand how you use asp files with MapServer. However I think the logic could be: the asp page collect key-values pairs from user needs and send the appropriate request to the cgi. The cgi fill the template file. On top of the page you read the in-memory template and put info (path to images, extents ecc...) in variables. Use variables to fill the new Page. So templates are trasversal, they stay in server and there remains.I do so with aspx. Piero David Shorthouse wrote: > Hey folks, > > Is it possible to include server-side vbscript on a map template? MapServer can use .asp as a map template, but nothing is done with the scripting I tried to include. In fact, if you look at the source of the resultant page, the vbscript is clearly visible. My problem is that I'm stuck with asp and there are a few things I would like to add to the map template that would be more efficient to do via vbscript than a MapServer layer. > > Thanks for any advice, > > David From jerl.simpso at GMAIL.COM Thu Jun 16 08:32:34 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Thu, 16 Jun 2005 10:32:34 -0500 Subject: file size issue In-Reply-To: <42B190EF.9030507@dmsolutions.ca> Message-ID: Yes, I have already tiled the set. And that did help tremendously. Even if it would be best if THIS layer is not in the DB I have other uses for extracting data from the database. I just can't get it to work. I think something is wrong with my DATA string. Well I'm quite sure of it. I get an internal server error. I have no idea how to construct the DATA '' string. If someone could point me to a tutorial I'd be very appreciative. Thanks, jerl On 6/16/05, Julien-Samuel Lacroix wrote: > Hi, > > I think what you are trying to do will be much more efficient if you > "tile" your shapefile instead of putting all your data in MySQL. The > tiling separate your big shape into multiple smaller one. When it's time > to draw them, mapserver will only read the one it needs. Check both: > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0303/msg00885.html > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?Tile4ms > > You can also get tips for data optimization from here: > http://ms.gis.umn.edu/new_users/index_html#data-optimization > > Julien > > On 06/16/2005 09:41 AM, Jerl Simpson wrote: > > Hello, > > > > I have a particular issue with file size limits. I have a layer (2 > > actually) that contains roads classified as "Local Roads" throughout > > the entire contiguous 48 US states. I had to split this up into 2 > > files due to filesize limits. My apache server keeps throwing errors > > that say "[notice] child pid 12855 exit signal File size limit > > exceeded (25)". So I would like to add these to a MySQL table and > > pull the data from there. > > > > I am running into two problems. > > > > 1. I used one of my very small shape files to setup an SQL connection > > to grab the data. When I modified my .map file I now get an internal > > server error. Which simply means some data was spit out before HTTP > > headers terminated. I have a log file and DEBUG ON set in my map file > > and nothing gets placed in the file. Is there any documentation that > > tells one how to build the queries? I can't seem to find them. > > > > 2. The shape file I have for Local Roads is 1.2Gb. And the perl > > Shapelib module reads the entire shape file into an array. Well, I > > don't have 1.2Gb of memory on my machine available so when I run > > "shp2mysql.pl LocalRoad" the program terminates with the error > > "Terminated". I looked at the documentation and I don't see a way to > > just grab records out of the file. I tried get_record() but that > > threw error messages. > > > > I have a tiled this file into 100 smaller files the largest of which > > is 63Mb. I could write a script to run to shp2mysql.pl on each file. > > I would rather have a program to operate on the original file though, > > as I'm afraid I'll end up with 100 seperate tables with the same data. > > Or I would need to modify the script to foce them all into the same > > table. > > > > I appreciate any help, > > > > jerl > > > > > > -- > ------------------------------------------------------------ > Julien-Samuel Lacroix jlacroix at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > From haerta at YAHOO.COM Thu Jun 16 08:29:12 2005 From: haerta at YAHOO.COM (Michael Haertel) Date: Thu, 16 Jun 2005 10:29:12 -0500 Subject: use Mapscript to open GDAL data sources Message-ID: hi all, recently I heard about http://dl.maptools.org/dl/php_ogr/php_ogr_documentation.html and I wonder if there is a corresponding GDAl extension somewhere. I try to access GDAl data sources, especially DTED files with MapScript but although it is possible to add them as a layer in a mapserver mapfile I fail to simply get the extents in Pixels or ground units from a DTED file. Is there a way to get the extents from a DTED1 file? I tried to add the dted file to a layer and performed a raster query on that layer but because of the 1,400,000 cells this method is not a practicable way to get the extents for that layer. Is there a way to pass the DTED object to GDs image functions? Or is there a php GDAl extension? Or is there another mapscript solution to get the extents from a DTED file and open it as an image? Of course I can convert the DTED with GDAL utilities to a TIFF file (With 16Bit values) but I'd rather access the files directly. Thanks for any help, Michael From jlacroix at DMSOLUTIONS.CA Thu Jun 16 08:50:02 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Thu, 16 Jun 2005 11:50:02 -0400 Subject: file size issue In-Reply-To: Message-ID: I never successfully used the MySQL datasource support in MapServer. The documentation is here: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL I don't think there's any tutorial. Most of the people usually go with PostGIS instead of MySQL. There's more people to help with it. You can also consider using a OVF connection to connect to your data. My experience with it is that is very stright forward and easy to use. Documentation: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData Julien On 06/16/2005 11:32 AM, Jerl Simpson wrote: > Yes, I have already tiled the set. And that did help tremendously. > Even if it would be best if THIS layer is not in the DB I have other > uses for extracting data from the database. I just can't get it to > work. I think something is wrong with my DATA string. Well I'm quite > sure of it. I get an internal server error. > > I have no idea how to construct the DATA '' string. If someone could > point me to a tutorial I'd be very appreciative. > > Thanks, > > jerl > > On 6/16/05, Julien-Samuel Lacroix wrote: > >>Hi, >> >>I think what you are trying to do will be much more efficient if you >>"tile" your shapefile instead of putting all your data in MySQL. The >>tiling separate your big shape into multiple smaller one. When it's time >>to draw them, mapserver will only read the one it needs. Check both: >> >>http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0303/msg00885.html >> >>http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?Tile4ms >> >>You can also get tips for data optimization from here: >>http://ms.gis.umn.edu/new_users/index_html#data-optimization >> >>Julien >> >>On 06/16/2005 09:41 AM, Jerl Simpson wrote: >> >>>Hello, >>> >>>I have a particular issue with file size limits. I have a layer (2 >>>actually) that contains roads classified as "Local Roads" throughout >>>the entire contiguous 48 US states. I had to split this up into 2 >>>files due to filesize limits. My apache server keeps throwing errors >>>that say "[notice] child pid 12855 exit signal File size limit >>>exceeded (25)". So I would like to add these to a MySQL table and >>>pull the data from there. >>> >>>I am running into two problems. >>> >>>1. I used one of my very small shape files to setup an SQL connection >>>to grab the data. When I modified my .map file I now get an internal >>>server error. Which simply means some data was spit out before HTTP >>>headers terminated. I have a log file and DEBUG ON set in my map file >>>and nothing gets placed in the file. Is there any documentation that >>>tells one how to build the queries? I can't seem to find them. >>> >>>2. The shape file I have for Local Roads is 1.2Gb. And the perl >>>Shapelib module reads the entire shape file into an array. Well, I >>>don't have 1.2Gb of memory on my machine available so when I run >>>"shp2mysql.pl LocalRoad" the program terminates with the error >>>"Terminated". I looked at the documentation and I don't see a way to >>>just grab records out of the file. I tried get_record() but that >>>threw error messages. >>> >>>I have a tiled this file into 100 smaller files the largest of which >>>is 63Mb. I could write a script to run to shp2mysql.pl on each file. >>>I would rather have a program to operate on the original file though, >>>as I'm afraid I'll end up with 100 seperate tables with the same data. >>> Or I would need to modify the script to foce them all into the same >>>table. >>> >>>I appreciate any help, >>> >>>jerl >>> >>> >> >>-- >>------------------------------------------------------------ >>Julien-Samuel Lacroix jlacroix at dmsolutions.ca >>DM Solutions Group http://www.dmsolutions.ca/ >>------------------------------------------------------------ >> > > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From umberto.nicoletti at GMAIL.COM Thu Jun 16 08:43:47 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 16 Jun 2005 17:43:47 +0200 Subject: Troubles writing to the list Message-ID: I have not been able to post to the list for all day with my unicoletti at prometeo.it account. Is there something going on? Regards, Umberto From ed at TOPOZONE.COM Thu Jun 16 08:56:54 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 16 Jun 2005 11:56:54 -0400 Subject: ASP with server-side scripting in map template Message-ID: David - No, you can't do that. Your Web server will run one processor/handler for each page request. You're essentially trying to send *one* HTTP request to a CGI program, and then have the ASP output of that program treated as if it were an ASP source page, and run through the ASP processor. That's double-dipping. However, most of the MapServer template functionality allows you to do pretty powerful things WITHOUT a scripting language. If you've already got a scripting language like ASP, you can just do those things in ASP. The easiest way (IMHO) to do this is to have your ASP code generate the "template" output, and insert the appropriate IMG tags with SRC properties specifying MapServer CGI requests, like: where you'd like to insert the scalebar in the output HTML generated by your ASP page. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Shorthouse Sent: Thursday, June 16, 2005 10:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ASP with server-side scripting in map template Hey folks, Is it possible to include server-side vbscript on a map template? MapServer can use .asp as a map template, but nothing is done with the scripting I tried to include. In fact, if you look at the source of the resultant page, the vbscript is clearly visible. My problem is that I'm stuck with asp and there are a few things I would like to add to the map template that would be more efficient to do via vbscript than a MapServer layer. Thanks for any advice, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at DMSOLUTIONS.CA Thu Jun 16 09:06:49 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Thu, 16 Jun 2005 12:06:49 -0400 Subject: use Mapscript to open GDAL data sources In-Reply-To: Message-ID: Hi, There's currently no php_gdal module, sorry. I'm not a GDAL specialist, but you may try to call gdalinfo from inside your php script. If you parse the result, you may get what you want. Just a thought Julien On 06/16/2005 11:29 AM, Michael Haertel wrote: > hi all, > > recently I heard about > > http://dl.maptools.org/dl/php_ogr/php_ogr_documentation.html > > and I wonder if there is a corresponding GDAl extension somewhere. > > I try to access GDAl data sources, especially DTED files with MapScript but > although it is possible to add them as a layer in a mapserver mapfile I > fail to simply get the extents in Pixels or ground units from a DTED file. > > Is there a way to get the extents from a DTED1 file? I tried to add the > dted file to a layer and performed a raster query on that layer but because > of the 1,400,000 cells this method is not a practicable way to get the > extents for that layer. > > Is there a way to pass the DTED object to GDs image functions? Or is there > a php GDAl extension? > > Or is there another mapscript solution to get the extents from a DTED file > and open it as an image? Of course I can convert the DTED with GDAL > utilities to a TIFF file (With 16Bit values) but I'd rather access the files > directly. > > Thanks for any help, > > Michael > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From amy.morrell at GSFC.NASA.GOV Thu Jun 16 09:36:07 2005 From: amy.morrell at GSFC.NASA.GOV (Amy Morrell) Date: Thu, 16 Jun 2005 11:36:07 -0500 Subject: basic question - manipulating where query object results are displayed Message-ID: Hi, I am very new to MapServer, and just using the basic set-up write now. I hope to start delving into perl mapscript soon, but not sure how that all fits in. Anyhow, I have a query item working, but right now it replaces my original Map window. I would like to preferably, have an area on the original map interface where query results (basic data from related .dbf file) can be presented if the user did a query object? I was thinking it could toggle with my [legend] variable. Is this possible? How would I get it to use the query-object template file for that specific layer? The other option is to have it trigger a pop-up to a new window that displays the result of the query-object. Any suggestions? Thanks so much, Amy From dps1 at UALBERTA.CA Thu Jun 16 10:20:28 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Thu, 16 Jun 2005 11:20:28 -0600 Subject: ASP with server-side scripting in map template In-Reply-To: A<4BF377919225F449BB097CB76FFE9BC81886C1@ptolemy.topozone.com> Message-ID: Ed, Thanks for the suggestions. I now understand why it won't work as I had hoped. Your solution is probably the best for what I want to do but will get really ugly really fast. One layer in my map file comes as a result of a virtual connection to an Access db via an ovf file and DSN. I guess I'll just have to stick with what I have an be happy with it. What I was attempting to do was not only pull some x and y coordinates from the Access db via the virtual connection but also pull the contents of a timestamp field from the same db. I suppose I could make a second layer and a second virtual connection. This however, might be a drain on my server with every pan and zoom the client performs. Thanks, Dave _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, June 16, 2005 9:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ASP with server-side scripting in map template David - No, you can't do that. Your Web server will run one processor/handler for each page request. You're essentially trying to send *one* HTTP request to a CGI program, and then have the ASP output of that program treated as if it were an ASP source page, and run through the ASP processor. That's double-dipping. However, most of the MapServer template functionality allows you to do pretty powerful things WITHOUT a scripting language. If you've already got a scripting language like ASP, you can just do those things in ASP. The easiest way (IMHO) to do this is to have your ASP code generate the "template" output, and insert the appropriate IMG tags with SRC properties specifying MapServer CGI requests, like: where you'd like to insert the scalebar in the output HTML generated by your ASP page. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Shorthouse Sent: Thursday, June 16, 2005 10:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ASP with server-side scripting in map template Hey folks, Is it possible to include server-side vbscript on a map template? MapServer can use .asp as a map template, but nothing is done with the scripting I tried to include. In fact, if you look at the source of the resultant page, the vbscript is clearly visible. My problem is that I'm stuck with asp and there are a few things I would like to add to the map template that would be more efficient to do via vbscript than a MapServer layer. Thanks for any advice, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Jun 16 10:28:31 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 16 Jun 2005 13:28:31 -0400 Subject: ASP with server-side scripting in map template Message-ID: Dave - I'm not sure why that needs to become "ugly" - as long as you can specify the map request via an HTTP GET request and querystring (and if you can use the CGI template mechanism you can, by definition, do that) you should be OK. You can certainly have your ASP code make ONE request to the CGI program in "browse" mode and then - instead of returning the generated HTML to the client - capture the generated HTML and parse it. This can be very easy to do, since you simplify your template file to onlye be a list of MapServer template variables, one per line or something. You then just get a short text file returned to your ASP page with all the "answers" in it, including the URLs of any map images generated for you. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Shorthouse Sent: Thursday, June 16, 2005 1:20 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ASP with server-side scripting in map template Ed, Thanks for the suggestions. I now understand why it won't work as I had hoped. Your solution is probably the best for what I want to do but will get really ugly really fast. One layer in my map file comes as a result of a virtual connection to an Access db via an ovf file and DSN. I guess I'll just have to stick with what I have an be happy with it. What I was attempting to do was not only pull some x and y coordinates from the Access db via the virtual connection but also pull the contents of a timestamp field from the same db. I suppose I could make a second layer and a second virtual connection. This however, might be a drain on my server with every pan and zoom the client performs. Thanks, Dave ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, June 16, 2005 9:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ASP with server-side scripting in map template David - No, you can't do that. Your Web server will run one processor/handler for each page request. You're essentially trying to send *one* HTTP request to a CGI program, and then have the ASP output of that program treated as if it were an ASP source page, and run through the ASP processor. That's double-dipping. However, most of the MapServer template functionality allows you to do pretty powerful things WITHOUT a scripting language. If you've already got a scripting language like ASP, you can just do those things in ASP. The easiest way (IMHO) to do this is to have your ASP code generate the "template" output, and insert the appropriate IMG tags with SRC properties specifying MapServer CGI requests, like: where you'd like to insert the scalebar in the output HTML generated by your ASP page. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Shorthouse Sent: Thursday, June 16, 2005 10:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ASP with server-side scripting in map template Hey folks, Is it possible to include server-side vbscript on a map template? MapServer can use .asp as a map template, but nothing is done with the scripting I tried to include. In fact, if you look at the source of the resultant page, the vbscript is clearly visible. My problem is that I'm stuck with asp and there are a few things I would like to add to the map template that would be more efficient to do via vbscript than a MapServer layer. Thanks for any advice, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From pservant at REFRACTIONS.NET Thu Jun 16 11:48:52 2005 From: pservant at REFRACTIONS.NET (Paul Servant) Date: Thu, 16 Jun 2005 13:48:52 -0500 Subject: Mapserver/Mapscript 4.6 Compiling Problem Message-ID: Hello, I've compiled mapserver 4.6 with no problems but I've noticed when mapscript compiles it throws the following warnings when I permform a make: php_mapscript.c: In function `php3_ms_img_pasteImage': php_mapscript.c:6267: warning: implicit declaration of function `php_gd_gdImageColorExact' php_mapscript.c:6271: warning: implicit declaration of function `php_gd_gdImageColorTransparent' php_mapscript.c:6274: warning: implicit declaration of function `php_gd_gdImageCopy' php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:5997: warning: 'tmp' might be used uninitialized in this function Where are the functions php_gd_gdImageColorExact, php_gd_gdImageColorTransparent, and php_gd_gdImageCopy defined? It seems when I try running kamap and it tries to load the php_mapscript.so file it throws the following warning and error: PHP Warning: dl(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: undefined symbol: php_gd_gdImageCopy in /home/www/mapserv/htdocs/kamap/init.php on line 41 PHP Fatal error: Call to undefined function: ms_newmapobj() in /home/www/mapserv/htdocs/kamap/init.php on line 44 I compiled mapserver with the following configure statement: ./configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/opt/pgsql/8.0/bin/pg_config --with-proj --with-wfs --with-wfsclient --with-wmsclient --with-threads --with-curl-config=/usr/bin/curl-config --with-php=/usr/include/php --without-tiff Has anyone else seen this problem? Is there anything wrong with my configure statement? Is there a relation between the compiling problems and the php dynamic loading errors? Cheers, Paul From schuyler at NOCAT.NET Thu Jun 16 14:09:52 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Thu, 16 Jun 2005 14:09:52 -0700 Subject: postgis using COLLECT() in layer data... In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909294@hermes.uai.int> Message-ID: There used to be a bug in MapServer 4.4 (there might still be?) where the msPOSTGIS code wasn't doing case-insensitive pattern matching on the SQL query. Change your query to read 'the_geom FROM (...)' (and maybe change the case in the subquery also) and it *should* work. I patched this bug in my local MapServer install but never got round to submitting the patch. If the problem still exists, please let me know and I will update my patch against the latest CVS and actually submit it this time. SDE * On 15-Jun-2005 at 8:44AM PDT, John Cole said: > Hello, > I'm trying to un-clutter street labels by using a COLLECT() and grouping > on the street name, but I'm running into a problem getting MapServer 4.4 to > work with the data line. > > Here is my layer > > LAYER > NAME Highways_anno > STATUS default > GROUP roads > CONNECTIONTYPE postgis > CONNECTION "user=mapserver password=mapserver > dbname=florence host=localhost" > DATA "the_geom from (select collect(the_geom) as the_geom, > rd_name from tgr_roads group by rd_name) AS new_table USING UNIQUE rd_name > USING SRID=-1" > TYPE annotation > LABELITEM "rd_name" > MAXSCALE 12000 > > CLASS > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > ANGLE AUTO > FONT arial > SIZE 8 > ANTIALIAS TRUE > POSITION CC > MINDISTANCE 10 > BUFFER 5 > END > END > END > > The query returns, but no labels are drawn. Using a DATA "the_geom from > tgr_roads" does draw labels. > > What am I doing wrong? :-) > > Thanks, > > John Cole > > ------------------------------------- > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From lfilak at MEDINACO.ORG Thu Jun 16 15:05:23 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 16 Jun 2005 18:05:23 -0400 Subject: file size issue Message-ID: The following message was sent by Jerl Simpson on Thu, 16 Jun 2005 08:41:02 -0500. > Hello, > > I have a particular issue with file size limits. I have a layer (2 > actually) that contains roads classified as "Local Roads" throughout > the entire contiguous 48 US states. I had to split this up into 2 > files due to filesize limits. My apache server keeps throwing errors > that say "[notice] child pid 12855 exit signal File size limit > exceeded (25)". So I would like to add these to a MySQL table and > pull the data from there. > > I am running into two problems. > > 1. I used one of my very small shape files to setup an SQL connection > to grab the data. When I modified my .map file I now get an internal > server error. Which simply means some data was spit out before HTTP > headers terminated. I have a log file and DEBUG ON set in my map file > and nothing gets placed in the file. Is there any documentation that > tells one how to build the queries? I can't seem to find them. > > 2. The shape file I have for Local Roads is 1.2Gb. And the perl > Shapelib module reads the entire shape file into an array. Well, I > don't have 1.2Gb of memory on my machine available so when I run > "shp2mysql.pl LocalRoad" the program terminates with the error > "Terminated". I looked at the documentation and I don't see a way to > just grab records out of the file. I tried get_record() but that > threw error messages. > > I have a tiled this file into 100 smaller files the largest of which > is 63Mb. I could write a script to run to shp2mysql.pl on each file. > I would rather have a program to operate on the original file though, > as I'm afraid I'll end up with 100 seperate tables with the same data. > Or I would need to modify the script to foce them all into the same > table. Jerl, If you want to venture into modifying the shp2mysql.pl what can be done is to write each record of data to a tab delimited text file and then use 'load data local infile' instead of the insert. HTH Lowell From simboss1 at GMAIL.COM Thu Jun 16 15:47:34 2005 From: simboss1 at GMAIL.COM (simone giannecchini) Date: Fri, 17 Jun 2005 00:47:34 +0200 Subject: Tiling and overview for a large raster data-set Message-ID: Hi list, I am quite new to Minnesota MapServer, and I need to solve this problem quickly. I have a large dataset of 20.000 tiff images with their world files covering the urban area of Tampa (FL). I eould like to server them using the WMS interface of MapServer. As you can guess the are covered is quie small and the resolution of each image is pretty big. What I am trying to avoid is having too load to many tiles as the user zoom out in order to reduce the memory and processor consumption. The right level of zoom is like 10 tiles at a time, as you zoom out the image loose its importance and could even stop to be rendered! I read all the documentation avalaible and many messages on this ml and I came up with this solution. 1>create an index using gdaltindex for the overall data set. 2>create various level of overview for each image in the dataset using gdaladdo 3>serve the images as a whole layer twaking the MINSCALE and MAXSCALE factor in the WEB category of the map file. I managed to do the first two steps (it is not so difficult I know...), I am having troubles with the third step. How should I set those two parameters in order to take advantage of the overviews that I created for each tile? How can I prevent the user from zooming out too much? What I basically need, is a way to prevent the server from loading too many tiles (even if they have overviews) but I want to let the user being able to zoom in down to the single tile level and maybe a bit more in order to see the beauty of the high resolution imagery I am serving. How can I interact with the Scale parameter to tweak this zooming issue? Am I missing some steps? Please let me know, it is really important to me right now. PS I know that maybe someon already answered this questions, if so hust give me some pointers and excuse me if I posted this question again! Simone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From murilo.yoshida at AGX.COM.BR Thu Jun 16 16:18:05 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Thu, 16 Jun 2005 20:18:05 -0300 Subject: [PHP MapScript] Problem with ms_newShapefileObj and path with special characters Message-ID: Hi all, I tried to create a shapefile using a path with special characters in a linux system, all escaped by backslashes (\). The problem is that the ms_newShapefileObj function doesn't appear to work with this kind of path ... I tried to create a regular file using the same path and the same name as the failed shapefile in a terminal, and it worked fine. Is it a bug? Did somebody had this problem? Example: ms_newShapefileObj(/teste/mapas/btg/Hiro?s_Test/Teste\(blablabla:\)_\)/d ata/testeShapeFile,MS_SHP_POLYGON); Thanks in advance, Murilo From lists at WEBMAPIT.COM.BR Thu Jun 16 18:02:52 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 16 Jun 2005 22:02:52 -0300 Subject: [off-topic] Minimum C# for MapScript Message-ID: Hi folks, Does anybody recommend any free-downlable material about C# ? I'm new to C# but don't wanna to become a MCP guy. I'm just looking for basic stuff, just to play a little around MapScript.NET thanks in advance -- Eduardo Patto Kanegae http://www.webmapit.com.br From abe.gillespie at GMAIL.COM Thu Jun 16 18:10:46 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Thu, 16 Jun 2005 21:10:46 -0400 Subject: [off-topic] Minimum C# for MapScript In-Reply-To: <42B2213C.6030905@webmapit.com.br> Message-ID: www.codeproject.com is one of the best resources out there. There's also www.gotdotnet.com. I love C#! I can't wait until I get a chance to *really* use MapScript.NET. Thus far I've created a little desktop app that displays maps, allows remedial navigation, and layer control. Unfortunately the API is not thread-safe and causes problems when used in ASP.NET. (ASP.NET has a very funkaliscious threading system ... though Mono's ASP.NET may be better; haven't tried it) -Abe On 6/16/05, Eduardo Patto Kanegae wrote: > Hi folks, > > Does anybody recommend any free-downlable material about C# ? > > I'm new to C# but don't wanna to become a MCP guy. I'm just looking > for basic stuff, just to play a little around MapScript.NET > > thanks in advance > > -- > Eduardo Patto Kanegae > http://www.webmapit.com.br > From bino at INDOAKSES-ONLINE.COM Thu Jun 16 18:07:06 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Fri, 17 Jun 2005 08:07:06 +0700 Subject: Dynamic point Message-ID: Hi Fernando ----- Original Message ----- From: "Fernando Simon" To: "bino_oetomo" Sent: Friday, June 17, 2005 12:34 AM Subject: Re: [UMN_MAPSERVER-USERS] Dynamic point > Hi, > How did you defined you dynamic point? > If you defined each point with a shabeObj, you can use the parameter > "TEXT" in shapeObj as the source for the label. > Thanks. > I just use methode mentioned at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint Regards -bino- From jacob.delfos at MAUNSELL.COM Thu Jun 16 18:35:55 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 17 Jun 2005 09:35:55 +0800 Subject: Catching error of getShape - php_mapscript Message-ID: Hi Julien, Thanks for your suggestion. I have tried it, but it didn't work. I have tried using my own error handler (with set_error_handler), but even if I do that, my php log says: [17-Jun-2005 09:23:21] PHP Fatal error: [MapServer Error]: msLayerGetShape(): Invalid feature id. I also get this when using the mapserver error object. I guess it's because the getShape function generates a fatal error, which in php will always result in script termination. I guess my problem is using php_mapscript_44 and php4. If I used php 5 I could use a "try catch" statement.... Regards, Jacob -----Original Message----- From: Julien-Samuel Lacroix [mailto:jlacroix at dmsolutions.ca] Sent: 16 June 2005 23:00 To: Jacob Delfos Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Catching error of getShape - php_mapscript Hi, With Mapscript there's the errorObj object that can do exactly what you want I think. There's an example of how to use it in the doc. http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html#errorobj Julien On 06/16/2005 03:04 AM, Jacob Delfos wrote: > Hi all, > > Can anyone tell me if there is a way to catch the error that getShape > throws if you request a shape that is out of range? > > Reason is I'm trying to iterate through a layer. At this stage, I need > to use an object count to make the loop stop. Getting an object count > either requires me to use the shpfileobj->numshapes variable (which > obviously only works on shapefiles), or doing a query (which would only > work on layers with templates, which would need a reprojected rectangle, > uses overhead, etc..). > > Would it be possible to make getShape return MS_FAILURE if the object is > out of range, or throw a warning that can be caught using '@' error > suppression? That way one could iterate through a whole layer without > needing a layer count. > > Regards, > > Jacob > > > > * * > > *JACOB DELFOS > SPATIAL INFORMATION ANALYST > *Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > > PO Box 81, Leederville, WA 6902 > > Western Australia > > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > _jacob.delfos at maunsell.com_ > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ierickson at ANALYGIS.COM Thu Jun 16 20:21:51 2005 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Thu, 16 Jun 2005 20:21:51 -0700 Subject: [off-topic] Minimum C# for MapScript In-Reply-To: Message-ID: Can anyone give a quick overview of those components that are not thread safe in MapServer? I do believe someone addressed it before, but I could not find anything in the archives. For example, I'm using MapScript C#, with the GDAL, regex, libcurl, gd and proj libraries and have compiled the library using the -DUSE_THREADS flag (although all this discussion about thread safety gives me pause about the applicability of this flag). - Ian Abe Gillespie wrote: >www.codeproject.com is one of the best resources out there. There's >also www.gotdotnet.com. > >I love C#! I can't wait until I get a chance to *really* use >MapScript.NET. Thus far I've created a little desktop app that >displays maps, allows remedial navigation, and layer control. >Unfortunately the API is not thread-safe and causes problems when used >in ASP.NET. (ASP.NET has a very funkaliscious threading system ... >though Mono's ASP.NET may be better; haven't tried it) > >-Abe > >On 6/16/05, Eduardo Patto Kanegae wrote: > > >>Hi folks, >> >>Does anybody recommend any free-downlable material about C# ? >> >>I'm new to C# but don't wanna to become a MCP guy. I'm just looking >>for basic stuff, just to play a little around MapScript.NET >> >>thanks in advance >> >>-- >>Eduardo Patto Kanegae >>http://www.webmapit.com.br >> >> >> > > > -- Ian Erickson AnalyGIS, LLC Gold Canyon, AZ 85218 http:// www.analygis.com tel: 480.677.6260 mob: 480.221.7173 fax: 480.677.6261 From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jun 16 22:34:25 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 17 Jun 2005 07:34:25 +0200 Subject: Mapserver/Mapscript 4.6 Compiling Problem Message-ID: These functions are defined in the PHP GD2 extension. Do you have that extension? Is it loaded( or loaded by the kaMap script)? if ( PHP_OS == "WINNT" || PHP_OS == "WIN32" ) $szGDModule = "php_gd2.dll"; else $szGDModule = "php_gd2.so"; if (!extension_loaded("gd")) dl($szGDModule); Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Paul Servant 06/16/05 08:48pm >>> Hello, I've compiled mapserver 4.6 with no problems but I've noticed when mapscript compiles it throws the following warnings when I permform a make: php_mapscript.c: In function `php3_ms_img_pasteImage': php_mapscript.c:6267: warning: implicit declaration of function `php_gd_gdImageColorExact' php_mapscript.c:6271: warning: implicit declaration of function `php_gd_gdImageColorTransparent' php_mapscript.c:6274: warning: implicit declaration of function `php_gd_gdImageCopy' php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:5997: warning: 'tmp' might be used uninitialized in this function Where are the functions php_gd_gdImageColorExact, php_gd_gdImageColorTransparent, and php_gd_gdImageCopy defined? It seems when I try running kamap and it tries to load the php_mapscript.so file it throws the following warning and error: PHP Warning: dl(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: undefined symbol: php_gd_gdImageCopy in /home/www/mapserv/htdocs/kamap/init.php on line 41 PHP Fatal error: Call to undefined function: ms_newmapobj() in /home/www/mapserv/htdocs/kamap/init.php on line 44 I compiled mapserver with the following configure statement: ../configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/opt/pgsql/8.0/bin/pg_config --with-proj --with-wfs --with-wfsclient --with-wmsclient --with-threads --with-curl-config=/usr/bin/curl-config --with-php=/usr/include/php --without-tiff Has anyone else seen this problem? Is there anything wrong with my configure statement? Is there a relation between the compiling problems and the php dynamic loading errors? Cheers, Paul From sgillies at FRII.COM Thu Jun 16 23:37:08 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 17 Jun 2005 01:37:08 -0500 Subject: [off-topic] Minimum C# for MapScript In-Reply-To: Message-ID: http://zcologia.com/news/24 cheers, Sean On Jun 16, 2005, at 10:21 PM, Ian Erickson wrote: > Can anyone give a quick overview of those components that are not > thread > safe in MapServer? I do believe someone addressed it before, but I > could not find anything in the archives. For example, I'm using > MapScript C#, with the GDAL, regex, libcurl, gd and proj libraries and > have compiled the library using the -DUSE_THREADS flag (although all > this discussion about thread safety gives me pause about the > applicability of this flag). > > - Ian > > Abe Gillespie wrote: > >> www.codeproject.com is one of the best resources out there. There's >> also www.gotdotnet.com. >> >> I love C#! I can't wait until I get a chance to *really* use >> MapScript.NET. Thus far I've created a little desktop app that >> displays maps, allows remedial navigation, and layer control. >> Unfortunately the API is not thread-safe and causes problems when used >> in ASP.NET. (ASP.NET has a very funkaliscious threading system ... >> though Mono's ASP.NET may be better; haven't tried it) >> >> -Abe >> >> On 6/16/05, Eduardo Patto Kanegae wrote: >> >> >>> Hi folks, >>> >>> Does anybody recommend any free-downlable material about C# ? >>> >>> I'm new to C# but don't wanna to become a MCP guy. I'm just looking >>> for basic stuff, just to play a little around MapScript.NET >>> >>> thanks in advance >>> >>> -- >>> Eduardo Patto Kanegae >>> http://www.webmapit.com.br >>> >>> >>> >> >> >> > > -- > Ian Erickson > AnalyGIS, LLC > Gold Canyon, AZ 85218 > http:// www.analygis.com > > tel: 480.677.6260 > mob: 480.221.7173 > fax: 480.677.6261 > From jbrook at PICKNOWL.COM.AU Fri Jun 17 01:12:18 2005 From: jbrook at PICKNOWL.COM.AU (James Brook) Date: Fri, 17 Jun 2005 03:12:18 -0500 Subject: Perl Mapscript download for Windows Message-ID: Hi, I'm very new to this and have had trouble finding the Mapscript Perl download for Windows - can anyone point me in the right direction? Thanks. From jacob.delfos at MAUNSELL.COM Fri Jun 17 01:52:11 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 17 Jun 2005 16:52:11 +0800 Subject: Running different versions on Windows simultaneously Message-ID: Hi All, I am about to set up a new internal server for running mapserver-based sites, and I am trying to do it such that I can run different versions of php_mapscript (and mapserver). The problem I am running into is that certain versions of the dll are compiled against certain of its dependent dll's. For example, php_mapscript_46 works fine with the gdal12.dll that comes with it, but not with the dll I compiled for php_mapscript_44. And one gdal12.dll will only work with the ecw dll's it was compiled with. I have tried keeping them in separate directories. This nearly worked, but for some reason gdal12.dll MUST sit in the windows System directory (even if you set up your paths correctly). I cannot just sit with the php_mapscript dll. The same goes for some other dll's. Even if the dependency walker says that all is fine, the website will not run unless it sits in system32. Has anyone been able to implement this more successfully? Any tips? Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From v.schulze at CCGIS.DE Fri Jun 17 02:11:30 2005 From: v.schulze at CCGIS.DE (Vera Schulze) Date: Fri, 17 Jun 2005 11:11:30 +0200 Subject: question on using mapserver In-Reply-To: <42B09C66.9060209@media.mit.edu> Message-ID: Hi Kwan here you can get free world map data: http://www2.demis.nl/wms/wms.asp?wms=WorldMap&REQUEST=GetCapabilities&SERVICE=wms&VERSION=1.1.0 Hth, Vera Kwan Hong Lee wrote: > Hi, > > I am trying to use map server over web with java servlets and I was > wondering if this architecture works. > > web client > > ------------ > Java Servlets/Tomcat > ------------- > WMS > ------------- > MapServer > > > Also where are some places I can get free world map data? > > Thank you. > > -kwan > > > -- > http://www.media.mit.edu/~kwan/info.html From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jun 17 02:16:18 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 17 Jun 2005 11:16:18 +0200 Subject: Running different versions on Windows simultaneously Message-ID: Hi Jacob, I have never run into the issue of needing to put gdal12.dll in the system32 directory, and I have done several installs lately, on both IIS (4 and 6) and Apache. You could recompile all Mapserver/Mapscript extensions to use the same GDAL release (plus nmake options) but I don't know if that is an option for you. Best regards, Bart Btw there is a partly related Mapserver enhancement bug for this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=545 Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Jacob Delfos 06/17/05 10:52am >>> Hi All, I am about to set up a new internal server for running mapserver-based sites, and I am trying to do it such that I can run different versions of php_mapscript (and mapserver). The problem I am running into is that certain versions of the dll are compiled against certain of its dependent dll's. For example, php_mapscript_46 works fine with the gdal12.dll that comes with it, but not with the dll I compiled for php_mapscript_44. And one gdal12.dll will only work with the ecw dll's it was compiled with. I have tried keeping them in separate directories. This nearly worked, but for some reason gdal12.dll MUST sit in the windows System directory (even if you set up your paths correctly). I cannot just sit with the php_mapscript dll. The same goes for some other dll's. Even if the dependency walker says that all is fine, the website will not run unless it sits in system32. Has anyone been able to implement this more successfully? Any tips? Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com From sid.parekh at ERMAPPER.COM Fri Jun 17 02:29:53 2005 From: sid.parekh at ERMAPPER.COM (Siddharth Parekh) Date: Fri, 17 Jun 2005 17:29:53 +0800 Subject: CGI error. Message-ID: Hey everyone, I downloaded Mapserver 4.4.1 (ms441pg.zip) from http://mapserver.gis.umn.edu/ and installed it as described in the Install.txt. On running a mapserver demo, it pops up with a crash message and then browser displays error: ------ CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ------- I even reinstalled everything from scratch, but no help. I am installing it on Win XP SP2. Any ideas? Has this issue been resolved by someone? Can someone throw some light on it? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jun 17 02:44:10 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 17 Jun 2005 11:44:10 +0200 Subject: CGI error. Message-ID: This is probably due to a missing dependency. Does mapserv.exe run from the command-line? Can you run mapserv.exe in the browser and does it come back with No query information etc.? Otherwise check with a dependency tool like depends. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:29am >>> Hey everyone, I downloaded Mapserver 4.4.1 (ms441pg.zip) from http://mapserver.gis.umn.edu/ and installed it as described in the Install.txt. On running a mapserver demo, it pops up with a crash message and then browser displays error: ------ CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ------- I even reinstalled everything from scratch, but no help. I am installing it on Win XP SP2. Any ideas? Has this issue been resolved by someone? Can someone throw some light on it? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- From sid.parekh at ERMAPPER.COM Fri Jun 17 02:57:17 2005 From: sid.parekh at ERMAPPER.COM (Siddharth Parekh) Date: Fri, 17 Jun 2005 17:57:17 +0800 Subject: CGI error. In-Reply-To: Message-ID: On running from the command line, it doesnt show me any crash message. It displays ----- This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. ----- And on running mapserv -v it displays ----- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPU T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG ----- This isn't an error. On running through the browser, it displays, "No query information to decode. QUERY_STRING not set.". Initially, it asked me that msvcr70.dll is missing. I downloaded it and still it doesn't work. Any further ideas? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Friday, June 17, 2005 5:44 PM To: sid.parekh at ERMAPPER.COM; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. This is probably due to a missing dependency. Does mapserv.exe run from the command-line? Can you run mapserv.exe in the browser and does it come back with No query information etc.? Otherwise check with a dependency tool like depends. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:29am >>> Hey everyone, I downloaded Mapserver 4.4.1 (ms441pg.zip) from http://mapserver.gis.umn.edu/ and installed it as described in the Install.txt. On running a mapserver demo, it pops up with a crash message and then browser displays error: ------ CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ------- I even reinstalled everything from scratch, but no help. I am installing it on Win XP SP2. Any ideas? Has this issue been resolved by someone? Can someone throw some light on it? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jun 17 03:00:55 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 17 Jun 2005 12:00:55 +0200 Subject: CGI error. Message-ID: Okay, just checking. Can you be more specific on which demo you are using? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:57am >>> On running from the command line, it doesnt show me any crash message. It displays ----- This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. ----- And on running mapserv -v it displays ----- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPU T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG ----- This isn't an error. On running through the browser, it displays, "No query information to decode. QUERY_STRING not set.". Initially, it asked me that msvcr70.dll is missing. I downloaded it and still it doesn't work. Any further ideas? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Friday, June 17, 2005 5:44 PM To: sid.parekh at ERMAPPER.COM; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. This is probably due to a missing dependency. Does mapserv.exe run from the command-line? Can you run mapserv.exe in the browser and does it come back with No query information etc.? Otherwise check with a dependency tool like depends. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:29am >>> Hey everyone, I downloaded Mapserver 4.4.1 (ms441pg.zip) from http://mapserver.gis.umn.edu/ and installed it as described in the Install.txt. On running a mapserver demo, it pops up with a crash message and then browser displays error: ------ CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ------- I even reinstalled everything from scratch, but no help. I am installing it on Win XP SP2. Any ideas? Has this issue been resolved by someone? Can someone throw some light on it? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- From sid.parekh at ERMAPPER.COM Fri Jun 17 03:07:24 2005 From: sid.parekh at ERMAPPER.COM (Siddharth Parekh) Date: Fri, 17 Jun 2005 18:07:24 +0800 Subject: CGI error. In-Reply-To: Message-ID: There is a link in the README-install.txt for demos. http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip This is the demo that is causing the crash message and the CGI error as detailed in the previous mails. Cheers. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Bart van den Eijnden Sent: Friday, June 17, 2005 6:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. Okay, just checking. Can you be more specific on which demo you are using? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:57am >>> On running from the command line, it doesnt show me any crash message. It displays ----- This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. ----- And on running mapserv -v it displays ----- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPU T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG ----- This isn't an error. On running through the browser, it displays, "No query information to decode. QUERY_STRING not set.". Initially, it asked me that msvcr70.dll is missing. I downloaded it and still it doesn't work. Any further ideas? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Friday, June 17, 2005 5:44 PM To: sid.parekh at ERMAPPER.COM; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. This is probably due to a missing dependency. Does mapserv.exe run from the command-line? Can you run mapserv.exe in the browser and does it come back with No query information etc.? Otherwise check with a dependency tool like depends. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:29am >>> Hey everyone, I downloaded Mapserver 4.4.1 (ms441pg.zip) from http://mapserver.gis.umn.edu/ and installed it as described in the Install.txt. On running a mapserver demo, it pops up with a crash message and then browser displays error: ------ CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ------- I even reinstalled everything from scratch, but no help. I am installing it on Win XP SP2. Any ideas? Has this issue been resolved by someone? Can someone throw some light on it? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- From taatuut at PLANET.NL Fri Jun 17 03:32:02 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Fri, 17 Jun 2005 12:32:02 +0200 Subject: CGI error. In-Reply-To: Message-ID: Hello Siddharth, Have you enabled Mapserver debugging in your .map file? This will give you a log file with request info and error messages (when you're using IIS make sure the IUSR_ has write rights on the log file and enable write rights for the folder containing the log file in the IIS management console. When you are using Windows authentication and you are an administrator testing the site on the local host this is not necessary). This may give you more specific information about what is going wrong. Also when you use Internet Explorer make sure you turned of 'Show friendly HTTP error messages' under menu Tools/Internet Options/Advanced With more debug info it might be easier to find the cause of your problem. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Siddharth Parekh Sent: vrijdag 17 juni 2005 12:07 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. There is a link in the README-install.txt for demos. http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip This is the demo that is causing the crash message and the CGI error as detailed in the previous mails. Cheers. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Bart van den Eijnden Sent: Friday, June 17, 2005 6:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. Okay, just checking. Can you be more specific on which demo you are using? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:57am >>> On running from the command line, it doesnt show me any crash message. It displays ----- This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. ----- And on running mapserv -v it displays ----- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPU T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG ----- This isn't an error. On running through the browser, it displays, "No query information to decode. QUERY_STRING not set.". Initially, it asked me that msvcr70.dll is missing. I downloaded it and still it doesn't work. Any further ideas? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Friday, June 17, 2005 5:44 PM To: sid.parekh at ERMAPPER.COM; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. This is probably due to a missing dependency. Does mapserv.exe run from the command-line? Can you run mapserv.exe in the browser and does it come back with No query information etc.? Otherwise check with a dependency tool like depends. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:29am >>> Hey everyone, I downloaded Mapserver 4.4.1 (ms441pg.zip) from http://mapserver.gis.umn.edu/ and installed it as described in the Install.txt. On running a mapserver demo, it pops up with a crash message and then browser displays error: ------ CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ------- I even reinstalled everything from scratch, but no help. I am installing it on Win XP SP2. Any ideas? Has this issue been resolved by someone? Can someone throw some light on it? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- From bernd.deckert at FREE.FR Fri Jun 17 03:24:01 2005 From: bernd.deckert at FREE.FR (Bernd Deckert) Date: Fri, 17 Jun 2005 12:24:01 +0200 Subject: Running different versions on Windows simultaneously Message-ID: Hey jacob, First of all you do not nee to put your DLLs in windows System directory. You can put them to the root of php directory where you can find php.exe. So your hole system can work without setting the PATH variables. Two differents ways to resolve your problem (testing different versions of mapscript ): ++++++++++++++++++++++++++++++++ 1. You ca use different php directories (for exemple php4ms44 and php4ms46) After that you use different php file extensions ( for exemple .php4ms44 php4ms46) In your configuration file of your webserver you need to associate the file extension name to the right php.exe in apache configuration file httpd.conf : ScriptAlias /php4ms44/ "c:/yourpathtophp/php4ms44/" AddType application/x-httpd-php .php4ms44 Action application/x-httpd-php "/php4ms44/php.exe" ScriptAlias /php4ms46/ "c:/yourpathtophp/php4ms46/" AddType application/x-httpd-php .php4ms46 Action application/x-httpd-php "/php4ms46/php.exe" ++++++++++++++++++++++++++++++++ 2. An other way is to use seperate web servers on differents ports (80; 81; 82; for exemple http://localhost:90 http://yourdomain:97) on the same domain witch use differents php.exe In this case you do not need different php file extension names. ++++++++++++++++++++++++++++++++ Hope it helps, Bernd -------><---------- Bernd Deckert 01MAP - la carte vecteur d'information 35, all?e d'Irlande 34080 Montpellier 04.67.45.60.27 06.83.39.16.62 http://www.01map.com -------><---------- ----- Original Message ----- From: Jacob Delfos To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, June 17, 2005 10:52 AM Subject: [UMN_MAPSERVER-USERS] Running different versions on Windows simultaneously Hi All, I am about to set up a new internal server for running mapserver-based sites, and I am trying to do it such that I can run different versions of php_mapscript (and mapserver). The problem I am running into is that certain versions of the dll are compiled against certain of its dependent dll's. For example, php_mapscript_46 works fine with the gdal12.dll that comes with it, but not with the dll I compiled for php_mapscript_44. And one gdal12.dll will only work with the ecw dll's it was compiled with. I have tried keeping them in separate directories. This nearly worked, but for some reason gdal12.dll MUST sit in the windows System directory (even if you set up your paths correctly). I cannot just sit with the php_mapscript dll. The same goes for some other dll's. Even if the dependency walker says that all is fine, the website will not run unless it sits in system32. Has anyone been able to implement this more successfully? Any tips? Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sid.parekh at ERMAPPER.COM Fri Jun 17 04:22:49 2005 From: sid.parekh at ERMAPPER.COM (Siddharth Parekh) Date: Fri, 17 Jun 2005 19:22:49 +0800 Subject: CGI error. In-Reply-To: Message-ID: Hi Emil, I assume that the enabling the Mapserver debugging means going through the IIS and right clicking to properties of .map file to "log access", "read", "write" and "script source access". Everything is enabled. In the file security tab, Anonymous access is set to IUSR_. The option is checked for "Allow IIS to control password". There is write access to the folder that contains the .map file and I assume that the log file will be written to that. The checkbox in unchecked for "Show friendly HTTP error messages". If this is what is expected of the procedure, then how else can I track the error. Thanks in advance, Cheers, Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: Friday, June 17, 2005 6:32 PM To: Siddharth Parekh; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] CGI error. Hello Siddharth, Have you enabled Mapserver debugging in your .map file? This will give you a log file with request info and error messages (when you're using IIS make sure the IUSR_ has write rights on the log file and enable write rights for the folder containing the log file in the IIS management console. When you are using Windows authentication and you are an administrator testing the site on the local host this is not necessary). This may give you more specific information about what is going wrong. Also when you use Internet Explorer make sure you turned of 'Show friendly HTTP error messages' under menu Tools/Internet Options/Advanced With more debug info it might be easier to find the cause of your problem. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Siddharth Parekh Sent: vrijdag 17 juni 2005 12:07 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. There is a link in the README-install.txt for demos. http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip This is the demo that is causing the crash message and the CGI error as detailed in the previous mails. Cheers. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Bart van den Eijnden Sent: Friday, June 17, 2005 6:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. Okay, just checking. Can you be more specific on which demo you are using? Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:57am >>> On running from the command line, it doesnt show me any crash message. It displays ----- This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. ----- And on running mapserv -v it displays ----- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPU T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG ----- This isn't an error. On running through the browser, it displays, "No query information to decode. QUERY_STRING not set.". Initially, it asked me that msvcr70.dll is missing. I downloaded it and still it doesn't work. Any further ideas? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Friday, June 17, 2005 5:44 PM To: sid.parekh at ERMAPPER.COM; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CGI error. This is probably due to a missing dependency. Does mapserv.exe run from the command-line? Can you run mapserv.exe in the browser and does it come back with No query information etc.? Otherwise check with a dependency tool like depends. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Siddharth Parekh 06/17/05 11:29am >>> Hey everyone, I downloaded Mapserver 4.4.1 (ms441pg.zip) from http://mapserver.gis.umn.edu/ and installed it as described in the Install.txt. On running a mapserver demo, it pops up with a crash message and then browser displays error: ------ CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ------- I even reinstalled everything from scratch, but no help. I am installing it on Win XP SP2. Any ideas? Has this issue been resolved by someone? Can someone throw some light on it? Thanks in advance. Siddharth Parekh Programmer Analyst ----------------------------------------------- ER Mapper 2 Abbotsford Street West Leederville WA 6007 Australia Tel: +61 8 9388 2900 Fax: +61 8 9388 2901 Email: Sid.Parekh at ermapper.com http://www.ermapper.com (ER Mapper Home) http://www.EarthEtc.com (Image Web Server) http://forum.ermapper.com (Public Forum) ----------------------------------------------- Just released: ER Mapper 7, Image Web Server 7, RightWebMap 7 and ECW JPEG 2000 SDK 3.1 Visit www.ermapper.com for more information ----------------------------------------------- From taatuut at PLANET.NL Fri Jun 17 04:46:29 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Fri, 17 Jun 2005 13:46:29 +0200 Subject: CGI error. Message-ID: Hello Siddarth, You can enable MapServer debugging by setting DEBUG ON in the .map file for the MAP, LAYER and CLASS objects you want to debug and adding a LOG parameter in the WEB object pointing to a file where the log info will be stored (you can use abdolute or relative paths, this file needs write access for the IUSR). See also: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver http://mapserver.gis.umn.edu/doc44/mapfile-reference.html (serach for DEBUG and LOG) Now you will get a log file with MapServer log info. Another handy tool to monitor running programs is filemon from www.sysinternals.com Install it and run it and don't forget to use a filter on the name of your MapServer executable or you will have to dig to giant loads of log info (sometimes necessary though to not use a filter). Regards, Emil ----- Oorspronkelijk bericht ----- Van: Siddharth Parekh Datum: vrijdag, juni 17, 2005 1:22 pm Onderwerp: Re: [UMN_MAPSERVER-USERS] CGI error. > Hi Emil, > I assume that the enabling the Mapserver debugging means going > through the > IIS and right clicking to properties of .map file to "log access", > "read","write" and "script source access". > Everything is enabled. > In the file security tab, Anonymous access is set to > IUSR_.The option is checked for "Allow IIS to control > password".There is write access to the folder that contains the > .map file and I assume > that the log file will be written to that. > The checkbox in unchecked for "Show friendly HTTP error messages". > If this is what is expected of the procedure, then how else can I > track the > error. > Thanks in advance, > Cheers, > > Siddharth Parekh > Programmer Analyst > ----------------------------------------------- > ER Mapper > 2 Abbotsford Street > West Leederville WA 6007 > Australia > Tel: +61 8 9388 2900 > Fax: +61 8 9388 2901 > Email: Sid.Parekh at ermapper.com > http://www.ermapper.com (ER Mapper Home) > http://www.EarthEtc.com (Image Web Server) > http://forum.ermapper.com (Public Forum) > ----------------------------------------------- > Just released: ER Mapper 7, Image Web Server 7, > RightWebMap 7 and ECW JPEG 2000 SDK 3.1 > Visit www.ermapper.com for more information > ----------------------------------------------- > > -----Original Message----- > From: Emil Zegers [mailto:taatuut at planet.nl] > Sent: Friday, June 17, 2005 6:32 PM > To: Siddharth Parekh; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] CGI error. > > > Hello Siddharth, > > Have you enabled Mapserver debugging in your .map file? This will > give you a > log file with request info and error messages (when you're using > IIS make > sure the IUSR_ has write rights on the log file and > enablewrite rights for the folder containing the log file in the > IIS management > console. When you are using Windows authentication and you are an > administrator testing the site on the local host this is not > necessary). > This may give you more specific information about what is going wrong. > > Also when you use Internet Explorer make sure you turned of 'Show > friendlyHTTP error messages' under menu Tools/Internet > Options/Advanced > With more debug info it might be easier to find the cause of your > problem. > Regards, > > Emil > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU]OnBehalf Of Siddharth Parekh > Sent: vrijdag 17 juni 2005 12:07 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] CGI error. > > > There is a link in the README-install.txt for demos. > http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip > This is the demo that is causing the crash message and the CGI > error as > detailed in the previous mails. > Cheers. > > Siddharth Parekh > Programmer Analyst > ----------------------------------------------- > ER Mapper > 2 Abbotsford Street > West Leederville WA 6007 > Australia > Tel: +61 8 9388 2900 > Fax: +61 8 9388 2901 > Email: Sid.Parekh at ermapper.com > http://www.ermapper.com (ER Mapper Home) > http://www.EarthEtc.com (Image Web Server) > http://forum.ermapper.com (Public Forum) > ----------------------------------------------- > Just released: ER Mapper 7, Image Web Server 7, > RightWebMap 7 and ECW JPEG 2000 SDK 3.1 > Visit www.ermapper.com for more information > ----------------------------------------------- > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU]OnBehalf Of Bart van den Eijnden > Sent: Friday, June 17, 2005 6:01 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] CGI error. > > > Okay, just checking. > > Can you be more specific on which demo you are using? > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Siddharth Parekh 06/17/05 11:57am >>> > On running from the command line, it doesnt show me any crash message. > It displays > ----- > This script can only be used to decode form results and > should be initiated as a CGI process via a httpd server. > ----- > > And on running mapserv -v it displays > ----- > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLI > ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > INPUT=EPPL7INPU > T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > ----- > > This isn't an error. > > On running through the browser, it displays, "No query information to > decode. QUERY_STRING not set.". > > Initially, it asked me that msvcr70.dll is missing. > I downloaded it and still it doesn't work. > > Any further ideas? > Thanks in advance. > > Siddharth Parekh > Programmer Analyst > ----------------------------------------------- > ER Mapper > 2 Abbotsford Street > West Leederville WA 6007 > Australia > Tel: +61 8 9388 2900 > Fax: +61 8 9388 2901 > Email: Sid.Parekh at ermapper.com > http://www.ermapper.com (ER Mapper Home) > http://www.EarthEtc.com (Image Web Server) > http://forum.ermapper.com (Public Forum) > ----------------------------------------------- > Just released: ER Mapper 7, Image Web Server 7, > RightWebMap 7 and ECW JPEG 2000 SDK 3.1 > Visit www.ermapper.com for more information > ----------------------------------------------- > > -----Original Message----- > From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] > Sent: Friday, June 17, 2005 5:44 PM > To: sid.parekh at ERMAPPER.COM; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] CGI error. > > > This is probably due to a missing dependency. > > Does mapserv.exe run from the command-line? Can you run > mapserv.exe in the > browser and does it come back with No query information etc.? > > Otherwise check with a dependency tool like depends. > > Best regards, > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Siddharth Parekh 06/17/05 11:29am >>> > Hey everyone, > I downloaded Mapserver 4.4.1 (ms441pg.zip) from > http://mapserver.gis.umn.edu/ and installed it as described in the > Install.txt. > On running a mapserver demo, it pops up with a crash message and then > browser displays error: > ------ > CGI Error > The specified CGI application misbehaved by not returning a > complete set of > HTTP headers. The headers it did return are: > ------- > I even reinstalled everything from scratch, but no help. > I am installing it on Win XP SP2. > Any ideas? > Has this issue been resolved by someone? > Can someone throw some light on it? > Thanks in advance. > > Siddharth Parekh > Programmer Analyst > ----------------------------------------------- > ER Mapper > 2 Abbotsford Street > West Leederville WA 6007 > Australia > Tel: +61 8 9388 2900 > Fax: +61 8 9388 2901 > Email: Sid.Parekh at ermapper.com > http://www.ermapper.com (ER Mapper Home) > http://www.EarthEtc.com (Image Web Server) > http://forum.ermapper.com (Public Forum) > ----------------------------------------------- > Just released: ER Mapper 7, Image Web Server 7, > RightWebMap 7 and ECW JPEG 2000 SDK 3.1 > Visit www.ermapper.com for more information > ----------------------------------------------- > From peterkingsbury at ISTOP.COM Fri Jun 17 05:39:12 2005 From: peterkingsbury at ISTOP.COM (Peter Kingsbury) Date: Fri, 17 Jun 2005 08:39:12 -0400 Subject: Labels Message-ID: Hello list, I'm new to the mapserver world, and have had moderately good success with getting a mapfile up and running for some test data I have. However, labels confound me! I've been poring over online manuals and trying different options for a couple days, but I figured I would ask here. I am not really sure what minimal options are required in order to, for example, display a point's label from any scale or zoom level. For example, if I have the following layer in my mapfile: LAYER GROUP "cities" NAME "Cities" TYPE POINT DATA cities STATUS ON CLASS NAME "Cities" SYMBOL images/capital.png END END ...and wanted to have labels viewable from any distance, what would the bare minimum options be that I would have to include in the layer? ArcExplorer tells me the data is stored in a variable called "Name"... do I need to use LABELITEM with the variable name? I should also note, I am using Chameleon to display the map layers. Any help is appreciated! - Peter From lucamarle at GMAIL.COM Fri Jun 17 06:22:57 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Fri, 17 Jun 2005 15:22:57 +0200 Subject: Labels In-Reply-To: <42B2C470.5030705@istop.com> Message-ID: Here an example of one of my layer. It could help for some options. cheers Luca LAYER NAME "municipi" GROUP "comalo" TYPE POINT TOLERANCE 6 STATUS ON DATA "/var/www/pmapper/comalo/sintesi/municipi.shp" METADATA "DESCRIPTION" "Municipi|Municipi|Municipi" "RESULT_FIELDS" "COMUNE" "RESULT_HEADERS" "Comune|Comune|Comune" "LEGENDICON" "symbols/cat-small.gif" END CLASSITEM "comune" LABELITEM "comune" CLASS NAME "Municipi" STYLE SYMBOL "symbols/cat-small.gif" #SYMBOL "circle" #COLOR 255 85 0 #SIZE 5 END TEMPLATE void LABEL COLOR 255 90 35 TYPE TRUETYPE FONT arial_black SIZE 10 ANTIALIAS TRUE POSITION auto PARTIALS FALSE MINDISTANCE 5 BUFFER 4 END # end of label END END From jlacroix at DMSOLUTIONS.CA Fri Jun 17 06:53:05 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Fri, 17 Jun 2005 09:53:05 -0400 Subject: [PHP MapScript] Problem with ms_newShapefileObj and path with special characters In-Reply-To: <000001c572c9$a6f51640$1364a8c0@parapente> Message-ID: Hi, I tried to create a shapefile and it work in PHP MapScript and it worked. ms_newShapefileObj("/home/test/Hiro??s_TestTeste(blablabla:)_)datatesteShapeFile",MS_SHP_POLYGON); Note that I added the opening and closing quotes and that this path (/home/test/) is an existing path where the webserver as the right to write. Julien On 06/16/2005 07:18 PM, Murilo Lacerda Yoshida wrote: > Hi all, > I tried to create a shapefile using a path with special characters in > a linux system, all escaped by backslashes (\). > The problem is that the ms_newShapefileObj function doesn't appear to > work with this kind of path ... I tried to create a regular file using > the same path and the same name as the failed shapefile in a terminal, > and it worked fine. > Is it a bug? Did somebody had this problem? > Example: > ms_newShapefileObj(/teste/mapas/btg/Hiro?s_Test/Teste\(blablabla:\)_\)/d > ata/testeShapeFile,MS_SHP_POLYGON); > > Thanks in advance, > Murilo > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jerl.simpso at GMAIL.COM Fri Jun 17 07:18:06 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 17 Jun 2005 09:18:06 -0500 Subject: file size issue In-Reply-To: <20050616220502.84EA31A6BCD@mail.medinaco.org> Message-ID: Lowell, That's a good idea. I was thinking of writing each INSERT query to a separate file. Then running that after I made sure everthing was present and accounted for. Thanks for the tip. Jerl On 6/16/05, Lowell Filak wrote: > The following message was sent by Jerl Simpson > on Thu, 16 Jun 2005 08:41:02 -0500. > > > Hello, > > > > I have a particular issue with file size limits. I have a layer (2 > > actually) that contains roads classified as "Local Roads" throughout > > the entire contiguous 48 US states. I had to split this up into 2 > > files due to filesize limits. My apache server keeps throwing errors > > that say "[notice] child pid 12855 exit signal File size limit > > exceeded (25)". So I would like to add these to a MySQL table and > > pull the data from there. > > > > I am running into two problems. > > > > 1. I used one of my very small shape files to setup an SQL connection > > to grab the data. When I modified my .map file I now get an internal > > server error. Which simply means some data was spit out before HTTP > > headers terminated. I have a log file and DEBUG ON set in my map file > > and nothing gets placed in the file. Is there any documentation that > > tells one how to build the queries? I can't seem to find them. > > > > 2. The shape file I have for Local Roads is 1.2Gb. And the perl > > Shapelib module reads the entire shape file into an array. Well, I > > don't have 1.2Gb of memory on my machine available so when I run > > "shp2mysql.pl LocalRoad" the program terminates with the error > > "Terminated". I looked at the documentation and I don't see a way to > > just grab records out of the file. I tried get_record() but that > > threw error messages. > > > > I have a tiled this file into 100 smaller files the largest of which > > is 63Mb. I could write a script to run to shp2mysql.pl on each file. > > I would rather have a program to operate on the original file though, > > as I'm afraid I'll end up with 100 seperate tables with the same data. > > Or I would need to modify the script to foce them all into the same > > table. > > Jerl, > > If you want to venture into modifying the shp2mysql.pl what can be done > is to write each record of data to a tab delimited text file and then > use 'load data local infile' instead of the insert. > > HTH > > Lowell > From murilo.yoshida at AGX.COM.BR Fri Jun 17 07:36:50 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Fri, 17 Jun 2005 11:36:50 -0300 Subject: RES: [UMN_MAPSERVER-USERS] [PHP MapScript] Problem with ms_newShapefileObj and path with special characters In-Reply-To: <42B2D5C1.6020600@dmsolutions.ca> Message-ID: Sorry, I forgot to put the quotes on the example .. You tested the cration with this name ("Hiro??s_TestTeste(blablabla:)_)datatesteShapeFile"), right? Please try with this name ("testeShapeFile") in the path ("/home/test/Hiro?s_Test/Teste(blablabla:)_)/data"). You'll have to escape the parenthesis to create the path. The problem I had wasn't on the shapefile name, was in the path to it. Thanks, Murilo -----Mensagem original----- De: Julien-Samuel Lacroix [mailto:jlacroix at dmsolutions.ca] Enviada em: sexta-feira, 17 de junho de 2005 10:53 Para: Murilo Lacerda Yoshida Cc: MAPSERVER-USERS at lists.umn.edu Assunto: Re: [UMN_MAPSERVER-USERS] [PHP MapScript] Problem with ms_newShapefileObj and path with special characters Hi, I tried to create a shapefile and it work in PHP MapScript and it worked. ms_newShapefileObj("/home/test/Hiro??s_TestTeste(blablabla:)_)datatesteS hapeFile",MS_SHP_POLYGON); Note that I added the opening and closing quotes and that this path (/home/test/) is an existing path where the webserver as the right to write. Julien On 06/16/2005 07:18 PM, Murilo Lacerda Yoshida wrote: > Hi all, > I tried to create a shapefile using a path with special characters in > a linux system, all escaped by backslashes (\). > The problem is that the ms_newShapefileObj function doesn't appear to > work with this kind of path ... I tried to create a regular file using > the same path and the same name as the failed shapefile in a terminal, > and it worked fine. > Is it a bug? Did somebody had this problem? > Example: > ms_newShapefileObj(/teste/mapas/btg/Hiro?s_Test/Teste\(blablabla:\)_\)/d > ata/testeShapeFile,MS_SHP_POLYGON); > > Thanks in advance, > Murilo > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jlacroix at DMSOLUTIONS.CA Fri Jun 17 07:48:30 2005 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Fri, 17 Jun 2005 10:48:30 -0400 Subject: RES: [UMN_MAPSERVER-USERS] [PHP MapScript] Problem with ms_newShapefileObj and path with special characters In-Reply-To: <000001c5734a$028d0e60$1364a8c0@parapente> Message-ID: It worked fine for me. Here what I did. Note that I also escaped the ':'. I used 4.6 on RedHat 9. $ cd /home/test/ $ mkdir Hiro?s_Test/ $ cd Hiro?s_Test/ $ mkdir Teste\(blablabla\:\)_\) $ cd Teste\(blablabla\:\)_\)/ $ ls $ pwd /home/test/Hiro?s_Test/Teste(blablabla:)_) ### Here I ran the following script ### dl("php_mapscript.so"); ### ms_newShapefileObj("/home/test/Hiro??s_Test/Teste(blablabla:)_)/datatesteShapeFile",MS_SHP_POLYGON); ### exit; $ ls datatesteShapeFile.shp datatesteShapeFile.shx Julien On 06/17/2005 10:36 AM, Murilo Lacerda Yoshida wrote: > Sorry, I forgot to put the quotes on the example .. > You tested the cration with this name > ("Hiro??s_TestTeste(blablabla:)_)datatesteShapeFile"), right? > Please try with this name ("testeShapeFile") in the path > ("/home/test/Hiro?s_Test/Teste(blablabla:)_)/data"). You'll have to > escape the parenthesis to create the path. > The problem I had wasn't on the shapefile name, was in the path to it. > Thanks, > Murilo > > -----Mensagem original----- > De: Julien-Samuel Lacroix [mailto:jlacroix at dmsolutions.ca] > Enviada em: sexta-feira, 17 de junho de 2005 10:53 > Para: Murilo Lacerda Yoshida > Cc: MAPSERVER-USERS at lists.umn.edu > Assunto: Re: [UMN_MAPSERVER-USERS] [PHP MapScript] Problem with > ms_newShapefileObj and path with special characters > > Hi, > > I tried to create a shapefile and it work in PHP MapScript and it > worked. > > ms_newShapefileObj("/home/test/Hiro??s_TestTeste(blablabla:)_)datatesteS > hapeFile",MS_SHP_POLYGON); > > Note that I added the opening and closing quotes and that this path > (/home/test/) is an existing path where the webserver as the right to > write. > > Julien > > > On 06/16/2005 07:18 PM, Murilo Lacerda Yoshida wrote: > >> Hi all, >> I tried to create a shapefile using a path with special characters > > in > >>a linux system, all escaped by backslashes (\). >> The problem is that the ms_newShapefileObj function doesn't appear > > to > >>work with this kind of path ... I tried to create a regular file using >>the same path and the same name as the failed shapefile in a terminal, >>and it worked fine. >> Is it a bug? Did somebody had this problem? >> Example: >> > > ms_newShapefileObj(/teste/mapas/btg/Hiro?s_Test/Teste\(blablabla:\)_\)/d > >>ata/testeShapeFile,MS_SHP_POLYGON); >> >> Thanks in advance, >> Murilo >> >> > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From williampaul28 at YAHOO.COM Fri Jun 17 07:49:44 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Fri, 17 Jun 2005 07:49:44 -0700 Subject: JOIN - hope to receive an answer... maybe from a developer Message-ID: Hi, I am not very advanced with MAPSEVER, but still... Does anyone have EVER successfully used JOIN OBJECT? I want to join a DBF with a SHP (MULTIPLE JOIN) In Mapserver reference file (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#join) it is written "Joins are defined within a query object." WHAT IT MEANS? the map file should look like: LAYER .... QUERY JOIN etc I tried like this but I receive the error :loadLayer(): Unknown identifier. Parsing error near (QUERY) obvious the map file should look different I have the shape (COUNTY.SHP) file with the following fields (ITEMS): SHAPE, CODE I have the DBF (CODE.DBF) file with the following fields (ITEMS): CODE, COUNTY, TOWN, YEAR I wanted to join them (MULTIPLE JOIN=ONE TO MANY), so I used as Mapserver reference say: LAYER ...... HEADER 'templates/code_header.html' FOOTER 'templates/code_footer.html' TOLERANCE 3 CLASS COLOR 200 0 200 SIZE 10 SYMBOL "circule" TEMPLATE 'templates/code.html' END JOIN FROM CODE NAME CODE_JOIN TABLE "E:\mapserver\shp\CODE.DBF" TEMPLATE "templates\CODE.HTML" TO CODE TYPE multiple END I receive the following result: CODECOUNTYTOWNYEAR11026[COUNTY][TOWN][YEAR] If I comment the TEMPLATE from JOIN nothink happend, but if I comment the TEMPLATE from CLASS I get the error: msQueryByRect(): Search returned no results. No matching record(s) found. WHAT is happening? What and where I do wrong? DOES ANY ONE HAVE A WORKING EXAMPLE? I MEAN SOME ONE WHO USED OR USE JOIN OBJECT There are any other ways to JOIN (ONE TO MANY) data? Thank you in advance William --------------------------------- Yahoo! Mail Stay connected, organized, and protected. Take the tour -------------- next part -------------- An HTML attachment was scrubbed... URL: From murilo.yoshida at AGX.COM.BR Fri Jun 17 08:54:18 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Fri, 17 Jun 2005 12:54:18 -0300 Subject: RES: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] [PHP MapScript] Problem with ms_newShapefileObj and path with special characters In-Reply-To: <42B2E2BE.7020101@dmsolutions.ca> Message-ID: So maybe the problem is that I am escaping the parenthesis when I create the shape ... I will test here, in my script, for the same shapefile name and path, it executes ms_newShapefileObj("/home/test/Hiro??s_Test/Teste\(blablabla:\)_\)/datat esteShapeFile",MS_SHP_POLYGON); Ok, thanks a lot, I'll test here. Murilo -----Mensagem original----- De: Julien-Samuel Lacroix [mailto:jlacroix at dmsolutions.ca] Enviada em: sexta-feira, 17 de junho de 2005 11:49 Para: Murilo Lacerda Yoshida Cc: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] [PHP MapScript] Problem with ms_newShapefileObj and path with special characters It worked fine for me. Here what I did. Note that I also escaped the ':'. I used 4.6 on RedHat 9. $ cd /home/test/ $ mkdir Hiro?s_Test/ $ cd Hiro?s_Test/ $ mkdir Teste\(blablabla\:\)_\) $ cd Teste\(blablabla\:\)_\)/ $ ls $ pwd /home/test/Hiro?s_Test/Teste(blablabla:)_) ### Here I ran the following script ### dl("php_mapscript.so"); ### ms_newShapefileObj("/home/test/Hiro??s_Test/Teste(blablabla:)_)/datatest eShapeFile",MS_SHP_POLYGON); ### exit; $ ls datatesteShapeFile.shp datatesteShapeFile.shx Julien On 06/17/2005 10:36 AM, Murilo Lacerda Yoshida wrote: > Sorry, I forgot to put the quotes on the example .. > You tested the cration with this name > ("Hiro??s_TestTeste(blablabla:)_)datatesteShapeFile"), right? > Please try with this name ("testeShapeFile") in the path > ("/home/test/Hiro?s_Test/Teste(blablabla:)_)/data"). You'll have to > escape the parenthesis to create the path. > The problem I had wasn't on the shapefile name, was in the path to it. > Thanks, > Murilo > > -----Mensagem original----- > De: Julien-Samuel Lacroix [mailto:jlacroix at dmsolutions.ca] > Enviada em: sexta-feira, 17 de junho de 2005 10:53 > Para: Murilo Lacerda Yoshida > Cc: MAPSERVER-USERS at lists.umn.edu > Assunto: Re: [UMN_MAPSERVER-USERS] [PHP MapScript] Problem with > ms_newShapefileObj and path with special characters > > Hi, > > I tried to create a shapefile and it work in PHP MapScript and it > worked. > > ms_newShapefileObj("/home/test/Hiro??s_TestTeste(blablabla:)_)datatesteS > hapeFile",MS_SHP_POLYGON); > > Note that I added the opening and closing quotes and that this path > (/home/test/) is an existing path where the webserver as the right to > write. > > Julien > > > On 06/16/2005 07:18 PM, Murilo Lacerda Yoshida wrote: > >> Hi all, >> I tried to create a shapefile using a path with special characters > > in > >>a linux system, all escaped by backslashes (\). >> The problem is that the ms_newShapefileObj function doesn't appear > > to > >>work with this kind of path ... I tried to create a regular file using >>the same path and the same name as the failed shapefile in a terminal, >>and it worked fine. >> Is it a bug? Did somebody had this problem? >> Example: >> > > ms_newShapefileObj(/teste/mapas/btg/Hiro?s_Test/Teste\(blablabla:\)_\)/d > >>ata/testeShapeFile,MS_SHP_POLYGON); >> >> Thanks in advance, >> Murilo >> >> > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From kenlord at GMAIL.COM Fri Jun 17 09:33:32 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 17 Jun 2005 09:33:32 -0700 Subject: CGI error. In-Reply-To: <6e354d6e1b49.6e1b496e354d@planet.nl> Message-ID: Stop the presses! This is an old error, search the archives and you'll get dozens of hits on it, and in many of them you'll find me saying not to use that version of mapserver downloaded from the mapserver homepage. That version has a smal executable that relies more on dll's, and I assume has some kind of compiling problem which prevents it from working on many Windows machines. It's caused problems for quite a few people including myself. Go to http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html and grab the 4.4.2 windows binaries from there ... you may want to try the new 4.6 version. Cheers, Ken Lord On 6/17/05, Emil Zegers wrote: > > Hello Siddarth, > > You can enable MapServer debugging by setting DEBUG ON in the .map > file for the MAP, LAYER and CLASS objects you want to debug and adding > a LOG parameter in the WEB object pointing to a file where the log > info will be stored (you can use abdolute or relative paths, this file > needs write access for the IUSR). > > See also: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver > http://mapserver.gis.umn.edu/doc44/mapfile-reference.html (serach for > DEBUG and LOG) > > Now you will get a log file with MapServer log info. > > Another handy tool to monitor running programs is filemon from > www.sysinternals.com > > Install it and run it and don't forget to use a filter on the name of > your MapServer executable or you will have to dig to giant loads of > log info (sometimes necessary though to not use a filter). > > Regards, > > Emil > > > > > ----- Oorspronkelijk bericht ----- > Van: Siddharth Parekh > Datum: vrijdag, juni 17, 2005 1:22 pm > Onderwerp: Re: [UMN_MAPSERVER-USERS] CGI error. > > > Hi Emil, > > I assume that the enabling the Mapserver debugging means going > > through the > > IIS and right clicking to properties of .map file to "log access", > > "read","write" and "script source access". > > Everything is enabled. > > In the file security tab, Anonymous access is set to > > IUSR_.The option is checked for "Allow IIS to control > > password".There is write access to the folder that contains the > > .map file and I assume > > that the log file will be written to that. > > The checkbox in unchecked for "Show friendly HTTP error messages". > > If this is what is expected of the procedure, then how else can I > > track the > > error. > > Thanks in advance, > > Cheers, > > > > Siddharth Parekh > > Programmer Analyst > > ----------------------------------------------- > > ER Mapper > > 2 Abbotsford Street > > West Leederville WA 6007 > > Australia > > Tel: +61 8 9388 2900 > > Fax: +61 8 9388 2901 > > Email: Sid.Parekh at ermapper.com > > http://www.ermapper.com (ER Mapper Home) > > http://www.EarthEtc.com (Image Web Server) > > http://forum.ermapper.com (Public Forum) > > ----------------------------------------------- > > Just released: ER Mapper 7, Image Web Server 7, > > RightWebMap 7 and ECW JPEG 2000 SDK 3.1 > > Visit www.ermapper.com for more information > > ----------------------------------------------- > > > > -----Original Message----- > > From: Emil Zegers [mailto:taatuut at planet.nl] > > Sent: Friday, June 17, 2005 6:32 PM > > To: Siddharth Parekh; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: RE: [UMN_MAPSERVER-USERS] CGI error. > > > > > > Hello Siddharth, > > > > Have you enabled Mapserver debugging in your .map file? This will > > give you a > > log file with request info and error messages (when you're using > > IIS make > > sure the IUSR_ has write rights on the log file and > > enablewrite rights for the folder containing the log file in the > > IIS management > > console. When you are using Windows authentication and you are an > > administrator testing the site on the local host this is not > > necessary). > > This may give you more specific information about what is going > wrong. > > > > Also when you use Internet Explorer make sure you turned of 'Show > > friendlyHTTP error messages' under menu Tools/Internet > > Options/Advanced > > With more debug info it might be easier to find the cause of your > > problem. > > Regards, > > > > Emil > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER- > > USERS at LISTS.UMN.EDU]OnBehalf Of Siddharth Parekh > > Sent: vrijdag 17 juni 2005 12:07 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] CGI error. > > > > > > There is a link in the README-install.txt for demos. > > http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip > > This is the demo that is causing the crash message and the CGI > > error as > > detailed in the previous mails. > > Cheers. > > > > Siddharth Parekh > > Programmer Analyst > > ----------------------------------------------- > > ER Mapper > > 2 Abbotsford Street > > West Leederville WA 6007 > > Australia > > Tel: +61 8 9388 2900 > > Fax: +61 8 9388 2901 > > Email: Sid.Parekh at ermapper.com > > http://www.ermapper.com (ER Mapper Home) > > http://www.EarthEtc.com (Image Web Server) > > http://forum.ermapper.com (Public Forum) > > ----------------------------------------------- > > Just released: ER Mapper 7, Image Web Server 7, > > RightWebMap 7 and ECW JPEG 2000 SDK 3.1 > > Visit www.ermapper.com for more information > > ----------------------------------------------- > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER- > > USERS at LISTS.UMN.EDU]OnBehalf Of Bart van den Eijnden > > Sent: Friday, June 17, 2005 6:01 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] CGI error. > > > > > > Okay, just checking. > > > > Can you be more specific on which demo you are using? > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr .: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> Siddharth Parekh 06/17/05 11:57am >>> > > On running from the command line, it doesnt show me any crash > message. > > It displays > > ----- > > This script can only be used to decode form results and > > should be initiated as a CGI process via a httpd server. > > ----- > > > > And on running mapserv -v it displays > > ----- > > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=PDF > > OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > SUPPORTS=WMS_CLI > > ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > > INPUT=EPPL7INPU > > T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > ----- > > > > This isn't an error. > > > > On running through the browser, it displays, "No query information to > > decode. QUERY_STRING not set.". > > > > Initially, it asked me that msvcr70.dll is missing. > > I downloaded it and still it doesn't work. > > > > Any further ideas? > > Thanks in advance. > > > > Siddharth Parekh > > Programmer Analyst > > ----------------------------------------------- > > ER Mapper > > 2 Abbotsford Street > > West Leederville WA 6007 > > Australia > > Tel: +61 8 9388 2900 > > Fax: +61 8 9388 2901 > > Email: Sid.Parekh at ermapper.com > > http://www.ermapper.com (ER Mapper Home) > > http://www.EarthEtc.com (Image Web Server) > > http://forum.ermapper.com (Public Forum) > > ----------------------------------------------- > > Just released: ER Mapper 7, Image Web Server 7, > > RightWebMap 7 and ECW JPEG 2000 SDK 3.1 > > Visit www.ermapper.com for more information > > ----------------------------------------------- > > > > -----Original Message----- > > From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] > > Sent: Friday, June 17, 2005 5:44 PM > > To: sid.parekh at ERMAPPER.COM; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] CGI error. > > > > > > This is probably due to a missing dependency. > > > > Does mapserv.exe run from the command-line? Can you run > > mapserv.exe in the > > browser and does it come back with No query information etc.? > > > > Otherwise check with a dependency tool like depends. > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera IT Solutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr .: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> Siddharth Parekh 06/17/05 11:29am >>> > > Hey everyone, > > I downloaded Mapserver 4.4.1 (ms441pg.zip) from > > http://mapserver.gis.umn.edu/ and installed it as described in the > > Install.txt. > > On running a mapserver demo, it pops up with a crash message and then > > browser displays error: > > ------ > > CGI Error > > The specified CGI application misbehaved by not returning a > > complete set of > > HTTP headers. The headers it did return are: > > ------- > > I even reinstalled everything from scratch, but no help. > > I am installing it on Win XP SP2. > > Any ideas? > > Has this issue been resolved by someone? > > Can someone throw some light on it? > > Thanks in advance. > > > > Siddharth Parekh > > Programmer Analyst > > ----------------------------------------------- > > ER Mapper > > 2 Abbotsford Street > > West Leederville WA 6007 > > Australia > > Tel: +61 8 9388 2900 > > Fax: +61 8 9388 2901 > > Email: Sid.Parekh at ermapper.com > > http://www.ermapper.com (ER Mapper Home) > > http://www.EarthEtc.com (Image Web Server) > > http://forum.ermapper.com (Public Forum) > > ----------------------------------------------- > > Just released: ER Mapper 7, Image Web Server 7, > > RightWebMap 7 and ECW JPEG 2000 SDK 3.1 > > Visit www.ermapper.com for more information > > ----------------------------------------------- > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maps98 at TELUSPLANET.NET Fri Jun 17 11:18:02 2005 From: maps98 at TELUSPLANET.NET (Rob McCulley) Date: Fri, 17 Jun 2005 13:18:02 -0500 Subject: DBox PHP Problems Message-ID: I would like to use DBox with PHP-mpscript, but I'm having some problems figureing out how to implement it. I currently have it set up like so: --- A bunch of PHP that sets up map size and layers --- --- A bunch of PHP that generates the map and legend ---
My zoom tools are setup like so: Zoom In
Pan
Zoom Out
Two problems - the first is that the map isn't visible. I'm assuming it has to do with the div boxes and the transparent pixels. Not my main problem, I'm sure I can solve it. The main problem is that when I click on the zoom in radio button (or any of the three radio buttons for that matter) I get a javascript error "Object doesn't support property or method" pointing at the line of code for the radio button. Any ideas what I'm doing wrong? Or does anyone have an example of DBox working with PHP that they can point me at? Thank You, Rob McCulley GIS Coordinator County of Vermilion River No. 24 (780) 846-2244 RMcCulley at County24.com From pservant at REFRACTIONS.NET Fri Jun 17 12:08:15 2005 From: pservant at REFRACTIONS.NET (Paul Servant) Date: Fri, 17 Jun 2005 12:08:15 -0700 Subject: Mapserver/Mapscript 4.6 Compiling Problem In-Reply-To: Message-ID: I did have the PHP GD library installed but kaMap wasn't loading the library. kaMap loads init.php which dynamically loads the Mapscript extension for PHP. However there seems to be a dependency between the Mapscript extension and GD. If GD is loaded prior to Mapscript the problem goes away. I didn't restart our Apache server after installing the php-gd packages through Fedora. I assumed that kaMap was loading the GD extension for me. It does load the extension in tile.php but init.php seems to be called first creating the error. I'm currently loading my GD extension in my /etc/php.d/gd.ini file instead of relying on kaMap. How do I report this to so the problem can be resolved for future releases of kaMap? Cheers, Paul Bart van den Eijnden wrote: >These functions are defined in the PHP GD2 extension. Do you have that extension? Is it loaded( or loaded by the kaMap script)? > > if ( PHP_OS == "WINNT" || PHP_OS == "WIN32" ) > $szGDModule = "php_gd2.dll"; > else > $szGDModule = "php_gd2.so"; > > if (!extension_loaded("gd")) > dl($szGDModule); > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > > >>>>Paul Servant 06/16/05 08:48pm >>> >>>> >>>> >Hello, > >I've compiled mapserver 4.6 with no problems but I've noticed when mapscript >compiles it throws the following warnings when I permform a make: > >php_mapscript.c: In function `php3_ms_img_pasteImage': >php_mapscript.c:6267: warning: implicit declaration of function >`php_gd_gdImageColorExact' >php_mapscript.c:6271: warning: implicit declaration of function >`php_gd_gdImageColorTransparent' >php_mapscript.c:6274: warning: implicit declaration of function >`php_gd_gdImageCopy' >php_mapscript.c: In function `php3_ms_img_saveImage': >php_mapscript.c:5997: warning: 'tmp' might be used uninitialized in this >function > >Where are the functions php_gd_gdImageColorExact, >php_gd_gdImageColorTransparent, and php_gd_gdImageCopy defined? > >It seems when I try running kamap and it tries to load the php_mapscript.so >file it throws the following warning and error: > >PHP Warning: dl(): Unable to load dynamic library >'/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: undefined >symbol: php_gd_gdImageCopy in /home/www/mapserv/htdocs/kamap/init.php on line 41 >PHP Fatal error: Call to undefined function: ms_newmapobj() in >/home/www/mapserv/htdocs/kamap/init.php on line 44 > >I compiled mapserver with the following configure statement: > >../configure --with-gdal=/usr/local/bin/gdal-config >--with-ogr=/usr/local/bin/gdal-config >--with-postgis=/opt/pgsql/8.0/bin/pg_config --with-proj --with-wfs >--with-wfsclient --with-wmsclient --with-threads >--with-curl-config=/usr/bin/curl-config --with-php=/usr/include/php >--without-tiff > >Has anyone else seen this problem? Is there anything wrong with my >configure statement? Is there a relation between the compiling problems and >the php dynamic loading errors? > >Cheers, >Paul > > > From lucamarle at GMAIL.COM Fri Jun 17 13:18:44 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Fri, 17 Jun 2005 22:18:44 +0200 Subject: php4-mapscript for 64k architecture Message-ID: I'm in a big trouble :-/. I'm delivering an application developed on my debian SID and I discover now that for the server is not available the php4-mapscript package. Could someone help me to find a deb package for this architecture ? the error that I get is very clear: Warning: dl(): Unable to load dynamic library '/usr/lib/php4/20020429/php_mapscript_44.so' - thanks a lot, you'll make my weekend!! luca -- luca marletta icq: 70590647 From adidassneakers at YAHOO.COM Fri Jun 17 13:26:20 2005 From: adidassneakers at YAHOO.COM (Matthew Roberson) Date: Fri, 17 Jun 2005 13:26:20 -0700 Subject: queryByAttributes and PHP Message-ID: Hello, I am trying to using the queryByAttributes method of the LayerObj class of PHP/Mapscript and I am doing something wrong, because I get the following error: Fatal error: Unsupported operand types in C:\ms4w\apps\test\htdocs\LA.phtml on line 12 I am running in Windows XP professional with: ms4w 1.1 I also get the same error in MacOS X with a custom compiled version of MapSever. The Map File is contains: MAP NAME LA IMAGETYPE PNG SIZE 600 600 IMAGECOLOR 240 240 240 SHAPEPATH "../data" FONTSET ../etc/fonts.txt EXTENT -94.043147 28.925011 -88.817017 33.019457 UNITS METERS WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 0 0 0 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "LA zip code boundaries" TYPE POLYGON STATUS DEFAULT DATA "zt22_d00" LABELITEM "ZCTA" CLASS COLOR 254 0 0 LABEL COLOR 60 60 60 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 TYPE TRUETYPE FONT fritqat SIZE 8 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 5 BUFFER 4 END OUTLINECOLOR 60 60 60 SYMBOL 0 END TEMPLATE "x" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 680 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END and the .phtml file contains: draw(); //$image_url=$image->saveWebImage(); $oZipLayer = $map->getLayerByName("LA zip code boundaries"); //Do query $sZip = '12603'; $sAttrName = 'ZCTA'; $qresult = @$oZipLayer->queryByAttributes($sAttrName,$sZip,MS_MULTIPLE); $image = $map->drawQuery(); $image_url = $image->saveWebImage(); $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s \n", $error-routine, $error->messaage); $error = $error->next(); } ?> LA Zip Codes

This is an unprojected map of the 5 digit zip code boundries for the state of Louisianna, from the US Census Bureau.

To find the categories for the legend, I used the ogrinfo utility twice. ogrinfo -a -summary zt22_d00.shp let me see what fields were available, and ogrinfo -a zt22_d00.shp|grep SYMBOL|sort -u told me what all of the unique values were so that I could build my CLASS definitions in LA.map.

getNumResults() > 0) echo $oZipLayer->getNumResults()." zips found."; else echo "No zips found." ?> I would appreciate any help or suggestions anyone has to offer. __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail From andy at MEGALITHIC.CO.UK Fri Jun 17 14:10:58 2005 From: andy at MEGALITHIC.CO.UK (Andy Burnham) Date: Fri, 17 Jun 2005 22:10:58 +0100 Subject: Latitude and longitude values to the Mapserver x/y format? In-Reply-To: Message-ID: Hello, Here's an appropriate question as the Summer Solstice is nearly on us, hopefully someone can help me? I'd like a way to convert from latitude and longitude values to the Mapserver x/y format. If I could calculate this I would be able to create links from my prehistoric site pages, eg: Stonehenge http://www.megalithic.co.uk/article.php?sid=157 , which includes the values: Latitude: 51.178904N Longitude: 1.825418W Do you know how to work out the scaling factor so as to convert this to a URL that would show a map centred and zoomed in on the Stonehenge area, a bit like this: http://www.megalithic.co.uk/cgi-bin/mapserv40?img.x=134&img.y=68&mode=browse&layer=scr&zoomdir=0&zoomsize=2&imgxy=300.0+300.0&imgext=-858441.666667+296416.666665+-773441.666667+381416.666665&map=%2Fsrv%2Fwww%2Fhtdocs%2Fmapserv%2Fmegp.map&root=%2Fmapserv&savequery=true&program=%2Fcgi-bin%2Fmapserv40&map_web_imagepath=%2Fsrv%2Fwww%2Fhtdocs%2Fmapserv%2Ftmp%2F&map_web_imageurl=%2Fmapserv%2Ftmp%2F&map_web_template=itasca_adds_pan.html Thanks and happy Solstice everyone! Andy -- ================================================================== The Megalithic Portal http://www.megalithic.co.uk <><><><><><><> TRY OUR NEW EUROPE-WIDE MEGALITH MAP <><><><><><><> "a wonderful guide" - the New York Times "useful, fun, and accurate" - Archaeology Magazine ================================================================== From rjames57 at YAHOO.COM Fri Jun 17 16:05:00 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 17 Jun 2005 16:05:00 -0700 Subject: Graticule not working Message-ID: Hi all has anyone seen this before I had a working graticule grid and than it stopped giving me the correct labels and started putting out things like: 42e+05 I cannot remember changing anything in the mapfile, but upgraded to mapserver version nightly of June 06, 2005. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bino at INDOAKSES-ONLINE.COM Fri Jun 17 17:30:40 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Sat, 18 Jun 2005 07:30:40 +0700 Subject: Dynamic point Message-ID: Hi Fernando, Thankyou for your enlightment .. For other newbies as I'm : Here is another trick on adding dynamic point object. Regrads -bino- ----- Original Message ----- From: "Fernando Simon" To: "bino_oetomo" Sent: Friday, June 17, 2005 6:17 PM Subject: Re: [UMN_MAPSERVER-USERS] Dynamic point > Hi, > I never used this way, here I used the shapeObj and the label work > correctly. > Using the code from code you need to change this: > ... > $map= ms_newMapObj('data/test2.map'); > //Convert pixels to map units > $map_pt = click2map($_GET['image_x'],$_GET['image_y'],$map->extent); > > //Create the point - NEW CODE > $ShapePoint = ms_newShapeObj( MS_SHAPE_POINT ); > $Line = ms_newLineObj(); > $Line->addXY($map_pt[0],$map_pt[1]); > $ShapePoint ->add( $Line ); > $ShapePoint->set("text", "YOUR TEXT FOR LABEL"); > $layer = $map->getLayerByName('INLINE'); > $layer ->addFeature( $ShapePoint ); > > //Draw the map and add the point > $img = $map->draw(); > $url = $img->saveWebImage(); > ... > > I believe that is the code that you can use to add the label for > your points. If you wants that every point contains your own label you > need to create a shape and add it in the layer for every point that you > create. > Thanks. > > Fernando Simon > > bino_oetomo wrote: > > >Hi Fernando > >----- Original Message ----- > >From: "Fernando Simon" > >To: "bino_oetomo" > >Sent: Friday, June 17, 2005 12:34 AM > >Subject: Re: [UMN_MAPSERVER-USERS] Dynamic point > > > > > > > > > >>Hi, > >> How did you defined you dynamic point? > >> If you defined each point with a shabeObj, you can use the parameter > >>"TEXT" in shapeObj as the source for the label. > >> Thanks. > >> > >> > >> > > > >I just use methode mentioned at > >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptAddPoint > > > >Regards > >-bino- > > > > > > > > > > > > > From lfilak at MEDINACO.ORG Fri Jun 17 18:17:14 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 17 Jun 2005 21:17:14 -0400 Subject: file size issue Message-ID: The following message was sent by Jerl Simpson on Fri, 17 Jun 2005 09:18:06 -0500. > Lowell, > > That's a good idea. I was thinking of writing each INSERT query to a > separate file. Then running that after I made sure everthing was > present and accounted for. > > Thanks for the tip. > > Jerl > > On 6/16/05, Lowell Filak wrote: > > The following message was sent by Jerl Simpson > > on Thu, 16 Jun 2005 08:41:02 -0500. > > > > > Hello, > > > > > > I have a particular issue with file size limits. I have a layer (2 > > > actually) that contains roads classified as "Local Roads" throughout > > > the entire contiguous 48 US states. I had to split this up into 2 > > > files due to filesize limits. My apache server keeps throwing errors > > > that say "[notice] child pid 12855 exit signal File size limit > > > exceeded (25)". So I would like to add these to a MySQL table and > > > pull the data from there. > > > > > > I am running into two problems. > > > > > > 1. I used one of my very small shape files to setup an SQL connection > > > to grab the data. When I modified my .map file I now get an internal > > > server error. Which simply means some data was spit out before HTTP > > > headers terminated. I have a log file and DEBUG ON set in my map file > > > and nothing gets placed in the file. Is there any documentation that > > > tells one how to build the queries? I can't seem to find them. > > > > > > 2. The shape file I have for Local Roads is 1.2Gb. And the perl > > > Shapelib module reads the entire shape file into an array. Well, I > > > don't have 1.2Gb of memory on my machine available so when I run > > > "shp2mysql.pl LocalRoad" the program terminates with the error > > > "Terminated". I looked at the documentation and I don't see a way to > > > just grab records out of the file. I tried get_record() but that > > > threw error messages. > > > > > > I have a tiled this file into 100 smaller files the largest of which > > > is 63Mb. I could write a script to run to shp2mysql.pl on each file. > > > I would rather have a program to operate on the original file though, > > > as I'm afraid I'll end up with 100 seperate tables with the same data. > > > Or I would need to modify the script to foce them all into the same > > > table. > > > > Jerl, > > > > If you want to venture into modifying the shp2mysql.pl what can be done > > is to write each record of data to a tab delimited text file and then > > use 'load data local infile' instead of the insert. Jerl, I think I may have missed something. If my understanding (from a conference session today) is correct the problem lies in GEO::Shapelib itself. It appears that it reads the geometries into an array which would still mean you would need enough ram to read the entire shapefile. The only workaround is to use shapelib via C directly instead of through the perl module. From C you would be able to iterate over each entity. Lowell From lfilak at MEDINACO.ORG Fri Jun 17 18:53:36 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 17 Jun 2005 21:53:36 -0400 Subject: Perl Mapscript download for Windows Message-ID: The following message was sent by James Brook on Fri, 17 Jun 2005 03:12:18 -0500. > Hi, > I'm very new to this and have had trouble finding the Mapscript Perl > download for Windows - can anyone point me in the right direction? > Thanks. James, At this point there isn't one. Actually, there isn't one for linux either (well maybe there is depending on what package you track down). Mostly it is compiled after compiling mapserver from source. However from what I've seen on the list (but I've been wrong before) it can be a sizeable task compiling on windows. In short - I don't know of a good answer. Lowell From jacob.delfos at MAUNSELL.COM Sat Jun 18 00:08:36 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Sat, 18 Jun 2005 15:08:36 +0800 Subject: Running different versions on Windows simultaneously Message-ID: Hi Bart, I must have been doing something wrong...... though I'm not sure what. I did attempt compiling php_mapscript, but in version 44 (which I use for chameleon) I ran into issues (with proj4) which were only fixed in version 46. I actually compiled gdal to produce a dll with a different name, and compiled php_mapscript_46 against it, so I could have both versions without name conflicts or version conflicts. Problem was the ecw dll's still had the same name, even though they were not compatible between version beta 3.1 and beta 3.2. So I still could not run them side by side. Do you keep the mapscript dll's and all dependent dll's in one directory? thanks, Jacob -----Original Message----- From: UMN MapServer Users List To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 6/17/2005 5:16 PM Subject: Re: [UMN_MAPSERVER-USERS] Running different versions on Windows simultaneously Hi Jacob, I have never run into the issue of needing to put gdal12.dll in the system32 directory, and I have done several installs lately, on both IIS (4 and 6) and Apache. You could recompile all Mapserver/Mapscript extensions to use the same GDAL release (plus nmake options) but I don't know if that is an option for you. Best regards, Bart Btw there is a partly related Mapserver enhancement bug for this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=545 Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Jacob Delfos 06/17/05 10:52am >>> Hi All, I am about to set up a new internal server for running mapserver-based sites, and I am trying to do it such that I can run different versions of php_mapscript (and mapserver). The problem I am running into is that certain versions of the dll are compiled against certain of its dependent dll's. For example, php_mapscript_46 works fine with the gdal12.dll that comes with it, but not with the dll I compiled for php_mapscript_44. And one gdal12.dll will only work with the ecw dll's it was compiled with. I have tried keeping them in separate directories. This nearly worked, but for some reason gdal12.dll MUST sit in the windows System directory (even if you set up your paths correctly). I cannot just sit with the php_mapscript dll. The same goes for some other dll's. Even if the dependency walker says that all is fine, the website will not run unless it sits in system32. Has anyone been able to implement this more successfully? Any tips? Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com From jacob.delfos at MAUNSELL.COM Sat Jun 18 00:11:44 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Sat, 18 Jun 2005 15:11:44 +0800 Subject: Running different versions on Windows simultaneously Message-ID: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Bernd, Thanks for your suggestions. I guess it would be possible, but to have to change all extensions (and links) will be quite an administration. And the problem with running on a different port is that some companies (such as mine) tend to block all ports that are not standard.... regards, Jacob -----Original Message----- From: Bernd Deckert To: Jacob Delfos; MAPSERVER-USERS at LISTS.UMN.EDU Sent: 6/17/2005 6:24 PM Subject: Re: [UMN_MAPSERVER-USERS] Running different versions on Windows simultaneously Hey jacob, First of all you do not nee to put your DLLs in windows System directory. You can put them to the root of php directory where you can find php.exe. So your hole system can work without setting the PATH variables. Two differents ways to resolve your problem (testing different versions of mapscript ): ++++++++++++++++++++++++++++++++ 1. You ca use different php directories (for exemple php4ms44 and php4ms46) After that you use different php file extensions ( for exemple .php4ms44 php4ms46) In your configuration file of your webserver you need to associate the file extension name to the right php.exe in apache configuration file httpd.conf : ScriptAlias /php4ms44/ "c:/yourpathtophp/php4ms44/" AddType application/x-httpd-php .php4ms44 Action application/x-httpd-php "/php4ms44/php.exe" ScriptAlias /php4ms46/ "c:/yourpathtophp/php4ms46/" AddType application/x-httpd-php .php4ms46 Action application/x-httpd-php "/php4ms46/php.exe" ++++++++++++++++++++++++++++++++ 2. An other way is to use seperate web servers on differents ports (80; 81; 82; for exemple http://localhost:90 http://yourdomain:97 ) on the same domain witch use differents php.exe In this case you do not need different php file extension names. ++++++++++++++++++++++++++++++++ Hope it helps, Bernd -------><---------- Bernd Deckert 01MAP - la carte vecteur d'information 35, all?e d'Irlande 34080 Montpellier 04.67.45.60.27 06.83.39.16.62 http://www.01map.com -------><---------- ----- Original Message ----- From: Jacob Delfos To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, June 17, 2005 10:52 AM Subject: [UMN_MAPSERVER-USERS] Running different versions on Windows simultaneously Hi All, I am about to set up a new internal server for running mapserver-based sites, and I am trying to do it such that I can run different versions of php_mapscript (and mapserver). The problem I am running into is that certain versions of the dll are compiled against certain of its dependent dll's. For example, php_mapscript_46 works fine with the gdal12.dll that comes with it, but not with the dll I compiled for php_mapscript_44. And one gdal12.dll will only work with the ecw dll's it was compiled with. I have tried keeping them in separate directories. This nearly worked, but for some reason gdal12.dll MUST sit in the windows System directory (even if you set up your paths correctly). I cannot just sit with the php_mapscript dll. The same goes for some other dll's. Even if the dependency walker says that all is fine, the website will not run unless it sits in system32. Has anyone been able to implement this more successfully? Any tips? Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com From temiz at DEPREM.GOV.TR Sat Jun 18 03:37:10 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Sat, 18 Jun 2005 13:37:10 +0300 Subject: mapscript/java errors Message-ID: hello when I enter make in mapscript/java, it give so many errors: .. .. .. mapscript_wrap.c:37197: error: `jresult' undeclared (first use in this function) mapscript_wrap.c: At top level: mapscript_wrap.c:37202: error: syntax error before "void" mapscript_wrap.c:37202: error: parse error before '*' token mapscript_wrap.c:37202: warning: return type defaults to `int' mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_msFreeCgiObj': .. .. .. what might happen * regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From temiz at DEPREM.GOV.TR Sat Jun 18 03:42:31 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Sat, 18 Jun 2005 13:42:31 +0300 Subject: java-mapscript debian package Message-ID: hello where can I find java-mapscript debian package if there is ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From m.marsella at ITWORKS.IT Sat Jun 18 04:54:47 2005 From: m.marsella at ITWORKS.IT (Marco Marsella) Date: Sat, 18 Jun 2005 13:54:47 +0200 Subject: MapServer 4.6 on Mac OS X and Oracle Spatial 10g Message-ID: Hi all, I am trying to get MapServer use an OracleSpatial 10g DB running on a SUN box. I have installed Oracle Instant Client on the Mac and I can use sqlplus to connect and query the DB. Then I have built MS using the Oracle SDK and tried to connect. However, MS reports a problem with the creation of the OCI handlers: [Tue Jun 14 15:38:30 2005] [error] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Oracle'.\n in /Users/ marsella/Sites/mserve/htdocs/common/wrapper/drawmap.php on line 533 [Tue Jun 14 15:38:30 2005] [error] PHP Warning: [MapServer Error]: msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection failure. Check the connection string. Error: .\n in /Users/marsella/ Sites/mserve/htdocs/common/wrapper/drawmap.php on line 533 [Tue Jun 14 15:38:30 2005] [error] PHP Notice: Use of undefined constant MS_CHILDERR - assumed 'MS_CHILDERR' in /Users/marsella/Sites/ mserve/htdocs/common/wrapper/drawmap.php on line 668 - I have set the following shell variables: export DYLD_LIBRARY_PATH="/usr/local/oracle/lib" export LD_LIBRARY_PATH="/usr/local/oracle/lib" export JAVA_HOME=/Library/Java/Home export SQLPATH=/usr/local/oracle export TNS_ADMIN=/Users/marsella/Sites/mserve/eclo/etc - I have tried SQL*Plus and it works using the following command: /usr/local/oracle/sqlplus scott/tiger at locustgis1:1521/ECLO2 Then I have set the following SetEnvIf clauses in httpd.conf: SetEnvIf Request_URI ".*" TNS_ADMIN "/Users/marsella/Sites/mserve/ eclo/etc" SetEnvIf Request_URI ".*" SQLPATH "/usr/local/oracle" SetEnvIf Request_URI ".*" LD_LIBRARY_PATH "/usr/local/oracle/lib" SetEnvIf Request_URI ".*" DYLD_LIBRARY_PATH "/usr/local/oracle/lib" I have checked that the tnsnames.ora file is readable by any user. The tnsnames.ora file is: ECLO2 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = locustgis1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ECLO2) ) ) The layer is as follows: LAYER NAME "Oracle" TYPE POINT STATUS OFF CONNECTIONTYPE oraclespatial CONNECTION "scott/tiger@//locustgis1:1521/ECLO2" (I also tried "scott/tiger at ECLO2" with the same result) DATA "shape FROM OPS$LOCUST.test USING SRID 8307" CLASS NAME "Hoppers" SYMBOL "circle" COLOR 0 255 0 END END and the table test is: SQL*Plus: Release 10.1.0.3.0 - Production on Tue Jun 14 15:32:18 2005 Copyright (c) 1982, 2004, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production With the Partitioning, OLAP and Data Mining options SQL> describe OPS$LOCUST.test; Name Null? Type ------------------- -------- ---------------------------- GA NUMBER(38) SHAPE OPS$LOCUST.SDO_GEOMETRY Is there anything you see wrong ? Thank you very much. Marco From Maarten.van.der.Hoeven at KNMI.NL Sat Jun 18 11:25:27 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Sat, 18 Jun 2005 20:25:27 +0200 Subject: Adding dynamic points; clicking on point not working Message-ID: Dear list, I'm working with MapServer 4.6.0, PHP-Mapscript (Linux Suse9.2, Apache) and I managed to query my (MySQL) database, and plot dots on the appropriate lat/lon (see query below). However, I still can't manage to retrieve some additional information, when clicking on a dot (displaying all dots on a map is working okay). Im running with a modified Gmap-demo, but the functionality is intact. To be specific, when I click on a point, I got the message "Nothing found at query location." Can you give me some hints/tipsss/clues? The code below is written by using some earlier examples on the list. My (1) query and plotting by using PHP-mapscript, and below that (2) my map-file. Regards, Maarten van der Hoeven 1. ============ $layerObj = $gpoMap->getLayerByName("points01"); $classObj = $layerObj->getClass(0); $query = "SELECT sta_id, lat/3600 as y, lon/3600 as x FROM stations;"; $result = mysql_query($query); $i=0; while (($row = mysql_fetch_array($result))) { $pointObj = ms_newPointObj(); $pointObj->setXY($row['x'], $row['y']); $line = ms_newLineObj(); $line->add($pointObj); $shp = ms_newShapeObj(MS_SHAPE_POINT); $shp->add($line); $shp->{index} = $i; if ($layerObj->addFeature($shp) == -1) { echo "addfeature failed!"; } $i++; $pointObj->draw($gpoMap, $layerObj, $img, 0, 'sta_id'); } 2. ============ # # Start of map file # # $Id: gmap75.map,v 1.23 2003/02/25 19:46:42 daniel Exp $ # NAME DEMO STATUS ON DEBUG ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -70 10 70 80 UNITS dd SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END QUERYMAP STATUS ON STYLE SELECTED COLOR 255 0 0 END # # Start of web interface definition WEB MINSCALE 2000 MAXSCALE 50000000 IMAGEPATH "/webdata/ecad/htdocs/tmp/" IMAGEURL "/tmp/" LOG /tmp/gmap.log END # # Start of reference map # REFERENCE IMAGE images/keymap.png EXTENT -2200000 -712631 3072800 3840000 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 255 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 10 STATUS ON END LAYER NAME points01 METADATA "RESULT_FIELDS" "sta_id" END TEMPLATE void TYPE POINT STATUS ON SYMBOLSCALE 50000 LABELITEM 'sta_id' CLASSITEM 'sta_id' CLASS NAME 'sta_id' STYLE OUTLINECOLOR 255 255 255 COLOR 255 0 0 SYMBOL 7 SIZE 8 MAXSIZE 15 MINSIZE 15 END LABEL MINFEATURESIZE -1 POSITION UC PARTIALS FALSE COLOR '#000080' SIZE GIANT END END END END # Map File From dbarron at DSWLLC.COM Sat Jun 18 12:18:46 2005 From: dbarron at DSWLLC.COM (Dan Barron) Date: Sat, 18 Jun 2005 12:18:46 -0700 Subject: Int'l Address Geocoder? Message-ID: Hello, Does anyone know of a good international address geocoder free or otherwise? Thanks! Dan Barron From mharnoldx at YAHOO.COM Sat Jun 18 12:49:40 2005 From: mharnoldx at YAHOO.COM (Michael Helmut Arnold) Date: Sat, 18 Jun 2005 12:49:40 -0700 Subject: php-mapscript from the command line. Message-ID: Hi all, I am developing a mapserver based website on my Linux box. php/mapscript has been working fine for me accessed through Apache. But I am having trouble with php scripts using mapserver from the command-line. The simple example below works fine when run from my web-browser, but core dumps during the ms_newMapObj() call when run as "%php < bug.php" Anybody else run into this? Any ideas? Thanks, Michael Arnold. P.S. I am using mapserver 4.6.0 and php 4.3.11 ---- bug.php ---- Michael Helmut Arnold. "A computer once beat me at chess. But it was no match for me at kick boxing." __________________________________ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html From mharnoldx at YAHOO.COM Sat Jun 18 14:29:19 2005 From: mharnoldx at YAHOO.COM (Michael Helmut Arnold) Date: Sat, 18 Jun 2005 14:29:19 -0700 Subject: php-mapscript from the command line. Message-ID: I found the problem (was installing php_mapserver.so to the wrong directory, and consequently loading an older mismatched version.) Sorry to bother the list prematurely. I did spend hours trying to track this down before posting, and was about to tear my hair out. Michael Arnold. --- Michael Helmut Arnold wrote: > Hi all, > > I am developing a mapserver based website on my Linux box. > php/mapscript has been working fine for me accessed through Apache. > But I am having trouble with php scripts using mapserver from the > command-line. > > The simple example below works fine when run from my web-browser, but > core dumps during the ms_newMapObj() call when run as "%php < bug.php" > > Anybody else run into this? Any ideas? > > Thanks, > Michael Arnold. > > P.S. I am using mapserver 4.6.0 and php 4.3.11 > > ---- bug.php ---- > > > > // load (as dynamic library) > dl('php_mapscript.so'); > > // read .map file > print ms_getversion(); > $mapxyz = ms_newMapObj("ref.map"); > print " DEBUG bottom."; > > ?> > > > Michael Helmut Arnold. > > "A computer once beat me at chess. > But it was no match for me at kick boxing." > > > > __________________________________ > Discover Yahoo! > Stay in touch with email, IM, photo sharing and more. Check it out! > http://discover.yahoo.com/stayintouch.html > Michael Helmut Arnold. "A computer once beat me at chess. But it was no match for me at kick boxing." ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com From dennis at MEGARRY.COM Sat Jun 18 19:43:05 2005 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Sat, 18 Jun 2005 21:43:05 -0500 Subject: Trying to setup GIF overlays on GeoTIFF Message-ID: I have some GIF files with associated world file (gfw). What I'm trying to do is use them as overlays for my GeoTIFF's but I can not seem to get them to appear.. Can anyone tell me if my map files is the error? MAP NAME "OHIO" STATUS ON EXTENT -440189.399 -273483.916 318655.347 242390.102 SIZE 800 500 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS WEB MINSCALE 112459 MAXSCALE 1e+07 IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA END END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "/opt/fgs/apps/maplab- 2.2/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "OHIO_North" STATUS ON DATA "OHIO_North.tif" TYPE RASTER UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "DESCRIPTION" "MAP/OHIO North" END END LAYER NAME "OHIO_South" STATUS ON DATA "OHIO_South.tif" TYPE RASTER UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "DESCRIPTION" "MAP/OHIO South" END END LAYER NAME "OHIO_0" STATUS ON DATA "OHIO_0.gif" TYPE RASTER UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "DESCRIPTION" "Weather/Ohio" END END END Dennis From pram123 at GMAIL.COM Sat Jun 18 20:02:53 2005 From: pram123 at GMAIL.COM (Prashanth Ram) Date: Sat, 18 Jun 2005 23:02:53 -0400 Subject: Trying to setup GIF overlays on GeoTIFF In-Reply-To: Message-ID: Dennis: Have you tried changing the status statement from ON to DEFAULT? -Prashanth -- HTMLX.com Mapserver Hosting, Mapscript Hosting, PHP Hosting PostgreSQL w/PostGIS extension enabled Hosting On 6/18/05, Dennis Megarry wrote: > I have some GIF files with associated world file (gfw). > > What I'm trying to do is use them as overlays for my GeoTIFF's but I can > not seem to get them to appear.. Can anyone tell me if my map files is the > error? > > MAP > NAME "OHIO" > STATUS ON > EXTENT -440189.399 -273483.916 318655.347 242390.102 > SIZE 800 500 > SHAPEPATH "./data" > SYMBOLSET "./etc/symbols.sym" > FONTSET "./etc/fonts.txt" > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > UNITS METERS > WEB > MINSCALE 112459 > MAXSCALE 1e+07 > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > END > END > QUERYMAP > STATUS OFF > SIZE -1 -1 > COLOR 255 0 0 > STYLE HILITE > END > LEGEND > STATUS ON > IMAGECOLOR 255 255 255 > POSITION LL > KEYSIZE 18 12 > KEYSPACING 5 5 > TEMPLATE "/opt/fgs/apps/maplab- > 2.2/htdocs/mapbrowser/legend_template.html" > LABEL > TYPE BITMAP > SIZE MEDIUM > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 89 > PARTIALS TRUE > FORCE FALSE > END > END > SCALEBAR > STATUS ON > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > IMAGECOLOR 255 255 255 > UNITS KILOMETERS > INTERVALS 5 > SIZE 150 5 > STYLE 0 > POSITION LL > LABEL > TYPE BITMAP > SIZE SMALL > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 0 > PARTIALS TRUE > FORCE FALSE > END > END > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > END > LAYER > NAME "OHIO_North" > STATUS ON > DATA "OHIO_North.tif" > TYPE RASTER > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > METADATA > "DESCRIPTION" "MAP/OHIO North" > END > END > LAYER > NAME "OHIO_South" > STATUS ON > DATA "OHIO_South.tif" > TYPE RASTER > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > METADATA > "DESCRIPTION" "MAP/OHIO South" > END > END > LAYER > NAME "OHIO_0" > STATUS ON > DATA "OHIO_0.gif" > TYPE RASTER > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > METADATA > "DESCRIPTION" "Weather/Ohio" > END > END > END > > > Dennis > From dennis at MEGARRY.COM Sat Jun 18 20:12:25 2005 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Sat, 18 Jun 2005 23:12:25 -0400 Subject: Trying to setup GIF overlays on GeoTIFF Message-ID: Just tried and no go.. I can turn off the GeoTIFF layers and the GIF simply will not show.. :( Dennis ----- Original Message ----- From: "Prashanth Ram" To: Sent: Saturday, June 18, 2005 11:02 PM Subject: Re: [UMN_MAPSERVER-USERS] Trying to setup GIF overlays on GeoTIFF Dennis: Have you tried changing the status statement from ON to DEFAULT? -Prashanth -- HTMLX.com Mapserver Hosting, Mapscript Hosting, PHP Hosting PostgreSQL w/PostGIS extension enabled Hosting On 6/18/05, Dennis Megarry wrote: > I have some GIF files with associated world file (gfw). > > What I'm trying to do is use them as overlays for my GeoTIFF's but I can > not seem to get them to appear.. Can anyone tell me if my map files is the > error? > > MAP > NAME "OHIO" > STATUS ON > EXTENT -440189.399 -273483.916 318655.347 242390.102 > SIZE 800 500 > SHAPEPATH "./data" > SYMBOLSET "./etc/symbols.sym" > FONTSET "./etc/fonts.txt" > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > UNITS METERS > WEB > MINSCALE 112459 > MAXSCALE 1e+07 > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > END > END > QUERYMAP > STATUS OFF > SIZE -1 -1 > COLOR 255 0 0 > STYLE HILITE > END > LEGEND > STATUS ON > IMAGECOLOR 255 255 255 > POSITION LL > KEYSIZE 18 12 > KEYSPACING 5 5 > TEMPLATE "/opt/fgs/apps/maplab- > 2.2/htdocs/mapbrowser/legend_template.html" > LABEL > TYPE BITMAP > SIZE MEDIUM > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 89 > PARTIALS TRUE > FORCE FALSE > END > END > SCALEBAR > STATUS ON > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > IMAGECOLOR 255 255 255 > UNITS KILOMETERS > INTERVALS 5 > SIZE 150 5 > STYLE 0 > POSITION LL > LABEL > TYPE BITMAP > SIZE SMALL > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 0 > PARTIALS TRUE > FORCE FALSE > END > END > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > END > LAYER > NAME "OHIO_North" > STATUS ON > DATA "OHIO_North.tif" > TYPE RASTER > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > METADATA > "DESCRIPTION" "MAP/OHIO North" > END > END > LAYER > NAME "OHIO_South" > STATUS ON > DATA "OHIO_South.tif" > TYPE RASTER > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > METADATA > "DESCRIPTION" "MAP/OHIO South" > END > END > LAYER > NAME "OHIO_0" > STATUS ON > DATA "OHIO_0.gif" > TYPE RASTER > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > METADATA > "DESCRIPTION" "Weather/Ohio" > END > END > END > > > Dennis > From deepak_38 at YAHOO.COM Sun Jun 19 03:58:52 2005 From: deepak_38 at YAHOO.COM (Kumar deepak) Date: Sun, 19 Jun 2005 03:58:52 -0700 Subject: Premature end of script headers Message-ID: Hi, I have sucessfully compile the file and placed the mapserv in to the cgi-directory, Now when i am accessing the file from browser http://www.mydomain.com/cgi-bin/mapserv " it gives the error "Premature end of script headers". Please help me how to resolve the problem. Regards Deepak KUmar --------------------------------- Discover Yahoo! Use Yahoo! to plan a weekend, have fun online & more. Check it out! -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.hall at MERCATORGEOSYSTEMS.CO.UK Sun Jun 19 01:47:28 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Sun, 19 Jun 2005 09:47:28 +0100 Subject: Int'l Address Geocoder? Message-ID: Hi Dan, Oracle 10g (Enterprise Edition with Spatial option) includes a Geocoder with international capability. Getting data for it is a bit tricky though with NAVTEQ being one of the few suppliers selling data in the "Oracle Ready" format. Of course you can always build it yourself! Steve ----- Original Message ----- From: "Dan Barron" Sent: Saturday, June 18, 2005 8:18 PM Subject: Int'l Address Geocoder? > Hello, > > Does anyone know of a good international address geocoder free or > otherwise? > > Thanks! > > Dan Barron > From bartvde at XS4ALL.NL Sun Jun 19 07:53:09 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 19 Jun 2005 16:53:09 +0200 Subject: Adding dynamic points; clicking on point not working In-Reply-To: <2EA11DE4C505014BA2A74175DECAE6BE04EAB5@BCSXTC.knmi.nl> Message-ID: Did you try setting a TOLERANCE on your LAYER? eg: TOLERANCEUNITS PIXELS TOLERANCE 3 Best regards, Bart On Sat, 18 Jun 2005 20:25:27 +0200, Hoeven, Maarten van der wrote: > Dear list, > > I'm working with MapServer 4.6.0, PHP-Mapscript (Linux Suse9.2, Apache) > and I managed to query my (MySQL) database, and plot dots on the > appropriate lat/lon (see query below). However, I still can't manage to > retrieve some additional information, when clicking on a dot (displaying > all dots on a map is working okay). Im running with a modified > Gmap-demo, but the functionality is intact. To be specific, when I click > on a point, I got the message "Nothing found at query location." > > Can you give me some hints/tipsss/clues? The code below is written by > using some earlier examples on the list. > > My (1) query and plotting by using PHP-mapscript, and below that (2) my > map-file. > > Regards, > Maarten van der Hoeven > > 1. ============ > > $layerObj = $gpoMap->getLayerByName("points01"); > $classObj = $layerObj->getClass(0); > > $query = "SELECT sta_id, lat/3600 as y, lon/3600 as x FROM stations;"; > $result = mysql_query($query); > > $i=0; > while (($row = mysql_fetch_array($result))) > { > $pointObj = ms_newPointObj(); > $pointObj->setXY($row['x'], $row['y']); > $line = ms_newLineObj(); > $line->add($pointObj); > $shp = ms_newShapeObj(MS_SHAPE_POINT); > $shp->add($line); > $shp->{index} = $i; > if ($layerObj->addFeature($shp) == -1) > { > echo "addfeature failed!"; > } > $i++; > $pointObj->draw($gpoMap, $layerObj, $img, 0, 'sta_id'); > } > > 2. ============ > # > # Start of map file > # > # $Id: gmap75.map,v 1.23 2003/02/25 19:46:42 daniel Exp $ > # > NAME DEMO > STATUS ON > DEBUG ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT -70 10 70 80 > UNITS dd > SHAPEPATH "../data" > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > QUERYMAP > STATUS ON > STYLE SELECTED > COLOR 255 0 0 > END > > # > # Start of web interface definition > > WEB > MINSCALE 2000 > MAXSCALE 50000000 > IMAGEPATH "/webdata/ecad/htdocs/tmp/" > IMAGEURL "/tmp/" > LOG /tmp/gmap.log > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/keymap.png > EXTENT -2200000 -712631 3072800 3840000 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 350 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 255 0 0 > OUTLINECOLOR 0 0 0 > UNITS kilometers > INTERVALS 10 > STATUS ON > END > > LAYER > NAME points01 > METADATA > "RESULT_FIELDS" "sta_id" > END > TEMPLATE void > TYPE POINT > STATUS ON > SYMBOLSCALE 50000 > LABELITEM 'sta_id' > CLASSITEM 'sta_id' > CLASS > NAME 'sta_id' > STYLE > OUTLINECOLOR 255 255 255 > COLOR 255 0 0 > SYMBOL 7 > SIZE 8 > MAXSIZE 15 > MINSIZE 15 > END > LABEL > MINFEATURESIZE -1 > POSITION UC > PARTIALS FALSE > COLOR '#000080' > SIZE GIANT > END > END > END > > END # Map File > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From s0450863 at SMS.ED.AC.UK Sun Jun 19 07:57:52 2005 From: s0450863 at SMS.ED.AC.UK (EAA Csete) Date: Sun, 19 Jun 2005 15:57:52 +0100 Subject: Wraping raster images Message-ID: I'd like to be able to wrap a raster image so that on a global map, users do not off the edge and get white space. It seems this question cam up a couple of years ago and the response was - not easily! Has anyone discovered a (not too complicated!) way of doing this since then? Any ideas most welcome! Emese From woodbri at SWOODBRIDGE.COM Sun Jun 19 09:49:05 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 19 Jun 2005 12:49:05 -0400 Subject: Wraping raster images In-Reply-To: <1119193072.42b587f026184@sms.ed.ac.uk> Message-ID: Hello Emese, There are two problems with this: 1) panning east-west and wrapping about the international date-line. You might be able to solve the east-west problem by making a an extra virtual copy of the images on the east and west side of the main images. You could avoid duplicating the data by using symlinks if you are on linux, then I would create .wld files for the east and west copies that make them appear as 180 plus or minus the orginial set. so now you can pan an other 360 degrees past the the date-line in either direction. Then I would make a small change to you application to add/sub 180 if the center of the map moves beyond +- 360 This should make the user feel like they can pan east or west forever. 2) panning north-south and wrapping about the poles. This is a little more problematic because if you pan north-south over the pole the map image would be upside down. But the same idea might work and if you setup your world file appropriately, I think the image might get flipped upside down as expected. I haven't tried any thing like this, but this would be how I would try. Others might give you a clue as to where this might work. Let us know and send a link if you get it working. You might want to try it with a very simple example with a single image. -Steve W. EAA Csete wrote: > I'd like to be able to wrap a raster image so that on a global map, > users do not off the edge and get white space. It seems this question > cam up a couple of years ago and the response was - not easily! > > Has anyone discovered a (not too complicated!) way of doing this > since then? > > Any ideas most welcome! > > Emese > From bill at BINKO.NET Sun Jun 19 10:59:37 2005 From: bill at BINKO.NET (Bill Binko) Date: Sun, 19 Jun 2005 13:59:37 -0400 Subject: [Gdal-dev] Adding Projection to ECW files ? In-Reply-To: Message-ID: Hi everyone: I hope everyone enjoyed the conference. If anyone has time to look at this, I'd really appreciate it. I really would like to be busy making summary layers, but am stuck at this point. Thanks Bill On Wed, 15 Jun 2005, Bill Binko wrote: > > Hi everyone, > > First, enjoy the conference: this can wait, but I wanted to ask while it > was fresh. Wish I could join you. > > I have had some recent success with my raster project... > > 1) I have gotten GDAL & ECW to work on Linux (bug in ECW) > > 2) I have gotten gdaltindex to generate a tileindex of my DOQQs > > 3) I have gotten Mapserver to show my images (YAY) if I set the projection > to UTM Zone 17N in the mapfile > > The problem is that the ECW files don't seem to have the UTM 17N > associated with them in any metadata that GDAL reads. They come with > .aux, .ecw, .ecw.xml, .ecw.aux.xml, and .html files for each image. > > Now, when I run gdalinfo on the file, I get this: > > [bill at fastcat ecw_rgb]$ gdalinfo dq4517ne.ecw > Driver: ECW/ERMapper Compressed Wavelets > Size is 6199, 7064 > Coordinate System is: > LOCAL_CS["LOCAL", > UNIT["Meter",1]] > Origin = (397031.442000,3277747.800000) > Pixel Size = (1.00000000,-1.00000000) > Corner Coordinates: > Upper Left ( 397031.442, 3277747.800) > Lower Left ( 397031.442, 3270683.800) > Upper Right ( 403230.442, 3277747.800) > Lower Right ( 403230.442, 3270683.800) > Center ( 400130.942, 3274215.800) > Band 1 Block=6199x1 Type=Byte, ColorInterp=Red > Overviews: arbitrary > Band 2 Block=6199x1 Type=Byte, ColorInterp=Green > Overviews: arbitrary > Band 3 Block=6199x1 Type=Byte, ColorInterp=Blue > Overviews: arbitrary > > So, I know that it has the boundary info, and I don't need separate .tfw > (or equivalent). However, notice the LOCAL_CS -- it didn't find the > projection information. > > Is there any way I can add this to the files? It should be the same for > all of them. > > Without it, gdal_merge.py blows up, and I can't create summary images :( > > I know this is long winded, but can anyone help? > > Thanks > Bill > > > _______________________________________________ > Gdal-dev mailing list > Gdal-dev at xserve.flids.com > http://xserve.flids.com/mailman/listinfo/gdal-dev > > From siki at AGT.BME.HU Sun Jun 19 13:58:41 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 19 Jun 2005 19:58:41 -0100 Subject: JOIN - hope to receive an answer... maybe from a developer {Scanned} {Scanned} In-Reply-To: <20050617144944.89108.qmail@web33501.mail.mud.yahoo.com> Message-ID: Dear Paul, I have given an example for multiple join, see in the archive. Item number 2796. http://lists.umn.edu/cgi-bin/wa?A2=ind0412&L=mapserver-users&P=R15784&I=-3&X=68D2EA4ED8F073B0B9&Y=siki%40agt.bme.hu Bye Zoltan On Fri, 17 Jun 2005, william paul wrote: > Hi, > > I am not very advanced with MAPSEVER, but still... > Does anyone have EVER successfully used JOIN OBJECT? I want to join a DBF with a SHP (MULTIPLE JOIN) > > In Mapserver reference file (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#join) it is written "Joins are defined within a query object." WHAT IT MEANS? the map file should look like: > LAYER > .... > QUERY > JOIN > etc > I tried like this but I receive the error :loadLayer(): Unknown identifier. Parsing error near (QUERY) > obvious the map file should look different > > I have the shape (COUNTY.SHP) file with the following fields (ITEMS): SHAPE, CODE > I have the DBF (CODE.DBF) file with the following fields (ITEMS): CODE, COUNTY, TOWN, YEAR > I wanted to join them (MULTIPLE JOIN=ONE TO MANY), so I used as Mapserver reference say: > > LAYER > ...... > HEADER 'templates/code_header.html' > FOOTER 'templates/code_footer.html' > TOLERANCE 3 > > CLASS > COLOR 200 0 200 > SIZE 10 > SYMBOL "circule" > TEMPLATE 'templates/code.html' > END > > JOIN > FROM CODE > NAME CODE_JOIN > TABLE "E:\mapserver\shp\CODE.DBF" > TEMPLATE "templates\CODE.HTML" > TO CODE > TYPE multiple > END > > I receive the following result: > CODECOUNTYTOWNYEAR11026[COUNTY][TOWN][YEAR] > > If I comment the TEMPLATE from JOIN nothink happend, but if I comment the TEMPLATE from CLASS I get the error: msQueryByRect(): Search returned no results. No matching record(s) found. > > WHAT is happening? What and where I do wrong? > DOES ANY ONE HAVE A WORKING EXAMPLE? I MEAN SOME ONE WHO USED OR USE JOIN OBJECT > > There are any other ways to JOIN (ONE TO MANY) data? > > Thank you in advance > > William > > > > > > --------------------------------- > Yahoo! Mail > Stay connected, organized, and protected. Take the tour From Maarten.van.der.Hoeven at KNMI.NL Sun Jun 19 11:51:21 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Sun, 19 Jun 2005 20:51:21 +0200 Subject: Adding dynamic points; clicking on point not working Message-ID: Dear Bart, thank you for your response. Yes, I did. It is not mentioned anymore (testing what will help) in my mapfile below, but I had it for some reasonably time. But that didnt help... Anymore clues/tips? Regards, Maarten -----Original Message----- From: UMN MapServer Users List on behalf of Bart van den Eijnden Sent: Sun 6/19/2005 4:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding dynamic points; clicking on point not working Did you try setting a TOLERANCE on your LAYER? eg: TOLERANCEUNITS PIXELS TOLERANCE 3 Best regards, Bart On Sat, 18 Jun 2005 20:25:27 +0200, Hoeven, Maarten van der wrote: > Dear list, > > I'm working with MapServer 4.6.0, PHP-Mapscript (Linux Suse9.2, Apache) > and I managed to query my (MySQL) database, and plot dots on the > appropriate lat/lon (see query below). However, I still can't manage to > retrieve some additional information, when clicking on a dot (displaying > all dots on a map is working okay). Im running with a modified > Gmap-demo, but the functionality is intact. To be specific, when I click > on a point, I got the message "Nothing found at query location." > > Can you give me some hints/tipsss/clues? The code below is written by > using some earlier examples on the list. > > My (1) query and plotting by using PHP-mapscript, and below that (2) my > map-file. > > Regards, > Maarten van der Hoeven > > 1. ============ > > $layerObj = $gpoMap->getLayerByName("points01"); > $classObj = $layerObj->getClass(0); > > $query = "SELECT sta_id, lat/3600 as y, lon/3600 as x FROM stations;"; > $result = mysql_query($query); > > $i=0; > while (($row = mysql_fetch_array($result))) > { > $pointObj = ms_newPointObj(); > $pointObj->setXY($row['x'], $row['y']); > $line = ms_newLineObj(); > $line->add($pointObj); > $shp = ms_newShapeObj(MS_SHAPE_POINT); > $shp->add($line); > $shp->{index} = $i; > if ($layerObj->addFeature($shp) == -1) > { > echo "addfeature failed!"; > } > $i++; > $pointObj->draw($gpoMap, $layerObj, $img, 0, 'sta_id'); > } > > 2. ============ > # > # Start of map file > # > # $Id: gmap75.map,v 1.23 2003/02/25 19:46:42 daniel Exp $ > # > NAME DEMO > STATUS ON > DEBUG ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT -70 10 70 80 > UNITS dd > SHAPEPATH "../data" > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > QUERYMAP > STATUS ON > STYLE SELECTED > COLOR 255 0 0 > END > > # > # Start of web interface definition > > WEB > MINSCALE 2000 > MAXSCALE 50000000 > IMAGEPATH "/webdata/ecad/htdocs/tmp/" > IMAGEURL "/tmp/" > LOG /tmp/gmap.log > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/keymap.png > EXTENT -2200000 -712631 3072800 3840000 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 350 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 255 0 0 > OUTLINECOLOR 0 0 0 > UNITS kilometers > INTERVALS 10 > STATUS ON > END > > LAYER > NAME points01 > METADATA > "RESULT_FIELDS" "sta_id" > END > TEMPLATE void > TYPE POINT > STATUS ON > SYMBOLSCALE 50000 > LABELITEM 'sta_id' > CLASSITEM 'sta_id' > CLASS > NAME 'sta_id' > STYLE > OUTLINECOLOR 255 255 255 > COLOR 255 0 0 > SYMBOL 7 > SIZE 8 > MAXSIZE 15 > MINSIZE 15 > END > LABEL > MINFEATURESIZE -1 > POSITION UC > PARTIALS FALSE > COLOR '#000080' > SIZE GIANT > END > END > END > > END # Map File > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From robin.ellis at NRM.QLD.GOV.AU Sun Jun 19 18:57:19 2005 From: robin.ellis at NRM.QLD.GOV.AU (Rob Ellis) Date: Sun, 19 Jun 2005 20:57:19 -0500 Subject: Perl Mapscript 4.4 Issues Message-ID: On Mon, 25 Apr 2005 08:18:22 -0400, Lowell Filak wrote: >The following message was sent by Stephen Woodbridge > on Sun, 24 Apr 2005 23:23:26 -0400. > >> Hi all, >> >> I'm looking at the SWIGMapScript doc and have run into a few problems. >> >> $mapObj->setExtent($minx, $miny, $maxx, $maxy); >> >> and throws an error: >> >> Can't locate auto/mapscript/mapObj/setExtent.al in @INC (@INC contains: >> /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 >> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 >> /usr/local/lib/site_perl /usr/local/lib/perl/5.8.0 >> /usr/local/share/perl/5.8.0 .) at index.cgi line 255 >> >> Also looking at the document it looks like there is an >> $layerObj->setExtent(...) which doesn't seem to be correct. >> >> The classObj doc says it "Provides access to all class parameters >> (color, symbol, label, & etc...)." but there is no doc to indicate there >> is a symbol property, nor is there any of doc/properties for color, >> overlaycolor, size, overlaysize. I think these were moved to styleObjs >> so it might be appropriate to comment on that. > >Steve, > >What version are you using? >I just double checked and there is most certainly a 'setExtent' for the >mapObj in the mapscript.pm. >You are correct on the classObj not. It is an old note that needs to be >deleted. Sorry for the confusion. > >Lowell Sorry to take you guys back to something that you've allready sorted out, but I'm a little confused. I've upgraded to MS4.4.2 but am getting the following message when trying to use Perl Mapscript, and from the previous messages it looks as though I might just need to alter mapscript.pm: Can't locate auto/mapscript/classObj/swig_styles.al Am I right in interpreting the previous emails when I assume that I need to remove refernces to classObj in mapscript.pm, or am I way off? Thanks Rob From fsimon at UNIVALI.BR Sun Jun 19 20:16:56 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 20 Jun 2005 00:16:56 -0300 Subject: MapServer 4.6 on Mac OS X and Oracle Spatial 10g In-Reply-To: <99DFB1E4-B096-4890-8C31-539CD26D00E9@itworks.it> Message-ID: Hi, The correct way how to connect Oracle Spatial is using: "user/pass at sid". Other ways don't work. This problem can be related with variables (shell). Generally I set the Httpd variables too. You need the to set the ORACLE_HOME and ORACLE_BASE correctly to access Oracle Spatial from Mapserver, for shell and httpd.conf. You can see this page, as example, how to set this Oracle variables: http://www.puschitz.com/InstallingOracle10g.shtml#SettingOracleEnvironments The user that will run Mapserver need to see (read permission) the ORACLE_HOME directory. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Marco Marsella wrote: > Hi all, > > I am trying to get MapServer use an OracleSpatial 10g DB running on a > SUN box. I have installed Oracle Instant Client on the Mac and I can > use sqlplus to connect and query the DB. > > Then I have built MS using the Oracle SDK and tried to connect. > However, MS reports a problem with the creation of the OCI handlers: > > [Tue Jun 14 15:38:30 2005] [error] PHP Warning: [MapServer Error]: > msDrawMap(): Failed to draw layer named 'Oracle'.\n in /Users/ > marsella/Sites/mserve/htdocs/common/wrapper/drawmap.php on line 533 > [Tue Jun 14 15:38:30 2005] [error] PHP Warning: [MapServer Error]: > msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection > failure. Check the connection string. Error: .\n in /Users/marsella/ > Sites/mserve/htdocs/common/wrapper/drawmap.php on line 533 > [Tue Jun 14 15:38:30 2005] [error] PHP Notice: Use of undefined > constant MS_CHILDERR - assumed 'MS_CHILDERR' in /Users/marsella/Sites/ > mserve/htdocs/common/wrapper/drawmap.php on line 668 > > - I have set the following shell variables: > > export DYLD_LIBRARY_PATH="/usr/local/oracle/lib" > export LD_LIBRARY_PATH="/usr/local/oracle/lib" > export JAVA_HOME=/Library/Java/Home > export SQLPATH=/usr/local/oracle > export TNS_ADMIN=/Users/marsella/Sites/mserve/eclo/etc > > - I have tried SQL*Plus and it works using the following command: > > /usr/local/oracle/sqlplus scott/tiger at locustgis1:1521/ECLO2 > > Then I have set the following SetEnvIf clauses in httpd.conf: > > SetEnvIf Request_URI ".*" TNS_ADMIN "/Users/marsella/Sites/mserve/ > eclo/etc" > SetEnvIf Request_URI ".*" SQLPATH "/usr/local/oracle" > SetEnvIf Request_URI ".*" LD_LIBRARY_PATH "/usr/local/oracle/lib" > SetEnvIf Request_URI ".*" DYLD_LIBRARY_PATH "/usr/local/oracle/lib" > > I have checked that the tnsnames.ora file is readable by any user. > The tnsnames.ora file is: > ECLO2 = > (DESCRIPTION = > (ADDRESS = (PROTOCOL = TCP)(HOST = locustgis1)(PORT = 1521)) > (CONNECT_DATA = > (SERVER = DEDICATED) > (SERVICE_NAME = ECLO2) > ) > ) > > > The layer is as follows: > > LAYER > NAME "Oracle" > TYPE POINT > STATUS OFF > CONNECTIONTYPE oraclespatial > CONNECTION "scott/tiger@//locustgis1:1521/ECLO2" (I also > tried "scott/tiger at ECLO2" with the same result) > DATA "shape FROM OPS$LOCUST.test USING SRID 8307" > CLASS > NAME "Hoppers" > SYMBOL "circle" > COLOR 0 255 0 > END > END > > and the table test is: > > SQL*Plus: Release 10.1.0.3.0 - Production on Tue Jun 14 15:32:18 2005 > Copyright (c) 1982, 2004, Oracle. All rights reserved. > Connected to: > Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit > Production > With the Partitioning, OLAP and Data Mining options > > SQL> describe OPS$LOCUST.test; > Name Null? Type > ------------------- -------- ---------------------------- > GA NUMBER(38) > SHAPE OPS$LOCUST.SDO_GEOMETRY > > Is there anything you see wrong ? > > Thank you very much. > > Marco > From mercutio at POBOX.COM Sun Jun 19 23:16:23 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Mon, 20 Jun 2005 08:16:23 +0200 Subject: Perl Mapscript 4.4 Issues In-Reply-To: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At the risk of pointing out the obvious -- you did re-install mapscript.pm when you upgraded MS? That doesn't happen automatically. Rob Ellis wrote: | On Mon, 25 Apr 2005 08:18:22 -0400, Lowell Filak | wrote: | | |>The following message was sent by Stephen Woodbridge |> on Sun, 24 Apr 2005 23:23:26 -0400. |> |> |>>Hi all, |>> |>>I'm looking at the SWIGMapScript doc and have run into a few problems. |>> |>>$mapObj->setExtent($minx, $miny, $maxx, $maxy); |>> |>>and throws an error: |>> |>>Can't locate auto/mapscript/mapObj/setExtent.al in @INC (@INC contains: |>>/etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 |>>/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 |>>/usr/local/lib/site_perl /usr/local/lib/perl/5.8.0 |>>/usr/local/share/perl/5.8.0 .) at index.cgi line 255 |>> |>>Also looking at the document it looks like there is an |>>$layerObj->setExtent(...) which doesn't seem to be correct. |>> |>>The classObj doc says it "Provides access to all class parameters |>>(color, symbol, label, & etc...)." but there is no doc to indicate there |>>is a symbol property, nor is there any of doc/properties for color, |>>overlaycolor, size, overlaysize. I think these were moved to styleObjs |>>so it might be appropriate to comment on that. |> |>Steve, |> |>What version are you using? |>I just double checked and there is most certainly a 'setExtent' for the |>mapObj in the mapscript.pm. |>You are correct on the classObj not. It is an old note that needs to be |>deleted. Sorry for the confusion. |> |>Lowell | | | Sorry to take you guys back to something that you've allready sorted out, | but I'm a little confused. I've upgraded to MS4.4.2 but am getting the | following message when trying to use Perl Mapscript, and from the previous | messages it looks as though I might just need to alter mapscript.pm: | | Can't locate auto/mapscript/classObj/swig_styles.al | | Am I right in interpreting the previous emails when I assume that I need to | remove refernces to classObj in mapscript.pm, or am I way off? | | Thanks | | Rob | | | | - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- Sweet are the uses of adversity. - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows 2000) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCtl83oyEQRcU83p4RAl4OAKCPXzvjvIWdebFtDKd1A0XVFAsTGwCfa8Mo wCX9x6p0oMIuX4XsPuEJgYI= =WRP5 -----END PGP SIGNATURE----- From Robin.Ellis at NRM.QLD.GOV.AU Sun Jun 19 23:33:58 2005 From: Robin.Ellis at NRM.QLD.GOV.AU (Ellis Robin (Bundaberg)) Date: Mon, 20 Jun 2005 16:33:58 +1000 Subject: Perl Mapscript 4.4 Issues Message-ID: Yes Aaron, thanks for that. I have copied across the 'new' mapscript.pm and restarted Apache (a couple of times). That's not to say that I won't be really, really happy if my solution is as simple as your porposal! Rob -----Original Message----- From: Aaron Craig [mailto:mercutio at pobox.com] Sent: Monday, 20 June 2005 4:16 PM To: Ellis Robin (Bundaberg) Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Perl Mapscript 4.4 Issues -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At the risk of pointing out the obvious -- you did re-install mapscript.pm when you upgraded MS? That doesn't happen automatically. Rob Ellis wrote: | On Mon, 25 Apr 2005 08:18:22 -0400, Lowell Filak | wrote: | | |>The following message was sent by Stephen Woodbridge |> on Sun, 24 Apr 2005 23:23:26 -0400. |> |> |>>Hi all, |>> |>>I'm looking at the SWIGMapScript doc and have run into a few problems. |>> |>>$mapObj->setExtent($minx, $miny, $maxx, $maxy); |>> |>>and throws an error: |>> |>>Can't locate auto/mapscript/mapObj/setExtent.al in @INC (@INC contains: |>>/etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 |>>/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 |>>/usr/local/lib/site_perl /usr/local/lib/perl/5.8.0 |>>/usr/local/share/perl/5.8.0 .) at index.cgi line 255 |>> |>>Also looking at the document it looks like there is an |>>$layerObj->setExtent(...) which doesn't seem to be correct. |>> |>>The classObj doc says it "Provides access to all class parameters |>>(color, symbol, label, & etc...)." but there is no doc to indicate there |>>is a symbol property, nor is there any of doc/properties for color, |>>overlaycolor, size, overlaysize. I think these were moved to styleObjs |>>so it might be appropriate to comment on that. |> |>Steve, |> |>What version are you using? |>I just double checked and there is most certainly a 'setExtent' for the |>mapObj in the mapscript.pm. |>You are correct on the classObj not. It is an old note that needs to be |>deleted. Sorry for the confusion. |> |>Lowell | | | Sorry to take you guys back to something that you've allready sorted out, | but I'm a little confused. I've upgraded to MS4.4.2 but am getting the | following message when trying to use Perl Mapscript, and from the previous | messages it looks as though I might just need to alter mapscript.pm: | | Can't locate auto/mapscript/classObj/swig_styles.al | | Am I right in interpreting the previous emails when I assume that I need to | remove refernces to classObj in mapscript.pm, or am I way off? | | Thanks | | Rob | | | | - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- Sweet are the uses of adversity. - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows 2000) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCtl83oyEQRcU83p4RAl4OAKCPXzvjvIWdebFtDKd1A0XVFAsTGwCfa8Mo wCX9x6p0oMIuX4XsPuEJgYI= =WRP5 -----END PGP SIGNATURE----- ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From mercutio at POBOX.COM Sun Jun 19 23:49:54 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Mon, 20 Jun 2005 08:49:54 +0200 Subject: Perl Mapscript 4.4 Issues In-Reply-To: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 That may be the problem. Just for fun, I would try removing completely the current mapscript.pm (and any files you will find in auto/mapscript) and re-running the installation script (the standard perl Makefile.PL / make / make install). I've had similar errors in the past and usually it's had to do with incompatibility between the new MS core and the mapscript wrapper. Ellis Robin (Bundaberg) wrote: | Yes Aaron, thanks for that. I have copied across the 'new' mapscript.pm and restarted Apache (a couple of times). That's not to say that I won't be really, really happy if my solution is as simple as your porposal! | | Rob | | -----Original Message----- | From: Aaron Craig [mailto:mercutio at pobox.com] | Sent: Monday, 20 June 2005 4:16 PM | To: Ellis Robin (Bundaberg) | Cc: MAPSERVER-USERS at LISTS.UMN.EDU | Subject: Re: [UMN_MAPSERVER-USERS] Perl Mapscript 4.4 Issues | | | At the risk of pointing out the obvious -- you did re-install | mapscript.pm when you upgraded MS? That doesn't happen automatically. | | - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- He's mad that trusts in the tameness of a wolf, a horse's health, a boy's love, or a whore's oath. --King Lear, III:6 - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows 2000) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCtmcSoyEQRcU83p4RAtgJAJ9O4f976VX1WjdPbqprH9tuGjeVIQCeIBUI 6zV5aHWiGd5C33rcYVbYlIM= =4PcO -----END PGP SIGNATURE----- From olivier.gayte at VEREMES.COM Mon Jun 20 00:09:13 2005 From: olivier.gayte at VEREMES.COM (Olivier Gayte) Date: Mon, 20 Jun 2005 02:09:13 -0500 Subject: Premature end of script headers Message-ID: I already have had such message when a library version on the server did not match the version used when mapserver was compiled. May be ou have From olivier.gayte at VEREMES.COM Mon Jun 20 00:16:44 2005 From: olivier.gayte at VEREMES.COM (Olivier Gayte) Date: Mon, 20 Jun 2005 02:16:44 -0500 Subject: Premature end of script headers Message-ID: oops! I accidentaly clicked on the "send button" before the end of my message. Here is the complete one: I already have had such message when a library version on the server did not match the version used when mapserver was compiled. You should verify version and location of all mapserver libraries (gdal, gd, proj4, freetype...). Olivier olivier.gayte at veremes.com >Hi, > >I have sucessfully compile the file and placed the mapserv in to the cgi- directory, >Now when i am accessing the file from browser http://www.mydomain.com/cgi- bin/mapserv " it gives the error "Premature end of script headers". > >Please help me how to resolve the problem. > >Regards >Deepak KUmar > > > >--------------------------------- >Discover Yahoo! > Use Yahoo! to plan a weekend, have fun online & more. Check it out! From umberto.nicoletti at GMAIL.COM Mon Jun 20 01:26:12 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 20 Jun 2005 10:26:12 +0200 Subject: mapscript/java errors In-Reply-To: <42B67CCA.4090202@deprem.gov.tr> Message-ID: You need to compile mapserver first and then cd to mapscript/java. You should try to run make interface before running make in mapscript/java as it will generate/update the swig-generated interface files. You need a very recent version of swig to run make interface. I have not tried mapserver 4.6 yet so there might be unresolved issues with java maspcript that I am not aware of. HTH, Umberto On 6/20/05, orkun wrote: > thank you for your interest: > > - linux debian testing > - mapserver-4.6.0-beta1 > - I changed mapscript/java then entered make and the nightmare started. > > here is my config > --with-proj \ > --with-threads \ > --with-ogr \ > --with-gd=/usr/local/gd-2.0.33 \ > --with-gdal=/usr/local/bin/gdal-config \ > --with-png \ > --with-php=/usr/local/php-5.0.4/ \ > --with-java=/usr/local/jdk1.5.0_03/ > > I have been using phpmapscript. But I am curious about java. > Can you say that developing and using mapserver with java is better > than php ? > > regards > > > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > > From piero.cavalieri at HEIDI.IT Mon Jun 20 03:13:51 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Mon, 20 Jun 2005 05:13:51 -0500 Subject: DBox PHP Problems Message-ID: Is the form name set to main_map ? Also I had problems with the DHTML library includes (don't know why) and I solved using another path: src="javascript/x/x_core.js" ecc.. Piero Rob McCulley wrote: >I would like to use DBox with PHP-mpscript, but I'm having some problems >figureing out how to implement it. I currently have it set up like so: > >--- A bunch of PHP that sets up map size and layers --- > > > > > > > > > > > > > > >--- A bunch of PHP that generates the map and legend --- > > > >
> width=""> >
> >
> height="" width=""> >
> >My zoom tools are setup like so: > > onClick="main_map.boxon();">Zoom In
> onClick="main_map.boxoff();">Pan
> onClick="main_map.boxoff();">Zoom Out
> >Two problems - the first is that the map isn't visible. I'm assuming it has >to do with the div boxes and the transparent pixels. Not my main problem, >I'm sure I can solve it. The main problem is that when I click on the zoom >in radio button (or any of the three radio buttons for that matter) I get a >javascript error "Object doesn't support property or method" pointing at the >line of code for the radio button. > >Any ideas what I'm doing wrong? Or does anyone have an example of DBox >working with PHP that they can point me at? > >Thank You, >Rob McCulley >GIS Coordinator >County of Vermilion River No. 24 >(780) 846-2244 >RMcCulley at County24.com > From temiz at DEPREM.GOV.TR Mon Jun 20 03:54:53 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 20 Jun 2005 13:54:53 +0300 Subject: mapscript/java errors In-Reply-To: <75b4b93e0506200126335a65e@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: >You need to compile mapserver first and then cd to mapscript/java. You >should try to run > >make interface > >before running make in mapscript/java as it will generate/update the >swig-generated interface files. You need a very recent version of swig >to run make interface. > >I have not tried mapserver 4.6 yet so there might be unresolved issues >with java maspcript that I am not aware of. > >HTH, >Umberto > >On 6/20/05, orkun wrote: > > > > >>thank you for your interest: >> >>- linux debian testing >>- mapserver-4.6.0-beta1 >>- I changed mapscript/java then entered make and the nightmare started. >> >>here is my config >>--with-proj \ >>--with-threads \ >>--with-ogr \ >>--with-gd=/usr/local/gd-2.0.33 \ >>--with-gdal=/usr/local/bin/gdal-config \ >>--with-png \ >>--with-php=/usr/local/php-5.0.4/ \ >>--with-java=/usr/local/jdk1.5.0_03/ >> >>I have been using phpmapscript. But I am curious about java. >>Can you say that developing and using mapserver with java is better >> than php ? >> >>regards >> >> >> >>______________________________________ >>XamimeLT - installed on mailserver for domain @deprem.gov.tr >>Queries to: postmaster at deprem.gov.tr >>______________________________________ >>The views and opinions expressed in this e-mail message are the sender's own >>and do not necessarily represent the views and the opinions of Earthquake Research Dept. >>of General Directorate of Disaster Affairs. >> >>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. >>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. >> >> >> >> > > > > > hello with make interface, it produced so many *.java files in ../mapscript/java/edu/umn/gis/mapscript/ directory. not a compiled library as in phpmapscript.so ? Is there anything as next step ? regards Ahmet ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From umberto.nicoletti at GMAIL.COM Mon Jun 20 03:56:40 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 20 Jun 2005 12:56:40 +0200 Subject: mapscript/java errors In-Reply-To: <42B6A07D.5080307@deprem.gov.tr> Message-ID: you should find a libmapscript.so in mapscript/java. Try to run the tests with make test Regards, Umberto On 6/20/05, orkun wrote: > Umberto Nicoletti wrote: > > >You need to compile mapserver first and then cd to mapscript/java. You > >should try to run > > > >make interface > > > >before running make in mapscript/java as it will generate/update the > >swig-generated interface files. You need a very recent version of swig > >to run make interface. > > > >I have not tried mapserver 4.6 yet so there might be unresolved issues > >with java maspcript that I am not aware of. > > > >HTH, > >Umberto > > > >On 6/20/05, orkun wrote: > > > > > > > > > >>thank you for your interest: > >> > >>- linux debian testing > >>- mapserver-4.6.0-beta1 > >>- I changed mapscript/java then entered make and the nightmare started. > >> > >>here is my config > >>--with-proj \ > >>--with-threads \ > >>--with-ogr \ > >>--with-gd=/usr/local/gd-2.0.33 \ > >>--with-gdal=/usr/local/bin/gdal-config \ > >>--with-png \ > >>--with-php=/usr/local/php-5.0.4/ \ > >>--with-java=/usr/local/jdk1.5.0_03/ > >> > >>I have been using phpmapscript. But I am curious about java. > >>Can you say that developing and using mapserver with java is better > >> than php ? > >> > >>regards > >> > >> > >> > >>______________________________________ > >>XamimeLT - installed on mailserver for domain @deprem.gov.tr > >>Queries to: postmaster at deprem.gov.tr > >>______________________________________ > >>The views and opinions expressed in this e-mail message are the sender's own > >>and do not necessarily represent the views and the opinions of Earthquake Research Dept. > >>of General Directorate of Disaster Affairs. > >> > >>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > >>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > >> > >> > >> > >> > > > > > > > > > > > hello > > with make interface, it produced so many *.java files in > > ../mapscript/java/edu/umn/gis/mapscript/ directory. > > not a compiled library as in phpmapscript.so ? > > Is there anything as next step ? > > regards > > Ahmet > > > > > > > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > > From manfred.zerndl at BVV.BAYERN.DE Mon Jun 20 04:42:32 2005 From: manfred.zerndl at BVV.BAYERN.DE (Manfred Zerndl) Date: Mon, 20 Jun 2005 06:42:32 -0500 Subject: How can I use SVG-Features of Mapserver 4.6 Message-ID: Hey list, Mapserver comes with SVG support since version 4.6. I guess it is only possible for a vector layer. How can I use it? Do I have to define a special Layer or outputfomat in the mapfile? Where can i find some documentation about that? Thanks, Manfred From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jun 20 04:55:25 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 20 Jun 2005 13:55:25 +0200 Subject: How can I use SVG-Features of Mapserver 4.6 Message-ID: Hi, You have to define an output format for it: IMAGETYPE svg OUTPUTFORMAT NAME svg MIMETYPE "image/svg+xml" DRIVER svg FORMATOPTION "COMPRESSED_OUTPUT=FALSE" FORMATOPTION "FULL_RESOLUTION=TRUE" END See also for docs (especially the attachment to the bug report): http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1281 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Manfred Zerndl 06/20/05 01:42pm >>> Hey list, Mapserver comes with SVG support since version 4.6. I guess it is only possible for a vector layer. How can I use it? Do I have to define a special Layer or outputfomat in the mapfile? Where can i find some documentation about that? Thanks, Manfred From lfilak at MEDINACO.ORG Mon Jun 20 05:39:03 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 20 Jun 2005 08:39:03 -0400 Subject: Perl Mapscript 4.4 Issues Message-ID: The following message was sent by Rob Ellis on Sun, 19 Jun 2005 20:57:19 -0500. > On Mon, 25 Apr 2005 08:18:22 -0400, Lowell Filak > wrote: > > >The following message was sent by Stephen Woodbridge > > on Sun, 24 Apr 2005 23:23:26 -0400. > > > >> Hi all, > >> > >> I'm looking at the SWIGMapScript doc and have run into a few problems. > >> > >> $mapObj->setExtent($minx, $miny, $maxx, $maxy); > >> > >> and throws an error: > >> > >> Can't locate auto/mapscript/mapObj/setExtent.al in @INC (@INC contains: > >> /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 > >> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 > >> /usr/local/lib/site_perl /usr/local/lib/perl/5.8.0 > >> /usr/local/share/perl/5.8.0 .) at index.cgi line 255 > >> > >> Also looking at the document it looks like there is an > >> $layerObj->setExtent(...) which doesn't seem to be correct. > >> > >> The classObj doc says it "Provides access to all class parameters > >> (color, symbol, label, & etc...)." but there is no doc to indicate there > >> is a symbol property, nor is there any of doc/properties for color, > >> overlaycolor, size, overlaysize. I think these were moved to styleObjs > >> so it might be appropriate to comment on that. > > > >Steve, > > > >What version are you using? > >I just double checked and there is most certainly a 'setExtent' for the > >mapObj in the mapscript.pm. > >You are correct on the classObj not. It is an old note that needs to be > >deleted. Sorry for the confusion. > > > >Lowell > > Sorry to take you guys back to something that you've allready sorted out, > but I'm a little confused. I've upgraded to MS4.4.2 but am getting the > following message when trying to use Perl Mapscript, and from the previous > messages it looks as though I might just need to alter mapscript.pm: > > Can't locate auto/mapscript/classObj/swig_styles.al > > Am I right in interpreting the previous emails when I assume that I need to > remove refernces to classObj in mapscript.pm, or am I way off? Rob, I usually see this error after upgrading and trying to reference a member or method that no longer exists. From Tom.Kralidis at EC.GC.CA Mon Jun 20 06:17:57 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 20 Jun 2005 09:17:57 -0400 Subject: SVG as WMS output format Message-ID: Hi, Just wondering if this is currently possible to enable SVG as a GetMap output format when publishing MapServer WMS. Cheers ..Tom From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jun 20 06:25:38 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 20 Jun 2005 15:25:38 +0200 Subject: SVG as WMS output format Message-ID: Tom, there is a bug report for this one, but its status seems to indicate that it is not yet done (target 4.8 release): http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1347 Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Kralidis,Tom [Burlington]" 06/20/05 03:17pm >>> Hi, Just wondering if this is currently possible to enable SVG as a GetMap output format when publishing MapServer WMS. Cheers ...Tom From jerl.simpso at GMAIL.COM Mon Jun 20 06:37:29 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Mon, 20 Jun 2005 08:37:29 -0500 Subject: file size issue In-Reply-To: <20050618011648.3236C1A6590@mail.medinaco.org> Message-ID: That's the same conclusion I came to as well. I thought I could either use the C API or I could use the tile index files. They are all broken up into smaller files. The issue with that is I would have to modify the shp2mysql.pl file so it did not create a new table in the database for each file of the tiling. Thanks again, Jerl > > Jerl, > > I think I may have missed something. If my understanding (from a > conference session today) is correct the problem lies in GEO::Shapelib > itself. It appears that it reads the geometries into an array which > would still mean you would need enough ram to read the entire shapefile. > The only workaround is to use shapelib via C directly instead of through > the perl module. From C you would be able to iterate over each entity. > > Lowell > From cdaily at GMAIL.COM Mon Jun 20 07:26:06 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 20 Jun 2005 09:26:06 -0500 Subject: Adding dynamic points; clicking on point not working In-Reply-To: <2EA11DE4C505014BA2A74175DECAE6BE04EAB6@BCSXTC.knmi.nl> Message-ID: When you're dynamically generating your points, you might try setting the index values with the set() function, like this: $shp->set('index', $i); The member properties aren't always directly accessible, so the set function should be used in php mapscript. Might fix your problem. -Camden From matt at MSILEADS.COM Mon Jun 20 07:28:16 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Mon, 20 Jun 2005 09:28:16 -0500 Subject: Unsupported operand types Message-ID: I really need some help. I posted this late friday afternoon, however I am going to repost it in case anyone who might be able to help me missed it. I am trying to use the queryByAttributes method of the LayerObj class of PHP/Mapscript and I am doing something wrong, because I get the following error: Fatal error: Unsupported operand types in C:\ms4w\apps\test\htdocs\LA.phtml on line 12 I am running in Windows XP professional with: ms4w 1.1 I also get the same error in MacOS X with a custom compiled version of MapSever. The Map File is contains: MAP NAME LA IMAGETYPE PNG SIZE 600 600 IMAGECOLOR 240 240 240 SHAPEPATH "../data" FONTSET ../etc/fonts.txt EXTENT -94.043147 28.925011 -88.817017 33.019457 UNITS METERS WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 0 0 0 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "LA zip code boundaries" TYPE POLYGON STATUS DEFAULT DATA "zt22_d00" LABELITEM "ZCTA" CLASS COLOR 254 0 0 LABEL COLOR 60 60 60 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 TYPE TRUETYPE FONT fritqat SIZE 8 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 5 BUFFER 4 END OUTLINECOLOR 60 60 60 SYMBOL 0 END TEMPLATE "x" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 680 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END My .phtml file contains: draw(); //$image_url=$image->saveWebImage(); $oZipLayer = $map->getLayerByName("LA zip code boundaries"); //Do query $sZip = '12603'; $sAttrName = 'ZCTA'; $qresult = @$oZipLayer->queryByAttributes($sAttrName,$sZip,MS_MULTIPLE); $image = $map->drawQuery(); $image_url = $image->saveWebImage(); $error = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s \n", $error-routine, $error->messaage); $error = $error->next(); } ?> LA Zip Codes

This is an unprojected map of the 5 digit zip code boundries for the state of Louisianna, from the US Census Bureau.

To find the categories for the legend, I used the ogrinfo utility twice. ogrinfo -a -summary zt22_d00.shp let me see what fields were available, and ogrinfo -a zt22_d00.shp|grep SYMBOL|sort -u told me what all of the unique values were so that I could build my CLASS definitions in LA.map.

getNumResults() > 0) echo $oZipLayer->getNumResults()." zips found."; else echo "No zips found." ?> I would appreciate any help or suggestions anyone has to offer. Thanks, Matt From math.parent at GMAIL.COM Mon Jun 20 08:09:08 2005 From: math.parent at GMAIL.COM (Mathieu PARENT) Date: Mon, 20 Jun 2005 17:09:08 +0200 Subject: Musmap 0.9.0-beta Message-ID: Musmap 0.9 is pending now, just some testing is needed to find bugs. You can find beta version at https://sourceforge.net/project/showfiles.php?group_id=114970&package_id=124581&release_id=336416 Please help me to make musmap free of bugs (reportings bugs, feature requests, ...). Musmap is a web mapping interface which has an advanced users/profiles management system. More information at http://musmap.sourceforge.net/ Simple ChangeLog at http://musmap.sourceforge.net/todo/ CVS changelog at http://musmap.sourceforge.net/cvschangelog/cvschangelogbuilder_musmap.html I will put a development version online in some weeks (the actual demo is outdated 0.8.1 version). Mathieu Parent Simple Changelog: New install procedure (easier) SVG output (in the print dialog) Real symbol management (not in the template map file) (RFE #1114571) Date display using client time zone if available Measure tool now draws polygons (SVG for Gecko and VML for IE) Read privileges are now effective: not readable objects are not loaded More complete musmap capabilities description in about.php OGR support for SQL and GetInformationSchema GetInformationSchema supported by Shapefiles, dbf, mysql, postgresql Explorer: Get all table info automaticaly (using GetInformationSchema) Model: adding connections (parent of data_sources) Complete rewrite of the model hierarchy API using collections Explorers: Allow child nodes batch deletion Import ESRI XML metadata for shapefiles (need PHP5 which has DOM extension) Zoom to layer Query results are lost if layer index changes (Bug #1123873) Ability to change parent node -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis at MEGARRY.COM Mon Jun 20 08:21:48 2005 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Mon, 20 Jun 2005 11:21:48 -0400 Subject: Multiple Coordinate Conversion Message-ID: I've been struggling all weekend of getting GIF overlays to work over my GeoTIFF's. It appears that it has been working all along and that I have a different coordinate system causing one image to appear too small. The GeoTIFF world file seems to be in UTM while the GIF's world file is NAD-83.. GeoTIFF World File: 63.822098000000004 0.0 0.0 -63.822098000000004 -440157.48746637430 -17865.997690965814 GIF World File: 0.00931135697798297 0.000000 0.000000 -0.00931135697798297 -86.6107500110973 41.9759656594016 The GIF image does cover the entire TIFF file, only a small portion.. I'm not very familure with coordinate conversion, can someone point me to a source I can learn a bit more to convert the GIF world file over to what the GeoTIFF is using? Or is it possible to specify the coordinate system for the GIF files within my MAP file and maintain a different system for the GeoTIFF's? Please forgive me if my questions sound a bit elementary, but that's the level I'm working on at the moment.. :( Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Jun 20 08:34:00 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 20 Jun 2005 11:34:00 -0400 Subject: Unsupported operand types In-Reply-To: Message-ID: See if you install has shp2img.exe and run shp2img.exe -m /path/to/mapfile -o test.png and see if it reports any errors? you can also load test.png into a browser to see if it generated an image. This will tell you if the mapfile and mapserver are working. If these work, then the problem is probably issues with paths, permissions or php code. -Steve W. Matthew Roberson wrote: > I really need some help. I posted this late friday > afternoon, however I am going to repost it in case > anyone who might be able to help me missed it. > > I am trying to use the queryByAttributes method of > the LayerObj class of PHP/Mapscript and I am doing > something wrong, because I get the following error: > > Fatal error: Unsupported operand types in > C:\ms4w\apps\test\htdocs\LA.phtml on line 12 > > I am running in Windows XP professional with: > > ms4w 1.1 > > I also get the same error in MacOS X with a custom > compiled version of MapSever. > > The Map File is contains: > MAP > NAME LA > IMAGETYPE PNG > SIZE 600 600 > IMAGECOLOR 240 240 240 > SHAPEPATH "../data" > FONTSET ../etc/fonts.txt > EXTENT -94.043147 28.925011 -88.817017 33.019457 > UNITS METERS > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > > LEGEND > STATUS EMBED > POSITION UR > END > > SCALEBAR > TRANSPARENT ON > BACKGROUNDCOLOR 0 0 0 > STATUS EMBED > POSITION LR > STYLE 1 > END > > LAYER > NAME "LA zip code boundaries" > TYPE POLYGON > STATUS DEFAULT > DATA "zt22_d00" > LABELITEM "ZCTA" > CLASS > COLOR 254 0 0 > LABEL > COLOR 60 60 60 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 1 1 > TYPE TRUETYPE > FONT fritqat > SIZE 8 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 5 > BUFFER 4 > END > OUTLINECOLOR 60 60 60 > SYMBOL 0 > END > TEMPLATE "x" > END > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 10 680 > END > TEXT 'Made with Mapserver.' > END > CLASS > LABEL > TYPE BITMAP > POSITION CR > COLOR 0 0 0 > END > END > END > > > END > > My .phtml file contains: > if (!extension_loaded("MapScript")) > { > dl("php_mapscript_44.dll"); > } > if (!extension_loaded("dbase")) > { > dl("php_dbase.dll"); > } > > $map_file="./LA.map"; > $map = ms_newMapObj($map_file); > //$image=$map->draw(); > //$image_url=$image->saveWebImage(); > > > > $oZipLayer = $map->getLayerByName("LA zip code > boundaries"); > > //Do query > $sZip = '12603'; > $sAttrName = 'ZCTA'; > $qresult = > @$oZipLayer->queryByAttributes($sAttrName,$sZip,MS_MULTIPLE); > $image = $map->drawQuery(); > $image_url = $image->saveWebImage(); > $error = ms_GetErrorObj(); > while($error && $error->code != MS_NOERR) > { > printf("Error in %s: %s \n", $error-routine, > $error->messaage); > $error = $error->next(); > } > ?> > > > LA Zip Codes > > > >

This is an unprojected map of the 5 digit zip code > boundries for the state of Louisianna, > from the href="http://www.census.gov/geo/www/cob/z32000.html"> > US Census Bureau.

>

To find the categories for the legend, I used the > ogrinfo utility twice. > ogrinfo -a -summary zt22_d00.shp let me > see what fields were available, and > ogrinfo -a zt22_d00.shp|grep SYMBOL|sort > -u told me what all of the unique values were > so that > I could build my CLASS definitions in > LA.map. >

> > > print_r($oZipLayer); > print_r($qresult); > if ($oZipLayer->getNumResults() > 0) > echo $oZipLayer->getNumResults()." zips found."; > else > echo "No zips found." > > ?> > > I would appreciate any help or suggestions anyone has > to offer. > > Thanks, > > Matt > From fwarmerdam at GMAIL.COM Mon Jun 20 08:47:02 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 20 Jun 2005 11:47:02 -0400 Subject: [Gdal-dev] Adding Projection to ECW files ? In-Reply-To: Message-ID: On 6/19/05, Bill Binko wrote: > > Hi everyone: I hope everyone enjoyed the conference. If anyone has time > to look at this, I'd really appreciate it. I really would like to be busy > making summary layers, but am stuck at this point. Bill, Sorry for the delay in responding. As always there are various ways of approaching this. Ideally at the point you were generating the ECW file you would have set the coordinate system. Something like this (assuming WGS84): gdal_translate -of ECW -a_srs '+proj=utm +zone=17 +datum=WGS84' in.tif out.ecw Assuming you don't want to regenerate the ECWs you should be able to push the georeferencing into the PAM file (.aux.xml) with a small python script. I had intended to provide an example of this, but find that I have another bug to pursue before I can complete this, but I had better send this email before I reboot. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From math.parent at GMAIL.COM Mon Jun 20 09:21:05 2005 From: math.parent at GMAIL.COM (Mathieu PARENT) Date: Mon, 20 Jun 2005 18:21:05 +0200 Subject: Musmap 0.9.0-beta In-Reply-To: <960738410506200809682a77bb@mail.gmail.com> Message-ID: The musmap demo is online: http://mathieu.parent.hd.free.fr/musmap/latest/ 2005/6/20, Mathieu PARENT : > > Musmap 0.9 is pending now, just some testing is needed to find bugs. > You can find beta version at > https://sourceforge.net/project/showfiles.php?group_id=114970&package_id=124581&release_id=336416 > > Please help me to make musmap free of bugs (reportings bugs, feature > requests, ...). > > Musmap is a web mapping interface which has an advanced users/profiles > management system. > More information at http://musmap.sourceforge.net/ > > Simple ChangeLog at http://musmap.sourceforge.net/todo/ > CVS changelog at > http://musmap.sourceforge.net/cvschangelog/cvschangelogbuilder_musmap.html > > I will put a development version online in some weeks (the actual demo is > outdated 0.8.1 version). > > Mathieu Parent > > Simple Changelog: > New install procedure (easier) > SVG output (in the print dialog) > Real symbol management (not in the template map file) (RFE #1114571) > Date display using client time zone if available > Measure tool now draws polygons (SVG for Gecko and VML for IE) > Read privileges are now effective: not readable objects are not loaded > More complete musmap capabilities description in about.php > OGR support for SQL and GetInformationSchema > GetInformationSchema supported by Shapefiles, dbf, mysql, postgresql > Explorer: Get all table info automaticaly (using GetInformationSchema) > Model: adding connections (parent of data_sources) > Complete rewrite of the model hierarchy API using collections > Explorers: Allow child nodes batch deletion > Import ESRI XML metadata for shapefiles (need PHP5 which has DOM > extension) > Zoom to layer > Query results are lost if layer index changes (Bug #1123873) > Ability to change parent node > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at BINKO.NET Mon Jun 20 10:09:06 2005 From: bill at BINKO.NET (Bill Binko) Date: Mon, 20 Jun 2005 13:09:06 -0400 Subject: [Gdal-dev] Adding Projection to ECW files ? In-Reply-To: <931f8ea905062008472d1bad89@mail.gmail.com> Message-ID: On Mon, 20 Jun 2005, Frank Warmerdam wrote: > On 6/19/05, Bill Binko wrote: > > > > Hi everyone: I hope everyone enjoyed the conference. If anyone has time > > to look at this, I'd really appreciate it. I really would like to be busy > > making summary layers, but am stuck at this point. > > Bill, > > Sorry for the delay in responding. As always there are various > ways of approaching this. Ideally at the point you were > generating the ECW file you would have set the coordinate system. > Something like this (assuming WGS84): > > gdal_translate -of ECW -a_srs '+proj=utm +zone=17 +datum=WGS84' in.tif out.ecw > I knew you were busy with the conference: this is important to me, but not critical. Unfortunately, I got the ECWs rather than the TIFFs, so I can't re-compress them. I considered using gdal_translate from ECW to ECW, but was worried that I might lose fidelity. > Assuming you don't want to regenerate the ECWs you should be able to push > the georeferencing into the PAM file (.aux.xml) with a small python script. > Is that PAM file documented anywhere? I can write a script to edit XML if I know what I'm writing to. > I had intended to provide an example of this, but find that I have another bug > to pursue before I can complete this, but I had better send this email before > I reboot. Understood: I appreciate any help you can give. Thanks, Bill From fwarmerdam at GMAIL.COM Mon Jun 20 10:37:01 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 20 Jun 2005 13:37:01 -0400 Subject: [Gdal-dev] Adding Projection to ECW files ? In-Reply-To: Message-ID: On 6/20/05, Bill Binko wrote: > I knew you were busy with the conference: this is important to me, but not > critical. Unfortunately, I got the ECWs rather than the TIFFs, so I can't > re-compress them. I considered using gdal_translate from ECW to ECW, but > was worried that I might lose fidelity. Bill, Indeed, recompressing would be somewhat lossy. > > Assuming you don't want to regenerate the ECWs you should be able to push > > the georeferencing into the PAM file (.aux.xml) with a small python script. > > > > Is that PAM file documented anywhere? I can write a script to edit XML if > I know what I'm writing to. It is essentially a subset of the VRT format, so the VRT docs might help. To set the SRS, just edit it add an +proj=utm +zone=17 +datum=WGS84 node as a child of the . A minimal file might look like: abc.ecw.aux.xml: +proj=utm +zone=17 +datum=WGS84 Any followup likely ought to stay on the gdal-dev list. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From wendy_arbuckle at YAHOO.COM Mon Jun 20 10:43:46 2005 From: wendy_arbuckle at YAHOO.COM (Wendy Arbuckle) Date: Mon, 20 Jun 2005 12:43:46 -0500 Subject: sld external graphic Message-ID: I am having a hard time getting my external graphic to work Is it possible to see the ?.map? code that is used to go along with the sld example that you give "http://mapserver.gis.umn.edu/doc44/sld-howto.html" ? The following are examples of valid requests using the PointSymbolizer: ? filled mark symbol: sld / full request ? default settings (square, size 6, color 128/128/128): sld / full request ? external symbol: sld / full request ****** it would be a great help to me thnx so much From tim.reed at BAESYSTEMS.COM Mon Jun 20 11:19:00 2005 From: tim.reed at BAESYSTEMS.COM (Timothy Reed) Date: Mon, 20 Jun 2005 14:19:00 -0400 Subject: antialias crash Message-ID: I am having an issue when I turn antialias'ing on in my map file. If I am using a modified version of the mapserver demo I get an internal server error, if I use a WMS client no image is returned. If I take out the antialias everything works like a champ! Any ideas? TIA, Tim ./mapserv-4.6 -v MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MAP # # Start of map file # NAME DEMO2 STATUS ON SIZE 1000 500 EXTENT -179 -89 179 89 UNITS DD SHAPEPATH "data" IMAGECOLOR 0 0 153 DEBUG ON PROJECTION "ellps=GRS80" "datum=WGS84" "init=epsg:4326" END #OUTPUTFORMAT # NAME jpeg # DRIVER "GD/JPEG" # # quality setting: 0 is minimum quality, 100 is maximum quality # FORMATOPTION QUALITY=100 # # data format # MIMETYPE "image/jpeg" # # currently, there is no real grayscale jpeg output available # IMAGEMODE RGB # EXTENSION "jpg" #END OUTPUTFORMAT NAME png DRIVER "GD/PNG" # data format MIMETYPE "image/png" # currently, there is no real grayscale jpeg output available IMAGEMODE RGBA EXTENSION "png" END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME "cartoline" TYPE cartoline FILLED TRUE LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 1 # STYLE 10 5 END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER demo_header.html TEMPLATE demo2.html FOOTER demo_footer.html # MINSCALE 500000 IMAGEPATH "/usr/local/apache2/htdocs/tmp/" IMAGEURL "/tmp/" LOG "mapserver.log" METADATA WMS_TITLE "Mapserver Demo for Q2" WMS_ONLINERESOURCE "http://boris:8080/cgi-bin/q2-mapserv?" WMS_SRS "epsg:4326" WMS_ABSTRACT "Testing MapServer capabilities for use within Q2" END END LEGEND KEYSIZE 18 12 IMAGECOLOR 211 211 211 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE data/land_shallow_topo_120.png EXTENT -180 -90 180 90 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END SCALEBAR TRANSPARENT OFF COLOR 0 0 0 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 STATUS ON POSITION LR STYLE 1 END ##################################### # LAYER: Low-resolution Map of the World ##################################### LAYER NAME full_world GROUP background STATUS OFF MINSCALE 50000000 DATA "land_shallow_topo_full.png" TYPE RASTER METADATA WMS_TITLE "World Backdrop" WMS_SRS "EPSG:4326" END END ##################################### # LAYER: Medium-resolution Map of the World ##################################### LAYER NAME medium_world GROUP background MAXSCALE 50000000 MINSCALE 5000000 STATUS OFF TILEINDEX "tindex_06-17-05.shp" TILEITEM "Location" TYPE RASTER METADATA WMS_TITLE "World Backdrop" WMS_SRS "EPSG:4326" END END ##################################### # LAYER: HIGH-res Map of the World ##################################### LAYER NAME small_world GROUP background MAXSCALE 5000000 MINSCALE 500000 STATUS OFF TILEINDEX "world2.shp" TILEITEM "Location" TYPE RASTER METADATA WMS_TITLE "World Backdrop" WMS_SRS "EPSG:4326" END END ##################################### # LAYER: Filled in Polygon Map of the World ##################################### LAYER NAME world_background GROUP background DATA "World_countries_shp" TYPE POLYGON STATUS OFF MAXSCALE 500000 CLASS NAME 'World Background' COLOR 0 102 0 SIZE 7 END METADATA WMS_TITLE "World Backdrop" WMS_SRS "EPSG:4326" END END ##################################### # LAYER: 10 Grid Lines ##################################### LAYER NAME grid3 GROUP gridlines METADATA DESCRIPTION "Grid" END TYPE LINE STATUS ON MINSCALE 100000000 CLASS NAME "Grid" COLOR 0 0 0 LABEL COLOR 255 255 255 TYPE BITMAP SIZE SMALL POSITION AUTO PARTIALS FALSE BUFFER 5 END END PROJECTION "init=epsg:4326" END GRID LABELFORMAT DDMM MINARCS 10 MININTERVAL 10 MINSUBDIVIDE 20 END END ##################################### # LAYER: 4 Grid Lines ##################################### LAYER NAME grid2 GROUP gridlines METADATA DESCRIPTION "Grid" END TYPE LINE STATUS ON MAXSCALE 100000000 MINSCALE 5000000 CLASS NAME "Grid" COLOR 0 0 0 LABEL COLOR 255 255 255 TYPE BITMAP SIZE SMALL POSITION AUTO PARTIALS FALSE BUFFER 5 END END PROJECTION "init=epsg:4326" END GRID LABELFORMAT DDMM MINARCS 4 MININTERVAL 4 MINSUBDIVIDE 4 END END ##################################### # LAYER: 1 Grid Lines ##################################### LAYER NAME grid1 GROUP gridlines METADATA DESCRIPTION "Grid" END TYPE LINE STATUS ON MAXSCALE 5000000 CLASS NAME "Grid" COLOR 0 0 0 LABEL COLOR 255 255 255 TYPE BITMAP SIZE SMALL POSITION AUTO PARTIALS FALSE BUFFER 5 END END PROJECTION "init=epsg:4326" END GRID LABELFORMAT DDMM MINARCS 1 MININTERVAL 1 MINSUBDIVIDE 1 END END ##################################### # LAYER: Road Lines ##################################### LAYER NAME roads_line GROUP roads TYPE LINE DATA "the_geom from roads" CONNECTION "user=reed dbname=Q2MAPS host=localhost port=5432" CONNECTIONTYPE postgis STATUS OFF CLASSITEM "name" CLASS NAME 'Interstate Highway' EXPRESSION /^Interstate/ MAXSCALE 19000000 STYLE SYMBOL 'cartoline' ANTIALIAS TRUE COLOR 165 42 42 SIZE 4 END STYLE SYMBOL 'cartoline' # ANTIALIAS TRUE COLOR 255 165 0 SIZE 2 END TEMPLATE "road.html" END CLASS NAME 'US Route' EXPRESSION /^US/ MAXSCALE 7500000 STYLE SYMBOL 'cartoline' # ANTIALIAS TRUE COLOR 240 255 255 SIZE 2 END TEMPLATE "road.html" END CLASS NAME 'State Route' EXPRESSION /^State/ MAXSCALE 2500000 STYLE SYMBOL 'cartoline' # ANTIALIAS TRUE COLOR 255 255 0 SIZE 1 END TEMPLATE "road.html" END CLASS NAME 'ROADS' MAXSCALE 1500000 STYLE COLOR 0 0 0 SIZE 8 END TEMPLATE "road.html" END TOLERANCE 10 PROJECTION "proj=latlong" "ellps=GRS80" "datum=WGS84" END HEADER "road_header.html" FOOTER "cities_footer.html" METADATA WMS_TITLE "Roads" WMS_SRS "EPSG:4326" END END ##################################### # LAYER: Road Symbols ##################################### LAYER NAME roads_symbols TYPE ANNOTATION DATA "the_geom from roads" CONNECTION "user=reed dbname=Q2MAPS host=localhost port=5432" CONNECTIONTYPE postgis STATUS OFF #Grab all Routes that do not have commas in the name FILTER "name !~* ','" LABELITEM "road_num" CLASSITEM "name" CLASS NAME 'Interstate Symbol' EXPRESSION /^Interstate/ COLOR 255 255 255 OUTLINECOLOR 255 255 255 SYMBOL 'symbols/interstate.gif' LABEL MINFEATURESIZE AUTO MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END CLASS NAME 'US Route Symbol' EXPRESSION /^US/ MAXSCALE 7500000 COLOR 0 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'symbols/ushwy.gif' LABEL MINFEATURESIZE AUTO MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS NAME 'State Route Symbol' EXPRESSION /^State/ MAXSCALE 1750000 COLOR 0 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'symbols/sthwy.gif' LABEL MINFEATURESIZE AUTO MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END ##################################### # LAYER: Road Labels ##################################### LAYER NAME roads_label TYPE ANNOTATION DATA "the_geom from roads" CONNECTION "user=reed dbname=Q2MAPS host=localhost port=5432" CONNECTIONTYPE postgis STATUS OFF LABELMAXSCALE 1000000 LABELITEM "name" CLASSITEM "name" CLASS COLOR 255 255 255 LABEL COLOR 255 255 255 TYPE BITMAP SIZE MEDIUM POSITION AUTO PARTIALS FALSE BUFFER 2 END END METADATA WMS_TITLE "Road Names" END END ##################################### # LAYER: City Labels ##################################### LAYER NAME cities_label TYPE ANNOTATION DATA "the_geom from cities" CONNECTION "user=reed dbname=Q2MAPS host=localhost port=5432" CONNECTIONTYPE postgis STATUS OFF LABELITEM "name" CLASSITEM "name" CLASS EXPRESSION ([pop_2000] > 250000 ) COLOR 255 255 255 LABEL COLOR 255 255 255 # BACKGROUNDCOLOR 211 211 211 # BACKGROUNDSHADOWCOLOR 211 211 211 # BACKGROUNDSHADOWSIZE 2 2 # ANTIALIAS TRUE TYPE BITMAP SIZE MEDIUM POSITION AUTO PARTIALS FALSE BUFFER 2 END END CLASS EXPRESSION ([pop_2000] > 30000 ) MAXSCALE 8000000 COLOR 255 255 255 LABEL COLOR 255 255 255 TYPE BITMAP SIZE MEDIUM POSITION AUTO PARTIALS FALSE BUFFER 2 END END CLASS MAXSCALE 2000000 EXPRESSION ([pop_2000] > 10000 ) COLOR 255 255 255 LABEL COLOR 255 255 255 TYPE BITMAP SIZE MEDIUM POSITION AUTO PARTIALS FALSE BUFFER 2 END END CLASS MAXSCALE 600000 EXPRESSION ([pop_2000] > 1000 ) COLOR 255 255 255 LABEL COLOR 255 255 255 TYPE BITMAP SIZE MEDIUM POSITION AUTO PARTIALS FALSE BUFFER 2 END END METADATA WMS_TITLE "City Names" END END ##################################### # LAYER: Cities ##################################### LAYER NAME cities TYPE POINT DATA "the_geom from cities" CONNECTION "user=reed dbname=Q2MAPS host=localhost port=5432" CONNECTIONTYPE postgis STATUS OFF CLASSITEM "name" CLASS SYMBOL 'circle' NAME 'CITIES' SIZE 3 COLOR 204 255 0 TEMPLATE "cities.html" EXPRESSION ([pop_2000] > 250000) END CLASS MAXSCALE 8000000 SYMBOL 'circle' SIZE 3 COLOR 204 255 0 TEMPLATE "cities.html" EXPRESSION ([pop_2000] > 30000) END CLASS MAXSCALE 2000000 SYMBOL 'circle' SIZE 3 COLOR 204 255 0 TEMPLATE "cities.html" EXPRESSION ([pop_2000] > 10000) END CLASS MAXSCALE 600000 SYMBOL 'circle' SIZE 3 COLOR 204 255 0 TEMPLATE "cities.html" END TOLERANCE 10 PROJECTION "proj=latlong" "ellps=GRS80" "datum=WGS84" END HEADER "cities_header.html" FOOTER "cities_footer.html" DUMP TRUE # allow GML export METADATA WMS_TITLE "Cities" WMS_SRS "EPSG:4326" END END ##################################### # LAYER: City Query ##################################### LAYER NAME cities_query GROUP cities TYPE QUERY DATA "the_geom from cities" CONNECTION "user=reed dbname=Q2MAPS host=localhost port=5432" CONNECTIONTYPE postgis STATUS OFF CLASS SYMBOL 'circle' SIZE 3 COLOR 204 255 0 TEMPLATE "cities.html" END TOLERANCE 10 PROJECTION "proj=latlong" "ellps=GRS80" "datum=WGS84" END HEADER "cities_header.html" FOOTER "cities_footer.html" DUMP TRUE # allow GML export METADATA WMS_TITLE "Cities Query" WMS_SRS "EPSG:4326" END END ##################################### # LAYER: State outline ##################################### LAYER NAME states TYPE LINE DATA statesp020 STATUS ON CLASS NAME 'STATES' COLOR 102 51 255 SIZE 7 END PROJECTION "proj=latlong" "ellps=GRS80" "datum=WGS84" END METADATA WMS_TITLE "State lines" WMS_SRS "EPSG:4326" END END ##################################### # LAYER: World Countries outline ##################################### LAYER NAME WorldGen_Outline DATA "World_countries_shp" TYPE LINE STATUS ON CLASS NAME 'WorldGen_Outline' COLOR 255 0 0 SIZE 7 END METADATA WMS_TITLE "World Countries" WMS_SRS "EPSG:4326" END END EN -- Timothy Reed Software Engineer BAE Systems - National Security Solutions 428 Phoenix Drive Griffiss Business & Technology Park Rome, NY 13441 Phone: (315)838-2284 Email: tim.reed at baesystems.com "I reject your reality, and substitute my own" - Adam Savage From rjames57 at YAHOO.COM Mon Jun 20 11:50:37 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Mon, 20 Jun 2005 11:50:37 -0700 Subject: Graticule not working Message-ID: To answer my own question for the archives: I am thinking that the format of the map file changed a bit in the latest version, it now requires LABELFORMAT "DDMM" whereas the old version would use it as a default but not require it. Randy --- Randy James wrote: > Hi all > > has anyone seen this before I had a working graticule grid and than it stopped > giving me the correct labels and started putting out things like: > > 42e+05 > > I cannot remember changing anything in the mapfile, but upgraded to mapserver > version nightly of June 06, 2005. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com From Robin.Ellis at NRM.QLD.GOV.AU Mon Jun 20 15:38:54 2005 From: Robin.Ellis at NRM.QLD.GOV.AU (Ellis Robin (Bundaberg)) Date: Tue, 21 Jun 2005 08:38:54 +1000 Subject: Perl Mapscript 4.4 Issues Message-ID: Thanks for all the assistance thus far. Is there a script available that outputs the version & associated compilation of Perl Mapscript being hit by different processes? I'm getting Perl Mapscript working OK straight through a browser and Apache cgi, but it's my ArcIMS Emulation stuff giving me the error outlined below. I'm just wondering if somehow I've got processes pointing at 2 different installations. Thanks Rob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Lowell Filak Sent: Monday, 20 June 2005 10:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Perl Mapscript 4.4 Issues The following message was sent by Rob Ellis on Sun, 19 Jun 2005 20:57:19 -0500. > On Mon, 25 Apr 2005 08:18:22 -0400, Lowell Filak > wrote: > > >The following message was sent by Stephen Woodbridge > > on Sun, 24 Apr 2005 23:23:26 -0400. > > > >> Hi all, > >> > >> I'm looking at the SWIGMapScript doc and have run into a few problems. > >> > >> $mapObj->setExtent($minx, $miny, $maxx, $maxy); > >> > >> and throws an error: > >> > >> Can't locate auto/mapscript/mapObj/setExtent.al in @INC (@INC contains: > >> /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 > >> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 > >> /usr/local/lib/site_perl /usr/local/lib/perl/5.8.0 > >> /usr/local/share/perl/5.8.0 .) at index.cgi line 255 > >> > >> Also looking at the document it looks like there is an > >> $layerObj->setExtent(...) which doesn't seem to be correct. > >> > >> The classObj doc says it "Provides access to all class parameters > >> (color, symbol, label, & etc...)." but there is no doc to indicate there > >> is a symbol property, nor is there any of doc/properties for color, > >> overlaycolor, size, overlaysize. I think these were moved to styleObjs > >> so it might be appropriate to comment on that. > > > >Steve, > > > >What version are you using? > >I just double checked and there is most certainly a 'setExtent' for the > >mapObj in the mapscript.pm. > >You are correct on the classObj not. It is an old note that needs to be > >deleted. Sorry for the confusion. > > > >Lowell > > Sorry to take you guys back to something that you've allready sorted out, > but I'm a little confused. I've upgraded to MS4.4.2 but am getting the > following message when trying to use Perl Mapscript, and from the previous > messages it looks as though I might just need to alter mapscript.pm: > > Can't locate auto/mapscript/classObj/swig_styles.al > > Am I right in interpreting the previous emails when I assume that I need to > remove refernces to classObj in mapscript.pm, or am I way off? Rob, I usually see this error after upgrading and trying to reference a member or method that no longer exists. From bagrios at HATFIELDGROUP.COM Mon Jun 20 17:16:35 2005 From: bagrios at HATFIELDGROUP.COM (BA) Date: Mon, 20 Jun 2005 19:16:35 -0500 Subject: Printing with JavaScript Message-ID: Does anyone have any ideas or code that will allow me to print the map, legend, and overview map using JavaScript. I do not know Mapserver or JavaScript well very well (I know a little Java that is why I chose JS). I am using the itasca demo provided by mapserver to built my application. Any ideas are much appreciated. From jacob.delfos at MAUNSELL.COM Mon Jun 20 17:45:42 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 21 Jun 2005 08:45:42 +0800 Subject: Unsupported operand types Message-ID: Matthew, The error you gets occurs when loading the mapfile, so that is where the problem probably is. I noticed that your fontset does not have quotes around the value. I just tested that, and for me that prevented it from loading. So this line: FONTSET ../etc/fonts.txt must be FONTSET "../etc/fonts.txt" regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Matthew Roberson Sent: 20 June 2005 22:28 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Unsupported operand types I really need some help. I posted this late friday afternoon, however I am going to repost it in case anyone who might be able to help me missed it. I am trying to use the queryByAttributes method of the LayerObj class of PHP/Mapscript and I am doing something wrong, because I get the following error: Fatal error: Unsupported operand types in C:\ms4w\apps\test\htdocs\LA.phtml on line 12 I am running in Windows XP professional with: ms4w 1.1 I also get the same error in MacOS X with a custom compiled version of MapSever. The Map File is contains: MAP NAME LA IMAGETYPE PNG SIZE 600 600 IMAGECOLOR 240 240 240 SHAPEPATH "../data" FONTSET ../etc/fonts.txt EXTENT -94.043147 28.925011 -88.817017 33.019457 UNITS METERS WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 0 0 0 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "LA zip code boundaries" TYPE POLYGON STATUS DEFAULT DATA "zt22_d00" LABELITEM "ZCTA" CLASS COLOR 254 0 0 LABEL COLOR 60 60 60 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 TYPE TRUETYPE FONT fritqat SIZE 8 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 5 BUFFER 4 END OUTLINECOLOR 60 60 60 SYMBOL 0 END TEMPLATE "x" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 680 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From bino at INDOAKSES-ONLINE.COM Mon Jun 20 17:55:20 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Tue, 21 Jun 2005 07:55:20 +0700 Subject: build a SymbolSet file Message-ID: Hi All , Is there any docs on how to build a SymbolSet file. I have some bmp icon-size file that I want to use it as Symbol Regards -bino- From woodbri at SWOODBRIDGE.COM Mon Jun 20 19:18:39 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 20 Jun 2005 22:18:39 -0400 Subject: build a SymbolSet file In-Reply-To: <005b01c575fb$e5dc5370$0300a8c0@indoaksesbno> Message-ID: bino_oetomo wrote: > Hi All , > Is there any docs on how to build a SymbolSet file. > I have some bmp icon-size file that I want to use it as Symbol > > Regards > -bino- > You will have to convert the BMP images to png or gif. Try something like this: # start of symbol.sym Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END Symbol Name 'dashed-circle' Type ELLIPSE Filled TRUE Points 1 1 END Style 5 5 END END Symbol Name 'target-1' Type PIXMAP Image '/data/mdata/symbols/markers/target-1.png' END # end of symbol.sym -Steve W. From umberto.nicoletti at GMAIL.COM Tue Jun 21 01:51:28 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Jun 2005 10:51:28 +0200 Subject: java mapscript error In-Reply-To: <42B6B6F2.8050505@deprem.gov.tr> Message-ID: Note: I have just downloaded mapserver 4.6 and it compiles fine and tests run out of the box, so it is not a problem with mapserver. Can you confirm there is a libmapscript.so in mapscript/java ? Post the java version ( java -version ) output. Regards, Umberto On 6/20/05, orkun wrote: > (sorry if it is sent twice) > thank you again > > $ make test > javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java > java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. > DumpShp ../../tests/point.shp > java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > make: *** [test] Error 255 > > regards > > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > > From temiz at DEPREM.GOV.TR Mon Jun 20 05:59:19 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 20 Jun 2005 15:59:19 +0300 Subject: (no subject) Message-ID: ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From temiz at DEPREM.GOV.TR Mon Jun 20 05:30:42 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 20 Jun 2005 15:30:42 +0300 Subject: java mapscript error Message-ID: (sorry if it is sent twice) thank you again $ make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp ../../tests/point.shp java.lang.UnsatisfiedLinkError: no mapscript in java.library.path make: *** [test] Error 255 regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From temiz at DEPREM.GOV.TR Mon Jun 20 04:56:52 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 20 Jun 2005 14:56:52 +0300 Subject: mapscript/java errors In-Reply-To: <75b4b93e05062003567a6c1ff2@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: >you should find a libmapscript.so in mapscript/java. > >Try to run the tests with > >make test > >Regards, >Umberto > >On 6/20/05, orkun wrote: > > >>Umberto Nicoletti wrote: >> >> >> >>>You need to compile mapserver first and then cd to mapscript/java. You >>>should try to run >>> >>>make interface >>> >>>before running make in mapscript/java as it will generate/update the >>>swig-generated interface files. You need a very recent version of swig >>>to run make interface. >>> >>>I have not tried mapserver 4.6 yet so there might be unresolved issues >>>with java maspcript that I am not aware of. >>> >>>HTH, >>>Umberto >>> >>>On 6/20/05, orkun wrote: >>> >>> >>> >>> >>> >>> >>>>thank you for your interest: >>>> >>>>- linux debian testing >>>>- mapserver-4.6.0-beta1 >>>>- I changed mapscript/java then entered make and the nightmare started. >>>> >>>>here is my config >>>>--with-proj \ >>>>--with-threads \ >>>>--with-ogr \ >>>>--with-gd=/usr/local/gd-2.0.33 \ >>>>--with-gdal=/usr/local/bin/gdal-config \ >>>>--with-png \ >>>>--with-php=/usr/local/php-5.0.4/ \ >>>>--with-java=/usr/local/jdk1.5.0_03/ >>>> >>>>I have been using phpmapscript. But I am curious about java. >>>>Can you say that developing and using mapserver with java is better >>>>than php ? >>>> >>>>regards >>>> >>>> >>>> >>>>______________________________________ >>>>XamimeLT - installed on mailserver for domain @deprem.gov.tr >>>>Queries to: postmaster at deprem.gov.tr >>>>______________________________________ >>>>The views and opinions expressed in this e-mail message are the sender's own >>>>and do not necessarily represent the views and the opinions of Earthquake Research Dept. >>>>of General Directorate of Disaster Affairs. >>>> >>>>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. >>>>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>hello >> >>with make interface, it produced so many *.java files in >> >>../mapscript/java/edu/umn/gis/mapscript/ directory. >> >>not a compiled library as in phpmapscript.so ? >> >>Is there anything as next step ? >> >>regards >> >>Ahmet >> >> >> >> >> >> >> >>______________________________________ >>XamimeLT - installed on mailserver for domain @deprem.gov.tr >>Queries to: postmaster at deprem.gov.tr >>______________________________________ >>The views and opinions expressed in this e-mail message are the sender's own >>and do not necessarily represent the views and the opinions of Earthquake Research Dept. >>of General Directorate of Disaster Affairs. >> >>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. >>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. >> >> >> >> > > > > > thank you again $ make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp ../../tests/point.shp java.lang.UnsatisfiedLinkError: no mapscript in java.library.path make: *** [test] Error 255 regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From margottid at COMUNE.LUGO.RA.IT Tue Jun 21 03:00:08 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 21 Jun 2005 12:00:08 +0200 Subject: queryByFeatures: VERY URGENT!!! Message-ID: Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From temiz at DEPREM.GOV.TR Tue Jun 21 03:15:09 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 21 Jun 2005 13:15:09 +0300 Subject: java mapscript error In-Reply-To: <75b4b93e05062101513dbb06ca@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: >Note: I have just downloaded mapserver 4.6 and it compiles fine and >tests run out of the box, so it is not a problem with mapserver. > >Can you confirm there is a libmapscript.so in mapscript/java ? >Post the java version ( java -version ) output. > >Regards, >Umberto > >On 6/20/05, orkun wrote: > > >>(sorry if it is sent twice) >>thank you again >> >>$ make test >>javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java >>java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. >>DumpShp ../../tests/point.shp >>java.lang.UnsatisfiedLinkError: no mapscript in java.library.path >>make: *** [test] Error 255 >> >>regards >> >> >>______________________________________ >>XamimeLT - installed on mailserver for domain @deprem.gov.tr >>Queries to: postmaster at deprem.gov.tr >>______________________________________ >>The views and opinions expressed in this e-mail message are the sender's own >>and do not necessarily represent the views and the opinions of Earthquake Research Dept. >>of General Directorate of Disaster Affairs. >> >>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. >>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. >> >> >> >> > > > > > thank you, there is no libmapscript.so. ~$ java -version java version "1.5.0_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing) Is my configuration which I have previously sent ok ? regards Ahmet ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From umberto.nicoletti at GMAIL.COM Tue Jun 21 03:33:08 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Jun 2005 12:33:08 +0200 Subject: java mapscript error In-Reply-To: <42B7E8AD.2090308@deprem.gov.tr> Message-ID: Very weird... Start again with a fresh copy of mapserver and do the following (in order): ./configure [put your conf options here] make cd mapscript/java make interface make make test If this does not work than there is something wrong with your setup (try a different machine). Regards, Umberto On 6/21/05, orkun wrote: > Umberto Nicoletti wrote: > > >Note: I have just downloaded mapserver 4.6 and it compiles fine and > >tests run out of the box, so it is not a problem with mapserver. > > > >Can you confirm there is a libmapscript.so in mapscript/java ? > >Post the java version ( java -version ) output. > > > >Regards, > >Umberto > > > >On 6/20/05, orkun wrote: > > > > > >>(sorry if it is sent twice) > >>thank you again > >> > >>$ make test > >>javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java > >>java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. > >>DumpShp ../../tests/point.shp > >>java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > >>make: *** [test] Error 255 > >> > >>regards > >> > >> > >>______________________________________ > >>XamimeLT - installed on mailserver for domain @deprem.gov.tr > >>Queries to: postmaster at deprem.gov.tr > >>______________________________________ > >>The views and opinions expressed in this e-mail message are the sender's own > >>and do not necessarily represent the views and the opinions of Earthquake Research Dept. > >>of General Directorate of Disaster Affairs. > >> > >>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > >>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > >> > >> > >> > >> > > > > > > > > > > > thank you, > > there is no libmapscript.so. > > ~$ java -version > java version "1.5.0_03" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) > Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing) > > Is my configuration which I have previously sent ok ? > > regards > Ahmet > > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > > From temiz at DEPREM.GOV.TR Tue Jun 21 04:10:29 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 21 Jun 2005 14:10:29 +0300 Subject: java mapscript error In-Reply-To: <75b4b93e050621033332605016@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: >Very weird... > >Start again with a fresh copy of mapserver and do the following (in order): > >../configure [put your conf options here] >make >cd mapscript/java >make interface >make >make test > >If this does not work than there is something wrong with your setup >(try a different machine). > >Regards, >Umberto > >On 6/21/05, orkun wrote: > > >>Umberto Nicoletti wrote: >> >> >> >>>Note: I have just downloaded mapserver 4.6 and it compiles fine and >>>tests run out of the box, so it is not a problem with mapserver. >>> >>>Can you confirm there is a libmapscript.so in mapscript/java ? >>>Post the java version ( java -version ) output. >>> >>>Regards, >>>Umberto >>> >>>On 6/20/05, orkun wrote: >>> >>> >>> >>> >>>>(sorry if it is sent twice) >>>>thank you again >>>> >>>>$ make test >>>>javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java >>>>java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. >>>>DumpShp ../../tests/point.shp >>>>java.lang.UnsatisfiedLinkError: no mapscript in java.library.path >>>>make: *** [test] Error 255 >>>> >>>>regards >>>> >>>> >>>>______________________________________ >>>>XamimeLT - installed on mailserver for domain @deprem.gov.tr >>>>Queries to: postmaster at deprem.gov.tr >>>>______________________________________ >>>>The views and opinions expressed in this e-mail message are the sender's own >>>>and do not necessarily represent the views and the opinions of Earthquake Research Dept. >>>>of General Directorate of Disaster Affairs. >>>> >>>>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. >>>>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>thank you, >> >>there is no libmapscript.so. >> >>~$ java -version >>java version "1.5.0_03" >>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) >>Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing) >> >>Is my configuration which I have previously sent ok ? >> >>regards >>Ahmet >> >> >>______________________________________ >>XamimeLT - installed on mailserver for domain @deprem.gov.tr >>Queries to: postmaster at deprem.gov.tr >>______________________________________ >>The views and opinions expressed in this e-mail message are the sender's own >>and do not necessarily represent the views and the opinions of Earthquake Research Dept. >>of General Directorate of Disaster Affairs. >> >>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. >>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. >> >> >> >> > > > > > I am sorry to take up your time I made a fresh compilation without encountering any problem till ./java/make. there are so many errors in /mapserver-4.6.0/mapscript/java directory when I enter make in this way: .. .. .. mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_msFreeCgiObj': mapscript_wrap.c:33011: error: `jenv' undeclared (first use in this function) mapscript_wrap.c:33012: error: `jcls' undeclared (first use in this function) mapscript_wrap.c:33013: error: `jarg1' undeclared (first use in this function) make: *** [mapscript_so] Error 1 regards Ahmet ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From Maarten.van.der.Hoeven at KNMI.NL Tue Jun 21 04:49:30 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Tue, 21 Jun 2005 13:49:30 +0200 Subject: Trouble with displaying projected shapefile Message-ID: Dear list, I have a shape file, world_eca, projected in "north pole stereographic". Below are the projection specifications. I added the shape file in the map, but I do not manage to display it in mapserver. Is there something obvious I am doing wrong? An "echo $gpoMap->getProjection()" reveals "+proj=stere +lat_ts=90 +lat_0=90 +lon_0=0 +k_0=1 +x_0=0 +y_0=0" Regards, Maarten van der Hoeven --- projection specs --- PROJCS["North_Pole_Stereographic", GEOGCS["GCS_WGS_1984", DATUM["D_WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Stereographic"], PARAMETER["False_Easting",0.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",0.0], PARAMETER["Scale_Factor",1.0], PARAMETER["Latitude_Of_Origin",90.0], UNIT["Meter",1.0]] --- map file --- # # Start of map file # NAME ECAD STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -90 0 90 90 UNITS meters SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt PROJECTION "+proj=stere" "+lat_ts=90" "+lat_0=90" "+lon_0=0" "+k_0=1" "+x_0=0" "+y_0=0" END QUERYMAP STATUS ON STYLE SELECTED COLOR 255 0 0 END WEB MINSCALE 2000 MAXSCALE 50000000 IMAGEPATH "/webdata/ecad/htdocs/tmp/" IMAGEURL "/tmp/" LOG /tmp/gmap.log END REFERENCE IMAGE images/keymap.png EXTENT -2200000 -712631 3072800 3840000 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 255 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 10 STATUS ON END LAYER NAME world_eca PROJECTION "+proj=stere" "+lat_ts=90" "+lat_0=90" "+lon_0=0" "+k_0=1" "+x_0=0" "+y_0=0" END TYPE POLYGON STATUS ON DATA world_eca CLASS STYLE OUTLINECOLOR 100 100 100 COLOR 191 209 255 END END END END # Map File Drs. Maarten van der Hoeven ECA&D Project PO Box 201 3730 AE De Bilt The Netherlands Phone: +31-30-2206 402 Fax: +31-30-2204 614 Email: hoevenvd at knmi.nl (personal) Email: eca at knmi.nl (project) Website: http://eca.knmi.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From mercutio at POBOX.COM Tue Jun 21 04:58:14 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 21 Jun 2005 13:58:14 +0200 Subject: Perl Mapscript 4.4 Issues In-Reply-To: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Some perl variables that might be interesting to print out: $] ~ The version + patchlevel / 1000 of the Perl interpreter. $^V ~ The revision, version, and subversion of the Perl interpreter, represented as a string composed of characters with those ordinals. @INC The array @INC contains the list of places that the do EXPR, require, or use constructs look for their library files. These should at least tell you that you're running from the right perl installation. Ellis Robin (Bundaberg) wrote: | Thanks for all the assistance thus far. Is there a script available that outputs the version & associated compilation of Perl Mapscript being hit by different processes? I'm getting Perl Mapscript working OK straight through a browser and Apache cgi, but it's my ArcIMS Emulation stuff giving me the error outlined below. I'm just wondering if somehow I've got processes pointing at 2 different installations. | | Thanks | | Rob | | | | -----Original Message----- | From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On | Behalf Of Lowell Filak | Sent: Monday, 20 June 2005 10:39 PM | To: MAPSERVER-USERS at LISTS.UMN.EDU | Subject: Re: [UMN_MAPSERVER-USERS] Perl Mapscript 4.4 Issues | | | The following message was sent by Rob Ellis | on Sun, 19 Jun 2005 20:57:19 -0500. | | |>On Mon, 25 Apr 2005 08:18:22 -0400, Lowell Filak |>wrote: |> |> |>>The following message was sent by Stephen Woodbridge |>> on Sun, 24 Apr 2005 23:23:26 -0400. |>> |>> |>>>Hi all, |>>> |>>>I'm looking at the SWIGMapScript doc and have run into a few problems. |>>> |>>>$mapObj->setExtent($minx, $miny, $maxx, $maxy); |>>> |>>>and throws an error: |>>> |>>>Can't locate auto/mapscript/mapObj/setExtent.al in @INC (@INC contains: |>>>/etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 |>>>/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 |>>>/usr/local/lib/site_perl /usr/local/lib/perl/5.8.0 |>>>/usr/local/share/perl/5.8.0 .) at index.cgi line 255 |>>> |>>>Also looking at the document it looks like there is an |>>>$layerObj->setExtent(...) which doesn't seem to be correct. |>>> |>>>The classObj doc says it "Provides access to all class parameters |>>>(color, symbol, label, & etc...)." but there is no doc to indicate | | there | |>>>is a symbol property, nor is there any of doc/properties for color, |>>>overlaycolor, size, overlaysize. I think these were moved to styleObjs |>>>so it might be appropriate to comment on that. |>> |>>Steve, |>> |>>What version are you using? |>>I just double checked and there is most certainly a 'setExtent' for the |>>mapObj in the mapscript.pm. |>>You are correct on the classObj not. It is an old note that needs to be |>>deleted. Sorry for the confusion. |>> |>>Lowell |> |>Sorry to take you guys back to something that you've allready sorted out, |>but I'm a little confused. I've upgraded to MS4.4.2 but am getting the |>following message when trying to use Perl Mapscript, and from the previous |>messages it looks as though I might just need to alter mapscript.pm: |> |>Can't locate auto/mapscript/classObj/swig_styles.al |> |>Am I right in interpreting the previous emails when I assume that I | | need to | |>remove refernces to classObj in mapscript.pm, or am I way off? | | | Rob, | | I usually see this error after upgrading and trying to reference a | member or method that no longer exists. |>From the error it appears the code may be trying to do something like | '$variable = $class->{styles}' and styles does not exist under class in | 4.4 - you're upgrading from 4.0 is my guess.? | The reply to Steve had nothing to do with alterring mapscript.pm but | rather that the docs had/have a typo. | | Lowell | | | ************************************************************************ | The information in this e-mail together with any attachments is | intended only for the person or entity to which it is addressed | and may contain confidential and/or privileged material. | Any form of review, disclosure, modification, distribution | and/or publication of this e-mail message is prohibited. | If you have received this message in error, you are asked to | inform the sender as quickly as possible and delete this message | and any copies of this message from your computer and/or your | computer system network. | ************************************************************************ | | | | - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- If you prick us do we not bleed? If you tickle us do we not laugh? If you poison us do we not die? And if you wrong us, shall we not revenge? --The Merchant of Venice, III:1 - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows 2000) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCuADWoyEQRcU83p4RAtIeAJ0dxFXKnfBNMRf5hGXR6XeaLFGLcwCfb/qH KgQv2Gv4jwiPF/UGpKRCCvQ= =yjH1 -----END PGP SIGNATURE----- From dennis at MEGARRY.COM Tue Jun 21 05:43:53 2005 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Tue, 21 Jun 2005 08:43:53 -0400 Subject: How to set Projection in MAP file? Message-ID: I have been trying to do weather overlays using GIF images over GeoTIFFs. The GIF images are a different projection: Projection: Geographic Lat/Lon Datum: WGS84 Planar Units: Arc Degrees How do I set this up in the MAP file under the projection tag just for the GIF images? I've also setup a index shp file, would it be better to use that? (although again I don't know how to set this up either). Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From etdube at GMAIL.COM Tue Jun 21 06:19:13 2005 From: etdube at GMAIL.COM (Etienne Dube) Date: Tue, 21 Jun 2005 09:19:13 -0400 Subject: LatLongBoundingBox problem with WFS server Message-ID: Hello, I'm trying to use MapServer as a WFS server, pulling data from a PostGIS DB. My original data is not projected, it's in geographic coordinates (lat/long) in the NAD83 datum. When I use the GET method to issue a 'getcapabilities' request it displays the XML file, but I get weird bounding box coordinates : The extent defined in my MAP file is -69.2 45.0 -33.2 48.2 (in decimal degrees). When I try to open the WFS layer in uDig, I can't see anything, uDig seems to be confused by the wrong numbers in LatLongBoundingBox (when I'm moving the mouse around in the map window, it displays out of bound coordinates). On the other hand, when I issue a 'getfeature' request from a web browser, I get the right numbers for the tags : -69.588602,44.311578 -62.161745,48.794835 Here is my MAP file : NAME CRADWFS STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -69.200 45.000 -63.200 48.200 UNITS DD IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "Test wfs craddata" ## REQUIRED "wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=../../apps/gmap/htdocs/wfstest.map&" ## Recommended "wfs_srs" "EPSG:4269" ## Recommended END END PROJECTION "init=epsg:4269" END LAYER NAME maritimescd METADATA "wfs_title" "maritimescd" ## REQUIRED END TYPE POLYGON STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "dbname=craddata user=crad password=*******" DATA "geom from tmp_maritimescd" PROJECTION "init=epsg:4269" END DUMP TRUE ## REQUIRED CLASS NAME "maritimescd" COLOR 128 128 128 OUTLINECOLOR 0 0 0 END END # Layer END # Map File Any ideas? Thanks, Etienne From umberto.nicoletti at GMAIL.COM Tue Jun 21 07:06:58 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Jun 2005 16:06:58 +0200 Subject: java mapscript error In-Reply-To: <42B7F5A5.8070300@deprem.gov.tr> Message-ID: > I am sorry to take up your time > > I made a fresh compilation without encountering any problem > till ./java/make. You have to be in mapscript/java directory when you run make!!!! Execute the commands as I have written them (LITERALLY, you can copy and paste ) in my previous post. If still it does not work post the relevant parts of your shell history so I can see what you have done exactly. Do you have javac? Try running javac at the command prompt. Regards, Umberto > > there are so many errors in /mapserver-4.6.0/mapscript/java directory > when I enter make in this way: From matt at MSILEADS.COM Mon Jun 20 08:39:28 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Mon, 20 Jun 2005 10:39:28 -0500 Subject: Nevermind - Unsupported operand types Message-ID: From: matt at msileads.com Subject: Unsupported operand types Date: June 20, 2005 9:28:16 AM CDT To: MAPSERVER-USERS at LISTS.UMN.EDU I was trying to find a zip code in the dbf file that wasn't in there(12603 is in New York, not Louisianna). When I do the queryByAttributes with a LA zip, everything works correctly. Thanks, Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 763 bytes Desc: not available URL: From temiz at DEPREM.GOV.TR Tue Jun 21 07:30:10 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 21 Jun 2005 17:30:10 +0300 Subject: java mapscript error In-Reply-To: <75b4b93e05062107063025d1bb@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: >>I am sorry to take up your time >> >>I made a fresh compilation without encountering any problem >>till ./java/make. >> >> > >You have to be in mapscript/java directory when you run make!!!! > > ./java is ./mapscript/java >Execute the commands as I have written them (LITERALLY, you can copy >and paste ) in my previous post. If still it does not work post the >relevant parts of your shell history so I can see what you have done >exactly. > >Do you have javac? Try running javac at the command prompt. > > ..../mapserver-4.6.0/mapscript/java$ javac -version javac 1.5.0_03 >Regards, >Umberto > > > >>there are so many errors in /mapserver-4.6.0/mapscript/java directory >>when I enter make in this way: >> >> > > > > > I am sending error file in attachment. regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: error.txt URL: From umberto.nicoletti at GMAIL.COM Tue Jun 21 07:48:48 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Jun 2005 16:48:48 +0200 Subject: java mapscript error In-Reply-To: <42B82472.4090505@deprem.gov.tr> Message-ID: Do you have the JAVA_HOME variable set? REGARDS, Umberto On 6/21/05, orkun wrote: > Umberto Nicoletti wrote: > > >>I am sorry to take up your time > >> > >>I made a fresh compilation without encountering any problem > >>till ./java/make. > >> > >> > > > >You have to be in mapscript/java directory when you run make!!!! > > > > > ./java is ./mapscript/java > > >Execute the commands as I have written them (LITERALLY, you can copy > >and paste ) in my previous post. If still it does not work post the > >relevant parts of your shell history so I can see what you have done > >exactly. > > > >Do you have javac? Try running javac at the command prompt. > > > > > ..../mapserver-4.6.0/mapscript/java$ javac -version > javac 1.5.0_03 > > >Regards, > >Umberto > > > > > > > >>there are so many errors in /mapserver-4.6.0/mapscript/java directory > >>when I enter make in this way: > >> > >> > > > > > > > > > > > I am sending error file in attachment. > > regards > > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > > > > gcc -fpic -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/gd-2.0.33 -I/usr/local/include -I/include -I/include/linux -fno-strict-aliasing mapscript_wrap.c > mapscript_wrap.c:24:17: jni.h: No such file or directory > mapscript_wrap.c:48: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaThrowException': > mapscript_wrap.c:49: error: `jclass' undeclared (first use in this function) > mapscript_wrap.c:49: error: (Each undeclared identifier is reported only once > mapscript_wrap.c:49: error: for each function it appears in.) > mapscript_wrap.c:49: error: parse error before "excep" > mapscript_wrap.c:63: error: `code' undeclared (first use in this function) > mapscript_wrap.c:66: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:67: error: `excep' undeclared (first use in this function) > mapscript_wrap.c:69: error: `msg' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:107: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaException': > mapscript_wrap.c:109: error: `code' undeclared (first use in this function) > mapscript_wrap.c:137: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:137: error: `msg' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:239: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInSchar': > mapscript_wrap.c:241: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:241: error: parse error before "sz" > mapscript_wrap.c:242: error: `input' undeclared (first use in this function) > mapscript_wrap.c:243: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:246: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:247: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:250: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:260: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutSchar': > mapscript_wrap.c:262: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:262: error: parse error before "sz" > mapscript_wrap.c:263: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:264: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:264: error: `jbyte' undeclared (first use in this function) > mapscript_wrap.c:264: error: parse error before "carr" > mapscript_wrap.c:265: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:265: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:268: error: parse error before "SWIG_JavaArrayOutSchar" > mapscript_wrap.c:268: error: parse error before '*' token > mapscript_wrap.c:268: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutSchar': > mapscript_wrap.c:269: error: `jbyte' undeclared (first use in this function) > mapscript_wrap.c:269: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:271: error: `jbyteArray' undeclared (first use in this function) > mapscript_wrap.c:271: error: parse error before "jresult" > mapscript_wrap.c:272: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:273: warning: return makes integer from pointer without a cast > mapscript_wrap.c:274: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:276: warning: return makes integer from pointer without a cast > mapscript_wrap.c:277: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:278: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:285: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInUchar': > mapscript_wrap.c:287: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:287: error: parse error before "sz" > mapscript_wrap.c:288: error: `input' undeclared (first use in this function) > mapscript_wrap.c:289: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:292: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:293: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:296: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:306: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUchar': > mapscript_wrap.c:308: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:308: error: parse error before "sz" > mapscript_wrap.c:309: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:310: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:310: error: `jshort' undeclared (first use in this function) > mapscript_wrap.c:310: error: parse error before "carr" > mapscript_wrap.c:311: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:311: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:314: error: parse error before "SWIG_JavaArrayOutUchar" > mapscript_wrap.c:314: error: parse error before '*' token > mapscript_wrap.c:314: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutUchar': > mapscript_wrap.c:315: error: `jshort' undeclared (first use in this function) > mapscript_wrap.c:315: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:317: error: `jshortArray' undeclared (first use in this function) > mapscript_wrap.c:317: error: parse error before "jresult" > mapscript_wrap.c:318: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:319: warning: return makes integer from pointer without a cast > mapscript_wrap.c:320: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:322: warning: return makes integer from pointer without a cast > mapscript_wrap.c:323: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:324: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:331: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInShort': > mapscript_wrap.c:333: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:333: error: parse error before "sz" > mapscript_wrap.c:334: error: `input' undeclared (first use in this function) > mapscript_wrap.c:335: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:338: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:339: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:342: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:352: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutShort': > mapscript_wrap.c:354: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:354: error: parse error before "sz" > mapscript_wrap.c:355: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:356: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:356: error: `jshort' undeclared (first use in this function) > mapscript_wrap.c:356: error: parse error before "carr" > mapscript_wrap.c:357: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:357: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:360: error: parse error before "SWIG_JavaArrayOutShort" > mapscript_wrap.c:360: error: parse error before '*' token > mapscript_wrap.c:360: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutShort': > mapscript_wrap.c:361: error: `jshort' undeclared (first use in this function) > mapscript_wrap.c:361: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:363: error: `jshortArray' undeclared (first use in this function) > mapscript_wrap.c:363: error: parse error before "jresult" > mapscript_wrap.c:364: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:365: warning: return makes integer from pointer without a cast > mapscript_wrap.c:366: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:368: warning: return makes integer from pointer without a cast > mapscript_wrap.c:369: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:370: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:377: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInUshort': > mapscript_wrap.c:379: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:379: error: parse error before "sz" > mapscript_wrap.c:380: error: `input' undeclared (first use in this function) > mapscript_wrap.c:381: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:384: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:385: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:388: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:398: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUshort': > mapscript_wrap.c:400: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:400: error: parse error before "sz" > mapscript_wrap.c:401: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:402: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:402: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:402: error: parse error before "carr" > mapscript_wrap.c:403: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:403: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:406: error: parse error before "SWIG_JavaArrayOutUshort" > mapscript_wrap.c:406: error: parse error before '*' token > mapscript_wrap.c:406: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutUshort': > mapscript_wrap.c:407: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:407: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:409: error: `jintArray' undeclared (first use in this function) > mapscript_wrap.c:409: error: parse error before "jresult" > mapscript_wrap.c:410: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:411: warning: return makes integer from pointer without a cast > mapscript_wrap.c:412: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:414: warning: return makes integer from pointer without a cast > mapscript_wrap.c:415: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:416: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:423: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInInt': > mapscript_wrap.c:425: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:425: error: parse error before "sz" > mapscript_wrap.c:426: error: `input' undeclared (first use in this function) > mapscript_wrap.c:427: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:430: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:431: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:434: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:444: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutInt': > mapscript_wrap.c:446: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:446: error: parse error before "sz" > mapscript_wrap.c:447: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:448: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:448: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:448: error: parse error before "carr" > mapscript_wrap.c:449: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:449: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:452: error: parse error before "SWIG_JavaArrayOutInt" > mapscript_wrap.c:452: error: parse error before '*' token > mapscript_wrap.c:452: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutInt': > mapscript_wrap.c:453: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:453: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:455: error: `jintArray' undeclared (first use in this function) > mapscript_wrap.c:455: error: parse error before "jresult" > mapscript_wrap.c:456: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:457: warning: return makes integer from pointer without a cast > mapscript_wrap.c:458: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:460: warning: return makes integer from pointer without a cast > mapscript_wrap.c:461: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:462: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:469: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInUint': > mapscript_wrap.c:471: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:471: error: parse error before "sz" > mapscript_wrap.c:472: error: `input' undeclared (first use in this function) > mapscript_wrap.c:473: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:476: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:477: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:480: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:490: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUint': > mapscript_wrap.c:492: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:492: error: parse error before "sz" > mapscript_wrap.c:493: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:494: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:494: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:494: error: parse error before "carr" > mapscript_wrap.c:495: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:495: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:498: error: parse error before "SWIG_JavaArrayOutUint" > mapscript_wrap.c:498: error: parse error before '*' token > mapscript_wrap.c:498: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutUint': > mapscript_wrap.c:499: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:499: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:501: error: `jlongArray' undeclared (first use in this function) > mapscript_wrap.c:501: error: parse error before "jresult" > mapscript_wrap.c:502: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:503: warning: return makes integer from pointer without a cast > mapscript_wrap.c:504: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:506: warning: return makes integer from pointer without a cast > mapscript_wrap.c:507: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:508: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:515: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInLong': > mapscript_wrap.c:517: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:517: error: parse error before "sz" > mapscript_wrap.c:518: error: `input' undeclared (first use in this function) > mapscript_wrap.c:519: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:522: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:523: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:526: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:536: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutLong': > mapscript_wrap.c:538: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:538: error: parse error before "sz" > mapscript_wrap.c:539: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:540: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:540: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:540: error: parse error before "carr" > mapscript_wrap.c:541: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:541: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:544: error: parse error before "SWIG_JavaArrayOutLong" > mapscript_wrap.c:544: error: parse error before '*' token > mapscript_wrap.c:544: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutLong': > mapscript_wrap.c:545: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:545: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:547: error: `jintArray' undeclared (first use in this function) > mapscript_wrap.c:547: error: parse error before "jresult" > mapscript_wrap.c:548: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:549: warning: return makes integer from pointer without a cast > mapscript_wrap.c:550: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:552: warning: return makes integer from pointer without a cast > mapscript_wrap.c:553: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:554: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:561: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInUlong': > mapscript_wrap.c:563: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:563: error: parse error before "sz" > mapscript_wrap.c:564: error: `input' undeclared (first use in this function) > mapscript_wrap.c:565: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:568: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:569: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:572: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:582: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUlong': > mapscript_wrap.c:584: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:584: error: parse error before "sz" > mapscript_wrap.c:585: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:586: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:586: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:586: error: parse error before "carr" > mapscript_wrap.c:587: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:587: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:590: error: parse error before "SWIG_JavaArrayOutUlong" > mapscript_wrap.c:590: error: parse error before '*' token > mapscript_wrap.c:590: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutUlong': > mapscript_wrap.c:591: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:591: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:593: error: `jlongArray' undeclared (first use in this function) > mapscript_wrap.c:593: error: parse error before "jresult" > mapscript_wrap.c:594: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:595: warning: return makes integer from pointer without a cast > mapscript_wrap.c:596: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:598: warning: return makes integer from pointer without a cast > mapscript_wrap.c:599: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:600: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:607: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInLonglong': > mapscript_wrap.c:609: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:609: error: parse error before "sz" > mapscript_wrap.c:610: error: `input' undeclared (first use in this function) > mapscript_wrap.c:611: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:614: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:615: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:618: error: `carr' undeclared (first use in this function) > mapscript_wrap.c:618: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:618: error: parse error before ')' token > mapscript_wrap.c: At top level: > mapscript_wrap.c:628: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutLonglong': > mapscript_wrap.c:630: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:630: error: parse error before "sz" > mapscript_wrap.c:631: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:632: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:632: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:632: error: parse error before "carr" > mapscript_wrap.c:633: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:633: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:636: error: parse error before "SWIG_JavaArrayOutLonglong" > mapscript_wrap.c:636: error: parse error before '*' token > mapscript_wrap.c:636: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutLonglong': > mapscript_wrap.c:637: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:637: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:639: error: `jlongArray' undeclared (first use in this function) > mapscript_wrap.c:639: error: parse error before "jresult" > mapscript_wrap.c:640: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:641: warning: return makes integer from pointer without a cast > mapscript_wrap.c:642: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:644: warning: return makes integer from pointer without a cast > mapscript_wrap.c:645: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:646: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:653: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInFloat': > mapscript_wrap.c:655: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:655: error: parse error before "sz" > mapscript_wrap.c:656: error: `input' undeclared (first use in this function) > mapscript_wrap.c:657: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:660: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:661: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:664: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:674: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutFloat': > mapscript_wrap.c:676: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:676: error: parse error before "sz" > mapscript_wrap.c:677: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:678: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:678: error: `jfloat' undeclared (first use in this function) > mapscript_wrap.c:678: error: parse error before "carr" > mapscript_wrap.c:679: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:679: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:682: error: parse error before "SWIG_JavaArrayOutFloat" > mapscript_wrap.c:682: error: parse error before '*' token > mapscript_wrap.c:682: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutFloat': > mapscript_wrap.c:683: error: `jfloat' undeclared (first use in this function) > mapscript_wrap.c:683: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:685: error: `jfloatArray' undeclared (first use in this function) > mapscript_wrap.c:685: error: parse error before "jresult" > mapscript_wrap.c:686: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:687: warning: return makes integer from pointer without a cast > mapscript_wrap.c:688: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:690: warning: return makes integer from pointer without a cast > mapscript_wrap.c:691: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:692: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:699: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayInDouble': > mapscript_wrap.c:701: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:701: error: parse error before "sz" > mapscript_wrap.c:702: error: `input' undeclared (first use in this function) > mapscript_wrap.c:703: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:706: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:707: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:710: error: `carr' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:720: error: parse error before '*' token > mapscript_wrap.c: In function `SWIG_JavaArrayArgoutDouble': > mapscript_wrap.c:722: error: `jsize' undeclared (first use in this function) > mapscript_wrap.c:722: error: parse error before "sz" > mapscript_wrap.c:723: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:724: error: `jarr' undeclared (first use in this function) > mapscript_wrap.c:724: error: `jdouble' undeclared (first use in this function) > mapscript_wrap.c:724: error: parse error before "carr" > mapscript_wrap.c:725: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:725: error: `input' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:728: error: parse error before "SWIG_JavaArrayOutDouble" > mapscript_wrap.c:728: error: parse error before '*' token > mapscript_wrap.c:728: warning: return type defaults to `int' > mapscript_wrap.c: In function `SWIG_JavaArrayOutDouble': > mapscript_wrap.c:729: error: `jdouble' undeclared (first use in this function) > mapscript_wrap.c:729: error: `arr' undeclared (first use in this function) > mapscript_wrap.c:731: error: `jdoubleArray' undeclared (first use in this function) > mapscript_wrap.c:731: error: parse error before "jresult" > mapscript_wrap.c:732: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:733: warning: return makes integer from pointer without a cast > mapscript_wrap.c:734: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:736: warning: return makes integer from pointer without a cast > mapscript_wrap.c:737: error: `sz' undeclared (first use in this function) > mapscript_wrap.c:738: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3116: error: parse error before "jlong" > mapscript_wrap.c:3116: error: parse error before '*' token > mapscript_wrap.c:3116: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1intarray': > mapscript_wrap.c:3117: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:3117: error: parse error before "jresult" > mapscript_wrap.c:3121: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3122: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3123: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3126: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3131: error: syntax error before "void" > mapscript_wrap.c:3131: error: parse error before '*' token > mapscript_wrap.c:3131: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1intarray': > mapscript_wrap.c:3134: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3135: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3136: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3142: error: parse error before "jint" > mapscript_wrap.c:3142: error: parse error before '*' token > mapscript_wrap.c:3142: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1getitem': > mapscript_wrap.c:3143: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3143: error: parse error before "jresult" > mapscript_wrap.c:3148: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3149: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3150: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3151: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:3154: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3154: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3159: error: syntax error before "void" > mapscript_wrap.c:3159: error: parse error before '*' token > mapscript_wrap.c:3159: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1setitem': > mapscript_wrap.c:3164: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3165: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3166: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3167: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:3168: error: `jarg3' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3174: error: parse error before "jlong" > mapscript_wrap.c:3174: error: parse error before '*' token > mapscript_wrap.c:3174: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1cast': > mapscript_wrap.c:3175: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:3175: error: parse error before "jresult" > mapscript_wrap.c:3179: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3180: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3181: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3184: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3189: error: parse error before "jlong" > mapscript_wrap.c:3189: error: parse error before '*' token > mapscript_wrap.c:3189: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1frompointer': > mapscript_wrap.c:3190: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:3190: error: parse error before "jresult" > mapscript_wrap.c:3194: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3195: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3196: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3199: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3204: error: parse error before "jstring" > mapscript_wrap.c:3204: error: parse error before '*' token > mapscript_wrap.c:3204: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1VERSION': > mapscript_wrap.c:3205: error: `jstring' undeclared (first use in this function) > mapscript_wrap.c:3205: error: parse error before "jresult" > mapscript_wrap.c:3208: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3209: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3246: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3252: error: parse error before "jint" > mapscript_wrap.c:3252: error: parse error before '*' token > mapscript_wrap.c:3252: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1TRUE': > mapscript_wrap.c:3253: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3253: error: parse error before "jresult" > mapscript_wrap.c:3256: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3257: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3293: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3293: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3298: error: parse error before "jint" > mapscript_wrap.c:3298: error: parse error before '*' token > mapscript_wrap.c:3298: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1FALSE': > mapscript_wrap.c:3299: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3299: error: parse error before "jresult" > mapscript_wrap.c:3302: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3303: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3339: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3339: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3344: error: parse error before "jint" > mapscript_wrap.c:3344: error: parse error before '*' token > mapscript_wrap.c:3344: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1ON': > mapscript_wrap.c:3345: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3345: error: parse error before "jresult" > mapscript_wrap.c:3348: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3349: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3385: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3385: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3390: error: parse error before "jint" > mapscript_wrap.c:3390: error: parse error before '*' token > mapscript_wrap.c:3390: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1OFF': > mapscript_wrap.c:3391: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3391: error: parse error before "jresult" > mapscript_wrap.c:3394: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3395: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3431: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3431: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3436: error: parse error before "jint" > mapscript_wrap.c:3436: error: parse error before '*' token > mapscript_wrap.c:3436: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1DEFAULT': > mapscript_wrap.c:3437: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3437: error: parse error before "jresult" > mapscript_wrap.c:3440: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3441: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3477: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3477: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3482: error: parse error before "jint" > mapscript_wrap.c:3482: error: parse error before '*' token > mapscript_wrap.c:3482: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1EMBED': > mapscript_wrap.c:3483: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3483: error: parse error before "jresult" > mapscript_wrap.c:3486: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3487: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3523: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3523: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3528: error: parse error before "jint" > mapscript_wrap.c:3528: error: parse error before '*' token > mapscript_wrap.c:3528: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1DELETE': > mapscript_wrap.c:3529: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3529: error: parse error before "jresult" > mapscript_wrap.c:3532: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3533: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3569: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3569: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3574: error: parse error before "jint" > mapscript_wrap.c:3574: error: parse error before '*' token > mapscript_wrap.c:3574: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1YES': > mapscript_wrap.c:3575: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3575: error: parse error before "jresult" > mapscript_wrap.c:3578: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3579: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3615: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3615: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3620: error: parse error before "jint" > mapscript_wrap.c:3620: error: parse error before '*' token > mapscript_wrap.c:3620: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1NO': > mapscript_wrap.c:3621: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3621: error: parse error before "jresult" > mapscript_wrap.c:3624: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3625: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3661: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3661: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3666: error: parse error before "jint" > mapscript_wrap.c:3666: error: parse error before '*' token > mapscript_wrap.c:3666: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1SINGLE': > mapscript_wrap.c:3667: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3667: error: parse error before "jresult" > mapscript_wrap.c:3670: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3671: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3707: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3707: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3712: error: parse error before "jint" > mapscript_wrap.c:3712: error: parse error before '*' token > mapscript_wrap.c:3712: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1MULTIPLE': > mapscript_wrap.c:3713: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3713: error: parse error before "jresult" > mapscript_wrap.c:3716: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3717: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3753: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3753: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3758: error: parse error before "jint" > mapscript_wrap.c:3758: error: parse error before '*' token > mapscript_wrap.c:3758: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1GD_1ALPHA': > mapscript_wrap.c:3759: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3759: error: parse error before "jresult" > mapscript_wrap.c:3762: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3763: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3799: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3799: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3804: error: parse error before "jstring" > mapscript_wrap.c:3804: error: parse error before '*' token > mapscript_wrap.c:3804: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1filename': > mapscript_wrap.c:3805: error: `jstring' undeclared (first use in this function) > mapscript_wrap.c:3805: error: parse error before "jresult" > mapscript_wrap.c:3809: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3810: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3811: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3815: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3821: error: parse error before "jint" > mapscript_wrap.c:3821: error: parse error before '*' token > mapscript_wrap.c:3821: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1numfonts': > mapscript_wrap.c:3822: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:3822: error: parse error before "jresult" > mapscript_wrap.c:3826: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3827: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3828: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3831: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:3831: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:3836: error: syntax error before "void" > mapscript_wrap.c:3836: error: parse error before '*' token > mapscript_wrap.c:3836: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1fontSetObj_1fonts': > mapscript_wrap.c:3840: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3841: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3842: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3843: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3849: error: parse error before "jlong" > mapscript_wrap.c:3849: error: parse error before '*' token > mapscript_wrap.c:3849: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1fonts': > mapscript_wrap.c:3850: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:3850: error: parse error before "jresult" > mapscript_wrap.c:3854: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3855: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3856: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3859: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3864: error: parse error before "jlong" > mapscript_wrap.c:3864: error: parse error before '*' token > mapscript_wrap.c:3864: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1fontSetObj': > mapscript_wrap.c:3865: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:3865: error: parse error before "jresult" > mapscript_wrap.c:3868: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3869: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3905: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3910: error: syntax error before "void" > mapscript_wrap.c:3910: error: parse error before '*' token > mapscript_wrap.c:3910: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1fontSetObj': > mapscript_wrap.c:3913: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3914: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3915: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:3954: error: syntax error before "void" > mapscript_wrap.c:3954: error: parse error before '*' token > mapscript_wrap.c:3954: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1name': > mapscript_wrap.c:3958: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3959: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3960: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3963: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:3965: warning: `return' with no value, in function returning non-void > mapscript_wrap.c: At top level: > mapscript_wrap.c:3983: error: parse error before "jstring" > mapscript_wrap.c:3983: error: parse error before '*' token > mapscript_wrap.c:3983: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1name': > mapscript_wrap.c:3984: error: `jstring' undeclared (first use in this function) > mapscript_wrap.c:3984: error: parse error before "jresult" > mapscript_wrap.c:3988: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:3989: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:3990: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:3994: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4000: error: syntax error before "void" > mapscript_wrap.c:4000: error: parse error before '*' token > mapscript_wrap.c:4000: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1mimetype': > mapscript_wrap.c:4004: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4005: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4006: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4009: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:4011: warning: `return' with no value, in function returning non-void > mapscript_wrap.c: At top level: > mapscript_wrap.c:4029: error: parse error before "jstring" > mapscript_wrap.c:4029: error: parse error before '*' token > mapscript_wrap.c:4029: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1mimetype': > mapscript_wrap.c:4030: error: `jstring' undeclared (first use in this function) > mapscript_wrap.c:4030: error: parse error before "jresult" > mapscript_wrap.c:4034: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4035: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4036: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4040: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4046: error: syntax error before "void" > mapscript_wrap.c:4046: error: parse error before '*' token > mapscript_wrap.c:4046: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1driver': > mapscript_wrap.c:4050: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4051: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4052: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4055: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:4057: warning: `return' with no value, in function returning non-void > mapscript_wrap.c: At top level: > mapscript_wrap.c:4075: error: parse error before "jstring" > mapscript_wrap.c:4075: error: parse error before '*' token > mapscript_wrap.c:4075: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1driver': > mapscript_wrap.c:4076: error: `jstring' undeclared (first use in this function) > mapscript_wrap.c:4076: error: parse error before "jresult" > mapscript_wrap.c:4080: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4081: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4082: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4086: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4092: error: syntax error before "void" > mapscript_wrap.c:4092: error: parse error before '*' token > mapscript_wrap.c:4092: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1extension': > mapscript_wrap.c:4096: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4097: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4098: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4101: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:4103: warning: `return' with no value, in function returning non-void > mapscript_wrap.c: At top level: > mapscript_wrap.c:4121: error: parse error before "jstring" > mapscript_wrap.c:4121: error: parse error before '*' token > mapscript_wrap.c:4121: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1extension': > mapscript_wrap.c:4122: error: `jstring' undeclared (first use in this function) > mapscript_wrap.c:4122: error: parse error before "jresult" > mapscript_wrap.c:4126: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4127: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4128: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4132: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4138: error: syntax error before "void" > mapscript_wrap.c:4138: error: parse error before '*' token > mapscript_wrap.c:4138: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1renderer': > mapscript_wrap.c:4142: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4143: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4144: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4145: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4151: error: parse error before "jint" > mapscript_wrap.c:4151: error: parse error before '*' token > mapscript_wrap.c:4151: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1renderer': > mapscript_wrap.c:4152: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4152: error: parse error before "jresult" > mapscript_wrap.c:4156: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4157: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4158: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4161: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4161: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4166: error: syntax error before "void" > mapscript_wrap.c:4166: error: parse error before '*' token > mapscript_wrap.c:4166: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1imagemode': > mapscript_wrap.c:4170: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4171: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4172: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4173: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4179: error: parse error before "jint" > mapscript_wrap.c:4179: error: parse error before '*' token > mapscript_wrap.c:4179: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1imagemode': > mapscript_wrap.c:4180: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4180: error: parse error before "jresult" > mapscript_wrap.c:4184: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4185: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4186: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4189: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4189: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4194: error: syntax error before "void" > mapscript_wrap.c:4194: error: parse error before '*' token > mapscript_wrap.c:4194: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1transparent': > mapscript_wrap.c:4198: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4199: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4200: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4201: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4207: error: parse error before "jint" > mapscript_wrap.c:4207: error: parse error before '*' token > mapscript_wrap.c:4207: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1transparent': > mapscript_wrap.c:4208: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4208: error: parse error before "jresult" > mapscript_wrap.c:4212: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4213: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4214: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4217: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4217: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4222: error: syntax error before "void" > mapscript_wrap.c:4222: error: parse error before '*' token > mapscript_wrap.c:4222: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1bands': > mapscript_wrap.c:4226: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4227: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4228: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4229: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4235: error: parse error before "jint" > mapscript_wrap.c:4235: error: parse error before '*' token > mapscript_wrap.c:4235: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1bands': > mapscript_wrap.c:4236: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4236: error: parse error before "jresult" > mapscript_wrap.c:4240: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4241: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4242: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4245: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4245: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4250: error: syntax error before "void" > mapscript_wrap.c:4250: error: parse error before '*' token > mapscript_wrap.c:4250: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1numformatoptions': > mapscript_wrap.c:4254: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4255: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4256: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4257: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4263: error: parse error before "jint" > mapscript_wrap.c:4263: error: parse error before '*' token > mapscript_wrap.c:4263: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1numformatoptions': > mapscript_wrap.c:4264: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4264: error: parse error before "jresult" > mapscript_wrap.c:4268: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4269: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4270: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4273: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4273: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4278: error: syntax error before "void" > mapscript_wrap.c:4278: error: parse error before '*' token > mapscript_wrap.c:4278: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1formatoptions': > mapscript_wrap.c:4282: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4283: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4284: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4285: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4291: error: parse error before "jlong" > mapscript_wrap.c:4291: error: parse error before '*' token > mapscript_wrap.c:4291: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1formatoptions': > mapscript_wrap.c:4292: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:4292: error: parse error before "jresult" > mapscript_wrap.c:4296: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4297: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4298: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4301: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4306: error: syntax error before "void" > mapscript_wrap.c:4306: error: parse error before '*' token > mapscript_wrap.c:4306: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1refcount': > mapscript_wrap.c:4310: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4311: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4312: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4313: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4319: error: parse error before "jint" > mapscript_wrap.c:4319: error: parse error before '*' token > mapscript_wrap.c:4319: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1refcount': > mapscript_wrap.c:4320: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4320: error: parse error before "jresult" > mapscript_wrap.c:4324: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4325: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4326: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4329: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4329: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4334: error: syntax error before "void" > mapscript_wrap.c:4334: error: parse error before '*' token > mapscript_wrap.c:4334: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1inmapfile': > mapscript_wrap.c:4338: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4339: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4340: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4341: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4347: error: parse error before "jint" > mapscript_wrap.c:4347: error: parse error before '*' token > mapscript_wrap.c:4347: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1inmapfile': > mapscript_wrap.c:4348: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4348: error: parse error before "jresult" > mapscript_wrap.c:4352: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4353: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4354: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4357: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4357: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4362: error: parse error before "jlong" > mapscript_wrap.c:4362: error: parse error before '*' token > mapscript_wrap.c:4362: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1outputFormatObj': > mapscript_wrap.c:4363: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:4363: error: parse error before "jresult" > mapscript_wrap.c:4368: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4369: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4372: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4379: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:4419: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4430: error: syntax error before "void" > mapscript_wrap.c:4430: error: parse error before '*' token > mapscript_wrap.c:4430: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1outputFormatObj': > mapscript_wrap.c:4433: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4434: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4435: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4474: error: syntax error before "void" > mapscript_wrap.c:4474: error: parse error before '*' token > mapscript_wrap.c:4474: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1setOption': > mapscript_wrap.c:4479: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4480: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4481: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4484: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:4486: warning: `return' with no value, in function returning non-void > mapscript_wrap.c:4491: error: `jarg3' undeclared (first use in this function) > mapscript_wrap.c:4493: warning: `return' with no value, in function returning non-void > mapscript_wrap.c: At top level: > mapscript_wrap.c:4540: error: parse error before "jint" > mapscript_wrap.c:4540: error: parse error before '*' token > mapscript_wrap.c:4540: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1validate': > mapscript_wrap.c:4541: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4541: error: parse error before "jresult" > mapscript_wrap.c:4545: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4546: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4547: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4583: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4583: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4588: error: parse error before "jstring" > mapscript_wrap.c:4588: error: parse error before '*' token > mapscript_wrap.c:4588: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1getOption': > mapscript_wrap.c:4589: error: `jstring' undeclared (first use in this function) > mapscript_wrap.c:4589: error: parse error before "jresult" > mapscript_wrap.c:4595: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4596: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4597: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4600: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:4607: error: `jarg3' undeclared (first use in this function) > mapscript_wrap.c:4648: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4661: error: parse error before "jint" > mapscript_wrap.c:4661: error: parse error before '*' token > mapscript_wrap.c:4661: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1NOOVERRIDE': > mapscript_wrap.c:4662: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4662: error: parse error before "jresult" > mapscript_wrap.c:4665: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4666: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4702: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4702: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4707: error: syntax error before "void" > mapscript_wrap.c:4707: error: parse error before '*' token > mapscript_wrap.c:4707: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1height': > mapscript_wrap.c:4711: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4712: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4713: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4714: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4720: error: parse error before "jint" > mapscript_wrap.c:4720: error: parse error before '*' token > mapscript_wrap.c:4720: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1height': > mapscript_wrap.c:4721: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4721: error: parse error before "jresult" > mapscript_wrap.c:4725: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4726: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4727: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4730: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4730: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4735: error: syntax error before "void" > mapscript_wrap.c:4735: error: parse error before '*' token > mapscript_wrap.c:4735: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1width': > mapscript_wrap.c:4739: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4740: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4741: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4742: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4748: error: parse error before "jint" > mapscript_wrap.c:4748: error: parse error before '*' token > mapscript_wrap.c:4748: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1width': > mapscript_wrap.c:4749: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4749: error: parse error before "jresult" > mapscript_wrap.c:4753: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4754: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4755: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4758: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4758: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4763: error: syntax error before "void" > mapscript_wrap.c:4763: error: parse error before '*' token > mapscript_wrap.c:4763: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1status': > mapscript_wrap.c:4767: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4768: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4769: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4770: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4776: error: parse error before "jint" > mapscript_wrap.c:4776: error: parse error before '*' token > mapscript_wrap.c:4776: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1status': > mapscript_wrap.c:4777: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4777: error: parse error before "jresult" > mapscript_wrap.c:4781: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4782: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4783: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4786: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4786: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4791: error: syntax error before "void" > mapscript_wrap.c:4791: error: parse error before '*' token > mapscript_wrap.c:4791: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1style': > mapscript_wrap.c:4795: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4796: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4797: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4798: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4804: error: parse error before "jint" > mapscript_wrap.c:4804: error: parse error before '*' token > mapscript_wrap.c:4804: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1style': > mapscript_wrap.c:4805: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4805: error: parse error before "jresult" > mapscript_wrap.c:4809: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4810: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4811: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4814: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:4814: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:4819: error: syntax error before "void" > mapscript_wrap.c:4819: error: parse error before '*' token > mapscript_wrap.c:4819: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1color': > mapscript_wrap.c:4823: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4824: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4825: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4826: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4832: error: parse error before "jlong" > mapscript_wrap.c:4832: error: parse error before '*' token > mapscript_wrap.c:4832: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1color': > mapscript_wrap.c:4833: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:4833: error: parse error before "jresult" > mapscript_wrap.c:4837: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4838: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4839: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4842: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4847: error: parse error before "jlong" > mapscript_wrap.c:4847: error: parse error before '*' token > mapscript_wrap.c:4847: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1queryMapObj': > mapscript_wrap.c:4848: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:4848: error: parse error before "jresult" > mapscript_wrap.c:4851: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4852: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4888: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4893: error: syntax error before "void" > mapscript_wrap.c:4893: error: parse error before '*' token > mapscript_wrap.c:4893: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1queryMapObj': > mapscript_wrap.c:4896: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4897: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4898: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4937: error: syntax error before "void" > mapscript_wrap.c:4937: error: parse error before '*' token > mapscript_wrap.c:4937: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1font': > mapscript_wrap.c:4941: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4942: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4943: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4946: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c:4948: warning: `return' with no value, in function returning non-void > mapscript_wrap.c: At top level: > mapscript_wrap.c:4966: error: parse error before "jstring" > mapscript_wrap.c:4966: error: parse error before '*' token > mapscript_wrap.c:4966: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1font': > mapscript_wrap.c:4967: error: `jstring' undeclared (first use in this function) > mapscript_wrap.c:4967: error: parse error before "jresult" > mapscript_wrap.c:4971: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4972: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4973: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4977: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4983: error: syntax error before "void" > mapscript_wrap.c:4983: error: parse error before '*' token > mapscript_wrap.c:4983: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1type': > mapscript_wrap.c:4987: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:4988: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:4989: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:4990: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:4996: error: parse error before "jint" > mapscript_wrap.c:4996: error: parse error before '*' token > mapscript_wrap.c:4996: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1type': > mapscript_wrap.c:4997: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:4997: error: parse error before "jresult" > mapscript_wrap.c:5001: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5002: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5003: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5006: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5006: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5011: error: syntax error before "void" > mapscript_wrap.c:5011: error: parse error before '*' token > mapscript_wrap.c:5011: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1color': > mapscript_wrap.c:5015: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5016: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5017: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5018: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5024: error: parse error before "jlong" > mapscript_wrap.c:5024: error: parse error before '*' token > mapscript_wrap.c:5024: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1color': > mapscript_wrap.c:5025: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:5025: error: parse error before "jresult" > mapscript_wrap.c:5029: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5030: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5031: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5034: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5039: error: syntax error before "void" > mapscript_wrap.c:5039: error: parse error before '*' token > mapscript_wrap.c:5039: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1outlinecolor': > mapscript_wrap.c:5043: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5044: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5045: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5046: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5052: error: parse error before "jlong" > mapscript_wrap.c:5052: error: parse error before '*' token > mapscript_wrap.c:5052: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1outlinecolor': > mapscript_wrap.c:5053: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:5053: error: parse error before "jresult" > mapscript_wrap.c:5057: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5058: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5059: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5062: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5067: error: syntax error before "void" > mapscript_wrap.c:5067: error: parse error before '*' token > mapscript_wrap.c:5067: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowcolor': > mapscript_wrap.c:5071: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5072: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5073: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5074: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5080: error: parse error before "jlong" > mapscript_wrap.c:5080: error: parse error before '*' token > mapscript_wrap.c:5080: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowcolor': > mapscript_wrap.c:5081: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:5081: error: parse error before "jresult" > mapscript_wrap.c:5085: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5086: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5087: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5090: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5095: error: syntax error before "void" > mapscript_wrap.c:5095: error: parse error before '*' token > mapscript_wrap.c:5095: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowsizex': > mapscript_wrap.c:5099: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5100: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5101: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5102: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5108: error: parse error before "jint" > mapscript_wrap.c:5108: error: parse error before '*' token > mapscript_wrap.c:5108: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowsizex': > mapscript_wrap.c:5109: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5109: error: parse error before "jresult" > mapscript_wrap.c:5113: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5114: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5115: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5118: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5118: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5123: error: syntax error before "void" > mapscript_wrap.c:5123: error: parse error before '*' token > mapscript_wrap.c:5123: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowsizey': > mapscript_wrap.c:5127: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5128: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5129: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5130: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5136: error: parse error before "jint" > mapscript_wrap.c:5136: error: parse error before '*' token > mapscript_wrap.c:5136: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowsizey': > mapscript_wrap.c:5137: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5137: error: parse error before "jresult" > mapscript_wrap.c:5141: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5142: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5143: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5146: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5146: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5151: error: syntax error before "void" > mapscript_wrap.c:5151: error: parse error before '*' token > mapscript_wrap.c:5151: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundcolor': > mapscript_wrap.c:5155: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5156: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5157: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5158: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5164: error: parse error before "jlong" > mapscript_wrap.c:5164: error: parse error before '*' token > mapscript_wrap.c:5164: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundcolor': > mapscript_wrap.c:5165: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:5165: error: parse error before "jresult" > mapscript_wrap.c:5169: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5170: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5171: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5174: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5179: error: syntax error before "void" > mapscript_wrap.c:5179: error: parse error before '*' token > mapscript_wrap.c:5179: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowcolor': > mapscript_wrap.c:5183: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5184: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5185: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5186: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5192: error: parse error before "jlong" > mapscript_wrap.c:5192: error: parse error before '*' token > mapscript_wrap.c:5192: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowcolor': > mapscript_wrap.c:5193: error: `jlong' undeclared (first use in this function) > mapscript_wrap.c:5193: error: parse error before "jresult" > mapscript_wrap.c:5197: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5198: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5199: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5202: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5207: error: syntax error before "void" > mapscript_wrap.c:5207: error: parse error before '*' token > mapscript_wrap.c:5207: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowsizex': > mapscript_wrap.c:5211: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5212: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5213: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5214: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5220: error: parse error before "jint" > mapscript_wrap.c:5220: error: parse error before '*' token > mapscript_wrap.c:5220: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowsizex': > mapscript_wrap.c:5221: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5221: error: parse error before "jresult" > mapscript_wrap.c:5225: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5226: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5227: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5230: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5230: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5235: error: syntax error before "void" > mapscript_wrap.c:5235: error: parse error before '*' token > mapscript_wrap.c:5235: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowsizey': > mapscript_wrap.c:5239: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5240: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5241: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5242: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5248: error: parse error before "jint" > mapscript_wrap.c:5248: error: parse error before '*' token > mapscript_wrap.c:5248: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowsizey': > mapscript_wrap.c:5249: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5249: error: parse error before "jresult" > mapscript_wrap.c:5253: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5254: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5255: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5258: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5258: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5263: error: syntax error before "void" > mapscript_wrap.c:5263: error: parse error before '*' token > mapscript_wrap.c:5263: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1size': > mapscript_wrap.c:5267: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5268: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5269: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5270: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5276: error: parse error before "jint" > mapscript_wrap.c:5276: error: parse error before '*' token > mapscript_wrap.c:5276: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1size': > mapscript_wrap.c:5277: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5277: error: parse error before "jresult" > mapscript_wrap.c:5281: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5282: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5283: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5286: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5286: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5291: error: syntax error before "void" > mapscript_wrap.c:5291: error: parse error before '*' token > mapscript_wrap.c:5291: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1minsize': > mapscript_wrap.c:5295: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5296: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5297: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5298: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5304: error: parse error before "jint" > mapscript_wrap.c:5304: error: parse error before '*' token > mapscript_wrap.c:5304: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1minsize': > mapscript_wrap.c:5305: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5305: error: parse error before "jresult" > mapscript_wrap.c:5309: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5310: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5311: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5314: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5314: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5319: error: syntax error before "void" > mapscript_wrap.c:5319: error: parse error before '*' token > mapscript_wrap.c:5319: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1maxsize': > mapscript_wrap.c:5323: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5324: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5325: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5326: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5332: error: parse error before "jint" > mapscript_wrap.c:5332: error: parse error before '*' token > mapscript_wrap.c:5332: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1maxsize': > mapscript_wrap.c:5333: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5333: error: parse error before "jresult" > mapscript_wrap.c:5337: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5338: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5339: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5342: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5342: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5347: error: syntax error before "void" > mapscript_wrap.c:5347: error: parse error before '*' token > mapscript_wrap.c:5347: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1position': > mapscript_wrap.c:5351: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5352: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5353: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5354: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5360: error: parse error before "jint" > mapscript_wrap.c:5360: error: parse error before '*' token > mapscript_wrap.c:5360: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1position': > mapscript_wrap.c:5361: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5361: error: parse error before "jresult" > mapscript_wrap.c:5365: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5366: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5367: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5370: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5370: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5375: error: syntax error before "void" > mapscript_wrap.c:5375: error: parse error before '*' token > mapscript_wrap.c:5375: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1offsetx': > mapscript_wrap.c:5379: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5380: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5381: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5382: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5388: error: parse error before "jint" > mapscript_wrap.c:5388: error: parse error before '*' token > mapscript_wrap.c:5388: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1offsetx': > mapscript_wrap.c:5389: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5389: error: parse error before "jresult" > mapscript_wrap.c:5393: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5394: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5395: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5398: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5398: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5403: error: syntax error before "void" > mapscript_wrap.c:5403: error: parse error before '*' token > mapscript_wrap.c:5403: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1offsety': > mapscript_wrap.c:5407: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5408: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5409: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5410: error: `jarg2' undeclared (first use in this function) > mapscript_wrap.c: At top level: > mapscript_wrap.c:5416: error: parse error before "jint" > mapscript_wrap.c:5416: error: parse error before '*' token > mapscript_wrap.c:5416: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1offsety': > mapscript_wrap.c:5417: error: `jint' undeclared (first use in this function) > mapscript_wrap.c:5417: error: parse error before "jresult" > mapscript_wrap.c:5421: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5422: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5423: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5426: error: `jresult' undeclared (first use in this function) > mapscript_wrap.c:5426: error: parse error before "result" > mapscript_wrap.c: At top level: > mapscript_wrap.c:5431: error: syntax error before "void" > mapscript_wrap.c:5431: error: parse error before '*' token > mapscript_wrap.c:5431: warning: return type defaults to `int' > mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1angle': > mapscript_wrap.c:5435: error: `jenv' undeclared (first use in this function) > mapscript_wrap.c:5436: error: `jcls' undeclared (first use in this function) > mapscript_wrap.c:5437: error: `jarg1' undeclared (first use in this function) > mapscript_wrap.c:5438: error: `jarg2' undeclared (first use in > From sgillies at FRII.COM Tue Jun 21 08:21:39 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 21 Jun 2005 10:21:39 -0500 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <42B1F848.8040702@uni-paderborn.de> Message-ID: I'm forwarding this to the users list. Hopefully, Umberto will be able to provide some insight. cheers, Sean On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > Dear Mr. Gillies, > > some weeks ago me and Florian Pepping contacted you because we had > problems using the Java Mapscript API. Thanks to you we could solve > these problems :-) > > Now we got our program doing what it's supposed to do but there is > still a big problem left which we were not able to solve yet: > We created a simple servlet which is created inside a Tomcat 5.0 > Webserver. This servlet created a map image (png/jpg) and displays > some specified objects on the map. (We use it for location based > services --> "show me the position of the next printer"). > After an irregular number of calls of our servlet which uses the Java > Mapscript API the complete Java VM and with it the Tomcat crashes. I > attached the error report below. The program works properly for a > number of calls (between 5 and 1000 :-) ) and after that it crashes. > We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, > 4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > 1.5.0. We also configured mapserver using the --with-threads option, > but all this did not help. By the way the mapserv cgi-module works > properly. > > Do you have an idea for this? > > Thanks for your anxiety > > Christian & Florian > University of Paderborn, Germany > > > ------------------------------------------------------------------- > > JavaMapscriptLoader: mapscript native library has been loaded. > * mapscript native library loaded * > > An unexpected exception has been detected in native code outside the > VM. > Unexpected Signal : 11 occurred at PC=0x3338268 > Function=delete_classObj+0x8 > Library=/usr/lib/libmapscript.so > > Current Java thread: > at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > Method) > at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > at > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > > Dynamic libraries: > Can not get information for pid = 10558 > > Heap at VM Abort: > Heap > def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > 0x08fc0000) > eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > tenured generation total 15048K, used 13624K [0x08fc0000, > 0x09e72000, > 0x0cae0000) > the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > 0x09e72000) > compacting perm gen total 18432K, used 18373K [0x0cae0000, > 0x0dce0000, > 0x10ae0000) > the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > 0x0dce0000) > > Local Time = Tue Jun 14 15:32:19 2005 > Elapsed Time = 246 > # > # The exception above was detected in native code outside the VM > # > # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > # > # An error report file has been saved as /tmp/hs_err_pid10558.log. > # Please refer to the file for further information. > # > > ------------------------------------------------------------------- > > On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > >> Dear Mr. Gillies, >> >> I?m a student of the University of Paderborn in Germany and member of >> the project group ?Location Based Services for Wireless Devices?. In >> this project we try to position laptops and other WLAN-enabled >> devices using the signal strength of the WLAN. According to their >> position, we want to offer location based services to the persons >> using the devices (where I am; where?s the next printer; is there a >> friend nearby) >> >> In order to do this, we want to use your mapserver and the Java >> Mapscript API to generate maps according to the actual position and >> situation. We like to customize the map of our building and add >> points, lines and so on. >> >> We have been able to compile the whole mapserver and the Java >> Mapscript API. A small Java example also works, which presents an >> unchanged map of our building. >> > > [...] > From oubinny at HOTMAIL.COM Tue Jun 21 08:31:06 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Tue, 21 Jun 2005 15:31:06 +0000 Subject: draw in a map Message-ID: hello, I would to draw objects in my map and make some calculations : - draw a zooming box, a point, a polygon, a line - make distance and surface measuring I know that's possible with jbox and rosa applets but i must only use javascript. I have 2 questions : is it possible to do all these operations with phpMapscript and javaScript ? can you give me some code examples ? Thanks Mehdi France From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Tue Jun 21 08:34:14 2005 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Tue, 21 Jun 2005 11:34:14 -0400 Subject: The Atlas of Canada: New AJAX-like MapServer Interface Message-ID: Hello, The Atlas of Canada recently deployed a new mapping interface for it's MapServer delivered maps. This interface implements an AJAX-like paradigm, with the main difference being that instead of using XML for client-server communications, an invisible Iframe and HTML is used. This avoids the potential ActiveX security problems on IE browsers, and makes the whole system much simpler IMHO. This interface was also thoroughly tested for usability (Interviews, focus groups, one-way mirrors, etc ...) by our target audience, which is the general public and the educational community. Here are a few examples: http://atlas.gc.ca/site/english/maps/economic/si/ls/l10 http://atlas.gc.ca/site/english/maps/peopleandsociety/immigration/imfb_01 http://atlas.gc.ca/site/english/maps/peopleandsociety/QOL/eco_qoluc_p http://atlas.gc.ca/site/english/maps/environment/seaice/break-up You can view any of our hundreds of maps using the menu on the left. Note that Reference Maps and Archive Maps are not MapServer driven. Archive Maps do have a similar type of interface implementation however. I look forward to getting some feedback from the MapServer community! Cheers, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From mario.basa at GMAIL.COM Tue Jun 21 08:39:05 2005 From: mario.basa at GMAIL.COM (Mario Basa) Date: Wed, 22 Jun 2005 00:39:05 +0900 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Hello, I used to get these problems until I synchronized the cleass doing the map operations (synchronize(this)). I also placed tons of try...catch hoping that the exceptions can be caught before it brings down tomcat. I am using 4.6.0 and it has been very stable for me so far, although I haven't put too much stress on the servlet yet. mario. yokohama,japan. On 6/22/05, Sean Gillies wrote: > I'm forwarding this to the users list. Hopefully, Umberto will be able > to provide some insight. > > cheers, > Sean > > On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > > > Dear Mr. Gillies, > > > > some weeks ago me and Florian Pepping contacted you because we had > > problems using the Java Mapscript API. Thanks to you we could solve > > these problems :-) > > > > Now we got our program doing what it's supposed to do but there is > > still a big problem left which we were not able to solve yet: > > We created a simple servlet which is created inside a Tomcat 5.0 > > Webserver. This servlet created a map image (png/jpg) and displays > > some specified objects on the map. (We use it for location based > > services --> "show me the position of the next printer"). > > After an irregular number of calls of our servlet which uses the Java > > Mapscript API the complete Java VM and with it the Tomcat crashes. I > > attached the error report below. The program works properly for a > > number of calls (between 5 and 1000 :-) ) and after that it crashes. > > We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, > > 4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > > 1.5.0. We also configured mapserver using the --with-threads option, > > but all this did not help. By the way the mapserv cgi-module works > > properly. > > > > Do you have an idea for this? > > > > Thanks for your anxiety > > > > Christian & Florian > > University of Paderborn, Germany > > > > > > ------------------------------------------------------------------- > > > > JavaMapscriptLoader: mapscript native library has been loaded. > > * mapscript native library loaded * > > > > An unexpected exception has been detected in native code outside the > > VM. > > Unexpected Signal : 11 occurred at PC=0x3338268 > > Function=delete_classObj+0x8 > > Library=/usr/lib/libmapscript.so > > > > Current Java thread: > > at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > > Method) > > at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > > at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > > at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > > at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > > at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > > at > > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > > > > Dynamic libraries: > > Can not get information for pid = 10558 > > > > Heap at VM Abort: > > Heap > > def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > > 0x08fc0000) > > eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > > from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > > to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > > tenured generation total 15048K, used 13624K [0x08fc0000, > > 0x09e72000, > > 0x0cae0000) > > the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > > 0x09e72000) > > compacting perm gen total 18432K, used 18373K [0x0cae0000, > > 0x0dce0000, > > 0x10ae0000) > > the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > > 0x0dce0000) > > > > Local Time = Tue Jun 14 15:32:19 2005 > > Elapsed Time = 246 > > # > > # The exception above was detected in native code outside the VM > > # > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > > # > > # An error report file has been saved as /tmp/hs_err_pid10558.log. > > # Please refer to the file for further information. > > # > > > > ------------------------------------------------------------------- > > > > On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > > > >> Dear Mr. Gillies, > >> > >> I'm a student of the University of Paderborn in Germany and member of > >> the project group "Location Based Services for Wireless Devices". In > >> this project we try to position laptops and other WLAN-enabled > >> devices using the signal strength of the WLAN. According to their > >> position, we want to offer location based services to the persons > >> using the devices (where I am; where's the next printer; is there a > >> friend nearby) > >> > >> In order to do this, we want to use your mapserver and the Java > >> Mapscript API to generate maps according to the actual position and > >> situation. We like to customize the map of our building and add > >> points, lines and so on. > >> > >> We have been able to compile the whole mapserver and the Java > >> Mapscript API. A small Java example also works, which presents an > >> unchanged map of our building. > >> > > > [...] > > > From David.Fawcett at STATE.MN.US Tue Jun 21 08:45:42 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 21 Jun 2005 10:45:42 -0500 Subject: draw in a map Message-ID: Mehdi, Take a look at Steve Lime's Landview application. It is all done with Javascript/DHTML. http://www.dnr.state.mn.us/maps/landview.html David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mehdi Kiman Sent: Tuesday, June 21, 2005 10:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] draw in a map hello, I would to draw objects in my map and make some calculations : - draw a zooming box, a point, a polygon, a line - make distance and surface measuring I know that's possible with jbox and rosa applets but i must only use javascript. I have 2 questions : is it possible to do all these operations with phpMapscript and javaScript ? can you give me some code examples ? Thanks Mehdi France From umberto.nicoletti at GMAIL.COM Tue Jun 21 08:49:20 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Jun 2005 17:49:20 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Christian, are you calling the delete_ methods directly in your code or are you using some special gc paramaters? As a side note the --use-threads option to configure is *absolutely* necessary, as are brakes on your car. I think we should write it in the README (as if someone actually cared to read it :-( ). Best regards, Umberto On 6/21/05, Sean Gillies wrote: > I'm forwarding this to the users list. Hopefully, Umberto will be able > to provide some insight. > > cheers, > Sean > > On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > > > Dear Mr. Gillies, > > > > some weeks ago me and Florian Pepping contacted you because we had > > problems using the Java Mapscript API. Thanks to you we could solve > > these problems :-) > > > > Now we got our program doing what it's supposed to do but there is > > still a big problem left which we were not able to solve yet: > > We created a simple servlet which is created inside a Tomcat 5.0 > > Webserver. This servlet created a map image (png/jpg) and displays > > some specified objects on the map. (We use it for location based > > services --> "show me the position of the next printer"). > > After an irregular number of calls of our servlet which uses the Java > > Mapscript API the complete Java VM and with it the Tomcat crashes. I > > attached the error report below. The program works properly for a > > number of calls (between 5 and 1000 :-) ) and after that it crashes. > > We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, > > 4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > > 1.5.0. We also configured mapserver using the --with-threads option, > > but all this did not help. By the way the mapserv cgi-module works > > properly. > > > > Do you have an idea for this? > > > > Thanks for your anxiety > > > > Christian & Florian > > University of Paderborn, Germany > > > > > > ------------------------------------------------------------------- > > > > JavaMapscriptLoader: mapscript native library has been loaded. > > * mapscript native library loaded * > > > > An unexpected exception has been detected in native code outside the > > VM. > > Unexpected Signal : 11 occurred at PC=0x3338268 > > Function=delete_classObj+0x8 > > Library=/usr/lib/libmapscript.so > > > > Current Java thread: > > at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > > Method) > > at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > > at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > > at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > > at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > > at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > > at > > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > > > > Dynamic libraries: > > Can not get information for pid = 10558 > > > > Heap at VM Abort: > > Heap > > def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > > 0x08fc0000) > > eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > > from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > > to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > > tenured generation total 15048K, used 13624K [0x08fc0000, > > 0x09e72000, > > 0x0cae0000) > > the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > > 0x09e72000) > > compacting perm gen total 18432K, used 18373K [0x0cae0000, > > 0x0dce0000, > > 0x10ae0000) > > the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > > 0x0dce0000) > > > > Local Time = Tue Jun 14 15:32:19 2005 > > Elapsed Time = 246 > > # > > # The exception above was detected in native code outside the VM > > # > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > > # > > # An error report file has been saved as /tmp/hs_err_pid10558.log. > > # Please refer to the file for further information. > > # > > > > ------------------------------------------------------------------- > > > > On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > > > >> Dear Mr. Gillies, > >> > >> I'm a student of the University of Paderborn in Germany and member of > >> the project group "Location Based Services for Wireless Devices". In > >> this project we try to position laptops and other WLAN-enabled > >> devices using the signal strength of the WLAN. According to their > >> position, we want to offer location based services to the persons > >> using the devices (where I am; where's the next printer; is there a > >> friend nearby) > >> > >> In order to do this, we want to use your mapserver and the Java > >> Mapscript API to generate maps according to the actual position and > >> situation. We like to customize the map of our building and add > >> points, lines and so on. > >> > >> We have been able to compile the whole mapserver and the Java > >> Mapscript API. A small Java example also works, which presents an > >> unchanged map of our building. > >> > > > [...] > > > From steve.lime at DNR.STATE.MN.US Tue Jun 21 09:31:38 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Jun 2005 11:31:38 -0500 Subject: The Atlas of Canada: New AJAX-like MapServer Interface Message-ID: Can't comment on the XML/AJAX stuff but the interface is terrific. You've have addressed many of the problems we've seen in just the first day of one-way mirror testings of our Recreation Compass application. People click on something and they expect immediate gratification. They simply cannot handle two-click zooms- damn MapQuest... Anyway, very nice work. I look forward to stealing many of your ideas! Steve >>> "Doyon, Jean-Francois" 06/21/05 10:34 AM >>> Hello, The Atlas of Canada recently deployed a new mapping interface for it's MapServer delivered maps. This interface implements an AJAX-like paradigm, with the main difference being that instead of using XML for client-server communications, an invisible Iframe and HTML is used. This avoids the potential ActiveX security problems on IE browsers, and makes the whole system much simpler IMHO. This interface was also thoroughly tested for usability (Interviews, focus groups, one-way mirrors, etc ...) by our target audience, which is the general public and the educational community. Here are a few examples: http://atlas.gc.ca/site/english/maps/economic/si/ls/l10 http://atlas.gc.ca/site/english/maps/peopleandsociety/immigration/imfb_01 http://atlas.gc.ca/site/english/maps/peopleandsociety/QOL/eco_qoluc_p http://atlas.gc.ca/site/english/maps/environment/seaice/break-up You can view any of our hundreds of maps using the menu on the left. Note that Reference Maps and Archive Maps are not MapServer driven. Archive Maps do have a similar type of interface implementation however. I look forward to getting some feedback from the MapServer community! Cheers, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From john.cole at UAI.COM Tue Jun 21 09:37:15 2005 From: john.cole at UAI.COM (John Cole) Date: Tue, 21 Jun 2005 11:37:15 -0500 Subject: problem with annotation and postgis grouped road names... Message-ID: Hello, I'm still having some problems getting an annotation layer to draw using grouped road names. Drawing all of the roads is quick but cluttered. Drawing the grouped road names does not return an error but it doesn't draw any labels either. My data is tiger roads from the ESRI website. I'm attaching a jpg of the two statements. Here is my layer statement: LAYER NAME Highways_anno STATUS default GROUP roads CONNECTIONTYPE postgis CONNECTION "user=mapserver password=mapserver dbname=florence host=localhost" #DATA "the_geom from tgr_roads" # roads.jpg DATA "the_geom FROM (SELECT collect(the_geom) AS the_geom, rd_name FROM tgr_roads GROUP BY rd_name) AS new_table USING UNIQUE rd_name USING SRID=-1" # grouped_names.jpg TYPE annotation LABELITEM "rd_name" MAXSCALE 12000 CLASS LABEL COLOR 0 0 0 TYPE TRUETYPE ANGLE AUTO FONT arial SIZE 8 ANTIALIAS TRUE POSITION CC MINDISTANCE 10 BUFFER 5 END END END This is postgis 1.0.1 and mapserver 4.4 and 4.6. Any help would be appreciated. Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: grouped_names.jpg Type: image/jpeg Size: 8005 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: roads.jpg Type: image/jpeg Size: 22698 bytes Desc: not available URL: From john.cole at UAI.COM Tue Jun 21 09:47:34 2005 From: john.cole at UAI.COM (John Cole) Date: Tue, 21 Jun 2005 11:47:34 -0500 Subject: bug in 4.6 symbols? Message-ID: I've been trying out the release version of 4.6 and have found that it still has a problem with some of my symbols and classe. I'm including an image of how it appears in 4.4 and how it appears in 4.6. Here is my class definition: CLASS NAME 'Points' COLOR 0 128 0 SYMBOL 'square' SIZE 5 STYLE SYMBOL "square" SIZE 3 COLOR 255 255 255 END STYLE SYMBOL "square" SIZE 1 COLOR 0 128 0 END END And here is my square from the symbols file: Symbol Name 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1 0 1 END END Is this a bug in 4.6 or did something change with the way symbols are drawn? Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: ms46.jpg Type: image/jpeg Size: 9514 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms44.jpg Type: image/jpeg Size: 9549 bytes Desc: not available URL: From mike.and.kerry at GMAIL.COM Tue Jun 21 09:50:31 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Tue, 21 Jun 2005 08:50:31 -0800 Subject: Landview DHTML Demo Links Broken? Message-ID: Has anyone been able to connect to the DNR demos lately? Every time I follow one of the links scattered around the list I get an error page at DNR stating that the page has moved. Specifically I am looking for the landview dhtml demo with the measure functionality. Does anyone have an alternative location available? Thanks -Mike From abe.gillespie at GMAIL.COM Tue Jun 21 10:00:03 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 21 Jun 2005 13:00:03 -0400 Subject: Landview DHTML Demo Links Broken? In-Reply-To: <631c85c105062109507fb59c0a@mail.gmail.com> Message-ID: That's what I'm talk'n 'bout (Willis)! -Abe On 6/21/05, Mike Davis wrote: > Has anyone been able to connect to the DNR demos lately? Every time I > follow one of the links scattered around the list I get an error page > at DNR stating that the page has moved. > > Specifically I am looking for the landview dhtml demo with the measure > functionality. Does anyone have an alternative location available? > > Thanks > > -Mike > From steve.lime at DNR.STATE.MN.US Tue Jun 21 10:25:36 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Jun 2005 12:25:36 -0500 Subject: Landview DHTML Demo Links Broken? Message-ID: Try http://www.dnr.state.mn.us/maps/landview.html. Sorry about that. Steve >>> Mike Davis 06/21/05 11:50 AM >>> Has anyone been able to connect to the DNR demos lately? Every time I follow one of the links scattered around the list I get an error page at DNR stating that the page has moved. Specifically I am looking for the landview dhtml demo with the measure functionality. Does anyone have an alternative location available? Thanks -Mike From steve.lime at DNR.STATE.MN.US Tue Jun 21 10:32:07 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Jun 2005 12:32:07 -0500 Subject: queryByFeatures: VERY URGENT!!! Message-ID: ** High Priority ** Certainly isn't supposed to work that way. How do you know this is happening - sample images or something. There haven't been many (any) changes in that code any time recently. I use the feature query capabilities a lot (via CGI) and have had know troubles... Steve >>> Daniele Margotti 06/21/05 5:00 AM >>> Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From ealpert at DIGITALGLOBE.COM Tue Jun 21 10:45:47 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 21 Jun 2005 11:45:47 -0600 Subject: Trouble with displaying projected shapefile Message-ID: Do you pass the layer name in the URL (&layers=world_eca)? The status of your layer is ON this means it's only displayed if requested. Change it to DEFAULT if you want it displayed regardless of whether you ask for it. The only other thing I notice is that you pass Decimal Degrees Extents but say the UNITS are METERS in your mapfile. I'm sure this is being interpreted wrong. Do a shpdump on the shapfile and use the "File Bounds" listed as your extents. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hoeven, Maarten van der Sent: Tuesday, June 21, 2005 5:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Trouble with displaying projected shapefile Dear list, I have a shape file, world_eca, projected in "north pole stereographic". Below are the projection specifications. I added the shape file in the map, but I do not manage to display it in mapserver. Is there something obvious I am doing wrong? An "echo $gpoMap->getProjection()" reveals "+proj=stere +lat_ts=90 +lat_0=90 +lon_0=0 +k_0=1 +x_0=0 +y_0=0" Regards, Maarten van der Hoeven --- projection specs --- PROJCS["North_Pole_Stereographic", GEOGCS["GCS_WGS_1984", DATUM["D_WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Stereographic"], PARAMETER["False_Easting",0.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",0.0], PARAMETER["Scale_Factor",1.0], PARAMETER["Latitude_Of_Origin",90.0], UNIT["Meter",1.0]] --- map file --- # # Start of map file # NAME ECAD STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -90 0 90 90 UNITS meters SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt PROJECTION "+proj=stere" "+lat_ts=90" "+lat_0=90" "+lon_0=0" "+k_0=1" "+x_0=0" "+y_0=0" END QUERYMAP STATUS ON STYLE SELECTED COLOR 255 0 0 END WEB MINSCALE 2000 MAXSCALE 50000000 IMAGEPATH "/webdata/ecad/htdocs/tmp/" IMAGEURL "/tmp/" LOG /tmp/gmap.log END REFERENCE IMAGE images/keymap.png EXTENT -2200000 -712631 3072800 3840000 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 255 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 10 STATUS ON END LAYER NAME world_eca PROJECTION "+proj=stere" "+lat_ts=90" "+lat_0=90" "+lon_0=0" "+k_0=1" "+x_0=0" "+y_0=0" END TYPE POLYGON STATUS ON DATA world_eca CLASS STYLE OUTLINECOLOR 100 100 100 COLOR 191 209 255 END END END END # Map File Drs. Maarten van der Hoeven ECA&D Project PO Box 201 3730 AE De Bilt The Netherlands Phone: +31-30-2206 402 Fax: +31-30-2204 614 Email: hoevenvd at knmi.nl (personal) Email: eca at knmi.nl (project) Website: http://eca.knmi.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.and.kerry at GMAIL.COM Tue Jun 21 11:20:58 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Tue, 21 Jun 2005 10:20:58 -0800 Subject: Landview DHTML Demo Links Broken? In-Reply-To: Message-ID: Thanks for the link, the page doesn't seem to load right now, might be a congestion issue. On 6/21/05, Steve Lime wrote: > Try http://www.dnr.state.mn.us/maps/landview.html. Sorry about that. > > Steve > > >>> Mike Davis 06/21/05 11:50 AM >>> > Has anyone been able to connect to the DNR demos lately? Every time I > follow one of the links scattered around the list I get an error page > at DNR stating that the page has moved. > > Specifically I am looking for the landview dhtml demo with the measure > functionality. Does anyone have an alternative location available? > > Thanks > > -Mike > > From mailings at ABIWOOD99.DE Tue Jun 21 11:29:37 2005 From: mailings at ABIWOOD99.DE (Christian Schroeder) Date: Tue, 21 Jun 2005 20:29:37 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <8efeb4a805062108392d0a14fe@mail.gmail.com> Message-ID: Hello Mario, thank you for this tip, I've read about this problem somewhere else and tagged my whole method which uses the mapserver calls as "synchronized", but it did'n help. I will try it the way you supposed to and hope it will not crash then.. Thank you, Christian, Germany Mario Basa schrieb: >Hello, > >I used to get these problems until I synchronized the cleass doing the >map operations (synchronize(this)). I also placed tons of try...catch >hoping that the exceptions can be caught before it brings down tomcat. > >I am using 4.6.0 and it has been very stable for me so far, although I >haven't put too much stress on the servlet yet. > >mario. >yokohama,japan. > > >On 6/22/05, Sean Gillies wrote: > > >>I'm forwarding this to the users list. Hopefully, Umberto will be able >>to provide some insight. >> >>cheers, >>Sean >> >>On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: >> >> >> >>>Dear Mr. Gillies, >>> >>>some weeks ago me and Florian Pepping contacted you because we had >>>problems using the Java Mapscript API. Thanks to you we could solve >>>these problems :-) >>> >>>Now we got our program doing what it's supposed to do but there is >>>still a big problem left which we were not able to solve yet: >>>We created a simple servlet which is created inside a Tomcat 5.0 >>>Webserver. This servlet created a map image (png/jpg) and displays >>>some specified objects on the map. (We use it for location based >>>services --> "show me the position of the next printer"). >>>After an irregular number of calls of our servlet which uses the Java >>>Mapscript API the complete Java VM and with it the Tomcat crashes. I >>>attached the error report below. The program works properly for a >>>number of calls (between 5 and 1000 :-) ) and after that it crashes. >>>We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, >>>4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and >>>1.5.0. We also configured mapserver using the --with-threads option, >>>but all this did not help. By the way the mapserv cgi-module works >>>properly. >>> >>>Do you have an idea for this? >>> >>>Thanks for your anxiety >>> >>>Christian & Florian >>>University of Paderborn, Germany >>> >>> >>>------------------------------------------------------------------- >>> >>>JavaMapscriptLoader: mapscript native library has been loaded. >>> * mapscript native library loaded * >>> >>>An unexpected exception has been detected in native code outside the >>>VM. >>>Unexpected Signal : 11 occurred at PC=0x3338268 >>>Function=delete_classObj+0x8 >>>Library=/usr/lib/libmapscript.so >>> >>>Current Java thread: >>> at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native >>>Method) >>> at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) >>> at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) >>> at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) >>> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) >>> at java.lang.ref.Finalizer.access$100(Finalizer.java:14) >>> at >>>java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) >>> >>>Dynamic libraries: >>>Can not get information for pid = 10558 >>> >>>Heap at VM Abort: >>>Heap >>> def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, >>>0x08fc0000) >>> eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) >>> from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) >>> to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) >>> tenured generation total 15048K, used 13624K [0x08fc0000, >>>0x09e72000, >>>0x0cae0000) >>> the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, >>>0x09e72000) >>> compacting perm gen total 18432K, used 18373K [0x0cae0000, >>>0x0dce0000, >>>0x10ae0000) >>> the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, >>>0x0dce0000) >>> >>>Local Time = Tue Jun 14 15:32:19 2005 >>>Elapsed Time = 246 >>># >>># The exception above was detected in native code outside the VM >>># >>># Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) >>># >>># An error report file has been saved as /tmp/hs_err_pid10558.log. >>># Please refer to the file for further information. >>># >>> >>>------------------------------------------------------------------- >>> >>>On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: >>> >>> >>> >>>>Dear Mr. Gillies, >>>> >>>>I'm a student of the University of Paderborn in Germany and member of >>>> the project group "Location Based Services for Wireless Devices". In >>>> this project we try to position laptops and other WLAN-enabled >>>>devices using the signal strength of the WLAN. According to their >>>>position, we want to offer location based services to the persons >>>>using the devices (where I am; where's the next printer; is there a >>>>friend nearby) >>>> >>>>In order to do this, we want to use your mapserver and the Java >>>>Mapscript API to generate maps according to the actual position and >>>>situation. We like to customize the map of our building and add >>>>points, lines and so on. >>>> >>>>We have been able to compile the whole mapserver and the Java >>>>Mapscript API. A small Java example also works, which presents an >>>>unchanged map of our building. >>>> >>>>[...] >>>> >>>> > > > > From mailings at ABIWOOD99.DE Tue Jun 21 11:33:32 2005 From: mailings at ABIWOOD99.DE (Christian Schroeder) Date: Tue, 21 Jun 2005 20:33:32 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <75b4b93e050621084968fe1517@mail.gmail.com> Message-ID: Hello Umberto, thank your for your immediate answer. I do not call the delete_ methody directly and don't think I am using special gc parameters. And... I have read the README file before compiling the mapserver :-) I will try to get it to work with "synchronized"-flags als Mario Basa supposed. Thank you! Christian Umberto Nicoletti schrieb: >Christian, >are you calling the delete_ methods directly in your code or are you >using some special gc paramaters? > >As a side note the --use-threads option to configure is *absolutely* >necessary, as are brakes on your car. I think we should write it in >the README (as if someone actually cared to read it :-( ). > >Best regards, >Umberto > > >On 6/21/05, Sean Gillies wrote: > > >>I'm forwarding this to the users list. Hopefully, Umberto will be able >>to provide some insight. >> >>cheers, >>Sean >> >>On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: >> >> >> >>>Dear Mr. Gillies, >>> >>>some weeks ago me and Florian Pepping contacted you because we had >>>problems using the Java Mapscript API. Thanks to you we could solve >>>these problems :-) >>> >>>Now we got our program doing what it's supposed to do but there is >>>still a big problem left which we were not able to solve yet: >>>We created a simple servlet which is created inside a Tomcat 5.0 >>>Webserver. This servlet created a map image (png/jpg) and displays >>>some specified objects on the map. (We use it for location based >>>services --> "show me the position of the next printer"). >>>After an irregular number of calls of our servlet which uses the Java >>>Mapscript API the complete Java VM and with it the Tomcat crashes. I >>>attached the error report below. The program works properly for a >>>number of calls (between 5 and 1000 :-) ) and after that it crashes. >>>We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, >>>4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and >>>1.5.0. We also configured mapserver using the --with-threads option, >>>but all this did not help. By the way the mapserv cgi-module works >>>properly. >>> >>>Do you have an idea for this? >>> >>>Thanks for your anxiety >>> >>>Christian & Florian >>>University of Paderborn, Germany >>> >>> >>>------------------------------------------------------------------- >>> >>>JavaMapscriptLoader: mapscript native library has been loaded. >>> * mapscript native library loaded * >>> >>>An unexpected exception has been detected in native code outside the >>>VM. >>>Unexpected Signal : 11 occurred at PC=0x3338268 >>>Function=delete_classObj+0x8 >>>Library=/usr/lib/libmapscript.so >>> >>>Current Java thread: >>> at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native >>>Method) >>> at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) >>> at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) >>> at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) >>> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) >>> at java.lang.ref.Finalizer.access$100(Finalizer.java:14) >>> at >>>java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) >>> >>>Dynamic libraries: >>>Can not get information for pid = 10558 >>> >>>Heap at VM Abort: >>>Heap >>> def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, >>>0x08fc0000) >>> eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) >>> from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) >>> to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) >>> tenured generation total 15048K, used 13624K [0x08fc0000, >>>0x09e72000, >>>0x0cae0000) >>> the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, >>>0x09e72000) >>> compacting perm gen total 18432K, used 18373K [0x0cae0000, >>>0x0dce0000, >>>0x10ae0000) >>> the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, >>>0x0dce0000) >>> >>>Local Time = Tue Jun 14 15:32:19 2005 >>>Elapsed Time = 246 >>># >>># The exception above was detected in native code outside the VM >>># >>># Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) >>># >>># An error report file has been saved as /tmp/hs_err_pid10558.log. >>># Please refer to the file for further information. >>># >>> >>>------------------------------------------------------------------- >>> >>>On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: >>> >>> >>> >>>>Dear Mr. Gillies, >>>> >>>>I'm a student of the University of Paderborn in Germany and member of >>>> the project group "Location Based Services for Wireless Devices". In >>>> this project we try to position laptops and other WLAN-enabled >>>>devices using the signal strength of the WLAN. According to their >>>>position, we want to offer location based services to the persons >>>>using the devices (where I am; where's the next printer; is there a >>>>friend nearby) >>>> >>>>In order to do this, we want to use your mapserver and the Java >>>>Mapscript API to generate maps according to the actual position and >>>>situation. We like to customize the map of our building and add >>>>points, lines and so on. >>>> >>>>We have been able to compile the whole mapserver and the Java >>>>Mapscript API. A small Java example also works, which presents an >>>>unchanged map of our building. >>>> >>>>[...] >>>> >>>> > > > > From woodbri at SWOODBRIDGE.COM Tue Jun 21 11:35:07 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 21 Jun 2005 14:35:07 -0400 Subject: PostGIS Question Message-ID: I'm newbie to PostGIS, I am wondering if the mapserver integration uses the PostGIS spatial indexes when rendering a map or if it needs to be made explicitly in the layer definition? Does the final SQL do something like: select whatever, the_geom from table where the_geom && bbox2d(image_extents) and ... I am guessing/hoping it probably does. Is there an easy way to get mapserver to dump the SQL to a log file for inspection? Thanks, -Steve W. From Maarten.van.der.Hoeven at KNMI.NL Tue Jun 21 12:09:18 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Tue, 21 Jun 2005 21:09:18 +0200 Subject: Trouble with displaying projected shapefile Message-ID: When you know what to look at, things are soooooo obvious. Thanks Ethan, the UNITS was wrong. It is working like a charm now. Regards, Maarten -----Original Message----- From: UMN MapServer Users List on behalf of Ethan Alpert Sent: Tue 6/21/2005 7:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Trouble with displaying projected shapefile Do you pass the layer name in the URL (&layers=world_eca)? The status of your layer is ON this means it's only displayed if requested. Change it to DEFAULT if you want it displayed regardless of whether you ask for it. The only other thing I notice is that you pass Decimal Degrees Extents but say the UNITS are METERS in your mapfile. I'm sure this is being interpreted wrong. Do a shpdump on the shapfile and use the "File Bounds" listed as your extents. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hoeven, Maarten van der Sent: Tuesday, June 21, 2005 5:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Trouble with displaying projected shapefile Dear list, I have a shape file, world_eca, projected in "north pole stereographic". Below are the projection specifications. I added the shape file in the map, but I do not manage to display it in mapserver. Is there something obvious I am doing wrong? An "echo $gpoMap->getProjection()" reveals "+proj=stere +lat_ts=90 +lat_0=90 +lon_0=0 +k_0=1 +x_0=0 +y_0=0" Regards, Maarten van der Hoeven --- projection specs --- PROJCS["North_Pole_Stereographic", GEOGCS["GCS_WGS_1984", DATUM["D_WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Stereographic"], PARAMETER["False_Easting",0.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",0.0], PARAMETER["Scale_Factor",1.0], PARAMETER["Latitude_Of_Origin",90.0], UNIT["Meter",1.0]] --- map file --- # # Start of map file # NAME ECAD STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -90 0 90 90 UNITS meters SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt PROJECTION "+proj=stere" "+lat_ts=90" "+lat_0=90" "+lon_0=0" "+k_0=1" "+x_0=0" "+y_0=0" END QUERYMAP STATUS ON STYLE SELECTED COLOR 255 0 0 END WEB MINSCALE 2000 MAXSCALE 50000000 IMAGEPATH "/webdata/ecad/htdocs/tmp/" IMAGEURL "/tmp/" LOG /tmp/gmap.log END REFERENCE IMAGE images/keymap.png EXTENT -2200000 -712631 3072800 3840000 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 255 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 10 STATUS ON END LAYER NAME world_eca PROJECTION "+proj=stere" "+lat_ts=90" "+lat_0=90" "+lon_0=0" "+k_0=1" "+x_0=0" "+y_0=0" END TYPE POLYGON STATUS ON DATA world_eca CLASS STYLE OUTLINECOLOR 100 100 100 COLOR 191 209 255 END END END END # Map File Drs. Maarten van der Hoeven ECA&D Project PO Box 201 3730 AE De Bilt The Netherlands Phone: +31-30-2206 402 Fax: +31-30-2204 614 Email: hoevenvd at knmi.nl (personal) Email: eca at knmi.nl (project) Website: http://eca.knmi.nl From pramsey at REFRACTIONS.NET Tue Jun 21 12:48:48 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 21 Jun 2005 12:48:48 -0700 Subject: PostGIS Question In-Reply-To: <42B85DDB.8020602@swoodbridge.com> Message-ID: "thecolumn from thegeom" get re-written into SQL for PostGIS. The SQL does include a call to the spatial index, so you do not need to be explicit about it. The only time you need to be explicit is if you use embedded SQL, and it is particularly complex. Even for complex SQL, mapserver will add the bounding box to the request, but it just might not add it in the most effective/efficient place. To see a log, turn on statement logging in PostgreSQL, or turn on DEBUG in your postgis layer. Paul Stephen Woodbridge wrote: > I'm newbie to PostGIS, I am wondering if the mapserver integration uses > the PostGIS spatial indexes when rendering a map or if it needs to be > made explicitly in the layer definition? > > Does the final SQL do something like: > > select whatever, the_geom > from table > where the_geom && bbox2d(image_extents) and ... > > I am guessing/hoping it probably does. Is there an easy way to get > mapserver to dump the SQL to a log file for inspection? > > Thanks, > -Steve W. From david.hunter at FNF.COM Tue Jun 21 13:26:48 2005 From: david.hunter at FNF.COM (David Hunter) Date: Tue, 21 Jun 2005 15:26:48 -0500 Subject: tomcat cgi problem Message-ID: I am a newbie trying to set up MapServer as a CGI program under Tomcat 5.0 and Win2000. I copied the contents of the Mapserver bin directory to Tomcat 5.0/webapps/ROOT/WEB_INF/cgi/ and did all the other steps to enable CGI in Tomcat. When I do http://localhost:8080/cgi-bin/mapserv.exe? nothing appears in the browser, and i get this error in the log file: runCGI (stderr):Unrecognized character \x90 at C:\Tomcat 5.0 \webapps\ROOT\WEB-INF\cgi\mapserv.exe line 1. I searched the archives here, and somebody mentioned testing mapserv.exe at the command line with the -v switch. That returns this: MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS =WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=ORACLESP ATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE From szekeres.tamas at FREEMAIL.HU Tue Jun 21 14:30:41 2005 From: szekeres.tamas at FREEMAIL.HU (=?iso-8859-2?Q?Szekeres_Tam=E1s?=) Date: Tue, 21 Jun 2005 23:30:41 +0200 Subject: SWIG typemap for C# to receive gdBuffer as byte array In-Reply-To: <002f01c576a7$9c3481f0$6501a8c0@Szekeres1> Message-ID: Mapserver 4.6 implements imageObj.getBytes() to get the image as array of bytes. To generate C# wrapper a proper typemap should be created for this language. The folowing code gives a solution, if you have a better one please reply: create a file eg. csmodule.i with the following contents: %typemap(ctype) gdBuffer %{void%} %typemap(imtype) gdBuffer %{void%} %typemap(cstype) gdBuffer %{byte[]%} %typemap(out) gdBuffer %{ SWIG_csharp_bytearray_callback($1.data, $1.size); gdFree($1.data); %} %typemap(csout) gdBuffer { $imcall; return $modulePINVOKE.GetBytes(); } %insert(runtime) %{ /* Callback for returning byte arrays to C#, the resulting array is not marshaled back, so the caller should call GetBytes to get back the results */ typedef void (SWIGSTDCALL* SWIG_CSharpByteArrayHelperCallback)(const unsigned char *, const int); static SWIG_CSharpByteArrayHelperCallback SWIG_csharp_bytearray_callback = NULL; %} %pragma(csharp) imclasscode=%{ class SWIGByteArrayHelper { public delegate void SWIGByteArrayDelegate(IntPtr data, int size); static SWIGByteArrayDelegate bytearrayDelegate = new SWIGByteArrayDelegate(CreateByteArray); [DllImport("$dllimport", EntryPoint="SWIGRegisterByteArrayCallback_$module")] public static extern void SWIGRegisterByteArrayCallback_mapscript(SWIGByteArrayDelegate bytearrayDelegate); static void CreateByteArray(IntPtr data, int size) { arraybuffer = new byte[size]; Marshal.Copy(data, arraybuffer, 0, size); } static SWIGByteArrayHelper() { SWIGRegisterByteArrayCallback_$module(bytearrayDelegate); } } static SWIGByteArrayHelper bytearrayHelper = new SWIGByteArrayHelper(); static byte[] arraybuffer; internal static byte[] GetBytes() { return arraybuffer; } %} %insert(runtime) %{ #ifdef __cplusplus extern "C" #endif DllExport void SWIGSTDCALL SWIGRegisterByteArrayCallback_$module(SWIG_CSharpByteArrayHelperCallback callback) { SWIG_csharp_bytearray_callback = callback; } %} modify mapscript.i as /* C# */ #ifdef SWIGCSHARP %include "csmodule.i" #endif the method can be accessed as the following code in c#: using(imageObj image = map.draw()) { byte[] img = image.getBytes(); using (MemoryStream ms = new MemoryStream(img)) { mapPicture.Image = Image.FromStream(ms); } } Tamas Szekeres From mailings at ABIWOOD99.DE Tue Jun 21 15:22:27 2005 From: mailings at ABIWOOD99.DE (Christian Schroeder) Date: Wed, 22 Jun 2005 00:22:27 +0200 Subject: tomcat cgi problem In-Reply-To: Message-ID: Hello David, you need to send some parameters to the mapserv.exe in order to introduce it to do something. One of them is the configuration mapfile. When I started with the UMN Mapserver I installed the Demo Workshop application avaliable at the downloadpage (http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip). I think this is a good example which illustrates how mapserv.exe works and should give you an idea of how you can use it for your purpose. The output you sent shows that Mapserv.exe seems to work properly, and if you configured tomcat to run cgi, there should be no problems. But I have not tested the cgi module on tomcat yet. Bye, Christian David Hunter schrieb: >I am a newbie trying to set up MapServer as a CGI program under Tomcat 5.0 >and Win2000. I copied the contents of the Mapserver bin directory to >Tomcat 5.0/webapps/ROOT/WEB_INF/cgi/ and did all the other steps to enable >CGI in Tomcat. When I do http://localhost:8080/cgi-bin/mapserv.exe? >nothing appears in the browser, and i get this error in the log file: > >runCGI (stderr):Unrecognized character \x90 at C:\Tomcat 5.0 >\webapps\ROOT\WEB-INF\cgi\mapserv.exe line 1. > >I searched the archives here, and somebody mentioned testing mapserv.exe at >the command line with the -v switch. That returns this: > >MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF >OUTPUT=SWF >SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >SUPPORTS >=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS >INPUT=ORACLESP >ATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > From numerous at GMAIL.COM Tue Jun 21 20:31:57 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Tue, 21 Jun 2005 22:31:57 -0500 Subject: indexed tif images do not display Message-ID: Hi Guys, I have created a tile index for my tif images using gdaltindex. Everything works fine on my workstation, I declared a raster in my mapfile. Everything worked great. Next, I copied the tif files, index files and layer definition to my manager's workstation to their corresponding locations. Now, both of the workstations are configured the same way, but my tifs do not display on the manager's workstation. Any piece of advice on what could go wrong? Thank you, Yar From margottid at COMUNE.LUGO.RA.IT Tue Jun 21 23:28:51 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Wed, 22 Jun 2005 08:28:51 +0200 Subject: queryByFeatures: VERY URGENT!!! In-Reply-To: Message-ID: Hi Steve, I only need to extract data when my parcel (from parcel layer) intersect one or more zone layers, without creating images. Upgrading to 4.6.0 I noticed that the script returned many wrong results (plus the right ones). Downgrading to 4.0.1 (or even 4.4.2, in another non-production PC), the problem disappears. The problem happens using PHP MapScript functions (both with PHP 4 and 5). If you could tell me the syntax for using feature query capabilities via CGI (I think it should be FEATUREQUERY, defining a Slayer), I can check if CGI Mapserver (4.0.1, 4.4.2 and 4.6.0) has the same behaviour of corresponding Mapscript, and then provide you some query example (pointing directly on my webserver). Thank you, Daniele -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 21, 2005 7:32 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Importance: High ** High Priority ** Certainly isn't supposed to work that way. How do you know this is happening - sample images or something. There haven't been many (any) changes in that code any time recently. I use the feature query capabilities a lot (via CGI) and have had know troubles... Steve >>> Daniele Margotti 06/21/05 5:00 AM >>> Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From temiz at DEPREM.GOV.TR Tue Jun 21 23:39:06 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Wed, 22 Jun 2005 09:39:06 +0300 Subject: java mapscript error In-Reply-To: <75b4b93e05062107487ce47662@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: >Do you have the JAVA_HOME variable set? > >REGARDS, >Umberto > >On 6/21/05, orkun wrote: > > >>Umberto Nicoletti wrote: >> >> >> >>>>I am sorry to take up your time >>>> >>>>I made a fresh compilation without encountering any problem >>>>till ./java/make. >>>> >>>> >>>> >>>> >>>You have to be in mapscript/java directory when you run make!!!! >>> >>> >>> >>> >> ./java is ./mapscript/java >> >> >> >>>Execute the commands as I have written them (LITERALLY, you can copy >>>and paste ) in my previous post. If still it does not work post the >>>relevant parts of your shell history so I can see what you have done >>>exactly. >>> >>>Do you have javac? Try running javac at the command prompt. >>> >>> >>> >>> >>..../mapserver-4.6.0/mapscript/java$ javac -version >>javac 1.5.0_03 >> >> >> >>>Regards, >>>Umberto >>> >>> >>> >>> >>> >>>>there are so many errors in /mapserver-4.6.0/mapscript/java directory >>>>when I enter make in this way: >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>I am sending error file in attachment. >> >>regards >> >> >>______________________________________ >>XamimeLT - installed on mailserver for domain @deprem.gov.tr >>Queries to: postmaster at deprem.gov.tr >>______________________________________ >>The views and opinions expressed in this e-mail message are the sender's own >>and do not necessarily represent the views and the opinions of Earthquake Research Dept. >>of General Directorate of Disaster Affairs. >> >>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. >>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. >> >> >> >>gcc -fpic -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/gd-2.0.33 -I/usr/local/include -I/include -I/include/linux -fno-strict-aliasing mapscript_wrap.c >>mapscript_wrap.c:24:17: jni.h: No such file or directory >>mapscript_wrap.c:48: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaThrowException': >>mapscript_wrap.c:49: error: `jclass' undeclared (first use in this function) >>mapscript_wrap.c:49: error: (Each undeclared identifier is reported only once >>mapscript_wrap.c:49: error: for each function it appears in.) >>mapscript_wrap.c:49: error: parse error before "excep" >>mapscript_wrap.c:63: error: `code' undeclared (first use in this function) >>mapscript_wrap.c:66: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:67: error: `excep' undeclared (first use in this function) >>mapscript_wrap.c:69: error: `msg' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:107: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaException': >>mapscript_wrap.c:109: error: `code' undeclared (first use in this function) >>mapscript_wrap.c:137: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:137: error: `msg' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:239: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInSchar': >>mapscript_wrap.c:241: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:241: error: parse error before "sz" >>mapscript_wrap.c:242: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:243: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:246: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:247: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:250: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:260: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutSchar': >>mapscript_wrap.c:262: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:262: error: parse error before "sz" >>mapscript_wrap.c:263: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:264: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:264: error: `jbyte' undeclared (first use in this function) >>mapscript_wrap.c:264: error: parse error before "carr" >>mapscript_wrap.c:265: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:265: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:268: error: parse error before "SWIG_JavaArrayOutSchar" >>mapscript_wrap.c:268: error: parse error before '*' token >>mapscript_wrap.c:268: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutSchar': >>mapscript_wrap.c:269: error: `jbyte' undeclared (first use in this function) >>mapscript_wrap.c:269: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:271: error: `jbyteArray' undeclared (first use in this function) >>mapscript_wrap.c:271: error: parse error before "jresult" >>mapscript_wrap.c:272: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:273: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:274: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:276: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:277: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:278: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:285: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInUchar': >>mapscript_wrap.c:287: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:287: error: parse error before "sz" >>mapscript_wrap.c:288: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:289: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:292: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:293: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:296: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:306: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUchar': >>mapscript_wrap.c:308: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:308: error: parse error before "sz" >>mapscript_wrap.c:309: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:310: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:310: error: `jshort' undeclared (first use in this function) >>mapscript_wrap.c:310: error: parse error before "carr" >>mapscript_wrap.c:311: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:311: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:314: error: parse error before "SWIG_JavaArrayOutUchar" >>mapscript_wrap.c:314: error: parse error before '*' token >>mapscript_wrap.c:314: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutUchar': >>mapscript_wrap.c:315: error: `jshort' undeclared (first use in this function) >>mapscript_wrap.c:315: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:317: error: `jshortArray' undeclared (first use in this function) >>mapscript_wrap.c:317: error: parse error before "jresult" >>mapscript_wrap.c:318: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:319: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:320: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:322: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:323: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:324: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:331: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInShort': >>mapscript_wrap.c:333: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:333: error: parse error before "sz" >>mapscript_wrap.c:334: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:335: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:338: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:339: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:342: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:352: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutShort': >>mapscript_wrap.c:354: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:354: error: parse error before "sz" >>mapscript_wrap.c:355: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:356: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:356: error: `jshort' undeclared (first use in this function) >>mapscript_wrap.c:356: error: parse error before "carr" >>mapscript_wrap.c:357: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:357: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:360: error: parse error before "SWIG_JavaArrayOutShort" >>mapscript_wrap.c:360: error: parse error before '*' token >>mapscript_wrap.c:360: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutShort': >>mapscript_wrap.c:361: error: `jshort' undeclared (first use in this function) >>mapscript_wrap.c:361: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:363: error: `jshortArray' undeclared (first use in this function) >>mapscript_wrap.c:363: error: parse error before "jresult" >>mapscript_wrap.c:364: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:365: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:366: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:368: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:369: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:370: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:377: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInUshort': >>mapscript_wrap.c:379: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:379: error: parse error before "sz" >>mapscript_wrap.c:380: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:381: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:384: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:385: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:388: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:398: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUshort': >>mapscript_wrap.c:400: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:400: error: parse error before "sz" >>mapscript_wrap.c:401: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:402: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:402: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:402: error: parse error before "carr" >>mapscript_wrap.c:403: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:403: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:406: error: parse error before "SWIG_JavaArrayOutUshort" >>mapscript_wrap.c:406: error: parse error before '*' token >>mapscript_wrap.c:406: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutUshort': >>mapscript_wrap.c:407: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:407: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:409: error: `jintArray' undeclared (first use in this function) >>mapscript_wrap.c:409: error: parse error before "jresult" >>mapscript_wrap.c:410: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:411: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:412: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:414: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:415: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:416: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:423: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInInt': >>mapscript_wrap.c:425: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:425: error: parse error before "sz" >>mapscript_wrap.c:426: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:427: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:430: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:431: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:434: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:444: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutInt': >>mapscript_wrap.c:446: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:446: error: parse error before "sz" >>mapscript_wrap.c:447: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:448: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:448: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:448: error: parse error before "carr" >>mapscript_wrap.c:449: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:449: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:452: error: parse error before "SWIG_JavaArrayOutInt" >>mapscript_wrap.c:452: error: parse error before '*' token >>mapscript_wrap.c:452: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutInt': >>mapscript_wrap.c:453: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:453: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:455: error: `jintArray' undeclared (first use in this function) >>mapscript_wrap.c:455: error: parse error before "jresult" >>mapscript_wrap.c:456: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:457: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:458: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:460: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:461: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:462: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:469: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInUint': >>mapscript_wrap.c:471: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:471: error: parse error before "sz" >>mapscript_wrap.c:472: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:473: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:476: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:477: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:480: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:490: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUint': >>mapscript_wrap.c:492: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:492: error: parse error before "sz" >>mapscript_wrap.c:493: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:494: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:494: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:494: error: parse error before "carr" >>mapscript_wrap.c:495: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:495: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:498: error: parse error before "SWIG_JavaArrayOutUint" >>mapscript_wrap.c:498: error: parse error before '*' token >>mapscript_wrap.c:498: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutUint': >>mapscript_wrap.c:499: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:499: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:501: error: `jlongArray' undeclared (first use in this function) >>mapscript_wrap.c:501: error: parse error before "jresult" >>mapscript_wrap.c:502: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:503: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:504: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:506: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:507: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:508: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:515: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInLong': >>mapscript_wrap.c:517: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:517: error: parse error before "sz" >>mapscript_wrap.c:518: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:519: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:522: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:523: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:526: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:536: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutLong': >>mapscript_wrap.c:538: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:538: error: parse error before "sz" >>mapscript_wrap.c:539: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:540: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:540: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:540: error: parse error before "carr" >>mapscript_wrap.c:541: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:541: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:544: error: parse error before "SWIG_JavaArrayOutLong" >>mapscript_wrap.c:544: error: parse error before '*' token >>mapscript_wrap.c:544: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutLong': >>mapscript_wrap.c:545: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:545: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:547: error: `jintArray' undeclared (first use in this function) >>mapscript_wrap.c:547: error: parse error before "jresult" >>mapscript_wrap.c:548: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:549: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:550: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:552: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:553: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:554: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:561: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInUlong': >>mapscript_wrap.c:563: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:563: error: parse error before "sz" >>mapscript_wrap.c:564: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:565: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:568: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:569: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:572: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:582: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUlong': >>mapscript_wrap.c:584: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:584: error: parse error before "sz" >>mapscript_wrap.c:585: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:586: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:586: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:586: error: parse error before "carr" >>mapscript_wrap.c:587: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:587: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:590: error: parse error before "SWIG_JavaArrayOutUlong" >>mapscript_wrap.c:590: error: parse error before '*' token >>mapscript_wrap.c:590: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutUlong': >>mapscript_wrap.c:591: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:591: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:593: error: `jlongArray' undeclared (first use in this function) >>mapscript_wrap.c:593: error: parse error before "jresult" >>mapscript_wrap.c:594: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:595: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:596: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:598: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:599: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:600: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:607: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInLonglong': >>mapscript_wrap.c:609: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:609: error: parse error before "sz" >>mapscript_wrap.c:610: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:611: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:614: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:615: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:618: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c:618: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:618: error: parse error before ')' token >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:628: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutLonglong': >>mapscript_wrap.c:630: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:630: error: parse error before "sz" >>mapscript_wrap.c:631: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:632: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:632: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:632: error: parse error before "carr" >>mapscript_wrap.c:633: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:633: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:636: error: parse error before "SWIG_JavaArrayOutLonglong" >>mapscript_wrap.c:636: error: parse error before '*' token >>mapscript_wrap.c:636: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutLonglong': >>mapscript_wrap.c:637: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:637: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:639: error: `jlongArray' undeclared (first use in this function) >>mapscript_wrap.c:639: error: parse error before "jresult" >>mapscript_wrap.c:640: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:641: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:642: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:644: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:645: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:646: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:653: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInFloat': >>mapscript_wrap.c:655: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:655: error: parse error before "sz" >>mapscript_wrap.c:656: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:657: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:660: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:661: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:664: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:674: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutFloat': >>mapscript_wrap.c:676: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:676: error: parse error before "sz" >>mapscript_wrap.c:677: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:678: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:678: error: `jfloat' undeclared (first use in this function) >>mapscript_wrap.c:678: error: parse error before "carr" >>mapscript_wrap.c:679: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:679: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:682: error: parse error before "SWIG_JavaArrayOutFloat" >>mapscript_wrap.c:682: error: parse error before '*' token >>mapscript_wrap.c:682: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutFloat': >>mapscript_wrap.c:683: error: `jfloat' undeclared (first use in this function) >>mapscript_wrap.c:683: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:685: error: `jfloatArray' undeclared (first use in this function) >>mapscript_wrap.c:685: error: parse error before "jresult" >>mapscript_wrap.c:686: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:687: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:688: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:690: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:691: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:692: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:699: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayInDouble': >>mapscript_wrap.c:701: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:701: error: parse error before "sz" >>mapscript_wrap.c:702: error: `input' undeclared (first use in this function) >>mapscript_wrap.c:703: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:706: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:707: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:710: error: `carr' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:720: error: parse error before '*' token >>mapscript_wrap.c: In function `SWIG_JavaArrayArgoutDouble': >>mapscript_wrap.c:722: error: `jsize' undeclared (first use in this function) >>mapscript_wrap.c:722: error: parse error before "sz" >>mapscript_wrap.c:723: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:724: error: `jarr' undeclared (first use in this function) >>mapscript_wrap.c:724: error: `jdouble' undeclared (first use in this function) >>mapscript_wrap.c:724: error: parse error before "carr" >>mapscript_wrap.c:725: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:725: error: `input' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:728: error: parse error before "SWIG_JavaArrayOutDouble" >>mapscript_wrap.c:728: error: parse error before '*' token >>mapscript_wrap.c:728: warning: return type defaults to `int' >>mapscript_wrap.c: In function `SWIG_JavaArrayOutDouble': >>mapscript_wrap.c:729: error: `jdouble' undeclared (first use in this function) >>mapscript_wrap.c:729: error: `arr' undeclared (first use in this function) >>mapscript_wrap.c:731: error: `jdoubleArray' undeclared (first use in this function) >>mapscript_wrap.c:731: error: parse error before "jresult" >>mapscript_wrap.c:732: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:733: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:734: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:736: warning: return makes integer from pointer without a cast >>mapscript_wrap.c:737: error: `sz' undeclared (first use in this function) >>mapscript_wrap.c:738: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3116: error: parse error before "jlong" >>mapscript_wrap.c:3116: error: parse error before '*' token >>mapscript_wrap.c:3116: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1intarray': >>mapscript_wrap.c:3117: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:3117: error: parse error before "jresult" >>mapscript_wrap.c:3121: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3122: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3123: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3126: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3131: error: syntax error before "void" >>mapscript_wrap.c:3131: error: parse error before '*' token >>mapscript_wrap.c:3131: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1intarray': >>mapscript_wrap.c:3134: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3135: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3136: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3142: error: parse error before "jint" >>mapscript_wrap.c:3142: error: parse error before '*' token >>mapscript_wrap.c:3142: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1getitem': >>mapscript_wrap.c:3143: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3143: error: parse error before "jresult" >>mapscript_wrap.c:3148: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3149: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3150: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3151: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:3154: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3154: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3159: error: syntax error before "void" >>mapscript_wrap.c:3159: error: parse error before '*' token >>mapscript_wrap.c:3159: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1setitem': >>mapscript_wrap.c:3164: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3165: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3166: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3167: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:3168: error: `jarg3' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3174: error: parse error before "jlong" >>mapscript_wrap.c:3174: error: parse error before '*' token >>mapscript_wrap.c:3174: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1cast': >>mapscript_wrap.c:3175: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:3175: error: parse error before "jresult" >>mapscript_wrap.c:3179: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3180: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3181: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3184: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3189: error: parse error before "jlong" >>mapscript_wrap.c:3189: error: parse error before '*' token >>mapscript_wrap.c:3189: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1frompointer': >>mapscript_wrap.c:3190: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:3190: error: parse error before "jresult" >>mapscript_wrap.c:3194: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3195: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3196: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3199: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3204: error: parse error before "jstring" >>mapscript_wrap.c:3204: error: parse error before '*' token >>mapscript_wrap.c:3204: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1VERSION': >>mapscript_wrap.c:3205: error: `jstring' undeclared (first use in this function) >>mapscript_wrap.c:3205: error: parse error before "jresult" >>mapscript_wrap.c:3208: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3209: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3246: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3252: error: parse error before "jint" >>mapscript_wrap.c:3252: error: parse error before '*' token >>mapscript_wrap.c:3252: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1TRUE': >>mapscript_wrap.c:3253: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3253: error: parse error before "jresult" >>mapscript_wrap.c:3256: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3257: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3293: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3293: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3298: error: parse error before "jint" >>mapscript_wrap.c:3298: error: parse error before '*' token >>mapscript_wrap.c:3298: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1FALSE': >>mapscript_wrap.c:3299: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3299: error: parse error before "jresult" >>mapscript_wrap.c:3302: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3303: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3339: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3339: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3344: error: parse error before "jint" >>mapscript_wrap.c:3344: error: parse error before '*' token >>mapscript_wrap.c:3344: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1ON': >>mapscript_wrap.c:3345: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3345: error: parse error before "jresult" >>mapscript_wrap.c:3348: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3349: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3385: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3385: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3390: error: parse error before "jint" >>mapscript_wrap.c:3390: error: parse error before '*' token >>mapscript_wrap.c:3390: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1OFF': >>mapscript_wrap.c:3391: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3391: error: parse error before "jresult" >>mapscript_wrap.c:3394: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3395: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3431: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3431: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3436: error: parse error before "jint" >>mapscript_wrap.c:3436: error: parse error before '*' token >>mapscript_wrap.c:3436: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1DEFAULT': >>mapscript_wrap.c:3437: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3437: error: parse error before "jresult" >>mapscript_wrap.c:3440: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3441: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3477: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3477: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3482: error: parse error before "jint" >>mapscript_wrap.c:3482: error: parse error before '*' token >>mapscript_wrap.c:3482: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1EMBED': >>mapscript_wrap.c:3483: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3483: error: parse error before "jresult" >>mapscript_wrap.c:3486: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3487: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3523: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3523: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3528: error: parse error before "jint" >>mapscript_wrap.c:3528: error: parse error before '*' token >>mapscript_wrap.c:3528: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1DELETE': >>mapscript_wrap.c:3529: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3529: error: parse error before "jresult" >>mapscript_wrap.c:3532: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3533: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3569: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3569: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3574: error: parse error before "jint" >>mapscript_wrap.c:3574: error: parse error before '*' token >>mapscript_wrap.c:3574: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1YES': >>mapscript_wrap.c:3575: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3575: error: parse error before "jresult" >>mapscript_wrap.c:3578: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3579: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3615: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3615: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3620: error: parse error before "jint" >>mapscript_wrap.c:3620: error: parse error before '*' token >>mapscript_wrap.c:3620: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1NO': >>mapscript_wrap.c:3621: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3621: error: parse error before "jresult" >>mapscript_wrap.c:3624: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3625: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3661: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3661: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3666: error: parse error before "jint" >>mapscript_wrap.c:3666: error: parse error before '*' token >>mapscript_wrap.c:3666: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1SINGLE': >>mapscript_wrap.c:3667: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3667: error: parse error before "jresult" >>mapscript_wrap.c:3670: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3671: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3707: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3707: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3712: error: parse error before "jint" >>mapscript_wrap.c:3712: error: parse error before '*' token >>mapscript_wrap.c:3712: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1MULTIPLE': >>mapscript_wrap.c:3713: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3713: error: parse error before "jresult" >>mapscript_wrap.c:3716: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3717: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3753: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3753: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3758: error: parse error before "jint" >>mapscript_wrap.c:3758: error: parse error before '*' token >>mapscript_wrap.c:3758: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1GD_1ALPHA': >>mapscript_wrap.c:3759: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3759: error: parse error before "jresult" >>mapscript_wrap.c:3762: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3763: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3799: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3799: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3804: error: parse error before "jstring" >>mapscript_wrap.c:3804: error: parse error before '*' token >>mapscript_wrap.c:3804: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1filename': >>mapscript_wrap.c:3805: error: `jstring' undeclared (first use in this function) >>mapscript_wrap.c:3805: error: parse error before "jresult" >>mapscript_wrap.c:3809: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3810: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3811: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3815: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3821: error: parse error before "jint" >>mapscript_wrap.c:3821: error: parse error before '*' token >>mapscript_wrap.c:3821: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1numfonts': >>mapscript_wrap.c:3822: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:3822: error: parse error before "jresult" >>mapscript_wrap.c:3826: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3827: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3828: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3831: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:3831: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3836: error: syntax error before "void" >>mapscript_wrap.c:3836: error: parse error before '*' token >>mapscript_wrap.c:3836: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1fontSetObj_1fonts': >>mapscript_wrap.c:3840: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3841: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3842: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3843: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3849: error: parse error before "jlong" >>mapscript_wrap.c:3849: error: parse error before '*' token >>mapscript_wrap.c:3849: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1fonts': >>mapscript_wrap.c:3850: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:3850: error: parse error before "jresult" >>mapscript_wrap.c:3854: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3855: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3856: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3859: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3864: error: parse error before "jlong" >>mapscript_wrap.c:3864: error: parse error before '*' token >>mapscript_wrap.c:3864: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1fontSetObj': >>mapscript_wrap.c:3865: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:3865: error: parse error before "jresult" >>mapscript_wrap.c:3868: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3869: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3905: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3910: error: syntax error before "void" >>mapscript_wrap.c:3910: error: parse error before '*' token >>mapscript_wrap.c:3910: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1fontSetObj': >>mapscript_wrap.c:3913: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3914: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3915: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3954: error: syntax error before "void" >>mapscript_wrap.c:3954: error: parse error before '*' token >>mapscript_wrap.c:3954: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1name': >>mapscript_wrap.c:3958: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3959: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3960: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3963: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:3965: warning: `return' with no value, in function returning non-void >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:3983: error: parse error before "jstring" >>mapscript_wrap.c:3983: error: parse error before '*' token >>mapscript_wrap.c:3983: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1name': >>mapscript_wrap.c:3984: error: `jstring' undeclared (first use in this function) >>mapscript_wrap.c:3984: error: parse error before "jresult" >>mapscript_wrap.c:3988: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:3989: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:3990: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:3994: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4000: error: syntax error before "void" >>mapscript_wrap.c:4000: error: parse error before '*' token >>mapscript_wrap.c:4000: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1mimetype': >>mapscript_wrap.c:4004: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4005: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4006: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4009: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:4011: warning: `return' with no value, in function returning non-void >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4029: error: parse error before "jstring" >>mapscript_wrap.c:4029: error: parse error before '*' token >>mapscript_wrap.c:4029: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1mimetype': >>mapscript_wrap.c:4030: error: `jstring' undeclared (first use in this function) >>mapscript_wrap.c:4030: error: parse error before "jresult" >>mapscript_wrap.c:4034: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4035: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4036: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4040: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4046: error: syntax error before "void" >>mapscript_wrap.c:4046: error: parse error before '*' token >>mapscript_wrap.c:4046: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1driver': >>mapscript_wrap.c:4050: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4051: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4052: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4055: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:4057: warning: `return' with no value, in function returning non-void >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4075: error: parse error before "jstring" >>mapscript_wrap.c:4075: error: parse error before '*' token >>mapscript_wrap.c:4075: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1driver': >>mapscript_wrap.c:4076: error: `jstring' undeclared (first use in this function) >>mapscript_wrap.c:4076: error: parse error before "jresult" >>mapscript_wrap.c:4080: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4081: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4082: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4086: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4092: error: syntax error before "void" >>mapscript_wrap.c:4092: error: parse error before '*' token >>mapscript_wrap.c:4092: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1extension': >>mapscript_wrap.c:4096: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4097: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4098: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4101: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:4103: warning: `return' with no value, in function returning non-void >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4121: error: parse error before "jstring" >>mapscript_wrap.c:4121: error: parse error before '*' token >>mapscript_wrap.c:4121: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1extension': >>mapscript_wrap.c:4122: error: `jstring' undeclared (first use in this function) >>mapscript_wrap.c:4122: error: parse error before "jresult" >>mapscript_wrap.c:4126: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4127: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4128: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4132: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4138: error: syntax error before "void" >>mapscript_wrap.c:4138: error: parse error before '*' token >>mapscript_wrap.c:4138: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1renderer': >>mapscript_wrap.c:4142: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4143: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4144: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4145: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4151: error: parse error before "jint" >>mapscript_wrap.c:4151: error: parse error before '*' token >>mapscript_wrap.c:4151: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1renderer': >>mapscript_wrap.c:4152: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4152: error: parse error before "jresult" >>mapscript_wrap.c:4156: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4157: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4158: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4161: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4161: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4166: error: syntax error before "void" >>mapscript_wrap.c:4166: error: parse error before '*' token >>mapscript_wrap.c:4166: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1imagemode': >>mapscript_wrap.c:4170: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4171: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4172: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4173: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4179: error: parse error before "jint" >>mapscript_wrap.c:4179: error: parse error before '*' token >>mapscript_wrap.c:4179: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1imagemode': >>mapscript_wrap.c:4180: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4180: error: parse error before "jresult" >>mapscript_wrap.c:4184: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4185: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4186: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4189: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4189: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4194: error: syntax error before "void" >>mapscript_wrap.c:4194: error: parse error before '*' token >>mapscript_wrap.c:4194: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1transparent': >>mapscript_wrap.c:4198: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4199: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4200: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4201: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4207: error: parse error before "jint" >>mapscript_wrap.c:4207: error: parse error before '*' token >>mapscript_wrap.c:4207: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1transparent': >>mapscript_wrap.c:4208: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4208: error: parse error before "jresult" >>mapscript_wrap.c:4212: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4213: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4214: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4217: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4217: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4222: error: syntax error before "void" >>mapscript_wrap.c:4222: error: parse error before '*' token >>mapscript_wrap.c:4222: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1bands': >>mapscript_wrap.c:4226: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4227: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4228: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4229: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4235: error: parse error before "jint" >>mapscript_wrap.c:4235: error: parse error before '*' token >>mapscript_wrap.c:4235: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1bands': >>mapscript_wrap.c:4236: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4236: error: parse error before "jresult" >>mapscript_wrap.c:4240: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4241: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4242: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4245: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4245: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4250: error: syntax error before "void" >>mapscript_wrap.c:4250: error: parse error before '*' token >>mapscript_wrap.c:4250: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1numformatoptions': >>mapscript_wrap.c:4254: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4255: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4256: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4257: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4263: error: parse error before "jint" >>mapscript_wrap.c:4263: error: parse error before '*' token >>mapscript_wrap.c:4263: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1numformatoptions': >>mapscript_wrap.c:4264: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4264: error: parse error before "jresult" >>mapscript_wrap.c:4268: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4269: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4270: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4273: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4273: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4278: error: syntax error before "void" >>mapscript_wrap.c:4278: error: parse error before '*' token >>mapscript_wrap.c:4278: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1formatoptions': >>mapscript_wrap.c:4282: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4283: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4284: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4285: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4291: error: parse error before "jlong" >>mapscript_wrap.c:4291: error: parse error before '*' token >>mapscript_wrap.c:4291: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1formatoptions': >>mapscript_wrap.c:4292: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:4292: error: parse error before "jresult" >>mapscript_wrap.c:4296: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4297: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4298: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4301: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4306: error: syntax error before "void" >>mapscript_wrap.c:4306: error: parse error before '*' token >>mapscript_wrap.c:4306: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1refcount': >>mapscript_wrap.c:4310: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4311: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4312: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4313: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4319: error: parse error before "jint" >>mapscript_wrap.c:4319: error: parse error before '*' token >>mapscript_wrap.c:4319: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1refcount': >>mapscript_wrap.c:4320: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4320: error: parse error before "jresult" >>mapscript_wrap.c:4324: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4325: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4326: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4329: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4329: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4334: error: syntax error before "void" >>mapscript_wrap.c:4334: error: parse error before '*' token >>mapscript_wrap.c:4334: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1inmapfile': >>mapscript_wrap.c:4338: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4339: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4340: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4341: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4347: error: parse error before "jint" >>mapscript_wrap.c:4347: error: parse error before '*' token >>mapscript_wrap.c:4347: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1inmapfile': >>mapscript_wrap.c:4348: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4348: error: parse error before "jresult" >>mapscript_wrap.c:4352: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4353: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4354: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4357: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4357: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4362: error: parse error before "jlong" >>mapscript_wrap.c:4362: error: parse error before '*' token >>mapscript_wrap.c:4362: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1outputFormatObj': >>mapscript_wrap.c:4363: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:4363: error: parse error before "jresult" >>mapscript_wrap.c:4368: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4369: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4372: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4379: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:4419: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4430: error: syntax error before "void" >>mapscript_wrap.c:4430: error: parse error before '*' token >>mapscript_wrap.c:4430: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1outputFormatObj': >>mapscript_wrap.c:4433: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4434: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4435: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4474: error: syntax error before "void" >>mapscript_wrap.c:4474: error: parse error before '*' token >>mapscript_wrap.c:4474: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1setOption': >>mapscript_wrap.c:4479: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4480: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4481: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4484: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:4486: warning: `return' with no value, in function returning non-void >>mapscript_wrap.c:4491: error: `jarg3' undeclared (first use in this function) >>mapscript_wrap.c:4493: warning: `return' with no value, in function returning non-void >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4540: error: parse error before "jint" >>mapscript_wrap.c:4540: error: parse error before '*' token >>mapscript_wrap.c:4540: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1validate': >>mapscript_wrap.c:4541: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4541: error: parse error before "jresult" >>mapscript_wrap.c:4545: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4546: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4547: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4583: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4583: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4588: error: parse error before "jstring" >>mapscript_wrap.c:4588: error: parse error before '*' token >>mapscript_wrap.c:4588: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1getOption': >>mapscript_wrap.c:4589: error: `jstring' undeclared (first use in this function) >>mapscript_wrap.c:4589: error: parse error before "jresult" >>mapscript_wrap.c:4595: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4596: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4597: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4600: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:4607: error: `jarg3' undeclared (first use in this function) >>mapscript_wrap.c:4648: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4661: error: parse error before "jint" >>mapscript_wrap.c:4661: error: parse error before '*' token >>mapscript_wrap.c:4661: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1NOOVERRIDE': >>mapscript_wrap.c:4662: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4662: error: parse error before "jresult" >>mapscript_wrap.c:4665: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4666: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4702: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4702: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4707: error: syntax error before "void" >>mapscript_wrap.c:4707: error: parse error before '*' token >>mapscript_wrap.c:4707: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1height': >>mapscript_wrap.c:4711: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4712: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4713: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4714: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4720: error: parse error before "jint" >>mapscript_wrap.c:4720: error: parse error before '*' token >>mapscript_wrap.c:4720: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1height': >>mapscript_wrap.c:4721: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4721: error: parse error before "jresult" >>mapscript_wrap.c:4725: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4726: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4727: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4730: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4730: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4735: error: syntax error before "void" >>mapscript_wrap.c:4735: error: parse error before '*' token >>mapscript_wrap.c:4735: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1width': >>mapscript_wrap.c:4739: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4740: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4741: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4742: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4748: error: parse error before "jint" >>mapscript_wrap.c:4748: error: parse error before '*' token >>mapscript_wrap.c:4748: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1width': >>mapscript_wrap.c:4749: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4749: error: parse error before "jresult" >>mapscript_wrap.c:4753: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4754: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4755: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4758: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4758: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4763: error: syntax error before "void" >>mapscript_wrap.c:4763: error: parse error before '*' token >>mapscript_wrap.c:4763: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1status': >>mapscript_wrap.c:4767: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4768: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4769: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4770: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4776: error: parse error before "jint" >>mapscript_wrap.c:4776: error: parse error before '*' token >>mapscript_wrap.c:4776: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1status': >>mapscript_wrap.c:4777: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4777: error: parse error before "jresult" >>mapscript_wrap.c:4781: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4782: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4783: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4786: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4786: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4791: error: syntax error before "void" >>mapscript_wrap.c:4791: error: parse error before '*' token >>mapscript_wrap.c:4791: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1style': >>mapscript_wrap.c:4795: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4796: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4797: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4798: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4804: error: parse error before "jint" >>mapscript_wrap.c:4804: error: parse error before '*' token >>mapscript_wrap.c:4804: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1style': >>mapscript_wrap.c:4805: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4805: error: parse error before "jresult" >>mapscript_wrap.c:4809: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4810: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4811: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4814: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:4814: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4819: error: syntax error before "void" >>mapscript_wrap.c:4819: error: parse error before '*' token >>mapscript_wrap.c:4819: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1color': >>mapscript_wrap.c:4823: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4824: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4825: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4826: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4832: error: parse error before "jlong" >>mapscript_wrap.c:4832: error: parse error before '*' token >>mapscript_wrap.c:4832: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1color': >>mapscript_wrap.c:4833: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:4833: error: parse error before "jresult" >>mapscript_wrap.c:4837: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4838: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4839: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4842: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4847: error: parse error before "jlong" >>mapscript_wrap.c:4847: error: parse error before '*' token >>mapscript_wrap.c:4847: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1queryMapObj': >>mapscript_wrap.c:4848: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:4848: error: parse error before "jresult" >>mapscript_wrap.c:4851: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4852: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4888: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4893: error: syntax error before "void" >>mapscript_wrap.c:4893: error: parse error before '*' token >>mapscript_wrap.c:4893: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1queryMapObj': >>mapscript_wrap.c:4896: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4897: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4898: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4937: error: syntax error before "void" >>mapscript_wrap.c:4937: error: parse error before '*' token >>mapscript_wrap.c:4937: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1font': >>mapscript_wrap.c:4941: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4942: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4943: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4946: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c:4948: warning: `return' with no value, in function returning non-void >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4966: error: parse error before "jstring" >>mapscript_wrap.c:4966: error: parse error before '*' token >>mapscript_wrap.c:4966: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1font': >>mapscript_wrap.c:4967: error: `jstring' undeclared (first use in this function) >>mapscript_wrap.c:4967: error: parse error before "jresult" >>mapscript_wrap.c:4971: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4972: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4973: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4977: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4983: error: syntax error before "void" >>mapscript_wrap.c:4983: error: parse error before '*' token >>mapscript_wrap.c:4983: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1type': >>mapscript_wrap.c:4987: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:4988: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:4989: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:4990: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:4996: error: parse error before "jint" >>mapscript_wrap.c:4996: error: parse error before '*' token >>mapscript_wrap.c:4996: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1type': >>mapscript_wrap.c:4997: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:4997: error: parse error before "jresult" >>mapscript_wrap.c:5001: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5002: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5003: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5006: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5006: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5011: error: syntax error before "void" >>mapscript_wrap.c:5011: error: parse error before '*' token >>mapscript_wrap.c:5011: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1color': >>mapscript_wrap.c:5015: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5016: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5017: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5018: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5024: error: parse error before "jlong" >>mapscript_wrap.c:5024: error: parse error before '*' token >>mapscript_wrap.c:5024: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1color': >>mapscript_wrap.c:5025: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:5025: error: parse error before "jresult" >>mapscript_wrap.c:5029: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5030: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5031: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5034: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5039: error: syntax error before "void" >>mapscript_wrap.c:5039: error: parse error before '*' token >>mapscript_wrap.c:5039: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1outlinecolor': >>mapscript_wrap.c:5043: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5044: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5045: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5046: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5052: error: parse error before "jlong" >>mapscript_wrap.c:5052: error: parse error before '*' token >>mapscript_wrap.c:5052: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1outlinecolor': >>mapscript_wrap.c:5053: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:5053: error: parse error before "jresult" >>mapscript_wrap.c:5057: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5058: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5059: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5062: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5067: error: syntax error before "void" >>mapscript_wrap.c:5067: error: parse error before '*' token >>mapscript_wrap.c:5067: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowcolor': >>mapscript_wrap.c:5071: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5072: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5073: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5074: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5080: error: parse error before "jlong" >>mapscript_wrap.c:5080: error: parse error before '*' token >>mapscript_wrap.c:5080: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowcolor': >>mapscript_wrap.c:5081: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:5081: error: parse error before "jresult" >>mapscript_wrap.c:5085: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5086: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5087: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5090: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5095: error: syntax error before "void" >>mapscript_wrap.c:5095: error: parse error before '*' token >>mapscript_wrap.c:5095: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowsizex': >>mapscript_wrap.c:5099: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5100: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5101: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5102: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5108: error: parse error before "jint" >>mapscript_wrap.c:5108: error: parse error before '*' token >>mapscript_wrap.c:5108: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowsizex': >>mapscript_wrap.c:5109: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5109: error: parse error before "jresult" >>mapscript_wrap.c:5113: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5114: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5115: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5118: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5118: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5123: error: syntax error before "void" >>mapscript_wrap.c:5123: error: parse error before '*' token >>mapscript_wrap.c:5123: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowsizey': >>mapscript_wrap.c:5127: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5128: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5129: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5130: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5136: error: parse error before "jint" >>mapscript_wrap.c:5136: error: parse error before '*' token >>mapscript_wrap.c:5136: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowsizey': >>mapscript_wrap.c:5137: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5137: error: parse error before "jresult" >>mapscript_wrap.c:5141: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5142: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5143: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5146: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5146: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5151: error: syntax error before "void" >>mapscript_wrap.c:5151: error: parse error before '*' token >>mapscript_wrap.c:5151: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundcolor': >>mapscript_wrap.c:5155: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5156: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5157: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5158: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5164: error: parse error before "jlong" >>mapscript_wrap.c:5164: error: parse error before '*' token >>mapscript_wrap.c:5164: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundcolor': >>mapscript_wrap.c:5165: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:5165: error: parse error before "jresult" >>mapscript_wrap.c:5169: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5170: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5171: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5174: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5179: error: syntax error before "void" >>mapscript_wrap.c:5179: error: parse error before '*' token >>mapscript_wrap.c:5179: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowcolor': >>mapscript_wrap.c:5183: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5184: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5185: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5186: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5192: error: parse error before "jlong" >>mapscript_wrap.c:5192: error: parse error before '*' token >>mapscript_wrap.c:5192: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowcolor': >>mapscript_wrap.c:5193: error: `jlong' undeclared (first use in this function) >>mapscript_wrap.c:5193: error: parse error before "jresult" >>mapscript_wrap.c:5197: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5198: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5199: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5202: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5207: error: syntax error before "void" >>mapscript_wrap.c:5207: error: parse error before '*' token >>mapscript_wrap.c:5207: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowsizex': >>mapscript_wrap.c:5211: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5212: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5213: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5214: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5220: error: parse error before "jint" >>mapscript_wrap.c:5220: error: parse error before '*' token >>mapscript_wrap.c:5220: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowsizex': >>mapscript_wrap.c:5221: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5221: error: parse error before "jresult" >>mapscript_wrap.c:5225: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5226: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5227: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5230: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5230: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5235: error: syntax error before "void" >>mapscript_wrap.c:5235: error: parse error before '*' token >>mapscript_wrap.c:5235: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowsizey': >>mapscript_wrap.c:5239: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5240: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5241: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5242: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5248: error: parse error before "jint" >>mapscript_wrap.c:5248: error: parse error before '*' token >>mapscript_wrap.c:5248: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowsizey': >>mapscript_wrap.c:5249: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5249: error: parse error before "jresult" >>mapscript_wrap.c:5253: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5254: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5255: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5258: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5258: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5263: error: syntax error before "void" >>mapscript_wrap.c:5263: error: parse error before '*' token >>mapscript_wrap.c:5263: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1size': >>mapscript_wrap.c:5267: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5268: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5269: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5270: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5276: error: parse error before "jint" >>mapscript_wrap.c:5276: error: parse error before '*' token >>mapscript_wrap.c:5276: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1size': >>mapscript_wrap.c:5277: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5277: error: parse error before "jresult" >>mapscript_wrap.c:5281: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5282: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5283: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5286: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5286: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5291: error: syntax error before "void" >>mapscript_wrap.c:5291: error: parse error before '*' token >>mapscript_wrap.c:5291: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1minsize': >>mapscript_wrap.c:5295: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5296: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5297: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5298: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5304: error: parse error before "jint" >>mapscript_wrap.c:5304: error: parse error before '*' token >>mapscript_wrap.c:5304: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1minsize': >>mapscript_wrap.c:5305: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5305: error: parse error before "jresult" >>mapscript_wrap.c:5309: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5310: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5311: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5314: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5314: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5319: error: syntax error before "void" >>mapscript_wrap.c:5319: error: parse error before '*' token >>mapscript_wrap.c:5319: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1maxsize': >>mapscript_wrap.c:5323: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5324: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5325: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5326: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5332: error: parse error before "jint" >>mapscript_wrap.c:5332: error: parse error before '*' token >>mapscript_wrap.c:5332: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1maxsize': >>mapscript_wrap.c:5333: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5333: error: parse error before "jresult" >>mapscript_wrap.c:5337: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5338: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5339: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5342: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5342: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5347: error: syntax error before "void" >>mapscript_wrap.c:5347: error: parse error before '*' token >>mapscript_wrap.c:5347: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1position': >>mapscript_wrap.c:5351: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5352: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5353: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5354: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5360: error: parse error before "jint" >>mapscript_wrap.c:5360: error: parse error before '*' token >>mapscript_wrap.c:5360: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1position': >>mapscript_wrap.c:5361: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5361: error: parse error before "jresult" >>mapscript_wrap.c:5365: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5366: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5367: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5370: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5370: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5375: error: syntax error before "void" >>mapscript_wrap.c:5375: error: parse error before '*' token >>mapscript_wrap.c:5375: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1offsetx': >>mapscript_wrap.c:5379: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5380: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5381: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5382: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5388: error: parse error before "jint" >>mapscript_wrap.c:5388: error: parse error before '*' token >>mapscript_wrap.c:5388: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1offsetx': >>mapscript_wrap.c:5389: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5389: error: parse error before "jresult" >>mapscript_wrap.c:5393: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5394: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5395: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5398: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5398: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5403: error: syntax error before "void" >>mapscript_wrap.c:5403: error: parse error before '*' token >>mapscript_wrap.c:5403: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1offsety': >>mapscript_wrap.c:5407: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5408: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5409: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5410: error: `jarg2' undeclared (first use in this function) >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5416: error: parse error before "jint" >>mapscript_wrap.c:5416: error: parse error before '*' token >>mapscript_wrap.c:5416: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1offsety': >>mapscript_wrap.c:5417: error: `jint' undeclared (first use in this function) >>mapscript_wrap.c:5417: error: parse error before "jresult" >>mapscript_wrap.c:5421: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5422: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5423: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5426: error: `jresult' undeclared (first use in this function) >>mapscript_wrap.c:5426: error: parse error before "result" >>mapscript_wrap.c: At top level: >>mapscript_wrap.c:5431: error: syntax error before "void" >>mapscript_wrap.c:5431: error: parse error before '*' token >>mapscript_wrap.c:5431: warning: return type defaults to `int' >>mapscript_wrap.c: In function `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1angle': >>mapscript_wrap.c:5435: error: `jenv' undeclared (first use in this function) >>mapscript_wrap.c:5436: error: `jcls' undeclared (first use in this function) >>mapscript_wrap.c:5437: error: `jarg1' undeclared (first use in this function) >>mapscript_wrap.c:5438: error: `jarg2' undeclared (first use in >> >> >> > > > > > hello JAVA_HOME ???? if you mean this: orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ printenv | grep java PWD=/home/orkun/work/mapserver-4.6.0/mapscript/java orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ But I did not have any environment variable like JAVA_HOME I tried to produce it: /mapscript/java$ JAVA_HOME="/usr/local/jdk1.5.0_03/" then make it gives same errors. I am new in java and its installation. I am not sure if my java installation is correct. I followed debian installation way. Later I have java_libs known by my system. landslide:/home/orkun# cat /etc/ld.so.conf /usr/X11R6/lib /usr/lib/grass/lib /usr/local/jdk1.5.0_03/lib mapserver can not still be installed. I realized later that I had skipped to sent you history's last values. 506 ./ins2 #executable file containing config values 507 make clean 508 make 509 make install 510 cd mapscript 511 cd java 512 make interface 513 make *** errors 514 history 10 regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From umberto.nicoletti at GMAIL.COM Tue Jun 21 23:49:30 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 22 Jun 2005 08:49:30 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <42B85D7C.5040704@abiwood99.de> Message-ID: Hi Christian, I do not think the error you are getting is due to threading issues, but trying what Mario suggests will at least narrow the search field. In case you are still getting errors even with synchronized code blocks I have a few questions for you to help me understand your setup: Do you always get errors in delete_classObj or do the segfaults happen in different functions? If the segfault is always caused by delete_ClassObj then I suppose you are creating class objects in your java code. Is that true? If that is the case then we can setup a very simple test to reproduce the problem: modify one of the examples so that it will load a map and then start adding classes in similar fashion to your code, but in a tight loop. Classes should be made eligible for gc by dropping all references to them. As soon as gc kicks in the vm should crash. At that point it will be clear that the problem is in delete_ClassObj and the hunting season will be open. BTW can you report the mapserver version you are using (I have 4.4.2 and I know it works, so if you can use that). Best Regards, Umberto On 6/21/05, Christian Schroeder wrote: > Hello Umberto, > > thank your for your immediate answer. > I do not call the delete_ methody directly and don't think I am using > special gc parameters. > > And... I have read the README file before compiling the mapserver :-) > > I will try to get it to work with "synchronized"-flags als Mario Basa > supposed. > > Thank you! > > Christian > > > Umberto Nicoletti schrieb: > > >Christian, > >are you calling the delete_ methods directly in your code or are you > >using some special gc paramaters? > > > >As a side note the --use-threads option to configure is *absolutely* > >necessary, as are brakes on your car. I think we should write it in > >the README (as if someone actually cared to read it :-( ). > > > >Best regards, > >Umberto > > > > > >On 6/21/05, Sean Gillies wrote: > > > > > >>I'm forwarding this to the users list. Hopefully, Umberto will be able > >>to provide some insight. > >> > >>cheers, > >>Sean > >> > >>On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > >> > >> > >> > >>>Dear Mr. Gillies, > >>> > >>>some weeks ago me and Florian Pepping contacted you because we had > >>>problems using the Java Mapscript API. Thanks to you we could solve > >>>these problems :-) > >>> > >>>Now we got our program doing what it's supposed to do but there is > >>>still a big problem left which we were not able to solve yet: > >>>We created a simple servlet which is created inside a Tomcat 5.0 > >>>Webserver. This servlet created a map image (png/jpg) and displays > >>>some specified objects on the map. (We use it for location based > >>>services --> "show me the position of the next printer"). > >>>After an irregular number of calls of our servlet which uses the Java > >>>Mapscript API the complete Java VM and with it the Tomcat crashes. I > >>>attached the error report below. The program works properly for a > >>>number of calls (between 5 and 1000 :-) ) and after that it crashes. > >>>We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, > >>>4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > >>>1.5.0. We also configured mapserver using the --with-threads option, > >>>but all this did not help. By the way the mapserv cgi-module works > >>>properly. > >>> > >>>Do you have an idea for this? > >>> > >>>Thanks for your anxiety > >>> > >>>Christian & Florian > >>>University of Paderborn, Germany > >>> > >>> > >>>------------------------------------------------------------------- > >>> > >>>JavaMapscriptLoader: mapscript native library has been loaded. > >>> * mapscript native library loaded * > >>> > >>>An unexpected exception has been detected in native code outside the > >>>VM. > >>>Unexpected Signal : 11 occurred at PC=0x3338268 > >>>Function=delete_classObj+0x8 > >>>Library=/usr/lib/libmapscript.so > >>> > >>>Current Java thread: > >>> at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > >>>Method) > >>> at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > >>> at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > >>> at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > >>> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > >>> at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > >>> at > >>>java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > >>> > >>>Dynamic libraries: > >>>Can not get information for pid = 10558 > >>> > >>>Heap at VM Abort: > >>>Heap > >>> def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > >>>0x08fc0000) > >>> eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > >>> from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > >>> to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > >>> tenured generation total 15048K, used 13624K [0x08fc0000, > >>>0x09e72000, > >>>0x0cae0000) > >>> the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > >>>0x09e72000) > >>> compacting perm gen total 18432K, used 18373K [0x0cae0000, > >>>0x0dce0000, > >>>0x10ae0000) > >>> the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > >>>0x0dce0000) > >>> > >>>Local Time = Tue Jun 14 15:32:19 2005 > >>>Elapsed Time = 246 > >>># > >>># The exception above was detected in native code outside the VM > >>># > >>># Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > >>># > >>># An error report file has been saved as /tmp/hs_err_pid10558.log. > >>># Please refer to the file for further information. > >>># > >>> > >>>------------------------------------------------------------------- > >>> > >>>On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > >>> > >>> > >>> > >>>>Dear Mr. Gillies, > >>>> > >>>>I'm a student of the University of Paderborn in Germany and member of > >>>> the project group "Location Based Services for Wireless Devices". In > >>>> this project we try to position laptops and other WLAN-enabled > >>>>devices using the signal strength of the WLAN. According to their > >>>>position, we want to offer location based services to the persons > >>>>using the devices (where I am; where's the next printer; is there a > >>>>friend nearby) > >>>> > >>>>In order to do this, we want to use your mapserver and the Java > >>>>Mapscript API to generate maps according to the actual position and > >>>>situation. We like to customize the map of our building and add > >>>>points, lines and so on. > >>>> > >>>>We have been able to compile the whole mapserver and the Java > >>>>Mapscript API. A small Java example also works, which presents an > >>>>unchanged map of our building. > >>>> > >>>>[...] > >>>> > >>>> > > > > > > > > > From umberto.nicoletti at GMAIL.COM Tue Jun 21 23:52:49 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 22 Jun 2005 08:52:49 +0200 Subject: java mapscript error In-Reply-To: <42B9078A.80507@deprem.gov.tr> Message-ID: Orkun, could you please write again your last message, I have not been able to find your post in it. Ciao, Umberto From nuryadin at GMAIL.COM Tue Jun 21 23:30:11 2005 From: nuryadin at GMAIL.COM (Ruslan Nuryadin) Date: Wed, 22 Jun 2005 13:30:11 +0700 Subject: draw in a map In-Reply-To: Message-ID: Mehdi, You can use Chameleon framework (http://chameleon.maptools.org/index.phtml) for your needs. It's based on PHP classes and a HTML template file containing the 'widget set'. Here's an example of Chameleon application file: moMapSession = new MapSession_RW; $this->moMapSession->setTempDir( getSessionSavePath()); } } $oApp = new Indonesia03(); $oApp->registerSkin( 'skins/sample' ); $oApp->CWCInitialize( $szTemplate, $szMapFile ); $oApp->CWCExecute(); ?> And here's a snapshot of the template file (too long to fit whole file here): -- ruslan Mehdi Kiman wrote: > hello, > > I would to draw objects in my map and make some calculations : > - draw a zooming box, a point, a polygon, a line > - make distance and surface measuring > > I know that's possible with jbox and rosa applets but i must only use > javascript. > > I have 2 questions : > is it possible to do all these operations with phpMapscript and > javaScript ? > can you give me some code examples ? > > Thanks > > Mehdi > France > From temiz at DEPREM.GOV.TR Wed Jun 22 00:43:43 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Wed, 22 Jun 2005 10:43:43 +0300 Subject: java mapscript error In-Reply-To: <42B9078A.80507@deprem.gov.tr> Message-ID: orkun wrote: > Umberto Nicoletti wrote: > >> Do you have the JAVA_HOME variable set? >> >> REGARDS, >> Umberto >> >> On 6/21/05, orkun wrote: >> >> >>> Umberto Nicoletti wrote: >>> >>> >>> >>>>> I am sorry to take up your time >>>>> >>>>> I made a fresh compilation without encountering any problem >>>>> till ./java/make. >>>>> >>>>> >>>>> >>>> >>>> You have to be in mapscript/java directory when you run make!!!! >>>> >>>> >>>> >>> >>> ./java is ./mapscript/java >>> >>> >>> >>>> Execute the commands as I have written them (LITERALLY, you can copy >>>> and paste ) in my previous post. If still it does not work post the >>>> relevant parts of your shell history so I can see what you have done >>>> exactly. >>>> >>>> Do you have javac? Try running javac at the command prompt. >>>> >>>> >>>> >>> >>> ..../mapserver-4.6.0/mapscript/java$ javac -version >>> javac 1.5.0_03 >>> >>> >>> >>>> Regards, >>>> Umberto >>>> >>>> >>>> >>>> >>>> >>>>> there are so many errors in /mapserver-4.6.0/mapscript/java directory >>>>> when I enter make in this way: >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>> >>> I am sending error file in attachment. >>> >>> regards >>> >>> >>> ______________________________________ >>> XamimeLT - installed on mailserver for domain @deprem.gov.tr >>> Queries to: postmaster at deprem.gov.tr >>> ______________________________________ >>> The views and opinions expressed in this e-mail message are the >>> sender's own >>> and do not necessarily represent the views and the opinions of >>> Earthquake Research Dept. >>> of General Directorate of Disaster Affairs. >>> >>> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >>> olarak T.C. >>> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >>> nitelikte degildir. >>> >>> >>> >>> gcc -fpic -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT >>> -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -DUSE_GD_PNG >>> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR >>> -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_THREAD >>> -I/usr/local/gd-2.0.33 -I/usr/local/include -I/include >>> -I/include/linux -fno-strict-aliasing mapscript_wrap.c >>> mapscript_wrap.c:24:17: jni.h: No such file or directory >>> mapscript_wrap.c:48: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaThrowException': >>> mapscript_wrap.c:49: error: `jclass' undeclared (first use in this >>> function) >>> mapscript_wrap.c:49: error: (Each undeclared identifier is reported >>> only once >>> mapscript_wrap.c:49: error: for each function it appears in.) >>> mapscript_wrap.c:49: error: parse error before "excep" >>> mapscript_wrap.c:63: error: `code' undeclared (first use in this >>> function) >>> mapscript_wrap.c:66: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:67: error: `excep' undeclared (first use in this >>> function) >>> mapscript_wrap.c:69: error: `msg' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:107: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaException': >>> mapscript_wrap.c:109: error: `code' undeclared (first use in this >>> function) >>> mapscript_wrap.c:137: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:137: error: `msg' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:239: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInSchar': >>> mapscript_wrap.c:241: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:241: error: parse error before "sz" >>> mapscript_wrap.c:242: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:243: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:246: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:247: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:250: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:260: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutSchar': >>> mapscript_wrap.c:262: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:262: error: parse error before "sz" >>> mapscript_wrap.c:263: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:264: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:264: error: `jbyte' undeclared (first use in this >>> function) >>> mapscript_wrap.c:264: error: parse error before "carr" >>> mapscript_wrap.c:265: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:265: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:268: error: parse error before >>> "SWIG_JavaArrayOutSchar" >>> mapscript_wrap.c:268: error: parse error before '*' token >>> mapscript_wrap.c:268: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutSchar': >>> mapscript_wrap.c:269: error: `jbyte' undeclared (first use in this >>> function) >>> mapscript_wrap.c:269: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:271: error: `jbyteArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:271: error: parse error before "jresult" >>> mapscript_wrap.c:272: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:273: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:274: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:276: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:277: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:278: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:285: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInUchar': >>> mapscript_wrap.c:287: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:287: error: parse error before "sz" >>> mapscript_wrap.c:288: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:289: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:292: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:293: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:296: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:306: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUchar': >>> mapscript_wrap.c:308: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:308: error: parse error before "sz" >>> mapscript_wrap.c:309: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:310: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:310: error: `jshort' undeclared (first use in this >>> function) >>> mapscript_wrap.c:310: error: parse error before "carr" >>> mapscript_wrap.c:311: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:311: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:314: error: parse error before >>> "SWIG_JavaArrayOutUchar" >>> mapscript_wrap.c:314: error: parse error before '*' token >>> mapscript_wrap.c:314: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutUchar': >>> mapscript_wrap.c:315: error: `jshort' undeclared (first use in this >>> function) >>> mapscript_wrap.c:315: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:317: error: `jshortArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:317: error: parse error before "jresult" >>> mapscript_wrap.c:318: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:319: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:320: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:322: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:323: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:324: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:331: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInShort': >>> mapscript_wrap.c:333: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:333: error: parse error before "sz" >>> mapscript_wrap.c:334: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:335: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:338: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:339: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:342: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:352: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutShort': >>> mapscript_wrap.c:354: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:354: error: parse error before "sz" >>> mapscript_wrap.c:355: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:356: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:356: error: `jshort' undeclared (first use in this >>> function) >>> mapscript_wrap.c:356: error: parse error before "carr" >>> mapscript_wrap.c:357: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:357: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:360: error: parse error before >>> "SWIG_JavaArrayOutShort" >>> mapscript_wrap.c:360: error: parse error before '*' token >>> mapscript_wrap.c:360: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutShort': >>> mapscript_wrap.c:361: error: `jshort' undeclared (first use in this >>> function) >>> mapscript_wrap.c:361: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:363: error: `jshortArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:363: error: parse error before "jresult" >>> mapscript_wrap.c:364: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:365: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:366: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:368: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:369: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:370: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:377: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInUshort': >>> mapscript_wrap.c:379: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:379: error: parse error before "sz" >>> mapscript_wrap.c:380: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:381: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:384: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:385: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:388: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:398: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUshort': >>> mapscript_wrap.c:400: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:400: error: parse error before "sz" >>> mapscript_wrap.c:401: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:402: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:402: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:402: error: parse error before "carr" >>> mapscript_wrap.c:403: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:403: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:406: error: parse error before >>> "SWIG_JavaArrayOutUshort" >>> mapscript_wrap.c:406: error: parse error before '*' token >>> mapscript_wrap.c:406: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutUshort': >>> mapscript_wrap.c:407: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:407: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:409: error: `jintArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:409: error: parse error before "jresult" >>> mapscript_wrap.c:410: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:411: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:412: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:414: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:415: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:416: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:423: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInInt': >>> mapscript_wrap.c:425: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:425: error: parse error before "sz" >>> mapscript_wrap.c:426: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:427: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:430: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:431: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:434: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:444: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutInt': >>> mapscript_wrap.c:446: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:446: error: parse error before "sz" >>> mapscript_wrap.c:447: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:448: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:448: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:448: error: parse error before "carr" >>> mapscript_wrap.c:449: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:449: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:452: error: parse error before "SWIG_JavaArrayOutInt" >>> mapscript_wrap.c:452: error: parse error before '*' token >>> mapscript_wrap.c:452: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutInt': >>> mapscript_wrap.c:453: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:453: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:455: error: `jintArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:455: error: parse error before "jresult" >>> mapscript_wrap.c:456: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:457: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:458: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:460: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:461: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:462: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:469: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInUint': >>> mapscript_wrap.c:471: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:471: error: parse error before "sz" >>> mapscript_wrap.c:472: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:473: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:476: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:477: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:480: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:490: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUint': >>> mapscript_wrap.c:492: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:492: error: parse error before "sz" >>> mapscript_wrap.c:493: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:494: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:494: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:494: error: parse error before "carr" >>> mapscript_wrap.c:495: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:495: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:498: error: parse error before "SWIG_JavaArrayOutUint" >>> mapscript_wrap.c:498: error: parse error before '*' token >>> mapscript_wrap.c:498: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutUint': >>> mapscript_wrap.c:499: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:499: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:501: error: `jlongArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:501: error: parse error before "jresult" >>> mapscript_wrap.c:502: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:503: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:504: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:506: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:507: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:508: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:515: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInLong': >>> mapscript_wrap.c:517: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:517: error: parse error before "sz" >>> mapscript_wrap.c:518: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:519: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:522: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:523: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:526: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:536: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutLong': >>> mapscript_wrap.c:538: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:538: error: parse error before "sz" >>> mapscript_wrap.c:539: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:540: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:540: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:540: error: parse error before "carr" >>> mapscript_wrap.c:541: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:541: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:544: error: parse error before "SWIG_JavaArrayOutLong" >>> mapscript_wrap.c:544: error: parse error before '*' token >>> mapscript_wrap.c:544: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutLong': >>> mapscript_wrap.c:545: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:545: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:547: error: `jintArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:547: error: parse error before "jresult" >>> mapscript_wrap.c:548: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:549: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:550: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:552: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:553: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:554: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:561: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInUlong': >>> mapscript_wrap.c:563: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:563: error: parse error before "sz" >>> mapscript_wrap.c:564: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:565: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:568: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:569: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:572: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:582: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutUlong': >>> mapscript_wrap.c:584: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:584: error: parse error before "sz" >>> mapscript_wrap.c:585: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:586: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:586: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:586: error: parse error before "carr" >>> mapscript_wrap.c:587: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:587: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:590: error: parse error before >>> "SWIG_JavaArrayOutUlong" >>> mapscript_wrap.c:590: error: parse error before '*' token >>> mapscript_wrap.c:590: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutUlong': >>> mapscript_wrap.c:591: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:591: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:593: error: `jlongArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:593: error: parse error before "jresult" >>> mapscript_wrap.c:594: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:595: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:596: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:598: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:599: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:600: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:607: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInLonglong': >>> mapscript_wrap.c:609: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:609: error: parse error before "sz" >>> mapscript_wrap.c:610: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:611: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:614: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:615: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:618: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:618: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:618: error: parse error before ')' token >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:628: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutLonglong': >>> mapscript_wrap.c:630: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:630: error: parse error before "sz" >>> mapscript_wrap.c:631: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:632: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:632: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:632: error: parse error before "carr" >>> mapscript_wrap.c:633: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:633: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:636: error: parse error before >>> "SWIG_JavaArrayOutLonglong" >>> mapscript_wrap.c:636: error: parse error before '*' token >>> mapscript_wrap.c:636: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutLonglong': >>> mapscript_wrap.c:637: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:637: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:639: error: `jlongArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:639: error: parse error before "jresult" >>> mapscript_wrap.c:640: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:641: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:642: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:644: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:645: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:646: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:653: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInFloat': >>> mapscript_wrap.c:655: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:655: error: parse error before "sz" >>> mapscript_wrap.c:656: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:657: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:660: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:661: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:664: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:674: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutFloat': >>> mapscript_wrap.c:676: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:676: error: parse error before "sz" >>> mapscript_wrap.c:677: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:678: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:678: error: `jfloat' undeclared (first use in this >>> function) >>> mapscript_wrap.c:678: error: parse error before "carr" >>> mapscript_wrap.c:679: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:679: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:682: error: parse error before >>> "SWIG_JavaArrayOutFloat" >>> mapscript_wrap.c:682: error: parse error before '*' token >>> mapscript_wrap.c:682: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutFloat': >>> mapscript_wrap.c:683: error: `jfloat' undeclared (first use in this >>> function) >>> mapscript_wrap.c:683: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:685: error: `jfloatArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:685: error: parse error before "jresult" >>> mapscript_wrap.c:686: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:687: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:688: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:690: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:691: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:692: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:699: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayInDouble': >>> mapscript_wrap.c:701: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:701: error: parse error before "sz" >>> mapscript_wrap.c:702: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c:703: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:706: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:707: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:710: error: `carr' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:720: error: parse error before '*' token >>> mapscript_wrap.c: In function `SWIG_JavaArrayArgoutDouble': >>> mapscript_wrap.c:722: error: `jsize' undeclared (first use in this >>> function) >>> mapscript_wrap.c:722: error: parse error before "sz" >>> mapscript_wrap.c:723: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:724: error: `jarr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:724: error: `jdouble' undeclared (first use in this >>> function) >>> mapscript_wrap.c:724: error: parse error before "carr" >>> mapscript_wrap.c:725: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:725: error: `input' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:728: error: parse error before >>> "SWIG_JavaArrayOutDouble" >>> mapscript_wrap.c:728: error: parse error before '*' token >>> mapscript_wrap.c:728: warning: return type defaults to `int' >>> mapscript_wrap.c: In function `SWIG_JavaArrayOutDouble': >>> mapscript_wrap.c:729: error: `jdouble' undeclared (first use in this >>> function) >>> mapscript_wrap.c:729: error: `arr' undeclared (first use in this >>> function) >>> mapscript_wrap.c:731: error: `jdoubleArray' undeclared (first use in >>> this function) >>> mapscript_wrap.c:731: error: parse error before "jresult" >>> mapscript_wrap.c:732: error: `jresult' undeclared (first use in this >>> function) >>> mapscript_wrap.c:733: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:734: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:736: warning: return makes integer from pointer >>> without a cast >>> mapscript_wrap.c:737: error: `sz' undeclared (first use in this >>> function) >>> mapscript_wrap.c:738: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3116: error: parse error before "jlong" >>> mapscript_wrap.c:3116: error: parse error before '*' token >>> mapscript_wrap.c:3116: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1intarray': >>> mapscript_wrap.c:3117: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3117: error: parse error before "jresult" >>> mapscript_wrap.c:3121: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3122: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3123: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3126: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3131: error: syntax error before "void" >>> mapscript_wrap.c:3131: error: parse error before '*' token >>> mapscript_wrap.c:3131: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1intarray': >>> mapscript_wrap.c:3134: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3135: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3136: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3142: error: parse error before "jint" >>> mapscript_wrap.c:3142: error: parse error before '*' token >>> mapscript_wrap.c:3142: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1getitem': >>> mapscript_wrap.c:3143: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3143: error: parse error before "jresult" >>> mapscript_wrap.c:3148: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3149: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3150: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3151: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3154: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3154: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3159: error: syntax error before "void" >>> mapscript_wrap.c:3159: error: parse error before '*' token >>> mapscript_wrap.c:3159: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1setitem': >>> mapscript_wrap.c:3164: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3165: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3166: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3167: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3168: error: `jarg3' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3174: error: parse error before "jlong" >>> mapscript_wrap.c:3174: error: parse error before '*' token >>> mapscript_wrap.c:3174: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1cast': >>> mapscript_wrap.c:3175: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3175: error: parse error before "jresult" >>> mapscript_wrap.c:3179: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3180: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3181: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3184: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3189: error: parse error before "jlong" >>> mapscript_wrap.c:3189: error: parse error before '*' token >>> mapscript_wrap.c:3189: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_intarray_1frompointer': >>> mapscript_wrap.c:3190: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3190: error: parse error before "jresult" >>> mapscript_wrap.c:3194: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3195: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3196: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3199: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3204: error: parse error before "jstring" >>> mapscript_wrap.c:3204: error: parse error before '*' token >>> mapscript_wrap.c:3204: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1VERSION': >>> mapscript_wrap.c:3205: error: `jstring' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3205: error: parse error before "jresult" >>> mapscript_wrap.c:3208: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3209: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3246: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3252: error: parse error before "jint" >>> mapscript_wrap.c:3252: error: parse error before '*' token >>> mapscript_wrap.c:3252: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1TRUE': >>> mapscript_wrap.c:3253: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3253: error: parse error before "jresult" >>> mapscript_wrap.c:3256: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3257: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3293: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3293: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3298: error: parse error before "jint" >>> mapscript_wrap.c:3298: error: parse error before '*' token >>> mapscript_wrap.c:3298: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1FALSE': >>> mapscript_wrap.c:3299: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3299: error: parse error before "jresult" >>> mapscript_wrap.c:3302: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3303: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3339: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3339: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3344: error: parse error before "jint" >>> mapscript_wrap.c:3344: error: parse error before '*' token >>> mapscript_wrap.c:3344: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1ON': >>> mapscript_wrap.c:3345: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3345: error: parse error before "jresult" >>> mapscript_wrap.c:3348: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3349: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3385: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3385: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3390: error: parse error before "jint" >>> mapscript_wrap.c:3390: error: parse error before '*' token >>> mapscript_wrap.c:3390: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1OFF': >>> mapscript_wrap.c:3391: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3391: error: parse error before "jresult" >>> mapscript_wrap.c:3394: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3395: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3431: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3431: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3436: error: parse error before "jint" >>> mapscript_wrap.c:3436: error: parse error before '*' token >>> mapscript_wrap.c:3436: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1DEFAULT': >>> mapscript_wrap.c:3437: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3437: error: parse error before "jresult" >>> mapscript_wrap.c:3440: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3441: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3477: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3477: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3482: error: parse error before "jint" >>> mapscript_wrap.c:3482: error: parse error before '*' token >>> mapscript_wrap.c:3482: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1EMBED': >>> mapscript_wrap.c:3483: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3483: error: parse error before "jresult" >>> mapscript_wrap.c:3486: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3487: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3523: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3523: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3528: error: parse error before "jint" >>> mapscript_wrap.c:3528: error: parse error before '*' token >>> mapscript_wrap.c:3528: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1DELETE': >>> mapscript_wrap.c:3529: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3529: error: parse error before "jresult" >>> mapscript_wrap.c:3532: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3533: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3569: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3569: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3574: error: parse error before "jint" >>> mapscript_wrap.c:3574: error: parse error before '*' token >>> mapscript_wrap.c:3574: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1YES': >>> mapscript_wrap.c:3575: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3575: error: parse error before "jresult" >>> mapscript_wrap.c:3578: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3579: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3615: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3615: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3620: error: parse error before "jint" >>> mapscript_wrap.c:3620: error: parse error before '*' token >>> mapscript_wrap.c:3620: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1NO': >>> mapscript_wrap.c:3621: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3621: error: parse error before "jresult" >>> mapscript_wrap.c:3624: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3625: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3661: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3661: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3666: error: parse error before "jint" >>> mapscript_wrap.c:3666: error: parse error before '*' token >>> mapscript_wrap.c:3666: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1SINGLE': >>> mapscript_wrap.c:3667: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3667: error: parse error before "jresult" >>> mapscript_wrap.c:3670: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3671: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3707: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3707: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3712: error: parse error before "jint" >>> mapscript_wrap.c:3712: error: parse error before '*' token >>> mapscript_wrap.c:3712: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1MULTIPLE': >>> mapscript_wrap.c:3713: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3713: error: parse error before "jresult" >>> mapscript_wrap.c:3716: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3717: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3753: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3753: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3758: error: parse error before "jint" >>> mapscript_wrap.c:3758: error: parse error before '*' token >>> mapscript_wrap.c:3758: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1GD_1ALPHA': >>> mapscript_wrap.c:3759: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3759: error: parse error before "jresult" >>> mapscript_wrap.c:3762: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3763: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3799: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3799: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3804: error: parse error before "jstring" >>> mapscript_wrap.c:3804: error: parse error before '*' token >>> mapscript_wrap.c:3804: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1filename': >>> mapscript_wrap.c:3805: error: `jstring' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3805: error: parse error before "jresult" >>> mapscript_wrap.c:3809: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3810: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3811: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3815: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3821: error: parse error before "jint" >>> mapscript_wrap.c:3821: error: parse error before '*' token >>> mapscript_wrap.c:3821: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1numfonts': >>> mapscript_wrap.c:3822: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3822: error: parse error before "jresult" >>> mapscript_wrap.c:3826: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3827: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3828: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3831: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3831: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3836: error: syntax error before "void" >>> mapscript_wrap.c:3836: error: parse error before '*' token >>> mapscript_wrap.c:3836: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1fontSetObj_1fonts': >>> mapscript_wrap.c:3840: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3841: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3842: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3843: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3849: error: parse error before "jlong" >>> mapscript_wrap.c:3849: error: parse error before '*' token >>> mapscript_wrap.c:3849: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1fontSetObj_1fonts': >>> mapscript_wrap.c:3850: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3850: error: parse error before "jresult" >>> mapscript_wrap.c:3854: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3855: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3856: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3859: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3864: error: parse error before "jlong" >>> mapscript_wrap.c:3864: error: parse error before '*' token >>> mapscript_wrap.c:3864: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1fontSetObj': >>> mapscript_wrap.c:3865: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3865: error: parse error before "jresult" >>> mapscript_wrap.c:3868: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3869: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3905: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3910: error: syntax error before "void" >>> mapscript_wrap.c:3910: error: parse error before '*' token >>> mapscript_wrap.c:3910: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1fontSetObj': >>> mapscript_wrap.c:3913: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3914: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3915: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3954: error: syntax error before "void" >>> mapscript_wrap.c:3954: error: parse error before '*' token >>> mapscript_wrap.c:3954: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1name': >>> mapscript_wrap.c:3958: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3959: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3960: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3963: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3965: warning: `return' with no value, in function >>> returning non-void >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:3983: error: parse error before "jstring" >>> mapscript_wrap.c:3983: error: parse error before '*' token >>> mapscript_wrap.c:3983: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1name': >>> mapscript_wrap.c:3984: error: `jstring' undeclared (first use in >>> this function) >>> mapscript_wrap.c:3984: error: parse error before "jresult" >>> mapscript_wrap.c:3988: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3989: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3990: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:3994: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4000: error: syntax error before "void" >>> mapscript_wrap.c:4000: error: parse error before '*' token >>> mapscript_wrap.c:4000: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1mimetype': >>> >>> mapscript_wrap.c:4004: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4005: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4006: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4009: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4011: warning: `return' with no value, in function >>> returning non-void >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4029: error: parse error before "jstring" >>> mapscript_wrap.c:4029: error: parse error before '*' token >>> mapscript_wrap.c:4029: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1mimetype': >>> >>> mapscript_wrap.c:4030: error: `jstring' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4030: error: parse error before "jresult" >>> mapscript_wrap.c:4034: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4035: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4036: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4040: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4046: error: syntax error before "void" >>> mapscript_wrap.c:4046: error: parse error before '*' token >>> mapscript_wrap.c:4046: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1driver': >>> mapscript_wrap.c:4050: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4051: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4052: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4055: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4057: warning: `return' with no value, in function >>> returning non-void >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4075: error: parse error before "jstring" >>> mapscript_wrap.c:4075: error: parse error before '*' token >>> mapscript_wrap.c:4075: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1driver': >>> mapscript_wrap.c:4076: error: `jstring' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4076: error: parse error before "jresult" >>> mapscript_wrap.c:4080: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4081: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4082: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4086: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4092: error: syntax error before "void" >>> mapscript_wrap.c:4092: error: parse error before '*' token >>> mapscript_wrap.c:4092: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1extension': >>> >>> mapscript_wrap.c:4096: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4097: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4098: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4101: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4103: warning: `return' with no value, in function >>> returning non-void >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4121: error: parse error before "jstring" >>> mapscript_wrap.c:4121: error: parse error before '*' token >>> mapscript_wrap.c:4121: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1extension': >>> >>> mapscript_wrap.c:4122: error: `jstring' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4122: error: parse error before "jresult" >>> mapscript_wrap.c:4126: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4127: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4128: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4132: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4138: error: syntax error before "void" >>> mapscript_wrap.c:4138: error: parse error before '*' token >>> mapscript_wrap.c:4138: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1renderer': >>> >>> mapscript_wrap.c:4142: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4143: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4144: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4145: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4151: error: parse error before "jint" >>> mapscript_wrap.c:4151: error: parse error before '*' token >>> mapscript_wrap.c:4151: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1renderer': >>> >>> mapscript_wrap.c:4152: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4152: error: parse error before "jresult" >>> mapscript_wrap.c:4156: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4157: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4158: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4161: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4161: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4166: error: syntax error before "void" >>> mapscript_wrap.c:4166: error: parse error before '*' token >>> mapscript_wrap.c:4166: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1imagemode': >>> >>> mapscript_wrap.c:4170: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4171: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4172: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4173: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4179: error: parse error before "jint" >>> mapscript_wrap.c:4179: error: parse error before '*' token >>> mapscript_wrap.c:4179: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1imagemode': >>> >>> mapscript_wrap.c:4180: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4180: error: parse error before "jresult" >>> mapscript_wrap.c:4184: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4185: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4186: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4189: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4189: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4194: error: syntax error before "void" >>> mapscript_wrap.c:4194: error: parse error before '*' token >>> mapscript_wrap.c:4194: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1transparent': >>> >>> mapscript_wrap.c:4198: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4199: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4200: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4201: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4207: error: parse error before "jint" >>> mapscript_wrap.c:4207: error: parse error before '*' token >>> mapscript_wrap.c:4207: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1transparent': >>> >>> mapscript_wrap.c:4208: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4208: error: parse error before "jresult" >>> mapscript_wrap.c:4212: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4213: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4214: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4217: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4217: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4222: error: syntax error before "void" >>> mapscript_wrap.c:4222: error: parse error before '*' token >>> mapscript_wrap.c:4222: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1bands': >>> mapscript_wrap.c:4226: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4227: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4228: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4229: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4235: error: parse error before "jint" >>> mapscript_wrap.c:4235: error: parse error before '*' token >>> mapscript_wrap.c:4235: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1bands': >>> mapscript_wrap.c:4236: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4236: error: parse error before "jresult" >>> mapscript_wrap.c:4240: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4241: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4242: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4245: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4245: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4250: error: syntax error before "void" >>> mapscript_wrap.c:4250: error: parse error before '*' token >>> mapscript_wrap.c:4250: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1numformatoptions': >>> >>> mapscript_wrap.c:4254: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4255: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4256: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4257: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4263: error: parse error before "jint" >>> mapscript_wrap.c:4263: error: parse error before '*' token >>> mapscript_wrap.c:4263: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1numformatoptions': >>> >>> mapscript_wrap.c:4264: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4264: error: parse error before "jresult" >>> mapscript_wrap.c:4268: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4269: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4270: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4273: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4273: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4278: error: syntax error before "void" >>> mapscript_wrap.c:4278: error: parse error before '*' token >>> mapscript_wrap.c:4278: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1formatoptions': >>> >>> mapscript_wrap.c:4282: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4283: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4284: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4285: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4291: error: parse error before "jlong" >>> mapscript_wrap.c:4291: error: parse error before '*' token >>> mapscript_wrap.c:4291: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1formatoptions': >>> >>> mapscript_wrap.c:4292: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4292: error: parse error before "jresult" >>> mapscript_wrap.c:4296: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4297: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4298: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4301: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4306: error: syntax error before "void" >>> mapscript_wrap.c:4306: error: parse error before '*' token >>> mapscript_wrap.c:4306: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1refcount': >>> >>> mapscript_wrap.c:4310: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4311: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4312: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4313: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4319: error: parse error before "jint" >>> mapscript_wrap.c:4319: error: parse error before '*' token >>> mapscript_wrap.c:4319: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1refcount': >>> >>> mapscript_wrap.c:4320: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4320: error: parse error before "jresult" >>> mapscript_wrap.c:4324: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4325: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4326: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4329: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4329: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4334: error: syntax error before "void" >>> mapscript_wrap.c:4334: error: parse error before '*' token >>> mapscript_wrap.c:4334: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1outputFormatObj_1inmapfile': >>> >>> mapscript_wrap.c:4338: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4339: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4340: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4341: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4347: error: parse error before "jint" >>> mapscript_wrap.c:4347: error: parse error before '*' token >>> mapscript_wrap.c:4347: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1outputFormatObj_1inmapfile': >>> >>> mapscript_wrap.c:4348: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4348: error: parse error before "jresult" >>> mapscript_wrap.c:4352: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4353: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4354: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4357: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4357: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4362: error: parse error before "jlong" >>> mapscript_wrap.c:4362: error: parse error before '*' token >>> mapscript_wrap.c:4362: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1outputFormatObj': >>> mapscript_wrap.c:4363: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4363: error: parse error before "jresult" >>> mapscript_wrap.c:4368: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4369: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4372: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4379: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4419: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4430: error: syntax error before "void" >>> mapscript_wrap.c:4430: error: parse error before '*' token >>> mapscript_wrap.c:4430: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1outputFormatObj': >>> mapscript_wrap.c:4433: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4434: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4435: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4474: error: syntax error before "void" >>> mapscript_wrap.c:4474: error: parse error before '*' token >>> mapscript_wrap.c:4474: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1setOption': >>> mapscript_wrap.c:4479: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4480: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4481: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4484: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4486: warning: `return' with no value, in function >>> returning non-void >>> mapscript_wrap.c:4491: error: `jarg3' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4493: warning: `return' with no value, in function >>> returning non-void >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4540: error: parse error before "jint" >>> mapscript_wrap.c:4540: error: parse error before '*' token >>> mapscript_wrap.c:4540: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1validate': >>> mapscript_wrap.c:4541: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4541: error: parse error before "jresult" >>> mapscript_wrap.c:4545: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4546: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4547: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4583: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4583: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4588: error: parse error before "jstring" >>> mapscript_wrap.c:4588: error: parse error before '*' token >>> mapscript_wrap.c:4588: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_outputFormatObj_1getOption': >>> mapscript_wrap.c:4589: error: `jstring' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4589: error: parse error before "jresult" >>> mapscript_wrap.c:4595: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4596: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4597: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4600: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4607: error: `jarg3' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4648: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4661: error: parse error before "jint" >>> mapscript_wrap.c:4661: error: parse error before '*' token >>> mapscript_wrap.c:4661: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1MS_1NOOVERRIDE': >>> mapscript_wrap.c:4662: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4662: error: parse error before "jresult" >>> mapscript_wrap.c:4665: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4666: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4702: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4702: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4707: error: syntax error before "void" >>> mapscript_wrap.c:4707: error: parse error before '*' token >>> mapscript_wrap.c:4707: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1height': >>> mapscript_wrap.c:4711: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4712: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4713: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4714: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4720: error: parse error before "jint" >>> mapscript_wrap.c:4720: error: parse error before '*' token >>> mapscript_wrap.c:4720: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1height': >>> mapscript_wrap.c:4721: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4721: error: parse error before "jresult" >>> mapscript_wrap.c:4725: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4726: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4727: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4730: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4730: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4735: error: syntax error before "void" >>> mapscript_wrap.c:4735: error: parse error before '*' token >>> mapscript_wrap.c:4735: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1width': >>> mapscript_wrap.c:4739: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4740: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4741: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4742: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4748: error: parse error before "jint" >>> mapscript_wrap.c:4748: error: parse error before '*' token >>> mapscript_wrap.c:4748: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1width': >>> mapscript_wrap.c:4749: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4749: error: parse error before "jresult" >>> mapscript_wrap.c:4753: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4754: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4755: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4758: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4758: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4763: error: syntax error before "void" >>> mapscript_wrap.c:4763: error: parse error before '*' token >>> mapscript_wrap.c:4763: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1status': >>> mapscript_wrap.c:4767: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4768: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4769: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4770: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4776: error: parse error before "jint" >>> mapscript_wrap.c:4776: error: parse error before '*' token >>> mapscript_wrap.c:4776: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1status': >>> mapscript_wrap.c:4777: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4777: error: parse error before "jresult" >>> mapscript_wrap.c:4781: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4782: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4783: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4786: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4786: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4791: error: syntax error before "void" >>> mapscript_wrap.c:4791: error: parse error before '*' token >>> mapscript_wrap.c:4791: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1style': >>> mapscript_wrap.c:4795: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4796: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4797: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4798: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4804: error: parse error before "jint" >>> mapscript_wrap.c:4804: error: parse error before '*' token >>> mapscript_wrap.c:4804: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1style': >>> mapscript_wrap.c:4805: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4805: error: parse error before "jresult" >>> mapscript_wrap.c:4809: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4810: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4811: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4814: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4814: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4819: error: syntax error before "void" >>> mapscript_wrap.c:4819: error: parse error before '*' token >>> mapscript_wrap.c:4819: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1queryMapObj_1color': >>> mapscript_wrap.c:4823: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4824: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4825: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4826: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4832: error: parse error before "jlong" >>> mapscript_wrap.c:4832: error: parse error before '*' token >>> mapscript_wrap.c:4832: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1queryMapObj_1color': >>> mapscript_wrap.c:4833: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4833: error: parse error before "jresult" >>> mapscript_wrap.c:4837: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4838: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4839: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4842: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4847: error: parse error before "jlong" >>> mapscript_wrap.c:4847: error: parse error before '*' token >>> mapscript_wrap.c:4847: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_new_1queryMapObj': >>> mapscript_wrap.c:4848: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4848: error: parse error before "jresult" >>> mapscript_wrap.c:4851: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4852: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4888: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4893: error: syntax error before "void" >>> mapscript_wrap.c:4893: error: parse error before '*' token >>> mapscript_wrap.c:4893: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1queryMapObj': >>> mapscript_wrap.c:4896: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4897: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4898: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4937: error: syntax error before "void" >>> mapscript_wrap.c:4937: error: parse error before '*' token >>> mapscript_wrap.c:4937: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1font': >>> mapscript_wrap.c:4941: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4942: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4943: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4946: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4948: warning: `return' with no value, in function >>> returning non-void >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4966: error: parse error before "jstring" >>> mapscript_wrap.c:4966: error: parse error before '*' token >>> mapscript_wrap.c:4966: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1font': >>> mapscript_wrap.c:4967: error: `jstring' undeclared (first use in >>> this function) >>> mapscript_wrap.c:4967: error: parse error before "jresult" >>> mapscript_wrap.c:4971: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4972: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4973: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4977: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4983: error: syntax error before "void" >>> mapscript_wrap.c:4983: error: parse error before '*' token >>> mapscript_wrap.c:4983: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1type': >>> mapscript_wrap.c:4987: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4988: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4989: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4990: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:4996: error: parse error before "jint" >>> mapscript_wrap.c:4996: error: parse error before '*' token >>> mapscript_wrap.c:4996: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1type': >>> mapscript_wrap.c:4997: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:4997: error: parse error before "jresult" >>> mapscript_wrap.c:5001: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5002: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5003: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5006: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5006: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5011: error: syntax error before "void" >>> mapscript_wrap.c:5011: error: parse error before '*' token >>> mapscript_wrap.c:5011: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1color': >>> mapscript_wrap.c:5015: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5016: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5017: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5018: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5024: error: parse error before "jlong" >>> mapscript_wrap.c:5024: error: parse error before '*' token >>> mapscript_wrap.c:5024: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1color': >>> mapscript_wrap.c:5025: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5025: error: parse error before "jresult" >>> mapscript_wrap.c:5029: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5030: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5031: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5034: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5039: error: syntax error before "void" >>> mapscript_wrap.c:5039: error: parse error before '*' token >>> mapscript_wrap.c:5039: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1outlinecolor': >>> mapscript_wrap.c:5043: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5044: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5045: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5046: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5052: error: parse error before "jlong" >>> mapscript_wrap.c:5052: error: parse error before '*' token >>> mapscript_wrap.c:5052: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1outlinecolor': >>> mapscript_wrap.c:5053: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5053: error: parse error before "jresult" >>> mapscript_wrap.c:5057: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5058: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5059: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5062: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5067: error: syntax error before "void" >>> mapscript_wrap.c:5067: error: parse error before '*' token >>> mapscript_wrap.c:5067: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowcolor': >>> mapscript_wrap.c:5071: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5072: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5073: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5074: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5080: error: parse error before "jlong" >>> mapscript_wrap.c:5080: error: parse error before '*' token >>> mapscript_wrap.c:5080: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowcolor': >>> mapscript_wrap.c:5081: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5081: error: parse error before "jresult" >>> mapscript_wrap.c:5085: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5086: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5087: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5090: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5095: error: syntax error before "void" >>> mapscript_wrap.c:5095: error: parse error before '*' token >>> mapscript_wrap.c:5095: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowsizex': >>> mapscript_wrap.c:5099: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5100: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5101: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5102: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5108: error: parse error before "jint" >>> mapscript_wrap.c:5108: error: parse error before '*' token >>> mapscript_wrap.c:5108: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowsizex': >>> mapscript_wrap.c:5109: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5109: error: parse error before "jresult" >>> mapscript_wrap.c:5113: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5114: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5115: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5118: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5118: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5123: error: syntax error before "void" >>> mapscript_wrap.c:5123: error: parse error before '*' token >>> mapscript_wrap.c:5123: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1shadowsizey': >>> mapscript_wrap.c:5127: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5128: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5129: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5130: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5136: error: parse error before "jint" >>> mapscript_wrap.c:5136: error: parse error before '*' token >>> mapscript_wrap.c:5136: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1shadowsizey': >>> mapscript_wrap.c:5137: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5137: error: parse error before "jresult" >>> mapscript_wrap.c:5141: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5142: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5143: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5146: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5146: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5151: error: syntax error before "void" >>> mapscript_wrap.c:5151: error: parse error before '*' token >>> mapscript_wrap.c:5151: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundcolor': >>> >>> mapscript_wrap.c:5155: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5156: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5157: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5158: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5164: error: parse error before "jlong" >>> mapscript_wrap.c:5164: error: parse error before '*' token >>> mapscript_wrap.c:5164: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundcolor': >>> >>> mapscript_wrap.c:5165: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5165: error: parse error before "jresult" >>> mapscript_wrap.c:5169: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5170: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5171: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5174: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5179: error: syntax error before "void" >>> mapscript_wrap.c:5179: error: parse error before '*' token >>> mapscript_wrap.c:5179: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowcolor': >>> >>> mapscript_wrap.c:5183: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5184: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5185: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5186: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5192: error: parse error before "jlong" >>> mapscript_wrap.c:5192: error: parse error before '*' token >>> mapscript_wrap.c:5192: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowcolor': >>> >>> mapscript_wrap.c:5193: error: `jlong' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5193: error: parse error before "jresult" >>> mapscript_wrap.c:5197: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5198: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5199: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5202: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5207: error: syntax error before "void" >>> mapscript_wrap.c:5207: error: parse error before '*' token >>> mapscript_wrap.c:5207: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowsizex': >>> >>> mapscript_wrap.c:5211: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5212: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5213: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5214: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5220: error: parse error before "jint" >>> mapscript_wrap.c:5220: error: parse error before '*' token >>> mapscript_wrap.c:5220: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowsizex': >>> >>> mapscript_wrap.c:5221: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5221: error: parse error before "jresult" >>> mapscript_wrap.c:5225: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5226: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5227: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5230: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5230: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5235: error: syntax error before "void" >>> mapscript_wrap.c:5235: error: parse error before '*' token >>> mapscript_wrap.c:5235: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1backgroundshadowsizey': >>> >>> mapscript_wrap.c:5239: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5240: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5241: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5242: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5248: error: parse error before "jint" >>> mapscript_wrap.c:5248: error: parse error before '*' token >>> mapscript_wrap.c:5248: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1backgroundshadowsizey': >>> >>> mapscript_wrap.c:5249: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5249: error: parse error before "jresult" >>> mapscript_wrap.c:5253: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5254: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5255: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5258: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5258: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5263: error: syntax error before "void" >>> mapscript_wrap.c:5263: error: parse error before '*' token >>> mapscript_wrap.c:5263: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1size': >>> mapscript_wrap.c:5267: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5268: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5269: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5270: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5276: error: parse error before "jint" >>> mapscript_wrap.c:5276: error: parse error before '*' token >>> mapscript_wrap.c:5276: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1size': >>> mapscript_wrap.c:5277: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5277: error: parse error before "jresult" >>> mapscript_wrap.c:5281: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5282: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5283: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5286: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5286: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5291: error: syntax error before "void" >>> mapscript_wrap.c:5291: error: parse error before '*' token >>> mapscript_wrap.c:5291: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1minsize': >>> mapscript_wrap.c:5295: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5296: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5297: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5298: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5304: error: parse error before "jint" >>> mapscript_wrap.c:5304: error: parse error before '*' token >>> mapscript_wrap.c:5304: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1minsize': >>> mapscript_wrap.c:5305: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5305: error: parse error before "jresult" >>> mapscript_wrap.c:5309: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5310: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5311: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5314: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5314: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5319: error: syntax error before "void" >>> mapscript_wrap.c:5319: error: parse error before '*' token >>> mapscript_wrap.c:5319: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1maxsize': >>> mapscript_wrap.c:5323: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5324: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5325: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5326: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5332: error: parse error before "jint" >>> mapscript_wrap.c:5332: error: parse error before '*' token >>> mapscript_wrap.c:5332: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1maxsize': >>> mapscript_wrap.c:5333: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5333: error: parse error before "jresult" >>> mapscript_wrap.c:5337: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5338: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5339: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5342: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5342: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5347: error: syntax error before "void" >>> mapscript_wrap.c:5347: error: parse error before '*' token >>> mapscript_wrap.c:5347: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1position': >>> mapscript_wrap.c:5351: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5352: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5353: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5354: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5360: error: parse error before "jint" >>> mapscript_wrap.c:5360: error: parse error before '*' token >>> mapscript_wrap.c:5360: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1position': >>> mapscript_wrap.c:5361: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5361: error: parse error before "jresult" >>> mapscript_wrap.c:5365: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5366: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5367: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5370: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5370: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5375: error: syntax error before "void" >>> mapscript_wrap.c:5375: error: parse error before '*' token >>> mapscript_wrap.c:5375: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1offsetx': >>> mapscript_wrap.c:5379: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5380: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5381: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5382: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5388: error: parse error before "jint" >>> mapscript_wrap.c:5388: error: parse error before '*' token >>> mapscript_wrap.c:5388: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1offsetx': >>> mapscript_wrap.c:5389: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5389: error: parse error before "jresult" >>> mapscript_wrap.c:5393: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5394: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5395: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5398: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5398: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5403: error: syntax error before "void" >>> mapscript_wrap.c:5403: error: parse error before '*' token >>> mapscript_wrap.c:5403: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1offsety': >>> mapscript_wrap.c:5407: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5408: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5409: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5410: error: `jarg2' undeclared (first use in this >>> function) >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5416: error: parse error before "jint" >>> mapscript_wrap.c:5416: error: parse error before '*' token >>> mapscript_wrap.c:5416: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_get_1labelObj_1offsety': >>> mapscript_wrap.c:5417: error: `jint' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5417: error: parse error before "jresult" >>> mapscript_wrap.c:5421: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5422: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5423: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5426: error: `jresult' undeclared (first use in >>> this function) >>> mapscript_wrap.c:5426: error: parse error before "result" >>> mapscript_wrap.c: At top level: >>> mapscript_wrap.c:5431: error: syntax error before "void" >>> mapscript_wrap.c:5431: error: parse error before '*' token >>> mapscript_wrap.c:5431: warning: return type defaults to `int' >>> mapscript_wrap.c: In function >>> `Java_edu_umn_gis_mapscript_mapscriptJNI_set_1labelObj_1angle': >>> mapscript_wrap.c:5435: error: `jenv' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5436: error: `jcls' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5437: error: `jarg1' undeclared (first use in this >>> function) >>> mapscript_wrap.c:5438: error: `jarg2' undeclared (first use in >>> >>> >> >> >> >> >> >> > hello > > JAVA_HOME ???? > > > if you mean this: > orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ printenv | grep > java > PWD=/home/orkun/work/mapserver-4.6.0/mapscript/java > orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ > > But I did not have any environment variable like JAVA_HOME > I tried to produce it: > /mapscript/java$ JAVA_HOME="/usr/local/jdk1.5.0_03/" > then make > > it gives same errors. > > I am new in java and its installation. I am not sure > if my java installation is correct. > I followed debian installation way. > Later I have java_libs known by > my system. > > landslide:/home/orkun# cat /etc/ld.so.conf > /usr/X11R6/lib > /usr/lib/grass/lib > /usr/local/jdk1.5.0_03/lib > > > mapserver can not still be installed. > > > > > I realized later that I had skipped to sent you history's last values. > > 506 ./ins2 #executable file containing config values > 507 make clean > 508 make > 509 make install > 510 cd mapscript > 511 cd java > 512 make interface > 513 make *** errors > 514 history 10 > > > regards > my last message thank you ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From umberto.nicoletti at GMAIL.COM Wed Jun 22 00:51:30 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 22 Jun 2005 09:51:30 +0200 Subject: java mapscript error In-Reply-To: <42B916AF.6090802@deprem.gov.tr> Message-ID: > hello > > JAVA_HOME ???? You really should RTFM > > > if you mean this: > orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ printenv | grep > java > PWD=/home/orkun/work/mapserver-4.6.0/mapscript/java > orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ > > But I did not have any environment variable like JAVA_HOME > I tried to produce it: > /mapscript/java$ JAVA_HOME="/usr/local/jdk1.5.0_03/" try export JAVA_HOME="/usr/local/jdk1.5.0_03" Have you tried with java 1.4.2? That works for sure. Ciao, Umberto > then make > > it gives same errors. > > I am new in java and its installation. I am not sure > if my java installation is correct. > I followed debian installation way. > Later I have java_libs known by > my system. > > landslide:/home/orkun# cat /etc/ld.so.conf > /usr/X11R6/lib > /usr/lib/grass/lib > /usr/local/jdk1.5.0_03/lib > > > mapserver can not still be installed. > > > > > I realized later that I had skipped to sent you history's last values. > > 506 ./ins2 #executable file containing config values > 507 make clean > 508 make > 509 make install > 510 cd mapscript > 511 cd java > 512 make interface > 513 make *** errors > 514 history 10 > > > regards > my last message thank you From temiz at DEPREM.GOV.TR Wed Jun 22 01:57:39 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Wed, 22 Jun 2005 11:57:39 +0300 Subject: java mapscript seems OK In-Reply-To: <75b4b93e050622005158374cdd@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: >>hello >> >>JAVA_HOME ???? >> >> > >You really should RTFM > > > >>if you mean this: >>orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ printenv | grep >>java >>PWD=/home/orkun/work/mapserver-4.6.0/mapscript/java >>orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ >> >>But I did not have any environment variable like JAVA_HOME >>I tried to produce it: >>/mapscript/java$ JAVA_HOME="/usr/local/jdk1.5.0_03/" >> >> >try > >export JAVA_HOME="/usr/local/jdk1.5.0_03" > >Have you tried with java 1.4.2? That works for sure. > >Ciao, >Umberto > > > >>then make >> >>it gives same errors. >> >>I am new in java and its installation. I am not sure >>if my java installation is correct. >>I followed debian installation way. >>Later I have java_libs known by >>my system. >> >>landslide:/home/orkun# cat /etc/ld.so.conf >>/usr/X11R6/lib >>/usr/lib/grass/lib >>/usr/local/jdk1.5.0_03/lib >> >> >>mapserver can not still be installed. >> >> >> >> >>I realized later that I had skipped to sent you history's last values. >> >> 506 ./ins2 #executable file containing config values >> 507 make clean >> 508 make >> 509 make install >> 510 cd mapscript >> 511 cd java >> 512 make interface >> 513 make *** errors >> 514 history 10 >> >> >>regards >> >> >> >my last message > >thank you > > > > > it looks ok. ~~~~~~~~~~~~~~~~~~~~ orkun at landslide:/usr/local/mapserver-4.6.0/mapscript/java$ make gcc -fpic -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_THREAD -I/usr/local/gd-2.0.33 -I/usr/local/include -I/usr/local/jdk1.5.0_03//include -I/usr/local/jdk1.5.0_03//include/linux -fno-strict-aliasing mapscript_wrap.c gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap -L/usr/local/gd-2.0.33/.libs -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal -lpthread -lm -lstdc++ javac edu/umn/gis/mapscript/*.java jar cf mapscript.jar edu orkun at landslide:/usr/local/mapserver-4.6.0/mapscript/java$ make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp ../../tests/point.shp Shapefile opened (type = point with 1 shapes). Shape[0] has 1 part(s) bounds (0.0,51.477222)(0.0,51.477222) Part[0] has 1 point(s) Point[0] = 0.0, 51.477222 java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. ShapeInfo ../../tests/point.shp ../../tests/point.dbf Shapefile name = ../../tests/point.shp Type = point Number of features 1 bounds (0.0,51.477222)(0.0,51.477222) java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DrawMap ../../tests/test.map ./map.png The map will be drawn to:./map.png ~~~~~~~~~~~~~ it created libmapscript.so and mapscript.jar ~~~~~~~~~~~~~~ orkun at landslide:/usr/local/mapserver-4.6.0/mapscript/java$ ldd libmapscript.so libgd.so.2 => /usr/lib/libgd.so.2 (0x4011c000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4016c000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4018b000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x401f8000) libproj.so.0 => /usr/lib/libproj.so.0 (0x4021d000) libgdal.so.1 => /usr/lib/libgdal.so.1 (0x40252000) libpthread.so.0 => /lib/libpthread.so.0 (0x4061b000) libm.so.6 => /lib/libm.so.6 (0x4066c000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4068f000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40749000) libc.so.6 => /lib/libc.so.6 (0x40752000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40885000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40894000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x4095b000) libz.so.1 => /usr/lib/libz.so.1 (0x4098b000) libgeos.so.2 => /usr/lib/libgeos.so.2 (0x4099d000) libodbc.so.1 => /usr/lib/libodbc.so.1 (0x40a90000) libxerces-c.so.26 => /usr/lib/libxerces-c.so.26 (0x40b08000) libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 (0x40e52000) libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0x40e9f000) libdf.so.4 => /usr/lib/libdf.so.4 (0x40ec2000) libungif.so.4 => /usr/lib/libungif.so.4 (0x40f61000) libtiff.so.4 => /usr/lib/libtiff.so.4 (0x40f69000) libnetcdf.so.3 => /usr/lib/libnetcdf.so.3 (0x40fb8000) libcfitsio.so.2 => /usr/lib/libcfitsio.so.2 (0x40fdb000) libdl.so.2 => /lib/libdl.so.2 (0x41149000) libpq.so.3 => /usr/lib/libpq.so.3 (0x4114d000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0x41168000) libltdl.so.3 => /usr/lib/libltdl.so.3 (0x41188000) libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x4118f000) libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0x411c1000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x412c0000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x41328000) libresolv.so.2 => /lib/libresolv.so.2 (0x41355000) libnsl.so.1 => /lib/libnsl.so.1 (0x41367000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x4137c000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x4139e000) ~~~~~~~~~~ thank you for your all real helps ** ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From flavio at TYDAC.CH Wed Jun 22 02:36:11 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 22 Jun 2005 11:36:11 +0200 Subject: New MapServer Map Files Help In-Reply-To: Message-ID: Hi all The MapServer Map Files Help I presented at the MapServer User Conference is online at http://umn.mapserver.ch. Enjoy! Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ ? ? ?Mit freundlichen Gruessen / Kind Regards ############? ? ? ? ? ? ?mailto:flavio at tydac.ch ############ ? ? ? ? TYDAC AG - http://www.tydac.ch #### ? ?#### ? ? ? ?Geographic Information Solutions #### ? ?#### ? ? ? ? Luternauweg 12 -- CH-3006 Bern ############ ? Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From margottid at COMUNE.LUGO.RA.IT Wed Jun 22 03:47:00 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Wed, 22 Jun 2005 12:47:00 +0200 Subject: queryByFeatures: VERY URGENT!!! In-Reply-To: <001001c576f3$a84e2030$041410ac@comune.lugo.ra.it> Message-ID: Ok, I'm able to provide you some examples of the problem. Mapserver 4.4.2 (no errors) --------------- This is the right query (layer "Mappali" intersects layer "ZonaE2_1") http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These should not return any result (layer "Mappali" doesn't intersect layers "ZonaE2_2", "ZonaE2_4", "ZonaE2_15"): http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes Mapserver 4.6.0 (ERRORS!) --------------- This return TWO results, but layer "Mappali" intersect layers "ZonaE2_1" ONLY ONE TIME: http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These return results, but layer "Mappali" doesn't intersect any of layers "Zona*": http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes As you can see, I use the same map, the same qstring and the same layers: I only change Mapserver version (/cgi-bin/mapserv442 and /cgi-bin/mapserv460). How could you explain it, and how can I fix it? Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti Sent: Wednesday, June 22, 2005 8:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi Steve, I only need to extract data when my parcel (from parcel layer) intersect one or more zone layers, without creating images. Upgrading to 4.6.0 I noticed that the script returned many wrong results (plus the right ones). Downgrading to 4.0.1 (or even 4.4.2, in another non-production PC), the problem disappears. The problem happens using PHP MapScript functions (both with PHP 4 and 5). If you could tell me the syntax for using feature query capabilities via CGI (I think it should be FEATUREQUERY, defining a Slayer), I can check if CGI Mapserver (4.0.1, 4.4.2 and 4.6.0) has the same behaviour of corresponding Mapscript, and then provide you some query example (pointing directly on my webserver). Thank you, Daniele -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 21, 2005 7:32 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Importance: High ** High Priority ** Certainly isn't supposed to work that way. How do you know this is happening - sample images or something. There haven't been many (any) changes in that code any time recently. I use the feature query capabilities a lot (via CGI) and have had know troubles... Steve >>> Daniele Margotti 06/21/05 5:00 AM >>> Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 22 04:06:31 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 22 Jun 2005 13:06:31 +0200 Subject: queryByFeatures: VERY URGENT!!! Message-ID: Hi, Are all your query layers POLYGONS? The only thing I could think of, but maybe isn't even related, is the default tolerance which was added, but this was only added for LINE and POINT layers. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1103 Do you have a TOLERANCE or TOLERANCEUNITS set in your MAP file? Can you try and experiment with Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/22/05 12:47pm >>> Ok, I'm able to provide you some examples of the problem. Mapserver 4.4.2 (no errors) --------------- This is the right query (layer "Mappali" intersects layer "ZonaE2_1") http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These should not return any result (layer "Mappali" doesn't intersect layers "ZonaE2_2", "ZonaE2_4", "ZonaE2_15"): http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes Mapserver 4.6.0 (ERRORS!) --------------- This return TWO results, but layer "Mappali" intersect layers "ZonaE2_1" ONLY ONE TIME: http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These return results, but layer "Mappali" doesn't intersect any of layers "Zona*": http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes As you can see, I use the same map, the same qstring and the same layers: I only change Mapserver version (/cgi-bin/mapserv442 and /cgi-bin/mapserv460). How could you explain it, and how can I fix it? Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti Sent: Wednesday, June 22, 2005 8:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi Steve, I only need to extract data when my parcel (from parcel layer) intersect one or more zone layers, without creating images. Upgrading to 4.6.0 I noticed that the script returned many wrong results (plus the right ones). Downgrading to 4.0.1 (or even 4.4.2, in another non-production PC), the problem disappears. The problem happens using PHP MapScript functions (both with PHP 4 and 5). If you could tell me the syntax for using feature query capabilities via CGI (I think it should be FEATUREQUERY, defining a Slayer), I can check if CGI Mapserver (4.0.1, 4.4.2 and 4.6.0) has the same behaviour of corresponding Mapscript, and then provide you some query example (pointing directly on my webserver). Thank you, Daniele -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 21, 2005 7:32 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Importance: High ** High Priority ** Certainly isn't supposed to work that way. How do you know this is happening - sample images or something. There haven't been many (any) changes in that code any time recently. I use the feature query capabilities a lot (via CGI) and have had know troubles... Steve >>> Daniele Margotti 06/21/05 5:00 AM >>> Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From margottid at COMUNE.LUGO.RA.IT Wed Jun 22 04:40:42 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Wed, 22 Jun 2005 13:40:42 +0200 Subject: queryByFeatures: VERY URGENT!!! In-Reply-To: Message-ID: You got the point! I had TOLERANCE (and TOLERANCEUNITS PIXELS) set only for POINT and LINE layers. So, you say I have to put: TOLERANCE 0 TOLERANCEUNITS PIXELS for *every* POLYGON layer to avoid the problem, am I right? Or can I set a default tolerance for the entire map, and then specify TOLERANCE only for layers where I really need it? Thank you, Daniele -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Wednesday, June 22, 2005 1:07 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi, Are all your query layers POLYGONS? The only thing I could think of, but maybe isn't even related, is the default tolerance which was added, but this was only added for LINE and POINT layers. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1103 Do you have a TOLERANCE or TOLERANCEUNITS set in your MAP file? Can you try and experiment with Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/22/05 12:47pm >>> Ok, I'm able to provide you some examples of the problem. Mapserver 4.4.2 (no errors) --------------- This is the right query (layer "Mappali" intersects layer "ZonaE2_1") http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These should not return any result (layer "Mappali" doesn't intersect layers "ZonaE2_2", "ZonaE2_4", "ZonaE2_15"): http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes Mapserver 4.6.0 (ERRORS!) --------------- This return TWO results, but layer "Mappali" intersect layers "ZonaE2_1" ONLY ONE TIME: http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These return results, but layer "Mappali" doesn't intersect any of layers "Zona*": http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes As you can see, I use the same map, the same qstring and the same layers: I only change Mapserver version (/cgi-bin/mapserv442 and /cgi-bin/mapserv460). How could you explain it, and how can I fix it? Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti Sent: Wednesday, June 22, 2005 8:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi Steve, I only need to extract data when my parcel (from parcel layer) intersect one or more zone layers, without creating images. Upgrading to 4.6.0 I noticed that the script returned many wrong results (plus the right ones). Downgrading to 4.0.1 (or even 4.4.2, in another non-production PC), the problem disappears. The problem happens using PHP MapScript functions (both with PHP 4 and 5). If you could tell me the syntax for using feature query capabilities via CGI (I think it should be FEATUREQUERY, defining a Slayer), I can check if CGI Mapserver (4.0.1, 4.4.2 and 4.6.0) has the same behaviour of corresponding Mapscript, and then provide you some query example (pointing directly on my webserver). Thank you, Daniele -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 21, 2005 7:32 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Importance: High ** High Priority ** Certainly isn't supposed to work that way. How do you know this is happening - sample images or something. There haven't been many (any) changes in that code any time recently. I use the feature query capabilities a lot (via CGI) and have had know troubles... Steve >>> Daniele Margotti 06/21/05 5:00 AM >>> Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From pspencer at DMSOLUTIONS.CA Wed Jun 22 04:56:28 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 22 Jun 2005 07:56:28 -0400 Subject: PostGIS Question In-Reply-To: <42B85DDB.8020602@swoodbridge.com> Message-ID: Steve, I can't answer the question with a high level of certainty, but if you run postmaster with a certain level of debugging and monitor your logs, you will see the full SQL statement that gets built for a layer draw and I believe that it contains this kind of constraint. If you don't get a better answer here, I'd suggest posting to the postgis list, I'm not sure how closely Paul R. monitors this list ;) Paul Stephen Woodbridge wrote: > I'm newbie to PostGIS, I am wondering if the mapserver integration uses > the PostGIS spatial indexes when rendering a map or if it needs to be > made explicitly in the layer definition? > > Does the final SQL do something like: > > select whatever, the_geom > from table > where the_geom && bbox2d(image_extents) and ... > > I am guessing/hoping it probably does. Is there an easy way to get > mapserver to dump the SQL to a log file for inspection? > > Thanks, > -Steve W. > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From umn-ms at HYDROTEC.DE Wed Jun 22 04:58:02 2005 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 22 Jun 2005 13:58:02 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <75b4b93e050621234935de525c@mail.gmail.com> Message-ID: the java-stacktrace shows, that the "delete" is called by from the "finalize"-method, i.e. from the garbage-collector. our experience is, that calling delete directly from the java-servlet is *much* safer. if we dynamically create mapserver-objects, we allway use code like this: classObj cO = new classObj(...); .. // Do something with cO .. //now cO isn't used any more cO.delete() same rule for layers etc. Benedikt UMN MapServer Users List schrieb am 21.06.2005 17:21:39: > I'm forwarding this to the users list. Hopefully, Umberto will be able > to provide some insight. > > cheers, > Sean > > On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > > > Dear Mr. Gillies, > > > > some weeks ago me and Florian Pepping contacted you because we had > > problems using the Java Mapscript API. Thanks to you we could solve > > these problems :-) > > > > Now we got our program doing what it's supposed to do but there is > > still a big problem left which we were not able to solve yet: > > We created a simple servlet which is created inside a Tomcat 5.0 > > Webserver. This servlet created a map image (png/jpg) and displays > > some specified objects on the map. (We use it for location based > > services --> "show me the position of the next printer"). > > After an irregular number of calls of our servlet which uses the Java > > Mapscript API the complete Java VM and with it the Tomcat crashes. I > > attached the error report below. The program works properly for a > > number of calls (between 5 and 1000 :-) ) and after that it crashes. > > We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, > > 4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > > 1.5.0. We also configured mapserver using the --with-threads option, > > but all this did not help. By the way the mapserv cgi-module works > > properly. > > > > Do you have an idea for this? > > > > Thanks for your anxiety > > > > Christian & Florian > > University of Paderborn, Germany > > > > > > ------------------------------------------------------------------- > > > > JavaMapscriptLoader: mapscript native library has been loaded. > > * mapscript native library loaded * > > > > An unexpected exception has been detected in native code outside the > > VM. > > Unexpected Signal : 11 occurred at PC=0x3338268 > > Function=delete_classObj+0x8 > > Library=/usr/lib/libmapscript.so > > > > Current Java thread: > > at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > > Method) > > at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > > at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > > at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > > at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > > at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > > at > > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > > > > Dynamic libraries: > > Can not get information for pid = 10558 > > > > Heap at VM Abort: > > Heap > > def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > > 0x08fc0000) > > eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > > from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > > to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > > tenured generation total 15048K, used 13624K [0x08fc0000, > > 0x09e72000, > > 0x0cae0000) > > the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > > 0x09e72000) > > compacting perm gen total 18432K, used 18373K [0x0cae0000, > > 0x0dce0000, > > 0x10ae0000) > > the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > > 0x0dce0000) > > > > Local Time = Tue Jun 14 15:32:19 2005 > > Elapsed Time = 246 > > # > > # The exception above was detected in native code outside the VM > > # > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > > # > > # An error report file has been saved as /tmp/hs_err_pid10558.log. > > # Please refer to the file for further information. > > # > > > > ------------------------------------------------------------------- > > > > On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > > > >> Dear Mr. Gillies, > >> > >> I?m a student of the University of Paderborn in Germany and member of > >> the project group ?Location Based Services for Wireless Devices?. In > >> this project we try to position laptops and other WLAN-enabled > >> devices using the signal strength of the WLAN. According to their > >> position, we want to offer location based services to the persons > >> using the devices (where I am; where?s the next printer; is there a > >> friend nearby) > >> > >> In order to do this, we want to use your mapserver and the Java > >> Mapscript API to generate maps according to the actual position and > >> situation. We like to customize the map of our building and add > >> points, lines and so on. > >> > >> We have been able to compile the whole mapserver and the Java > >> Mapscript API. A small Java example also works, which presents an > >> unchanged map of our building. > >> > > > [...] > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Jun 22 05:39:52 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 22 Jun 2005 08:39:52 -0400 Subject: New MapServer Map Files Help In-Reply-To: Message-ID: Flavio, Very nice job and nice use of dtree. Thank you for putting together this excellent mapfile reference tool. -Steve W. Flavio Hendry wrote: > Hi all > > The MapServer Map Files Help I presented at the MapServer User > Conference is online at http://umn.mapserver.ch. Enjoy! > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 22 05:49:24 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 22 Jun 2005 14:49:24 +0200 Subject: queryByFeatures: VERY URGENT!!! Message-ID: If I look at the Mapserver code it does not set the default TOLERANCE for POLYGON layers. So this bug is very likely not related to your problem. Sorry, I thought maybe you had polyline layers. You could try with TOLERANCE 0 and TOLERANCEUNITS PIXELS for all your search layers though but I don't think it will solve your problem. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/22/05 01:40pm >>> You got the point! I had TOLERANCE (and TOLERANCEUNITS PIXELS) set only for POINT and LINE layers. So, you say I have to put: TOLERANCE 0 TOLERANCEUNITS PIXELS for *every* POLYGON layer to avoid the problem, am I right? Or can I set a default tolerance for the entire map, and then specify TOLERANCE only for layers where I really need it? Thank you, Daniele -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Wednesday, June 22, 2005 1:07 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi, Are all your query layers POLYGONS? The only thing I could think of, but maybe isn't even related, is the default tolerance which was added, but this was only added for LINE and POINT layers. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1103 Do you have a TOLERANCE or TOLERANCEUNITS set in your MAP file? Can you try and experiment with Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/22/05 12:47pm >>> Ok, I'm able to provide you some examples of the problem. Mapserver 4.4.2 (no errors) --------------- This is the right query (layer "Mappali" intersects layer "ZonaE2_1") http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These should not return any result (layer "Mappali" doesn't intersect layers "ZonaE2_2", "ZonaE2_4", "ZonaE2_15"): http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes Mapserver 4.6.0 (ERRORS!) --------------- This return TWO results, but layer "Mappali" intersect layers "ZonaE2_1" ONLY ONE TIME: http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These return results, but layer "Mappali" doesn't intersect any of layers "Zona*": http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes As you can see, I use the same map, the same qstring and the same layers: I only change Mapserver version (/cgi-bin/mapserv442 and /cgi-bin/mapserv460). How could you explain it, and how can I fix it? Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti Sent: Wednesday, June 22, 2005 8:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi Steve, I only need to extract data when my parcel (from parcel layer) intersect one or more zone layers, without creating images. Upgrading to 4.6.0 I noticed that the script returned many wrong results (plus the right ones). Downgrading to 4.0.1 (or even 4.4.2, in another non-production PC), the problem disappears. The problem happens using PHP MapScript functions (both with PHP 4 and 5). If you could tell me the syntax for using feature query capabilities via CGI (I think it should be FEATUREQUERY, defining a Slayer), I can check if CGI Mapserver (4.0.1, 4.4.2 and 4.6.0) has the same behaviour of corresponding Mapscript, and then provide you some query example (pointing directly on my webserver). Thank you, Daniele -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 21, 2005 7:32 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Importance: High ** High Priority ** Certainly isn't supposed to work that way. How do you know this is happening - sample images or something. There haven't been many (any) changes in that code any time recently. I use the feature query capabilities a lot (via CGI) and have had know troubles... Steve >>> Daniele Margotti 06/21/05 5:00 AM >>> Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From dennis at MEGARRY.COM Wed Jun 22 06:00:33 2005 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Wed, 22 Jun 2005 09:00:33 -0400 Subject: New MapServer Map Files Help Message-ID: Very nice indeed! Thank you.. There is a shortage of help documents in this area for sure.. And for newbies like myself, this is a goldmine of information! Just wish there was better documentation of projections, I downloaded the epsg access db but have yet to figure out what use it is since its very cryptic on how to locate a projection. One thing I've been searching on an answer for and your site missed it as well is how to set the DEBUG tag. I assume this is to obtain debug info to help trace problems with the map file? but I can not find anywhere on what goes into the tag. Dennis ________________________________ From: UMN MapServer Users List on behalf of Flavio Hendry Sent: Wed 6/22/2005 5:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] New MapServer Map Files Help Hi all The MapServer Map Files Help I presented at the MapServer User Conference is online at http://umn.mapserver.ch. Enjoy! Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 22 06:06:31 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 22 Jun 2005 15:06:31 +0200 Subject: New MapServer Map Files Help Message-ID: With respect to your last question, see: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Dennis Megarry 06/22/05 03:00pm >>> Very nice indeed! Thank you.. There is a shortage of help documents in this area for sure.. And for newbies like myself, this is a goldmine of information! Just wish there was better documentation of projections, I downloaded the epsg access db but have yet to figure out what use it is since its very cryptic on how to locate a projection. One thing I've been searching on an answer for and your site missed it as well is how to set the DEBUG tag. I assume this is to obtain debug info to help trace problems with the map file? but I can not find anywhere on what goes into the tag. Dennis ________________________________ From: UMN MapServer Users List on behalf of Flavio Hendry Sent: Wed 6/22/2005 5:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] New MapServer Map Files Help Hi all The MapServer Map Files Help I presented at the MapServer User Conference is online at http://umn.mapserver.ch. Enjoy! Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From wendy_arbuckle at YAHOO.COM Wed Jun 22 06:12:12 2005 From: wendy_arbuckle at YAHOO.COM (Wendy Arbuckle) Date: Wed, 22 Jun 2005 08:12:12 -0500 Subject: sld and external graphics Message-ID: If anyone uses external graphics by using the sld?s would it be possible to see what you have placed in your ?.map? code in order for this to work mine are not coming up Thnx so much From assefa at DMSOLUTIONS.CA Wed Jun 22 06:48:25 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 22 Jun 2005 09:48:25 -0400 Subject: sld and external graphics In-Reply-To: Message-ID: Hi There, Here is a URL using an extrnal graphic : http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=WorldGen&SLD=http://www2.dmsolutions.ca/msapps/world_testdata/tests/sld_tests/sld_polygon_fill_symbol_external.xml You can see the sld used in this case at : http://www2.dmsolutions.ca/msapps/world_testdata/tests/sld_tests/sld_polygon_fill_symbol_external.xml You should not really do anything special in your map file for this to be supported. Mapse sure that the external graphic if of Png or Gif format. Later, Wendy Arbuckle wrote: > If anyone uses external graphics by using the sld?s ? would it be possible > to see what you have placed in your ?.map? code in order for this to work ? > > > > mine are not coming up > > > > Thnx so much > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ealpert at DIGITALGLOBE.COM Wed Jun 22 07:38:26 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 22 Jun 2005 08:38:26 -0600 Subject: indexed tif images do not display Message-ID: I think you need to rerun gdaltindex. I just did a dbf dump of mine and realized that the paths to the tiles are absolute paths. Not sure if there's a way to construct relative path tileindexes. Anyone? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Yar Doroshenko Sent: Tuesday, June 21, 2005 9:32 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] indexed tif images do not display Hi Guys, I have created a tile index for my tif images using gdaltindex. Everything works fine on my workstation, I declared a raster in my mapfile. Everything worked great. Next, I copied the tif files, index files and layer definition to my manager's workstation to their corresponding locations. Now, both of the workstations are configured the same way, but my tifs do not display on the manager's workstation. Any piece of advice on what could go wrong? Thank you, Yar From Tom.Kralidis at EC.GC.CA Wed Jun 22 09:02:21 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 22 Jun 2005 12:02:21 -0400 Subject: Shapefile vs. DB connections Message-ID: Hi, Does anyone have any info on comparing performance between serving MapServer w/ shapefiles vs. DB (i.e. PostGIS)? I'm guessing shapefiles are quicker. Thanks ..Tom From pramsey at REFRACTIONS.NET Wed Jun 22 09:08:19 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 22 Jun 2005 09:08:19 -0700 Subject: Shapefile vs. DB connections In-Reply-To: <2576812186CDD411BF1500508B6DCE950B01DCBF@ecnwri1.ontario.int.ec.gc.ca> Message-ID: That is the conventional wisdom, and I have repeated it myself many times (on the basis of tests we did four years ago), but John Hagstrand has anecdotally told me that under concurrent load he finds his PostGIS is faster. So I think some new benchmarking is in order. Paul Kralidis,Tom [Burlington] wrote: > Hi, > > Does anyone have any info on comparing performance between serving > MapServer w/ shapefiles vs. DB (i.e. PostGIS)? I'm guessing shapefiles > are quicker. > > Thanks > > ..Tom From jmckenna at DMSOLUTIONS.CA Wed Jun 22 09:16:22 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 22 Jun 2005 12:16:22 -0400 Subject: Shapefile vs. DB connections In-Reply-To: <42B98CF3.4000606@refractions.net> Message-ID: I wonder if Brock Anderson looked at that as part of his MapServer vs ArcIMS comparison. I know he was specifically looking at SDE, but i am just curious if he ran any postgis tests, because i remember from one of his MUM3 slides that he had shapefile numbers. jeff Paul Ramsey wrote: > That is the conventional wisdom, and I have repeated it myself many > times (on the basis of tests we did four years ago), but John Hagstrand > has anecdotally told me that under concurrent load he finds his PostGIS > is faster. So I think some new benchmarking is in order. > > Paul > > Kralidis,Tom [Burlington] wrote: > >> Hi, >> >> Does anyone have any info on comparing performance between serving >> MapServer w/ shapefiles vs. DB (i.e. PostGIS)? I'm guessing shapefiles >> are quicker. >> >> Thanks >> >> ..Tom > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From fwarmerdam at GMAIL.COM Wed Jun 22 09:18:24 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 22 Jun 2005 12:18:24 -0400 Subject: indexed tif images do not display In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CC07@COMAIL01.digitalglobe.com> Message-ID: On 6/22/05, Ethan Alpert wrote: > I think you need to rerun gdaltindex. I just did a dbf dump of mine and > realized that the paths to the tiles are absolute paths. Not sure if > there's a way to construct relative path tileindexes. > > Anyone? Ethan, gdaltindex will store the paths in the form they are passed in. So if you want relative paths, use those on the commandline. eg. gdaltindex index.shp doq/*.tif as opposed to gdaltindex index.shp /opt/data/doq/*.tif Of course, it can be tricky to ensure that the relative paths in the index file are correctly interpreted by mapserver. I'm never sure if it interpretes them relative to the index file, or the SHAPEPATH or what. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ealpert at DIGITALGLOBE.COM Wed Jun 22 09:17:54 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 22 Jun 2005 10:17:54 -0600 Subject: Shapefile vs. DB connections Message-ID: Using the shptree utility with Mapserver 4.4 shapefiles start to perform pretty well in my tests using mapserver's queryByShape layer method. There are many different facets to performance that depend on the data (ie how geographicly dispersed it is, how high the vertice count is per record and the size and number of attributes in the dbf file). -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Ramsey Sent: Wednesday, June 22, 2005 10:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Shapefile vs. DB connections That is the conventional wisdom, and I have repeated it myself many times (on the basis of tests we did four years ago), but John Hagstrand has anecdotally told me that under concurrent load he finds his PostGIS is faster. So I think some new benchmarking is in order. Paul Kralidis,Tom [Burlington] wrote: > Hi, > > Does anyone have any info on comparing performance between serving > MapServer w/ shapefiles vs. DB (i.e. PostGIS)? I'm guessing > shapefiles are quicker. > > Thanks > > ..Tom From pramsey at REFRACTIONS.NET Wed Jun 22 09:24:17 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 22 Jun 2005 09:24:17 -0700 Subject: Shapefile vs. DB connections In-Reply-To: <42B98ED6.7030609@dmsolutions.ca> Message-ID: No, we only did SDE, and a couple of Shapefile tests. But we could repurpose the test data and test harness for a Shape/PostGIS test. Jeff McKenna wrote: > I wonder if Brock Anderson looked at that as part of his MapServer vs > ArcIMS comparison. I know he was specifically looking at SDE, but i am > just curious if he ran any postgis tests, because i remember from one of > his MUM3 slides that he had shapefile numbers. > > jeff > > > Paul Ramsey wrote: > >> That is the conventional wisdom, and I have repeated it myself many >> times (on the basis of tests we did four years ago), but John >> Hagstrand has anecdotally told me that under concurrent load he finds >> his PostGIS is faster. So I think some new benchmarking is in order. >> >> Paul >> >> Kralidis,Tom [Burlington] wrote: >> >>> Hi, >>> >>> Does anyone have any info on comparing performance between serving >>> MapServer w/ shapefiles vs. DB (i.e. PostGIS)? I'm guessing shapefiles >>> are quicker. >>> >>> Thanks >>> >>> ..Tom >> >> >> > > From armin.burger at GMX.NET Wed Jun 22 10:10:48 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Wed, 22 Jun 2005 19:10:48 +0200 Subject: Shapefile vs. DB connections Message-ID: Tom, One situation where I would say that PostGIS is really faster than shapefiles is when you use filter settings based on attributes. If the datasets are big then PostGIS layers with an index set on the filter attribute column(s) will be noticeably faster than shapefiles that do not have indexes. For very complex datasets with lots of vertices (something like the coast of Norway) I got the impression that shapefiles might be faster to draw for lot of features displayed at the same time (small scale). This might be different for lot of simultaneous users. Armin > Hi, > Does anyone have any info on comparing performance between serving > MapServer w/ shapefiles vs. DB (i.e. PostGIS)? I'm guessing shapefiles > are quicker. > Thanks > ..Tom From bob.basques at CI.STPAUL.MN.US Wed Jun 22 10:33:38 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 22 Jun 2005 12:33:38 -0500 Subject: Single Layer (CGI) call for Legend CHIP Message-ID: All, Is there a way to use to request a single line LEGEND entry from a MAPfile without a TEMPLATE? We're trying to build a dynamic Layer/Legend and have MapServer build the LEGEND Chip from the Mapfile Layer Automatically. If I possibly had seperate Map File for each layer, could this be accomplished? I suspect that I could then, but then I would need to add in the LEGEND parameters for every Mapfile, correct? We're really trying to bypass the generation of a complete legend by Mapserver and have the generation of the legend items be configured on a bylayer request from the CGI. Thanks for any input. bobb From bartvde at XS4ALL.NL Wed Jun 22 11:01:29 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 22 Jun 2005 20:01:29 +0200 Subject: Single Layer (CGI) call for Legend CHIP In-Reply-To: <42B9A0F2.6080005@ci.stpaul.mn.us> Message-ID: Bob, have a look at the WMS GetLegendGraphic request. It comes with a parameter LAYER to specify the layer desired. Probably something like (by head): mapserv.exe?map=/mymap.map&service=WMS&version=1.1.1&request=GetLegendGraphic&format=image/png&layer=mylayer This needs Mapserver 4.4 or later. If you want separate images for each class in the layer, also specify the Rule parameter in the GetLegendGraphic request with a reference to the CLASS NAME you want. Best regards, Bart On Wed, 22 Jun 2005 19:33:38 +0200, Bob Basques wrote: > All, > > Is there a way to use to request a single line LEGEND entry from a > MAPfile without a TEMPLATE? > > We're trying to build a dynamic Layer/Legend and have MapServer build > the LEGEND Chip from the Mapfile Layer Automatically. > > If I possibly had seperate Map File for each layer, could this be > accomplished? I suspect that I could then, but then I would need to add > in the LEGEND parameters for every Mapfile, correct? > > We're really trying to bypass the generation of a complete legend by > Mapserver and have the generation of the legend items be configured on a > bylayer request from the CGI. > > Thanks for any input. > > bobb > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From jmckenna at DMSOLUTIONS.CA Wed Jun 22 11:04:50 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 22 Jun 2005 14:04:50 -0400 Subject: Single Layer (CGI) call for Legend CHIP In-Reply-To: Message-ID: and the latest WMS Server doc has a section on the getlegendgraphic request: http://mapserver.gis.umn.edu/doc/wms-server-howto.html#getlegendgraphic jeff Bart van den Eijnden wrote: > Bob, > > have a look at the WMS GetLegendGraphic request. It comes with a > parameter LAYER to specify the layer desired. > > Probably something like (by head): > > mapserv.exe?map=/mymap.map&service=WMS&version=1.1.1&request=GetLegendGraphic&format=image/png&layer=mylayer > > > This needs Mapserver 4.4 or later. > > If you want separate images for each class in the layer, also specify > the Rule parameter in the GetLegendGraphic request with a reference to > the CLASS NAME you want. > > Best regards, > Bart > > On Wed, 22 Jun 2005 19:33:38 +0200, Bob Basques > wrote: > >> All, >> >> Is there a way to use to request a single line LEGEND entry from a >> MAPfile without a TEMPLATE? >> >> We're trying to build a dynamic Layer/Legend and have MapServer build >> the LEGEND Chip from the Mapfile Layer Automatically. >> >> If I possibly had seperate Map File for each layer, could this be >> accomplished? I suspect that I could then, but then I would need to add >> in the LEGEND parameters for every Mapfile, correct? >> >> We're really trying to bypass the generation of a complete legend by >> Mapserver and have the generation of the legend items be configured on a >> bylayer request from the CGI. >> >> Thanks for any input. >> >> bobb >> > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From wer at CSTONE.NET Wed Jun 22 11:06:51 2005 From: wer at CSTONE.NET (William E Reid) Date: Wed, 22 Jun 2005 14:06:51 -0400 Subject: indexed tif images do not display In-Reply-To: <931f8ea905062209182a599ab4@mail.gmail.com> Message-ID: My experience is that it IS relative to the SHAPEPATH directory (which can be be defined as relative within your mapfile... So yeah, confusing. -=Bill Frank Warmerdam wrote: > On 6/22/05, Ethan Alpert wrote: > >>I think you need to rerun gdaltindex. I just did a dbf dump of mine and >>realized that the paths to the tiles are absolute paths. Not sure if >>there's a way to construct relative path tileindexes. >> >>Anyone? > > > Ethan, > > gdaltindex will store the paths in the form they are passed in. So > if you want relative paths, use those on the commandline. > > eg. > > gdaltindex index.shp doq/*.tif > > as opposed to > > gdaltindex index.shp /opt/data/doq/*.tif > > Of course, it can be tricky to ensure that the relative > paths in the index file are correctly interpreted by mapserver. > I'm never sure if it interpretes them relative to the index file, > or the SHAPEPATH or what. > > Best regards, From bpederse at NATURE.BERKELEY.EDU Wed Jun 22 11:49:30 2005 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Wed, 22 Jun 2005 11:49:30 -0700 Subject: can't do postgis subselect in DATA Message-ID: hi, using: ___php 5.0.4 './configure' '--with-mysql' '--enable-cgi' '--with-xml' '--with-zlib' '--with-pgsql' '--with-gd=/usr' '--with-png' '--with-jpeg' '--enable-wddx' '--enable-dbase' '--with-regex=system' '--with-freetype-dir=/usr' '--enable-force-cgi-redirect' ___MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE ___php mapscript($Revision: 1.220.2.3 $ $Date: 2005/02/28 14:27:19 $) ___postgis 1.0.0 i do this and it works fine: DATA "the_geom from capolygon using srid=-1, using unique oid" anything more complicated fails. even if i just add parentheses it failes: DATA "the_geom from (capolygon) using srid=-1, using unique oid" when what i actually want is something more complex DATA "the_geom from (select the_geom, blah, blah2 from capolygon,othertable where capolygon.colA = othertable.colB) as foo using srid=-1, using unique oid" the last query works fine from the psql command line. however as soon as i add any special characters: ' ?" ?( ? ?in the DATA line it won't work. does anyone have any idea what's going on? thanks, -brent here's my simple data statement with ()'s. if i remove the ()'s it works. DATA "the_geom FROM (capolygon) using unique gid using srid=-1" here's the error output: [22-Jun-2005 11:45:18] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Pesticide Use'. in /opt/chameleon/htdocs/common/wrapper/drawmap.php on line 533 [22-Jun-2005 11:45:18] PHP Warning: [MapServer Error]: prepare_database(): Error executing POSTGISDECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (capolygon) WHERE the_geom && setSRID('BOX3D(-366327.8 -614696,536327.8 459894)'::BOX3D, -1 )'

Postgresql reports the error as 'ERROR: syntax error at or near ")" at character 121 From siki at AGT.BME.HU Wed Jun 22 15:06:23 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 22 Jun 2005 21:06:23 -0100 Subject: indexed tif images do not display {Scanned} In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CC07@COMAIL01.digitalglobe.com> Message-ID: Hi, You can use relative path, I use relative path to my map file. Recently it was discussed on the list, as far as remember you can set relative path to the tileindex shape. Bye Zoltan On Wed, 22 Jun 2005, Ethan Alpert wrote: > I think you need to rerun gdaltindex. I just did a dbf dump of mine and > realized that the paths to the tiles are absolute paths. Not sure if > there's a way to construct relative path tileindexes. > > Anyone? > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of Yar Doroshenko > Sent: Tuesday, June 21, 2005 9:32 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] indexed tif images do not display > > > Hi Guys, > > I have created a tile index for my tif images using gdaltindex. > Everything works fine on my workstation, I declared a raster in my > mapfile. Everything worked great. Next, I copied the tif files, index > files and layer definition to my manager's workstation to their > corresponding locations. Now, both of the workstations are configured > the same way, but my tifs do not display on the manager's workstation. > > Any piece of advice on what could go wrong? > > Thank you, > > > Yar > From bob.basques at CI.STPAUL.MN.US Wed Jun 22 12:08:12 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 22 Jun 2005 14:08:12 -0500 Subject: Single Layer (CGI) call for Legend CHIP In-Reply-To: Message-ID: Jeff McKenna wrote: >and the latest WMS Server doc has a section on the getlegendgraphic >request: >http://mapserver.gis.umn.edu/doc/wms-server-howto.html#getlegendgraphic > > Well, I wanted to start using the WMS services anyway . . . . :c) Thanks for the info (Bart & Jeff). >jeff > > > > >Bart van den Eijnden wrote: > > >>Bob, >> >>have a look at the WMS GetLegendGraphic request. It comes with a >>parameter LAYER to specify the layer desired. >> >>Probably something like (by head): >> >>mapserv.exe?map=/mymap.map&service=WMS&version=1.1.1&request=GetLegendGraphic&format=image/png&layer=mylayer >> >> >>This needs Mapserver 4.4 or later. >> >>If you want separate images for each class in the layer, also specify >>the Rule parameter in the GetLegendGraphic request with a reference to >>the CLASS NAME you want. >> >>Best regards, >>Bart >> >>On Wed, 22 Jun 2005 19:33:38 +0200, Bob Basques >> wrote: >> >> >> >>>All, >>> >>>Is there a way to use to request a single line LEGEND entry from a >>>MAPfile without a TEMPLATE? >>> >>>We're trying to build a dynamic Layer/Legend and have MapServer build >>>the LEGEND Chip from the Mapfile Layer Automatically. >>> >>>If I possibly had seperate Map File for each layer, could this be >>>accomplished? I suspect that I could then, but then I would need to add >>>in the LEGEND parameters for every Mapfile, correct? >>> >>>We're really trying to bypass the generation of a complete legend by >>>Mapserver and have the generation of the legend items be configured on a >>>bylayer request from the CGI. >>> >>>Thanks for any input. >>> >>>bobb >>> >>> >>> >> >> >> > > > > From garand at ODRAGIS.ORG Wed Jun 22 12:38:15 2005 From: garand at ODRAGIS.ORG (Michel Garand) Date: Wed, 22 Jun 2005 21:38:15 +0200 Subject: New MapServer Map Files Help In-Reply-To: Message-ID: Greetings! On Wed, 2005-06-22 at 11:36 +0200, Flavio Hendry wrote: > Hi all > > The MapServer Map Files Help I presented at the MapServer User > Conference is online at http://umn.mapserver.ch. Enjoy! > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- Thank you Flavio! Thank you Tydac AG This will be of great help to the community, particularly newcomers! Best Regards Michel From schuyler at NOCAT.NET Wed Jun 22 13:01:57 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Wed, 22 Jun 2005 13:01:57 -0700 Subject: Shapefile vs. DB connections In-Reply-To: <2576812186CDD411BF1500508B6DCE950B01DCBF@ecnwri1.ontario.int.ec.gc.ca> Message-ID: * On 22-Jun-2005 at 9:05AM PDT, Kralidis,Tom [Burlington] said: > > Does anyone have any info on comparing performance between serving > MapServer w/ shapefiles vs. DB (i.e. PostGIS)? I'm guessing shapefiles > are quicker. Another thing that can be done to significantly enhance the performance of shapefiles to break them down into smaller shapefiles, and then reference them in a TILEINDEX. Stephen Woodbridge's shp2tile tool in combination with Frank's ogrtindex makes this a breeze: http://swoodbridge.com/tools/ SDE From siki at AGT.BME.HU Wed Jun 22 16:45:01 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 22 Jun 2005 22:45:01 -0100 Subject: indexed tif images do not display {Scanned} In-Reply-To: <9FAE86C6BFBD7C45949E7590CC2D0DB26CB1@webdemo.megarry.com> Message-ID: Hi, Here is an example NAME sample EXTENT 648000 243000 658000 253000 IMAGETYPE png SHAPEPATH "/home1/www/maps/iv" FONTSET "/home1/www/maps/iv/fonts.lst" SYMBOLSET "/home1/www/maps/iv/iv.sym" UNITS meters TEMPLATEPATTERN ".*\.html" OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB # better image quality for photos EXTENSION "png" END WEB IMAGEPATH "/home1/www/maps/tmp/" IMAGEURL "/maps/tmp/" MAXSCALE 100000 # ERROR "/iv/hiba.html" END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 0 SIZE 350 10 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS METERS INTERVALS 5 STATUS TRUE END REFERENCE IMAGE ivref.png EXTENT 648000 243000 658000 253000 SIZE 200 200 STATUS ON COLOR -1 -1 -1 MAXBOXSIZE 100 MINBOXSIZE 10 MARKERSIZE 15 MARKER 'circle' OUTLINECOLOR 255 0 0 END LEGEND KEYSIZE 16 12 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 0 END STATUS ON END QUERYMAP STATUS ON # STYLE SELECTED STYLE HILITE COLOR 200 0 200 END LAYER NAME "2003_030" GROUP "foto2003" TILEINDEX "foto/2003_030/tiles" TILEITEM "Location" TYPE RASTER STATUS ON # MAXSCALE 3500 MINSCALE 199 END END And here is the dump of the fist few lines of the tileindex. The map file is above the "foto" directory. INFO: Open of `foto/2003_030/tiles.dbf' using driver `ESRI Shapefile' successful. Layer name: tiles Geometry: Polygon Feature Count: 77 Extent: (651000.000000, 244000.000000) - (656250.000000, 252500.100000) Layer SRS WKT: (unknown) location: String (255.0) OGRFeature(tiles):0 location (String) = foto/2003_030/65-211-444.tif POLYGON ((653250.000 252500.100,654000.000 252500.100,654000 252000,653250 252000,653250.000 252500.100)) OGRFeature(tiles):1 location (String) = foto/2003_030/65-212-333.tif POLYGON ((654000.000 252500.100,654750.000 252500.100,654750 252000,654000 252000,654000.000 252500.100)) OGRFeature(tiles):2 location (String) = foto/2003_030/65-213-222.tif POLYGON ((653250.000 252000.100,654000.000 252000.100,654000 251500,653250 251500,653250.000 252000.100)) On Wed, 22 Jun 2005, Dennis Megarry wrote: > Would you happen to have a sample map file showing the usage of a raster tile index? > > Dennis > > ________________________________ > > From: UMN MapServer Users List on behalf of Siki Zoltan > Sent: Wed 6/22/2005 6:06 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] indexed tif images do not display {Scanned} > > > > Hi, > > You can use relative path, I use relative path to my map file. > Recently it was discussed on the list, as far as remember you can set > relative path to the tileindex shape. > > Bye > Zoltan > > On Wed, 22 Jun 2005, Ethan Alpert wrote: > > > I think you need to rerun gdaltindex. I just did a dbf dump of mine and > > realized that the paths to the tiles are absolute paths. Not sure if > > there's a way to construct relative path tileindexes. > > > > Anyone? > > > > -e > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > > Behalf Of Yar Doroshenko > > Sent: Tuesday, June 21, 2005 9:32 PM > > To: MAPSERVER-USERS at lists.umn.edu > > Subject: [UMN_MAPSERVER-USERS] indexed tif images do not display > > > > > > Hi Guys, > > > > I have created a tile index for my tif images using gdaltindex. > > Everything works fine on my workstation, I declared a raster in my > > mapfile. Everything worked great. Next, I copied the tif files, index > > files and layer definition to my manager's workstation to their > > corresponding locations. Now, both of the workstations are configured > > the same way, but my tifs do not display on the manager's workstation. > > > > Any piece of advice on what could go wrong? > > > > Thank you, > > > > > > Yar > > > > > From grevedan at HOTMAIL.COM Wed Jun 22 13:55:33 2005 From: grevedan at HOTMAIL.COM (Dan Greve) Date: Wed, 22 Jun 2005 16:55:33 -0400 Subject: indexed tif images do not display Message-ID: I can never get relative paths in gdaltindex to work with mapserver. I attached a program I use to change the gdaltindex shapefile based on a simple pattern. Remove 'n' characters with pattern 'p'. i.e. if all the records are /USA_Tiffs/something.tif I do gdaltirepath.exe -p f:/ -c 1 index.shp will change all "location" (by default) records to f:/USA_Tiffs/something.tif I find it's quicker than rebuilding the entire shapefile using gdaltindex which must open every file to be indexed. The -tileindex options permits fields of other than 'location' -- Dan Greve, Software Engineer -- Palm Bay, FL >From: Frank Warmerdam >Reply-To: Frank Warmerdam >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] indexed tif images do not display >Date: Wed, 22 Jun 2005 12:18:24 -0400 > >On 6/22/05, Ethan Alpert wrote: > > I think you need to rerun gdaltindex. I just did a dbf dump of mine and > > realized that the paths to the tiles are absolute paths. Not sure if > > there's a way to construct relative path tileindexes. > > > > Anyone? > >Ethan, > >gdaltindex will store the paths in the form they are passed in. So >if you want relative paths, use those on the commandline. > >eg. > >gdaltindex index.shp doq/*.tif > >as opposed to > >gdaltindex index.shp /opt/data/doq/*.tif > >Of course, it can be tricky to ensure that the relative >paths in the index file are correctly interpreted by mapserver. >I'm never sure if it interpretes them relative to the index file, >or the SHAPEPATH or what. > >Best regards, >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, >warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gdaltirepath.c URL: From Monica.Socol at DPRA.COM Wed Jun 22 13:48:00 2005 From: Monica.Socol at DPRA.COM (Monica Socol) Date: Wed, 22 Jun 2005 15:48:00 -0500 Subject: buffer (GEOS) in Mapserver 4.6 Message-ID: I have found in the History document for Mapserver version 4.6: "Finished code to convert back and forth between GEOS geometries. Buffer and convex hull operations are exposed in mapscript" But this is all I could find. Does this mean that mapscript exposes Buffer functionality for different types of geometries (not only point)? Does anyone knows how to use GEOS with mapscript? Thank you, Monica -------------- next part -------------- An HTML attachment was scrubbed... URL: From newland at VT.EDU Wed Jun 22 19:01:51 2005 From: newland at VT.EDU (Newland) Date: Wed, 22 Jun 2005 19:01:51 -0700 Subject: can't do postgis subselect in DATA In-Reply-To: <200506221149.30133.bpederse@nature.berkeley.edu> Message-ID: try DATA "the_geom from (select capolygon.oid, the_geom, blah, blah2 from capolygon,othertable where capolygon.colA = othertable.colB) as foo using srid=-1 using unique oid" note that I added the capolygon.oid as part of the initial select. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Brent Pedersen Sent: Wednesday, June 22, 2005 11:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] can't do postgis subselect in DATA hi, using: ___php 5.0.4 './configure' '--with-mysql' '--enable-cgi' '--with-xml' '--with-zlib' '--with-pgsql' '--with-gd=/usr' '--with-png' '--with-jpeg' '--enable-wddx' '--enable-dbase' '--with-regex=system' '--with-freetype-dir=/usr' '--enable-force-cgi-redirect' ___MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE ___php mapscript($Revision: 1.220.2.3 $ $Date: 2005/02/28 14:27:19 $) ___postgis 1.0.0 i do this and it works fine: DATA "the_geom from capolygon using srid=-1, using unique oid" anything more complicated fails. even if i just add parentheses it failes: DATA "the_geom from (capolygon) using srid=-1, using unique oid" when what i actually want is something more complex DATA "the_geom from (select the_geom, blah, blah2 from capolygon,othertable where capolygon.colA = othertable.colB) as foo using srid=-1, using unique oid" the last query works fine from the psql command line. however as soon as i add any special characters: ' ?" ?( ? ?in the DATA line it won't work. does anyone have any idea what's going on? thanks, -brent here's my simple data statement with ()'s. if i remove the ()'s it works. DATA "the_geom FROM (capolygon) using unique gid using srid=-1" here's the error output: [22-Jun-2005 11:45:18] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Pesticide Use'. in /opt/chameleon/htdocs/common/wrapper/drawmap.php on line 533 [22-Jun-2005 11:45:18] PHP Warning: [MapServer Error]: prepare_database(): Error executing POSTGISDECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (capolygon) WHERE the_geom && setSRID('BOX3D(-366327.8 -614696,536327.8 459894)'::BOX3D, -1 )'

Postgresql reports the error as 'ERROR: syntax error at or near ")" at character 121 From margottid at COMUNE.LUGO.RA.IT Wed Jun 22 23:15:26 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 23 Jun 2005 08:15:26 +0200 Subject: queryByFeatures: VERY URGENT!!! In-Reply-To: Message-ID: No, you were right. I added: TOLERANCE 0 TOLERANCEUNITS PIXELS to every query layer (they are POLYGON layers), and now - if you check the examples - the behaviour of Mapserver 4.6.0 is the same of Mapserver 4.4.2. I have a TOLERANCE > 0 only for POINT and LINE layers, to make them queryable by mouse point; but for POLYGON layers I need to know if an element IS OR IS NOT in a particular zone, and not if an element IS NEAR a zone... Thank you for your suggestion, Daniele -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Wednesday, June 22, 2005 2:49 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! If I look at the Mapserver code it does not set the default TOLERANCE for POLYGON layers. So this bug is very likely not related to your problem. Sorry, I thought maybe you had polyline layers. You could try with TOLERANCE 0 and TOLERANCEUNITS PIXELS for all your search layers though but I don't think it will solve your problem. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/22/05 01:40pm >>> You got the point! I had TOLERANCE (and TOLERANCEUNITS PIXELS) set only for POINT and LINE layers. So, you say I have to put: TOLERANCE 0 TOLERANCEUNITS PIXELS for *every* POLYGON layer to avoid the problem, am I right? Or can I set a default tolerance for the entire map, and then specify TOLERANCE only for layers where I really need it? Thank you, Daniele -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Wednesday, June 22, 2005 1:07 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi, Are all your query layers POLYGONS? The only thing I could think of, but maybe isn't even related, is the default tolerance which was added, but this was only added for LINE and POINT layers. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1103 Do you have a TOLERANCE or TOLERANCEUNITS set in your MAP file? Can you try and experiment with Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/22/05 12:47pm >>> Ok, I'm able to provide you some examples of the problem. Mapserver 4.4.2 (no errors) --------------- This is the right query (layer "Mappali" intersects layer "ZonaE2_1") http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These should not return any result (layer "Mappali" doesn't intersect layers "ZonaE2_2", "ZonaE2_4", "ZonaE2_15"): http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes Mapserver 4.6.0 (ERRORS!) --------------- This return TWO results, but layer "Mappali" intersect layers "ZonaE2_1" ONLY ONE TIME: http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These return results, but layer "Mappali" doesn't intersect any of layers "Zona*": http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes As you can see, I use the same map, the same qstring and the same layers: I only change Mapserver version (/cgi-bin/mapserv442 and /cgi-bin/mapserv460). How could you explain it, and how can I fix it? Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti Sent: Wednesday, June 22, 2005 8:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi Steve, I only need to extract data when my parcel (from parcel layer) intersect one or more zone layers, without creating images. Upgrading to 4.6.0 I noticed that the script returned many wrong results (plus the right ones). Downgrading to 4.0.1 (or even 4.4.2, in another non-production PC), the problem disappears. The problem happens using PHP MapScript functions (both with PHP 4 and 5). If you could tell me the syntax for using feature query capabilities via CGI (I think it should be FEATUREQUERY, defining a Slayer), I can check if CGI Mapserver (4.0.1, 4.4.2 and 4.6.0) has the same behaviour of corresponding Mapscript, and then provide you some query example (pointing directly on my webserver). Thank you, Daniele -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 21, 2005 7:32 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Importance: High ** High Priority ** Certainly isn't supposed to work that way. How do you know this is happening - sample images or something. There haven't been many (any) changes in that code any time recently. I use the feature query capabilities a lot (via CGI) and have had know troubles... Steve >>> Daniele Margotti 06/21/05 5:00 AM >>> Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From BEN at SYNCERA-ITSOLUTIONS.NL Wed Jun 22 23:36:04 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 23 Jun 2005 08:36:04 +0200 Subject: queryByFeatures: VERY URGENT!!! Message-ID: Hi Daniele, okay, cool that it's working now! Maybe Julien (he did the bugfix to 1103) is able to comment on this behaviour? I think it would be unexpected and undesired if you had to specify explicitly for a POLYGON layer that you want no tolerance. A tolerance of 0 should be the default for polygons. But according to my quick code scan it also seemed this is the default for polygons, but maybe something is going unexpectedly in the code. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/23/05 08:15am >>> No, you were right. I added: TOLERANCE 0 TOLERANCEUNITS PIXELS to every query layer (they are POLYGON layers), and now - if you check the examples - the behaviour of Mapserver 4.6.0 is the same of Mapserver 4.4.2. I have a TOLERANCE > 0 only for POINT and LINE layers, to make them queryable by mouse point; but for POLYGON layers I need to know if an element IS OR IS NOT in a particular zone, and not if an element IS NEAR a zone... Thank you for your suggestion, Daniele -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Wednesday, June 22, 2005 2:49 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! If I look at the Mapserver code it does not set the default TOLERANCE for POLYGON layers. So this bug is very likely not related to your problem. Sorry, I thought maybe you had polyline layers. You could try with TOLERANCE 0 and TOLERANCEUNITS PIXELS for all your search layers though but I don't think it will solve your problem. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/22/05 01:40pm >>> You got the point! I had TOLERANCE (and TOLERANCEUNITS PIXELS) set only for POINT and LINE layers. So, you say I have to put: TOLERANCE 0 TOLERANCEUNITS PIXELS for *every* POLYGON layer to avoid the problem, am I right? Or can I set a default tolerance for the entire map, and then specify TOLERANCE only for layers where I really need it? Thank you, Daniele -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Wednesday, June 22, 2005 1:07 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi, Are all your query layers POLYGONS? The only thing I could think of, but maybe isn't even related, is the default tolerance which was added, but this was only added for LINE and POINT layers. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1103 Do you have a TOLERANCE or TOLERANCEUNITS set in your MAP file? Can you try and experiment with Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniele Margotti 06/22/05 12:47pm >>> Ok, I'm able to provide you some examples of the problem. Mapserver 4.4.2 (no errors) --------------- This is the right query (layer "Mappali" intersects layer "ZonaE2_1") http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These should not return any result (layer "Mappali" doesn't intersect layers "ZonaE2_2", "ZonaE2_4", "ZonaE2_15"): http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv442?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes Mapserver 4.6.0 (ERRORS!) --------------- This return TWO results, but layer "Mappali" intersect layers "ZonaE2_1" ONLY ONE TIME: http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_1&mapext=shapes These return results, but layer "Mappali" doesn't intersect any of layers "Zona*": http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_2&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_4&mapext=shapes http://sit.comune.lugo.ra.it:81/cgi-bin/mapserv460?mode=itemfeaturequery &map=/dati/sit/Lugo_PRG.map&slayer=Mappali&qstring=E730%20%20%2012%20%20 %2015&qitem=PARTKEY&qlayer=ZonaE2_15&mapext=shapes As you can see, I use the same map, the same qstring and the same layers: I only change Mapserver version (/cgi-bin/mapserv442 and /cgi-bin/mapserv460). How could you explain it, and how can I fix it? Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti Sent: Wednesday, June 22, 2005 8:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Hi Steve, I only need to extract data when my parcel (from parcel layer) intersect one or more zone layers, without creating images. Upgrading to 4.6.0 I noticed that the script returned many wrong results (plus the right ones). Downgrading to 4.0.1 (or even 4.4.2, in another non-production PC), the problem disappears. The problem happens using PHP MapScript functions (both with PHP 4 and 5). If you could tell me the syntax for using feature query capabilities via CGI (I think it should be FEATUREQUERY, defining a Slayer), I can check if CGI Mapserver (4.0.1, 4.4.2 and 4.6.0) has the same behaviour of corresponding Mapscript, and then provide you some query example (pointing directly on my webserver). Thank you, Daniele -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, June 21, 2005 7:32 PM To: margottid at COMUNE.LUGO.RA.IT; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures: VERY URGENT!!! Importance: High ** High Priority ** Certainly isn't supposed to work that way. How do you know this is happening - sample images or something. There haven't been many (any) changes in that code any time recently. I use the feature query capabilities a lot (via CGI) and have had know troubles... Steve >>> Daniele Margotti 06/21/05 5:00 AM >>> Hi all, I noticed a very strange behaviour when I upgraded my system from Mapserver 4.0.1 to Mapserver 4.6.0. I have a map with one layer ("Parcels") containing parcels, and many layers ("Zone-*") with zones, every layer with its own shapefile. I need to query a parcel (every parcel has ONE AND ONE ONLY unique identifier), and see which zones overlays that parcel (in other words, I want to which zones that parcel belongs). Parcels and zones have very irregular shape forms (i.e., a zone could surround a parcel without intersecate it: in this case the parcel DOESN'T BELONG to that zone). A parcel can belongs to one or more zone. Now, my script. getLayerByName("Parcels"); for ($l=0; $l < count($map_layer); $l++) { $Layer=$Map->getLayerByName($map_layer[$l]); if (@$Parcels->queryByAttributes('PARTKEY',$qstring,MS_SINGLE) == MS_SUCCESS) { if (@$Layer->queryByFeatures($Parcels->index) == MS_SUCCESS) { $Risultati=$Layer->getNumResults(); if($Risultati>0) { for ($i=0; $i < $Risultati; $i++) { $QueryResult=$Layer->getResult($i); $Risultato=$QueryResult->shapeindex; $Layer->open(); $Shape=$Layer->getShape(0,$Risultato); echo $Shape->values['Zone_name']."
"; $Layer->close(); } } } } } ?> $map_layer is an array containing the names of the zone layers that I want to query, $qstring is the unique identifier of the parcel I want to query. With Mapserver 4.0.1, the queryByFeatures takes the 'irregular' shape of my Parcel and looks if it intersects the 'irregular' shape of every Zone, returning only REAL intersections. With Mapserver 4.6.0, it seems that queryByFeatures takes the Bounding Box of the Parcel the looks for intersections with Bounding Boxes of every Zone, returning positive results EVEN IF SHAPES DO NOT INTERSECT (but the intersection only happens between bounding boxes)! Is it normal? Do I miss something in my script? Is there a new different way to do what I want to do? Or should I file a bug? Thank you, Daniele From ml.dje at GEOCONTENT.DE Thu Jun 23 01:14:28 2005 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Thu, 23 Jun 2005 10:14:28 +0200 Subject: MapScript for Windows/PHP 5.0 Message-ID: Hi, I am looking for a current precompiled Mapserver/PHPMapScript for Windows and PHP5. Since MapTools only has precompiled versions for PHP4, I am wondering if there is another source where I can get a 4.6 for PHP5. Kind regards, Dirk Jesko From philippe.gondek at GMAIL.COM Thu Jun 23 02:47:33 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Thu, 23 Jun 2005 11:47:33 +0200 Subject: POSTGIS LAYER... Message-ID: Here is my mapfile. I want to show the metadata of one of my layers and perform a queryBy Point. Is my mapfile correct? MAP ##################### # Start of map file # ##################### NAME SIGMA-BELGIUM SIZE 640 480 STATUS ON EXTENT 22265.4 21163 295157 295157 IMAGECOLOR 153 153 153 IMAGETYPE PNG PROJECTION "init=epsg:4313" END ################## # Start of layer # ################## LAYER NAME communes TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost port=5432 dbname=lemiam user=phil password=1707loulou442" DATA "the_geom from communes as foo using unique geometry_columns.srid using SRID=9803" CLASS Name 'MesCommunes' STYLE SIZE 3 OUTLINECOLOR 0 75 128 COLOR 119 119 119 END END PROJECTION "init=epsg:4313" END END LAYER NAME links TYPE LINE CONNECTIONTYPE POSTGIS CONNECTION "host=localhost port=5432 dbname=lemiam user=phil password=1707loulou442" DATA "the_geom from links as foo using unique geometry_columns.srid using SRID=9803" CLASS Name 'MesLinks' STYLE SIZE 3 COLOR 255 0 0 END END PROJECTION "init=epsg:4313" END END LAYER NAME centroides TYPE POINT CONNECTIONTYPE POSTGIS CONNECTION "host=localhost port=5432 dbname=lemiam user=phil password=1707loulou442" DATA "the_geom from centroides as foo using unique geometry_columns.srid using SRID=9803" CLASS Name 'MesCentroides' STYLE COLOR 0 255 0 SYMBOL /var/www/localhost/htdocs/sigma/mojira-star.png SIZE 6 END END PROJECTION "init=epsg:4313" END END ########################## # Start of query map # ########################## QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END ########################## # Start of reference map # ########################## REFERENCE COLOR 0 0 180 EXTENT 22265.4 21163 295157 295157 IMAGE "/var/www/localhost/htdocs/sigma/tmp/regions.png" MAXBOXSIZE 240 OUTLINECOLOR 255 0 255 SIZE 120 149 STATUS ON END ################### # Start of legend # ################### LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END ##################### # Start of scalebar # ##################### SCALEBAR LABEL COLOR 0 75 128 SIZE MEDIUM END STYLE 0 SIZE 80 2 COLOR 0 75 128 UNITS KILOMETERS INTERVALS 5 TRANSPARENT TRUE STATUS TRUE SIZE 200 3 END END From olivier.gayte at VEREMES.COM Thu Jun 23 05:51:03 2005 From: olivier.gayte at VEREMES.COM (Olivier Gayte) Date: Thu, 23 Jun 2005 07:51:03 -0500 Subject: New MapServer Map Files Help Message-ID: Very good job. Thank you very much. Olivier On Wed, 22 Jun 2005 11:36:11 +0200, Flavio Hendry wrote: >Hi all > >The MapServer Map Files Help I presented at the MapServer User >Conference is online at http://umn.mapserver.ch. Enjoy! > >Mit freundlichem Gruss / Best Regards >Flavio Hendry > >---------------------------------------------------------------- >TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual >---------------------------------------------------------------- >############ Mit freundlichen Gruessen / Kind Regards >############ mailto:flavio at tydac.ch >############ TYDAC AG - http://www.tydac.ch >#### #### Geographic Information Solutions >#### #### Luternauweg 12 -- CH-3006 Bern >############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 >---------------------------------------------------------------- From lists at WEBMAPIT.COM.BR Thu Jun 23 06:01:04 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 23 Jun 2005 10:01:04 -0300 Subject: Does anybody have binary(no optionals!) Message-ID: Hi folks, I'm running a customer application on my website, which is RH 7.3 + MapServer 3.6.6 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE ( see? NO optional packages, because it's a simple hosting plan, and does not offer me setup up of non-standard stuff such as PROJ, MapScript, GDAL, etc...) But , now I created a new website for this customer and OS is RH Advanced Server 3.0, and now the same MapServer 3.6.6 is not working..It simply crashes with 500 Error... probably due to differences into libs structure between RH 7.3 and RH AS 3 Does anybody this MapServer CGI binary to send? ( no optionals! just basic features as OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE ) Or even can be > 3.6.6 CGI could be sent to e~dot~patto~dot~kanegae-at-gmail~dot~com thanks in advance -- Eduardo Patto Kanegae http://www.webmapit.com.br From kgrootendorst at BAIRD.COM Thu Jun 23 07:46:35 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 23 Jun 2005 09:46:35 -0500 Subject: GDAL Tile Indexing Message-ID: Hi, I want to be able to create a raster tile index for a series of tif files. I know that GDAL can do this, and I've come across documentation for doing it. My problem is that I'm not sure how to setup/install GDAL. I've downloaded gdal126.zip from http://dl.maptools.org/dl/. Can anybody point me to a specific reference that illustrates how to extract/setup/configure GDAL? Using MS 4.2 on Win 2000. Thanks. Kevin From BEN at SYNCERA-ITSOLUTIONS.NL Thu Jun 23 07:51:25 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 23 Jun 2005 16:51:25 +0200 Subject: GDAL Tile Indexing Message-ID: Hi, I would recommend installing Frank's great toolkit FWTools. See: http://fwtools.maptools.org You get a desktop shortcut to the GDAL and OGR utilities. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Kevin Grootendorst 06/23/05 04:46pm >>> Hi, I want to be able to create a raster tile index for a series of tif files. I know that GDAL can do this, and I've come across documentation for doing it. My problem is that I'm not sure how to setup/install GDAL. I've downloaded gdal126.zip from http://dl.maptools.org/dl/. Can anybody point me to a specific reference that illustrates how to extract/setup/configure GDAL? Using MS 4.2 on Win 2000. Thanks. Kevin From jmckenna at DMSOLUTIONS.CA Thu Jun 23 07:57:37 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 23 Jun 2005 10:57:37 -0400 Subject: GDAL Tile Indexing In-Reply-To: Message-ID: Hi Kevin, If you don't want to compile from source, use Franks 'FWTools' package from maptools (http://www.maptools.org/). It will install all of the GDAL and OGR utilities, which you can run from a 'shell' link on your desktop. I think that's the easiest way. Another option is to use the latest MS4W, which also contains the utilities. jeff Kevin Grootendorst wrote: > Hi, > I want to be able to create a raster tile index for a series of tif files. > I know that GDAL can do this, and I've come across documentation for doing > it. My problem is that I'm not sure how to setup/install GDAL. I've > downloaded gdal126.zip from http://dl.maptools.org/dl/. > Can anybody point me to a specific reference that illustrates how to > extract/setup/configure GDAL? > Using MS 4.2 on Win 2000. > > Thanks. > > Kevin > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From kgrootendorst at BAIRD.COM Thu Jun 23 08:05:38 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 23 Jun 2005 10:05:38 -0500 Subject: GDAL Tile Indexing Message-ID: Thanks - FWTools is exactly what I was looking for. Getting GDAL up and going couldn't be any easier! Kevin On Thu, 23 Jun 2005 10:57:37 -0400, Jeff McKenna wrote: >Hi Kevin, > >If you don't want to compile from source, use Franks 'FWTools' package >from maptools (http://www.maptools.org/). It will install all of the >GDAL and OGR utilities, which you can run from a 'shell' link on your >desktop. I think that's the easiest way. Another option is to use the >latest MS4W, which also contains the utilities. > >jeff > > > > >Kevin Grootendorst wrote: >> Hi, >> I want to be able to create a raster tile index for a series of tif files. >> I know that GDAL can do this, and I've come across documentation for doing >> it. My problem is that I'm not sure how to setup/install GDAL. I've >> downloaded gdal126.zip from http://dl.maptools.org/dl/. >> Can anybody point me to a specific reference that illustrates how to >> extract/setup/configure GDAL? >> Using MS 4.2 on Win 2000. >> >> Thanks. >> >> Kevin >> > > >-- >Jeff McKenna >DM Solutions Group Inc. >http://www.dmsolutions.ca From lucamarle at GMAIL.COM Thu Jun 23 08:16:43 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Thu, 23 Jun 2005 17:16:43 +0200 Subject: P.mapper with IE problem Message-ID: I'm using p.mapper as client interface for mapserver and it works very well with my firefox but some others have shown me some odd behaviours in IE, maybe for cache problems. Zooming the map goes back to the previous, automatic refresh doesn't work and so on. All is fix if you close and reopen the window. Have anyone similar problems? I'm using p.mapper 1.0.4 thanks a lot luca -- luca marletta icq: 70590647 From umberto.nicoletti at GMAIL.COM Thu Jun 23 09:17:32 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 23 Jun 2005 18:17:32 +0200 Subject: P.mapper with IE problem In-Reply-To: <8b5020105062308164a0a5b8c@mail.gmail.com> Message-ID: IE is *very* well known for its caching problems. I find it more difficult to support IE than firefox/mozilla nowadays... Try to save the image with a different name every time or make the image link a reference to a script, this should force IE to not cache the image. Ciao, Umberto On 6/23/05, luca marletta wrote: > I'm using p.mapper as client interface for mapserver and it works very > well with my firefox but some others have shown me some odd behaviours > in IE, maybe for cache problems. > > Zooming the map goes back to the previous, automatic refresh doesn't > work and so on. > All is fix if you close and reopen the window. > > Have anyone similar problems? > > I'm using p.mapper 1.0.4 > > thanks a lot > > luca > -- > luca marletta icq: 70590647 > From Tom.Kralidis at EC.GC.CA Thu Jun 23 10:23:44 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 23 Jun 2005 13:23:44 -0400 Subject: mapserv WMS client issues with two WMS servers Message-ID: Hi, I have a mapserv CGI demo app which has a mapfile with two remote WMS layers. When I start up the application, if I select either layer on its own things display as expected. If I select BOTH remote WMS layers, I receive the following MapServer Message: msHTTPExecuteRequests(): HTTP request error. Can't open output file /ms4w/tmp/ms_tmp/?1.img.tmp. Anyone have any ideas on what's up here? Thanks ..Tom From jec at STRATEGY5.COM Thu Jun 23 09:20:22 2005 From: jec at STRATEGY5.COM (Jonathan Cooley) Date: Thu, 23 Jun 2005 11:20:22 -0500 Subject: NEWBIE Question about Extent. Message-ID: When using a projection I understand the extent box is min/max x/y for display of map data in the units of the projection (usually meters). What location reference is this relative to? Any idea where some example code to calculate this is located? Any pointer to a detailed explanation would be appreciated. ~JEC From assefa at DMSOLUTIONS.CA Thu Jun 23 11:05:15 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 23 Jun 2005 14:05:15 -0400 Subject: mapserv WMS client issues with two WMS servers In-Reply-To: <2576812186CDD411BF1500508B6DCE950B01DDB6@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Checking it .. I can reproduce the same behaviour with my test data. Kralidis,Tom [Burlington] wrote: > Hi, > > I have a mapserv CGI demo app which has a mapfile with two remote WMS layers. When I start up the application, if I select either layer on its own things display as expected. If I select BOTH remote WMS layers, I receive the following MapServer Message: > > msHTTPExecuteRequests(): HTTP request error. Can't open output file /ms4w/tmp/ms_tmp/?1.img.tmp. > > Anyone have any ideas on what's up here? > > Thanks > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From peterkingsbury at ISTOP.COM Thu Jun 23 12:54:49 2005 From: peterkingsbury at ISTOP.COM (Peter Kingsbury) Date: Thu, 23 Jun 2005 14:54:49 -0500 Subject: Queries Message-ID: Hello list, I have been reading through various documentation for some time, on how to accomplish simple queries with the data set I have, on the Chameleon site I have in place. At this point, I am not sure which of the sites, documents, or manuals will lead me to my goal; may I request a pointer to a useful document which will describe how to setup the initial environment to enable querying? I apologize if this is vague, however I am just beginning to scratch the surface, hence I am reading as much as I can on the subject! Much thanks, - Peter From nacional at CBS.UMN.EDU Thu Jun 23 13:36:01 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Thu, 23 Jun 2005 15:36:01 -0500 Subject: Queries In-Reply-To: Message-ID: Peter, Check http://terrasip.gis.umn.edu/projects/tutorial/section3.html and look at the map and template files for each example. I'm currently in the process of updating the tutorial and it will make more sense when I'm done... perhaps in the next two weeks. Anyway, to setup a non-spatial query in MapServer (generating maps is a form of query too!) you need to define a query template in each layer to be queried. In addition, you might also want to define a header and footer for each of the layer. Attached you will find the relevant template files and a mapfile. Open the mapfile and have a look at the layer named cities_poly and also the web object--that's where all the query-related parameters are defined. As for the interface, I don't know about Chameleon but in the MapServer CGI world you invoke queries by changing the mode to query or nquery. I suspect it would be the same thing with PHP/MapScript. Good luck! -Perry Peter Kingsbury wrote: > Hello list, > > I have been reading through various documentation for some time, on how to > accomplish simple queries with the data set I have, on the Chameleon site I > have in place. > > At this point, I am not sure which of the sites, documents, or manuals will > lead me to my goal; may I request a pointer to a useful document which will > describe how to setup the initial environment to enable querying? > > I apologize if this is vague, however I am just beginning to scratch the > surface, hence I am reading as much as I can on the subject! > > Much thanks, > - Peter > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: example3-3.map URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgis.lists at GMAIL.COM Thu Jun 23 14:21:43 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Thu, 23 Jun 2005 16:21:43 -0500 Subject: time series representations in Mapserver In-Reply-To: <42A458DC.1060109@gmx.ch> Message-ID: Gerry, Did you ever get anything figured out for this? I just came upon this thread again. if you take Uli's reccomendation and go with the WMS Time approach, you can build upon whats been done by the mapbuilder folks (http://mapbuilder.sourceforge.net/). Otherwise if you look on pure javascript resources for information on preloading images (just manipulate the time string that you send to the map requests) and animating them using javascripts setTimeout function. Most of the resources for this are for creating rotating banners on web pages, but the idea holds perfectly well for creating animated maps. I know a couple NWS sites use this approach for radar. I used this on the NWS Hydrologic Remote Sensing Center (http://www.nohrsc.nws.gov) site to animate snow pack (not a mapserver backend, but same idea). David > > > > OK... that's a start. However, I'm looking at weather observations, > > usually they're from fixed sites (well, excluding the storm chasers:-). > > I'm wondering if anything's been done for animation-ish stuff, so I > > could display the temperature contours, or, for instance, a changing > > landscape of wind barbs... > > > > Thanks, Gerry > > > > David Bitner wrote: > > > >>If all you need is to show all of something that fit within a window > >>of time on a single image (ie not an animation) you can either use sql > >>statements with GDAL (I've not done this myself) or if you have your > >>data in PostGIS all you need to do is add substitution variables into > >>your SQL statement. > >> > >>For example, I display flight tracks at an airport using mapserver and > >>I include a startdate and enddate as cgi variables sent to mapserver > >>then in my mapfile use percent notation in my mapfile: > >>DATA "targets from (select * from flighttrack where stime <= '%eDate%' > >>and etime >='%sDate%')as tracks USING UNIQUE opnum USING SRID=-1" > >> > >>On 6/3/05, Gerry Creager N5JXS wrote: > >> > >> > >>>We're looking at several applications where we need some time-selection > >>>capabilities. Has anyone done this successfully with Mapserver, and if > >>>so, might you share some tips? > >>> > >>>TIA,gerry > >>>-- > >>>Gerry Creager -- gerry.creager at tamu.edu > >>>Texas Mesonet -- AATLT, Texas A&M University > >>>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > >>>Page: 979.228.0173 > >>>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > >>> > >> > >> > > > > > -- > geOps GeoInformatics > D-79100 Freiburg > From stephen.clark at FOCUS.CA Thu Jun 23 15:23:46 2005 From: stephen.clark at FOCUS.CA (Stephen Clark) Date: Thu, 23 Jun 2005 15:23:46 -0700 Subject: Has anyone got http://libcwms.gov.bc.ca/wmsconnect... to work Message-ID: Hi I am trying to get the following WMS layer to work with Mapserver ### WMS BC GOV -- Trim Orthophotomosaic - LAYER NAME trim_ortho_overview TYPE RASTER STATUS ON CONNECTIONTYPE WMS ### old layer that worked #CONNECTION http://slkapps2.env.gov.bc.ca:80/servlet/com.esri.wms.Esrimap?WMTVER=1.0.0&ServiceName=wms26910&LAYERS=TRIM%20Orthomosaic%20Overview&FORMAT=PNG&TRANSPARENT=TRUE ### new layer that is giving me grief CONNECTION "http://libcwms.gov.bc.ca/wmsconnector/com.esri.wsit.WMSServlet/ogc_layer_service?VERSION=1.1.1&ServiceName=wms26910&LAYERS=TRIM%20Orthomosaic%20Overview&FORMAT=PNG&TRANSPARENT=TRUE&request=GetMap&STYLES=" CLASS NAME "WMS BC GOV -- TRIM photo Overview" #KEYIMAGE "c:/maps/nebc/graphics/dtm50k_keyimage.png" END METADATA "wms_srs" "EPSG:26910" "wms_name" "TRIMOrthomosaicOverview" "wms_server_version" "1.1.1" "wms_style" "" "wms_format" "image/png" "wms_title" "TRIM Orthomosaic Overview" END END Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From harterc1 at COMCAST.NET Thu Jun 23 16:06:15 2005 From: harterc1 at COMCAST.NET (Donlad Harter) Date: Thu, 23 Jun 2005 18:06:15 -0500 Subject: geographic coordinates don't work Message-ID: I would like to use geographic coordinates for my main window. My only layer is georeferenced DRG which uses the UTM projection. It doesn't work. If I change it and the extents to UTM it does. How can I use geographic coordinates? I have also noticed that my map file won't work with the layer status "on". It has to be "default" Here is most of my map file.: MAP NAME test3 IMAGETYPE png #EXTENT 578853 3857452.040 592267.160 3875770.440 EXTENT -86.125 34.875 -86 35 SIZE 1000 600 SHAPEPATH "/var/www/html/data/topo" SYMBOLSET "tutorial/symbols/symbols35.sym" FONTSET "tutorial/fonts/fonts.list" WEB TEMPLATE 'test3_template.html' IMAGEPATH '/var/www/html/tmp/' IMAGEURL '/tmp/' MINSCALE 10000 MAXSCALE 250000 END PROJECTION "proj=latlong" # "proj=utm" "ellps=clrk66" # "zone=16" # "north" END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # raster layer begins here NAME N_AL STATUS DEFAULT TILEINDEX "al_index.shp" TILEITEM "Location" TYPE RASTER SIZEUNITS meters PROJECTION "proj=utm" "ellps=clrk66" "zone=16" "north" END END # raster layer ends here # End of LAYER DEFINITIONS ------------------------------- From David.Fawcett at STATE.MN.US Thu Jun 23 18:49:30 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 23 Jun 2005 20:49:30 -0500 Subject: geographic coordinates don't work Message-ID: Donald, Not sure about your projections issue, it is possible that you haven't provided all of the necessary parameters. You might try using epsg codes to simplify things. For LAYER status, setting it to default will make the layer automatically be displayed. Setting status to ON makes the layer available for querying, and to display it, you need to explicitly set the layer name in the URL. e.g. &map=mymapfile.map&layer=N_AL&layer=secondlayer David. -----Original Message----- From: UMN MapServer Users List on behalf of Donlad Harter Sent: Thu 6/23/2005 6:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] geographic coordinates don't work I would like to use geographic coordinates for my main window. My only layer is georeferenced DRG which uses the UTM projection. It doesn't work. If I change it and the extents to UTM it does. How can I use geographic coordinates? I have also noticed that my map file won't work with the layer status "on". It has to be "default" Here is most of my map file.: MAP NAME test3 IMAGETYPE png #EXTENT 578853 3857452.040 592267.160 3875770.440 EXTENT -86.125 34.875 -86 35 SIZE 1000 600 SHAPEPATH "/var/www/html/data/topo" SYMBOLSET "tutorial/symbols/symbols35.sym" FONTSET "tutorial/fonts/fonts.list" WEB TEMPLATE 'test3_template.html' IMAGEPATH '/var/www/html/tmp/' IMAGEURL '/tmp/' MINSCALE 10000 MAXSCALE 250000 END PROJECTION "proj=latlong" # "proj=utm" "ellps=clrk66" # "zone=16" # "north" END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # raster layer begins here NAME N_AL STATUS DEFAULT TILEINDEX "al_index.shp" TILEITEM "Location" TYPE RASTER SIZEUNITS meters PROJECTION "proj=utm" "ellps=clrk66" "zone=16" "north" END END # raster layer ends here # End of LAYER DEFINITIONS ------------------------------- From bino at INDOAKSES-ONLINE.COM Thu Jun 23 20:24:55 2005 From: bino at INDOAKSES-ONLINE.COM (bino_oetomo) Date: Fri, 24 Jun 2005 10:24:55 +0700 Subject: any alternative of savewebimage() ? Message-ID: Dear All. Is there any alternative for savewebimage() so that the graph is not drawed to temporary file but directly to user-browser ? Regards -bino- From peterkingsbury at ISTOP.COM Thu Jun 23 20:37:22 2005 From: peterkingsbury at ISTOP.COM (Peter Kingsbury) Date: Thu, 23 Jun 2005 23:37:22 -0400 Subject: Queries In-Reply-To: <42BB1D31.1000102@cbs.umn.edu> Message-ID: Hello Pericles and List, I have gone over the provided attachments... they are certainly helpful. Many thanks! One problem I am having, is that Chameleon does not seem to take into account the HEADER/FOOTER/TEMPLATE fields I place in the mapfile layers... it simply takes from the QueryResults.phtml file that comes with the server. I've confirmed that the placement of the HEADER/FOOTER/TEMPLATE fields -do- help, as without them, I get empty query results each time. Each time that the query results appear with the QueryResults.phtml file as a template, I get a table with the complete data set, which is good, but a little too much information for my purposes! The mapfile seems to ignore my custom .html templates. Any ideas? The search continues, - Peter Pericles S. Nacionales wrote: > Peter, > > Check http://terrasip.gis.umn.edu/projects/tutorial/section3.html and > look at the map and template files for each example. I'm currently in > the process of updating the tutorial and it will make more sense when > I'm done... perhaps in the next two weeks. > > Anyway, to setup a non-spatial query in MapServer (generating maps is > a form of query too!) you need to define a query template in each > layer to be queried. In addition, you might also want to define a > header and footer for each of the layer. Attached you will find the > relevant template files and a mapfile. Open the mapfile and have a > look at the layer named cities_poly and also the web object--that's > where all the query-related parameters are defined. > > As for the interface, I don't know about Chameleon but in the > MapServer CGI world you invoke queries by changing the mode to query > or nquery. I suspect it would be the same thing with PHP/MapScript. > > Good luck! > -Perry > > > Peter Kingsbury wrote: > >> Hello list, >> >> I have been reading through various documentation for some time, on >> how to >> accomplish simple queries with the data set I have, on the Chameleon >> site I >> have in place. >> >> At this point, I am not sure which of the sites, documents, or >> manuals will >> lead me to my goal; may I request a pointer to a useful document >> which will >> describe how to setup the initial environment to enable querying? >> >> I apologize if this is vague, however I am just beginning to scratch the >> surface, hence I am reading as much as I can on the subject! >> >> Much thanks, >> - Peter >> >> From m.tomko at PGRAD.UNIMELB.EDU.AU Thu Jun 23 22:56:23 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Fri, 24 Jun 2005 15:56:23 +1000 Subject: DHTML manipulation of SVG mapserver output In-Reply-To: Message-ID: Hi list, could anybody share/point me to examples of javascript/DHTML manipulation if mapserver SVG output? I want to do tematic mapping according to some input values from the web page (for instance with a slider set time inputs) and highlight regions in the map. Most examples have javasrcipt in the SVG, which is clearly not good for an output generated from mapserver. Dis anybody play with that? A simple example would be very welcome. Also, is it possible to specify to mapserver to include some attribute data from the database in the svg file? Thanks Martin --- Ing. Martin Tomko PhD. candidate CRC for Spatial Information Department of Geomatics University of Melbourne Victoria 3010 Australia phone +61 3 8344 9179 fax +61 3 9349 5185 email m.tomko at pgrad.unimelb.edu.au url http://www.geom.unimelb.edu.au/tomko url http://www.spatialinformationscience.org url http://www.crcsi.com.au ---------------------------------------------- From Maarten.van.der.Hoeven at KNMI.NL Fri Jun 24 00:12:55 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Fri, 24 Jun 2005 09:12:55 +0200 Subject: Selecting rectangle as a query on a map Message-ID: Hi list, I am running MapServer 4.6.0, with PHP Mapscript. All is working well (with a slightly modified gMap75 demo). But, I have a question about selecting a rectangle on the map, and to zoom in to that rectangle. You know what I mean :) I don't want to run Java applets, as I have to keep the application as small as possible. Does anyone have some pointers how to handle? Are there some javascript-libraries available? Anyone has an example piece of php-code in store? All the best, Maarten From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jun 24 00:43:10 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 24 Jun 2005 09:43:10 +0200 Subject: Selecting rectangle as a query on a map Message-ID: Maarten, two options in my opinion (among others for sure): 1) DBox (DHTML, javascript) http://www.dnr.state.mn.us/maps/landview.html 2) Chameleon (PHP/Mapscript based webmapping toolkit) http://chameleon.maptools.org Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Hoeven, Maarten van der" 06/24/05 09:12am >>> Hi list, I am running MapServer 4.6.0, with PHP Mapscript. All is working well (with a slightly modified gMap75 demo). But, I have a question about selecting a rectangle on the map, and to zoom in to that rectangle. You know what I mean :) I don't want to run Java applets, as I have to keep the application as small as possible. Does anyone have some pointers how to handle? Are there some javascript-libraries available? Anyone has an example piece of php-code in store? All the best, Maarten From dbkeon.ml at GMAIL.COM Fri Jun 24 00:45:04 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Fri, 24 Jun 2005 00:45:04 -0700 Subject: Selecting rectangle as a query on a map In-Reply-To: <2EA11DE4C505014BA2A74175DECAE6BE1D1842@BCSXTC.knmi.nl> Message-ID: On 6/24/05, Hoeven, Maarten van der wrote: > Hi list, > > I am running MapServer 4.6.0, with PHP Mapscript. All is working well > (with a slightly modified gMap75 demo). > > But, I have a question about selecting a rectangle on the map, and to > zoom in to that rectangle. You know what I mean :) > > I don't want to run Java applets, as I have to keep the application as > small as possible. > > Does anyone have some pointers how to handle? Are there some > javascript-libraries available? Anyone has an example piece of php-code > in store? Hi Maarten, You could grab the dbox code from Steve Lime's DHTML Landview interface: http://www.dnr.state.mn.us/maps/landview.html I think the workshop demo download also contains the dbox code: http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip There is a presentation on dbox at: http://www.omsug.ca/dl/osgis2004/box_presentation.zip I currently use a variation of this: http://gis.nacse.org/temp/zoombox.js Take a look at the thread from March 2005 entitled "Rubber-Band Box Zooming," which contains most of the info above. --Dylan From mh at SVAJ.DK Fri Jun 24 00:57:54 2005 From: mh at SVAJ.DK (Martin H=?ISO-8859-1?Q?=F8gh?=) Date: Fri, 24 Jun 2005 02:57:54 -0500 Subject: Open Source project MapLink is no more Message-ID: Due to a name conflict the open source project MapLink a web-based client that link WMS, MapScript and PostGIS is closed. The project will continue under the name AppForMap at sourceforge.net/projects/appformap/ Best regards, Martin From lists at WEBMAPIT.COM.BR Fri Jun 24 04:50:23 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Fri, 24 Jun 2005 08:50:23 -0300 Subject: JUMP & uDIG movies or presentations Message-ID: Hi folks, ( dear MapServer & FreeGIS lists, sorry for the cross-posting) I saw a very nice flash movie about QGIS and found it just great for the "newcomers"... It's hard to tell managers "YES, See? Free GIS does the music!" Currently, I'm looking for similar movies or presentations about JUMP and uDIG... Do you suggest any link? best -- Eduardo Patto Kanegae http://www.webmapit.com.br From umberto.nicoletti at GMAIL.COM Fri Jun 24 05:26:03 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 24 Jun 2005 14:26:03 +0200 Subject: JUMP & uDIG movies or presentations In-Reply-To: <42BBF37F.6020804@webmapit.com.br> Message-ID: You can make your own movies by using vncrec or vnc2swf: the output will be a flash file that can be easily played on a browser. Regards, Umberto On 6/24/05, Eduardo Patto Kanegae wrote: > Hi folks, ( dear MapServer & FreeGIS lists, sorry for the cross-posting) > > I saw a very nice flash movie about QGIS and found it just great for the > "newcomers"... > > It's hard to tell managers "YES, See? Free GIS does the music!" > > Currently, I'm looking for similar movies or presentations about JUMP > and uDIG... > > Do you suggest any link? > > best > > -- > Eduardo Patto Kanegae > http://www.webmapit.com.br > From albrecht at FIELAX.DE Fri Jun 24 05:53:16 2005 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Fri, 24 Jun 2005 14:53:16 +0200 Subject: Hiding/encrypting password for PostGIS connection Message-ID: Hello, is it possible to hide/encrypt the password given in the CONNECTION string of the map file or to pass it from PHP/Mapscript as an encrypted string? CONNECTIONTYPE postgis CONNECTION "USER=dbuser PASSWORD=dbpassword DBNAME=dbname HOST=" Regards, Sebastian From bernardosk at GMAIL.COM Fri Jun 24 06:39:58 2005 From: bernardosk at GMAIL.COM (Bernardo Rocha) Date: Fri, 24 Jun 2005 10:39:58 -0300 Subject: Making different Legends Message-ID: Is it possible to make two different legends from one mapfile? I want to display the "basic" legend all time, but I want to show a thematic map file legend in other part of the page...so I need a differente legend image. Could someone show me some example ? From assefa at DMSOLUTIONS.CA Fri Jun 24 06:53:17 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 24 Jun 2005 09:53:17 -0400 Subject: mapserv WMS client issues with two WMS servers In-Reply-To: <2576812186CDD411BF1500508B6DCE950B01DDB6@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, This should be fixed in both head and 4.6 branches. Related bug is 1312. Later, Kralidis,Tom [Burlington] wrote: > Hi, > > I have a mapserv CGI demo app which has a mapfile with two remote WMS layers. When I start up the application, if I select either layer on its own things display as expected. If I select BOTH remote WMS layers, I receive the following MapServer Message: > > msHTTPExecuteRequests(): HTTP request error. Can't open output file /ms4w/tmp/ms_tmp/?1.img.tmp. > > Anyone have any ideas on what's up here? > > Thanks > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From osgis.lists at GMAIL.COM Fri Jun 24 07:22:20 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 24 Jun 2005 09:22:20 -0500 Subject: Hiding/encrypting password for PostGIS connection In-Reply-To: <1451403887.20050624145316@fielax.de> Message-ID: I'm not sure about hiding the login information. To increase security: - create a PostgreSQL user with read only access to just the tables you are using for display - make sure that your mapfile resides beneath you web document root so that nobody can get your login information by reading the mapfile directly On 6/24/05, Sebastian Albrecht wrote: > Hello, > > is it possible to hide/encrypt the password given in the CONNECTION > string of the map file or to pass it from PHP/Mapscript as an > encrypted string? > > CONNECTIONTYPE postgis > CONNECTION "USER=dbuser PASSWORD=dbpassword DBNAME=dbname HOST=" > > Regards, > Sebastian > From kgrootendorst at BAIRD.COM Fri Jun 24 07:44:51 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Fri, 24 Jun 2005 09:44:51 -0500 Subject: WMS server - legend graphic/symbology Message-ID: Hi, I have a map file which I'm setting up as a WMS server, so that I can view my data in ArcMap 9. I'm successful in viewing the WMS in ArcMap, however it does not contain a graphic in the legend. In other words, the layers draw correctly (with same colors as in the map file), but the legend does not indicate any symbology. Any ideas how I can get the legend symbology to show? Using MS 4.4 on win2000. Below is a snippet from my .map file: (web definition:) WEB IMAGEPATH "C:/web/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Pelee WMS" "wms_onlineresource" "http://maps.baird.com/cgi-bin/mapserv.exe? map=/web/maplab-2.2/Pelee/Pelee.map&" "wms_srs" "EPSG:26917" "wms_abstract" "Pelee WMS server" "wms_style" "" END END # END OF WEB SECTION (layer definition): LAYER #NAME "Municipalities (coarse)" NAME "Municipalities_coarse" GROUP "BASE" METADATA "wms_title" "Municipalities" "wms_srs" "EPSG:26917" "wms_style" "" "wms_group_title" "base" END STATUS on DATA "./Municipalities" TYPE POLYGON UNITS METERS TEMPLATE "ttt" SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS LABELITEM "NAME" CLASS LABEL TYPE BITMAP SIZE tiny POSITION cc OFFSET 0 0 COLOR 100 100 100 #SHADOWSIZE 1 1 OUTLINECOLOR 255 255 255 END STYLE SYMBOL 8 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 99 99 99 SIZE 2 END END END From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jun 24 07:48:29 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 24 Jun 2005 16:48:29 +0200 Subject: WMS server - legend graphic/symbology Message-ID: You always need to add a NAME to the CLASS which you want Mapserver to show in the legend. Not sure if this will get you through showing the legend in ArcMap though. Try and log the request that ArcMap is sending. Does Mapserver put a LegendURL in your WMS capabilities and does it work? I am assuming ArcMap will use that for input. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Kevin Grootendorst 06/24/05 04:44pm >>> Hi, I have a map file which I'm setting up as a WMS server, so that I can view my data in ArcMap 9. I'm successful in viewing the WMS in ArcMap, however it does not contain a graphic in the legend. In other words, the layers draw correctly (with same colors as in the map file), but the legend does not indicate any symbology. Any ideas how I can get the legend symbology to show? Using MS 4.4 on win2000. Below is a snippet from my .map file: (web definition:) WEB IMAGEPATH "C:/web/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Pelee WMS" "wms_onlineresource" "http://maps.baird.com/cgi-bin/mapserv.exe? map=/web/maplab-2.2/Pelee/Pelee.map&" "wms_srs" "EPSG:26917" "wms_abstract" "Pelee WMS server" "wms_style" "" END END # END OF WEB SECTION (layer definition): LAYER #NAME "Municipalities (coarse)" NAME "Municipalities_coarse" GROUP "BASE" METADATA "wms_title" "Municipalities" "wms_srs" "EPSG:26917" "wms_style" "" "wms_group_title" "base" END STATUS on DATA "./Municipalities" TYPE POLYGON UNITS METERS TEMPLATE "ttt" SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS LABELITEM "NAME" CLASS LABEL TYPE BITMAP SIZE tiny POSITION cc OFFSET 0 0 COLOR 100 100 100 #SHADOWSIZE 1 1 OUTLINECOLOR 255 255 255 END STYLE SYMBOL 8 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 99 99 99 SIZE 2 END END END From kgrootendorst at BAIRD.COM Fri Jun 24 08:00:23 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Fri, 24 Jun 2005 10:00:23 -0500 Subject: WMS server - legend graphic/symbology Message-ID: Bart, Thanks for your suggestion. I added NAME " " to the CLASS object and everything works as expected. Do you know why ALL the wms layers would be turned 'on' while viewing in ArcMap? I assumed that only the layers with STATUS ON would be visible initially. The log that ArcMap sends is as follows: "GET /cgi-bin/mapserv.exe?map=/web/maplab- 2.2/Pelee/Pelee.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:26917&BBOX=298978. 084774465,4606186.14109543,512740.303618177,4785860.76331283&WIDTH=972&HEIGH T=817&LAYERS=Municipalities_coarse,Cities&STYLES=&EXCEPTIONS=application/vnd .ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE HTTP/1.1" 200 53798 The 'cities' layer is set to Status OFF, but still draws when the service is first added to ArcMap. Kevin On Fri, 24 Jun 2005 16:48:29 +0200, Bart van den Eijnden wrote: >You always need to add a NAME to the CLASS which you want Mapserver to show in the legend. > >Not sure if this will get you through showing the legend in ArcMap though. Try and log the request that ArcMap is sending. > >Does Mapserver put a LegendURL in your WMS capabilities and does it work? I am assuming ArcMap will use that for input. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Kevin Grootendorst 06/24/05 04:44pm >>> >Hi, >I have a map file which I'm setting up as a WMS server, so that I can view >my data in ArcMap 9. >I'm successful in viewing the WMS in ArcMap, however it does not contain a >graphic in the legend. In other words, the layers draw correctly (with >same colors as in the map file), but the legend does not indicate any >symbology. > >Any ideas how I can get the legend symbology to show? >Using MS 4.4 on win2000. > >Below is a snippet from my .map file: >(web definition:) >WEB > IMAGEPATH "C:/web/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "Pelee WMS" > "wms_onlineresource" "http://maps.baird.com/cgi-bin/mapserv.exe? >map=/web/maplab-2.2/Pelee/Pelee.map&" > "wms_srs" "EPSG:26917" > "wms_abstract" "Pelee WMS server" > "wms_style" "" > END > END # END OF WEB SECTION > >(layer definition): >LAYER > #NAME "Municipalities (coarse)" > NAME "Municipalities_coarse" > GROUP "BASE" > METADATA > "wms_title" "Municipalities" > "wms_srs" "EPSG:26917" > "wms_style" "" > "wms_group_title" "base" > END > STATUS on > DATA "./Municipalities" > TYPE POLYGON > UNITS METERS > TEMPLATE "ttt" > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > LABELITEM "NAME" > CLASS > LABEL > TYPE BITMAP > SIZE tiny > POSITION cc > OFFSET 0 0 > COLOR 100 100 100 > #SHADOWSIZE 1 1 > OUTLINECOLOR 255 255 255 > END > STYLE > SYMBOL 8 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 99 99 99 > SIZE 2 > END > END > END From BEN at SYNCERA-ITSOLUTIONS.NL Fri Jun 24 08:08:08 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 24 Jun 2005 17:08:08 +0200 Subject: WMS server - legend graphic/symbology Message-ID: Kevin, in the WMS interface you cannot specify whether a layer should be initially on or off. You just advertize the layers available on the server, and the client determines which ones it requests. OGC has invented the Web Map Context (WMC) standard to do the stuff you talk about, which is like an initial application state, so in a WMC document you can state which layers should be initially on or off. I don't think ArcMap supports WMC though. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Kevin Grootendorst 06/24/05 05:00pm >>> Bart, Thanks for your suggestion. I added NAME " " to the CLASS object and everything works as expected. Do you know why ALL the wms layers would be turned 'on' while viewing in ArcMap? I assumed that only the layers with STATUS ON would be visible initially. The log that ArcMap sends is as follows: "GET /cgi-bin/mapserv.exe?map=/web/maplab- 2.2/Pelee/Pelee.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:26917&BBOX=298978. 084774465,4606186.14109543,512740.303618177,4785860.76331283&WIDTH=972&HEIGH T=817&LAYERS=Municipalities_coarse,Cities&STYLES=&EXCEPTIONS=application/vnd ..ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE HTTP/1.1" 200 53798 The 'cities' layer is set to Status OFF, but still draws when the service is first added to ArcMap. Kevin On Fri, 24 Jun 2005 16:48:29 +0200, Bart van den Eijnden wrote: >You always need to add a NAME to the CLASS which you want Mapserver to show in the legend. > >Not sure if this will get you through showing the legend in ArcMap though. Try and log the request that ArcMap is sending. > >Does Mapserver put a LegendURL in your WMS capabilities and does it work? I am assuming ArcMap will use that for input. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Kevin Grootendorst 06/24/05 04:44pm >>> >Hi, >I have a map file which I'm setting up as a WMS server, so that I can view >my data in ArcMap 9. >I'm successful in viewing the WMS in ArcMap, however it does not contain a >graphic in the legend. In other words, the layers draw correctly (with >same colors as in the map file), but the legend does not indicate any >symbology. > >Any ideas how I can get the legend symbology to show? >Using MS 4.4 on win2000. > >Below is a snippet from my .map file: >(web definition:) >WEB > IMAGEPATH "C:/web/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "Pelee WMS" > "wms_onlineresource" "http://maps.baird.com/cgi-bin/mapserv.exe? >map=/web/maplab-2.2/Pelee/Pelee.map&" > "wms_srs" "EPSG:26917" > "wms_abstract" "Pelee WMS server" > "wms_style" "" > END > END # END OF WEB SECTION > >(layer definition): >LAYER > #NAME "Municipalities (coarse)" > NAME "Municipalities_coarse" > GROUP "BASE" > METADATA > "wms_title" "Municipalities" > "wms_srs" "EPSG:26917" > "wms_style" "" > "wms_group_title" "base" > END > STATUS on > DATA "./Municipalities" > TYPE POLYGON > UNITS METERS > TEMPLATE "ttt" > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > LABELITEM "NAME" > CLASS > LABEL > TYPE BITMAP > SIZE tiny > POSITION cc > OFFSET 0 0 > COLOR 100 100 100 > #SHADOWSIZE 1 1 > OUTLINECOLOR 255 255 255 > END > STYLE > SYMBOL 8 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 99 99 99 > SIZE 2 > END > END > END From ealpert at DIGITALGLOBE.COM Fri Jun 24 08:21:40 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 24 Jun 2005 09:21:40 -0600 Subject: geographic coordinates don't work Message-ID: Maybe the formatting didn't work when you pasted but it looks like your PROJECTION block for you map has it's END commented out. You may also what to add: UNITS DD Where you have EXTENT. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Donlad Harter Sent: Thursday, June 23, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] geographic coordinates don't work I would like to use geographic coordinates for my main window. My only layer is georeferenced DRG which uses the UTM projection. It doesn't work. If I change it and the extents to UTM it does. How can I use geographic coordinates? I have also noticed that my map file won't work with the layer status "on". It has to be "default" Here is most of my map file.: MAP NAME test3 IMAGETYPE png #EXTENT 578853 3857452.040 592267.160 3875770.440 EXTENT -86.125 34.875 -86 35 SIZE 1000 600 SHAPEPATH "/var/www/html/data/topo" SYMBOLSET "tutorial/symbols/symbols35.sym" FONTSET "tutorial/fonts/fonts.list" WEB TEMPLATE 'test3_template.html' IMAGEPATH '/var/www/html/tmp/' IMAGEURL '/tmp/' MINSCALE 10000 MAXSCALE 250000 END PROJECTION "proj=latlong" # "proj=utm" "ellps=clrk66" # "zone=16" # "north" END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # raster layer begins here NAME N_AL STATUS DEFAULT TILEINDEX "al_index.shp" TILEITEM "Location" TYPE RASTER SIZEUNITS meters PROJECTION "proj=utm" "ellps=clrk66" "zone=16" "north" END END # raster layer ends here # End of LAYER DEFINITIONS ------------------------------- From harterc1 at COMCAST.NET Fri Jun 24 08:34:38 2005 From: harterc1 at COMCAST.NET (Donald Harter) Date: Fri, 24 Jun 2005 10:34:38 -0500 Subject: geographic coordinates don't work Message-ID: >>Maybe the formatting didn't work when you pasted but it looks like your PROJECTION block for you map has it's END commented out. You may also what to add: UNITS DD Where you have EXTENT. >>-e Thanks Ethan. This fixed it. It seems that my "UNITS DD" was in the wrong place. I had tried it before and it didn't work. Now I have a main window with degrees/geographical coordinates. The END statement was just formatted wrong by a paste. From osgis.lists at GMAIL.COM Fri Jun 24 09:12:48 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 24 Jun 2005 11:12:48 -0500 Subject: Printing WMS layers in ArcMap 9.0 In-Reply-To: <55dd01fa05053009433e5cfddc@mail.gmail.com> Message-ID: I just hit the same brick wall. Another way to get the map to print out is to set MAXSIZE parameter in your mapfile really high. This gets everything to print, but all the symbology -- texts and line widths -- end up nice and tiny. On 5/30/05, Ken Lord wrote: > I've encountered the same problem. I can see wms layers in ArcGIS 9, but > not print or export them, the rest of the map prints or exports, but nothing > from wms is included. > > I'll have to try the low resolution suggestion and see if it works for me, I > am surprised it works for you. For me it appears that ArcMap just doesnt > give any time for the wms layers to regenerate when it regenerates > everything for the print/export, but the reason given makes sense, I've seen > wms layers fail to draw when requesting too large of an area. > > I would have assumed that they would request smaller tiles to fill the map > if the area/resolution is too high, but it is ESRI, so perhaps we'll see it > in service pack 4. > > Cheers, > Ken Lord > Vancouver BC > > > > > > > > > On 5/30/05, Tyler Mitchell wrote: > > That is the right problem. You will find results vary depending on whose > WMS > > you are using. MapServer has a default image size limit of 2,000, I > think. > > It can be overridden at MapServer compile time. I use another (IMS) > service > > that is limited to 1024. It will then be all related the output > resolution > > of the device or export file you select. In most cases, at a resolution > of > > about 120DPI you might get an 8.5 x 11 page?? Good luck - it's thoroughly > > irritating. > > > > Tyler > > > > On May 30, 2005 01:12 am, Bonnie Stewart wrote: > > > Cheers Mike. > > > > > > I've actually just found the answer in one of ESRI's user forums: > > > > http://forums.esri.com/Thread.asp?c=132&f=1341&t=157673&mc=2 > > > > > > Just in case that link moves: > > > > > > Subject Re: print wms service > > > Author Graeme Browning > > > Date May 10, 2005 > > > Message > > > > > > Hi Bastian > > > > > > I came across something similar trying to use Export Map to PDF on a WMS > > > layer that exported fine to JPG and was given this advice: > > > > > > "My guess is the JPG files export without problems because they at > drawing > > > at a resolution of 96 dpi. This is the default resolution for JPG > exports. > > > PDF exports, however, have a default resolution of 300 dpi. We've > > > reproduced the draw failure here, it occurs in all formats when > resolution > > > is 300 dpi. The service layers are dropped in all export formats and > during > > > printing. This confirms that the failure is occuring at draw time. > > > > > > We looked further into the issue, and identified a limitaion on the > > > server's end as the cause of the draw failure. When we peeked at the > > > server's response from the request sent during the 300 dpi export, it > > > returned an exception message stating, "Image is wider than maximum > allowed > > > width of 2000". In order to draw the service layer at a resolution of > 300 > > > dpi, ArcMap had requested an image of width=3063 height=2619. The server > > > raised the exception instead of returning the image. > > > > > > While this layer draw failure is not caused by our export > implementation, > > > we probably need to do a better job of providing feedback when > exceptions > > > occur during output. When pixel size limit errors occur on draw to the > > > screen, ArcMap displays an information dialog to inform the user of the > > > exception. Output, however, does not provide any feedback mechanism. For > > > now, the only workaround I can recommend is outputing your PDF file at a > > > lower resolution, something close to 96 dpi. " > > > > > > In my case turning the resolution down to 150dpi achieved the result I > was > > > looking for - perhaps you can try doing the same. > > > > > > - Graeme > > > > > > > > > Graeme Browning > > > ESRI Australia > > > > > > While this was talking about JPG files, the problem was similar with > .emf > > > files. I tried exporting to .emf at 200 dpi instead of the default 300, > and > > > the image came out OK. When you go to print, you can't specify the dpi > > > numerically, but there's a "Output Image Quality" slider from Fast -> > > > Normal -> Best. I changed it to 'Fast' (default is 'Best'), and it > printed > > > (and previewed - but you have to cancel out of the Print dialog in order > to > > > preview) fine. > > > > > > Hopefully this info saves somebody else from the puzzled few days I just > > > had :) > > > > > > > > > Cheers, > > > > > > > > > Bonnie > > > > > > ________________________________ > > > Bonnie Stewart > > > Research Officer > > > Satellite Remote Sensing Services > > > Department of Land Information > > > > > > Email: Bonnie.Stewart at dli.wa.gov.au > > > Phone: 9387 0342 > > > > > > ________________________________ > > > > > > From: UMN MapServer Users List on behalf of Mike Davis > > > Sent: Mon 30/05/2005 3:23 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [Maybe SPAM] Re: [UMN_MAPSERVER-USERS] Printing WMS layers in > > > ArcMap 9.0 > > > > > > > > > > > > Bonnie- > > > > > > We use ArcMap extensively and it has become standard practice in our > > > GIS shop to export everything to .pdf before printing. > > > > > > I am not sure about WMS bugs specifically, but the various other > > > problems we have encountered while trying to print maps from the > > > modern (8.x 9.x) Arc programs are often solved by using .pdf. > > > > > > good luck > > > > > > -Mike > > > > > > On 5/29/05, Bonnie Stewart wrote: > > > > Hi all, > > > > > > > > Technically, I suspect this question would be more appropriate for an > > > > ArcGIS users forum, but from what I can find there's not a lot of help > > > > out there on ArcGIS issues, so I was hoping someone else from the > > > > Mapserver-users community might be using ArcMap, and might have > > > > encountered this issue before. > > > > > > > > I've got a couple of mapfiles up and running which are include various > > > > vector and raster layers, and mostly I'm accessing them via ArcMap > 9.0. > > > > However, I'm having trouble getting ArcMap to print my WMS images - > print > > > > preview always comes up blank, and if you go ahead and print a page > > > > anyway, it's blank. > > > > > > > > ArcMap's Help says that ArcMap converts maps to .emf (Windows Enhanced > > > > Metafile) for printing, and suggests manually doing an export to .emf > and > > > > then opening up the .emf to see where the problem lies. Well, I've > done > > > > this, and the .emf comes out entirely blank. To compare, I've tried > > > > exporting to .bmp, and that comes out fine. > > > > > > > > Is there a problem with exporting WMS images to .emf? > > > > Is it possible to get ArcMap to print from a different export format? > > > > > > > > I have absolutely no GIS experience, so it's probably something very > > > > obvious, but all help would be much appreciated! > > > > > > > > (Would be happy to provide the mapfiles etc, but as I can print fine > in > > > > Internet Explorer, and ArcExplorer 4, I don't think it's an issue with > > > > the mapfiles..) > > > > > > > > > > > > Cheers, > > > > > > > > > > > > Bonnie > > > > > > > > > > > > ________________________________ > > > > Bonnie Stewart > > > > Research Officer > > > > Satellite Remote Sensing Services > > > > Department of Land Information > > > > > > > > Email: Bonnie.Stewart at dli.wa.gov.au > > > > Phone: 9387 0342 > > > > > > > > This e-mail and any files transmitted with it are intended only for > the > > > > use of the addressee(s). It may contain information that is > confidential > > > > and privileged. If you are not an intended recipient, any use, > > > > interference with, disclosure, distribution or copying of this > material > > > > is unauthorised and prohibited. If you receive this in error, please > > > > notify the author by Return email to the sender. Information in this > > > > message not relating to the official business of DLI shall be > understood > > > > as neither given nor endorsed by it. While every care is taken, it is > > > > recommended that you scan any attachments for viruses. DLI liability > is > > > > limited to re-supplying affected attachments. > > > > > > This e-mail and any files transmitted with it are intended only for the > use > > > of the addressee(s). It may contain information that is confidential > and > > > privileged. If you are not an intended recipient, any use, interference > > > with, disclosure, distribution or copying of this material is > unauthorised > > > and prohibited. If you receive this in error, please notify the author > by > > > Return email to the sender. Information in this message not relating to > the > > > official business of DLI shall be understood as neither given nor > endorsed > > > by it. While every care is taken, it is recommended that you scan any > > > attachments for viruses. DLI liability is limited to re-supplying > affected > > > attachments. > > > From osgis.lists at GMAIL.COM Fri Jun 24 09:23:48 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 24 Jun 2005 11:23:48 -0500 Subject: Printing WMS layers in ArcMap 9.0 In-Reply-To: <71c3c6c50506240912478a6b67@mail.gmail.com> Message-ID: I think an approach from the Mapserver side that could help could be the ability to have a trigger that when the mapsize is greater than a user set size (ie over 2000 pixels in either dimension) render the map for 300dpi (also configurable) output by making all symbology larger. Any developers know how hard this would be? On 6/24/05, David Bitner wrote: > I just hit the same brick wall. Another way to get the map to print > out is to set MAXSIZE parameter in your mapfile really high. This > gets everything to print, but all the symbology -- texts and line > widths -- end up nice and tiny. > > > On 5/30/05, Ken Lord wrote: > > I've encountered the same problem. I can see wms layers in ArcGIS 9, but > > not print or export them, the rest of the map prints or exports, but nothing > > from wms is included. > > > > I'll have to try the low resolution suggestion and see if it works for me, I > > am surprised it works for you. For me it appears that ArcMap just doesnt > > give any time for the wms layers to regenerate when it regenerates > > everything for the print/export, but the reason given makes sense, I've seen > > wms layers fail to draw when requesting too large of an area. > > > > I would have assumed that they would request smaller tiles to fill the map > > if the area/resolution is too high, but it is ESRI, so perhaps we'll see it > > in service pack 4. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > > > > > > > > > > > > > > > On 5/30/05, Tyler Mitchell wrote: > > > That is the right problem. You will find results vary depending on whose > > WMS > > > you are using. MapServer has a default image size limit of 2,000, I > > think. > > > It can be overridden at MapServer compile time. I use another (IMS) > > service > > > that is limited to 1024. It will then be all related the output > > resolution > > > of the device or export file you select. In most cases, at a resolution > > of > > > about 120DPI you might get an 8.5 x 11 page?? Good luck - it's thoroughly > > > irritating. > > > > > > Tyler > > > > > > On May 30, 2005 01:12 am, Bonnie Stewart wrote: > > > > Cheers Mike. > > > > > > > > I've actually just found the answer in one of ESRI's user forums: > > > > > > http://forums.esri.com/Thread.asp?c=132&f=1341&t=157673&mc=2 > > > > > > > > Just in case that link moves: > > > > > > > > Subject Re: print wms service > > > > Author Graeme Browning > > > > Date May 10, 2005 > > > > Message > > > > > > > > Hi Bastian > > > > > > > > I came across something similar trying to use Export Map to PDF on a WMS > > > > layer that exported fine to JPG and was given this advice: > > > > > > > > "My guess is the JPG files export without problems because they at > > drawing > > > > at a resolution of 96 dpi. This is the default resolution for JPG > > exports. > > > > PDF exports, however, have a default resolution of 300 dpi. We've > > > > reproduced the draw failure here, it occurs in all formats when > > resolution > > > > is 300 dpi. The service layers are dropped in all export formats and > > during > > > > printing. This confirms that the failure is occuring at draw time. > > > > > > > > We looked further into the issue, and identified a limitaion on the > > > > server's end as the cause of the draw failure. When we peeked at the > > > > server's response from the request sent during the 300 dpi export, it > > > > returned an exception message stating, "Image is wider than maximum > > allowed > > > > width of 2000". In order to draw the service layer at a resolution of > > 300 > > > > dpi, ArcMap had requested an image of width=3063 height=2619. The server > > > > raised the exception instead of returning the image. > > > > > > > > While this layer draw failure is not caused by our export > > implementation, > > > > we probably need to do a better job of providing feedback when > > exceptions > > > > occur during output. When pixel size limit errors occur on draw to the > > > > screen, ArcMap displays an information dialog to inform the user of the > > > > exception. Output, however, does not provide any feedback mechanism. For > > > > now, the only workaround I can recommend is outputing your PDF file at a > > > > lower resolution, something close to 96 dpi. " > > > > > > > > In my case turning the resolution down to 150dpi achieved the result I > > was > > > > looking for - perhaps you can try doing the same. > > > > > > > > - Graeme > > > > > > > > > > > > Graeme Browning > > > > ESRI Australia > > > > > > > > While this was talking about JPG files, the problem was similar with > > .emf > > > > files. I tried exporting to .emf at 200 dpi instead of the default 300, > > and > > > > the image came out OK. When you go to print, you can't specify the dpi > > > > numerically, but there's a "Output Image Quality" slider from Fast -> > > > > Normal -> Best. I changed it to 'Fast' (default is 'Best'), and it > > printed > > > > (and previewed - but you have to cancel out of the Print dialog in order > > to > > > > preview) fine. > > > > > > > > Hopefully this info saves somebody else from the puzzled few days I just > > > > had :) > > > > > > > > > > > > Cheers, > > > > > > > > > > > > Bonnie > > > > > > > > ________________________________ > > > > Bonnie Stewart > > > > Research Officer > > > > Satellite Remote Sensing Services > > > > Department of Land Information > > > > > > > > Email: Bonnie.Stewart at dli.wa.gov.au > > > > Phone: 9387 0342 > > > > > > > > ________________________________ > > > > > > > > From: UMN MapServer Users List on behalf of Mike Davis > > > > Sent: Mon 30/05/2005 3:23 PM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: [Maybe SPAM] Re: [UMN_MAPSERVER-USERS] Printing WMS layers in > > > > ArcMap 9.0 > > > > > > > > > > > > > > > > Bonnie- > > > > > > > > We use ArcMap extensively and it has become standard practice in our > > > > GIS shop to export everything to .pdf before printing. > > > > > > > > I am not sure about WMS bugs specifically, but the various other > > > > problems we have encountered while trying to print maps from the > > > > modern (8.x 9.x) Arc programs are often solved by using .pdf. > > > > > > > > good luck > > > > > > > > -Mike > > > > > > > > On 5/29/05, Bonnie Stewart wrote: > > > > > Hi all, > > > > > > > > > > Technically, I suspect this question would be more appropriate for an > > > > > ArcGIS users forum, but from what I can find there's not a lot of help > > > > > out there on ArcGIS issues, so I was hoping someone else from the > > > > > Mapserver-users community might be using ArcMap, and might have > > > > > encountered this issue before. > > > > > > > > > > I've got a couple of mapfiles up and running which are include various > > > > > vector and raster layers, and mostly I'm accessing them via ArcMap > > 9.0. > > > > > However, I'm having trouble getting ArcMap to print my WMS images - > > print > > > > > preview always comes up blank, and if you go ahead and print a page > > > > > anyway, it's blank. > > > > > > > > > > ArcMap's Help says that ArcMap converts maps to .emf (Windows Enhanced > > > > > Metafile) for printing, and suggests manually doing an export to .emf > > and > > > > > then opening up the .emf to see where the problem lies. Well, I've > > done > > > > > this, and the .emf comes out entirely blank. To compare, I've tried > > > > > exporting to .bmp, and that comes out fine. > > > > > > > > > > Is there a problem with exporting WMS images to .emf? > > > > > Is it possible to get ArcMap to print from a different export format? > > > > > > > > > > I have absolutely no GIS experience, so it's probably something very > > > > > obvious, but all help would be much appreciated! > > > > > > > > > > (Would be happy to provide the mapfiles etc, but as I can print fine > > in > > > > > Internet Explorer, and ArcExplorer 4, I don't think it's an issue with > > > > > the mapfiles..) > > > > > > > > > > > > > > > Cheers, > > > > > > > > > > > > > > > Bonnie > > > > > > > > > > > > > > > ________________________________ > > > > > Bonnie Stewart > > > > > Research Officer > > > > > Satellite Remote Sensing Services > > > > > Department of Land Information > > > > > > > > > > Email: Bonnie.Stewart at dli.wa.gov.au > > > > > Phone: 9387 0342 > > > > > > > > > > This e-mail and any files transmitted with it are intended only for > > the > > > > > use of the addressee(s). It may contain information that is > > confidential > > > > > and privileged. If you are not an intended recipient, any use, > > > > > interference with, disclosure, distribution or copying of this > > material > > > > > is unauthorised and prohibited. If you receive this in error, please > > > > > notify the author by Return email to the sender. Information in this > > > > > message not relating to the official business of DLI shall be > > understood > > > > > as neither given nor endorsed by it. While every care is taken, it is > > > > > recommended that you scan any attachments for viruses. DLI liability > > is > > > > > limited to re-supplying affected attachments. > > > > > > > > This e-mail and any files transmitted with it are intended only for the > > use > > > > of the addressee(s). It may contain information that is confidential > > and > > > > privileged. If you are not an intended recipient, any use, interference > > > > with, disclosure, distribution or copying of this material is > > unauthorised > > > > and prohibited. If you receive this in error, please notify the author > > by > > > > Return email to the sender. Information in this message not relating to > > the > > > > official business of DLI shall be understood as neither given nor > > endorsed > > > > by it. While every care is taken, it is recommended that you scan any > > > > attachments for viruses. DLI liability is limited to re-supplying > > affected > > > > attachments. > > > > > > From jdenovan at GEOREFERENCEONLINE.COM Fri Jun 24 09:42:11 2005 From: jdenovan at GEOREFERENCEONLINE.COM (Janice) Date: Fri, 24 Jun 2005 11:42:11 -0500 Subject: Has anyone got http://libcwms.gov.bc.ca/wmsconnect... to work Message-ID: Stephen, This snippet works for me: # BC TRIM Orthomosaic # low res (150,000 - 10,000,000) # high(0 - 150,000) LAYER NAME "Ortho (WMS)" TYPE RASTER OFFSITE 0 0 0 STATUS OFF GROUP "LEGEND" CONNECTIONTYPE WMS CONNECTION "http://libcwms.gov.bc.ca/wmsconnector/com.esri.wsit.WMSServlet/o gc_layer_service?&TRANSPARENT=true" METADATA WMS_SRS "epsg:26910" WMS_NAME "TRIMOrthomosaic,TRIMOrthomosaicOverview" WMS_SERVER_VERSION "1.1.1" WMS_FORMAT "image/png" WMS_TIMEOUT "1000" WMS_ORDER "50" END END Regards, Janice Vancouver, BC From lfilak at MEDINACO.ORG Fri Jun 24 10:16:24 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 24 Jun 2005 13:16:24 -0400 Subject: buffer (GEOS) in Mapserver 4.6 Message-ID: The following message was sent by Monica Socol on Wed, 22 Jun 2005 15:48:00 -0500. > > I have found in the History document for Mapserver version 4.6: > "Finished code to convert back and forth between GEOS geometries. Buffer > and > convex hull operations are exposed in mapscript" > > But this is all I could find. Does this mean that mapscript exposes > Buffer functionality for different types of geometries (not only point)? > Does anyone knows how to use GEOS with mapscript? Monica, You don't mention what flavor of mapscript... The configure file for swigmapscript points to mapscript/swiginc/shape.i which in turn spells out that you can take a shapeObj and run a buffer on it using a desired width and also take a shapeObj and run a convexhull on it. For a buffer the call should be '$newshape = $shape->buffer(int width)' & '$newshape = $shape->convexHull()' for convex hull. HTH Lowell From Monica.Socol at DPRA.COM Fri Jun 24 10:24:20 2005 From: Monica.Socol at DPRA.COM (Monica Socol) Date: Fri, 24 Jun 2005 12:24:20 -0500 Subject: buffer (GEOS) in Mapserver 4.6 Message-ID: Thank you for your response, Lowell. I am working with PHP Mapscript. Do you know if the ShapeObj from PHP Mapscript exposes the same functionality as swigmapscript? I didn't find anything in the objects documentation about it. Monica -----Original Message----- From: Lowell Filak [mailto:lfilak at medinaco.org] Sent: June 24, 2005 1:16 PM To: Monica Socol; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] buffer (GEOS) in Mapserver 4.6 The following message was sent by Monica Socol on Wed, 22 Jun 2005 15:48:00 -0500. > > I have found in the History document for Mapserver version 4.6: > "Finished code to convert back and forth between GEOS geometries. Buffer > and > convex hull operations are exposed in mapscript" > > But this is all I could find. Does this mean that mapscript exposes > Buffer functionality for different types of geometries (not only point)? > Does anyone knows how to use GEOS with mapscript? Monica, You don't mention what flavor of mapscript... The configure file for swigmapscript points to mapscript/swiginc/shape.i which in turn spells out that you can take a shapeObj and run a buffer on it using a desired width and also take a shapeObj and run a convexhull on it. For a buffer the call should be '$newshape = $shape->buffer(int width)' & '$newshape = $shape->convexHull()' for convex hull. HTH Lowell From lfilak at MEDINACO.ORG Fri Jun 24 10:36:53 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 24 Jun 2005 13:36:53 -0400 Subject: buffer (GEOS) in Mapserver 4.6 Message-ID: The following message was sent by Monica Socol on Fri, 24 Jun 2005 12:24:20 -0500. > Thank you for your response, Lowell. > I am working with PHP Mapscript. Do you know if the ShapeObj from PHP > Mapscript exposes the same functionality as swigmapscript? I didn't find > anything in the objects documentation about it. > > > Monica > > > -----Original Message----- > From: Lowell Filak [mailto:lfilak at medinaco.org] > Sent: June 24, 2005 1:16 PM > To: Monica Socol; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] buffer (GEOS) in Mapserver 4.6 > > The following message was sent by Monica Socol > on Wed, 22 Jun 2005 15:48:00 -0500. > > > > > I have found in the History document for Mapserver version 4.6: > > "Finished code to convert back and forth between GEOS geometries. > Buffer > > and > > convex hull operations are exposed in mapscript" > > > > But this is all I could find. Does this mean that mapscript exposes > > Buffer functionality for different types of geometries (not only > point)? > > Does anyone knows how to use GEOS with mapscript? Monica, Sorry, I'm not sure... Lowell From lfilak at MEDINACO.ORG Fri Jun 24 10:56:44 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 24 Jun 2005 13:56:44 -0400 Subject: SWIG typemap for C# to receive gdBuffer as byte array Message-ID: The following message was sent by =?iso-8859-2?Q?Szekeres_Tam=E1s?= on Tue, 21 Jun 2005 23:30:41 +0200. > Mapserver 4.6 implements imageObj.getBytes() to get the image as array of > bytes. To generate C# wrapper a proper typemap should be created for this > language. The folowing code gives a solution, if you have a better one > please reply: Tamas, I think you will need to file this in bugzilla if you want it included in the base MS package. Lowell From szekeres.tamas at FREEMAIL.HU Fri Jun 24 11:04:43 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri, 24 Jun 2005 13:04:43 -0500 Subject: any alternative of savewebimage() ? Message-ID: Hi, You should try to use imageObj.getBytes (Mapserver 4.6) and write the bytes directly to the binary response stream. Tamas Szekeres On Fri, 24 Jun 2005 10:24:55 +0700, bino_oetomo wrote: >Dear All. >Is there any alternative for savewebimage() so that the graph is not drawed >to temporary file but directly to user-browser ? > >Regards >-bino- From assefa at DMSOLUTIONS.CA Fri Jun 24 11:27:10 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 24 Jun 2005 14:27:10 -0400 Subject: buffer (GEOS) in Mapserver 4.6 In-Reply-To: <49B9846C39F25A4FA901064970861610334790@mhk-ex1.ad.dpra.com> Message-ID: Hi There, The php does not yet expose those functions. There is a bug opened on that but It is still not adressed for now. Although I do not have a precise timeline, It should be done in the coming weeks. (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1327). Later, Monica Socol wrote: > Thank you for your response, Lowell. > I am working with PHP Mapscript. Do you know if the ShapeObj from PHP > Mapscript exposes the same functionality as swigmapscript? I didn't find > anything in the objects documentation about it. > > > Monica > > > -----Original Message----- > From: Lowell Filak [mailto:lfilak at medinaco.org] > Sent: June 24, 2005 1:16 PM > To: Monica Socol; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] buffer (GEOS) in Mapserver 4.6 > > The following message was sent by Monica Socol > on Wed, 22 Jun 2005 15:48:00 -0500. > > >>I have found in the History document for Mapserver version 4.6: >>"Finished code to convert back and forth between GEOS geometries. > > Buffer > >>and >> convex hull operations are exposed in mapscript" >> >>But this is all I could find. Does this mean that mapscript exposes >>Buffer functionality for different types of geometries (not only > > point)? > >>Does anyone knows how to use GEOS with mapscript? > > > Monica, > > You don't mention what flavor of mapscript... > The configure file for swigmapscript points to mapscript/swiginc/shape.i > which in turn spells out that you can take a shapeObj and run a buffer > on it using a desired width and also take a shapeObj and run a > convexhull on it. > For a buffer the call should be '$newshape = $shape->buffer(int width)' > & '$newshape = $shape->convexHull()' for convex hull. > > HTH > > Lowell > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sgillies at FRII.COM Fri Jun 24 11:35:11 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 24 Jun 2005 12:35:11 -0600 Subject: any alternative of savewebimage() ? In-Reply-To: Message-ID: Tamas, As far as I know, the PHP mapscript module does not have imageObj::getBytes. BTW, I'll respond to your C# mapscript patch very soon. Thanks for submitting it. Sean On Jun 24, 2005, at 12:04 PM, Tamas Szekeres wrote: > Hi, > > You should try to use imageObj.getBytes (Mapserver 4.6) and write the > bytes directly to the binary response stream. > > Tamas Szekeres > > > > > On Fri, 24 Jun 2005 10:24:55 +0700, bino_oetomo ONLINE.COM> wrote: > >> Dear All. >> Is there any alternative for savewebimage() so that the graph is not > drawed >> to temporary file but directly to user-browser ? >> >> Regards >> -bino- > From lfilak at MEDINACO.ORG Fri Jun 24 11:39:33 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 24 Jun 2005 14:39:33 -0400 Subject: file size issue Message-ID: The following message was sent by Jerl Simpson on Mon, 20 Jun 2005 08:37:29 -0500. > That's the same conclusion I came to as well. I thought I could > either use the C API or I could use the tile index files. They are > all broken up into smaller files. The issue with that is I would have > to modify the shp2mysql.pl file so it did not create a new table in > the database for each file of the tiling. > > Thanks again, > > Jerl > > > > > > Jerl, > > > > I think I may have missed something. If my understanding (from a > > conference session today) is correct the problem lies in GEO::Shapelib > > itself. It appears that it reads the geometries into an array which > > would still mean you would need enough ram to read the entire shapefile. > > The only workaround is to use shapelib via C directly instead of through > > the perl module. From C you would be able to iterate over each entity. Jerl, There is 1 last option if you would like to create an arrays.i include file for swig'ng shapelib. What I have currently is a swig'd version of shapelib that sort-of works. The geometry data is extracted from the shape into a few C arrays and there is a typemap required to make those available as perl arrays, otherwise they show up as _p_double=SCALAR(0x...) and are unuseable. Lowell From wendy_arbuckle at YAHOO.COM Fri Jun 24 11:44:19 2005 From: wendy_arbuckle at YAHOO.COM (Wendy Arbuckle) Date: Fri, 24 Jun 2005 13:44:19 -0500 Subject: scalebar Message-ID: i am a super newbie (as you will see from my code) i'm not sure if i can even get my scalebar to show up without using some form of html code i am using a wms server this is some of my code before the layer definitions: # # Start of map file # MAP # NAME PRDC-demo # background color of image if transparency # is not requested IMAGECOLOR 174 206 180 # default output image dimensions SIZE 600 400 # always returns a map STATUS ON # set top level projection PROJECTION "init=epsg:2961" END #start of the scalebar SCALEBAR STATUS EMBED LABEL SIZE tiny COLOR 0 0 0 OUTLINECOLOR 255 255 255 END STYLE 0 INTERVALS 3 SIZE 100 3 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR TRANSPARENT TRUE #POSTLABELCACHE true END # Scalebar # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # minx miny maxx maxy # sets: # /WMT_MS_Capabilities/Capability/Layer/LatLonBoundingBox(@minx @miny @maxx @maxx) # EXTENT -180 -90 180 90 # World EXTENT 486716 5.01368e+006 572241 5.07531e+006 # add def pointers for symbols SYMBOLSET "../etc/symbols/symbols.sym" FONTSET "../etc/fonts/fonts.txt" SCALEBAR IMAGECOLOR 255 255 255 # background color of the image placeholder LABEL COLOR 0 0 0 # color of the labels indicating the distance SIZE SMALL # size of the labels END SIZE 350 5 # sixe in pixels of the scalebar COLOR 255 255 255 # color used in the scalebar BACKGROUNDCOLOR 0 0 0 # background color of the drawn scalebar OUTLINECOLOR 0 0 0 # outline color of the salebar UNITS kilometers # units to be used INTERVALS 5 # How many intervals in total in the # scalebar STATUS ON # the scalebar is on by default END # # Start of web interface definition WEB # this is the real filepath to the temp dir for intermediate file creation IMAGEPATH "/tmp/ms_tmp/" # this is the web-accessible path to IMAGEPATH IMAGEURL "/ms_tmp/" HEADER "../templates/query_header.html" FOOTER "../templates/query_footer.html" METADATA "map" "/var/www/html/mapserver/service/prdc-demo.map" "ows_schemas_location" "http://schemas.opengeospatial.net" "ows_title" "Pictou County GIS demo" "ows_abstract" "Pictou County GIS demo. Enjoy!" "ows_keywordlist" "mapserver,ogc,workshop" "ows_service_onlineresource" "http://localhost/mapserver/index.html" "ows_fees" "none" "ows_accessconstraints" "none" "wms_contactperson" "Libo Feng" "wms_contactorganization" "Pictou County" "wms_contactposition" "Systems Scientist" "wms_addresstype" "postal" "wms_address" "980 East River rd." "wms_city" "New Glasgow" "wms_stateorprovince" "Nova Scotia" "wms_postcode" "B2H-2G3" "wms_country" "Canada" "wms_contactvoicetelephone" "+01-905-336-4409" "wms_contactfacsimiletelephone" "+01-905-336-4499" "wms_contactelectronicmailaddress" "lfeng at prdc.com" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:4326" "wfs_namespace_uri" "http://localhost/mapserver" "wfs_namespace_prefix" "ms_ogc" "wcs_label" "Sample OWS for MapServer OGC Web Services Workshop" "wcs_description" "Sample OWS for MapServer OGC Web Services Workshop. Enjoy!" "WMS_SLD_SYMBOL_URL" "http://wendy/dot.png" # sets: # /WCS_Capabilities/Service/metadataLink/@xlink:href "wcs_metadatalink_href" "http://devgeo.cciw.ca/index.html" END END # hilite map for GetFeatureInfo "info_format=text/html" # requests QUERYMAP STATUS ON SIZE 200 200 STYLE HILITE COLOR 255 255 0 END # set defaults for GetLegendGraphic requests LEGEND LABEL TYPE BITMAP SIZE MEDIUM COLOR 222 0 0 POSITION cc END END and this is the address i am using for my mapserver: "http://192.168.3.102/cgi-bin/mapserv? map=/var/www/html/mapserver/service/prdc- demo.map&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:2961&mode=scaleb ar&width=600&height=400&layers=cobounds,roads&SLD=http://192.168.3.102/maps erver/service/sld_line_width.xml" i am probably missing something simple any direction would be appreciated thnx From kgrootendorst at BAIRD.COM Fri Jun 24 12:01:30 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Fri, 24 Jun 2005 14:01:30 -0500 Subject: Scale dependent layers ignoring status property? Message-ID: I'm having the exact same problem mentioned below - does anyone know of a solution to this?? Kevin On Wed, 22 Sep 2004 14:45:39 -0600, sandnarrows wrote: >In my mapfile I have two layers that don't show up till after the users >zoom in a bit, ie I have set a maxscale and minscale. I am using the >HTML legend with the opt_flag of 14, so that the layers don't list in >the legend until they are within the appropriate scale range. Both >layers have a status of 'ON' in the map file. > >The problem I am having is that when you move into the appropriate scale >range the layer shows up with the status of 'OFF'. If I set the opt_flag >to 15 so that the layer is always visible in the legend, then it will >have the appropraite status of 'ON' and when you move into appropriate >scale range the data will display on the map. > >I want to use opt_flag 14 as I don't want the layer in the legend until >its also visible on the map, but I also want it to listen to the status >property in the MAP file, which in this case is 'ON'. I also tried >setting it to 'DEFAULT', no difference still starts out as off (template >file does handle the default status). > >Thoughts or suggestions? > >Ken From szekeres.tamas at FREEMAIL.HU Fri Jun 24 13:03:38 2005 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri, 24 Jun 2005 15:03:38 -0500 Subject: any alternative of savewebimage() ? Message-ID: Sean, You're right, this method available only with java, csharp, pearl and python by now. I think the same result can be achieved with passing empty filename to saveImage using PHP. Tamas On Fri, 24 Jun 2005 12:35:11 -0600, Sean Gillies wrote: >Tamas, > >As far as I know, the PHP mapscript module does not have >imageObj::getBytes. BTW, I'll respond to your C# mapscript patch very >soon. Thanks for submitting it. > >Sean > >On Jun 24, 2005, at 12:04 PM, Tamas Szekeres wrote: > >> Hi, >> >> You should try to use imageObj.getBytes (Mapserver 4.6) and write the >> bytes directly to the binary response stream. >> >> Tamas Szekeres >> >> >> >> >> On Fri, 24 Jun 2005 10:24:55 +0700, bino_oetomo > ONLINE.COM> wrote: >> >>> Dear All. >>> Is there any alternative for savewebimage() so that the graph is not >> drawed >>> to temporary file but directly to user-browser ? >>> >>> Regards >>> -bino- >> From racine_pierre at HOTMAIL.COM Sat Jun 25 13:15:16 2005 From: racine_pierre at HOTMAIL.COM (Pierre Racine) Date: Sat, 25 Jun 2005 15:15:16 -0500 Subject: Problem with SIZEITEM Message-ID: Hi, Anybody tried the SIZEITEM with Mapserver 4.6? If I publish the minimal map file with SIZEITEM based on an integer attribute, the size of the symbol doesn't change. Worse: if I add a LABEL definition, Mapserver crashes, publishing only half a jpeg. Here is my mapfile with the LABLE definition: MAP #IMAGETYPE JPEG EXTENT 189775 4716305 731662 5472414 SIZE 400 600 SHAPEPATH "data\shp" FONTSET "D:\ms4w\fonts\fonts.txt" SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 8 8 END END PROJECTION "init=epsg:102010" END LAYER # States polygon layer begins here NAME escale DATA escale STATUS DEFAULT TYPE POINT PROJECTION "init=epsg:102010" END LABELITEM "id" CLASS STYLE SYMBOL "circle" SIZEITEM "duration" COLOR 1 255 1 #SIZE 28 #MINSIZE 12 OUTLINECOLOR 0 0 0 END LABEL COLOR 155 135 0 TYPE TRUETYPE FONT arial SIZE 12 FORCE true POSITION uc END #LABEL END #CLASS END #LAYER END Pierre Racine From dps1 at UALBERTA.CA Sat Jun 25 21:02:11 2005 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Sat, 25 Jun 2005 22:02:11 -0600 Subject: Virtual connections (.ovf) and parameterized requests Message-ID: Hello folks, I have a connection to a SQL Server via DSN and an ovf file to pull some point data as a layer and was wondering if it is at all possible to use parameterized requests. A wiki on the mapserver webpage describes how to build an ovf but if the SrcLayer is a stored procedure, can one use a parameter for the stored procedure in the map file? The only option I have seen is FILTER, but that obviously doesn't submit a needed parameter for a stored procedure. I guess my question is of an OGR connection can pass a parameter to a stored procedure rather than just filtering an entire recordset. Another related question is if I can use a DSN-less connection to a SQL Server directly from a map file. Thanks for any ideas, David Shorthouse -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at GEO-IT.COM Sun Jun 26 00:08:59 2005 From: info at GEO-IT.COM (Geo-IT GmbH) Date: Sun, 26 Jun 2005 09:08:59 +0200 Subject: SWIGMapscript: glibc detected malloc memory corruption Message-ID: Dear experts, When trying to fetch a shapeObj after a queryByPoint using the shapeindex and tileindex from the resultCache in a Java mapscript program I get the following error terminating the whole VM: *** glibc detected *** malloc(): memory corruption: 0x08314ed0 *** ./runshapetest40.sh: line 13: 26946 Aborted java ShapeObjTest40 $mapfile $layername The program was: // Standard imports import java.io.*; import java.util.*; import java.text.*; import edu.umn.gis.mapscript.*; public class ShapeObjTest { String mapFile = null; String layerName = null; static { try { System.loadLibrary("mapscript"); System.out.println("Mapscript lib loaded"); } catch (UnsatisfiedLinkError e) { e.printStackTrace(); System.exit(1); } } public ShapeObjTest() { } protected static void log(String msg) { System.out.println(msg); } protected static void usage() { System.out.println("USAGE: ShapeObjTest "); } public static void main (String args[] ) { if (args == null || args.length < 2) { usage(); System.exit(1); } String mapFile = args[0]; String layerName = args[1]; try { log("Creating map"); mapObj map = new mapObj(mapFile); layerObj l = map.getLayerByName(layerName); l.open(); log("Fetching shapeObj shapeindex 1 tileindex -1"); shape = l.getFeature(1,-1); l.close(); log("Fetch successful"); } catch (Exception ie) { ie.printStackTrace(); System.exit(1); } } } The log shows: Mapscript lib loaded Creating map Fetching shapeObj shapeindex 1 tileindex -1 Then the error appears on the console. I use mapserver 4.6.0. This is the mapfile: (It's the one from Itasca demo, but only with layer airports) MAP # # Start of map file # NAME "DEMO" STATUS ON EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 SIZE 600 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 UNITS METERS # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION "proj=utm" "ellps=GRS80" "zone=15" "north" "no_defs" # OR: # # "init=epsg:26915" END # # Start of web interface definition (including WMS enabling metadata) # WEB MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/tmp" IMAGEURL "/tmp" HEADER "demo_header.html" FOOTER "demo_footer.html" TEMPLATE "demo.html" METADATA "WMS_TITLE" "UMN MapServer Itasca Demo" "WMS_ABSTRACT" "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." "WMS_ACCESSCONSTRAINTS" "none" "WMS_ONLINERESOURCE" "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" "WMS_SRS" "EPSG:26915" END END # # Start of reference map # REFERENCE STATUS ON IMAGE "graphics/reference.gif" SIZE 120 120 EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP STATUS ON SIZE 200 200 COLOR 255 0 0 STYLE HILITE END # # Start of legend # LEGEND STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # # Start of scalebar # SCALEBAR STATUS ON COLOR 0 102 102 OUTLINECOLOR 102 255 0 BACKGROUNDCOLOR 255 51 102 IMAGECOLOR 255 255 255 TRANSPARENT OFF UNITS MILES INTERVALS 1 SIZE 80 2 STYLE 1 INTERLACE ON LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 0 END END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END # # Start of layer definitions # LAYER NAME "airports" STATUS OFF DATA "airports" TYPE POINT TOLERANCE 5 HEADER "airports_header.html" FOOTER "airports_footer.html" TEMPLATE "ttt.html" METADATA "WMS_TITLE" "Airports" "WMS_ABSTRACT" "Airport runways for Itasca County." "WMS_SRS" "EPSG:26915" END CLASS NAME "Airports" SYMBOL "circle" COLOR 128 255 164 SIZE 7 TEMPLATE "airports.html" END END Any help would be greatly appreciated. Mit freundlichen Gruessen/Kind regards Andreas Paukner-Ruzicka (Geschaeftsfuehrer/Managing director) ********************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ********************************************************** From ldorileo at GMAIL.COM Sun Jun 26 02:01:10 2005 From: ldorileo at GMAIL.COM (Leandro Dorileo) Date: Sun, 26 Jun 2005 09:01:10 +0000 Subject: . Message-ID: . From dibblethewrecker at JIWE.ORG Sun Jun 26 07:31:13 2005 From: dibblethewrecker at JIWE.ORG (Philip Dillon-Thiselton) Date: Sun, 26 Jun 2005 15:31:13 +0100 Subject: error in make mapscript/tcl Message-ID: Hello, I am developing a GIS live CD for Arch Linux but I am having trouble making the tcl mapscript modules. Here is the output: [root] tcl: make gcc -pipe -c -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DHAVE_READDIR_R=1 -DHAVE_THREE_ARG_READDIR_R=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -fPIC \ -I/usr/include \ -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_WMS_SVR -I. -I/usr/include -I/usr/include -I/usr/include \ -DUSE_TCL_STUBS -DITCL_NAMESPACES -DItcl_Namespace=int -D"spaceId=spcid;Tcl_InitStubs(interp,\"8.1\",0)" \ mapscript_wrap.c gcc: long: No such file or directory mapscript_wrap.c: In function `imageObj_saveToString': mapscript_wrap.c:3078: warning: return makes pointer from integer without a cast make: *** [stublib] Error 1 Would be very grateful for any help as we would like to include mapserver workbench. Cheers Phil From Maarten.van.der.Hoeven at KNMI.NL Sun Jun 26 08:03:10 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Sun, 26 Jun 2005 17:03:10 +0200 Subject: Plot 'free' text on a map Message-ID: Hi list, using Mapserver 4.6.0, PHP Mapscript: is it possible to write text to a map? I.e., not connected to any shape,layer, whatsoever, but just something like plotting a text-string somehwere on the map, for example a title in the top of the map, and a copyright/datestamp at the bottom of the map. Is this possible? Thanks for all your previous help; most helpful! Regards, Maarten From fr-ms at TOURDE.ORG Sun Jun 26 07:38:28 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-1?q?Fran=E7ois_TOURDE?=) Date: Sun, 26 Jun 2005 16:38:28 +0200 Subject: [NEWBIE] Using Mapserver and PROJECTION Message-ID: Hi the list. I'm a newbie using mapserver, and in geodata. :( ... I've a probably simple problem using the image output: On my .MAP file, I have the following lines: # Mode latlong EXTENT 2.8830 42.683 7.5 43.950 # Geographic PROJECTION "init=epsg:4326" END UNITS DD All my layers have no PROJECTION infos. When I replace the above lines by: # mode Collignon EXTENT 205512.50 4889370.83 521106.75 5051672.48 PROJECTION "proj=collg" END UNITS METERS the image is ... blank. No coast lines, no features, etc... Could you point me the problem? Thanks in advance. From fwarmerdam at GMAIL.COM Sun Jun 26 08:48:57 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Sun, 26 Jun 2005 11:48:57 -0400 Subject: [NEWBIE] Using Mapserver and PROJECTION In-Reply-To: <87slz5yyhn.fsf@fermat.localhost> Message-ID: On 6/26/05, Fran?ois TOURDE wrote: > Hi the list. > > I'm a newbie using mapserver, and in geodata. :( ... I've a probably > simple problem using the image output: > > On my .MAP file, I have the following lines: > > # Mode latlong > EXTENT 2.8830 42.683 7.5 43.950 # Geographic > PROJECTION "init=epsg:4326" END > UNITS DD > > All my layers have no PROJECTION infos. > > When I replace the above lines by: > > # mode Collignon > EXTENT 205512.50 4889370.83 521106.75 5051672.48 > PROJECTION > "proj=collg" > END > UNITS METERS > > the image is ... blank. No coast lines, no features, etc... > > Could you point me the problem? Fran?ois, It could be a number of things, but your bounds do seem reasonable. I would suggest adding an explicit ellipse definition: PROJECTION "proj=collg" "ellps=WGS84" END Use normal debugging techniques. For instance, check your error log, try rendering with shp2img, as that can provide better feedback. Turn on debugging. etc. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fr-ms at TOURDE.ORG Sun Jun 26 09:09:48 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-1?q?Fran=E7ois_TOURDE?=) Date: Sun, 26 Jun 2005 18:09:48 +0200 Subject: [NEWBIE] Using Mapserver and PROJECTION In-Reply-To: <931f8ea905062608483a34a3cc@mail.gmail.com> (Frank Warmerdam's message of "Sun, 26 Jun 2005 11:48:57 -0400") Message-ID: Le 12960i?me jour apr?s Epoch, Frank Warmerdam ?crivait: > On 6/26/05, Fran?ois TOURDE wrote: >> Hi the list. >> >> I'm a newbie using mapserver, and in geodata. :( ... I've a probably >> simple problem using the image output: >> >> On my .MAP file, I have the following lines: >> >> # Mode latlong >> EXTENT 2.8830 42.683 7.5 43.950 # Geographic >> PROJECTION "init=epsg:4326" END >> UNITS DD >> >> All my layers have no PROJECTION infos. >> >> When I replace the above lines by: >> >> # mode Collignon >> EXTENT 205512.50 4889370.83 521106.75 5051672.48 >> PROJECTION >> "proj=collg" >> END >> UNITS METERS >> >> the image is ... blank. No coast lines, no features, etc... >> >> Could you point me the problem? > > Fran?ois, > > It could be a number of things, but your bounds do seem reasonable. > I would suggest adding an explicit ellipse definition: > > PROJECTION > "proj=collg" > "ellps=WGS84" > END I do the try... same blank image :( > Use normal debugging techniques. For instance, check > your error log No errors on apache log: [Sun Jun 26 18:06:35 2005].738511 msDrawMap(): Layer 1 (polb), 0.000s [Sun Jun 26 18:06:35 2005].739360 msDrawMap(): Layer 2 (coast), 0.001s [Sun Jun 26 18:06:35 2005].739597 msDrawMap(): Layer 3 (depth), 0.000s [Sun Jun 26 18:06:35 2005].739687 msDrawMap(): Drawing Label Cache, 0.000s [Sun Jun 26 18:06:35 2005].739715 msDrawMap() total time: 0.002s > try rendering with shp2img, as that can provide > better feedback. Probably, but it gives me a SEGFAULT on my Debian... I will try a strace... later :) > Turn on debugging. Already turned on. Many thanks for your response. From woodbri at SWOODBRIDGE.COM Sun Jun 26 11:54:49 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 26 Jun 2005 14:54:49 -0400 Subject: Plot 'free' text on a map In-Reply-To: <2EA11DE4C505014BA2A74175DECAE6BE04EAB9@BCSXTC.knmi.nl> Message-ID: Hoeven, Maarten van der wrote: > Hi list, > > using Mapserver 4.6.0, PHP Mapscript: is it possible to write text to a map? I.e., not connected to any shape,layer, whatsoever, but just something like plotting a text-string somehwere on the map, for example a title in the top of the map, and a copyright/datestamp at the bottom of the map. > > Is this possible? > > Thanks for all your previous help; most helpful! > Here is the layer I use, should work for any label in pixel x,y, you'll have to figure out how to place it in map x,y: LAYER NAME "copyright" STATUS DEFAULT TYPE POINT TRANSFORM OFF FEATURE POINTS 0 1 END END CLASS COLOR 0 0 0 TEXT "Copyright ? 2005, Stephen Woodbridge" LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION LR OFFSET 0 0 BUFFER 2 COLOR 0 0 0 BACKGROUNDCOLOR 254 254 225 FORCE TRUE END END END From lucamarle at GMAIL.COM Sun Jun 26 12:26:16 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Sun, 26 Jun 2005 21:26:16 +0200 Subject: [Pkg-grass-general] Uploaded qgis 0.6.99+0.7.0pre1-0.debian.unstable.1-1 (source i386) to debian-gis In-Reply-To: <8b50201050626122533ef1ce9@mail.gmail.com> Message-ID: qgsabout.uic.cpp: In constructor `QgsAbout::QgsAbout(QWidget*, const char*, bool, unsigned int)': qgsabout.uic.cpp:749: error: `Horizontal_Spacing2' undeclared (first use this function) qgsabout.uic.cpp:749: error: (Each undeclared identifier is reported only once for each function it appears in.) make[5]: *** [qgis-qgsabout.uic.o] Error 1 make[5]: Leaving directory `/home/luca/tmp/qgis-0.6.99+0.7.0pre1-0.debian.unstable.1/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/luca/tmp/qgis-0.6.99+0.7.0pre1-0.debian.unstable.1/src' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/luca/tmp/qgis-0.6.99+0.7.0pre1-0.debian.unstable.1/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/luca/tmp/qgis-0.6.99+0.7.0pre1-0.debian.unstable.1' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/luca/tmp/qgis-0.6.99+0.7.0pre1-0.debian.unstable.1' make: *** [build-stamp] Error 2 I got this problem compiling in my SID. I've already provided all dependencies I think but that sounds as another kind of problem. Any idea? -- luca marletta icq: 70590647 From andrea.edwards at NULC.AC.UK Sun Jun 26 12:45:48 2005 From: andrea.edwards at NULC.AC.UK (Andrea Edwards) Date: Sun, 26 Jun 2005 14:45:48 -0500 Subject: Can map server send feature data/vector data to the client? Message-ID: Hello I was wondering if it was possible in mapserver to send raw vector/feature data to the client's web browser? In the standard model for internet web mapping applications each pan/zoom operation sends a request to the server and a new map is redrawn. I was wondering if it was possible to cut down on some of the processing time by sending the vector data to the client and then processing the maps on the client side. I also thought that this might not be possible because of the sheer size of the vector data that you would have to send to the client. You would also have to make sure the vector data was removed from the client's machine as it would violate your licensing agreement for the map data if it was left on someone else's machine (well it would mine anyway). I was wondering what people's thoughts were on this issue. Also does the jbox javca applet process vector data on the client? Many thanks for your help andrea From Maarten.van.der.Hoeven at KNMI.NL Sun Jun 26 13:57:21 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Sun, 26 Jun 2005 22:57:21 +0200 Subject: Layer working in mapfile, not (fully) working within PHP Message-ID: Hi list, thanks for all your help; all suggestions are most useful! My problem is, when I use the layer-definition from the mapfile, the countries as well as the country names are displayed. However, when I dynamically build my layer in PHP (commenting out the whole 'country_name' layer-definition in the mapfile, of course), the countries are displayed okay, but the country names are *not* displayed at all. I do want to display the country names from the layer I defined in the PHP script. Any guru can see what's wrong? All the best, Maarten === mapfile === LAYER NAME country_name METADATA "RESULT_FIELDS" "CNTRY_NAME" END TYPE POLYGON STATUS ON DATA country_eca LABELITEM 'CNTRY_NAME' CLASSITEM 'CNTRY_NAME' CLASS NAME 'CNTRY_NAME' STYLE OUTLINECOLOR 0 0 0 COLOR 255 255 191 END LABEL POSTLABELCACHE TRUE MINFEATURESIZE 40 POSITION CC PARTIALS FALSE COLOR '#000080' SIZE GIANT END END END # layer === php script (part of it) === $layerObj1 = ms_newLayerObj($gpoMap); $layerObj1->set("name","country_name"); $layerObj1->set("type",MS_LAYER_POLYGON); $layerObj1->set("status",MS_ON); $layerObj1->set("data","country_eca"); $layerObj1->set("labelitem","cntry_name"); $layerObj1->set("classitem","cntry_name"); $layerObj1->setMetaData("result_fields","cntry_name"); $classObj1 = ms_newClassObj($layerObj1); $classObj1->set("name","cntry_name"); $styleObj1 = ms_newStyleObj($classObj1); $styleObj1->color->setRGB(255,255,191); $styleObj1->outlinecolor->setRGB(0,0,0); $classObj1->label->set("size",MS_GIANT); $classObj1->label->set("position",MS_CC); $classObj1->label->set("minfeaturesize",40); $classObj1->label->set("partials",MS_FALSE); $classObj1->label->color->setRGB(0,0,80); $layerObj1->draw($img); From woodbri at SWOODBRIDGE.COM Sun Jun 26 14:10:44 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 26 Jun 2005 17:10:44 -0400 Subject: Can map server send feature data/vector data to the client? In-Reply-To: Message-ID: Hello Andrea, In principal based on your description the answer is no; partly for the reasons you mentioned, ie: licensing is a potential issue, but more so for the volume of data. For example Tiger data for the US is about 18GB of vector data. Navteq data for the US and Canada is about 35GB and for Europe it is about 53 GB, Topozone has 20+ TB of imagery data online, etc. Also, just keeping track of what the client has and needs probably consumes more time than you save. There are 4 potential ways to do this for smaller data sets: 1) mapserver supports Flash swf files and it might be possible to send some vector data in the swf file. 2) mapserver supports SVG output (I think?) similar application to Flash 3) mapserver supports WFS which will send some data as GML 4) PDF output might also write vector data it the PDF document for better rendering and printing, especially if the document is scaled up to poster size. As you can see these are not really good examples of off loading computing to the client. All that said, mapserver is extremely efficient at doing as little work as possible to render a map, if it is set up and configured correctly. I work for Where2GetIt.com and we serve 100s of millions of maps annually from our production cluster and we have significant excess capacity. -Steve Andrea Edwards wrote: > Hello > > I was wondering if it was possible in mapserver to send raw vector/feature > data to the client's web browser? > > In the standard model for internet web mapping applications each pan/zoom > operation sends a request to the server and a new map is redrawn. I was > wondering if it was possible to cut down on some of the processing time by > sending the vector data to the client and then processing the maps on the > client side. > > I also thought that this might not be possible because of the sheer size of > the vector data that you would have to send to the client. You would also > have to make sure the vector data was removed from the client's machine as > it would violate your licensing agreement for the map data if it was left > on someone else's machine (well it would mine anyway). > > I was wondering what people's thoughts were on this issue. > > Also does the jbox javca applet process vector data on the client? > > Many thanks for your help > andrea > From Bonnie.Stewart at DLI.WA.GOV.AU Sun Jun 26 17:03:38 2005 From: Bonnie.Stewart at DLI.WA.GOV.AU (Bonnie Stewart) Date: Mon, 27 Jun 2005 08:03:38 +0800 Subject: WMS server - legend graphic/symbology Message-ID: Hi Kevin, In ArcMap, there's an option "Make newly added layers visible by default", under Tools -> Options -> General tab. I think this is why the layers are always on - if I remember correctly, it turns on the first 20 layers when you connect to a WMS. Try unchecking this option and see if that fixes the problem. Cheers, Bonnie __________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Information Access Division Department of Land Information 65 Brockway Road, FLOREAT WA 6014 Ph. (08) 9387 0342 | Fx. (08) 9383 7142 bonnie.stewart at dli.wa.gov.au www.dli.wa.gov.au ________________________________ From: UMN MapServer Users List on behalf of Kevin Grootendorst Sent: Fri 24/06/2005 11:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [Maybe SPAM] Re: [UMN_MAPSERVER-USERS] WMS server - legend graphic/symbology Bart, Thanks for your suggestion. I added NAME " " to the CLASS object and everything works as expected. Do you know why ALL the wms layers would be turned 'on' while viewing in ArcMap? I assumed that only the layers with STATUS ON would be visible initially. The log that ArcMap sends is as follows: "GET /cgi-bin/mapserv.exe?map=/web/maplab- 2.2/Pelee/Pelee.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:26917&BBOX=298978. 084774465,4606186.14109543,512740.303618177,4785860.76331283&WIDTH=972&HEIGH T=817&LAYERS=Municipalities_coarse,Cities&STYLES=&EXCEPTIONS=application/vnd .ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE HTTP/1.1" 200 53798 The 'cities' layer is set to Status OFF, but still draws when the service is first added to ArcMap. Kevin On Fri, 24 Jun 2005 16:48:29 +0200, Bart van den Eijnden wrote: >You always need to add a NAME to the CLASS which you want Mapserver to show in the legend. > >Not sure if this will get you through showing the legend in ArcMap though. Try and log the request that ArcMap is sending. > >Does Mapserver put a LegendURL in your WMS capabilities and does it work? I am assuming ArcMap will use that for input. > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Kevin Grootendorst 06/24/05 04:44pm >>> >Hi, >I have a map file which I'm setting up as a WMS server, so that I can view >my data in ArcMap 9. >I'm successful in viewing the WMS in ArcMap, however it does not contain a >graphic in the legend. In other words, the layers draw correctly (with >same colors as in the map file), but the legend does not indicate any >symbology. > >Any ideas how I can get the legend symbology to show? >Using MS 4.4 on win2000. > >Below is a snippet from my .map file: >(web definition:) >WEB > IMAGEPATH "C:/web/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "Pelee WMS" > "wms_onlineresource" "http://maps.baird.com/cgi-bin/mapserv.exe? >map=/web/maplab-2.2/Pelee/Pelee.map&" > "wms_srs" "EPSG:26917" > "wms_abstract" "Pelee WMS server" > "wms_style" "" > END > END # END OF WEB SECTION > >(layer definition): >LAYER > #NAME "Municipalities (coarse)" > NAME "Municipalities_coarse" > GROUP "BASE" > METADATA > "wms_title" "Municipalities" > "wms_srs" "EPSG:26917" > "wms_style" "" > "wms_group_title" "base" > END > STATUS on > DATA "./Municipalities" > TYPE POLYGON > UNITS METERS > TEMPLATE "ttt" > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > LABELITEM "NAME" > CLASS > LABEL > TYPE BITMAP > SIZE tiny > POSITION cc > OFFSET 0 0 > COLOR 100 100 100 > #SHADOWSIZE 1 1 > OUTLINECOLOR 255 255 255 > END > STYLE > SYMBOL 8 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 99 99 99 > SIZE 2 > END > END > END This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sc0rp10nau at YAHOO.COM.AU Sun Jun 26 20:08:53 2005 From: sc0rp10nau at YAHOO.COM.AU (a j) Date: Mon, 27 Jun 2005 13:08:53 +1000 Subject: Mapscript/Java Tomcat Message-ID: Hi all, I've been stuck with a problem for a couple of days now, and i desperately need any help that I can get. I've successfully got a map image with some dynamic points using a simple desktop app. Basically this small app statically loads the mapscript library, reads in a map file, adds a couple of points and save the result image to the disk. Now when I do this exact same thing as a Servlet, I just get the java.lang.UnsatisfiedLinkError: c:\mapserver\mapscript.dll: Can't find dependent libraries. I'm using Tomcat 5.5.9, Java 1.5, and MapServer 4.4 on a windows machine. I've set the CLASSPATH and PATH variables already. I've set the java.library.path to c:\mapserver but it fails to load the library (or its dependencies) properly. Here is the top part of the error: ==== start error ==== java.lang.UnsatisfiedLinkError: C:\mapserver\mapscript.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) ... ... ==== end error ==== This is what i do in the servlet: ==== start code ===== import javax.servlet.*; import javax.servlet.http.*; import edu.umn.gis.mapscript.*; public class MapServer extends HttpServlet { static { try { System.loadLibrary("mapscript"); System.out.println("Loaded the Mapscript library"); } catch (UnsatisfiedLinkError e) { e.printStackTrace(System.out); } } protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // do something with the mapObj, etc.. // mapObj map = new mapObj("path/to/map/file.map"); } } ==== end code ==== As mentioned before, any help with this would be great, and it is quite urgent, as my deadlines are approaching. tia. Ajay Send instant messages to your online friends http://au.messenger.yahoo.com From jkim at SCIENCES.SDSU.EDU Sun Jun 26 21:37:00 2005 From: jkim at SCIENCES.SDSU.EDU (John) Date: Sun, 26 Jun 2005 23:37:00 -0500 Subject: How to query for polygon attributes using PHPMapscript? Message-ID: Hi, I don't understand how a query works using PHP/Mapscript. I've read various reference manuals but they don't give me a conceptual overview, and I can't find a good example/tutorial either. I'd like the user to click on a polygon and get information (attributes) of that polygon. I think I know how it works *without* PHP: in the map file you define a template, and in the template file you use [DBASE item name] wherever you want to refer to the attribute of the selected polygon. For example, if the polygon has a "landuse" attribute, you can write,

The selected polygon's landuse is [landuse].

Right? Now, with PHP/Mapscript, you call the function queryByPoint(), which returns a success or failure value. How do you get the attributes of the polygon that was clicked? I'd love to see an example. Also, why do you have to a "mode" parameter to queryByPoint(), given that queryByPoint() is a method that belongs to a specific layer object? Isn't the query for that single layer? How can it be for multiple layers? Thanks. -John From jkim at SCIENCES.SDSU.EDU Sun Jun 26 22:29:14 2005 From: jkim at SCIENCES.SDSU.EDU (John) Date: Mon, 27 Jun 2005 00:29:14 -0500 Subject: How to query for polygon attributes using PHPMapscript? Message-ID: Doh! It must be Murphy's law for asking lists: I stumbled upon a PHP query example in the list archive soon after I submitted my question. It was in a post by Jerod Clabaugh, dated 11-Mar-2005, titled "MapScript queryByPoint index error". His logic is, essentially: if ( MS_SUCCESS == @$layer->queryByPoint( $point, MS_MULTIPLE, -1 ) ) { $layer->open(); for( $i = 0; $i < $layer->getNumResults(); $i++ ){ $shape = $layer->getShape(-1, $layer->getResult($i)->shapeindex ); // Do what I want with $shape->values; } $layer->close(); } One question: why use MS_MULTIPLE? Can queryByPoint() return multiple shapes? -John ----- Original Message ----- From: "John" Sent: Sunday, June 26, 2005 9:37 PM Subject: How to query for polygon attributes using PHPMapscript? > Hi, > > I don't understand how a query works using PHP/Mapscript. > ... > > -John From jkim at SCIENCES.SDSU.EDU Mon Jun 27 00:20:24 2005 From: jkim at SCIENCES.SDSU.EDU (John) Date: Mon, 27 Jun 2005 02:20:24 -0500 Subject: No matching record(s) found -- What now? Message-ID: My queryByPoint() is saying "No matching record(s) found", when it should return a shape. The layer's status is ON and I've verified that the point that I pass it is located within the extent of the map. What else can I check? My PHP code: $layer = $map->getLayerByName("vegetation"); $layer->queryByPoint($mapPoint, MS_MULTIPLE, -1 ); And my layer definition: LAYER NAME vegetation DATA veg.shp STATUS ON TYPE POLYGON CLASS COLOR 0 255 0 OUTLINECOLOR 32 32 32 END END Do I need to have a template file? What should be in the template file? -John From BEN at SYNCERA-ITSOLUTIONS.NL Mon Jun 27 00:24:26 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 27 Jun 2005 09:24:26 +0200 Subject: No matching record(s) found -- What now? Message-ID: Add TEMPLATE "blank.html" to your layer otherwise it is not queryable. Blank.html does not have to exist on the filesystem. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> John 06/27/05 09:20am >>> My queryByPoint() is saying "No matching record(s) found", when it should return a shape. The layer's status is ON and I've verified that the point that I pass it is located within the extent of the map. What else can I check? My PHP code: $layer = $map->getLayerByName("vegetation"); $layer->queryByPoint($mapPoint, MS_MULTIPLE, -1 ); And my layer definition: LAYER NAME vegetation DATA veg.shp STATUS ON TYPE POLYGON CLASS COLOR 0 255 0 OUTLINECOLOR 32 32 32 END END Do I need to have a template file? What should be in the template file? -John From mapserver at HOTMAIL.COM Mon Jun 27 00:26:05 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Mon, 27 Jun 2005 02:26:05 -0500 Subject: Lik in a map Message-ID: I created my own map. Now I need to insert a hyperlink in it. Someoen told me that I only had to insert TEMPLATE "http://...." in the LAYER. I tried it but it doesn't run. My .map file is: MAP IMAGETYPE PNG EXTENT 10.444874 -11.210762 11.992263 -8.968610 SIZE 282 409 SHAPEPATH "data" IMAGECOLOR 255 180 0 FONTSET "fonts/fonts.list" #PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # MODIS raster layer begins here NAME modis DATA "raster/prova.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 127 127 127 #Color que ha de ser transparent PROJECTION "init=epsg:4326" END END # MODIS raster layer ends here LAYER # Capa rectangles GROUP grup NAME rectangles DATA rectangle STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASSITEM "CAMP" CLASS EXPRESSION 'p' COLOR 255 204 102 END CLASS EXPRESSION 'r' COLOR 0 0 0 END CLASS EXPRESSION 't' COLOR 200 10 25 END END # Fi capa rectangles LAYER # States polygon layer begins here GROUP grup NAME noms DATA rectangle STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASSITEM "CAMP" LABELITEM "NOM" CLASS EXPRESSION 'r' LABEL COLOR 255 255 255 FONT arial-bold SIZE large ANTIALIAS TRUE POSITION CC PARTIALS FALSE MINDISTANCE 100 BUFFER 15 END # end of label END CLASS EXPRESSION 't' LABEL COLOR 0 0 0 FONT verdana SIZE large ANTIALIAS TRUE POSITION CC PARTIALS FALSE MINDISTANCE 100 BUFFER 15 END # end of label END END # States polygon layer ends here LAYER NAME simbols GROUP grup STATUS DEFAULT DATA rectangle TYPE ANNOTATION TEMPLATE "http://www.nusvirtual.com" <----- CODE INSERTED ***** LABELITEM "SIMB" CLASSITEM "C" CLASS EXPRESSION "3" STYLE COLOR 0 0 0 # dummy color SYMBOL 'symbols/prova.gif' END LABEL MINFEATURESIZE 20 MINDISTANCE 50 POSITION CC SIZE TINY COLOR 255 255 255 END END PROJECTION "init=epsg:4326" END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file From umberto.nicoletti at GMAIL.COM Mon Jun 27 00:47:36 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 27 Jun 2005 09:47:36 +0200 Subject: SWIGMapscript: glibc detected malloc memory corruption In-Reply-To: <34548.84.150.20.93.1119769739.squirrel@84.150.20.93> Message-ID: What distro are you using (this appears to be a detail too often forgotten) ? See if you have a MALLOC_CHECK_ env variable set and then read malloc's man page. Regards, Umberto On 6/26/05, Geo-IT GmbH wrote: > Dear experts, > When trying to fetch a shapeObj after a queryByPoint using the shapeindex and > tileindex from the resultCache in a Java mapscript program I get the following > error terminating the whole VM: > > *** glibc detected *** malloc(): memory corruption: 0x08314ed0 *** > ./runshapetest40.sh: line 13: 26946 Aborted java ShapeObjTest40 $mapfile > $layername > > The program was: > > // Standard imports > import java.io.*; > import java.util.*; > import java.text.*; > import edu.umn.gis.mapscript.*; > > public class ShapeObjTest { > > String mapFile = null; > String layerName = null; > > > static { > try { > System.loadLibrary("mapscript"); > System.out.println("Mapscript lib loaded"); > } catch (UnsatisfiedLinkError e) { > e.printStackTrace(); > System.exit(1); > } > } > > public ShapeObjTest() { > } > > > protected static void log(String msg) { > System.out.println(msg); > } > protected static void usage() { > System.out.println("USAGE: ShapeObjTest "); > } > > public static void main (String args[] ) { > if (args == null || args.length < 2) { > usage(); > System.exit(1); > } > String mapFile = args[0]; > String layerName = args[1]; > try { > log("Creating map"); > mapObj map = new mapObj(mapFile); > layerObj l = map.getLayerByName(layerName); > l.open(); > log("Fetching shapeObj shapeindex 1 tileindex -1"); > shape = l.getFeature(1,-1); > l.close(); > log("Fetch successful"); > } catch (Exception ie) { > ie.printStackTrace(); > System.exit(1); > } > } > } > > The log shows: > Mapscript lib loaded > Creating map > Fetching shapeObj shapeindex 1 tileindex -1 > > Then the error appears on the console. > > I use mapserver 4.6.0. > > This is the mapfile: (It's the one from Itasca demo, but only with layer > airports) > MAP > # > # Start of map file > # > NAME "DEMO" > STATUS ON > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > SIZE 600 600 > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > UNITS METERS > # you may need to change this to match your MapServer build > #IMAGETYPE PNG > # > # Projection definition, consult the PROJ.4 documentation for parameter > discussion > # > PROJECTION > "proj=utm" > "ellps=GRS80" > "zone=15" > "north" > "no_defs" > > # OR: > # > # "init=epsg:26915" > END > # > # Start of web interface definition (including WMS enabling metadata) > # > WEB > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "/tmp" > IMAGEURL "/tmp" > HEADER "demo_header.html" > FOOTER "demo_footer.html" > TEMPLATE "demo.html" > METADATA > "WMS_TITLE" "UMN MapServer Itasca Demo" > "WMS_ABSTRACT" "This is the UMN MapServer demonstration application > for Itasca County located in north central Minnesota." > "WMS_ACCESSCONSTRAINTS" "none" > "WMS_ONLINERESOURCE" > "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" > "WMS_SRS" "EPSG:26915" > END > END > # > # Start of reference map > # > REFERENCE > STATUS ON > IMAGE "graphics/reference.gif" > SIZE 120 120 > EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > QUERYMAP > STATUS ON > SIZE 200 200 > COLOR 255 0 0 > STYLE HILITE > END > # > # Start of legend > # > LEGEND > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # > # Start of scalebar > # > SCALEBAR > STATUS ON > COLOR 0 102 102 > OUTLINECOLOR 102 255 0 > BACKGROUNDCOLOR 255 51 102 > IMAGECOLOR 255 255 255 > TRANSPARENT OFF > UNITS MILES > INTERVALS 1 > SIZE 80 2 > STYLE 1 > INTERLACE ON > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 0 > END > END > # > # Start of symbol definitions (we're only using a few) > # > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > # > # Start of layer definitions > # > LAYER > NAME "airports" > STATUS OFF > DATA "airports" > TYPE POINT > TOLERANCE 5 > HEADER "airports_header.html" > FOOTER "airports_footer.html" > TEMPLATE "ttt.html" > METADATA > "WMS_TITLE" "Airports" > "WMS_ABSTRACT" "Airport runways for Itasca County." > "WMS_SRS" "EPSG:26915" > END > CLASS > NAME "Airports" > SYMBOL "circle" > COLOR 128 255 164 > SIZE 7 > TEMPLATE "airports.html" > END > END > > > > Any help would be greatly appreciated. > > Mit freundlichen Gruessen/Kind regards > Andreas Paukner-Ruzicka > (Geschaeftsfuehrer/Managing director) > > ********************************************************** > Geo-IT GmbH - Geoinformatik, IT-Services > Guggenberg 3, D-82380 Peissenberg > Tel: 08803-498372, Fax: 08803-498373 > eMail: info at geo-it.com - Homepage: http://www.geo-it.com > ********************************************************** > From umberto.nicoletti at GMAIL.COM Mon Jun 27 00:54:48 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 27 Jun 2005 09:54:48 +0200 Subject: Mapscript/Java Tomcat In-Reply-To: <20050627030853.15273.qmail@web33607.mail.mud.yahoo.com> Message-ID: Java cannot load the dlls that libmapscript.ddl depends on. Make sure you have all the directory containing them in PATH (or copy them in system32). Did you build mapserver by yourself? Regards, Umberto On 6/27/05, a j wrote: > Hi all, > > I've been stuck with a problem for a couple of days > now, and i desperately need any help that I can get. > I've successfully got a map image with some dynamic > points using a simple desktop app. Basically this > small app statically loads the mapscript library, > reads in a map file, adds a couple of points and save > the result image to the disk. > > Now when I do this exact same thing as a Servlet, I > just get the java.lang.UnsatisfiedLinkError: > c:\mapserver\mapscript.dll: Can't find dependent > libraries. > > I'm using Tomcat 5.5.9, Java 1.5, and MapServer 4.4 on > a windows machine. I've set the CLASSPATH and PATH > variables already. I've set the java.library.path to > c:\mapserver but it fails to load the library (or its > dependencies) properly. Here is the top part of the > error: > > ==== start error ==== > java.lang.UnsatisfiedLinkError: > C:\mapserver\mapscript.dll: Can't find dependent > libraries > at java.lang.ClassLoader$NativeLibrary.load(Native > Method) > at java.lang.ClassLoader.loadLibrary0(Unknown Source) > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > ... > ... > > ==== end error ==== > > This is what i do in the servlet: > > ==== start code ===== > import javax.servlet.*; > import javax.servlet.http.*; > import edu.umn.gis.mapscript.*; > > public class MapServer extends HttpServlet { > static > { > try > { > System.loadLibrary("mapscript"); > System.out.println("Loaded the Mapscript library"); > } > catch (UnsatisfiedLinkError e) > { > e.printStackTrace(System.out); > } > } > protected void processRequest(HttpServletRequest > request, HttpServletResponse response) > throws ServletException, IOException { > > // do something with the mapObj, etc.. > // mapObj map = new mapObj("path/to/map/file.map"); > } > } > ==== end code ==== > > As mentioned before, any help with this would be > great, and it is quite urgent, as my deadlines are > approaching. > > tia. > Ajay > > > Send instant messages to your online friends http://au.messenger.yahoo.com > From umberto.nicoletti at GMAIL.COM Mon Jun 27 01:45:23 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 27 Jun 2005 10:45:23 +0200 Subject: SWIGMapscript: glibc detected malloc memory corruption In-Reply-To: <43576.62.153.238.74.1119861040.squirrel@62.153.238.74> Message-ID: Next time please reply to the list too (the mailin list admin could setup the list software so that it rewrites the reply-to field and make the list work like all other lists I've subscribed to). Comments inline. On 6/27/05, Geo-IT GmbH wrote: > Hi Umberto, > Thanks for your reply. > I am using SuSE 9.3 i686 (32 Bit). > After some additional tests I found that among others it has something to do > with the data and the projection of the data. Therefore I meanwhile managed to > get the testprogram running (the one attached in my mail) but it is still > falling over when trying to do the same thing from within a servlet. What configure options did you use? In particular have you enabled the thread locks with use-threads? Notice: since 4.4.something it is not necessary to load the library anymore as that is done in the mapscript.jar. Regards, Umberto > That is > not my first Java Servlet program using mapscript functions, so I could claim > to be no novice to java mapscript. But up to and including mapserver version > 4.0 I used the processTemplate, and processQueryTemplate methods to generate > result HTML pages but this is no longer working since 4.2. (I reported this > bug, but it seems to be more complex than expected to solve this). Therefore > it's the first time to fetch the results of a query one after one and filling > a template manually. > > I'll try the MALLOC_CHECK_ variable and read through the malloc man page. > > Mit freundlichen Gruessen/Kind regards > Andreas Paukner-Ruzicka > (Geschaeftsfuehrer/Managing director) > > ********************************************************** > Geo-IT GmbH - Geoinformatik, IT-Services > Guggenberg 3, D-82380 Peissenberg > Tel: 08803-498372, Fax: 08803-498373 > eMail: info at geo-it.com - Homepage: http://www.geo-it.com > ********************************************************** > > > On Mon, June 27, 2005 9:47, Umberto Nicoletti said: > > What distro are you using (this appears to be a detail too often forgotten) ? > > > > See if you have a MALLOC_CHECK_ env variable set and then read > > malloc's man page. > > > > Regards, > > Umberto > > > > On 6/26/05, Geo-IT GmbH wrote: > >> Dear experts, > >> When trying to fetch a shapeObj after a queryByPoint using the shapeindex > >> and > >> tileindex from the resultCache in a Java mapscript program I get the > >> following > >> error terminating the whole VM: > >> > >> *** glibc detected *** malloc(): memory corruption: 0x08314ed0 *** > >> ./runshapetest40.sh: line 13: 26946 Aborted java ShapeObjTest40 $mapfile > >> $layername > >> > >> The program was: > >> > >> // Standard imports > >> import java.io.*; > >> import java.util.*; > >> import java.text.*; > >> import edu.umn.gis.mapscript.*; > >> > >> public class ShapeObjTest { > >> > >> String mapFile = null; > >> String layerName = null; > >> > >> > >> static { > >> try { > >> System.loadLibrary("mapscript"); > >> System.out.println("Mapscript lib loaded"); > >> } catch (UnsatisfiedLinkError e) { > >> e.printStackTrace(); > >> System.exit(1); > >> } > >> } > >> > >> public ShapeObjTest() { > >> } > >> > >> > >> protected static void log(String msg) { > >> System.out.println(msg); > >> } > >> protected static void usage() { > >> System.out.println("USAGE: ShapeObjTest > >> "); > >> } > >> > >> public static void main (String args[] ) { > >> if (args == null || args.length < 2) { > >> usage(); > >> System.exit(1); > >> } > >> String mapFile = args[0]; > >> String layerName = args[1]; > >> try { > >> log("Creating map"); > >> mapObj map = new mapObj(mapFile); > >> layerObj l = map.getLayerByName(layerName); > >> l.open(); > >> log("Fetching shapeObj shapeindex 1 tileindex -1"); > >> shape = l.getFeature(1,-1); > >> l.close(); > >> log("Fetch successful"); > >> } catch (Exception ie) { > >> ie.printStackTrace(); > >> System.exit(1); > >> } > >> } > >> } > >> > >> The log shows: > >> Mapscript lib loaded > >> Creating map > >> Fetching shapeObj shapeindex 1 tileindex -1 > >> > >> Then the error appears on the console. > >> > >> I use mapserver 4.6.0. > >> > >> This is the mapfile: (It's the one from Itasca demo, but only with layer > >> airports) > >> MAP > >> # > >> # Start of map file > >> # > >> NAME "DEMO" > >> STATUS ON > >> EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > >> SIZE 600 600 > >> SHAPEPATH "data" > >> IMAGECOLOR 255 255 255 > >> UNITS METERS > >> # you may need to change this to match your MapServer build > >> #IMAGETYPE PNG > >> # > >> # Projection definition, consult the PROJ.4 documentation for parameter > >> discussion > >> # > >> PROJECTION > >> "proj=utm" > >> "ellps=GRS80" > >> "zone=15" > >> "north" > >> "no_defs" > >> > >> # OR: > >> # > >> # "init=epsg:26915" > >> END > >> # > >> # Start of web interface definition (including WMS enabling metadata) > >> # > >> WEB > >> MINSCALE 1000 > >> MAXSCALE 1550000 > >> IMAGEPATH "/tmp" > >> IMAGEURL "/tmp" > >> HEADER "demo_header.html" > >> FOOTER "demo_footer.html" > >> TEMPLATE "demo.html" > >> METADATA > >> "WMS_TITLE" "UMN MapServer Itasca Demo" > >> "WMS_ABSTRACT" "This is the UMN MapServer demonstration application > >> for Itasca County located in north central Minnesota." > >> "WMS_ACCESSCONSTRAINTS" "none" > >> "WMS_ONLINERESOURCE" > >> "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" > >> "WMS_SRS" "EPSG:26915" > >> END > >> END > >> # > >> # Start of reference map > >> # > >> REFERENCE > >> STATUS ON > >> IMAGE "graphics/reference.gif" > >> SIZE 120 120 > >> EXTENT 393234.393701263 5205405.16440722 495769.579718949 > >> 5307959.02579127 > >> COLOR -1 -1 -1 > >> OUTLINECOLOR 255 0 0 > >> END > >> QUERYMAP > >> STATUS ON > >> SIZE 200 200 > >> COLOR 255 0 0 > >> STYLE HILITE > >> END > >> # > >> # Start of legend > >> # > >> LEGEND > >> STATUS ON > >> KEYSIZE 18 12 > >> LABEL > >> TYPE BITMAP > >> SIZE MEDIUM > >> COLOR 0 0 89 > >> END > >> END > >> # > >> # Start of scalebar > >> # > >> SCALEBAR > >> STATUS ON > >> COLOR 0 102 102 > >> OUTLINECOLOR 102 255 0 > >> BACKGROUNDCOLOR 255 51 102 > >> IMAGECOLOR 255 255 255 > >> TRANSPARENT OFF > >> UNITS MILES > >> INTERVALS 1 > >> SIZE 80 2 > >> STYLE 1 > >> INTERLACE ON > >> LABEL > >> TYPE BITMAP > >> SIZE MEDIUM > >> COLOR 0 0 0 > >> END > >> END > >> # > >> # Start of symbol definitions (we're only using a few) > >> # > >> SYMBOL > >> NAME "circle" > >> TYPE ELLIPSE > >> FILLED TRUE > >> POINTS > >> 1 1 > >> END > >> END > >> # > >> # Start of layer definitions > >> # > >> LAYER > >> NAME "airports" > >> STATUS OFF > >> DATA "airports" > >> TYPE POINT > >> TOLERANCE 5 > >> HEADER "airports_header.html" > >> FOOTER "airports_footer.html" > >> TEMPLATE "ttt.html" > >> METADATA > >> "WMS_TITLE" "Airports" > >> "WMS_ABSTRACT" "Airport runways for Itasca County." > >> "WMS_SRS" "EPSG:26915" > >> END > >> CLASS > >> NAME "Airports" > >> SYMBOL "circle" > >> COLOR 128 255 164 > >> SIZE 7 > >> TEMPLATE "airports.html" > >> END > >> END > >> > >> > >> > >> Any help would be greatly appreciated. > >> > >> Mit freundlichen Gruessen/Kind regards > >> Andreas Paukner-Ruzicka > >> (Geschaeftsfuehrer/Managing director) > >> > >> ********************************************************** > >> Geo-IT GmbH - Geoinformatik, IT-Services > >> Guggenberg 3, D-82380 Peissenberg > >> Tel: 08803-498372, Fax: 08803-498373 > >> eMail: info at geo-it.com - Homepage: http://www.geo-it.com > >> ********************************************************** > >> > > > > > From piero.cavalieri at HEIDI.IT Mon Jun 27 02:04:39 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Mon, 27 Jun 2005 04:04:39 -0500 Subject: Switch between HTML and Image Legend in cgi mode Message-ID: Hi all, Mapserver let you change map file parameters via url. I was wandering if there is a way to delete dinamically a parameter, when in cgi mode. In partucular, I would like to delete the TEMPLATE parameter from the LEGEND obj, so an image legend is returned (most convenient to use in pdf generation, but in browser interface I want HTML legend...). Thanks Piero From info at GEO-IT.COM Mon Jun 27 02:22:05 2005 From: info at GEO-IT.COM (Geo-IT GmbH) Date: Mon, 27 Jun 2005 11:22:05 +0200 Subject: SWIGMapscript: glibc detected malloc memory corruption In-Reply-To: <75b4b93e05062701454fb027b@mail.gmail.com> Message-ID: Hi Umberto, Sorry, forgot to reply to the list, this time I remember ;-) This was my configure String for mapserver 4.6.0: ./configure --with-tiff=/usr/local/mslibs --with-jpeg=/usr/local/mslibs --with-png --with-proj=/usr/local/mslibs --with-wmsclient --with-postgis=/usr/local/pgsql/bin/pg_config --with-php=../../php-4.3.8 --with-python --with-freetype --with-gd=/usr/local/mslibs --with-tcl --with-threads=-lpthread --with-wfs --with-wfsclient --with-wcs --with-gdal=/usr/local/mslibs/bin/gdal-config --with-ogr=/usr/local/mslibs/bin/gdal-config --enable-debug --with-httpd=/usr/sbin/httpd2-prefork --with-oraclespatial=/opt/oracle/product/9.2.0 --with-geos=/usr/local/mslibs/bin/geos-config Thanks for the tip that library load is done by mapscript.jar. Mit freundlichen Gruessen/Kind regards Andreas Paukner-Ruzicka (Geschaeftsfuehrer/Managing director) ********************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ********************************************************** On Mon, June 27, 2005 10:45, Umberto Nicoletti said: > Next time please reply to the list too (the mailin list admin could > setup the list software so that it rewrites the reply-to field and > make the list work like all other lists I've subscribed to). > > Comments inline. > > On 6/27/05, Geo-IT GmbH wrote: >> Hi Umberto, >> Thanks for your reply. >> I am using SuSE 9.3 i686 (32 Bit). >> After some additional tests I found that among others it has something to do >> with the data and the projection of the data. Therefore I meanwhile managed >> to >> get the testprogram running (the one attached in my mail) but it is still >> falling over when trying to do the same thing from within a servlet. > > What configure options did you use? > In particular have you enabled the thread locks with use-threads? > > Notice: since 4.4.something it is not necessary to load the library > anymore as that is done in the mapscript.jar. > > Regards, > Umberto > >> That is >> not my first Java Servlet program using mapscript functions, so I could >> claim >> to be no novice to java mapscript. But up to and including mapserver version >> 4.0 I used the processTemplate, and processQueryTemplate methods to generate >> result HTML pages but this is no longer working since 4.2. (I reported this >> bug, but it seems to be more complex than expected to solve this). Therefore >> it's the first time to fetch the results of a query one after one and >> filling >> a template manually. >> >> I'll try the MALLOC_CHECK_ variable and read through the malloc man page. >> >> Mit freundlichen Gruessen/Kind regards >> Andreas Paukner-Ruzicka >> (Geschaeftsfuehrer/Managing director) >> >> ********************************************************** >> Geo-IT GmbH - Geoinformatik, IT-Services >> Guggenberg 3, D-82380 Peissenberg >> Tel: 08803-498372, Fax: 08803-498373 >> eMail: info at geo-it.com - Homepage: http://www.geo-it.com >> ********************************************************** >> >> >> On Mon, June 27, 2005 9:47, Umberto Nicoletti said: >> > What distro are you using (this appears to be a detail too often >> forgotten) ? >> > >> > See if you have a MALLOC_CHECK_ env variable set and then read >> > malloc's man page. >> > >> > Regards, >> > Umberto >> > >> > On 6/26/05, Geo-IT GmbH wrote: >> >> Dear experts, >> >> When trying to fetch a shapeObj after a queryByPoint using the shapeindex >> >> and >> >> tileindex from the resultCache in a Java mapscript program I get the >> >> following >> >> error terminating the whole VM: >> >> >> >> *** glibc detected *** malloc(): memory corruption: 0x08314ed0 *** >> >> ./runshapetest40.sh: line 13: 26946 Aborted java ShapeObjTest40 $mapfile >> >> $layername >> >> >> >> The program was: >> >> >> >> // Standard imports >> >> import java.io.*; >> >> import java.util.*; >> >> import java.text.*; >> >> import edu.umn.gis.mapscript.*; >> >> >> >> public class ShapeObjTest { >> >> >> >> String mapFile = null; >> >> String layerName = null; >> >> >> >> >> >> static { >> >> try { >> >> System.loadLibrary("mapscript"); >> >> System.out.println("Mapscript lib loaded"); >> >> } catch (UnsatisfiedLinkError e) { >> >> e.printStackTrace(); >> >> System.exit(1); >> >> } >> >> } >> >> >> >> public ShapeObjTest() { >> >> } >> >> >> >> >> >> protected static void log(String msg) { >> >> System.out.println(msg); >> >> } >> >> protected static void usage() { >> >> System.out.println("USAGE: ShapeObjTest >> >> "); >> >> } >> >> >> >> public static void main (String args[] ) { >> >> if (args == null || args.length < 2) { >> >> usage(); >> >> System.exit(1); >> >> } >> >> String mapFile = args[0]; >> >> String layerName = args[1]; >> >> try { >> >> log("Creating map"); >> >> mapObj map = new mapObj(mapFile); >> >> layerObj l = map.getLayerByName(layerName); >> >> l.open(); >> >> log("Fetching shapeObj shapeindex 1 tileindex -1"); >> >> shape = l.getFeature(1,-1); >> >> l.close(); >> >> log("Fetch successful"); >> >> } catch (Exception ie) { >> >> ie.printStackTrace(); >> >> System.exit(1); >> >> } >> >> } >> >> } >> >> >> >> The log shows: >> >> Mapscript lib loaded >> >> Creating map >> >> Fetching shapeObj shapeindex 1 tileindex -1 >> >> >> >> Then the error appears on the console. >> >> >> >> I use mapserver 4.6.0. >> >> >> >> This is the mapfile: (It's the one from Itasca demo, but only with layer >> >> airports) >> >> MAP >> >> # >> >> # Start of map file >> >> # >> >> NAME "DEMO" >> >> STATUS ON >> >> EXTENT 388107.634400379 5203120.88405952 500896.339019834 >> 5310243.30613897 >> >> SIZE 600 600 >> >> SHAPEPATH "data" >> >> IMAGECOLOR 255 255 255 >> >> UNITS METERS >> >> # you may need to change this to match your MapServer build >> >> #IMAGETYPE PNG >> >> # >> >> # Projection definition, consult the PROJ.4 documentation for parameter >> >> discussion >> >> # >> >> PROJECTION >> >> "proj=utm" >> >> "ellps=GRS80" >> >> "zone=15" >> >> "north" >> >> "no_defs" >> >> >> >> # OR: >> >> # >> >> # "init=epsg:26915" >> >> END >> >> # >> >> # Start of web interface definition (including WMS enabling metadata) >> >> # >> >> WEB >> >> MINSCALE 1000 >> >> MAXSCALE 1550000 >> >> IMAGEPATH "/tmp" >> >> IMAGEURL "/tmp" >> >> HEADER "demo_header.html" >> >> FOOTER "demo_footer.html" >> >> TEMPLATE "demo.html" >> >> METADATA >> >> "WMS_TITLE" "UMN MapServer Itasca Demo" >> >> "WMS_ABSTRACT" "This is the UMN MapServer demonstration >> application >> >> for Itasca County located in north central Minnesota." >> >> "WMS_ACCESSCONSTRAINTS" "none" >> >> "WMS_ONLINERESOURCE" >> >> "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" >> >> "WMS_SRS" "EPSG:26915" >> >> END >> >> END >> >> # >> >> # Start of reference map >> >> # >> >> REFERENCE >> >> STATUS ON >> >> IMAGE "graphics/reference.gif" >> >> SIZE 120 120 >> >> EXTENT 393234.393701263 5205405.16440722 495769.579718949 >> >> 5307959.02579127 >> >> COLOR -1 -1 -1 >> >> OUTLINECOLOR 255 0 0 >> >> END >> >> QUERYMAP >> >> STATUS ON >> >> SIZE 200 200 >> >> COLOR 255 0 0 >> >> STYLE HILITE >> >> END >> >> # >> >> # Start of legend >> >> # >> >> LEGEND >> >> STATUS ON >> >> KEYSIZE 18 12 >> >> LABEL >> >> TYPE BITMAP >> >> SIZE MEDIUM >> >> COLOR 0 0 89 >> >> END >> >> END >> >> # >> >> # Start of scalebar >> >> # >> >> SCALEBAR >> >> STATUS ON >> >> COLOR 0 102 102 >> >> OUTLINECOLOR 102 255 0 >> >> BACKGROUNDCOLOR 255 51 102 >> >> IMAGECOLOR 255 255 255 >> >> TRANSPARENT OFF >> >> UNITS MILES >> >> INTERVALS 1 >> >> SIZE 80 2 >> >> STYLE 1 >> >> INTERLACE ON >> >> LABEL >> >> TYPE BITMAP >> >> SIZE MEDIUM >> >> COLOR 0 0 0 >> >> END >> >> END >> >> # >> >> # Start of symbol definitions (we're only using a few) >> >> # >> >> SYMBOL >> >> NAME "circle" >> >> TYPE ELLIPSE >> >> FILLED TRUE >> >> POINTS >> >> 1 1 >> >> END >> >> END >> >> # >> >> # Start of layer definitions >> >> # >> >> LAYER >> >> NAME "airports" >> >> STATUS OFF >> >> DATA "airports" >> >> TYPE POINT >> >> TOLERANCE 5 >> >> HEADER "airports_header.html" >> >> FOOTER "airports_footer.html" >> >> TEMPLATE "ttt.html" >> >> METADATA >> >> "WMS_TITLE" "Airports" >> >> "WMS_ABSTRACT" "Airport runways for Itasca County." >> >> "WMS_SRS" "EPSG:26915" >> >> END >> >> CLASS >> >> NAME "Airports" >> >> SYMBOL "circle" >> >> COLOR 128 255 164 >> >> SIZE 7 >> >> TEMPLATE "airports.html" >> >> END >> >> END >> >> >> >> >> >> >> >> Any help would be greatly appreciated. >> >> >> >> Mit freundlichen Gruessen/Kind regards >> >> Andreas Paukner-Ruzicka >> >> (Geschaeftsfuehrer/Managing director) >> >> >> >> ********************************************************** >> >> Geo-IT GmbH - Geoinformatik, IT-Services >> >> Guggenberg 3, D-82380 Peissenberg >> >> Tel: 08803-498372, Fax: 08803-498373 >> >> eMail: info at geo-it.com - Homepage: http://www.geo-it.com >> >> ********************************************************** >> >> >> > >> >> >> > From umberto.nicoletti at GMAIL.COM Mon Jun 27 02:32:32 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 27 Jun 2005 11:32:32 +0200 Subject: SWIGMapscript: glibc detected malloc memory corruption In-Reply-To: <45452.62.153.238.74.1119864125.squirrel@62.153.238.74> Message-ID: On 6/27/05, Geo-IT GmbH wrote: > Hi Umberto, > Sorry, forgot to reply to the list, this time I remember ;-) > > This was my configure String for mapserver 4.6.0: > ./configure --with-tiff=/usr/local/mslibs --with-jpeg=/usr/local/mslibs > --with-png --with-proj=/usr/local/mslibs --with-wmsclient > --with-postgis=/usr/local/pgsql/bin/pg_config --with-php=../../php-4.3.8 > --with-python --with-freetype --with-gd=/usr/local/mslibs --with-tcl > --with-threads=-lpthread --with-wfs --with-wfsclient --with-wcs > --with-gdal=/usr/local/mslibs/bin/gdal-config > --with-ogr=/usr/local/mslibs/bin/gdal-config --enable-debug > --with-httpd=/usr/sbin/httpd2-prefork > --with-oraclespatial=/opt/oracle/product/9.2.0 > --with-geos=/usr/local/mslibs/bin/geos-config > Gee, what a setup! I have learned from the ML (somebody could confirm) that mixing tiff and gdal is not good: so if you use gdal then say --without-tiff. I see that you have some mapserver libraries installed in /usr/local/mslibs: how do you make sure that mapserver picks those up instead of the system provided (gd,png,tiff for example)? Then do you really need php/python/tcl/wfs/postgis/oracle/wcs? If not disable the ones that you do not use, this will reduce the likeliness of mapserver/mapscript errors (I'd recommend to take a conservative approach when using Java mapscript). HTH, Umberto > Thanks for the tip that library load is done by mapscript.jar. > > > Mit freundlichen Gruessen/Kind regards > Andreas Paukner-Ruzicka > (Geschaeftsfuehrer/Managing director) > > ********************************************************** > Geo-IT GmbH - Geoinformatik, IT-Services > Guggenberg 3, D-82380 Peissenberg > Tel: 08803-498372, Fax: 08803-498373 > eMail: info at geo-it.com - Homepage: http://www.geo-it.com > ********************************************************** > > > On Mon, June 27, 2005 10:45, Umberto Nicoletti said: > > Next time please reply to the list too (the mailin list admin could > > setup the list software so that it rewrites the reply-to field and > > make the list work like all other lists I've subscribed to). > > > > Comments inline. > > > > On 6/27/05, Geo-IT GmbH wrote: > >> Hi Umberto, > >> Thanks for your reply. > >> I am using SuSE 9.3 i686 (32 Bit). > >> After some additional tests I found that among others it has something to do > >> with the data and the projection of the data. Therefore I meanwhile managed > >> to > >> get the testprogram running (the one attached in my mail) but it is still > >> falling over when trying to do the same thing from within a servlet. > > > > What configure options did you use? > > In particular have you enabled the thread locks with use-threads? > > > > Notice: since 4.4.something it is not necessary to load the library > > anymore as that is done in the mapscript.jar. > > > > Regards, > > Umberto > > > >> That is > >> not my first Java Servlet program using mapscript functions, so I could > >> claim > >> to be no novice to java mapscript. But up to and including mapserver version > >> 4.0 I used the processTemplate, and processQueryTemplate methods to generate > >> result HTML pages but this is no longer working since 4.2. (I reported this > >> bug, but it seems to be more complex than expected to solve this). Therefore > >> it's the first time to fetch the results of a query one after one and > >> filling > >> a template manually. > >> > >> I'll try the MALLOC_CHECK_ variable and read through the malloc man page. > >> > >> Mit freundlichen Gruessen/Kind regards > >> Andreas Paukner-Ruzicka > >> (Geschaeftsfuehrer/Managing director) > >> > >> ********************************************************** > >> Geo-IT GmbH - Geoinformatik, IT-Services > >> Guggenberg 3, D-82380 Peissenberg > >> Tel: 08803-498372, Fax: 08803-498373 > >> eMail: info at geo-it.com - Homepage: http://www.geo-it.com > >> ********************************************************** > >> > >> > >> On Mon, June 27, 2005 9:47, Umberto Nicoletti said: > >> > What distro are you using (this appears to be a detail too often > >> forgotten) ? > >> > > >> > See if you have a MALLOC_CHECK_ env variable set and then read > >> > malloc's man page. > >> > > >> > Regards, > >> > Umberto > >> > > >> > On 6/26/05, Geo-IT GmbH wrote: > >> >> Dear experts, > >> >> When trying to fetch a shapeObj after a queryByPoint using the shapeindex > >> >> and > >> >> tileindex from the resultCache in a Java mapscript program I get the > >> >> following > >> >> error terminating the whole VM: > >> >> > >> >> *** glibc detected *** malloc(): memory corruption: 0x08314ed0 *** > >> >> ./runshapetest40.sh: line 13: 26946 Aborted java ShapeObjTest40 $mapfile > >> >> $layername > >> >> > >> >> The program was: > >> >> > >> >> // Standard imports > >> >> import java.io.*; > >> >> import java.util.*; > >> >> import java.text.*; > >> >> import edu.umn.gis.mapscript.*; > >> >> > >> >> public class ShapeObjTest { > >> >> > >> >> String mapFile = null; > >> >> String layerName = null; > >> >> > >> >> > >> >> static { > >> >> try { > >> >> System.loadLibrary("mapscript"); > >> >> System.out.println("Mapscript lib loaded"); > >> >> } catch (UnsatisfiedLinkError e) { > >> >> e.printStackTrace(); > >> >> System.exit(1); > >> >> } > >> >> } > >> >> > >> >> public ShapeObjTest() { > >> >> } > >> >> > >> >> > >> >> protected static void log(String msg) { > >> >> System.out.println(msg); > >> >> } > >> >> protected static void usage() { > >> >> System.out.println("USAGE: ShapeObjTest > >> >> "); > >> >> } > >> >> > >> >> public static void main (String args[] ) { > >> >> if (args == null || args.length < 2) { > >> >> usage(); > >> >> System.exit(1); > >> >> } > >> >> String mapFile = args[0]; > >> >> String layerName = args[1]; > >> >> try { > >> >> log("Creating map"); > >> >> mapObj map = new mapObj(mapFile); > >> >> layerObj l = map.getLayerByName(layerName); > >> >> l.open(); > >> >> log("Fetching shapeObj shapeindex 1 tileindex -1"); > >> >> shape = l.getFeature(1,-1); > >> >> l.close(); > >> >> log("Fetch successful"); > >> >> } catch (Exception ie) { > >> >> ie.printStackTrace(); > >> >> System.exit(1); > >> >> } > >> >> } > >> >> } > >> >> > >> >> The log shows: > >> >> Mapscript lib loaded > >> >> Creating map > >> >> Fetching shapeObj shapeindex 1 tileindex -1 > >> >> > >> >> Then the error appears on the console. > >> >> > >> >> I use mapserver 4.6.0. > >> >> > >> >> This is the mapfile: (It's the one from Itasca demo, but only with layer > >> >> airports) > >> >> MAP > >> >> # > >> >> # Start of map file > >> >> # > >> >> NAME "DEMO" > >> >> STATUS ON > >> >> EXTENT 388107.634400379 5203120.88405952 500896.339019834 > >> 5310243.30613897 > >> >> SIZE 600 600 > >> >> SHAPEPATH "data" > >> >> IMAGECOLOR 255 255 255 > >> >> UNITS METERS > >> >> # you may need to change this to match your MapServer build > >> >> #IMAGETYPE PNG > >> >> # > >> >> # Projection definition, consult the PROJ.4 documentation for parameter > >> >> discussion > >> >> # > >> >> PROJECTION > >> >> "proj=utm" > >> >> "ellps=GRS80" > >> >> "zone=15" > >> >> "north" > >> >> "no_defs" > >> >> > >> >> # OR: > >> >> # > >> >> # "init=epsg:26915" > >> >> END > >> >> # > >> >> # Start of web interface definition (including WMS enabling metadata) > >> >> # > >> >> WEB > >> >> MINSCALE 1000 > >> >> MAXSCALE 1550000 > >> >> IMAGEPATH "/tmp" > >> >> IMAGEURL "/tmp" > >> >> HEADER "demo_header.html" > >> >> FOOTER "demo_footer.html" > >> >> TEMPLATE "demo.html" > >> >> METADATA > >> >> "WMS_TITLE" "UMN MapServer Itasca Demo" > >> >> "WMS_ABSTRACT" "This is the UMN MapServer demonstration > >> application > >> >> for Itasca County located in north central Minnesota." > >> >> "WMS_ACCESSCONSTRAINTS" "none" > >> >> "WMS_ONLINERESOURCE" > >> >> "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" > >> >> "WMS_SRS" "EPSG:26915" > >> >> END > >> >> END > >> >> # > >> >> # Start of reference map > >> >> # > >> >> REFERENCE > >> >> STATUS ON > >> >> IMAGE "graphics/reference.gif" > >> >> SIZE 120 120 > >> >> EXTENT 393234.393701263 5205405.16440722 495769.579718949 > >> >> 5307959.02579127 > >> >> COLOR -1 -1 -1 > >> >> OUTLINECOLOR 255 0 0 > >> >> END > >> >> QUERYMAP > >> >> STATUS ON > >> >> SIZE 200 200 > >> >> COLOR 255 0 0 > >> >> STYLE HILITE > >> >> END > >> >> # > >> >> # Start of legend > >> >> # > >> >> LEGEND > >> >> STATUS ON > >> >> KEYSIZE 18 12 > >> >> LABEL > >> >> TYPE BITMAP > >> >> SIZE MEDIUM > >> >> COLOR 0 0 89 > >> >> END > >> >> END > >> >> # > >> >> # Start of scalebar > >> >> # > >> >> SCALEBAR > >> >> STATUS ON > >> >> COLOR 0 102 102 > >> >> OUTLINECOLOR 102 255 0 > >> >> BACKGROUNDCOLOR 255 51 102 > >> >> IMAGECOLOR 255 255 255 > >> >> TRANSPARENT OFF > >> >> UNITS MILES > >> >> INTERVALS 1 > >> >> SIZE 80 2 > >> >> STYLE 1 > >> >> INTERLACE ON > >> >> LABEL > >> >> TYPE BITMAP > >> >> SIZE MEDIUM > >> >> COLOR 0 0 0 > >> >> END > >> >> END > >> >> # > >> >> # Start of symbol definitions (we're only using a few) > >> >> # > >> >> SYMBOL > >> >> NAME "circle" > >> >> TYPE ELLIPSE > >> >> FILLED TRUE > >> >> POINTS > >> >> 1 1 > >> >> END > >> >> END > >> >> # > >> >> # Start of layer definitions > >> >> # > >> >> LAYER > >> >> NAME "airports" > >> >> STATUS OFF > >> >> DATA "airports" > >> >> TYPE POINT > >> >> TOLERANCE 5 > >> >> HEADER "airports_header.html" > >> >> FOOTER "airports_footer.html" > >> >> TEMPLATE "ttt.html" > >> >> METADATA > >> >> "WMS_TITLE" "Airports" > >> >> "WMS_ABSTRACT" "Airport runways for Itasca County." > >> >> "WMS_SRS" "EPSG:26915" > >> >> END > >> >> CLASS > >> >> NAME "Airports" > >> >> SYMBOL "circle" > >> >> COLOR 128 255 164 > >> >> SIZE 7 > >> >> TEMPLATE "airports.html" > >> >> END > >> >> END > >> >> > >> >> > >> >> > >> >> Any help would be greatly appreciated. > >> >> > >> >> Mit freundlichen Gruessen/Kind regards > >> >> Andreas Paukner-Ruzicka > >> >> (Geschaeftsfuehrer/Managing director) > >> >> > >> >> ********************************************************** > >> >> Geo-IT GmbH - Geoinformatik, IT-Services > >> >> Guggenberg 3, D-82380 Peissenberg > >> >> Tel: 08803-498372, Fax: 08803-498373 > >> >> eMail: info at geo-it.com - Homepage: http://www.geo-it.com > >> >> ********************************************************** > >> >> > >> > > >> > >> > >> > > > From info at GEO-IT.COM Mon Jun 27 02:57:04 2005 From: info at GEO-IT.COM (Geo-IT GmbH) Date: Mon, 27 Jun 2005 11:57:04 +0200 Subject: SWIGMapscript: glibc detected malloc memory corruption In-Reply-To: <75b4b93e050627023259d25d64@mail.gmail.com> Message-ID: Hi, I could drop gdal/ogr, tcl, python and php support, also wcs, wms and wfs servers could go. OK I'll do that. I use LD_LIBRARY_PATH variable to ensure that libmapscript picks up the right libs. To check I use "ldd". Thanks for the tips ! Mit freundlichen Gruessen/Kind regards Andreas Paukner-Ruzicka (Geschaeftsfuehrer/Managing director) ********************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ********************************************************** On Mon, June 27, 2005 11:32, Umberto Nicoletti said: > On 6/27/05, Geo-IT GmbH wrote: >> Hi Umberto, >> Sorry, forgot to reply to the list, this time I remember ;-) >> >> This was my configure String for mapserver 4.6.0: >> ./configure --with-tiff=/usr/local/mslibs --with-jpeg=/usr/local/mslibs >> --with-png --with-proj=/usr/local/mslibs --with-wmsclient >> --with-postgis=/usr/local/pgsql/bin/pg_config --with-php=../../php-4.3.8 >> --with-python --with-freetype --with-gd=/usr/local/mslibs --with-tcl >> --with-threads=-lpthread --with-wfs --with-wfsclient --with-wcs >> --with-gdal=/usr/local/mslibs/bin/gdal-config >> --with-ogr=/usr/local/mslibs/bin/gdal-config --enable-debug >> --with-httpd=/usr/sbin/httpd2-prefork >> --with-oraclespatial=/opt/oracle/product/9.2.0 >> --with-geos=/usr/local/mslibs/bin/geos-config >> > > Gee, what a setup! > > I have learned from the ML (somebody could confirm) that mixing tiff > and gdal is not good: so if you use gdal then say --without-tiff. > I see that you have some mapserver libraries installed in > /usr/local/mslibs: how do you make sure that mapserver picks those up > instead of the system provided (gd,png,tiff for example)? > > Then do you really need php/python/tcl/wfs/postgis/oracle/wcs? If not > disable the ones that you do not use, this will reduce the likeliness > of mapserver/mapscript errors (I'd recommend to take a conservative > approach when using Java mapscript). > > HTH, > Umberto > > >> Thanks for the tip that library load is done by mapscript.jar. >> >> >> Mit freundlichen Gruessen/Kind regards >> Andreas Paukner-Ruzicka >> (Geschaeftsfuehrer/Managing director) >> >> ********************************************************** >> Geo-IT GmbH - Geoinformatik, IT-Services >> Guggenberg 3, D-82380 Peissenberg >> Tel: 08803-498372, Fax: 08803-498373 >> eMail: info at geo-it.com - Homepage: http://www.geo-it.com >> ********************************************************** >> >> >> On Mon, June 27, 2005 10:45, Umberto Nicoletti said: >> > Next time please reply to the list too (the mailin list admin could >> > setup the list software so that it rewrites the reply-to field and >> > make the list work like all other lists I've subscribed to). >> > >> > Comments inline. >> > >> > On 6/27/05, Geo-IT GmbH wrote: >> >> Hi Umberto, >> >> Thanks for your reply. >> >> I am using SuSE 9.3 i686 (32 Bit). >> >> After some additional tests I found that among others it has something to >> do >> >> with the data and the projection of the data. Therefore I meanwhile >> managed >> >> to >> >> get the testprogram running (the one attached in my mail) but it is still >> >> falling over when trying to do the same thing from within a servlet. >> > >> > What configure options did you use? >> > In particular have you enabled the thread locks with use-threads? >> > >> > Notice: since 4.4.something it is not necessary to load the library >> > anymore as that is done in the mapscript.jar. >> > >> > Regards, >> > Umberto >> > >> >> That is >> >> not my first Java Servlet program using mapscript functions, so I could >> >> claim >> >> to be no novice to java mapscript. But up to and including mapserver >> version >> >> 4.0 I used the processTemplate, and processQueryTemplate methods to >> generate >> >> result HTML pages but this is no longer working since 4.2. (I reported >> this >> >> bug, but it seems to be more complex than expected to solve this). >> Therefore >> >> it's the first time to fetch the results of a query one after one and >> >> filling >> >> a template manually. >> >> >> >> I'll try the MALLOC_CHECK_ variable and read through the malloc man page. >> >> >> >> Mit freundlichen Gruessen/Kind regards >> >> Andreas Paukner-Ruzicka >> >> (Geschaeftsfuehrer/Managing director) >> >> >> >> ********************************************************** >> >> Geo-IT GmbH - Geoinformatik, IT-Services >> >> Guggenberg 3, D-82380 Peissenberg >> >> Tel: 08803-498372, Fax: 08803-498373 >> >> eMail: info at geo-it.com - Homepage: http://www.geo-it.com >> >> ********************************************************** >> >> >> >> >> >> On Mon, June 27, 2005 9:47, Umberto Nicoletti said: >> >> > What distro are you using (this appears to be a detail too often >> >> forgotten) ? >> >> > >> >> > See if you have a MALLOC_CHECK_ env variable set and then read >> >> > malloc's man page. >> >> > >> >> > Regards, >> >> > Umberto >> >> > >> >> > On 6/26/05, Geo-IT GmbH wrote: >> >> >> Dear experts, >> >> >> When trying to fetch a shapeObj after a queryByPoint using the >> shapeindex >> >> >> and >> >> >> tileindex from the resultCache in a Java mapscript program I get the >> >> >> following >> >> >> error terminating the whole VM: >> >> >> >> >> >> *** glibc detected *** malloc(): memory corruption: 0x08314ed0 *** >> >> >> ./runshapetest40.sh: line 13: 26946 Aborted java ShapeObjTest40 >> $mapfile >> >> >> $layername >> >> >> >> >> >> The program was: >> >> >> >> >> >> // Standard imports >> >> >> import java.io.*; >> >> >> import java.util.*; >> >> >> import java.text.*; >> >> >> import edu.umn.gis.mapscript.*; >> >> >> >> >> >> public class ShapeObjTest { >> >> >> >> >> >> String mapFile = null; >> >> >> String layerName = null; >> >> >> >> >> >> >> >> >> static { >> >> >> try { >> >> >> System.loadLibrary("mapscript"); >> >> >> System.out.println("Mapscript lib loaded"); >> >> >> } catch (UnsatisfiedLinkError e) { >> >> >> e.printStackTrace(); >> >> >> System.exit(1); >> >> >> } >> >> >> } >> >> >> >> >> >> public ShapeObjTest() { >> >> >> } >> >> >> >> >> >> >> >> >> protected static void log(String msg) { >> >> >> System.out.println(msg); >> >> >> } >> >> >> protected static void usage() { >> >> >> System.out.println("USAGE: ShapeObjTest >> >> >> "); >> >> >> } >> >> >> >> >> >> public static void main (String args[] ) { >> >> >> if (args == null || args.length < 2) { >> >> >> usage(); >> >> >> System.exit(1); >> >> >> } >> >> >> String mapFile = args[0]; >> >> >> String layerName = args[1]; >> >> >> try { >> >> >> log("Creating map"); >> >> >> mapObj map = new mapObj(mapFile); >> >> >> layerObj l = map.getLayerByName(layerName); >> >> >> l.open(); >> >> >> log("Fetching shapeObj shapeindex 1 tileindex -1"); >> >> >> shape = l.getFeature(1,-1); >> >> >> l.close(); >> >> >> log("Fetch successful"); >> >> >> } catch (Exception ie) { >> >> >> ie.printStackTrace(); >> >> >> System.exit(1); >> >> >> } >> >> >> } >> >> >> } >> >> >> >> >> >> The log shows: >> >> >> Mapscript lib loaded >> >> >> Creating map >> >> >> Fetching shapeObj shapeindex 1 tileindex -1 >> >> >> >> >> >> Then the error appears on the console. >> >> >> >> >> >> I use mapserver 4.6.0. >> >> >> >> >> >> This is the mapfile: (It's the one from Itasca demo, but only with >> layer >> >> >> airports) >> >> >> MAP >> >> >> # >> >> >> # Start of map file >> >> >> # >> >> >> NAME "DEMO" >> >> >> STATUS ON >> >> >> EXTENT 388107.634400379 5203120.88405952 500896.339019834 >> >> 5310243.30613897 >> >> >> SIZE 600 600 >> >> >> SHAPEPATH "data" >> >> >> IMAGECOLOR 255 255 255 >> >> >> UNITS METERS >> >> >> # you may need to change this to match your MapServer build >> >> >> #IMAGETYPE PNG >> >> >> # >> >> >> # Projection definition, consult the PROJ.4 documentation for >> parameter >> >> >> discussion >> >> >> # >> >> >> PROJECTION >> >> >> "proj=utm" >> >> >> "ellps=GRS80" >> >> >> "zone=15" >> >> >> "north" >> >> >> "no_defs" >> >> >> >> >> >> # OR: >> >> >> # >> >> >> # "init=epsg:26915" >> >> >> END >> >> >> # >> >> >> # Start of web interface definition (including WMS enabling >> metadata) >> >> >> # >> >> >> WEB >> >> >> MINSCALE 1000 >> >> >> MAXSCALE 1550000 >> >> >> IMAGEPATH "/tmp" >> >> >> IMAGEURL "/tmp" >> >> >> HEADER "demo_header.html" >> >> >> FOOTER "demo_footer.html" >> >> >> TEMPLATE "demo.html" >> >> >> METADATA >> >> >> "WMS_TITLE" "UMN MapServer Itasca Demo" >> >> >> "WMS_ABSTRACT" "This is the UMN MapServer demonstration >> >> application >> >> >> for Itasca County located in north central Minnesota." >> >> >> "WMS_ACCESSCONSTRAINTS" "none" >> >> >> "WMS_ONLINERESOURCE" >> >> >> "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" >> >> >> "WMS_SRS" "EPSG:26915" >> >> >> END >> >> >> END >> >> >> # >> >> >> # Start of reference map >> >> >> # >> >> >> REFERENCE >> >> >> STATUS ON >> >> >> IMAGE "graphics/reference.gif" >> >> >> SIZE 120 120 >> >> >> EXTENT 393234.393701263 5205405.16440722 495769.579718949 >> >> >> 5307959.02579127 >> >> >> COLOR -1 -1 -1 >> >> >> OUTLINECOLOR 255 0 0 >> >> >> END >> >> >> QUERYMAP >> >> >> STATUS ON >> >> >> SIZE 200 200 >> >> >> COLOR 255 0 0 >> >> >> STYLE HILITE >> >> >> END >> >> >> # >> >> >> # Start of legend >> >> >> # >> >> >> LEGEND >> >> >> STATUS ON >> >> >> KEYSIZE 18 12 >> >> >> LABEL >> >> >> TYPE BITMAP >> >> >> SIZE MEDIUM >> >> >> COLOR 0 0 89 >> >> >> END >> >> >> END >> >> >> # >> >> >> # Start of scalebar >> >> >> # >> >> >> SCALEBAR >> >> >> STATUS ON >> >> >> COLOR 0 102 102 >> >> >> OUTLINECOLOR 102 255 0 >> >> >> BACKGROUNDCOLOR 255 51 102 >> >> >> IMAGECOLOR 255 255 255 >> >> >> TRANSPARENT OFF >> >> >> UNITS MILES >> >> >> INTERVALS 1 >> >> >> SIZE 80 2 >> >> >> STYLE 1 >> >> >> INTERLACE ON >> >> >> LABEL >> >> >> TYPE BITMAP >> >> >> SIZE MEDIUM >> >> >> COLOR 0 0 0 >> >> >> END >> >> >> END >> >> >> # >> >> >> # Start of symbol definitions (we're only using a few) >> >> >> # >> >> >> SYMBOL >> >> >> NAME "circle" >> >> >> TYPE ELLIPSE >> >> >> FILLED TRUE >> >> >> POINTS >> >> >> 1 1 >> >> >> END >> >> >> END >> >> >> # >> >> >> # Start of layer definitions >> >> >> # >> >> >> LAYER >> >> >> NAME "airports" >> >> >> STATUS OFF >> >> >> DATA "airports" >> >> >> TYPE POINT >> >> >> TOLERANCE 5 >> >> >> HEADER "airports_header.html" >> >> >> FOOTER "airports_footer.html" >> >> >> TEMPLATE "ttt.html" >> >> >> METADATA >> >> >> "WMS_TITLE" "Airports" >> >> >> "WMS_ABSTRACT" "Airport runways for Itasca County." >> >> >> "WMS_SRS" "EPSG:26915" >> >> >> END >> >> >> CLASS >> >> >> NAME "Airports" >> >> >> SYMBOL "circle" >> >> >> COLOR 128 255 164 >> >> >> SIZE 7 >> >> >> TEMPLATE "airports.html" >> >> >> END >> >> >> END >> >> >> >> >> >> >> >> >> >> >> >> Any help would be greatly appreciated. >> >> >> >> >> >> Mit freundlichen Gruessen/Kind regards >> >> >> Andreas Paukner-Ruzicka >> >> >> (Geschaeftsfuehrer/Managing director) >> >> >> >> >> >> ********************************************************** >> >> >> Geo-IT GmbH - Geoinformatik, IT-Services >> >> >> Guggenberg 3, D-82380 Peissenberg >> >> >> Tel: 08803-498372, Fax: 08803-498373 >> >> >> eMail: info at geo-it.com - Homepage: http://www.geo-it.com >> >> >> ********************************************************** >> >> >> >> >> > >> >> >> >> >> >> >> > >> > From sc0rp10nau at YAHOO.COM.AU Mon Jun 27 03:33:36 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Mon, 27 Jun 2005 05:33:36 -0500 Subject: Mapscript/Java Tomcat Message-ID: Hi Umberto, Thx for the quick response. I've set the directory in the PATH variable, as well as the CLASSPATH (thought this might help). I've pretty much run out of ideas and this list is my last resort. As mentioned before, wierd thing is, it works fine as a standalone app, just not as a web-app under tomcat. Now, I've followed your suggestion, and copied all the dll files (from hobu's 4.4.2 zip file) to the system32 folder. Now this has been a bit of a progress. Checking the tomcat log files, it says it has loaded the dll successfully (got this from a System.out statement after the loadLibrary statement). Now the next step, creating a map object (mapObj map = new mapObj("path/to/map/file.map") ) throws the following error: === start error === java.lang.UnsatisfiedLinkError: new_mapObj edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) edu.umn.gis.mapscript.mapObj.(mapObj.java:332) ... ... === end error === Any ideas? cheers, AJ From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Mon Jun 27 04:26:24 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Mon, 27 Jun 2005 06:26:24 -0500 Subject: Animating Dynamic Data with MapServer Layers. Message-ID: Hello List, I am working with MapServer and Flash. MapServer will obviously generate the prescribed maps, and Flash will be the application that makes the maps viewable on the Web. I am pulling data from shape files and from Oracle Spatial databases. My ultimate goal is to create a map with selectable attributes (onClick and/or rollOver) to animate various aspects of the map (such as water levels, nesting locations, and so on.) I know what I want to do (and I hope I explained it sufficiently above), but I don't know how to go about it. I need to find a way to import the data from the Oracle Spatial databases (which will be through MapServer map files) and to query (in a sense) the data in Flash to dynamically generate a Flash animation. Does this make sense so far? I've devised two possible solutions to my problem: 1. Generate a map file that would have, for example, twelve layers that would query (through Oracle Spatial) for twelve months worth of forecasted water levels on a certain part of the river. Each layer (query) would return a date (month) and a forecasted water level. Some how I would take these results and dynamically put them into Flash ActionScript that would ultimately generate an animation. 2. Generate a map file that would have, for example, one layer that would query (through Oracle Spatial) for all of the data at once. Than I would be able to some how sort and sift through the data in the returned layer to pull out data that I wanted, which in turn would create the dynamic animation. I guess what I am asking for is... whether either of these concepts will work. I'm not asking for advice on the animation part, but only on pulling the data from the various Oracle Spatial databases. Anyone have any advice? Does this make sense? Thanks for your time. Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristjan at TARKVARASTUUDIO.EE Mon Jun 27 05:08:10 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Mon, 27 Jun 2005 15:08:10 +0300 Subject: Animating Dynamic Data with MapServer Layers. In-Reply-To: <35ADA1929CF84D44A310F248121581AD01F9A9@NWO-ML3OMA.nwo.ds.usace.army.mil> Message-ID: Hello, The best way I have figured out so far is to generate raster base map with Mapserver and some XML output of your dynamic layers and then draw the XML into your map in your Flash application. Then you got the most flexible and scalable environment. Kristjan > Hello List, > > I am working with MapServer and Flash. MapServer will obviously > generate the prescribed maps, and Flash will be the application that > makes the maps viewable on the Web. I am pulling data from shape files > and from Oracle Spatial databases. My ultimate goal is to create a map > with selectable attributes (onClick and/or rollOver) to animate > various aspects of the map (such as water levels, nesting locations, > and so on.) > > I know what I want to do (and I hope I explained it sufficiently > above), but I don?t know how to go about it. I need to find a way to > import the data from the Oracle Spatial databases (which will be > through MapServer map files) and to query (in a sense) the data in > Flash to dynamically generate a Flash animation. Does this make sense > so far? > > I?ve devised two possible solutions to my problem: > > 1. Generate a map file that would have, for example, twelve layers > that would query (through Oracle Spatial) for twelve months worth of > forecasted water levels on a certain part of the river. Each layer > (query) would return a date (month) and a forecasted water level. Some > how I would take these results and dynamically put them into Flash > ActionScript that would ultimately generate an animation. > > 2. Generate a map file that would have, for example, one layer that > would query (through Oracle Spatial) for all of the data at once. Than > I would be able to some how sort and sift through the data in the > returned layer to pull out data that I wanted, which in turn would > create the dynamic animation. > > I guess what I am asking for is? whether either of these concepts will > work. I?m not asking for advice on the animation part, but only on > pulling the data from the various Oracle Spatial databases. > > Anyone have any advice? Does this make sense? > > Thanks for your time. > > Ryan > From umberto.nicoletti at GMAIL.COM Mon Jun 27 05:31:19 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 27 Jun 2005 14:31:19 +0200 Subject: Mapscript/Java Tomcat In-Reply-To: Message-ID: Remove mapscript.jar from your app WEB-INF/lib and put it in TOMCAT_HOME/common/lib. If I recall correctly 4.4.2 should have the native library loading code already in place in mapscript.jar so you do not have to call System.loadLibrary() for your servlet. Regards, Umberto On 6/27/05, Ajay Ranipeta wrote: > Hi Umberto, > > Thx for the quick response. I've set the directory in the PATH variable, as > well as the CLASSPATH (thought this might help). I've pretty much run out of > ideas and this list is my last resort. As mentioned before, wierd thing is, > it works fine as a standalone app, just not as a web-app under tomcat. > > Now, I've followed your suggestion, and copied all the dll files (from > hobu's 4.4.2 zip file) to the system32 folder. Now this has been a bit of a > progress. Checking the tomcat log files, it says it has loaded the dll > successfully (got this from a System.out statement after the loadLibrary > statement). Now the next step, creating a map object (mapObj map = new > mapObj("path/to/map/file.map") ) throws the following error: > > === start error === > java.lang.UnsatisfiedLinkError: new_mapObj > edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > edu.umn.gis.mapscript.mapObj.(mapObj.java:332) > ... > ... > === end error === > > Any ideas? > > cheers, > AJ > From wendy_arbuckle at YAHOO.COM Mon Jun 27 05:47:15 2005 From: wendy_arbuckle at YAHOO.COM (wendy arbuckle) Date: Mon, 27 Jun 2005 05:47:15 -0700 Subject: scalebars Message-ID: i am a super newbie (as you will see from my code) i'm not sure if i can even get my scalebar to show up without using some form of html code i am using a wms server this is some of my code before the layer definitions: # # Start of map file # MAP # NAME PRDC-demo # background color of image if transparency # is not requested IMAGECOLOR 174 206 180 # default output image dimensions SIZE 600 400 # always returns a map STATUS ON # set top level projection PROJECTION "init=epsg:2961" END #start of the scalebar SCALEBAR STATUS EMBED LABEL SIZE tiny COLOR 0 0 0 OUTLINECOLOR 255 255 255 END STYLE 0 INTERVALS 3 SIZE 100 3 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR TRANSPARENT TRUE #POSTLABELCACHE true END # Scalebar # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # minx miny maxx maxy # sets: # /WMT_MS_Capabilities/Capability/Layer/LatLonBoundingBox(@minx @miny @maxx @maxx) # EXTENT -180 -90 180 90 # World EXTENT 486716 5.01368e+006 572241 5.07531e+006 # add def pointers for symbols SYMBOLSET "../etc/symbols/symbols.sym" FONTSET "../etc/fonts/fonts.txt" SCALEBAR IMAGECOLOR 255 255 255 # background color of the image placeholder LABEL COLOR 0 0 0 # color of the labels indicating the distance SIZE SMALL # size of the labels END SIZE 350 5 # sixe in pixels of the scalebar COLOR 255 255 255 # color used in the scalebar BACKGROUNDCOLOR 0 0 0 # background color of the drawn scalebar OUTLINECOLOR 0 0 0 # outline color of the salebar UNITS kilometers # units to be used INTERVALS 5 # How many intervals in total in the # scalebar STATUS ON # the scalebar is on by default END # # Start of web interface definition WEB # this is the real filepath to the temp dir for intermediate file creation IMAGEPATH "/tmp/ms_tmp/" # this is the web-accessible path to IMAGEPATH IMAGEURL "/ms_tmp/" HEADER "../templates/query_header.html" FOOTER "../templates/query_footer.html" METADATA "map" "/var/www/html/mapserver/service/prdc-demo.map" "ows_schemas_location" "http://schemas.opengeospatial.net" "ows_title" "Pictou County GIS demo" "ows_abstract" "Pictou County GIS demo. Enjoy!" "ows_keywordlist" "mapserver,ogc,workshop" "ows_service_onlineresource" "http://localhost/mapserver/index.html" "ows_fees" "none" "ows_accessconstraints" "none" "wms_contactperson" "Libo Feng" "wms_contactorganization" "Pictou County" "wms_contactposition" "Systems Scientist" "wms_addresstype" "postal" "wms_address" "980 East River rd." "wms_city" "New Glasgow" "wms_stateorprovince" "Nova Scotia" "wms_postcode" "B2H-2G3" "wms_country" "Canada" "wms_contactvoicetelephone" "+01-905-336-4409" "wms_contactfacsimiletelephone" "+01-905-336-4499" "wms_contactelectronicmailaddress" "lfeng at prdc.com" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:4326" "wfs_namespace_uri" "http://localhost/mapserver" "wfs_namespace_prefix" "ms_ogc" "wcs_label" "Sample OWS for MapServer OGC Web Services Workshop" "wcs_description" "Sample OWS for MapServer OGC Web Services Workshop. Enjoy!" "WMS_SLD_SYMBOL_URL" "http://wendy/dot.png" # sets: # /WCS_Capabilities/Service/metadataLink/@xlink:href "wcs_metadatalink_href" "http://devgeo.cciw.ca/index.html" END END # hilite map for GetFeatureInfo "info_format=text/html" # requests QUERYMAP STATUS ON SIZE 200 200 STYLE HILITE COLOR 255 255 0 END # set defaults for GetLegendGraphic requests LEGEND LABEL TYPE BITMAP SIZE MEDIUM COLOR 222 0 0 POSITION cc END END and this is the address i am using for my mapserver: "http://192.168.3.102/cgi-bin/mapserv? map=/var/www/html/mapserver/service/prdc- demo.map&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:2961&mode=scaleb ar&width=600&height=400&layers=cobounds,roads&SLD=http://192.168.3.102/maps erver/service/sld_line_width.xml" i am probably missing something simple any direction would be appreciated thnx __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at HOTMAIL.COM Mon Jun 27 05:58:32 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Mon, 27 Jun 2005 07:58:32 -0500 Subject: Examples Message-ID: I'm trying to create a map that read information from a database to insert several symbols in a specific point all over the map. Every point is read from the database and it is a GPS coordinate. Someone could indicate me an URL where there was an example with a similar operation that helps me to create my own map? Thank you. Nuri From tylermitchell at SHAW.CA Mon Jun 27 06:57:08 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 27 Jun 2005 06:57:08 -0700 Subject: Has anyone got http://libcwms.gov.bc.ca/wmsconnect... to work In-Reply-To: Message-ID: And I use this one all the time, just remove the 'wms_name' entries that I don't need. LAYER GROUP bc_msrm_wms NAME bc_msrm_wms_all TYPE RASTER STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://libcwms.gov.bc.ca/wmsconnector/com.esri.wsit.WMSServlet/ogc_layer_service?" METADATA "wms_name" "TRIMOrthomosaic,TRIMOrthomosaicOverview,BC_WATER_POLYS_5KM,BC_BASEMAP_LINES_5KM_water,BC_BASEMAP_LINES_5KM_transport,BC_BASEMAP_LINES_5KM_boundary,BC_RIV_LAKE_WET_POLYS_500M,BC_WATER_LINES_500M,BC_TRANSPORT_LINES_500M,BC_PROV_BOUNDARIES_LINES_500M,BC_MANMADE_LINES_500M,BC_MAJOR_CITIES_POINTS_500M,BC_WATER_POINTS_500M,BC_TRANSPORT_POINTS_500M,BC_SPOT_ELEVATION_POINTS_500M,BC_MANMADE_POINTS_500M,NTS_BC_COASTLINE_POLYS_125M,NTS_BC_RIV_LAKE_WET_POLYS_125M,NTS_BC_COASTLINE_LINES_125M,NTS_BC_CONTOUR_LINES_125M,NTS_BC_LANDCOVER_LINES_125M,NTS_BC_LANDFORM_LINES_125M,NTS_BC_MANMADE_LINES_125M,NTS_BC_TRANSPORT_LINES_125M,NTS_BC_WATER_LINES_125M,NTS_BC_MANMADE_POINTS_125M,NTS_BC_TRANSPORT_POINTS_125M,NTS_BC_WATER_POINTS_125M,NTS_BC_LANDFORM_POINTS_125M,NTS_BC_ANNO,TRIM_EBM_OCEAN,TRIM_EBM_WATERBODIES,TRIM_EBM_WATERCOURSES,TRIM_EBM_WETLANDS,TWTR_LINES,TTRN_LINES,TSRF_LINES,TMISC_LINES,TCVR_LINES,TCVR_POINTS,TCUL_LINES,TCTR_LINES,TWTR_POINTS,TTRN_POINTS,TSRF_POINTS,TMISC_POINTS,TCUL_POINTS,TCTR_POINTS,WHSE_BASEMAPPING.TRIM_TEXT_ANNO,TWTR_ANNO,TTRN_ANNO,TSRF_ANNO,TMISC_ANNO,TCVR_ANNO,TCUL_ANNO,TCTR_ANNO,FOREST_COVER,BCGS_GRID,NTS_GRID,DBM_7H_MIL_BATHYMETRIC_POLY,DBM_7H_MIL_POLITICAL_POLY_BC,DBM_7H_MIL_POLITICAL_POLY_PS,DBM_7H_MIL_PARK_POLY,DBM_7H_MIL_ROADS_LINE,DBM_7H_MIL_DRAINAGE_POLY,DBM_7H_MIL_DRAINAGE_LINE,DBM_7H_MIL_BOUNDARIES_LINE,DBM_7H_MIL_POPULATION_POINT" "wms_srs" "EPSG:4326" "wms_server_version" "1.1.1" "wms_layers" "TRIMOrthomosaic, TCUL_ANNO,FOREST_COVER" "wms_format" "image/jpeg" "wms_title" "TRIM Orthomosaic from BC MSRM2" "wms_group_title" "BC Data" END END On June 24, 2005 09:42 am, Janice wrote: > Stephen, This snippet works for me: > > # BC TRIM Orthomosaic > # low res (150,000 - 10,000,000) > # high(0 - 150,000) > LAYER > NAME "Ortho (WMS)" > TYPE RASTER > OFFSITE 0 0 0 > STATUS OFF > GROUP "LEGEND" > CONNECTIONTYPE WMS > > CONNECTION > "http://libcwms.gov.bc.ca/wmsconnector/com.esri.wsit.WMSServlet/o > gc_layer_service?&TRANSPARENT=true" > METADATA > WMS_SRS "epsg:26910" > WMS_NAME "TRIMOrthomosaic,TRIMOrthomosaicOverview" > WMS_SERVER_VERSION "1.1.1" > WMS_FORMAT "image/png" > WMS_TIMEOUT "1000" > WMS_ORDER "50" > END > END > > Regards, > Janice > Vancouver, BC From jiri.cajthaml at FSV.CVUT.CZ Mon Jun 27 07:52:38 2005 From: jiri.cajthaml at FSV.CVUT.CZ (Ing. =?iso-8859-2?Q?Ji=F8=ED_Cajthaml?=) Date: Mon, 27 Jun 2005 16:52:38 +0200 Subject: problem with raster files - georeference Message-ID: Hi, I have problem with my georeferenced raster files. My area of interest contains over 400 rasters (scanned map sheets, TIF+TFW) Unfortunately, rasters are georeferenced in ArcMap and map sheet on every raster is rotated (because of georeferencing - its OK). My TIF then looks like rotated map and the rest of an rectangular image is filled by some color (thin triangle at the every edge of map). When I want to display these rasters together in mapserver, these color triangles overlay neighbour maps. You can see example at http://gama.fsv.cvut.cz/~cajthaml/example/example.jpg Can anyone help me, what to do? Thanks, Jiri Cajthaml From helmster_99 at YAHOO.COM Mon Jun 27 08:43:42 2005 From: helmster_99 at YAHOO.COM (Chris Helm) Date: Mon, 27 Jun 2005 08:43:42 -0700 Subject: Dateline polygons? In-Reply-To: <1930.147.32.142.172.1119883958.squirrel@147.32.142.172> Message-ID: Hello list, I have a large dataset stored in a postgis database that contains several thousand polygons. I'm storing the geometry in epsg:4326 and my mapserver application is in the same projection (initially). My problem is that a number of my polygons cross the dateline (from -179 to 179) and the results are pretty obvious. Instead of crossing the dateline, they stretch the across the globe. I've tried converting the coordinates so that they go from -179 to -181 and I get the same result. Whenever I switch projections (into polar-stereographic) they come in just fine, but when viewing the entire global extent in 4326 I get the error. When I use coordinates like -181 to -182 the polygons never show up regardless of the projection. I guess what I'm asking is if anyone has conquered this issue before? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From fr-ms at TOURDE.ORG Mon Jun 27 08:27:55 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-1?q?Fran=E7ois_TOURDE?=) Date: Mon, 27 Jun 2005 17:27:55 +0200 Subject: GRIDS and Graticule Message-ID: Hi, I don't undestand clearly what is the exact signification of these GRID parameters. # MINARCS 4 MAXARCS 10 MININTERVAL 1 MAXINTERVAL 15 # MINSUBDIVIDE 1 MAXSUBDIVIDE 2 Could somebody explain me what's an ARC, what's a Subdivide, and, cerise sur le gateau, how MAPSERVER (or me) choose the best interval for displaying Graticule? Many Thanks From fwarmerdam at GMAIL.COM Mon Jun 27 08:53:03 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 27 Jun 2005 11:53:03 -0400 Subject: problem with raster files - georeference In-Reply-To: <1930.147.32.142.172.1119883958.squirrel@147.32.142.172> Message-ID: On 6/27/05, Ing. Ji?? Cajthaml wrote: > Hi, > > I have problem with my georeferenced raster files. > My area of interest contains over 400 rasters > (scanned map sheets, TIF+TFW) > > Unfortunately, rasters are georeferenced in ArcMap and map sheet > on every raster is rotated (because of georeferencing - its OK). > > My TIF then looks like rotated map and the rest of an rectangular image > is filled by some color (thin triangle at the every edge of map). > > When I want to display these rasters together in mapserver, these color > triangles overlay neighbour maps. > > You can see example at > http://gama.fsv.cvut.cz/~cajthaml/example/example.jpg Jiri, I am a bit surprised that you are encountering these problems. The mapresample.c code should be kicking in for rotated input rasters, and it should not be overlaying existing information with "blankness" from outside the original files. I am assuming that your source files don't have any blank rectangles in them - is that right? If you can submit a bug report with sufficient information for me to reproduce the problem (ie. pointers to a map file and data files I can use) then I can try to look into this. Make sure the bug report gets assigned to me. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jkim at SCIENCES.SDSU.EDU Mon Jun 27 10:22:29 2005 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Mon, 27 Jun 2005 10:22:29 -0700 Subject: No matching record(s) found -- Whatnow? Message-ID: > > My queryByPoint() is saying "No matching record(s) found"... > > Do I need to have a template file? What should be in the template file? > > Add TEMPLATE "blank.html" to your layer otherwise it is not queryable. > Blank.html does not have to exist on the filesystem. > Bart Whoa, it works! Thanks Bart. >> One question: why use MS_MULTIPLE? Can queryByPoint() return multiple >> shapes? > > Depending on the [tolerance] value you set it is possible that you get > more than > one result when you execute the query. > > Nicol Ah! Right! I see. Thank you. -John From kgrootendorst at BAIRD.COM Mon Jun 27 10:24:46 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Mon, 27 Jun 2005 12:24:46 -0500 Subject: WMS server - legend graphic/symbology Message-ID: Bonnie, Thanks for the suggestion - but it doesn't fix the problem. The WMS server will come in 'unchecked', but all of the actual WMS layers are still checked. Thanks anyways. Kevin On Mon, 27 Jun 2005 08:03:38 +0800, Bonnie Stewart wrote: >Hi Kevin, > >In ArcMap, there's an option "Make newly added layers visible by default", under Tools -> Options -> General tab. >I think this is why the layers are always on - if I remember correctly, it turns on the first 20 layers when you connect to a WMS. > >Try unchecking this option and see if that fixes the problem. > > >Cheers, > > >Bonnie > >__________________________________ >Bonnie Stewart >Research Officer >Satellite Remote Sensing Services >Information Access Division >Department of Land Information >65 Brockway Road, FLOREAT WA 6014 >Ph. (08) 9387 0342 | Fx. (08) 9383 7142 >bonnie.stewart at dli.wa.gov.au >www.dli.wa.gov.au > >________________________________ > >From: UMN MapServer Users List on behalf of Kevin Grootendorst >Sent: Fri 24/06/2005 11:00 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [Maybe SPAM] Re: [UMN_MAPSERVER-USERS] WMS server - legend graphic/symbology > > > >Bart, >Thanks for your suggestion. >I added NAME " " to the CLASS object and everything works as expected. > >Do you know why ALL the wms layers would be turned 'on' while viewing in >ArcMap? I assumed that only the layers with STATUS ON would be visible >initially. > >The log that ArcMap sends is as follows: >"GET /cgi-bin/mapserv.exe?map=/web/maplab- >2.2/Pelee/Pelee.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:26917&BBOX=298978 . >084774465,4606186.14109543,512740.303618177,4785860.76331283&WIDTH=972&HEIG H >T=817&LAYERS=Municipalities_coarse,Cities&STYLES=&EXCEPTIONS=application/vn d >.ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE HTTP/1.1" >200 53798 > >The 'cities' layer is set to Status OFF, but still draws when the service >is first added to ArcMap. > >Kevin >On Fri, 24 Jun 2005 16:48:29 +0200, Bart van den Eijnden ITSOLUTIONS.NL> wrote: > >>You always need to add a NAME to the CLASS which you want Mapserver to >show in the legend. >> >>Not sure if this will get you through showing the legend in ArcMap though. >Try and log the request that ArcMap is sending. >> >>Does Mapserver put a LegendURL in your WMS capabilities and does it work? >I am assuming ArcMap will use that for input. >> >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera IT Solutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN at Syncera-ITSolutions.nl >> >>>>> Kevin Grootendorst 06/24/05 04:44pm >>> >>Hi, >>I have a map file which I'm setting up as a WMS server, so that I can view >>my data in ArcMap 9. >>I'm successful in viewing the WMS in ArcMap, however it does not contain a >>graphic in the legend. In other words, the layers draw correctly (with >>same colors as in the map file), but the legend does not indicate any >>symbology. >> >>Any ideas how I can get the legend symbology to show? >>Using MS 4.4 on win2000. >> >>Below is a snippet from my .map file: >>(web definition:) >>WEB >> IMAGEPATH "C:/web/ms_tmp/" >> IMAGEURL "/ms_tmp/" >> METADATA >> "wms_title" "Pelee WMS" >> "wms_onlineresource" "http://maps.baird.com/cgi-bin/mapserv.exe? >>map=/web/maplab-2.2/Pelee/Pelee.map&" >> "wms_srs" "EPSG:26917" >> "wms_abstract" "Pelee WMS server" >> "wms_style" "" >> END >> END # END OF WEB SECTION >> >>(layer definition): >>LAYER >> #NAME "Municipalities (coarse)" >> NAME "Municipalities_coarse" >> GROUP "BASE" >> METADATA >> "wms_title" "Municipalities" >> "wms_srs" "EPSG:26917" >> "wms_style" "" >> "wms_group_title" "base" >> END >> STATUS on >> DATA "./Municipalities" >> TYPE POLYGON >> UNITS METERS >> TEMPLATE "ttt" >> SIZEUNITS PIXELS >> TOLERANCE 0 >> TOLERANCEUNITS PIXELS >> LABELITEM "NAME" >> CLASS >> LABEL >> TYPE BITMAP >> SIZE tiny >> POSITION cc >> OFFSET 0 0 >> COLOR 100 100 100 >> #SHADOWSIZE 1 1 >> OUTLINECOLOR 255 255 255 >> END >> STYLE >> SYMBOL 8 >> OUTLINECOLOR 0 0 0 >> BACKGROUNDCOLOR 99 99 99 >> SIZE 2 >> END >> END >> END > > > > >This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re- supplying affected attachments. > > From jiri.cajthaml at FSV.CVUT.CZ Mon Jun 27 11:37:06 2005 From: jiri.cajthaml at FSV.CVUT.CZ (Jirka Cajthaml) Date: Mon, 27 Jun 2005 20:37:06 +0200 Subject: problem with raster files - georeference In-Reply-To: <931f8ea905062708535d9c4a27@mail.gmail.com> Message-ID: Frank Warmerdam napsal(a): >On 6/27/05, Ing. Ji?? Cajthaml wrote: > > >>Hi, >> >>I have problem with my georeferenced raster files. >>My area of interest contains over 400 rasters >>(scanned map sheets, TIF+TFW) >> >>Unfortunately, rasters are georeferenced in ArcMap and map sheet >>on every raster is rotated (because of georeferencing - its OK). >> >>My TIF then looks like rotated map and the rest of an rectangular image >>is filled by some color (thin triangle at the every edge of map). >> >>When I want to display these rasters together in mapserver, these color >>triangles overlay neighbour maps. >> >>You can see example at >>http://gama.fsv.cvut.cz/~cajthaml/example/example.jpg >> >> > >Jiri, > >I am a bit surprised that you are encountering these problems. >The mapresample.c code should be kicking in for rotated input >rasters, and it should not be overlaying existing information with >"blankness" from outside the original files. I am assuming that your >source files don't have any blank rectangles in them - is that right? > >If you can submit a bug report with sufficient information for me to >reproduce the problem (ie. pointers to a map file and data files I >can use) then I can try to look into this. Make sure the bug report >gets assigned to me. > >Best regards, > > > I perhaps found the problem. Data I've got were referenced, but saved without transparency and "blankness" was filled with some color. Images were saved with indexed colors (255), not-compressed TIF. When I resaved image in Photoshop in RGB with transparency option and LZW compression, rasters in mapserver are OK ("blankness" doesn't overlay data). Size of raster increased by aproximately 20%. regards Jiri From jmckenna at DMSOLUTIONS.CA Mon Jun 27 12:05:55 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 27 Jun 2005 15:05:55 -0400 Subject: Problem with SIZEITEM In-Reply-To: Message-ID: I've filed a bug about this, because i get the same response that you do on a point file (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1398). jeff Pierre Racine wrote: > Hi, > > Anybody tried the SIZEITEM with Mapserver 4.6? > > If I publish the minimal map file with SIZEITEM based on an integer > attribute, the size of the symbol doesn't change. Worse: if I add a LABEL > definition, Mapserver crashes, publishing only half a jpeg. > > Here is my mapfile with the LABLE definition: > > MAP > #IMAGETYPE JPEG > EXTENT 189775 4716305 731662 5472414 > SIZE 400 600 > SHAPEPATH "data\shp" > FONTSET "D:\ms4w\fonts\fonts.txt" > > SYMBOL > NAME "circle" > TYPE ellipse > FILLED true > POINTS > 8 8 > END > END > > PROJECTION > "init=epsg:102010" > END > > LAYER # States polygon layer begins here > NAME escale > DATA escale > STATUS DEFAULT > TYPE POINT > > PROJECTION > "init=epsg:102010" > END > > LABELITEM "id" > CLASS > STYLE > SYMBOL "circle" > SIZEITEM "duration" > COLOR 1 255 1 > #SIZE 28 > #MINSIZE 12 > OUTLINECOLOR 0 0 0 > END > LABEL > COLOR 155 135 0 > TYPE TRUETYPE > FONT arial > SIZE 12 > FORCE true > POSITION uc > > END #LABEL > END #CLASS > END #LAYER > END > > Pierre Racine > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From harterc1 at COMCAST.NET Mon Jun 27 17:08:57 2005 From: harterc1 at COMCAST.NET (Donald Harter) Date: Mon, 27 Jun 2005 19:08:57 -0500 Subject: Premature end of script headers: php Message-ID: On Wed, 29 Dec 2004 11:33:11 -0500, Jeff Portwine wrote: > >Premature end of script headers: php > >Has anybody come across this error before, or have any suggestions on what >it could mean or how to resolve it? PHP definately works otherwise... > >Thanks for any suggestions. > >Regards, >Jeff I have been having this problem today. I had my mapserv wroking and decided to rebuild some of the dependent programs such as apache, php and postgres. For a while I got the following message: [Mon Jun 27 12:23:01 2005] [error] PHP Warning: dl(): MapScript: Unable to initialize module\nModule compiled with module API=20020429, de bug=0, thread-safety=0\nPHP compiled with module API=20020429, debug=1, thread-safety=0\nThese options need to match\n in /var/www/html/ test_mapserv.php on line 11 I fixced this by recompiling php and mapserv without the debug options. It seems that they did not see a match even though both were compiled with debug. Then I got these errors: [Mon Jun 27 18:07:17 2005] [error] [client 127.0.0.1] Premature end of script headers: /var/www/cgi-bin/mapserv [Mon Jun 27 18:08:17 2005] [error] [client 127.0.0.1] Premature end of script headers: /var/www/cgi-bin/php Each corresponds to the mapscript cgi program and php_mapscript.so I finally was able to get my cgi mapscript working again. All I had to do was recompile without this option "--with-php=/ext2e/php-4.3.11". I don't have a mapscript version, but my cgi mapscript works again. It seems that when this option gets selected, it corrupts the build of the cgi mapscript. At one time I had both of them working. I have found conflicting information on how to build PHP for mapscript. One says not to build it as a dynamic module. Another person said he built it with the "--with-apxs=/usr/local/apache/bin/apxs " option. Yet with that option PHP is not built as a standalone cgi program according to another person. Here is what versions I am using and thier configure options: mapserver-4.4.2 $ ./configure --with-freetype=/usr/bin --with-png --with-jpeg --with-gd --with-proj --with-gdal=/usr/local/bin/gdal-config --with-postgis =/usr/local/pqsql/bin --with-xpm=/usr/X11R6/lib There is an error in the makefile that is generated with the postgis option. It generates a sole "-I" as a command line option. Also I had to add "-I/usr/local/pgsql/include" so that it could find some include files. postgresql-8.0.3 ./configure -with-ssl php-4.3.11 ./configure --without-mysql --with-pgsql -enable-force-cgi-redirect --with-cgi --without-debug apache_1.3.33 CFLAGS="-g" \ ./configure \ "--with-layout=RedHat" \ "--enable-module=so" \ I would like to get my mapscript working again. I would appreciate any suggestions on how to get it working. Also I am looking for some techniques on how to troubleshoot/debug this. Before I took out the --with-php option in the mapserv config, I put a sleep statement in the main routine, and tried a printf statement. I then tried to attach the process using gdb. I wasn't able to trace the flow since it seemed to crash soon after and I could not get to a break point. Here is what I got for that: (gdb) step Single stepping until exit from function sleep, which has no line number information. 0x0805109e in main () (gdb) Single stepping until exit from function main, which has no line number information. Program received signal SIGSEGV, Segmentation fault. 0x42080f40 in strncpy () from /lib/i686/libc.so.6 (gdb) bt #0 0x42080f40 in strncpy () from /lib/i686/libc.so.6 #1 0x0807e9a9 in msSetError () Perhaps If I had a suitable input file I could do something like this: "gdb mapserv Message-ID: Hi Guys, Anytime you start recompiling components it is a good idea to recompile all the components in the order that you would normally build things. Like in the following order: 1) libraries 2) apache 3) php 4) mapserver and/or mapscript If you change things at any level you need to rebuild all the items below it in the tree. For most cases, you can just do make clean make make install if you add or remove libraries then you probably want to redo you ./configure scripts. This is complex and infrequent enough that is REALLY pays off to build a script with the commands that you used last time so you can rebuild in a consistent and complete manner. My $0.02, and I rarely have problems like that and I support systems on debian and freeBSD, over 10 in all. -Steve W. Donald Harter wrote: > On Wed, 29 Dec 2004 11:33:11 -0500, Jeff Portwine wrote: > > >>Premature end of script headers: php >> >>Has anybody come across this error before, or have any suggestions on what >>it could mean or how to resolve it? PHP definately works otherwise... >> >>Thanks for any suggestions. >> >>Regards, >>Jeff > > > I have been having this problem today. I had my mapserv wroking and decided > to rebuild some of the dependent programs such as apache, php and postgres. > > For a while I got the following message: > > [Mon Jun 27 12:23:01 2005] [error] PHP Warning: dl(): MapScript: Unable to > initialize module\nModule compiled with module API=20020429, de > bug=0, thread-safety=0\nPHP compiled with module API=20020429, debug=1, > thread-safety=0\nThese options need to match\n in /var/www/html/ > test_mapserv.php on line 11 > > I fixced this by recompiling php and mapserv without the debug options. It > seems that they did not see a match even though both were compiled with debug. > > Then I got these errors: > [Mon Jun 27 18:07:17 2005] [error] [client 127.0.0.1] Premature end of > script headers: /var/www/cgi-bin/mapserv > [Mon Jun 27 18:08:17 2005] [error] [client 127.0.0.1] Premature end of > script headers: /var/www/cgi-bin/php > > Each corresponds to the mapscript cgi program and php_mapscript.so > I finally was able to get my cgi mapscript working again. All I had to do > was recompile without this option "--with-php=/ext2e/php-4.3.11". I don't > have a mapscript version, but my cgi mapscript works again. It seems that > when this option gets selected, it corrupts the build of the cgi mapscript. > At one time I had both of them working. I have found conflicting > information on how to build PHP for mapscript. One says not to build it as a > dynamic module. Another person said he built it with the > "--with-apxs=/usr/local/apache/bin/apxs " option. Yet with that option PHP > is not built as a standalone cgi program according to another person. > > Here is what versions I am using and thier configure options: > mapserver-4.4.2 > $ ./configure --with-freetype=/usr/bin --with-png --with-jpeg --with-gd > --with-proj --with-gdal=/usr/local/bin/gdal-config --with-postgis > =/usr/local/pqsql/bin --with-xpm=/usr/X11R6/lib > > There is an error in the makefile that is generated with the postgis option. > It generates a sole "-I" as a command line option. Also I had to add > "-I/usr/local/pgsql/include" so that it could find some include files. > > > postgresql-8.0.3 > ./configure -with-ssl > > php-4.3.11 > ./configure --without-mysql --with-pgsql -enable-force-cgi-redirect > --with-cgi --without-debug > > apache_1.3.33 > CFLAGS="-g" \ > ./configure \ > "--with-layout=RedHat" \ > "--enable-module=so" \ > > I would like to get my mapscript working again. > I would appreciate any suggestions on how to get it working. > Also I am looking for some techniques on how to troubleshoot/debug this. > Before I took out the --with-php option in the mapserv config, I put a sleep > statement in the main routine, and tried a printf statement. I then tried > to attach the process using gdb. I wasn't able to trace the flow since it > seemed to crash soon after and I could not get to a break point. > > Here is what I got for that: > (gdb) step > Single stepping until exit from function sleep, > which has no line number information. > 0x0805109e in main () > (gdb) > Single stepping until exit from function main, > which has no line number information. > > Program received signal SIGSEGV, Segmentation fault. > 0x42080f40 in strncpy () from /lib/i686/libc.so.6 > (gdb) bt > #0 0x42080f40 in strncpy () from /lib/i686/libc.so.6 > #1 0x0807e9a9 in msSetError () > > Perhaps If I had a suitable input file I could do something like this: > > "gdb mapserv line. Something similar could be done for php with php_mapscript.so. Then > perhaps someone could find out what is going on. > From sc0rp10nau at YAHOO.COM.AU Mon Jun 27 20:57:21 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Mon, 27 Jun 2005 22:57:21 -0500 Subject: Mapscript/Java Tomcat Message-ID: Hi Umberto, I've already done that. It still doesn't fix the problem. I've even followed Daniel Caldeweyher's How-to on Tomcat 5.5 (http://ms.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55/view) and that hasn't helped much either. Any idea's? btw, I've even copied the nad directory to the system32 as well. I've used ListDLL's app from SysInternals, to check what dll's are being loaded, and they seem consistent with the desktop test app that i've done. So the only thing i can think of is the map file not being loaded properly or found. But i'm sure it should throw an IOException. I've seriously am out of ideas, and seriously losing my hair over this. Hope you guys can help. Cheers, Ajay On Mon, 27 Jun 2005 14:31:19 +0200, Umberto Nicoletti wrote: >Remove mapscript.jar from your app WEB-INF/lib and put it in >TOMCAT_HOME/common/lib. >If I recall correctly 4.4.2 should have the native library loading >code already in place in mapscript.jar so you do not have to call >System.loadLibrary() for your servlet. > >Regards, >Umberto > > >On 6/27/05, Ajay Ranipeta wrote: >> Hi Umberto, >> >> Thx for the quick response. I've set the directory in the PATH variable, as >> well as the CLASSPATH (thought this might help). I've pretty much run out of >> ideas and this list is my last resort. As mentioned before, wierd thing is, >> it works fine as a standalone app, just not as a web-app under tomcat. >> >> Now, I've followed your suggestion, and copied all the dll files (from >> hobu's 4.4.2 zip file) to the system32 folder. Now this has been a bit of a >> progress. Checking the tomcat log files, it says it has loaded the dll >> successfully (got this from a System.out statement after the loadLibrary >> statement). Now the next step, creating a map object (mapObj map = new >> mapObj("path/to/map/file.map") ) throws the following error: >> >> === start error === >> java.lang.UnsatisfiedLinkError: new_mapObj >> edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) >> edu.umn.gis.mapscript.mapObj.(mapObj.java:332) >> ... >> ... >> === end error === >> >> Any ideas? >> >> cheers, >> AJ >> From m.tomko at PGRAD.UNIMELB.EDU.AU Mon Jun 27 22:53:47 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Tue, 28 Jun 2005 15:53:47 +1000 Subject: Mapserver & SVG output In-Reply-To: Message-ID: Hi list, sorry for a repeated query. Could anybody point me to examples of Mapserver SVG output implementations, and how can one use javascript (not embeded in the svg) to interact with the output SVG? Thanks a lot Martin From nicolas at MAICH.GR Mon Jun 27 23:53:33 2005 From: nicolas at MAICH.GR (Nikos) Date: Tue, 28 Jun 2005 09:53:33 +0300 Subject: error in make mapscript/tcl In-Reply-To: <42BEBC31.5090600@jiwe.org> Message-ID: Philip Dillon-Thiselton wrote: > Hello, > > I am developing a GIS live CD for Arch Linux but I am having trouble > making the tcl mapscript modules. Here is the output: > > [root] tcl: make > gcc -pipe -c -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 > -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 > -DHAVE_PTHREAD_ATFORK=1 -DHAVE_READDIR_R=1 -DHAVE_THREE_ARG_READDIR_R=1 > -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long long > -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 > -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 > -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 > -DHAVE_WAITPID=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 > -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 > -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 > -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 > -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 > -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -fPIC \ > -I/usr/include \ > -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_TIFF > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL > -DUSE_GEOS -DUSE_WMS_SVR -I. -I/usr/include -I/usr/include > -I/usr/include \ > -DUSE_TCL_STUBS -DITCL_NAMESPACES -DItcl_Namespace=int > -D"spaceId=spcid;Tcl_InitStubs(interp,\"8.1\",0)" \ > mapscript_wrap.c > gcc: long: No such file or directory > mapscript_wrap.c: In function `imageObj_saveToString': > mapscript_wrap.c:3078: warning: return makes pointer from integer > without a cast > make: *** [stublib] Error 1 > > Would be very grateful for any help as we would like to include > mapserver workbench. > > Cheers Phil Hi, You're probabbly using tcl8.4 IIRC, compiling/linking against tcl8.3x gets around this problem...but it's been a while.. regards, nicolas From umberto.nicoletti at GMAIL.COM Tue Jun 28 01:25:21 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 28 Jun 2005 10:25:21 +0200 Subject: Mapscript/Java Tomcat In-Reply-To: Message-ID: I think at this point you should start over with a clean setup. The steps I would do are: 0) clean up windows: remove old installs of mapserver and system32 libraries from this install. Start with a fresh system if you can 1) clean the environment from all possible references to mapserver/gdal/etc libraries 2) create a c:\mapserver directory and copy all mapserver dlls in there 3) add a **system** (not user!!) PATH entry to c:\mapserver 4) if you can run the java mapscript tests (make test in mapscript/java) 4) install java and tomcat and make sure they work 5) install the webapp and dependent jars/classes in shared/lib and shared/classes. Please note that as of recent versions of mapscript the native library is loaded by mapscript.jar already, so there is no need to provide a static method 6) edit catalina.bat and add -D java.library.path=c:\mapserver 7) run tomcat NOTE to item 3: env variables in windows have always been a mess as system services could not pivk them up. If you suspect this is happening try to start tomcat as your user (run startup.bat) and see if it makes any difference. Then cross fingers... Ciao, Umberto On 6/28/05, Ajay Ranipeta wrote: > Hi Umberto, > > I've already done that. It still doesn't fix the problem. I've even followed > Daniel Caldeweyher's How-to on Tomcat 5.5 > (http://ms.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55/view) and that > hasn't helped much either. > > Any idea's? > > btw, I've even copied the nad directory to the system32 as well. I've used > ListDLL's app from SysInternals, to check what dll's are being loaded, and > they seem consistent with the desktop test app that i've done. So the only > thing i can think of is the map file not being loaded properly or found. But > i'm sure it should throw an IOException. > > I've seriously am out of ideas, and seriously losing my hair over this. > > Hope you guys can help. > > Cheers, > Ajay > > > On Mon, 27 Jun 2005 14:31:19 +0200, Umberto Nicoletti > wrote: > > >Remove mapscript.jar from your app WEB-INF/lib and put it in > >TOMCAT_HOME/common/lib. > >If I recall correctly 4.4.2 should have the native library loading > >code already in place in mapscript.jar so you do not have to call > >System.loadLibrary() for your servlet. > > > >Regards, > >Umberto > > > > > >On 6/27/05, Ajay Ranipeta wrote: > >> Hi Umberto, > >> > >> Thx for the quick response. I've set the directory in the PATH variable, as > >> well as the CLASSPATH (thought this might help). I've pretty much run out of > >> ideas and this list is my last resort. As mentioned before, wierd thing is, > >> it works fine as a standalone app, just not as a web-app under tomcat. > >> > >> Now, I've followed your suggestion, and copied all the dll files (from > >> hobu's 4.4.2 zip file) to the system32 folder. Now this has been a bit of a > >> progress. Checking the tomcat log files, it says it has loaded the dll > >> successfully (got this from a System.out statement after the loadLibrary > >> statement). Now the next step, creating a map object (mapObj map = new > >> mapObj("path/to/map/file.map") ) throws the following error: > >> > >> === start error === > >> java.lang.UnsatisfiedLinkError: new_mapObj > >> edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > >> edu.umn.gis.mapscript.mapObj.(mapObj.java:332) > >> ... > >> ... > >> === end error === > >> > >> Any ideas? > >> > >> cheers, > >> AJ > >> > From bill at BINKO.NET Tue Jun 28 01:32:06 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 28 Jun 2005 04:32:06 -0400 Subject: Florida (US) F/OSS GIS users? Message-ID: Hi everyone, I hope this isn't too off topic or regional, but I was looking for others in the Florida area that are using F/OSS GIS tools such as Mapserver, PostGIS, GDAL, etc. I would like to create/join/know about any local groups that are using this wonderful technology. I'd be happy to be (gently) nudged towards any listing of local groups like that if it already exists. Thanks Bill From dibblethewrecker at JIWE.ORG Tue Jun 28 01:30:44 2005 From: dibblethewrecker at JIWE.ORG (Philip Dillon-Thiselton) Date: Tue, 28 Jun 2005 09:30:44 +0100 Subject: error in make mapscript/tcl In-Reply-To: <42C0F3ED.9090600@maich.gr> Message-ID: So, I would need to downgrade? That's a bit of a problem really. Do you think there is any alternative? Phil Nikos wrote: > Philip Dillon-Thiselton wrote: > >> Hello, >> >> I am developing a GIS live CD for Arch Linux but I am having trouble >> making the tcl mapscript modules. Here is the output: >> >> [root] tcl: make >> gcc -pipe -c -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 >> -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 >> -DHAVE_PTHREAD_ATFORK=1 -DHAVE_READDIR_R=1 -DHAVE_THREE_ARG_READDIR_R=1 >> -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long long >> -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 >> -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 >> -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 >> -DHAVE_WAITPID=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 >> -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 >> -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 >> -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 >> -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 >> -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -fPIC \ >> -I/usr/include \ >> -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_TIFF >> -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT >> -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL >> -DUSE_GEOS -DUSE_WMS_SVR -I. -I/usr/include -I/usr/include >> -I/usr/include \ >> -DUSE_TCL_STUBS -DITCL_NAMESPACES -DItcl_Namespace=int >> -D"spaceId=spcid;Tcl_InitStubs(interp,\"8.1\",0)" \ >> mapscript_wrap.c >> gcc: long: No such file or directory >> mapscript_wrap.c: In function `imageObj_saveToString': >> mapscript_wrap.c:3078: warning: return makes pointer from integer >> without a cast >> make: *** [stublib] Error 1 >> >> Would be very grateful for any help as we would like to include >> mapserver workbench. >> >> Cheers Phil > > > Hi, > > You're probabbly using tcl8.4 IIRC, compiling/linking against tcl8.3x > gets around this problem...but it's been a while.. > > regards, > > nicolas > > > > From mailings at ABIWOOD99.DE Tue Jun 28 03:16:01 2005 From: mailings at ABIWOOD99.DE (Christian Schroeder) Date: Tue, 28 Jun 2005 12:16:01 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <75b4b93e050621234935de525c@mail.gmail.com> Message-ID: Hello Umberto, Umberto Nicoletti wrote: >Hi Christian, >I do not think the error you are getting is due to threading issues, >but trying what Mario suggests will at least narrow the search field. > >In case you are still getting errors even with synchronized code >blocks I have a few questions for you to help me understand your >setup: >Do you always get errors in delete_classObj or do the segfaults happen >in different functions? > > Yes, the segfaults alway happen in the delete_classObj function. >If the segfault is always caused by >delete_ClassObj then I suppose you are creating class objects in your >java code. Is that true? > > Yes, that's true, I need to create classObjects. >If that is the case then we can setup a very simple test to reproduce >the problem: modify one of the examples so that it will load a map and >then start adding classes in similar fashion to your code, but in a >tight loop. Classes should be made eligible for gc by dropping all >references to them. As soon as gc kicks in the vm should crash. At >that point it will be clear that the problem is in delete_ClassObj and >the hunting season will be open. > > I have tested a proposed solution by Benedikt Rothe yet, which said that one should call the delete method of the classObject after it is not needed any more. This confirms my assumption that this problem occours when java's garbage-collector destroys the null-referenced objects. Now it seems to work properly. The mapserver version we actually use is 4.4.1, we have tested 4.4.2, 4.2.4 and 4.6.0, too before. Thank you all for your help! Best Regards, Christian :-) >BTW can you report the mapserver version you are using (I have 4.4.2 >and I know it works, so if you can use that). > >Best Regards, >Umberto > >On 6/21/05, Christian Schroeder wrote: > > >>Hello Umberto, >> >>thank your for your immediate answer. >>I do not call the delete_ methody directly and don't think I am using >>special gc parameters. >> >>And... I have read the README file before compiling the mapserver :-) >> >>I will try to get it to work with "synchronized"-flags als Mario Basa >>supposed. >> >>Thank you! >> >>Christian >> >> >>Umberto Nicoletti schrieb: >> >> >> >>>Christian, >>>are you calling the delete_ methods directly in your code or are you >>>using some special gc paramaters? >>> >>>As a side note the --use-threads option to configure is *absolutely* >>>necessary, as are brakes on your car. I think we should write it in >>>the README (as if someone actually cared to read it :-( ). >>> >>>Best regards, >>>Umberto >>> >>> >>>On 6/21/05, Sean Gillies wrote: >>> >>> >>> >>> >>>>I'm forwarding this to the users list. Hopefully, Umberto will be able >>>>to provide some insight. >>>> >>>>cheers, >>>>Sean >>>> >>>>On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Dear Mr. Gillies, >>>>> >>>>>some weeks ago me and Florian Pepping contacted you because we had >>>>>problems using the Java Mapscript API. Thanks to you we could solve >>>>>these problems :-) >>>>> >>>>>Now we got our program doing what it's supposed to do but there is >>>>>still a big problem left which we were not able to solve yet: >>>>>We created a simple servlet which is created inside a Tomcat 5.0 >>>>>Webserver. This servlet created a map image (png/jpg) and displays >>>>>some specified objects on the map. (We use it for location based >>>>>services --> "show me the position of the next printer"). >>>>>After an irregular number of calls of our servlet which uses the Java >>>>>Mapscript API the complete Java VM and with it the Tomcat crashes. I >>>>>attached the error report below. The program works properly for a >>>>>number of calls (between 5 and 1000 :-) ) and after that it crashes. >>>>>We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, >>>>>4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and >>>>>1.5.0. We also configured mapserver using the --with-threads option, >>>>>but all this did not help. By the way the mapserv cgi-module works >>>>>properly. >>>>> >>>>>Do you have an idea for this? >>>>> >>>>>Thanks for your anxiety >>>>> >>>>>Christian & Florian >>>>>University of Paderborn, Germany >>>>> >>>>> >>>>>------------------------------------------------------------------- >>>>> >>>>>JavaMapscriptLoader: mapscript native library has been loaded. >>>>>* mapscript native library loaded * >>>>> >>>>>An unexpected exception has been detected in native code outside the >>>>>VM. >>>>>Unexpected Signal : 11 occurred at PC=0x3338268 >>>>>Function=delete_classObj+0x8 >>>>>Library=/usr/lib/libmapscript.so >>>>> >>>>>Current Java thread: >>>>> at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native >>>>>Method) >>>>> at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) >>>>> at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) >>>>> at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) >>>>> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) >>>>> at java.lang.ref.Finalizer.access$100(Finalizer.java:14) >>>>> at >>>>>java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) >>>>> >>>>>Dynamic libraries: >>>>>Can not get information for pid = 10558 >>>>> >>>>>Heap at VM Abort: >>>>>Heap >>>>>def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, >>>>>0x08fc0000) >>>>> eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) >>>>> from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) >>>>> to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) >>>>>tenured generation total 15048K, used 13624K [0x08fc0000, >>>>>0x09e72000, >>>>>0x0cae0000) >>>>> the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, >>>>>0x09e72000) >>>>>compacting perm gen total 18432K, used 18373K [0x0cae0000, >>>>>0x0dce0000, >>>>>0x10ae0000) >>>>> the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, >>>>>0x0dce0000) >>>>> >>>>>Local Time = Tue Jun 14 15:32:19 2005 >>>>>Elapsed Time = 246 >>>>># >>>>># The exception above was detected in native code outside the VM >>>>># >>>>># Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) >>>>># >>>>># An error report file has been saved as /tmp/hs_err_pid10558.log. >>>>># Please refer to the file for further information. >>>>># >>>>> >>>>>------------------------------------------------------------------- >>>>> >>>>>On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Dear Mr. Gillies, >>>>>> >>>>>>I'm a student of the University of Paderborn in Germany and member of >>>>>>the project group "Location Based Services for Wireless Devices". In >>>>>>this project we try to position laptops and other WLAN-enabled >>>>>>devices using the signal strength of the WLAN. According to their >>>>>>position, we want to offer location based services to the persons >>>>>>using the devices (where I am; where's the next printer; is there a >>>>>>friend nearby) >>>>>> >>>>>>In order to do this, we want to use your mapserver and the Java >>>>>>Mapscript API to generate maps according to the actual position and >>>>>>situation. We like to customize the map of our building and add >>>>>>points, lines and so on. >>>>>> >>>>>>We have been able to compile the whole mapserver and the Java >>>>>>Mapscript API. A small Java example also works, which presents an >>>>>>unchanged map of our building. >>>>>> >>>>>>[...] >>>>>> >>>>>> >>>>>> >>>>>> >>> >>> >>> >>> > > > > From mailings at ABIWOOD99.DE Tue Jun 28 03:18:11 2005 From: mailings at ABIWOOD99.DE (Christian Schroeder) Date: Tue, 28 Jun 2005 12:18:11 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: Hello Benedikt! Thank you very much for this tip, now the segfault does not seem to occour any more and our problem seems to be solved with that. Thank you very much for your help! Best Regards, Christian Benedikt Rothe schrieb: > > the java-stacktrace shows, that the "delete" is called by from the > "finalize"-method, i.e. from the > garbage-collector. > our experience is, that calling delete directly from the java-servlet > is *much* safer. > > if we dynamically create mapserver-objects, we allway use code like this: > classObj cO = new classObj(...); > .. > // Do something with cO > .. > //now cO isn't used any more > cO.delete() > > same rule for layers etc. > > Benedikt > > > > UMN MapServer Users List schrieb am > 21.06.2005 17:21:39: > > > I'm forwarding this to the users list. Hopefully, Umberto will be able > > to provide some insight. > > > > cheers, > > Sean > > > > On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > > > > > Dear Mr. Gillies, > > > > > > some weeks ago me and Florian Pepping contacted you because we had > > > problems using the Java Mapscript API. Thanks to you we could solve > > > these problems :-) > > > > > > Now we got our program doing what it's supposed to do but there is > > > still a big problem left which we were not able to solve yet: > > > We created a simple servlet which is created inside a Tomcat 5.0 > > > Webserver. This servlet created a map image (png/jpg) and displays > > > some specified objects on the map. (We use it for location based > > > services --> "show me the position of the next printer"). > > > After an irregular number of calls of our servlet which uses the Java > > > Mapscript API the complete Java VM and with it the Tomcat crashes. I > > > attached the error report below. The program works properly for a > > > number of calls (between 5 and 1000 :-) ) and after that it crashes. > > > We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, > > > 4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > > > 1.5.0. We also configured mapserver using the --with-threads option, > > > but all this did not help. By the way the mapserv cgi-module works > > > properly. > > > > > > Do you have an idea for this? > > > > > > Thanks for your anxiety > > > > > > Christian & Florian > > > University of Paderborn, Germany > > > > > > > > > ------------------------------------------------------------------- > > > > > > JavaMapscriptLoader: mapscript native library has been loaded. > > > * mapscript native library loaded * > > > > > > An unexpected exception has been detected in native code outside the > > > VM. > > > Unexpected Signal : 11 occurred at PC=0x3338268 > > > Function=delete_classObj+0x8 > > > Library=/usr/lib/libmapscript.so > > > > > > Current Java thread: > > > at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > > > Method) > > > at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > > > at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > > > at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > > > at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > > > at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > > > at > > > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > > > > > > Dynamic libraries: > > > Can not get information for pid = 10558 > > > > > > Heap at VM Abort: > > > Heap > > > def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > > > 0x08fc0000) > > > eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > > > from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > > > to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > > > tenured generation total 15048K, used 13624K [0x08fc0000, > > > 0x09e72000, > > > 0x0cae0000) > > > the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > > > 0x09e72000) > > > compacting perm gen total 18432K, used 18373K [0x0cae0000, > > > 0x0dce0000, > > > 0x10ae0000) > > > the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > > > 0x0dce0000) > > > > > > Local Time = Tue Jun 14 15:32:19 2005 > > > Elapsed Time = 246 > > > # > > > # The exception above was detected in native code outside the VM > > > # > > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > > > # > > > # An error report file has been saved as /tmp/hs_err_pid10558.log. > > > # Please refer to the file for further information. > > > # > > > > > > ------------------------------------------------------------------- > > > > > > On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > > > > > >> Dear Mr. Gillies, > > >> > > >> I?m a student of the University of Paderborn in Germany and > member of > > >> the project group ?Location Based Services for Wireless Devices?. In > > >> this project we try to position laptops and other WLAN-enabled > > >> devices using the signal strength of the WLAN. According to their > > >> position, we want to offer location based services to the persons > > >> using the devices (where I am; where?s the next printer; is there a > > >> friend nearby) > > >> > > >> In order to do this, we want to use your mapserver and the Java > > >> Mapscript API to generate maps according to the actual position and > > >> situation. We like to customize the map of our building and add > > >> points, lines and so on. > > >> > > >> We have been able to compile the whole mapserver and the Java > > >> Mapscript API. A small Java example also works, which presents an > > >> unchanged map of our building. > > >> > > > > [...] > > > From umberto.nicoletti at GMAIL.COM Tue Jun 28 04:25:25 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 28 Jun 2005 13:25:25 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <42C123E3.4060508@abiwood99.de> Message-ID: I'd suggest you open an issue on bugzilla, as the segfault should NEVER happen. Regards, Umberto On 6/28/05, Christian Schroeder wrote: > Hello Benedikt! > > Thank you very much for this tip, > now the segfault does not seem to occour any more and our problem seems > to be solved with that. > > Thank you very much for your help! > > Best Regards, > Christian > > > Benedikt Rothe schrieb: > > > > > the java-stacktrace shows, that the "delete" is called by from the > > "finalize"-method, i.e. from the > > garbage-collector. > > our experience is, that calling delete directly from the java-servlet > > is *much* safer. > > > > if we dynamically create mapserver-objects, we allway use code like this: > > classObj cO = new classObj(...); > > .. > > // Do something with cO > > .. > > //now cO isn't used any more > > cO.delete() > > > > same rule for layers etc. > > > > Benedikt > > > > > > > > UMN MapServer Users List schrieb am > > 21.06.2005 17:21:39: > > > > > I'm forwarding this to the users list. Hopefully, Umberto will be able > > > to provide some insight. > > > > > > cheers, > > > Sean > > > > > > On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > > > > > > > Dear Mr. Gillies, > > > > > > > > some weeks ago me and Florian Pepping contacted you because we had > > > > problems using the Java Mapscript API. Thanks to you we could solve > > > > these problems :-) > > > > > > > > Now we got our program doing what it's supposed to do but there is > > > > still a big problem left which we were not able to solve yet: > > > > We created a simple servlet which is created inside a Tomcat 5.0 > > > > Webserver. This servlet created a map image (png/jpg) and displays > > > > some specified objects on the map. (We use it for location based > > > > services --> "show me the position of the next printer"). > > > > After an irregular number of calls of our servlet which uses the Java > > > > Mapscript API the complete Java VM and with it the Tomcat crashes. I > > > > attached the error report below. The program works properly for a > > > > number of calls (between 5 and 1000 :-) ) and after that it crashes. > > > > We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, > > > > 4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > > > > 1.5.0. We also configured mapserver using the --with-threads option, > > > > but all this did not help. By the way the mapserv cgi-module works > > > > properly. > > > > > > > > Do you have an idea for this? > > > > > > > > Thanks for your anxiety > > > > > > > > Christian & Florian > > > > University of Paderborn, Germany > > > > > > > > > > > > ------------------------------------------------------------------- > > > > > > > > JavaMapscriptLoader: mapscript native library has been loaded. > > > > * mapscript native library loaded * > > > > > > > > An unexpected exception has been detected in native code outside the > > > > VM. > > > > Unexpected Signal : 11 occurred at PC=0x3338268 > > > > Function=delete_classObj+0x8 > > > > Library=/usr/lib/libmapscript.so > > > > > > > > Current Java thread: > > > > at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > > > > Method) > > > > at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > > > > at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > > > > at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > > > > at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > > > > at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > > > > at > > > > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > > > > > > > > Dynamic libraries: > > > > Can not get information for pid = 10558 > > > > > > > > Heap at VM Abort: > > > > Heap > > > > def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > > > > 0x08fc0000) > > > > eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > > > > from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > > > > to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > > > > tenured generation total 15048K, used 13624K [0x08fc0000, > > > > 0x09e72000, > > > > 0x0cae0000) > > > > the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > > > > 0x09e72000) > > > > compacting perm gen total 18432K, used 18373K [0x0cae0000, > > > > 0x0dce0000, > > > > 0x10ae0000) > > > > the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > > > > 0x0dce0000) > > > > > > > > Local Time = Tue Jun 14 15:32:19 2005 > > > > Elapsed Time = 246 > > > > # > > > > # The exception above was detected in native code outside the VM > > > > # > > > > # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > > > > # > > > > # An error report file has been saved as /tmp/hs_err_pid10558.log. > > > > # Please refer to the file for further information. > > > > # > > > > > > > > ------------------------------------------------------------------- > > > > > > > > On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > > > > > > > >> Dear Mr. Gillies, > > > >> > > > >> I'm a student of the University of Paderborn in Germany and > > member of > > > >> the project group "Location Based Services for Wireless Devices". In > > > >> this project we try to position laptops and other WLAN-enabled > > > >> devices using the signal strength of the WLAN. According to their > > > >> position, we want to offer location based services to the persons > > > >> using the devices (where I am; where's the next printer; is there a > > > >> friend nearby) > > > >> > > > >> In order to do this, we want to use your mapserver and the Java > > > >> Mapscript API to generate maps according to the actual position and > > > >> situation. We like to customize the map of our building and add > > > >> points, lines and so on. > > > >> > > > >> We have been able to compile the whole mapserver and the Java > > > >> Mapscript API. A small Java example also works, which presents an > > > >> unchanged map of our building. > > > >> > > > > > [...] > > > > > From umn-ms at HYDROTEC.DE Tue Jun 28 05:14:31 2005 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Tue, 28 Jun 2005 14:14:31 +0200 Subject: Mapscript/cloneMap/Processing In-Reply-To: Message-ID: Hallo List We are using MapScript/Java inside Tomcat. We encountered a crash in webObj.cloneMap() when a PROCESSING-statement was used inside a Layer-Block. My impression is, that there is a bug in mapcopy.c/msCopyLayer (?) I think: After the line MS_COPYSTELEM(numprocessing); and before the loop for (i = 0; i < dst->numprocessing; i++) {...} a memory-allocation for dst->processing is missing. I made a change: MS_COPYSTELEM(numprocessing); //OLD // Allocating an initializing memory for processing-array. // Must be dst->numprocessing+1 to be 0-terminated. dst->processing = numprocessing ? (char*) calloc(dst->numprocessing+1,sizeof(char*)) : 0; for (i = 0; i < dst->numprocessing; i++) { //OLD ... I hope this is helpful. Greetings Benedikt Rothe -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at METEOLOGICA.ES Tue Jun 28 05:24:32 2005 From: mapserver at METEOLOGICA.ES (Paco Regodon) Date: Tue, 28 Jun 2005 14:24:32 +0200 Subject: ecw and wld Message-ID: I have many ecw files ungeoreferenced, and i need to create a tile. I have created .wld files for each ecw, but gdal seems to ignore them. #gdaltindex dest.shp orto/*ecw It appears no georeferencing is available for `orto/1.ecw', skipping. [...] Is it a gdal driver limitation? It works fine with jpegs. From superbla3000 at GMX.NET Tue Jun 28 05:27:59 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Tue, 28 Jun 2005 14:27:59 +0200 Subject: imagemap from shape Message-ID: hello, I have a shapefile with the shape of severeal countries. I d like to have an imagemap, where every country has an own link. How do I do this? Is there an actual documentation? Thanks joerg From sc0rp10nau at YAHOO.COM.AU Tue Jun 28 05:33:26 2005 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Tue, 28 Jun 2005 07:33:26 -0500 Subject: Mapscript/Java Tomcat Message-ID: Umberto, Mate you are a legend. All worked like a charm. What actually happend was I use netBeans for java dev work. And I forgot that i've had a few libraries lying around there. Combined with a couple of entries in the system env variables that i didn't really realise. It all works now, so thanks again. cheers, Ajay On Tue, 28 Jun 2005 10:25:21 +0200, Umberto Nicoletti wrote: >I think at this point you should start over with a clean setup. > >The steps I would do are: > >0) clean up windows: remove old installs of mapserver and system32 >libraries from this install. Start with a fresh system if you can >1) clean the environment from all possible references to >mapserver/gdal/etc libraries >2) create a c:\mapserver directory and copy all mapserver dlls in there >3) add a **system** (not user!!) PATH entry to c:\mapserver >4) if you can run the java mapscript tests (make test in mapscript/java) >4) install java and tomcat and make sure they work >5) install the webapp and dependent jars/classes in shared/lib and >shared/classes. Please note that as of recent versions of mapscript >the native library is loaded by mapscript.jar already, so there is no >need to provide a static method >6) edit catalina.bat and add -D java.library.path=c:\mapserver >7) run tomcat > >NOTE to item 3: env variables in windows have always been a mess as >system services could not pivk them up. If you suspect this is >happening try to start tomcat as your user (run startup.bat) and see >if it makes any difference. > >Then cross fingers... > >Ciao, >Umberto > >On 6/28/05, Ajay Ranipeta wrote: >> Hi Umberto, >> >> I've already done that. It still doesn't fix the problem. I've even followed >> Daniel Caldeweyher's How-to on Tomcat 5.5 >> (http://ms.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55/view) and that >> hasn't helped much either. >> >> Any idea's? >> >> btw, I've even copied the nad directory to the system32 as well. I've used >> ListDLL's app from SysInternals, to check what dll's are being loaded, and >> they seem consistent with the desktop test app that i've done. So the only >> thing i can think of is the map file not being loaded properly or found. But >> i'm sure it should throw an IOException. >> >> I've seriously am out of ideas, and seriously losing my hair over this. >> >> Hope you guys can help. >> >> Cheers, >> Ajay >> >> >> On Mon, 27 Jun 2005 14:31:19 +0200, Umberto Nicoletti >> wrote: >> >> >Remove mapscript.jar from your app WEB-INF/lib and put it in >> >TOMCAT_HOME/common/lib. >> >If I recall correctly 4.4.2 should have the native library loading >> >code already in place in mapscript.jar so you do not have to call >> >System.loadLibrary() for your servlet. >> > >> >Regards, >> >Umberto >> > >> > >> >On 6/27/05, Ajay Ranipeta wrote: >> >> Hi Umberto, >> >> >> >> Thx for the quick response. I've set the directory in the PATH variable, as >> >> well as the CLASSPATH (thought this might help). I've pretty much run out of >> >> ideas and this list is my last resort. As mentioned before, wierd thing is, >> >> it works fine as a standalone app, just not as a web-app under tomcat. >> >> >> >> Now, I've followed your suggestion, and copied all the dll files (from >> >> hobu's 4.4.2 zip file) to the system32 folder. Now this has been a bit of a >> >> progress. Checking the tomcat log files, it says it has loaded the dll >> >> successfully (got this from a System.out statement after the loadLibrary >> >> statement). Now the next step, creating a map object (mapObj map = new >> >> mapObj("path/to/map/file.map") ) throws the following error: >> >> >> >> === start error === >> >> java.lang.UnsatisfiedLinkError: new_mapObj >> >> edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) >> >> edu.umn.gis.mapscript.mapObj.(mapObj.java:332) >> >> ... >> >> ... >> >> === end error === >> >> >> >> Any ideas? >> >> >> >> cheers, >> >> AJ >> >> >> From BEN at SYNCERA-ITSOLUTIONS.NL Tue Jun 28 05:47:47 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 28 Jun 2005 14:47:47 +0200 Subject: FILTER on an OGR layer (Real column), spaces Message-ID: Hi list, I have just struggled for the last couple of hours on the following, so I am posting it so maybe someday somebody will benefit from this info. I have a MapInfo TAB file in Mapserver using OGR access. This has a Real column (Bouw_loc) on which I wanted to filter my Mapserver LAYER: OGRFeature(bouw_loc):3771 Bouw_loc (Real) = 3771 Xcoord (Real) = 73921 Ycoord (Real) = 446310 Style = SYMBOL(a:0,c:#000000,s:12pt,id:"mapinfo-sym-35.ogr-sym-10") POINT (73921 446310) But using: FILTER "3771" FILTERITEM "Bouw_loc" does not select anything. I needed to add the spaces in front so: FILTER " 3771" FILTERITEM "Bouw_loc" works. Would be nice if those values would be treated as Real values by Mapserver/OGR, but I can work around this for now. Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From umn-ms at HYDROTEC.DE Tue Jun 28 06:11:47 2005 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Tue, 28 Jun 2005 15:11:47 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: <42C12361.2080402@abiwood99.de> Message-ID: Hallo Umberto and Christian Christian reported a crash in layerObj.delete() which I also detected. I think I understood the following: Let's say, we have an initialized mapObj mO; layerObj lO = new layerObj(mO); // Say lO is the 5th layer now. // Now lO.swigCMemOwn == true and // lO.swigCPtr points onto the mO.swigCPtr->layers[4] ... // now the mapObj is deleted but the Java-layerObj continues to live. // the C-layer-Object mO.swigCPtr->layers[4] will deleted and freed also! mO.delete() // From now on O.swigCPtr points into invalid piece of C-memory. ... Later on the Java-garbage-collector finalizes the layerObj. Because of "lO.swigCMemOwn == true" and "lO.swigCPtr!=0" the finalize-method calls layerObj.delete(). This method frees lO.swigCPtr which is invalid memory. Same story about layerObj/classObj. Benedikt Rothe UMN MapServer Users List schrieb am 28.06.2005 12:16:01: > Hello Umberto, > > Umberto Nicoletti wrote: > > >Hi Christian, > >I do not think the error you are getting is due to threading issues, > >but trying what Mario suggests will at least narrow the search field. > > > >In case you are still getting errors even with synchronized code > >blocks I have a few questions for you to help me understand your > >setup: > >Do you always get errors in delete_classObj or do the segfaults happen > >in different functions? > > > > > Yes, the segfaults alway happen in the delete_classObj function. > > >If the segfault is always caused by > >delete_ClassObj then I suppose you are creating class objects in your > >java code. Is that true? > > > > > Yes, that's true, I need to create classObjects. > > >If that is the case then we can setup a very simple test to reproduce > >the problem: modify one of the examples so that it will load a map and > >then start adding classes in similar fashion to your code, but in a > >tight loop. Classes should be made eligible for gc by dropping all > >references to them. As soon as gc kicks in the vm should crash. At > >that point it will be clear that the problem is in delete_ClassObj and > >the hunting season will be open. > > > > > I have tested a proposed solution by Benedikt Rothe yet, which said that > one should call the delete method of the classObject after it is not > needed any more. > This confirms my assumption that this problem occours when java's > garbage-collector destroys the null-referenced objects. Now it seems to > work properly. > > The mapserver version we actually use is 4.4.1, we have tested 4.4.2, > 4.2.4 and 4.6.0, too before. > > Thank you all for your help! > > Best Regards, > Christian :-) > > > >BTW can you report the mapserver version you are using (I have 4.4.2 > >and I know it works, so if you can use that). > > > >Best Regards, > >Umberto > > > >On 6/21/05, Christian Schroeder wrote: > > > > > >>Hello Umberto, > >> > >>thank your for your immediate answer. > >>I do not call the delete_ methody directly and don't think I am using > >>special gc parameters. > >> > >>And... I have read the README file before compiling the mapserver :-) > >> > >>I will try to get it to work with "synchronized"-flags als Mario Basa > >>supposed. > >> > >>Thank you! > >> > >>Christian > >> > >> > >>Umberto Nicoletti schrieb: > >> > >> > >> > >>>Christian, > >>>are you calling the delete_ methods directly in your code or are you > >>>using some special gc paramaters? > >>> > >>>As a side note the --use-threads option to configure is *absolutely* > >>>necessary, as are brakes on your car. I think we should write it in > >>>the README (as if someone actually cared to read it :-( ). > >>> > >>>Best regards, > >>>Umberto > >>> > >>> > >>>On 6/21/05, Sean Gillies wrote: > >>> > >>> > >>> > >>> > >>>>I'm forwarding this to the users list. Hopefully, Umberto will be able > >>>>to provide some insight. > >>>> > >>>>cheers, > >>>>Sean > >>>> > >>>>On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Dear Mr. Gillies, > >>>>> > >>>>>some weeks ago me and Florian Pepping contacted you because we had > >>>>>problems using the Java Mapscript API. Thanks to you we could solve > >>>>>these problems :-) > >>>>> > >>>>>Now we got our program doing what it's supposed to do but there is > >>>>>still a big problem left which we were not able to solve yet: > >>>>>We created a simple servlet which is created inside a Tomcat 5.0 > >>>>>Webserver. This servlet created a map image (png/jpg) and displays > >>>>>some specified objects on the map. (We use it for location based > >>>>>services --> "show me the position of the next printer"). > >>>>>After an irregular number of calls of our servlet which uses the Java > >>>>>Mapscript API the complete Java VM and with it the Tomcat crashes. I > >>>>>attached the error report below. The program works properly for a > >>>>>number of calls (between 5 and 1000 :-) ) and after that it crashes. > >>>>>We have tried several versions of the mapserver (4.4.1, 4.4.2, 4.2.4, > >>>>>4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > >>>>>1.5.0. We also configured mapserver using the --with-threads option, > >>>>>but all this did not help. By the way the mapserv cgi-module works > >>>>>properly. > >>>>> > >>>>>Do you have an idea for this? > >>>>> > >>>>>Thanks for your anxiety > >>>>> > >>>>>Christian & Florian > >>>>>University of Paderborn, Germany > >>>>> > >>>>> > >>>>>------------------------------------------------------------------- > >>>>> > >>>>>JavaMapscriptLoader: mapscript native library has been loaded. > >>>>>* mapscript native library loaded * > >>>>> > >>>>>An unexpected exception has been detected in native code outside the > >>>>>VM. > >>>>>Unexpected Signal : 11 occurred at PC=0x3338268 > >>>>>Function=delete_classObj+0x8 > >>>>>Library=/usr/lib/libmapscript.so > >>>>> > >>>>>Current Java thread: > >>>>> at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > >>>>>Method) > >>>>> at edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > >>>>> at edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > >>>>> at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > >>>>> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > >>>>> at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > >>>>> at > >>>>>java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > >>>>> > >>>>>Dynamic libraries: > >>>>>Can not get information for pid = 10558 > >>>>> > >>>>>Heap at VM Abort: > >>>>>Heap > >>>>>def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > >>>>>0x08fc0000) > >>>>> eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > >>>>> from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > >>>>> to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > >>>>>tenured generation total 15048K, used 13624K [0x08fc0000, > >>>>>0x09e72000, > >>>>>0x0cae0000) > >>>>> the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > >>>>>0x09e72000) > >>>>>compacting perm gen total 18432K, used 18373K [0x0cae0000, > >>>>>0x0dce0000, > >>>>>0x10ae0000) > >>>>> the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > >>>>>0x0dce0000) > >>>>> > >>>>>Local Time = Tue Jun 14 15:32:19 2005 > >>>>>Elapsed Time = 246 > >>>>># > >>>>># The exception above was detected in native code outside the VM > >>>>># > >>>>># Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > >>>>># > >>>>># An error report file has been saved as /tmp/hs_err_pid10558.log. > >>>>># Please refer to the file for further information. > >>>>># > >>>>> > >>>>>------------------------------------------------------------------- > >>>>> > >>>>>On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Dear Mr. Gillies, > >>>>>> > >>>>>>I'm a student of the University of Paderborn in Germany and member of > >>>>>>the project group "Location Based Services for Wireless Devices". In > >>>>>>this project we try to position laptops and other WLAN-enabled > >>>>>>devices using the signal strength of the WLAN. According to their > >>>>>>position, we want to offer location based services to the persons > >>>>>>using the devices (where I am; where's the next printer; is there a > >>>>>>friend nearby) > >>>>>> > >>>>>>In order to do this, we want to use your mapserver and the Java > >>>>>>Mapscript API to generate maps according to the actual position and > >>>>>>situation. We like to customize the map of our building and add > >>>>>>points, lines and so on. > >>>>>> > >>>>>>We have been able to compile the whole mapserver and the Java > >>>>>>Mapscript API. A small Java example also works, which presents an > >>>>>>unchanged map of our building. > >>>>>> > >>>>>>[...] > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>> > >>> > >>> > >>> > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kgrootendorst at BAIRD.COM Tue Jun 28 06:30:13 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 28 Jun 2005 08:30:13 -0500 Subject: time series representations in Mapserver Message-ID: So in order to view time series data (as an animation) within a mapserver application, I need to define the layer as a WMS layer? Why can't I set up a non-WMS layer with Time support? (I guess because MS doesn't support that yet?) Does anyone have a valid/working .map file with time series support? Kevin On Thu, 23 Jun 2005 16:21:43 -0500, David Bitner wrote: >Gerry, > >Did you ever get anything figured out for this? I just came upon this >thread again. if you take Uli's reccomendation and go with the WMS >Time approach, you can build upon whats been done by the mapbuilder >folks (http://mapbuilder.sourceforge.net/). Otherwise if you look on >pure javascript resources for information on preloading images (just >manipulate the time string that you send to the map requests) and >animating them using javascripts setTimeout function. Most of the >resources for this are for creating rotating banners on web pages, but >the idea holds perfectly well for creating animated maps. I know a >couple NWS sites use this approach for radar. I used this on the NWS >Hydrologic Remote Sensing Center (http://www.nohrsc.nws.gov) site to >animate snow pack (not a mapserver backend, but same idea). > >David >> > >> > OK... that's a start. However, I'm looking at weather observations, >> > usually they're from fixed sites (well, excluding the storm chasers:-). >> > I'm wondering if anything's been done for animation-ish stuff, so I >> > could display the temperature contours, or, for instance, a changing >> > landscape of wind barbs... >> > >> > Thanks, Gerry >> > >> > David Bitner wrote: >> > >> >>If all you need is to show all of something that fit within a window >> >>of time on a single image (ie not an animation) you can either use sql >> >>statements with GDAL (I've not done this myself) or if you have your >> >>data in PostGIS all you need to do is add substitution variables into >> >>your SQL statement. >> >> >> >>For example, I display flight tracks at an airport using mapserver and >> >>I include a startdate and enddate as cgi variables sent to mapserver >> >>then in my mapfile use percent notation in my mapfile: >> >>DATA "targets from (select * from flighttrack where stime <= '%eDate%' >> >>and etime >='%sDate%')as tracks USING UNIQUE opnum USING SRID=-1" >> >> >> >>On 6/3/05, Gerry Creager N5JXS wrote: >> >> >> >> >> >>>We're looking at several applications where we need some time- selection >> >>>capabilities. Has anyone done this successfully with Mapserver, and if >> >>>so, might you share some tips? >> >>> >> >>>TIA,gerry >> >>>-- >> >>>Gerry Creager -- gerry.creager at tamu.edu >> >>>Texas Mesonet -- AATLT, Texas A&M University >> >>>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >> >>>Page: 979.228.0173 >> >>>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >> >>> >> >> >> >> >> > >> >> >> -- >> geOps GeoInformatics >> D-79100 Freiburg >> From osgis.lists at GMAIL.COM Tue Jun 28 06:47:14 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Tue, 28 Jun 2005 08:47:14 -0500 Subject: time series representations in Mapserver In-Reply-To: Message-ID: No, you do not need WMS at all. It is just that Mapbuilder already has a client interface set up that does time animations. It is very possible to animations just using Mapserver. All you need in your mapfile is the ability to draw one single map for a single time. The way you do your animation is by calling that mapfile several times to create different images with each different time (you can control the time by using cgi variables and the %% notation in either the filter or the postgis query for your layer with time sensitive data as described in previous message in this thread) and then use javascript to switch between those images. On 6/28/05, Kevin Grootendorst wrote: > So in order to view time series data (as an animation) within a mapserver > application, I need to define the layer as a WMS layer? Why can't I set up > a non-WMS layer with Time support? (I guess because MS doesn't support that > yet?) > Does anyone have a valid/working .map file with time series support? > > Kevin > > > On Thu, 23 Jun 2005 16:21:43 -0500, David Bitner > wrote: > > >Gerry, > > > >Did you ever get anything figured out for this? I just came upon this > >thread again. if you take Uli's reccomendation and go with the WMS > >Time approach, you can build upon whats been done by the mapbuilder > >folks (http://mapbuilder.sourceforge.net/). Otherwise if you look on > >pure javascript resources for information on preloading images (just > >manipulate the time string that you send to the map requests) and > >animating them using javascripts setTimeout function. Most of the > >resources for this are for creating rotating banners on web pages, but > >the idea holds perfectly well for creating animated maps. I know a > >couple NWS sites use this approach for radar. I used this on the NWS > >Hydrologic Remote Sensing Center (http://www.nohrsc.nws.gov) site to > >animate snow pack (not a mapserver backend, but same idea). > > > >David > >> > > >> > OK... that's a start. However, I'm looking at weather observations, > >> > usually they're from fixed sites (well, excluding the storm chasers:-). > >> > I'm wondering if anything's been done for animation-ish stuff, so I > >> > could display the temperature contours, or, for instance, a changing > >> > landscape of wind barbs... > >> > > >> > Thanks, Gerry > >> > > >> > David Bitner wrote: > >> > > >> >>If all you need is to show all of something that fit within a window > >> >>of time on a single image (ie not an animation) you can either use sql > >> >>statements with GDAL (I've not done this myself) or if you have your > >> >>data in PostGIS all you need to do is add substitution variables into > >> >>your SQL statement. > >> >> > >> >>For example, I display flight tracks at an airport using mapserver and > >> >>I include a startdate and enddate as cgi variables sent to mapserver > >> >>then in my mapfile use percent notation in my mapfile: > >> >>DATA "targets from (select * from flighttrack where stime <= '%eDate%' > >> >>and etime >='%sDate%')as tracks USING UNIQUE opnum USING SRID=-1" > >> >> > >> >>On 6/3/05, Gerry Creager N5JXS wrote: > >> >> > >> >> > >> >>>We're looking at several applications where we need some time- > selection > >> >>>capabilities. Has anyone done this successfully with Mapserver, and > if > >> >>>so, might you share some tips? > >> >>> > >> >>>TIA,gerry > >> >>>-- > >> >>>Gerry Creager -- gerry.creager at tamu.edu > >> >>>Texas Mesonet -- AATLT, Texas A&M University > >> >>>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > >> >>>Page: 979.228.0173 > >> >>>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > >> >>> > >> >> > >> >> > >> > > >> > >> > >> -- > >> geOps GeoInformatics > >> D-79100 Freiburg > >> > From fwarmerdam at GMAIL.COM Tue Jun 28 06:48:30 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 28 Jun 2005 09:48:30 -0400 Subject: ecw and wld In-Reply-To: <200506281424.32663.mapserver@meteologica.es> Message-ID: On 6/28/05, Paco Regodon wrote: > I have many ecw files ungeoreferenced, and i need to create a tile. > I have created .wld files for each ecw, but gdal seems to ignore them. > > #gdaltindex dest.shp orto/*ecw > It appears no georeferencing is available for > `orto/1.ecw', skipping. > [...] > > Is it a gdal driver limitation? It works fine with jpegs. Paco, On review, I see that the ECW driver has no support for world files currently. I will fix it up in CVS this morning. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bfraser at GEOANALYTIC.COM Tue Jun 28 06:51:42 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 28 Jun 2005 07:51:42 -0600 Subject: GRIDS and Graticule Message-ID: Fran?ois, Here's the documentation explanation, along with some of my notes on the parameters: MINARCS [double] The minimum number of arcs to draw. The minimum number of graticule lines to draw on the map. Use this parameter to get more lines. MAXARCS [double] The maximum number of arcs to draw. The maximum number of graticule lines to draw on the map. Use this parameter to get fewer lines. MININTERVAL [double] The minimum number of intervals to try to use. The distance between the lines, in map units. MAXINTERVAL [double] The maximum number of intervals to try to use. The distance between the lines, in map units. MINSUBDIVIDE [double] The minimum number of segments to use when rendering an arc. If the lines should be very curved, increase this number to smooth the lines. MAXSUBDIVIDE [double] The maximum number of segments to use when rendering an arc. If the graticule should be very straight, use a small number to minimize the number of points for faster rendering. Brent Fraser ----- Original Message ----- From: "Fran?ois TOURDE" To: Sent: Monday, June 27, 2005 9:27 AM Subject: [UMN_MAPSERVER-USERS] GRIDS and Graticule > Hi, > > I don't undestand clearly what is the exact signification of these > GRID parameters. > > # MINARCS 4 > MAXARCS 10 > MININTERVAL 1 > MAXINTERVAL 15 > # MINSUBDIVIDE 1 > MAXSUBDIVIDE 2 > > > Could somebody explain me what's an ARC, what's a Subdivide, and, > cerise sur le gateau, how MAPSERVER (or me) choose the best interval > for displaying Graticule? > > Many Thanks From warbuckle at PRDC.COM Tue Jun 28 06:57:34 2005 From: warbuckle at PRDC.COM (Wendy Arbuckle) Date: Tue, 28 Jun 2005 10:57:34 -0300 Subject: No subject Message-ID: i am a super newbie (as you will see from my code) i'm not sure if i can even get my scalebar to show up without using some form of html code i am using a wms server this is some of my code before the layer definitions: # # Start of map file # MAP # NAME PRDC-demo # background color of image if transparency # is not requested IMAGECOLOR 174 206 180 # default output image dimensions SIZE 600 400 # always returns a map STATUS ON # set top level projection PROJECTION "init=epsg:2961" END #start of the scalebar SCALEBAR STATUS EMBED LABEL SIZE tiny COLOR 0 0 0 OUTLINECOLOR 255 255 255 END STYLE 0 INTERVALS 3 SIZE 100 3 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR TRANSPARENT TRUE #POSTLABELCACHE true END # Scalebar # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # minx miny maxx maxy # sets: # /WMT_MS_Capabilities/Capability/Layer/LatLonBoundingBox(@minx @miny @maxx @maxx) # EXTENT -180 -90 180 90 # World EXTENT 486716 5.01368e+006 572241 5.07531e+006 # add def pointers for symbols SYMBOLSET "../etc/symbols/symbols.sym" FONTSET "../etc/fonts/fonts.txt" SCALEBAR IMAGECOLOR 255 255 255 # background color of the image placeholder LABEL COLOR 0 0 0 # color of the labels indicating the distance SIZE SMALL # size of the labels END SIZE 350 5 # sixe in pixels of the scalebar COLOR 255 255 255 # color used in the scalebar BACKGROUNDCOLOR 0 0 0 # background color of the drawn scalebar OUTLINECOLOR 0 0 0 # outline color of the salebar UNITS kilometers # units to be used INTERVALS 5 # How many intervals in total in the # scalebar STATUS ON # the scalebar is on by default END # # Start of web interface definition WEB # this is the real filepath to the temp dir for intermediate file creation IMAGEPATH "/tmp/ms_tmp/" # this is the web-accessible path to IMAGEPATH IMAGEURL "/ms_tmp/" HEADER "../templates/query_header.html" FOOTER "../templates/query_footer.html" METADATA "map" "/var/www/html/mapserver/service/prdc-demo.map" "ows_schemas_location" " http://schemas.opengeospatial.net" "ows_title" "Pictou County GIS demo" "ows_abstract" "Pictou County GIS demo. Enjoy!" "ows_keywordlist" "mapserver,ogc,workshop" "ows_service_onlineresource" " http://localhost/mapserver/index.html" "ows_fees" "none" "ows_accessconstraints" "none" "wms_contactperson" "Libo Feng" "wms_contactorganization" "Pictou County" "wms_contactposition" "Systems Scientist" "wms_addresstype" "postal" "wms_address" "980 East River rd." "wms_city" "New Glasgow" "wms_stateorprovince" "Nova Scotia" "wms_postcode" "B2H-2G3" "wms_country" "Canada" "wms_contactvoicetelephone" "+01-905-336-4409" "wms_contactfacsimiletelephone" "+01-905-336-4499" "wms_contactelectronicmailaddress" "lfeng at prdc.com" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:4326" "wfs_namespace_uri" " http://localhost/mapserver" "wfs_namespace_prefix" "ms_ogc" "wcs_label" "Sample OWS for MapServer OGC Web Services Workshop" "wcs_description" "Sample OWS for MapServer OGC Web Services Workshop. Enjoy!" "WMS_SLD_SYMBOL_URL" " http://wendy/dot.png" # sets: # /WCS_Capabilities/Service/metadataLink/@xlink:href "wcs_metadatalink_href" " http://devgeo.cciw.ca/index.html" END END # hilite map for GetFeatureInfo "info_format=text/html" # requests QUERYMAP STATUS ON SIZE 200 200 STYLE HILITE COLOR 255 255 0 END # set defaults for GetLegendGraphic requests LEGEND LABEL TYPE BITMAP SIZE MEDIUM COLOR 222 0 0 POSITION cc END END and this is the address i am using for my mapserver: " http://192.168.3.102/cgi-bin/mapserv? map=/var/www/html/mapserver/service/prdc- demo.map&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:2961&mode=scaleb ar&width=600&height=400&layers=cobounds,roads&SLD= http://192.168.3.102/maps erver/service/sld_line_width.xml" i am probably missing something simple any direction would be appreciated thnx -------------- next part -------------- An HTML attachment was scrubbed... URL: From Maarten.van.der.Hoeven at KNMI.NL Tue Jun 28 07:06:49 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Tue, 28 Jun 2005 16:06:49 +0200 Subject: Layer working in mapfile, not (fully) working within PHP Message-ID: Re-sending (might be missed because I send it during the weekend. My apologies if my re-sending seems pushy) === Hi list, thanks for all your help; all suggestions are most useful! My problem is, when I use the layer-definition from the mapfile, the countries as well as the country names are displayed. However, when I dynamically build my layer in PHP (commenting out the whole 'country_name' layer-definition in the mapfile, of course), the countries are displayed okay, but the country names are *not* displayed at all. I do want to display the country names from the layer I defined in the PHP script. Any guru can see what's wrong? All the best, Maarten === mapfile === LAYER NAME country_name METADATA "RESULT_FIELDS" "CNTRY_NAME" END TYPE POLYGON STATUS ON DATA country_eca LABELITEM 'CNTRY_NAME' CLASSITEM 'CNTRY_NAME' CLASS NAME 'CNTRY_NAME' STYLE OUTLINECOLOR 0 0 0 COLOR 255 255 191 END LABEL POSTLABELCACHE TRUE MINFEATURESIZE 40 POSITION CC PARTIALS FALSE COLOR '#000080' SIZE GIANT END END END # layer === php script (part of it) === $layerObj1 = ms_newLayerObj($gpoMap); $layerObj1->set("name","country_name"); $layerObj1->set("type",MS_LAYER_POLYGON); $layerObj1->set("status",MS_ON); $layerObj1->set("data","country_eca"); $layerObj1->set("labelitem","cntry_name"); $layerObj1->set("classitem","cntry_name"); $layerObj1->setMetaData("result_fields","cntry_name"); $classObj1 = ms_newClassObj($layerObj1); $classObj1->set("name","cntry_name"); $styleObj1 = ms_newStyleObj($classObj1); $styleObj1->color->setRGB(255,255,191); $styleObj1->outlinecolor->setRGB(0,0,0); $classObj1->label->set("size",MS_GIANT); $classObj1->label->set("position",MS_CC); $classObj1->label->set("minfeaturesize",40); $classObj1->label->set("partials",MS_FALSE); $classObj1->label->color->setRGB(0,0,80); $layerObj1->draw($img); From kgrootendorst at BAIRD.COM Tue Jun 28 07:09:38 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 28 Jun 2005 09:09:38 -0500 Subject: time series representations in Mapserver Message-ID: Thanks for clearing that up for me. I'll use my mediocre programming skills to see if I can get it to work. Kevin On Tue, 28 Jun 2005 08:47:14 -0500, David Bitner wrote: >No, you do not need WMS at all. It is just that Mapbuilder already >has a client interface set up that does time animations. > >It is very possible to animations just using Mapserver. All you need >in your mapfile is the ability to draw one single map for a single >time. The way you do your animation is by calling that mapfile >several times to create different images with each different time (you >can control the time by using cgi variables and the %% notation in >either the filter or the postgis query for your layer with time >sensitive data as described in previous message in this thread) and >then use javascript to switch between those images. > >On 6/28/05, Kevin Grootendorst wrote: >> So in order to view time series data (as an animation) within a mapserver >> application, I need to define the layer as a WMS layer? Why can't I set up >> a non-WMS layer with Time support? (I guess because MS doesn't support that >> yet?) >> Does anyone have a valid/working .map file with time series support? >> >> Kevin >> >> >> On Thu, 23 Jun 2005 16:21:43 -0500, David Bitner >> wrote: >> >> >Gerry, >> > >> >Did you ever get anything figured out for this? I just came upon this >> >thread again. if you take Uli's reccomendation and go with the WMS >> >Time approach, you can build upon whats been done by the mapbuilder >> >folks (http://mapbuilder.sourceforge.net/). Otherwise if you look on >> >pure javascript resources for information on preloading images (just >> >manipulate the time string that you send to the map requests) and >> >animating them using javascripts setTimeout function. Most of the >> >resources for this are for creating rotating banners on web pages, but >> >the idea holds perfectly well for creating animated maps. I know a >> >couple NWS sites use this approach for radar. I used this on the NWS >> >Hydrologic Remote Sensing Center (http://www.nohrsc.nws.gov) site to >> >animate snow pack (not a mapserver backend, but same idea). >> > >> >David >> >> > >> >> > OK... that's a start. However, I'm looking at weather observations, >> >> > usually they're from fixed sites (well, excluding the storm chasers:-). >> >> > I'm wondering if anything's been done for animation-ish stuff, so I >> >> > could display the temperature contours, or, for instance, a changing >> >> > landscape of wind barbs... >> >> > >> >> > Thanks, Gerry >> >> > >> >> > David Bitner wrote: >> >> > >> >> >>If all you need is to show all of something that fit within a window >> >> >>of time on a single image (ie not an animation) you can either use sql >> >> >>statements with GDAL (I've not done this myself) or if you have your >> >> >>data in PostGIS all you need to do is add substitution variables into >> >> >>your SQL statement. >> >> >> >> >> >>For example, I display flight tracks at an airport using mapserver and >> >> >>I include a startdate and enddate as cgi variables sent to mapserver >> >> >>then in my mapfile use percent notation in my mapfile: >> >> >>DATA "targets from (select * from flighttrack where stime <= '% eDate%' >> >> >>and etime >='%sDate%')as tracks USING UNIQUE opnum USING SRID=-1" >> >> >> >> >> >>On 6/3/05, Gerry Creager N5JXS wrote: >> >> >> >> >> >> >> >> >>>We're looking at several applications where we need some time- >> selection >> >> >>>capabilities. Has anyone done this successfully with Mapserver, and >> if >> >> >>>so, might you share some tips? >> >> >>> >> >> >>>TIA,gerry >> >> >>>-- >> >> >>>Gerry Creager -- gerry.creager at tamu.edu >> >> >>>Texas Mesonet -- AATLT, Texas A&M University >> >> >>>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >> >> >>>Page: 979.228.0173 >> >> >>>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >> >> >>> >> >> >> >> >> >> >> >> > >> >> >> >> >> >> -- >> >> geOps GeoInformatics >> >> D-79100 Freiburg >> >> >> From umberto.nicoletti at GMAIL.COM Tue Jun 28 07:15:18 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 28 Jun 2005 16:15:18 +0200 Subject: [mapserver] Java VM Crashes using the Mapscript API In-Reply-To: Message-ID: This is what I also suspected and this is why I never attempt to release objects on my own, but I always leave it up to the gc. Even in that case a segfault is indeed possible and that's why we need to open an issue on bugzilla so that the developers know. A patch is probably not too difficult to develop if only I had more time :-( Regards, Umberto On 6/28/05, Benedikt Rothe wrote: > > Hallo Umberto and Christian > > Christian reported a crash in layerObj.delete() which I > also detected. > I think I understood the following: > > Let's say, we have an initialized mapObj mO; > > layerObj lO = new layerObj(mO); > // Say lO is the 5th layer now. > // Now lO.swigCMemOwn == true and > // lO.swigCPtr points onto the mO.swigCPtr->layers[4] > > ... > // now the mapObj is deleted but the Java-layerObj continues to live. > // the C-layer-Object mO.swigCPtr->layers[4] will deleted and freed also! > mO.delete() > // From now on O.swigCPtr points into invalid piece of C-memory. > ... > > Later on the Java-garbage-collector finalizes the layerObj. > > Because of "lO.swigCMemOwn == true" and "lO.swigCPtr!=0" the finalize-method > calls > layerObj.delete(). This method frees lO.swigCPtr which is invalid memory. > > Same story about layerObj/classObj. > > Benedikt Rothe > > > > UMN MapServer Users List schrieb am > 28.06.2005 12:16:01: > > > > Hello Umberto, > > > > Umberto Nicoletti wrote: > > > > >Hi Christian, > > >I do not think the error you are getting is due to threading issues, > > >but trying what Mario suggests will at least narrow the search field. > > > > > >In case you are still getting errors even with synchronized code > > >blocks I have a few questions for you to help me understand your > > >setup: > > >Do you always get errors in delete_classObj or do the segfaults happen > > >in different functions? > > > > > > > > Yes, the segfaults alway happen in the delete_classObj function. > > > > >If the segfault is always caused by > > >delete_ClassObj then I suppose you are creating class objects in your > > >java code. Is that true? > > > > > > > > Yes, that's true, I need to create classObjects. > > > > >If that is the case then we can setup a very simple test to reproduce > > >the problem: modify one of the examples so that it will load a map and > > >then start adding classes in similar fashion to your code, but in a > > >tight loop. Classes should be made eligible for gc by dropping all > > >references to them. As soon as gc kicks in the vm should crash. At > > >that point it will be clear that the problem is in delete_ClassObj and > > >the hunting season will be open. > > > > > > > > I have tested a proposed solution by Benedikt Rothe yet, which said that > > one should call the delete method of the classObject after it is not > > needed any more. > > This confirms my assumption that this problem occours when java's > > garbage-collector destroys the null-referenced objects. Now it seems to > > work properly. > > > > The mapserver version we actually use is 4.4.1, we have tested 4.4.2, > > 4.2.4 and 4.6.0, too before. > > > > Thank you all for your help! > > > > Best Regards, > > Christian :-) > > > > > > >BTW can you report the mapserver version you are using (I have 4.4.2 > > >and I know it works, so if you can use that). > > > > > >Best Regards, > > >Umberto > > > > > >On 6/21/05, Christian Schroeder wrote: > > > > > > > > >>Hello Umberto, > > >> > > >>thank your for your immediate answer. > > >>I do not call the delete_ methody directly and don't think I am using > > >>special gc parameters. > > >> > > >>And... I have read the README file before compiling the mapserver :-) > > >> > > >>I will try to get it to work with "synchronized"-flags als Mario Basa > > >>supposed. > > >> > > >>Thank you! > > >> > > >>Christian > > >> > > >> > > >>Umberto Nicoletti schrieb: > > >> > > >> > > >> > > >>>Christian, > > >>>are you calling the delete_ methods directly in your code or are you > > >>>using some special gc paramaters? > > >>> > > >>>As a side note the --use-threads option to configure is *absolutely* > > >>>necessary, as are brakes on your car. I think we should write it in > > >>>the README (as if someone actually cared to read it :-( ). > > >>> > > >>>Best regards, > > >>>Umberto > > >>> > > >>> > > >>>On 6/21/05, Sean Gillies wrote: > > >>> > > >>> > > >>> > > >>> > > >>>>I'm forwarding this to the users list. Hopefully, Umberto will be > able > > >>>>to provide some insight. > > >>>> > > >>>>cheers, > > >>>>Sean > > >>>> > > >>>>On Jun 16, 2005, at 5:08 PM, Christian Schr?der wrote: > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>Dear Mr. Gillies, > > >>>>> > > >>>>>some weeks ago me and Florian Pepping contacted you because we had > > >>>>>problems using the Java Mapscript API. Thanks to you we could solve > > >>>>>these problems :-) > > >>>>> > > >>>>>Now we got our program doing what it's supposed to do but there is > > >>>>>still a big problem left which we were not able to solve yet: > > >>>>>We created a simple servlet which is created inside a Tomcat 5.0 > > >>>>>Webserver. This servlet created a map image (png/jpg) and displays > > >>>>>some specified objects on the map. (We use it for location based > > >>>>>services --> "show me the position of the next printer"). > > >>>>>After an irregular number of calls of our servlet which uses the > Java > > >>>>>Mapscript API the complete Java VM and with it the Tomcat crashes. I > > >>>>>attached the error report below. The program works properly for a > > >>>>>number of calls (between 5 and 1000 :-) ) and after that it crashes. > > >>>>>We have tried several versions of the mapserver (4.4.1, 4.4.2, > 4.2.4, > > >>>>>4.6.1 RC1) and compiled the Java Mapscript Module with JDK 1.4.2 and > > >>>>>1.5.0. We also configured mapserver using the --with-threads option, > > >>>>>but all this did not help. By the way the mapserv cgi-module works > > >>>>>properly. > > >>>>> > > >>>>>Do you have an idea for this? > > >>>>> > > >>>>>Thanks for your anxiety > > >>>>> > > >>>>>Christian & Florian > > >>>>>University of Paderborn, Germany > > >>>>> > > >>>>> > > > >>>>>------------------------------------------------------------------- > > >>>>> > > >>>>>JavaMapscriptLoader: mapscript native library has been loaded. > > >>>>>* mapscript native library loaded * > > >>>>> > > >>>>>An unexpected exception has been detected in native code outside the > > >>>>>VM. > > >>>>>Unexpected Signal : 11 occurred at PC=0x3338268 > > >>>>>Function=delete_classObj+0x8 > > >>>>>Library=/usr/lib/libmapscript.so > > >>>>> > > >>>>>Current Java thread: > > >>>>> at > edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > > >>>>>Method) > > >>>>> at > edu.umn.gis.mapscript.classObj.delete(classObj.java:32) > > >>>>> at > edu.umn.gis.mapscript.classObj.finalize(classObj.java:26) > > >>>>> at > java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > > >>>>> at > java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > > >>>>> at > java.lang.ref.Finalizer.access$100(Finalizer.java:14) > > >>>>> at > > > >>>>>java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) > > >>>>> > > >>>>>Dynamic libraries: > > >>>>>Can not get information for pid = 10558 > > >>>>> > > >>>>>Heap at VM Abort: > > >>>>>Heap > > >>>>>def new generation total 1152K, used 135K [0x08ae0000, 0x08c20000, > > >>>>>0x08fc0000) > > >>>>> eden space 1024K, 0% used [0x08ae0000, 0x08ae4078, 0x08be0000) > > >>>>> from space 128K, 100% used [0x08c00000, 0x08c20000, 0x08c20000) > > >>>>> to space 128K, 0% used [0x08be0000, 0x08be0000, 0x08c00000) > > >>>>>tenured generation total 15048K, used 13624K [0x08fc0000, > > >>>>>0x09e72000, > > >>>>>0x0cae0000) > > >>>>> the space 15048K, 90% used [0x08fc0000, 0x09d0e1c0, 0x09d0e200, > > >>>>>0x09e72000) > > >>>>>compacting perm gen total 18432K, used 18373K [0x0cae0000, > > >>>>>0x0dce0000, > > >>>>>0x10ae0000) > > >>>>> the space 18432K, 99% used [0x0cae0000, 0x0dcd1618, 0x0dcd1800, > > >>>>>0x0dce0000) > > >>>>> > > >>>>>Local Time = Tue Jun 14 15:32:19 2005 > > >>>>>Elapsed Time = 246 > > >>>>># > > >>>>># The exception above was detected in native code outside the VM > > >>>>># > > >>>>># Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) > > >>>>># > > >>>>># An error report file has been saved as /tmp/hs_err_pid10558.log. > > >>>>># Please refer to the file for further information. > > >>>>># > > >>>>> > > > >>>>>------------------------------------------------------------------- > > >>>>> > > >>>>>On Mar 22, 2005, at 12:02 PM, Florian Pepping wrote: > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>>>Dear Mr. Gillies, > > >>>>>> > > >>>>>>I'm a student of the University of Paderborn in Germany and member > of > > >>>>>>the project group "Location Based Services for Wireless Devices". > In > > >>>>>>this project we try to position laptops and other WLAN-enabled > > >>>>>>devices using the signal strength of the WLAN. According to their > > >>>>>>position, we want to offer location based services to the persons > > >>>>>>using the devices (where I am; where's the next printer; is there > a > > >>>>>>friend nearby) > > >>>>>> > > >>>>>>In order to do this, we want to use your mapserver and the Java > > >>>>>>Mapscript API to generate maps according to the actual position and > > >>>>>>situation. We like to customize the map of our building and add > > >>>>>>points, lines and so on. > > >>>>>> > > >>>>>>We have been able to compile the whole mapserver and the Java > > >>>>>>Mapscript API. A small Java example also works, which presents an > > >>>>>>unchanged map of our building. > > >>>>>> > > >>>>>>[...] > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>> > > >>> > > >>> > > >>> > > > > > > > > > > > > > From sgillies at FRII.COM Tue Jun 28 07:27:45 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 28 Jun 2005 08:27:45 -0600 Subject: error in make mapscript/tcl In-Reply-To: Message-ID: On Jun 28, 2005, at 12:53 AM, Nikos wrote: > Philip Dillon-Thiselton wrote: > >> Hello, >> >> I am developing a GIS live CD for Arch Linux but I am having trouble >> making the tcl mapscript modules. Here is the output: >> >> [root] tcl: make >> gcc -pipe -c -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 >> -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 >> -DHAVE_PTHREAD_ATFORK=1 -DHAVE_READDIR_R=1 >> -DHAVE_THREE_ARG_READDIR_R=1 >> -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long >> long >> -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 >> -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 >> -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 >> -DHAVE_WAITPID=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 >> -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 >> -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 >> -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 >> -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 >> -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -fPIC \ >> -I/usr/include \ >> -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_TIFF >> -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT >> -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL >> -DUSE_GEOS -DUSE_WMS_SVR -I. -I/usr/include -I/usr/include >> -I/usr/include \ >> -DUSE_TCL_STUBS -DITCL_NAMESPACES -DItcl_Namespace=int >> -D"spaceId=spcid;Tcl_InitStubs(interp,\"8.1\",0)" \ >> mapscript_wrap.c >> gcc: long: No such file or directory >> mapscript_wrap.c: In function `imageObj_saveToString': >> mapscript_wrap.c:3078: warning: return makes pointer from integer >> without a cast >> make: *** [stublib] Error 1 >> >> Would be very grateful for any help as we would like to include >> mapserver workbench. >> >> Cheers Phil > > Hi, > > You're probabbly using tcl8.4 IIRC, compiling/linking against tcl8.3x > gets around this problem...but it's been a while.. > > regards, > > nicolas > The Tcl mapscript has been unmaintained since MapServer 3.5, about 3 years ago. It probably wouldn't be a great amount of work to get it running again, but I doubt that it will work right away. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From sgillies at FRII.COM Tue Jun 28 07:31:55 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 28 Jun 2005 08:31:55 -0600 Subject: Mapscript/cloneMap/Processing In-Reply-To: Message-ID: On Jun 28, 2005, at 6:14 AM, Benedikt Rothe wrote: > Dies ist eine mehrteilige Nachricht im MIME-Format. > --=_alternative 00433F71C125702E_= > Content-Type: text/plain; charset="US-ASCII" > > Hallo List > > We are using MapScript/Java inside Tomcat. > We encountered a crash in webObj.cloneMap() when > a PROCESSING-statement was used inside a Layer-Block. > > My impression is, that there is a bug in mapcopy.c/msCopyLayer (?) > > I think: After the line > MS_COPYSTELEM(numprocessing); > and before the loop > for (i = 0; i < dst->numprocessing; i++) {...} > a memory-allocation for dst->processing is missing. > > I made a change: > MS_COPYSTELEM(numprocessing); //OLD > // Allocating an initializing memory for processing-array. > // Must be dst->numprocessing+1 to be 0-terminated. > dst->processing = numprocessing ? > (char*) > calloc(dst->numprocessing+1,sizeof(char*)) : > 0; > for (i = 0; i < dst->numprocessing; i++) { //OLD > ... > > I hope this is helpful. Greetings > Benedikt Rothe Hi Benedikt, If you will enter a new issue in our tracker http://mapserver.gis.umn.edu/bugs/enter_bug.cgi under the MapServer C Library component, and assign it to sgillies at frii.com, I will fix this right away. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From superbla3000 at GMX.NET Tue Jun 28 07:35:40 2005 From: superbla3000 at GMX.NET (joerg p) Date: Tue, 28 Jun 2005 16:35:40 +0200 Subject: polygon points from shapefile Message-ID: hello, is it possible, to get the points of a polygon from a shapefile in an array via phpmapscript? So that I get e.g. ((49.12390,5.283990),(49,238238,5,23423442),....) thanks Joerg From stevem at SPATIALMAPPING.COM Tue Jun 28 07:54:30 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Tue, 28 Jun 2005 09:54:30 -0500 Subject: How to query for polygon attributes using PHPMapscript? Message-ID: Yes, queryByPoint() can certainly return multiple shapes. The main reason is that queryByPoint() actually queries not just a single point, but a circular area with a radius of TOLERANCE. Furthermore, even when the query TOLERANCE is zero, it is possible that multiple features of a layer may overlap at a given point. Regards, -SM -- On Mon, 27 Jun 2005 00:29:14 -0500, John wrote: >Doh! It must be Murphy's law for asking lists: I stumbled upon a PHP query >example in the list archive soon after I submitted my question. It was in a >post by Jerod Clabaugh, dated 11-Mar-2005, titled "MapScript queryByPoint >index error". His logic is, essentially: > >if ( MS_SUCCESS == @$layer->queryByPoint( $point, MS_MULTIPLE, -1 ) ) { > $layer->open(); > for( $i = 0; $i < $layer->getNumResults(); $i++ ){ > $shape = $layer->getShape(-1, $layer->getResult($i)->shapeindex ); > // Do what I want with $shape->values; > } > $layer->close(); >} > >One question: why use MS_MULTIPLE? Can queryByPoint() return multiple >shapes? > >-John > > >----- Original Message ----- >From: "John" >Sent: Sunday, June 26, 2005 9:37 PM >Subject: How to query for polygon attributes using PHPMapscript? > > >> Hi, >> >> I don't understand how a query works using PHP/Mapscript. >> ... >> >> -John From adams at TERRESTRIS.DE Tue Jun 28 08:14:32 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 28 Jun 2005 17:14:32 +0200 Subject: polygon points from shapefile In-Reply-To: Message-ID: joerg p wrote: > hello, > > is it possible, to get the points of a polygon from a shapefile in an > array via phpmapscript? > So that I get e.g. ((49.12390,5.283990),(49,238238,5,23423442),....) > > thanks > Joerg Joerg, why not using Mapserver as WFs Server? with the getFeature request you'll get the data as GML. Get more info on that topic on: http://ms.gis.umn.edu/docs/howto/wfs_server Cheers, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From David.Hunter at FNF.COM Tue Jun 28 08:57:06 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Tue, 28 Jun 2005 10:57:06 -0500 Subject: seamless layers Message-ID: I am using MapServer 4.4.1 CGI with Tomcat 5 and Windows 2000. I am experimenting with things, and producing some maps using MapInfo .TAB files. I cannot get seamless layers to work. I googled on this and found some threads that made it sound like it was possible to make them work, what might I be doing wrong? When using MapInfo files, how is it best to set up large layers that are normally county-based, such as streets or water? Do you set up a map file with thousands of county-based layers, or create one large national street or water layer in MapInfo? Seamless layers would be very nice to use for this... David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Tue Jun 28 09:05:52 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 28 Jun 2005 12:05:52 -0400 Subject: seamless layers In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B2D7126@smbfnis-chi01.fnis.com> Message-ID: David, mapserver does this with tileindexes. You would (for shapefiles) typically create a tileindex which references all the street files from all the directories and then define a layer in the mapfile that references the tileindex. Mapserver then searchs the tilinex for files that need to be displayed and displays them all. You have to set up a tileindex for each layer unless you want to get fancy, and all the files in the tileindex MUST have the same attribute columns presented in the same order. I believe gdal has the same concept if you are using that. -Steve W. Hunter, David - St. Louis Park, MN wrote: > I am using MapServer 4.4.1 CGI with Tomcat 5 and Windows 2000. I am > experimenting with things, and producing some maps using MapInfo .TAB > files. I cannot get seamless layers to work. I googled on this and > found some threads that made it sound like it was possible to make them > work, what might I be doing wrong? > > > > When using MapInfo files, how is it best to set up large layers that are > normally county-based, such as streets or water? Do you set up a map > file with thousands of county-based layers, or create one large national > street or water layer in MapInfo? Seamless layers would be very nice to > use for this? > > > > *David S. Hunter* > /Sr. Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Financial > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > /? /Email: david.hunter at fnf.com > /' /Phone: 952.542.1440 ext. 256 > /7 /Fax: 952.542.3859/// > > > From osgis.lists at GMAIL.COM Tue Jun 28 09:09:23 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Tue, 28 Jun 2005 11:09:23 -0500 Subject: time series representations in Mapserver In-Reply-To: Message-ID: An example of this type of animation can be found here: http://www.nohrsc.noaa.gov/nsa/js_animate.html?year=2005&month=4&day=24&type=nsm_depth®ion=National This example does not use mapserver, but the idea is independent of what is creating the map. If you view the source of the page, you can see that there are two arrays that get filled with the image locations and a string containing the date to be displayed with each image. To make this logic with mapserver, in place of each image will be a call to the Mapserver CGI with the correct parameters to view the particular date and REQUEST=map. If you search google for javascript animation, you can find a lot of examples. The main difference is that rather than rotating through advertising banners, you are rotating through maps so your http://foo.com/image.jpg will instead be http://foo.com/cgi-bin/mapserv?map=foo.map&extents=....(have a server side script input all your GET parameters separated by ampersands )... &date=2005/06/05 David From superbla3000 at GMX.NET Tue Jun 28 09:41:07 2005 From: superbla3000 at GMX.NET (joerg p) Date: Tue, 28 Jun 2005 18:41:07 +0200 Subject: polygon points from shapefile In-Reply-To: <42C16958.5020208@terrestris.de> Message-ID: thanks, I am gonna learn it. But is this the only possibility? Isn't there a 'usual' phpmapscript command? Joerg Till Adams schrieb: > joerg p wrote: > >> hello, >> >> is it possible, to get the points of a polygon from a shapefile in an >> array via phpmapscript? >> So that I get e.g. ((49.12390,5.283990),(49,238238,5,23423442),....) >> >> thanks >> Joerg > > > Joerg, > > why not using Mapserver as WFs Server? with the getFeature request > you'll get the data as GML. > > Get more info on that topic on: > http://ms.gis.umn.edu/docs/howto/wfs_server > > > Cheers, Till > From David.Hunter at FNF.COM Tue Jun 28 09:54:09 2005 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Tue, 28 Jun 2005 11:54:09 -0500 Subject: seamless layers Message-ID: Yes, I am using GDAL/OGR. It looks like I have to use the ogrtindex utility to create a tileindex file, instead of MapInfo Pro to create a seamless layer, correct? Does the TILEINDEX entry in the .map file then refer to the tileindex.tab file, instead of a CONNECTION entry? BTW, I haven't been able to access maptools.org since at least last Friday, are they having server or ISP problems? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Tuesday, June 28, 2005 11:06 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] seamless layers David, mapserver does this with tileindexes. You would (for shapefiles) typically create a tileindex which references all the street files from all the directories and then define a layer in the mapfile that references the tileindex. Mapserver then searchs the tilinex for files that need to be displayed and displays them all. You have to set up a tileindex for each layer unless you want to get fancy, and all the files in the tileindex MUST have the same attribute columns presented in the same order. I believe gdal has the same concept if you are using that. -Steve W. Hunter, David - St. Louis Park, MN wrote: > I am using MapServer 4.4.1 CGI with Tomcat 5 and Windows 2000. I am > experimenting with things, and producing some maps using MapInfo .TAB > files. I cannot get seamless layers to work. I googled on this and > found some threads that made it sound like it was possible to make them > work, what might I be doing wrong? > > > > When using MapInfo files, how is it best to set up large layers that are > normally county-based, such as streets or water? Do you set up a map > file with thousands of county-based layers, or create one large national > street or water layer in MapInfo? Seamless layers would be very nice to > use for this... > > > > *David S. Hunter* > /Sr. Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Financial > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > /? /Email: david.hunter at fnf.com > /' /Phone: 952.542.1440 ext. 256 > /7 /Fax: 952.542.3859/// > > > From woodbri at SWOODBRIDGE.COM Tue Jun 28 09:59:32 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 28 Jun 2005 12:59:32 -0400 Subject: polygon points from shapefile In-Reply-To: Message-ID: joerg p wrote: > thanks, I am gonna learn it. > But is this the only possibility? Isn't there a 'usual' phpmapscript > command? Yes, you can do it via mapscript. Sorry, I don't have the code for it, but you might check the wiki. Also look at the perl mapscript examples, they can be ported to php without much trouble. -Steve W. > Joerg > > Till Adams schrieb: > >> joerg p wrote: >> >>> hello, >>> >>> is it possible, to get the points of a polygon from a shapefile in an >>> array via phpmapscript? >>> So that I get e.g. ((49.12390,5.283990),(49,238238,5,23423442),....) >>> >>> thanks >>> Joerg >> >> >> >> Joerg, >> >> why not using Mapserver as WFs Server? with the getFeature request >> you'll get the data as GML. >> >> Get more info on that topic on: >> http://ms.gis.umn.edu/docs/howto/wfs_server >> >> >> Cheers, Till >> > From racine_pierre at HOTMAIL.COM Tue Jun 28 10:06:48 2005 From: racine_pierre at HOTMAIL.COM (Pierre Racine) Date: Tue, 28 Jun 2005 17:06:48 +0000 Subject: Problem with SIZEITEM In-Reply-To: <42C04E13.1070505@dmsolutions.ca> Message-ID: Thanks Jeff, That's the only way I found to create a proportional symbol map. Is there any other way to achieve this? Pierre >From: Jeff McKenna >To: Pierre Racine >CC: MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] Problem with SIZEITEM >Date: Mon, 27 Jun 2005 15:05:55 -0400 > >I've filed a bug about this, because i get the same response that you do on >a point file (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1398). > >jeff > > > > > >Pierre Racine wrote: >>Hi, >> >>Anybody tried the SIZEITEM with Mapserver 4.6? >> >>If I publish the minimal map file with SIZEITEM based on an integer >>attribute, the size of the symbol doesn't change. Worse: if I add a LABEL >>definition, Mapserver crashes, publishing only half a jpeg. >> >>Here is my mapfile with the LABLE definition: >> >>MAP >> #IMAGETYPE JPEG >> EXTENT 189775 4716305 731662 5472414 >> SIZE 400 600 >> SHAPEPATH "data\shp" >> FONTSET "D:\ms4w\fonts\fonts.txt" >> >> SYMBOL >> NAME "circle" >> TYPE ellipse >> FILLED true >> POINTS >> 8 8 >> END >> END >> >> PROJECTION >> "init=epsg:102010" >> END >> >> LAYER # States polygon layer begins here >> NAME escale >> DATA escale >> STATUS DEFAULT >> TYPE POINT >> >> PROJECTION >> "init=epsg:102010" >> END >> >> LABELITEM "id" >> CLASS >> STYLE >> SYMBOL "circle" >> SIZEITEM "duration" >> COLOR 1 255 1 >> #SIZE 28 >> #MINSIZE 12 >> OUTLINECOLOR 0 0 0 >> END >> LABEL >> COLOR 155 135 0 >> TYPE TRUETYPE >> FONT arial >> SIZE 12 >> FORCE true >> POSITION uc >> >> END #LABEL >> END #CLASS >> END #LAYER >>END >> >>Pierre Racine >> > > >-- >Jeff McKenna >DM Solutions Group Inc. >http://www.dmsolutions.ca > From jmckenna at DMSOLUTIONS.CA Tue Jun 28 10:18:27 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 28 Jun 2005 13:18:27 -0400 Subject: Problem with SIZEITEM In-Reply-To: Message-ID: I was using SIZEITEM to modify the distance between hatched lines for the new HATCH symbol type, so i don't think that helps you. jeff Pierre Racine wrote: > Thanks Jeff, > > That's the only way I found to create a proportional symbol map. Is > there any other way to achieve this? > > Pierre > >> From: Jeff McKenna >> To: Pierre Racine >> CC: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Problem with SIZEITEM >> Date: Mon, 27 Jun 2005 15:05:55 -0400 >> >> I've filed a bug about this, because i get the same response that you >> do on a point file >> (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1398). >> >> jeff >> >> >> >> >> >> Pierre Racine wrote: >> >>> Hi, >>> >>> Anybody tried the SIZEITEM with Mapserver 4.6? >>> >>> If I publish the minimal map file with SIZEITEM based on an integer >>> attribute, the size of the symbol doesn't change. Worse: if I add a >>> LABEL >>> definition, Mapserver crashes, publishing only half a jpeg. >>> >>> Here is my mapfile with the LABLE definition: >>> >>> MAP >>> #IMAGETYPE JPEG >>> EXTENT 189775 4716305 731662 5472414 >>> SIZE 400 600 >>> SHAPEPATH "data\shp" >>> FONTSET "D:\ms4w\fonts\fonts.txt" >>> >>> SYMBOL >>> NAME "circle" >>> TYPE ellipse >>> FILLED true >>> POINTS >>> 8 8 >>> END >>> END >>> >>> PROJECTION >>> "init=epsg:102010" >>> END >>> >>> LAYER # States polygon layer begins here >>> NAME escale >>> DATA escale >>> STATUS DEFAULT >>> TYPE POINT >>> >>> PROJECTION >>> "init=epsg:102010" >>> END >>> >>> LABELITEM "id" >>> CLASS >>> STYLE >>> SYMBOL "circle" >>> SIZEITEM "duration" >>> COLOR 1 255 1 >>> #SIZE 28 >>> #MINSIZE 12 >>> OUTLINECOLOR 0 0 0 >>> END >>> LABEL >>> COLOR 155 135 0 >>> TYPE TRUETYPE >>> FONT arial >>> SIZE 12 >>> FORCE true >>> POSITION uc >>> >>> END #LABEL >>> END #CLASS >>> END #LAYER >>> END >>> >>> Pierre Racine -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From fr-ms at TOURDE.ORG Tue Jun 28 10:33:47 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-1?q?Fran=E7ois_TOURDE?=) Date: Tue, 28 Jun 2005 19:33:47 +0200 Subject: GRIDS and Graticule In-Reply-To: <00b001c57be8$83a5fdd0$160002c0@shark> (Brent Fraser's message of "Tue, 28 Jun 2005 07:51:42 -0600") Message-ID: Le 12962i?me jour apr?s Epoch, Brent Fraser ?crivait: > Fran?ois, > > Here's the documentation explanation, along with some of my notes on the > parameters: Many thanks for your reply. > MINARCS [double] > The minimum number of arcs to draw. > The minimum number of graticule lines to draw on the map. Use this > parameter to get more lines. > > MAXARCS [double] > The maximum number of arcs to draw. > The maximum number of graticule lines to draw on the map. Use this > parameter to get fewer lines. Thanks for the explanation. Unfortunately it is what I have understood. And it doesn't works for me. When I use "MAXARCS 10" for example, and zooming out on the map, there is lot (more than 10) graticule lines. I use MAPSERVER V4.4.1 (stock Debian packets) > MININTERVAL [double] [...] > MAXINTERVAL [double] Idem. > MINSUBDIVIDE [double] > MAXSUBDIVIDE [double] Not yet used... I'm waiting for previous parms to work. ;) -- Your aims are high, and you are capable of much. From hetzerrr at GMAIL.COM Tue Jun 28 12:07:19 2005 From: hetzerrr at GMAIL.COM (John Novak) Date: Tue, 28 Jun 2005 12:07:19 -0700 Subject: GRIDS and Graticule In-Reply-To: <877jgev11g.fsf@fermat.localhost> Message-ID: Please attach the .map file you're using On 6/28/05, Fran?ois TOURDE wrote: > Le 12962i?me jour apr?s Epoch, > Brent Fraser ?crivait: > > > Fran?ois, > > > > Here's the documentation explanation, along with some of my notes on the > > parameters: > > Many thanks for your reply. > > > MINARCS [double] > > The minimum number of arcs to draw. > > The minimum number of graticule lines to draw on the map. Use this > > parameter to get more lines. > > > > MAXARCS [double] > > The maximum number of arcs to draw. > > The maximum number of graticule lines to draw on the map. Use this > > parameter to get fewer lines. > > Thanks for the explanation. Unfortunately it is what I have > understood. And it doesn't works for me. > > When I use "MAXARCS 10" for example, and zooming out on the map, there > is lot (more than 10) graticule lines. > > I use MAPSERVER V4.4.1 (stock Debian packets) > > > MININTERVAL [double] > [...] > > MAXINTERVAL [double] > > Idem. > > > MINSUBDIVIDE [double] > > MAXSUBDIVIDE [double] > > Not yet used... I'm waiting for previous parms to work. ;) > > -- > Your aims are high, and you are capable of much. > From Debbie.Pagurek at EC.GC.CA Tue Jun 28 13:03:36 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Tue, 28 Jun 2005 16:03:36 -0400 Subject: No subject Message-ID: Wendy, your URL is combining basic MapServer CGI commands (e.g. mode=scalebar) with OGC WMS requests (e.g. request=GetMap). Stick to basic mapserver CGI commands to start with to see your map e.g. something like: http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserver/service /prdc-demo.map&mode=map&layers=cobounds Then once you have that, move onto setting up the GetMap request. Also - I don't think mapserver will like your extent (I don't think you can do the e+006 part, but double check this): EXTENT 486716 5.01368e+006 572241 5.07531e+006 I think you need to check your online resource as well (that's for the OGC WMS request part) for reference for Mapserver CGI: http://mapserver.gis.umn.edu/doc44/cgi-reference.html reference for OGC WMS requests: http://mapserver.gis.umn.edu/doc44/wms-server-howto.html Good luck - I think you're very close. D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Wendy Arbuckle Sent: Tuesday, June 28, 2005 9:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] i am a super newbie (as you will see from my code) i'm not sure if i can even get my scalebar to show up without using some form of html code i am using a wms server this is some of my code before the layer definitions: # # Start of map file # MAP # NAME PRDC-demo # background color of image if transparency # is not requested IMAGECOLOR 174 206 180 # default output image dimensions SIZE 600 400 # always returns a map STATUS ON # set top level projection PROJECTION "init=epsg:2961" END #start of the scalebar SCALEBAR STATUS EMBED LABEL SIZE tiny COLOR 0 0 0 OUTLINECOLOR 255 255 255 END STYLE 0 INTERVALS 3 SIZE 100 3 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR TRANSPARENT TRUE #POSTLABELCACHE true END # Scalebar # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # minx miny maxx maxy # sets: # /WMT_MS_Capabilities/Capability/Layer/LatLonBoundingBox(@minx @miny @maxx @maxx) # EXTENT -180 -90 180 90 # World EXTENT 486716 5.01368e+006 572241 5.07531e+006 # add def pointers for symbols SYMBOLSET "../etc/symbols/symbols.sym" FONTSET "../etc/fonts/fonts.txt" SCALEBAR IMAGECOLOR 255 255 255 # background color of the image placeholder LABEL COLOR 0 0 0 # color of the labels indicating the distance SIZE SMALL # size of the labels END SIZE 350 5 # sixe in pixels of the scalebar COLOR 255 255 255 # color used in the scalebar BACKGROUNDCOLOR 0 0 0 # background color of the drawn scalebar OUTLINECOLOR 0 0 0 # outline color of the salebar UNITS kilometers # units to be used INTERVALS 5 # How many intervals in total in the # scalebar STATUS ON # the scalebar is on by default END # # Start of web interface definition WEB # this is the real filepath to the temp dir for intermediate file creation IMAGEPATH "/tmp/ms_tmp/" # this is the web-accessible path to IMAGEPATH IMAGEURL "/ms_tmp/" HEADER "../templates/query_header.html" FOOTER "../templates/query_footer.html" METADATA "map" "/var/www/html/mapserver/service/prdc-demo.map" "ows_schemas_location" "http://schemas.opengeospatial.net" "ows_title" "Pictou County GIS demo" "ows_abstract" "Pictou County GIS demo. Enjoy!" "ows_keywordlist" "mapserver,ogc,workshop" "ows_service_onlineresource" "http://localhost/mapserver/index.html" "ows_fees" "none" "ows_accessconstraints" "none" "wms_contactperson" "Libo Feng" "wms_contactorganization" "Pictou County" "wms_contactposition" "Systems Scientist" "wms_addresstype" "postal" "wms_address" "980 East River rd." "wms_city" "New Glasgow" "wms_stateorprovince" "Nova Scotia" "wms_postcode" "B2H-2G3" "wms_country" "Canada" "wms_contactvoicetelephone" "+01-905-336-4409" "wms_contactfacsimiletelephone" "+01-905-336-4499" "wms_contactelectronicmailaddress" "lfeng at prdc.com" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:4326" "wfs_namespace_uri" "http://localhost/mapserver" "wfs_namespace_prefix" "ms_ogc" "wcs_label" "Sample OWS for MapServer OGC Web Services Workshop" "wcs_description" "Sample OWS for MapServer OGC Web Services Workshop. Enjoy!" "WMS_SLD_SYMBOL_URL" "http://wendy/dot.png" # sets: # /WCS_Capabilities/Service/metadataLink/@xlink:href "wcs_metadatalink_href" "http://devgeo.cciw.ca/index.html" END END # hilite map for GetFeatureInfo "info_format=text/html" # requests QUERYMAP STATUS ON SIZE 200 200 STYLE HILITE COLOR 255 255 0 END # set defaults for GetLegendGraphic requests LEGEND LABEL TYPE BITMAP SIZE MEDIUM COLOR 222 0 0 POSITION cc END END and this is the address i am using for my mapserver: "http://192.168.3.102/cgi-bin/mapserv ? map=/var/www/html/mapserver/service/prdc- demo.map&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:2961&mode=sca leb ar&width=600&height=400&layers=cobounds,roads&SLD=http://192.168.3.102/m aps erver/service/sld_line_width.xml" i am probably missing something simple any direction would be appreciated thnx -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Tue Jun 28 13:19:21 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 28 Jun 2005 14:19:21 -0600 Subject: GRIDS and Graticule Message-ID: Fran?ois, I think the MIN/MAXARCS parameter values in the map file are just "hints" for the grid/graticule portion of mapserver, it will show a few more or less lines to ensure the lines are drawn at "good" intervals. Using a value of MAXARCS 5 and zooming in and out, I get from 3 to 9 lines. Here's an example of a grid layer for the Itasca demo/workshop: LAYER NAME "grid" METADATA "DESCRIPTION" "Grid" END TYPE LINE STATUS ON CLASS NAME "Graticule" COLOR 150 150 150 LABEL COLOR 150 150 150 # FONT arial TYPE bitmap SIZE medium POSITION AUTO PARTIALS FALSE BUFFER 5 OUTLINECOLOR 255 255 255 END END # PROJECTION # "init=epsg:4269" # END GRID # LABELFORMAT "%g?" # MAXARCS 5 LABELFORMAT "%7.0f m" # show UTM coords MININTERVAL 20000 # fixed grid no matter what the scale END END # Layer If you want show a Decimal Degree graticule, change it to: PROJECTION "init=epsg:4269" END GRID LABELFORMAT "%g?" MAXARCS 5 # LABELFORMAT "%7.0f m" # show UTM coords # MININTERVAL 20000 # fixed grid no matter what the scale Brent Fraser ----- Original Message ----- From: "Fran?ois TOURDE" To: Sent: Tuesday, June 28, 2005 11:33 AM Subject: Re: [UMN_MAPSERVER-USERS] GRIDS and Graticule > Le 12962i?me jour apr?s Epoch, > Brent Fraser ?crivait: > > > Fran?ois, > > > > Here's the documentation explanation, along with some of my notes on the > > parameters: > > Many thanks for your reply. > > > MINARCS [double] > > The minimum number of arcs to draw. > > The minimum number of graticule lines to draw on the map. Use this > > parameter to get more lines. > > > > MAXARCS [double] > > The maximum number of arcs to draw. > > The maximum number of graticule lines to draw on the map. Use this > > parameter to get fewer lines. > > Thanks for the explanation. Unfortunately it is what I have > understood. And it doesn't works for me. > > When I use "MAXARCS 10" for example, and zooming out on the map, there > is lot (more than 10) graticule lines. > > I use MAPSERVER V4.4.1 (stock Debian packets) > > > MININTERVAL [double] > [...] > > MAXINTERVAL [double] > > Idem. > > > MINSUBDIVIDE [double] > > MAXSUBDIVIDE [double] > > Not yet used... I'm waiting for previous parms to work. ;) > > -- > Your aims are high, and you are capable of much. From racine_pierre at HOTMAIL.COM Tue Jun 28 13:21:02 2005 From: racine_pierre at HOTMAIL.COM (Pierre Racine) Date: Tue, 28 Jun 2005 15:21:02 -0500 Subject: Proportional Symbol Map in Mapserver Message-ID: Hi, Does anyone know how to build a proportional symbol map with simple circle in a mapfile? I know I could make many different CLASS using EXPRESSION but I want the size of my circle to be directly proportional to a field value... I thought SIZEITEM was designed for this. It could, but for now it doesn't work with POINT type. Thanks for any help, Pierre Racine From christhorne at SYMPATICO.CA Tue Jun 28 14:41:55 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Tue, 28 Jun 2005 17:41:55 -0400 Subject: MrSid SDK LizardTech Package? In-Reply-To: Message-ID: Hello all, Today I tried download loading MrSid SDK from LizardTech's website but found the Developers area unaccessible. Even with my user name and password. I was wondering if someone has this package and could send it to me and David Marshall (see cc:). I would like to add the MrSid pluggin for gdal on a Linux server. Thanks Chris -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From christhorne at SYMPATICO.CA Tue Jun 28 15:00:27 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Tue, 28 Jun 2005 18:00:27 -0400 Subject: MrSid SDK LizardTech Package? In-Reply-To: <42C1C423.5040707@sympatico.ca> Message-ID: Correction, Please do not send the binary by email. If you have it please let me know where I can find it, outside the LizardTech website. Chris Christopher R. Thorne wrote: > Hello all, > Today I tried download loading MrSid SDK from LizardTech's website but > found the Developers area unaccessible. Even with my user name and > password. > > I was wondering if someone has this package and could send it to me and > David Marshall (see cc:). I would like to add the MrSid pluggin for gdal > on a Linux server. > > Thanks > Chris > > -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From woklist at CHARTER.NET Tue Jun 28 15:49:47 2005 From: woklist at CHARTER.NET (William K) Date: Tue, 28 Jun 2005 17:49:47 -0500 Subject: MrSid SDK LizardTech Package? In-Reply-To: Message-ID: Man, what a rotten deal. Looks like they changed their login system, or someone broke it. It used to be a web form, now it's a http password thing. No way to reregister. And I've been waiting for them to update the DSDK for Mac OS 10.4. Chris, the license explicitly states that noone can distribute the source code. We must wait for LizardTech to fix their site. On Jun 28, 2005, at 4:41 PM, Christopher R. Thorne wrote: > Hello all, > Today I tried download loading MrSid SDK from LizardTech's website but > found the Developers area unaccessible. Even with my user name and > password. > > I was wondering if someone has this package and could send it to me > and > David Marshall (see cc:). I would like to add the MrSid pluggin for > gdal > on a Linux server. > > Thanks > Chris ----- William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro From woodbri at SWOODBRIDGE.COM Tue Jun 28 18:05:32 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 28 Jun 2005 21:05:32 -0400 Subject: Wishing we had COLORRAMPs or something Message-ID: Hi all, I am trying to do thematic maps and I'm getting vary close to have a cool application working that using PostGIS and Mapserver. I have been able to build the whole thing so far without using mapscript, but there is no easy way to work around the need for having a COLORRAMP that would let me assign the color to a class like CLASSITEM but without having all the CLASSes defined. Why is this needed? you ask, just make a bunch of classes. For a thematic map, you can select the number of breaks you want to display, between 2 and 10 say. I already have code to compute the class breaks and to assign them a number between 0 and numclasses, now I need to a color in the ramp based on numclasses. If your ramp is RED from 0 to 255, and you have a 2 class ramp the 2 will be 255, but if you display the same thin with a 10 class ramp 10 will be 255 and 2 will be like 25.5 In any case, I will work around it for now, but I think this is an area the would be nice to add something. -Steve W. From bill at BINKO.NET Tue Jun 28 18:49:16 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 28 Jun 2005 21:49:16 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: <42C1F3DC.4030908@swoodbridge.com> Message-ID: > Why is this needed? you ask, just make a bunch of classes. Mwuu ha ha (*seang will kill me for this*) Take a look at bug 1305, and see if that will fit your needs. It is close, but not exactly what you want. Most obviously, legend support is non-existant at this point, but I could be motivated to help there if I ever get away from ECW and GeomUnion issues. If you're running 4.6, then support is already in there for you. > > For a thematic map, you can select the number of breaks you want to > display, between 2 and 10 say. I already have code to compute the class > breaks and to assign them a number between 0 and numclasses, now I need > to a color in the ramp based on numclasses. If your ramp is RED from 0 > to 255, and you have a 2 class ramp the 2 will be 255, but if you > display the same thin with a 10 class ramp 10 will be 255 and 2 will be > like 25.5 > In this case, you'd want to do something like this: CLASS COLOR 0 0 0 #mapserver wants a default color STYLE COLORRANGE 0 0 0 255 0 0 #start and end colors DATARANGE 0 10 #start and end values RANGEITEM "someField" #the field to use END END No doubt this is not perfect (it has no "breaks": it is continuous). However, having another user try it and provide feedback (into the bug please) can only help. Bill From woodbri at SWOODBRIDGE.COM Tue Jun 28 20:15:03 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 28 Jun 2005 23:15:03 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: Message-ID: Bill, Hey, this sounds great! I will give it a try. I knew you had done some work in this area, but I did not realize it was in 4.6 which I am using. What I just got working on my laptop, using postGIS and some perl code is an app that lets me select any of large number (200+) demographic variable and a state, then it queries the data from postgres and applies one 4 different classification schemes to the data to generate breaks and then requests a map and the zcta polygons are classified by converting the attribute value into a 0 .. N class number and the mapfile has classes to color it. I need to generate a legend to also but probably need to do it outside of mapserver because I have already reduced the classification to 0 .. N classes. Your ramp is just what the I need because I can pass the numclasses as %numclasses% to the ramp. At some point in the near future I will move the database back over to the server then I can post a demo link. Very Cool! -Steve Bill Binko wrote: >>Why is this needed? you ask, just make a bunch of classes. > > > Mwuu ha ha (*seang will kill me for this*) > > Take a look at bug 1305, and see if that will fit your needs. > > It is close, but not exactly what you want. Most obviously, legend > support is non-existant at this point, but I could be motivated to help > there if I ever get away from ECW and GeomUnion issues. > > If you're running 4.6, then support is already in there for you. > > >>For a thematic map, you can select the number of breaks you want to >>display, between 2 and 10 say. I already have code to compute the class >>breaks and to assign them a number between 0 and numclasses, now I need >>to a color in the ramp based on numclasses. If your ramp is RED from 0 >>to 255, and you have a 2 class ramp the 2 will be 255, but if you >>display the same thin with a 10 class ramp 10 will be 255 and 2 will be >>like 25.5 >> > > > In this case, you'd want to do something like this: > > CLASS > COLOR 0 0 0 #mapserver wants a default color > STYLE > COLORRANGE 0 0 0 255 0 0 #start and end colors > DATARANGE 0 10 #start and end values > RANGEITEM "someField" #the field to use > END > END > > No doubt this is not perfect (it has no "breaks": it is continuous). > However, having another user try it and provide feedback (into the bug > please) can only help. > > Bill > From woodbri at SWOODBRIDGE.COM Tue Jun 28 21:25:47 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 29 Jun 2005 00:25:47 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: Message-ID: Argggh! Doesn't look like it works in the version distributed at MUM3 in the workshops. MapServer version 4.6.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG because it does not recognized the COLORRANGE -Steve W. Bill Binko wrote: >>Why is this needed? you ask, just make a bunch of classes. > > > Mwuu ha ha (*seang will kill me for this*) > > Take a look at bug 1305, and see if that will fit your needs. > > It is close, but not exactly what you want. Most obviously, legend > support is non-existant at this point, but I could be motivated to help > there if I ever get away from ECW and GeomUnion issues. > > If you're running 4.6, then support is already in there for you. > > >>For a thematic map, you can select the number of breaks you want to >>display, between 2 and 10 say. I already have code to compute the class >>breaks and to assign them a number between 0 and numclasses, now I need >>to a color in the ramp based on numclasses. If your ramp is RED from 0 >>to 255, and you have a 2 class ramp the 2 will be 255, but if you >>display the same thin with a 10 class ramp 10 will be 255 and 2 will be >>like 25.5 >> > > > In this case, you'd want to do something like this: > > CLASS > COLOR 0 0 0 #mapserver wants a default color > STYLE > COLORRANGE 0 0 0 255 0 0 #start and end colors > DATARANGE 0 10 #start and end values > RANGEITEM "someField" #the field to use > END > END > > No doubt this is not perfect (it has no "breaks": it is continuous). > However, having another user try it and provide feedback (into the bug > please) can only help. > > Bill > From jkim at SCIENCES.SDSU.EDU Tue Jun 28 22:34:31 2005 From: jkim at SCIENCES.SDSU.EDU (John) Date: Wed, 29 Jun 2005 00:34:31 -0500 Subject: polygon points from shapefile Message-ID: > is it possible, to get the points of a polygon from a shapefile in an > array via phpmapscript? > So that I get e.g. ((49.12390,5.283990),(49,238238,5,23423442),....) > Joerg According to a message posted 18 Nov 2002 by Daniel Morissette, you can: ----------- A shapeObj is composed of a number of lineObj which in turn are composed of a number of pointObj which contain the vertices. For instance to dump all vertices in a shape you would have to do something like this: for($i=0; $i < $shape->numlines; $i++) { $line = $shape->line($i); for($j=0; $j<$line->numpoints; $j++) { $point = $line->point($j); // Do something with the vertices: // $point->x, $point->y } } Daniel ---------- The full message/thread is here: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0211/msg00317.html I haven't tried the code, although I've thought about it. I'd love to hear how it works out for you. -John From m.tomko at PGRAD.UNIMELB.EDU.AU Tue Jun 28 23:22:57 2005 From: m.tomko at PGRAD.UNIMELB.EDU.AU (Martin Tomko) Date: Wed, 29 Jun 2005 16:22:57 +1000 Subject: time series representations in Mapserver In-Reply-To: Message-ID: THis is quite like what I wanted to do with the SVG output. But nobody gave me an answer whether it is possible to a - get mapserver to include some attribute data in the SVG source (XML), let's say by specifying an attribute field in the dbf/database. This would result in a say a polygon with time stamps, or values, or so. b - if there is a javascript way to access the svg source in the page and retrieve and change the value in the xml depending on another value of an attribute. This would enable to highlight a polygon with a specific value of an attribute. Dis anybody try something like that? Martin From umberto.nicoletti at GMAIL.COM Tue Jun 28 23:35:56 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 29 Jun 2005 08:35:56 +0200 Subject: time series representations in Mapserver In-Reply-To: <42C23E41.2000409@pgrad.unimelb.edu.au> Message-ID: google: svg javascript will reveal some interesting sites and docs. HTH, Umberto On 6/29/05, Martin Tomko wrote: > THis is quite like what I wanted to do with the SVG output. > But nobody gave me an answer whether it is possible to > a - get mapserver to include some attribute data in the SVG source > (XML), let's say by specifying an attribute field in the dbf/database. > This would result in a say a polygon with time stamps, or values, or so. > b - if there is a javascript way to access the svg source in the page > and retrieve and change the value in the xml depending on another value > of an attribute. This would enable to highlight a polygon with a > specific value of an attribute. Dis anybody try something like that? > Martin > From bill at BINKO.NET Tue Jun 28 23:54:27 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 29 Jun 2005 02:54:27 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: <42C222CB.5030401@swoodbridge.com> Message-ID: On Wed, 29 Jun 2005, Stephen Woodbridge wrote: > Argggh! Doesn't look like it works in the version distributed at MUM3 in > the workshops. > > MapServer version 4.6.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > DEBUG=MSDEBUG > > because it does not recognized the COLORRANGE > I would bet that it does. I just looked at 4.6beta3, and you should be able to use it as I said below. Just a note, it must go into a STYLE...END block, it cannot go directly into a CLASS (or LAYER). Bill > -Steve W. > > Bill Binko wrote: > >>Why is this needed? you ask, just make a bunch of classes. > > > > > > Mwuu ha ha (*seang will kill me for this*) > > > > Take a look at bug 1305, and see if that will fit your needs. > > > > It is close, but not exactly what you want. Most obviously, legend > > support is non-existant at this point, but I could be motivated to help > > there if I ever get away from ECW and GeomUnion issues. > > > > If you're running 4.6, then support is already in there for you. > > > > > >>For a thematic map, you can select the number of breaks you want to > >>display, between 2 and 10 say. I already have code to compute the class > >>breaks and to assign them a number between 0 and numclasses, now I need > >>to a color in the ramp based on numclasses. If your ramp is RED from 0 > >>to 255, and you have a 2 class ramp the 2 will be 255, but if you > >>display the same thin with a 10 class ramp 10 will be 255 and 2 will be > >>like 25.5 > >> > > > > > > In this case, you'd want to do something like this: > > > > CLASS > > COLOR 0 0 0 #mapserver wants a default color > > STYLE > > COLORRANGE 0 0 0 255 0 0 #start and end colors > > DATARANGE 0 10 #start and end values > > RANGEITEM "someField" #the field to use > > END > > END > > > > No doubt this is not perfect (it has no "breaks": it is continuous). > > However, having another user try it and provide feedback (into the bug > > please) can only help. > > > > Bill > > > > > > From leopold.schefcik at MULTIMEDIAPLAN.AT Wed Jun 29 00:27:41 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Wed, 29 Jun 2005 09:27:41 +0200 Subject: att/net to shp In-Reply-To: Message-ID: hi list, I have .att and .net Files with cordinates. 1. Is ist right, that it?s only possible to show shpe files in a wms? 2. How can I convert these two file-types to .shp? regards Leopold From adams at TERRESTRIS.DE Wed Jun 29 00:35:42 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 29 Jun 2005 09:35:42 +0200 Subject: polygon points from shapefile In-Reply-To: Message-ID: Joerg, I have absolutely no experience with phpmapscript, as I use UMN mainly as WMS/WFS. there are more possibioities: Use the commande DUMP TRUE to enable download of the data as GML, but I'm not sure if UMN just gives the actual extent back -- or -- store the data in a postgis database, create a template, where you pass the extent of the actual mapwindow to an internal iframe or sth. similar and then query the database with sth. like SELECt [*] FROM [datatable] WHERE WITHIN // TOUCHES // [...] GEOMETRYFROMTEXT(minx,miny,maxx,maxy) Check the correct syntax on the postgis page. Cheers, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From andrewrcollins at YAHOO.COM Wed Jun 29 00:56:49 2005 From: andrewrcollins at YAHOO.COM (Andrew Collins) Date: Wed, 29 Jun 2005 00:56:49 -0700 Subject: Final help needed to complete AJAX-driven dynamic imagemaps Message-ID: Hello! I am just a few pesky lines of code away from having a working AJAX-driven dynamic map image (PNG) and dynamic imagemap (HTML fragment) MapServer interface. I may be doing something wrong, but my guess is that I'm not, as I'm fairly sure the particular code I want executed (mapimagemap.c, lines 1134-1135) is commented-out: mapimagemap.c - lines 1134-1135: /* char *title=(p->numvalues) ? p->values[0] : ""; */ char *title = ""; I have integrated each of the following technologies, solutions, ideas, etc. with the result that I can get matched dynamic images and dynamic imagemaps, but the title attributes for the tags are identical, being all equal to the layer name. (see mapimagemap.c) The below allows for rectangle view/hide rollovers, highlights, JavaScript calls. Similar to some Flash MapServer interfaces. I think it would very well with ka-Map. DOM Image Annotation http://www.kryogenix.org/code/browser/annimg/annimg.html Swapping Out Image Maps http://www.phptr.com/articles/article.asp?p=102340&seqNum=3&rl=1 Ajax: A New Approach to Web Applications http://www.adaptivepath.com/publications/essays/archives/000385.php I use Windows and I tried to create a build environment for MapServer in which I could test the changes I believe are necessary to mapimagemap.c--but I simply couldn't get "libiconv" to compile. (The install directions state that MSVC is required--I don't have it, I use MinGW.) Does anyone on the list have a completely solid build process for MapServer on Windows using MinGW? In the end I am working on a JSP CGI-proxy which will allow me to make a request for an EXTENT to a JSP page which will re-package the single request into the dual requests for the map image (PNG) and the imagemap (html fragment) and parse them into a single XML response which JavaScript can use to update the map interface. Any help would be appreciated. When I get this final piece in place I will release the above AJAX/DWR MapServer interface mechanism to the community. Thanks! -- Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html Try OpenOffice. See http://www.openoffice.org/product/ From umn-ms at HYDROTEC.DE Wed Jun 29 01:33:39 2005 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 29 Jun 2005 10:33:39 +0200 Subject: Bug in msCopy Message-ID: Dear List We are using MapScript/Tomcat/Java/OracleSpatial. We use mapObj.mapClone() to get a fresh mapObject in each request without reading the Mapfile. We detected problems after we activated Connection-Pooling: Tomcat crashed in mapObj.delete() Hole thing turned out to be a bug in mapcopy.c where the joins are copied: -------------------- MS_COPYSTELEM(numjoins); for (i = 0; i < dst->numprocessing; i++) { return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); -------------------- This must be changed to -------------------- MS_COPYSTELEM(numjoins); for (i = 0; i < dst->numjoins; i++) { return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); -------------------- There is some other code in mapobject.c, wich didn't raise any problems for us, but from wich I do think that array-allocs are missing. I watched the code an *think* these are are not allocated anywhere. I hope, there is no misleading hint: ---------------------------- // I do think, that dst->point is not allocated. // code seems to be unused (?) dst->numpoints = src->numpoints; for (i = 0; i < dst->numpoints; i++) { MS_COPYPOINT(&(dst->point[i]), &(src->point[i])); } ---------------------------- // I do think, that dst->items and dst->values is // not allocated MS_COPYSTELEM(numitems); for (i = 0; i < dst->numitems; i++) { MS_COPYSTRING(dst->items[i], src->items[i]); MS_COPYSTRING(dst->values[i], src->values[i]); } ----------------------------- // I'm quite shure, that dst->items is not allocated MS_COPYSTELEM(numitems); for (i = 0; i < dst->numitems; i++) { MS_COPYSTRING(dst->items[i], src->items[i]); } I hope this is helpful. Greetings Benedikt Rothe -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Wed Jun 29 02:03:46 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 29 Jun 2005 11:03:46 +0200 Subject: Bug in msCopy In-Reply-To: Message-ID: On 6/29/05, Benedikt Rothe wrote: > > Dear List > > We are using MapScript/Tomcat/Java/OracleSpatial. > > We use mapObj.mapClone() to get a fresh mapObject > in each request without reading the Mapfile. Benedikt, I would not do that (tm). In my apps I recreate a fresh mapObj with each request as the overhead is mininum and the benefits high (so that the ratio is in favor of this approach). Besides this is the only known method to work (as far as I know) and this stems from the fact that mapserver was in the beginning (and still is, with improvements) a CGI. As you might know cgis are processes that are created by the web server to serve a single request and then exit, so memory cleanup and thread safety are non-issues for them. Even in php mapscript php must be used as a cgi (instead of a DSO) to make sure that it works. > > We detected problems after we activated Connection-Pooling: > Tomcat crashed in mapObj.delete() > I would not use connection pooling just because it will not work reliably with Java Servlets for the reasons explained above. This matter (connection pooling and map cloning) surely requires deeper investigation, one of the developers coul step in to give his opinion on my statements (which I would sincerely hope were false, but fear not). Btw, I seem to recall that the above issues (long lived instance against per request instance) were already discussed on the list before. Best regards, Umberto > Hole thing turned out to be a bug in mapcopy.c where > the joins are copied: > -------------------- > MS_COPYSTELEM(numjoins); > > for (i = 0; i < dst->numprocessing; i++) { > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > -------------------- > > This must be changed to > -------------------- > MS_COPYSTELEM(numjoins); > > for (i = 0; i < dst->numjoins; i++) { > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > -------------------- > > There is some other code in mapobject.c, wich didn't > raise any problems for us, but from wich I do think > that array-allocs are missing. > I watched the code an *think* these are are not allocated > anywhere. I hope, there is no misleading hint: > > ---------------------------- > // I do think, that dst->point is not allocated. > // code seems to be unused (?) > dst->numpoints = src->numpoints; > for (i = 0; i < dst->numpoints; i++) { > MS_COPYPOINT(&(dst->point[i]), &(src->point[i])); > } > ---------------------------- > // I do think, that dst->items and dst->values is > // not allocated > MS_COPYSTELEM(numitems); > for (i = 0; i < dst->numitems; i++) { > MS_COPYSTRING(dst->items[i], src->items[i]); > MS_COPYSTRING(dst->values[i], src->values[i]); > } > > ----------------------------- > // I'm quite shure, that dst->items is not allocated > MS_COPYSTELEM(numitems); > > for (i = 0; i < dst->numitems; i++) { > MS_COPYSTRING(dst->items[i], src->items[i]); > } > > I hope this is helpful. Greetings > Benedikt Rothe From sylvain.perrinel at AGRICULTURE.GOUV.FR Wed Jun 29 02:18:03 2005 From: sylvain.perrinel at AGRICULTURE.GOUV.FR (sylvain.perrinel) Date: Wed, 29 Jun 2005 11:18:03 +0200 Subject: Dynamic Legend with Labels Message-ID: Hello, I make a dynamic legend in PhpMapscript for mapserver interface. I can turn on/off the layers of my mapfile with checkbox and I include legend icons. I would like to do same thing with the labels of the layers. If a label definition of a layer is described in the mapfile, I'd like a checkbox to turn on/off the labels. But I don't know in phpMpascript how to know if a label definition exist or not. I think about that to detect a label definition : if ($Layer->label) { "label defintion exist !" }else{ "label definition doesn't exist } and to turn on/off the labels, I think about the "LABELMAXSCALE" and "LABELMINSCALE" properties : off : LABELMAXSCALE=0 and LABELMINSCALE=0 on : original LABELMAXSCALE and LABELMINSCALE. Anyone have any advice? Does this make sense? Thanks. -- Sylvain Perrinel Minist?re de l'Agriculture et de la P?che Toulouse France From philippe.gondek at GMAIL.COM Wed Jun 29 02:25:48 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Wed, 29 Jun 2005 11:25:48 +0200 Subject: dynamic libraries Message-ID: Warning: dl(): Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so' - /usr/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so: undefined symbol: php_regcomp in /var/www/localhost/htdocs/phpinfo_mapscript.phtml on line 21 From klement at VATI.HU Wed Jun 29 02:31:43 2005 From: klement at VATI.HU (Klement Szabolcs) Date: Wed, 29 Jun 2005 04:31:43 -0500 Subject: join object in mapscript Message-ID: I want use join object from mapscipt (java). Why this is not exists in mapscript wrapper? and when to make this? I think this is a very important feature for real time cartogram, thematic map, or for other spatial analisys. From umn-ms at HYDROTEC.DE Wed Jun 29 02:43:44 2005 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 29 Jun 2005 11:43:44 +0200 Subject: Antwort: Re: [UMN_MAPSERVER-USERS] Bug in msCopy In-Reply-To: <75b4b93e05062902033496ed31@mail.gmail.com> Message-ID: Hello Umberto Thank you for yout hint's! You are right: One should be cautios. But for the moment I have the impression that we seeme to have found a way, which don't raise obvious errors in the first moment :-) After the mentioned changes in mapcopy.c the approache (TomCat/MapScript/Connection-Pooling/MapCloning) seeme to work for us. (Working with Version 4.6) But: - We do need some more stress-testing.(We already made automated http-requests from a Java-Programs. But this was definitly not enough and not "nasty" enough!) - New problems could raise, if more or other features from mapserver/mapscript are used then we actualy do. - Memory footprint of the running-tomcat has to be watched!. What about the size of the application after 100, 500, 600, 800 ... requests? (I'm not quite shure how to do this! Watching Java-Programs is difficult because of garbage-collections ...) Greetings Benedikt Umberto Nicoletti schrieb am 29.06.2005 11:03:46: > On 6/29/05, Benedikt Rothe wrote: > > > > Dear List > > > > We are using MapScript/Tomcat/Java/OracleSpatial. > > > > We use mapObj.mapClone() to get a fresh mapObject > > in each request without reading the Mapfile. > > Benedikt, > I would not do that (tm). In my apps I recreate a fresh mapObj with > each request as the overhead is mininum and the benefits high (so > that the ratio is in favor of this approach). > Besides this is the only known method to work (as far as I know) and > this stems from the fact that mapserver was in the beginning (and > still is, with improvements) a CGI. As you might know cgis are > processes that are created by the web server to serve a single request > and then exit, so memory cleanup and thread safety are non-issues for > them. > Even in php mapscript php must be used as a cgi (instead of a DSO) to > make sure that it works. > > > > > We detected problems after we activated Connection-Pooling: > > Tomcat crashed in mapObj.delete() > > > > I would not use connection pooling just because it will not work > reliably with Java Servlets for the reasons explained above. > > This matter (connection pooling and map cloning) surely requires > deeper investigation, one of the developers coul step in to give his > opinion on my statements (which I would sincerely hope were false, but > fear not). Btw, I seem to recall that the above issues (long lived > instance against per request instance) were already discussed on the > list before. > > Best regards, > Umberto > > > Hole thing turned out to be a bug in mapcopy.c where > > the joins are copied: > > -------------------- > > MS_COPYSTELEM(numjoins); > > > > for (i = 0; i < dst->numprocessing; i++) { > > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > > -------------------- > > > > This must be changed to > > -------------------- > > MS_COPYSTELEM(numjoins); > > > > for (i = 0; i < dst->numjoins; i++) { > > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > > -------------------- > > > > There is some other code in mapobject.c, wich didn't > > raise any problems for us, but from wich I do think > > that array-allocs are missing. > > I watched the code an *think* these are are not allocated > > anywhere. I hope, there is no misleading hint: > > > > ---------------------------- > > // I do think, that dst->point is not allocated. > > // code seems to be unused (?) > > dst->numpoints = src->numpoints; > > for (i = 0; i < dst->numpoints; i++) { > > MS_COPYPOINT(&(dst->point[i]), &(src->point[i])); > > } > > ---------------------------- > > // I do think, that dst->items and dst->values is > > // not allocated > > MS_COPYSTELEM(numitems); > > for (i = 0; i < dst->numitems; i++) { > > MS_COPYSTRING(dst->items[i], src->items[i]); > > MS_COPYSTRING(dst->values[i], src->values[i]); > > } > > > > ----------------------------- > > // I'm quite shure, that dst->items is not allocated > > MS_COPYSTELEM(numitems); > > > > for (i = 0; i < dst->numitems; i++) { > > MS_COPYSTRING(dst->items[i], src->items[i]); > > } > > > > I hope this is helpful. Greetings > > Benedikt Rothe -------------- next part -------------- An HTML attachment was scrubbed... URL: From l.bargeot at EDUCAGRI.FR Wed Jun 29 03:02:24 2005 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Wed, 29 Jun 2005 12:02:24 +0200 Subject: Dynamic Legend with Labels In-Reply-To: <42C2674B.5070709@agriculture.gouv.fr> Message-ID: Hi, you can use a METADATA personal option to do this. METADATA your_label true END Then you ca obtain your_label value. Inconvenient is that you can't proceede dynamicaly. You have to specify this for each layer. Regards, Lionel sylvain.perrinel at AGRICULTURE.GOUV.FR le Mercredi, Juin 29, 2005 ? 11:18 AM a ?crit : >Hello, >I make a dynamic legend in PhpMapscript for mapserver interface. I can >turn on/off the layers of my mapfile with checkbox and I include legend >icons. >I would like to do same thing with the labels of the layers. If a label >definition of a layer is described in the mapfile, I'd like a checkbox >to turn on/off the labels. But I don't know in phpMpascript how to know >if a label definition exist or not. > >I think about that to detect a label definition : > > if ($Layer->label) > { > "label defintion exist !" >}else{ > "label definition doesn't exist >} > >and to turn on/off the labels, I think about the "LABELMAXSCALE" and >"LABELMINSCALE" properties : >off : LABELMAXSCALE=0 and LABELMINSCALE=0 >on : original LABELMAXSCALE and LABELMINSCALE. > >Anyone have any advice? Does this make sense? > >Thanks. > > >-- >Sylvain Perrinel >Minist?re de l'Agriculture et de la P?che >Toulouse >France > Lionel Bargeot Agrogeomatic 03.80.77.28.49 http://www.igcs-stb.org/ 4 rue Champs-prevois, bat grand-champs, 21000 Dijon From umberto.nicoletti at GMAIL.COM Wed Jun 29 03:10:03 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 29 Jun 2005 12:10:03 +0200 Subject: Antwort: Re: [UMN_MAPSERVER-USERS] Bug in msCopy In-Reply-To: Message-ID: On 6/29/05, Benedikt Rothe wrote: > > Hello Umberto > > Thank you for yout hint's! > > You are right: One should be cautios. But for the moment I have the > impression > that we seeme to have found a way, which don't raise obvious errors in the > first > moment :-) > > After the mentioned changes in mapcopy.c the approache > (TomCat/MapScript/Connection-Pooling/MapCloning) seeme to > work for us. (Working with Version 4.6) > > But: > - We do need some more stress-testing.(We already made automated > http-requests from a Java-Programs. But this was definitly not enough and > not "nasty" enough!) jmeter is an excellent tool for stress/load testing ( jakarta.apache.org/jmeter/ ) > - New problems could raise, if more or other features from > mapserver/mapscript > are used then we actualy do. > - Memory footprint of the running-tomcat has to be watched!. What about the > size > of the application after 100, 500, 600, 800 ... requests? (I'm not quite > shure how to do this! Use the -Xloggc:/tmp/gc.log to java when starting tomcat and then run the stress tests. You should be able to see that if memory get correctly garbage collected the avail mem is almost always equal to a certain initial size. Warning: this is not 100% error proof, but it should be start. try googling... Ciao, Umberto > Watching Java-Programs is difficult because of garbage-collections ...) > > Greetings > Benedikt > > Umberto Nicoletti schrieb am 29.06.2005 > 11:03:46: > > > > On 6/29/05, Benedikt Rothe wrote: > > > > > > Dear List > > > > > > We are using MapScript/Tomcat/Java/OracleSpatial. > > > > > > We use mapObj.mapClone() to get a fresh mapObject > > > in each request without reading the Mapfile. > > > > Benedikt, > > I would not do that (tm). In my apps I recreate a fresh mapObj with > > each request as the overhead is mininum and the benefits high (so > > that the ratio is in favor of this approach). > > Besides this is the only known method to work (as far as I know) and > > this stems from the fact that mapserver was in the beginning (and > > still is, with improvements) a CGI. As you might know cgis are > > processes that are created by the web server to serve a single request > > and then exit, so memory cleanup and thread safety are non-issues for > > them. > > Even in php mapscript php must be used as a cgi (instead of a DSO) to > > make sure that it works. > > > > > > > > We detected problems after we activated Connection-Pooling: > > > Tomcat crashed in mapObj.delete() > > > > > > > I would not use connection pooling just because it will not work > > reliably with Java Servlets for the reasons explained above. > > > > This matter (connection pooling and map cloning) surely requires > > deeper investigation, one of the developers coul step in to give his > > opinion on my statements (which I would sincerely hope were false, but > > fear not). Btw, I seem to recall that the above issues (long lived > > instance against per request instance) were already discussed on the > > list before. > > > > Best regards, > > Umberto > > > > > Hole thing turned out to be a bug in mapcopy.c where > > > the joins are copied: > > > -------------------- > > > MS_COPYSTELEM(numjoins); > > > > > > for (i = 0; i < dst->numprocessing; i++) { > > > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > > > -------------------- > > > > > > This must be changed to > > > -------------------- > > > MS_COPYSTELEM(numjoins); > > > > > > for (i = 0; i < dst->numjoins; i++) { > > > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > > > -------------------- > > > > > > There is some other code in mapobject.c, wich didn't > > > raise any problems for us, but from wich I do think > > > that array-allocs are missing. > > > I watched the code an *think* these are are not allocated > > > anywhere. I hope, there is no misleading hint: > > > > > > ---------------------------- > > > // I do think, that dst->point is not allocated. > > > // code seems to be unused (?) > > > dst->numpoints = src->numpoints; > > > for (i = 0; i < dst->numpoints; i++) { > > > MS_COPYPOINT(&(dst->point[i]), &(src->point[i])); > > > } > > > ---------------------------- > > > // I do think, that dst->items and dst->values is > > > // not allocated > > > MS_COPYSTELEM(numitems); > > > for (i = 0; i < dst->numitems; i++) { > > > MS_COPYSTRING(dst->items[i], src->items[i]); > > > MS_COPYSTRING(dst->values[i], src->values[i]); > > > } > > > > > > ----------------------------- > > > // I'm quite shure, that dst->items is not allocated > > > MS_COPYSTELEM(numitems); > > > > > > for (i = 0; i < dst->numitems; i++) { > > > MS_COPYSTRING(dst->items[i], src->items[i]); > > > } > > > > > > I hope this is helpful. Greetings > > > Benedikt Rothe > From umn-ms at HYDROTEC.DE Wed Jun 29 03:22:31 2005 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 29 Jun 2005 12:22:31 +0200 Subject: Antwort: Re: [UMN_MAPSERVER-USERS] Antwort: Re: [UMN_MAPSERVER-USERS] Bug in msCopy In-Reply-To: <75b4b93e05062903105e0fead5@mail.gmail.com> Message-ID: Thank's Umberto. I did not know -Xloggc before. As far as I understood -Xloggc measures the memory allocated by the JVM. And this is the kind of memory which is not hazardous ... Anyway I will look in this direction... Benedikt Umberto Nicoletti schrieb am 29.06.2005 12:10:03: > On 6/29/05, Benedikt Rothe wrote: > > > > Hello Umberto > > > > Thank you for yout hint's! > > > > You are right: One should be cautios. But for the moment I have the > > impression > > that we seeme to have found a way, which don't raise obvious errors in the > > first > > moment :-) > > > > After the mentioned changes in mapcopy.c the approache > > (TomCat/MapScript/Connection-Pooling/MapCloning) seeme to > > work for us. (Working with Version 4.6) > > > > But: > > - We do need some more stress-testing.(We already made automated > > http-requests from a Java-Programs. But this was definitly not enough and > > not "nasty" enough!) > > jmeter is an excellent tool for stress/load testing ( > jakarta.apache.org/jmeter/ ) > > > - New problems could raise, if more or other features from > > mapserver/mapscript > > are used then we actualy do. > > - Memory footprint of the running-tomcat has to be watched!. What about the > > size > > of the application after 100, 500, 600, 800 ... requests? (I'm not quite > > shure how to do this! > > Use the -Xloggc:/tmp/gc.log to java when starting tomcat and then run > the stress tests. You should be able to see that if memory get > correctly garbage collected the avail mem is almost always equal to a > certain initial size. > Warning: this is not 100% error proof, but it should be start. try googling... > > Ciao, > Umberto > > > Watching Java-Programs is difficult because of garbage-collections ...) > > > > Greetings > > Benedikt > > > > Umberto Nicoletti schrieb am 29.06.2005 > > 11:03:46: > > > > > > > On 6/29/05, Benedikt Rothe wrote: > > > > > > > > Dear List > > > > > > > > We are using MapScript/Tomcat/Java/OracleSpatial. > > > > > > > > We use mapObj.mapClone() to get a fresh mapObject > > > > in each request without reading the Mapfile. > > > > > > Benedikt, > > > I would not do that (tm). In my apps I recreate a fresh mapObj with > > > each request as the overhead is mininum and the benefits high (so > > > that the ratio is in favor of this approach). > > > Besides this is the only known method to work (as far as I know) and > > > this stems from the fact that mapserver was in the beginning (and > > > still is, with improvements) a CGI. As you might know cgis are > > > processes that are created by the web server to serve a single request > > > and then exit, so memory cleanup and thread safety are non-issues for > > > them. > > > Even in php mapscript php must be used as a cgi (instead of a DSO) to > > > make sure that it works. > > > > > > > > > > > We detected problems after we activated Connection-Pooling: > > > > Tomcat crashed in mapObj.delete() > > > > > > > > > > I would not use connection pooling just because it will not work > > > reliably with Java Servlets for the reasons explained above. > > > > > > This matter (connection pooling and map cloning) surely requires > > > deeper investigation, one of the developers coul step in to give his > > > opinion on my statements (which I would sincerely hope were false, but > > > fear not). Btw, I seem to recall that the above issues (long lived > > > instance against per request instance) were already discussed on the > > > list before. > > > > > > Best regards, > > > Umberto > > > > > > > Hole thing turned out to be a bug in mapcopy.c where > > > > the joins are copied: > > > > -------------------- > > > > MS_COPYSTELEM(numjoins); > > > > > > > > for (i = 0; i < dst->numprocessing; i++) { > > > > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > > > > -------------------- > > > > > > > > This must be changed to > > > > -------------------- > > > > MS_COPYSTELEM(numjoins); > > > > > > > > for (i = 0; i < dst->numjoins; i++) { > > > > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > > > > -------------------- > > > > > > > > There is some other code in mapobject.c, wich didn't > > > > raise any problems for us, but from wich I do think > > > > that array-allocs are missing. > > > > I watched the code an *think* these are are not allocated > > > > anywhere. I hope, there is no misleading hint: > > > > > > > > ---------------------------- > > > > // I do think, that dst->point is not allocated. > > > > // code seems to be unused (?) > > > > dst->numpoints = src->numpoints; > > > > for (i = 0; i < dst->numpoints; i++) { > > > > MS_COPYPOINT(&(dst->point[i]), &(src->point[i])); > > > > } > > > > ---------------------------- > > > > // I do think, that dst->items and dst->values is > > > > // not allocated > > > > MS_COPYSTELEM(numitems); > > > > for (i = 0; i < dst->numitems; i++) { > > > > MS_COPYSTRING(dst->items[i], src->items[i]); > > > > MS_COPYSTRING(dst->values[i], src->values[i]); > > > > } > > > > > > > > ----------------------------- > > > > // I'm quite shure, that dst->items is not allocated > > > > MS_COPYSTELEM(numitems); > > > > > > > > for (i = 0; i < dst->numitems; i++) { > > > > MS_COPYSTRING(dst->items[i], src->items[i]); > > > > } > > > > > > > > I hope this is helpful. Greetings > > > > Benedikt Rothe > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From superbla3000 at GMX.NET Wed Jun 29 04:47:46 2005 From: superbla3000 at GMX.NET (joerg p) Date: Wed, 29 Jun 2005 13:47:46 +0200 Subject: polygon points from shapefile In-Reply-To: Message-ID: > A shapeObj is composed of a number of lineObj which in turn are composed > of a number of pointObj which contain the vertices. For instance to > dump all vertices in a shape you would have to do something like this: > > for($i=0; $i < $shape->numlines; $i++) > { > $line = $shape->line($i); > > for($j=0; $j<$line->numpoints; $j++) > { > $point = $line->point($j); > > // Do something with the vertices: > // $point->x, $point->y > } > } > > Daniel > ---------- > > The full message/thread is here: > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0211/msg00317.html > > I haven't tried the code, although I've thought about it. I'd love to hear > how it works out for you. > > -John > Thanks, it works. My full version for beginners: $testshape = ms_newShapefileObj("data/country", -1); print_r($testshape); echo "

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


"; } cheers Joerg From superbla3000 at GMX.NET Wed Jun 29 05:27:06 2005 From: superbla3000 at GMX.NET (joerg p) Date: Wed, 29 Jun 2005 14:27:06 +0200 Subject: query only shapes with flag=1 Message-ID: hello, I have a country shapefile with a dbf file. The dbf file looks like this country flag Australia 0 Botswana 0 Chile 1 Egypt 0 . . . How do I get the shapes of the countries with flag=1? At the moment I try: $testlayer = $neuemap->map->getLayerByName("country_alle"); $testlayer->set( "filteritem", "cf" ); $testlayer->setFilter( "0" ); print_r($testlayer->queryByAttributes("cf", "0", MS_MULTIPLE)); But it doesn't work.... best regards Joerg From fr-ms at TOURDE.ORG Wed Jun 29 05:48:19 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-1?q?Fran=E7ois_TOURDE?=) Date: Wed, 29 Jun 2005 14:48:19 +0200 Subject: GRIDS and Graticule In-Reply-To: <7df4fc61050628120723a59637@mail.gmail.com> (John Novak's message of "Tue, 28 Jun 2005 12:07:19 -0700") Message-ID: Hi John, Le 12962i?me jour apr?s Epoch, John Novak ?crivait: > Please attach the .map file you're using I'll do that once I've reduced it. It's 230Ko of data (features layers), and a bad idea on the list. At the same time, I'll put a test url so you can see the result. Thanks a lot. From fr-ms at TOURDE.ORG Wed Jun 29 05:49:45 2005 From: fr-ms at TOURDE.ORG (=?iso-8859-1?q?Fran=E7ois_TOURDE?=) Date: Wed, 29 Jun 2005 14:49:45 +0200 Subject: GRIDS and Graticule In-Reply-To: <010401c57c1e$ab74aa60$160002c0@shark> (Brent Fraser's message of "Tue, 28 Jun 2005 14:19:21 -0600") Message-ID: Le 12962i?me jour apr?s Epoch, Brent Fraser ?crivait: > Fran?ois, > > I think the MIN/MAXARCS parameter values in the map file are just "hints" > for the grid/graticule portion of mapserver, it will show a few more or less > lines to ensure the lines are drawn at "good" intervals. Using a value of > MAXARCS 5 and zooming in and out, I get from 3 to 9 lines. I got from 0 to .... 25 lines, using MIN/MAXARCS 2/10 :( > Here's an example of a grid layer for the Itasca demo/workshop: I'll try this one... Thanks! From bernardosk at GMAIL.COM Wed Jun 29 06:12:27 2005 From: bernardosk at GMAIL.COM (Bernardo Rocha) Date: Wed, 29 Jun 2005 10:12:27 -0300 Subject: Fwd: Making different Legends In-Reply-To: <8d285c84050624063931738940@mail.gmail.com> Message-ID: Is it possible to make two different legends from one mapfile? I want to display the "basic" legend all time, but I want to show a thematic map file legend in other part of the page...so I need a differente legend image. Could someone show me some example ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Wed Jun 29 06:36:26 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 29 Jun 2005 07:36:26 -0600 Subject: join object in mapscript In-Reply-To: Message-ID: On Jun 29, 2005, at 3:31 AM, Klement Szabolcs wrote: > I want use join object from mapscipt (java). Why this is not exists in > mapscript wrapper? and when to make this? I think this is a very > important > feature for real time cartogram, thematic map, or for other spatial > analisys. > Actually, since joined data is only accessible within a query, it is not important for cartography. We cannot classify or filter based on a join. Mapscript lacks a join object because no one has needed it or asked for it. It is very simple to instead use one of your language's data connectors (jdbc or xbase) and join the data within your application. With mapscript you are also not limited to joins on a DBF, and can bring in data from practically any database. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From christhorne at SYMPATICO.CA Wed Jun 29 06:59:07 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Wed, 29 Jun 2005 09:59:07 -0400 Subject: MrSid SDK LizardTech Package? In-Reply-To: Message-ID: I tried ;) Chris William K wrote: > Man, what a rotten deal. Looks like they changed their login system, > or someone broke it. It used to be a web form, now it's a http password > thing. No way to reregister. > > And I've been waiting for them to update the DSDK for Mac OS 10.4. > > > Chris, the license explicitly states that noone can distribute the > source code. We must wait for LizardTech to fix their site. > > > On Jun 28, 2005, at 4:41 PM, Christopher R. Thorne wrote: > >> Hello all, >> Today I tried download loading MrSid SDK from LizardTech's website but >> found the Developers area unaccessible. Even with my user name and >> password. >> >> I was wondering if someone has this package and could send it to me and >> David Marshall (see cc:). I would like to add the MrSid pluggin for gdal >> on a Linux server. >> >> Thanks >> Chris > > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > Theory of the Universe > > There is a theory which states that if ever anyone discovers exactly > what the universe is for and why it is here, it will instantly > disappear and be replaced by something even more bizarrely > inexplicable. There is another theory which states that this has > already happened. > > -Hitchhiker's Guide to the Galaxy 2nd season intro > -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From woodbri at SWOODBRIDGE.COM Wed Jun 29 07:04:11 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 29 Jun 2005 10:04:11 -0400 Subject: join object in mapscript In-Reply-To: <0d705af5a1c7122fe07a03b5f67f7cfc@frii.com> Message-ID: Sean Gillies wrote: > On Jun 29, 2005, at 3:31 AM, Klement Szabolcs wrote: > >> I want use join object from mapscipt (java). Why this is not exists in >> mapscript wrapper? and when to make this? I think this is a very >> important >> feature for real time cartogram, thematic map, or for other spatial >> analisys. >> > > Actually, since joined data is only accessible within a query, it is not > important for cartography. We cannot classify or filter based on a join. > > Mapscript lacks a join object because no one has needed it or asked for > it. It is very simple to instead use one of your language's data > connectors (jdbc or xbase) and join the data within your application. > With mapscript you are also not limited to joins on a DBF, and can bring > in data from practically any database. I would add to Sean's comments here that you can do joins for thematic mapping with mapserver, but they are only done via the DATA "..." statement and are being processed outside of mapserver. For example when using PostGIS or GDAL/OGR. A join object would only be useful in the query mode as Sean points out, you you need to think about doing thematic mapping in terms of the DATA source provider. I have wanted mapserver to handle joins for classification for a long time, but have just recently started using PostGIS to get the capability and I'm very happy with the functionality there and the integration with mapserver. -Steve W. From umn-ms at HYDROTEC.DE Wed Jun 29 07:26:28 2005 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 29 Jun 2005 16:26:28 +0200 Subject: Bug in msCopy In-Reply-To: <931f8ea905062907165b4e20de@mail.gmail.com> Message-ID: hi frank i did it -> bug 1403 bye benedikt Frank Warmerdam schrieb am 29.06.2005 16:16:16: > On 6/29/05, Benedikt Rothe wrote: > > > > Dear List > > > > We are using MapScript/Tomcat/Java/OracleSpatial. > > > > We use mapObj.mapClone() to get a fresh mapObject > > in each request without reading the Mapfile. > > > > We detected problems after we activated Connection-Pooling: > > Tomcat crashed in mapObj.delete() > > > > Hole thing turned out to be a bug in mapcopy.c where > > the joins are copied: > > -------------------- > > MS_COPYSTELEM(numjoins); > > > > for (i = 0; i < dst->numprocessing; i++) { > > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > > -------------------- > > > > This must be changed to > > -------------------- > > MS_COPYSTELEM(numjoins); > > > > for (i = 0; i < dst->numjoins; i++) { > > return_value = msCopyJoin(&(dst->joins[i]), &(src->joins[i])); > > -------------------- > > > > There is some other code in mapobject.c, wich didn't > > raise any problems for us, but from wich I do think > > that array-allocs are missing. > > I watched the code an *think* these are are not allocated > > anywhere. I hope, there is no misleading hint: > > Benedikt, > > I would encourage you to submit this via bugzilla, > and ensure it gets assigned to Sean Gilles who > takes care of map cloning problems. > > The cloning is a bit prone to bugs, but we want to fix it > up. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Jun 29 07:27:53 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 29 Jun 2005 10:27:53 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: <42C21237.9070304@swoodbridge.com> Message-ID: On 6/28/05, Stephen Woodbridge wrote: > Bill, > > Hey, this sounds great! > I will give it a try. I knew you had done some work in this area, but I > did not realize it was in 4.6 which I am using. Steve, I believe the decision was to not document it as a supported feature for 4.6 so that we would have time to fiddle and improve it some more. However, I too am keen to have some people use it and provide feedback with the understanding that the mapfile syntax and approach may change a bit by 4.8 when it would hopefully "stabilize" as a supported feature. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From dennis at MEGARRY.COM Wed Jun 29 07:26:25 2005 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Wed, 29 Jun 2005 10:26:25 -0400 Subject: MrSid SDK LizardTech Package? Message-ID: Try http://developer.lizardtech.com/Authenticate.asp We have worked very closely with Lizardtech for the last year to get our Pocket PC MrSID Moving Map application built.. Its difficult to get answers from them in a timely manner, but they do respond eventualy. Dennis ________________________________ From: UMN MapServer Users List on behalf of Christopher R. Thorne Sent: Wed 6/29/2005 9:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MrSid SDK LizardTech Package? I tried ;) Chris William K wrote: > Man, what a rotten deal. Looks like they changed their login system, > or someone broke it. It used to be a web form, now it's a http password > thing. No way to reregister. > > And I've been waiting for them to update the DSDK for Mac OS 10.4. > > > Chris, the license explicitly states that noone can distribute the > source code. We must wait for LizardTech to fix their site. > > > On Jun 28, 2005, at 4:41 PM, Christopher R. Thorne wrote: > >> Hello all, >> Today I tried download loading MrSid SDK from LizardTech's website but >> found the Developers area unaccessible. Even with my user name and >> password. >> >> I was wondering if someone has this package and could send it to me and >> David Marshall (see cc:). I would like to add the MrSid pluggin for gdal >> on a Linux server. >> >> Thanks >> Chris > > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > Theory of the Universe > > There is a theory which states that if ever anyone discovers exactly > what the universe is for and why it is here, it will instantly > disappear and be replaced by something even more bizarrely > inexplicable. There is another theory which states that this has > already happened. > > -Hitchhiker's Guide to the Galaxy 2nd season intro > -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From christhorne at SYMPATICO.CA Wed Jun 29 07:45:25 2005 From: christhorne at SYMPATICO.CA (Christopher R. Thorne) Date: Wed, 29 Jun 2005 10:45:25 -0400 Subject: MrSid SDK LizardTech Package? In-Reply-To: <9FAE86C6BFBD7C45949E7590CC2D0DB26CD7@webdemo.megarry.com> Message-ID: Thanks Dennis, Actually that is where I was trying to get in. I already have an account and does not seem to work anymore. Chris Dennis Megarry wrote: > Try http://developer.lizardtech.com/Authenticate.asp > > We have worked very closely with Lizardtech for the last year to get our > Pocket PC MrSID Moving Map application built.. Its difficult to get > answers from them in a timely manner, but they do respond eventualy. > > Dennis > > ------------------------------------------------------------------------ > *From:* UMN MapServer Users List on behalf of Christopher R. Thorne > *Sent:* Wed 6/29/2005 9:59 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] MrSid SDK LizardTech Package? > > I tried ;) > Chris > William K wrote: > > Man, what a rotten deal. Looks like they changed their login system, > > or someone broke it. It used to be a web form, now it's a http password > > thing. No way to reregister. > > > > And I've been waiting for them to update the DSDK for Mac OS 10.4. > > > > > > Chris, the license explicitly states that noone can distribute the > > source code. We must wait for LizardTech to fix their site. > > > > > > On Jun 28, 2005, at 4:41 PM, Christopher R. Thorne wrote: > > > >> Hello all, > >> Today I tried download loading MrSid SDK from LizardTech's website but > >> found the Developers area unaccessible. Even with my user name and > >> password. > >> > >> I was wondering if someone has this package and could send it to me and > >> David Marshall (see cc:). I would like to add the MrSid pluggin for > gdal > >> on a Linux server. > >> > >> Thanks > >> Chris > > > > > > ----- > > William Kyngesburye > > http://www.kyngchaos.com/ > > > > Theory of the Universe > > > > There is a theory which states that if ever anyone discovers exactly > > what the universe is for and why it is here, it will instantly > > disappear and be replaced by something even more bizarrely > > inexplicable. There is another theory which states that this has > > already happened. > > > > -Hitchhiker's Guide to the Galaxy 2nd season intro > > > > > -- > Christopher R. Thorne, GIS Specialist > - > christhorne at sympatico.ca > Tel:(613)523-6593, Ottawa ON Canada > ----------------------------- > -- Christopher R. Thorne, GIS Specialist - christhorne at sympatico.ca Tel:(613)523-6593, Ottawa ON Canada ----------------------------- From woodbri at SWOODBRIDGE.COM Wed Jun 29 08:07:52 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 29 Jun 2005 11:07:52 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: <931f8ea90506290727157a1c05@mail.gmail.com> Message-ID: Frank, I will add some thoughts to the bug. Off the top of my head, I am thinking it would be nice to have something like: RAMPBREAKS 0 5.2 27.3 ... 503.4 Which would be used to slot the RAMPITEM into discrete ranges instead of continuous interpolation. This would get converted to something like switch (RAMPITEM) { case <= 0: under_range; case <= 5.2: slot=0; case <= 27.3: slot=1; ... case <= 503.4: slot=n; default: slot=over_range; } then use slot 0 .. n for lookup on the ramp and allow: OVERCOLOR 210 210 210 UNDERCOLOR 92 92 92 These makes it very flexible the user point of view, and we have all the information to compute varying slots on a ramp, and for create legends based on discrete slots. Also, on the COLORRAMP allow multiple RGB points so you can have more colors. Like: COLORRAMP 0 0 255 255 255 255 255 0 0 for a ramp that goes from Blue to white to red I need to play with it more, and I will add these thoughts to the bug. Bill, Right, I did not use a style, I will try that when I get a chance tonight. Frank Warmerdam wrote: > On 6/28/05, Stephen Woodbridge wrote: > >>Bill, >> >>Hey, this sounds great! >>I will give it a try. I knew you had done some work in this area, but I >>did not realize it was in 4.6 which I am using. > > > Steve, > > I believe the decision was to not document it as a supported > feature for 4.6 so that we would have time to fiddle and improve > it some more. However, I too am keen to have some people > use it and provide feedback with the understanding that the > mapfile syntax and approach may change a bit by 4.8 > when it would hopefully "stabilize" as a supported feature. > > Best regards, From Maarten.van.der.Hoeven at KNMI.NL Wed Jun 29 08:37:07 2005 From: Maarten.van.der.Hoeven at KNMI.NL (Hoeven, Maarten van der) Date: Wed, 29 Jun 2005 17:37:07 +0200 Subject: Solution: RE: [UMN_MAPSERVER-USERS] Layer working in mapfile, not (fully) working within PHP Message-ID: I found the solution for my problem; this to inform the list (and other with an alike problem). The code is okay, I had to add the following to get the labels displayed on the map $layerObj1->set("labelcache",MS_OFF); That's all :) Maarten -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Namens Hoeven, Maarten van der Verzonden: Tuesday, June 28, 2005 4:07 PM Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Layer working in mapfile, not (fully) working within PHP Re-sending (might be missed because I send it during the weekend. My apologies if my re-sending seems pushy) === Hi list, thanks for all your help; all suggestions are most useful! My problem is, when I use the layer-definition from the mapfile, the countries as well as the country names are displayed. However, when I dynamically build my layer in PHP (commenting out the whole 'country_name' layer-definition in the mapfile, of course), the countries are displayed okay, but the country names are *not* displayed at all. I do want to display the country names from the layer I defined in the PHP script. Any guru can see what's wrong? All the best, Maarten === mapfile === LAYER NAME country_name METADATA "RESULT_FIELDS" "CNTRY_NAME" END TYPE POLYGON STATUS ON DATA country_eca LABELITEM 'CNTRY_NAME' CLASSITEM 'CNTRY_NAME' CLASS NAME 'CNTRY_NAME' STYLE OUTLINECOLOR 0 0 0 COLOR 255 255 191 END LABEL POSTLABELCACHE TRUE MINFEATURESIZE 40 POSITION CC PARTIALS FALSE COLOR '#000080' SIZE GIANT END END END # layer === php script (part of it) === $layerObj1 = ms_newLayerObj($gpoMap); $layerObj1->set("name","country_name"); $layerObj1->set("type",MS_LAYER_POLYGON); $layerObj1->set("status",MS_ON); $layerObj1->set("data","country_eca"); $layerObj1->set("labelitem","cntry_name"); $layerObj1->set("classitem","cntry_name"); $layerObj1->setMetaData("result_fields","cntry_name"); $classObj1 = ms_newClassObj($layerObj1); $classObj1->set("name","cntry_name"); $styleObj1 = ms_newStyleObj($classObj1); $styleObj1->color->setRGB(255,255,191); $styleObj1->outlinecolor->setRGB(0,0,0); $classObj1->label->set("size",MS_GIANT); $classObj1->label->set("position",MS_CC); $classObj1->label->set("minfeaturesize",40); $classObj1->label->set("partials",MS_FALSE); $classObj1->label->color->setRGB(0,0,80); $layerObj1->draw($img); From monica.socol at DPRA.COM Wed Jun 29 08:51:55 2005 From: monica.socol at DPRA.COM (Monica Socol) Date: Wed, 29 Jun 2005 10:51:55 -0500 Subject: 3D data support Message-ID: Hi everybody. We are using PHP/Mapscript on top of MapServer and we are interested in rendering 3D maps with this combination. Is anybody using 3D data? If yes, what types of data can we use? Thank you, Monica From brauplists at GMAIL.COM Wed Jun 29 09:31:59 2005 From: brauplists at GMAIL.COM (Bruce Raup) Date: Wed, 29 Jun 2005 10:31:59 -0600 Subject: data not visible at the poles Message-ID: Hi all, Summary: We have a global data set stored in lon/lat coordinates in a PostGIS database. When displaying these data in a polar stereographic projection, if the view window includes the pole, some data don't get displayed. We have discerned the following. MapServer is aware of the output projection as well as the projections of the input layers. If these are different, it apparently reprojects the coordinates of the view window from output projection coordinates to the coordinate system of the source data and applys that window to subset the source data. In the case where the output projection is polar stereographic and the input data is lon/lat, if the window includes the pole, then when these coordinates are converted to lon/lat, one can get an annulus. The result is that data "drop out" or disappear from the inside of the annulus. Please have a look at the illustration of the problem at http://spot.colorado.edu/~braup/MapServer/ The top figure shows an overview of Antarctica. When zooming into the area marked in green, which does not include the pole, the data that were missing in the overview show up (bottom figure). In both figures, the red lines are areas of interest polygons, and the squares are image footprints; both are affected by the problem This problem makes it impossible to show an overview with complete data layers, unless we break our global dataset into three pieces (north polar, middle latitudes, and south polar), already projected. The same problem afflicts queries. Are there any other ways around this? It would be great if MapServer could handle this "smarter". One way MapServer might be smarter about this would be to detect the case where the pole is included in the view window or selection box. The other (brute force) way would be to project all the source data and do the subsetting in projected coordinates, but of course, this is a lot of computation. So I'm asking two things: Is there a good way to handle this (preferrably not by breaking up our dataset)? And, Can MapServer be fixed so that this problem doesn't happen? Thanks in advance, Bruce -- Bruce Raup http://cires.colorado.edu/~braup/ From perry.casson at WAYPOINTINFO.COM Wed Jun 29 09:52:25 2005 From: perry.casson at WAYPOINTINFO.COM (Perry Casson) Date: Wed, 29 Jun 2005 10:52:25 -0600 Subject: Mapserver at play Message-ID: Hi All, I thought some of you might get a kick out out this Mapserver/flash site we put together for semi-real time tracking of 30 teams running a 16 day canoe race up in northern Canada. The public seems pretty comfortable playing with web mapping as this rather obscure event has generated over 800,000 hits and of that well over 1/3 were mapserver draws all in the 1st week. http://saskcanoequest.ca Great technology you have opened up for the world to use, may the Mapserver tribe grow and prosper. Perry Casson Vice President, Technology Waypoint Information Technology Inc. 223 Colonnade Road South, Suite 114 Ottawa, Ontario, Canada K2E 7K3 Toll free: 888.891.3532 Direct: 613.482.0212 email: perry.casson at waypointinfo.com From jerl.simpso at GMAIL.COM Wed Jun 29 10:09:41 2005 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Wed, 29 Jun 2005 12:09:41 -0500 Subject: file size issue In-Reply-To: <20050624183908.D0BCE1A6BC2@mail.medinaco.org> Message-ID: Lowell, Thanks for the info. I found out after some time that the ODBC connection only works for Point shape layers. Well, I think that's the case anyway. Some documentation I found said as much. The data I'm looking at is Line data. Thanks again, Jerl On 6/24/05, Lowell Filak wrote: > The following message was sent by Jerl Simpson > on Mon, 20 Jun 2005 08:37:29 -0500. > > > That's the same conclusion I came to as well. I thought I could > > either use the C API or I could use the tile index files. They are > > all broken up into smaller files. The issue with that is I would have > > to modify the shp2mysql.pl file so it did not create a new table in > > the database for each file of the tiling. > > > > Thanks again, > > > > Jerl > > > > > > > > > > Jerl, > > > > > > I think I may have missed something. If my understanding (from a > > > conference session today) is correct the problem lies in GEO::Shapelib > > > itself. It appears that it reads the geometries into an array which > > > would still mean you would need enough ram to read the entire shapefile. > > > The only workaround is to use shapelib via C directly instead of through > > > the perl module. From C you would be able to iterate over each entity. > > Jerl, > > There is 1 last option if you would like to create an arrays.i include > file for swig'ng shapelib. > What I have currently is a swig'd version of shapelib that sort-of > works. The geometry data is extracted from the shape into a few C arrays > and there is a typemap required to make those available as perl arrays, > otherwise they show up as _p_double=SCALAR(0x...) and are unuseable. > > Lowell > From jdport at VERITIME.COM Wed Jun 29 10:39:14 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 29 Jun 2005 13:39:14 -0400 Subject: Mapserver at play Message-ID: Very nice! That's a pretty fun application for mapserver :) -Jeff ----- Original Message ----- From: "Perry Casson" To: Sent: Wednesday, June 29, 2005 12:52 PM Subject: [UMN_MAPSERVER-USERS] Mapserver at play > Hi All, > > I thought some of you might get a kick out out this Mapserver/flash site > we put together for semi-real time tracking of 30 teams running a 16 day > canoe race up in northern Canada. The public seems pretty comfortable > playing with web mapping as this rather obscure event has generated over > 800,000 hits and of that well over 1/3 were mapserver draws all in the > 1st week. > > http://saskcanoequest.ca > > > > Great technology you have opened up for the world to use, may the > Mapserver tribe grow and prosper. > > > Perry Casson > Vice President, Technology > Waypoint Information Technology Inc. > 223 Colonnade Road South, Suite 114 > Ottawa, Ontario, Canada K2E 7K3 > > Toll free: 888.891.3532 > Direct: 613.482.0212 > email: perry.casson at waypointinfo.com > From doug at MOXIMEDIA.COM Wed Jun 29 13:20:13 2005 From: doug at MOXIMEDIA.COM (Doug Cates) Date: Wed, 29 Jun 2005 13:20:13 -0700 Subject: WMS image cache? Message-ID: Hi, Does anybody know if it is possible to set up MapServer / Apache / Linux to cache WMS GetMap requests? What I mean is that if MapServer receives the same request as one recently sent from the same browser, that I'd like it to be returned to the browser without re-processing and creating a new image. This is for a real-time tracking application. Is it possible to set this up server-side, or is this something that I'll need to do in my client application? Any ideas would be appreciated. Thanks, Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue North Vancouver, BC, Canada V7M 2J5 Phone: 604-630-9404 Fax: 604-608-4764 From pramsey at REFRACTIONS.NET Wed Jun 29 13:34:27 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 29 Jun 2005 13:34:27 -0700 Subject: WMS image cache? In-Reply-To: <200506291320.13347.doug@moximedia.com> Message-ID: Doug, Most of the relevant information can be gleaned here: http://httpd.apache.org/docs/mod/mod_proxy.html Short answer, yes, very doable, just needs some Apache magic and careful configuration. Paul Doug Cates wrote: > Hi, > > Does anybody know if it is possible to set up MapServer / Apache / Linux to > cache WMS GetMap requests? What I mean is that if MapServer receives the same > request as one recently sent from the same browser, that I'd like it to be > returned to the browser without re-processing and creating a new image. This > is for a real-time tracking application. Is it possible to set this up > server-side, or is this something that I'll need to do in my client > application? > > Any ideas would be appreciated. > > Thanks, > Doug From ealpert at DIGITALGLOBE.COM Wed Jun 29 13:34:17 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 29 Jun 2005 14:34:17 -0600 Subject: WMS image cache? Message-ID: If the URL is truly the same wouldn't your browser cache it for you? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doug Cates Sent: Wednesday, June 29, 2005 2:20 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS image cache? Hi, Does anybody know if it is possible to set up MapServer / Apache / Linux to cache WMS GetMap requests? What I mean is that if MapServer receives the same request as one recently sent from the same browser, that I'd like it to be returned to the browser without re-processing and creating a new image. This is for a real-time tracking application. Is it possible to set this up server-side, or is this something that I'll need to do in my client application? Any ideas would be appreciated. Thanks, Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue North Vancouver, BC, Canada V7M 2J5 Phone: 604-630-9404 Fax: 604-608-4764 From neovazjr2 at HOTMAIL.COM Wed Jun 29 13:29:57 2005 From: neovazjr2 at HOTMAIL.COM (Clarence Ng) Date: Wed, 29 Jun 2005 15:29:57 -0500 Subject: Can map server send feature data/vector data to the client? Message-ID: Hi, a little off-topic but I've been getting lat/long and name of points in a layer for the mouse-over function. Its quite possible to request wfs on a small amount of data (~300 points). On a shapefile it takes around .2-3 seconds. Luckily the users can only see the first 10-20 chars of the string of formatted data of all the points, the rest invisible in view-source mode. From bill at BINKO.NET Wed Jun 29 13:46:19 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 29 Jun 2005 16:46:19 -0400 Subject: WMS image cache? In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CC27@COMAIL01.digitalglobe.com> Message-ID: On Wed, 29 Jun 2005, Ethan Alpert wrote: > If the URL is truly the same wouldn't your browser cache it for you? That depends entirely on the headers sent by Apache... the link in the previous post is probably a good start, as is the (old) book Web Caching by O'Reilly. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Doug Cates > Sent: Wednesday, June 29, 2005 2:20 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WMS image cache? > > > Hi, > > Does anybody know if it is possible to set up MapServer / Apache / Linux > to > cache WMS GetMap requests? What I mean is that if MapServer receives the > same > request as one recently sent from the same browser, that I'd like it to > be > returned to the browser without re-processing and creating a new image. > This > is for a real-time tracking application. Is it possible to set this up > server-side, or is this something that I'll need to do in my client > application? > > Any ideas would be appreciated. > > Thanks, > Doug > From ealpert at DIGITALGLOBE.COM Wed Jun 29 13:46:10 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 29 Jun 2005 14:46:10 -0600 Subject: Can map server send feature data/vector data to the client? Message-ID: AJAX (Asynchronous JavaScript and XML) is certainly a way of pulling XML data to the client using the XMLHttpRequest object. HOWEVER, you can only connect to the server that sent you the page (a javascript security "feature"). This kind of makes doing this hard for multiple WFS/WMS servers but does enable some interesting possibilities for smarter clients. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Andrea Edwards Sent: Sunday, June 26, 2005 1:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Can map server send feature data/vector data to the client? Hello I was wondering if it was possible in mapserver to send raw vector/feature data to the client's web browser? In the standard model for internet web mapping applications each pan/zoom operation sends a request to the server and a new map is redrawn. I was wondering if it was possible to cut down on some of the processing time by sending the vector data to the client and then processing the maps on the client side. I also thought that this might not be possible because of the sheer size of the vector data that you would have to send to the client. You would also have to make sure the vector data was removed from the client's machine as it would violate your licensing agreement for the map data if it was left on someone else's machine (well it would mine anyway). I was wondering what people's thoughts were on this issue. Also does the jbox javca applet process vector data on the client? Many thanks for your help andrea From bill at BINKO.NET Wed Jun 29 13:56:59 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 29 Jun 2005 16:56:59 -0400 Subject: Can map server send feature data/vector data to the client? In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CC28@COMAIL01.digitalglobe.com> Message-ID: > I was wondering if it was possible in mapserver to send raw > vector/feature data to the client's web browser? Yes: mapserver can send back WFS, Flash, and SVG, all of which are vector format. > I also thought that this might not be possible because of the sheer size > of the vector data that you would have to send to the client. You would > also have to make sure the vector data was removed from the client's > machine as it would violate your licensing agreement for the map data if > it was left on someone else's machine (well it would mine anyway). Licensing is a separate issue, and is certainly a big reason why there are multiple approaches (WMS and WFS). Others here are more capable of discussing the politics and trade-offs than I. > Also does the jbox javca applet process vector data on the client? I'm almost certain that that's a no Bill From doug at MOXIMEDIA.COM Wed Jun 29 13:57:41 2005 From: doug at MOXIMEDIA.COM (Doug Cates) Date: Wed, 29 Jun 2005 13:57:41 -0700 Subject: WMS image cache? In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CC27@COMAIL01.digitalglobe.com> Message-ID: On Wednesday 29 June 2005 13:34, Ethan Alpert wrote: > If the URL is truly the same wouldn't your browser cache it for you? I was hoping so too. Not happening though. Here's the server log. I'll check out Pul Ramsey's suggestion and let everyone know. 24.87.184.147 - - [29/Jun/2005:14:50:49 -0700] "GET /wms/sanjuan?VERSION=1.1.1&REQUEST=GetMap&LAYERS=sjparcels2&STYLES=&SRS=EPSG%3A32148&BBOX=1072699.2524193549,617071.0,1077563.7475806451,621620.0&WIDTH=663&HEIGHT=620&FORMAT=image/png&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_blank& HTTP/1.1" 200 12420 "http://www.moximedia.com/imf-ows/imfMainMap.jsp?cmd=refresh&mapid=24205&w=663&h=620" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4" 24.87.184.147 - - [29/Jun/2005:14:52:42 -0700] "GET /wms/sanjuan?VERSION=1.1.1&REQUEST=GetMap&LAYERS=sjparcels2&STYLES=&SRS=EPSG%3A32148&BBOX=1072699.2524193549,617071.0,1077563.7475806451,621620.0&WIDTH=663&HEIGHT=620&FORMAT=image/png&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_blank& HTTP/1.1" 200 12420 "http://www.moximedia.com/imf-ows/imfMainMap.jsp?cmd=refresh&mapid=24206&w=663&h=620" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4" The "200" after the "HTTP/1.1" indicates that it was re-requested and not cached by either the browser or server. Thanks, Doug From pramsey at REFRACTIONS.NET Wed Jun 29 14:11:02 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 29 Jun 2005 14:11:02 -0700 Subject: WMS image cache? In-Reply-To: <200506291357.41519.doug@moximedia.com> Message-ID: Read back the headers, it is possible it is being returned with a no-cache directive. Actually, checking mod_proxy, it looks like it respects the HTTP headers pretty well (which would actually be a bad thing, in your case). p Doug Cates wrote: > On Wednesday 29 June 2005 13:34, Ethan Alpert wrote: > >>If the URL is truly the same wouldn't your browser cache it for you? > > > I was hoping so too. Not happening though. Here's the server log. I'll check > out Pul Ramsey's suggestion and let everyone know. > > 24.87.184.147 - - [29/Jun/2005:14:50:49 -0700] > "GET /wms/sanjuan?VERSION=1.1.1&REQUEST=GetMap&LAYERS=sjparcels2&STYLES=&SRS=EPSG%3A32148&BBOX=1072699.2524193549,617071.0,1077563.7475806451,621620.0&WIDTH=663&HEIGHT=620&FORMAT=image/png&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_blank& > HTTP/1.1" 200 12420 > "http://www.moximedia.com/imf-ows/imfMainMap.jsp?cmd=refresh&mapid=24205&w=663&h=620" > "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050511 > Firefox/1.0.4" > > 24.87.184.147 - - [29/Jun/2005:14:52:42 -0700] > "GET /wms/sanjuan?VERSION=1.1.1&REQUEST=GetMap&LAYERS=sjparcels2&STYLES=&SRS=EPSG%3A32148&BBOX=1072699.2524193549,617071.0,1077563.7475806451,621620.0&WIDTH=663&HEIGHT=620&FORMAT=image/png&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_blank& > HTTP/1.1" 200 12420 > "http://www.moximedia.com/imf-ows/imfMainMap.jsp?cmd=refresh&mapid=24206&w=663&h=620" > "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050511 > Firefox/1.0.4" > > The "200" after the "HTTP/1.1" indicates that it was re-requested and not > cached by either the browser or server. > > Thanks, > Doug From rjames57 at YAHOO.COM Wed Jun 29 14:23:10 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Wed, 29 Jun 2005 14:23:10 -0700 Subject: Security of data Message-ID: I was trying to figgure out how to protect sensitive information. We have mapserver set up on our LAN, which does not allow http requests from the internet. It protects our data from the internet but now I am getting people who want to do reasearch in our office using thier own laptop. The problem i am faced with is the c:\windows\temp\*.png files that is downloaded by thier internet explorer. How do I make sure they are not taken out of our office when they pack their laptop out? Is there a way to display the maps and not have these files in the windows\temp folder? Randy __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ed at TOPOZONE.COM Wed Jun 29 14:26:37 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 29 Jun 2005 17:26:37 -0400 Subject: Security of data Message-ID: Randy - If the information is that sensitive, what's to keep the users from doing screen captures and saving the image files, regardless of what you do with MapServer? Unless you have a well-built secure laptop environment, anything you put on the screen can go on the disk. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy James Sent: Wednesday, June 29, 2005 5:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Security of data I was trying to figgure out how to protect sensitive information. We have mapserver set up on our LAN, which does not allow http requests from the internet. It protects our data from the internet but now I am getting people who want to do reasearch in our office using thier own laptop. The problem i am faced with is the c:\windows\temp\*.png files that is downloaded by thier internet explorer. How do I make sure they are not taken out of our office when they pack their laptop out? Is there a way to display the maps and not have these files in the windows\temp folder? Randy __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From David.Fawcett at STATE.MN.US Wed Jun 29 14:30:34 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 29 Jun 2005 16:30:34 -0500 Subject: Security of data Message-ID: Or even high-res pictures of the screen with a small, quiet digital camera.... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Ed McNierney Sent: Wednesday, June 29, 2005 4:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Security of data Randy - If the information is that sensitive, what's to keep the users from doing screen captures and saving the image files, regardless of what you do with MapServer? Unless you have a well-built secure laptop environment, anything you put on the screen can go on the disk. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Wed Jun 29 14:30:09 2005 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Wed, 29 Jun 2005 17:30:09 -0400 Subject: Security of data Message-ID: Randy, Their browsers will normally cache the map images they get. You could try to avoid this by explicitly setting the necessary HTTP headers on the images generated by MapServer so as to make sure they don't get cached by the browser, though it should be noted that browser settings could override this. Basically, there's no way to guarantee 100% that people viewing maps on their laptops will never walk out of the office with the information somewhere on their computer, at least not with standard viewing technologies (i.e. D()HTML/JavaScript). You can reduce the likelyhood considerably by trying to fight the caching mechanisms, but that's the best you can do. If they had a thick Java client however, you could maybe achieve your goal. J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy James Sent: June 29, 2005 5:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Security of data I was trying to figgure out how to protect sensitive information. We have mapserver set up on our LAN, which does not allow http requests from the internet. It protects our data from the internet but now I am getting people who want to do reasearch in our office using thier own laptop. The problem i am faced with is the c:\windows\temp\*.png files that is downloaded by thier internet explorer. How do I make sure they are not taken out of our office when they pack their laptop out? Is there a way to display the maps and not have these files in the windows\temp folder? Randy __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From rjames57 at YAHOO.COM Wed Jun 29 14:47:58 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Wed, 29 Jun 2005 14:47:58 -0700 Subject: Security of data In-Reply-To: <4BF377919225F449BB097CB76FFE9BC818871A@ptolemy.topozone.com> Message-ID: Well ED thats my question also how do I protect from what you mentioned also? The only way I have been doing it now is not to let anyone that should not see it on the site by passwords. --- Ed McNierney wrote: > Randy - > > If the information is that sensitive, what's to keep the users from > doing screen captures and saving the image files, regardless of what you > do with MapServer? Unless you have a well-built secure laptop > environment, anything you put on the screen can go on the disk. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Randy James > Sent: Wednesday, June 29, 2005 5:23 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Security of data > > I was trying to figgure out how to protect sensitive information. We > have mapserver set up on our LAN, which does not allow http requests > from the internet. It protects our data from the internet but now I am > getting people who want to do reasearch in our office using thier own > laptop. The problem i am faced with is the c:\windows\temp\*.png files > that is downloaded by thier internet explorer. How do I make sure they > are not taken out of our office when they pack their laptop out? Is > there a way to display the maps and not have these files in the > windows\temp folder? > > Randy > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mike.and.kerry at GMAIL.COM Wed Jun 29 15:14:15 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Wed, 29 Jun 2005 14:14:15 -0800 Subject: Security of data In-Reply-To: <20050629214758.14642.qmail@web30715.mail.mud.yahoo.com> Message-ID: If you allow users to access something on their computers you must operate under the assumption that you have just given that user the ability to keep any information they download. If you really want to prevent them from removing images, make them use a kiosk or something to access your mapserver information. As far as I know every system that purports to limit user access to information "temporarily" downloaded to their computers (quicktime temp files, flash audio, etc...) has been hacked. -mike On 6/29/05, Randy James wrote: > Well ED thats my question also how do I protect from what you mentioned also? The > only way I have been doing it now is not to let anyone that should not see it on > the site by passwords. > > --- Ed McNierney wrote: > > > Randy - > > > > If the information is that sensitive, what's to keep the users from > > doing screen captures and saving the image files, regardless of what you > > do with MapServer? Unless you have a well-built secure laptop > > environment, anything you put on the screen can go on the disk. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Randy James > > Sent: Wednesday, June 29, 2005 5:23 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Security of data > > > > I was trying to figgure out how to protect sensitive information. We > > have mapserver set up on our LAN, which does not allow http requests > > from the internet. It protects our data from the internet but now I am > > getting people who want to do reasearch in our office using thier own > > laptop. The problem i am faced with is the c:\windows\temp\*.png files > > that is downloaded by thier internet explorer. How do I make sure they > > are not taken out of our office when they pack their laptop out? Is > > there a way to display the maps and not have these files in the > > windows\temp folder? > > > > Randy > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From doug at MOXIMEDIA.COM Wed Jun 29 15:28:15 2005 From: doug at MOXIMEDIA.COM (Doug Cates) Date: Wed, 29 Jun 2005 15:28:15 -0700 Subject: WMS image cache? In-Reply-To: <42C30E66.3090505@refractions.net> Message-ID: On Wednesday 29 June 2005 14:11, Paul Ramsey wrote: > Read back the headers, it is possible it is being returned with a > no-cache directive. Actually, checking mod_proxy, it looks like it > respects the HTTP headers pretty well (which would actually be a bad > thing, in your case). Paul, Thanks. I see just these. Connection = Keep-Alive Date = Thu, 30 Jun 2005 00:12:38 GMT Keep-Alive = timeout=15, max=100 null = HTTP/1.1 200 OK Server = Apache/2.0.48 (Linux/SuSE) Content-Type = image/png Transfer-Encoding = chunked Is there something that I could put in the msWMSGetMap function of mapwms.c to set a caching flag? I'm guessing that I could put something right after where the content type is set: printf("Content-type: %s%c%c", MS_IMAGE_MIME_TYPE(map->outputformat), 10,10); As always, any ideas are appreciated. Doug From nate at SEASTAR.JPL.NASA.GOV Wed Jun 29 15:32:16 2005 From: nate at SEASTAR.JPL.NASA.GOV (Nate Reed) Date: Wed, 29 Jun 2005 15:32:16 -0700 Subject: WMS image cache? In-Reply-To: <200506291320.13347.doug@moximedia.com> Message-ID: I'm kind of new to MapServer myself, but from what I understand it is straightforward to write a "wrapper" CGI script that could process your WMS requests before you forward them to MapServer. Store the WMS requests and image url's in a hashtable, with the wms requests as the keys. Nate On Wed, 29 Jun 2005, Doug Cates wrote: > Hi, > > Does anybody know if it is possible to set up MapServer / Apache / Linux to > cache WMS GetMap requests? What I mean is that if MapServer receives the same > request as one recently sent from the same browser, that I'd like it to be > returned to the browser without re-processing and creating a new image. This > is for a real-time tracking application. Is it possible to set this up > server-side, or is this something that I'll need to do in my client > application? > > Any ideas would be appreciated. > > Thanks, > Doug > -- Nate Reed Physical Oceanography DAAC Jet Propulsion Lab / Raytheon ITSS (626)744-5528 nate at seastar.jpl.nasa.gov From rjames57 at YAHOO.COM Wed Jun 29 15:37:02 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Wed, 29 Jun 2005 15:37:02 -0700 Subject: Security of data In-Reply-To: <631c85c1050629151468c02813@mail.gmail.com> Message-ID: Hi Mike I was hoping someone would have a easy fix, but i guess not. I do not make the assumption that when i allow people to veiw something that they can download it and or keep it. In my book if you see something it does not mean that you own it. Randy --- Mike Davis wrote: > If you allow users to access something on their computers you must > operate under the assumption that you have just given that user the > ability to keep any information they download. If you really want to > prevent them from removing images, make them use a kiosk or something > to access your mapserver information. > > As far as I know every system that purports to limit user access to > information "temporarily" downloaded to their computers (quicktime > temp files, flash audio, etc...) has been hacked. > > -mike > > On 6/29/05, Randy James wrote: > > Well ED thats my question also how do I protect from what you mentioned also? > The > > only way I have been doing it now is not to let anyone that should not see it > on > > the site by passwords. > > > > --- Ed McNierney wrote: > > > > > Randy - > > > > > > If the information is that sensitive, what's to keep the users from > > > doing screen captures and saving the image files, regardless of what you > > > do with MapServer? Unless you have a well-built secure laptop > > > environment, anything you put on the screen can go on the disk. > > > > > > - Ed > > > > > > Ed McNierney > > > President and Chief Mapmaker > > > TopoZone.com / Maps a la carte, Inc. > > > 73 Princeton Street, Suite 305 > > > North Chelmsford, MA 01863 > > > ed at topozone.com > > > (978) 251-4242 > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > Behalf Of Randy James > > > Sent: Wednesday, June 29, 2005 5:23 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Security of data > > > > > > I was trying to figgure out how to protect sensitive information. We > > > have mapserver set up on our LAN, which does not allow http requests > > > from the internet. It protects our data from the internet but now I am > > > getting people who want to do reasearch in our office using thier own > > > laptop. The problem i am faced with is the c:\windows\temp\*.png files > > > that is downloaded by thier internet explorer. How do I make sure they > > > are not taken out of our office when they pack their laptop out? Is > > > there a way to display the maps and not have these files in the > > > windows\temp folder? > > > > > > Randy > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam protection around > > > http://mail.yahoo.com > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From pramsey at REFRACTIONS.NET Wed Jun 29 15:42:00 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 29 Jun 2005 15:42:00 -0700 Subject: WMS image cache? In-Reply-To: <200506291528.15243.doug@moximedia.com> Message-ID: Doug, I'm afraid we have now driven past my particular knowledge of HTTP into the realm of speculation. :) Time to hit the RFCs and see what-is-what. Or, just set up a simple test in mod_proxy and see if you get the behavior that you are looking for (set a default timeout and hopefully things will magically work). Paul Doug Cates wrote: > On Wednesday 29 June 2005 14:11, Paul Ramsey wrote: > >>Read back the headers, it is possible it is being returned with a >>no-cache directive. Actually, checking mod_proxy, it looks like it >>respects the HTTP headers pretty well (which would actually be a bad >>thing, in your case). > > > Paul, > > Thanks. I see just these. > > Connection = Keep-Alive > Date = Thu, 30 Jun 2005 00:12:38 GMT > Keep-Alive = timeout=15, max=100 > null = HTTP/1.1 200 OK > Server = Apache/2.0.48 (Linux/SuSE) > Content-Type = image/png > Transfer-Encoding = chunked > > Is there something that I could put in the msWMSGetMap function of mapwms.c to > set a caching flag? I'm guessing that I could put something right after where > the content type is set: > > printf("Content-type: %s%c%c", MS_IMAGE_MIME_TYPE(map->outputformat), 10,10); > > As always, any ideas are appreciated. > > Doug From ed at TOPOZONE.COM Wed Jun 29 15:54:58 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 29 Jun 2005 18:54:58 -0400 Subject: Security of data Message-ID: Randy - If you need to protect the data at that level, you should not let people have access with their own laptops. That's not a blow-off answer; you simply can't do it. It's not possible to simultaneously (a) ensure the image data cannot leave the building and (b) allow users to come in with their own equipment, view the images, and walk out of the building with that equipment. - Ed P.S. I used to work for a computer graphics card manufacturer, and we produced some very high-end (at the time) display hardware. One of our customers was a secure Federal agency. They were not permitted to return broken display cards for repair because they were afraid someone might be able to retrieve the images that were formerly displayed on that card from the video RAM! They simply bought new ones, and some of us suspected the company of cherry-picking the marginal boards to send to them . Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy James Sent: Wednesday, June 29, 2005 5:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Security of data Well ED thats my question also how do I protect from what you mentioned also? The only way I have been doing it now is not to let anyone that should not see it on the site by passwords. --- Ed McNierney wrote: > Randy - > > If the information is that sensitive, what's to keep the users from > doing screen captures and saving the image files, regardless of what > you do with MapServer? Unless you have a well-built secure laptop > environment, anything you put on the screen can go on the disk. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Randy James > Sent: Wednesday, June 29, 2005 5:23 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Security of data > > I was trying to figgure out how to protect sensitive information. We > have mapserver set up on our LAN, which does not allow http requests > from the internet. It protects our data from the internet but now I am > getting people who want to do reasearch in our office using thier own > laptop. The problem i am faced with is the c:\windows\temp\*.png files > that is downloaded by thier internet explorer. How do I make sure they > are not taken out of our office when they pack their laptop out? Is > there a way to display the maps and not have these files in the > windows\temp folder? > > Randy > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From nacional at CBS.UMN.EDU Wed Jun 29 16:14:21 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Wed, 29 Jun 2005 18:14:21 -0500 Subject: Security of data In-Reply-To: <20050629223702.72846.qmail@web30706.mail.mud.yahoo.com> Message-ID: Randy, This is an issue best resolved by legal experts. I agree with Ed and Mike... Kiosks are your only solution to truly safeguard that information. If you don't want users to have a digital copy of whatever information it is, you shouldn't let them have access to it with their own machines. Even a click-through license won't give you that much shield, I don't think. Talk to a lawyer though, because I'm not. -Perry Randy James wrote: > Hi Mike > > I was hoping someone would have a easy fix, but i guess not. I do not make the > assumption that when i allow people to veiw something that they can download it > and or keep it. In my book if you see something it does not mean that you own it. > > Randy > > --- Mike Davis wrote: > > >>If you allow users to access something on their computers you must >>operate under the assumption that you have just given that user the >>ability to keep any information they download. If you really want to >>prevent them from removing images, make them use a kiosk or something >>to access your mapserver information. >> >>As far as I know every system that purports to limit user access to >>information "temporarily" downloaded to their computers (quicktime >>temp files, flash audio, etc...) has been hacked. >> >>-mike >> >>On 6/29/05, Randy James wrote: >> >>>Well ED thats my question also how do I protect from what you mentioned also? >> >>The >> >>>only way I have been doing it now is not to let anyone that should not see it >> >>on >> >>>the site by passwords. >>> >>>--- Ed McNierney wrote: >>> >>> >>>>Randy - >>>> >>>>If the information is that sensitive, what's to keep the users from >>>>doing screen captures and saving the image files, regardless of what you >>>>do with MapServer? Unless you have a well-built secure laptop >>>>environment, anything you put on the screen can go on the disk. >>>> >>>> - Ed >>>> >>>>Ed McNierney >>>>President and Chief Mapmaker >>>>TopoZone.com / Maps a la carte, Inc. >>>>73 Princeton Street, Suite 305 >>>>North Chelmsford, MA 01863 >>>>ed at topozone.com >>>>(978) 251-4242 >>>> >>>>-----Original Message----- >>>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>>>Behalf Of Randy James >>>>Sent: Wednesday, June 29, 2005 5:23 PM >>>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>Subject: [UMN_MAPSERVER-USERS] Security of data >>>> >>>>I was trying to figgure out how to protect sensitive information. We >>>>have mapserver set up on our LAN, which does not allow http requests >>>>from the internet. It protects our data from the internet but now I am >>>>getting people who want to do reasearch in our office using thier own >>>>laptop. The problem i am faced with is the c:\windows\temp\*.png files >>>>that is downloaded by thier internet explorer. How do I make sure they >>>>are not taken out of our office when they pack their laptop out? Is >>>>there a way to display the maps and not have these files in the >>>>windows\temp folder? >>>> >>>>Randy >>>> >>>>__________________________________________________ >>>>Do You Yahoo!? >>>>Tired of spam? Yahoo! Mail has the best spam protection around >>>>http://mail.yahoo.com >>>> >>> >>> >>>__________________________________________________ >>>Do You Yahoo!? >>>Tired of spam? Yahoo! Mail has the best spam protection around >>>http://mail.yahoo.com >>> >> > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > From bill at BINKO.NET Wed Jun 29 16:42:51 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 29 Jun 2005 19:42:51 -0400 Subject: Security of data In-Reply-To: <42C32B4D.2060809@cbs.umn.edu> Message-ID: On Wed, 29 Jun 2005, Pericles S. Nacionales wrote: > Randy, > > This is an issue best resolved by legal experts. I agree with Ed and > Mike... Kiosks are your only solution to truly safeguard that > information. If you don't want users to have a digital copy of whatever > information it is, you shouldn't let them have access to it with their > own machines. Even a click-through license won't give you that much > shield, I don't think. > > Talk to a lawyer though, because I'm not. The only thing that I think this community might be able to help with would be the addition of a watermark to your image (cryptographic and/or visual). I am certain that this could be added at the PHP/Mapscript layer, and there are probably other places as well. It does not solve your problem (PrintScreen, PicturePhones, PenDrives, floppies, all are still a problem), but it might give your legal team one more tool they can use to enforce a legal solution. Bill From woodbri at SWOODBRIDGE.COM Wed Jun 29 18:27:48 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 29 Jun 2005 21:27:48 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: Message-ID: Bill, I don't seem to be able to get the color ramp to work, all I get is the first color in the ramp. The attached images show what I get with the same CONNECTION and DATA strings but using classes vs the colorramp. "citem" is an integer from 0 .. numclasses. Also, I note that I was unable touse %numclasses% on the DATARANGE. I would lobby to have this mechanism be implemented at a global level and not on a line by line or item by item basis that it seems to be done now this would also facilitate the much requested #include feature. It should be doing simple text substitution before any parsing is done so any %variable% can just include abitrary text into the mapfile. Here is the layer definition: LAYER NAME "zcta" CONNECTIONTYPE postgis CONNECTION "..." DATA "big honking sql stuff" TYPE POLYGON STATUS ON PROJECTION #"proj=latlong" "init=epsg:4326" END CLASSITEM "water" CLASS NAME "Water" EXPRESSION "t" OUTLINECOLOR 102 102 204 COLOR 102 102 204 END CLASS NAME "Class 0" EXPRESSION ([citem] = 0) OUTLINECOLOR 0 0 0 COLOR 102 102 102 END CLASS NAME "Class Ramp" COLOR 0 204 0 STYLE COLORRANGE 0 255 0 255 0 0 # DATARANGE 1 %numclasses% DATARANGE 1 10 RANGEITEM "citem" END OUTLINECOLOR 0 0 0 END END -Steve Bill Binko wrote: > On Wed, 29 Jun 2005, Stephen Woodbridge wrote: > > >>Argggh! Doesn't look like it works in the version distributed at MUM3 in >>the workshops. >> >>MapServer version 4.6.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ >>SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>DEBUG=MSDEBUG >> >>because it does not recognized the COLORRANGE >> > > > I would bet that it does. I just looked at 4.6beta3, and you should be > able to use it as I said below. > > Just a note, it must go into a STYLE...END block, it cannot go directly > into a CLASS (or LAYER). > > Bill > > >>-Steve W. >> >>Bill Binko wrote: >> >>>>Why is this needed? you ask, just make a bunch of classes. >>> >>> >>>Mwuu ha ha (*seang will kill me for this*) >>> >>>Take a look at bug 1305, and see if that will fit your needs. >>> >>>It is close, but not exactly what you want. Most obviously, legend >>>support is non-existant at this point, but I could be motivated to help >>>there if I ever get away from ECW and GeomUnion issues. >>> >>>If you're running 4.6, then support is already in there for you. >>> >>> >>> >>>>For a thematic map, you can select the number of breaks you want to >>>>display, between 2 and 10 say. I already have code to compute the class >>>>breaks and to assign them a number between 0 and numclasses, now I need >>>>to a color in the ramp based on numclasses. If your ramp is RED from 0 >>>>to 255, and you have a 2 class ramp the 2 will be 255, but if you >>>>display the same thin with a 10 class ramp 10 will be 255 and 2 will be >>>>like 25.5 >>>> >>> >>> >>>In this case, you'd want to do something like this: >>> >>> CLASS >>> COLOR 0 0 0 #mapserver wants a default color >>> STYLE >>> COLORRANGE 0 0 0 255 0 0 #start and end colors >>> DATARANGE 0 10 #start and end values >>> RANGEITEM "someField" #the field to use >>> END >>> END >>> >>>No doubt this is not perfect (it has no "breaks": it is continuous). >>>However, having another user try it and provide feedback (into the bug >>>please) can only help. >>> >>>Bill >>> >> >> >> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: classes.png Type: image/png Size: 27491 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: colorramp.png Type: image/png Size: 21164 bytes Desc: not available URL: From kasey at INEXO.COM Wed Jun 29 18:29:25 2005 From: kasey at INEXO.COM (Kasey Kirkham) Date: Wed, 29 Jun 2005 18:29:25 -0700 Subject: Rotating a symbol/layer drawn with PointObj Message-ID: Hello, Long, long ago, I posted to this forum asking for guidance on drawing a point layer( http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0403/msg00562.html ). Thanks to the help of the folks on this list, I was able to get the application working. First off, I created a layer for each symbol I wanted to use(in the mapfile, see below). The php app which uses the mapfile will create a new PointObj for each coordinate returned by a query, look up the name of the symbol layer associated with the gps source, then call PointObj->draw with the layer as an argument(see my equally inscrutable code fragment below). This works nicely for drawing dots on the map, however there is now a new twist. I would like to use triangular symbols in my layer, rotated relative to the point which follows. For instance, if the first coordinate was (1,1), and the second was (5,1), I would like to rotate the first symbol to the right by 90 degrees so that it is "pointing" at the second symbol. I think labels support this with the "angle" attribute, but I didn't find anything in the documentation indicating that points/symbols could be rotated in the same way. Any ideas? A million thanks! Kasey # mapfile fragment: # LAYER object LAYER NAME "point_mapping-red" TYPE POINT STATUS ON # CLASS object CLASS NAME "points_red" SYMBOL "gps_coordinate-red" COLOR 255 0 0 # LABEL object LABEL POSITION CC SIZE TINY MINDISTANCE 400 MINFEATURESIZE 5 COLOR 255 255 255 PARTIALS FALSE END END END // php fragment: // retrieve associative array of gps coordinates $point_array = $currObjUnit->get_gps_coordinates(); // loop through array foreach($point_array as $arPoints) { // get a new point object $pointObj_coord1 = ms_newPointObj(); // set the X and Y coords $pointObj_coord1->setXY($arPoints["longitude"], $arPoints["latitude"]); // $map is returned by ms_newMapObj() // $currObjUnit->get_unit_symbol retrieves the LAYER NAME attribute for the layer indicated in the unit config(ie "point_mapping-red" in this case) $layerObj_imageSymbol = $map->getLayerByName($currObjUnit->get_unit_symbol()); $class_index = 0; // draw the point // $map is a MapObj, $image is the image object returned by $map->draw $pointObj_coord1->draw($map, $layerObj_imageSymbol, $image, $class_index, ''); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ashwin.Dyall at GA.GOV.AU Wed Jun 29 21:37:48 2005 From: Ashwin.Dyall at GA.GOV.AU (Ashwin Dyall) Date: Thu, 30 Jun 2005 14:37:48 +1000 Subject: STATUS 302 Error Message-ID: "Status: 302 Found Uri: http://www.ozestuaries.org/gis/error.html Location: http://www.ozestuaries.org/gis/error.html Content-type: text/html" Hi, I continually receive the above error message above when trying to get my map to load for the first time. Can you help me please? Thank you Ashwin Ashwin Dyall Pristine Estuaries Project ph: (02) 6249 9219 fax: (02) 6249 9984 CRC for Coastal Waterway Management Geoscience Australia -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Wed Jun 29 23:32:33 2005 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 30 Jun 2005 08:32:33 +0200 Subject: Mapserver at play In-Reply-To: <012601c57cd1$89ddf100$1bf2fbd0@solo> Message-ID: I am sorry to report that on linux (epiphany 1.6.0 and mozilla 1.7, flash 6) I cannot see the map at all. Best Regards, Umberto On 6/29/05, Jeff Portwine wrote: > Very nice! That's a pretty fun application for mapserver :) > > -Jeff > > ----- Original Message ----- > From: "Perry Casson" > To: > Sent: Wednesday, June 29, 2005 12:52 PM > Subject: [UMN_MAPSERVER-USERS] Mapserver at play > > > > Hi All, > > > > I thought some of you might get a kick out out this Mapserver/flash site > > we put together for semi-real time tracking of 30 teams running a 16 day > > canoe race up in northern Canada. The public seems pretty comfortable > > playing with web mapping as this rather obscure event has generated over > > 800,000 hits and of that well over 1/3 were mapserver draws all in the > > 1st week. > > > > http://saskcanoequest.ca > > > > > > > > Great technology you have opened up for the world to use, may the > > Mapserver tribe grow and prosper. > > > > > > Perry Casson > > Vice President, Technology > > Waypoint Information Technology Inc. > > 223 Colonnade Road South, Suite 114 > > Ottawa, Ontario, Canada K2E 7K3 > > > > Toll free: 888.891.3532 > > Direct: 613.482.0212 > > email: perry.casson at waypointinfo.com > > > From bill at BINKO.NET Wed Jun 29 23:43:39 2005 From: bill at BINKO.NET (Bill Binko) Date: Thu, 30 Jun 2005 02:43:39 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: <42C34A94.6080204@swoodbridge.com> Message-ID: On Wed, 29 Jun 2005, Stephen Woodbridge wrote: > I don't seem to be able to get the color ramp to work, all I get is the > first color in the ramp. could you make the default color (the one outside the style) yellow (255 255 0) so that we can tell which default it is picking up?) > > The attached images show what I get with the same CONNECTION and DATA > strings but using classes vs the colorramp. "citem" is an integer from 0 > .. numclasses. Also, I note that I was unable touse %numclasses% on the > DATARANGE. > > I would lobby to have this mechanism be implemented at a global level > and not on a line by line or item by item basis that it seems to be done > now this would also facilitate the much requested #include feature. It > should be doing simple text substitution before any parsing is done so > any %variable% can just include abitrary text into the mapfile. > I don't know why that is not done globally, but I'm going postpone that discussion until you're working. Can you please try this simplification? > LAYER > NAME "zcta" > CONNECTIONTYPE postgis > CONNECTION "..." > DATA "big honking sql stuff" > > TYPE POLYGON > STATUS ON > PROJECTION > #"proj=latlong" > "init=epsg:4326" > END > CLASS > COLOR 0 204 0 > STYLE > COLORRANGE 0 255 0 255 0 0 > DATARANGE 1 10 > RANGEITEM "citem" > END > OUTLINECOLOR 0 0 0 > END > END You also might try 1.0 and 10.0 although that certainly shouldn't make a difference. Make sure that "citem" is in your "big honking sql stuff". Let me know what that does. I have an exact replica of that working here. Do you get any errors? Bill From klement at VATI.HU Wed Jun 29 23:56:30 2005 From: klement at VATI.HU (Klement Szabolcs) Date: Thu, 30 Jun 2005 01:56:30 -0500 Subject: join object in mapscript Message-ID: Yes, the join is possible with the oracle spatial also, but wery slow. From shp file the image generation time is avg 400ms, but same layer from oracle spatial is avg 4300ms. With OGR it is possible the following format: CONNECTION "xxx.shp" DATA "SELECT * FROM xxx LEFT JOIN ORACLE:....? From pscott at UWC.AC.ZA Thu Jun 30 00:03:02 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Thu, 30 Jun 2005 09:03:02 +0200 Subject: Mapserver at play In-Reply-To: <75b4b93e050629233276edf98b@mail.gmail.com> Message-ID: On Thu, 2005-06-30 at 08:32 +0200, Umberto Nicoletti wrote: > I am sorry to report that on linux (epiphany 1.6.0 and mozilla 1.7, > flash 6) I cannot see the map at all. > On Firefox (flash 6.0, Mandriva le 2005) it displays, although the
's are all screwed up... --Paul From williampaul28 at YAHOO.COM Thu Jun 30 00:29:13 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Thu, 30 Jun 2005 00:29:13 -0700 Subject: join object in mapscript In-Reply-To: Message-ID: I've seen the discussion about JOIN. I am still looking for a way to make ONE TO MANY join with mapserver, but so far nothing. Some sad o use OGR, but OGR can be used only with ONE TO ONE joins. I tried with JOIN OBJECT from mapserver, but still nothing (or I do smoothing wrong) If you succeed to make ONE TO MANY join will you let me know? please I would really need an example William Klement Szabolcs wrote: Yes, the join is possible with the oracle spatial also, but wery slow. From shp file the image generation time is avg 400ms, but same layer from oracle spatial is avg 4300ms. With OGR it is possible the following format: CONNECTION "xxx.shp" DATA "SELECT * FROM xxx LEFT JOIN ORACLE:....? --------------------------------- Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football -------------- next part -------------- An HTML attachment was scrubbed... URL: From pf at MAPMEDIA.DE Thu Jun 30 03:49:34 2005 From: pf at MAPMEDIA.DE (Peter Freimuth) Date: Thu, 30 Jun 2005 12:49:34 +0200 Subject: Rotating a symbol/layer drawn with PointObj In-Reply-To: <200506300129.j5U1TPtH014670@inexo.com> Message-ID: Kasey Kirkham schrieb: > Hello, > > Long, long ago, I posted to this forum asking for guidance on drawing > a point layer( > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0403/msg00562.html > ). Thanks to the help of the folks on this list, I was able to get > the application working. First off, I created a layer for each symbol > I wanted to use(in the mapfile, see below). The php app which uses > the mapfile will create a new PointObj for each coordinate returned by > a query, look up the name of the symbol layer associated with the gps > source, then call PointObj->draw with the layer as an argument(see my > equally inscrutable code fragment below). This works nicely for > drawing dots on the map, however there is now a new twist. I would > like to use triangular symbols in my layer, rotated relative to the > point which follows. For instance, if the first coordinate was (1,1), > and the second was (5,1), I would like to rotate the first symbol to > the right by 90 degrees so that it is "pointing" at the second > symbol. I think labels support this with the "angle" attribute, but I > didn't find anything in the documentation indicating that > points/symbols could be rotated in the same way. Any ideas? > > A million thanks! > Kasey > > # mapfile fragment: > > # LAYER object > LAYER > NAME "point_mapping-red" > TYPE POINT > STATUS ON > # CLASS object > CLASS > NAME "points_red" > SYMBOL "gps_coordinate-red" > COLOR 255 0 0 > # LABEL object > LABEL > POSITION CC > SIZE TINY > MINDISTANCE 400 > MINFEATURESIZE 5 > COLOR 255 255 255 > PARTIALS FALSE > END > END > END > > // php fragment: > // retrieve associative array of gps coordinates > $point_array = $currObjUnit->get_gps_coordinates(); > // loop through array > foreach($point_array as $arPoints) { > // get a new point object > $pointObj_coord1 = ms_newPointObj(); > // set the X and Y coords > $pointObj_coord1->setXY($arPoints["longitude"], > $arPoints["latitude"]); > > // $map is returned by ms_newMapObj() > // $currObjUnit->get_unit_symbol retrieves the LAYER NAME > attribute for the layer indicated in the unit config(ie > "point_mapping-red" in this case) > $layerObj_imageSymbol = > $map->getLayerByName($currObjUnit->get_unit_symbol()); > > $class_index = 0; > // draw the point > // $map is a MapObj, $image is the image object returned by > $map->draw > $pointObj_coord1->draw($map, $layerObj_imageSymbol, $image, > $class_index, ''); > } > Dear Kasey, we have implemented this function for rotating symbols by an angle attribute a while ago but the code is still not included in the current code base. I will send the regarding code next week to Steve Lime (main developer team). Maybe it can be integrated in the next mapserver release. Sorry for the delay! Peter -- Mit freundlichem Gru? Peter Freimuth MapMedia Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From perry.casson at WAYPOINTINFO.COM Thu Jun 30 05:14:52 2005 From: perry.casson at WAYPOINTINFO.COM (Perry Casson) Date: Thu, 30 Jun 2005 06:14:52 -0600 Subject: Mapserver at play In-Reply-To: <1120114982.8590.11.camel@localhost> Message-ID: You will need flash 7 and I'll check into why the version detection is not working in the code - thanks for the reports Perry Casson Paul Scott wrote: >On Thu, 2005-06-30 at 08:32 +0200, Umberto Nicoletti wrote: > > >>I am sorry to report that on linux (epiphany 1.6.0 and mozilla 1.7, >>flash 6) I cannot see the map at all. >> >> >> >On Firefox (flash 6.0, Mandriva le 2005) it displays, although the >
's are all screwed up... > >--Paul > > > > -- Perry Casson Vice President, Technology Waypoint Information Technology Inc. 223 Colonnade Road South, Suite 114 Ottawa, Ontario, Canada K2E 7K3 Toll free: 888.891.3532 Direct: 613.482.0212 email: perry.casson at waypointinfo.com From bayu at STUDENT.UGM.AC.ID Thu Jun 30 05:18:06 2005 From: bayu at STUDENT.UGM.AC.ID (Bayu F. Aprianto) Date: Thu, 30 Jun 2005 19:18:06 +0700 Subject: Variable Substitution on MapServer Message-ID: Hi, i've read a map file reference of MapServer version 4.6, here is a sample. "Variable Substitution New in MapServer 4.0, variables can be substituted within mapfile parameter values. At this time, cookie and CGI parameter values are supported. This allows mapserver mapfiles to be aware of a user's cookies (Good for implementing security), or non-mapserver request parameters (Good for integrating with other systems). Syntax: '%' + variable name + '%' Example 1. Connecting securely to a Spatial Database You want to map some senstitive data held in a PostGIS database. The username and password to be used for the database connection are held in 2 cookies previously set by a seperate authentication mechanism, "uid" and "passwd". CONNECTION "user=%uid% password=%passwd% dbname=postgis" This feature is only available in the CGI version of MapServer through a mapfile pre-processor. If you are using MapScript, you will have to code the substitution logic into your application yourself (By writing your own pre-processor)." I have a question, how to implement the variable substitution (e.g. Password) on Map File for PostGIS connection? for example: CONNECTION "HOST=localhost PORT=5432 DBNAME=data USER=postgres PASSWORD=12345" How to hide my username and password for connection to PostgreSQL? Thanks. Bayu From peterkingsbury at ISTOP.COM Thu Jun 30 06:39:19 2005 From: peterkingsbury at ISTOP.COM (Peter Kingsbury) Date: Thu, 30 Jun 2005 09:39:19 -0400 Subject: Legend Template Bug? In-Reply-To: <1120098776.20018.593.camel@notebook.csite.com.au> Message-ID: Hello all, When working on the legend for my map project, I have noted a strange behavior. Unfortunately, my limited experience with the scripting system does not allow me to determine if this is a bug, or if I am doing something I shouldn't be. I am working with the LegendTemplate widget in Chameleon, and have used the example code from legend_template.html and additional code to display grouped layers. I've pulled out everything and only added in basic code to display legend groups, and the behavior still presents itself. At the end of this email is my current code. The problem with adding the leg_group_html code in, is that upon zooming to a certain scale on my map, the layers which are not visible in the legend (yet are visible on the map), disappear! This seems to be a catch-22... I need to hide some layers from the legend, but if they are not given names or groups in the map file, the legend turns this "hidden" layer off! I'm uncertain if this is a behavioral problem with Chameleon, or some weirdness with the legend script, any ideas? Cheers, - Peter ---- script ---- [leg_group_html] [leg_group_name] [/leg_group_html] [leg_layer_html order_metadata=legend_order opt_flag=15] [leg_layer_name] [/leg_layer_html] From cdaily at GMAIL.COM Thu Jun 30 07:39:12 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 30 Jun 2005 09:39:12 -0500 Subject: Google Maps API Message-ID: http://www.google.com/apis/maps/ I hadn't seen this yet, so I guess it's still new. A full-fledged API for Google maps. Up to 50,000 page views a day. From what I can see, it looks pretty well developed. If you don't want/need the full power of your own GIS app, and just want to plot some stuff on a map, it looks pretty sweet. Also, did anyone else manage to download the Google Earth beta software? I can't remember the last time I was so completely blown away by a piece of software. Zooming in from outer space onto my house is damn cool, and then turning on the 3D buildings model and checking out downtown Chicago is awesome. -Camden Daily From dibblethewrecker at JIWE.ORG Thu Jun 30 07:39:46 2005 From: dibblethewrecker at JIWE.ORG (Philip Dillon-Thiselton) Date: Thu, 30 Jun 2005 15:39:46 +0100 Subject: error when connecting to demo Message-ID: Hey all, I have never even set up an apache server until today so forgive me if i missed something obvious. I have installed the latest demo as suggested in the readme and I edited the index.html file as best I could. However, when I connect teh index page comes up ok but when i click the button I get this error: getString(): Symbol definition error. Parsing error near (none):(line 73) I have no idea what that means - i know it doesn't refer to and error in index.html. Any help greatly appreciated! Phil From cdaily at GMAIL.COM Thu Jun 30 07:56:42 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 30 Jun 2005 09:56:42 -0500 Subject: error when connecting to demo In-Reply-To: <42C40432.7070508@jiwe.org> Message-ID: Some more details would be helpful. Is the server running Windows? Linux? What distro/version? Which version of mapserver? Did you install binaries or compile from source? -Camden On 6/30/05, Philip Dillon-Thiselton wrote: > Hey all, > > I have never even set up an apache server until today so forgive me if i > missed something obvious. I have installed the latest demo as suggested > in the readme and I edited the index.html file as best I could. > However, when I connect teh index page comes up ok but when i click the > button I get this error: > > getString(): Symbol definition error. Parsing error near (none):(line 73) > > I have no idea what that means - i know it doesn't refer to and error in > index.html. Any help greatly appreciated! > > Phil > From taatuut at PLANET.NL Thu Jun 30 07:58:02 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Thu, 30 Jun 2005 16:58:02 +0200 Subject: error when connecting to demo Message-ID: Hello Philip, The error is related to the map file, so take a look around line 73 in your map file and/or post the part of the map file that causes the problem to this list. Regards, Emil ----- Oorspronkelijk bericht ----- Van: Philip Dillon-Thiselton Datum: donderdag, juni 30, 2005 4:39 pm Onderwerp: [UMN_MAPSERVER-USERS] error when connecting to demo > Hey all, > > I have never even set up an apache server until today so forgive > me if i > missed something obvious. I have installed the latest demo as > suggestedin the readme and I edited the index.html file as best I > could.However, when I connect teh index page comes up ok but when > i click the > button I get this error: > > getString(): Symbol definition error. Parsing error near > (none):(line 73) > > I have no idea what that means - i know it doesn't refer to and > error in > index.html. Any help greatly appreciated! > > Phil > From Richard_D_Levine at RAYTHEON.COM Thu Jun 30 08:00:05 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Thu, 30 Jun 2005 10:00:05 -0500 Subject: Google Maps API In-Reply-To: <16264e07050630073938e2ef60@mail.gmail.com> Message-ID: I work at a defense contractor and the command and control folks are drooling over Google Earth. Like you say, it is mind blowing. We immediately subscribed (actually, when it was still Keyhole, which just got bought by Google and re-branded.) I don't know if the demo allows editing of 3D objects on the map, but the subscription version does. The API allows addition of your own icons also. You could easily plot police and fire vehicles in real time on the streets of New York complete with buildings. Astounding user interface and API. Rick Camden Daily To Sent by: UMN MAPSERVER-USERS at LISTS.UMN.EDU MapServer Users cc List [UMN_MAPSERVER-USERS] Google Maps API 06/30/2005 09:39 AM Please respond to Camden Daily http://www.google.com/apis/maps/ I hadn't seen this yet, so I guess it's still new. A full-fledged API for Google maps. Up to 50,000 page views a day. From what I can see, it looks pretty well developed. If you don't want/need the full power of your own GIS app, and just want to plot some stuff on a map, it looks pretty sweet. Also, did anyone else manage to download the Google Earth beta software? I can't remember the last time I was so completely blown away by a piece of software. Zooming in from outer space onto my house is damn cool, and then turning on the 3D buildings model and checking out downtown Chicago is awesome. -Camden Daily From nbarker at RSINC.COM Thu Jun 30 08:16:16 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Thu, 30 Jun 2005 16:16:16 +0100 Subject: Google Maps API Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Rick Levine Sent: Thursday, June 30, 2005 4:00 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Google Maps API I work at a defense contractor and the command and control folks are drooling over Google Earth. Like you say, it is mind blowing. We immediately subscribed (actually, when it was still Keyhole, which just got bought by Google and re-branded.) I don't know if the demo allows editing of 3D objects on the map, but the subscription version does. The API allows addition of your own icons also. You could easily plot police and fire vehicles in real time on the streets of New York complete with buildings. Astounding user interface and API. Rick Camden Daily To Sent by: UMN MAPSERVER-USERS at LISTS.UMN.EDU MapServer Users cc List [UMN_MAPSERVER-USERS] Google Maps API 06/30/2005 09:39 AM Please respond to Camden Daily http://www.google.com/apis/maps/ I hadn't seen this yet, so I guess it's still new. A full-fledged API for Google maps. Up to 50,000 page views a day. From what I can see, it looks pretty well developed. If you don't want/need the full power of your own GIS app, and just want to plot some stuff on a map, it looks pretty sweet. Also, did anyone else manage to download the Google Earth beta software? I can't remember the last time I was so completely blown away by a piece of software. Zooming in from outer space onto my house is damn cool, and then turning on the 3D buildings model and checking out downtown Chicago is awesome. -Camden Daily Hopefully we are not too off topic, since the way google are pushing things is surely going to impact on OGC technologies. The google earth is really good, but the streaming in Keyhole is proprietary right? The streaming isn't JPEG2000, or ECW streaming, so we can connect with our clients. Is there a way to connect into the google servers? Whilst streaming isn't part of any OGC specs, it would be nice to know how they present their catalogues. Having used the google map hacks and then see an API published means I can take this app out of the cupboard now :-) Personally I am encourage Google, I had a lot of fun with google maps for a 'non gis' educational client, who liked the ajax effect! Norman Barker From ezequias at RECIFE.PE.GOV.BR Thu Jun 30 08:09:33 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 30 Jun 2005 12:09:33 -0300 Subject: Postgis Connection Message-ID: I am trying to load a mapserver service with a postgis connection but the MS reported this message below: msDrawMap(): Image handling error. Failed to draw layer named 'bairros'. msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'user=postgres password=post dbname=dbpotgis host=196.168.0 15 port=5432'. Error reported was 'could not create socket: Permission denied '. This error occured when trying to make a connection to the specified postgresql server. Most commonly this is caused by (1) incorrect connection string (2) you didnt specify a 'user=...' in your connection string (3) the postmaster (postgresql server) isnt running (4) you are not allowing TCP/IP connection to the postmaster (5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' (6) the security on your system does not allow the webserver (usually user nobody') to make socket connections to the postmaster (7) you forgot to specify a 'host=...' if the postmaster is on a different machine (8) you made a typo Does anyone can tell me what to do ? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn.JPG Type: image/jpeg Size: 1111 bytes Desc: not available URL: From ezequias at RECIFE.PE.GOV.BR Thu Jun 30 08:14:50 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 30 Jun 2005 12:14:50 -0300 Subject: Fw: Postgis Connection Message-ID: I am trying to load a mapserver service with a postgis connection but the MS reported this message below: msDrawMap(): Image handling error. Failed to draw layer named 'bairros'. msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'user=postgres password=post dbname=dbpotgis host=lab1.recife port=5432'. Error reported was 'could not create socket: Permission denied '. This error occured when trying to make a connection to the specified postgresql server. Most commonly this is caused by (1) incorrect connection string (2) you didnt specify a 'user=...' in your connection string (3) the postmaster (postgresql server) isnt running (4) you are not allowing TCP/IP connection to the postmaster (5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' (6) the security on your system does not allow the webserver (usually user nobody') to make socket connections to the postmaster (7) you forgot to specify a 'host=...' if the postmaster is on a different machine (8) you made a typo Does anyone can tell me what to do ? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn1.JPG Type: image/jpeg Size: 1111 bytes Desc: not available URL: From bt at CCGIS.DE Thu Jun 30 08:58:18 2005 From: bt at CCGIS.DE (Benjamin Thelen) Date: Thu, 30 Jun 2005 17:58:18 +0200 Subject: Fw: Postgis Connection In-Reply-To: <42C40C6A.000001.03576@DC_EZEQUIAS> Message-ID: Ezequias Rodrigues da Rocha wrote: > I am trying to load a mapserver service with a postgis connection but > the MS reported this message below: > > > msDrawMap(): Image handling error. Failed to draw layer named 'bairros'. > msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with > connect string 'user=postgres password=post dbname=dbpotgis > host=lab1.recife port=5432'. > Error reported was 'could not create socket: Permission denied '. > This error occured when trying to make a connection to the specified > postgresql server. > Most commonly this is caused by > (1) incorrect connection string > (2) you didnt specify a 'user=...' in your connection string > (3) the postmaster (postgresql server) isnt running > (4) you are not allowing TCP/IP connection to the postmaster > (5) your postmaster is not running on the correct port - if its not on > 5432 you must specify a 'port=...' > (6) the security on your system does not allow the webserver (usually > user 'nobody') to make socket connections to the postmaster > (7) you forgot to specify a 'host=...' if the postmaster is on a > different machine > (8) you made a typo > Does anyone can tell me what to do ? > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Atenciosamente (Sincerely) > *Ezequias Rodrigues da Rocha* > *** *www.recife.pe.gov.br* > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > A pior das democracias ainda ? melhor do que a melhor das ditaduras > The worst of democracies is still better than the better of dictatorships > MSN Messenger: ezequias at hotmail.com > > > Add FUN to your email - CLICK HERE! > Ezequias, Well, I think one cannot make more suggestions you already got from the error messages! I assume your postgres is running and your connection string is correct, but you should send it to the list, too. A common error is, that the postgresql-server does not accept tcp/ip connections. Check your postgresql.conf: "tcpip_socket = true" must be there. Second, check your pg_hba.conf: There has to be an entry that allows your "mapserver-host" to connect to the server, such as for remote access of the network 192.168.100.0: host all all 192.168.100.0 255.255.255.0 trust or for local access, if mapserver and pgsql are on the same host: host all all 127.0.0.1 255.255.255.255 trust Hope, that helps! Ben From Richard_D_Levine at RAYTHEON.COM Thu Jun 30 09:06:47 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Thu, 30 Jun 2005 11:06:47 -0500 Subject: Postgis Connection In-Reply-To: <42C40B2D.000003.01892@DC_EZEQUIAS> Message-ID: Is your dbname really dbpotgis and not dbpostgis? Ezequias Rodrigues da Rocha To cc Sent by: UMN MapServer Users Subject List [UMN_MAPSERVER-USERS] Postgis 06/30/2005 12:09 PM Please respond to Ezequias Rodrigues da Rocha I am trying to load a mapserver service with a postgis connection but the MS reported this message below: msDrawMap(): Image handling error. Failed to draw layer named 'bairros'. msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'user=postgres password=post dbname=dbpotgis host=196.168.0.15 port=5432'. Error reported was 'could not create socket: Permission denied '. This error occured when trying to make a connection to the specified postgresql server. Most commonly this is caused by (1) incorrect connection string (2) you didnt specify a 'user=...' in your connection string (3) the postmaster (postgresql server) isnt running (4) you are not allowing TCP/IP connection to the postmaster (5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' (6) the security on your system does not allow the webserver (usually user 'nobody') to make socket connections to the postmaster (7) you forgot to specify a 'host=...' if the postmaster is on a different machine (8) you made a typo Does anyone can tell me what to do ? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships (Embedded image moved to file: pic18756.jpg) MSN Messenger: ezequias at hotmail.com (Embedded image moved to file: pic11840.gif)Add FUN to your email - CLICK HERE! -------------- next part -------------- A non-text attachment was scrubbed... Name: pic18756.jpg Type: image/jpeg Size: 1111 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pic11840.gif Type: image/gif Size: 9015 bytes Desc: not available URL: From rjames57 at YAHOO.COM Thu Jun 30 09:09:50 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Thu, 30 Jun 2005 09:09:50 -0700 Subject: Security of data In-Reply-To: <42C37D5E.600@istop.com> Message-ID: Thanks for all the input. I now have a clearer picture of what i am faced with. I need to be able for people to use the data but not be able to take it out of the office and allow someone who will use it the wrong way to obtain it. Like I need for a logging company to be able to avoid a spotted owl nest so the managers/planners need to know, but there has been a problem because people who are loggers not the managers get the maps and have cut down the tree that has the nest. I know there has got to be some trust and ethics should be followed but when the issue of jobs and millions of dollars is on the line everything goes out the window. --- Peter Kingsbury wrote: > > Hi Randy, > > It's difficult to make any site "secure" with your level of protection > in mind. > > If your users are not technically savvy, then you are likely able to do > simple things like .htaccess-password protect your site and update the > password frequently, disallow right-clicking on the page, etc. This will > deter most end-users. > > The problem with your inquiry is, for the very technically-savvy, many > security measures are no more than speed-bumps. If anything, > screencaptures can be gotten easily. And if the data itself is > important, there's always pen and paper to write it down! > > On the temp file problem, perhaps you could call a custom-written > ActiveX control which clears up that directory upon page termination? > This isn't entirely useful, as anyone viewing the site with a non-IE > browser will bypass its intention. But it is a thought. Another idea is > to use the ImageMagick library to modify the map image data at some > point; I don't know if this is possible but it might be a solution. > > You might also consider covering yourself legally ... e.g. a Terms of > Use page prior to viewing map data, whose terms the user must agree to > before using the site. At least you will have legal legs to stand on, > should the situation arise. > > Just some ideas ... good luck securing your site. > - Peter > > > Randy James wrote: > > >Hi Mike > > > >I was hoping someone would have a easy fix, but i guess not. I do not make the > >assumption that when i allow people to veiw something that they can download > it > >and or keep it. In my book if you see something it does not mean that you own > it. > > > >Randy > > > >--- Mike Davis wrote: > > > > > > > >>If you allow users to access something on their computers you must > >>operate under the assumption that you have just given that user the > >>ability to keep any information they download. If you really want to > >>prevent them from removing images, make them use a kiosk or something > >>to access your mapserver information. > >> > >>As far as I know every system that purports to limit user access to > >>information "temporarily" downloaded to their computers (quicktime > >>temp files, flash audio, etc...) has been hacked. > >> > >>-mike > >> > >>On 6/29/05, Randy James wrote: > >> > >> > >>>Well ED thats my question also how do I protect from what you mentioned > also? > >>> > >>> > >>The > >> > >> > >>>only way I have been doing it now is not to let anyone that should not see > it > >>> > >>> > >>on > >> > >> > >>>the site by passwords. > >>> > >>>--- Ed McNierney wrote: > >>> > >>> > >>> > >>>>Randy - > >>>> > >>>>If the information is that sensitive, what's to keep the users from > >>>>doing screen captures and saving the image files, regardless of what you > >>>>do with MapServer? Unless you have a well-built secure laptop > >>>>environment, anything you put on the screen can go on the disk. > >>>> > >>>> - Ed > >>>> > >>>>Ed McNierney > >>>>President and Chief Mapmaker > >>>>TopoZone.com / Maps a la carte, Inc. > >>>>73 Princeton Street, Suite 305 > >>>>North Chelmsford, MA 01863 > >>>>ed at topozone.com > >>>>(978) 251-4242 > >>>> > >>>>-----Original Message----- > >>>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > >>>>Behalf Of Randy James > >>>>Sent: Wednesday, June 29, 2005 5:23 PM > >>>>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>>Subject: [UMN_MAPSERVER-USERS] Security of data > >>>> > >>>>I was trying to figgure out how to protect sensitive information. We > >>>>have mapserver set up on our LAN, which does not allow http requests > >>>>from the internet. It protects our data from the internet but now I am > >>>>getting people who want to do reasearch in our office using thier own > >>>>laptop. The problem i am faced with is the c:\windows\temp\*.png files > >>>>that is downloaded by thier internet explorer. How do I make sure they > >>>>are not taken out of our office when they pack their laptop out? Is > >>>>there a way to display the maps and not have these files in the > >>>>windows\temp folder? > >>>> > >>>>Randy > >>>> > >>>>__________________________________________________ > >>>>Do You Yahoo!? > >>>>Tired of spam? Yahoo! Mail has the best spam protection around > >>>>http://mail.yahoo.com > >>>> > >>>> > >>>> > >>>__________________________________________________ > >>>Do You Yahoo!? > >>>Tired of spam? Yahoo! Mail has the best spam protection around > >>>http://mail.yahoo.com > >>> > >>> > >>> > > > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam protection around > >http://mail.yahoo.com > > > > > > > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dibblethewrecker at JIWE.ORG Thu Jun 30 09:19:49 2005 From: dibblethewrecker at JIWE.ORG (Philip Dillon-Thiselton) Date: Thu, 30 Jun 2005 17:19:49 +0100 Subject: error when connecting to demo In-Reply-To: <2b25c92b4bda.2b4bda2b25c9@planet.nl> Message-ID: Ok - here is the output below from the itasca.map file - this was unchanged from the version in the .zip file until i just changed the WMS_ONLINERESOURCE to see if that fixed it - it did not. I am using the latest Mapserver and latest demo files from workshop.zip - they are built from src by me in linux. METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is a UMN MapServer application for Itasca County located in north central Minnesota." 73 WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://heaton/mapserver_demo/index.html" taatuut at planet.nl wrote: >Hello Philip, > >The error is related to the map file, so take a look around line 73 in >your map file and/or post the part of the map file that causes the >problem to this list. > >Regards, > >Emil > > >----- Oorspronkelijk bericht ----- >Van: Philip Dillon-Thiselton >Datum: donderdag, juni 30, 2005 4:39 pm >Onderwerp: [UMN_MAPSERVER-USERS] error when connecting to demo > > > >>Hey all, >> >>I have never even set up an apache server until today so forgive >>me if i >>missed something obvious. I have installed the latest demo as >>suggestedin the readme and I edited the index.html file as best I >>could.However, when I connect teh index page comes up ok but when >>i click the >>button I get this error: >> >>getString(): Symbol definition error. Parsing error near >>(none):(line 73) >> >>I have no idea what that means - i know it doesn't refer to and >>error in >>index.html. Any help greatly appreciated! >> >>Phil >> >> >> > > > > From woodbri at SWOODBRIDGE.COM Thu Jun 30 09:32:50 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 30 Jun 2005 12:32:50 -0400 Subject: Yahoo Maps API also Message-ID: http://developer.yahoo.com/maps From dibblethewrecker at JIWE.ORG Thu Jun 30 09:50:16 2005 From: dibblethewrecker at JIWE.ORG (Philip Dillon-Thiselton) Date: Thu, 30 Jun 2005 17:50:16 +0100 Subject: error when connecting to demo In-Reply-To: <42C41BA5.9000009@jiwe.org> Message-ID: OK - i figured out that WMS_ACCESSCONSTRAINTS none should be WMS_ACCESSCONSTRAINTS "none" That should probably be changed in the .zip archive. After a bit of jiggling with the index.html file it is all working. Thanks for the .map file pointer Phil Philip Dillon-Thiselton wrote: > Ok - here is the output below from the itasca.map file - this was > unchanged from the version in the .zip file until i just changed the > WMS_ONLINERESOURCE to see if that fixed it - it did not. > > I am using the latest Mapserver and latest demo files from > workshop.zip - they are built from src by me in linux. > > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is a UMN MapServer application for Itasca > County located in north central Minnesota." > 73 WMS_ACCESSCONSTRAINTS none > > # change this value to match your setup > WMS_ONLINERESOURCE "http://heaton/mapserver_demo/index.html" > > > taatuut at planet.nl wrote: > >> Hello Philip, >> >> The error is related to the map file, so take a look around line 73 >> in your map file and/or post the part of the map file that causes the >> problem to this list. >> >> Regards, >> >> Emil >> >> >> ----- Oorspronkelijk bericht ----- >> Van: Philip Dillon-Thiselton >> Datum: donderdag, juni 30, 2005 4:39 pm >> Onderwerp: [UMN_MAPSERVER-USERS] error when connecting to demo >> >> >> >>> Hey all, >>> >>> I have never even set up an apache server until today so forgive me >>> if i >>> missed something obvious. I have installed the latest demo as >>> suggestedin the readme and I edited the index.html file as best I >>> could.However, when I connect teh index page comes up ok but when i >>> click the >>> button I get this error: >>> >>> getString(): Symbol definition error. Parsing error near >>> (none):(line 73) >>> >>> I have no idea what that means - i know it doesn't refer to and >>> error in >>> index.html. Any help greatly appreciated! >>> >>> Phil >>> >>> >> >> >> >> >> > > From bill at BINKO.NET Thu Jun 30 10:40:03 2005 From: bill at BINKO.NET (Bill Binko) Date: Thu, 30 Jun 2005 13:40:03 -0400 Subject: Security of data In-Reply-To: <20050630160951.43943.qmail@web30706.mail.mud.yahoo.com> Message-ID: On Thu, 30 Jun 2005, Randy James wrote: > Thanks for all the input. I now have a clearer picture of what i am faced with. No problem: you'll find amazing people in this community -- and most of them are decent human beings, too! :-) I hope (since this has turned into a non-technical discussion) you don't mind if I spout off a bit for a second... > I need to be able for people to use the data but not be able to take it > out of the office and allow someone who will use it the wrong way to > obtain it. I have some issues with the wording "not be able to" and "need". You simply won't find success with them. How about: "The goal is to make it easy for users to access the image in our location, while making it difficult to remove the images without it being detected. Also, we'd like to provide our lawyers and local authorities with everything they need to prosecute those who are caught so that the threat of incarceration and fines is a significant deterrant." > Like I need for a logging company to be able to avoid a > spotted owl nest so the managers/planners need to know, but there has > been a problem because people who are loggers not the managers get the > maps and have cut down the tree that has the nest. (There's that word 'need' again!) What you have here is a criminal problem. I'm fairly sure that chopping down a nest in the act of logging (i.e. accidentally or carelessly) is a civil infraction with a fine, but that intentionally chopping down that tree to kill the bird is criminal. I'm also sure that if someone _intentionally_ removed your images and then provided them to people who would chop down the trees, that would be considered conspiracy or being an accessory. Your best bet is to strengthen your position and make it damned clear to everyone who comes into your location just how serious you are about pilfering your pix. IMNAL, but I'd start like this: 1) Hire a lawyer (had to be said) 2) If possible, only allow information at kiosks you control (with no floppies, external network access or USB ports accessible) 3) Offer to extract images for a fee that is > $2000 per extract. This lets you have a known price if you do catch someone stealing, in most states (and provinces, probably), it's Grand, not Petty Theft, and it lets you write a contract for those who really would benefit from off-site access (and are willing to follow your rules). 4) Put cryptographic and visual watermarks on the images, both from the paid extracts and from the web access. Ideally, you could put a session identifier in the watermarks, so that you can tell when and by whom they were stolen. a) Visual Watermark: http://tinyurl.com/ambpg b) Digital Watermark: http://www.watermarkingworld.org 5) Put "picket fences" up to stop the lazy 90% from copying your images... but realize that they provide a false sense of security -- they just slow down lazy people: a) Setup the HTTP headers to NOT allows caching (see other thread) so that there isn't a cache folder full of your images. b) Use a "one pixel image" trick to disable the "Save Image As". That loads a one pixel image instead of your map, and then loads the map via javascript. If people choose "Save Image As", they will get the one-pixel image. 6) Finally, post clear terms of use, both on your site, and physically when people sign in. The physical act of signing a paper will actually cause people to follow the rules (Read "Influence: The Psychology of Persuasion" http://tinyurl.com/bz2ky ). Unfortunately, click-through licenses don't have the same effect. > I know there has got to be some trust and ethics should be followed but > when the issue of jobs and millions of dollars is on the line everything > goes out the window. I'm actually not a strong believer in trust (in the workplace, that is). I do believe in the law, however, and in fear. Make it illegal, make it enforceable, and make it clear you'll hold the users you grant access to responsible. You'll be fine :) Bill From dls at INFORMGIS.COM Thu Jun 30 10:40:28 2005 From: dls at INFORMGIS.COM (David Stajan) Date: Thu, 30 Jun 2005 12:40:28 -0500 Subject: Symbolizing FeatureQuery Message-ID: Hi Group, I'm tying to perform theme on theme selections using the cgi featurequery mode. For example I have a polygon layer and a line layer, and I want to select all the lines that fall within a selected polygon. The featurequery mode works, however I was wondering if there is a way to symbolize the selected polygon differently from the selected lines in the query map. Right now I get all the selected features (polygon and lines) symbolized in the same color. Even better would be if its possible to perform this type of query and only have the selected lines returned and not include the polygon the the query results. Is this possible with mapserver cgi or can I get this kind of result using some other kind of method? Thanks, DaviD From taatuut at PLANET.NL Thu Jun 30 10:49:03 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Thu, 30 Jun 2005 19:49:03 +0200 Subject: error when connecting to demo Message-ID: I believe with the new 4.6 version of MapServer all string values should be enclosed with double quotes. You'll probably find a lot of demos with 'old' .map files that need to be updated for this. Regards, Emil ----- Oorspronkelijk bericht ----- Van: Philip Dillon-Thiselton Datum: donderdag, juni 30, 2005 6:50 pm Onderwerp: Re: [UMN_MAPSERVER-USERS] error when connecting to demo > OK - i figured out that > > WMS_ACCESSCONSTRAINTS none > > should be > > WMS_ACCESSCONSTRAINTS "none" > > That should probably be changed in the .zip archive. After a bit of > jiggling with the index.html file it is all working. > > Thanks for the .map file pointer > > Phil > > > Philip Dillon-Thiselton wrote: > > > Ok - here is the output below from the itasca.map file - this was > > unchanged from the version in the .zip file until i just changed the > > WMS_ONLINERESOURCE to see if that fixed it - it did not. > > > > I am using the latest Mapserver and latest demo files from > > workshop.zip - they are built from src by me in linux. > > > > METADATA > > WMS_TITLE "UMN MapServer Itasca Demo" > > WMS_ABSTRACT "This is a UMN MapServer application for Itasca > > County located in north central Minnesota." > > 73 WMS_ACCESSCONSTRAINTS none > > > > # change this value to match your setup > > WMS_ONLINERESOURCE "http://heaton/mapserver_demo/index.html" From woklist at CHARTER.NET Thu Jun 30 11:27:32 2005 From: woklist at CHARTER.NET (William K) Date: Thu, 30 Jun 2005 13:27:32 -0500 Subject: MrSid SDK LizardTech Package? In-Reply-To: Message-ID: I had emailed LizardTech when I discovered this. It's fixed now. (But still no builds for Mac OS 10.4/GCC 4 yet :( ----- William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From txneogi at YAHOO.COM Thu Jun 30 12:08:43 2005 From: txneogi at YAHOO.COM (Ron Neogi) Date: Thu, 30 Jun 2005 12:08:43 -0700 Subject: Mapserver - Browse Mode Message-ID: Hi I have setup the latest mapserver (version 4.6) on a RHE Linux box. The demo works fine in Map mode but no success with the Browser mode. All I get is the text'Submit Query' in the picture box. Any idea where am I going wrong? Thanks in advance for any help. __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html From neovazjr2 at HOTMAIL.COM Thu Jun 30 12:58:28 2005 From: neovazjr2 at HOTMAIL.COM (Clarence Ng) Date: Thu, 30 Jun 2005 14:58:28 -0500 Subject: processLegendTemplate -> leg_group_html returns "" ? Message-ID: Hi List, Currently using PHPMapscript/Chameleon, I couldn't get processLegendTemplate to return anything whenever i add the pair of leg_group_html tags into my template document. Without the leg_group_html it works fine. It would still work if i put the leg_group_html tags after leg_layer_html and have no content between leg_group_html. Having any content between leg_group_html or by putting the pair of tags before leg_layer_html will result in processLegendTemplate returning nothing. I also tried assigning metadata to the layers for processing, but oMap->getAllGroupNames() returns nothing. The GetCapabilities request are correctly showing these WMS layers under different groups. Maybe someone can point me to the right direction? Any help will be greatly appreciated. Clarence Ng From jpbonk at AOL.COM Thu Jun 30 13:08:24 2005 From: jpbonk at AOL.COM (John Bonk) Date: Thu, 30 Jun 2005 16:08:24 -0400 Subject: WMS Client Problems Message-ID: Our mapserver is having problems acting as a WMS client. I posted to this list earlier this year. Originally, the problem was getting through our fire wall. Bart van den Eijnden help us get through our firewall problem, and Bill Bill Binko made some useful suggestions. I mention this because I neglected to thank them and follow up. So thank you Bart and Bill. Here is the follow-up: We still can't retrieve data from a WMS server. The symptoms are our browser indicates activity when we ask for WMS data, but no data is received, no messages are written to our logs. I have discussed this problem with several people at the OSG '05 conference. The consensus was that there was something wrong with our build. We were advised to use the FGS Installer. Our systems people compiled mapserv using FGS, and it still doesn't work in our operational environment using our default port. But it works in a test environment where we have to specify a port in the URL. BTW, I'm told by the person who installed mapserver that the same thing is true of the mapserv binary available on the FGS page--it works in our test environment but not in our ops environment with the default port. One more bit of info, the binary included in FWtools works in both environments. Does any one have any suggestions on how to debug this problem? I'm wondering if this problem transcends mapserv and if there is another list this should be going to. Best regards, John Bonk From woodbri at SWOODBRIDGE.COM Thu Jun 30 18:28:58 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 30 Jun 2005 21:28:58 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: Message-ID: Bill, Looks like the default color (yellow) of the layer is getting applied. 'citem" is getting set ok, because it works just fine with the same SQL using CLASSITEM "citem" and classes. I simplified as you suggested, but no joy. OK, got it to work. Had to wrap the OUTLINECOLOR in a separate STYLE ... END block. I attached the image. The colorization is not as nice as the class example I posted before. First is the color ramp second mage is the class example. -Steve Bill Binko wrote: > On Wed, 29 Jun 2005, Stephen Woodbridge wrote: > >>I don't seem to be able to get the color ramp to work, all I get is the >>first color in the ramp. > > > could you make the default color (the one outside the style) yellow (255 > 255 0) so that we can tell which default it is picking up?) > > >>The attached images show what I get with the same CONNECTION and DATA >>strings but using classes vs the colorramp. "citem" is an integer from 0 >>.. numclasses. Also, I note that I was unable touse %numclasses% on the >>DATARANGE. >> >>I would lobby to have this mechanism be implemented at a global level >>and not on a line by line or item by item basis that it seems to be done >>now this would also facilitate the much requested #include feature. It >>should be doing simple text substitution before any parsing is done so >>any %variable% can just include abitrary text into the mapfile. >> > > I don't know why that is not done globally, but I'm going postpone that > discussion until you're working. > > > Can you please try this simplification? > > >> LAYER >> NAME "zcta" >> CONNECTIONTYPE postgis >> CONNECTION "..." >> DATA "big honking sql stuff" >> >> TYPE POLYGON >> STATUS ON >> PROJECTION >> #"proj=latlong" >> "init=epsg:4326" >> END >> CLASS >> COLOR 0 204 0 >> STYLE >> COLORRANGE 0 255 0 255 0 0 >> DATARANGE 1 10 >> RANGEITEM "citem" >> END >> OUTLINECOLOR 0 0 0 >> END >> END > > > You also might try 1.0 and 10.0 although that certainly shouldn't make a > difference. Make sure that "citem" is in your "big honking sql stuff". > > Let me know what that does. I have an exact replica of that working here. > Do you get any errors? > > Bill > -------------- next part -------------- A non-text attachment was scrubbed... Name: colorramp2.png Type: image/png Size: 24992 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: classes.png Type: image/png Size: 27491 bytes Desc: not available URL: From mike.and.kerry at GMAIL.COM Thu Jun 30 20:01:13 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Thu, 30 Jun 2005 19:01:13 -0800 Subject: Security of data In-Reply-To: <20050630160951.43943.qmail@web30706.mail.mud.yahoo.com> Message-ID: > I > need to be able for people to use the data but not be able to take it out of the > office and allow someone who will use it the wrong way to obtain it. Like I need > for a logging company to be able to avoid a spotted owl nest so the > managers/planners need to know, but there has been a problem because people who > are loggers not the managers get the maps and have cut down the tree that has the > nest. > This is an interesting problem. It is similar to one we face with our cultural resources sites (ancient migration corridors, locations of artifacts, etc...). The location of the sites are considered "sensitive" information and are not given out to anyone. When we need to make maps showing no-go areas we use a buffered area offset a few meters in a random direction. This keeps people out of areas that shouldn't be disturbed, while preventing the curious from finding a site by going to the center of a buffered area. In addition, strong legal ramifications of removing artifacts from federal property keeps most folks honest. We have used a similar approach to keep training activity away from Bald Eagle nest sites. Your circumstance might require a larger buffer area and offset distance, but if you have no-go zones around the nesting areas you wouldn't need to give anyone access to the actual nesting sites. -Mike From richard.greenwood at GMAIL.COM Thu Jun 30 20:12:15 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 1 Jul 2005 03:12:15 +0000 Subject: Symbolizing FeatureQuery Message-ID: David Stajan INFORMGIS.COM> writes: > > Hi Group, > > I'm tying to perform theme on theme selections using the cgi featurequery > mode. For example I have a polygon layer and a line layer, and I want to > select all the lines that fall within a selected polygon. The > featurequery mode works, however I was wondering if there is a way to > symbolize the selected polygon differently from the selected lines in the > query map. Right now I get all the selected features (polygon and lines) > symbolized in the same color. Even better would be if its possible to > perform this type of query and only have the selected lines returned and > not include the polygon the the query results. Is this possible with > mapserver cgi or can I get this kind of result using some other kind of > method? I have not done exactly what you are trying to do, but I have done something similar enough so that I am confident that it can be done easily in CGI mode. The lines and polygons are in separate shape files (or PostGIS tables) but are symbolized in 2 different layers in the map file; one layer for general display and a 2nd layer with a filter to hi-light query results. Pusedo code: 1. general polygon display (shows all the polygons, all the time) class w/ symbol for regular display of all features 2. general line display class w/ symbol for regular display of all features 3. line results (hi-lights selected lines ) status default (so it's always displayed) filter %result% (so only query results are displayed I know that's a pretty general answer, but your question is pretty general, too. If my response doesn't make sense , follow up with more specifics. Rich From bill at BINKO.NET Thu Jun 30 22:31:06 2005 From: bill at BINKO.NET (Bill Binko) Date: Fri, 1 Jul 2005 01:31:06 -0400 Subject: Wishing we had COLORRAMPs or something In-Reply-To: <42C49C5A.2000009@swoodbridge.com> Message-ID: On Thu, 30 Jun 2005, Stephen Woodbridge wrote: > Bill, > > Looks like the default color (yellow) of the layer is getting applied. > 'citem" is getting set ok, because it works just fine with the same SQL > using CLASSITEM "citem" and classes. I simplified as you suggested, but > no joy. > > OK, got it to work. Had to wrap the OUTLINECOLOR in a separate STYLE ... > END block. > > I attached the image. The colorization is not as nice as the class > example I posted before. First is the color ramp second mage is the > class example. > > -Steve Well, I'm glad you got it to work, I don't know what to tell you about the OUTLINECOLOR... Perhaps you can tweak this to meet your needs (perhaps 2-3 classes that split up the gradient) or provide suggestions on how to improve it. Bill > > > Bill Binko wrote: > > On Wed, 29 Jun 2005, Stephen Woodbridge wrote: > > > >>I don't seem to be able to get the color ramp to work, all I get is the > >>first color in the ramp. > > > > > > could you make the default color (the one outside the style) yellow (255 > > 255 0) so that we can tell which default it is picking up?) > > > > > >>The attached images show what I get with the same CONNECTION and DATA > >>strings but using classes vs the colorramp. "citem" is an integer from 0 > >>.. numclasses. Also, I note that I was unable touse %numclasses% on the > >>DATARANGE. > >> > >>I would lobby to have this mechanism be implemented at a global level > >>and not on a line by line or item by item basis that it seems to be done > >>now this would also facilitate the much requested #include feature. It > >>should be doing simple text substitution before any parsing is done so > >>any %variable% can just include abitrary text into the mapfile. > >> > > > > I don't know why that is not done globally, but I'm going postpone that > > discussion until you're working. > > > > > > Can you please try this simplification? > > > > > >> LAYER > >> NAME "zcta" > >> CONNECTIONTYPE postgis > >> CONNECTION "..." > >> DATA "big honking sql stuff" > >> > >> TYPE POLYGON > >> STATUS ON > >> PROJECTION > >> #"proj=latlong" > >> "init=epsg:4326" > >> END > >> CLASS > >> COLOR 0 204 0 > >> STYLE > >> COLORRANGE 0 255 0 255 0 0 > >> DATARANGE 1 10 > >> RANGEITEM "citem" > >> END > >> OUTLINECOLOR 0 0 0 > >> END > >> END > > > > > > You also might try 1.0 and 10.0 although that certainly shouldn't make a > > difference. Make sure that "citem" is in your "big honking sql stuff". > > > > Let me know what that does. I have an exact replica of that working here. > > Do you get any errors? > > > > Bill > > > > From constantin.a.cristian at GMAIL.COM Sun Jun 19 15:09:08 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Mon, 20 Jun 2005 01:09:08 +0300 Subject: FILTER working on PostGIS layers? In-Reply-To: Message-ID: You have an syntax error. The parameter of FILTER is what you would write after "WHERE". In your sql query in your case after where you write "20050049" which of course can not be evaluated as an boolean value. You should try something like: FILTER "identbv=20050049" Bart van den Eijnden wrote: >Follow-up on this. > >It seems that layer->filter.string only contains the FILTER value and not the whole expression to be used in the where clause. > >sprintf(query_string_0_6, "DECLARE mycursor BINARY CURSOR FOR SELECT %s from %s WHERE (%s) and (%s && setSRID( %s,%s) )", columns_wanted, data_source, layer->filter.string, geom_column, box3d, user_srid); > >Does this sound familiar to anyone? > >Best regards, >Bart > > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > > >>>>Bart van den Eijnden 13-9-2005 13:26:44 >>> >>>> >>>> >Hi list, > >I am running into an issue using Mapscript 4.7 from a few weeks back. > >PostGIS layers work fine for map display and query, but as soon as I try to highlight a feature using FILTERITEM and FILTER I get the following error (so it seems the filteritem is not used when building the WHERE clause, the column exists in the database and has the right case): > >[13-Sep-2005 13:06:43] PHP Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT identbv::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from bouwvergunning.aanvraag WHERE (20050049) and (the_geom && setSRID( 'BOX3D(114024.650480941 503134.482620259,115117.267932596 503806.862590517)'::BOX3D,find_srid('','bouwvergunning.aanvraag','the_geom') ))'

> >Postgresql reports the error as 'ERROR: argument of AND must be type boolean, not type integer ........ > >This is my LAYER definition: > >LAYER > NAME "bimas" > METADATA > wms_title "Bouwvergunningen" > END > STATUS OFF > DEBUG ON > FILTERITEM "identbv" > FILTER "20050049" > TYPE POINT > CONNECTION "user=stragisweb password=synstragisweb dbname=wormerland host=127.0.0.1" > CONNECTIONTYPE postgis > DATA "the_geom from bouwvergunning.aanvraag USING UNIQUE identbv" > PROJECTION > "init=epsg:28992" > END > MINSCALE 0 > MAXSCALE 10000 > CLASS > NAME bouwlocaties > STYLE > COLOR 255 0 0 > SIZE 12 > SYMBOL "Bouwlocaties" > END > END > TEMPLATE "blank.html" >END > >Thanks in advance. Is this fixed in CVS? > >Best regards, >Bart > >Bart van den Eijnden >Syncera IT Solutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: