From dlowther@ou.edu Sat Mar 1 00:06:31 2003 From: dlowther@ou.edu (Lowther, David W) Date: Fri, 28 Feb 2003 18:06:31 -0600 Subject: [Mapserver-users] Site Demo / Critique Message-ID: Dan, Thanks for the kinds words and the bugs. Do you get that error still? The line was commented out when I got to it, but someone here may have beaten me to the punch. I haven't been able to figure out how to keep mapplet from allowing a box at any time, but I also haven't spent any time on it as we are trying to get off the java app and into DHTML - phase next. We should be able to deal with it there. Probably should reign that legend width in... As far as the label check goes, it comes as a result of a deep homage I have paid to the HTML Legend supreme being(s). And, I am using the legend_order strictly to make sure that my labels directly follow my layers. That way when I come around to the label I have left the TD open. I also make sure that my label layers are named the same as my features like roads and roads_anno. Since I write the checkbox with the feature. I have also included metadata like NoLabels for the feature layers that don't have any labels. I did the same thing for the ID (NoID). One thing that sure would make HTML Legends easier is the inclusion of an [else] / [elseif] tag. Maybe I should file a feature request. Dave -----Original Message----- From: Martin, Daniel To: 'Lowther, David W'; Mapserver-Users (mapserver-users@lists.gis.umn.edu) Sent: 2/28/03 5:39 PM Subject: RE: [Mapserver-users] Site Demo / Critique Looks good. I like the interface you've built, and I love the many, many options you offer. I also like the label checkbox. I'm not even quite sure how to do that (with pure-CGI) but I'd like to know. Problems: 1) IE 5.5 is reporting "'parent.legend.document.mapserv.map_gradysqlRoads_data' is null or not an object." in this line: parent.legend.document.mapserv.map_gradysqlRoads_data.value=top.document .Master.map_gradysqlRoads_data.value; 2) In a very large window the checkbox legend area expands with the window...probably in a way you don't intend. It ends up putting the right set of checkboxes quite far to the right. 3) It wasn't quite obvious to me what the radio buttons were for. Eventually I figured out they control the query layer. 4) Query mode allows you to draw a box, but the query fails (perhaps it should be using nquery when a rectangle is drawn?). -Dan Martin -----Original Message----- From: Lowther, David W [mailto:dlowther@ou.edu] Sent: Friday, February 28, 2003 3:33 PM To: Mapserver-Users (mapserver-users@lists.gis.umn.edu) Subject: [Mapserver-users] Site Demo / Critique List, Thanks to all your help over the past few months we're in the final stages of testing our first large Mapserver effort. Please offer your comments / critique of the following site: http://129.15.172.20/okstatedemo.htm Thanks, David Lowther Software Engineer GEO Information Systems University of Oklahoma dlowther@ou.edu (405) 325-3131 http://www.geo.ou.edu From gerry.creager@tamu.edu Sat Mar 1 13:57:59 2003 From: gerry.creager@tamu.edu (Gerry Creager N5JXS) Date: Sat, 01 Mar 2003 07:57:59 -0600 Subject: [Mapserver-users] 3.7 implementation problems? Message-ID: <3E60BC67.5080606@tamu.edu> Just fired up a new implementation of 3.7 with RH8, on a new system. It was built with the excellent instructions in the Wiki. The only problems I encountered there were when I didn't read everything. Now, however, when I try to start some of the testing, I get the following error: getInteger(): Symbol definition error. (STATUS):(160) I'm lost. And open to suggestions. I can track it down if I can get a starting point. Thanks! gerry -- Gerry Creager -- gerry.creager@tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From woodbri@swoodbridge.com Sat Mar 1 14:06:44 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Sat, 01 Mar 2003 09:06:44 -0500 Subject: [Mapserver-users] 3.7 implementation problems? In-Reply-To: <3E60BC67.5080606@tamu.edu> Message-ID: <3E607824.24392.1BD2E7DE@localhost> Gerry, Only a guess, but it sounds like it might be an error in your mapfile of symbol definition file. Look for the keyword "STATUS" around line 160 in those files. and see what you find. -Steve W. On 1 Mar 2003 at 7:57, Gerry Creager N5JXS wrote: > Just fired up a new implementation of 3.7 with RH8, on a new system. > It was built with the excellent instructions in the Wiki. The only > problems I encountered there were when I didn't read everything. > > Now, however, when I try to start some of the testing, I get the > following error: > > getInteger(): Symbol definition error. (STATUS):(160) > > I'm lost. And open to suggestions. I can track it down if I can get > a starting point. > > Thanks! > gerry > -- > Gerry Creager -- gerry.creager@tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From stepan.kafka@centrum.cz Sat Mar 1 14:40:01 2003 From: stepan.kafka@centrum.cz (Stepan Kafka) Date: Sat, 1 Mar 2003 15:40:01 +0100 Subject: [Mapserver-users] 3.7 implementation problems? In-Reply-To: <3E60BC67.5080606@tamu.edu> Message-ID: <000801c2e000$70c81da0$e64de4c2@HSGIS> What do you have on the row above this one with status? There is probably missing parameter so the mapserver tries to interpret status instead it. Stepan Kafka > -----Původní zpráva----- > Od: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]za uživatele Gerry > Creager N5JXS > Odesláno: 1. března 2003 14:58 > Komu: mapserver-users@lists.gis.umn.edu > Předmět: [Mapserver-users] 3.7 implementation problems? > > > Just fired up a new implementation of 3.7 with RH8, on a new system. It > was built with the excellent instructions in the Wiki. The only > problems I encountered there were when I didn't read everything. > > Now, however, when I try to start some of the testing, I get the > following error: > > getInteger(): Symbol definition error. (STATUS):(160) > > I'm lost. And open to suggestions. I can track it down if I can get a > starting point. > > Thanks! > gerry > -- > Gerry Creager -- gerry.creager@tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From tbartlett@dddd.com.au Sun Mar 2 03:01:00 2003 From: tbartlett@dddd.com.au (Thomas Bartlett) Date: Sun, 2 Mar 2003 14:01:00 +1100 Subject: [Mapserver-users] Site Demo / Critique References: Message-ID: <003801c2e067$f51f07a0$1701a8c0@dddd.com.au> Dave, The drag box can be turned on and off via the javascript command OFF = document.mapplet.boxoff(); ON = document.mapplet.boxon(); Really like the site ! ----- Original Message ----- From: "Lowther, David W" To: "'Martin, Daniel '" ; "Lowther, David W" ; Sent: Saturday, March 01, 2003 11:06 AM Subject: RE: [Mapserver-users] Site Demo / Critique > Dan, > > Thanks for the kinds words and the bugs. Do you get that error still? The > line was commented out when I got to it, but someone here may have beaten me > to the punch. > > I haven't been able to figure out how to keep mapplet from allowing a box at > any time, but I also haven't spent any time on it as we are trying to get > off the java app and into DHTML - phase next. We should be able to deal with > it there. > > Probably should reign that legend width in... > > As far as the label check goes, it comes as a result of a deep homage I have > paid to the HTML Legend supreme being(s). And, I am using the legend_order > strictly to make sure that my labels directly follow my layers. That way > when I come around to the label I have left the TD open. I also make sure > that my label layers are named the same as my features like roads and > roads_anno. Since I write the checkbox with the feature. I have also > included metadata like NoLabels for the feature layers that don't have any > labels. I did the same thing for the ID (NoID). One thing that sure would > make HTML Legends easier is the inclusion of an [else] / [elseif] tag. Maybe > I should file a feature request. > > Dave > > -----Original Message----- > From: Martin, Daniel > To: 'Lowther, David W'; Mapserver-Users (mapserver-users@lists.gis.umn.edu) > Sent: 2/28/03 5:39 PM > Subject: RE: [Mapserver-users] Site Demo / Critique > > Looks good. I like the interface you've built, and I love the many, > many options you offer. I also like the label checkbox. I'm not even > quite sure how to do that (with pure-CGI) but I'd like to know. > > Problems: > 1) IE 5.5 is reporting > "'parent.legend.document.mapserv.map_gradysqlRoads_data' is null or not > an object." in this line: > parent.legend.document.mapserv.map_gradysqlRoads_data.value=top.document > .Master.map_gradysqlRoads_data.value; > 2) In a very large window the checkbox legend area expands with the > window...probably in a way you don't intend. It ends up putting the > right set of checkboxes quite far to the right. > 3) It wasn't quite obvious to me what the radio buttons were for. > Eventually I figured out they control the query layer. > 4) Query mode allows you to draw a box, but the query fails (perhaps it > should be using nquery when a rectangle is drawn?). > > -Dan Martin > > > > -----Original Message----- > From: Lowther, David W [mailto:dlowther@ou.edu] > Sent: Friday, February 28, 2003 3:33 PM > To: Mapserver-Users (mapserver-users@lists.gis.umn.edu) > Subject: [Mapserver-users] Site Demo / Critique > > > > List, > > Thanks to all your help over the past few months we're in the final > stages of testing our first large Mapserver effort. > > Please offer your comments / critique of the following site: > > > http://129.15.172.20/okstatedemo.htm > > Thanks, > > David Lowther > Software Engineer > GEO Information Systems > University of Oklahoma > dlowther@ou.edu > (405) 325-3131 > http://www.geo.ou.edu > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From tbartlett@dddd.com.au Sun Mar 2 03:02:28 2003 From: tbartlett@dddd.com.au (Thomas Bartlett) Date: Sun, 2 Mar 2003 14:02:28 +1100 Subject: [Mapserver-users] Map Size Message-ID: <003c01c2e068$28c70f30$1701a8c0@dddd.com.au> This is a multi-part message in MIME format. ------=_NextPart_000_0039_01C2E0C4.5C247460 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable G'day All, Just a quick question about how to allow users to change the size of the = image (the size of the map). eg 500 x 400, 600 x 450 or 700 x 500. The size of the image returned by MapServer is determined in the .map = file so do you just have 3 different maps files for each image size ?? = They would be identical in every other respect? I'm using Mapplet, on IIS on an XP machine !! Thomas Bartlett -------------------------------------------------------------------------= --------------------------------- GIS Technician Digital (Digest) Data Design Pty Ltd=20 Military GIS Professionals and Consultants=20 http://www.dddd.com.au/=20 Telephone: 02 6286 9555=20 Facsimile: 02 6286 9888=20 Postal : PO Box 683 MAWSON ACT 2607 ------=_NextPart_000_0039_01C2E0C4.5C247460 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
G'day All,
Just a quick question about how to allow users to = change the=20 size of the image (the size of the map).  eg 500 x 400, 600 x 450 = or 700 x=20 500.
 
The size of the image returned by MapServer is = determined in=20 the .map file so do you just have 3 different maps files for each image = size ??=20 They would be identical in every other respect?
 
I'm using Mapplet, on IIS on an XP machine = !!
 
Thomas=20 Bartlett
-------------------------------------------------------------= ---------------------------------------------
GIS=20 Technician
Digital (Digest) Data Design Pty Ltd
Military GIS=20 Professionals and Consultants
http://www.dddd.com.au/ =
Telephone: 02=20 6286 9555
Facsimile: 02 6286 9888
Postal : PO Box 683 = MAWSON =20 ACT  2607
------=_NextPart_000_0039_01C2E0C4.5C247460-- From gerry.creager@tamu.edu Sun Mar 2 07:49:29 2003 From: gerry.creager@tamu.edu (Gerry Creager N5JXS) Date: Sun, 02 Mar 2003 01:49:29 -0600 Subject: [Mapserver-users] perl-mapscript compilation error... did I miss something in the archives? Message-ID: <3E61B789.4090309@tamu.edu> MS 3.7, Linux RH8.0, Kernel 2.4.18-24, perl 5.8. I do a 'perl Makefile.PL' followed by a 'make' and here's what I get... [root@vne-dhcp-047 perl]# make Running Mkbootstrap for mapscript () chmod 644 mapscript.bs rm -f blib/arch/auto/mapscript/mapscript.so LD_RUN_PATH="/root/mapserver-3.7:/usr/local/lib:/usr/lib:/lib" gcc -shared -L/usr/local/lib mapscript_wrap.o -o blib/arch/auto/mapscript/mapscript.so -L/root/mapserver-3.7 -lmap -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 -lming -L/usr/local/lib -lcurl -lz -lssl -lcrypto -ldl -lz -lpthread -lm gcc: mapscript_wrap.o: No such file or directory make: *** [blib/arch/auto/mapscript/mapscript.so] Error 1 Where did I step off the cliff? TIA, gerry -- Gerry Creager -- gerry.creager@tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From millardymecki@sympatico.ca Sun Mar 2 13:28:58 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Sun, 2 Mar 2003 08:28:58 -0500 Subject: [Mapserver-users] mapserver Message-ID: <000d01c2e0bf$ae87b5a0$f098fea9@pauls> This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C2E095.C5453030 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm creating and populateing a new shp and was wondering how to go = about setting the extents for the newly created shp, or if it's = possible? thx, Paul $shpFile =3D ms_newShapeFileObj( $shpFname, MS_SHP_POINT); ------=_NextPart_000_000A_01C2E095.C5453030 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
  I'm creating and = populateing a new shp=20 and was wondering how to go about setting the extents for the newly = created shp,=20 or if it's possible?
thx,
Paul
 

$shpFile =3D ms_newShapeFileObj( $shpFname,=20 MS_SHP_POINT);

------=_NextPart_000_000A_01C2E095.C5453030-- From woodbri@swoodbridge.com Sun Mar 2 13:51:42 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Sun, 02 Mar 2003 08:51:42 -0500 Subject: [Mapserver-users] mapserver In-Reply-To: <000d01c2e0bf$ae87b5a0$f098fea9@pauls> Message-ID: <3E61C61E.3680.20EB83B9@localhost> It is not required, the shapelib software keeps track of the data you enter and sets the extents appropriately. -Steve W On 2 Mar 2003 at 8:28, Paul Dymecki wrote: > Hi, > I'm creating and populateing a new shp and was wondering how to go > about setting the extents for the newly created shp, or if it's > possible? > thx, > Paul > > $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_POINT); > > From dlowther@ou.edu Sun Mar 2 13:53:50 2003 From: dlowther@ou.edu (Lowther, David W) Date: Sun, 2 Mar 2003 07:53:50 -0600 Subject: [Mapserver-users] Map Size Message-ID: this is basically what I am using... this may appear a bit convoluted, but its yanked from a couple of different places. the first half is what i do when someone clicks the mapsize - and then i refresh the map (which is the second half). function sizemap(x,y){ msForm=(set to mapserver form); msForm.mapsize.value= x + " " + y; msForm.centerx.value = x/2; msForm.centery.value = y/2; msForm.mode.value="browse"; msForm.imgxy.value= msForm.centerx.value + ' ' + msForm.centery.value; msForm.imgbox.value="-1 -1 -1 -1"; msForm.zoom.value=0; msForm.submit(); } hope that helps, Dave -----Original Message----- From: Thomas Bartlett To: mapserver-users@lists.gis.umn.edu Sent: 3/1/03 9:02 PM Subject: [Mapserver-users] Map Size G'day All, Just a quick question about how to allow users to change the size of the image (the size of the map). eg 500 x 400, 600 x 450 or 700 x 500. The size of the image returned by MapServer is determined in the .map file so do you just have 3 different maps files for each image size ?? They would be identical in every other respect? I'm using Mapplet, on IIS on an XP machine !! Thomas Bartlett ------------------------------------------------------------------------ ---------------------------------- GIS Technician Digital (Digest) Data Design Pty Ltd Military GIS Professionals and Consultants http://www.dddd.com.au/ Telephone: 02 6286 9555 Facsimile: 02 6286 9888 Postal : PO Box 683 MAWSON ACT 2607 From dlowther@ou.edu Sun Mar 2 14:11:35 2003 From: dlowther@ou.edu (Lowther, David W) Date: Sun, 2 Mar 2003 08:11:35 -0600 Subject: [Mapserver-users] Mapplet Boxon Boxoff WAS: SIte Critque... Message-ID: Thomas, It seems like every time I set boxon or boxoff (wow, thats a little bit Karate Kid..) it triggers mapplet_apply, but doesn't affect the boxness. Tips? Dave -----Original Message----- From: Thomas Bartlett To: mapserver-users@lists.gis.umn.edu Sent: 3/1/03 9:01 PM Subject: Re: [Mapserver-users] Site Demo / Critique Dave, The drag box can be turned on and off via the javascript command OFF = document.mapplet.boxoff(); ON = document.mapplet.boxon(); Really like the site ! ----- Original Message ----- From: "Lowther, David W" To: "'Martin, Daniel '" ; "Lowther, David W" ; Sent: Saturday, March 01, 2003 11:06 AM Subject: RE: [Mapserver-users] Site Demo / Critique > Dan, > > Thanks for the kinds words and the bugs. Do you get that error still? The > line was commented out when I got to it, but someone here may have beaten me > to the punch. > > I haven't been able to figure out how to keep mapplet from allowing a box at > any time, but I also haven't spent any time on it as we are trying to get > off the java app and into DHTML - phase next. We should be able to deal with > it there. > > Probably should reign that legend width in... > > As far as the label check goes, it comes as a result of a deep homage I have > paid to the HTML Legend supreme being(s). And, I am using the legend_order > strictly to make sure that my labels directly follow my layers. That way > when I come around to the label I have left the TD open. I also make sure > that my label layers are named the same as my features like roads and > roads_anno. Since I write the checkbox with the feature. I have also > included metadata like NoLabels for the feature layers that don't have any > labels. I did the same thing for the ID (NoID). One thing that sure would > make HTML Legends easier is the inclusion of an [else] / [elseif] tag. Maybe > I should file a feature request. > > Dave > > -----Original Message----- > From: Martin, Daniel > To: 'Lowther, David W'; Mapserver-Users (mapserver-users@lists.gis.umn.edu) > Sent: 2/28/03 5:39 PM > Subject: RE: [Mapserver-users] Site Demo / Critique > > Looks good. I like the interface you've built, and I love the many, > many options you offer. I also like the label checkbox. I'm not even > quite sure how to do that (with pure-CGI) but I'd like to know. > > Problems: > 1) IE 5.5 is reporting > "'parent.legend.document.mapserv.map_gradysqlRoads_data' is null or not > an object." in this line: > parent.legend.document.mapserv.map_gradysqlRoads_data.value=top.document > .Master.map_gradysqlRoads_data.value; > 2) In a very large window the checkbox legend area expands with the > window...probably in a way you don't intend. It ends up putting the > right set of checkboxes quite far to the right. > 3) It wasn't quite obvious to me what the radio buttons were for. > Eventually I figured out they control the query layer. > 4) Query mode allows you to draw a box, but the query fails (perhaps it > should be using nquery when a rectangle is drawn?). > > -Dan Martin > > > > -----Original Message----- > From: Lowther, David W [mailto:dlowther@ou.edu] > Sent: Friday, February 28, 2003 3:33 PM > To: Mapserver-Users (mapserver-users@lists.gis.umn.edu) > Subject: [Mapserver-users] Site Demo / Critique > > > > List, > > Thanks to all your help over the past few months we're in the final > stages of testing our first large Mapserver effort. > > Please offer your comments / critique of the following site: > > > http://129.15.172.20/okstatedemo.htm > > Thanks, > > David Lowther > Software Engineer > GEO Information Systems > University of Oklahoma > dlowther@ou.edu > (405) 325-3131 > http://www.geo.ou.edu > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From woodbri@swoodbridge.com Sun Mar 2 15:05:15 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Sun, 02 Mar 2003 10:05:15 -0500 Subject: [Mapserver-users] mapserver In-Reply-To: <002501c2e0c9$757a1aa0$f098fea9@pauls> Message-ID: <3E61D75B.8898.212ED87B@localhost> Paul, I'm don't think so. The other thing you could try doing is to save the shapefile to disk and check it shpdump or shpinfo utilities that come with either shapelib or gdal. I think there are some examples on wiki or in the archives. -Steve On 2 Mar 2003 at 9:38, Paul Dymecki wrote: > Hi Steve, > Does the ShpFileObj have to know about the map that being added > toat all? > thx, > Paul > ----- Original Message ----- > From: > To: "Paul Dymecki" ; "MapServer List > EE-mail"" Sent: Sunday, March 02, > 2003 8:51 AM Subject: Re: [Mapserver-users] mapserver > > > > It is not required, the shapelib software keeps track of the data > > you enter and sets the extents appropriately. > > > > -Steve W > > > > On 2 Mar 2003 at 8:28, Paul Dymecki wrote: > > > > > Hi, > > > I'm creating and populateing a new shp and was wondering how to > > > go about setting the extents for the newly created shp, or if > > > it's possible? > > > thx, > > > Paul > > > > > > $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_POINT); > > > > > > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From kames@keyspanenergy.com Sun Mar 2 17:35:05 2003 From: kames@keyspanenergy.com (Kieran J. Ames) Date: Sun, 02 Mar 2003 12:35:05 -0500 Subject: [Mapserver-users] SHPTREE Odd behavior Message-ID: <3E6240C9.24CFF803@keyspanenergy.com> I've been experimenting with shptree and seeing remarkable performance boosts (on point and line shapefiles). However, I've found some odd behavior now with polygons. I'm rendering polygons that take quite a while to come up (mapserver cgi). I then use shptree and get the following error message: msDrawShape(): General error message. Only polygon shapes can be drawn using a POLYGON layer definition. If I then delete the associated .qix files, the map again renders. I'm using mapserver MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=SHAPEFILE SHPTREE is dated 11/01/00 09:48a 131,122 bytes ...appreciate any help. Kieran From millardymecki@sympatico.ca Sun Mar 2 17:48:54 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Sun, 2 Mar 2003 12:48:54 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection Message-ID: <005e01c2e0e3$fe4cf6d0$f098fea9@pauls> This is a multi-part message in MIME format. ------=_NextPart_000_005B_01C2E0BA.1519DAB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=20 I have a php script that pulls a bunch of lat/longs and attribute data = from a database and produces a shp file. I was wondering if anyone can see a flaw with the code below? It's = produceing reasonable(at least it looks to me)output but the shp file = produced is not displaying in mapserver, thx, Paul function createPoint( $x, $y, $def ) { // Create shape =20 =20 $dlat =3D doubleval($y); $dlon =3D doubleval($x); =20 $projoutobj=3Dms_newprojectionObj("proj=3Dlcc,ellps=3DGRS80,lat_0=3D49,lo= n_0=3D95,lat_1=3D49,lat_1=3D77"); $projinobj =3D = ms_newprojectionObj("proj=3Dlatlong,ellps=3DGRS80,datum=3DNAD83"); =20 $oPoint =3D ms_newPointObj(); $oLine =3D ms_newLineObj(); $oShp =3D ms_newShapeObj(MS_SHAPE_POINT); $oPoint->setXY($dlon,$dlat); =20 $oPoint =3D $oPoint->project($projinobj, $projoutobj); =20 $oLine -> add($oPoint); =20 $oShp->add($oLine); $this->shpFile->addShape( $oShp); =20 =20 // Write attribute record if( dbase_add_record($this->dbfFile, $def) =3D=3D FALSE ) { $message =3D "Adding a record to dbase failed"; =20 $this->shpFile->free(); $oPoint->free(); return FALSE; } =20 $oPoint->free(); $oShp->free(); $oLine->free(); echo 'got here create 2'; return TRUE; } =20 ------=_NextPart_000_005B_01C2E0BA.1519DAB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
I have a php script that pulls a bunch = of lat/longs=20 and attribute data from a database and produces a shp file.
I was wondering if anyone can see a = flaw with the=20 code below?  It's produceing reasonable(at least it looks to = me)output but=20 the shp file produced is not displaying in mapserver,
thx,
Paul
 

function = createPoint( $x, $y,=20 $def )

     =20 {

      // = Create=20 shape

    =20

 

$dlat =3D=20 doubleval($y);

           =20 $dlon =3D doubleval($x);

 

$projoutobj=3Dms_newprojectionObj("proj=3Dlcc,ellps=3DGRS80,lat_= 0=3D49,lon_0=3D95,lat_1=3D49,lat_1=3D77");

$projinobj =3D=20 ms_newprojectionObj("proj=3Dlatlong,ellps=3DGRS80,datum=3DNAD83");

 

         $oPoint =3D=20 ms_newPointObj();

        =20 $oLine =3D ms_newLineObj();

        =20 $oShp =3D = ms_newShapeObj(MS_SHAPE_POINT);

        =20 $oPoint->setXY($dlon,$dlat);

       =20

        =20 $oPoint =3D $oPoint->project($projinobj,=20 $projoutobj);

        =20

        =20 $oLine -> add($oPoint);

 

        =20 $oShp->add($oLine);

         = $this->shpFile->addShape(=20 $oShp);

    =20

 

         // Write attribute=20 record

         if(=20 dbase_add_record($this->dbfFile, $def) =3D=3D FALSE=20 )

         = {

           =20  $message =3D = "Adding a record=20 to dbase failed"; =20

           =20  $this->shpFile->free();<= /P>

           =20  $oPoint->free();

           =20  return=20 FALSE;

         = }

 

        =20 $oPoint->free();

        =20 $oShp->free();

        =20 $oLine->free();

         =20 echo 'got here create 2';

         return=20 TRUE;

       }

 

------=_NextPart_000_005B_01C2E0BA.1519DAB0-- From john.hagstrand@interageresearch.com Sun Mar 2 19:01:21 2003 From: john.hagstrand@interageresearch.com (John Hagstrand) Date: Sun, 02 Mar 2003 13:01:21 -0600 Subject: [Mapserver-users] shapefile programming Message-ID: <4.3.2.7.0.20030301134410.01617368@pop.registeredsite.com> Hi, I need a program or programmer to manipulate a Shapefile. I want to pull the bounding box out of the SHP file and put it in the DBF file. You see what I mean? I want to add four columns to the DBF file: north, south, east and west. And I want to populate those four fields to indicate the boundary of each object. Do you know of a utility program that will do this? If not, do you know a programmer who will write me such a utility program for a fee? Thanks John ------------------------------------------------- John Hagstrand Interage Research, Inc. 847 838 5371 Software Development Consulting for Internet Content Management We make knowledge accessible, useful, and relevant for everyone. http://www.interageresearch.com From millardymecki@sympatico.ca Sun Mar 2 19:40:08 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Sun, 2 Mar 2003 14:40:08 -0500 Subject: [Mapserver-users] mapserver References: <3E61D75B.8898.212ED87B@localhost> Message-ID: <007b01c2e0f3$88d1f0d0$f098fea9@pauls> This is a multi-part message in MIME format. ------=_NextPart_000_0078_01C2E0C9.9F8C5E20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi Steve, Here is the output of running a shpdump on the files(projected and nonprojected). Would you know off hand if they look ok? thx, Paul ----- Original Message ----- From: To: "Paul Dymecki" ; Sent: Sunday, March 02, 2003 10:05 AM Subject: Re: [Mapserver-users] mapserver > Paul, > > I'm don't think so. The other thing you could try doing is to save > the shapefile to disk and check it shpdump or shpinfo utilities that > come with either shapelib or gdal. > > I think there are some examples on wiki or in the archives. > > -Steve > > On 2 Mar 2003 at 9:38, Paul Dymecki wrote: > > > Hi Steve, > > Does the ShpFileObj have to know about the map that being added > > toat all? > > thx, > > Paul > > ----- Original Message ----- > > From: > > To: "Paul Dymecki" ; "MapServer List > > EE-mail"" Sent: Sunday, March 02, > > 2003 8:51 AM Subject: Re: [Mapserver-users] mapserver > > > > > > > It is not required, the shapelib software keeps track of the data > > > you enter and sets the extents appropriately. > > > > > > -Steve W > > > > > > On 2 Mar 2003 at 8:28, Paul Dymecki wrote: > > > > > > > Hi, > > > > I'm creating and populateing a new shp and was wondering how to > > > > go about setting the extents for the newly created shp, or if > > > > it's possible? > > > > thx, > > > > Paul > > > > > > > > $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_POINT); > > > > > > > > > > > > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > ------=_NextPart_000_0078_01C2E0C9.9F8C5E20 Content-Type: application/octet-stream; name="siteslcc.out" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="siteslcc.out" Shapefile Type: Point # of Shapes: 73 File Bounds: (-2043769.460, -690420.442,0,0) to ( 2981035.067, 9527537.619,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:(-1453731.329, 416527.598, 0, 0) to (-1453731.329, 416527.598, 0, 0) (-1453731.329, 416527.598, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 1070803.406, -218197.336, 0, 0) to ( 1070803.406, -218197.336, 0, 0) ( 1070803.406, -218197.336, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( -500207.727, 2252344.604, 0, 0) to ( -500207.727, 2252344.604, 0, 0) ( -500207.727, 2252344.604, 0, 0) Shape:3 (Point) nVertices=1, nParts=0 Bounds:( -500207.727, 2252344.604, 0, 0) to ( -500207.727, 2252344.604, 0, 0) ( -500207.727, 2252344.604, 0, 0) Shape:4 (Point) nVertices=1, nParts=0 Bounds:(-1135244.272, 639860.305, 0, 0) to (-1135244.272, 639860.305, 0, 0) (-1135244.272, 639860.305, 0, 0) Shape:5 (Point) nVertices=1, nParts=0 Bounds:(-1374561.314, 2633847.764, 0, 0) to (-1374561.314, 2633847.764, 0, 0) (-1374561.314, 2633847.764, 0, 0) Shape:6 (Point) nVertices=1, nParts=0 Bounds:( -789512.520, 564514.746, 0, 0) to ( -789512.520, 564514.746, 0, 0) ( -789512.520, 564514.746, 0, 0) Shape:7 (Point) nVertices=1, nParts=0 Bounds:(-1188793.113, 675983.687, 0, 0) to (-1188793.113, 675983.687, 0, 0) (-1188793.113, 675983.687, 0, 0) Shape:8 (Point) nVertices=1, nParts=0 Bounds:(-1726075.139, 367831.673, 0, 0) to (-1726075.139, 367831.673, 0, 0) (-1726075.139, 367831.673, 0, 0) Shape:9 (Point) nVertices=1, nParts=0 Bounds:(-1736613.039, 881574.586, 0, 0) to (-1736613.039, 881574.586, 0, 0) (-1736613.039, 881574.586, 0, 0) Shape:10 (Point) nVertices=1, nParts=0 Bounds:( 356896.889, 3704720.280, 0, 0) to ( 356896.889, 3704720.280, 0, 0) ( 356896.889, 3704720.280, 0, 0) Shape:11 (Point) nVertices=1, nParts=0 Bounds:( 14809.536, 2770259.232, 0, 0) to ( 14809.536, 2770259.232, 0, 0) ( 14809.536, 2770259.232, 0, 0) Shape:12 (Point) nVertices=1, nParts=0 Bounds:( 478235.865, 2614657.827, 0, 0) to ( 478235.865, 2614657.827, 0, 0) ( 478235.865, 2614657.827, 0, 0) Shape:13 (Point) nVertices=1, nParts=0 Bounds:( 517335.494, 2257086.224, 0, 0) to ( 517335.494, 2257086.224, 0, 0) ( 517335.494, 2257086.224, 0, 0) Shape:14 (Point) nVertices=1, nParts=0 Bounds:( 1161849.844, 2284943.276, 0, 0) to ( 1161849.844, 2284943.276, 0, 0) ( 1161849.844, 2284943.276, 0, 0) Shape:15 (Point) nVertices=1, nParts=0 Bounds:(-1658559.000, 2680390.056, 0, 0) to (-1658559.000, 2680390.056, 0, 0) (-1658559.000, 2680390.056, 0, 0) Shape:16 (Point) nVertices=1, nParts=0 Bounds:( -754702.421, 1788618.493, 0, 0) to ( -754702.421, 1788618.493, 0, 0) ( -754702.421, 1788618.493, 0, 0) Shape:17 (Point) nVertices=1, nParts=0 Bounds:( -2358.278, 1654156.253, 0, 0) to ( -2358.278, 1654156.253, 0, 0) ( -2358.278, 1654156.253, 0, 0) Shape:18 (Point) nVertices=1, nParts=0 Bounds:( 1566525.234, 360114.299, 0, 0) to ( 1566525.234, 360114.299, 0, 0) ( 1566525.234, 360114.299, 0, 0) Shape:19 (Point) nVertices=1, nParts=0 Bounds:(-1251035.668, 219764.931, 0, 0) to (-1251035.668, 219764.931, 0, 0) (-1251035.668, 219764.931, 0, 0) Shape:20 (Point) nVertices=1, nParts=0 Bounds:(-1251035.668, 219764.931, 0, 0) to (-1251035.668, 219764.931, 0, 0) (-1251035.668, 219764.931, 0, 0) Shape:21 (Point) nVertices=1, nParts=0 Bounds:(-1028113.446, 161703.597, 0, 0) to (-1028113.446, 161703.597, 0, 0) (-1028113.446, 161703.597, 0, 0) Shape:22 (Point) nVertices=1, nParts=0 Bounds:( 101087.425, 62216.377, 0, 0) to ( 101087.425, 62216.377, 0, 0) ( 101087.425, 62216.377, 0, 0) Shape:23 (Point) nVertices=1, nParts=0 Bounds:( 1706952.261, 396011.084, 0, 0) to ( 1706952.261, 396011.084, 0, 0) ( 1706952.261, 396011.084, 0, 0) Shape:24 (Point) nVertices=1, nParts=0 Bounds:( -224662.422, 33247.790, 0, 0) to ( -224662.422, 33247.790, 0, 0) ( -224662.422, 33247.790, 0, 0) Shape:25 (Point) nVertices=1, nParts=0 Bounds:(-1947296.856, 446548.978, 0, 0) to (-1947296.856, 446548.978, 0, 0) (-1947296.856, 446548.978, 0, 0) Shape:26 (Point) nVertices=1, nParts=0 Bounds:(-1930081.307, 438624.274, 0, 0) to (-1930081.307, 438624.274, 0, 0) (-1930081.307, 438624.274, 0, 0) Shape:27 (Point) nVertices=1, nParts=0 Bounds:(-1874474.480, 411175.449, 0, 0) to (-1874474.480, 411175.449, 0, 0) (-1874474.480, 411175.449, 0, 0) Shape:28 (Point) nVertices=1, nParts=0 Bounds:( -890050.709, 93828.289, 0, 0) to ( -890050.709, 93828.289, 0, 0) ( -890050.709, 93828.289, 0, 0) Shape:29 (Point) nVertices=1, nParts=0 Bounds:(-1987041.866, 452871.578, 0, 0) to (-1987041.866, 452871.578, 0, 0) (-1987041.866, 452871.578, 0, 0) Shape:30 (Point) nVertices=1, nParts=0 Bounds:( -103771.200, 6718.361, 0, 0) to ( -103771.200, 6718.361, 0, 0) ( -103771.200, 6718.361, 0, 0) Shape:31 (Point) nVertices=1, nParts=0 Bounds:(-1334478.781, 201222.254, 0, 0) to (-1334478.781, 201222.254, 0, 0) (-1334478.781, 201222.254, 0, 0) Shape:32 (Point) nVertices=1, nParts=0 Bounds:( 1336994.719, -320552.427, 0, 0) to ( 1336994.719, -320552.427, 0, 0) ( 1336994.719, -320552.427, 0, 0) Shape:33 (Point) nVertices=1, nParts=0 Bounds:(-2013973.591, 394195.757, 0, 0) to (-2013973.591, 394195.757, 0, 0) (-2013973.591, 394195.757, 0, 0) Shape:34 (Point) nVertices=1, nParts=0 Bounds:( 268898.290, -52438.869, 0, 0) to ( 268898.290, -52438.869, 0, 0) ( 268898.290, -52438.869, 0, 0) Shape:35 (Point) nVertices=1, nParts=0 Bounds:( 2865022.637, 893529.328, 0, 0) to ( 2865022.637, 893529.328, 0, 0) ( 2865022.637, 893529.328, 0, 0) Shape:36 (Point) nVertices=1, nParts=0 Bounds:( 1166859.735, 65869.274, 0, 0) to ( 1166859.735, 65869.274, 0, 0) ( 1166859.735, 65869.274, 0, 0) Shape:37 (Point) nVertices=1, nParts=0 Bounds:( 1658054.851, 236917.231, 0, 0) to ( 1658054.851, 236917.231, 0, 0) ( 1658054.851, 236917.231, 0, 0) Shape:38 (Point) nVertices=1, nParts=0 Bounds:(-2043769.460, 371319.548, 0, 0) to (-2043769.460, 371319.548, 0, 0) (-2043769.460, 371319.548, 0, 0) Shape:39 (Point) nVertices=1, nParts=0 Bounds:( 702043.973, -41371.815, 0, 0) to ( 702043.973, -41371.815, 0, 0) ( 702043.973, -41371.815, 0, 0) Shape:40 (Point) nVertices=1, nParts=0 Bounds:( 1745322.828, 168089.225, 0, 0) to ( 1745322.828, 168089.225, 0, 0) ( 1745322.828, 168089.225, 0, 0) Shape:41 (Point) nVertices=1, nParts=0 Bounds:( 987667.274, -110787.820, 0, 0) to ( 987667.274, -110787.820, 0, 0) ( 987667.274, -110787.820, 0, 0) Shape:42 (Point) nVertices=1, nParts=0 Bounds:( 2981035.067, 799403.078, 0, 0) to ( 2981035.067, 799403.078, 0, 0) ( 2981035.067, 799403.078, 0, 0) Shape:43 (Point) nVertices=1, nParts=0 Bounds:( 819848.398, -150469.447, 0, 0) to ( 819848.398, -150469.447, 0, 0) ( 819848.398, -150469.447, 0, 0) Shape:44 (Point) nVertices=1, nParts=0 Bounds:( 1810364.526, 67195.321, 0, 0) to ( 1810364.526, 67195.321, 0, 0) ( 1810364.526, 67195.321, 0, 0) Shape:45 (Point) nVertices=1, nParts=0 Bounds:( 2270059.527, 275167.056, 0, 0) to ( 2270059.527, 275167.056, 0, 0) ( 2270059.527, 275167.056, 0, 0) Shape:46 (Point) nVertices=1, nParts=0 Bounds:( 1704752.460, 19723.922, 0, 0) to ( 1704752.460, 19723.922, 0, 0) ( 1704752.460, 19723.922, 0, 0) Shape:47 (Point) nVertices=1, nParts=0 Bounds:( 2360026.662, 289745.276, 0, 0) to ( 2360026.662, 289745.276, 0, 0) ( 2360026.662, 289745.276, 0, 0) Shape:48 (Point) nVertices=1, nParts=0 Bounds:( 1281047.601, -501748.807, 0, 0) to ( 1281047.601, -501748.807, 0, 0) ( 1281047.601, -501748.807, 0, 0) Shape:49 (Point) nVertices=1, nParts=0 Bounds:( 2293429.664, 145413.146, 0, 0) to ( 2293429.664, 145413.146, 0, 0) ( 2293429.664, 145413.146, 0, 0) Shape:50 (Point) nVertices=1, nParts=0 Bounds:( 1697652.924, -91814.262, 0, 0) to ( 1697652.924, -91814.262, 0, 0) ( 1697652.924, -91814.262, 0, 0) Shape:51 (Point) nVertices=1, nParts=0 Bounds:( 1304598.671, -246087.261, 0, 0) to ( 1304598.671, -246087.261, 0, 0) ( 1304598.671, -246087.261, 0, 0) Shape:52 (Point) nVertices=1, nParts=0 Bounds:( 1222937.858, -506463.580, 0, 0) to ( 1222937.858, -506463.580, 0, 0) ( 1222937.858, -506463.580, 0, 0) Shape:53 (Point) nVertices=1, nParts=0 Bounds:( 1081707.297, -316247.232, 0, 0) to ( 1081707.297, -316247.232, 0, 0) ( 1081707.297, -316247.232, 0, 0) Shape:54 (Point) nVertices=1, nParts=0 Bounds:( 1093264.418, -324132.717, 0, 0) to ( 1093264.418, -324132.717, 0, 0) ( 1093264.418, -324132.717, 0, 0) Shape:55 (Point) nVertices=1, nParts=0 Bounds:(-1456178.356, 2564896.419, 0, 0) to (-1456178.356, 2564896.419, 0, 0) (-1456178.356, 2564896.419, 0, 0) Shape:56 (Point) nVertices=1, nParts=0 Bounds:( 1301226.554, -264513.308, 0, 0) to ( 1301226.554, -264513.308, 0, 0) ( 1301226.554, -264513.308, 0, 0) Shape:57 (Point) nVertices=1, nParts=0 Bounds:( 2167364.086, 43506.173, 0, 0) to ( 2167364.086, 43506.173, 0, 0) ( 2167364.086, 43506.173, 0, 0) Shape:58 (Point) nVertices=1, nParts=0 Bounds:( 1507744.280, -297564.027, 0, 0) to ( 1507744.280, -297564.027, 0, 0) ( 1507744.280, -297564.027, 0, 0) Shape:59 (Point) nVertices=1, nParts=0 Bounds:( 2346913.436, 24066.343, 0, 0) to ( 2346913.436, 24066.343, 0, 0) ( 2346913.436, 24066.343, 0, 0) Shape:60 (Point) nVertices=1, nParts=0 Bounds:( 1356063.695, -360040.684, 0, 0) to ( 1356063.695, -360040.684, 0, 0) ( 1356063.695, -360040.684, 0, 0) Shape:61 (Point) nVertices=1, nParts=0 Bounds:( 1256261.793, -391820.288, 0, 0) to ( 1256261.793, -391820.288, 0, 0) ( 1256261.793, -391820.288, 0, 0) Shape:62 (Point) nVertices=1, nParts=0 Bounds:( 1223196.533, -436166.286, 0, 0) to ( 1223196.533, -436166.286, 0, 0) ( 1223196.533, -436166.286, 0, 0) Shape:63 (Point) nVertices=1, nParts=0 Bounds:( 1202946.058, -469850.704, 0, 0) to ( 1202946.058, -469850.704, 0, 0) ( 1202946.058, -469850.704, 0, 0) Shape:64 (Point) nVertices=1, nParts=0 Bounds:( 1162343.241, -595341.156, 0, 0) to ( 1162343.241, -595341.156, 0, 0) ( 1162343.241, -595341.156, 0, 0) Shape:65 (Point) nVertices=1, nParts=0 Bounds:( 1018711.081, -690420.442, 0, 0) to ( 1018711.081, -690420.442, 0, 0) ( 1018711.081, -690420.442, 0, 0) Shape:66 (Point) nVertices=1, nParts=0 Bounds:( 1494881.312, 1313130.809, 0, 0) to ( 1494881.312, 1313130.809, 0, 0) ( 1494881.312, 1313130.809, 0, 0) Shape:67 (Point) nVertices=1, nParts=0 Bounds:( 1313552.157, -504161.295, 0, 0) to ( 1313552.157, -504161.295, 0, 0) ( 1313552.157, -504161.295, 0, 0) Shape:68 (Point) nVertices=1, nParts=0 Bounds:( 2063326.373, 9527537.619, 0, 0) to ( 2063326.373, 9527537.619, 0, 0) ( 2063326.373, 9527537.619, 0, 0) Shape:69 (Point) nVertices=1, nParts=0 Bounds:( 1205405.029, -414715.302, 0, 0) to ( 1205405.029, -414715.302, 0, 0) ( 1205405.029, -414715.302, 0, 0) Shape:70 (Point) nVertices=1, nParts=0 Bounds:(-1315773.707, 1642588.573, 0, 0) to (-1315773.707, 1642588.573, 0, 0) (-1315773.707, 1642588.573, 0, 0) Shape:71 (Point) nVertices=1, nParts=0 Bounds:(-2023711.785, 409918.798, 0, 0) to (-2023711.785, 409918.798, 0, 0) (-2023711.785, 409918.798, 0, 0) Shape:72 (Point) nVertices=1, nParts=0 Bounds:( 1633330.572, -114333.232, 0, 0) to ( 1633330.572, -114333.232, 0, 0) ( 1633330.572, -114333.232, 0, 0) ------=_NextPart_000_0078_01C2E0C9.9F8C5E20 Content-Type: application/octet-stream; name="sites-lat-lon.out" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sites-lat-lon.out" Shapefile Type: Point # of Shapes: 73 File Bounds: ( -139.450, 42.030,0,0) to ( 79.350, 82.130,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( -116.020, 50.570, 0, 0) to ( -116.020, 50.570, 0, 0) ( -116.020, 50.570, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( -81.240, 46.010, 0, 0) to ( -81.240, 46.010, 0, 0) ( -81.240, 46.010, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( -108.060, 69.210, 0, 0) to ( -108.060, 69.210, 0, 0) ( -108.060, 69.210, 0, 0) Shape:3 (Point) nVertices=1, nParts=0 Bounds:( -108.060, 69.210, 0, 0) to ( -108.060, 69.210, 0, 0) ( -108.060, 69.210, 0, 0) Shape:4 (Point) nVertices=1, nParts=0 Bounds:( -112.530, 53.370, 0, 0) to ( -112.530, 53.370, 0, 0) ( -112.530, 53.370, 0, 0) Shape:5 (Point) nVertices=1, nParts=0 Bounds:( -133.000, 69.300, 0, 0) to ( -133.000, 69.300, 0, 0) ( -133.000, 69.300, 0, 0) Shape:6 (Point) nVertices=1, nParts=0 Bounds:( -107.130, 53.430, 0, 0) to ( -107.130, 53.430, 0, 0) ( -107.130, 53.430, 0, 0) Shape:7 (Point) nVertices=1, nParts=0 Bounds:( -113.470, 53.550, 0, 0) to ( -113.470, 53.550, 0, 0) ( -113.470, 53.550, 0, 0) Shape:8 (Point) nVertices=1, nParts=0 Bounds:( -119.350, 49.300, 0, 0) to ( -119.350, 49.300, 0, 0) ( -119.350, 49.300, 0, 0) Shape:9 (Point) nVertices=1, nParts=0 Bounds:( -122.440, 53.540, 0, 0) to ( -122.440, 53.540, 0, 0) ( -122.440, 53.540, 0, 0) Shape:10 (Point) nVertices=1, nParts=0 Bounds:( -72.130, 82.130, 0, 0) to ( -72.130, 82.130, 0, 0) ( -72.130, 82.130, 0, 0) Shape:11 (Point) nVertices=1, nParts=0 Bounds:( -94.500, 74.420, 0, 0) to ( -94.500, 74.420, 0, 0) ( -94.500, 74.420, 0, 0) Shape:12 (Point) nVertices=1, nParts=0 Bounds:( -80.350, 72.500, 0, 0) to ( -80.350, 72.500, 0, 0) ( -80.350, 72.500, 0, 0) Shape:13 (Point) nVertices=1, nParts=0 Bounds:( -81.480, 69.220, 0, 0) to ( -81.480, 69.220, 0, 0) ( -81.480, 69.220, 0, 0) Shape:14 (Point) nVertices=1, nParts=0 Bounds:( -66.000, 67.500, 0, 0) to ( -66.000, 67.500, 0, 0) ( -66.000, 67.500, 0, 0) Shape:15 (Point) nVertices=1, nParts=0 Bounds:( -139.450, 68.060, 0, 0) to ( -139.450, 68.060, 0, 0) ( -139.450, 68.060, 0, 0) Shape:16 (Point) nVertices=1, nParts=0 Bounds:( -111.380, 64.500, 0, 0) to ( -111.380, 64.500, 0, 0) ( -111.380, 64.500, 0, 0) Shape:17 (Point) nVertices=1, nParts=0 Bounds:( -95.050, 64.160, 0, 0) to ( -95.050, 64.160, 0, 0) ( -95.050, 64.160, 0, 0) Shape:18 (Point) nVertices=1, nParts=0 Bounds:( -72.750, 49.750, 0, 0) to ( -72.750, 49.750, 0, 0) ( -72.750, 49.750, 0, 0) Shape:19 (Point) nVertices=1, nParts=0 Bounds:( -112.490, 49.420, 0, 0) to ( -112.490, 49.420, 0, 0) ( -112.490, 49.420, 0, 0) Shape:20 (Point) nVertices=1, nParts=0 Bounds:( -112.490, 49.420, 0, 0) to ( -112.490, 49.420, 0, 0) ( -112.490, 49.420, 0, 0) Shape:21 (Point) nVertices=1, nParts=0 Bounds:( -109.310, 49.410, 0, 0) to ( -109.310, 49.410, 0, 0) ( -109.310, 49.410, 0, 0) Shape:22 (Point) nVertices=1, nParts=0 Bounds:( -93.600, 49.550, 0, 0) to ( -93.600, 49.550, 0, 0) ( -93.600, 49.550, 0, 0) Shape:23 (Point) nVertices=1, nParts=0 Bounds:( -70.750, 49.600, 0, 0) to ( -70.750, 49.600, 0, 0) ( -70.750, 49.600, 0, 0) Shape:24 (Point) nVertices=1, nParts=0 Bounds:( -98.090, 49.250, 0, 0) to ( -98.090, 49.250, 0, 0) ( -98.090, 49.250, 0, 0) Shape:25 (Point) nVertices=1, nParts=0 Bounds:( -122.570, 49.160, 0, 0) to ( -122.570, 49.160, 0, 0) ( -122.570, 49.160, 0, 0) Shape:26 (Point) nVertices=1, nParts=0 Bounds:( -122.310, 49.160, 0, 0) to ( -122.310, 49.160, 0, 0) ( -122.310, 49.160, 0, 0) Shape:27 (Point) nVertices=1, nParts=0 Bounds:( -121.460, 49.140, 0, 0) to ( -121.460, 49.140, 0, 0) ( -121.460, 49.140, 0, 0) Shape:28 (Point) nVertices=1, nParts=0 Bounds:( -107.260, 49.070, 0, 0) to ( -107.260, 49.070, 0, 0) ( -107.260, 49.070, 0, 0) Shape:29 (Point) nVertices=1, nParts=0 Bounds:( -123.100, 49.060, 0, 0) to ( -123.100, 49.060, 0, 0) ( -123.100, 49.060, 0, 0) Shape:30 (Point) nVertices=1, nParts=0 Bounds:( -96.420, 49.050, 0, 0) to ( -96.420, 49.050, 0, 0) ( -96.420, 49.050, 0, 0) Shape:31 (Point) nVertices=1, nParts=0 Bounds:( -113.520, 49.050, 0, 0) to ( -113.520, 49.050, 0, 0) ( -113.520, 49.050, 0, 0) Shape:32 (Point) nVertices=1, nParts=0 Bounds:( -78.300, 44.570, 0, 0) to ( -78.300, 44.570, 0, 0) ( -78.300, 44.570, 0, 0) Shape:33 (Point) nVertices=1, nParts=0 Bounds:( -123.090, 48.480, 0, 0) to ( -123.090, 48.480, 0, 0) ( -123.090, 48.480, 0, 0) Shape:34 (Point) nVertices=1, nParts=0 Bounds:( -91.370, 48.460, 0, 0) to ( -91.370, 48.460, 0, 0) ( -91.370, 48.460, 0, 0) Shape:35 (Point) nVertices=1, nParts=0 Bounds:( -53.590, 48.340, 0, 0) to ( -53.590, 48.340, 0, 0) ( -53.590, 48.340, 0, 0) Shape:36 (Point) nVertices=1, nParts=0 Bounds:( -79.160, 48.280, 0, 0) to ( -79.160, 48.280, 0, 0) ( -79.160, 48.280, 0, 0) Shape:37 (Point) nVertices=1, nParts=0 Bounds:( -72.160, 48.425, 0, 0) to ( -72.160, 48.425, 0, 0) ( -72.160, 48.425, 0, 0) Shape:38 (Point) nVertices=1, nParts=0 Bounds:( -123.320, 48.180, 0, 0) to ( -123.320, 48.180, 0, 0) ( -123.320, 48.180, 0, 0) Shape:39 (Point) nVertices=1, nParts=0 Bounds:( -85.560, 48.160, 0, 0) to ( -85.560, 48.160, 0, 0) ( -85.560, 48.160, 0, 0) Shape:40 (Point) nVertices=1, nParts=0 Bounds:( -71.400, 47.570, 0, 0) to ( -71.400, 47.570, 0, 0) ( -71.400, 47.570, 0, 0) Shape:41 (Point) nVertices=1, nParts=0 Bounds:( -82.000, 47.100, 0, 0) to ( -82.000, 47.100, 0, 0) ( -82.000, 47.100, 0, 0) Shape:42 (Point) nVertices=1, nParts=0 Bounds:( -53.130, 47.040, 0, 0) to ( -53.130, 47.040, 0, 0) ( -53.130, 47.040, 0, 0) Shape:43 (Point) nVertices=1, nParts=0 Bounds:( -84.250, 47.030, 0, 0) to ( -84.250, 47.030, 0, 0) ( -84.250, 47.030, 0, 0) Shape:44 (Point) nVertices=1, nParts=0 Bounds:( -71.090, 46.520, 0, 0) to ( -71.090, 46.520, 0, 0) ( -71.090, 46.520, 0, 0) Shape:45 (Point) nVertices=1, nParts=0 Bounds:( -64.580, 46.510, 0, 0) to ( -64.580, 46.510, 0, 0) ( -64.580, 46.510, 0, 0) Shape:46 (Point) nVertices=1, nParts=0 Bounds:( -72.580, 46.460, 0, 0) to ( -72.580, 46.460, 0, 0) ( -72.580, 46.460, 0, 0) Shape:47 (Point) nVertices=1, nParts=0 Bounds:( -63.470, 46.250, 0, 0) to ( -63.470, 46.250, 0, 0) ( -63.470, 46.250, 0, 0) Shape:48 (Point) nVertices=1, nParts=0 Bounds:( -79.510, 43.150, 0, 0) to ( -79.510, 43.150, 0, 0) ( -79.510, 43.150, 0, 0) Shape:49 (Point) nVertices=1, nParts=0 Bounds:( -65.070, 45.390, 0, 0) to ( -65.070, 45.390, 0, 0) ( -65.070, 45.390, 0, 0) Shape:50 (Point) nVertices=1, nParts=0 Bounds:( -73.150, 45.550, 0, 0) to ( -73.150, 45.550, 0, 0) ( -73.150, 45.550, 0, 0) Shape:51 (Point) nVertices=1, nParts=0 Bounds:( -78.450, 45.280, 0, 0) to ( -78.450, 45.280, 0, 0) ( -78.450, 45.280, 0, 0) Shape:52 (Point) nVertices=1, nParts=0 Bounds:( -80.200, 43.230, 0, 0) to ( -80.200, 43.230, 0, 0) ( -80.200, 43.230, 0, 0) Shape:53 (Point) nVertices=1, nParts=0 Bounds:( -81.370, 45.140, 0, 0) to ( -81.370, 45.140, 0, 0) ( -81.370, 45.140, 0, 0) Shape:54 (Point) nVertices=1, nParts=0 Bounds:( -81.250, 45.050, 0, 0) to ( -81.250, 45.050, 0, 0) ( -81.250, 45.050, 0, 0) Shape:55 (Point) nVertices=1, nParts=0 Bounds:( -133.717, 68.350, 0, 0) to ( -133.717, 68.350, 0, 0) ( -133.717, 68.350, 0, 0) Shape:56 (Point) nVertices=1, nParts=0 Bounds:( -78.550, 45.130, 0, 0) to ( -78.550, 45.130, 0, 0) ( -78.550, 45.130, 0, 0) Shape:57 (Point) nVertices=1, nParts=0 Bounds:( -67.050, 45.070, 0, 0) to ( -67.050, 45.070, 0, 0) ( -67.050, 45.070, 0, 0) Shape:58 (Point) nVertices=1, nParts=0 Bounds:( -76.200, 44.350, 0, 0) to ( -76.200, 44.350, 0, 0) ( -76.200, 44.350, 0, 0) Shape:59 (Point) nVertices=1, nParts=0 Bounds:( -65.160, 44.220, 0, 0) to ( -65.160, 44.220, 0, 0) ( -65.160, 44.220, 0, 0) Shape:60 (Point) nVertices=1, nParts=0 Bounds:( -78.200, 44.190, 0, 0) to ( -78.200, 44.190, 0, 0) ( -78.200, 44.190, 0, 0) Shape:61 (Point) nVertices=1, nParts=0 Bounds:( -79.480, 44.140, 0, 0) to ( -79.480, 44.140, 0, 0) ( -79.480, 44.140, 0, 0) Shape:62 (Point) nVertices=1, nParts=0 Bounds:( -80.000, 43.830, 0, 0) to ( -80.000, 43.830, 0, 0) ( -80.000, 43.830, 0, 0) Shape:63 (Point) nVertices=1, nParts=0 Bounds:( -80.333, 43.583, 0, 0) to ( -80.333, 43.583, 0, 0) ( -80.333, 43.583, 0, 0) Shape:64 (Point) nVertices=1, nParts=0 Bounds:( -81.140, 42.590, 0, 0) to ( -81.140, 42.590, 0, 0) ( -81.140, 42.590, 0, 0) Shape:65 (Point) nVertices=1, nParts=0 Bounds:( -83.020, 42.030, 0, 0) to ( -83.020, 42.030, 0, 0) ( -83.020, 42.030, 0, 0) Shape:66 (Point) nVertices=1, nParts=0 Bounds:( -68.240, 58.060, 0, 0) to ( -68.240, 58.060, 0, 0) ( -68.240, 58.060, 0, 0) Shape:67 (Point) nVertices=1, nParts=0 Bounds:( -79.140, 43.060, 0, 0) to ( -79.140, 43.060, 0, 0) ( -79.140, 43.060, 0, 0) Shape:68 (Point) nVertices=1, nParts=0 Bounds:( 79.350, 43.330, 0, 0) to ( 79.350, 43.330, 0, 0) ( 79.350, 43.330, 0, 0) Shape:69 (Point) nVertices=1, nParts=0 Bounds:( -80.150, 44.050, 0, 0) to ( -80.150, 44.050, 0, 0) ( -80.150, 44.050, 0, 0) Shape:70 (Point) nVertices=1, nParts=0 Bounds:( -121.200, 61.510, 0, 0) to ( -121.200, 61.510, 0, 0) ( -121.200, 61.510, 0, 0) Shape:71 (Point) nVertices=1, nParts=0 Bounds:( -123.300, 48.570, 0, 0) to ( -123.300, 48.570, 0, 0) ( -123.300, 48.570, 0, 0) Shape:72 (Point) nVertices=1, nParts=0 Bounds:( -74.010, 45.550, 0, 0) to ( -74.010, 45.550, 0, 0) ( -74.010, 45.550, 0, 0) ------=_NextPart_000_0078_01C2E0C9.9F8C5E20-- From woodbri@swoodbridge.com Sun Mar 2 20:09:25 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Sun, 02 Mar 2003 15:09:25 -0500 Subject: [Mapserver-users] mapserver In-Reply-To: <007b01c2e0f3$88d1f0d0$f098fea9@pauls> Message-ID: <3E621EA5.31374.224550CF@localhost> Paul, You can view these in ArcExplorer to see if they look like what you expect them to. You can get ArcExplorer free from esri.com I quick look does show anything bad in them. -Steve On 2 Mar 2003 at 14:40, Paul Dymecki wrote: > Hi Steve, > Here is the output of running a shpdump on the files(projected > and > nonprojected). Would you know off hand if they look ok? > thx, > Paul > ----- Original Message ----- > From: > To: "Paul Dymecki" ; > > Sent: Sunday, March 02, 2003 10:05 AM > Subject: Re: [Mapserver-users] mapserver > > > > Paul, > > > > I'm don't think so. The other thing you could try doing is to save > > the shapefile to disk and check it shpdump or shpinfo utilities that > > come with either shapelib or gdal. > > > > I think there are some examples on wiki or in the archives. > > > > -Steve > > > > On 2 Mar 2003 at 9:38, Paul Dymecki wrote: > > > > > Hi Steve, > > > Does the ShpFileObj have to know about the map that being added > > > toat all? > > > thx, > > > Paul > > > ----- Original Message ----- > > > From: > > > To: "Paul Dymecki" ; "MapServer List > > > EE-mail"" Sent: Sunday, March > > > 02, 2003 8:51 AM Subject: Re: [Mapserver-users] mapserver > > > > > > > > > > It is not required, the shapelib software keeps track of the > > > > data you enter and sets the extents appropriately. > > > > > > > > -Steve W > > > > > > > > On 2 Mar 2003 at 8:28, Paul Dymecki wrote: > > > > > > > > > Hi, > > > > > I'm creating and populateing a new shp and was wondering how > > > > > to go about setting the extents for the newly created shp, > > > > > or if it's possible? > > > > > thx, > > > > > Paul > > > > > > > > > > $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_POINT); > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Mapserver-users mailing list > > > > Mapserver-users@lists.gis.umn.edu > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > From steve@roatanet.com Sun Mar 2 20:43:05 2003 From: steve@roatanet.com (Steve Hasz) Date: Sun, 2 Mar 2003 21:43:05 +0100 Subject: [Mapserver-users] Server Specs for Mapserver Install Message-ID: Dear Group, I've searched the docs and the archives, but haven't been able to find answers to the below. It would be great if someone could give me some info or point me to the relevant docs. I'm looking at an install of Mapserver and the libraries in on a VPS at Verio. Can someone tell me if the usual install is on a dedicated server or if it will run well on shared hosting? It will be on FreeBSD, where we have access to everything through FTP and SSH/Telnet, including the Apache config file, PHP install directory and libraries directory. The current version of PHP is 4.3, but we can roll back if we have to. We also have full install privileges for nearly all software. With the Mapserver CGI/PHP Mapscript module, is the server load heavy and what are some typical space allotments and usage that some of you have for your installs/data files? I understand that load will depend completely on traffic, so any numbers on traffic (hits, page views, transfer, bandwidth purchased) would be interesting as well. The only thing I've found in the archives is reference to, "My server is slow, so I need to upgrade," which makes me think it may be processor and memory intensive if it's taking any traffic. Also, if available, hints or pointers to docs on optimizing the Mapserver install for efficiency would be great too. Best regards, Steve www.roatanet.com - Visitors Guide to Roatan and the Bay Islands www.travel-to-honduras.com - Your Travel Guide to Honduras From lfilak@medinaco.org Sun Mar 2 21:04:15 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Sun, 02 Mar 2003 16:04:15 -0500 Subject: [Mapserver-users] perl-mapscript compilation error... did I miss something in the archives? Message-ID: <200303022104.h22L3wR20322@yogi.medinaco.net> Is it possible the cvs version (3.7) that you downloaded has a broken makefile that is doing 'clean' before doing 'all'? Lowell F. The following message was sent by Gerry Creager N5JXS on Sun, 02 Mar 2003 01:49:29 -0600. > MS 3.7, Linux RH8.0, Kernel 2.4.18-24, perl 5.8. I do a 'perl > Makefile.PL' followed by a 'make' and here's what I get... > > [root@vne-dhcp-047 perl]# make > Running Mkbootstrap for mapscript () > chmod 644 mapscript.bs > rm -f blib/arch/auto/mapscript/mapscript.so > LD_RUN_PATH="/root/mapserver-3.7:/usr/local/lib:/usr/lib:/lib" gcc > -shared -L/usr/local/lib mapscript_wrap.o -o > blib/arch/auto/mapscript/mapscript.so -L/root/mapserver-3.7 -lmap -lgd > -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg > -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 -lming > -L/usr/local/lib -lcurl -lz -lssl -lcrypto -ldl -lz -lpthread -lm > gcc: mapscript_wrap.o: No such file or directory > make: *** [blib/arch/auto/mapscript/mapscript.so] Error 1 > > Where did I step off the cliff? > > TIA, gerry > > -- > Gerry Creager -- gerry.creager@tamu.edu > Network Engineering -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Sun Mar 2 21:37:22 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Sun, 02 Mar 2003 16:37:22 -0500 Subject: [Mapserver-users] perl-mapscript compilation error... did I miss something in the archives? Message-ID: <200303022137.h22Lb7R20456@yogi.medinaco.net> Does mapscript_wrap.o and/or mapscript_wrap.c exist? If at least mapscript_wrap.c does not exist there should be directions in the README on how to create it. Lowell F. The following message was sent by Gerry Creager N5JXS on Sun, 02 Mar 2003 01:49:29 -0600. > MS 3.7, Linux RH8.0, Kernel 2.4.18-24, perl 5.8. I do a 'perl > Makefile.PL' followed by a 'make' and here's what I get... > > [root@vne-dhcp-047 perl]# make > Running Mkbootstrap for mapscript () > chmod 644 mapscript.bs > rm -f blib/arch/auto/mapscript/mapscript.so > LD_RUN_PATH="/root/mapserver-3.7:/usr/local/lib:/usr/lib:/lib" gcc > -shared -L/usr/local/lib mapscript_wrap.o -o > blib/arch/auto/mapscript/mapscript.so -L/root/mapserver-3.7 -lmap -lgd > -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg > -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 -lming > -L/usr/local/lib -lcurl -lz -lssl -lcrypto -ldl -lz -lpthread -lm > gcc: mapscript_wrap.o: No such file or directory > make: *** [blib/arch/auto/mapscript/mapscript.so] Error 1 > > Where did I step off the cliff? > > TIA, gerry > > -- > Gerry Creager -- gerry.creager@tamu.edu > Network Engineering -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From gerry.creager@tamu.edu Mon Mar 3 01:03:00 2003 From: gerry.creager@tamu.edu (Gerry Creager N5JXS) Date: Sun, 02 Mar 2003 19:03:00 -0600 Subject: [Mapserver-users] perl-mapscript compilation error... did I miss something in the archives? References: <200303022104.h22L3wR20322@yogi.medinaco.net> Message-ID: <3E62A9C4.6050500@tamu.edu> Yes... I never saw it do anything resembling a 'clean' but *I* did... In reviewing it, 3.7 cvs appears to not have mapscript_wrap.c anywhere. And when I stuff the 3.6.4 version in, it neither compiles clean, nor does so even with a 'c++' substitution as recommended in the Wiki. Cluelessly yours, Gerry Lowell Filak wrote: > Is it possible the cvs version (3.7) that you downloaded has a broken makefile that is doing 'clean' before doing 'all'? > Lowell F. > > The following message was sent by Gerry Creager N5JXS on Sun, 02 Mar 2003 01:49:29 -0600. > > >>MS 3.7, Linux RH8.0, Kernel 2.4.18-24, perl 5.8. I do a 'perl >>Makefile.PL' followed by a 'make' and here's what I get... >> >>[root@vne-dhcp-047 perl]# make >>Running Mkbootstrap for mapscript () >>chmod 644 mapscript.bs >>rm -f blib/arch/auto/mapscript/mapscript.so >>LD_RUN_PATH="/root/mapserver-3.7:/usr/local/lib:/usr/lib:/lib" gcc >>-shared -L/usr/local/lib mapscript_wrap.o -o >>blib/arch/auto/mapscript/mapscript.so -L/root/mapserver-3.7 -lmap -lgd >>-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg >>-lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 -lming >>-L/usr/local/lib -lcurl -lz -lssl -lcrypto -ldl -lz -lpthread -lm >>gcc: mapscript_wrap.o: No such file or directory >>make: *** [blib/arch/auto/mapscript/mapscript.so] Error 1 >> >>Where did I step off the cliff? >> >>TIA, gerry >> >>-- >>Gerry Creager -- gerry.creager@tamu.edu >>Network Engineering -- AATLT, Texas A&M University >>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >>Page: 979.228.0173 >>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Gerry Creager -- gerry.creager@tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From wanalena@engr.orst.edu Mon Mar 3 03:18:31 2003 From: wanalena@engr.orst.edu (Naroot Wanalertlak) Date: Sun, 2 Mar 2003 19:18:31 -0800 Subject: [Mapserver-users] How can queryByPoint and getShape mapscript functions work with PostGIS Message-ID: <007f01c2e133$9464f060$0701a8c0@een.orst.edu> This is a multi-part message in MIME format. ------=_NextPart_000_007A_01C2E0F0.83210F70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am now implementing a Map application that has a Point layer from PostGIS. The problem is whenever I try to use queryByPoint on this layer it will return MS_SUCCESS. $nClickGeoX =3D GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0); $nClickGeoY =3D GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1); $oClickGeo =3D ms_newPointObj(); $oClickGeo->setXY($nClickGeoX, $nClickGeoY); $layer =3D $gpoMap->getLayer(7); $err =3D @$layer->queryByPoint($oClickGeo, MS_SINGLE, -20); // <-- I = have tried both MapUnit (positive) and Pixel (negative) if($err =3D=3D MS_FAILURE) { echo "There were no results found, try = zooming in closer."; } ^^^^^^^^ $err will always return MS_FAILURE ^^^^^^^^^^^ else if( $err =3D=3D MS_SUCCESS) { .... Does anybody has experience with that? --Naroot Wanalertlak ------=_NextPart_000_007A_01C2E0F0.83210F70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
  I am now implementing a Map = application=20 that
has a Point layer from PostGIS. The = problem=20 is
whenever I try to use queryByPoint on = this=20 layer
it will return MS_SUCCESS.
 
 
$nClickGeoX =3D = GMapPix2Geo($nClickPixX, 0,=20 $dfWidthPix,
         &nb= sp;           &nbs= p;            = ;         =20  $dfMinX, $dfMaxX, 0);
$nClickGeoY =3D GMapPix2Geo($nClickPixY, = 0,=20 $dfHeightPix,
         &n= bsp;           &nb= sp;   =20             &= nbsp;     =20 $dfMinY, $dfMaxY, 1);
$oClickGeo =3D=20 ms_newPointObj();
$oClickGeo->setXY($nClickGeoX,=20 $nClickGeoY);
 
$layer =3D = $gpoMap->getLayer(7);
$err =3D=20 @$layer->queryByPoint($oClickGeo, MS_SINGLE, -20);    = // =20 <-- I have tried both MapUnit (positive) and Pixel = (negative)
 
if($err =3D=3D=20 MS_FAILURE)
{
       echo "<font = size=3D4=20 color=3Dred>There were no results found, try zooming in=20 closer.</font>";
}
^^^^^^^^ $err will always = return MS_FAILURE=20 ^^^^^^^^^^^
 
else if( $err =3D=3D MS_SUCCESS)
{=20 ....
Does anybody has experience with that?
 
--Naroot Wanalertlak
 
------=_NextPart_000_007A_01C2E0F0.83210F70-- From wanalena@engr.orst.edu Mon Mar 3 03:19:41 2003 From: wanalena@engr.orst.edu (wanalena@engr.orst.edu) Date: Sun, 2 Mar 2003 19:19:41 -0800 Subject: [Mapserver-users] How can queryByPoint and getShape mapscript functions work with PostGIS. Message-ID: <1046661581.3e62c9cd39813@webmail.engr.oregonstate.edu> Hi, I am now implementing a Map application that has a Point layer from PostGIS. The problem is whenever I try to use queryByPoint on this layer it will return MS_SUCCESS. $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0); $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1); $oClickGeo = ms_newPointObj(); $oClickGeo->setXY($nClickGeoX, $nClickGeoY); $layer = $gpoMap->getLayer(7); $err = @$layer->queryByPoint($oClickGeo, MS_SINGLE, -20); // <-- I have tried both MapUnit (positive) and Pixel (negative) if($err == MS_FAILURE) { echo "There were no results found, try zooming in closer."; } ^^^^^^^^ $err will always return MS_FAILURE ^^^^^^^^^^^ else if( $err == MS_SUCCESS) { .... Does anybody has experience with that? --Naroot Wanalertlak From lfilak@medinaco.org Mon Mar 3 04:27:32 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Sun, 02 Mar 2003 23:27:32 -0500 Subject: [Mapserver-users] using perl: "can't locate mapscript.pm" Message-ID: <200303030427.h234RTR22133@yogi.medinaco.net> Any modification to the @INC is usually taken care of during the 'make install' portion of the mapscript compilation. While compiling mapscript was 'make install' used? Lowell F. The following message was sent by Dana Quinn on Wed, 26 Feb 2003 08:22:10 -0800. > > Pedro- > The perl script needs to find your mapscript.pm - > so you need to tell the script where it is. Your default > @INC doesn't have the location of the mapscript.pm in it. > One easy way to get the script to run is to put this > before your 'use mapscript' line: > > use lib "/path/to/mapscript/directory"; > > then the script should be able to find mapscript.pm. > > Dana > > Pedro Salazar wrote: > > Greetings, > > > > I would like to use perl to return my images (and more manipulation!) > > instead of using the mapserver default cgi. > > > > I created a test perl script, and I'm having problems on finding the > > mapscript module!! > > > > use mapscript; // <----- HERE > > > > " > > Can't locate mapscript.pm in @INC (@INC contains: > > /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 > > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl > > /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi > > /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at > > ./script.pl line 2. > > BEGIN failed--compilation aborted at ./script.pl line 2. > > " > > > > Any help would be appreciated!! > > > > thanks, > > Pedro Salazar. > > > > > -- > > Dana Quinn, dana@nextbus.com > NextBus Information Systems > (510) 420-3117 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Mon Mar 3 05:18:44 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 03 Mar 2003 00:18:44 -0500 Subject: [Mapserver-users] PERL mapscript polygon shapefile creation Message-ID: <200303030518.h235IfR22342@yogi.medinaco.net> Yes, the code for creating a circle polygon based on a center point and a radius is at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex9 It also turns out that I had a bug/feature in that code where the closing line segment was never written to the shape but the shape closed anyways!? As strange as it may seem the code works. HTH Lowell F. The following message was sent by Joe Bussell on Tue, 25 Feb 2003 11:41:56 -0800. > Greetings Listers, > I am having difficulty porting a technique we use to create point > and line type shapefiles to create a polygon shapefile. Has anyone used > PERL to create polygon shapefiles from data files? I have attached my > attempt for review. The script creates a shapefile that is readable by > dump.pl, but I have not been able to use it in a map render. > I tried this with a data file with the following lines: > 40.0 -116.0 > 45.0 -116.0 > 45.0 -120.0 > 40.0 -120.0 > > The script "closes" the polygon by inserting the first record at the end. > > Any ideas? > > Cordially, > > Joe Bussell > From jacobi@dfki.de Mon Mar 3 09:56:02 2003 From: jacobi@dfki.de (Sven Jacobi) Date: Mon, 03 Mar 2003 10:56:02 +0100 Subject: [Mapserver-users] Legends Message-ID: <3E6326B2.5020801@dfki.de> Hi list, I want to create a layer with a certain colour and certain symbols on it. Also I want to add this in my legend. How can I define a layer with additional symbols on it? Thanks, Sven From mschulz@webgis.de Mon Mar 3 12:54:14 2003 From: mschulz@webgis.de (Michael Schulz) Date: Mon, 03 Mar 2003 13:54:14 +0100 Subject: [Mapserver-users] Oraclespatial class expressions Message-ID: <3E635076.6E83E190@webgis.de> Dear List, i want to classify a layer with data from an oracle SDO table using logical expressions. Is that already possible? Sth. like: --map file snipplet-- layer name ora_data connection oraclespatial data "shape from GEOM" classitem "attribute1" class name class1 expression "[attribute1] < 10" color ... end end --snip-- The mapserv docs says logical expressions are only possible with shapefiles :-( But when i look at the sql-query that is submitted to oracle the classitem value is added to the select part, so i assumed if it is retrieved from the db it might also be used to classify the results? Is there any other possibilty to classify data from oracle? Well, besides several layers for every class. TIA, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft für Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz@webgis.de www.webgis.de From JDiaz@gilatla.com Mon Mar 3 13:58:47 2003 From: JDiaz@gilatla.com (Jose Manuel Diaz Diaz - GTHLA) Date: Mon, 3 Mar 2003 08:58:47 -0500 Subject: [Mapserver-users] (no subject) Message-ID: <00ca01c2e18d$06fbaa70$3e39750a@tjar.com> This is a multi-part message in MIME format. ------=_NextPartTM-000-293e8eb1-8e46-44f4-babc-9e1919883ecb Content-Type: multipart/alternative; boundary="----=_NextPart_000_00C7_01C2E163.19F713F0" ------=_NextPart_000_00C7_01C2E163.19F713F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 ------=_NextPart_000_00C7_01C2E163.19F713F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
------=_NextPart_000_00C7_01C2E163.19F713F0-- ------=_NextPartTM-000-293e8eb1-8e46-44f4-babc-9e1919883ecb-- From millardymecki@sympatico.ca Mon Mar 3 14:04:33 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 09:04:33 -0500 Subject: [Mapserver-users] lat lon Message-ID: <005701c2e18d$d16794e0$f098fea9@pauls> This is a multi-part message in MIME format. ------=_NextPart_000_0054_01C2E163.E83BF2D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, I'm trying to display lat/long point data ontop of a tiff and was = wondering what should be the projection object for this layer would be?. = My map projection is lcc. thx, Paul ------=_NextPart_000_0054_01C2E163.E83BF2D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
    I'm trying to = display lat/long=20 point data ontop of a tiff and was wondering what should be the = projection=20 object for this layer would be?.   My map projection is=20 lcc.
thx,
Paul
------=_NextPart_000_0054_01C2E163.E83BF2D0-- From ed@topozone.com Mon Mar 3 14:10:37 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Mar 2003 09:10:37 -0500 Subject: [Mapserver-users] lat lon Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E6A@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C2E18E.AA37D719 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Paul - =20 You need to know all the details of your TIFF's projection, so you can = specify it completely. Are you using one or two standard parallels for = your LCC? You need the lat and lon of the origin, the scale factor, any = false easting & northing, etc. =20 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242=20 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:05 AM To: MapServer List (E-mail) Subject: [Mapserver-users] lat lon Hello all, I'm trying to display lat/long point data ontop of a tiff and was = wondering what should be the projection object for this layer would be?. = My map projection is lcc. thx, Paul ------_=_NextPart_001_01C2E18E.AA37D719 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Paul=20 -
 
You=20 need to know all the details of your TIFF's projection, so you can = specify it=20 completely.  Are you using one or two standard parallels for your=20 LCC?  You need the lat and lon of the origin, the scale factor, any = false=20 easting & northing, etc.
 
    - Ed

Ed McNierney
President and Chief = Mapmaker
TopoZone.com /=20 Maps a la carte, Inc.
73 Princeton Street, Suite 305
North = Chelmsford,=20 MA  01863
ed@topozone.com
(978) 251-4242 =

-----Original Message-----
From: Paul Dymecki=20 [mailto:millardymecki@sympatico.ca]
Sent: Monday, March 03, = 2003=20 9:05 AM
To: MapServer List (E-mail)
Subject:=20 [Mapserver-users] lat lon

Hello all,
    I'm trying to = display lat/long=20 point data ontop of a tiff and was wondering what should be the = projection=20 object for this layer would be?.   My map projection is=20 lcc.
thx,
Paul
------_=_NextPart_001_01C2E18E.AA37D719-- From morissette@dmsolutions.ca Mon Mar 3 14:16:12 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Mar 2003 09:16:12 -0500 Subject: [Mapserver-users] query Tab Data References: <005301c0a3aa$c93586b0$0201a8c0@sun> Message-ID: <3E6363AC.AB8671D0@dmsolutions.ca> Srinivas Reddy wrote: > > Now am new to this technologies but I had done some of project with > the reference of DM solutions map reference. In DM > solutions they are done using SHP data files. But I am using "*.Tab" > data. How can I query the content of the "*.TAB"layers > using php and mapscript. This is my problem. This is my email id : > csr@rboxtech.com or reddy_challa@yahoo.com You will have to provide more details on what you are trying to do exactly if you want anyone to be able to help. If by "query the contents of .tab layers" you mean clicking on a map image and selecting features from a TAB layer then this works the same way for shapefiles and for .tab files. The only difference is that you need MapServer with OGR support, and you define an OGR CONNECTION in your LAYER. For more details on using OGR CONNECTIONS, see the OGR HOWTO at http://mapserver.gis.umn.edu/doc36/ogr-howto.html Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From morissette@dmsolutions.ca Mon Mar 3 14:27:20 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Mar 2003 09:27:20 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection References: <005e01c2e0e3$fe4cf6d0$f098fea9@pauls> Message-ID: <3E636648.490AADEF@dmsolutions.ca> Paul Dymecki wrote: > > Hi > I have a php script that pulls a bunch of lat/longs and attribute data from a database and produces a shp file. > I was wondering if anyone can see a flaw with the code below? It's produceing reasonable(at least it looks to me)output but the shp > file produced is not displaying in mapserver, > thx, > Paul Your code looks right at first sight, perhaps the problem is related to your use of $point->project(), this method was kind of broken in PHP MapScript 3.6.x and has been fixed only in 3.7 so I would recommend that you avoid using it if possible (or upgrade to 3.7-dev). Also, make sure that your shapefile and dbf file are closed properly before you add them to a MapServer layer. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From tzerweck@zebris.com Mon Mar 3 14:48:52 2003 From: tzerweck@zebris.com (Thomas Zerweck) Date: Mon, 3 Mar 2003 15:48:52 +0100 Subject: [Mapserver-users] libTIFF on Linux Message-ID: Hi, I'm trying to enable TIFF-support on Linux RedHat 8.0 for mapserver 3.6.4. Libtiff seems to be installed correctly. After running configure, the TIFF section in my makefile looks like this: # TIFF distribution (raster support for TIFF and GEOTIFF imagery). (RECOMMENDED) TIFF_INC= TIFF_LIB= -ltiff -ljpeg -lfreetype -lpng -lz TIFF= -DUSE_TIFF Running "make" seems to work fine and Mapserver works fine - however, the TIFF support is not enabled. Can anyone help me?? Thanks Thomas ZEBRIS Geoinformationssysteme und Consulting Lipowskystr. 26 D-81373 München Tel.: ++49 - 89 - 58 99 88 86 Fax: ++49 - 89 - 58 95 86 53 Internet: www.zebris.com From ed@topozone.com Mon Mar 3 14:47:01 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Mar 2003 09:47:01 -0500 Subject: [Mapserver-users] lat lon Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E6D@mercator.topozone.com> Paul - 1. Please try to reply to the whole list, since someone else might be able to answer your question better or more quickly than I can. 2. What projection is that EPSG code describing? I cannot find an EPSG code of 42304 in any of my EPSG tables - are you sure it's correct? Does this projection have a common name? 3. Remember that what you've said (in this map file) is that the TIFF file is of the same projection as the output image. As long as the georeference data for the TIFF matches the extents requested, you'll get a map. If you're using a TIFF with world file it's very easy to have the projection completely wrong but still get a "correct" map. But other layers won't project properly on to it. 4. Do you have MapServer built with PROJ support? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:26 AM To: Ed McNierney Subject: Re: [Mapserver-users] lat lon Hi Ed, My tiff is already displaying properly with (init=epsg:42304) but getting any lat/long data added is proving difficult to say the least. Here is the first part of my map file with "Eman-sites" being the lat/long data(last layer) Paul MAP NAME "MAP OF CANADA" STATUS ON EXTENT -2200000 -712631 3072800 3840000 SIZE 400 300 #SHAPEPATH "./data/" SHAPEPATH "C:\2.0rc3\tutorial\data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" #IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS # # Start of web interface definition # WEB MINSCALE 2000000 MAXSCALE 50000000 IMAGEPATH "C:/temp/" IMAGEURL "/ms_tmp/" # LOG "/tmp/gmap.log" END # # Start of reference object (keymap) # REFERENCE STATUS ON IMAGE "images/keymap.gif" SIZE 100 75 EXTENT -2200000 -712631 3072800 3840000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of querymap object # QUERYMAP COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:42304" END # # Start of legend object # LEGEND STATUS ON KEYSIZE 18 12 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # # Start of scalebar object # SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS kilometers INTERVALS 5 SIZE 150 5 LABEL SIZE SMALL COLOR 0 0 0 END END LAYER NAME "bathymetry" STATUS ON DATA "bath_mapserver.tif" TYPE RASTER TEMPLATE "ttt.html" END NAME "Eman-sites" STATUS ON DATA "sites.shp" TYPE POINT UNITS METERS SIZEUNITS METERS LABELITEM "Name" TOLERANCE 5 TOLERANCEUNITS PIXELS TRANSFORM TRUE TEMPLATE "ttt.html" PROJECTION "proj=longlat" "ellps=GRS80" "unit=dd" "no_defs" "" END CLASS NAME "site" SYMBOL 2 COLOR 255 51 102 SIZE 7 MINSIZE 1 MAXSIZE 100 END END ----- Original Message ----- From: Ed McNierney To: Paul Dymecki ; MapServer List (E-mail) Sent: Monday, March 03, 2003 9:10 AM Subject: RE: [Mapserver-users] lat lon Paul - You need to know all the details of your TIFF's projection, so you can specify it completely. Are you using one or two standard parallels for your LCC? You need the lat and lon of the origin, the scale factor, any false easting & northing, etc. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:05 AM To: MapServer List (E-mail) Subject: [Mapserver-users] lat lon Hello all, I'm trying to display lat/long point data ontop of a tiff and was wondering what should be the projection object for this layer would be?. My map projection is lcc. thx, Paul From millardymecki@sympatico.ca Mon Mar 3 14:57:10 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 09:57:10 -0500 Subject: [Mapserver-users] lat lon References: <13858AA1A74F30419F319ACB66A9D1221F3E6D@mercator.topozone.com> Message-ID: <007c01c2e195$2b4d5420$f098fea9@pauls> Ok sorry, I have this entry in my epsg file under c:\Proj\ and c:\Proj\nad ## NAD83 LCC for Canada <42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49 +lat_2=77 +datum=NAD83 +units=m no_defs <> I'm not sure if i have proj support i'll check into this though, thx, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" Cc: Sent: Monday, March 03, 2003 9:47 AM Subject: RE: [Mapserver-users] lat lon Paul - 1. Please try to reply to the whole list, since someone else might be able to answer your question better or more quickly than I can. 2. What projection is that EPSG code describing? I cannot find an EPSG code of 42304 in any of my EPSG tables - are you sure it's correct? Does this projection have a common name? I have this entry in my epsg file under c:\Proj\ and c:\Proj\nad ## NAD83 LCC for Canada <42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49 +lat_2=77 +datum=NAD83 +units=m no_defs <> 3. Remember that what you've said (in this map file) is that the TIFF file is of the same projection as the output image. As long as the georeference data for the TIFF matches the extents requested, you'll get a map. If you're using a TIFF with world file it's very easy to have the projection completely wrong but still get a "correct" map. But other layers won't project properly on to it. 4. Do you have MapServer built with PROJ support? Not sure i'm on windows, will check into this? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:26 AM To: Ed McNierney Subject: Re: [Mapserver-users] lat lon Hi Ed, My tiff is already displaying properly with (init=epsg:42304) but getting any lat/long data added is proving difficult to say the least. Here is the first part of my map file with "Eman-sites" being the lat/long data(last layer) Paul MAP NAME "MAP OF CANADA" STATUS ON EXTENT -2200000 -712631 3072800 3840000 SIZE 400 300 #SHAPEPATH "./data/" SHAPEPATH "C:\2.0rc3\tutorial\data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" #IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS # # Start of web interface definition # WEB MINSCALE 2000000 MAXSCALE 50000000 IMAGEPATH "C:/temp/" IMAGEURL "/ms_tmp/" # LOG "/tmp/gmap.log" END # # Start of reference object (keymap) # REFERENCE STATUS ON IMAGE "images/keymap.gif" SIZE 100 75 EXTENT -2200000 -712631 3072800 3840000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of querymap object # QUERYMAP COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:42304" END # # Start of legend object # LEGEND STATUS ON KEYSIZE 18 12 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # # Start of scalebar object # SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS kilometers INTERVALS 5 SIZE 150 5 LABEL SIZE SMALL COLOR 0 0 0 END END LAYER NAME "bathymetry" STATUS ON DATA "bath_mapserver.tif" TYPE RASTER TEMPLATE "ttt.html" END NAME "Eman-sites" STATUS ON DATA "sites.shp" TYPE POINT UNITS METERS SIZEUNITS METERS LABELITEM "Name" TOLERANCE 5 TOLERANCEUNITS PIXELS TRANSFORM TRUE TEMPLATE "ttt.html" PROJECTION "proj=longlat" "ellps=GRS80" "unit=dd" "no_defs" "" END CLASS NAME "site" SYMBOL 2 COLOR 255 51 102 SIZE 7 MINSIZE 1 MAXSIZE 100 END END ----- Original Message ----- From: Ed McNierney To: Paul Dymecki ; MapServer List (E-mail) Sent: Monday, March 03, 2003 9:10 AM Subject: RE: [Mapserver-users] lat lon Paul - You need to know all the details of your TIFF's projection, so you can specify it completely. Are you using one or two standard parallels for your LCC? You need the lat and lon of the origin, the scale factor, any false easting & northing, etc. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:05 AM To: MapServer List (E-mail) Subject: [Mapserver-users] lat lon Hello all, I'm trying to display lat/long point data ontop of a tiff and was wondering what should be the projection object for this layer would be?. My map projection is lcc. thx, Paul From DMartin@erac.com Mon Mar 3 15:37:11 2003 From: DMartin@erac.com (Martin, Daniel) Date: Mon, 3 Mar 2003 09:37:11 -0600 Subject: [Mapserver-users] Site Demo / Critique Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035AADBDD2@STL-EXBE-I03.corp.erac.com> Dave, Sorry, I was gone Friday by the time your message came in. The javascript error no longer happens. -Dan > -----Original Message----- > From: Lowther, David W [mailto:dlowther@ou.edu] > Sent: Friday, February 28, 2003 6:07 PM > To: Martin, Daniel; Lowther, David W; 'Mapserver-Users > (mapserver-users@lists.gis.umn.edu) ' > Subject: RE: [Mapserver-users] Site Demo / Critique > > > Dan, > > Thanks for the kinds words and the bugs. Do you get that > error still? The > line was commented out when I got to it, but someone here may > have beaten me > to the punch. > > I haven't been able to figure out how to keep mapplet from > allowing a box at > any time, but I also haven't spent any time on it as we are > trying to get > off the java app and into DHTML - phase next. We should be > able to deal with > it there. > > Probably should reign that legend width in... > > As far as the label check goes, it comes as a result of a > deep homage I have > paid to the HTML Legend supreme being(s). And, I am using the > legend_order > strictly to make sure that my labels directly follow my > layers. That way > when I come around to the label I have left the TD open. I > also make sure > that my label layers are named the same as my features like roads and > roads_anno. Since I write the checkbox with the feature. I have also > included metadata like NoLabels for the feature layers that > don't have any > labels. I did the same thing for the ID (NoID). One thing > that sure would > make HTML Legends easier is the inclusion of an [else] / > [elseif] tag. Maybe > I should file a feature request. > > Dave > > -----Original Message----- > From: Martin, Daniel > To: 'Lowther, David W'; Mapserver-Users > (mapserver-users@lists.gis.umn.edu) > Sent: 2/28/03 5:39 PM > Subject: RE: [Mapserver-users] Site Demo / Critique > > Looks good. I like the interface you've built, and I love the many, > many options you offer. I also like the label checkbox. I'm not even > quite sure how to do that (with pure-CGI) but I'd like to know. > > Problems: > 1) IE 5.5 is reporting > "'parent.legend.document.mapserv.map_gradysqlRoads_data' is > null or not > an object." in this line: > parent.legend.document.mapserv.map_gradysqlRoads_data.value=to > p.document > .Master.map_gradysqlRoads_data.value; > 2) In a very large window the checkbox legend area expands with the > window...probably in a way you don't intend. It ends up putting the > right set of checkboxes quite far to the right. > 3) It wasn't quite obvious to me what the radio buttons were for. > Eventually I figured out they control the query layer. > 4) Query mode allows you to draw a box, but the query fails > (perhaps it > should be using nquery when a rectangle is drawn?). > > -Dan Martin > > > > -----Original Message----- > From: Lowther, David W [mailto:dlowther@ou.edu] > Sent: Friday, February 28, 2003 3:33 PM > To: Mapserver-Users (mapserver-users@lists.gis.umn.edu) > Subject: [Mapserver-users] Site Demo / Critique > > > > List, > > Thanks to all your help over the past few months we're in the final > stages of testing our first large Mapserver effort. > > Please offer your comments / critique of the following site: > > > http://129.15.172.20/okstatedemo.htm > > Thanks, > > David Lowther > Software Engineer > GEO Information Systems > University of Oklahoma > dlowther@ou.edu > (405) 325-3131 > http://www.geo.ou.edu > > > From mjhatcher@space.qinetiq.com Mon Mar 3 15:37:31 2003 From: mjhatcher@space.qinetiq.com (Matt Hatcher) Date: Mon, 3 Mar 2003 15:37:31 -0000 Subject: [Mapserver-users] TAB to WLD conversion Message-ID: <005f01c2e19a$ce2ffda0$0101a8c0@blaze> This is a multi-part message in MIME format. ------=_NextPart_000_0060_01C2E19A.CE2FFDA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi there, I've got a number of rasters that are georeferenced using the MapInfo TAB method. Is there any software that anyone knows of which will convert these TAB files into WLD or TFW files for use with MapServer (and other software)? Cheers, Matt ------=_NextPart_000_0060_01C2E19A.CE2FFDA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Hi=20 there,
 
I've = got a number of=20 rasters that are georeferenced using the MapInfo TAB = method.
 
Is = there any=20 software that anyone knows of which will convert these TAB files into = WLD or TFW=20 files for use with MapServer (and other software)?
 
Cheers,
Matt
 
------=_NextPart_000_0060_01C2E19A.CE2FFDA0-- From pagurekd@agr.gc.ca Mon Mar 3 16:14:21 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Mon, 03 Mar 2003 11:14:21 -0500 Subject: [Mapserver-users] featurequery question Message-ID: I am experimenting with FEATUREQUERY - my qlayer is ecodistricts and my slayer is Ecozones. I am getting a list of ecodistricts as expected, however some of the ecodistricts fall outside of the selected ecozone. I have tried setting the tolerance on both layers to 0, but if I do that I get a msQueryByPoint(): Search returned no results. No matching record(s) found error. How do I make sure that the only ecodistricts found are the ones inside the ecozone and not adjacent to it? Thanks for any pointers anyone can send my way. D. Pagurek From pramsey@refractions.net Mon Mar 3 16:41:12 2003 From: pramsey@refractions.net (Paul Ramsey) Date: Mon, 03 Mar 2003 08:41:12 -0800 Subject: [Mapserver-users] Installing Map Server on Mac OS X In-Reply-To: <7A6F6DAA-48D2-11D7-8260-003065C58DE6@ifrance.com> References: <7A6F6DAA-48D2-11D7-8260-003065C58DE6@ifrance.com> Message-ID: <3E6385A8.304@refractions.net> Have you installed proj4? Your compile is dying at a missing proj4 function. Paul M-Rick wrote: > Hi have tried to compile it following the instruction on this page : > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS > > I have first, installed PostgreSQL and MySQL, GD, and libtiff. But the > problem comes when I try to compile gdal 1.1.7 > > i have done the manipulation in the gdalmake.opt > > but I get these errors when I do the make command : > > * > ogrct.cpp:420: `DEG_TO_RAD' undeclared (first use this function) > ogrct.cpp:468: `RAD_TO_DEG' undeclared (first use this function) > ogrct.cpp: At top level: > ogrct.cpp:99: warning: `int projPJ(int, char**)' used but never defined > ogrct.cpp:101: warning: `int projUV' defined but not used > make[1]: *** [ogrct.o] Error 1 > make: *** [ogr-target] Error 2 > [Ordinateur-de-Aymeric-GILLAIZEAU:~/Desktop/gdal-1.1.7] > > > I can give the ./configure log file and the make log file if needed. > > I'm using Mac OS X 10.2.4 + GCC 3.1 + Apple X11 + Freetype 6.3.3 > > I don't know ho to build the proj. > > Thank you for your help. > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- __ / | Paul Ramsey | Refractions Research | Email: pramsey@refractions.net | Phone: (250) 885-0632 \_ From millardymecki@sympatico.ca Mon Mar 3 16:41:35 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 11:41:35 -0500 Subject: [Mapserver-users] lat lon References: <13858AA1A74F30419F319ACB66A9D1221F3E6D@mercator.topozone.com> Message-ID: <00b401c2e1a3$c1a54d70$f098fea9@pauls> Hi Ed, Sorry for a silly question but how would i know if i have proj support or not under windows? I know i have proj support from mapscript (ie my php_proj.dll is installed and running) but not sure of mapserver? thx, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" Cc: Sent: Monday, March 03, 2003 9:47 AM Subject: RE: [Mapserver-users] lat lon Paul - 1. Please try to reply to the whole list, since someone else might be able to answer your question better or more quickly than I can. 2. What projection is that EPSG code describing? I cannot find an EPSG code of 42304 in any of my EPSG tables - are you sure it's correct? Does this projection have a common name? 3. Remember that what you've said (in this map file) is that the TIFF file is of the same projection as the output image. As long as the georeference data for the TIFF matches the extents requested, you'll get a map. If you're using a TIFF with world file it's very easy to have the projection completely wrong but still get a "correct" map. But other layers won't project properly on to it. 4. Do you have MapServer built with PROJ support? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:26 AM To: Ed McNierney Subject: Re: [Mapserver-users] lat lon Hi Ed, My tiff is already displaying properly with (init=epsg:42304) but getting any lat/long data added is proving difficult to say the least. Here is the first part of my map file with "Eman-sites" being the lat/long data(last layer) Paul MAP NAME "MAP OF CANADA" STATUS ON EXTENT -2200000 -712631 3072800 3840000 SIZE 400 300 #SHAPEPATH "./data/" SHAPEPATH "C:\2.0rc3\tutorial\data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" #IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS # # Start of web interface definition # WEB MINSCALE 2000000 MAXSCALE 50000000 IMAGEPATH "C:/temp/" IMAGEURL "/ms_tmp/" # LOG "/tmp/gmap.log" END # # Start of reference object (keymap) # REFERENCE STATUS ON IMAGE "images/keymap.gif" SIZE 100 75 EXTENT -2200000 -712631 3072800 3840000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of querymap object # QUERYMAP COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:42304" END # # Start of legend object # LEGEND STATUS ON KEYSIZE 18 12 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # # Start of scalebar object # SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS kilometers INTERVALS 5 SIZE 150 5 LABEL SIZE SMALL COLOR 0 0 0 END END LAYER NAME "bathymetry" STATUS ON DATA "bath_mapserver.tif" TYPE RASTER TEMPLATE "ttt.html" END NAME "Eman-sites" STATUS ON DATA "sites.shp" TYPE POINT UNITS METERS SIZEUNITS METERS LABELITEM "Name" TOLERANCE 5 TOLERANCEUNITS PIXELS TRANSFORM TRUE TEMPLATE "ttt.html" PROJECTION "proj=longlat" "ellps=GRS80" "unit=dd" "no_defs" "" END CLASS NAME "site" SYMBOL 2 COLOR 255 51 102 SIZE 7 MINSIZE 1 MAXSIZE 100 END END ----- Original Message ----- From: Ed McNierney To: Paul Dymecki ; MapServer List (E-mail) Sent: Monday, March 03, 2003 9:10 AM Subject: RE: [Mapserver-users] lat lon Paul - You need to know all the details of your TIFF's projection, so you can specify it completely. Are you using one or two standard parallels for your LCC? You need the lat and lon of the origin, the scale factor, any false easting & northing, etc. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:05 AM To: MapServer List (E-mail) Subject: [Mapserver-users] lat lon Hello all, I'm trying to display lat/long point data ontop of a tiff and was wondering what should be the projection object for this layer would be?. My map projection is lcc. thx, Paul From ed@topozone.com Mon Mar 3 16:43:34 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Mar 2003 11:43:34 -0500 Subject: [Mapserver-users] lat lon Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E72@mercator.topozone.com> >From a command prompt, run "mapserv -v" and look for "SUPPORTS=PROJ" in the message that's printed. - Ed -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 11:42 AM To: Ed McNierney Cc: Mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] lat lon Hi Ed, Sorry for a silly question but how would i know if i have proj support or not under windows? I know i have proj support from mapscript (ie my php_proj.dll is installed and running) but not sure of mapserver? thx, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" Cc: Sent: Monday, March 03, 2003 9:47 AM Subject: RE: [Mapserver-users] lat lon Paul - 1. Please try to reply to the whole list, since someone else might be able to answer your question better or more quickly than I can. 2. What projection is that EPSG code describing? I cannot find an EPSG code of 42304 in any of my EPSG tables - are you sure it's correct? Does this projection have a common name? 3. Remember that what you've said (in this map file) is that the TIFF file is of the same projection as the output image. As long as the georeference data for the TIFF matches the extents requested, you'll get a map. If you're using a TIFF with world file it's very easy to have the projection completely wrong but still get a "correct" map. But other layers won't project properly on to it. 4. Do you have MapServer built with PROJ support? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:26 AM To: Ed McNierney Subject: Re: [Mapserver-users] lat lon Hi Ed, My tiff is already displaying properly with (init=epsg:42304) but getting any lat/long data added is proving difficult to say the least. Here is the first part of my map file with "Eman-sites" being the lat/long data(last layer) Paul MAP NAME "MAP OF CANADA" STATUS ON EXTENT -2200000 -712631 3072800 3840000 SIZE 400 300 #SHAPEPATH "./data/" SHAPEPATH "C:\2.0rc3\tutorial\data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" #IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS # # Start of web interface definition # WEB MINSCALE 2000000 MAXSCALE 50000000 IMAGEPATH "C:/temp/" IMAGEURL "/ms_tmp/" # LOG "/tmp/gmap.log" END # # Start of reference object (keymap) # REFERENCE STATUS ON IMAGE "images/keymap.gif" SIZE 100 75 EXTENT -2200000 -712631 3072800 3840000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of querymap object # QUERYMAP COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:42304" END # # Start of legend object # LEGEND STATUS ON KEYSIZE 18 12 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # # Start of scalebar object # SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS kilometers INTERVALS 5 SIZE 150 5 LABEL SIZE SMALL COLOR 0 0 0 END END LAYER NAME "bathymetry" STATUS ON DATA "bath_mapserver.tif" TYPE RASTER TEMPLATE "ttt.html" END NAME "Eman-sites" STATUS ON DATA "sites.shp" TYPE POINT UNITS METERS SIZEUNITS METERS LABELITEM "Name" TOLERANCE 5 TOLERANCEUNITS PIXELS TRANSFORM TRUE TEMPLATE "ttt.html" PROJECTION "proj=longlat" "ellps=GRS80" "unit=dd" "no_defs" "" END CLASS NAME "site" SYMBOL 2 COLOR 255 51 102 SIZE 7 MINSIZE 1 MAXSIZE 100 END END ----- Original Message ----- From: Ed McNierney To: Paul Dymecki ; MapServer List (E-mail) Sent: Monday, March 03, 2003 9:10 AM Subject: RE: [Mapserver-users] lat lon Paul - You need to know all the details of your TIFF's projection, so you can specify it completely. Are you using one or two standard parallels for your LCC? You need the lat and lon of the origin, the scale factor, any false easting & northing, etc. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 9:05 AM To: MapServer List (E-mail) Subject: [Mapserver-users] lat lon Hello all, I'm trying to display lat/long point data ontop of a tiff and was wondering what should be the projection object for this layer would be?. My map projection is lcc. thx, Paul From millardymecki@sympatico.ca Mon Mar 3 16:58:30 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 11:58:30 -0500 Subject: [Mapserver-users] lat lon References: <13858AA1A74F30419F319ACB66A9D1221F3E72@mercator.topozone.com> Message-ID: <00e401c2e1a6$1e50fcc0$f098fea9@pauls> Yup i've it's supported so that's not the prob, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" Cc: Sent: Monday, March 03, 2003 11:43 AM Subject: RE: [Mapserver-users] lat lon > From a command prompt, run "mapserv -v" and look for "SUPPORTS=PROJ" in the message that's printed. > > - Ed > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 11:42 AM > To: Ed McNierney > Cc: Mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] lat lon > > > Hi Ed, > Sorry for a silly question but how would i know if i have proj support > or not under windows? I know i have proj support from mapscript (ie my > php_proj.dll is installed and running) but not sure of mapserver? > thx, > Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" > Cc: > Sent: Monday, March 03, 2003 9:47 AM > Subject: RE: [Mapserver-users] lat lon > > > Paul - > > 1. Please try to reply to the whole list, since someone else might be able > to answer your question better or more quickly than I can. > > 2. What projection is that EPSG code describing? I cannot find an EPSG code > of 42304 in any of my EPSG tables - are you sure it's correct? Does this > projection have a common name? > > 3. Remember that what you've said (in this map file) is that the TIFF file > is of the same projection as the output image. As long as the georeference > data for the TIFF matches the extents requested, you'll get a map. If > you're using a TIFF with world file it's very easy to have the projection > completely wrong but still get a "correct" map. But other layers won't > project properly on to it. > > 4. Do you have MapServer built with PROJ support? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed@topozone.com > (978) 251-4242 > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 9:26 AM > To: Ed McNierney > Subject: Re: [Mapserver-users] lat lon > > > Hi Ed, > My tiff is already displaying properly with (init=epsg:42304) but > getting any lat/long data added is proving difficult to say the least. > Here is the first part of my map file with "Eman-sites" being the lat/long > data(last layer) > Paul > > > MAP > > NAME "MAP OF CANADA" > > STATUS ON > > EXTENT -2200000 -712631 3072800 3840000 > > SIZE 400 300 > > #SHAPEPATH "./data/" > > SHAPEPATH "C:\2.0rc3\tutorial\data" > > SYMBOLSET "./etc/symbols.sym" > > FONTSET "./etc/fonts.txt" > > #IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > UNITS METERS > > # > > # Start of web interface definition > > # > > WEB > > MINSCALE 2000000 > > MAXSCALE 50000000 > > IMAGEPATH "C:/temp/" > > IMAGEURL "/ms_tmp/" > > # LOG "/tmp/gmap.log" > > END > > # > > # Start of reference object (keymap) > > # > > REFERENCE > > STATUS ON > > IMAGE "images/keymap.gif" > > SIZE 100 75 > > EXTENT -2200000 -712631 3072800 3840000 > > COLOR -1 -1 -1 > > OUTLINECOLOR 255 0 0 > > END > > # > > # Start of querymap object > > # > > QUERYMAP > > COLOR 255 0 0 > > STYLE HILITE > > END > > PROJECTION > > "init=epsg:42304" > > END > > # > > # Start of legend object > > # > > LEGEND > > STATUS ON > > KEYSIZE 18 12 > > TEMPLATE "ttt" > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > END > > # > > # Start of scalebar object > > # > > SCALEBAR > > STATUS ON > > COLOR 255 255 255 > > OUTLINECOLOR 0 0 0 > > BACKGROUNDCOLOR 0 0 0 > > IMAGECOLOR 255 255 255 > > UNITS kilometers > > INTERVALS 5 > > SIZE 150 5 > > LABEL > > SIZE SMALL > > COLOR 0 0 0 > > END > > END > > LAYER > > NAME "bathymetry" > > STATUS ON > > DATA "bath_mapserver.tif" > > TYPE RASTER > > TEMPLATE "ttt.html" > > END > > NAME "Eman-sites" > > STATUS ON > > DATA "sites.shp" > > TYPE POINT > > UNITS METERS > > SIZEUNITS METERS > > LABELITEM "Name" > > TOLERANCE 5 > > TOLERANCEUNITS PIXELS > > TRANSFORM TRUE > > TEMPLATE "ttt.html" > > PROJECTION > > "proj=longlat" > > "ellps=GRS80" > > "unit=dd" > > "no_defs" > > "" > > END > > CLASS > > NAME "site" > > SYMBOL 2 > > COLOR 255 51 102 > > SIZE 7 > > MINSIZE 1 > > MAXSIZE 100 > > END > > END > > > > > ----- Original Message ----- > From: Ed McNierney > To: Paul Dymecki ; MapServer List (E-mail) > Sent: Monday, March 03, 2003 9:10 AM > Subject: RE: [Mapserver-users] lat lon > > > Paul - > > You need to know all the details of your TIFF's projection, so you can > specify it completely. Are you using one or two standard parallels for your > LCC? You need the lat and lon of the origin, the scale factor, any false > easting & northing, etc. > > - Ed > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed@topozone.com > (978) 251-4242 > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 9:05 AM > To: MapServer List (E-mail) > Subject: [Mapserver-users] lat lon > > > Hello all, > I'm trying to display lat/long point data ontop of a tiff and was > wondering what should be the projection object for this layer would be?. > My map projection is lcc. > thx, > Paul > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From ed@topozone.com Mon Mar 3 17:13:45 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Mar 2003 12:13:45 -0500 Subject: [Mapserver-users] lat lon Message-ID: <13858AA1A74F30419F319ACB66A9D12201960F@mercator.topozone.com> Paul - This is a bit of a shot in the dark, but in your PROJECTION block for the lat/lon data, take out the "unit=dd" statement. It's not needed (and should be UNITS (plural) anyway) and might be breaking the projection. You also don't seem to have a LAYER block surrounding the layer definition for your lat/lon data - but that should give you a map file parsing error. Is your map file correct? - Ed -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 11:59 AM To: Ed McNierney Cc: Mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] lat lon Yup i've it's supported so that's not the prob, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" Cc: Sent: Monday, March 03, 2003 11:43 AM Subject: RE: [Mapserver-users] lat lon > From a command prompt, run "mapserv -v" and look for "SUPPORTS=PROJ" in the message that's printed. > > - Ed > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 11:42 AM > To: Ed McNierney > Cc: Mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] lat lon > > > Hi Ed, > Sorry for a silly question but how would i know if i have proj support > or not under windows? I know i have proj support from mapscript (ie my > php_proj.dll is installed and running) but not sure of mapserver? > thx, > Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" > Cc: > Sent: Monday, March 03, 2003 9:47 AM > Subject: RE: [Mapserver-users] lat lon > > > Paul - > > 1. Please try to reply to the whole list, since someone else might be able > to answer your question better or more quickly than I can. > > 2. What projection is that EPSG code describing? I cannot find an EPSG code > of 42304 in any of my EPSG tables - are you sure it's correct? Does this > projection have a common name? > > 3. Remember that what you've said (in this map file) is that the TIFF file > is of the same projection as the output image. As long as the georeference > data for the TIFF matches the extents requested, you'll get a map. If > you're using a TIFF with world file it's very easy to have the projection > completely wrong but still get a "correct" map. But other layers won't > project properly on to it. > > 4. Do you have MapServer built with PROJ support? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed@topozone.com > (978) 251-4242 > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 9:26 AM > To: Ed McNierney > Subject: Re: [Mapserver-users] lat lon > > > Hi Ed, > My tiff is already displaying properly with (init=epsg:42304) but > getting any lat/long data added is proving difficult to say the least. > Here is the first part of my map file with "Eman-sites" being the lat/long > data(last layer) > Paul > > > MAP > > NAME "MAP OF CANADA" > > STATUS ON > > EXTENT -2200000 -712631 3072800 3840000 > > SIZE 400 300 > > #SHAPEPATH "./data/" > > SHAPEPATH "C:\2.0rc3\tutorial\data" > > SYMBOLSET "./etc/symbols.sym" > > FONTSET "./etc/fonts.txt" > > #IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > UNITS METERS > > # > > # Start of web interface definition > > # > > WEB > > MINSCALE 2000000 > > MAXSCALE 50000000 > > IMAGEPATH "C:/temp/" > > IMAGEURL "/ms_tmp/" > > # LOG "/tmp/gmap.log" > > END > > # > > # Start of reference object (keymap) > > # > > REFERENCE > > STATUS ON > > IMAGE "images/keymap.gif" > > SIZE 100 75 > > EXTENT -2200000 -712631 3072800 3840000 > > COLOR -1 -1 -1 > > OUTLINECOLOR 255 0 0 > > END > > # > > # Start of querymap object > > # > > QUERYMAP > > COLOR 255 0 0 > > STYLE HILITE > > END > > PROJECTION > > "init=epsg:42304" > > END > > # > > # Start of legend object > > # > > LEGEND > > STATUS ON > > KEYSIZE 18 12 > > TEMPLATE "ttt" > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > END > > # > > # Start of scalebar object > > # > > SCALEBAR > > STATUS ON > > COLOR 255 255 255 > > OUTLINECOLOR 0 0 0 > > BACKGROUNDCOLOR 0 0 0 > > IMAGECOLOR 255 255 255 > > UNITS kilometers > > INTERVALS 5 > > SIZE 150 5 > > LABEL > > SIZE SMALL > > COLOR 0 0 0 > > END > > END > > LAYER > > NAME "bathymetry" > > STATUS ON > > DATA "bath_mapserver.tif" > > TYPE RASTER > > TEMPLATE "ttt.html" > > END > > NAME "Eman-sites" > > STATUS ON > > DATA "sites.shp" > > TYPE POINT > > UNITS METERS > > SIZEUNITS METERS > > LABELITEM "Name" > > TOLERANCE 5 > > TOLERANCEUNITS PIXELS > > TRANSFORM TRUE > > TEMPLATE "ttt.html" > > PROJECTION > > "proj=longlat" > > "ellps=GRS80" > > "unit=dd" > > "no_defs" > > "" > > END > > CLASS > > NAME "site" > > SYMBOL 2 > > COLOR 255 51 102 > > SIZE 7 > > MINSIZE 1 > > MAXSIZE 100 > > END > > END > > > > > ----- Original Message ----- > From: Ed McNierney > To: Paul Dymecki ; MapServer List (E-mail) > Sent: Monday, March 03, 2003 9:10 AM > Subject: RE: [Mapserver-users] lat lon > > > Paul - > > You need to know all the details of your TIFF's projection, so you can > specify it completely. Are you using one or two standard parallels for your > LCC? You need the lat and lon of the origin, the scale factor, any false > easting & northing, etc. > > - Ed > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed@topozone.com > (978) 251-4242 > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 9:05 AM > To: MapServer List (E-mail) > Subject: [Mapserver-users] lat lon > > > Hello all, > I'm trying to display lat/long point data ontop of a tiff and was > wondering what should be the projection object for this layer would be?. > My map projection is lcc. > thx, > Paul > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From nida@webstar.co.uk Mon Mar 3 17:09:55 2003 From: nida@webstar.co.uk (nida Khan) Date: Mon, 3 Mar 2003 17:09:55 -0000 Subject: [Mapserver-users] Railroad Symbol References: Message-ID: <01e401c2e1a7$b7de9180$a901a8c0@private.webstar.co.uk> as we are talking about symbols so I thought I can ask my little question as well :). anyone have a symbol of crescent/moon??? Kind Regards Nida. ----- Original Message ----- From: "Fawcett, David" To: ; Sent: Tuesday, February 25, 2003 8:41 PM Subject: RE: [Mapserver-users] Railroad Symbol > I have added it to the Symbol Examples page of the Wiki. > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples > > Anyone else with common or creative examples of MapServer symbology, please post your examples there. > > David. > > > David J. Fawcett > GIS / Databases > > MN Office of Environmental Assistance > 520 Lafayette Rd N > St. Paul, MN 55155 > 651.215.0200 > > > > ---------- > > From: TCHaddad[SMTP:TCHaddad@cshore.com] > > Reply To: TCHaddad@cshore.com > > Sent: Tuesday, February 25, 2003 2:18 PM > > To: mapserver-users@lists.gis.umn.edu > > Subject: [Mapserver-users] Railroad Symbol > > > > > > For the benefit of the archives, this is also a working railroad symbol definition: > > > > > > SYMBOL 'line' > > SIZE 1 > > OVERLAYSYMBOL 'tie' > > OVERLAYSIZE 3 > > > > > > where: > > > > Symbol > > NAME 'line' > > TYPE ellipse > > FILLED true > > POINTS > > 1 1 > > END > > END > > > > Symbol > > NAME 'tie' > > TYPE Ellipse > > FILLED TRUE > > POINTS 1 1 END > > STYLE 1 3 END > > END > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From bhudspeth@edac.unm.edu Mon Mar 3 17:18:44 2003 From: bhudspeth@edac.unm.edu (Hudspeth, Bill) Date: Mon, 3 Mar 2003 10:18:44 -0700 Subject: [Mapserver-users] Single and Multiple Queries with PHP scripting Message-ID: <11614435747E07459B12D835E36630D602BFA0@gonzalo.unm.edu> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2E1A8.F1805530 Content-Type: text/plain; charset="iso-8859-1" Hello all, Does anyone have code and/or explanation on how to construct single and multiple queries on layer features using PHP Mapscript? Thanks much, Bill ********************************************************************* ********************************************************************* William Hudspeth, PhD Earth Data Analysis Center 107 Bandelier Hall West University of New Mexico Albuquerque, NM 87131 (505) 277-3622, ext. 238 bhudspeth@edac.unm.edu wbhk@unm.edu ------_=_NextPart_001_01C2E1A8.F1805530 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Single and Multiple Queries with PHP scripting

Hello all,

Does anyone have code and/or = explanation on how to construct single and multiple queries on layer = features using PHP Mapscript?

Thanks much,

Bill

*********************************************************= ************
*********************************************************= ************
William Hudspeth, PhD
Earth Data Analysis Center
107 Bandelier Hall West
University of New Mexico
Albuquerque, NM  87131
(505) 277-3622, ext. 238
bhudspeth@edac.unm.edu
wbhk@unm.edu

------_=_NextPart_001_01C2E1A8.F1805530-- From millardymecki@sympatico.ca Mon Mar 3 17:36:24 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 12:36:24 -0500 Subject: [Mapserver-users] lat lon References: <13858AA1A74F30419F319ACB66A9D12201960F@mercator.topozone.com> Message-ID: <00f601c2e1ab$6a310590$f098fea9@pauls> Hi Ed, I actually just tested the layer in a mapfile on it's own and can't display, so think there might be something wrong with the data, although it shows up fine in ESRI's arcExplorer. Here is some output of doing a shpdump on the shp file: Shapefile Type: Point # of Shapes: 73 File Bounds: ( -139.450, 42.030,0,0) to ( 79.350, 82.130,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( -116.020, 50.570, 0, 0) to ( -116.020, 50.570, 0, 0) ( -116.020, 50.570, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( -81.240, 46.010, 0, 0) to ( -81.240, 46.010, 0, 0) ( -81.240, 46.010, 0, 0) ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" Cc: Sent: Monday, March 03, 2003 12:13 PM Subject: RE: [Mapserver-users] lat lon > Paul - > > This is a bit of a shot in the dark, but in your PROJECTION block for the lat/lon data, take out the "unit=dd" statement. It's not needed (and should be UNITS (plural) anyway) and might be breaking the projection. > > You also don't seem to have a LAYER block surrounding the layer definition for your lat/lon data - but that should give you a map file parsing error. Is your map file correct? > > - Ed > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 11:59 AM > To: Ed McNierney > Cc: Mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] lat lon > > > Yup i've it's supported so that's not the prob, > Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" > Cc: > Sent: Monday, March 03, 2003 11:43 AM > Subject: RE: [Mapserver-users] lat lon > > > > From a command prompt, run "mapserv -v" and look for "SUPPORTS=PROJ" in > the message that's printed. > > > > - Ed > > > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 11:42 AM > > To: Ed McNierney > > Cc: Mapserver-users@lists.gis.umn.edu > > Subject: Re: [Mapserver-users] lat lon > > > > > > Hi Ed, > > Sorry for a silly question but how would i know if i have proj support > > or not under windows? I know i have proj support from mapscript (ie my > > php_proj.dll is installed and running) but not sure of mapserver? > > thx, > > Paul > > ----- Original Message ----- > > From: "Ed McNierney" > > To: "Paul Dymecki" > > Cc: > > Sent: Monday, March 03, 2003 9:47 AM > > Subject: RE: [Mapserver-users] lat lon > > > > > > Paul - > > > > 1. Please try to reply to the whole list, since someone else might be able > > to answer your question better or more quickly than I can. > > > > 2. What projection is that EPSG code describing? I cannot find an EPSG > code > > of 42304 in any of my EPSG tables - are you sure it's correct? Does this > > projection have a common name? > > > > 3. Remember that what you've said (in this map file) is that the TIFF file > > is of the same projection as the output image. As long as the > georeference > > data for the TIFF matches the extents requested, you'll get a map. If > > you're using a TIFF with world file it's very easy to have the projection > > completely wrong but still get a "correct" map. But other layers won't > > project properly on to it. > > > > 4. Do you have MapServer built with PROJ support? > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed@topozone.com > > (978) 251-4242 > > > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 9:26 AM > > To: Ed McNierney > > Subject: Re: [Mapserver-users] lat lon > > > > > > Hi Ed, > > My tiff is already displaying properly with (init=epsg:42304) but > > getting any lat/long data added is proving difficult to say the least. > > Here is the first part of my map file with "Eman-sites" being the lat/long > > data(last layer) > > Paul > > > > > > MAP > > > > NAME "MAP OF CANADA" > > > > STATUS ON > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > SIZE 400 300 > > > > #SHAPEPATH "./data/" > > > > SHAPEPATH "C:\2.0rc3\tutorial\data" > > > > SYMBOLSET "./etc/symbols.sym" > > > > FONTSET "./etc/fonts.txt" > > > > #IMAGETYPE PNG > > > > IMAGECOLOR 255 255 255 > > > > UNITS METERS > > > > # > > > > # Start of web interface definition > > > > # > > > > WEB > > > > MINSCALE 2000000 > > > > MAXSCALE 50000000 > > > > IMAGEPATH "C:/temp/" > > > > IMAGEURL "/ms_tmp/" > > > > # LOG "/tmp/gmap.log" > > > > END > > > > # > > > > # Start of reference object (keymap) > > > > # > > > > REFERENCE > > > > STATUS ON > > > > IMAGE "images/keymap.gif" > > > > SIZE 100 75 > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > COLOR -1 -1 -1 > > > > OUTLINECOLOR 255 0 0 > > > > END > > > > # > > > > # Start of querymap object > > > > # > > > > QUERYMAP > > > > COLOR 255 0 0 > > > > STYLE HILITE > > > > END > > > > PROJECTION > > > > "init=epsg:42304" > > > > END > > > > # > > > > # Start of legend object > > > > # > > > > LEGEND > > > > STATUS ON > > > > KEYSIZE 18 12 > > > > TEMPLATE "ttt" > > > > LABEL > > > > TYPE BITMAP > > > > SIZE MEDIUM > > > > COLOR 0 0 89 > > > > END > > > > END > > > > # > > > > # Start of scalebar object > > > > # > > > > SCALEBAR > > > > STATUS ON > > > > COLOR 255 255 255 > > > > OUTLINECOLOR 0 0 0 > > > > BACKGROUNDCOLOR 0 0 0 > > > > IMAGECOLOR 255 255 255 > > > > UNITS kilometers > > > > INTERVALS 5 > > > > SIZE 150 5 > > > > LABEL > > > > SIZE SMALL > > > > COLOR 0 0 0 > > > > END > > > > END > > > > LAYER > > > > NAME "bathymetry" > > > > STATUS ON > > > > DATA "bath_mapserver.tif" > > > > TYPE RASTER > > > > TEMPLATE "ttt.html" > > > > END > > > > NAME "Eman-sites" > > > > STATUS ON > > > > DATA "sites.shp" > > > > TYPE POINT > > > > UNITS METERS > > > > SIZEUNITS METERS > > > > LABELITEM "Name" > > > > TOLERANCE 5 > > > > TOLERANCEUNITS PIXELS > > > > TRANSFORM TRUE > > > > TEMPLATE "ttt.html" > > > > PROJECTION > > > > "proj=longlat" > > > > "ellps=GRS80" > > > > "unit=dd" > > > > "no_defs" > > > > "" > > > > END > > > > CLASS > > > > NAME "site" > > > > SYMBOL 2 > > > > COLOR 255 51 102 > > > > SIZE 7 > > > > MINSIZE 1 > > > > MAXSIZE 100 > > > > END > > > > END > > > > > > > > > > ----- Original Message ----- > > From: Ed McNierney > > To: Paul Dymecki ; MapServer List (E-mail) > > Sent: Monday, March 03, 2003 9:10 AM > > Subject: RE: [Mapserver-users] lat lon > > > > > > Paul - > > > > You need to know all the details of your TIFF's projection, so you can > > specify it completely. Are you using one or two standard parallels for > your > > LCC? You need the lat and lon of the origin, the scale factor, any false > > easting & northing, etc. > > > > - Ed > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed@topozone.com > > (978) 251-4242 > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 9:05 AM > > To: MapServer List (E-mail) > > Subject: [Mapserver-users] lat lon > > > > > > Hello all, > > I'm trying to display lat/long point data ontop of a tiff and was > > wondering what should be the projection object for this layer would be?. > > My map projection is lcc. > > thx, > > Paul > > > > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Mon Mar 3 18:03:12 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 03 Mar 2003 13:03:12 -0500 Subject: [Mapserver-users] shapefile programming Message-ID: <200303031803.h23I38R01679@yogi.medinaco.net> Sounds like a good case for an example so the perl mapscript program to do just that is at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex15 HTH Lowell F. The following message was sent by John Hagstrand on Sun, 02 Mar 2003 13:01:21 -0600. > Hi, > > I need a program or programmer to manipulate a Shapefile. > > I want to pull the bounding box out of the SHP file and put it in the DBF > file. > > You see what I mean? I want to add four columns to the DBF file: north, > south, east and west. And I want to populate those four fields to indicate > the boundary of each object. > > Do you know of a utility program that will do this? If not, do you know a > programmer who will write me such a utility program for a fee? > > Thanks > John > > ------------------------------------------------- > John Hagstrand > Interage Research, Inc. > 847 838 5371 > Software Development Consulting for Internet Content Management > We make knowledge accessible, useful, and relevant for everyone. > http://www.interageresearch.com > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From vinko@cprsig.cl Mon Mar 3 18:18:08 2003 From: vinko@cprsig.cl (Vinko Vrsalovic) Date: Mon, 3 Mar 2003 15:18:08 -0300 Subject: [Mapserver-users] Single and Multiple Queries with PHP scripting In-Reply-To: <11614435747E07459B12D835E36630D602BFA0@gonzalo.unm.edu> References: <11614435747E07459B12D835E36630D602BFA0@gonzalo.unm.edu> Message-ID: <20030303181808.GA16951@landsat.cprsig.cl> On Mon, Mar 03, 2003 at 10:18:44AM -0700, Hudspeth, Bill wrote: > Hello all, > > Does anyone have code and/or explanation on how to construct single and > multiple queries on layer features using PHP Mapscript? > The GMap demo has query examples... It's on DMSolutions site. http://www2.dmsolutions.ca/mapserver/dl/ If you also are doing some other stuff that might justify the use of PostGIS, go for it, I find it a lot more intuitive for us non-GIS techies to do the queries: "SELECT attrs FROM spatial_table WHERE && AND truly_inside(,)"; And because every table is a layer (well, not necessarily, but is probably the most common case) the multiple/single query issue is trivial to solve. Also you can do joins/subselects etc, and bring data from other sources that are not present on the spatial table. -- Vinko Vrsalovic http://www.cprsig.cl From millardymecki@sympatico.ca Mon Mar 3 18:20:42 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 13:20:42 -0500 Subject: Fw: [Mapserver-users] lat lon Message-ID: <011901c2e1b1$9a2aea80$f098fea9@pauls> Hi Ed, I removed the point and also restricted my query to just pull 3 or 4 records that looked good, but no luck. It's strange that ESRI can view the shapes fine but other products like OpenEV and mapserverWorkbench can't. I'm thinking something in the format of the file is off so will start looking in that direction i guess. thanks in any case, Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" > Sent: Monday, March 03, 2003 12:52 PM > Subject: RE: [Mapserver-users] lat lon > > > Paul - > > Again, a guess - the "Credit River Watershed" data point seems to be bad > data. The longitude is positive and should be negative (I think). I'm > wondering if this is causing a projection problem since it's SO far from the > base point of the projection. Can you test with this point > corrected/removed? > > - Ed > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 12:46 PM > To: Ed McNierney > Subject: Re: [Mapserver-users] lat lon > > > Thanks a ton, > I just produced these shp files through mapscript(ie pulled the data > from oracle). > Paul, > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" > Sent: Monday, March 03, 2003 12:42 PM > Subject: RE: [Mapserver-users] lat lon > > > Paul - > > (off-list) > > If you can email me a copy of the shapefile I'll take a look at it. > > - Ed > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 12:36 PM > To: Ed McNierney > Cc: Mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] lat lon > > > Hi Ed, > I actually just tested the layer in a mapfile on it's own and can't > display, so think there might be something wrong with the data, although it > shows up fine in ESRI's arcExplorer. Here is some output of doing a shpdump > on the shp file: > > Shapefile Type: Point # of Shapes: 73 > File Bounds: ( -139.450, 42.030,0,0) > to ( 79.350, 82.130,0,0) > > Shape:0 (Point) nVertices=1, nParts=0 > Bounds:( -116.020, 50.570, 0, 0) > to ( -116.020, 50.570, 0, 0) > ( -116.020, 50.570, 0, 0) > > Shape:1 (Point) nVertices=1, nParts=0 > Bounds:( -81.240, 46.010, 0, 0) > to ( -81.240, 46.010, 0, 0) > ( -81.240, 46.010, 0, 0) > > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" > Cc: > Sent: Monday, March 03, 2003 12:13 PM > Subject: RE: [Mapserver-users] lat lon > > > > Paul - > > > > This is a bit of a shot in the dark, but in your PROJECTION block for the > lat/lon data, take out the "unit=dd" statement. It's not needed (and should > be UNITS (plural) anyway) and might be breaking the projection. > > > > You also don't seem to have a LAYER block surrounding the layer definition > for your lat/lon data - but that should give you a map file parsing error. > Is your map file correct? > > > > - Ed > > > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 11:59 AM > > To: Ed McNierney > > Cc: Mapserver-users@lists.gis.umn.edu > > Subject: Re: [Mapserver-users] lat lon > > > > > > Yup i've it's supported so that's not the prob, > > Paul > > ----- Original Message ----- > > From: "Ed McNierney" > > To: "Paul Dymecki" > > Cc: > > Sent: Monday, March 03, 2003 11:43 AM > > Subject: RE: [Mapserver-users] lat lon > > > > > > > From a command prompt, run "mapserv -v" and look for "SUPPORTS=PROJ" in > > the message that's printed. > > > > > > - Ed > > > > > > -----Original Message----- > > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > > Sent: Monday, March 03, 2003 11:42 AM > > > To: Ed McNierney > > > Cc: Mapserver-users@lists.gis.umn.edu > > > Subject: Re: [Mapserver-users] lat lon > > > > > > > > > Hi Ed, > > > Sorry for a silly question but how would i know if i have proj > support > > > or not under windows? I know i have proj support from mapscript (ie my > > > php_proj.dll is installed and running) but not sure of mapserver? > > > thx, > > > Paul > > > ----- Original Message ----- > > > From: "Ed McNierney" > > > To: "Paul Dymecki" > > > Cc: > > > Sent: Monday, March 03, 2003 9:47 AM > > > Subject: RE: [Mapserver-users] lat lon > > > > > > > > > Paul - > > > > > > 1. Please try to reply to the whole list, since someone else might be > able > > > to answer your question better or more quickly than I can. > > > > > > 2. What projection is that EPSG code describing? I cannot find an EPSG > > code > > > of 42304 in any of my EPSG tables - are you sure it's correct? Does > this > > > projection have a common name? > > > > > > 3. Remember that what you've said (in this map file) is that the TIFF > file > > > is of the same projection as the output image. As long as the > > georeference > > > data for the TIFF matches the extents requested, you'll get a map. If > > > you're using a TIFF with world file it's very easy to have the > projection > > > completely wrong but still get a "correct" map. But other layers won't > > > project properly on to it. > > > > > > 4. Do you have MapServer built with PROJ support? > > > > > > - Ed > > > > > > Ed McNierney > > > President and Chief Mapmaker > > > TopoZone.com / Maps a la carte, Inc. > > > 73 Princeton Street, Suite 305 > > > North Chelmsford, MA 01863 > > > ed@topozone.com > > > (978) 251-4242 > > > > > > -----Original Message----- > > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > > Sent: Monday, March 03, 2003 9:26 AM > > > To: Ed McNierney > > > Subject: Re: [Mapserver-users] lat lon > > > > > > > > > Hi Ed, > > > My tiff is already displaying properly with (init=epsg:42304) but > > > getting any lat/long data added is proving difficult to say the least. > > > Here is the first part of my map file with "Eman-sites" being the > lat/long > > > data(last layer) > > > Paul > > > > > > > > > MAP > > > > > > NAME "MAP OF CANADA" > > > > > > STATUS ON > > > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > > > SIZE 400 300 > > > > > > #SHAPEPATH "./data/" > > > > > > SHAPEPATH "C:\2.0rc3\tutorial\data" > > > > > > SYMBOLSET "./etc/symbols.sym" > > > > > > FONTSET "./etc/fonts.txt" > > > > > > #IMAGETYPE PNG > > > > > > IMAGECOLOR 255 255 255 > > > > > > UNITS METERS > > > > > > # > > > > > > # Start of web interface definition > > > > > > # > > > > > > WEB > > > > > > MINSCALE 2000000 > > > > > > MAXSCALE 50000000 > > > > > > IMAGEPATH "C:/temp/" > > > > > > IMAGEURL "/ms_tmp/" > > > > > > # LOG "/tmp/gmap.log" > > > > > > END > > > > > > # > > > > > > # Start of reference object (keymap) > > > > > > # > > > > > > REFERENCE > > > > > > STATUS ON > > > > > > IMAGE "images/keymap.gif" > > > > > > SIZE 100 75 > > > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > > > COLOR -1 -1 -1 > > > > > > OUTLINECOLOR 255 0 0 > > > > > > END > > > > > > # > > > > > > # Start of querymap object > > > > > > # > > > > > > QUERYMAP > > > > > > COLOR 255 0 0 > > > > > > STYLE HILITE > > > > > > END > > > > > > PROJECTION > > > > > > "init=epsg:42304" > > > > > > END > > > > > > # > > > > > > # Start of legend object > > > > > > # > > > > > > LEGEND > > > > > > STATUS ON > > > > > > KEYSIZE 18 12 > > > > > > TEMPLATE "ttt" > > > > > > LABEL > > > > > > TYPE BITMAP > > > > > > SIZE MEDIUM > > > > > > COLOR 0 0 89 > > > > > > END > > > > > > END > > > > > > # > > > > > > # Start of scalebar object > > > > > > # > > > > > > SCALEBAR > > > > > > STATUS ON > > > > > > COLOR 255 255 255 > > > > > > OUTLINECOLOR 0 0 0 > > > > > > BACKGROUNDCOLOR 0 0 0 > > > > > > IMAGECOLOR 255 255 255 > > > > > > UNITS kilometers > > > > > > INTERVALS 5 > > > > > > SIZE 150 5 > > > > > > LABEL > > > > > > SIZE SMALL > > > > > > COLOR 0 0 0 > > > > > > END > > > > > > END > > > > > > LAYER > > > > > > NAME "bathymetry" > > > > > > STATUS ON > > > > > > DATA "bath_mapserver.tif" > > > > > > TYPE RASTER > > > > > > TEMPLATE "ttt.html" > > > > > > END > > > > > > NAME "Eman-sites" > > > > > > STATUS ON > > > > > > DATA "sites.shp" > > > > > > TYPE POINT > > > > > > UNITS METERS > > > > > > SIZEUNITS METERS > > > > > > LABELITEM "Name" > > > > > > TOLERANCE 5 > > > > > > TOLERANCEUNITS PIXELS > > > > > > TRANSFORM TRUE > > > > > > TEMPLATE "ttt.html" > > > > > > PROJECTION > > > > > > "proj=longlat" > > > > > > "ellps=GRS80" > > > > > > "unit=dd" > > > > > > "no_defs" > > > > > > "" > > > > > > END > > > > > > CLASS > > > > > > NAME "site" > > > > > > SYMBOL 2 > > > > > > COLOR 255 51 102 > > > > > > SIZE 7 > > > > > > MINSIZE 1 > > > > > > MAXSIZE 100 > > > > > > END > > > > > > END > > > > > > > > > > > > > > > ----- Original Message ----- > > > From: Ed McNierney > > > To: Paul Dymecki ; MapServer List (E-mail) > > > Sent: Monday, March 03, 2003 9:10 AM > > > Subject: RE: [Mapserver-users] lat lon > > > > > > > > > Paul - > > > > > > You need to know all the details of your TIFF's projection, so you can > > > specify it completely. Are you using one or two standard parallels for > > your > > > LCC? You need the lat and lon of the origin, the scale factor, any > false > > > easting & northing, etc. > > > > > > - Ed > > > Ed McNierney > > > President and Chief Mapmaker > > > TopoZone.com / Maps a la carte, Inc. > > > 73 Princeton Street, Suite 305 > > > North Chelmsford, MA 01863 > > > ed@topozone.com > > > (978) 251-4242 > > > -----Original Message----- > > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > > Sent: Monday, March 03, 2003 9:05 AM > > > To: MapServer List (E-mail) > > > Subject: [Mapserver-users] lat lon > > > > > > > > > Hello all, > > > I'm trying to display lat/long point data ontop of a tiff and was > > > wondering what should be the projection object for this layer would be?. > > > My map projection is lcc. > > > thx, > > > Paul > > > > > > > > > > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > From vinko@cprsig.cl Mon Mar 3 18:29:17 2003 From: vinko@cprsig.cl (Vinko Vrsalovic) Date: Mon, 3 Mar 2003 15:29:17 -0300 Subject: [Mapserver-users] libTIFF on Linux In-Reply-To: References: Message-ID: <20030303182917.GC16951@landsat.cprsig.cl> On Mon, Mar 03, 2003 at 03:48:52PM +0100, Thomas Zerweck wrote: > Hi, > I'm trying to enable TIFF-support on Linux RedHat 8.0 for mapserver 3.6.4. Libtiff seems to be installed correctly. > After running configure, the TIFF section in my makefile looks like this: > # TIFF distribution (raster support for TIFF and GEOTIFF imagery). (RECOMMENDED) > TIFF_INC= > TIFF_LIB= -ltiff -ljpeg -lfreetype -lpng -lz > TIFF= -DUSE_TIFF > Running "make" seems to work fine and Mapserver works fine - however, the TIFF support is not enabled. > Can anyone help me?? is not enabled how? mapserv -v doesn't show INPUT=TIFF ? Maybe you compiled GDAL in also. If that's the case, TIFF's are supported through GDAL and not libTIFF. If there is another problem, you should tell us what the problem is. -- Vinko Vrsalovic http://www.cprsig.cl From doug@moximedia.com Mon Mar 3 18:28:11 2003 From: doug@moximedia.com (Doug Cates) Date: Mon, 3 Mar 2003 10:28:11 -0800 Subject: [Mapserver-users] More beginner questions Message-ID: <000101c2e1b2$a5cfea10$6401a8c0@vn.shawcable.net> You wrote: 1) whether I use GET or POST, too much information exists in the url or resulting web page about the actual location in the server of critical files, such as the map file. I consider this a security problem. Is there a mechanism to hide this (cookie, session id, etc)? The best way to do this is to create an executable CGI wrapper program like: #! /bin/sh # File: /var/www/cgi-bin/ms_world # MS_MAPFILE=/home/mapfiles/world.map export MS_MAPFILE /var/www/cgi-bin/mapserv .... The call the wrapper (without the mapfile) instead of mapserv. Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue, Vancouver, BC, Canada V7M 2J5 Phone: 604-984-8109 Fax: 604-608-4764 E-Mail: doug@moximedia.com Web: www.moximedia.com From lfilak@medinaco.org Mon Mar 3 18:34:40 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 03 Mar 2003 13:34:40 -0500 Subject: [Mapserver-users] featurequery question Message-ID: <200303031834.h23IYaR02392@yogi.medinaco.net> AFAIK a tolerance of 0 in the layer->queryByPoint should work fine. Are you saying that if the tolerance is set to 1 it works? Lowell F. The following message was sent by "Debbie Pagurek" on Mon, 03 Mar 2003 11:14:21 -0500. > I am experimenting with FEATUREQUERY - my qlayer is ecodistricts and my slayer is Ecozones. > > I am getting a list of ecodistricts as expected, however some of the ecodistricts fall outside of the selected ecozone. I have tried setting the tolerance on both layers to 0, but if I do that I get a msQueryByPoint(): Search returned no results. No matching record(s) found error. How do I make sure that the only ecodistricts found are the ones inside the ecozone and not adjacent to it? > > Thanks for any pointers anyone can send my way. > > D. Pagurek > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Kevin.Slover@noaa.gov Mon Mar 3 18:37:35 2003 From: Kevin.Slover@noaa.gov (Kevin Slover) Date: Mon, 03 Mar 2003 13:37:35 -0500 Subject: [Mapserver-users] Java question Message-ID: <3E63A0EF.24FBAF2F@noaa.gov> I am having a little bit of a problem... I am using java jbox to allow the user to zoom in/zoom out, etc. I have followed some of the examples given in the gallery pages. My problem: The user chooses the zoom button, and then draws a box. The box remains "depressed" until something else is chosen. No problems there. Now, checkboxes that allows the user to choose the layer they want displayed. The only problem is that if the user first zooms, then checks a layer, the layer displays, but the image zooms in as well. Some snippets of my code (instead of posting all):
... Slosh Outline
Those are the major players in my code. I have tried setting value="0" for zoomdir, but without any luck. It continues to zoom... anyone have any ideas? Thanks! Cheers -- LTJG Kevin Slover, NOAA GIS Specialist/Oceanographer NOAA/National Hurricane Center/Storm Surge Unit 11691 SW 17th Street Miami FL 33165 W (305) 229-4456 From t_lalla20@yahoo.com Mon Mar 3 18:42:01 2003 From: t_lalla20@yahoo.com (Terrence Lalla) Date: Mon, 3 Mar 2003 10:42:01 -0800 (PST) Subject: [Mapserver-users] defining a simple scalebar object In-Reply-To: <20030228021634.48717.qmail@web14101.mail.yahoo.com> Message-ID: <20030303184201.96698.qmail@web14104.mail.yahoo.com> --0-1326986336-1046716921=:96446 Content-Type: text/plain; charset=us-ascii Hi everyone, I am trying to design a simple scalebar object. The output is in gif format(dont know if this would affect anything).Anyways here is the code in the map file: SCALEBAR STATUS ON UNITS METERS SIZE 20 20 BACKGROUNDCOLOR 120 120 120 COLOR 120 120 120 END Thanks in Advance Terrence. --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --0-1326986336-1046716921=:96446 Content-Type: text/html; charset=us-ascii

Hi everyone,

I am trying to design a simple scalebar object. The output is in gif format(dont know if this would affect anything).Anyways here is the code in the map file:

SCALEBAR

STATUS ON

UNITS METERS

SIZE 20 20

BACKGROUNDCOLOR 120 120 120

COLOR 120 120 120

END

Thanks in Advance

Terrence.



Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more --0-1326986336-1046716921=:96446-- From kames@keyspanenergy.com Mon Mar 3 19:07:42 2003 From: kames@keyspanenergy.com (Kieran J. Ames) Date: Mon, 03 Mar 2003 14:07:42 -0500 Subject: [Mapserver-users] SHPTREE Odd behavior Message-ID: <3E63A7FE.7DD9053B@keyspanenergy.com> I've been experimenting with shptree and seeing remarkable performance boosts (on point and line shapefiles). However, I've found some odd behavior now with polygons. I'm rendering polygons that take quite a while to come up (mapserver cgi). I then use shptree and get the following error message: msDrawShape(): General error message. Only polygon shapes can be drawn using a POLYGON layer definition. If I then delete the associated .qix files, the map again renders. I'm using mapserver MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=SHAPEFILE SHPTREE is dated 11/01/00 09:48a 131,122 bytes ...appreciate any help. Kieran From kames@keyspanenergy.com Mon Mar 3 19:17:13 2003 From: kames@keyspanenergy.com (Kieran J. Ames) Date: Mon, 03 Mar 2003 14:17:13 -0500 Subject: [Mapserver-users] shapefile programming References: <200303031803.h23I38R01679@yogi.medinaco.net> Message-ID: <3E63AA39.F868ED56@keyspanenergy.com> As I understand, mapscript only works on NT if you use php. However, I'm wondering if I use a DOS window and invoke perl, will the mapscript.pm module then work? ...Kieran Lowell Filak wrote: > Sounds like a good case for an example so the perl mapscript program to do just that is at: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex15 > HTH > Lowell F. > > The following message was sent by John Hagstrand on Sun, 02 Mar 2003 13:01:21 -0600. > > > Hi, > > > > I need a program or programmer to manipulate a Shapefile. > > > > I want to pull the bounding box out of the SHP file and put it in the DBF > > file. > > > > You see what I mean? I want to add four columns to the DBF file: north, > > south, east and west. And I want to populate those four fields to indicate > > the boundary of each object. > > > > Do you know of a utility program that will do this? If not, do you know a > > programmer who will write me such a utility program for a fee? > > > > Thanks > > John > > > > ------------------------------------------------- > > John Hagstrand > > Interage Research, Inc. > > 847 838 5371 > > Software Development Consulting for Internet Content Management > > We make knowledge accessible, useful, and relevant for everyone. > > http://www.interageresearch.com > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Chip.Hankley@GASAI.Com Mon Mar 3 19:55:55 2003 From: Chip.Hankley@GASAI.Com (Hankley, Chip) Date: Mon, 3 Mar 2003 13:55:55 -0600 Subject: [Mapserver-users] shapefile programming Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353027853DA@postoffice.GASAI.Com> > As I understand, mapscript only works on NT if you use php. > However, I'm wondering if I use a DOS window and invoke perl, > will the mapscript.pm module then work? > ...Kieran > You could pretty easily re-write the function in PHP. The syntax for commands between PHP and Perl MapScript, and the code structure between the two languages is very similar. Chip From steve.lime@dnr.state.mn.us Mon Mar 3 19:57:51 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 03 Mar 2003 13:57:51 -0600 Subject: [Mapserver-users] Mapplet Boxon Boxoff WAS: SIte Critque... Message-ID: That's what the last parameter (redraw) is for with the mapplet_apply method. You can check it to see if you really do have to redraw the map. Steve >>> "Lowther, David W" 03/02/03 08:11AM >>> Thomas, It seems like every time I set boxon or boxoff (wow, thats a little bit Karate Kid..) it triggers mapplet_apply, but doesn't affect the boxness. Tips? Dave -----Original Message----- From: Thomas Bartlett To: mapserver-users@lists.gis.umn.edu Sent: 3/1/03 9:01 PM Subject: Re: [Mapserver-users] Site Demo / Critique Dave, The drag box can be turned on and off via the javascript command OFF = document.mapplet.boxoff(); ON = document.mapplet.boxon(); Really like the site ! ----- Original Message ----- From: "Lowther, David W" To: "'Martin, Daniel '" ; "Lowther, David W" ; Sent: Saturday, March 01, 2003 11:06 AM Subject: RE: [Mapserver-users] Site Demo / Critique > Dan, > > Thanks for the kinds words and the bugs. Do you get that error still? The > line was commented out when I got to it, but someone here may have beaten me > to the punch. > > I haven't been able to figure out how to keep mapplet from allowing a box at > any time, but I also haven't spent any time on it as we are trying to get > off the java app and into DHTML - phase next. We should be able to deal with > it there. > > Probably should reign that legend width in... > > As far as the label check goes, it comes as a result of a deep homage I have > paid to the HTML Legend supreme being(s). And, I am using the legend_order > strictly to make sure that my labels directly follow my layers. That way > when I come around to the label I have left the TD open. I also make sure > that my label layers are named the same as my features like roads and > roads_anno. Since I write the checkbox with the feature. I have also > included metadata like NoLabels for the feature layers that don't have any > labels. I did the same thing for the ID (NoID). One thing that sure would > make HTML Legends easier is the inclusion of an [else] / [elseif] tag. Maybe > I should file a feature request. > > Dave > > -----Original Message----- > From: Martin, Daniel > To: 'Lowther, David W'; Mapserver-Users (mapserver-users@lists.gis.umn.edu) > Sent: 2/28/03 5:39 PM > Subject: RE: [Mapserver-users] Site Demo / Critique > > Looks good. I like the interface you've built, and I love the many, > many options you offer. I also like the label checkbox. I'm not even > quite sure how to do that (with pure-CGI) but I'd like to know. > > Problems: > 1) IE 5.5 is reporting > "'parent.legend.document.mapserv.map_gradysqlRoads_data' is null or not > an object." in this line: > parent.legend.document.mapserv.map_gradysqlRoads_data.value=top.document > .Master.map_gradysqlRoads_data.value; > 2) In a very large window the checkbox legend area expands with the > window...probably in a way you don't intend. It ends up putting the > right set of checkboxes quite far to the right. > 3) It wasn't quite obvious to me what the radio buttons were for. > Eventually I figured out they control the query layer. > 4) Query mode allows you to draw a box, but the query fails (perhaps it > should be using nquery when a rectangle is drawn?). > > -Dan Martin > > > > -----Original Message----- > From: Lowther, David W [mailto:dlowther@ou.edu] > Sent: Friday, February 28, 2003 3:33 PM > To: Mapserver-Users (mapserver-users@lists.gis.umn.edu) > Subject: [Mapserver-users] Site Demo / Critique > > > > List, > > Thanks to all your help over the past few months we're in the final > stages of testing our first large Mapserver effort. > > Please offer your comments / critique of the following site: > > > http://129.15.172.20/okstatedemo.htm > > Thanks, > > David Lowther > Software Engineer > GEO Information Systems > University of Oklahoma > dlowther@ou.edu > (405) 325-3131 > http://www.geo.ou.edu > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Mon Mar 3 20:13:28 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 03 Mar 2003 15:13:28 -0500 Subject: [Mapserver-users] converting to perl Message-ID: <200303032013.h23KDOR04660@yogi.medinaco.net> Disclaimer: These are all snippets, putting them together is left as an exercise for the user. What the following modules do is to take a given click on a parcel polygon -> grab the shape number -> query a mysql db by shape number and retrieve the parcel information -> merge a map and the tabular information into a single resulting html page. This is very similar to the example in the wiki except the wiki example queries the dbf file instead of an rdbms and is not broken into different modules: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex7 HTH Lowell F. qry_pic.pm: .. # # Create point object for pick query. # Note: coords are & need-to-be realworld by the time this routine is called. $pnt = new pointObj(); $pnt->{x} = $pickx; $pnt->{y} = $picky; # # Get layer for parcel query. $idx = $imap->getLayerByName('parcelp') or die('Unable to Open Parcel Query Layer!'); $idx->{status} = $mapscript::MS_ON; $idx->queryByPoint($imap,$pnt,$mapscript::MS_SINGLE,0); $icache = $idx->{resultcache}; $irslt = $idx->getResult(0); $idx->{status} = $mapscript::MS_OFF; # # Query db for parcel info. $dbh = DBI->connect("DBI:mysql:db:host:port#", "user", "password"); # # Record number to retrieve is shape number. my $ishpno = $irslt->{shapeindex}; # # Grab the correct record number. $sth = $dbh->prepare("SELECT tdn,bkn,pgn,spn FROM parcelp WHERE recno = $ishpno"); $sth->execute(); @row = $sth->fetchrow_array; my $rtdn = $row[0]; my $rbkn = $row[1]; my $rpgn = $row[2]; my $rspn = $row[3]; $rppn = $rtdn.$rbkn.$rpgn.$rspn; # # Print the parcel information. &prt_prcl($dbh,$rppn,$rtdn,$rbkn,$rpgn,$rspn); .. # # Create image of parcel. $rppn = uc $rppn; $rmap = &plt_prcl($imapeminxf,$imapeminyf,$imapemaxxf,$imapemaxyf,$shpfname,$rppn); .. return; } prt_prcl.pm: .. # # Loop through each column. $sth = $dbh->prepare("SELECT DISTINCT deed_acre FROM parcelp WHERE tdn=\'$tdn\' AND bkn=\'$bkn\' AND pgn=\'$pgn\' AND spn=\'$spn\'"); $sth->execute(); $acre = $row[0]; .. print REPORT "Acreage: $acre\n
"; .. # # Return. return; } plt_prcl.pm: .. # # Create image of parcel. my $rmap = new mapObj('mche.map'); $rmap->{interlace} = $mapscript::MS_FALSE; .. $rimg = $rmap->draw(); # $rimg->saveImage("../html$image_name",$mapscript::MS_PNG,$rmap->{transparent},$rmap->{interlace},0); .. return $rmap; } The following message was sent by Jon Shorie on Tue, 25 Feb 2003 12:55:45 -0500. > I will be more specific. I currently have a mapserver application up on a > local network. My eventual goal is to integrate mapserver into some of our > backend database processing applications. Initially I am just looking to be > able to run some perl code of a user of the mapserver queries on a layer. > What I would like to do is to use the layer information to issue a query to a > backend database which would pull up service information for hydrants if the > user clicks on the hydrant. > > The way that I am handling this currently is to have an html page called by > the query on the layer like so: > > [ID][NUMBER][NEWFIELD1] > [NAME]Click href=http://172.16.40.17/cgi-bin/publichydrants/resultshydrant.cgi?sort=none&hydrantname=[NAME]> > Here for data on this hydrant > > Here is the reference in the mcse.map file. > > LAYER > NAME hydrants > TYPE POINT > MAXSCALE 300000 > STATUS DEFAULT > DATA hydrants > > CLASS > NAME "Hydrants" > TEMPLATE "hydrants.html" > COLOR 255 0 0 > SYMBOL 'circle' > SIZE 7 > END > > What this method does is if the user queries a hydrants feature they get a > page that says clieck here for data on this hydrant. If the user then clicks > on the link sends the hydrantname to a perl script that queries the database. > > What I would prefer to do is to have the query to directly to the perl script > and not even bring up the intermediate page. > > Is this possible? > > > > > > > > > On Tuesday 25 February 2003 11:17, you wrote: > > OK - if you can explain a bit about what you're trying to do, we'll try to > > help. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed@topozone.com > > (978) 251-4242 > > > > -----Original Message----- > > From: Jon Shorie [mailto:jshorie@medinaco.org] > > Sent: Tuesday, February 25, 2003 11:21 AM > > To: mapserver-users@lists.gis.umn.edu > > Subject: Re: [Mapserver-users] converting to perl > > > > > > I am trying to use Perl to generate input for mapserver > > > > On Tuesday 25 February 2003 11:09, you wrote: > > > Jon - > > > > > > I'm not quite sure what your question is. Are you trying to get > > > MapServer to process template files to generate Perl output that then > > > gets processed and sent to the client? Or are you trying to use Perl to > > > generate input for MapServer? > > > > > > - Ed > > > > > > Ed McNierney > > > President and Chief Mapmaker > > > TopoZone.com / Maps a la carte, Inc. > > > 73 Princeton Street, Suite 305 > > > North Chelmsford, MA 01863 > > > ed@topozone.com > > > (978) 251-4242 > > > > > > -----Original Message----- > > > From: Jon Shorie [mailto:jshorie@medinaco.org] > > > Sent: Tuesday, February 25, 2003 10:50 AM > > > To: mapserver-users@lists.gis.umn.edu > > > Subject: [Mapserver-users] converting to perl > > > > > > > > > I am in the process of trying to convert a mapserver application to perl > > > from raw html. Here is a portion of my mcse.map file. > > > > > > WEB > > > HEADER mcse_header.html > > > TEMPLATE mcse.html > > > FOOTER mcse_footer.html > > > MINSCALE 1000 > > > MAXSCALE 1550000 > > > IMAGEPATH "set in mcse_init.html" > > > IMAGEURL "set in mcse_init.html" > > > METADATA > > > WMS_TITLE "MCSE GIS Application" > > > WMS_ABSTRACT "This is the Demo of a GIS System for MCSE. It is based > > > on the mapserver demo application." > > > WMS_ACCESSCONSTRAINTS none > > > > > > # change this value to match your setup > > > WMS_ONLINERESOURCE > > > "http://172.16.40.17/cgi-bin/mcsegis/mcse_init.cgi" > > > > > > WMS_SRS "EPSG:26915" > > > END > > > END > > > > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Mon Mar 3 20:16:32 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 03 Mar 2003 15:16:32 -0500 Subject: [Mapserver-users] shapefile programming Message-ID: <200303032016.h23KGRR04755@yogi.medinaco.net> There lies a question ("I'm wondering if I use a DOS window") you could answer/solve for the rest of us. Lowell F. The following message was sent by "Kieran J. Ames" on Mon, 03 Mar 2003 14:17:13 -0500. > As I understand, mapscript only works on NT if you use php. > However, I'm wondering if I use a DOS window and invoke perl, will the mapscript.pm module then work? > ...Kieran > > Lowell Filak wrote: > > > Sounds like a good case for an example so the perl mapscript program to do just that is at: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex15 > > HTH > > Lowell F. > > > > The following message was sent by John Hagstrand on Sun, 02 Mar 2003 13:01:21 -0600. > > > > > Hi, > > > > > > I need a program or programmer to manipulate a Shapefile. > > > > > > I want to pull the bounding box out of the SHP file and put it in the DBF > > > file. > > > > > > You see what I mean? I want to add four columns to the DBF file: north, > > > south, east and west. And I want to populate those four fields to indicate > > > the boundary of each object. > > > > > > Do you know of a utility program that will do this? If not, do you know a > > > programmer who will write me such a utility program for a fee? > > > > > > Thanks > > > John > > > > > > ------------------------------------------------- > > > John Hagstrand > > > Interage Research, Inc. > > > 847 838 5371 > > > Software Development Consulting for Internet Content Management > > > We make knowledge accessible, useful, and relevant for everyone. > > > http://www.interageresearch.com > > > > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From DMartin@erac.com Mon Mar 3 20:18:01 2003 From: DMartin@erac.com (Martin, Daniel) Date: Mon, 3 Mar 2003 14:18:01 -0600 Subject: [Mapserver-users] Map Size Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035AADBDDA@STL-EXBE-I03.corp.erac.com> In case you would prefer a non-javascript MapSize option, here's a pure HTML version. Include this anywhere in your map form. > -----Original Message----- > From: Lowther, David W [mailto:dlowther@ou.edu] > Sent: Sunday, March 02, 2003 7:54 AM > To: 'Thomas Bartlett '; 'mapserver-users@lists.gis.umn.edu ' > Subject: RE: [Mapserver-users] Map Size > > > this is basically what I am using... this may appear a bit > convoluted, but > its yanked from a couple of different places. the first half > is what i do > when someone clicks the mapsize - and then i refresh the map > (which is the > second half). > > function sizemap(x,y){ > msForm=(set to mapserver form); > msForm.mapsize.value= x + " " + y; > msForm.centerx.value = x/2; > msForm.centery.value = y/2; > > msForm.mode.value="browse"; > msForm.imgxy.value= msForm.centerx.value + ' ' + msForm.centery.value; > msForm.imgbox.value="-1 -1 -1 -1"; > msForm.zoom.value=0; > msForm.submit(); > } > > hope that helps, > > Dave > > > -----Original Message----- > From: Thomas Bartlett > To: mapserver-users@lists.gis.umn.edu > Sent: 3/1/03 9:02 PM > Subject: [Mapserver-users] Map Size > > > G'day All, > Just a quick question about how to allow users to change the > size of the > image (the size of the map). eg 500 x 400, 600 x 450 or 700 x 500. > > The size of the image returned by MapServer is determined in the .map > file so do you just have 3 different maps files for each image size ?? > They would be identical in every other respect? > > I'm using Mapplet, on IIS on an XP machine !! > > Thomas Bartlett > -------------------------------------------------------------- > ---------- > ---------------------------------- > GIS Technician > Digital (Digest) Data Design Pty Ltd > Military GIS Professionals and Consultants > http://www.dddd.com.au/ > Telephone: 02 6286 9555 > Facsimile: 02 6286 9888 > Postal : PO Box 683 MAWSON ACT 2607 > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From junkmail@deathkeep.com Mon Mar 3 20:23:17 2003 From: junkmail@deathkeep.com (Junkmail Box) Date: Mon, 3 Mar 2003 12:23:17 -0800 (PST) Subject: [Mapserver-users] MapScript, help starting? (continued) Message-ID: <20030303121404.C56200-100000@osiris.deathkeep.com> I'm still having no luck getting mapscript to draw anything. My script is simply this: #!/usr/bin/perl -w use strict; use mapscript; $ENV{MS_ERRORFILE} = "/usr/local/mapserv/htdocs/arcata/foo.log"; my $map = new mapObj('/usr/local/mapserv/htdocs/arcata/arcata.map') or die('Unable to open mapfile.'); my $img = $map->draw() or die('Unable to draw map'); my $void = $img->saveImage('/usr/local/mapserv/htdocs/arcata/example.png', $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0); The error log is reporting this: Mon Mar 3 11:49:44 2003 - msSearchDiskTree(): Unable to access file. Mon Mar 3 11:49:44 2003 - msSaveImage(): General error message. PNG output is not available. The first message, I gather from the mailing list archive, is a missing spatial index file and isn't terribly important. The second message seems to be the nasty one. If I change it to example.jpg and $mapscript::MS_JPEG, I get "JPEG output is not available" Any ideas what could be causing JPEG output to not work? The strange thing is that the mapserv CGI program works perfectly with PNG and JPEG output using the arcata.map file. From dana@nextbus.com Mon Mar 3 20:44:30 2003 From: dana@nextbus.com (Dana Quinn) Date: Mon, 03 Mar 2003 12:44:30 -0800 Subject: [Mapserver-users] MapScript, help starting? (continued) In-Reply-To: <20030303121404.C56200-100000@osiris.deathkeep.com> References: <20030303121404.C56200-100000@osiris.deathkeep.com> Message-ID: <3E63BEAE.4010908@nextbus.com> Sorry if I'm coming to this late, I don't know what problems you've had previously, but not having PNG and JPEG support when you use Perl Mapscript sounds like some sort of build issue, does your perl mapscript build link against all the proper libs to get PNG and JPEG support? Are you running this on some sort of unix? dana Junkmail Box wrote: > > I'm still having no luck getting mapscript to draw anything. My script is > simply this: > > > #!/usr/bin/perl -w > use strict; > use mapscript; > > $ENV{MS_ERRORFILE} = "/usr/local/mapserv/htdocs/arcata/foo.log"; > > my $map = new mapObj('/usr/local/mapserv/htdocs/arcata/arcata.map') or > die('Unable to open mapfile.'); > my $img = $map->draw() or die('Unable to draw map'); > my $void = $img->saveImage('/usr/local/mapserv/htdocs/arcata/example.png', > $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0); > > > The error log is reporting this: > > Mon Mar 3 11:49:44 2003 - msSearchDiskTree(): Unable to access file. > Mon Mar 3 11:49:44 2003 - msSaveImage(): General error message. PNG > output is not available. > > The first message, I gather from the mailing list archive, is a missing > spatial index file and isn't terribly important. The second message seems > to be the nasty one. If I change it to example.jpg and > $mapscript::MS_JPEG, I get "JPEG output is not available" > > Any ideas what could be causing JPEG output to not work? The strange thing > is that the mapserv CGI program works perfectly with PNG and JPEG output > using the arcata.map file. > > > > > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- Dana Quinn, dana@nextbus.com NextBus Information Systems (510) 420-3117 From lfilak@medinaco.org Mon Mar 3 20:57:46 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 03 Mar 2003 15:57:46 -0500 Subject: [Mapserver-users] MapScript, help starting? (continued) Message-ID: <200303032057.h23KvgR05692@yogi.medinaco.net> It doesn't sound like the mapserv executable you are using was compiled at the same time the mapscript.pm your using was. What version of maserver are you using and what does mapserv -v show? Lowell F. The following message was sent by Junkmail Box on Mon, 3 Mar 2003 12:23:17 -0800 (PST). > > > I'm still having no luck getting mapscript to draw anything. My script is > simply this: > > > #!/usr/bin/perl -w > use strict; > use mapscript; > > $ENV{MS_ERRORFILE} = "/usr/local/mapserv/htdocs/arcata/foo.log"; > > my $map = new mapObj('/usr/local/mapserv/htdocs/arcata/arcata.map') or > die('Unable to open mapfile.'); > my $img = $map->draw() or die('Unable to draw map'); > my $void = $img->saveImage('/usr/local/mapserv/htdocs/arcata/example.png', > $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0); > > > The error log is reporting this: > > Mon Mar 3 11:49:44 2003 - msSearchDiskTree(): Unable to access file. > Mon Mar 3 11:49:44 2003 - msSaveImage(): General error message. PNG > output is not available. > > The first message, I gather from the mailing list archive, is a missing > spatial index file and isn't terribly important. The second message seems > to be the nasty one. If I change it to example.jpg and > $mapscript::MS_JPEG, I get "JPEG output is not available" > > Any ideas what could be causing JPEG output to not work? The strange thing > is that the mapserv CGI program works perfectly with PNG and JPEG output > using the arcata.map file. > > > > > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From millardymecki@sympatico.ca Mon Mar 3 20:58:14 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 15:58:14 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection References: <005e01c2e0e3$fe4cf6d0$f098fea9@pauls> <3E636648.490AADEF@dmsolutions.ca> <015401c2e1bc$0d16bb50$f098fea9@pauls> <3E63BD36.79774FAE@dmsolutions.ca> Message-ID: <016901c2e1c7$9c2495a0$f098fea9@pauls> This is a multi-part message in MIME format. ------=_NextPart_000_0166_01C2E19D.B2E21030 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, Yes i think i've covered all the obvious, things, though you never know. Here are my two scripts that query the db and create the shp and dbf files. shp_ukpdate.php queries the db and eman_shp.php has supporting classes thx, Paul ----- Original Message ----- From: "Daniel Morissette" To: "Paul Dymecki" Sent: Monday, March 03, 2003 3:38 PM Subject: Re: [Mapserver-users] adding shp to mapfile / projection > Paul Dymecki wrote: > > > > Hi Daniel, > > From talking to people i think i've narrowed it down to a problem with > > my shp file format. Any ways here is my current projection function, create > > point, and close() functions if you can see anything that's off? > > thx, > > Paul > > > > From reading the replies on the list this is probably the next logical > thing to check, but without seeing your complete application including > scripts and data nobody can confirm that. > > Did you make sure that you pass a valid shapefile type to the call to > ms_newShapeFileObj()? > > BTW, please reply via the list, this will increase your chances of > getting help. > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette morissette@dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ ------=_NextPart_000_0166_01C2E19D.B2E21030 Content-Type: application/octet-stream; name="eman_shape.php" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="eman_shape.php" dBaseColumns =3D array( array("Ename", "C" ,80), array("Fname", "C", 80), array("latitude", "N", 16, 5), array("longitude", "N", 16,5), array("pk_id", "N", 5,0) ); =09 =20 $this-> shpFname =3D $shpFilename; $this-> dbfFname =3D $this->shpFname.".dbf"; =20 } =09 function createShape() { $this->shpFile =3D ms_newShapeFileObj($this->shpFname, MS_SHP_POINT); $this->oShp =3D ms_newShapeObj(MS_SHAPE_POINT); } function openShape() { =20 =09 if(file_exists($this->shpFname.'.shp')) { $this->shpFile =3D ms_newShapeFileObj( $this->shpFname, -2); return TRUE; } else=20 { $message =3D "Error:The required shape file does not exist"; return FALSE; //exit; } =20 } =09 =20 function createPoint( $x, $y, $def ) { // Create shape $oPoint =3D ms_newPointObj(); $oPoint->setXY($x,$y); =20 $this->shpFile->addPoint($oPoint); // Write attribute record if( dbase_add_record($this->dbfFile, $def) =3D=3D FALSE ) { $message =3D "Adding a record to dbase failed"; =20 $this->shpFile->free(); $oPoint->free(); return FALSE; } =20 $oPoint->free(); return TRUE; } =20 function createDbaseFile() { //IF FILE EXISTS DELETE IT $file =3D $this->dbfFname; if (file_exists($file)) {=20 =20 unlink($file); } =20 // database "definition" //if (FALSE =3D=3D dbase_create($this->dbfFname, = $this->dbaseColumns)) if (!dbase_create($this->dbfFname, $this->dBaseColumns)) { return FALSE; =09 } else { return TRUE; } } =09 function openDbase() { if (FALSE !=3D ($this->dbfFile =3D dbase_open( $this->dbfFname, 2))) { return TRUE; } else { return FALSE;=09 } } function close() { $this->shpFile->free(); dbase_close($this->dbfFile); fclose($this->dbfFile); } =20 } class Eman_Projection { var $lccXY; function projectPoint($lat,$lon) { $dlat =3D doubleval($lat); $dlon =3D doubleval($lon); //project from geodetic coordinate degrees $parms1[0] =3D "proj=3Dlonglat"; $parms1[1] =3D "ellps=3DGRS80"; $parms1[2] =3D "datum=3DNAD83"; =20 $parms1[3] =3D "no_defs"; $projLonLat =3D pj_init($parms1); //project to lambert conical x,y $parms2[0] =3D "proj=3Dlcc"; $parms2[1] =3D "ellps=3DGRS80"; $parms2[2] =3D "datum=3DNAD83"; $parms2[3] =3D "lat_0=3D 49.0"; $parms2[4] =3D "lon_0=3D -95.0"; $parms2[5] =3D "lat_1=3D 49.0"; $parms2[6] =3D "lat_2=3D 77.0"; $parms2[7] =3D "units=3Dm"; $projLCC =3D pj_init($parms2); $this->lccXY =3D pj_transform($projLonLat, $projLCC, $dlon, $dlat,0 ); //$this->lccXY =3D array("u"=3D> 4,"v"=3D>5); =09 pj_free($pj); } function getXYCoords() {=20 if (0 !=3D array_count_values($this->lccXY) ) { return($this->lccXY);=20 } else { return 0; } } } class EmanLogger { var $toEmail; var $logFile; function emanLogger($email,$logFileName) { $this -> toEmail =3D $email; $this -> logFile =3D $logFileName; } function logMessage($msg,$rec) { $d =3D date("F j, Y, g:i:s a"); $logMsg =3D $msg." ".$d." \n"; $logMsg.=3D $rec; error_log($logMsg, 3, $this->logFile); } function sendErrorMail($subject,$msg,$rec,$myname) { $formattedMsg =3D "Error in script: ".$myname."
\n"; $formattedMsg.=3D "

".$msg."


\n"; $formattedMsg.=3D "Error while trying to insert the following = record:
\n"; $formattedMsg.=3D $rec."
\n"; =20 $myemail =3D "webmaster@eman-rese.ca"; $contactname =3D "error"; $contactemail =3D "webmaster@rese.ca"; $myreplyemail =3D "webmaster@rese.ca"; $headers .=3D "MIME-Version: 1.0\r\n";=20 $headers .=3D "Content-type: text/html; charset=3Diso-8859-1\r\n";=20 $headers .=3D "From: ".$myname." <".$myemail.">\r\n"; =20 $headers .=3D "To: ".$contactname." <".$contactemail.">\r\n";=20 $headers .=3D "Reply-To: ".$myname." <$myreplyemail>\r\n";=20 $headers .=3D "X-Priority: 1\r\n";=20 $headers .=3D "X-MSMail-Priority: High\r\n";=20 mail($this->toEmail, $subject, $formattedMsg,$headers); } } ?> ------=_NextPart_000_0166_01C2E19D.B2E21030 Content-Type: application/octet-stream; name="shp_update.php" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="shp_update.php" Shape Update Script createShape(); echo "dbName ".$oEmanShp->shpFname; //------open new shape file if(FALSE =3D=3D ($oEmanShp->openShape())) { $message =3D "Error opening SHAPE file"; $oEmanLogger->sendErrorMail("Error in = shp_update.php",$message,$NO_RECORD,$MY_NAME); } //------create new dbase file if(FALSE =3D=3D ($oEmanShp->createDbaseFile())) { $message =3D "Error creating DBASE file:".$oEmanShp->dbfFname; $oEmanLogger->sendErrorMail("Error in = shp_update.php",$message,$NO_RECORD,$MY_NAME); } //------open dbase file if(FALSE =3D=3D $oEmanShp->openDbase()) { $message =3D "Error opening DBASE file"; $oEmanLogger->sendErrorMail("Error in = shp_update.php",$message,$NO_RECORD,$MY_NAME); $oEmanShp->close(); =20 } //---------------------------------------------------------- // -----------End Initialization Section ----------------- //---------------------------------------------------------- //---------------------------------------------------------- // -----------Loop through the site table ----------------- //---------------------------------------------------------- $connect =3D odbc_connect('mon3', 'po8', 'po8', SQL_CUR_USE_ODBC); $query =3D "SELECT pk_site, english_fullname, french_fullname, latitude, = longitude FROM site, coordinates WHERE fk_coordinates =3D = pk_coordinates"; $result =3D odbc_exec($connect, $query); //Loop through and add records while (odbc_fetch_row($result)) { $recordToAdd =3D ""; $count =3D $count + 1; echo "num recs".$count; $frenchname =3D odbc_result($result, 3); $englishname =3D odbc_result($result, 2); $pk_site =3D odbc_result($result, 1); $latitude =3D odbc_result($result, 4); $longitude =3D odbc_result($result, 5); $recordToAdd .=3D "PK_SITE_ID: ".$pk_site."\n"; $dbaseRecord =3D = array($englishname,$frenchname,$latitude,$longitude,$pk_site); =20 //currently not projecting just using lat/long vals //here are some sample values // 50.57 -60.02 // 46.01 -81.24 // 69.21 -108.06 /* $oEmanProj->projectPoint($latitude,$longitude); $lccXY =3D $oEmanProj->getXYCoords(); =20 if($lccXY !=3D 0) { $x =3D ($lccXY["u"]); $y =3D ($lccXY["v"]); } else { $message =3D "Error trying to project points"; $oEmanLogger->sendErrorMail("Error in = shp_update.php",$message,$recordToAdd,$MY_NAME); } echo "
".$x."
"; echo $y."
"; */=20 //i'm currently not using the projection just lat/lon values if($oEmanShp->createPoint( $longitude, $latitude, $dbaseRecord)) { $oEmanLogger->logMessage("Successfully added/updated Record at = ",$recordToAdd); echo "Shapes Created.
"; } else { $oEmanLogger->logMessage("Unsuccessfully tried to add/update a = Record at ",$recordToAdd); $message =3D "Unknown Error in createPoint function"; $oEmanLogger->sendErrorMail("Error in = shp_update.php",$message,$recordToAdd,$MY_NAME); } } $oEmanShp->close(); odbc_close($connect); ?> ------=_NextPart_000_0166_01C2E19D.B2E21030-- From ed@topozone.com Mon Mar 3 21:00:41 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Mar 2003 16:00:41 -0500 Subject: [Mapserver-users] Label Problems with 3.7? Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E7D@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C2E1C7.F31D6F3B Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Folks - I'm seeing a mysterious label problem and thought I'd ask around before = diving into the debugger. I can't find any reported bugs that resemble = this problem, but I might not be looking in the right place. Attached is a sample image with the problem. It appears that some = garbage (formatted floating-point numbers) is being inserted following = the label text. As far as I can tell, the label data is just fine (it's = a shapefile, and the label field is of type String, 40-characters, with = normal-looking contents). The text here is "Kittery" (the town in = Maine) and when I examine the label in ArcView or with dbfdump it = appears just fine. The label is a TrueType font, MapServer running on = Windows 2000. I've been working with a month-old build of 3.7, and I just updated to = the current CVS build and it makes no difference. If this looks = familiar to anyone, let me know - thanks! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242=20 ------_=_NextPart_001_01C2E1C7.F31D6F3B Content-Type: image/png; name="labelproblem.png" Content-Transfer-Encoding: base64 Content-Description: labelproblem.png Content-Disposition: attachment; filename="labelproblem.png" iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAHAZvZoAAAASFBMVEUAAACQ2////7CAgIAAuKAA oYwAFxQAc2QALigAXFAAingARTwAIh4ACAcAPDQAFBEAEQ8AeGkAUEYAKCMACwoAAgIAGRYAOTLD baKVAAAMjUlEQVR4nO2diXajS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BJRM4UyCHOrnOiQI5xvqP/A04tSm/cACd8AAAAAElFTkSuQmCC ------_=_NextPart_001_01C2E1C7.F31D6F3B-- From millardymecki@sympatico.ca Mon Mar 3 21:37:31 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 16:37:31 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection References: <005e01c2e0e3$fe4cf6d0$f098fea9@pauls> <3E636648.490AADEF@dmsolutions.ca> <015401c2e1bc$0d16bb50$f098fea9@pauls> <3E63BD36.79774FAE@dmsolutions.ca> <016901c2e1c7$9c2495a0$f098fea9@pauls> Message-ID: <018b01c2e1cd$18fe75f0$f098fea9@pauls> Ok this one is strange, I'm able to display the shp file i created by moving it out of the directory it's currently in. Would this mean there's another shp file that's conflicting with it? Paul ----- Original Message ----- From: "Paul Dymecki" To: "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 3:58 PM Subject: Re: [Mapserver-users] adding shp to mapfile / projection > Hi, > Yes i think i've covered all the obvious, things, though you never know. > Here are my two scripts that query the db and create the shp and dbf files. > shp_ukpdate.php queries the db and eman_shp.php has supporting classes > thx, > Paul > ----- Original Message ----- > From: "Daniel Morissette" > To: "Paul Dymecki" > Sent: Monday, March 03, 2003 3:38 PM > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > Paul Dymecki wrote: > > > > > > Hi Daniel, > > > From talking to people i think i've narrowed it down to a problem > with > > > my shp file format. Any ways here is my current projection function, > create > > > point, and close() functions if you can see anything that's off? > > > thx, > > > Paul > > > > > > > From reading the replies on the list this is probably the next logical > > thing to check, but without seeing your complete application including > > scripts and data nobody can confirm that. > > > > Did you make sure that you pass a valid shapefile type to the call to > > ms_newShapeFileObj()? > > > > BTW, please reply via the list, this will increase your chances of > > getting help. > > > > Daniel > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette@dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > From cblack@CalAcademy.Org Mon Mar 3 22:08:03 2003 From: cblack@CalAcademy.Org (Chris Black) Date: Mon, 03 Mar 2003 14:08:03 -0800 Subject: [Mapserver-users] projecting a point in PHP MapScript References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> Message-ID: <3E63D243.2090902@calacademy.org> Hello all. I have some data in DD that I want to project in UTM (so I can plot them on a UTM map). I've written code that I *think* should do this: $crab_here = ms_newpointobj(); // here's a DD lat/long: 38.20527700 -122.37277700 $inproj = ms_newProjectionObj("proj=latlong,ellps=clrk66"); $outproj = ms_newProjectionObj("proj=utm,datum=NAD27,zone=10"); $crab_here->setXY(38.20527700, -122.37277700); $new_obj = $crab_here->project($inproj, $outproj); if ($new_obj == null) {print "new_obj is null";} else {print("new_obj is "); print($new_obj);} print("; x is "); print($crab_here->x); print("; y is "); print($crab_here->y); But when I run this it prints "new_obj is null; x is 38.205277; y is -122.372777", that is, I don't have a new point. What am I doing wrong? Thanks. -- Chris From steve.lime@dnr.state.mn.us Mon Mar 3 22:38:24 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 03 Mar 2003 16:38:24 -0600 Subject: [Mapserver-users] More beginner questions Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> dpons@adinet.com.uy 02/24/03 02:00PM >>> > First of all, congratulations to the developers, mapserver is a very > fast and solid product (I tried geotools before). > I have some questions: > 1) whether I use GET or POST, too much information exists in the url or > resulting web page about the actual location in the server of critical > files, such as the map file. I consider this a security problem. > Is there a mechanism to hide this (cookie, session id, etc)? Yes, there are several. Search the archives for a full discussion and check the WIKI for details of improvements in hiding that information in 3.7. > 2) how soon will be available the JOIN feature with one-to-many results? > (mapserver 3.7.x) Next week or so. At the moment I'm changing some underlying code to store join results in the shapeObj instead of the joinObj so we can use joins outside of queries. > 3) what is faster for large data sets, postgis or shapefiles? Loaded question, depends. See 4). > 4) Does tiling shapefiles improve speed for large data sets? Dramatically if used correctly. By correctly I mean matching tiling schemes to display scales... > Thanks in advance... > -- > Diego Pons > Geotropos SRL Steve From steve.lime@dnr.state.mn.us Mon Mar 3 22:39:48 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 03 Mar 2003 16:39:48 -0600 Subject: [Mapserver-users] More beginner questions Message-ID: Dending on your webserver you can also set the environment variables in the server config. Apache has a SetEnv directive that I use for that purpose. Steve >>> "Doug Cates" 03/03/03 12:28PM >>> You wrote: 1) whether I use GET or POST, too much information exists in the url or resulting web page about the actual location in the server of critical files, such as the map file. I consider this a security problem. Is there a mechanism to hide this (cookie, session id, etc)? The best way to do this is to create an executable CGI wrapper program like: #! /bin/sh # File: /var/www/cgi-bin/ms_world # MS_MAPFILE=/home/mapfiles/world.map export MS_MAPFILE /var/www/cgi-bin/mapserv .... The call the wrapper (without the mapfile) instead of mapserv. Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue, Vancouver, BC, Canada V7M 2J5 Phone: 604-984-8109 Fax: 604-608-4764 E-Mail: doug@moximedia.com Web: www.moximedia.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From rjames57@yahoo.com Mon Mar 3 22:53:11 2003 From: rjames57@yahoo.com (randy james) Date: Mon, 3 Mar 2003 14:53:11 -0800 (PST) Subject: [Mapserver-users] itemquery Message-ID: <20030303225311.59773.qmail@web12504.mail.yahoo.com> Hi I have been trying to figure out itemquery, without results yet. I would like to show the attribute information and a map that shows the polygon in the template output. I am missing something important i'm sure. So far i have a search.html which contains: A template file that contains all the database items
[Mapstand][Opening Number][Planted spe].... The portion of the map file for the layer # 7 layer {Forest Cover} layer data "l_fc" footer "l_fc_footer.html" header "l_fc_header.html" labelitem "SPECIES1" template l_fc.html labelmaxscale 200000 labelminscale 60 # labelsizeitem "2" name "l_fc" status off type polygon # transparency 50 # filteritem "MAPSTAND" # 1 class #none CLASS name 'Forest Cover' # color 0 0 0 OUTLINECOLOR 168 0 255 LABEL TYPE truetype FONT arial SIZE 6 COLOR 0 0 0 ANTIALIAS TRUE END END The url seems to be right to me: http://mapserver.ltc/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Fhtml%2Fgis%2Fmaps%2Fterritory_proj.map&mode=itemnquery&qlayer=l_fc&item=MAPSTAND&value=test This gives the error: msQueryByAttributes(): Query error. No query expression defined. Anyone still reading, and can help? ;-) Cheers Randy __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From junkmail@deathkeep.com Mon Mar 3 23:15:04 2003 From: junkmail@deathkeep.com (Junkmail Box) Date: Mon, 3 Mar 2003 15:15:04 -0800 (PST) Subject: [Mapserver-users] MapScript, help starting? (continued) In-Reply-To: <200303032057.h23KvgR05692@yogi.medinaco.net> Message-ID: <20030303145250.V57525-100000@osiris.deathkeep.com> Doh! Thanks, Lowell. I'm a Penetrode customer today... Yes, I did build mapscript separately and that was the root of all evils. I rebuilt both MapServer (upgraded to 3.6.4, a pleasant side-effect) and mapscript, and they both work just fine now. In the meantime, I documented some installation issues I had that I think would be of interest to the maintainers of mapscript (is that you, Lowell?)... ####### When installing Perl mapscript bundled with MapServer 3.6.4, I have a problem. The mapscript module compiles and installs successfully, but will not run: Can't load '/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/mapscript/mapscript.so' for module mapscript: ld.so.1: perl: fatal: relocation error: file /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/mapscript/mapscript.so: symbol gdImageDestroy: referenced symbol not found at /usr/local/lib/perl5/5.6.1/sun4-solaris-64int/DynaLoader.pm line 206. at /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris-64int/mapscript.pm line 7 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. Apparently, the flag "-lgd" isn't being placed in ../../perlvars and this is causing the problem. A rather simple, though barbaric, solution is to add this line: $libs .= " -lgd"; right before this in Makefile.PL: print $inc."\n"; print $libs."\n"; The real fix, I suppose, would be to include "-lgd" in ../../perlvars The cause of the problem may be that I'm using --with-gd=static ######## Also, the suite is lacking a simple test script that would have made this obvious before having installed the module. The following "test.pl", if included in the mapscript/perl suite, would probably come in handy: END { print "not ok 1\n" unless $loaded; } use mapscript; $loaded = 1; print "ok 1\n"; Maybe a better test script could be made up; this one, for instance, would say OK if a previous mapscript were already installed, cuz that one loads; then the new one would be installed and would bomb. But it'd be somewhat useful, particularly for new installations. ######## Finally, I notice that the example given in the Perl MapScript Reference http://mapserver.gis.umn.edu/doc36/perlmapscript-reference.html is slightly incorrect, at least on my installation. The mapObj class doesn't seem to be exported, so this: my $map = new mapObj('arcata.map') or die('Unable to open mapfile.'); had to be changed to this: my $map = new mapscript::mapObj('arcata.map') or die('Unable to open mapfile.'); to work correctly. Is this an issue with my installation, or with the documentation? From millardymecki@sympatico.ca Mon Mar 3 23:30:37 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 18:30:37 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection References: <005e01c2e0e3$fe4cf6d0$f098fea9@pauls> <3E636648.490AADEF@dmsolutions.ca> <015401c2e1bc$0d16bb50$f098fea9@pauls> <3E63BD36.79774FAE@dmsolutions.ca> <016901c2e1c7$9c2495a0$f098fea9@pauls> Message-ID: <01b301c2e1dc$e5fd9090$f098fea9@pauls> Hi All, Well now i'm able to display my shp file in a map on it's own(had to move my data dir to the root of the c-drive) so now just have to get it working with my existing map file Any hints or ideas would be appreciated, Paul MAP NAME "MAP OF CANADA" STATUS ON #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 EXTENT -2200000 -712631 3072800 3840000 SIZE 400 300 SHAPEPATH "c:/data-dir" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGECOLOR 255 255 255 TRANSPARENT OFF UNITS METERS INTERLACE ON IMAGETYPE GIF IMAGEQUALITY 75 WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "C:/temp/ms_tmp/" IMAGEURL "/ms_tmp/" END REFERENCE STATUS ON IMAGE "images/keymap.gif" SIZE 100 75 EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:42304" END LEGEND STATUS OFF IMAGECOLOR 255 255 255 TRANSPARENT FALSE INTERLACE TRUE POSITION LL KEYSIZE 20 10 KEYSPACING 5 5 TEMPLATE "C:/Program Files/Apache Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 255 0 0 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 TRANSPARENT FALSE UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL INTERLACE TRUE LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END LAYER NAME "bathymetry" STATUS ON DATA "bath_mapserver.tif" TYPE RASTER UNITS METERS SIZEUNITS PIXELS TOLERANCE 3 TOLERANCEUNITS PIXELS TEMPLATE "ttt.html" END LAYER NAME "Eman-sites" STATUS OFF DATA "sites.shp" TYPE POINT UNITS METERS SIZEUNITS METERS LABELITEM "Name" TOLERANCE 5 TOLERANCEUNITS PIXELS TRANSFORM TRUE TEMPLATE "ttt.html" CLASS NAME "site" SYMBOL 2 COLOR 255 51 102 SIZE 7 MINSIZE 1 MAXSIZE 100 END END END ----- Original Message ----- From: "Paul Dymecki" To: "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 3:58 PM Subject: Re: [Mapserver-users] adding shp to mapfile / projection > Hi, > Yes i think i've covered all the obvious, things, though you never know. > Here are my two scripts that query the db and create the shp and dbf files. > shp_ukpdate.php queries the db and eman_shp.php has supporting classes > thx, > Paul > ----- Original Message ----- > From: "Daniel Morissette" > To: "Paul Dymecki" > Sent: Monday, March 03, 2003 3:38 PM > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > Paul Dymecki wrote: > > > > > > Hi Daniel, > > > From talking to people i think i've narrowed it down to a problem > with > > > my shp file format. Any ways here is my current projection function, > create > > > point, and close() functions if you can see anything that's off? > > > thx, > > > Paul > > > > > > > From reading the replies on the list this is probably the next logical > > thing to check, but without seeing your complete application including > > scripts and data nobody can confirm that. > > > > Did you make sure that you pass a valid shapefile type to the call to > > ms_newShapeFileObj()? > > > > BTW, please reply via the list, this will increase your chances of > > getting help. > > > > Daniel > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette@dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > From mgrig@mnet-online.de Mon Mar 3 23:32:41 2003 From: mgrig@mnet-online.de (Marian Grigoras) Date: Tue, 4 Mar 2003 00:32:41 +0100 Subject: [Mapserver-users] libTIFF on Linux References: Message-ID: <005e01c2e1dd$333a8390$fe79a8c0@gandalf> Hi, I configured recently a similar configuration. It looks like the ./configure did not find your LibTIFF library. You could force this by using --with-tiff[=DIR] or edit directly your Makefile and put the directory on the TIFF_INC line (e.g. TIFF_INC= -I/usr/local/lib) But I would suggest that you use the GDAL library. It has support for tiff and many other good things, all in one library. Makes it so much easier to recompile. Vorsicht! I think you "have to" compile using --with-gdal. MapServer does not seem to look for it by default. marian -- So you're a PhD!... Just don't touch anything! From junkmail@deathkeep.com Tue Mar 4 00:09:25 2003 From: junkmail@deathkeep.com (Junkmail Box) Date: Mon, 3 Mar 2003 16:09:25 -0800 (PST) Subject: [Mapserver-users] perl mapscript - progress... Message-ID: <20030303160114.O58103-100000@osiris.deathkeep.com> Thanks for the help so far, especially Lowell. I can get perl-mapscript to draw a map that's already defined in a .map file, which is good progress. I wanted to look at the quakes demo to see what else I could learn, but I'm having a devil of a time trying to figure anything out. Here's an attempt to draw a point on a map, that doesn't work. The underlying map draws A-OK, but the point isn't drawing. my $map = new mapscript::mapObj("arcata.map") or die "Cannot open map file\n"; my $img = $map->prepareImage(); my $layer = new mapscript::layerObj($map); $layer->{'name'} = 'points'; $layer->{'type'} = $mapscript::MS_LAYER_POINT; my $point = new mapscript::pointObj(); # are these supposed to be lon/lat? arcata is 124W and 41N $point->{'x'} = -124; $point->{'y'} = 41; $point->draw($map,$layer,$img,undef,'HERE'); $map->drawLabelCache($img); $img->saveImage("example.png",$mapscript::MS_PNG,0,0,0); I gather from the quakes example that the pointObj's x and y are supposed to be lon/lat? The perl-mapscript doc doesn't specify. Is there a tutorial on perl-mapscript, or is that reference the only document? From ed@topozone.com Tue Mar 4 00:12:33 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Mar 2003 19:12:33 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E7F@mercator.topozone.com> Paul - It sounds like your IIS anonymous user account (usually IUSR_) does not have read permission on the directory you originally used for this shapefile. Can you check that? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 6:31 PM To: Daniel Morissette Cc: MapServer List (E-mail) Subject: Re: [Mapserver-users] adding shp to mapfile / projection Hi All, Well now i'm able to display my shp file in a map on it's own(had to move my data dir to the root of the c-drive) so now just have to get it working with my existing map file Any hints or ideas would be appreciated, Paul MAP NAME "MAP OF CANADA" STATUS ON #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 EXTENT -2200000 -712631 3072800 3840000 SIZE 400 300 SHAPEPATH "c:/data-dir" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGECOLOR 255 255 255 TRANSPARENT OFF UNITS METERS INTERLACE ON IMAGETYPE GIF IMAGEQUALITY 75 WEB MINSCALE 2e+006 MAXSCALE 5e+007 IMAGEPATH "C:/temp/ms_tmp/" IMAGEURL "/ms_tmp/" END REFERENCE STATUS ON IMAGE "images/keymap.gif" SIZE 100 75 EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END PROJECTION "init=epsg:42304" END LEGEND STATUS OFF IMAGECOLOR 255 255 255 TRANSPARENT FALSE INTERLACE TRUE POSITION LL KEYSIZE 20 10 KEYSPACING 5 5 TEMPLATE "C:/Program Files/Apache Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm l" LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 255 0 0 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 TRANSPARENT FALSE UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL INTERLACE TRUE LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END LAYER NAME "bathymetry" STATUS ON DATA "bath_mapserver.tif" TYPE RASTER UNITS METERS SIZEUNITS PIXELS TOLERANCE 3 TOLERANCEUNITS PIXELS TEMPLATE "ttt.html" END LAYER NAME "Eman-sites" STATUS OFF DATA "sites.shp" TYPE POINT UNITS METERS SIZEUNITS METERS LABELITEM "Name" TOLERANCE 5 TOLERANCEUNITS PIXELS TRANSFORM TRUE TEMPLATE "ttt.html" CLASS NAME "site" SYMBOL 2 COLOR 255 51 102 SIZE 7 MINSIZE 1 MAXSIZE 100 END END END ----- Original Message ----- From: "Paul Dymecki" To: "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 3:58 PM Subject: Re: [Mapserver-users] adding shp to mapfile / projection > Hi, > Yes i think i've covered all the obvious, things, though you never know. > Here are my two scripts that query the db and create the shp and dbf files. > shp_ukpdate.php queries the db and eman_shp.php has supporting classes > thx, > Paul > ----- Original Message ----- > From: "Daniel Morissette" > To: "Paul Dymecki" > Sent: Monday, March 03, 2003 3:38 PM > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > Paul Dymecki wrote: > > > > > > Hi Daniel, > > > From talking to people i think i've narrowed it down to a problem > with > > > my shp file format. Any ways here is my current projection function, > create > > > point, and close() functions if you can see anything that's off? > > > thx, > > > Paul > > > > > > > From reading the replies on the list this is probably the next logical > > thing to check, but without seeing your complete application including > > scripts and data nobody can confirm that. > > > > Did you make sure that you pass a valid shapefile type to the call to > > ms_newShapeFileObj()? > > > > BTW, please reply via the list, this will increase your chances of > > getting help. > > > > Daniel > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette@dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From millardymecki@sympatico.ca Tue Mar 4 00:51:09 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 19:51:09 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection References: <13858AA1A74F30419F319ACB66A9D1221F3E7F@mercator.topozone.com> Message-ID: <01bd01c2e1e8$2615f270$f098fea9@pauls> I'm on winXP but using apache though, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" ; "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 7:12 PM Subject: RE: [Mapserver-users] adding shp to mapfile / projection > Paul - > > It sounds like your IIS anonymous user account (usually > IUSR_) does not have read permission on the directory you > originally used for this shapefile. Can you check that? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 Fax: (978) 251-1396 > ed@topozone.com > > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 6:31 PM > To: Daniel Morissette > Cc: MapServer List (E-mail) > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > Hi All, > Well now i'm able to display my shp file in a map on it's own(had to > move my > data dir to the root of the c-drive) so now just have to get it working > with > my existing map file > Any hints or ideas would be appreciated, > Paul > > > MAP > > NAME "MAP OF CANADA" > > STATUS ON > > #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 > > EXTENT -2200000 -712631 3072800 3840000 > > SIZE 400 300 > > SHAPEPATH "c:/data-dir" > > SYMBOLSET "./etc/symbols.sym" > > FONTSET "./etc/fonts.txt" > > IMAGECOLOR 255 255 255 > > TRANSPARENT OFF > > UNITS METERS > > INTERLACE ON > > IMAGETYPE GIF > > IMAGEQUALITY 75 > > WEB > > MINSCALE 2e+006 > > MAXSCALE 5e+007 > > IMAGEPATH "C:/temp/ms_tmp/" > > IMAGEURL "/ms_tmp/" > > END > > REFERENCE > > STATUS ON > > IMAGE "images/keymap.gif" > > SIZE 100 75 > > EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 > > COLOR -1 -1 -1 > > OUTLINECOLOR 255 0 0 > > MINBOXSIZE 3 > > MAXBOXSIZE 0 > > MARKER 0 > > MARKERSIZE 0 > > END > > QUERYMAP > > STATUS OFF > > SIZE -1 -1 > > COLOR 255 0 0 > > STYLE HILITE > > END > > PROJECTION > > "init=epsg:42304" > > END > > LEGEND > > STATUS OFF > > IMAGECOLOR 255 255 255 > > TRANSPARENT FALSE > > INTERLACE TRUE > > POSITION LL > > KEYSIZE 20 10 > > KEYSPACING 5 5 > > TEMPLATE "C:/Program Files/Apache > Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm > l" > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > OFFSET 0 0 > > BUFFER 0 > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > COLOR 255 0 0 > > PARTIALS TRUE > > FORCE FALSE > > END > > END > > SCALEBAR > > STATUS ON > > COLOR 255 255 255 > > OUTLINECOLOR 0 0 0 > > BACKGROUNDCOLOR 0 0 0 > > IMAGECOLOR 255 255 255 > > TRANSPARENT FALSE > > UNITS KILOMETERS > > INTERVALS 5 > > SIZE 150 5 > > STYLE 0 > > POSITION LL > > INTERLACE TRUE > > LABEL > > TYPE BITMAP > > SIZE SMALL > > OFFSET 0 0 > > BUFFER 0 > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > COLOR 0 0 0 > > PARTIALS TRUE > > FORCE FALSE > > END > > END > > LAYER > > NAME "bathymetry" > > STATUS ON > > DATA "bath_mapserver.tif" > > TYPE RASTER > > UNITS METERS > > SIZEUNITS PIXELS > > TOLERANCE 3 > > TOLERANCEUNITS PIXELS > > TEMPLATE "ttt.html" > > END > > > > > > LAYER > > NAME "Eman-sites" > > STATUS OFF > > DATA "sites.shp" > > TYPE POINT > > UNITS METERS > > SIZEUNITS METERS > > LABELITEM "Name" > > TOLERANCE 5 > > TOLERANCEUNITS PIXELS > > TRANSFORM TRUE > > TEMPLATE "ttt.html" > > CLASS > > NAME "site" > > SYMBOL 2 > > COLOR 255 51 102 > > SIZE 7 > > MINSIZE 1 > > MAXSIZE 100 > > END > > END > > END > > > > > > > ----- Original Message ----- > From: "Paul Dymecki" > To: "Daniel Morissette" > Cc: "MapServer List (E-mail)" > Sent: Monday, March 03, 2003 3:58 PM > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > Hi, > > Yes i think i've covered all the obvious, things, though you never > know. > > Here are my two scripts that query the db and create the shp and dbf > files. > > shp_ukpdate.php queries the db and eman_shp.php has supporting > classes > > thx, > > Paul > > ----- Original Message ----- > > From: "Daniel Morissette" > > To: "Paul Dymecki" > > Sent: Monday, March 03, 2003 3:38 PM > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > Paul Dymecki wrote: > > > > > > > > Hi Daniel, > > > > From talking to people i think i've narrowed it down to a > problem > > with > > > > my shp file format. Any ways here is my current projection > function, > > create > > > > point, and close() functions if you can see anything that's off? > > > > thx, > > > > Paul > > > > > > > > > > From reading the replies on the list this is probably the next > logical > > > thing to check, but without seeing your complete application > including > > > scripts and data nobody can confirm that. > > > > > > Did you make sure that you pass a valid shapefile type to the call > to > > > ms_newShapeFileObj()? > > > > > > BTW, please reply via the list, this will increase your chances of > > > getting help. > > > > > > Daniel > > > -- > > > ------------------------------------------------------------ > > > Daniel Morissette morissette@dmsolutions.ca > > > DM Solutions Group http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Tue Mar 4 00:54:22 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Mar 2003 19:54:22 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E83@mercator.topozone.com> OK - the issue doesn't change. You need to know what user context your anonymous Web visitors are using, and make sure that that user has permission to read that shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 7:51 PM To: Ed McNierney; Daniel Morissette Cc: MapServer List (E-mail) Subject: Re: [Mapserver-users] adding shp to mapfile / projection I'm on winXP but using apache though, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" ; "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 7:12 PM Subject: RE: [Mapserver-users] adding shp to mapfile / projection > Paul - > > It sounds like your IIS anonymous user account (usually > IUSR_) does not have read permission on the directory you > originally used for this shapefile. Can you check that? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 Fax: (978) 251-1396 > ed@topozone.com > > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 6:31 PM > To: Daniel Morissette > Cc: MapServer List (E-mail) > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > Hi All, > Well now i'm able to display my shp file in a map on it's own(had to > move my > data dir to the root of the c-drive) so now just have to get it working > with > my existing map file > Any hints or ideas would be appreciated, > Paul > > > MAP > > NAME "MAP OF CANADA" > > STATUS ON > > #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 > > EXTENT -2200000 -712631 3072800 3840000 > > SIZE 400 300 > > SHAPEPATH "c:/data-dir" > > SYMBOLSET "./etc/symbols.sym" > > FONTSET "./etc/fonts.txt" > > IMAGECOLOR 255 255 255 > > TRANSPARENT OFF > > UNITS METERS > > INTERLACE ON > > IMAGETYPE GIF > > IMAGEQUALITY 75 > > WEB > > MINSCALE 2e+006 > > MAXSCALE 5e+007 > > IMAGEPATH "C:/temp/ms_tmp/" > > IMAGEURL "/ms_tmp/" > > END > > REFERENCE > > STATUS ON > > IMAGE "images/keymap.gif" > > SIZE 100 75 > > EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 > > COLOR -1 -1 -1 > > OUTLINECOLOR 255 0 0 > > MINBOXSIZE 3 > > MAXBOXSIZE 0 > > MARKER 0 > > MARKERSIZE 0 > > END > > QUERYMAP > > STATUS OFF > > SIZE -1 -1 > > COLOR 255 0 0 > > STYLE HILITE > > END > > PROJECTION > > "init=epsg:42304" > > END > > LEGEND > > STATUS OFF > > IMAGECOLOR 255 255 255 > > TRANSPARENT FALSE > > INTERLACE TRUE > > POSITION LL > > KEYSIZE 20 10 > > KEYSPACING 5 5 > > TEMPLATE "C:/Program Files/Apache > Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm > l" > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > OFFSET 0 0 > > BUFFER 0 > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > COLOR 255 0 0 > > PARTIALS TRUE > > FORCE FALSE > > END > > END > > SCALEBAR > > STATUS ON > > COLOR 255 255 255 > > OUTLINECOLOR 0 0 0 > > BACKGROUNDCOLOR 0 0 0 > > IMAGECOLOR 255 255 255 > > TRANSPARENT FALSE > > UNITS KILOMETERS > > INTERVALS 5 > > SIZE 150 5 > > STYLE 0 > > POSITION LL > > INTERLACE TRUE > > LABEL > > TYPE BITMAP > > SIZE SMALL > > OFFSET 0 0 > > BUFFER 0 > > MINDISTANCE -1 > > MINFEATURESIZE -1 > > COLOR 0 0 0 > > PARTIALS TRUE > > FORCE FALSE > > END > > END > > LAYER > > NAME "bathymetry" > > STATUS ON > > DATA "bath_mapserver.tif" > > TYPE RASTER > > UNITS METERS > > SIZEUNITS PIXELS > > TOLERANCE 3 > > TOLERANCEUNITS PIXELS > > TEMPLATE "ttt.html" > > END > > > > > > LAYER > > NAME "Eman-sites" > > STATUS OFF > > DATA "sites.shp" > > TYPE POINT > > UNITS METERS > > SIZEUNITS METERS > > LABELITEM "Name" > > TOLERANCE 5 > > TOLERANCEUNITS PIXELS > > TRANSFORM TRUE > > TEMPLATE "ttt.html" > > CLASS > > NAME "site" > > SYMBOL 2 > > COLOR 255 51 102 > > SIZE 7 > > MINSIZE 1 > > MAXSIZE 100 > > END > > END > > END > > > > > > > ----- Original Message ----- > From: "Paul Dymecki" > To: "Daniel Morissette" > Cc: "MapServer List (E-mail)" > Sent: Monday, March 03, 2003 3:58 PM > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > Hi, > > Yes i think i've covered all the obvious, things, though you never > know. > > Here are my two scripts that query the db and create the shp and dbf > files. > > shp_ukpdate.php queries the db and eman_shp.php has supporting > classes > > thx, > > Paul > > ----- Original Message ----- > > From: "Daniel Morissette" > > To: "Paul Dymecki" > > Sent: Monday, March 03, 2003 3:38 PM > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > Paul Dymecki wrote: > > > > > > > > Hi Daniel, > > > > From talking to people i think i've narrowed it down to a > problem > > with > > > > my shp file format. Any ways here is my current projection > function, > > create > > > > point, and close() functions if you can see anything that's off? > > > > thx, > > > > Paul > > > > > > > > > > From reading the replies on the list this is probably the next > logical > > > thing to check, but without seeing your complete application > including > > > scripts and data nobody can confirm that. > > > > > > Did you make sure that you pass a valid shapefile type to the call > to > > > ms_newShapeFileObj()? > > > > > > BTW, please reply via the list, this will increase your chances of > > > getting help. > > > > > > Daniel > > > -- > > > ------------------------------------------------------------ > > > Daniel Morissette morissette@dmsolutions.ca > > > DM Solutions Group http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From millardymecki@sympatico.ca Tue Mar 4 01:34:37 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 20:34:37 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection References: <13858AA1A74F30419F319ACB66A9D1221F3E83@mercator.topozone.com> Message-ID: <01c501c2e1ee$380cbc60$f098fea9@pauls> Hi Ed, You are absolutely right, turning on the guest account on xp did the trick. thx, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" ; "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 7:54 PM Subject: RE: [Mapserver-users] adding shp to mapfile / projection > OK - the issue doesn't change. You need to know what user context your > anonymous Web visitors are using, and make sure that that user has > permission to read that shapefile. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 Fax: (978) 251-1396 > ed@topozone.com > > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 7:51 PM > To: Ed McNierney; Daniel Morissette > Cc: MapServer List (E-mail) > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > I'm on winXP but using apache though, > Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" ; "Daniel Morissette" > > Cc: "MapServer List (E-mail)" > Sent: Monday, March 03, 2003 7:12 PM > Subject: RE: [Mapserver-users] adding shp to mapfile / projection > > > > Paul - > > > > It sounds like your IIS anonymous user account (usually > > IUSR_) does not have read permission on the directory you > > originally used for this shapefile. Can you check that? > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > Phone: (978) 251-4242 Fax: (978) 251-1396 > > ed@topozone.com > > > > > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 6:31 PM > > To: Daniel Morissette > > Cc: MapServer List (E-mail) > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > Hi All, > > Well now i'm able to display my shp file in a map on it's own(had to > > move my > > data dir to the root of the c-drive) so now just have to get it > working > > with > > my existing map file > > Any hints or ideas would be appreciated, > > Paul > > > > > > MAP > > > > NAME "MAP OF CANADA" > > > > STATUS ON > > > > #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > SIZE 400 300 > > > > SHAPEPATH "c:/data-dir" > > > > SYMBOLSET "./etc/symbols.sym" > > > > FONTSET "./etc/fonts.txt" > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT OFF > > > > UNITS METERS > > > > INTERLACE ON > > > > IMAGETYPE GIF > > > > IMAGEQUALITY 75 > > > > WEB > > > > MINSCALE 2e+006 > > > > MAXSCALE 5e+007 > > > > IMAGEPATH "C:/temp/ms_tmp/" > > > > IMAGEURL "/ms_tmp/" > > > > END > > > > REFERENCE > > > > STATUS ON > > > > IMAGE "images/keymap.gif" > > > > SIZE 100 75 > > > > EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 > > > > COLOR -1 -1 -1 > > > > OUTLINECOLOR 255 0 0 > > > > MINBOXSIZE 3 > > > > MAXBOXSIZE 0 > > > > MARKER 0 > > > > MARKERSIZE 0 > > > > END > > > > QUERYMAP > > > > STATUS OFF > > > > SIZE -1 -1 > > > > COLOR 255 0 0 > > > > STYLE HILITE > > > > END > > > > PROJECTION > > > > "init=epsg:42304" > > > > END > > > > LEGEND > > > > STATUS OFF > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT FALSE > > > > INTERLACE TRUE > > > > POSITION LL > > > > KEYSIZE 20 10 > > > > KEYSPACING 5 5 > > > > TEMPLATE "C:/Program Files/Apache > > > Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm > > l" > > > > LABEL > > > > TYPE BITMAP > > > > SIZE MEDIUM > > > > OFFSET 0 0 > > > > BUFFER 0 > > > > MINDISTANCE -1 > > > > MINFEATURESIZE -1 > > > > COLOR 255 0 0 > > > > PARTIALS TRUE > > > > FORCE FALSE > > > > END > > > > END > > > > SCALEBAR > > > > STATUS ON > > > > COLOR 255 255 255 > > > > OUTLINECOLOR 0 0 0 > > > > BACKGROUNDCOLOR 0 0 0 > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT FALSE > > > > UNITS KILOMETERS > > > > INTERVALS 5 > > > > SIZE 150 5 > > > > STYLE 0 > > > > POSITION LL > > > > INTERLACE TRUE > > > > LABEL > > > > TYPE BITMAP > > > > SIZE SMALL > > > > OFFSET 0 0 > > > > BUFFER 0 > > > > MINDISTANCE -1 > > > > MINFEATURESIZE -1 > > > > COLOR 0 0 0 > > > > PARTIALS TRUE > > > > FORCE FALSE > > > > END > > > > END > > > > LAYER > > > > NAME "bathymetry" > > > > STATUS ON > > > > DATA "bath_mapserver.tif" > > > > TYPE RASTER > > > > UNITS METERS > > > > SIZEUNITS PIXELS > > > > TOLERANCE 3 > > > > TOLERANCEUNITS PIXELS > > > > TEMPLATE "ttt.html" > > > > END > > > > > > > > > > > > LAYER > > > > NAME "Eman-sites" > > > > STATUS OFF > > > > DATA "sites.shp" > > > > TYPE POINT > > > > UNITS METERS > > > > SIZEUNITS METERS > > > > LABELITEM "Name" > > > > TOLERANCE 5 > > > > TOLERANCEUNITS PIXELS > > > > TRANSFORM TRUE > > > > TEMPLATE "ttt.html" > > > > CLASS > > > > NAME "site" > > > > SYMBOL 2 > > > > COLOR 255 51 102 > > > > SIZE 7 > > > > MINSIZE 1 > > > > MAXSIZE 100 > > > > END > > > > END > > > > END > > > > > > > > > > > > > > ----- Original Message ----- > > From: "Paul Dymecki" > > To: "Daniel Morissette" > > Cc: "MapServer List (E-mail)" > > Sent: Monday, March 03, 2003 3:58 PM > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > Hi, > > > Yes i think i've covered all the obvious, things, though you > never > > know. > > > Here are my two scripts that query the db and create the shp and dbf > > files. > > > shp_ukpdate.php queries the db and eman_shp.php has supporting > > classes > > > thx, > > > Paul > > > ----- Original Message ----- > > > From: "Daniel Morissette" > > > To: "Paul Dymecki" > > > Sent: Monday, March 03, 2003 3:38 PM > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > > > > Paul Dymecki wrote: > > > > > > > > > > Hi Daniel, > > > > > From talking to people i think i've narrowed it down to a > > problem > > > with > > > > > my shp file format. Any ways here is my current projection > > function, > > > create > > > > > point, and close() functions if you can see anything that's off? > > > > > thx, > > > > > Paul > > > > > > > > > > > > > From reading the replies on the list this is probably the next > > logical > > > > thing to check, but without seeing your complete application > > including > > > > scripts and data nobody can confirm that. > > > > > > > > Did you make sure that you pass a valid shapefile type to the call > > to > > > > ms_newShapeFileObj()? > > > > > > > > BTW, please reply via the list, this will increase your chances of > > > > getting help. > > > > > > > > Daniel > > > > -- > > > > ------------------------------------------------------------ > > > > Daniel Morissette morissette@dmsolutions.ca > > > > DM Solutions Group http://www.dmsolutions.ca/ > > > > ------------------------------------------------------------ > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From millardymecki@sympatico.ca Tue Mar 4 01:40:27 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 20:40:27 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection References: <13858AA1A74F30419F319ACB66A9D1221F3E83@mercator.topozone.com> Message-ID: <01ce01c2e1ef$08ee3f20$f098fea9@pauls> Forgot to mention though it's still not working with my other mapfile, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" ; "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 7:54 PM Subject: RE: [Mapserver-users] adding shp to mapfile / projection > OK - the issue doesn't change. You need to know what user context your > anonymous Web visitors are using, and make sure that that user has > permission to read that shapefile. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 Fax: (978) 251-1396 > ed@topozone.com > > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 7:51 PM > To: Ed McNierney; Daniel Morissette > Cc: MapServer List (E-mail) > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > I'm on winXP but using apache though, > Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" ; "Daniel Morissette" > > Cc: "MapServer List (E-mail)" > Sent: Monday, March 03, 2003 7:12 PM > Subject: RE: [Mapserver-users] adding shp to mapfile / projection > > > > Paul - > > > > It sounds like your IIS anonymous user account (usually > > IUSR_) does not have read permission on the directory you > > originally used for this shapefile. Can you check that? > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > Phone: (978) 251-4242 Fax: (978) 251-1396 > > ed@topozone.com > > > > > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 6:31 PM > > To: Daniel Morissette > > Cc: MapServer List (E-mail) > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > Hi All, > > Well now i'm able to display my shp file in a map on it's own(had to > > move my > > data dir to the root of the c-drive) so now just have to get it > working > > with > > my existing map file > > Any hints or ideas would be appreciated, > > Paul > > > > > > MAP > > > > NAME "MAP OF CANADA" > > > > STATUS ON > > > > #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > SIZE 400 300 > > > > SHAPEPATH "c:/data-dir" > > > > SYMBOLSET "./etc/symbols.sym" > > > > FONTSET "./etc/fonts.txt" > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT OFF > > > > UNITS METERS > > > > INTERLACE ON > > > > IMAGETYPE GIF > > > > IMAGEQUALITY 75 > > > > WEB > > > > MINSCALE 2e+006 > > > > MAXSCALE 5e+007 > > > > IMAGEPATH "C:/temp/ms_tmp/" > > > > IMAGEURL "/ms_tmp/" > > > > END > > > > REFERENCE > > > > STATUS ON > > > > IMAGE "images/keymap.gif" > > > > SIZE 100 75 > > > > EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 > > > > COLOR -1 -1 -1 > > > > OUTLINECOLOR 255 0 0 > > > > MINBOXSIZE 3 > > > > MAXBOXSIZE 0 > > > > MARKER 0 > > > > MARKERSIZE 0 > > > > END > > > > QUERYMAP > > > > STATUS OFF > > > > SIZE -1 -1 > > > > COLOR 255 0 0 > > > > STYLE HILITE > > > > END > > > > PROJECTION > > > > "init=epsg:42304" > > > > END > > > > LEGEND > > > > STATUS OFF > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT FALSE > > > > INTERLACE TRUE > > > > POSITION LL > > > > KEYSIZE 20 10 > > > > KEYSPACING 5 5 > > > > TEMPLATE "C:/Program Files/Apache > > > Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm > > l" > > > > LABEL > > > > TYPE BITMAP > > > > SIZE MEDIUM > > > > OFFSET 0 0 > > > > BUFFER 0 > > > > MINDISTANCE -1 > > > > MINFEATURESIZE -1 > > > > COLOR 255 0 0 > > > > PARTIALS TRUE > > > > FORCE FALSE > > > > END > > > > END > > > > SCALEBAR > > > > STATUS ON > > > > COLOR 255 255 255 > > > > OUTLINECOLOR 0 0 0 > > > > BACKGROUNDCOLOR 0 0 0 > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT FALSE > > > > UNITS KILOMETERS > > > > INTERVALS 5 > > > > SIZE 150 5 > > > > STYLE 0 > > > > POSITION LL > > > > INTERLACE TRUE > > > > LABEL > > > > TYPE BITMAP > > > > SIZE SMALL > > > > OFFSET 0 0 > > > > BUFFER 0 > > > > MINDISTANCE -1 > > > > MINFEATURESIZE -1 > > > > COLOR 0 0 0 > > > > PARTIALS TRUE > > > > FORCE FALSE > > > > END > > > > END > > > > LAYER > > > > NAME "bathymetry" > > > > STATUS ON > > > > DATA "bath_mapserver.tif" > > > > TYPE RASTER > > > > UNITS METERS > > > > SIZEUNITS PIXELS > > > > TOLERANCE 3 > > > > TOLERANCEUNITS PIXELS > > > > TEMPLATE "ttt.html" > > > > END > > > > > > > > > > > > LAYER > > > > NAME "Eman-sites" > > > > STATUS OFF > > > > DATA "sites.shp" > > > > TYPE POINT > > > > UNITS METERS > > > > SIZEUNITS METERS > > > > LABELITEM "Name" > > > > TOLERANCE 5 > > > > TOLERANCEUNITS PIXELS > > > > TRANSFORM TRUE > > > > TEMPLATE "ttt.html" > > > > CLASS > > > > NAME "site" > > > > SYMBOL 2 > > > > COLOR 255 51 102 > > > > SIZE 7 > > > > MINSIZE 1 > > > > MAXSIZE 100 > > > > END > > > > END > > > > END > > > > > > > > > > > > > > ----- Original Message ----- > > From: "Paul Dymecki" > > To: "Daniel Morissette" > > Cc: "MapServer List (E-mail)" > > Sent: Monday, March 03, 2003 3:58 PM > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > Hi, > > > Yes i think i've covered all the obvious, things, though you > never > > know. > > > Here are my two scripts that query the db and create the shp and dbf > > files. > > > shp_ukpdate.php queries the db and eman_shp.php has supporting > > classes > > > thx, > > > Paul > > > ----- Original Message ----- > > > From: "Daniel Morissette" > > > To: "Paul Dymecki" > > > Sent: Monday, March 03, 2003 3:38 PM > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > > > > Paul Dymecki wrote: > > > > > > > > > > Hi Daniel, > > > > > From talking to people i think i've narrowed it down to a > > problem > > > with > > > > > my shp file format. Any ways here is my current projection > > function, > > > create > > > > > point, and close() functions if you can see anything that's off? > > > > > thx, > > > > > Paul > > > > > > > > > > > > > From reading the replies on the list this is probably the next > > logical > > > > thing to check, but without seeing your complete application > > including > > > > scripts and data nobody can confirm that. > > > > > > > > Did you make sure that you pass a valid shapefile type to the call > > to > > > > ms_newShapeFileObj()? > > > > > > > > BTW, please reply via the list, this will increase your chances of > > > > getting help. > > > > > > > > Daniel > > > > -- > > > > ------------------------------------------------------------ > > > > Daniel Morissette morissette@dmsolutions.ca > > > > DM Solutions Group http://www.dmsolutions.ca/ > > > > ------------------------------------------------------------ > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From ed@topozone.com Tue Mar 4 01:43:24 2003 From: ed@topozone.com (Ed McNierney) Date: Mon, 3 Mar 2003 20:43:24 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E84@mercator.topozone.com> Then you need to figure out what's different between the two . Are you running under the same user context in Apache for both setups? Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Paul Dymecki [mailto:millardymecki@sympatico.ca] Sent: Monday, March 03, 2003 8:40 PM To: Ed McNierney; Daniel Morissette Cc: MapServer List (E-mail) Subject: Re: [Mapserver-users] adding shp to mapfile / projection Forgot to mention though it's still not working with my other mapfile, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" ; "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 7:54 PM Subject: RE: [Mapserver-users] adding shp to mapfile / projection > OK - the issue doesn't change. You need to know what user context your > anonymous Web visitors are using, and make sure that that user has > permission to read that shapefile. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 Fax: (978) 251-1396 > ed@topozone.com > > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 7:51 PM > To: Ed McNierney; Daniel Morissette > Cc: MapServer List (E-mail) > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > I'm on winXP but using apache though, > Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" ; "Daniel Morissette" > > Cc: "MapServer List (E-mail)" > Sent: Monday, March 03, 2003 7:12 PM > Subject: RE: [Mapserver-users] adding shp to mapfile / projection > > > > Paul - > > > > It sounds like your IIS anonymous user account (usually > > IUSR_) does not have read permission on the directory you > > originally used for this shapefile. Can you check that? > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > Phone: (978) 251-4242 Fax: (978) 251-1396 > > ed@topozone.com > > > > > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 6:31 PM > > To: Daniel Morissette > > Cc: MapServer List (E-mail) > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > Hi All, > > Well now i'm able to display my shp file in a map on it's own(had to > > move my > > data dir to the root of the c-drive) so now just have to get it > working > > with > > my existing map file > > Any hints or ideas would be appreciated, > > Paul > > > > > > MAP > > > > NAME "MAP OF CANADA" > > > > STATUS ON > > > > #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > SIZE 400 300 > > > > SHAPEPATH "c:/data-dir" > > > > SYMBOLSET "./etc/symbols.sym" > > > > FONTSET "./etc/fonts.txt" > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT OFF > > > > UNITS METERS > > > > INTERLACE ON > > > > IMAGETYPE GIF > > > > IMAGEQUALITY 75 > > > > WEB > > > > MINSCALE 2e+006 > > > > MAXSCALE 5e+007 > > > > IMAGEPATH "C:/temp/ms_tmp/" > > > > IMAGEURL "/ms_tmp/" > > > > END > > > > REFERENCE > > > > STATUS ON > > > > IMAGE "images/keymap.gif" > > > > SIZE 100 75 > > > > EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 > > > > COLOR -1 -1 -1 > > > > OUTLINECOLOR 255 0 0 > > > > MINBOXSIZE 3 > > > > MAXBOXSIZE 0 > > > > MARKER 0 > > > > MARKERSIZE 0 > > > > END > > > > QUERYMAP > > > > STATUS OFF > > > > SIZE -1 -1 > > > > COLOR 255 0 0 > > > > STYLE HILITE > > > > END > > > > PROJECTION > > > > "init=epsg:42304" > > > > END > > > > LEGEND > > > > STATUS OFF > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT FALSE > > > > INTERLACE TRUE > > > > POSITION LL > > > > KEYSIZE 20 10 > > > > KEYSPACING 5 5 > > > > TEMPLATE "C:/Program Files/Apache > > > Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm > > l" > > > > LABEL > > > > TYPE BITMAP > > > > SIZE MEDIUM > > > > OFFSET 0 0 > > > > BUFFER 0 > > > > MINDISTANCE -1 > > > > MINFEATURESIZE -1 > > > > COLOR 255 0 0 > > > > PARTIALS TRUE > > > > FORCE FALSE > > > > END > > > > END > > > > SCALEBAR > > > > STATUS ON > > > > COLOR 255 255 255 > > > > OUTLINECOLOR 0 0 0 > > > > BACKGROUNDCOLOR 0 0 0 > > > > IMAGECOLOR 255 255 255 > > > > TRANSPARENT FALSE > > > > UNITS KILOMETERS > > > > INTERVALS 5 > > > > SIZE 150 5 > > > > STYLE 0 > > > > POSITION LL > > > > INTERLACE TRUE > > > > LABEL > > > > TYPE BITMAP > > > > SIZE SMALL > > > > OFFSET 0 0 > > > > BUFFER 0 > > > > MINDISTANCE -1 > > > > MINFEATURESIZE -1 > > > > COLOR 0 0 0 > > > > PARTIALS TRUE > > > > FORCE FALSE > > > > END > > > > END > > > > LAYER > > > > NAME "bathymetry" > > > > STATUS ON > > > > DATA "bath_mapserver.tif" > > > > TYPE RASTER > > > > UNITS METERS > > > > SIZEUNITS PIXELS > > > > TOLERANCE 3 > > > > TOLERANCEUNITS PIXELS > > > > TEMPLATE "ttt.html" > > > > END > > > > > > > > > > > > LAYER > > > > NAME "Eman-sites" > > > > STATUS OFF > > > > DATA "sites.shp" > > > > TYPE POINT > > > > UNITS METERS > > > > SIZEUNITS METERS > > > > LABELITEM "Name" > > > > TOLERANCE 5 > > > > TOLERANCEUNITS PIXELS > > > > TRANSFORM TRUE > > > > TEMPLATE "ttt.html" > > > > CLASS > > > > NAME "site" > > > > SYMBOL 2 > > > > COLOR 255 51 102 > > > > SIZE 7 > > > > MINSIZE 1 > > > > MAXSIZE 100 > > > > END > > > > END > > > > END > > > > > > > > > > > > > > ----- Original Message ----- > > From: "Paul Dymecki" > > To: "Daniel Morissette" > > Cc: "MapServer List (E-mail)" > > Sent: Monday, March 03, 2003 3:58 PM > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > Hi, > > > Yes i think i've covered all the obvious, things, though you > never > > know. > > > Here are my two scripts that query the db and create the shp and dbf > > files. > > > shp_ukpdate.php queries the db and eman_shp.php has supporting > > classes > > > thx, > > > Paul > > > ----- Original Message ----- > > > From: "Daniel Morissette" > > > To: "Paul Dymecki" > > > Sent: Monday, March 03, 2003 3:38 PM > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > > > > Paul Dymecki wrote: > > > > > > > > > > Hi Daniel, > > > > > From talking to people i think i've narrowed it down to a > > problem > > > with > > > > > my shp file format. Any ways here is my current projection > > function, > > > create > > > > > point, and close() functions if you can see anything that's off? > > > > > thx, > > > > > Paul > > > > > > > > > > > > > From reading the replies on the list this is probably the next > > logical > > > > thing to check, but without seeing your complete application > > including > > > > scripts and data nobody can confirm that. > > > > > > > > Did you make sure that you pass a valid shapefile type to the call > > to > > > > ms_newShapeFileObj()? > > > > > > > > BTW, please reply via the list, this will increase your chances of > > > > getting help. > > > > > > > > Daniel > > > > -- > > > > ------------------------------------------------------------ > > > > Daniel Morissette morissette@dmsolutions.ca > > > > DM Solutions Group http://www.dmsolutions.ca/ > > > > ------------------------------------------------------------ > > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From vinko@cprsig.cl Tue Mar 4 02:18:01 2003 From: vinko@cprsig.cl (Vinko Vrsalovic) Date: Mon, 3 Mar 2003 23:18:01 -0300 Subject: [Mapserver-users] libTIFF on Linux In-Reply-To: <005e01c2e1dd$333a8390$fe79a8c0@gandalf> References: <005e01c2e1dd$333a8390$fe79a8c0@gandalf> Message-ID: <20030304021801.GA20775@landsat.cprsig.cl> On Tue, Mar 04, 2003 at 12:32:41AM +0100, Marian Grigoras wrote: > Hi, > I configured recently a similar configuration. > It looks like the ./configure did not find your LibTIFF library. > You could force this by using --with-tiff[=DIR] or edit directly > your Makefile and put the directory on the TIFF_INC line > (e.g. TIFF_INC= -I/usr/local/lib) > But I would suggest that you use the GDAL library. It has support > for tiff and many other good things, all in one library. Makes it so > much easier to recompile. > Vorsicht! I think you "have to" compile using --with-gdal. MapServer > does not seem to look for it by default. Yes, and if you compile with GDAL support remember to deactivate the other image libraries (ie, --without-tiff, --without-jpeg) to avoid conflicts that have been reported here. -- Vinko Vrsalovic http://www.cprsig.cl From vinko@cprsig.cl Tue Mar 4 02:29:18 2003 From: vinko@cprsig.cl (Vinko Vrsalovic) Date: Mon, 3 Mar 2003 23:29:18 -0300 Subject: [Mapserver-users] perl mapscript - progress... In-Reply-To: <20030303160114.O58103-100000@osiris.deathkeep.com> References: <20030303160114.O58103-100000@osiris.deathkeep.com> Message-ID: <20030304022918.GB20775@landsat.cprsig.cl> On Mon, Mar 03, 2003 at 04:09:25PM -0800, Junkmail Box wrote: > > Thanks for the help so far, especially Lowell. I can get perl-mapscript to > draw a map that's already defined in a .map file, which is good progress. > I wanted to look at the quakes demo to see what else I could learn, but > I'm having a devil of a time trying to figure anything out. > > Here's an attempt to draw a point on a map, that doesn't work. The > underlying map draws A-OK, but the point isn't drawing. > > > my $map = new mapscript::mapObj("arcata.map") or die "Cannot open map file\n"; > my $img = $map->prepareImage(); > my $layer = new mapscript::layerObj($map); $layer->{'name'} = 'points'; > $layer->{'type'} = $mapscript::MS_LAYER_POINT; > > my $point = new mapscript::pointObj(); > # are these supposed to be lon/lat? arcata is 124W and 41N > $point->{'x'} = -124; $point->{'y'} = 41; > $point->draw($map,$layer,$img,undef,'HERE'); > $map->drawLabelCache($img); > > $img->saveImage("example.png",$mapscript::MS_PNG,0,0,0); > > > I gather from the quakes example that the pointObj's x and y are supposed > to be lon/lat? The perl-mapscript doc doesn't specify. > > Is there a tutorial on perl-mapscript, or is that reference the only > document? The defalt status for a layer is OFF :-) $layer->{'status'} = $mapscript::MS_ON; The point coordinates are supposed to be consistent to the rest of the data and the extent set in mapObj or the mapfile. If they are not you can project them. But according to the comment above, you should be fine with those. To debug this type of thing i use the mapObj->save() method, it's really useful. Dunno if perl mapscript has it, though. -- Vinko Vrsalovic http://www.cprsig.cl From junkmail@deathkeep.com Tue Mar 4 03:30:04 2003 From: junkmail@deathkeep.com (Junkmail Box) Date: Mon, 3 Mar 2003 19:30:04 -0800 (PST) Subject: [Mapserver-users] perl mapscript - progress... In-Reply-To: <20030304022918.GB20775@landsat.cprsig.cl> Message-ID: <20030303192011.J59695-100000@osiris.deathkeep.com> > The defalt status for a layer is OFF :-) > $layer->{'status'} = $mapscript::MS_ON; Good thinking. Setting the status still doesn't make any points appear, however. Is the rest of that "declare a point, set its coords, and draw it" syntax correct? > The point coordinates are supposed to be consistent to the rest of > the data and the extent set in mapObj or the mapfile. How do you mean? The extent I have in arcata.map is: EXTENT 407375 4522866 410627 4526910 So I changed the test script to these coords: $point->{'x'} = 408500; $point->{'y'} = 4525000; but still nothing is displayed. > To debug this type of thing i use the mapObj->save() method, it's really > useful. Dunno if perl mapscript has it, though. Hey, now that's spiffy. This appears to be the relevant paragraph. Do you notice anything missing? LAYER NAME "points" SIZEUNITS PIXELS STATUS ON TOLERANCE 3 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS END Thanks, Vinko. Step by step... Once I get this stuff figured out and get a bit comfortable with it, I think I'd like to write up a tutorial that illustrates some of these basics in a friendly manner. It'd probably come in handy for other folks (like me) who aren't GIS experts or MapServer developers. ;) On Mon, 3 Mar 2003, Vinko Vrsalovic wrote: > On Mon, Mar 03, 2003 at 04:09:25PM -0800, Junkmail Box wrote: > > > > Thanks for the help so far, especially Lowell. I can get perl-mapscript to > > draw a map that's already defined in a .map file, which is good progress. > > I wanted to look at the quakes demo to see what else I could learn, but > > I'm having a devil of a time trying to figure anything out. > > > > Here's an attempt to draw a point on a map, that doesn't work. The > > underlying map draws A-OK, but the point isn't drawing. > > > > > > my $map = new mapscript::mapObj("arcata.map") or die "Cannot open map file\n"; > > my $img = $map->prepareImage(); > > my $layer = new mapscript::layerObj($map); $layer->{'name'} = 'points'; > > $layer->{'type'} = $mapscript::MS_LAYER_POINT; > > > > my $point = new mapscript::pointObj(); > > # are these supposed to be lon/lat? arcata is 124W and 41N > > $point->{'x'} = -124; $point->{'y'} = 41; > > $point->draw($map,$layer,$img,undef,'HERE'); > > $map->drawLabelCache($img); > > > > $img->saveImage("example.png",$mapscript::MS_PNG,0,0,0); > > > > > > I gather from the quakes example that the pointObj's x and y are supposed > > to be lon/lat? The perl-mapscript doc doesn't specify. > > > > Is there a tutorial on perl-mapscript, or is that reference the only > > document? > > The defalt status for a layer is OFF :-) > > $layer->{'status'} = $mapscript::MS_ON; > > The point coordinates are supposed to be consistent to the rest of > the data and the extent set in mapObj or the mapfile. > If they are not you can project them. But according to the comment > above, you should be fine with those. > > To debug this type of thing i use the mapObj->save() method, it's really > useful. Dunno if perl mapscript has it, though. > > -- > Vinko Vrsalovic > http://www.cprsig.cl > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From csr@rboxtech.com Tue Mar 4 03:47:23 2003 From: csr@rboxtech.com (Srinivas Reddy) Date: Tue, 4 Mar 2003 11:47:23 +0800 Subject: [Mapserver-users] query map with mapscript and php use ".TAB" layers References: <000f01c0a3a5$ef6949c0$0201a8c0@sun> <3E634DB6.6010202@thinktankdecoy.com> Message-ID: <000e01c2e200$c4380c00$0201a8c0@sun> Thanks a lot wiliam Carty. But u did not gave Ans:-. srinivasa reddy challa ----- Original Message ----- From: "William Carty" To: "Srinivas Reddy" Sent: Monday, March 03, 2003 8:42 PM Subject: Re: [Mapserver-users] query map with mapscript and php use ".TAB" layers > Please fix your clock. It says you are mailing this on March 3, 2001. > > Thanks. > > > Srinivas Reddy wrote: > > Hi > > Can anyone helps to me. > > Now am new to this technologies but I had done some of project with the reference of DM solutions map reference. In DM solutions they are done using SHP data files. But > > > > I am using > > > > tab files. How can I query the content of the layer using php and mapscript. > > > > This is my problem. This is my email id : > > csr@rboxtech.com > > or > > reddy_challa@yahoo.com > > > > Srinivasa reddy challa > > > > > > > > > > From vinko@cprsig.cl Tue Mar 4 04:22:42 2003 From: vinko@cprsig.cl (Vinko Vrsalovic) Date: Tue, 4 Mar 2003 01:22:42 -0300 Subject: [Mapserver-users] perl mapscript - progress... In-Reply-To: <20030303192011.J59695-100000@osiris.deathkeep.com> References: <20030304022918.GB20775@landsat.cprsig.cl> <20030303192011.J59695-100000@osiris.deathkeep.com> Message-ID: <20030304042242.GA21496@landsat.cprsig.cl> On Mon, Mar 03, 2003 at 07:30:04PM -0800, Junkmail Box wrote: > > The defalt status for a layer is OFF :-) > > $layer->{'status'} = $mapscript::MS_ON; > > Good thinking. Setting the status still doesn't make any points appear, > however. Is the rest of that "declare a point, set its coords, and draw > it" syntax correct? See below. Declare a point, set coords, set how it will be displayed, and draw it. > > The point coordinates are supposed to be consistent to the rest of > > the data and the extent set in mapObj or the mapfile. > > How do you mean? The extent I have in arcata.map is: > EXTENT 407375 4522866 410627 4526910 > So I changed the test script to these coords: > $point->{'x'} = 408500; > $point->{'y'} = 4525000; > but still nothing is displayed. See below :) > > To debug this type of thing i use the mapObj->save() method, it's really > > useful. Dunno if perl mapscript has it, though. > > Hey, now that's spiffy. This appears to be the relevant paragraph. Do you > notice anything missing? > > LAYER > NAME "points" > SIZEUNITS PIXELS > STATUS ON > TOLERANCE 3 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS METERS > END > Doh! How did I overlook this... You're missing a class declaration. You need to declare a class with the color, symbol and size you want the point drawn. $class = new classObj($layer) //Use Perl syntax, of course :) $class->{'symbol'} = 0; $class->{'color'} = $map->addColor(R,G,B); $class->{'size'} = 2; This syntax changed for 3.7 with the new styleObj. Keep that in mind if you'll move on to 3.7. -- Vinko Vrsalovic http://www.cprsig.cl From millardymecki@sympatico.ca Tue Mar 4 04:52:16 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Mon, 3 Mar 2003 23:52:16 -0500 Subject: [Mapserver-users] adding shp to mapfile / projection References: <13858AA1A74F30419F319ACB66A9D1221F3E84@mercator.topozone.com> Message-ID: <01ea01c2e209$d4af5a80$f098fea9@pauls> Sorry my mistake enableing the guest account made no difference. In any case i won't be running the application off this computer, so moving directories is not a problem. Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" ; "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 8:43 PM Subject: RE: [Mapserver-users] adding shp to mapfile / projection > Then you need to figure out what's different between the two . Are > you running under the same user context in Apache for both setups? > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 Fax: (978) 251-1396 > ed@topozone.com > > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 8:40 PM > To: Ed McNierney; Daniel Morissette > Cc: MapServer List (E-mail) > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > Forgot to mention though it's still not working with my other mapfile, > Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" ; "Daniel Morissette" > > Cc: "MapServer List (E-mail)" > Sent: Monday, March 03, 2003 7:54 PM > Subject: RE: [Mapserver-users] adding shp to mapfile / projection > > > > OK - the issue doesn't change. You need to know what user context > your > > anonymous Web visitors are using, and make sure that that user has > > permission to read that shapefile. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > Phone: (978) 251-4242 Fax: (978) 251-1396 > > ed@topozone.com > > > > > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 7:51 PM > > To: Ed McNierney; Daniel Morissette > > Cc: MapServer List (E-mail) > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > I'm on winXP but using apache though, > > Paul > > ----- Original Message ----- > > From: "Ed McNierney" > > To: "Paul Dymecki" ; "Daniel Morissette" > > > > Cc: "MapServer List (E-mail)" > > Sent: Monday, March 03, 2003 7:12 PM > > Subject: RE: [Mapserver-users] adding shp to mapfile / projection > > > > > > > Paul - > > > > > > It sounds like your IIS anonymous user account (usually > > > IUSR_) does not have read permission on the directory > you > > > originally used for this shapefile. Can you check that? > > > > > > - Ed > > > > > > Ed McNierney > > > President and Chief Mapmaker > > > TopoZone.com / Maps a la carte, Inc. > > > 73 Princeton Street, Suite 305 > > > North Chelmsford, MA 01863 > > > Phone: (978) 251-4242 Fax: (978) 251-1396 > > > ed@topozone.com > > > > > > > > > -----Original Message----- > > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > > Sent: Monday, March 03, 2003 6:31 PM > > > To: Daniel Morissette > > > Cc: MapServer List (E-mail) > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > Hi All, > > > Well now i'm able to display my shp file in a map on it's own(had to > > > move my > > > data dir to the root of the c-drive) so now just have to get it > > working > > > with > > > my existing map file > > > Any hints or ideas would be appreciated, > > > Paul > > > > > > > > > MAP > > > > > > NAME "MAP OF CANADA" > > > > > > STATUS ON > > > > > > #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 > > > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > > > SIZE 400 300 > > > > > > SHAPEPATH "c:/data-dir" > > > > > > SYMBOLSET "./etc/symbols.sym" > > > > > > FONTSET "./etc/fonts.txt" > > > > > > IMAGECOLOR 255 255 255 > > > > > > TRANSPARENT OFF > > > > > > UNITS METERS > > > > > > INTERLACE ON > > > > > > IMAGETYPE GIF > > > > > > IMAGEQUALITY 75 > > > > > > WEB > > > > > > MINSCALE 2e+006 > > > > > > MAXSCALE 5e+007 > > > > > > IMAGEPATH "C:/temp/ms_tmp/" > > > > > > IMAGEURL "/ms_tmp/" > > > > > > END > > > > > > REFERENCE > > > > > > STATUS ON > > > > > > IMAGE "images/keymap.gif" > > > > > > SIZE 100 75 > > > > > > EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 > > > > > > COLOR -1 -1 -1 > > > > > > OUTLINECOLOR 255 0 0 > > > > > > MINBOXSIZE 3 > > > > > > MAXBOXSIZE 0 > > > > > > MARKER 0 > > > > > > MARKERSIZE 0 > > > > > > END > > > > > > QUERYMAP > > > > > > STATUS OFF > > > > > > SIZE -1 -1 > > > > > > COLOR 255 0 0 > > > > > > STYLE HILITE > > > > > > END > > > > > > PROJECTION > > > > > > "init=epsg:42304" > > > > > > END > > > > > > LEGEND > > > > > > STATUS OFF > > > > > > IMAGECOLOR 255 255 255 > > > > > > TRANSPARENT FALSE > > > > > > INTERLACE TRUE > > > > > > POSITION LL > > > > > > KEYSIZE 20 10 > > > > > > KEYSPACING 5 5 > > > > > > TEMPLATE "C:/Program Files/Apache > > > > > > Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm > > > l" > > > > > > LABEL > > > > > > TYPE BITMAP > > > > > > SIZE MEDIUM > > > > > > OFFSET 0 0 > > > > > > BUFFER 0 > > > > > > MINDISTANCE -1 > > > > > > MINFEATURESIZE -1 > > > > > > COLOR 255 0 0 > > > > > > PARTIALS TRUE > > > > > > FORCE FALSE > > > > > > END > > > > > > END > > > > > > SCALEBAR > > > > > > STATUS ON > > > > > > COLOR 255 255 255 > > > > > > OUTLINECOLOR 0 0 0 > > > > > > BACKGROUNDCOLOR 0 0 0 > > > > > > IMAGECOLOR 255 255 255 > > > > > > TRANSPARENT FALSE > > > > > > UNITS KILOMETERS > > > > > > INTERVALS 5 > > > > > > SIZE 150 5 > > > > > > STYLE 0 > > > > > > POSITION LL > > > > > > INTERLACE TRUE > > > > > > LABEL > > > > > > TYPE BITMAP > > > > > > SIZE SMALL > > > > > > OFFSET 0 0 > > > > > > BUFFER 0 > > > > > > MINDISTANCE -1 > > > > > > MINFEATURESIZE -1 > > > > > > COLOR 0 0 0 > > > > > > PARTIALS TRUE > > > > > > FORCE FALSE > > > > > > END > > > > > > END > > > > > > LAYER > > > > > > NAME "bathymetry" > > > > > > STATUS ON > > > > > > DATA "bath_mapserver.tif" > > > > > > TYPE RASTER > > > > > > UNITS METERS > > > > > > SIZEUNITS PIXELS > > > > > > TOLERANCE 3 > > > > > > TOLERANCEUNITS PIXELS > > > > > > TEMPLATE "ttt.html" > > > > > > END > > > > > > > > > > > > > > > > > > LAYER > > > > > > NAME "Eman-sites" > > > > > > STATUS OFF > > > > > > DATA "sites.shp" > > > > > > TYPE POINT > > > > > > UNITS METERS > > > > > > SIZEUNITS METERS > > > > > > LABELITEM "Name" > > > > > > TOLERANCE 5 > > > > > > TOLERANCEUNITS PIXELS > > > > > > TRANSFORM TRUE > > > > > > TEMPLATE "ttt.html" > > > > > > CLASS > > > > > > NAME "site" > > > > > > SYMBOL 2 > > > > > > COLOR 255 51 102 > > > > > > SIZE 7 > > > > > > MINSIZE 1 > > > > > > MAXSIZE 100 > > > > > > END > > > > > > END > > > > > > END > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > From: "Paul Dymecki" > > > To: "Daniel Morissette" > > > Cc: "MapServer List (E-mail)" > > > Sent: Monday, March 03, 2003 3:58 PM > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > > > > Hi, > > > > Yes i think i've covered all the obvious, things, though you > > never > > > know. > > > > Here are my two scripts that query the db and create the shp and > dbf > > > files. > > > > shp_ukpdate.php queries the db and eman_shp.php has supporting > > > classes > > > > thx, > > > > Paul > > > > ----- Original Message ----- > > > > From: "Daniel Morissette" > > > > To: "Paul Dymecki" > > > > Sent: Monday, March 03, 2003 3:38 PM > > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > > > > > > > Paul Dymecki wrote: > > > > > > > > > > > > Hi Daniel, > > > > > > From talking to people i think i've narrowed it down to a > > > problem > > > > with > > > > > > my shp file format. Any ways here is my current projection > > > function, > > > > create > > > > > > point, and close() functions if you can see anything that's > off? > > > > > > thx, > > > > > > Paul > > > > > > > > > > > > > > > > From reading the replies on the list this is probably the next > > > logical > > > > > thing to check, but without seeing your complete application > > > including > > > > > scripts and data nobody can confirm that. > > > > > > > > > > Did you make sure that you pass a valid shapefile type to the > call > > > to > > > > > ms_newShapeFileObj()? > > > > > > > > > > BTW, please reply via the list, this will increase your chances > of > > > > > getting help. > > > > > > > > > > Daniel > > > > > -- > > > > > ------------------------------------------------------------ > > > > > Daniel Morissette morissette@dmsolutions.ca > > > > > DM Solutions Group http://www.dmsolutions.ca/ > > > > > ------------------------------------------------------------ > > > > > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From millardymecki@sympatico.ca Tue Mar 4 06:24:49 2003 From: millardymecki@sympatico.ca (Paul Dymecki) Date: Tue, 4 Mar 2003 01:24:49 -0500 Subject: [Mapserver-users] adding shp to mapfile /got it References: <13858AA1A74F30419F319ACB66A9D1221F3E84@mercator.topozone.com> Message-ID: <022301c2e216$c2dfcd00$f098fea9@pauls> I finally found my error(s) i was using units meters, sizeunits meters instead of sizeunits pixels, i probably didn't need either one but oh well. My php projection worked fine so i didn't need any projection object either(everything under lcc canada). thx to everyone for the help, Paul ----- Original Message ----- From: "Ed McNierney" To: "Paul Dymecki" ; "Daniel Morissette" Cc: "MapServer List (E-mail)" Sent: Monday, March 03, 2003 8:43 PM Subject: RE: [Mapserver-users] adding shp to mapfile / projection > Then you need to figure out what's different between the two . Are > you running under the same user context in Apache for both setups? > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 Fax: (978) 251-1396 > ed@topozone.com > > > -----Original Message----- > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > Sent: Monday, March 03, 2003 8:40 PM > To: Ed McNierney; Daniel Morissette > Cc: MapServer List (E-mail) > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > Forgot to mention though it's still not working with my other mapfile, > Paul > ----- Original Message ----- > From: "Ed McNierney" > To: "Paul Dymecki" ; "Daniel Morissette" > > Cc: "MapServer List (E-mail)" > Sent: Monday, March 03, 2003 7:54 PM > Subject: RE: [Mapserver-users] adding shp to mapfile / projection > > > > OK - the issue doesn't change. You need to know what user context > your > > anonymous Web visitors are using, and make sure that that user has > > permission to read that shapefile. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > Phone: (978) 251-4242 Fax: (978) 251-1396 > > ed@topozone.com > > > > > > -----Original Message----- > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > Sent: Monday, March 03, 2003 7:51 PM > > To: Ed McNierney; Daniel Morissette > > Cc: MapServer List (E-mail) > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > I'm on winXP but using apache though, > > Paul > > ----- Original Message ----- > > From: "Ed McNierney" > > To: "Paul Dymecki" ; "Daniel Morissette" > > > > Cc: "MapServer List (E-mail)" > > Sent: Monday, March 03, 2003 7:12 PM > > Subject: RE: [Mapserver-users] adding shp to mapfile / projection > > > > > > > Paul - > > > > > > It sounds like your IIS anonymous user account (usually > > > IUSR_) does not have read permission on the directory > you > > > originally used for this shapefile. Can you check that? > > > > > > - Ed > > > > > > Ed McNierney > > > President and Chief Mapmaker > > > TopoZone.com / Maps a la carte, Inc. > > > 73 Princeton Street, Suite 305 > > > North Chelmsford, MA 01863 > > > Phone: (978) 251-4242 Fax: (978) 251-1396 > > > ed@topozone.com > > > > > > > > > -----Original Message----- > > > From: Paul Dymecki [mailto:millardymecki@sympatico.ca] > > > Sent: Monday, March 03, 2003 6:31 PM > > > To: Daniel Morissette > > > Cc: MapServer List (E-mail) > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > Hi All, > > > Well now i'm able to display my shp file in a map on it's own(had to > > > move my > > > data dir to the root of the c-drive) so now just have to get it > > working > > > with > > > my existing map file > > > Any hints or ideas would be appreciated, > > > Paul > > > > > > > > > MAP > > > > > > NAME "MAP OF CANADA" > > > > > > STATUS ON > > > > > > #EXTENT -2.59456e+006 -712631 3.46736e+006 3.84e+006 > > > > > > EXTENT -2200000 -712631 3072800 3840000 > > > > > > SIZE 400 300 > > > > > > SHAPEPATH "c:/data-dir" > > > > > > SYMBOLSET "./etc/symbols.sym" > > > > > > FONTSET "./etc/fonts.txt" > > > > > > IMAGECOLOR 255 255 255 > > > > > > TRANSPARENT OFF > > > > > > UNITS METERS > > > > > > INTERLACE ON > > > > > > IMAGETYPE GIF > > > > > > IMAGEQUALITY 75 > > > > > > WEB > > > > > > MINSCALE 2e+006 > > > > > > MAXSCALE 5e+007 > > > > > > IMAGEPATH "C:/temp/ms_tmp/" > > > > > > IMAGEURL "/ms_tmp/" > > > > > > END > > > > > > REFERENCE > > > > > > STATUS ON > > > > > > IMAGE "images/keymap.gif" > > > > > > SIZE 100 75 > > > > > > EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 > > > > > > COLOR -1 -1 -1 > > > > > > OUTLINECOLOR 255 0 0 > > > > > > MINBOXSIZE 3 > > > > > > MAXBOXSIZE 0 > > > > > > MARKER 0 > > > > > > MARKERSIZE 0 > > > > > > END > > > > > > QUERYMAP > > > > > > STATUS OFF > > > > > > SIZE -1 -1 > > > > > > COLOR 255 0 0 > > > > > > STYLE HILITE > > > > > > END > > > > > > PROJECTION > > > > > > "init=epsg:42304" > > > > > > END > > > > > > LEGEND > > > > > > STATUS OFF > > > > > > IMAGECOLOR 255 255 255 > > > > > > TRANSPARENT FALSE > > > > > > INTERLACE TRUE > > > > > > POSITION LL > > > > > > KEYSIZE 20 10 > > > > > > KEYSPACING 5 5 > > > > > > TEMPLATE "C:/Program Files/Apache > > > > > > Group/Apache2/htdocs/maplab-2.0rc3/htdocs/mapbrowser/legend_template.htm > > > l" > > > > > > LABEL > > > > > > TYPE BITMAP > > > > > > SIZE MEDIUM > > > > > > OFFSET 0 0 > > > > > > BUFFER 0 > > > > > > MINDISTANCE -1 > > > > > > MINFEATURESIZE -1 > > > > > > COLOR 255 0 0 > > > > > > PARTIALS TRUE > > > > > > FORCE FALSE > > > > > > END > > > > > > END > > > > > > SCALEBAR > > > > > > STATUS ON > > > > > > COLOR 255 255 255 > > > > > > OUTLINECOLOR 0 0 0 > > > > > > BACKGROUNDCOLOR 0 0 0 > > > > > > IMAGECOLOR 255 255 255 > > > > > > TRANSPARENT FALSE > > > > > > UNITS KILOMETERS > > > > > > INTERVALS 5 > > > > > > SIZE 150 5 > > > > > > STYLE 0 > > > > > > POSITION LL > > > > > > INTERLACE TRUE > > > > > > LABEL > > > > > > TYPE BITMAP > > > > > > SIZE SMALL > > > > > > OFFSET 0 0 > > > > > > BUFFER 0 > > > > > > MINDISTANCE -1 > > > > > > MINFEATURESIZE -1 > > > > > > COLOR 0 0 0 > > > > > > PARTIALS TRUE > > > > > > FORCE FALSE > > > > > > END > > > > > > END > > > > > > LAYER > > > > > > NAME "bathymetry" > > > > > > STATUS ON > > > > > > DATA "bath_mapserver.tif" > > > > > > TYPE RASTER > > > > > > UNITS METERS > > > > > > SIZEUNITS PIXELS > > > > > > TOLERANCE 3 > > > > > > TOLERANCEUNITS PIXELS > > > > > > TEMPLATE "ttt.html" > > > > > > END > > > > > > > > > > > > > > > > > > LAYER > > > > > > NAME "Eman-sites" > > > > > > STATUS OFF > > > > > > DATA "sites.shp" > > > > > > TYPE POINT > > > > > > UNITS METERS > > > > > > SIZEUNITS METERS > > > > > > LABELITEM "Name" > > > > > > TOLERANCE 5 > > > > > > TOLERANCEUNITS PIXELS > > > > > > TRANSFORM TRUE > > > > > > TEMPLATE "ttt.html" > > > > > > CLASS > > > > > > NAME "site" > > > > > > SYMBOL 2 > > > > > > COLOR 255 51 102 > > > > > > SIZE 7 > > > > > > MINSIZE 1 > > > > > > MAXSIZE 100 > > > > > > END > > > > > > END > > > > > > END > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > From: "Paul Dymecki" > > > To: "Daniel Morissette" > > > Cc: "MapServer List (E-mail)" > > > Sent: Monday, March 03, 2003 3:58 PM > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > > > > Hi, > > > > Yes i think i've covered all the obvious, things, though you > > never > > > know. > > > > Here are my two scripts that query the db and create the shp and > dbf > > > files. > > > > shp_ukpdate.php queries the db and eman_shp.php has supporting > > > classes > > > > thx, > > > > Paul > > > > ----- Original Message ----- > > > > From: "Daniel Morissette" > > > > To: "Paul Dymecki" > > > > Sent: Monday, March 03, 2003 3:38 PM > > > > Subject: Re: [Mapserver-users] adding shp to mapfile / projection > > > > > > > > > > > > > Paul Dymecki wrote: > > > > > > > > > > > > Hi Daniel, > > > > > > From talking to people i think i've narrowed it down to a > > > problem > > > > with > > > > > > my shp file format. Any ways here is my current projection > > > function, > > > > create > > > > > > point, and close() functions if you can see anything that's > off? > > > > > > thx, > > > > > > Paul > > > > > > > > > > > > > > > > From reading the replies on the list this is probably the next > > > logical > > > > > thing to check, but without seeing your complete application > > > including > > > > > scripts and data nobody can confirm that. > > > > > > > > > > Did you make sure that you pass a valid shapefile type to the > call > > > to > > > > > ms_newShapeFileObj()? > > > > > > > > > > BTW, please reply via the list, this will increase your chances > of > > > > > getting help. > > > > > > > > > > Daniel > > > > > -- > > > > > ------------------------------------------------------------ > > > > > Daniel Morissette morissette@dmsolutions.ca > > > > > DM Solutions Group http://www.dmsolutions.ca/ > > > > > ------------------------------------------------------------ > > > > > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From tzerweck@zebris.com Tue Mar 4 08:16:11 2003 From: tzerweck@zebris.com (Thomas Zerweck) Date: Tue, 4 Mar 2003 09:16:11 +0100 Subject: AW: [Mapserver-users] Java question Message-ID: You should set the value of the zoomsize to 1 - then no zoomin will happen. Thomas -----Ursprüngliche Nachricht----- Von: Kevin Slover [mailto:Kevin.Slover@noaa.gov] Gesendet: Montag, 3. März 2003 19:38 An: Mapserver Mailing-List Betreff: [Mapserver-users] Java question I am having a little bit of a problem... I am using java jbox to allow the user to zoom in/zoom out, etc. I have followed some of the examples given in the gallery pages. My problem: The user chooses the zoom button, and then draws a box. The box remains "depressed" until something else is chosen. No problems there. Now, checkboxes that allows the user to choose the layer they want displayed. The only problem is that if the user first zooms, then checks a layer, the layer displays, but the image zooms in as well. Some snippets of my code (instead of posting all):
... Slosh Outline
Those are the major players in my code. I have tried setting value="0" for zoomdir, but without any luck. It continues to zoom... anyone have any ideas? Thanks! Cheers -- LTJG Kevin Slover, NOAA GIS Specialist/Oceanographer NOAA/National Hurricane Center/Storm Surge Unit 11691 SW 17th Street Miami FL 33165 W (305) 229-4456 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From stepan.kafka@centrum.cz Tue Mar 4 08:31:53 2003 From: stepan.kafka@centrum.cz (Stepan Kafka) Date: Tue, 4 Mar 2003 09:31:53 +0100 Subject: [Mapserver-users] Annotation In-Reply-To: <86092B835BADD511BFFC00D0B7893858B115B9@AMLP8200> Message-ID: <000a01c2e228$8237cf20$ee4de4c2@HSGIS> Use truetype font for labeling and parameter ANGLE AUTO inside the label objcet to follow the road direction. See documentation for more. Stepan Kafka > -----Původní zpráva----- > Od: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]za uživatele John > Richardson > Odesláno: 26. února 2003 20:50 > Komu: 'mapserver-users@lists.gis.umn.edu' > Předmět: [Mapserver-users] Annotation > > > Hello all, > > New to MapServer (and already having great results!) and we are trying to > get our street centerlines to label properly. So far, all of the > labels are > horizontal, even the ones for vertical (north-south) streets. What is the > best way to get good looking labels? > > Thanks in advance > > John D. Richardson > GIS Coordinator > City of Anderson > 120 E. 8th St. > Anderson, IN 46016 > (765) 648-6092 > jrichardson@cityofanderson.com > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From gis@schnegg.net Tue Mar 4 09:49:10 2003 From: gis@schnegg.net (Frank Rittinger) Date: Tue, 04 Mar 2003 10:49:10 +0100 Subject: [Mapserver-users] drawing labels dynamically Message-ID: <3E647696.4070205@schnegg.net> Hello mapserver users, Is there a way to draw labels (using PHP/Mapscript) dynamically, i.e. depending on a query of an external database? I want to draw statistical data into maps, generated by mapserver, which is not available when the map files and the shape files (actually *.tab files) are generated. I thought of creating shape files on-the-fly, but the Mapscript documentation says that attributes of shapes are read-only and cannot be added. Thanks, Frank From A.HUSSAIN@CGIAR.ORG Tue Mar 4 11:57:22 2003 From: A.HUSSAIN@CGIAR.ORG (Hussain, Asghar (IWMIPK)) Date: Tue, 04 Mar 2003 03:57:22 -0800 Subject: [Mapserver-users] Windows NT Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-b3fdb690-4e24-11d7-a5ff-00508bf7dfd0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2E245.373B01F0" ------_=_NextPart_001_01C2E245.373B01F0 Content-Type: text/plain; charset="iso-8859-1" Hi all my map server version 3.6.3 is not working with window NT. please let me know the latest and stable map server version download site which work with windows NT workstation. thanks Asghar Hussain Spatial Data Analyst (GIS/RS) International Water Management Institute (IWMI) 12 km. Multan Road, Chowk Thokar Niaz Baig, Lahore 53700 Phone: + 92 (042) 5410050-53 Fax: +92 (042) 5410054 a.hussain@cgiar.org _____ Upgrade Your Email - Click here! ------_=_NextPart_001_01C2E245.373B01F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all
my map server version 3.6.3 is = not working=20 with window NT. please let me know the latest and stable map server = version=20 download site which work with windows NT workstation.
 
thanks

Asghar Hussain
Spatial Data Analyst (GIS/RS) =
International Water Management Institute = (IWMI)=20
12 km. Multan Road, Chowk Thokar Niaz = Baig, Lahore=20 53700
Phone: + 92 (042) = 5410050-53  Fax:=20 +92 (042) 5410054
a.hussain@cgiar.org=20




------_=_NextPart_001_01C2E245.373B01F0-- ------=_NextPartTM-000-b3fdb690-4e24-11d7-a5ff-00508bf7dfd0-- From Gunter.Rieth@stadt.mainz.de Tue Mar 4 12:45:57 2003 From: Gunter.Rieth@stadt.mainz.de (Gunter.Rieth@stadt.mainz.de) Date: Tue, 4 Mar 2003 13:45:57 +0100 Subject: Antwort: [Mapserver-users] TAB to WLD conversion Message-ID: HI, there is somewhere a MI-mbx called: tab2tfw-272.mbx ( I'll try to send it with this mail ?!), but in some Mapserver Versions (maybe 3.6.3 with ogr support) I was able to use MapInfo Raster TABs without TFW-file Greetings and good luck Gunter Rieth Kommunale Datenzentrale Mainz -Eigenbetrieb der Stadt Mainz- Hechtsheimer Straße 35 55131 Mainz Tel: 06131 - 12 - 3557 Fax: 06131 - 12 - 2267 eMail: mailto:Gunter.Rieth@stadt.mainz.de Notesmail: Gunter Rieth/Dez1/Mainz URL:http/www.mainz.de "Matt Hatcher" Gesendet von: mapserver-users-admin@lists.gis.umn.edu 03.03.2003 16:37 An: Kopie: Thema: [Mapserver-users] TAB to WLD conversion Hi there, I've got a number of rasters that are georeferenced using the MapInfo TAB method. Is there any software that anyone knows of which will convert these TAB files into WLD or TFW files for use with MapServer (and other software)? Cheers, Matt From Gunter.Rieth@stadt.mainz.de Tue Mar 4 12:47:08 2003 From: Gunter.Rieth@stadt.mainz.de (Gunter.Rieth@stadt.mainz.de) Date: Tue, 4 Mar 2003 13:47:08 +0100 Subject: Antwort: [Mapserver-users] TAB to WLD conversion 2nd trial Message-ID: --=_mixed 00463BF6C1256CDF_= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Gunter Rieth Kommunale Datenzentrale Mainz -Eigenbetrieb der Stadt Mainz- Hechtsheimer Stra=DFe 35 55131 Mainz Tel: 06131 - 12 - 3557 Fax: 06131 - 12 - 2267 eMail: mailto:Gunter.Rieth@stadt.mainz.de Notesmail: Gunter Rieth/Dez1/Mainz URL:http/www.mainz.de ----- Weitergeleitet von Gunter Rieth/Dez1/Mainz am 04.03.2003 13:46 ----- Gunter Rieth 04.03.2003 13:45 An: Kopie: "Matt Hatcher" Thema: Antwort: [Mapserver-users] TAB to WLD conversion HI,=20 there is somewhere a MI-mbx called: tab2tfw-272.mbx ( I'll try to=20 send it with this mail ?!), but in some Mapserver Versions (maybe 3.6.3 with ogr support) I was able=20 to use MapInfo Raster TABs without TFW-file Greetings and good luck=20 Gunter Rieth Kommunale Datenzentrale Mainz -Eigenbetrieb der Stadt Mainz- Hechtsheimer Stra=DFe 35 55131 Mainz Tel: 06131 - 12 - 3557 Fax: 06131 - 12 - 2267 eMail: mailto:Gunter.Rieth@stadt.mainz.de Notesmail: Gunter Rieth/Dez1/Mainz URL:http/www.mainz.de "Matt Hatcher" Gesendet von: mapserver-users-admin@lists.gis.umn.edu 03.03.2003 16:37 =20 An: Kopie: Thema: [Mapserver-users] TAB to WLD conversion Hi there, =20 I've got a number of rasters that are georeferenced using the MapInfo TAB=20 method. =20 Is there any software that anyone knows of which will convert these TAB=20 files into WLD or TFW files for use with MapServer (and other software)? =20 Cheers, Matt =20 --=_mixed 00463BF6C1256CDF_= Content-Type: application/octet-stream; name="tab2tfw-272.mbx" Content-Disposition: attachment; filename="tab2tfw-272.mbx" Content-Transfer-Encoding: base64 IUFwcAohVmVyc2lvbiA1NTAKIUNoYXJzZXQgV2luZG93c0xhdGluMQoAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAA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PdmVyd3JpdGUg dGhlIGV4aXN0aW5nIAA/AE9LAENhbmNlbAAAAAAAAAAAQCMuIyMjIyMjIyMjIyMjADAuMDAwMDAw MDAAIy4jIyMjIyMjIwABAAABAQABBQACNQABPQABPwABQQACQwACSwABUwABWAABcAABcgABdQAC fAABhAABkwABngABAP//AAAAAAEA//8AAAAAAwD//wAAAAADAP//AAAAAAMA//8AAAAAAwD//wAA AAADAP//AAAAAAgA//8AAAAACAD//wAAAAAIAP//AAAAAAgA//8AAAAAAwD//wAAAAADAP//AAAA AAMA//8AAAAAAwD//wAAAAAIAP//AAAAAAgA//8AAAAACAD//wAAAAAIAP//AAAAAAgA//8AAAAA CAD//wAAAAAIAP//AAAAAAgA//8AAAAACAD//wAAAAAIAP//AAAAAAYA//8AAAAACAD//wAAAAAI AP//AAAAAAEA//8AAAAAAQD//wAAAAAGAP//AAAAAAEA//8AAAAAAQD//wAAAABAAQAABE1haW4A AAAAAAAAAG4LAAByDAAAAQAAAEABAAByDAAAIAAAAAVtdGVtcAVtY2hhcgZtY291bnQLbWJlZ2lu bmluZ1gIbUVuZGluZ1gLbWJlZ2lubmluZ1kIbWVuZGluZ1kDbXgxA214MgNteTEDbXkyCG1waXhl bHgxCG1waXhlbHgyCG1waXhlbHkxCG1waXhlbHkyBWZfZFgxBWZfZFkxBWZfZFgyBWZfZFkyBGZf WDAEZl9ZMARmX1gxBGZfWTEEZl9YMgRmX1kyC21jb29yZGluYXRlC21waXhlbFhzaXplC21waXhl bHlzaXplDXNCYXNlRmlsZU5hbWUMc1RGV0ZpbGVOYW1lCWJDb250aW51ZQdzdHJDU3lz2AwAAAIA AAAWRDpcVEFCMlRGV1x0YWIydGZ3Lk1CWBdEOlxUQUIyVEZXXHRhYjJ0ZncubWIAAC5EOlxQUk9H UkFNIEZJTEVTXE1BUElORk9cTUFQQkFTSUNcbWFwYmFzaWMuZGVm --=_mixed 00463BF6C1256CDF_=-- From eric@gomoos.org Tue Mar 4 08:37:16 2003 From: eric@gomoos.org (Eric Bridger) Date: 04 Mar 2003 08:37:16 +0000 Subject: [Mapserver-users] projecting a point in PHP MapScript In-Reply-To: <3E63D243.2090902@calacademy.org> References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> Message-ID: <1046767038.1465.12.camel@ubet.gomoos.org> Chris, 1) pointObj->project() does not return a point, it just reprojects the pointObj, so getting a null is not an error. 2) Still the crab_here point is not gettting projected. When I did something similiar in Perl mapscript, for my UTM projection I used:my $proj_utm = new projectionObj('proj=utm,ellps=GRS80,zone=19,north,no_defs'); Eric On Mon, 2003-03-03 at 22:08, Chris Black wrote: > Hello all. I have some data in DD that I want to project in UTM (so I > can plot them on a UTM map). I've written code that I *think* should do > this: > > $crab_here = ms_newpointobj(); > // here's a DD lat/long: 38.20527700 -122.37277700 > $inproj = ms_newProjectionObj("proj=latlong,ellps=clrk66"); > $outproj = ms_newProjectionObj("proj=utm,datum=NAD27,zone=10"); > $crab_here->setXY(38.20527700, -122.37277700); > $new_obj = $crab_here->project($inproj, $outproj); > if ($new_obj == null) {print "new_obj is null";} else > {print("new_obj is "); print($new_obj);} > print("; x is "); > print($crab_here->x); > print("; y is "); > print($crab_here->y); > > But when I run this it prints "new_obj is null; x is 38.205277; y is > -122.372777", that is, I don't have a new point. > > What am I doing wrong? > > Thanks. > > -- Chris > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From 0098kast@edu.fh-kaernten.ac.at Tue Mar 4 13:43:48 2003 From: 0098kast@edu.fh-kaernten.ac.at (Kaps Stefan) Date: Tue, 4 Mar 2003 14:43:48 +0100 Subject: [Mapserver-users] unknown errors when running the demo app. Message-ID: <3F01711BFB99D411835B0008C7866AA001308097@EXCHANGE01> Hello! When i'm trying to install the demo app. and run mapserv.exe in the browser, i get the message "No query information to decode. QUERY_STRING not set" instead of "No query information to decode. QUERY_STRING is set, but empty" as mentioned in the documentation. Running the demo_init.html and initializing the demo there is just the user interface, but the map-window appears blank. A Query results in that message "msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\tmp\DEMO10467852871028.gif)". Does anybody know these kinds of problems (I'm quite sure somebody does...) cheers Stefan From schut@sarvision.com Tue Mar 4 15:09:37 2003 From: schut@sarvision.com (Vincent Schut) Date: Tue, 4 Mar 2003 16:09:37 +0100 Subject: [Mapserver-users] swf output & 24bit color Message-ID: <200303041609.37279.schut@sarvision.com> Does any of you know if swf output can be combined with 24bit color depth? I am displaying a raster file through swf output and it looks like being palletized or at least reduced color depth, no matter whether I set 'imagemode RGB' in the swf outputformat part. Using: php4.3.1, latest GD, mapserver cvs from some weeks ago (phpinfo sais about mapscript ($Revision: 1.141 $ $Date: 2003/01/24 17:01:05 $), so it's likely from end of january). Is there a way to have a better colordepth in swf output, or is swf only supporting a reduced color depth? -- ______________________________________ Vincent Schut (schut@sarvision.com) Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From jdeck@socrates.Berkeley.EDU Tue Mar 4 15:35:25 2003 From: jdeck@socrates.Berkeley.EDU (John Deck) Date: Tue, 4 Mar 2003 07:35:25 -0800 Subject: [Mapserver-users] drawing labels dynamically In-Reply-To: <3E647696.4070205@schnegg.net> Message-ID: <000001c2e263$ad88d260$38d62080@JDECKLAP> This was somewhere on the list awhile back I think... Here is what I did though: Make a point layer called dynamic_point in the map file and added points to the layer in PHP, sending label attributes with the point object draw command. The PHP is something like: $l_pointLabel = ms_newPointObj(); $l_pointLabel->setXY($x-coord,$y-coord); $l_layerPoint = $l_map->getLayerByName("dynamic_point"); $l_image=$l_map->draw(); $l_pointLabel->draw($l_map,$l_layerPoint,$l_image,0,"some value you want to label the point with"); $l_map->drawLabelCache($l_image); You can loop this or pull whatever values you want for labels from an external database. Here is what the layer looks like: LAYER NAME dynamic_points TYPE point STATUS OFF CLASS EXPRESSION /./ SYMBOL 3 SIZE 7 NAME dynamic_points COLOR 255 255 255 LABEL TYPE TRUETYPE FONT ARIALBI COLOR 0 0 0 SIZE 8 POSITION LC WRAP " " END END END John Deck > -----Original Message----- > From: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of > Frank Rittinger > Sent: Tuesday, March 04, 2003 1:49 AM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] drawing labels dynamically > > > Hello mapserver users, > > Is there a way to draw labels (using PHP/Mapscript) dynamically, i.e. > depending on a query of an external database? > > I want to draw statistical data into maps, generated by > mapserver, which > is not available when the map files and the shape files > (actually *.tab > files) are generated. > > I thought of creating shape files on-the-fly, but the Mapscript > documentation says that attributes of shapes are read-only > and cannot be > added. > > Thanks, Frank > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users > From trigas.b@envcart.aegean.gr Tue Mar 4 15:41:23 2003 From: trigas.b@envcart.aegean.gr (Trigas Basileios) Date: Tue, 4 Mar 2003 17:41:23 +0200 Subject: [Mapserver-users] demo problems! Message-ID: I've installed mapserver 3.6 (I use XP windows)and when I tried to run, demo_init.html it's shows me this message: msLoad Map():General error message.undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno.(this gif existes!) From pagurekd@agr.gc.ca Tue Mar 4 15:53:49 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Tue, 04 Mar 2003 10:53:49 -0500 Subject: [Mapserver-users] defining a simple scalebar object Message-ID: --=_FAA5AD04.47265EA4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Here is the scalebar section from my mapfile and attached is an image = showing what it looks like. Debbie SCALEBAR STATUS ON IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE tiny END #LABEL STYLE 1 SIZE 200 3 COLOR 255 0 0 UNITS kilometers INTERVALS 3 END #SCALEBAR >>> Terrence Lalla 03/03/03 01:42PM >>> Hi everyone, I am trying to design a simple scalebar object. The output is in gif = format(dont know if this would affect anything).Anyways here is the code = in the map file: SCALEBAR STATUS ON UNITS METERS SIZE 20 20 BACKGROUNDCOLOR 120 120 120 COLOR 120 120 120 END Thanks in Advance=20 Terrence. --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --=_FAA5AD04.47265EA4 Content-Type: application/octet-stream; name="scalebar.gif" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="scalebar.gif" R0lGODdhyAASAIQAAP///wAAAP8AAP///8z//5nMzACZzMzMzJmZmWbMZmbMzP/Mmcz/zP//mcyZ zJlmzABmAJnMAMz/mcwAAP8zM//MZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAA yAASAEAFzCAgjmRpnmiqrmzrvnAsz3Rt33iu73zv/8Cg0CUYxorGFzLZWg4DACizJI1arVJoNVjV irzYafYKBpMC6G94ym673ygnnCSfi+p2/M/MTqvHgEJja2VXgmqEZIYjWzKNYn6LW489aJGTZ0yR kpkmgYh2oaKjNgKmp6ipqqusra6vsLGys7S1q2x6cLlvu269pMDBwjaUmp2gi0CbmIyazMiUxS18 fc2f1Mp/2mtGXYqfnVrYJ+NJ3tfJPpjo0juDheDNYeXD9fb3+Pn4IQA7 --=_FAA5AD04.47265EA4-- From DMartin@erac.com Tue Mar 4 16:09:21 2003 From: DMartin@erac.com (Martin, Daniel) Date: Tue, 4 Mar 2003 10:09:21 -0600 Subject: [Mapserver-users] itemquery Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192BE3@STL-EXBE-I03.corp.erac.com> I just got itemquery working myself, after many failed attempts over the past year. Disregard this if you are using a 3.7 build, because I understand itemquery changes in that version. Here's my take on it: I suggest, for starters, to get it working by manually manipulating the query string. At a minimum, your query string needs this: qlayer=MyLayerName&queryvalue=MyValue&mapext=shapes Where I use "queryvalue" you can call it whatever you want, but it must match the FILTER setting below. If it is a point layer, you also need: &buffer=.005 (play with the buffer value to get the zoom you want, could be very different depending on your units) An example of a working (for me) image tag that works, based on a point layer, is: At the very least you need a FILTERITEM and FILTER on the LAYER in question. The FILTERITEM should be the field/collumn name. The FILTER should be a regex that includes the query value from the query string. Following my example, I would have: LAYER MyLayerName .... FILTERITEM MyCollumnName FILTER /^%queryvalue%/ ... END I'm sure I left something out, but I hope that helps. -Dan Martin > -----Original Message----- > From: randy james [mailto:rjames57@yahoo.com] > Sent: Monday, March 03, 2003 4:53 PM > To: Mapserver Users > Subject: [Mapserver-users] itemquery > > > Hi > > I have been trying to figure out itemquery, without > results yet. I would like to show the attribute > information and a map that shows the polygon in the > template output. I am missing something important i'm > sure. So far i have a search.html which contains: > > > action="http://mapserver.ltc/cgi-bin/mapserv";> > value="/var/www/html/gis/maps/territory_proj.map"> > > > > > > > > > > > > A template file that contains all the database items > > > >
[Mapstand][Opening > Number][Planted spe].... > > The portion of the map file for the layer > > # 7 layer {Forest Cover} > layer > data "l_fc" > footer "l_fc_footer.html" > header "l_fc_header.html" > labelitem "SPECIES1" > template l_fc.html > labelmaxscale 200000 > labelminscale 60 > # labelsizeitem "2" > name "l_fc" > status off > type polygon > # transparency 50 > # filteritem "MAPSTAND" > # 1 class #none > CLASS > name 'Forest Cover' > # color 0 0 0 > OUTLINECOLOR 168 0 255 > LABEL > TYPE truetype > FONT arial > SIZE 6 > COLOR 0 0 0 > ANTIALIAS TRUE > END > END > > The url seems to be right to me: > > http://mapserver.ltc/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Fhtml%2 Fgis%2Fmaps%2Fterritory_proj.map&mode=itemnquery&qlayer=l_fc&item=MAPSTAND&v alue=test This gives the error: msQueryByAttributes(): Query error. No query expression defined. Anyone still reading, and can help? ;-) Cheers Randy __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From vatsavai@cs.umn.edu Tue Mar 4 16:44:34 2003 From: vatsavai@cs.umn.edu (Ranga Raju Vatsavai) Date: Tue, 4 Mar 2003 10:44:34 -0600 (CST) Subject: [Mapserver-users] mail service down time Message-ID: <200303041644.KAA25336@pluto.cs.umn.edu> Hello All, There is a security advisory about sendmail today, so are shutting down sendmail on lists immediately. So all mailing list services will be unavailable for next couple of hours. I will send a notice once the upgrades are finished and services are restored. Thanks Raju ---- From vatsavai@cs.umn.edu Tue Mar 4 17:19:16 2003 From: vatsavai@cs.umn.edu (Ranga Raju Vatsavai) Date: Tue, 4 Mar 2003 11:19:16 -0600 (CST) Subject: [Mapserver-users] mailing lists ready Message-ID: <200303041719.LAA25512@pluto.cs.umn.edu> Hello All, All the mailing list services are restored. Thanks Raju ---- From John.Arthur@T-Mobile.com Tue Mar 4 17:31:14 2003 From: John.Arthur@T-Mobile.com (Arthur, John) Date: Tue, 4 Mar 2003 09:31:14 -0800 Subject: [Mapserver-users] RH8 and GD Message-ID: This is not only related to Mapscript, but anything related to gd and php. I have read and followed the http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37 to a "T". Everything compiles fine and normal php scripts run great. But, every time I run a php script that outputs an image using the gd library (jpgraph, mapscript, or gd examples) Apache returns this error: ------------------------------ Server error! The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: php If you think this is a server error, please contact the webmaster Error 500 localhost Tue 04 Mar 2003 12:20:18 PM EST Apache/2.0.40 (Red Hat Linux) ------------------------------ There is nothing in the logs except "Premature end of script headers: php". I have tried this with PHP 4.3.1 - GD 2.0.11 and PHP 4.2.3 - GD 2.0.7, with the same results. Does anybody have a clue what the issue might be? Is it related to Apache 2.0? BTW, the mapserv cgi using the Itasca demo works just great. Thanks, John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 839-0021 Email: john.arthur@t-mobile.com T-Mobile USA Get more from life From vinko@cprsig.cl Tue Mar 4 18:20:53 2003 From: vinko@cprsig.cl (Vinko Vrsalovic) Date: Tue, 4 Mar 2003 15:20:53 -0300 Subject: [Mapserver-users] RH8 and GD In-Reply-To: References: Message-ID: <20030304182053.GA28728@landsat.cprsig.cl> Are you sure that PHP is using/finding the same GD library which it was compiled against? On Tue, Mar 04, 2003 at 09:31:14AM -0800, Arthur, John wrote: > This is not only related to Mapscript, but anything related to gd and php. I have read and followed the http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37 to a "T". Everything compiles fine and normal php scripts run great. But, every time I run a php script that outputs an image using the gd library (jpgraph, mapscript, or gd examples) Apache returns this error: > > ------------------------------ > > Server error! > > The server encountered an internal error and was unable to complete your request. > > Error message: > Premature end of script headers: php > > If you think this is a server error, please contact the webmaster > > Error 500 > > localhost > Tue 04 Mar 2003 12:20:18 PM EST > Apache/2.0.40 (Red Hat Linux) > > ------------------------------ > > There is nothing in the logs except "Premature end of script headers: php". I have tried this with PHP 4.3.1 - GD 2.0.11 and PHP 4.2.3 - GD 2.0.7, with the same results. Does anybody have a clue what the issue might be? Is it related to Apache 2.0? BTW, the mapserv cgi using the Itasca demo works just great. > > Thanks, > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 839-0021 > Email: john.arthur@t-mobile.com > T-Mobile USA > Get more from life > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- Vinko Vrsalovic http://www.cprsig.cl From doug@moximedia.com Tue Mar 4 18:21:34 2003 From: doug@moximedia.com (Doug Cates) Date: Tue, 4 Mar 2003 10:21:34 -0800 Subject: [Mapserver-users] GDAL / GIF misunderstanding? Message-ID: <000601c2e27a$e38580e0$6401a8c0@vn.shawcable.net> Hi, I'm wondering if I'm confused. I've added a WMS client layer whose source is only available in GIF to a map file. I've got GDAL installed with internal GIF support. I'm using the map as a WMS server. As I don't have GIF output support, I'm requesting the output format set to image/png. When requesting a map, I see: drawGIF(): Image handling error. GIF support is not available. Content-type: text/html MapServer Message drawGIF(): Image handling error. GIF support is not available. Do I misunderstand? I thought that if I use GDAL, I should be able to read the GIFs. I'm not trying to write GIF, but the drawGIF() message above seems to indicate that I'm trying to do so. I'm definitely requesting the map using FORMAT=image/png in the WMS request. Any ideas would be appreciated. Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue, Vancouver, BC, Canada V7M 2J5 Phone: 604-984-8109 Fax: 604-608-4764 E-Mail: doug@moximedia.com Web: www.moximedia.com From John.Arthur@T-Mobile.com Tue Mar 4 18:29:10 2003 From: John.Arthur@T-Mobile.com (Arthur, John) Date: Tue, 4 Mar 2003 10:29:10 -0800 Subject: [Mapserver-users] RH8 and GD Message-ID: Well, I ran gdb on a test script that outputs an image and it showed an error with png. If I change the output to gif or jpeg instead of png, it runs fine. I just need to find out why libpng fails now. -----Original Message----- From: Vinko Vrsalovic [mailto:vinko@cprsig.cl] Sent: Tuesday, March 04, 2003 1:21 PM To: Arthur, John Cc: mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] RH8 and GD Are you sure that PHP is using/finding the same GD library which it was compiled against? On Tue, Mar 04, 2003 at 09:31:14AM -0800, Arthur, John wrote: > This is not only related to Mapscript, but anything related to gd and php. I have read and followed the http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37 to a "T". Everything compiles fine and normal php scripts run great. But, every time I run a php script that outputs an image using the gd library (jpgraph, mapscript, or gd examples) Apache returns this error: > > ------------------------------ > > Server error! > > The server encountered an internal error and was unable to complete your request. > > Error message: > Premature end of script headers: php > > If you think this is a server error, please contact the webmaster > > Error 500 > > localhost > Tue 04 Mar 2003 12:20:18 PM EST > Apache/2.0.40 (Red Hat Linux) > > ------------------------------ > > There is nothing in the logs except "Premature end of script headers: php". I have tried this with PHP 4.3.1 - GD 2.0.11 and PHP 4.2.3 - GD 2.0.7, with the same results. Does anybody have a clue what the issue might be? Is it related to Apache 2.0? BTW, the mapserv cgi using the Itasca demo works just great. > > Thanks, > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 839-0021 > Email: john.arthur@t-mobile.com > T-Mobile USA > Get more from life > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- Vinko Vrsalovic http://www.cprsig.cl From woodbri@swoodbridge.com Tue Mar 4 18:26:02 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Tue, 04 Mar 2003 13:26:02 -0500 Subject: [Mapserver-users] RH8 and GD In-Reply-To: Message-ID: <3E64A96A.27187.2C33617C@localhost> John, Can you post a simple script that does this so I can try it on my config. Thanks, -Steve W. On 4 Mar 2003 at 9:31, Arthur, John wrote: > This is not only related to Mapscript, but anything related to gd and > php. I have read and followed the > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37 to > a "T". Everything compiles fine and normal php scripts run great. > But, every time I run a php script that outputs an image using the gd > library (jpgraph, mapscript, or gd examples) Apache returns this > error: > > ------------------------------ > > Server error! > > The server encountered an internal error and was unable to complete > your request. > > Error message: > Premature end of script headers: php > > If you think this is a server error, please contact the webmaster > > Error 500 > > localhost > Tue 04 Mar 2003 12:20:18 PM EST > Apache/2.0.40 (Red Hat Linux) > > ------------------------------ > > There is nothing in the logs except "Premature end of script headers: > php". I have tried this with PHP 4.3.1 - GD 2.0.11 and PHP 4.2.3 - GD > 2.0.7, with the same results. Does anybody have a clue what the issue > might be? Is it related to Apache 2.0? BTW, the mapserv cgi using > the Itasca demo works just great. > > Thanks, > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 839-0021 > Email: john.arthur@t-mobile.com > T-Mobile USA > Get more from life > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From warmerdam@pobox.com Tue Mar 4 18:49:31 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Tue, 04 Mar 2003 13:49:31 -0500 Subject: [Mapserver-users] GDAL / GIF misunderstanding? In-Reply-To: <000601c2e27a$e38580e0$6401a8c0@vn.shawcable.net> References: <000601c2e27a$e38580e0$6401a8c0@vn.shawcable.net> Message-ID: <3E64F53B.7050201@pobox.com> Doug Cates wrote: > Do I misunderstand? I thought that if I use GDAL, I should be able to read > the GIFs. I'm not trying to write GIF, but the drawGIF() message above seems > to indicate that I'm trying to do so. I'm definitely requesting the map > using FORMAT=image/png in the WMS request. > > Any ideas would be appreciated. Doug, It seems that the 3.6.x series code (in mapraster.c) is still setup to call drawGIF() and report an error if GIF is not enabled even if GDAL is available and does have GIF support. I could provide a patch for mapraster.c if you are interested. Should this be rolled into a future 3.6.x? Note, I did already ensure that GDAL would be used if TIFF, PNG or JPEG were not configured, but for some reason the same fix was not applied for GIF. This isn't an issue in MapServer 3.7 where the rules are fairly different. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From morissette@dmsolutions.ca Tue Mar 4 18:54:59 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 04 Mar 2003 13:54:59 -0500 Subject: [Mapserver-users] GDAL / GIF misunderstanding? References: <000601c2e27a$e38580e0$6401a8c0@vn.shawcable.net> <3E64F53B.7050201@pobox.com> Message-ID: <3E64F683.22938D81@dmsolutions.ca> Frank Warmerdam wrote: > > I could provide a patch for mapraster.c if you are interested. Should this > be rolled into a future 3.6.x? Note, I did already ensure that GDAL would > be used if TIFF, PNG or JPEG were not configured, but for some reason the > same fix was not applied for GIF. > Frank, If the same logic is already applied and working for the JPEG and PNG formats in 3.6.x then I think it would be a good idea to fix the GIF case the same way in the 3.6.x branch so if we ever release 3.6.5 then this fix will be part of it. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From cblack@CalAcademy.Org Tue Mar 4 19:03:54 2003 From: cblack@CalAcademy.Org (Chris Black) Date: Tue, 04 Mar 2003 11:03:54 -0800 Subject: [Mapserver-users] documentation bug (was Re: projecting a point in PHP MapScript) References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> <1046767038.1465.12.camel@ubet.gomoos.org> Message-ID: <3E64F89A.8050406@calacademy.org> Eric Bridger wrote: >Chris, >1) pointObj->project() does not return a point, it just reprojects the >pointObj, so getting a null is not an error. > In that case, the online PHP class documentation should be modified. The doc at http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html#proj has this code snippet: $projInObj = ms_newprojectionobj("proj=latlong"); $projOutObj = ms_newprojectionobj("proj=lcc,ellps=GRS80, lat_0=49,lon_0=-95,lat_1=49,lat_2=77"); $poPoint = ms_newpointobj(); $poPoint->setXY(-92.0, 62.0); $poPoint = $poPoint->project($projInObj, $projOutObj); More on my own woes in my next message. -- Chris From warmerdam@pobox.com Tue Mar 4 19:01:29 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Tue, 04 Mar 2003 14:01:29 -0500 Subject: [Mapserver-users] GDAL / GIF misunderstanding? In-Reply-To: <3E64F683.22938D81@dmsolutions.ca> References: <000601c2e27a$e38580e0$6401a8c0@vn.shawcable.net> <3E64F53B.7050201@pobox.com> <3E64F683.22938D81@dmsolutions.ca> Message-ID: <3E64F809.8020306@pobox.com> This is a multi-part message in MIME format. --------------090601060905000508070705 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Daniel Morissette wrote: > Frank Warmerdam wrote: > >>I could provide a patch for mapraster.c if you are interested. Should this >>be rolled into a future 3.6.x? Note, I did already ensure that GDAL would >>be used if TIFF, PNG or JPEG were not configured, but for some reason the >>same fix was not applied for GIF. >> > > > Frank, > > If the same logic is already applied and working for the JPEG and PNG > formats in 3.6.x then I think it would be a good idea to fix the GIF > case the same way in the 3.6.x branch so if we ever release 3.6.5 then > this fix will be part of it. Daniel / Doug, OK, at this point I have to admit that I am not very CVS-branch competent. I have checked out 3.6.4 just fine and built it, and prepared the patch. Do I just commit, and it automatically goes into the right branch? I have attached the very simple patch (untested). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent --------------090601060905000508070705 Content-Type: text/plain; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch" Index: mapraster.c =================================================================== RCS file: /data2/cvsroot/mapserver/mapraster.c,v retrieving revision 1.54.2.2 diff -r1.54.2.2 mapraster.c 1774a1775 > #if !defined(USE_GDAL) || defined(USE_GD_GIF) 1830a1832 > #endif /* !defined(USE_GDAL) || defined(USE_GD_GIF) */ --------------090601060905000508070705-- From John.Arthur@T-Mobile.com Tue Mar 4 19:07:31 2003 From: John.Arthur@T-Mobile.com (Arthur, John) Date: Tue, 4 Mar 2003 11:07:31 -0800 Subject: [Mapserver-users] RH8 and GD Message-ID: Here is a test script: Note if the output is changed to gif or jpeg it will work. "40", // x1 "1" => "50", // y1 "2" => "20", // x2 "3" => "240", // y2 "4" => "60", // x3 "5" => "60", // y3 "6" => "240", // x4 "7" => "20", // y4 "8" => "50", // x5 "9" => "40", // y5 "10" => "10", // x6 "11" => "10", // y6 ); $number = count($points) / 2; ImageString($image, 5, 15, 250, "There are $number points", $black); ImageFilledPolygon($image, $points, $number, $red); for ($i = 1; $i <= 5; $i++) { // five fonts $k = (($i * 10) + 70); ImageString($image, $i, 90, $k, "PHP images", $green); } imagepng($image); // render image imagedestroy($image); // free memory ?> -----Original Message----- From: woodbri@swoodbridge.com [mailto:woodbri@swoodbridge.com] Sent: Tuesday, March 04, 2003 1:26 PM To: Arthur, John; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] RH8 and GD John, Can you post a simple script that does this so I can try it on my config. Thanks, -Steve W. On 4 Mar 2003 at 9:31, Arthur, John wrote: > This is not only related to Mapscript, but anything related to gd and > php. I have read and followed the > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37 to > a "T". Everything compiles fine and normal php scripts run great. > But, every time I run a php script that outputs an image using the gd > library (jpgraph, mapscript, or gd examples) Apache returns this > error: > > ------------------------------ > > Server error! > > The server encountered an internal error and was unable to complete > your request. > > Error message: > Premature end of script headers: php > > If you think this is a server error, please contact the webmaster > > Error 500 > > localhost > Tue 04 Mar 2003 12:20:18 PM EST > Apache/2.0.40 (Red Hat Linux) > > ------------------------------ > > There is nothing in the logs except "Premature end of script headers: > php". I have tried this with PHP 4.3.1 - GD 2.0.11 and PHP 4.2.3 - GD > 2.0.7, with the same results. Does anybody have a clue what the issue > might be? Is it related to Apache 2.0? BTW, the mapserv cgi using > the Itasca demo works just great. > > Thanks, > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 839-0021 > Email: john.arthur@t-mobile.com > T-Mobile USA > Get more from life > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From doug@moximedia.com Tue Mar 4 19:01:19 2003 From: doug@moximedia.com (Doug Cates) Date: Tue, 4 Mar 2003 11:01:19 -0800 Subject: [Mapserver-users] GDAL / GIF misunderstanding? In-Reply-To: <3E64F809.8020306@pobox.com> Message-ID: <000a01c2e280$719f6d00$6401a8c0@vn.shawcable.net> Frank, Thanks. I'll let you know if it works. Doug -----Original Message----- From: Frank Warmerdam [mailto:warmerdam@pobox.com] Sent: Tuesday, March 04, 2003 11:01 AM To: Daniel Morissette Cc: Doug Cates; Mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] GDAL / GIF misunderstanding? Daniel Morissette wrote: > Frank Warmerdam wrote: > >>I could provide a patch for mapraster.c if you are interested. Should this >>be rolled into a future 3.6.x? Note, I did already ensure that GDAL would >>be used if TIFF, PNG or JPEG were not configured, but for some reason the >>same fix was not applied for GIF. >> > > > Frank, > > If the same logic is already applied and working for the JPEG and PNG > formats in 3.6.x then I think it would be a good idea to fix the GIF > case the same way in the 3.6.x branch so if we ever release 3.6.5 then > this fix will be part of it. Daniel / Doug, OK, at this point I have to admit that I am not very CVS-branch competent. I have checked out 3.6.4 just fine and built it, and prepared the patch. Do I just commit, and it automatically goes into the right branch? I have attached the very simple patch (untested). Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cblack@CalAcademy.Org Tue Mar 4 19:16:07 2003 From: cblack@CalAcademy.Org (Chris Black) Date: Tue, 04 Mar 2003 11:16:07 -0800 Subject: [Mapserver-users] projecting a point in PHP MapScript References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> <1046767038.1465.12.camel@ubet.gomoos.org> Message-ID: <3E64FB77.2090304@calacademy.org> --------------020509060203000905000602 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I've tried every variation I can think of on my projection definitions, including one closely modeled on Eric's example (for which many thanks), and my point is still not being re-projected. Can anyone suggest a way to debug this? Sources of information on projection definitions would also be welcome; I looked at what I could find on the Web, but don't feel I fully understand them yet (understatement!). Latest version of my code is: ----------------- $crab_here = ms_newpointobj(); // here's a DD lat/long: 38.20527700 -122.37277700 $inproj = ms_newProjectionObj("proj=longlat,ellps=clrk66"); $outproj = ms_newProjectionObj("proj=utm,ellps=clrk66,zone=10,north,no_defs"); $crab_here->setXY(38.20527700, -122.37277700); $new_obj = $crab_here->project($inproj, $outproj); print("x is "); print($crab_here->x); print("; y is "); print($crab_here->y); ----------------------------- And the output is "x is 38.205277; y is -122.372777". Here's some of the metadata for the map I'm trying to put the dot on (and which I thus used to define $outproj): ----------------------------------- SPATIAL_REFERENCE_INFORMATION Horizontal_Coordinate_System_Definition Planar Grid_Coordinate_System Grid_Coordinate_System_Name: Universal Transverse Mercator Universal_Transverse_Mercator: UTM_Zone_Number: 10 Transverse_Mercator Scale_Factor_at_Central_Meridian: implied Longitude_of_Central_Meridian: implied Latitude_of_Projection_Origin: implied False_Easting: implied False_Northing: implied Planar_Coordinate_Information Planar_Coordinate_Encoding_Method: Row and column Coordinate_Representation: Abscissa_Resolution: 30.0 Ordinate_Resolution: 30.0 Planar_Distance_Units: Meters Geodetic_Model Horizontal_Datum_Name: North American Datum 1927 Ellipsoid_Name: Clarke 1866 Semi-major_Axis: 6378206.4 Denominator_of_Flattening_Ratio: 294.98 --------------------------------- Thanks for any help you can give. -- Chris Eric Bridger wrote: >Chris, >1) pointObj->project() does not return a point, it just reprojects the >pointObj, so getting a null is not an error. >2) Still the crab_here point is not gettting projected. When I did >something similiar in Perl mapscript, for my UTM projection I used:my >$proj_utm = new >projectionObj('proj=utm,ellps=GRS80,zone=19,north,no_defs'); > >Eric > >On Mon, 2003-03-03 at 22:08, Chris Black wrote: > > >>Hello all. I have some data in DD that I want to project in UTM (so I >>can plot them on a UTM map). I've written code that I *think* should do >>this: >> >>$crab_here = ms_newpointobj(); >>// here's a DD lat/long: 38.20527700 -122.37277700 >>$inproj = ms_newProjectionObj("proj=latlong,ellps=clrk66"); >>$outproj = ms_newProjectionObj("proj=utm,datum=NAD27,zone=10"); >>$crab_here->setXY(38.20527700, -122.37277700); >>$new_obj = $crab_here->project($inproj, $outproj); >>if ($new_obj == null) {print "new_obj is null";} else >>{print("new_obj is "); print($new_obj);} >>print("; x is "); >>print($crab_here->x); >>print("; y is "); >>print($crab_here->y); >> >>But when I run this it prints "new_obj is null; x is 38.205277; y is >>-122.372777", that is, I don't have a new point. >> >>What am I doing wrong? >> >>Thanks. >> >>-- Chris >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> >> > > > > --------------020509060203000905000602 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I've tried every variation I can think of on my projection definitions, including one closely modeled on Eric's example (for which many thanks), and my point is still not being re-projected.  Can anyone suggest a way to debug this?  Sources of information on projection definitions would also be welcome; I looked at what I could find on the Web, but don't feel I fully understand them yet (understatement!).

Latest version of my code is:
-----------------
$crab_here = ms_newpointobj();
// here's a DD lat/long: 38.20527700 -122.37277700
$inproj = ms_newProjectionObj("proj=longlat,ellps=clrk66");
$outproj = ms_newProjectionObj("proj=utm,ellps=clrk66,zone=10,north,no_defs");
$crab_here->setXY(38.20527700, -122.37277700);
$new_obj = $crab_here->project($inproj, $outproj);
print("x is ");
print($crab_here->x);
print("; y is ");
print($crab_here->y);
-----------------------------
And the output is "x is 38.205277; y is -122.372777".

Here's some of the metadata for the map I'm trying to put the dot on (and which I thus used to define $outproj):
-----------------------------------
SPATIAL_REFERENCE_INFORMATION



  Horizontal_Coordinate_System_Definition

    Planar

      Grid_Coordinate_System

        Grid_Coordinate_System_Name: Universal Transverse Mercator

        Universal_Transverse_Mercator:

          UTM_Zone_Number: 10

          Transverse_Mercator

            Scale_Factor_at_Central_Meridian: implied

            Longitude_of_Central_Meridian: implied

            Latitude_of_Projection_Origin: implied

            False_Easting: implied

            False_Northing:    implied

      Planar_Coordinate_Information

        Planar_Coordinate_Encoding_Method: Row and column

        Coordinate_Representation:

          Abscissa_Resolution: 30.0

          Ordinate_Resolution: 30.0

        Planar_Distance_Units: Meters

    Geodetic_Model

      Horizontal_Datum_Name: North American Datum 1927

      Ellipsoid_Name: Clarke 1866

      Semi-major_Axis: 6378206.4

      Denominator_of_Flattening_Ratio: 294.98
---------------------------------

Thanks for any help you can give.

-- Chris

Eric Bridger wrote:
Chris,
1) pointObj->project() does not return a point, it just reprojects the
pointObj, so getting a null is not an error.
2) Still the crab_here point is not gettting projected.  When I did
something similiar in Perl mapscript, for my UTM projection I used:my
$proj_utm = new         
projectionObj('proj=utm,ellps=GRS80,zone=19,north,no_defs');

Eric 

On Mon, 2003-03-03 at 22:08, Chris Black wrote:
  
Hello all.  I have some data in DD that I want to project in UTM (so I 
can plot them on a UTM map).  I've written code that I *think* should do 
this:

$crab_here = ms_newpointobj();
// here's a DD lat/long: 38.20527700 -122.37277700
$inproj = ms_newProjectionObj("proj=latlong,ellps=clrk66");
$outproj = ms_newProjectionObj("proj=utm,datum=NAD27,zone=10");
$crab_here->setXY(38.20527700, -122.37277700);
$new_obj = $crab_here->project($inproj, $outproj);
if ($new_obj == null) {print "new_obj is null";} else
{print("new_obj is "); print($new_obj);}
print("; x is ");
print($crab_here->x);
print("; y is ");
print($crab_here->y);

But when I run this it prints "new_obj is null; x is 38.205277; y is 
-122.372777", that is, I don't have a new point.

What am I doing wrong?

Thanks.

-- Chris

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

    


  

--------------020509060203000905000602-- From morissette@dmsolutions.ca Tue Mar 4 19:31:12 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 04 Mar 2003 14:31:12 -0500 Subject: [Mapserver-users] GDAL / GIF misunderstanding? References: <000601c2e27a$e38580e0$6401a8c0@vn.shawcable.net> <3E64F53B.7050201@pobox.com> <3E64F683.22938D81@dmsolutions.ca> <3E64F809.8020306@pobox.com> Message-ID: <3E64FF00.CFF62F2D@dmsolutions.ca> Frank Warmerdam wrote: > > OK, at this point I have to admit that I am not very CVS-branch competent. > I have checked out 3.6.4 just fine and built it, and prepared the patch. > Do I just commit, and it automatically goes into the right branch? > > I have attached the very simple patch (untested). > I have committed the patch to the 3.6.x branch in CVS. For the record, to commit a change to a branch you have to checkout the branch itself, and not just a regular tag. For instance, the 3.6.x branch is (poorly) named 'rel-3-6-0-beta1' so you would do 'cvs update -r rel-3-6-0-beta1' and then any changes you commit will go in that branch. If you checkout a regular tag (not a branch) like rel-3-6-4 then cvs will not let you commit anything. In the future the branches will be named in a more meaningful way, 'rel-3-6-0-beta1' was a poor choice. For 3.7 the branch name will be something like 'branch-3-7' and then inside that branch you'll have tags for 'rel-3-7-0', 'rel-3-7-1', etc. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From steve.lime@dnr.state.mn.us Tue Mar 4 20:32:22 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Tue, 04 Mar 2003 14:32:22 -0600 Subject: [Mapserver-users] demo problems! Message-ID: Your mapserver build probably doesn't support gif. Edit demo.map and change all references to .gif to .png and all should be well. Steve >>> Trigas Basileios 03/04/03 09:41AM >>> I've installed mapserver 3.6 (I use XP windows)and when I tried to run, demo_init.html it's shows me this message: msLoad Map():General error message.undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno.(this gif existes!) _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From kames@keyspanenergy.com Tue Mar 4 21:04:30 2003 From: kames@keyspanenergy.com (Kieran J. Ames) Date: Tue, 04 Mar 2003 16:04:30 -0500 Subject: [Mapserver-users] SHPTREE Odd behavior Message-ID: <3E6514DE.A44C1B99@keyspanenergy.com> I've been experimenting with shptree and seeing remarkable performance boosts (on point and line shapefiles). However, I've found some odd behavior now with polygons. I'm rendering polygons that take quite a while to come up (mapserver cgi). I then use shptree and when using the web interface, get the following error message: msDrawShape(): General error message. Only polygon shapes can be drawn using a POLYGON layer definition. If I then delete the associated .qix files, the map again renders. I'm using mapserver MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=SHAPEFILE SHPTREE is dated 11/01/00 09:48a 131,122 bytes ...appreciate any help. Kieran From ed@topozone.com Tue Mar 4 21:08:14 2003 From: ed@topozone.com (Ed McNierney) Date: Tue, 4 Mar 2003 16:08:14 -0500 Subject: [Mapserver-users] Labels with strange AUTO angles Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E9B@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C2E292.2B856FDB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm having more label problems. I can't believe I'm the only one seeing = this, so I thought I'd ask . Attached is a map with very strange label angles. The brown line is the = railroad that goes with the "Boston and Maine Railroad" label, and the = stream labels are equally screwy. These are all linear shapefiles (polylines) with ANGLE AUTO labels. I'm = using the current CVS code (as of this morning) with GD 2.0.11 and = FreeType 2.1.2, running on Windows. I've walked through the code and I = don't quite understand the numbers msPolylineLabelPoint is calculating = for angles; but if it's really doing them incorrectly I'd expect lots of = people to notice. If this rings a bell, let me know - thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242=20 ------_=_NextPart_001_01C2E292.2B856FDB Content-Type: image/png; name="labels.png" Content-Transfer-Encoding: base64 Content-Description: labels.png Content-Disposition: attachment; filename="labels.png" iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAHAZvZoAAAAjVBMVEUAAACQ2////7CAgID/uKD/ AADQ0P+AAADf35o/Pyy/v4RfX0IfHxZ/f1ifn24AAICfn57f36o/P4wfH4ZfX5J/f5i/v6RspN8k Np9aiM83N4obG4VTU49wABBAAEAQAHBgACAgAGAwAFBQADB+v+8SG482Uq9Ibb+cnL9OTl8aGh+2 tt+Cgp9oaH80ND8bD0c4AAAc30lEQVR4nO1d12LjurUl8aBKSexj35LcJBo7cybn/P/nXQAsYgGI ttEkLduyLBPYWFjoNUlXQAIkayciN+pO0gT/KLphOtlw8zfihOGC7+ZfKdcJx1GNtpww3VQdF3kX RUk/ZtNnOyE2UhUnRdW/4TnhRdkGl9WDzfjRmGA+u193ppN9H1lzJ9LhYjvZcsB0wns05TjhP/mw gmQMLJwg+YdnThRcECdo5USkPueJvbqTbSto6kTsuncibybVDtjcF2Un6HpQdqJmZdT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ULYE sbrLzM1CYtyLv3aSXLM4msFcQWxvwXS484FU79EstuMIYn8LptudWrjZRefiw88lLEFcbIh1f448 mfc9hj97shLE0fZk94LQXvw4exIs5oLEcDepCfp214nsPAm0Gz8VxOHefT96EJw6KS5JoH2TUZA4 booFQb/zJEx0grg+ZsSrHhjXMIsrAiJINBf3vgISH4e+vPXgA2ShnBrecmzBuSBvObbhVpDg7qYM Dy4FeashAWeCvNWQgxtBGGq0LX4pnFiPCg4EYVUcbYVfypx8vzGDbUE41Xhbdj9FZdl+dLAqyEa9 kVdNhQutprZpP0bYE+Rdi2vBjiDi/kZTlRhVVb0rkTngBZHu/OVN04Jbjx6QgigdvZyX5PXdyloC TBDVKqMgdTqqGyj7zwIYQfQq8LZ9dwxXgBBET47qdsN1evXWBKHd5L25IGbN2/pdiWBBJjAVRF+O 9kazyLuhNdPDmyBNV1S1zbvMghVEV5Girqpb8xYDLfQwF8RoGrCtq/LlG74MQQyHnd6jVibYsXOI SaS+BTEBRxButPbjIcv72qbDJG9BTKAoyHZkG94cVjdtW9d5/soDKDuuIMzIt5v46bxh9drzhluC MNpLlkujpmqqvC7r123+LvVYNXvnZZDt2qGiw1nl6+ohFsQHnmc8q9sFdJCP1N2/gxPkqeYNk9kv CeySwAR5snnDpAd5f0JX/DuhG7H7V/JzpR9n3Z87KsivP3e///qF3/9n95/EsyBPNm84ySGXK/2d TD5PHj+nY0L2zHeCJL/xyx/9e+9F1jPNG3aZo3sld80lqMstj9f+AZxF8LsLFuQXzhb45Y8/iRZJ EII8VSUiCxLth2zVxPJfhzxbJSILUmRd1m3eAAR5skpECSw9vAuCnqoSUUOggpCuelnW9etNHwYq CCLrHV6xyGLqEYAgBR3Lal5vwDdUQV4VbD3egnjDW5DA8BYkLHD0eAviC29BwgJPj7cgnsAV5P8B Pc4Dv/w3GfYAAAAASUVORK5CYII= ------_=_NextPart_001_01C2E292.2B856FDB-- From bfraser@geoanalytic.com Tue Mar 4 21:58:20 2003 From: bfraser@geoanalytic.com (Brent Fraser) Date: Tue, 4 Mar 2003 14:58:20 -0700 Subject: [Mapserver-users] Labels with strange AUTO angles References: <13858AA1A74F30419F319ACB66A9D1221F3E9B@mercator.topozone.com> Message-ID: <394c01c2e299$2b82a0d0$020002c0@SHARK> Ed, I don't think too many people are using Mapserver 3.7 with GD2-FT2. A few of us are, and have reported the label angle problem. See http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=268 The angle seems to be mirrored about the X-axis when angles are 0-45 degrees, and the Y-axis for 45-90 degrees (could be a tan/atan problem?). I don't know if this is a problem in Mapserver, GD or Freetype, or a combination. Personally I think this is a show-stopper for the 3.7 release. Is anybody willing to debug this problem? Brent Fraser bfraser@geoanalytic.com ----- Original Message ----- From: "Ed McNierney" To: Sent: Tuesday, March 04, 2003 2:08 PM Subject: [Mapserver-users] Labels with strange AUTO angles I'm having more label problems. I can't believe I'm the only one seeing this, so I thought I'd ask . Attached is a map with very strange label angles. The brown line is the railroad that goes with the "Boston and Maine Railroad" label, and the stream labels are equally screwy. These are all linear shapefiles (polylines) with ANGLE AUTO labels. I'm using the current CVS code (as of this morning) with GD 2.0.11 and FreeType 2.1.2, running on Windows. I've walked through the code and I don't quite understand the numbers msPolylineLabelPoint is calculating for angles; but if it's really doing them incorrectly I'd expect lots of people to notice. If this rings a bell, let me know - thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 From morissette@dmsolutions.ca Tue Mar 4 22:21:10 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 04 Mar 2003 17:21:10 -0500 Subject: [Mapserver-users] documentation bug (was Re: projecting a point in PHP MapScript) References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> <1046767038.1465.12.camel@ubet.gomoos.org> <3E64F89A.8050406@calacademy.org> Message-ID: <3E6526D6.1EF85B21@dmsolutions.ca> Chris Black wrote: > > Eric Bridger wrote: > > >Chris, > >1) pointObj->project() does not return a point, it just reprojects the > >pointObj, so getting a null is not an error. > > > > In that case, the online PHP class documentation should be modified. > The doc at > http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html#proj > has this code snippet: > Actually the 3.6 version "tries to" return a point but it's broken, it returns a point with an invalid internal poinObj reference, and the initial object is updated internally but the PHP wrapper is not, if you continue to play with the returned object you'll eventually end up with a crash. In 3.7 it won't return a point any more, instead it updates the point on which the project() method is called. I think your problem is simply that the project() method is broken in 3.6 and cannot be relied upon. I'll see if I could backport the 3.7 changes to 3.6, I just hoped that we could avoid that since very few people seemed to use those methods. The other option would be for you to use 3.7 in which the project() method works very well. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From ed@topozone.com Tue Mar 4 22:26:11 2003 From: ed@topozone.com (Ed McNierney) Date: Tue, 4 Mar 2003 17:26:11 -0500 Subject: [Mapserver-users] Labels with strange AUTO angles Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E9D@mercator.topozone.com> Brent, Steve - I had to leave the office before double-checking my math, but the angle calculation (for the single string I was running through the debugger) seemed to have a sign reversal. Yes, I think this is a very serious bug. I will do some more problem isolation and post a good test case. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Brent Fraser [mailto:bfraser@geoanalytic.com] Sent: Tuesday, March 04, 2003 4:58 PM To: Ed McNierney; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Labels with strange AUTO angles Ed, I don't think too many people are using Mapserver 3.7 with GD2-FT2. A few of us are, and have reported the label angle problem. See http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=268 The angle seems to be mirrored about the X-axis when angles are 0-45 degrees, and the Y-axis for 45-90 degrees (could be a tan/atan problem?). I don't know if this is a problem in Mapserver, GD or Freetype, or a combination. Personally I think this is a show-stopper for the 3.7 release. Is anybody willing to debug this problem? Brent Fraser bfraser@geoanalytic.com ----- Original Message ----- From: "Ed McNierney" To: Sent: Tuesday, March 04, 2003 2:08 PM Subject: [Mapserver-users] Labels with strange AUTO angles I'm having more label problems. I can't believe I'm the only one seeing this, so I thought I'd ask . Attached is a map with very strange label angles. The brown line is the railroad that goes with the "Boston and Maine Railroad" label, and the stream labels are equally screwy. These are all linear shapefiles (polylines) with ANGLE AUTO labels. I'm using the current CVS code (as of this morning) with GD 2.0.11 and FreeType 2.1.2, running on Windows. I've walked through the code and I don't quite understand the numbers msPolylineLabelPoint is calculating for angles; but if it's really doing them incorrectly I'd expect lots of people to notice. If this rings a bell, let me know - thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 From cblack@CalAcademy.Org Tue Mar 4 22:35:15 2003 From: cblack@CalAcademy.Org (Chris Black) Date: Tue, 04 Mar 2003 14:35:15 -0800 Subject: [Mapserver-users] documentation bug (was Re: projecting a point in PHP MapScript) References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> <1046767038.1465.12.camel@ubet.gomoos.org> <3E64F89A.8050406@calacademy.org> <3E6526D6.1EF85B21@dmsolutions.ca> Message-ID: <3E652A23.3050805@calacademy.org> --------------090702040709000501040409 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Ok, I'll download the 3.7 binaries and see if that helps. Thanks for the info. -- Chris Daniel Morissette wrote: >Chris Black wrote: > > >>Eric Bridger wrote: >> >> >> >>>Chris, >>>1) pointObj->project() does not return a point, it just reprojects the >>>pointObj, so getting a null is not an error. >>> >>> >>> >>In that case, the online PHP class documentation should be modified. >> The doc at >>http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html#proj >>has this code snippet: >> >> >> > >Actually the 3.6 version "tries to" return a point but it's broken, it >returns a point with an invalid internal poinObj reference, and the >initial object is updated internally but the PHP wrapper is not, if you >continue to play with the returned object you'll eventually end up with >a crash. In 3.7 it won't return a point any more, instead it updates >the point on which the project() method is called. > >I think your problem is simply that the project() method is broken in >3.6 and cannot be relied upon. I'll see if I could backport the 3.7 >changes to 3.6, I just hoped that we could avoid that since very few >people seemed to use those methods. The other option would be for you >to use 3.7 in which the project() method works very well. > > > --------------090702040709000501040409 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Ok, I'll download the 3.7 binaries and see if that helps.  Thanks for the info.

-- Chris

Daniel Morissette wrote:
Chris Black wrote:
  
Eric Bridger wrote:

    
Chris,
1) pointObj->project() does not return a point, it just reprojects the
pointObj, so getting a null is not an error.

      
In that case, the online PHP class documentation should be modified.
 The doc at
http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html#proj
has this code snippet:

    

Actually the 3.6 version "tries to" return a point but it's broken, it
returns a point with an invalid internal poinObj reference, and the
initial object is updated internally but the PHP wrapper is not, if you
continue to play with the returned object you'll eventually end up with
a crash.  In 3.7 it won't return a point any more, instead it updates
the point on which the project() method is called.

I think your problem is simply that the project() method is broken in
3.6 and cannot be relied upon.  I'll see if I could backport the 3.7
changes to 3.6, I just hoped that we could avoid that since very few
people seemed to use those methods.  The other option would be for you
to use 3.7 in which the project() method works very well.

  

--------------090702040709000501040409-- From steve.lime@dnr.state.mn.us Tue Mar 4 23:08:58 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Tue, 04 Mar 2003 17:08:58 -0600 Subject: [Mapserver-users] Labels with strange AUTO angles Message-ID: Funny since that code hasn't been changed in years (not by me anyway). >>> "Ed McNierney" 03/04/03 04:26PM >>> Brent, Steve - I had to leave the office before double-checking my math, but the angle calculation (for the single string I was running through the debugger) seemed to have a sign reversal. Yes, I think this is a very serious bug. I will do some more problem isolation and post a good test case. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Brent Fraser [mailto:bfraser@geoanalytic.com] Sent: Tuesday, March 04, 2003 4:58 PM To: Ed McNierney; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Labels with strange AUTO angles Ed, I don't think too many people are using Mapserver 3.7 with GD2-FT2. A few of us are, and have reported the label angle problem. See http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=268 The angle seems to be mirrored about the X-axis when angles are 0-45 degrees, and the Y-axis for 45-90 degrees (could be a tan/atan problem?). I don't know if this is a problem in Mapserver, GD or Freetype, or a combination. Personally I think this is a show-stopper for the 3.7 release. Is anybody willing to debug this problem? Brent Fraser bfraser@geoanalytic.com ----- Original Message ----- From: "Ed McNierney" To: Sent: Tuesday, March 04, 2003 2:08 PM Subject: [Mapserver-users] Labels with strange AUTO angles I'm having more label problems. I can't believe I'm the only one seeing this, so I thought I'd ask . Attached is a map with very strange label angles. The brown line is the railroad that goes with the "Boston and Maine Railroad" label, and the stream labels are equally screwy. These are all linear shapefiles (polylines) with ANGLE AUTO labels. I'm using the current CVS code (as of this morning) with GD 2.0.11 and FreeType 2.1.2, running on Windows. I've walked through the code and I don't quite understand the numbers msPolylineLabelPoint is calculating for angles; but if it's really doing them incorrectly I'd expect lots of people to notice. If this rings a bell, let me know - thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Tue Mar 4 23:36:25 2003 From: ed@topozone.com (Ed McNierney) Date: Tue, 4 Mar 2003 18:36:25 -0500 Subject: [Mapserver-users] Labels with strange AUTO angles Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3E9E@mercator.topozone.com> Yes, it's not new code. That's what makes me think I'm not yet looking in the right place. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Steve Lime [mailto:steve.lime@dnr.state.mn.us] Sent: Tuesday, March 04, 2003 6:09 PM To: bfraser@geoanalytic.com; mapserver-users@lists.gis.umn.edu; Ed McNierney Subject: RE: [Mapserver-users] Labels with strange AUTO angles Funny since that code hasn't been changed in years (not by me anyway). >>> "Ed McNierney" 03/04/03 04:26PM >>> Brent, Steve - I had to leave the office before double-checking my math, but the angle calculation (for the single string I was running through the debugger) seemed to have a sign reversal. Yes, I think this is a very serious bug. I will do some more problem isolation and post a good test case. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Brent Fraser [mailto:bfraser@geoanalytic.com] Sent: Tuesday, March 04, 2003 4:58 PM To: Ed McNierney; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Labels with strange AUTO angles Ed, I don't think too many people are using Mapserver 3.7 with GD2-FT2. A few of us are, and have reported the label angle problem. See http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=268 The angle seems to be mirrored about the X-axis when angles are 0-45 degrees, and the Y-axis for 45-90 degrees (could be a tan/atan problem?). I don't know if this is a problem in Mapserver, GD or Freetype, or a combination. Personally I think this is a show-stopper for the 3.7 release. Is anybody willing to debug this problem? Brent Fraser bfraser@geoanalytic.com ----- Original Message ----- From: "Ed McNierney" To: Sent: Tuesday, March 04, 2003 2:08 PM Subject: [Mapserver-users] Labels with strange AUTO angles I'm having more label problems. I can't believe I'm the only one seeing this, so I thought I'd ask . Attached is a map with very strange label angles. The brown line is the railroad that goes with the "Boston and Maine Railroad" label, and the stream labels are equally screwy. These are all linear shapefiles (polylines) with ANGLE AUTO labels. I'm using the current CVS code (as of this morning) with GD 2.0.11 and FreeType 2.1.2, running on Windows. I've walked through the code and I don't quite understand the numbers msPolylineLabelPoint is calculating for angles; but if it's really doing them incorrectly I'd expect lots of people to notice. If this rings a bell, let me know - thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From woodbri@swoodbridge.com Tue Mar 4 23:57:06 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Tue, 04 Mar 2003 18:57:06 -0500 Subject: [Mapserver-users] RH8 and GD In-Reply-To: Message-ID: <3E64F702.20005.2D627B8B@localhost> John, I just tried this on my system and it works fine. I'm using the RH8 rpm -q libpng rpm -q libpng-devel rpm -q freetype I have installed gd-2.0.11 in /usr/local and here is my build script for php-4.3.1 make clean rm -f config.cache ./configure \ --enable-force-cgi-redirect \ --enable-discard-path \ --with-config-file-path=/etc/httpd/ \ --with-gd=/usr/local \ --with-jpeg-dir \ --with-png-dir \ --with-zlib-dir \ --with-free-type-dir \ --without-tiff \ --with-pdflib \ --with-mysql \ --with-regex=system \ --with-ming \ --enable-dbase \ --enable-dbx \ --enable-versioning echo ---------------------------------------------- echo make echo make install echo cp sapi/cgi/php /var/www/cgi-bin echo cp php.ini-dist /etc/httpd/php.ini echo change extension_dir = /etc/httpd/php_mods/ echo ---------------------------------------------- Hope this helps, -Steve W. On 4 Mar 2003 at 11:07, Arthur, John wrote: > Here is a test script: Note if the output is changed to gif or jpeg it > will work. > > Header("Content-type: image/png"); > > $image = imagecreate(300, 300); > > $red = ImageColorAllocate($image, 204, 0, 0); > $white = ImageColorAllocate($image, 255, 255, 255); > $green = ImageColorAllocate($image, 0, 150, 0); > $black = ImageColorAllocate($image, 0, 0, 0); > > ImageFilledRectangle($image, 0, 0, 300, 300, $white); // white > background ImageRectangle($image, 10, 10, 290, 290, $red); // red > frame > > $points = array( > "0" => "40", // x1 > "1" => "50", // y1 > "2" => "20", // x2 > "3" => "240", // y2 > "4" => "60", // x3 > "5" => "60", // y3 > "6" => "240", // x4 > "7" => "20", // y4 > "8" => "50", // x5 > "9" => "40", // y5 > "10" => "10", // x6 > "11" => "10", // y6 > ); > > $number = count($points) / 2; > > ImageString($image, 5, 15, 250, "There are $number points", $black); > > > ImageFilledPolygon($image, $points, $number, $red); > > > for ($i = 1; $i <= 5; $i++) { // five fonts > $k = (($i * 10) + 70); > ImageString($image, $i, 90, $k, "PHP images", $green); > } > > imagepng($image); // render image > imagedestroy($image); // free memory > > ?> > > > -----Original Message----- > From: woodbri@swoodbridge.com [mailto:woodbri@swoodbridge.com] > Sent: Tuesday, March 04, 2003 1:26 PM > To: Arthur, John; mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] RH8 and GD > > > John, > > Can you post a simple script that does this so I can try it on my > config. > > Thanks, > -Steve W. > > On 4 Mar 2003 at 9:31, Arthur, John wrote: > > > This is not only related to Mapscript, but anything related to gd > > and php. I have read and followed the > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37 > > to a "T". Everything compiles fine and normal php scripts run > > great. But, every time I run a php script that outputs an image > > using the gd library (jpgraph, mapscript, or gd examples) Apache > > returns this error: > > > > ------------------------------ > > > > Server error! > > > > The server encountered an internal error and was unable to complete > > your request. > > > > Error message: > > Premature end of script headers: php > > > > If you think this is a server error, please contact the webmaster > > > > Error 500 > > > > localhost > > Tue 04 Mar 2003 12:20:18 PM EST > > Apache/2.0.40 (Red Hat Linux) > > > > ------------------------------ > > > > There is nothing in the logs except "Premature end of script > > headers: php". I have tried this with PHP 4.3.1 - GD 2.0.11 and PHP > > 4.2.3 - GD 2.0.7, with the same results. Does anybody have a clue > > what the issue might be? Is it related to Apache 2.0? BTW, the > > mapserv cgi using the Itasca demo works just great. > > > > Thanks, > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 839-0021 > > Email: john.arthur@t-mobile.com > > T-Mobile USA > > Get more from life > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > From woodbri@swoodbridge.com Wed Mar 5 00:00:58 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Tue, 04 Mar 2003 19:00:58 -0500 Subject: [Mapserver-users] RH8 and GD In-Reply-To: Message-ID: <3E64F7EA.19112.2D6607ED@localhost> Oh one more thing, make SURE you rpm -e gd rpm -e gd-devel and any dependent rpms or you are likely going to pick up the wrong includes or libs. -Steve W. On 4 Mar 2003 at 11:07, Arthur, John wrote: > Here is a test script: Note if the output is changed to gif or jpeg it > will work. > > Header("Content-type: image/png"); > > $image = imagecreate(300, 300); > > $red = ImageColorAllocate($image, 204, 0, 0); > $white = ImageColorAllocate($image, 255, 255, 255); > $green = ImageColorAllocate($image, 0, 150, 0); > $black = ImageColorAllocate($image, 0, 0, 0); > > ImageFilledRectangle($image, 0, 0, 300, 300, $white); // white > background ImageRectangle($image, 10, 10, 290, 290, $red); // red > frame > > $points = array( > "0" => "40", // x1 > "1" => "50", // y1 > "2" => "20", // x2 > "3" => "240", // y2 > "4" => "60", // x3 > "5" => "60", // y3 > "6" => "240", // x4 > "7" => "20", // y4 > "8" => "50", // x5 > "9" => "40", // y5 > "10" => "10", // x6 > "11" => "10", // y6 > ); > > $number = count($points) / 2; > > ImageString($image, 5, 15, 250, "There are $number points", $black); > > > ImageFilledPolygon($image, $points, $number, $red); > > > for ($i = 1; $i <= 5; $i++) { // five fonts > $k = (($i * 10) + 70); > ImageString($image, $i, 90, $k, "PHP images", $green); > } > > imagepng($image); // render image > imagedestroy($image); // free memory > > ?> > > > -----Original Message----- > From: woodbri@swoodbridge.com [mailto:woodbri@swoodbridge.com] > Sent: Tuesday, March 04, 2003 1:26 PM > To: Arthur, John; mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] RH8 and GD > > > John, > > Can you post a simple script that does this so I can try it on my > config. > > Thanks, > -Steve W. > > On 4 Mar 2003 at 9:31, Arthur, John wrote: > > > This is not only related to Mapscript, but anything related to gd > > and php. I have read and followed the > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37 > > to a "T". Everything compiles fine and normal php scripts run > > great. But, every time I run a php script that outputs an image > > using the gd library (jpgraph, mapscript, or gd examples) Apache > > returns this error: > > > > ------------------------------ > > > > Server error! > > > > The server encountered an internal error and was unable to complete > > your request. > > > > Error message: > > Premature end of script headers: php > > > > If you think this is a server error, please contact the webmaster > > > > Error 500 > > > > localhost > > Tue 04 Mar 2003 12:20:18 PM EST > > Apache/2.0.40 (Red Hat Linux) > > > > ------------------------------ > > > > There is nothing in the logs except "Premature end of script > > headers: php". I have tried this with PHP 4.3.1 - GD 2.0.11 and PHP > > 4.2.3 - GD 2.0.7, with the same results. Does anybody have a clue > > what the issue might be? Is it related to Apache 2.0? BTW, the > > mapserv cgi using the Itasca demo works just great. > > > > Thanks, > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 839-0021 > > Email: john.arthur@t-mobile.com > > T-Mobile USA > > Get more from life > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > From mzm@imagecatinc.com Wed Mar 5 01:20:42 2003 From: mzm@imagecatinc.com (Michael Mio) Date: Tue, 4 Mar 2003 17:20:42 -0800 Subject: [Mapserver-users] AVL Files Message-ID: Hi everyone, I was wondering if MapServer has a way to read AVL files? Is there a function to call or a command to put in my Map file to use information in an AVL file? Thanks for your time. I look forward to your responses. *************** Michael Mio ImageCat, Inc. From steve.lime@dnr.state.mn.us Wed Mar 5 01:41:43 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Tue, 04 Mar 2003 19:41:43 -0600 Subject: [Mapserver-users] Labels with strange AUTO angles Message-ID: Except that the angle and placement code was *very* responsive to gd-1.x and freetype 1.x. It was written to fit those libraries. There may well be problems with the code. Gd 2.x and freetype 2.x are where we want to be. I'd really like to loose support for the 1.x libs anyway. Let me know what you find. A robust test dataset would really help. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 03/04/03 17:39 PM >>> Yes, it's not new code. That's what makes me think I'm not yet looking in the right place. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Steve Lime [mailto:steve.lime@dnr.state.mn.us] Sent: Tuesday, March 04, 2003 6:09 PM To: bfraser@geoanalytic.com; mapserver-users@lists.gis.umn.edu; Ed McNierney Subject: RE: [Mapserver-users] Labels with strange AUTO angles Funny since that code hasn't been changed in years (not by me anyway). >>> "Ed McNierney" 03/04/03 04:26PM >>> Brent, Steve - I had to leave the office before double-checking my math, but the angle calculation (for the single string I was running through the debugger) seemed to have a sign reversal. Yes, I think this is a very serious bug. I will do some more problem isolation and post a good test case. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Brent Fraser [mailto:bfraser@geoanalytic.com] Sent: Tuesday, March 04, 2003 4:58 PM To: Ed McNierney; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Labels with strange AUTO angles Ed, I don't think too many people are using Mapserver 3.7 with GD2-FT2. A few of us are, and have reported the label angle problem. See http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=268 The angle seems to be mirrored about the X-axis when angles are 0-45 degrees, and the Y-axis for 45-90 degrees (could be a tan/atan problem?). I don't know if this is a problem in Mapserver, GD or Freetype, or a combination. Personally I think this is a show-stopper for the 3.7 release. Is anybody willing to debug this problem? Brent Fraser bfraser@geoanalytic.com ----- Original Message ----- From: "Ed McNierney" To: Sent: Tuesday, March 04, 2003 2:08 PM Subject: [Mapserver-users] Labels with strange AUTO angles I'm having more label problems. I can't believe I'm the only one seeing this, so I thought I'd ask . Attached is a map with very strange label angles. The brown line is the railroad that goes with the "Boston and Maine Railroad" label, and the stream labels are equally screwy. These are all linear shapefiles (polylines) with ANGLE AUTO labels. I'm using the current CVS code (as of this morning) with GD 2.0.11 and FreeType 2.1.2, running on Windows. I've walked through the code and I don't quite understand the numbers msPolylineLabelPoint is calculating for angles; but if it's really doing them incorrectly I'd expect lots of people to notice. If this rings a bell, let me know - thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From t_lalla20@yahoo.com Wed Mar 5 01:57:13 2003 From: t_lalla20@yahoo.com (Terrence Lalla) Date: Tue, 4 Mar 2003 17:57:13 -0800 (PST) Subject: [Mapserver-users] defining a simple scalebar object In-Reply-To: Message-ID: <20030305015713.46404.qmail@web14106.mail.yahoo.com> --0-72860261-1046829433=:46074 Content-Type: text/plain; charset=us-ascii Thanks Debbie for the help. However i am not having any luck with the scalebar object working. Is there something else i could do or is something missing? Thanks in advance. Terrence. Debbie Pagurek wrote:Here is the scalebar section from my mapfile and attached is an image showing what it looks like. Debbie SCALEBAR STATUS ON IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE tiny END #LABEL STYLE 1 SIZE 200 3 COLOR 255 0 0 UNITS kilometers INTERVALS 3 END #SCALEBAR >>> Terrence Lalla 03/03/03 01:42PM >>> Hi everyone, I am trying to design a simple scalebar object. The output is in gif format(dont know if this would affect anything).Anyways here is the code in the map file: SCALEBAR STATUS ON UNITS METERS SIZE 20 20 BACKGROUNDCOLOR 120 120 120 COLOR 120 120 120 END Thanks in Advance Terrence. --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more > ATTACHMENT part 2 application/octet-stream name=scalebar.gif --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --0-72860261-1046829433=:46074 Content-Type: text/html; charset=us-ascii

Thanks Debbie for the help.

However i am not having any luck with the scalebar object working. Is there something else i could do or is something missing?

Thanks in advance.

Terrence.

 Debbie Pagurek <pagurekd@agr.gc.ca> wrote:

Here is the scalebar section from my mapfile and attached is an image showing what it looks like.
Debbie

SCALEBAR
STATUS ON
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE tiny
END #LABEL
STYLE 1
SIZE 200 3
COLOR 255 0 0
UNITS kilometers
INTERVALS 3
END #SCALEBAR

>>> Terrence Lalla 03/03/03 01:42PM >>>

Hi everyone,

I am trying to design a simple scalebar object. The output is in gif format(dont know if this would affect anything).Anyways here is the code in the map file:

SCALEBAR

STATUS ON

UNITS METERS

SIZE 20 20

BACKGROUNDCOLOR 120 120 120

COLOR 120 120 120

END

Thanks in Advance

Terrence.



---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

> ATTACHMENT part 2 application/octet-stream name=scalebar.gif



Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more --0-72860261-1046829433=:46074-- From morissette@dmsolutions.ca Wed Mar 5 03:38:08 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 04 Mar 2003 22:38:08 -0500 Subject: [Mapserver-users] documentation bug (was Re: projecting a pointin PHP MapScript) References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> <1046767038.1465.12.camel@ubet.gomoos.org> <3E64F89A.8050406@calacademy.org> <3E6526D6.1EF85B21@dmsolutions.ca> <3E652A23.3050805@calacademy.org> Message-ID: <3E657120.5B3C4F6E@dmsolutions.ca> FYI I have applied the 3.7 fix for this problem in the 3.6.5-dev version in CVS. You can get it using 'cvs update -r rel-3-6-0-beta1'. With this fix, the project() methods return MS_SUCCESS/MS_FAILURE and operate on the object itself, so they do not try to return a new object instance. Daniel Chris Black wrote: > > Ok, I'll download the 3.7 binaries and see if that helps. Thanks for > the info. > > -- Chris > > Daniel Morissette wrote: > > > Chris Black wrote: > > > > > >> Eric Bridger wrote: > >> > >> > >> > >> > Chris, > >> > 1) pointObj->project() does not return a point, it just > >> > reprojects the > >> > pointObj, so getting a null is not an error. > >> > > >> > > >> > > >> In that case, the online PHP class documentation should be > >> modified. > >> The doc at > >> > >> http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html#proj > >> has this code snippet: > >> > >> > >> > > Actually the 3.6 version "tries to" return a point but it's broken, > > it > > returns a point with an invalid internal poinObj reference, and the > > initial object is updated internally but the PHP wrapper is not, if > > you > > continue to play with the returned object you'll eventually end up > > with > > a crash. In 3.7 it won't return a point any more, instead it > > updates > > the point on which the project() method is called. > > > > I think your problem is simply that the project() method is broken > > in > > 3.6 and cannot be relied upon. I'll see if I could backport the 3.7 > > changes to 3.6, I just hoped that we could avoid that since very few > > people seemed to use those methods. The other option would be for > > you > > to use 3.7 in which the project() method works very well. > > > > > > From 0098kast@edu.fh-kaernten.ac.at Wed Mar 5 09:38:15 2003 From: 0098kast@edu.fh-kaernten.ac.at (Kaps Stefan) Date: Wed, 5 Mar 2003 10:38:15 +0100 Subject: [Mapserver-users] unknown errors when running the demo app. Message-ID: <3F01711BFB99D411835B0008C7866AA001308098@EXCHANGE01> Hello! When i'm trying to install the demo app. and run mapserv.exe in the browser, i get the message "No query information to decode. QUERY_STRING not set" instead of "No query information to decode. QUERY_STRING is set, but empty" as mentioned in the documentation. Running the demo_init.html and initializing the demo there is just the user interface, but the map-window appears blank. A Query results in that message "msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\tmp\DEMO10467852871028.gif)". Does anybody know these kinds of problems (I'm quite sure somebody does...) cheers Stefan From marichalperez@yahoo.es Wed Mar 5 10:34:56 2003 From: marichalperez@yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Wed, 5 Mar 2003 10:34:56 -0000 Subject: [Mapserver-users] gdaladdo Message-ID: <000201c2e302$df9a8240$070010ac@manolo> This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C2E302.DF9A8240 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi all. I've got an application which deal with large TIFF's raster images. I considered to use GDAL to improve the performance (gdaladdo & gdaltndex). I succesfully compiled GDAL in my machine. Also I recompiled mapserver with "--without-tiff" and "--with-gdal" options. Then I used gdaladdo with one of my tiff images in order to make a TIFF image with many levels. Right. Now, what must I do with my "map" file to get the correct image be displayed as the user changes the scale?. Thanks in advance. ------=_NextPart_000_0003_01C2E302.DF9A8240 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Mensaje
Hi=20 all.
 
I've = got an=20 application which deal with large TIFF's raster images. I considered to = use GDAL=20 to improve the
performance=20 (gdaladdo & gdaltndex). I succesfully compiled GDAL in my machine. Also I = recompiled=20
mapserver with=20 "--without-tiff" and "--with-gdal" options.
 
Then I = used gdaladdo=20 with one of my tiff images in order to make a TIFF image with many = levels.=20 Right.
 
Now, = what must I do=20 with my "map" file to get the correct image be displayed as the = user=20 changes the scale?.
 
Thanks = in=20 advance.
 
 
------=_NextPart_000_0003_01C2E302.DF9A8240-- ___________________________________________________ Yahoo! Móviles Personaliza tu móvil con tu logo y melodía favorito en http://moviles.yahoo.es From schut@sarvision.com Wed Mar 5 11:05:45 2003 From: schut@sarvision.com (Vincent Schut) Date: Wed, 5 Mar 2003 12:05:45 +0100 Subject: [Mapserver-users] gdaladdo In-Reply-To: <000201c2e302$df9a8240$070010ac@manolo> References: <000201c2e302$df9a8240$070010ac@manolo> Message-ID: <200303051205.45337.schut@sarvision.com> On Wednesday 05 March 2003 11:34, Manuel Marichal Pérez wrote: > Hi all. > > I've got an application which deal with large TIFF's raster images. I > considered to use GDAL to improve the > performance (gdaladdo & gdaltndex). I succesfully compiled GDAL in my > machine. Also I recompiled > mapserver with "--without-tiff" and "--with-gdal" options. > > Then I used gdaladdo with one of my tiff images in order to make a TIFF > image with many levels. Right. > > Now, what must I do with my "map" file to get the correct image be > displayed as the user changes the scale?. There is some explanation in on the mapserver website. You need to combine the minscale/maxscale items in the layer objects of your mapfile (see http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#layer ) and the tile feature ( see http://mapserver.gis.umn.edu/doc36/raster-howto.html ). However, it sounds like you might not be interested in tiling your dataset, but just using scaled down versions when viewing at larger scales. I think you'd better use gdal_translate then, as you need to create a separate file for each scaled down layer, instead of a built-in overview. Afaik, the mapfile does not support using one of many overviews of a tiff file as a datasource. I think. If I'm wrong, please somebody correct me. So the correct procedure would be: create several scaled down versions of your dataset, at the scales that you want, and define a layer object for each of these, with minscale and maxscale items defined so that always just one will be drawn. If you really want a performance gain, I think you should consider image tiling next to using different scale levels. See the explanation in the raster howto and search the mailing list archives for more info on the best way to do this. There have been some posts about it, if I remember well. Regards, Vincent Schut. > > Thanks in advance. -- ______________________________________ Vincent Schut (schut@sarvision.com) Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From csr@rboxtech.com Wed Mar 5 12:45:25 2003 From: csr@rboxtech.com (Srinivas Challa) Date: Wed, 5 Mar 2003 20:45:25 +0800 Subject: [Mapserver-users] query Message-ID: <200303052045.AA50987218@rboxtech.com> Hi Daniel, Thanks for the replay, I need ,”When I am clicking on map selected at point or in rectangle area content recognitions with PHP. I had written the map file like this MAP NAME "New Demo" STATUS ON EXTENT 184861.560567497 88197.0005976087 2380774.92575433 826403.167230631 SIZE 800 480 SHAPEPATH "data" IMAGECOLOR 255 255 255 UNITS meters WEB IMAGEPATH "/apache/htdocs/tmp/" IMAGEURL "/tmp/" METADATA "WMS_TITLE" "New Demo" "WMS_ABSTRACT" "Information system" "WMS_ACCESSCONSTRAINTS" "none" "WMS_ONLINERESOURCE" "http://localhost:81/demo/demo.phtml" "WMS_SRS" "EPSG:26915" END END # # Start of reference map # REFERENCE STATUS ON IMAGE "graphics/refreance2.gif" SIZE 200 80 COLOR -1 -1 -1 OUTLINECOLOR 0 0 255 MARKERSIZE 3 EXTENT 184861.560567497 88197.0005976087 2380774.92575433 826403.167230631 END QUERYMAP STATUS ON SIZE 400 400 STYLE HILITE COLOR 255 0 0 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 STATUS TRUE COLOR 0 0 0 IMAGECOLOR 255 255 255 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 5 SIZE 200 5 STYLE 0 LABEL SIZE tiny COLOR 0 0 0 END END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END # Start of layer definitions LAYER NAME "Boundary" STATUS ON CONNECTIONTYPE OGR CONNECTION "data/Boundary.tab" TYPE POLYGON CLASSITEM "NAME" LABELITEM "NAME" METADATA "DESCRIPTION" "Daerah" "RESULT_FIELDS" "Name" "WMS_TITLE" "Selected Information" "WMS_ABSTRACT" "more information." "WMS_SRS" "EPSG:26915" END CLASS COLOR 255 255 200 OUTLINECOLOR 0 0 0 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 200 END END End LAYER NAME "Fed_Rd" STATUS ON CONNECTIONTYPE OGR CONNECTION "data/Fed_Rd.TAB" TYPE LINE #STYLEITEM "AUTO" CLASSITEM "NAME" LABELITEM "Name" METADATA "WMS_TITLE" "Selected Information" "WMS_ABSTRACT" "more information." "WMS_SRS" "EPSG:26915" END CLASS COLOR 255 0 0 #OUTLINECOLOR 255 0 0 LABEL #MINFEATURESIZE 40 #MINDISTANCE 150 POSITION CC SIZE tiny COLOR 10 100 100 #SHADOWCOLOR 80 80 80 #SHADOWSIZE 1 1 END END END LAYER NAME "Highway" STATUS ON CONNECTIONTYPE OGR CONNECTION "data/Highway.TAB" TYPE LINE # STYLEITEM "AUTO" CLASSITEM "NAME" LABELITEM "NAME" METADATA "WMS_TITLE" "Selected Information" "WMS_ABSTRACT" "more information." "WMS_SRS" "EPSG:26915" END CLASS #SYMBOL "MYSYMBOL" COLOR 46 210 200 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 800 200 END END END LAYER NAME "Railways" STATUS ON CONNECTIONTYPE OGR CONNECTION "data/Railway.TAB" TYPE LINE STYLEITEM "AUTO" CLASSITEM "NAME" LABELITEM "NAME" METADATA "WMS_TITLE" "Selected Information" "WMS_ABSTRACT" "more information." "WMS_SRS" "EPSG:26915" END CLASS NAME "Rail Lines" COLOR 0 0 0 OVERLAYSYMBOL dashed2 OVERLAYCOLOR 0 0 0 OVERLAYSIZE 3 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 100 0 200 END END END LAYER NAME "State_Rd" STATUS ON CONNECTIONTYPE OGR CONNECTION "data/State_Rd.TAB" TYPE LINE #STYLEITEM "AUTO" CLASSITEM "NAME" LABELITEM "NAME" METADATA "WMS_TITLE" "Selected Information" "WMS_ABSTRACT" "more information." "WMS_SRS" "EPSG:26915" END CLASS COLOR 180 180 180 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 220 100 0 END END END # Seven Layer Under tesing Process... sucessed LAYER NAME "Towns" STATUS ON CONNECTIONTYPE OGR CONNECTION "data/ Towns.TAB" TYPE POINT CLASSITEM "TOWN" LABELITEM "Town" METADATA "DESCRIPTION" " Towns" "RESULT_FIELDS" "Town" "WMS_TITLE" "Selected Information" "WMS_ABSTRACT" "more information." "WMS_SRS" "EPSG:26915" END CLASS SYMBOL 'symbols/town.gif' LABEL MINFEATURESIZE 100 MINDISTANCE 450 POSITION LC SIZE TINY COLOR 40 100 40 END END END # End of the map END For the above map Script is working fine. But while I am querying I did not getting the results. How can query the map using PHP at point and selected rectangle area. Is any one can send the script for this. In this project i am not using applets. Just Map querying on 7 layers using php. srinivasa reddy Challa Srinivas Reddy wrote: > > Now am new to this technologies but I had done some of project with > the reference of DM solutions map reference. In DM > solutions they are done using SHP data files. But I am using "*.Tab" > data. How can I query the content of the "*.TAB"layers > using php and mapscript. This is my problem. This is my email id : > csr@rboxtech.com or reddy_challa@yahoo.com You will have to provide more details on what you are trying to do exactly if you want anyone to be able to help. If by "query the contents of .tab layers" you mean clicking on a map image and selecting features from a TAB layer then this works the same way for shapefiles and for .tab files. The only difference is that you need MapServer with OGR support, and you define an OGR CONNECTION in your LAYER. For more details on using OGR CONNECTIONS, see the OGR HOWTO at http://mapserver.gis.umn.edu/doc36/ogr-howto.html Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From assefa@dmsolutions.ca Wed Mar 5 12:48:01 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 05 Mar 2003 07:48:01 -0500 Subject: [Mapserver-users] swf output & 24bit color References: <200303041609.37279.schut@sarvision.com> Message-ID: <3E65F201.9CA5672C@dmsolutions.ca> Hi There, Right now the swf output converts the gd image to an internal bitmap format to be outputed in the swf file. Only 8bit images are currently supported. I wil add an enhancement bug related to this in mapserver. Later, Vincent Schut wrote: > Does any of you know if swf output can be combined with 24bit color depth? > I am displaying a raster file through swf output and it looks like being > palletized or at least reduced color depth, no matter whether I set > 'imagemode RGB' in the swf outputformat part. > > Using: php4.3.1, latest GD, mapserver cvs from some weeks ago (phpinfo sais > about mapscript ($Revision: 1.141 $ $Date: 2003/01/24 17:01:05 $), so it's > likely from end of january). > > Is there a way to have a better colordepth in swf output, or is swf only > supporting a reduced color depth? > -- > ______________________________________ > Vincent Schut (schut@sarvision.com) > Sarvision B.V. > Wageningen, The Netherlands > www.sarvision.com > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From John.Arthur@T-Mobile.com Wed Mar 5 13:24:56 2003 From: John.Arthur@T-Mobile.com (Arthur, John) Date: Wed, 5 Mar 2003 05:24:56 -0800 Subject: [Mapserver-users] RH8 and GD Message-ID: I found the offending problem... pdflib (I used the pdflib-4.0.1-1.i386.rpm). After compiling without "--with-pdflib" everything worked great. I guess I'll have to compile pdflib from source. -----Original Message----- From: woodbri@swoodbridge.com [mailto:woodbri@swoodbridge.com] Sent: Tuesday, March 04, 2003 7:01 PM To: Arthur, John; mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] RH8 and GD Oh one more thing, make SURE you rpm -e gd rpm -e gd-devel and any dependent rpms or you are likely going to pick up the wrong includes or libs. -Steve W. On 4 Mar 2003 at 11:07, Arthur, John wrote: > Here is a test script: Note if the output is changed to gif or jpeg it > will work. > > Header("Content-type: image/png"); > > $image = imagecreate(300, 300); > > $red = ImageColorAllocate($image, 204, 0, 0); > $white = ImageColorAllocate($image, 255, 255, 255); > $green = ImageColorAllocate($image, 0, 150, 0); > $black = ImageColorAllocate($image, 0, 0, 0); > > ImageFilledRectangle($image, 0, 0, 300, 300, $white); // white > background ImageRectangle($image, 10, 10, 290, 290, $red); // red > frame > > $points = array( > "0" => "40", // x1 > "1" => "50", // y1 > "2" => "20", // x2 > "3" => "240", // y2 > "4" => "60", // x3 > "5" => "60", // y3 > "6" => "240", // x4 > "7" => "20", // y4 > "8" => "50", // x5 > "9" => "40", // y5 > "10" => "10", // x6 > "11" => "10", // y6 > ); > > $number = count($points) / 2; > > ImageString($image, 5, 15, 250, "There are $number points", $black); > > > ImageFilledPolygon($image, $points, $number, $red); > > > for ($i = 1; $i <= 5; $i++) { // five fonts > $k = (($i * 10) + 70); > ImageString($image, $i, 90, $k, "PHP images", $green); > } > > imagepng($image); // render image > imagedestroy($image); // free memory > > ?> > > > -----Original Message----- > From: woodbri@swoodbridge.com [mailto:woodbri@swoodbridge.com] > Sent: Tuesday, March 04, 2003 1:26 PM > To: Arthur, John; mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] RH8 and GD > > > John, > > Can you post a simple script that does this so I can try it on my > config. > > Thanks, > -Steve W. > > On 4 Mar 2003 at 9:31, Arthur, John wrote: > > > This is not only related to Mapscript, but anything related to gd > > and php. I have read and followed the > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37 > > to a "T". Everything compiles fine and normal php scripts run > > great. But, every time I run a php script that outputs an image > > using the gd library (jpgraph, mapscript, or gd examples) Apache > > returns this error: > > > > ------------------------------ > > > > Server error! > > > > The server encountered an internal error and was unable to complete > > your request. > > > > Error message: > > Premature end of script headers: php > > > > If you think this is a server error, please contact the webmaster > > > > Error 500 > > > > localhost > > Tue 04 Mar 2003 12:20:18 PM EST > > Apache/2.0.40 (Red Hat Linux) > > > > ------------------------------ > > > > There is nothing in the logs except "Premature end of script > > headers: php". I have tried this with PHP 4.3.1 - GD 2.0.11 and PHP > > 4.2.3 - GD 2.0.7, with the same results. Does anybody have a clue > > what the issue might be? Is it related to Apache 2.0? BTW, the > > mapserv cgi using the Itasca demo works just great. > > > > Thanks, > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 839-0021 > > Email: john.arthur@t-mobile.com > > T-Mobile USA > > Get more from life > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From gerry.creager@tamu.edu Wed Mar 5 13:47:40 2003 From: gerry.creager@tamu.edu (Gerry Creager N5JXS) Date: Wed, 05 Mar 2003 07:47:40 -0600 Subject: [Mapserver-users] MS 3.7 and RH 8 woes Message-ID: <3E65FFFC.3070401@tamu.edu> Sorry for the newbie questions: I should have kept up with the technology myself instead of letting a graduating grad student get ahead of me! I've got the nightly build from Sunday evening compiled, sans errors, and installed per Steve Woodbridge's Wiki entry. That part seemed to go great. Excellent step-by-step directions, no problems. I took no shortcuts there to get anyting going. However, perl mapscript is DOA. I'd tried a CVS load that didn't even come close to allowing me to compile perl-mapsecript, thus the nightly download, which at least allowed compilation. So that's working. Now, however, when I attempt to run a perl script that calls perl-mapscript, I get the following: ------------------ [root@vne-dhcp-047 mesonet]# ./makeshapefile.pl Name "mapscript::MS_SHAPEFILE_POLYGON" used only once: possible typo at ./makeshapefile.pl line 22. Name "mapscript::MS_SHAPE_LINE" used only once: possible typo at ./makeshapefile.pl line 175. Can't locate object method "new" via package "shapefileObj" (perhaps you forgot to load "shapefileObj"?) at ./makeshapefile.pl line 22. [root@vne-dhcp-047 mesonet]# ------------------ makeshapefile.pl worked on 3.6.3 on a RH7.3 install with perl v5.8.0. I've gotten XBase and DBD loaded, and mapscript installed in the appropriate place. If it helps, here's the output of mapserv -v: [root@vne-dhcp-047 mesonet]# /var/www/cgi-bin/mapserv -v MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [root@vne-dhcp-047 mesonet]# Any advice greatly appreciated! Gerry -- Gerry Creager -- gerry.creager@tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From eric@gomoos.org Wed Mar 5 08:59:12 2003 From: eric@gomoos.org (Eric Bridger) Date: 05 Mar 2003 08:59:12 +0000 Subject: [Mapserver-users] Sending image to stdout under Apache Message-ID: <1046854752.10221.8.camel@ubet.gomoos.org> The list archives show that this came up last Dec. (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00265.html) and while a work around was suggested there was no solution to the problem given, so I was wondering if anyone else had run into this problem. I'm having a problem using Perl mapscript $img->saveImage(undef, ...), to send an image, PNG and/or JPEG, to the standard output under Apache. Running in /cgi-bin I have the following script: my $map = new mapscript::mapObj($ms_dir . "/test.map"); my $ref_img = $map->drawReferenceMap(); # This works fine: #$ref_img->saveImage("junk.png", $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0); print "HTTP/1.0 200 OK\n"; print "Content-type: image/png\r\n\r\n"; binmode STDOUT; # this produces no output on Apache's STDOUT $ref_img->saveImage("", $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0); $ref_img->free(); exit; >From the command line this script works as expected. But when run under Apache/mod_perl it's as if the C msSaveImage() stdout stream is pointing somewhere other than the Apache stdout (i.e. the client browser). The work around of course is to save a disk file and then print it, but the whole point of this is to avoid the temp. disk files. I've noticed a significant increase in performance when using mapserv as an image engine rather then using temp disk files. Thanks. Eric Setup: Apache/1.3.26 (Unix) Mapserv 3.6.4 mod_perl 1.22 From warmerdam@pobox.com Wed Mar 5 14:06:39 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Wed, 05 Mar 2003 09:06:39 -0500 Subject: [Mapserver-users] gdaladdo In-Reply-To: <000201c2e302$df9a8240$070010ac@manolo> References: <000201c2e302$df9a8240$070010ac@manolo> Message-ID: <3E66046F.9020503@pobox.com> Manuel Marichal Pérez wrote: > Hi all. > > I've got an application which deal with large TIFF's raster images. I > considered to use GDAL to improve the > performance (gdaladdo & gdaltndex). I succesfully compiled GDAL in my > machine. Also I recompiled > mapserver with "--without-tiff" and "--with-gdal" options. > > Then I used gdaladdo with one of my tiff images in order to make a TIFF > image with many levels. Right. > > Now, what must I do with my "map" file to get the correct image be > displayed as the user changes the scale?. Manuel, If you have a GeoTIFF file with many overview levels (as generated with gdaladdo), you don't need to do anything special to make MapServer use the overviews. It will do so automatically (down in GDAL) when requests are for overviews for which an overview has sufficient resolution. As noted by Vincent, tiling your dataset may also be helpful for very large datasets. Note that using overviews within a GeoTIFF file (or other GDAL supported format) means you don't have to use the normal MapServer technique of having several different resolution LAYER objects each with MINSCALE and MAXSCALE set to select on depending on the resolution. Best regards -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From lfilak@medinaco.org Wed Mar 5 14:06:55 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Wed, 05 Mar 2003 09:06:55 -0500 Subject: [Mapserver-users] MS 3.7 and RH 8 woes Message-ID: <200303051406.h25E6mN05936@yogi.medinaco.net> If you currently have something like: my $shape = new shapeObj(-1); try replacing it with: my $shape = new mapscript::shapeObj(-1); HTH Lowell F. The following message was sent by Gerry Creager N5JXS on Wed, 05 Mar 2003 07:47:40 -0600. > Sorry for the newbie questions: I should have kept up with the > technology myself instead of letting a graduating grad student get ahead > of me! > > I've got the nightly build from Sunday evening compiled, sans errors, > and installed per Steve Woodbridge's Wiki entry. That part seemed to go > great. Excellent step-by-step directions, no problems. I took no > shortcuts there to get anyting going. > > However, perl mapscript is DOA. I'd tried a CVS load that didn't even > come close to allowing me to compile perl-mapsecript, thus the nightly > download, which at least allowed compilation. So that's working. > > Now, however, when I attempt to run a perl script that calls > perl-mapscript, I get the following: > ------------------ > [root@vne-dhcp-047 mesonet]# ./makeshapefile.pl > Name "mapscript::MS_SHAPEFILE_POLYGON" used only once: possible typo at > ./makeshapefile.pl line 22. > Name "mapscript::MS_SHAPE_LINE" used only once: possible typo at > ./makeshapefile.pl line 175. > Can't locate object method "new" via package "shapefileObj" (perhaps you > forgot to load "shapefileObj"?) at ./makeshapefile.pl line 22. > [root@vne-dhcp-047 mesonet]# > ------------------ > > makeshapefile.pl worked on 3.6.3 on a RH7.3 install with perl v5.8.0. > I've gotten XBase and DBD loaded, and mapscript installed in the > appropriate place. > > If it helps, here's the output of mapserv -v: > > [root@vne-dhcp-047 mesonet]# /var/www/cgi-bin/mapserv -v > MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > [root@vne-dhcp-047 mesonet]# > > Any advice greatly appreciated! > Gerry > -- > Gerry Creager -- gerry.creager@tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From pagurekd@agr.gc.ca Wed Mar 5 14:36:26 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Wed, 05 Mar 2003 09:36:26 -0500 Subject: [Mapserver-users] defining a simple scalebar object Message-ID: Send us your entire mapfile so we can have a look. Debbie >>> Terrence Lalla 03/04/03 08:57PM >>> Thanks Debbie for the help. However i am not having any luck with the scalebar object working. Is there something else i could do or is something missing? Thanks in advance. Terrence. Debbie Pagurek wrote:Here is the scalebar section from my mapfile and attached is an image showing what it looks like. Debbie SCALEBAR STATUS ON IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE tiny END #LABEL STYLE 1 SIZE 200 3 COLOR 255 0 0 UNITS kilometers INTERVALS 3 END #SCALEBAR >>> Terrence Lalla 03/03/03 01:42PM >>> Hi everyone, I am trying to design a simple scalebar object. The output is in gif format(dont know if this would affect anything).Anyways here is the code in the map file: SCALEBAR STATUS ON UNITS METERS SIZE 20 20 BACKGROUNDCOLOR 120 120 120 COLOR 120 120 120 END Thanks in Advance Terrence. --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more > ATTACHMENT part 2 application/octet-stream name=scalebar.gif --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more From palle@mail-online.dk Wed Mar 5 15:02:21 2003 From: palle@mail-online.dk (Palle Due Larsen) Date: Wed, 05 Mar 2003 16:02:21 +0100 Subject: [Mapserver-users] INDEXNQUERY Message-ID: Hi all, What I really would like is the INDEXNQUERY mode. This would allow me to find and display multiple shapes by index. However, this does not exist. I guess I could achieve the same result with a filter, but I am afraid that performance wouldn't be up to standards. Does anyone have a suggestion regarding how to implement this? I am normally using PERL mapscript for advanced purposes, but I would prefer a normal CGI solution. Best regards Palle Due Larsen, Carl Bro GIS&IT PS: Someone on the list asked for a mapserver frame solution. Carl Bro GIS&IT has developed one at http://vestamt.carlbro.dk. Fĺ en gratis emailkonto her: www.mail-online.dk ----------------------------------------------- Deltag i en lille brugerundersřgelse pĺ nettet, og vind et gavekort pĺ 50.000 kroner..! www.directoffice.dk/konkurrence From lfilak@medinaco.org Wed Mar 5 15:27:50 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Wed, 05 Mar 2003 10:27:50 -0500 Subject: [Mapserver-users] Sending image to stdout under Apache Message-ID: <200303051527.h25FRhN08249@yogi.medinaco.net> Hmmm... I thought I replied back concerning that.? Just do a: print "Content-type: image/png\n\n"; system("cat junk.png"); and that will send the image to stdout/the browser. HTH Lowell F. The following message was sent by Eric Bridger on 05 Mar 2003 08:59:12 +0000. > > > The list archives show that this came up last Dec. > (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00265.html) and while a work around was suggested there was no solution to the problem given, so I was wondering if anyone else had run into this problem. > > I'm having a problem using Perl mapscript $img->saveImage(undef, ...), > to send an image, PNG and/or JPEG, to the standard output under Apache. > Running in /cgi-bin I have the following script: > > my $map = new mapscript::mapObj($ms_dir . "/test.map"); > > my $ref_img = $map->drawReferenceMap(); > > # This works fine: > #$ref_img->saveImage("junk.png", $mapscript::MS_PNG, > $map->{transparent}, $map->{interlace}, 0); > > print "HTTP/1.0 200 OK\n"; > print "Content-type: image/png\r\n\r\n"; > binmode STDOUT; > > # this produces no output on Apache's STDOUT > $ref_img->saveImage("", $mapscript::MS_PNG, $map->{transparent}, > $map->{interlace}, 0); > > $ref_img->free(); > exit; > > > >From the command line this script works as expected. But when run under > Apache/mod_perl it's as if the C msSaveImage() stdout stream is > pointing somewhere other than the Apache stdout (i.e. the client > browser). > > The work around of course is to save a disk file and then print it, but > the whole point of this is to avoid the temp. disk files. I've noticed > a significant increase in performance when using mapserv as an image > engine rather then using temp disk files. > > Thanks. > Eric > > > Setup: > > Apache/1.3.26 (Unix) > Mapserv 3.6.4 > mod_perl 1.22 > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Wed Mar 5 15:32:19 2003 From: ed@topozone.com (Ed McNierney) Date: Wed, 5 Mar 2003 10:32:19 -0500 Subject: [Mapserver-users] Labels with strange AUTO angles - some answers Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3EB0@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C2E32C.689EB128 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable "It isn't what we don't know that gives us trouble, it's what we know = that ain't so." -- Will Rogers After a long night of exploring lots of code I've never seen before, I'd = like to take issue with the following statement in the GD 2.0.11 = documentation, referring to gdImageStringFT angles: "The direction of rotation is counter-clockwise, with 0 radians (0 = degrees) at 3 o'clock and PI/2 radians (90 degrees) at 12 o'clock." Every word of that sentence is accurate - except for one. MY copy of GD = 2.0.11 (at least) rotates text CLOCKWISE relative to 3 o'clock. Below = is a simple test program and attached is the image it creates. The text = obviously rotates clockwise. So now I have a few questions: 1. When a label angle is specified in the map file (e.g. ANGLE 30), what = is MapServer supposed to do? The docs do not mention how the angle is = supposed to be interpreted. My build rotates text clockwise relative to = 3 o'clock as 0. Is this expected? 2. This is not an ANGLE AUTO problem. That is, ANGLE AUTO is = calculating a reasonable angle and produces the same output as if the = label angle were explicitly specified as the calculated value. 3. Why am I the only one seeing this? That last one's important - if ANGLE AUTO is (generally) as badly broken = as mine is, someone should be shouting about it. So I'm still = suspicious that there's something funny with my build. N.B. - The Windows makefile still makes no reference to GD 2, nor any = reference to the correct use of GD_USE_TTF and GD_USE_FT. It appears = that when using GD 2, GD_USE_FT should be defined and NOT GD_USE_TTF - = correct? - Ed #include "gd.h" #include #define MS_DEG_TO_RAD .0174532925199432958 int main () { gdImagePtr im; int black; int white; int brect[8]; int angle; char *err; char s[64]; double sz =3D 12.; char *f =3D "D:\\times.ttf"; FILE *pngFile; im =3D gdImageCreate(500, 500); white =3D gdImageColorResolve(im, 255, 255, 255); black =3D gdImageColorResolve(im, 0, 0, 0); for (angle =3D 0; angle < 360; angle +=3D 30) { sprintf (s, "Angle is %d degrees", angle); err =3D gdImageStringFT(im, &brect[0], black, f, sz, angle * = MS_DEG_TO_RAD, 150, 150, s); if (err) {fprintf(stderr,err); return 1;} } pngFile =3D fopen("testgdfont.png", "wb"); gdImagePng(im, pngFile); fclose (pngFile); gdImageDestroy(im); return 0; } ------_=_NextPart_001_01C2E32C.689EB128 Content-Type: image/png; name="testgdfont.png" Content-Transfer-Encoding: base64 Content-Description: testgdfont.png Content-Disposition: attachment; filename="testgdfont.png" iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAMAAAD8CC+4AAAAYFBMVEX///8AAAA/Pz+fn5+/v79f X18fH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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHgd/g/1vYQnPw26IwAAAABJ RU5ErkJggg== ------_=_NextPart_001_01C2E32C.689EB128-- From mschulz@webgis.de Wed Mar 5 15:50:52 2003 From: mschulz@webgis.de (Michael Schulz) Date: Wed, 05 Mar 2003 16:50:52 +0100 Subject: [Mapserver-users] mapscript setFilter Message-ID: <3E661CDC.98EF6BBA@webgis.de> Hi, i have a problem with filterstrings that are passed to the layerobj's setFilter method. The setup: mapserver37, python/mapscript and Oracle SDO data (only points). The problem: When i use setFilter() with a rather simple filterstring like "db_ora_attribute=1" then the filter is correctly applied (meaning i can draw the map with the oracle layer only displaying the filtered geometries). When i want to pass a more complex filterstring like "db_ora_attribute like '%a%'" then i can set the filterstring (layerBj.setFilter(filterstring) returns 0) but when i want to draw the map, no imageObj is created. I think i have tried nearly every possible combination of escape sequences or differently nested string delimiters i could think of. If i use the same complex filterstring in the mapfile as an explicit layer FILTER then everything works fine. The problem seems related to the handling of strings that contain string delimiters when using python mapscript. Or has anybody experienced a similar problem e.g. with php/mapscript or perl/mapscript? Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft für Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz@webgis.de www.webgis.de From eric@gomoos.org Wed Mar 5 10:57:23 2003 From: eric@gomoos.org (Eric Bridger) Date: 05 Mar 2003 10:57:23 +0000 Subject: [Mapserver-users] Sending image to stdout under Apache In-Reply-To: <200303051527.h25FRhN08249@yogi.medinaco.net> References: <200303051527.h25FRhN08249@yogi.medinaco.net> Message-ID: <1046861844.10187.22.camel@ubet.gomoos.org> Thanks Lowell, Yes, that was the work-around I mentioned. But avoiding the write to disk is what I am after. I have found that using /cgi-bin/mapserv as an image engine results in significant performance improvements for our mapscript application. But constructing the proper query strings to manipulate the map is cumbersome and seems to have certain limitations. I'd prefer to manipulate the map using mapscript and then print it to the stdout. But somehow, using $img->saveImage(undef, ...) which spends some time doing something, never sends the image to the stdout when run as a CGI. From the command line, it works. We don't have this problem with a graphing application in the same environment which uses GD.pm. On Wed, 2003-03-05 at 15:27, Lowell Filak wrote: > Hmmm... > I thought I replied back concerning that.? > Just do a: > print "Content-type: image/png\n\n"; > system("cat junk.png"); > and that will send the image to stdout/the browser. > HTH > Lowell F. > > The following message was sent by Eric Bridger on 05 Mar 2003 08:59:12 +0000. > > > > > > > The list archives show that this came up last Dec. > > (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00265.html) and while a work around was suggested there was no solution to the problem given, so I was wondering if anyone else had run into this problem. > > > > I'm having a problem using Perl mapscript $img->saveImage(undef, ...), > > to send an image, PNG and/or JPEG, to the standard output under Apache. > > Running in /cgi-bin I have the following script: > > > > my $map = new mapscript::mapObj($ms_dir . "/test.map"); > > > > my $ref_img = $map->drawReferenceMap(); > > > > # This works fine: > > #$ref_img->saveImage("junk.png", $mapscript::MS_PNG, > > $map->{transparent}, $map->{interlace}, 0); > > > > print "HTTP/1.0 200 OK\n"; > > print "Content-type: image/png\r\n\r\n"; > > binmode STDOUT; > > > > # this produces no output on Apache's STDOUT > > $ref_img->saveImage("", $mapscript::MS_PNG, $map->{transparent}, > > $map->{interlace}, 0); > > > > $ref_img->free(); > > exit; > > > > > > >From the command line this script works as expected. But when run under > > Apache/mod_perl it's as if the C msSaveImage() stdout stream is > > pointing somewhere other than the Apache stdout (i.e. the client > > browser). > > > > The work around of course is to save a disk file and then print it, but > > the whole point of this is to avoid the temp. disk files. I've noticed > > a significant increase in performance when using mapserv as an image > > engine rather then using temp disk files. > > > > Thanks. > > Eric > > > > > > Setup: > > > > Apache/1.3.26 (Unix) > > Mapserv 3.6.4 > > mod_perl 1.22 > > > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From steve.lime@dnr.state.mn.us Wed Mar 5 15:52:43 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Wed, 05 Mar 2003 09:52:43 -0600 Subject: [Mapserver-users] INDEXNQUERY Message-ID: The best way to implement would be by allowing you to query by index. That is treat the index as a normal column in MapServer expressions. That way you'd just use the itemquery and itemnquery modes. That's a lot easier to add then a totally new query mode. Please file this as a feature enhancement and I'll add it to 3.7. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Palle Due Larsen" 03/05/03 09:02AM >>> Hi all, What I really would like is the INDEXNQUERY mode. This would allow me to find and display multiple shapes by index. However, this does not exist. I guess I could achieve the same result with a filter, but I am afraid that performance wouldn't be up to standards. Does anyone have a suggestion regarding how to implement this? I am normally using PERL mapscript for advanced purposes, but I would prefer a normal CGI solution. Best regards Palle Due Larsen, Carl Bro GIS&IT PS: Someone on the list asked for a mapserver frame solution. Carl Bro GIS&IT has developed one at http://vestamt.carlbro.dk. Fs en gratis emailkonto her: www.mail-online.dk ----------------------------------------------- Deltag i en lille brugerunders°gelse ps nettet, og vind et gavekort ps 50.000 kroner..! www.directoffice.dk/konkurrence _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From gerry.creager@tamu.edu Wed Mar 5 16:20:58 2003 From: gerry.creager@tamu.edu (Gerry Creager) Date: Wed, 05 Mar 2003 10:20:58 -0600 Subject: [Mapserver-users] MS 3.7 and RH 8 woes In-Reply-To: <200303051406.h25E6mN05936@yogi.medinaco.net> References: <200303051406.h25E6mN05936@yogi.medinaco.net> Message-ID: <3E6623EA.60705@tamu.edu> Lowell, Thanks. It all helps, even if it's not fixing the problem. At least I'm starting to get a better handle on this stuff! This is is what I had: my $shape = new shapeObj($mapscript::MS_SHAPE_LINE); Replaced with: my $shape = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); And it yielded the same error. I'm sure it's someting fundamental. I'm just _lost_ at this point. TIA, gerry Lowell Filak wrote: > If you currently have something like: > my $shape = new shapeObj(-1); > try replacing it with: > my $shape = new mapscript::shapeObj(-1); > HTH > Lowell F. > > The following message was sent by Gerry Creager N5JXS on Wed, 05 Mar 2003 07:47:40 -0600. > > >>Sorry for the newbie questions: I should have kept up with the >>technology myself instead of letting a graduating grad student get ahead >>of me! >> >>I've got the nightly build from Sunday evening compiled, sans errors, >>and installed per Steve Woodbridge's Wiki entry. That part seemed to go >>great. Excellent step-by-step directions, no problems. I took no >>shortcuts there to get anyting going. >> >>However, perl mapscript is DOA. I'd tried a CVS load that didn't even >>come close to allowing me to compile perl-mapsecript, thus the nightly >>download, which at least allowed compilation. So that's working. >> >>Now, however, when I attempt to run a perl script that calls >>perl-mapscript, I get the following: >>------------------ >>[root@vne-dhcp-047 mesonet]# ./makeshapefile.pl >>Name "mapscript::MS_SHAPEFILE_POLYGON" used only once: possible typo at >>./makeshapefile.pl line 22. >>Name "mapscript::MS_SHAPE_LINE" used only once: possible typo at >>./makeshapefile.pl line 175. >>Can't locate object method "new" via package "shapefileObj" (perhaps you >>forgot to load "shapefileObj"?) at ./makeshapefile.pl line 22. >>[root@vne-dhcp-047 mesonet]# >>------------------ >> >>makeshapefile.pl worked on 3.6.3 on a RH7.3 install with perl v5.8.0. >>I've gotten XBase and DBD loaded, and mapscript installed in the >>appropriate place. >> >>If it helps, here's the output of mapserv -v: >> >>[root@vne-dhcp-047 mesonet]# /var/www/cgi-bin/mapserv -v >>MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER >>SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=OGR >>INPUT=GDAL INPUT=SHAPEFILE >>[root@vne-dhcp-047 mesonet]# >> >>Any advice greatly appreciated! >>Gerry >>-- >>Gerry Creager -- gerry.creager@tamu.edu >>Texas Mesonet -- AATLT, Texas A&M University >>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >>Page: 979.228.0173 >>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- Gerry Creager -- gerry.creager@tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From lfilak@medinaco.org Wed Mar 5 16:28:38 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Wed, 05 Mar 2003 11:28:38 -0500 Subject: [Mapserver-users] MS 3.7 and RH 8 woes Message-ID: <200303051628.h25GSVN09716@yogi.medinaco.net> Hmmm... Can you send the whole script? Lowell F. The following message was sent by Gerry Creager on Wed, 05 Mar 2003 10:20:58 -0600. > Lowell, > > Thanks. It all helps, even if it's not fixing the problem. At least > I'm starting to get a better handle on this stuff! > > This is is what I had: > my $shape = new shapeObj($mapscript::MS_SHAPE_LINE); > > Replaced with: > my $shape = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); > > And it yielded the same error. I'm sure it's someting fundamental. I'm > just _lost_ at this point. > > TIA, gerry > > Lowell Filak wrote: > > If you currently have something like: > > my $shape = new shapeObj(-1); > > try replacing it with: > > my $shape = new mapscript::shapeObj(-1); > > HTH > > Lowell F. > > > > The following message was sent by Gerry Creager N5JXS on Wed, 05 Mar 2003 07:47:40 -0600. > > > > > >>Sorry for the newbie questions: I should have kept up with the > >>technology myself instead of letting a graduating grad student get ahead > >>of me! > >> > >>I've got the nightly build from Sunday evening compiled, sans errors, > >>and installed per Steve Woodbridge's Wiki entry. That part seemed to go > >>great. Excellent step-by-step directions, no problems. I took no > >>shortcuts there to get anyting going. > >> > >>However, perl mapscript is DOA. I'd tried a CVS load that didn't even > >>come close to allowing me to compile perl-mapsecript, thus the nightly > >>download, which at least allowed compilation. So that's working. > >> > >>Now, however, when I attempt to run a perl script that calls > >>perl-mapscript, I get the following: > >>------------------ > >>[root@vne-dhcp-047 mesonet]# ./makeshapefile.pl > >>Name "mapscript::MS_SHAPEFILE_POLYGON" used only once: possible typo at > >>./makeshapefile.pl line 22. > >>Name "mapscript::MS_SHAPE_LINE" used only once: possible typo at > >>./makeshapefile.pl line 175. > >>Can't locate object method "new" via package "shapefileObj" (perhaps you > >>forgot to load "shapefileObj"?) at ./makeshapefile.pl line 22. > >>[root@vne-dhcp-047 mesonet]# > >>------------------ > >> > >>makeshapefile.pl worked on 3.6.3 on a RH7.3 install with perl v5.8.0. > >>I've gotten XBase and DBD loaded, and mapscript installed in the > >>appropriate place. > >> > >>If it helps, here's the output of mapserv -v: > >> > >>[root@vne-dhcp-047 mesonet]# /var/www/cgi-bin/mapserv -v > >>MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > >>OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER > >>SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=OGR > >>INPUT=GDAL INPUT=SHAPEFILE > >>[root@vne-dhcp-047 mesonet]# > >> > >>Any advice greatly appreciated! > >>Gerry > >>-- > >>Gerry Creager -- gerry.creager@tamu.edu > >>Texas Mesonet -- AATLT, Texas A&M University > >>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > >>Page: 979.228.0173 > >>Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > >> > >>_______________________________________________ > >>Mapserver-users mailing list > >>Mapserver-users@lists.gis.umn.edu > >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > -- > Gerry Creager -- gerry.creager@tamu.edu > Network Engineering -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 > FAX: 979.847.8578 Pager: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From rjames57@yahoo.com Wed Mar 5 16:39:02 2003 From: rjames57@yahoo.com (randy james) Date: Wed, 5 Mar 2003 08:39:02 -0800 (PST) Subject: [Mapserver-users] itemquery 3.7 Message-ID: <20030305163902.76206.qmail@web12504.mail.yahoo.com> Hi I just started getting results from itemquery with 3.7, but I am not getting the results i expect. When I do get results it is always the first item in the database. I am guessing that I do not understand what the query should look like. I was reading the archives on the subject and found referance to regex. So when using the CGI what version of regex is used? Does anyone have a ready made guide for the regular expressions(regex) used by the mapserver cgi? Cheers Randy __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From doug@moximedia.com Wed Mar 5 16:38:32 2003 From: doug@moximedia.com (Doug Cates) Date: Wed, 5 Mar 2003 08:38:32 -0800 Subject: [Mapserver-users] GDAL / GIF misunderstanding? In-Reply-To: <3E64F683.22938D81@dmsolutions.ca> Message-ID: <000101c2e335$a955cea0$6401a8c0@vn.shawcable.net> Frank Warmerdam wrote: > > I could provide a patch for mapraster.c if you are interested. Should this > be rolled into a future 3.6.x? Note, I did already ensure that GDAL would > be used if TIFF, PNG or JPEG were not configured, but for some reason the > same fix was not applied for GIF. > I've modified my local version of mapraster.c (v3.6.4) as follows, and it has solved the problem I encountered when using remote GIF format WMS services as client layers in my map without GIF/GD support. It works well now. Thanks to Daniel and Frank for their help on this. line 1775-1777: if (memcmp(dd,"GIF8",4)==0) { if(layer->transform && msProjectionsDiffer(&(map->projection), &(layer->projection))) { changed to: #if !defined(USE_GDAL) || defined(USE_GD_GIF) if (memcmp(dd,"GIF8",4)==0) { if ((layer->transform && msProjectionsDiffer(&(map->projection), &(layer->projection))) || layer->connectiontype == MS_WMS ) { line 1830: } changed to: } #endif /* !defined(USE_GDAL) || defined(USE_GD_GIF) */ Doug From ed@topozone.com Wed Mar 5 16:47:30 2003 From: ed@topozone.com (Ed McNierney) Date: Wed, 5 Mar 2003 11:47:30 -0500 Subject: [Mapserver-users] Labels with strange AUTO angles - fixed, with explanation Message-ID: <13858AA1A74F30419F319ACB66A9D12201961C@mercator.topozone.com> OK, it's fixed now. I was wrong to blame GD. It was a FreeType bug. Do NOT use FreeType 2.1.2. Use FreeType 2.1.3, in which this bug is documented and fixed. If you think you have FreeType 2.1.2 and don't see this problem, keep reading. I took the test program I sent around and had Steve Woodbridge build it on his Linux system. The text went the OTHER way and behaved as documented. So we had a little chat: E: "Are you SURE you're using GD 2.0.11?" S: "Yup." E: "Are you SURE you're using FreeType 2.1.2?" S: "Yup." E: "Hmmmm...." A little later, Steve reports that he's running (on Red Hat) RH's freetype-2.1.2-7 distribution. Not all FreeType 2.1.2s are alike. Red Hat (at least) seems to roll updates and fixes into the RPM, keeping the same base version. So Steve's FreeType 2.1.2 was not the same as MY FreeType 2.1.2 and his had the bug fixed and mine did not. It appears that other folks are using "newer" FreeType 2.1.2 releases than mine, explaining why I'm out in this parallel universe seeing bugs no one else sees. FreeType 2.1.3 is a stable, full release, and is the current stable release of FreeType. Anyone using FT 2 should be using it. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 From dana@nextbus.com Wed Mar 5 16:54:32 2003 From: dana@nextbus.com (Dana Quinn) Date: Wed, 05 Mar 2003 08:54:32 -0800 Subject: [Mapserver-users] Sending image to stdout under Apache References: <1046854752.10221.8.camel@ubet.gomoos.org> Message-ID: <3E662BC8.5030608@nextbus.com> (sorry if this hits the list twice) Hi- I'm sorry, I should have written about what solved the problem I had back then. (in the thread that Eric referenced). My problem looked like it was happening because the image data was coming before the header data. So, I was concerned that some sort of output buffering was at fault. Acting on a tip I read somewhere, I added this at the top of my script: use FileHandle; STDOUT->autoflush; I don't know if this sort of thing is usually necessary when using CGI.pm, but things work great now. and now my sequence for outputting to the browser goes like this: print "Content-Type: image/png\r\n\r\n"; $img->saveImage(undef, $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0); and it works fine. Now that I think about it, it would probably be better to use the CGI method: print $query->header('image/png'); instead of the 'print "Content-Type... stuff I have there now. dana Eric Bridger wrote: > > The list archives show that this came up last Dec. > (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00265.html) and while a work around was suggested there was no solution to the problem given, so I was wondering if anyone else had run into this problem. > > I'm having a problem using Perl mapscript $img->saveImage(undef, ...), > to send an image, PNG and/or JPEG, to the standard output under Apache. > Running in /cgi-bin I have the following script: > > my $map = new mapscript::mapObj($ms_dir . "/test.map"); > > my $ref_img = $map->drawReferenceMap(); > > # This works fine: > #$ref_img->saveImage("junk.png", $mapscript::MS_PNG, > $map->{transparent}, $map->{interlace}, 0); > > print "HTTP/1.0 200 OK\n"; > print "Content-type: image/png\r\n\r\n"; > binmode STDOUT; > > # this produces no output on Apache's STDOUT > $ref_img->saveImage("", $mapscript::MS_PNG, $map->{transparent}, > $map->{interlace}, 0); > > $ref_img->free(); > exit; > > >>From the command line this script works as expected. But when run under > Apache/mod_perl it's as if the C msSaveImage() stdout stream is > pointing somewhere other than the Apache stdout (i.e. the client > browser). > > The work around of course is to save a disk file and then print it, but > the whole point of this is to avoid the temp. disk files. I've noticed > a significant increase in performance when using mapserv as an image > engine rather then using temp disk files. > > Thanks. > Eric > > > Setup: > > Apache/1.3.26 (Unix) > Mapserv 3.6.4 > mod_perl 1.22 > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Wed Mar 5 16:59:46 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Wed, 05 Mar 2003 11:59:46 -0500 Subject: [Mapserver-users] Sending image to stdout under Apache Message-ID: <200303051659.h25GxdN10387@yogi.medinaco.net> Doh! That's what I get for being in a hurry. >From what I've read: 1) You don't need binmode on *n*x. 2) You need to print to OUT as opposed to STDOUT or the content is shipped before the content-type. print OUT $ref_img->saveImage(undef, $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0); HTH Lowell F. The following message was sent by Eric Bridger on 05 Mar 2003 10:57:23 +0000. > Thanks Lowell, > > Yes, that was the work-around I mentioned. But avoiding the write to > disk is what I am after. I have found that using /cgi-bin/mapserv as an > image engine results in significant performance improvements for our > mapscript application. But constructing the proper query strings to > manipulate the map is cumbersome and seems to have certain limitations. > I'd prefer to manipulate the map using mapscript and then print it to > the stdout. But somehow, using $img->saveImage(undef, ...) which spends > some time doing something, never sends the image to the stdout when run > as a CGI. From the command line, it works. > > We don't have this problem with a graphing application in the same > environment which uses GD.pm. > > > On Wed, 2003-03-05 at 15:27, Lowell Filak wrote: > > Hmmm... > > I thought I replied back concerning that.? > > Just do a: > > print "Content-type: image/png\n\n"; > > system("cat junk.png"); > > and that will send the image to stdout/the browser. > > HTH > > Lowell F. > > > > The following message was sent by Eric Bridger on 05 Mar 2003 08:59:12 +0000. > > > > > > > > > > > The list archives show that this came up last Dec. > > > (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00265.html) and while a work around was suggested there was no solution to the problem given, so I was wondering if anyone else had run into this problem. > > > > > > I'm having a problem using Perl mapscript $img->saveImage(undef, ...), > > > to send an image, PNG and/or JPEG, to the standard output under Apache. > > > Running in /cgi-bin I have the following script: > > > > > > my $map = new mapscript::mapObj($ms_dir . "/test.map"); > > > > > > my $ref_img = $map->drawReferenceMap(); > > > > > > # This works fine: > > > #$ref_img->saveImage("junk.png", $mapscript::MS_PNG, > > > $map->{transparent}, $map->{interlace}, 0); > > > > > > print "HTTP/1.0 200 OK\n"; > > > print "Content-type: image/png\r\n\r\n"; > > > binmode STDOUT; > > > > > > # this produces no output on Apache's STDOUT > > > $ref_img->saveImage("", $mapscript::MS_PNG, $map->{transparent}, > > > $map->{interlace}, 0); > > > > > > $ref_img->free(); > > > exit; > > > > > > > > > >From the command line this script works as expected. But when run under > > > Apache/mod_perl it's as if the C msSaveImage() stdout stream is > > > pointing somewhere other than the Apache stdout (i.e. the client > > > browser). > > > > > > The work around of course is to save a disk file and then print it, but > > > the whole point of this is to avoid the temp. disk files. I've noticed > > > a significant increase in performance when using mapserv as an image > > > engine rather then using temp disk files. > > > > > > Thanks. > > > Eric > > > > > > > > > Setup: > > > > > > Apache/1.3.26 (Unix) > > > Mapserv 3.6.4 > > > mod_perl 1.22 > > > > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From kames@keyspanenergy.com Wed Mar 5 17:12:31 2003 From: kames@keyspanenergy.com (Kieran J. Ames) Date: Wed, 05 Mar 2003 12:12:31 -0500 Subject: [Mapserver-users] Help Request Message-ID: <3E662FFF.E487862@keyspanenergy.com> Would anyone be willing to contact me off-list to help resolve data alignment issues? Specifically, rendering decimal degree street data with UTM polygons. Thank you. kames@keyspanenergy.com From warmerdam@pobox.com Wed Mar 5 17:26:05 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Wed, 05 Mar 2003 12:26:05 -0500 Subject: [Mapserver-users] MSAutoTest Message-ID: <3E66332D.2050406@pobox.com> Folks, I have been working on an automated testing mechanism for MapServer for a few months on and off, and populating it with tests of functionality I am interested in ... notably GDAL related stuff and OUTPUTFORMAT support testing. However, the mechanism is intended to be generally useful, and something that a savvy end user could run and extend. Things seem to be working reasonably well in my protected little environment, so I thought I should document how it works a bit, and push it out to other folks interested in running and improving regression tests. The topic is now setup in the Wiki at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MSAutoTest I would encourage sophisticated MapServer 3.7 users and any developers to check it out of CVS and try running it. I am open to feedback to streamline it's operation, and anyone with commit access is encourage to add tests. Those without commit access can email new test maps to me to add. PS. While not intended as general examples, the autotest suite can be a useful source of working examples of esoteric options, such as new processing directives, outputformat stuff, and the brand new OGR JOIN support. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime@dnr.state.mn.us Wed Mar 5 17:48:57 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Wed, 05 Mar 2003 11:48:57 -0600 Subject: [Mapserver-users] itemquery 3.7 Message-ID: Regex is totally system dependent so you need to check the man pages for the library on your system. It's definitely not perl regex though... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> randy james 03/05/03 10:39AM >>> Hi I just started getting results from itemquery with 3.7, but I am not getting the results i expect. When I do get results it is always the first item in the database. I am guessing that I do not understand what the query should look like. I was reading the archives on the subject and found referance to regex. So when using the CGI what version of regex is used? Does anyone have a ready made guide for the regular expressions(regex) used by the mapserver cgi? Cheers Randy __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From steve.lime@dnr.state.mn.us Wed Mar 5 17:51:55 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Wed, 05 Mar 2003 11:51:55 -0600 Subject: [Mapserver-users] Labels with strange AUTO angles - fixed, with explanation Message-ID: Ok, so where are we at? MapServer and GD are cool. Nothing needs to be done. Eexcept ditching old versions of GD and Freetype from the MapServer. Doing so would alleviate some of these issues, expecially the way Linux comes stocked... Thanks for your work on this! Steve >>> "Ed McNierney" 03/05/03 10:47AM >>> OK, it's fixed now. I was wrong to blame GD. It was a FreeType bug. Do NOT use FreeType 2.1.2. Use FreeType 2.1.3, in which this bug is documented and fixed. If you think you have FreeType 2.1.2 and don't see this problem, keep reading. I took the test program I sent around and had Steve Woodbridge build it on his Linux system. The text went the OTHER way and behaved as documented. So we had a little chat: E: "Are you SURE you're using GD 2.0.11?" S: "Yup." E: "Are you SURE you're using FreeType 2.1.2?" S: "Yup." E: "Hmmmm...." A little later, Steve reports that he's running (on Red Hat) RH's freetype-2.1.2-7 distribution. Not all FreeType 2.1.2s are alike. Red Hat (at least) seems to roll updates and fixes into the RPM, keeping the same base version. So Steve's FreeType 2.1.2 was not the same as MY FreeType 2.1.2 and his had the bug fixed and mine did not. It appears that other folks are using "newer" FreeType 2.1.2 releases than mine, explaining why I'm out in this parallel universe seeing bugs no one else sees. FreeType 2.1.3 is a stable, full release, and is the current stable release of FreeType. Anyone using FT 2 should be using it. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Wed Mar 5 17:57:21 2003 From: ed@topozone.com (Ed McNierney) Date: Wed, 5 Mar 2003 12:57:21 -0500 Subject: [Mapserver-users] Labels with strange AUTO angles - fixed,with explanation Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3EBA@mercator.topozone.com> Steve - That's correct. If 3.7 could *require* GD 2.x and FT 2.x, then a lot of things could be simplified. - Ed -----Original Message----- From: Steve Lime [mailto:steve.lime@dnr.state.mn.us] Sent: Wednesday, March 05, 2003 12:52 PM To: mapserver-users@lists.gis.umn.edu; Ed McNierney Subject: RE: [Mapserver-users] Labels with strange AUTO angles - fixed,with explanation Ok, so where are we at? MapServer and GD are cool. Nothing needs to be done. Eexcept ditching old versions of GD and Freetype from the MapServer. Doing so would alleviate some of these issues, expecially the way Linux comes stocked... Thanks for your work on this! Steve >>> "Ed McNierney" 03/05/03 10:47AM >>> OK, it's fixed now. I was wrong to blame GD. It was a FreeType bug. Do NOT use FreeType 2.1.2. Use FreeType 2.1.3, in which this bug is documented and fixed. If you think you have FreeType 2.1.2 and don't see this problem, keep reading. I took the test program I sent around and had Steve Woodbridge build it on his Linux system. The text went the OTHER way and behaved as documented. So we had a little chat: E: "Are you SURE you're using GD 2.0.11?" S: "Yup." E: "Are you SURE you're using FreeType 2.1.2?" S: "Yup." E: "Hmmmm...." A little later, Steve reports that he's running (on Red Hat) RH's freetype-2.1.2-7 distribution. Not all FreeType 2.1.2s are alike. Red Hat (at least) seems to roll updates and fixes into the RPM, keeping the same base version. So Steve's FreeType 2.1.2 was not the same as MY FreeType 2.1.2 and his had the bug fixed and mine did not. It appears that other folks are using "newer" FreeType 2.1.2 releases than mine, explaining why I'm out in this parallel universe seeing bugs no one else sees. FreeType 2.1.3 is a stable, full release, and is the current stable release of FreeType. Anyone using FT 2 should be using it. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From lfilak@medinaco.org Wed Mar 5 19:14:22 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Wed, 05 Mar 2003 14:14:22 -0500 Subject: [Mapserver-users] Sending image to stdout under Apache Message-ID: <200303051914.h25JEFN12789@yogi.medinaco.net> >From what I can tell from the mod_perl comments is that using OUT as opposed to STDOUT is the way to fix it in mod_perl. Lowell F. The following message was sent by Jason Thaxter on Wed, 5 Mar 2003 12:44:23 -0500. > I checked our script when NOT run under mod_perl, and it works fine. That's a > better workaround for us than print/cat, since we have one script that does > all the UI work, and a short one that generates the image output. > > The problem I've identified, precisely, is that with the API you can write to > a filename or stdout. But writing to the "real" stdout doesn't work under > mod_perl, since perl STDOUT is no longer the same as C stdout. You can't > pass a file handle; the choice with the current API is a filename, or nothing > for stdout... > > What we really want is something like what can be done with the perl GD > interface, e.g: > print $img->png; > or even > $img->printImage(\*STDOUT,args..); > > Passing a filehandle as opposed to a string containing a filename isn't the > craziest thing... OTOH, there might be a quicker way to get this accomplished > with some select() trickery... Or we might have to resort to writing an > actual module, instead of writing Apache::Registry stuff... We'll post our > solution if we get anything better than what we have. > > JT > > > On Wed, Mar 05, 2003 at 10:57:23AM +0000, Eric Bridger wrote: > > Thanks Lowell, > > > > Yes, that was the work-around I mentioned. But avoiding the write to > > disk is what I am after. I have found that using /cgi-bin/mapserv as an > > image engine results in significant performance improvements for our > > mapscript application. But constructing the proper query strings to > > manipulate the map is cumbersome and seems to have certain limitations. > > I'd prefer to manipulate the map using mapscript and then print it to > > the stdout. But somehow, using $img->saveImage(undef, ...) which spends > > some time doing something, never sends the image to the stdout when run > > as a CGI. From the command line, it works. > > > > We don't have this problem with a graphing application in the same > > environment which uses GD.pm. > > > > > > On Wed, 2003-03-05 at 15:27, Lowell Filak wrote: > > > Hmmm... > > > I thought I replied back concerning that.? > > > Just do a: > > > print "Content-type: image/png\n\n"; > > > system("cat junk.png"); > > > and that will send the image to stdout/the browser. > > > HTH > > > Lowell F. > > > > > -- > ---------------------------------------------- > Jason Thaxter > GoMOOS, P.O. Box 4919, Portland, ME 04112-4919 > Office Location: 1 Canal Plaza, 7th Floor > Office: 207.773.0423 > Fax: 207.773.8672 > Email: thaxter@gomoos.org > ------------www.gomoos.org-------------------- From cblack@CalAcademy.Org Wed Mar 5 19:21:18 2003 From: cblack@CalAcademy.Org (Chris Black) Date: Wed, 05 Mar 2003 11:21:18 -0800 Subject: [Mapserver-users] documentation bug (was Re: projecting a point in PHP MapScript) References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> <1046767038.1465.12.camel@ubet.gomoos.org> <3E64F89A.8050406@calacademy.org> <3E6526D6.1EF85B21@dmsolutions.ca> Message-ID: <3E664E2E.2020309@calacademy.org> --------------080907020309020502020005 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Ok, I've stepped up to 3.7, which I downloaded as mapserver-3.7-win32-php4.3.0-gd2.zip from http://www2.dmsolutions.ca/mapserver/dl/ (since I'm on Windows, I'm trying to avoid doing any compilation myself). The behavior has changed somewhat; I now get an explicit failed return code and an error message. I'm still not succeeding. Is there any way to get a more explicit error message about why the projection is failing? Is there a different 3.7 binary and libraries I should try? Thanks. -- Chris my code: ---------------- 1 setXY(38.20527700, -122.37277700); 10 $retval = $crab_here->project($inproj, $outproj); 11 if ($retval == MS_SUCCESS) {print("Succeeded. ");} else {print("Failed. ");} 12 print(" x is "); 13 print($crab_here->x); 14 print("; y is "); 15 print($crab_here->y); 16 ?> ------------------------- output with error message: ----------------------- Warning: MapServer Error in : in c:\inetpub\scripts\debug_projection.php on line 10 Failed. x is 38.205277; y is -122.372777 --------------------------------- metadata describing the map I want to print the point onto, and from which I am therefore taking the definition of $outproj: ------------------------ SPATIAL_REFERENCE_INFORMATION Horizontal_Coordinate_System_Definition Planar Grid_Coordinate_System Grid_Coordinate_System_Name: Universal Transverse Mercator Universal_Transverse_Mercator: UTM_Zone_Number: 10 Transverse_Mercator Scale_Factor_at_Central_Meridian: implied Longitude_of_Central_Meridian: implied Latitude_of_Projection_Origin: implied False_Easting: implied False_Northing: implied Planar_Coordinate_Information Planar_Coordinate_Encoding_Method: Row and column Coordinate_Representation: Abscissa_Resolution: 30.0 Ordinate_Resolution: 30.0 Planar_Distance_Units: Meters Geodetic_Model Horizontal_Datum_Name: North American Datum 1927 Ellipsoid_Name: Clarke 1866 Semi-major_Axis: 6378206.4 Denominator_of_Flattening_Ratio: 294.98 ---------------------- Daniel Morissette wrote: >Chris Black wrote: > > >>Eric Bridger wrote: >> >> >> >>>Chris, >>>1) pointObj->project() does not return a point, it just reprojects the >>>pointObj, so getting a null is not an error. >>> >>> >>> >>In that case, the online PHP class documentation should be modified. >> The doc at >>http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html#proj >>has this code snippet: >> >> >> > >Actually the 3.6 version "tries to" return a point but it's broken, it >returns a point with an invalid internal poinObj reference, and the >initial object is updated internally but the PHP wrapper is not, if you >continue to play with the returned object you'll eventually end up with >a crash. In 3.7 it won't return a point any more, instead it updates >the point on which the project() method is called. > >I think your problem is simply that the project() method is broken in >3.6 and cannot be relied upon. I'll see if I could backport the 3.7 >changes to 3.6, I just hoped that we could avoid that since very few >people seemed to use those methods. The other option would be for you >to use 3.7 in which the project() method works very well. > > > --------------080907020309020502020005 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Ok, I've stepped up to 3.7, which I downloaded as mapserver-3.7-win32-php4.3.0-gd2.zip from http://www2.dmsolutions.ca/mapserver/dl/ (since I'm on Windows, I'm trying to avoid doing any compilation myself).

The behavior has changed somewhat; I now get an explicit failed return code and an error message.  I'm still not succeeding.  Is there any way to get a more explicit error message about why the projection is failing?  Is there a different 3.7 binary and libraries I should try?

Thanks.

-- Chris

my code:
----------------
1    <?php
2
3    dl('php_mapscript_37.dll');
4
5    $outproj = ms_newProjectionObj("proj=utm,zone=10,datum=NAD27,ellps=clrk66,units=m,no_defs,north");
6    $inproj = ms_newProjectionObj("proj=longlat,ellps=clrk66");
7
8    $crab_here = ms_newpointobj();
9    $crab_here->setXY(38.20527700, -122.37277700);
10    $retval = $crab_here->project($inproj, $outproj);
11    if ($retval == MS_SUCCESS) {print("Succeeded. ");} else {print("Failed. ");}
12    print(" x is ");
13    print($crab_here->x);
14    print("; y is ");
15    print($crab_here->y);
16    ?>
-------------------------
output with error message:
-----------------------

Warning: MapServer Error in : in c:\inetpub\scripts\debug_projection.php on line 10
Failed. x is 38.205277; y is -122.372777
---------------------------------
metadata describing the map I want to print the point onto, and from which I am therefore taking the definition of $outproj:
------------------------
SPATIAL_REFERENCE_INFORMATION



  Horizontal_Coordinate_System_Definition

    Planar

      Grid_Coordinate_System

        Grid_Coordinate_System_Name: Universal Transverse Mercator

        Universal_Transverse_Mercator:

          UTM_Zone_Number: 10

          Transverse_Mercator

            Scale_Factor_at_Central_Meridian: implied

            Longitude_of_Central_Meridian: implied

            Latitude_of_Projection_Origin: implied

            False_Easting: implied

            False_Northing:    implied

      Planar_Coordinate_Information

        Planar_Coordinate_Encoding_Method: Row and column

        Coordinate_Representation:

          Abscissa_Resolution: 30.0

          Ordinate_Resolution: 30.0

        Planar_Distance_Units: Meters

    Geodetic_Model

      Horizontal_Datum_Name: North American Datum 1927

      Ellipsoid_Name: Clarke 1866

      Semi-major_Axis: 6378206.4

      Denominator_of_Flattening_Ratio: 294.98

----------------------




Daniel Morissette wrote:
Chris Black wrote:
  
Eric Bridger wrote:

    
Chris,
1) pointObj->project() does not return a point, it just reprojects the
pointObj, so getting a null is not an error.

      
In that case, the online PHP class documentation should be modified.
 The doc at
http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html#proj
has this code snippet:

    

Actually the 3.6 version "tries to" return a point but it's broken, it
returns a point with an invalid internal poinObj reference, and the
initial object is updated internally but the PHP wrapper is not, if you
continue to play with the returned object you'll eventually end up with
a crash.  In 3.7 it won't return a point any more, instead it updates
the point on which the project() method is called.

I think your problem is simply that the project() method is broken in
3.6 and cannot be relied upon.  I'll see if I could backport the 3.7
changes to 3.6, I just hoped that we could avoid that since very few
people seemed to use those methods.  The other option would be for you
to use 3.7 in which the project() method works very well.

  

--------------080907020309020502020005-- From warmerdam@pobox.com Wed Mar 5 19:27:03 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Wed, 05 Mar 2003 14:27:03 -0500 Subject: [Mapserver-users] documentation bug (was Re: projecting a point in PHP MapScript) In-Reply-To: <3E664E2E.2020309@calacademy.org> References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> <1046767038.1465.12.camel@ubet.gomoos.org> <3E64F89A.8050406@calacademy.org> <3E6526D6.1EF85B21@dmsolutions.ca> <3E664E2E.2020309@calacademy.org> Message-ID: <3E664F87.6020407@pobox.com> Chris Black wrote: > Ok, I've stepped up to 3.7, which I downloaded as > mapserver-3.7-win32-php4.3.0-gd2.zip from > http://www2.dmsolutions.ca/mapserver/dl/ (since I'm on Windows, I'm > trying to avoid doing any compilation myself). > > The behavior has changed somewhat; I now get an explicit failed return > code and an error message. I'm still not succeeding. Is there any way > to get a more explicit error message about why the projection is > failing? Is there a different 3.7 binary and libraries I should try? Chris, Generally speaking it is hard to get meaningful error messages from PROJ.4 explaining failure, but a good start is to do testing with the "cs2cs" commandline program distributed with PROJ.4. cs2cs +proj=latlong +ellps=clrk66 +to +proj=utm +zone=10 +datum=NAD27 \ +ellps=clrk66 +units=m +no_defs +north 38.2052770 -122.37277700 * * 0.000 Well, this fails because you have X and Y backwards. I assume you want to translate the location 122.372777E, 38.2052770N? Even though the coordinate system is called latlong (longlat also works) the order is latitude,longitude. Second, you provide a datum definition for one coordinate system but not the other. This seems to cause a problem. If I change to just listing the ellipses things seem OK: cs2cs +proj=latlong +ellps=clrk66 +to +proj=utm +zone=10 +ellps=clrk66 +units=m +no_defs +north -122.372777 38.2052770 554916.29 4228571.08 0.000 So, try correcting these problems in your script. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cblack@CalAcademy.Org Wed Mar 5 19:49:37 2003 From: cblack@CalAcademy.Org (Chris Black) Date: Wed, 05 Mar 2003 11:49:37 -0800 Subject: [Mapserver-users] documentation bug (was Re: projecting a point in PHP MapScript) References: <20030227180002.20129.49090.Mailman@lists.gis.umn.edu> <3E63D243.2090902@calacademy.org> <1046767038.1465.12.camel@ubet.gomoos.org> <3E64F89A.8050406@calacademy.org> <3E6526D6.1EF85B21@dmsolutions.ca> <3E664E2E.2020309@calacademy.org> <3E664F87.6020407@pobox.com> Message-ID: <3E6654D1.9060905@calacademy.org> D'oh! I need to put a sticky note on my monitor that says "LONGITUDE is X"! This has bitten me before -- we say 'x, y' but 'lat, long', and that always makes me think that latitude is x. It's working w