From Michael.Hearne at noaa.gov Fri Dec 1 06:44:26 2000 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Fri, 01 Dec 2000 09:44:26 -0500 Subject: question about turning layers ON Message-ID: <3A27B94A.3BA91C11@noaa.gov> I'm trying to build a simple mapserv app, and I'm confused about how the [layername_select] template is supposed to work. What parameter in the map file controls whether a layer is selected or not when the map initially comes up? I'd thought it was the "STATUS" keyword, but the demo application has almost all of the layers' STATUS set to "ON", yet only lakes and streams come up initially. What's the deal? Thanks in advance, Mike Hearne -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From kames at keyspanenergy.com Fri Dec 1 12:52:32 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Fri, 01 Dec 2000 15:52:32 -0500 Subject: Feature Object Message-ID: <3A280F90.7F214AE1@keyspanenergy.com> Could anyone please post a simple example of using a feature object within a map file? The map I'm returning is in decimal degrees. I want to put a star an a specific LAT/LON on the map. TIA, Kieran From kames at keyspanenergy.com Fri Dec 1 13:32:38 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Fri, 01 Dec 2000 16:32:38 -0500 Subject: Street Label Alignment Message-ID: <3A2818F6.F9F68000@keyspanenergy.com> Anyone able to get street labels to align with the street lines themselves? I saw some of (my) old postings on this but can't seem to make it work... (a year later!) Thanks, Kieran From jecinc at westhost22.westhost.net Fri Dec 1 16:29:20 2000 From: jecinc at westhost22.westhost.net (jecinc at westhost22.westhost.net) Date: Fri, 1 Dec 2000 18:29:20 -0600 (CST) Subject: Street Label Alignment In-Reply-To: <3A2818F6.F9F68000@keyspanenergy.com> Message-ID: I still can't get it to work and I've been trying to install freetype (trutype font support) for about three weeks now. Sorry ... that probably doesn't help On Fri, 1 Dec 2000, Kieran J. Ames wrote: > Anyone able to get street labels to align with the street lines > themselves? I saw some of (my) old postings on this but can't seem to > make it work... (a year later!) > Thanks, > Kieran > From steve.lime at dnr.state.mn.us Fri Dec 1 20:05:00 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 01 Dec 2000 22:05:00 -0600 Subject: Street Label Alignment Message-ID: Um, yes it can be done pretty easily. You need freetype installed and then need to use the "ANGLE AUTO" parameter in your label object. The test suite site (i.e. arachnid.dnr.state.mn.us/ms_test) has several auto rotation examples. Note that the quality of the labeling is heavily dependent on the data. Garbage in, garbage out. Extra nodes can drastically affect placement. Interfaces I've seen using TIGER and GDT data look pretty darn good at the street level. Steve >>> "Kieran J. Ames" 12/01/00 15:30 PM >>> Anyone able to get street labels to align with the street lines themselves? I saw some of (my) old postings on this but can't seem to make it work... (a year later!) Thanks, Kieran From steve.lime at dnr.state.mn.us Fri Dec 1 20:11:44 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 01 Dec 2000 22:11:44 -0600 Subject: Feature Object Message-ID: Here you go: LAYER NAME 'mypoint' TYPE POINT STATUS DEFAULT CLASS COLOR 255 0 0 SYMBOL 'star' SIZE 10 LABEL SIZE MEDIUM COLOR 0 0 0 ENB END FEATURE POINTS -45 76 END TEXT 'My test point.' END END Steve >>> "Kieran J. Ames" 12/01/00 14:53 PM >>> Could anyone please post a simple example of using a feature object within a map file? The map I'm returning is in decimal degrees. I want to put a star an a specific LAT/LON on the map. TIA, Kieran From fw at urbanix.de Sat Dec 2 07:17:17 2000 From: fw at urbanix.de (Franziska Wenzel) Date: Sat, 02 Dec 2000 16:17:17 +0100 Subject: query: wrong results Message-ID: <3A29127B.D4A6652B@urbanix.de> I have still teh same problem: For testing purposes I've managed to get a map with London Boroughs (area) and tube stations (points) displayed, on mapserver 3.3.011 for Linux. But when I do a query on objects, either the borough layer or the tube layer, I sometimes get wrong results. Tolerance for points is 5 and for area is 1. Within one borough different results are possible, a right one and wrong ones which is the neigbouring borough (any direction). I tested various tolerances, and tested different coordinates (geographic and rectangular) Any idea why this happens? How is the reference done between the dbf-file and the map-objects? Thanks Franziska Here is my map file, it's more or less the file from the ms_demo, slightly adapted for my purposes only, so it should work, I guess. # # Start of map file # NAME DEMO STATUS ON SIZE 580 460 SHADESET symbols/shade.sym LINESET symbols/line.sym MARKERSET symbols/marker.sym EXTENT 503900.133726333 155850.12399045 561960.144833978 201720.08577298 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 #LABELOVERLAP FALSE # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html MINSCALE 1 MAXSCALE 15500000 IMAGEPATH "/home/httpd/html/tmp/" IMAGEURL "/tmp/" 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 0 0 0 OUTLINECOLOR 0 0 0 UNITS KILOMETERS INTERVALS 5 STATUS ON END # # Start of layer definitions # LAYER NAME boroughs TYPE POLYGON STATUS DEFAULT TOLERANCE 1 DATA boroughs CLASS SYMBOL 0 OUTLINECOLOR 150 120 10 COLOR 248 248 95 END QUERY TEMPLATE boroughs.html END END LAYER NAME tubestations TYPE POINT STATUS DEFAULT TOLERANCE 5 DATA tubestations CLASS SYMBOL 7 SIZE 7 OUTLINECOLOR 150 10 10 COLOR 150 10 10 END QUERY TEMPLATE tubes.html END END END # Map File From bertha_bonita at yahoo.com Sat Dec 2 16:06:17 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Sat, 2 Dec 2000 16:06:17 -0800 (PST) Subject: EXPRESSIONS...!!! Message-ID: <20001203000617.25165.qmail@web4205.mail.yahoo.com> HI I need to know what's mean each symbols in this expressions? EXPRESSION "^[5-7]" "8[2-9]|9[1-5,8-9]" "12|78" "14" "^6$" "150 250 100" i'm waiting for a soon answer :) ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From kenboss at dilbert.dnr.state.mn.us Mon Dec 4 07:13:25 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Mon, 4 Dec 2000 09:13:25 -0600 (CST) Subject: question about turning layers ON Message-ID: <200012041513.JAA17254@philbert.dnr.state.mn.us> If a layer's STATUS is set to "DEFAULT" then the layer will always be drawn. If STATUS is set to "ON" then the layer will be drawn if it is (one of) the value(s) specified in the "layer" cgi variable. In the demo, all layers in the demo.map file are STATUS ON excepting for the county boundaries layer, which is STATUS DEFAULT. The layers to be initially displayed are set via hidden variables in the cgi form in the demo_init.html file. [layername_select] is then used in the demo.html layer select list as a means of making layer selections persistent as the user browses the map. When a layer is included in the "layer" cgi variable, the mapserver program replaces [layername_select] with the keyword "selected". If a layer is not included in the "layer" cgi variable, then [layername_select] is replaced with an empty string. Hope this helps, --Ken Boss > Date: Fri, 01 Dec 2000 09:44:26 -0500 > From: Michael Hearne > X-Accept-Language: en > MIME-Version: 1.0 > To: mapserver-users at lists.gis.umn.edu > Subject: question about turning layers ON > Content-Transfer-Encoding: 7bit > > I'm trying to build a simple mapserv app, and I'm confused about how the > > [layername_select] template is supposed to work. > > What parameter in the map file controls whether a layer is selected or > not when the > map initially comes up? I'd thought it was the "STATUS" keyword, but > the demo application has > almost all of the layers' STATUS set to "ON", yet only lakes and streams > come up initially. > > What's the deal? > > Thanks in advance, > > Mike Hearne > -- > Michael G. Hearne email: Michael.Hearne at noaa.gov > Coastal Remote Sensing phone: 843 740-1281 > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > 2234 S. Hobson Ave., Charleston, SC 29407 From steve.lime at dnr.state.mn.us Mon Dec 4 07:31:19 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 04 Dec 2000 09:31:19 -0600 Subject: EXPRESSIONS...!!! Message-ID: The expressions are poorly formated but here goes: "^[5-7]" - matches data that starts with 5,6 or 7 "12|78" - matches data that contains a 12 or 78 "14" - matches data that contains a 14 "^6$" - matches 6 exactly "150 250 100" - matches data that contains "150 250 100" These should be written /expression/ and so on if you want to do regex. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> bertha amalia serrato de la cruz 12/02/00 06:06PM >>> HI I need to know what's mean each symbols in this expressions? EXPRESSION "^[5-7]" "8[2-9]|9[1-5,8-9]" "12|78" "14" "^6$" "150 250 100" i'm waiting for a soon answer :) ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From teb at mallit.fr.umn.edu Mon Dec 4 12:56:22 2000 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 4 Dec 2000 14:56:22 -0600 (CST) Subject: FWD: Problems with queryUsingPoint (PHP)... Message-ID: <200012042056.OAA18464@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Andy Waxman" To: Subject: Problems with queryUsingPoint (PHP)... Date: Mon, 4 Dec 2000 15:30:14 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 I am using the PHP extension with php4.0.3 with the 11/1 nightly build of 3.3.0.12. I am trying to write a simple identify tool which opens to a new window. The problem is that browser complains with an empty page error when I try to query the layer. I don't even get "Hello World" dumps. Has anyone heard from DMSolutions about their big contract for a new version of the php module with extended functionality? TIA, Andy Waxman awaxman at speakeasy.org Here is the php code (theme,mapx and mapy are passed in as args) getLayer($theme); print("Identify Results for "); print($aLayer->description); print("\n"); print("Hello World
"); $pt = ms_newPointObj(); $pt->setXY($mapx,$mapy); // Huge Tolerance to ensure something is hit. $qrset = $aLayer->queryUsingPoint($pt, MS_MULTIPLE, 300); if ($qrset==0) print("No Results Found
"); else print("Got Results
"); $qrset->free(); print("Hello World"); print(""); ?> Here is my map file MAP NAME GAAR SIZE 653 480 STATUS ON EXTENT -144243.3545 1838671.0097 202145.6455 2093461.0097 UNITS METERS SHAPEPATH /usr/local/ak_data/ WEB IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "Landsat TM Mosaic" DESCRIPTION "Landsat TM Mosaic" STATUS ON DATA data/imagery/gaar_tm_432.tif TYPE RASTER END LAYER NAME ima DESCRIPTION "Intensive Mapping Areas" STATUS ON DATA data/themes/imabox TYPE polygon CLASSITEM 'box_id' CLASS NAME "Intensive Mapping Areas" OUTLINECOLOR 0 0 0 END QUERYITEM 'box_id' QUERY EXPRESSION /./ # Get all the items TEMPLATE "null" # Not using a template END END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END END ------------- End Forwarded Message ------------- From yeewen at petromap.com Mon Dec 4 15:22:37 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Mon, 4 Dec 2000 16:22:37 -0700 Subject: Mapscript Tcl interface: call for testers/developers In-Reply-To: <20001129154917.13582@nyx.net> Message-ID: Hi, I'm trying out the copy of mapscript-tcl-112800.tar.gz sent to me by Tom Poindexter. I couldn't find any of the *ObjRef functions (e.g. rectObjRef, layerObjRef) used all over in tcl examples. Am I missing some files? -- Yeewen -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Tom Poindexter Sent: November 29, 2000 3:49 PM To: Daniel Morissette; Tom Poindexter Cc: mapserver-users at lists.gis.umn.edu Subject: Re: Mapscript Tcl interface: call for testers/developers On Wed, Nov 29, 2000 at 05:35:13PM -0500, Daniel Morissette wrote: > BTW, before someone else asks (the usual question)... does it work on > Windows? :) (I guess the real question is: has the TCL MapScript been > compiled on Windows?) Nothing is really preventing it from running on windows, except I haven't built it there or made a Makefile. Tcl/Tk is notoriously portable between Unix, Windows, & Mac. I don't have a good Windows build environment, but I see many folks are building Tcl/Tk extensions by using cross-compilation tools on Linux. The 'send' commands in the ms*tcl program would also need to be changed to use the builtin 'dde'. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From steve.lime at dnr.state.mn.us Tue Dec 5 07:45:50 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 05 Dec 2000 09:45:50 -0600 Subject: avoid nightly and cvs for a day or so... Message-ID: I committed some partially working code to the cvs so I could finish it via a couple of locations. You might want to avoid the nightly builds and cvs for a day or so until I polish it off. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From kames at optonline.net Tue Dec 5 17:45:24 2000 From: kames at optonline.net (Kieran Ames) Date: Tue, 05 Dec 2000 20:45:24 -0500 Subject: EMBED parameter Message-ID: <3A2D9A34.7AA3AC29@optonline.net> In the thread below, Steve states: You MUST have a markerset defined to use embedded scalebars. I don't understand how this would be defined. I can't point to an image that doesn't exist???? I guess the same goes for the legend image, yes? Kieran > ------------------------------------------------------------------------ > [Date Prev][Date Next] [Chronological] [Thread] [Top] > > Re: EMBED parameter > > ------------------------------------------------------------------------ > > * To: , > * Subject: Re: EMBED parameter > * From: "Stephen Lime" > * Date: Wed, 22 Mar 2000 16:48:06 -0600 > > ------------------------------------------------------------------------ > > Um, er. Forgot to update the docs for this one. Embeding works for scalebars > at this point. The EMBED parameter is not used rather you set the STATUS > to EMBED. You MUST have a markerset defined to use embedded scalebars. > They are actually added as a symbol and rendered using the noramal marker > utilities. Here's a typical definition: > > 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 > END # Scalebar > > TRANSPARENT turns the image transparent. POSITION is similar to POSITION for labels. > Supported positions are UL,UC,UR,LL,LC,LR. Attached is an example image with an > embedded scalebar using the above definition. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> RAldridge 03/22/00 03:19PM >>> > Does the EMBED parameter still work for legends and scalebars? I haven't tried it with a legend, but when I add 'EMBED true' to my scalebar parameters in my .map file, I get: > > loadScalebar(): Unknown identifier. (EMBED):(67) > > I don't know that I'd use it. Just wanted to see how it looks. > > Thanks, > > Robert Aldridge > ---------------------- > Do you do Linux? :) > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com > > example.gif > > ------------------------------------------------------------------------ > > * Prev by Date: EMBED parameter > * Next by Date: Map server interface available > * Index(es): > o Chronological > o Thread From carlson14 at llnl.gov Tue Dec 5 18:18:39 2000 From: carlson14 at llnl.gov (John Carlson) Date: Tue, 05 Dec 2000 18:18:39 -0800 Subject: modes browse and query at the same time Message-ID: <4.2.0.58.20001205181500.00b2e8d0@popcorn.llnl.gov> Is it possible to use browse mode and query mode at the same time, so that if you hit an object with your mouse, it does query, and if you don't hit an object, it does browse? Thanks, John From Steve.Robson at dnr.qld.gov.au Tue Dec 5 18:39:27 2000 From: Steve.Robson at dnr.qld.gov.au (Steve.Robson at dnr.qld.gov.au) Date: Wed, 6 Dec 2000 12:39:27 +1000 Subject: unsubscribe Message-ID: <71ADA238C261D31194BE00508B2C1642025A87D4@chqmaila.dnr.qld.gov.au> ************************************************************************ 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 andrew.luger at daterra.ab.ca Tue Dec 5 19:43:28 2000 From: andrew.luger at daterra.ab.ca (Andrew Luger) Date: Tue, 05 Dec 2000 20:43:28 -0700 Subject: No subject Message-ID: <000501c05f36$b2827260$cec64418@stn1> Forgive me if I ask the obvious, however since I am not a cartographer nor a programmer, here goes. Having read through the documentation it appears that is should be possible to have a base map (geotiff) displayed together with georeferenced data (longitude latitude coords). Could i then assume that a mouse click or whatever on that point would or could display the textual data associated with that point. My, I'm not even sure I'm phrasing the question correctly? Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue Dec 5 19:40:55 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 05 Dec 2000 21:40:55 -0600 Subject: CVS ok now, 3.4 news Message-ID: I hammered out most of the bugs in TTF lines so the CVS should be cool. This marks the change to version 3.4 in development terms. 3.3.012 will never see an official release. There are enough new features to warrant the 3.4 tag. 3.4 will not be released formally until the generic query module is ready to allow simultaneous access to shapefile, SDE and OGR datasets (as well as tiled shapefiles). That said, the current CVS code is very stable and the generic query stuff should be a seemless upgrade (i.e. you won't notice). If you've had problems with 3.3.011 then you might want to try a recent nightly build. The TTF line feature allows you to plaee symbols at different intervals alogn a line (rotated of course). This allows for nice railroad symbols, directional arrows and meteorological (sp?) symbols. There will shortly be an ARROW type that will allow you to turn lines into, you guessed it, arrows. Gone are STYLED lines with goofy offset, dash patterns that never really worked right anyway. In its place are more flexible dashing options to do .. _ . _ .. type patterns. Overlay symbols allow you to create complex road symbols with only a single pass through the data. I'm working on a couple of TTF fonts for arrows and other typical uses of fonted lines. The CVS also contains a TCL/TK mapscript configuration section (thanks Tom). This serves as the base for the recently announced MapServer workbench. It looks very nice and I suggest folks take a look at it. Steve From carlson14 at llnl.gov Tue Dec 5 22:19:27 2000 From: carlson14 at llnl.gov (John Carlson) Date: Tue, 05 Dec 2000 22:19:27 -0800 Subject: different target frames based on mode In-Reply-To: Message-ID: <4.2.0.58.20001205211346.00b3f9c0@popcorn.llnl.gov> Would something like the following be possible with mapserv? I would like to have a different html frame target based on the mapserv mode. One target, called "main" will be used for results of a query mode, and another target, called "right" will be used for browse mode. Is the target determined in the client/browser before mapserv runs? Thanks, John From andrew.luger at daterra.ab.ca Tue Dec 5 23:24:02 2000 From: andrew.luger at daterra.ab.ca (Andrew Luger) Date: Wed, 06 Dec 2000 00:24:02 -0700 Subject: Demo_footer (html file) Message-ID: <001301c05f55$82fe80f0$cec64418@stn1> Steve: Thanks for the quick reply.Not sure it's been mentioned previously, however with regards to the demonstration installation instructions, the following change was also necessary, to enable the cached query code to work on NT. Not sure that the .exe extension is required after mapserv, but i put it there anyway to follow prior convention. Had to modify the queryfile path as well as indicated above. This method works on this system. Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenboss at dilbert.dnr.state.mn.us Wed Dec 6 06:43:21 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Wed, 6 Dec 2000 08:43:21 -0600 (CST) Subject: different target frames based on mode Message-ID: <200012061443.IAA07701@philbert.dnr.state.mn.us> If I'm understanding your question right, you just need a bit of JavaScript code to get the effect you want. When the form is submitted (onSubmit), call the code and have it do something like: if (document.mapserv.mode.value == 'query') { document.mapserv.target = frame.for.query.results; } else { document.mapserv.target = frame.for.map.browsing; } --Ken > To: > From: John Carlson > Subject: different target frames based on mode > Mime-Version: 1.0 > > Would something like the following be possible with mapserv? > > I would like to have a different html frame target based on the > mapserv mode. One target, called "main" will be used for > results of a query mode, and another target, called "right" > will be used for browse mode. > > Is the target determined in the client/browser before mapserv runs? > > Thanks, > > John From thfischer at mapmedia.de Wed Dec 6 07:16:02 2000 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Wed, 6 Dec 2000 16:16:02 +0100 Subject: MapServer Performance Message-ID: <00120616375800.01987@grobi> Ladies and gentlemen, Our company is about to install MapServer for a german internet job searching engine. But there are several questions left before the installation is to be made. One of them is the question about the performance of MapServer. Of course I know that numbers such as 'hits handled per second' highly depend on the hardware used as well as the task that is to be fulfilled by the system. I would appreciate any numbers that the users on this mailing list are able to share with me. Besides: your server is great ;-) Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Dec 6 08:38:35 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 6 Dec 2000 11:38:35 -0500 Subject: MapServer Performance Message-ID: <2951561DB3DDD0118FEC00805FFE98050494214F@s5-ccr-r1> Check these postings I made recently: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/00 11/msg00186.html http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/00 11/msg00191.html J.F. > ---------- > From: Thorsten Fischer[SMTP:thfischer at mapmedia.de] > Sent: Wednesday, December 06, 2000 10:16 AM > To: mapserver-users at lists.gis.umn.edu > Subject: MapServer Performance > > > Ladies and gentlemen, > > Our company is about to install MapServer for a german internet job > searching > engine. But there are several questions left before the installation is to > be > made. One of them is the question about the performance of MapServer. > > Of course I know that numbers such as 'hits handled per second' highly > depend on > the hardware used as well as the task that is to be fulfilled by the > system. I > would appreciate any numbers that the users on this mailing list are able > to > share with me. > > > Besides: your server is great ;-) > > > Thorsten Fischer thfischer at mapmedia.de > > --------------------------------------------------------- > MapMedia - Kartographie und raumbezogene Informationssysteme > Am Borsigturm 42 > 13507 Berlin > Deutschland > http://www.mapmedia.de tel: +49 (0)30 43032102 > --------------------------------------------------------- > > From pgallen at randomlogic.com Wed Dec 6 09:03:43 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Wed, 06 Dec 2000 09:03:43 -0800 Subject: MapServer Performance References: <00120616375800.01987@grobi> Message-ID: <3A2E716F.2527FA97@randomlogic.com> Well, the only number I can give is how fast a map and web page can be supplied by my 433MHz Alpha system. Running a Perl CGI that creates the web page (a set of three frames) and using MapScript, a page can be delivered showing roads and freeways with labels; colored city areas and labels; street addresses; utility lines; key locations (i.e. The San Diego Zoo); dynamically plotted data extracted from a database using Perl; rivers, lakes, streams, and other bodies of water with labels; and schools in under a minute. YMMV depending upon available Internet connection bandwidth, number of requests, OS type (I run Red Hat Linux 6.0 with Apache 1.3.12), etc., but I think that's pretty good considering how much work the machine has to do outside of just rendering the map. Almost forgot, my Alpha only has 64MB of SDRAM and no external cache. PGA Thorsten Fischer wrote: > > Ladies and gentlemen, > > Our company is about to install MapServer for a german internet job searching > engine. But there are several questions left before the installation is to be > made. One of them is the question about the performance of MapServer. > > Of course I know that numbers such as 'hits handled per second' highly depend on > the hardware used as well as the task that is to be fulfilled by the system. I > would appreciate any numbers that the users on this mailing list are able to > share with me. > > Besides: your server is great ;-) > > Thorsten Fischer thfischer at mapmedia.de > > --------------------------------------------------------- > MapMedia - Kartographie und raumbezogene Informationssysteme > Am Borsigturm 42 > 13507 Berlin > Deutschland > http://www.mapmedia.de tel: +49 (0)30 43032102 > --------------------------------------------------------- -- Paul G. Allen Unix System Administrator II Akamai Technologies, Inc. (www.akamai.com) (858)909-3630 Office (858)395-5043 Cell I am Paul G. Allen, and I don't do Windows! From yeewen at petromap.com Wed Dec 6 10:44:20 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Wed, 6 Dec 2000 11:44:20 -0700 Subject: Need Help with Mapscript Tcl - mapObj In-Reply-To: Message-ID: Hi, I'm trying use mapscript exported functions in Tcl to do what mapserv cgi does - ie. load a mapfile and generate a GIF, given the mapsize, image extent, zoom, imagexy. I constructed a mapObj with a mapfile with this line: mapObj map1 $file $file is the mapfile name without the .map extension. (with .map extension, I got segmentation fault in tclsh) I don't understand why I keep getting NULL back from it...and what ever I do after will (of course) fails. Here's the rest of my tcl script: package require Mapscript package require msTclObjs set file $argv mapObj map1 $file puts "\tmapfile: $file" set rectPtr [map1 cget -extent] puts "got rectPtr" puts "\textent: [rectObj_miny_get $rectPtr]" Thanks, Yeewen From kames at keyspanenergy.com Wed Dec 6 13:33:51 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Wed, 06 Dec 2000 16:33:51 -0500 Subject: FreeType Message-ID: <3A2EB0BF.C0FD4B06@keyspanenergy.com> For those of us who are "compiler-impaired", can anyone offer a suggestion on getting the Freetype font engine installed on an NT box? Thanks, Kieran From tpoindex at nyx.net Wed Dec 6 13:50:57 2000 From: tpoindex at nyx.net (Tom Poindexter) Date: Wed, 6 Dec 2000 14:50:57 -0700 Subject: Need Help with Mapscript Tcl - mapObj In-Reply-To: ; from Yeewen Sat on Wed, Dec 06, 2000 at 11:44:20AM -0700 References: Message-ID: <20001206145057.50961@nyx.net> On Wed, Dec 06, 2000 at 11:44:20AM -0700, Yeewen Sat wrote: > I constructed a mapObj with a mapfile with this line: > > mapObj map1 $file The Tcl Mapscript interface should live in the 'mapscript' namespace: mapscript::mapObj map1 $file > $file is the mapfile name without the .map extension. (with .map extension, > I got segmentation fault in tclsh) The file name should include .map > I don't understand why I keep getting NULL back from it...and what ever I do > after will (of course) fails. You can examine the 'ms_error' object to get the failure codes: puts [mapscript::ms_error cget -code] puts [mapscript::ms_error cget -routine] puts [mapscript::ms_error cget -message] The message is rather terse, but you should be able to figure out what the mapfile parse is complaining about. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From bjohnson at jecinc.on.ca Wed Dec 6 13:53:58 2000 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Wed, 6 Dec 2000 16:53:58 -0500 Subject: [Freetype] need help installing True Type Fonts In-Reply-To: <20001125.101836.08319919.wl@gnu.org> Message-ID: <000001c05fcf$0bab0440$1500a8c0@pentium75> For anyone who is following my battle with Freetype: I am now trying to use Freetype 2.0 with Slackware Linux 7.0 The mapserver (mapserver.gis.umn.edu) ./configure script is looking for a file called libttf.so However, the freetype make does not create this file - could it possibly be the libfreetype.so file? It also is not created in the directories that the mapserver (mapserver.gis.umn.edu) ./configure script is looking for the libttf.so file (it is created in /freetype-2.0/obj/.libs and /usr/local/lib) Am I onto something here? What should I do now? From steve.lime at dnr.state.mn.us Wed Dec 6 13:51:51 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 06 Dec 2000 15:51:51 -0600 Subject: [Freetype] need help installing True Type Fonts Message-ID: Ummm. MapServer has not be updated to work with FreeType 2 yet. You need version 1.2 or higher. FreeType 2 offers no backwords compatability with the version 1 API and since the version 2 full release hasn't happened (at least last time I checked) I haven't sat down and done the port. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Brian Johnson" 12/06/00 03:53PM >>> For anyone who is following my battle with Freetype: I am now trying to use Freetype 2.0 with Slackware Linux 7.0 The mapserver (mapserver.gis.umn.edu) ./configure script is looking for a file called libttf.so However, the freetype make does not create this file - could it possibly be the libfreetype.so file? It also is not created in the directories that the mapserver (mapserver.gis.umn.edu) ./configure script is looking for the libttf.so file (it is created in /freetype-2.0/obj/.libs and /usr/local/lib) Am I onto something here? What should I do now? From bfraser at geoanalytic.com Wed Dec 6 14:27:43 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 6 Dec 2000 15:27:43 -0700 Subject: FreeType References: <3A2EB0BF.C0FD4B06@keyspanenergy.com> Message-ID: <005101c05fd3$c04c2dd0$390002c0@servo> Kieran, I'm not sure I understand... FreeType is a set of functions you would link into an application (like MapServer) to access the low level geometry of a TrueType font. If you need the compiled library I can send it to you... Do you want to: o Use TT Fonts in MapServer? - include in the top of your map file: FONTSET "fonts/fonts.list" and in the map file's label definitions: TYPE TRUETYPE FONT arial o Look at TT fonts? - on NT use Start->Programs->Accessories->Character Map o Or Create/edit TT fonts? - you need a 3rd party application Let me know if you need help... Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Kieran J. Ames" To: Sent: Wednesday, December 06, 2000 2:33 PM Subject: FreeType > For those of us who are "compiler-impaired", can anyone offer a > suggestion on getting the Freetype font engine installed on an NT box? > > Thanks, > Kieran > From wl at gnu.org Wed Dec 6 14:37:43 2000 From: wl at gnu.org (Werner LEMBERG) Date: Wed, 06 Dec 2000 23:37:43 +0100 (CET) Subject: [Freetype] need help installing True Type Fonts In-Reply-To: <000001c05fcf$0bab0440$1500a8c0@pentium75> References: <20001125.101836.08319919.wl@gnu.org> <000001c05fcf$0bab0440$1500a8c0@pentium75> Message-ID: <20001206.233743.85399120.wl@gnu.org> > The mapserver (mapserver.gis.umn.edu) ./configure script is looking for a > file called libttf.so > > However, the freetype make does not create this file - could it possibly be > the libfreetype.so file? libttf.so is the library name of FreeType 1.x. FreeType 2's library name is libfreetype. Werner From Matt.Wilkie at gov.yk.ca Wed Dec 6 14:55:42 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 6 Dec 2000 14:55:42 -0800 Subject: FreeType Message-ID: <6DD7370C9452D31192A10008C75D07530795663F@raptor.gov.yk.ca> > For those of us who are "compiler-impaired", can anyone offer > a suggestion on getting the Freetype font engine installed on > an NT box? Hi Kieran, There is a win32 port of the GCC compiler (and most of the other GNU Utilities) from cygwin: http://cygwin.com/ wrt to Freetype: I haven't actually tried this but I did see web page yesterday which talked about it: http://cygutils.netpedia.net/V1.1/freetype-1.3/ -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From dschrupp at ix.netcom.com Wed Dec 6 17:03:33 2000 From: dschrupp at ix.netcom.com (Donald L. Schrupp) Date: Wed, 06 Dec 2000 18:03:33 -0700 Subject: MapServer "Points"/Query Question Message-ID: <3A2EE1E5.B186C407@ix.netcom.com> Have been looking in on the MapServer list server, as I've been reading up and tinkering with MapServer (on several Linux boxes; SuSE 6.1 and RedHat 6.0). I've reached a "stallout" on the "practice" application I've been working on, (as a mutation of the demo_init.html/demo.map example). I can't seem to figure out how to get data returned from a point shape file, though I can for a line shapefile .... as evidenced by the "output" example to be found at: http://lamar.ColoState.EDU/~hqwris/fishdata.jpg Attached are code "snippets" from my modifications to the demo.map file. Any suggestions on code to be added, deleted, or modified, would be appreciated. Thanks in advance for any input the "group" might provide. Don -------------- next part -------------- *********************************** Code from "modified" demo.map file: *********************************** LAYER NAME fishsite TYPE POINT STATUS ON DATA fishsite CLASSITEM "index_key" CLASS SYMBOL 1 SIZE 7 NAME 'FishSite' COLOR 80 200 80 END HEADER "fishsite_header.html" FOOTER "fishsite_footer.html" QUERY TEMPLATE "fishsite.html" END LABELITEM "index_key" TOLERANCE 5 END ********************************* Code from "fishdata_header.html": ********************************* Layer: Fish Sites

