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