********************************* Code from "fishdata.html": ********************************* ********************************* Code from "fishdata_footer.html": *********************************
index_keystreamregionbasin
[index_key][stream][region][basin]

From blackmail at snafu.de Thu Dec 7 08:34:44 2000 From: blackmail at snafu.de (Peter Brack) Date: Thu, 07 Dec 2000 17:34:44 +0100 Subject: How to Zoom , how to Select Message-ID: <3A2FBC24.89B8D694@snafu.de> >Hi Listers, > >as a beginner one simple one more: > >It have a large point-shape. I want to select one record by an attribute >value, highlight it - and zoom to that point. >Is this possible with mapserver? > >Any help appreciated... > > >Thanks a lot! > > >Peter > From yeewen at petromap.com Thu Dec 7 10:45:55 2000 From: yeewen at petromap.com (Yeewen Sat) Date: Thu, 7 Dec 2000 11:45:55 -0700 Subject: Need Help with Mapscript Tcl - mapObj In-Reply-To: <20001206145057.50961@nyx.net> Message-ID: If I use namespace, I get these errors: invalid command name "mapscript::mapObj" while executing "mapscript::mapObj map1 $file" (file "test.tcl" line 26) So, I don't use mapscript namespace in my tcl. Thanks to Tom for the ms_error suggestion, I found out what my problem was. It's in newsym.sym file - some invalid gif images reference. I don't really need them, so I removed them. At the end, I was able to load a mapfile, draw it, and save the image (.gif) created. Now, I have more questions :-) Is there a way to generate GIF images based on the zoom value, mapsize...like how mapserv cgi does it - given a mapfile, zoom value, mapsize, imgext, imgxy, creates a gif for the specified area. So, can I do that through mapscript? Right now, load, draw and save image will save the entire map. Thanks, Yeewen -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Tom Poindexter Sent: December 6, 2000 2:51 PM To: Yeewen Sat; mapserver-users at lists.gis.umn.edu Subject: Re: Need Help with Mapscript Tcl - mapObj On Wed, Dec 06, 2000 at 11:44:20AM -0700, Yeewen Sat wrote: > I constructed a mapObj with a mapfile with this line: > > mapObj map1 $file The Tcl Mapscript interface should live in the 'mapscript' namespace: mapscript::mapObj map1 $file > $file is the mapfile name without the .map extension. (with .map extension, > I got segmentation fault in tclsh) The file name should include .map > I don't understand why I keep getting NULL back from it...and what ever I do > after will (of course) fails. You can examine the 'ms_error' object to get the failure codes: puts [mapscript::ms_error cget -code] puts [mapscript::ms_error cget -routine] puts [mapscript::ms_error cget -message] The message is rather terse, but you should be able to figure out what the mapfile parse is complaining about. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From steve.lime at dnr.state.mn.us Thu Dec 7 11:37:02 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 07 Dec 2000 13:37:02 -0600 Subject: Test suite moved... Message-ID: There's another version of the test_suite located at: http://maps.dnr.state.mn.us/mapserver_demos/tests/ These have been ported to be up-to-date with the CVS version of the code. The quakes demo isn't working because I haven't installed the Perl Net::Finger module, soon though. More tests on the way too. Note this will be the main home for these pages so update any bookmarks you might have. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From bertha_bonita at yahoo.com Thu Dec 7 11:59:12 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Thu, 7 Dec 2000 11:59:12 -0800 (PST) Subject: Who really works Mapserver? Message-ID: <20001207195912.4462.qmail@web4207.mail.yahoo.com> Hello list. Somebody can help me to understand, how works internally mapserver? what routines calls, when i select one point, what files execute first.. etc. Thanks. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From tpoindex at nyx.net Thu Dec 7 13:47:00 2000 From: tpoindex at nyx.net (Tom Poindexter) Date: Thu, 7 Dec 2000 14:47:00 -0700 Subject: Need Help with Mapscript Tcl - mapObj In-Reply-To: ; from Yeewen Sat on Thu, Dec 07, 2000 at 11:45:55AM -0700 References: <20001206145057.50961@nyx.net> Message-ID: <20001207144700.26925@nyx.net> On Thu, Dec 07, 2000 at 11:45:55AM -0700, Yeewen Sat wrote: > If I use namespace, I get these errors: > > invalid command name "mapscript::mapObj" > So, I don't use mapscript namespace in my tcl. Try the CVS sources (e.g., nightly download). The configure/make should build the interface to use mapscript:: namespace. > Thanks to Tom for the ms_error suggestion, I found out what my problem was. > It's in newsym.sym file - some invalid gif images reference. I don't really > need them, so I removed them. At the end, I was able to load a mapfile, draw > it, and save the image (.gif) created. Great! > Now, I have more questions :-) > > Is there a way to generate GIF images based on the zoom value, > mapsize...like how mapserv cgi does it - given a mapfile, zoom value, > mapsize, imgext, imgxy, creates a gif for the specified area. So, can I do > that through mapscript? Right now, load, draw and save image will save the > entire map. The best source for doing this is in the msexplorer.tcl file. Basically, you modify the mapObj's data members before drawing for your own size, extents, etc. Speaking of my MapServer Workbench, I hope to have another release by this weekend. I've got a simple 'App Wizard' that walks you through building a MapServer application from scratch (assuming you have data files somewhere, and know some about MapServer.) It will build a mapfile and 'ms_demo' type html files, an initial reference map image, and a simple install sh script. It's a rough start, but does build a working mapfile on the first try. The idea is that you can then use msedit and msexplorer to fine tune your map. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From ksibson at matrix.net Thu Dec 7 13:42:44 2000 From: ksibson at matrix.net (Keith Sibson) Date: Thu, 7 Dec 2000 21:42:44 +0000 (GMT) Subject: labels overlapping points Message-ID: Hi, I'm using a map of the world with several mutually exclusive layer sets at different zoom levels that represent different levels of detail. Anyway, when zooming in, I increase the size of POINT symbols (circles) that represent cities so that at the maximum zoom, city features are quite large (20-30 pixels). At the highest levels of zoom there is also the most amount of clutter on the screen - lots of labelled feature points. What happens is that labels are not rendered if they interfere with the city points, even if I FORCE them. Is this the implemented behavior wrt symbols or am I doing something wrong? If it's implemented this way, then one workaround might be to create a polygon shapefile for cities rather than use symbols. Would this work? Thanks, Keith. From steve.lime at dnr.state.mn.us Thu Dec 7 15:13:16 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 07 Dec 2000 17:13:16 -0600 Subject: labels overlapping points Message-ID: This is the way it's supposed to work. The theory is that with point data it the points that are important and labels should not obscure them. The points themselves can overlap. The other reason for this behavior that if labels can overlap the points then it's damn near impossible to associate a point with a label (visually that is). Normally with things like this I use ANNOTATION layers so that the marker and label are given equal weight. By sorting on population or something (most important features at the tail end of the shapefile) you can ensure that London shows up before Lower Slaughter. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Keith Sibson 12/07/00 03:42PM >>> Hi, I'm using a map of the world with several mutually exclusive layer sets at different zoom levels that represent different levels of detail. Anyway, when zooming in, I increase the size of POINT symbols (circles) that represent cities so that at the maximum zoom, city features are quite large (20-30 pixels). At the highest levels of zoom there is also the most amount of clutter on the screen - lots of labelled feature points. What happens is that labels are not rendered if they interfere with the city points, even if I FORCE them. Is this the implemented behavior wrt symbols or am I doing something wrong? If it's implemented this way, then one workaround might be to create a polygon shapefile for cities rather than use symbols. Would this work? Thanks, Keith. From bertha_bonita at yahoo.com Thu Dec 7 15:50:32 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Thu, 7 Dec 2000 15:50:32 -0800 (PST) Subject: How mapserver works ? Message-ID: <20001207235032.19005.qmail@web4202.mail.yahoo.com> Hi I'm interesting of know how works internatly mapserver.. somebody can explain me?.. i'm waiting for a soon answer or ideas tahks! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From blackmail at snafu.de Fri Dec 8 01:36:35 2000 From: blackmail at snafu.de (Peter Brack) Date: Fri, 08 Dec 2000 10:36:35 +0100 Subject: Zoom to Selected in the "normal" map Message-ID: <3A30ABA3.FEDAE38@snafu.de> Hi Listers, all answers demonstrated a seect/highlite/zoom solution depending on the itemquery/querymap functionality. My problem is, I want to browse the map itself, not a special template-map. To make things more obviously: I have a map. One functionality should be search for a certain record, zoom to it and if possible, highlite it. Any suggestions? Thank you very much! Special thanks go to Stephen Lime and Tom who pointed to the mapserver-testsuite, e. g. http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery Peter From DebasishS at riskinc.com Thu Dec 7 04:01:26 2000 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Thu, 7 Dec 2000 17:31:26 +0530 Subject: Unable to zoom beyond a limit Message-ID: hi !!! After zooming in to certain level am unable to zoom in any further . The scale bar shows 0.0 miles. Can anybody help me out thanks regards Debasish Sahu Software Engineer RMSI,Noida.INDIA. Delivering a world of solutions From geotux at yahoo.com Fri Dec 8 05:57:30 2000 From: geotux at yahoo.com (Sven Kroemeke) Date: Fri, 8 Dec 2000 05:57:30 -0800 (PST) Subject: ShapefileObj getshape problem Message-ID: <20001208135730.79148.qmail@web10703.mail.yahoo.com> Hi everybody, I am kind of trying to rebuild mapserver basics functionality via php-mapscript. Right now I have a problem with shapeObj ShapefileObj::getShape(int i) rectObj ShapefileObj::getExtent(int i) the input with the integer doesn't work, I always get the same shapeObj. The input should be the ID of one item of the shape file (first column of dbf), but I only receive the first entry (ID 0) of the shapefile, no matter which integer I use. I am looking for a small image of one queried item of the shapefile as the basic mapserver does. I would appreciate any help with that Sven (I have mandrake linux 7.1 mapserver 3.3.011, php 3.x) __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From steve.lime at dnr.state.mn.us Fri Dec 8 07:36:05 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 08 Dec 2000 09:36:05 -0600 Subject: Unable to zoom beyond a limit Message-ID: We'll need more information. Mapfiles and a URL are best. s. >>> 12/07/00 06:01AM >>> hi !!! After zooming in to certain level am unable to zoom in any further . The scale bar shows 0.0 miles. Can anybody help me out thanks regards Debasish Sahu Software Engineer RMSI,Noida.INDIA. Delivering a world of solutions From steve.lime at dnr.state.mn.us Fri Dec 8 07:51:38 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 08 Dec 2000 09:51:38 -0600 Subject: Zoom to Selected in the "normal" map Message-ID: I'm confused, that functionality *does* exist. What does the select/querymap option not give you? Querymaps are *normal* maps. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Peter Brack 12/08/00 03:36AM >>> Hi Listers, all answers demonstrated a seect/highlite/zoom solution depending on the itemquery/querymap functionality. My problem is, I want to browse the map itself, not a special template-map. To make things more obviously: I have a map. One functionality should be search for a certain record, zoom to it and if possible, highlite it. Any suggestions? Thank you very much! Special thanks go to Stephen Lime and Tom who pointed to the mapserver-testsuite, e. g. http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery Peter From blackmail at snafu.de Fri Dec 8 07:58:42 2000 From: blackmail at snafu.de (Peter Brack) Date: Fri, 08 Dec 2000 16:58:42 +0100 Subject: QueryMap-output with point symbols in the upper left corner of the querymap Message-ID: <3A310532.AA50ACA@snafu.de> Hi listers, got querymap execution with the selected point in the upper left corner without the other map-layers. Anybody out there who knows what's the problem? Also I'd like to know if it's possible to have the querymap output without a map.. Thanks a lot! Peter From tpoindex at nyx.net Fri Dec 8 20:26:12 2000 From: tpoindex at nyx.net (Tom Poindexter) Date: Fri, 8 Dec 2000 21:26:12 -0700 Subject: MapServer Workbench, 0.2 Message-ID: <20001208212612.43442@nyx.net> I've got a newer release of my MapServer Workbench tools. You can grab the 0.2 distribution at: http://www.nyx.net/~tpoindex/ New for this release is a new tool, msappwiz.tcl, plus several changes from the original tools (that I mailed out to folks.) You will need the Mapscript/Tcl interface, which is now included in the CVS sources, and available via the 'nightly' tarball. One tool, msedit.tcl, can run mostly without Mapscript/Tcl, and does run in Windows. No, I don't yet have a Windows port of Mapscript/Tcl, but it's on my list to build one (probably will use Mingw cross-compiler from Linux.) Be sure to read both the README.1st and README files. Also note that I consider this software to be of beta quality, so make backups of any mapfiles you use with the tool suite. As usual, bug reports are welcome, bug reports with fixes even more so. I've also taken down the screen shot I had before, web space at my site is limited. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From barberc at msu.edu Sat Dec 9 11:25:25 2000 From: barberc at msu.edu (Chris Barber) Date: Sat, 09 Dec 2000 14:25:25 -0500 Subject: MapServer and SDE Message-ID: <3A328725.258D60E6@msu.edu> Howdy. Has anyone successfully built MapServer with support for ESRI's SDE 3.0.2 for Oracle on an IRIX system?? 'make' bails out on me when building the 'shp2img' binary. Some additional info that might be useful in helping to point me in the right direction (hopefully): IRIX: 6.5.9m Oracle: 8.0.5 SDE: 3.0.2 gcc: 2.95.2 My 'configure': "./configure --with-sde=/net/gis/sde/sdeexe302" (bare bones for now til I can make SDE work) On a unrelated note, anybody know if the PHP MapScript module can be compiled/used with PHP4? TIA, \Chris -- __________________________________________________ Christopher P. Barber GIS/RS Specialist, Unix Systems Management Basic Science & Remote Sensing Initiative Dept. of Geography, Michigan State Univ. http://bsrsi.msu.edu Rm. 210 Manly Miles Bldg. 1405 S. Harrison Road East Lansing, MI 48823-5243 517.432.1883 Phone 517.353.2932 FAX barberc at msu.edu From ycnyon at pd.jaring.my Sun Dec 10 05:32:11 2000 From: ycnyon at pd.jaring.my (ycnyon) Date: Sun, 10 Dec 2000 21:32:11 +0800 Subject: Running application via remote web hosting References: <3A2FBC24.89B8D694@snafu.de> Message-ID: <3A3385DB.140DA860@pd.jaring.my> Hi, Is it possible to run a mapserver application using external web hosting which can provide support for cgi, php and mysql ? Are there any thing else that needs to be look into for this purpose. Regards Nyon From johnh at erin.gov.au Sun Dec 10 16:30:13 2000 From: johnh at erin.gov.au (John Hockaday) Date: Mon, 11 Dec 2000 11:30:13 +1100 (EST) Subject: MapServer and SDE Message-ID: <200012110030.LAA03746@eos.erin.gov.au> Hi Chris, I tried to use mapserv with SDE 3.0.2 but I had no sucess. I did however manage to compile it using SDE 8.0.2 and Oracle 8.i. Most things work except EXPRESSIONS, LABELS and ANNOTATION though I am only using mapserv version 3.3.011. Version 3.3.012 may have fixed these problems. I hope that this helps. Johnh > Date: Sat, 09 Dec 2000 14:25:25 -0500 > From: Chris Barber > X-Accept-Language: en > MIME-Version: 1.0 > To: mapserver-users at lists.gis.umn.edu > Subject: MapServer and SDE > Content-Transfer-Encoding: 7bit > > Howdy. > > Has anyone successfully built MapServer with support for ESRI's SDE 3.0.2 > for Oracle on an IRIX system?? 'make' bails out on me when building the > 'shp2img' binary. Some additional info that might be useful in helping > to point me in the right direction (hopefully): > > IRIX: 6.5.9m > Oracle: 8.0.5 > SDE: 3.0.2 > gcc: 2.95.2 > > My 'configure': "./configure --with-sde=/net/gis/sde/sdeexe302" > (bare bones for now til I can make SDE work) > > On a unrelated note, anybody know if the PHP MapScript module can > be compiled/used with PHP4? > > TIA, > > \Chris > > -- > __________________________________________________ > Christopher P. Barber > GIS/RS Specialist, Unix Systems Management > Basic Science & Remote Sensing Initiative > Dept. of Geography, Michigan State Univ. > http://bsrsi.msu.edu > > Rm. 210 Manly Miles Bldg. > 1405 S. Harrison Road > East Lansing, MI 48823-5243 > 517.432.1883 Phone > 517.353.2932 FAX > barberc at msu.edu From mark.wilson at rohoel.at Mon Dec 11 00:33:42 2000 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Mon, 11 Dec 2000 09:33:42 +0100 Subject: Running application via remote web hosting Message-ID: Nyon, Yes, you should be able to set up mapserver to run via a third party web hosting service. I have managed to do this using using two different web hosting services. However, you may have to make modifications to the install scripts, because you probably won't have access to some of the files (depending on what environment you are installing into) in their "normal" locations. You will need full cgi-bin access etc. If you are looking for a provider, and have any doubts, try to find one with a 30 day "money-back" trial period. That way, you can always opt out if you find you can't get what you need from them (in terms of privileges and support). The only thing I did _not_ manage to do was to successfully set up php mapscript (so I have been learning perl!). The php mapscript installation requires the php source, which was no longer available on the host provider's webservers. Although in theory it should have been possible to get the php source and complete the installation of php mapscript, I still had problems going down this route. Perhaps you will have more luck. Mark W. ycnyon on 10.12.2000 14:32:11 To: cc: mapserver-users at lists.gis.umn.edu (bcc: Mark H Wilson/RAG/AT) Subject: Running application via remote web hosting Hi, Is it possible to run a mapserver application using external web hosting which can provide support for cgi, php and mysql ? Are there any thing else that needs to be look into for this purpose. Regards Nyon From andreag at crs4.it Mon Dec 11 01:46:44 2000 From: andreag at crs4.it (A. Giacomelli) Date: Mon, 11 Dec 2000 10:46:44 +0100 Subject: simple "shopping cart" based on mapserver Message-ID: <3A34A284.42A0DC8@crs4.it> Hi, I am new to mapserver. I have installed the basic setup, and tried the core functionality. I would appreciate some feeback from the list on the possibility of developing via mapserver a sort of "basic shopping cart" function, i.e. selecting a feature from my map and adding the corresponding ID to a list which is displayed in another frame. TIA for any hints/comments, -- Andrea Giacomelli From mschulz at webgis.de Mon Dec 11 03:42:34 2000 From: mschulz at webgis.de (Michael Schulz) Date: Mon, 11 Dec 2000 12:42:34 +0100 Subject: Also: Running application via remote web hosting Message-ID: <3A34BDAA.E193E01@webgis.de> Hi, we are currently also trying to use a third party web hosting service to run MapServer. Mark, you wrote that you needed to change some things in the install scripts, but then compiled MapServer on the machine of your web hosting service, am i right? Actually, that is our problem. Most of the providers we have contacted so far won't allow us to compile anything on their machines. Could we compile MapServer statically linked and then just transfer the binary to the cgi-bin of our provider? Unfortunately, i am not a compile-options-expert, perhaps someone could give me some hints how to do it. TIA. Cheers, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From thfischer at mapmedia.de Mon Dec 11 04:42:31 2000 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Mon, 11 Dec 2000 13:42:31 +0100 Subject: Unknown keywords Message-ID: <00121113514300.20134@grobi> Ladies and gentlemen, I just updated my copy of the MapServer source code to the latest version from CVS. It compiles fine, as well as MapScript with the latest PHP version. But when I am trying to load a recently used .map file with the following definitions: SHADESET "symbols/shades.sym" MARKERSET "symbols/marker.sym" SYMBOLSET "symbols/line.sym" I got the following error message: msLoadMap(): Unknown identifier. (SHADESET):(7) Same goes for a MapScript via PHP: Warning: MapServer Error in msLoadMap(): (SHADESET):(7) in mapscript.phtml on line 5 Did I miss a reconstruction of the file format? I can't find any hint on the home page. Yours, Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From mark.wilson at rohoel.at Mon Dec 11 05:49:58 2000 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Mon, 11 Dec 2000 14:49:58 +0100 Subject: Also: Running application via remote web hosting Message-ID: I'm no "compile-options-expert" either so this is possibly a case of the blind leading the blind. I was about to reply that a statically linked executable probably would not work. However, you should check out the URL below http://www.freegis.org/FreeGIS_CD/requirements.en.html which has some information on compiled GIS software. They offer a compiled version of mapserver on their CD, but you need to check your hardware and OS for compatibility. You may also need the privileges/knowledge to alter environment variables and symbolic links. Keep in mind that the CD was not designed specifically for installing packages in commercial web hosting environments, so perhaps there will be some hidden pitfalls. Good luck. Mark W. Michael Schulz on 11.12.2000 12:42:34 To: MapServer Userlist cc: (bcc: Mark H Wilson/RAG/AT) Subject: Also: Running application via remote web hosting -------------- next part -------------- Hi, we are currently also trying to use a third party web hosting service to run MapServer. Mark, you wrote that you needed to change some things in the install scripts, but then compiled MapServer on the machine of your web hosting service, am i right? Actually, that is our problem. Most of the providers we have contacted so far won't allow us to compile anything on their machines. Could we compile MapServer statically linked and then just transfer the binary to the cgi-bin of our provider? Unfortunately, i am not a compile-options-expert, perhaps someone could give me some hints how to do it. TIA. Cheers, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From mark.wilson at rohoel.at Mon Dec 11 06:42:48 2000 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Mon, 11 Dec 2000 15:42:48 +0100 Subject: Unknown keywords Message-ID: Thorsten, Yes I think you must have missed it. But since the new format is not yet part of the official release, I do not think you should find a reference on the mapserver home page just yet. I believe you can find the new structure documented at: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0010/msg00027.html Have fun. Mark W. Thorsten Fischer on 11.12.2000 13:42:31 To: mapserver-users at lists.gis.umn.edu cc: (bcc: Mark H Wilson/RAG/AT) Subject: Unknown keywords Ladies and gentlemen, I just updated my copy of the MapServer source code to the latest version from CVS. It compiles fine, as well as MapScript with the latest PHP version. But when I am trying to load a recently used .map file with the following definitions: SHADESET "symbols/shades.sym" MARKERSET "symbols/marker.sym" SYMBOLSET "symbols/line.sym" I got the following error message: msLoadMap(): Unknown identifier. (SHADESET):(7) Same goes for a MapScript via PHP: Warning: MapServer Error in msLoadMap(): (SHADESET):(7) in mapscript.phtml on line 5 Did I miss a reconstruction of the file format? I can't find any hint on the home page. Yours, Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From frank.koormann at intevation.de Mon Dec 11 06:43:54 2000 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 11 Dec 2000 15:43:54 +0100 Subject: Unknown keywords In-Reply-To: <00121113514300.20134@grobi>; from thfischer@mapmedia.de on Mon, Dez 11, 2000 at 01:42:31 +0100 References: <00121113514300.20134@grobi> Message-ID: <20001211154354.A19792@abnoba.intevation.de> Hi Thorsten, * Thorsten Fischer (thfischer at mapmedia.de) [001211 14:24]: > > Ladies and gentlemen, > > I just updated my copy of the MapServer source code to the latest version from > CVS. It compiles fine, as well as MapScript with the latest PHP version. But > when I am trying to load a recently used .map file with the following > definitions: > > SHADESET "symbols/shades.sym" > MARKERSET "symbols/marker.sym" > SYMBOLSET "symbols/line.sym" > > I got the following error message: > msLoadMap(): Unknown identifier. (SHADESET):(7) > Yes, this has changed: "Stephen Lime" wrote on Wed, 11 Oct 2000: | | The new version uses a unified symbol file format which means you can | store all symbols in one file. This allows for inline definitions | (i.e. within a +mapfile) of symbols and more straight forward | mapscript access. Anyway here's what's needed to switch: | | 1) SHADESET, MARKERSET, LINESET are gone and replaced by SYMBOLSET | 2) the keywords SHADESET, MARKERSET, LINESET need to be removed from | symbol files, and so should the last END keyword | 3) you can "cat" them all together | | That should do it. Hope this helps. Cheers, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From teb at mallit.fr.umn.edu Mon Dec 11 08:00:13 2000 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 11 Dec 2000 10:00:13 -0600 (CST) Subject: FWD: target query Message-ID: <200012111600.KAA22476@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Stender, Amy ERDC-CRREL-NH" To: "'mapserver-info at lists.gis.umn.edu'" Subject: target query Date: Mon, 11 Dec 2000 10:59:09 -0500 MIME-Version: 1.0 I read the reply Ken Boss gave to "different target frames based on mode" and am still having trouble sending the query template to a specific frame on a webpage. I'm new to JavaScript and attempeted using 'onSubmit="toFrame()"' by my query info on my html page and creating a 'toFrame()' JavaScript function to use the script Ken gave. If someone could explain how I can send my query template to a frame and/or even a new window, I'd appreciate it very much. Thanks, Amy ------------- End Forwarded Message ------------- From kenboss at dilbert.dnr.state.mn.us Mon Dec 11 09:11:04 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Mon, 11 Dec 2000 11:11:04 -0600 (CST) Subject: FWD: target query Message-ID: <200012111711.LAA23049@philbert.dnr.state.mn.us> Maybe the formatting of my original response was a little misleading. In your html template file, your browsable/queryable map is embedded in a form. For example, the mapserver demo uses:

to begin the form definition. You want to expand this to something like: Then, in the portion of the template, add your javascript function, like: Note that the "mapserv" part of document.mapserv.target is the name attribute of the form as defined above, you can change it to whatever suits you. "queryFrame" is the name attribute of a frame as defined in your frameset. "_self" is a keyword that will send results to the same frame the contains the form. If you want to send results to a separate window, you will need additional code to specify window attributes and open the window. You can find lots of good JavaScript resources online. Try http://developer.netscape.com/tech/javascript/index.html for starters. Hope this helps, --Ken > Date: Mon, 11 Dec 2000 10:00:13 -0600 (CST) > From: teb > Subject: FWD: target query > To: mapserver-users at lists.gis.umn.edu > Cc: astender at crl02.crrel.usace.army.mil > MIME-Version: 1.0 > Content-MD5: MhicjKLEgtk5EXyxMcCW8w== > > > ------------- Begin Forwarded Message ------------- > > From: "Stender, Amy ERDC-CRREL-NH" > To: "'mapserver-info at lists.gis.umn.edu'" > Subject: target query > Date: Mon, 11 Dec 2000 10:59:09 -0500 > MIME-Version: 1.0 > > I read the reply Ken Boss gave to "different target frames based on mode" > and am still having trouble sending the query template to a specific frame > on a webpage. I'm new to JavaScript and attempeted using > 'onSubmit="toFrame()"' by my query info on my html page and creating a > 'toFrame()' JavaScript function to use the script Ken gave. If someone could > explain how I can send my query template to a frame and/or even a new > window, I'd appreciate it very much. > > Thanks, > Amy > > ------------- End Forwarded Message ------------- > > From steve.lime at dnr.state.mn.us Mon Dec 11 09:57:53 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 11 Dec 2000 11:57:53 -0600 Subject: simple "shopping cart" based on mapserver Message-ID: It's very doable. Just a bit of javascript. You need to control where the results are processed, probably a hidden frame and that's where you'd add members to the cart list. Could also add to a cookie, lot's of options. There been some discussion on the list about changing frame targets so please check those messages. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "A. Giacomelli" 12/11/00 03:46AM >>> Hi, I am new to mapserver. I have installed the basic setup, and tried the core functionality. I would appreciate some feeback from the list on the possibility of developing via mapserver a sort of "basic shopping cart" function, i.e. selecting a feature from my map and adding the corresponding ID to a list which is displayed in another frame. TIA for any hints/comments, -- Andrea Giacomelli From steve.lime at dnr.state.mn.us Mon Dec 11 10:04:02 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 11 Dec 2000 12:04:02 -0600 Subject: MapServer and SDE Message-ID: I'm in the midst of some low level changes to enable SDE and OGR queries. This will also facilitate OGIS WMT compliance. SDE annotation layers are not ready, nor is projection. EXPRESSIONS are supported and are essentially SQL where clauses. They are not the same as normal MapServer EXPRESSIONS. I figured why not take advantage of what SDE brings to the table in this case. Basic labeling also should work, the only exception is that label expressions (eg. ([PARKNAME] State Park)) do not (and never will since they can be handled via SQL. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> John Hockaday 12/10/00 06:30PM >>> Hi Chris, I tried to use mapserv with SDE 3.0.2 but I had no sucess. I did however manage to compile it using SDE 8.0.2 and Oracle 8.i. Most things work except EXPRESSIONS, LABELS and ANNOTATION though I am only using mapserv version 3.3.011. Version 3.3.012 may have fixed these problems. I hope that this helps. Johnh > Date: Sat, 09 Dec 2000 14:25:25 -0500 > From: Chris Barber > X-Accept-Language: en > MIME-Version: 1.0 > To: mapserver-users at lists.gis.umn.edu > Subject: MapServer and SDE > Content-Transfer-Encoding: 7bit > > Howdy. > > Has anyone successfully built MapServer with support for ESRI's SDE 3.0.2 > for Oracle on an IRIX system?? 'make' bails out on me when building the > 'shp2img' binary. Some additional info that might be useful in helping > to point me in the right direction (hopefully): > > IRIX: 6.5.9m > Oracle: 8.0.5 > SDE: 3.0.2 > gcc: 2.95.2 > > My 'configure': "./configure --with-sde=/net/gis/sde/sdeexe302" > (bare bones for now til I can make SDE work) > > On a unrelated note, anybody know if the PHP MapScript module can > be compiled/used with PHP4? > > TIA, > > \Chris > > -- > __________________________________________________ > Christopher P. Barber > GIS/RS Specialist, Unix Systems Management > Basic Science & Remote Sensing Initiative > Dept. of Geography, Michigan State Univ. > http://bsrsi.msu.edu > > Rm. 210 Manly Miles Bldg. > 1405 S. Harrison Road > East Lansing, MI 48823-5243 > 517.432.1883 Phone > 517.353.2932 FAX > barberc at msu.edu From lrn at zeppo.geosurv.gov.nf.ca Mon Dec 11 12:52:55 2000 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Mon, 11 Dec 2000 17:22:55 -0330 Subject: target query Message-ID: <004b01c063b4$56051290$0a29070a@ln2000> Have a look at this url and then view the source. It's on an NT box but the javascript should work on other systems. http://www.gac-nfld.com/gacmap/nframe.htm Larry Nolan St. John's, Newfoundland, Canada voice (709) 729-2168 email lrn at zeppo.geosurv.gov.nf.ca From morissette at dmsolutions.ca Mon Dec 11 13:01:21 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 11 Dec 2000 16:01:21 -0500 Subject: ShapefileObj getshape problem References: <20001208135730.79148.qmail@web10703.mail.yahoo.com> Message-ID: <3A3540A1.9DE00A41@dmsolutions.ca> Sven, There was a problem with getShape() and a few others in PHP MapScript 3.3.011: the shape index was treated as double instead of as integer as it should have been. If you get a more recent version (i.e. 3.4 pre-release) then you'll get this fix and a bunch of others. Daniel Sven Kroemeke wrote: > > Hi everybody, > > I am kind of trying to rebuild mapserver basics functionality > via php-mapscript. Right now I have a problem with > > shapeObj ShapefileObj::getShape(int i) > rectObj ShapefileObj::getExtent(int i) > > the input with the integer doesn't work, I always get the > same shapeObj. The input should be the ID of one item of > the shape file (first column of dbf), but I only > receive the first entry (ID 0) of the shapefile, no matter > which integer I use. > I am looking for a small image of one queried item of > the shapefile as the basic mapserver does. > I would appreciate any help with that > > Sven > > (I have mandrake linux 7.1 mapserver 3.3.011, php 3.x) > > __________________________________________________ > Do You Yahoo!? > Yahoo! Shopping - Thousands of Stores. Millions of Products. > http://shopping.yahoo.com/ -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Matt.Wilkie at gov.yk.ca Tue Dec 12 11:14:04 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 12 Dec 2000 11:14:04 -0800 Subject: dev: mapserver & cygwin Message-ID: <6DD7370C9452D31192A10008C75D075307B1B1E6@raptor.gov.yk.ca> Hi All, Just for the heck of it, I tried to compile Mapserver on Win32 using the Cygwin development environment. Well, not quite for the heck of it but I'll save that for another time. :o For the record, I'm not a programmer, I don't know a damn thing about C and I know just enough about unices to really screw things up. Be that as it may, I thought I'd share my experience in the hope it'll benefit somebody else who knows more about what they're doing. :) I had almost no problems compiling Mapserver. However once Mapserver.exe is installed in $cgi-bin it doesn't run properly either. The exe does respond (apparently) correctly - no core dumps or anything messy - it just doesn't do what you want: display a map. :) cheers, -matt ---------------------------------------------------------- The Environment: Windows NT 4.0sp5 Apache 1.3.14 (current to 31-Oct-2k) http://httpd.apache.org/dist/binaries/win32/ cygwin v1.1 (install current to 04-Dec-2k) http://cygwin.com/setup.exe cygwin-utils (current to 04-Dec-2k) http://cygutils.netpedia.net/V1.1/usr-local/index.html Cygwin root is D:\cygwin (eg. "cd /" in bash shell is equiv. to "cd d:\cygwin" in NT cmd shell) Apache is installed to c:/local/Apache. Webroot folder is d:/var/www. #grab Mapserver nightly.tar and msworkbench (11-Dec-2k) cd /usr/local/src wget http://mapserver.gis.umn.edu/dist/nightly.tar.gz wget http://www.nyx.net/~tpoindex/gis/msworkbench.tar.gz #unpackage Mapserver and workbench gunzip -c nightly.tar.gz | tar xvf - cd /usr/local/src/mapserver/mapscript/tcl gunzip -c /usr/local/src/msworkbench.tar.gz | tar xvf - #configure and compile mapserver cd /usr/local/src/mapserver ./configure --with-gd --with-tiff --with-jpeg --with-ttf #no errors or warnings were encountered, #was an error using '--with-proj' make #no errors, some warnings (see bottom of file) cp mapserv.exe //d/var/www/cgi-bin/ Pointing a web browser to http://localhost/cgi-bin/mapserv yields: "No query information to decode. QUERY_STRING is set, but empty. " Which I find promising - the exe responds with a message, not a segfault, blue screen of death or other unfortunate mess. Next I installed the demo so there was something to work with: cd //d/var/www/htdocs/maps wget http://mapserver.gis.umn.edu/dist/ms_demo.tar.gz gunzip -c ms_demo.tar.gz |tar xvf - Fire up web browser and loading http://localhost/maps/demo_init.html yields: "msLoadMap(): Regular expression error. (\.map$)" And now we are truly into territory I don't understand. Perusing the Mapserver 'readme.win32' I see a section on RegEx library, which isn't installed by default on VC++ systems. However it does seem to be installed on a Cygwin system: /etc/setup/regex.lst.gz /lib/libregex.a /usr/include/regex.h /usr/include/regexp.h /usr/info/regex.info /usr/lib/libregex.a /usr/local/share/aclocal/regex.m4 /usr/share/iwidgets3.0.0/scripts/regexpfield.itk Just in case I adapted the instructions for VCwin32: cd /usr/local/src/mapserver wget ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz gunzip -c regex-0.12.tar.gz | tar xvf - Added to the Makefile: REGEX_OBJ=./regex-0.12/regex.obj REGEX_INC=-I./regex-0.12 REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC And recompiled. No errors that weren't seen before. And no change in the resultant mapserv.exe behaviour either. Oh well. {shrug} it was still fun to try. The fact that I made it this far with no obvious problems leads me to think it shouldn't bet that difficult to get the rest of the way -- for somebody who knows what the *** they are doing that is. ;-) #------------- make warnings for /usr/local/src/mapserver: ------------- maputil.c: In function `msDrawShapefileLayer': maputil.c:1202: warning: assignment discards qualifiers from pointer target type ... maputil.c: In function `msSaveImage': maputil.c:1731: warning: implicit declaration of function `_setmode' maputil.c:1731: warning: implicit declaration of function `_fileno' ... mapraster.c: In function `msDrawRasterLayer': mapraster.c:1294: warning: assignment discards qualifiers from pointer target type mapraster.c: At top level: mapraster.c:1028: warning: `drawGEN' defined but not used ... shptree.c: In function `main': shptree.c:38: warning: `filename' might be used uninitialized in this function shptree.c:40: warning: `byte_order' might be used uninitialized in this function ... shptreetst.c: In function `main': shptreetst.c:68: warning: `node' might be used uninitialized in this function From Michael.Hearne at noaa.gov Tue Dec 12 11:24:34 2000 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Tue, 12 Dec 2000 14:24:34 -0500 Subject: mapserv controls Message-ID: <3A367B72.2FCD965E@noaa.gov> I have what should be an easy question (but apparently not for me): When working with the mapserv cgi, how do you set the "zoom in,zoom out, pan" radio button to default to something other than "Pan"? Here's what I have in my initial HTML file: This defaults to "Pan", where I intended it to come up as "Zoom In". Any suggestions? -Mike -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From steve.lime at dnr.state.mn.us Tue Dec 12 12:23:58 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 12 Dec 2000 14:23:58 -0600 Subject: mapserv controls Message-ID: You can't use checkbox/radio button syntax with hidden variables. You need something like: zoom in
pan
zoom out
If you really want a hidden variable to hold zoomdir which is set somewhere else, presumably an initialization script use something like: Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Michael Hearne 12/12/00 01:24PM >>> I have what should be an easy question (but apparently not for me): When working with the mapserv cgi, how do you set the "zoom in,zoom out, pan" radio button to default to something other than "Pan"? Here's what I have in my initial HTML file: This defaults to "Pan", where I intended it to come up as "Zoom In". Any suggestions? -Mike -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From Matt.Wilkie at gov.yk.ca Tue Dec 12 15:56:40 2000 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 12 Dec 2000 15:56:40 -0800 Subject: mapserv controls Message-ID: <6DD7370C9452D31192A10008C75D075307B1B577@raptor.gov.yk.ca> > You can't use checkbox/radio button syntax with hidden > variables. You need something like: > > [zoomdir_1_check]> zoom in
> [zoomdir_0_check]> pan
> [zoomdir_-1_check]> zoom out
For testing and development I find it much easier to change a lot of the input types to "text". This way you can more quickly try more variations without having to actually edit the init.html file. See the attached html file for an example (works for ms_demo, may need some alterations). cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From racarr at ameritech.net Tue Dec 12 16:01:41 2000 From: racarr at ameritech.net (Bob Carr) Date: Tue, 12 Dec 100 17:59:36 -0600 (CST) Subject: Compile/Link Problems - AIX 4 Message-ID: <200012122359.RAA11013@pisgah.our.place> I'm unable to generate the executables on an IBM server using the xlc compiler which is bundled with AIX 4.I've attached the errors from the make command, the files and subdirectory listing for the build directory, and part of the Makefile. I've compiled all the dependencies, and didn't see any errors from configure. -- bob carr port washington, wisconsin racarr at ameritech.net Make Errors: root at sv09 $ make cd gd-1.8.3; make; cd .. Target "all" is up to date. cd gdft; make; cd .. Target "all" is up to date. /usr/bin/xlc -qcpluscmt -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_TTF -DUSE_TIFF -DUSE_JPEG - SE_GD_1_6 -I/usr/local/include -I/tmp/mapserver/gd-1.8.3 -I/tmp/mapserver/gdft -I/tmp/mapserver/free pe-1.3.1/lib -I/tmp/mapserver/tiff-v3.5.5/libtiff -I/tmp/mapserver/jpeg-6b shp2img.o -L. -l p -L/tmp/mapserver/gd-1.8.3 -lgd -lpng -lz -L/tmp/mapserver/gdft -lgdft -L/tmp/mapserver/freetype-1.3 /lib -lttf -L/tmp/mapserver/tiff-v3.5.5/libtiff -ltiff -L/usr/local/include -lproj -L/tmp/mapserver/ eg-6b -ljpeg -lm -o shp2img ld: 0706-006 Cannot find or open library file: -l png ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l z ld:open(): A file or directory in the path name does not exist. ld: 0706-006 Cannot find or open library file: -l ttf ld:open(): A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 255. ************************************************************ Build Directory: root at sv09 $ ls CVS/ gd-1.2/ mapindex.o mapraster.o maptree.o INSTALL gd-1.8.3/ maplabel.c mapscale.c maputil.c Makefile gdft/ maplabel.o mapscale.o maputil.o Makefile.in* jpeg-6b/ maplegend.c mapscript/ mapxbase.c Makefile.new legend.c maplegend.o mapsde.c mapxbase.o Makefile.vc libmap.a maplexer.c mapsde.o ms_3.3.011.tar README libpng-1.0.8/ maplexer.l mapsearch.c proj-4.4.2/ README.CONFIGURE map.h maplexer.o mapsearch.o scalebar.c README.WIN32 mapbits.c mapparser.c mapserv.c shp2img.c aclocal.m4* mapbits.o mapparser.h mapserv.h shp2img.o cgiutil.c maperror.c mapparser.o mapserver/ shpindex.c cgiutil.h maperror.h mapparser.y mapshape.c shptree.c config.cache maperror.o mapprimitive.c mapshape.h sortshp.c config.log mapfile.c mapprimitive.h mapshape.o sym2img.c config.status* mapfile.h mapprimitive.o mapstring.c symbols/ configure* mapfile.o mapproject.c mapstring.o tiff-v3.5.5/ configure.in* maphash.c mapproject.h mapsymbol.c zlib-1.1.3/ epplib.c* maphash.h mapproject.o mapsymbol.h epplib.h* maphash.o mapquery.c mapsymbol.o fonts/ mapindex.c* mapquery.o maptree.c freetype-1.3.1/ mapindex.h* mapraster.c maptree.h ************************************************************* Makefile: # Generated automatically from Makefile.in by configure. # Run ./configure in the main MapServer directory to turn this Makefile.in # into a proper Makefile # # If you want to ignore missing datafile errors uncomment the following # line. This is especially useful with large tiled datasets that may not # have complete data for each tile. # #IGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA IGNORE_MISSING_DATA = -DIGNORE_MISSING_DATA # # Apparently these aren't as commonplace as I'd hoped. Edit the # following line to reflect the missing functions on your platform. # # STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP STRINGS= # Freetype distribution (TrueType font support). Available at http://www.freetype.org/. (RECOMMENDED) TTF_LIB= -L/tmp/mapserver/gdft -lgdft -L/tmp/mapserver/freetype-1.3.1/lib -lttf TTF_INC= -I/tmp/mapserver/gdft -I/tmp/mapserver/freetype-1.3.1/lib TTF= -DUSE_TTF MAKE_GDFT= gdft MAKE_GDFT_CLEAN= gdft_clean # Proj.4 distribution (cartographic projection routines). Not required for normal use. (EXPERIMENTAL) PROJ_INC= -I/usr/local/include PROJ_LIB= -L/usr/local/include -lproj PROJ= -DUSE_PROJ # GD distribution (graphics library GIF and/or PNG support). (REQUIRED) # # - Version 1.2 is included and writes LZW GIF (-DUSE_GD_1_2). # - Versions 1.3 to 1.5 write non-LZW GIF (-DUSE_GD_1_3). # - Versions 1.6 and greater write PNG (-DUSE_GD_1_6). Add -lpng -lz to GD_LIB line. # # If you're not using the 1.2 version included in the MapServer distribution # then comment out the MAKE_GD and MAKE_GD_CLEAN entries. # GDFONT_OBJ=gd-1.8.3/gdfontt.o gd-1.8.3/gdfonts.o gd-1.8.3/gdfontmb.o gd-1.8.3/gdfontl.o gd-1.8.3/gdfontg.o GD_INC= -I/tmp/mapserver/gd-1.8.3 GD_LIB= -L/tmp/mapserver/gd-1.8.3 -lgd -lpng -lz GD= -DUSE_GD_1_6 MAKE_GD=gd MAKE_GD_CLEAN = # TIFF distribution (raster support for TIFF and GEOTIFF imagery). (RECOMMENDED) TIFF_INC= -I/tmp/mapserver/tiff-v3.5.5/libtiff TIFF_LIB= -L/tmp/mapserver/tiff-v3.5.5/libtiff -ltiff TIFF= -DUSE_TIFF # JPEG distribution (raster support for grayscale JPEG images, INPUT ONLY). JPEG_INC= -I/tmp/mapserver/jpeg-6b JPEG_LIB= -L/tmp/mapserver/jpeg-6b -ljpeg JPEG= -DUSE_JPEG # EPPL7 Support (this activates ERDAS as well) Included in the distribution. Probably the best raster alternative if # you've got EPPL7 laying around. See http://www.lmic.state.mn.us/ for more information. (RECOMMENDED) EPPL= EPPL_OBJ= # ESRI SDE Support. You MUST have the SDE Client libraries and include files # on your system someplace. The actual SDE server you wish to connect to can # be elsewhere. SDE= SDE_LIB= SDE_INC= # # UofMN GIS/Image Processing Extension (very experimental) # #EGIS=-DUSE_EGIS #EGIS_INC=-I./egis/errLog -I./egis/imgSrc -I./egis #EGIS_LIB=-L./egis/errLog -lerrLog -L./egis/imgSrc -limgGEN -L./egis -legis #MAKE_EGIS=egis #MAKE_EGIS_CLEAN=egis_clean # # IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS: # # In order to compile the PHP_MAPSCRIPT module, we have to make MapServer # uses the same version of the REGEX library that PHP was compiled with: # REGEX_OBJ= REGEX_INC= # # Pick a compiler, etc. Flex and bison are only required if you need to modify the mapserver lexer (maplexer.l) or expression parser (mapparser.y). # CC= /usr/bin/xlc -qcpluscmt AR= ar rc RANLIB= ranlib LEX= lex YACC= yacc XTRALIBS= -lm RUNPATHS= CFLAGS= $(IGNORE_MISSING_DATA) $(STRINGS) $(EPPL) $(PROJ) $(TTF) \ $(TIFF) $(JPEG) $(GD) $(SDE) $(PROJ_INC) $(GD_INC) $(TTF_INC) \ $(TIFF_INC) $(JPEG_INC) $(EGIS_INC) $(SDE_INC) $(REGEX_INC) LDFLAGS= $(RUNPATHS) -L. -lmap $(GD_LIB) $(TTF_LIB) $(TIFF_LIB) $(PROJ_LIB) \ $(JPEG_LIB) $(EGIS_LIB) $(SDE_LIB) $(XTRALIBS) RM= /bin/rm -f OBJS= mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o mapindex.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o $(EPPL_OBJ) $(REGEX_OBJ) From gribeiro at dpi.ufv.br Wed Dec 13 03:43:26 2000 From: gribeiro at dpi.ufv.br (Gleydson G. Valim Ribeiro) Date: Wed, 13 Dec 2000 09:43:26 -0200 Subject: Compile error on mapserv.c Message-ID: <002d01c064f9$e7b5a790$678613c8@sigeo3> Hello everyone, I'm trying to compile the mapserver on NT, but there are some errors in the file mapserv.c mapserver.lib ... look. ----- ... mapserv.c mapserv.obj : error LNK2001: unresolved external symbol _regfree mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regfree mapserver.lib(mapquery.obj) : error LNK2001: unresolved external symbol _regfree mapserv.obj : error LNK2001: unresolved external symbol _strncasecmp mapserv.obj : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapquery.obj) : error LNK2001: unresolved external symbol _regcomp mapserv.obj : error LNK2001: unresolved external symbol _strcasecmp mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _strcasec mp mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _strcasec mp mapserv.obj : error LNK2001: unresolved external symbol _regexec mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regexec mapserver.lib(mapquery.obj) : error LNK2001: unresolved external symbol _regexec mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _regexec mapserv.exe : fatal error LNK1120: 5 unresolved externals NMAKE : fatal error U1077: 'cl' : return code '0x2' ------- I think that the problem is in the library that are included on the file mapserv.c ( egis.h, globalstruct.h, egisHTML.h) ... I don't have these files. Can anybody help me? Thanks a lot ... Gleydson Ribeiro -------------- next part -------------- An HTML attachment was scrubbed... URL: From gruecker at zebris-geoconsult.de Wed Dec 13 07:24:47 2000 From: gruecker at zebris-geoconsult.de (gruecker) Date: Wed, 13 Dec 2000 16:24:47 +0100 Subject: Also: Running application via remote web hosting References: Message-ID: <007201c06518$d61206e0$0101a8c0@gernot> Hi, we're currently negotiating with our webhoster the use of mapserver. They provide support for mysql, perl and php un a LINUX/Apache server, but they won't let us install mapserver in the Apache cgi-bin directory. Is there any possibility to run mapserver from our webspace without having access to the configuration scripts ? Thanks for the help Gernot -----Urspr?ngliche Nachricht----- Von: An: Gesendet: Montag, 11. Dezember 2000 09:33 Betreff: Re: Running application via remote web hosting > > > Nyon, > > Yes, you should be able to set up mapserver to run via a third party web hosting > service. I have managed to do this using using two different web hosting > services. However, you may have to make modifications to the install scripts, > because you probably won't have access to some of the files (depending on what > environment you are installing into) in their "normal" locations. > > You will need full cgi-bin access etc. If you are looking for a provider, and > have any doubts, try to find one with a 30 day "money-back" trial period. That > way, you can always opt out if you find you can't get what you need from them > (in terms of privileges and support). > > The only thing I did _not_ manage to do was to successfully set up php mapscript > (so I have been learning perl!). The php mapscript installation requires the php > source, which was no longer available on the host provider's webservers. > Although in theory it should have been possible to get the php source and > complete the installation of php mapscript, I still had problems going down this > route. Perhaps you will have more luck. > > Mark W. > > > > > ycnyon on 10.12.2000 14:32:11 > > To: > cc: mapserver-users at lists.gis.umn.edu (bcc: Mark H Wilson/RAG/AT) > > Subject: Running application via remote web hosting > > > > Hi, > > Is it possible to run a mapserver application using external web hosting > which > can provide support for cgi, php and mysql ? Are there any thing else > that needs to > be look into for this purpose. > > Regards > Nyon > > > > > > > From racarr at ameritech.net Wed Dec 13 09:38:47 2000 From: racarr at ameritech.net (Bob Carr) Date: Wed, 13 Dec 100 11:36:41 -0600 (CST) Subject: Compile/Linker Problems on AIX Message-ID: <200012131736.LAA11270@pisgah.our.place> I discovered this morning that the ld errors were resolved when I added additional -L lines to the TTF_LIB and GD_LIB lines of the makefiles for mapserver, gd-1.8.3, and gdft. We have the demo version up on our development cell. -- bob carr port washington, wisconsin racarr at ameritech.net From steve.lime at dnr.state.mn.us Wed Dec 13 09:40:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 13 Dec 2000 11:40:20 -0600 Subject: Also: Running application via remote web hosting Message-ID: Only if they've given you your own cgi-bin or have designated a file type (i.e. *.cgi) as CGI. Steve >>> "gruecker" 12/13/00 09:24AM >>> Hi, we're currently negotiating with our webhoster the use of mapserver. They provide support for mysql, perl and php un a LINUX/Apache server, but they won't let us install mapserver in the Apache cgi-bin directory. Is there any possibility to run mapserver from our webspace without having access to the configuration scripts ? Thanks for the help Gernot -----Urspr?ngliche Nachricht----- Von: An: Gesendet: Montag, 11. Dezember 2000 09:33 Betreff: Re: Running application via remote web hosting > > > Nyon, > > Yes, you should be able to set up mapserver to run via a third party web hosting > service. I have managed to do this using using two different web hosting > services. However, you may have to make modifications to the install scripts, > because you probably won't have access to some of the files (depending on what > environment you are installing into) in their "normal" locations. > > You will need full cgi-bin access etc. If you are looking for a provider, and > have any doubts, try to find one with a 30 day "money-back" trial period. That > way, you can always opt out if you find you can't get what you need from them > (in terms of privileges and support). > > The only thing I did _not_ manage to do was to successfully set up php mapscript > (so I have been learning perl!). The php mapscript installation requires the php > source, which was no longer available on the host provider's webservers. > Although in theory it should have been possible to get the php source and > complete the installation of php mapscript, I still had problems going down this > route. Perhaps you will have more luck. > > Mark W. > > > > > ycnyon on 10.12.2000 14:32:11 > > To: > cc: mapserver-users at lists.gis.umn.edu (bcc: Mark H Wilson/RAG/AT) > > Subject: Running application via remote web hosting > > > > Hi, > > Is it possible to run a mapserver application using external web hosting > which > can provide support for cgi, php and mysql ? Are there any thing else > that needs to > be look into for this purpose. > > Regards > Nyon > > > > > > > From kames at optonline.net Wed Dec 13 14:10:49 2000 From: kames at optonline.net (Kieran Ames) Date: Wed, 13 Dec 2000 17:10:49 -0500 Subject: Mapscript: adding data points Message-ID: <3A37F3E9.F545E938@optonline.net> I want to thank all those who helped me last month in installing Mapscript/PHP on an NT machine. I was wondering now if I might trouble the group once more. I'm looking for some "starter code" for an SQL interface. I can't see anything in the archives that gives a plain example of adding point data on-the-fly with Mapscript/PHP. For instance, with a map containing layers like lakes, roads and parks, (...pre-defined shape files), I'd like to add points, say... historical markers, from a MySQL db. I use Decimal Degrees in my maps and my data have LAT/LON coordinates. The concept would be: Add a layer as SELECT * FROM TABLE WHERE LATITUDE BETWEEN x&y AND LONGITUDE BETWEEN a&b. This would return points that I'd like to include on the map as a layer. Some things I've found thus far include labelObj from http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0006/msg00125.html but I can't make the connection to making the point layer. An example would really help in getting me started with understanding Mapscript (and PHP as well!). Thanks for any help. Kieran From catu0004 at tc.umn.edu Wed Dec 13 14:35:32 2000 From: catu0004 at tc.umn.edu (Marcelle L Caturia) Date: Wed, 13 Dec 2000 16:35:32 -0600 (CST) Subject: Muliple Layers Problem using MapServer Message-ID: <200012132235.QAA11440@www3.software.umn.edu> Hi Everyone, Here's a MapServer problem which has perplexed my labmates and I for several days - thought I'd throw it out to the mailing list for feedback. I'm not able to display multiple layers if I submit my map request by clicking on my submit button (named "Go" on my mapserver interface). However, individual layers display fine using the submit button, as long as I select them one at a time before submitting. Another interesting observation: I can get multiple layers to display if I submit my map request by clicking on my map image area instead of on the submit button. Prior to all of this happening, I had just added a hidden "imgxy" variable to my template file to take care of a previous problem: after zooming in on my map image, adding a new layer would kick me back to the full map extent. (Any added layers, whether before or after zooming in, displayed fine). On the advice of Steve Lime, I've also tried turning off the legend to see if the problem is related to a legend - layer minscale/maxscale issue. But this doesn't seem to make a difference at all. My MapServer project startup page is located at: http://gis.umn.edu/~mcaturia/minnesota/demo/index_demo.html The map and template files are called "demo1.map" and "demo1.html", and are located in the same /demo/ directory as above. Any advice would be greatly appreciated. (And please note that I'm still a fairly new MapServer, HTML and Java user.) Many thanks! Marcelle Caturia catu0004 at tc.umn.edu From AFR at carlbro.dk Thu Dec 14 00:25:32 2000 From: AFR at carlbro.dk (Allan Frese) Date: Thu, 14 Dec 2000 09:25:32 +0100 Subject: Mapserver hanging ... Message-ID: <00Dec14.092536cet.119073@gateway1.carlbro.dk> Dear list I've run into a problem with mapserver running on windows NT. After mapserver har been doing it stuff, which is does fast and apparently correct, my browser shows a fine web page with a map and everything, it hangs ??? The process says it waiting. Well, I use "tlist" from NT's resource kit, which says "state: waiting". After browsing for while, I've got a lot of mspserv.exe's hanging ... :-( For the record, I have the same version (3.3.12) running on a linux box (Mandrake 7.2) showing the same data with no problem at all. Thanks, Allan From thfischer at mapmedia.de Thu Dec 14 04:23:03 2000 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Thu, 14 Dec 2000 13:23:03 +0100 Subject: Map extent in MapScript Message-ID: <00121413314401.02354@grobi> Ladies and gentlemen, I am trying to set a new map extent using an existing map file. The map file, named 'dyn.map', is empty excpet for the following declarations: NAME MMPLZ STATUS ON SIZE 600 600 SYMBOLSET "symbols/newsym.sym" EXTENT 3806570.250000 5829377.000000 3809110.499999 5835739.500000 UNITS METERS IMAGECOLOR 255 255 255 No layers at all. There is also a small WEB section. My MapScript in PHP looks like: 1: $shpfname = "shape"; 2: $shpf = ms_newShapefileObj ($shpfname, -1); 3: $myshape = $shpf -> getShape ($idx); 4: $mybounds = $myshape -> bounds; 5: $map = ms_newMapObj ("dyn.map"); 6: $map -> set ("height", 300); 7: $map -> set ("width", 300); 8: $map -> extent = $mybounds; The last line is crucial, because leaving it out or leaving it in does not change the resulting image at all. Any ideas? Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From SDunning at nephrology.org Thu Dec 14 07:00:39 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Thu, 14 Dec 2000 09:00:39 -0600 Subject: Customizing maps "on the fly" Message-ID: Hello, I currently have about twenty different choropleth layers available for viewing (one at a time), so I was able to easily hardcode the class names and layer descriptions for this phase. However, I'm am now looking to expand the available data layers to around 300+, so my previous methodology does not agree with me. :) I would actually like to figure out how to store all my raw data in a database (SQL Server in my case), have users create a summarized table of data (eg. by state) based on a separate query interface, then create a new map "on-the-fly" using this newly created tablular data. Is there a way to: 1) "join" this new table to an existing shapefile, or create a new shapefile that references this table? 2) use this custom shapefile to then create an "on the fly" mapfile to feed mapserver? 3) utilize some kind of a Lookup Table to dynamically populate class names for legend labeling? I'm set up with PHP3/mapscript and using it in the my site which is currently based on the DM Solutions gmap demo. I'm running on a Windows NT, IIS sever. Here's the URL: http://www2.usrds.org/mapserver/gmap/htdocs/gmap75.phtml Is PHP enough to create the interface I've described? Are there other languages I should utilize instead (in addition)? Any ideas? Thanks, Stephan From morissette at dmsolutions.ca Thu Dec 14 07:26:48 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 14 Dec 2000 10:26:48 -0500 Subject: Map extent in MapScript References: <00121413314401.02354@grobi> Message-ID: <3A38E6B8.DAB85A8A@dmsolutions.ca> Thorsten Fischer wrote: > > My MapScript in PHP > looks like: > > 1: $shpfname = "shape"; > 2: $shpf = ms_newShapefileObj ($shpfname, -1); > 3: $myshape = $shpf -> getShape ($idx); > 4: $mybounds = $myshape -> bounds; > 5: $map = ms_newMapObj ("dyn.map"); > 6: $map -> set ("height", 300); > 7: $map -> set ("width", 300); > 8: $map -> extent = $mybounds; > > The last line is crucial, because leaving it out or leaving it in does not > change the resulting image at all. Any ideas? > You have to use the setextent() method to set the map extents: $map->setextent($mybounds->minx, $mybounds->miny, $mybounds->maxx, $mybounds->maxy); You always have to use the set() methods to set object properties in PHP MapScript. Setting $map->extent = ...; directly changes the value in the PHP object itself but does not propagate automatically to the real map object internally. This is because there is no way to set callbacks on property changes when we implement PHP objects in C. Hopefully this is something that will be added in PHP 4 at some point. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Dec 14 08:00:05 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 14 Dec 2000 11:00:05 -0500 Subject: Customizing maps "on the fly" References: Message-ID: <3A38EE85.5719F618@dmsolutions.ca> Stephan Dunning wrote: > > I would actually like to figure out how to > store all my raw data in a database (SQL Server in my case), have users > create a summarized table of data (eg. by state) based on a separate query > interface, then create a new map "on-the-fly" using this newly created > tablular data. > I assume that you mean have the attribute information in a SQL database. And the georgaphic data would still be in shapefiles, right? > Is there a way to: 1) "join" this new table to an existing shapefile, or > create a new shapefile that references this table? > 2) use this custom shapefile to then create an "on the > fly" mapfile to feed mapserver? > 3) utilize some kind of a Lookup Table to dynamically > populate class names for legend labeling? > > I'm set up with PHP3/mapscript and using it in the my site which is > currently based on the DM Solutions gmap demo. > I'm running on a Windows NT, IIS sever. #1, 2, 3 can all be done with PHP MapScript. You would use the PHP ODBC module to query your SQL database, and the PHP DBase module to create a temporary DBF file for MapServer using the result of the query. It is not possible to join an exsiting .shp file with a .dbf table with the current MapServer. However, the trick is to use a unique name for the DBF table you create, and copy the .shp and .shx to the same basename as the .dbf (on Unix you could use logical links)... resulting in a new shapefile dataset. Then you can feed that into one of your map layers with the right classes and MapServer will be happy. This technique was used several times and it works very well. I'm almost sure that's the kind of trick JF Doyon's Elections application used. We've also launched recently a couple of new application for Health Canada (http://www.hc-sc.gc.ca/hpb/lcdc/webmap/) that use a similar approach to create cloropleth maps for over 100MB of disease rates data. BTW, Health Canada also launched a new version of its Fluwatch application (using PHP MapScript) for the 2000-2001 flu season: http://cythera.ic.gc.ca/dsol/fluwatch/fluwatch.phtml -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Thu Dec 14 09:44:50 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 14 Dec 2000 11:44:50 -0600 Subject: Fwd: strcasecmp and strncasecmp ??? Message-ID: An embedded message was scrubbed... From: "Gleydson G. Valim Ribeiro" Subject: strcasecmp and strncasecmp ??? Date: Thu, 14 Dec 2000 10:25:07 -0200 Size: 1969 URL: From aborruso at spaziogis.it Fri Dec 15 01:07:06 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Fri, 15 Dec 2000 10:07:06 +0100 Subject: Mapserver on a cd-rom??? Message-ID: Dear users, is it possible to run mapserver powered website on a cd-rom. I work in microsoft systems. Thank you, Andrea From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Dec 15 06:24:33 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 15 Dec 2000 09:24:33 -0500 Subject: Mapserver on a cd-rom??? Message-ID: <2951561DB3DDD0118FEC00805FFE980504942182@s5-ccr-r1> Yes, it is ! Although I've never tried it specifically with Mapserver, I've run entire websites and webservers from a CD ROM ... I use Sambar (http://www.sambar.com) ... It supports CGI and even comes with a Perl 5 interpreter. It can be configured to run fully from CD-ROM, all you'd have to do is add your website and CGI's and so on ... Cheers, J.F. > ---------- > From: aborruso at spaziogis.it[SMTP:aborruso at spaziogis.it] > Sent: Friday, December 15, 2000 4:07 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Mapserver on a cd-rom??? > > Dear users, > is it possible to run mapserver powered website on a cd-rom. I work in > microsoft systems. > Thank you, > > Andrea > From steve.lime at dnr.state.mn.us Fri Dec 15 08:51:47 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 15 Dec 2000 10:51:47 -0600 Subject: MapServer Logo Message-ID: Just a reminder to get logo submissions in by the first of the year. Send them to: mapserver-info at gis.umn.edu. Only have recieved a couple so far. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From bamarob55 at yahoo.com Fri Dec 15 12:43:10 2000 From: bamarob55 at yahoo.com (Robert Aldridge) Date: Fri, 15 Dec 2000 12:43:10 -0800 (PST) Subject: symbol problems Message-ID: <20001215204310.41781.qmail@web10306.mail.yahoo.com> Steve & others, I'm using a nightly build from a couple of nights ago and am having problems with the symbols. I found a message in the archives saying that I should remove the LINESET (or SHADESET or MARKERSET) line from the beginning of the files and the last END from the files, then cat the files together. I did this, creating a file called SYMBOL.SYM. I can't get mapserver to work with this file. And, I can't get it to work with the individual *.sym files either. Basically, the only way I can get it to work now is to omit any references to SYMBOLSET, MARKERSET, LINESET, SHADESET, or any *.sym file. This causes mapserver to use the default symbol for all of my layers. I can change the colors, but not the symbol. My question: Could some kind soul post a concatenated symbol file and example of *.map file that works with a recent nightly build? Thanks, Robert Aldridge Gulf States Paper Corp. __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ From thfischer at mapmedia.de Fri Dec 15 13:34:30 2000 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Fri, 15 Dec 2000 22:34:30 +0100 Subject: Map extent in MapScript In-Reply-To: <00121522334100.08763@grobi> References: <00121413314401.02354@grobi> <3A38E6B8.DAB85A8A@dmsolutions.ca> <00121522334100.08763@grobi> Message-ID: <00121522350301.08763@grobi> Hi everyone! > > The last line is crucial, because leaving it out or leaving it in does not > > change the resulting image at all. Any ideas? > You have to use the setextent() method to set the map extents: > > $map->setextent($mybounds->minx, $mybounds->miny, > $mybounds->maxx, $mybounds->maxy); Maybe I should shout a 'RTFM!' at myself. I was staring on my printouts for about half an hour because I could not believe that such a method did not exist. Now I found it. After you pointed it out. I am getting old. But here is another one I could not figure out. I tried to use the 'STYLED' symbol type, which is documented but does not seem to exist anymore, neither does it appear in the source code. I would like to use lines with a width of more than one pixel, and really love to create things like a highway with two solid side lines and a dashed center line. -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From steve.lime at dnr.state.mn.us Fri Dec 15 13:52:52 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 15 Dec 2000 15:52:52 -0600 Subject: Map extent in MapScript Message-ID: Here's the symbol (can be in mapfile or symbol file) SYMBOL NAME 'circle' TYPE ELLIPSE FILLED POINTS 1 1 END END and here's a class definition (note the use of overlaysymbols) LAYER NAME majrdln3_interstate GROUP roads MAXSCALE 600000 SYMBOLSCALE 200000 STATUS OFF DATA shapefiles/majrdln3_interstate TYPE LINE CLASS COLOR 121 0 0 SYMBOL 'circle' SIZE 5 MINSIZE 3 MAXSIZE 7 OVERLAYCOLOR 181 51 51 OVERLAYSYMBOL 'circle' OVERLAYSIZE 3 OVERLAYMINSIZE 1 OVERLAYMAXSIZE 5 END END # interstates This is from the LandView interface (maps.dnr.state.mn.us/landview/). Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Thorsten Fischer 12/15/00 03:34PM >>> Hi everyone! > > The last line is crucial, because leaving it out or leaving it in does not > > change the resulting image at all. Any ideas? > You have to use the setextent() method to set the map extents: > > $map->setextent($mybounds->minx, $mybounds->miny, > $mybounds->maxx, $mybounds->maxy); Maybe I should shout a 'RTFM!' at myself. I was staring on my printouts for about half an hour because I could not believe that such a method did not exist. Now I found it. After you pointed it out. I am getting old. But here is another one I could not figure out. I tried to use the 'STYLED' symbol type, which is documented but does not seem to exist anymore, neither does it appear in the source code. I would like to use lines with a width of more than one pixel, and really love to create things like a highway with two solid side lines and a dashed center line. -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From gruecker at zebris-geoconsult.de Sun Dec 17 08:51:52 2000 From: gruecker at zebris-geoconsult.de (Gernot Ruecker) Date: Sun, 17 Dec 2000 17:51:52 +0100 Subject: MapServer and SDE References: <200012110030.LAA03746@eos.erin.gov.au> Message-ID: <00b801c06849$ab92cd80$0101a8c0@gernot> Hi list, I've got one more question concerning ArcSDE and Mapserver. I'm trying to use Mapserver with ArcSDE layers and get the error message: "msDrawSDELayer(): General error message. SDE support is not available. " I am working on NT and Oracle using the windows binaries. Does this mean that SDE support is not available with them and I have to rebuild the exe including SDE-support or simply that my SDE is not responding correctly or I commited some other error? I am using Mapserver 3.3.011. Thanks a lot for your help. Gernot -----Urspr?ngliche Nachricht----- Von: John Hockaday An: Gesendet: Montag, 11. Dezember 2000 01:30 Betreff: Re: MapServer and SDE > Hi Chris, > > I tried to use mapserv with SDE 3.0.2 but I had no sucess. I did > however manage to compile it using SDE 8.0.2 and Oracle 8.i. > > Most things work except EXPRESSIONS, LABELS and ANNOTATION though I am > only using mapserv version 3.3.011. Version 3.3.012 may have fixed > these problems. > > I hope that this helps. > > > Johnh > > > Date: Sat, 09 Dec 2000 14:25:25 -0500 > > From: Chris Barber > > X-Accept-Language: en > > MIME-Version: 1.0 > > To: mapserver-users at lists.gis.umn.edu > > Subject: MapServer and SDE > > Content-Transfer-Encoding: 7bit > > > > Howdy. > > > > Has anyone successfully built MapServer with support for ESRI's SDE 3.0.2 > > for Oracle on an IRIX system?? 'make' bails out on me when building the > > 'shp2img' binary. Some additional info that might be useful in helping > > to point me in the right direction (hopefully): > > > > IRIX: 6.5.9m > > Oracle: 8.0.5 > > SDE: 3.0.2 > > gcc: 2.95.2 > > > > My 'configure': "./configure --with-sde=/net/gis/sde/sdeexe302" > > (bare bones for now til I can make SDE work) > > > > On a unrelated note, anybody know if the PHP MapScript module can > > be compiled/used with PHP4? > > > > TIA, > > > > \Chris > > > > -- > > __________________________________________________ > > Christopher P. Barber > > GIS/RS Specialist, Unix Systems Management > > Basic Science & Remote Sensing Initiative > > Dept. of Geography, Michigan State Univ. > > http://bsrsi.msu.edu > > > > Rm. 210 Manly Miles Bldg. > > 1405 S. Harrison Road > > East Lansing, MI 48823-5243 > > 517.432.1883 Phone > > 517.353.2932 FAX > > barberc at msu.edu > > From johnh at erin.gov.au Sun Dec 17 16:13:22 2000 From: johnh at erin.gov.au (John Hockaday) Date: Mon, 18 Dec 2000 11:13:22 +1100 (EST) Subject: MapServer and SDE Message-ID: <200012180013.LAA09706@eos.erin.gov.au> Hi Gernot, I'm not familiar with Windows NT so I can't answer your question with confidence. However, having said that, I do know that you will have to compile mapserv with the SDE option. Otherwise I think that it will not work. You will also need to make sure that your Oracle client software is available on your mapserv server so that it knows how to connect to the Oracle server. You will need to do this before you compile mapserv. I hope that this helps. Steve Lime will definitely know more about it but I expect that he is very busy an relies on other users replying if they know the answer. I hope that someone will correct me if they know that I have said something wrong. Johnh > From: "Gernot Ruecker" > To: "John Hockaday" , > Subject: Re: MapServer and SDE > Date: Sun, 17 Dec 2000 17:51:52 +0100 > Mime-Version: 1.0 > Content-Transfer-Encoding: 8bit > X-Priority: 3 > X-MSMail-Priority: Normal > X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > > Hi list, > > I've got one more question concerning ArcSDE and Mapserver. I'm trying to > use Mapserver with ArcSDE layers and get the error message: > "msDrawSDELayer(): General error message. SDE support is not available. " I > am working on NT and Oracle using the windows binaries. Does this mean that > SDE support is not available with them and I have to rebuild the exe > including SDE-support or simply that my SDE is not responding correctly or I > commited some other error? I am using Mapserver 3.3.011. > Thanks a lot for your help. > > > Gernot > > -----Urspr?ngliche Nachricht----- > Von: John Hockaday > An: > Gesendet: Montag, 11. Dezember 2000 01:30 > Betreff: Re: MapServer and SDE > > > > Hi Chris, > > > > I tried to use mapserv with SDE 3.0.2 but I had no sucess. I did > > however manage to compile it using SDE 8.0.2 and Oracle 8.i. > > > > Most things work except EXPRESSIONS, LABELS and ANNOTATION though I am > > only using mapserv version 3.3.011. Version 3.3.012 may have fixed > > these problems. > > > > I hope that this helps. > > > > > > Johnh > > > > > Date: Sat, 09 Dec 2000 14:25:25 -0500 > > > From: Chris Barber > > > X-Accept-Language: en > > > MIME-Version: 1.0 > > > To: mapserver-users at lists.gis.umn.edu > > > Subject: MapServer and SDE > > > Content-Transfer-Encoding: 7bit > > > > > > Howdy. > > > > > > Has anyone successfully built MapServer with support for ESRI's SDE > 3.0.2 > > > for Oracle on an IRIX system?? 'make' bails out on me when building the > > > 'shp2img' binary. Some additional info that might be useful in helping > > > to point me in the right direction (hopefully): > > > > > > IRIX: 6.5.9m > > > Oracle: 8.0.5 > > > SDE: 3.0.2 > > > gcc: 2.95.2 > > > > > > My 'configure': "./configure --with-sde=/net/gis/sde/sdeexe302" > > > (bare bones for now til I can make SDE work) > > > > > > On a unrelated note, anybody know if the PHP MapScript module can > > > be compiled/used with PHP4? > > > > > > TIA, > > > > > > \Chris > > > > > > -- > > > __________________________________________________ > > > Christopher P. Barber > > > GIS/RS Specialist, Unix Systems Management > > > Basic Science & Remote Sensing Initiative > > > Dept. of Geography, Michigan State Univ. > > > http://bsrsi.msu.edu > > > > > > Rm. 210 Manly Miles Bldg. > > > 1405 S. Harrison Road > > > East Lansing, MI 48823-5243 > > > 517.432.1883 Phone > > > 517.353.2932 FAX > > > barberc at msu.edu > > > > > From steve.lime at dnr.state.mn.us Mon Dec 18 15:21:45 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 18 Dec 2000 17:21:45 -0600 Subject: TTF font examples Message-ID: A while back someone posted a note about a set of map fonts. I believe both the message and site had Aussie roots. Anyone remember, or better yet have the bookmark? Steve From Ross.Searle at dnr.qld.gov.au Mon Dec 18 22:59:29 2000 From: Ross.Searle at dnr.qld.gov.au (Ross.Searle at dnr.qld.gov.au) Date: Tue, 19 Dec 2000 16:59:29 +1000 Subject: SDE Message-ID: Hi, I have got mapserver running with the SDE connection stuff. It works brilliantly except for the querying part. When I try to query the SDE theme through either an "nquery" or "item/value" I get the follow error returned from mapserver msOpenSHPFile(): Unable to access file. (Sde.qld_np_estate_dbase_poly,shape) which from the message would suggest that mapserver is trying to treat it as a shapefile and not an SDE theme when querying Anyone got an ideas Thanks Ross ************************************************************************ 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 imap at chesapeake.net Tue Dec 19 05:11:49 2000 From: imap at chesapeake.net (Chris Stuber) Date: Tue, 19 Dec 2000 08:11:49 -0500 Subject: TTF font examples References: Message-ID: <3A3F5E95.4CC4672@chesapeake.net> Steve, I remember 2 emails... one was from JF who posted a message and using geosymb.ttf of unknown origin. (That also peaked my interest.. There is probably copyright involved here, but maybe JF can post this file.) That original email is at this URL: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0008/msg00144.html and with replies http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0009/msg00005.html There was also some email mention of keymapping the correct characters within a TTF file submitted by John Hockaday sometime later. I uploaded (temporarily) my small collection of TTF mapping fonts to http://www.mapmining.com/map_fonts/ If anyone else comes up with mapping fonts, please let me know. Regards, Chris Stuber (mapsurfer) Stephen Lime wrote: > > A while back someone posted a note about a set of map fonts. I believe both the message and site had Aussie roots. Anyone remember, or better yet have the bookmark? Steve From cysu at csie.nctu.edu.tw Tue Dec 19 05:40:11 2000 From: cysu at csie.nctu.edu.tw (Joe Su) Date: Tue, 19 Dec 2000 21:40:11 +0800 Subject: Problem about Build mapserver with php4 regex on windows Message-ID: <000501c069c1$35a0d030$0a5f718c@whitebox> I can't build mapserver with regex lib provided by php4 source. I have already build the regex library and link mapserver.lib with the php4 regex object files. But would linked fine with gnu regex-0.12 nmake will generating following error message: mapserv.obj : error LNK2001: unresolved external symbol _regfree mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regfree mapserver.lib(mapquery.obj) : error LNK2001: unresolved external symbol _regfree mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regfree mapserv.obj : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapquery.obj) : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regcomp mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regexec mapserv.obj : error LNK2001: unresolved external symbol _regexec mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regexec mapserver.lib(mapquery.obj) : error LNK2001: unresolved external symbol _regexec mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _regexec mapserv.exe : fatal error LNK1120: 3 unresolved externals May anyone help me? Thanks so much. :) From andrew.luger at daterra.ab.ca Tue Dec 19 07:05:18 2000 From: andrew.luger at daterra.ab.ca (Andrew Luger) Date: Tue, 19 Dec 2000 08:05:18 -0700 Subject: using a tiff or geotiff as a map Message-ID: <000401c069cd$1a5a46b0$e2dc4118@stn1> Morning all, Having reviewed the user documentation and examples. I am confused as to how I might use a tiff or geotiff as the underlying map. I could really use an example. I have lat / long in data which i would like to represent on the tiff. Can I get some help or get pointed to an existing example which someone may have created.?? Thanks Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From kames at keyspanenergy.com Tue Dec 19 08:14:05 2000 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Tue, 19 Dec 2000 11:14:05 -0500 Subject: shpcreate & shpadd Message-ID: <3A3F894D.2D05D5F2@keyspanenergy.com> Hello all, I'm looking to create some point layers from a MySQL db that has lat/lon entries. I wanted to use mapscript, but there is more than a 3 minute lag in retreiving the data from the db. (I've heavily indexed the db, but calls like "where LAT BETWEEN south_value AND north_value AND LON BETWEEN west_value AND east_value" return about 500 records out of a possible 1.8 million.) Therefore, I thought I'd do some pre-processing and have some layers already available... trading disk space for speed. I've used shpcreate and shpadd to make the layers, but the disk I/O requires an unacceptable amount of activity. (With more than 4 million write functions needed between shp, shx & dbf... I'm concerned about affecting the life and integrity of my hard drive). I could use ArcView, but that would be a manual process with more than 300 layers to process. Is there any ArcView script running around there that could do this? Otherwise, are there any shpcreate, dbfcreate, shpadd, dbfadd executables that would take a file name as an argument and write the data in one pass? I want to get to one open/write/close activity for each layer rather than for each point. Thanks much for any assistance. Kieran From morissette at dmsolutions.ca Tue Dec 19 08:54:56 2000 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 19 Dec 2000 11:54:56 -0500 Subject: shpcreate & shpadd References: <3A3F894D.2D05D5F2@keyspanenergy.com> Message-ID: <3A3F92E0.CF026F63@dmsolutions.ca> Kieran, You could use MapScript's shapeFileObj (and the Perl or PHP DBF module) to create your files... it would require only one open/close per layer as you suggested. If you use PHP, then there is an example of creating shapefiles with the corresponding DBF entries in the MapServer source distribution in: mapserver/mapscript/php3/examples/test_writeshape.phtml Of course, another solution might be to do it directly in C with shapelib, but then you'll have to write the access to the MySQL database in C too and you probably don't want that. Good Luck! Daniel "Kieran J. Ames" wrote: > > Hello all, > I'm looking to create some point layers from a MySQL db that has lat/lon > entries. I wanted to use mapscript, but there is more than a 3 minute > lag in retreiving the data from the db. > (I've heavily indexed the db, but calls like "where LAT BETWEEN > south_value AND north_value AND LON BETWEEN west_value AND east_value" > return about 500 records out of a possible 1.8 million.) Therefore, I > thought I'd do some pre-processing and have some layers already > available... trading disk space for speed. > I've used shpcreate and shpadd to make the layers, but the disk I/O > requires an unacceptable amount of activity. (With more than 4 million > write functions needed between shp, shx & dbf... I'm concerned about > affecting the life and integrity of my hard drive). > > I could use ArcView, but that would be a manual process with more than > 300 layers to process. Is there any ArcView script running around there > that could do this? Otherwise, are there any shpcreate, dbfcreate, > shpadd, dbfadd executables that would take a file name as an argument > and write the data in one pass? I want to get to one open/write/close > activity for each layer rather than for each point. > > Thanks much for any assistance. > Kieran -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From imap at chesapeake.net Tue Dec 19 11:06:04 2000 From: imap at chesapeake.net (Chris Stuber) Date: Tue, 19 Dec 2000 14:06:04 -0500 Subject: mapserv Win32 DLLs / ActiveX / COM Message-ID: <3A3FB19C.86768E6@chesapeake.net> Has anyone created Win32 DLLs for any of the following? mapserv,freetype,libtiff,proj,regex,gd,gdft I believe that in order to get mapscript to run on the Windows platform, the components needs to be callable presumably via DLL. Or perhaps mapscript can be statically linked to these libs??? Has anyone gotten mapscript to run under Perl, ActiveX/COM? If anyone has gone down this road, your comments would be appreciated. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From ddnebert at fgdc.gov Tue Dec 19 10:45:00 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Tue, 19 Dec 2000 13:45:00 -0500 Subject: Symbolizing polygons Message-ID: <3A3FACAC.C7763260@fgdc.gov> I wish to serve a map which, for example sake, will illustrate several classes of polygon as red, yellow, and green (for example sake) creating a choropleth map based on an attribute in the associated table. Can someone point me to a nice example where this is done so I can see what the map file would look like? I believe I will need to regenerate the map file when the attributes change, yes? Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From bfraser at geoanalytic.com Tue Dec 19 12:09:18 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Dec 2000 13:09:18 -0700 Subject: mapserv Win32 DLLs / ActiveX / COM References: <3A3FB19C.86768E6@chesapeake.net> Message-ID: <083101c069f7$91e8de10$390002c0@servo> Chris (and list subscribers), I've made Windows DLLs for the MapServer-related libraries you've listed. And I've made a couple of attempts at getting a Perl version of MapScript built but was unsuccessful. See the included text below for some details (it's an email I sent to the list on June 13, 2000). The short story is I was able to build a mapscript.dll, but ActivePerl would not load it. My current theory there are some function interfacing issues. The answer may be to "Swig" mapscript on NT to see if the generated code is any different then the code generated on Unix (and packaged with the rest of the MapServer source). Haven't got around to that yet... As for the ActiveX/COM question, I had written a rudimentary ActiveX layer to MapServer (before MapScript came out). It worked ok, but was lacking features, mostly related to dealing with layers as a collection. I put the work on hold until I had a chance to examine Steve's MapScript object model and haven't returned to it. Too bad Swig doesn't produce ActiveX wrappers... Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ====================================== Steve (and list subscribers), I'm using the makefile created by using the command "perl makefile.pl" (I'm using ActivePerl, on NT 4.0. I then do an "nmake" at the command line. I removed the "-nodefaultlib" from the makefile (what a hacker), and now it will compile to a DLL using "nmake". I then did a "nmake install" and it seemed to work (it copied files into the ActivePerl directory and updated some other files). I tried the dump.pl perl script in the mapscript examples directory, and got the following error: Error: Parse Exception When I use perl interactively, and type in the first line of the dump.pl script "use mapscript;" I get the same error as above. So likely some perl file has not been updated properly so it will recognize the mapscript package. Any perl experts out there..? Brent Fraser ----- Original Message ----- From: "Stephen Lime" To: Sent: Tuesday, June 13, 2000 9:11 AM Subject: Re: some progress building MapScript on NT Which makefiles you using and are you using the perl MakeMaker module to build the perl code? I'm a win32 neophyte so how to install the dll is a mystery. A note to the list might help cause I think there are a bunch of people trying to do this same thing. s. >>> "Brent Fraser" 06/13/00 09:24AM >>> Steve, Well, it looks like we won't have to change the variable names (maybe). I edited the Makefile at the line CCFLAGS (approx line 244) and removed -TP and -DPERL_OBJECT. Things compiled alot cleaner, but I still had some unresolved symbols at the linking stage. I added perlCAPI.lib to the list of libaries in perlvars, and inserted #include "perlCAPI.h" into mapscript_wrap.c It compiles and links in the VC++ GUI. I actually get a DLL ! However, on the command line with nmake, the linking stage gives unresolved symbols in regex and proj of "HUGE" and "pctype". I'm not sure if it's worth pursuing since I can use the GUI to produce the DLL. Now that I have a mapscript.dll (the same as mapscript.so in Unix?), what do I do with it (be nice!)? Do I need to place it in the perl dir tree somewhere? Thanks, Brent ========================================= ----- Original Message ----- From: "Chris Stuber" To: "mapserver-users" Sent: Tuesday, December 19, 2000 12:06 PM Subject: mapserv Win32 DLLs / ActiveX / COM > > Has anyone created Win32 DLLs for any of the following? > > mapserv,freetype,libtiff,proj,regex,gd,gdft > > I believe that in order to get mapscript to run > on the Windows platform, the components needs to be > callable presumably via DLL. Or perhaps mapscript > can be statically linked to these libs??? Has anyone > gotten mapscript to run under Perl, ActiveX/COM? > > If anyone has gone down this road, your comments > would be appreciated. > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc. From SDunning at nephrology.org Tue Dec 19 13:08:13 2000 From: SDunning at nephrology.org (Stephan Dunning) Date: Tue, 19 Dec 2000 15:08:13 -0600 Subject: Symbolizing polygons Message-ID: >Doug wrote: >I wish to serve a map which, for example sake, will illustrate >several classes of polygon as red, yellow, and green (for example >sake) creating a choropleth map based on an attribute in the >associated table. > >Can someone point me to a nice example where this is done so I >can see what the map file would look like? I believe I will need >to regenerate the map file when the attributes change, yes? "Nice" may be a strong word :), but here's an example of something I had originally put together: http://mapserver.geog.umn.edu/cgi-bin/mapserv?map=/home/stephan/public_html/ hsa.map&layer=prevrate Here too is a sample from my original mapfile with the first of 18 layers. The layer names the Classitem, then uses the Expression line to associate a classitem value with a RGB color. The the Class "Name" populates the legend labels. MAP NAME "hsa" EXTENT -1700000 3000000 3100000 5500000 SIZE 550 400 SHAPEPATH "data" UNITS meters IMAGECOLOR 230 220 190 WEB IMAGEPATH "/pkg/mapserver_web_root/htdocs/tmp/" IMAGEURL "/tmp/" TEMPLATE hsa.html END SCALEBAR STATUS ON IMAGECOLOR 230 220 190 INTERVALS 4 SIZE 200 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 UNITS kilometers LABEL COLOR 0 0 0 SIZE small END END QUERYMAP STATUS ON SIZE 300 200 STYLE HILITE END REFERENCE STATUS ON IMAGE graphics/hsa1.gif SIZE 250 151 EXTENT -1700000 2700000 3100000 5800000 COLOR -1 -1 -1 OUTLINECOLOR 0 0 200 END LEGEND STATUS ON IMAGECOLOR 230 220 190 LABEL COLOR 0 0 0 END END LAYER NAME prevrate DATA hsaprev2 STATUS OFF TYPE POLYGON DESCRIPTION "1998 Prevalent Population (As a % of Total Population)" CLASSITEM "Qprev" CLASS EXPRESSION "5" OUTLINECOLOR 0 0 0 COLOR 0 0 185 NAME "0.1222 +" END CLASS EXPRESSION "4" OUTLINECOLOR 0 0 0 COLOR 41 41 255 NAME "0.101-0.1222" END CLASS EXPRESSION "3" OUTLINECOLOR 0 0 0 COLOR 99 99 255 NAME "0.0872-0.101" END CLASS EXPRESSION "2" OUTLINECOLOR 0 0 0 COLOR 175 175 255 NAME "0.0718-0.0872" END CLASS EXPRESSION "1" OUTLINECOLOR 0 0 0 COLOR 225 225 255 NAME "below 0.0718" END CLASS EXPRESSION "0" OUTLINECOLOR 0 0 0 COLOR 255 255 255 NAME "Insuff. Data" END QUERY TEMPLATE "hsainfo.html" END END END Hope this helps! Stephan -----Original Message----- From: Doug Nebert [mailto:ddnebert at fgdc.gov] Sent: Tuesday, December 19, 2000 12:45 PM To: Mapserver Users Subject: Symbolizing polygons I wish to serve a map which, for example sake, will illustrate several classes of polygon as red, yellow, and green (for example sake) creating a choropleth map based on an attribute in the associated table. Can someone point me to a nice example where this is done so I can see what the map file would look like? I believe I will need to regenerate the map file when the attributes change, yes? Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From imap at chesapeake.net Wed Dec 20 02:30:37 2000 From: imap at chesapeake.net (Chris Stuber) Date: Wed, 20 Dec 2000 05:30:37 -0500 Subject: mapserv Win32 DLLs / ActiveX / COM References: <3A3FB19C.86768E6@chesapeake.net> <083101c069f7$91e8de10$390002c0@servo> Message-ID: <3A408A4D.4187EA8A@chesapeake.net> Brent (and list), Tonight I tried to re-SWIG mapscript on Win2000 with the command: swig -perl5 -shadow mapscript.i using swig 1.3a3 for NT, I kept getting an Application Error whilst using the -shadow switch. I suspect there is some problem with swig that I could not identify. I think your theory about interface issue is right on target. I was reading up on DLLs tonight, and found a HOWTO that describes the necessity for each DLL to have a LibMain and something called WEP (Windows Exit Procedure). Quite possibly this is the problem with ActiveState Perl loading the DLL. I am not yet in a position to test this, but should be able get there in a day or 2. I also read in the swig documentation that it is possible to build the swig'd module from static libs from within the Visual Studio environment by linking the same as mapserver. The ActiveState Perl is a little klunky for Windows people in general... most Windows people prefer an ActiveX wrapper interface. Thanks again... If I make any progress on this, I will let you know. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. Brent Fraser wrote: > > Chris (and list subscribers), > > I've made Windows DLLs for the MapServer-related > libraries you've listed. > > And I've made a couple of attempts at getting a Perl > version of MapScript built but was unsuccessful. See the > included text below for some details (it's an email I sent > to the list on June 13, 2000). > > The short story is I was able to build a mapscript.dll, but > ActivePerl would not load it. My current theory there are > some function interfacing issues. The answer may be > to "Swig" mapscript on NT to see if the generated code > is any different then the code generated on Unix (and > packaged with the rest of the MapServer source). Haven't > got around to that yet... > > As for the ActiveX/COM question, I had written a rudimentary > ActiveX layer to MapServer (before MapScript came out). > It worked ok, but was lacking features, mostly related to > dealing with layers as a collection. I put the work on hold > until I had a chance to examine Steve's MapScript object > model and haven't returned to it. Too bad Swig doesn't > produce ActiveX wrappers... > > Brent Fraser > bfraser at geoanalytic.com > GeoAnalytic Inc. > #300 , 700 - 4th Avenue SW Calgary, AB > Canada T2P 3J4 > Tel: (403)213-2700 Fax: (403)213-2707 > www.geoanalytic.com > > ====================================== > Steve (and list subscribers), > > I'm using the makefile created by using the > command "perl makefile.pl" (I'm using ActivePerl, > on NT 4.0. I then do an "nmake" at the command > line. > > I removed the "-nodefaultlib" from the makefile > (what a hacker), and now it will compile to a DLL > using "nmake". I then did a "nmake install" and it > seemed to work (it copied files into the ActivePerl > directory and updated some other files). > > I tried the dump.pl perl script in the mapscript > examples directory, and got the following error: > > Error: Parse Exception > > When I use perl interactively, and type in the first > line of the dump.pl script "use mapscript;" I get > the same error as above. So likely some perl file > has not been updated properly so it will recognize > the mapscript package. > > Any perl experts out there..? > > Brent Fraser > > ----- Original Message ----- > From: "Stephen Lime" > To: > Sent: Tuesday, June 13, 2000 9:11 AM > Subject: Re: some progress building MapScript on NT > > Which makefiles you using and are you using the perl MakeMaker > module to build the perl code? I'm a win32 neophyte so how to install > the dll is a mystery. A note to the list might help cause I think there are > a bunch of people trying to do this same thing. > > s. > > >>> "Brent Fraser" 06/13/00 09:24AM >>> > Steve, > > Well, it looks like we won't have to change the variable names > (maybe). I edited the Makefile at the line CCFLAGS (approx > line 244) and removed -TP and -DPERL_OBJECT. > > Things compiled alot cleaner, but I still had some unresolved > symbols at the linking stage. I added perlCAPI.lib to the list > of libaries in perlvars, and inserted #include "perlCAPI.h" into > mapscript_wrap.c > > It compiles and links in the VC++ GUI. I actually get a DLL ! > > However, on the command line with nmake, the linking stage > gives unresolved symbols in regex and proj of "HUGE" and > "pctype". I'm not sure if it's worth pursuing since I can use > the GUI to produce the DLL. > > Now that I have a mapscript.dll (the same as mapscript.so > in Unix?), what do I do with it (be nice!)? Do I need to place > it in the perl dir tree somewhere? > > Thanks, > Brent > ========================================= > > ----- Original Message ----- > From: "Chris Stuber" > To: "mapserver-users" > Sent: Tuesday, December 19, 2000 12:06 PM > Subject: mapserv Win32 DLLs / ActiveX / COM > > > > > Has anyone created Win32 DLLs for any of the following? > > > > mapserv,freetype,libtiff,proj,regex,gd,gdft > > > > I believe that in order to get mapscript to run > > on the Windows platform, the components needs to be > > callable presumably via DLL. Or perhaps mapscript > > can be statically linked to these libs??? Has anyone > > gotten mapscript to run under Perl, ActiveX/COM? > > > > If anyone has gone down this road, your comments > > would be appreciated. > > > > Regards, > > > > Chris Stuber (mapsurfer) > > Silicon Mapping Solutions, Inc. From rmeyer at mendoza.gov.ar Wed Dec 20 04:28:28 2000 From: rmeyer at mendoza.gov.ar (Roberto Meyer) Date: Wed, 20 Dec 2000 08:58:28 -0330 Subject: Full list of mapserver's features? Message-ID: <18373.001220@mendoza.gov.ar> Hi, I'm completly new to mapserver and would like a full description of its features and limitations for an evaluation. The best description I found, till now, is the project's homepage! Can anybody point me somewhere else? TIA, -- Roberto From bomek at bomek.yi.org Wed Dec 20 17:13:35 2000 From: bomek at bomek.yi.org (Frederic Marchand) Date: Wed, 20 Dec 2000 20:13:35 -0500 (EST) Subject: Segfault? Message-ID: Hey there! i just installed Apache 1.3.14 with PHP4.0.4 and php_mapserver.so keep segfaulting! so, i compiled mapserver with mpatrol to see what's going on and here is the output: @(#) mpatrol 1.3.2 (00/12/18) Copyright (C) 1997-2000 Graeme S. Roy This is free software, and you are welcome to redistribute it under certain conditions; see the GNU Library General Public License for details. For the latest mpatrol release and documentation, visit http://www.cbmamiga.demon.co.uk/mpatrol. Log file generated on Wed Dec 20 20:06:02 2000 system page size: 4096 bytes default alignment: 4 bytes overflow size: 0 bytes overflow byte: 0xAA allocation byte: 0xFF free byte: 0x55 allocation stop: 0 reallocation stop: 0 free stop: 0 unfreed abort: 0 small boundary: 32 bytes medium boundary: 256 bytes large boundary: 2048 bytes lower check range: - upper check range: - failure frequency: 0 failure seed: 977360761 prologue function: epilogue function: handler function: log file: profiling file: mpatrol.out tracing file: mpatrol.trace program filename: /usr/sbin/httpd symbols read: 10762 autosave count: 0 freed queue size: 0 allocation count: 172 allocation peak: 36 (186679 bytes) allocation limit: 0 bytes allocated blocks: 36 (186679 bytes) freed blocks: 0 (0 bytes) free blocks: 6 (18121 bytes) internal blocks: 57 (933888 bytes) total heap usage: 1138688 bytes total compared: 0 bytes total located: 0 bytes total copied: 0 bytes total set: 592 bytes total warnings: 0 total errors: 1 ERROR: [ILLMEM]: illegal memory access at address 0x00000000 0x00000000 not in heap [Wed Dec 20 20:06:02 2000] [notice] child pid 3116 exit signal Aborted (6) I hope this gonna help! I wonder why it try to access this address... It is a mapserver bug, apache bug, mapserver bug or a human bug (in this case, me...) Thanks a lot! From steve.lime at dnr.state.mn.us Thu Dec 21 07:14:16 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 21 Dec 2000 09:14:16 -0600 Subject: Fwd: [Swig] pyshapelib-0.1 Message-ID: FYI. Note this library will handle the newer 3D shapes that mapscript won't. MapScript shapefile access is a bit more abstract and easier to use but this may help some folks. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: Bernhard Herzog Subject: [Swig] pyshapelib-0.1 Date: 21 Dec 2000 12:48:30 +0100 Size: 2552 URL: From steve.lime at dnr.state.mn.us Thu Dec 21 07:24:19 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 21 Dec 2000 09:24:19 -0600 Subject: Segfault? Message-ID: There may be a conflict between the libs each was compiled with. Check to make sure they're using the same versions of freetype, gd etc... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Frederic Marchand 12/20/00 07:13PM >>> Hey there! i just installed Apache 1.3.14 with PHP4.0.4 and php_mapserver.so keep segfaulting! so, i compiled mapserver with mpatrol to see what's going on and here is the output: @(#) mpatrol 1.3.2 (00/12/18) Copyright (C) 1997-2000 Graeme S. Roy This is free software, and you are welcome to redistribute it under certain conditions; see the GNU Library General Public License for details. For the latest mpatrol release and documentation, visit http://www.cbmamiga.demon.co.uk/mpatrol. Log file generated on Wed Dec 20 20:06:02 2000 system page size: 4096 bytes default alignment: 4 bytes overflow size: 0 bytes overflow byte: 0xAA allocation byte: 0xFF free byte: 0x55 allocation stop: 0 reallocation stop: 0 free stop: 0 unfreed abort: 0 small boundary: 32 bytes medium boundary: 256 bytes large boundary: 2048 bytes lower check range: - upper check range: - failure frequency: 0 failure seed: 977360761 prologue function: epilogue function: handler function: log file: profiling file: mpatrol.out tracing file: mpatrol.trace program filename: /usr/sbin/httpd symbols read: 10762 autosave count: 0 freed queue size: 0 allocation count: 172 allocation peak: 36 (186679 bytes) allocation limit: 0 bytes allocated blocks: 36 (186679 bytes) freed blocks: 0 (0 bytes) free blocks: 6 (18121 bytes) internal blocks: 57 (933888 bytes) total heap usage: 1138688 bytes total compared: 0 bytes total located: 0 bytes total copied: 0 bytes total set: 592 bytes total warnings: 0 total errors: 1 ERROR: [ILLMEM]: illegal memory access at address 0x00000000 0x00000000 not in heap [Wed Dec 20 20:06:02 2000] [notice] child pid 3116 exit signal Aborted (6) I hope this gonna help! I wonder why it try to access this address... It is a mapserver bug, apache bug, mapserver bug or a human bug (in this case, me...) Thanks a lot! From andreag at geoplan.ufl.edu Thu Dec 21 12:30:25 2000 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Thu, 21 Dec 2000 15:30:25 -0500 Subject: Point locations of raster images Message-ID: <3A426861.52E073B5@geoplan.ufl.edu> Hi all, I'm stumped and hope someone else has done something like this. I have a point dataset that I wanted to use in a similar way as a tileindex but a little differently. Mapserver's tileindex works only with polygon shapefiles and those show extents, not point locations. These points are locations of brochures showing maps of short local trails that we scanned because they were too small to include in our statewide trails database. I want to be able to click on the points and bring up the images - probably tifs (or pdfs). Then I'd like them to be able to zoom in on the tifs just as if it were a map. Any ideas as to how to do this are appreciated. Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ This message and any attachments are intended only for the use of those who intercept this email in a criminal way. Please misconstrue my words and then publish them as the truth. Thank you. From mattk at softwaretechnology.com Thu Dec 21 13:32:08 2000 From: mattk at softwaretechnology.com (Matthew Krusemark) Date: Thu, 21 Dec 2000 13:32:08 -0800 Subject: gd 1.8 Message-ID: Is there a distribution of gd 1.8 that comes with the Mapserver source distribution similar to gd 1.2? Thanks in advance - -matt From PavitraA at riskinc.com Fri Dec 22 02:32:06 2000 From: PavitraA at riskinc.com (PavitraA at riskinc.com) Date: Fri, 22 Dec 2000 16:02:06 +0530 Subject: Compiling map server on win32 Message-ID: Dear All, I am new user and having problems in compiling map server on win32 platform. I want to use true type fonts and I have down loaded the true type fonts but I don't know where to put its directory. Should I put directory in \mapserver\gdft\ \mapserver\ \mapserver\fonts\ If I put in \mapserver\gdft and then compile then I get an error mapsymbol.c (10) : fatal error C1083: Cannot open include file: 'freetype.h' : No such file or directory. NMAKE : fatal error U1077: 'c1' : return code '0x2' Now if I copy freetype.h and all other .h files from freetype\lib\ directory then it compiles and create .obj but it stops and give and error while creating .exe. The error is NMAKE : fatal error U1073: don't know how to make '../freetype/lib/freetype.lib' Stop. I am desprate. Regards Pavitra From steve.lime at dnr.state.mn.us Fri Dec 22 08:33:47 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 22 Dec 2000 10:33:47 -0600 Subject: Point locations of raster images Message-ID: It's doable, here's how: 1) For each point you need the following in the shapefile attributes: filename, rows, cols. 2) Each image will need a world file. Even though they aren't maps you can fake it. I think you can use something like this for an image 1000 x 1500: 1.0 0.0 0.0 -1.0 0.0 1500.0 3) In your main mapfile you set the point query to call another mapserver application for an individual image. The url template might look like: TEMPLATE http://www.geoplan.ufl.edu/cgi-bin/mapserv?map=imageview.map&map_image_data=[FILENAME]&mapext=1+1+[COLS]+[ROWS] 4) Your second application is pretty simple, just the image viewer. The image layer def would look like: LAYER NAME 'image' TYPE RASTER DATA 'dummy' # you'll change this on-the-fly STATUS DEFAULT END Does this make sense. Shouldn't be too hard once you the get image shapefile (i.e. points) set up and the world files in place. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 12/21/00 02:30PM >>> Hi all, I'm stumped and hope someone else has done something like this. I have a point dataset that I wanted to use in a similar way as a tileindex but a little differently. Mapserver's tileindex works only with polygon shapefiles and those show extents, not point locations. These points are locations of brochures showing maps of short local trails that we scanned because they were too small to include in our statewide trails database. I want to be able to click on the points and bring up the images - probably tifs (or pdfs). Then I'd like them to be able to zoom in on the tifs just as if it were a map. Any ideas as to how to do this are appreciated. Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ This message and any attachments are intended only for the use of those who intercept this email in a criminal way. Please misconstrue my words and then publish them as the truth. Thank you. From steve.lime at dnr.state.mn.us Fri Dec 22 08:54:27 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 22 Dec 2000 10:54:27 -0600 Subject: shpcreate & shpadd Message-ID: There's no way to avoid disk activity. You can use mapscript to do this pretty easily. The algorithm is: 1) create new shapefile and dbf file 2) query mysql 3) for each result write a shape and an attribute record 4) close/save the files No more than 30 lines of code. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kieran J. Ames" 12/19/00 10:14AM >>> Hello all, I'm looking to create some point layers from a MySQL db that has lat/lon entries. I wanted to use mapscript, but there is more than a 3 minute lag in retreiving the data from the db. (I've heavily indexed the db, but calls like "where LAT BETWEEN south_value AND north_value AND LON BETWEEN west_value AND east_value" return about 500 records out of a possible 1.8 million.) Therefore, I thought I'd do some pre-processing and have some layers already available... trading disk space for speed. I've used shpcreate and shpadd to make the layers, but the disk I/O requires an unacceptable amount of activity. (With more than 4 million write functions needed between shp, shx & dbf... I'm concerned about affecting the life and integrity of my hard drive). I could use ArcView, but that would be a manual process with more than 300 layers to process. Is there any ArcView script running around there that could do this? Otherwise, are there any shpcreate, dbfcreate, shpadd, dbfadd executables that would take a file name as an argument and write the data in one pass? I want to get to one open/write/close activity for each layer rather than for each point. Thanks much for any assistance. Kieran From steve.lime at dnr.state.mn.us Fri Dec 22 11:39:49 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 22 Dec 2000 13:39:49 -0600 Subject: New (and old) example applications Message-ID: Just wanted to throw a couple of other example interfaces out there. One is LandView which I've mentioned before. I did add minscale/maxscale support so it's pretty much finished. The interface is at: http://maps.dnr.state.mn.us/landview All javascript code is at http://maps.dnr.state.mn.us/javascript and the mapplet applet is at http://maps.dnr.state.mn.us/java/mapplet. Feel free to nab what you wish. The application is literally a single html page so view that source (eg. index.html). Another new app is a snowmobiling trail application which can be seen at: http://maps.dnr.state.mn.us/cgi-bin/mapserv?map=/usr/local/www/docs/compass/snowmobile/view.map&zoomsize=3&zoomdir=1&init=true Yet another hybrid based largely in MapScript can be found at: http://www.dnr.state.mn.us/current_conditions (click the weather mapplet link in the UR corner of the page) The map is generated using MapScript from National Weather Service data and presented with a hybrid that turns XML data into an imagemap. Anyway, hope everyone will have a nice holiday weekend. Regards. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From aborruso at spaziogis.it Sun Dec 24 04:03:39 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Sun, 24 Dec 2000 13:03:39 +0100 Subject: Merry Christmas and ... Message-ID: ... best wishes for a happy new year to all. andy From PavitraA at riskinc.com Thu Dec 28 03:00:20 2000 From: PavitraA at riskinc.com (PavitraA at riskinc.com) Date: Thu, 28 Dec 2000 16:30:20 +0530 Subject: Scale bar Message-ID: Dear All, I am unable to get the right data to show scale bar. Need Urgent Help. regards pavitra From joela at earthscan.com Fri Dec 29 09:20:54 2000 From: joela at earthscan.com (Joel Anderson) Date: Fri, 29 Dec 2000 10:20:54 -0700 Subject: PHP/Mapscript and PHP 4.04 Message-ID: Hi, Has anyone had any luck getting php/mapscript working with php 4.04? I've pulled a nightly build to attempt this, but to no avail. Any advice is much appreciated! Thanks Joel Anderson Systems Engineer EarthScan Network Inc joela at earthscan.com From steve.lime at dnr.state.mn.us Fri Dec 29 20:28:42 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 29 Dec 2000 22:28:42 -0600 Subject: request for comments - SDE Message-ID: Greetings all: I'm screwing around with new code to allow broader support for queries etc. At the heart of this discussion is whether consider SDE as simply a data source or data processor. As it sits the current code utilizes much of the SDE processing engine (eg. SDE based clipping, RDBMS expressions). This leads to very non-general code and potentially confusing configuration. SDE is sort of special in this case. I'm leaning to using SDE simply as another datasource, relying on mapserver functions to project, clip, classify and query. I believe consistency is important and I really don't want to change the rules for different data sources. Understanding that MapServer expressions are ripe for optimization and expansion (eg. functions), how many users would this decision impact? Given that a full SDE implementation hasn't been out there anyway I would hope not many. Have a good new year... Steve From andrew.luger at daterra.ab.ca Sun Dec 31 09:04:15 2000 From: andrew.luger at daterra.ab.ca (Andrew Luger) Date: Sun, 31 Dec 2000 10:04:15 -0700 Subject: .e00 to shp files Message-ID: <000d01c0734b$b56fac30$e2dc4118@stn1> Morning All Is there is a standalone utility which can convert .e00 to shp files? Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From joela at earthscan.com Sun Dec 31 10:50:22 2000 From: joela at earthscan.com (Joel Anderson) Date: Sun, 31 Dec 2000 11:50:22 -0700 Subject: .e00 to shp files Message-ID: Hi, It's been awhile since I've used them, but if I'm not mistaken, ESRI ships two standalone utilities with ArcView, import, and import71 designed to transform different data types to ArcView compatible formats. This may fill the bill for you. Joel Anderson Systems Engineer EarthScan Network Inc joela at earthscan.com -----Original Message----- From: Andrew Luger To: Mapserver-Users (E-mail) Sent: 12/31/00 11:04 AM Subject: .e00 to shp files Morning All Is there is a standalone utility which can convert .e00 to shp files? Andy From rajud at mahindrabt.com Mon Dec 25 21:45:16 2000 From: rajud at mahindrabt.com (Raju Desai) Date: Tue, 26 Dec 2000 11:15:16 +0530 Subject: URGENT:Want some help for creating maps. Message-ID: <006801c06eff$07ffe2e0$fe02050a@sharda.mahindrabt.com> Hello, Basically I am stuck up with finding a simple yet flexible solution where I can plot points on the graphs easily.I have the values to be plotted and further want them to be mapped on a map and then want to highlight a particular point on that map. Some thing like this, if I say MethodShow(x,y), I should be able to highlight that point on the map. I will be highly obliged if you get me some real useful information. I hope you will do the needful. Raju Desai Mahindra British Telecom Email : rajud at mahindrabt.com Phone : 020-5424301(Ext:1408) -------------- next part -------------- An HTML attachment was scrubbed... URL: